@braydenyang/fdoc 0.1.13 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/fdoc.iife.js +7 -7
- package/dist/lib/fdoc.js +16 -6
- package/dist/lib/style.css +1 -1
- package/package.json +1 -1
package/dist/lib/fdoc.iife.js
CHANGED
|
@@ -6,14 +6,14 @@ var Fdoc=function(Co){"use strict";/**
|
|
|
6
6
|
* @vue/reactivity v3.5.30
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
8
|
* @license MIT
|
|
9
|
-
**/let so;class Nf{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=so,!t&&so&&(this.index=(so.scopes||(so.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,o;if(this.scopes)for(t=0,o=this.scopes.length;t<o;t++)this.scopes[t].pause();for(t=0,o=this.effects.length;t<o;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,o;if(this.scopes)for(t=0,o=this.scopes.length;t<o;t++)this.scopes[t].resume();for(t=0,o=this.effects.length;t<o;t++)this.effects[t].resume()}}run(t){if(this._active){const o=so;try{return so=this,t()}finally{so=o}}}on(){++this._on===1&&(this.prevScope=so,so=this)}off(){this._on>0&&--this._on===0&&(so=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let o,n;for(o=0,n=this.effects.length;o<n;o++)this.effects[o].stop();for(this.effects.length=0,o=0,n=this.cleanups.length;o<n;o++)this.cleanups[o]();if(this.cleanups.length=0,this.scopes){for(o=0,n=this.scopes.length;o<n;o++)this.scopes[o].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function jf(e){return new Nf(e)}function Wf(){return so}function C1(e,t=!1){so&&so.cleanups.push(e)}let Et;const yc=new WeakSet;class Vf{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,so&&so.active&&so.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,yc.has(this)&&(yc.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Kf(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Jf(this),qf(this);const t=Et,o=Zo;Et=this,Zo=!0;try{return this.fn()}finally{Gf(this),Et=t,Zo=o,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)kc(t);this.deps=this.depsTail=void 0,Jf(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?yc.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Sc(this)&&this.run()}get dirty(){return Sc(this)}}let Uf=0,cl,dl;function Kf(e,t=!1){if(e.flags|=8,t){e.next=dl,dl=e;return}e.next=cl,cl=e}function Cc(){Uf++}function wc(){if(--Uf>0)return;if(dl){let t=dl;for(dl=void 0;t;){const o=t.next;t.next=void 0,t.flags&=-9,t=o}}let e;for(;cl;){let t=cl;for(cl=void 0;t;){const o=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=o}}if(e)throw e}function qf(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Gf(e){let t,o=e.depsTail,n=o;for(;n;){const r=n.prevDep;n.version===-1?(n===o&&(o=r),kc(n),w1(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=o}function Sc(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Xf(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Xf(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ul)||(e.globalVersion=ul,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Sc(e))))return;e.flags|=2;const t=e.dep,o=Et,n=Zo;Et=e,Zo=!0;try{qf(e);const r=e.fn(e._value);(t.version===0||ao(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Et=o,Zo=n,Gf(e),e.flags&=-3}}function kc(e,t=!1){const{dep:o,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),o.subs===e&&(o.subs=n,!n&&o.computed)){o.computed.flags&=-5;for(let i=o.computed.deps;i;i=i.nextDep)kc(i,!0)}!t&&!--o.sc&&o.map&&o.map.delete(o.key)}function w1(e){const{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}let Zo=!0;const Yf=[];function pn(){Yf.push(Zo),Zo=!1}function vn(){const e=Yf.pop();Zo=e===void 0?!0:e}function Jf(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const o=Et;Et=void 0;try{t()}finally{Et=o}}}let ul=0;class S1{constructor(t,o){this.sub=t,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class wa{constructor(t){this.computed=t,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(t){if(!Et||!Zo||Et===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==Et)o=this.activeLink=new S1(Et,this),Et.deps?(o.prevDep=Et.depsTail,Et.depsTail.nextDep=o,Et.depsTail=o):Et.deps=Et.depsTail=o,Zf(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){const n=o.nextDep;n.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=n),o.prevDep=Et.depsTail,o.nextDep=void 0,Et.depsTail.nextDep=o,Et.depsTail=o,Et.deps===o&&(Et.deps=n)}return o}trigger(t){this.version++,ul++,this.notify(t)}notify(t){Cc();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{wc()}}}function Zf(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Zf(n)}const o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),e.dep.subs=e}}const Sa=new WeakMap,Ar=Symbol(""),Rc=Symbol(""),fl=Symbol("");function co(e,t,o){if(Zo&&Et){let n=Sa.get(e);n||Sa.set(e,n=new Map);let r=n.get(o);r||(n.set(o,r=new wa),r.map=n,r.key=o),r.track()}}function Fn(e,t,o,n,r,i){const l=Sa.get(e);if(!l){ul++;return}const a=s=>{s&&s.trigger()};if(Cc(),t==="clear")l.forEach(a);else{const s=Je(e),c=s&&ma(o);if(s&&o==="length"){const d=Number(n);l.forEach((u,p)=>{(p==="length"||p===fl||!Jo(p)&&p>=d)&&a(u)})}else switch((o!==void 0||l.has(void 0))&&a(l.get(o)),c&&a(l.get(fl)),t){case"add":s?c&&a(l.get("length")):(a(l.get(Ar)),yi(e)&&a(l.get(Rc)));break;case"delete":s||(a(l.get(Ar)),yi(e)&&a(l.get(Rc)));break;case"set":yi(e)&&a(l.get(Ar));break}}wc()}function k1(e,t){const o=Sa.get(e);return o&&o.get(t)}function Ci(e){const t=ut(e);return t===e?t:(co(t,"iterate",fl),Ao(e)?t:t.map(Qo))}function ka(e){return co(e=ut(e),"iterate",fl),e}function gn(e,t){return Ln(e)?wi(Bn(e)?Qo(t):t):Qo(t)}const R1={__proto__:null,[Symbol.iterator](){return Pc(this,Symbol.iterator,e=>gn(this,e))},concat(...e){return Ci(this).concat(...e.map(t=>Je(t)?Ci(t):t))},entries(){return Pc(this,"entries",e=>(e[1]=gn(this,e[1]),e))},every(e,t){return Mn(this,"every",e,t,void 0,arguments)},filter(e,t){return Mn(this,"filter",e,t,o=>o.map(n=>gn(this,n)),arguments)},find(e,t){return Mn(this,"find",e,t,o=>gn(this,o),arguments)},findIndex(e,t){return Mn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Mn(this,"findLast",e,t,o=>gn(this,o),arguments)},findLastIndex(e,t){return Mn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Mn(this,"forEach",e,t,void 0,arguments)},includes(...e){return _c(this,"includes",e)},indexOf(...e){return _c(this,"indexOf",e)},join(e){return Ci(this).join(e)},lastIndexOf(...e){return _c(this,"lastIndexOf",e)},map(e,t){return Mn(this,"map",e,t,void 0,arguments)},pop(){return hl(this,"pop")},push(...e){return hl(this,"push",e)},reduce(e,...t){return Qf(this,"reduce",e,t)},reduceRight(e,...t){return Qf(this,"reduceRight",e,t)},shift(){return hl(this,"shift")},some(e,t){return Mn(this,"some",e,t,void 0,arguments)},splice(...e){return hl(this,"splice",e)},toReversed(){return Ci(this).toReversed()},toSorted(e){return Ci(this).toSorted(e)},toSpliced(...e){return Ci(this).toSpliced(...e)},unshift(...e){return hl(this,"unshift",e)},values(){return Pc(this,"values",e=>gn(this,e))}};function Pc(e,t,o){const n=ka(e),r=n[t]();return n!==e&&!Ao(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=o(i.value)),i}),r}const P1=Array.prototype;function Mn(e,t,o,n,r,i){const l=ka(e),a=l!==e&&!Ao(e),s=l[t];if(s!==P1[t]){const u=s.apply(e,i);return a?Qo(u):u}let c=o;l!==e&&(a?c=function(u,p){return o.call(this,gn(e,u),p,e)}:o.length>2&&(c=function(u,p){return o.call(this,u,p,e)}));const d=s.call(l,c,n);return a&&r?r(d):d}function Qf(e,t,o,n){const r=ka(e),i=r!==e&&!Ao(e);let l=o,a=!1;r!==e&&(i?(a=n.length===0,l=function(c,d,u){return a&&(a=!1,c=gn(e,c)),o.call(this,c,gn(e,d),u,e)}):o.length>3&&(l=function(c,d,u){return o.call(this,c,d,u,e)}));const s=r[t](l,...n);return a?gn(e,s):s}function _c(e,t,o){const n=ut(e);co(n,"iterate",fl);const r=n[t](...o);return(r===-1||r===!1)&&Ta(o[0])?(o[0]=ut(o[0]),n[t](...o)):r}function hl(e,t,o=[]){pn(),Cc();const n=ut(e)[t].apply(e,o);return wc(),vn(),n}const _1=hc("__proto__,__v_isRef,__isVue"),eh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Jo));function $1(e){Jo(e)||(e=String(e));const t=ut(this);return co(t,"has",e),t.hasOwnProperty(e)}class th{constructor(t=!1,o=!1){this._isReadonly=t,this._isShallow=o}get(t,o,n){if(o==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(o==="__v_isReactive")return!r;if(o==="__v_isReadonly")return r;if(o==="__v_isShallow")return i;if(o==="__v_raw")return n===(r?i?ah:lh:i?ih:rh).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const l=Je(t);if(!r){let s;if(l&&(s=R1[o]))return s;if(o==="hasOwnProperty")return $1}const a=Reflect.get(t,o,It(t)?t:n);if((Jo(o)?eh.has(o):_1(o))||(r||co(t,"get",o),i))return a;if(It(a)){const s=l&&ma(o)?a:a.value;return r&&kt(s)?Io(s):s}return kt(a)?r?Io(a):mn(a):a}}class oh extends th{constructor(t=!1){super(!1,t)}set(t,o,n,r){let i=t[o];const l=Je(t)&&ma(o);if(!this._isShallow){const c=Ln(i);if(!Ao(n)&&!Ln(n)&&(i=ut(i),n=ut(n)),!l&&It(i)&&!It(n))return c||(i.value=n),!0}const a=l?Number(o)<t.length:Rt(t,o),s=Reflect.set(t,o,n,It(t)?t:r);return t===ut(r)&&(a?ao(n,i)&&Fn(t,"set",o,n):Fn(t,"add",o,n)),s}deleteProperty(t,o){const n=Rt(t,o);t[o];const r=Reflect.deleteProperty(t,o);return r&&n&&Fn(t,"delete",o,void 0),r}has(t,o){const n=Reflect.has(t,o);return(!Jo(o)||!eh.has(o))&&co(t,"has",o),n}ownKeys(t){return co(t,"iterate",Je(t)?"length":Ar),Reflect.ownKeys(t)}}class nh extends th{constructor(t=!1){super(!0,t)}set(t,o){return!0}deleteProperty(t,o){return!0}}const T1=new oh,z1=new nh,E1=new oh(!0),O1=new nh(!0),$c=e=>e,Ra=e=>Reflect.getPrototypeOf(e);function I1(e,t,o){return function(...n){const r=this.__v_raw,i=ut(r),l=yi(i),a=e==="entries"||e===Symbol.iterator&&l,s=e==="keys"&&l,c=r[e](...n),d=o?$c:t?wi:Qo;return!t&&co(i,"iterate",s?Rc:Ar),Vt(Object.create(c),{next(){const{value:u,done:p}=c.next();return p?{value:u,done:p}:{value:a?[d(u[0]),d(u[1])]:d(u),done:p}}})}}function Pa(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function A1(e,t){const o={get(r){const i=this.__v_raw,l=ut(i),a=ut(r);e||(ao(r,a)&&co(l,"get",r),co(l,"get",a));const{has:s}=Ra(l),c=t?$c:e?wi:Qo;if(s.call(l,r))return c(i.get(r));if(s.call(l,a))return c(i.get(a));i!==l&&i.get(r)},get size(){const r=this.__v_raw;return!e&&co(ut(r),"iterate",Ar),r.size},has(r){const i=this.__v_raw,l=ut(i),a=ut(r);return e||(ao(r,a)&&co(l,"has",r),co(l,"has",a)),r===a?i.has(r):i.has(r)||i.has(a)},forEach(r,i){const l=this,a=l.__v_raw,s=ut(a),c=t?$c:e?wi:Qo;return!e&&co(s,"iterate",Ar),a.forEach((d,u)=>r.call(i,c(d),c(u),l))}};return Vt(o,e?{add:Pa("add"),set:Pa("set"),delete:Pa("delete"),clear:Pa("clear")}:{add(r){const i=ut(this),l=Ra(i),a=ut(r),s=!t&&!Ao(r)&&!Ln(r)?a:r;return l.has.call(i,s)||ao(r,s)&&l.has.call(i,r)||ao(a,s)&&l.has.call(i,a)||(i.add(s),Fn(i,"add",s,s)),this},set(r,i){!t&&!Ao(i)&&!Ln(i)&&(i=ut(i));const l=ut(this),{has:a,get:s}=Ra(l);let c=a.call(l,r);c||(r=ut(r),c=a.call(l,r));const d=s.call(l,r);return l.set(r,i),c?ao(i,d)&&Fn(l,"set",r,i):Fn(l,"add",r,i),this},delete(r){const i=ut(this),{has:l,get:a}=Ra(i);let s=l.call(i,r);s||(r=ut(r),s=l.call(i,r)),a&&a.call(i,r);const c=i.delete(r);return s&&Fn(i,"delete",r,void 0),c},clear(){const r=ut(this),i=r.size!==0,l=r.clear();return i&&Fn(r,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(r=>{o[r]=I1(r,e,t)}),o}function _a(e,t){const o=A1(e,t);return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(Rt(o,r)&&r in n?o:n,r,i)}const F1={get:_a(!1,!1)},M1={get:_a(!1,!0)},B1={get:_a(!0,!1)},L1={get:_a(!0,!0)},rh=new WeakMap,ih=new WeakMap,lh=new WeakMap,ah=new WeakMap;function D1(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function H1(e){return e.__v_skip||!Object.isExtensible(e)?0:D1(u1(e))}function mn(e){return Ln(e)?e:$a(e,!1,T1,F1,rh)}function sh(e){return $a(e,!1,E1,M1,ih)}function Io(e){return $a(e,!0,z1,B1,lh)}function H7(e){return $a(e,!0,O1,L1,ah)}function $a(e,t,o,n,r){if(!kt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=H1(e);if(i===0)return e;const l=r.get(e);if(l)return l;const a=new Proxy(e,i===2?n:o);return r.set(e,a),a}function Bn(e){return Ln(e)?Bn(e.__v_raw):!!(e&&e.__v_isReactive)}function Ln(e){return!!(e&&e.__v_isReadonly)}function Ao(e){return!!(e&&e.__v_isShallow)}function Ta(e){return e?!!e.__v_raw:!1}function ut(e){const t=e&&e.__v_raw;return t?ut(t):e}function pl(e){return!Rt(e,"__v_skip")&&Object.isExtensible(e)&&Mf(e,"__v_skip",!0),e}const Qo=e=>kt(e)?mn(e):e,wi=e=>kt(e)?Io(e):e;function It(e){return e?e.__v_isRef===!0:!1}function L(e){return ch(e,!1)}function Tc(e){return ch(e,!0)}function ch(e,t){return It(e)?e:new N1(e,t)}class N1{constructor(t,o){this.dep=new wa,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?t:ut(t),this._value=o?t:Qo(t),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(t){const o=this._rawValue,n=this.__v_isShallow||Ao(t)||Ln(t);t=n?t:ut(t),ao(t,o)&&(this._rawValue=t,this._value=n?t:Qo(t),this.dep.trigger())}}function he(e){return It(e)?e.value:e}const j1={get:(e,t,o)=>t==="__v_raw"?e:he(Reflect.get(e,t,o)),set:(e,t,o,n)=>{const r=e[t];return It(r)&&!It(o)?(r.value=o,!0):Reflect.set(e,t,o,n)}};function dh(e){return Bn(e)?e:new Proxy(e,j1)}class W1{constructor(t){this.__v_isRef=!0,this._value=void 0;const o=this.dep=new wa,{get:n,set:r}=t(o.track.bind(o),o.trigger.bind(o));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function V1(e){return new W1(e)}function uh(e){const t=Je(e)?new Array(e.length):{};for(const o in e)t[o]=fh(e,o);return t}class U1{constructor(t,o,n){this._object=t,this._key=o,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=ut(t);let r=!0,i=t;if(!Je(t)||!ma(String(o)))do r=!Ta(i)||Ao(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=he(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&It(this._raw[this._key])){const o=this._object[this._key];if(It(o)){o.value=t;return}}this._object[this._key]=t}get dep(){return k1(this._raw,this._key)}}class K1{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function _e(e,t,o){return It(e)?e:lt(e)?new K1(e):kt(e)&&arguments.length>1?fh(e,t,o):L(e)}function fh(e,t,o){return new U1(e,t,o)}class q1{constructor(t,o,n){this.fn=t,this.setter=o,this._value=void 0,this.dep=new wa(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ul-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Et!==this)return Kf(this,!0),!0}get value(){const t=this.dep.track();return Xf(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function G1(e,t,o=!1){let n,r;return lt(e)?n=e:(n=e.get,r=e.set),new q1(n,r,o)}const za={},Ea=new WeakMap;let Fr;function X1(e,t=!1,o=Fr){if(o){let n=Ea.get(o);n||Ea.set(o,n=[]),n.push(e)}}function Y1(e,t,o=St){const{immediate:n,deep:r,once:i,scheduler:l,augmentJob:a,call:s}=o,c=C=>r?C:Ao(C)||r===!1||r===0?Dn(C,1):Dn(C);let d,u,p,v,h=!1,g=!1;if(It(e)?(u=()=>e.value,h=Ao(e)):Bn(e)?(u=()=>c(e),h=!0):Je(e)?(g=!0,h=e.some(C=>Bn(C)||Ao(C)),u=()=>e.map(C=>{if(It(C))return C.value;if(Bn(C))return c(C);if(lt(C))return s?s(C,2):C()})):lt(e)?t?u=s?()=>s(e,2):e:u=()=>{if(p){pn();try{p()}finally{vn()}}const C=Fr;Fr=d;try{return s?s(e,3,[v]):e(v)}finally{Fr=C}}:u=hn,t&&r){const C=u,y=r===!0?1/0:r;u=()=>Dn(C(),y)}const b=Wf(),m=()=>{d.stop(),b&&b.active&&vc(b.effects,d)};if(i&&t){const C=t;t=(...y)=>{C(...y),m()}}let x=g?new Array(e.length).fill(za):za;const S=C=>{if(!(!(d.flags&1)||!d.dirty&&!C))if(t){const y=d.run();if(r||h||(g?y.some((R,P)=>ao(R,x[P])):ao(y,x))){p&&p();const R=Fr;Fr=d;try{const P=[y,x===za?void 0:g&&x[0]===za?[]:x,v];x=y,s?s(t,3,P):t(...P)}finally{Fr=R}}}else d.run()};return a&&a(S),d=new Vf(u),d.scheduler=l?()=>l(S,!1):S,v=C=>X1(C,!1,d),p=d.onStop=()=>{const C=Ea.get(d);if(C){if(s)s(C,4);else for(const y of C)y();Ea.delete(d)}},t?n?S(!0):x=d.run():l?l(S.bind(null,!0),!0):d.run(),m.pause=d.pause.bind(d),m.resume=d.resume.bind(d),m.stop=m,m}function Dn(e,t=1/0,o){if(t<=0||!kt(e)||e.__v_skip||(o=o||new Map,(o.get(e)||0)>=t))return e;if(o.set(e,t),t--,It(e))Dn(e.value,t,o);else if(Je(e))for(let n=0;n<e.length;n++)Dn(e[n],t,o);else if(Ef(e)||yi(e))e.forEach(n=>{Dn(n,t,o)});else if(Ff(e)){for(const n in e)Dn(e[n],t,o);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Dn(e[n],t,o)}return e}/**
|
|
9
|
+
**/let so;class Nf{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=so,!t&&so&&(this.index=(so.scopes||(so.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,o;if(this.scopes)for(t=0,o=this.scopes.length;t<o;t++)this.scopes[t].pause();for(t=0,o=this.effects.length;t<o;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,o;if(this.scopes)for(t=0,o=this.scopes.length;t<o;t++)this.scopes[t].resume();for(t=0,o=this.effects.length;t<o;t++)this.effects[t].resume()}}run(t){if(this._active){const o=so;try{return so=this,t()}finally{so=o}}}on(){++this._on===1&&(this.prevScope=so,so=this)}off(){this._on>0&&--this._on===0&&(so=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let o,n;for(o=0,n=this.effects.length;o<n;o++)this.effects[o].stop();for(this.effects.length=0,o=0,n=this.cleanups.length;o<n;o++)this.cleanups[o]();if(this.cleanups.length=0,this.scopes){for(o=0,n=this.scopes.length;o<n;o++)this.scopes[o].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function jf(e){return new Nf(e)}function Wf(){return so}function C1(e,t=!1){so&&so.cleanups.push(e)}let Et;const yc=new WeakSet;class Vf{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,so&&so.active&&so.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,yc.has(this)&&(yc.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Kf(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Jf(this),qf(this);const t=Et,o=Zo;Et=this,Zo=!0;try{return this.fn()}finally{Gf(this),Et=t,Zo=o,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)kc(t);this.deps=this.depsTail=void 0,Jf(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?yc.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Sc(this)&&this.run()}get dirty(){return Sc(this)}}let Uf=0,cl,dl;function Kf(e,t=!1){if(e.flags|=8,t){e.next=dl,dl=e;return}e.next=cl,cl=e}function Cc(){Uf++}function wc(){if(--Uf>0)return;if(dl){let t=dl;for(dl=void 0;t;){const o=t.next;t.next=void 0,t.flags&=-9,t=o}}let e;for(;cl;){let t=cl;for(cl=void 0;t;){const o=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=o}}if(e)throw e}function qf(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Gf(e){let t,o=e.depsTail,n=o;for(;n;){const r=n.prevDep;n.version===-1?(n===o&&(o=r),kc(n),w1(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=o}function Sc(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Xf(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Xf(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ul)||(e.globalVersion=ul,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Sc(e))))return;e.flags|=2;const t=e.dep,o=Et,n=Zo;Et=e,Zo=!0;try{qf(e);const r=e.fn(e._value);(t.version===0||ao(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Et=o,Zo=n,Gf(e),e.flags&=-3}}function kc(e,t=!1){const{dep:o,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),o.subs===e&&(o.subs=n,!n&&o.computed)){o.computed.flags&=-5;for(let i=o.computed.deps;i;i=i.nextDep)kc(i,!0)}!t&&!--o.sc&&o.map&&o.map.delete(o.key)}function w1(e){const{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}let Zo=!0;const Yf=[];function pn(){Yf.push(Zo),Zo=!1}function vn(){const e=Yf.pop();Zo=e===void 0?!0:e}function Jf(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const o=Et;Et=void 0;try{t()}finally{Et=o}}}let ul=0;class S1{constructor(t,o){this.sub=t,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class wa{constructor(t){this.computed=t,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(t){if(!Et||!Zo||Et===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==Et)o=this.activeLink=new S1(Et,this),Et.deps?(o.prevDep=Et.depsTail,Et.depsTail.nextDep=o,Et.depsTail=o):Et.deps=Et.depsTail=o,Zf(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){const n=o.nextDep;n.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=n),o.prevDep=Et.depsTail,o.nextDep=void 0,Et.depsTail.nextDep=o,Et.depsTail=o,Et.deps===o&&(Et.deps=n)}return o}trigger(t){this.version++,ul++,this.notify(t)}notify(t){Cc();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{wc()}}}function Zf(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Zf(n)}const o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),e.dep.subs=e}}const Sa=new WeakMap,Ar=Symbol(""),Rc=Symbol(""),fl=Symbol("");function co(e,t,o){if(Zo&&Et){let n=Sa.get(e);n||Sa.set(e,n=new Map);let r=n.get(o);r||(n.set(o,r=new wa),r.map=n,r.key=o),r.track()}}function Fn(e,t,o,n,r,i){const l=Sa.get(e);if(!l){ul++;return}const a=s=>{s&&s.trigger()};if(Cc(),t==="clear")l.forEach(a);else{const s=Je(e),c=s&&ma(o);if(s&&o==="length"){const d=Number(n);l.forEach((u,p)=>{(p==="length"||p===fl||!Jo(p)&&p>=d)&&a(u)})}else switch((o!==void 0||l.has(void 0))&&a(l.get(o)),c&&a(l.get(fl)),t){case"add":s?c&&a(l.get("length")):(a(l.get(Ar)),yi(e)&&a(l.get(Rc)));break;case"delete":s||(a(l.get(Ar)),yi(e)&&a(l.get(Rc)));break;case"set":yi(e)&&a(l.get(Ar));break}}wc()}function k1(e,t){const o=Sa.get(e);return o&&o.get(t)}function Ci(e){const t=ut(e);return t===e?t:(co(t,"iterate",fl),Ao(e)?t:t.map(Qo))}function ka(e){return co(e=ut(e),"iterate",fl),e}function gn(e,t){return Ln(e)?wi(Bn(e)?Qo(t):t):Qo(t)}const R1={__proto__:null,[Symbol.iterator](){return Pc(this,Symbol.iterator,e=>gn(this,e))},concat(...e){return Ci(this).concat(...e.map(t=>Je(t)?Ci(t):t))},entries(){return Pc(this,"entries",e=>(e[1]=gn(this,e[1]),e))},every(e,t){return Mn(this,"every",e,t,void 0,arguments)},filter(e,t){return Mn(this,"filter",e,t,o=>o.map(n=>gn(this,n)),arguments)},find(e,t){return Mn(this,"find",e,t,o=>gn(this,o),arguments)},findIndex(e,t){return Mn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Mn(this,"findLast",e,t,o=>gn(this,o),arguments)},findLastIndex(e,t){return Mn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Mn(this,"forEach",e,t,void 0,arguments)},includes(...e){return _c(this,"includes",e)},indexOf(...e){return _c(this,"indexOf",e)},join(e){return Ci(this).join(e)},lastIndexOf(...e){return _c(this,"lastIndexOf",e)},map(e,t){return Mn(this,"map",e,t,void 0,arguments)},pop(){return hl(this,"pop")},push(...e){return hl(this,"push",e)},reduce(e,...t){return Qf(this,"reduce",e,t)},reduceRight(e,...t){return Qf(this,"reduceRight",e,t)},shift(){return hl(this,"shift")},some(e,t){return Mn(this,"some",e,t,void 0,arguments)},splice(...e){return hl(this,"splice",e)},toReversed(){return Ci(this).toReversed()},toSorted(e){return Ci(this).toSorted(e)},toSpliced(...e){return Ci(this).toSpliced(...e)},unshift(...e){return hl(this,"unshift",e)},values(){return Pc(this,"values",e=>gn(this,e))}};function Pc(e,t,o){const n=ka(e),r=n[t]();return n!==e&&!Ao(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=o(i.value)),i}),r}const P1=Array.prototype;function Mn(e,t,o,n,r,i){const l=ka(e),a=l!==e&&!Ao(e),s=l[t];if(s!==P1[t]){const u=s.apply(e,i);return a?Qo(u):u}let c=o;l!==e&&(a?c=function(u,p){return o.call(this,gn(e,u),p,e)}:o.length>2&&(c=function(u,p){return o.call(this,u,p,e)}));const d=s.call(l,c,n);return a&&r?r(d):d}function Qf(e,t,o,n){const r=ka(e),i=r!==e&&!Ao(e);let l=o,a=!1;r!==e&&(i?(a=n.length===0,l=function(c,d,u){return a&&(a=!1,c=gn(e,c)),o.call(this,c,gn(e,d),u,e)}):o.length>3&&(l=function(c,d,u){return o.call(this,c,d,u,e)}));const s=r[t](l,...n);return a?gn(e,s):s}function _c(e,t,o){const n=ut(e);co(n,"iterate",fl);const r=n[t](...o);return(r===-1||r===!1)&&Ta(o[0])?(o[0]=ut(o[0]),n[t](...o)):r}function hl(e,t,o=[]){pn(),Cc();const n=ut(e)[t].apply(e,o);return wc(),vn(),n}const _1=hc("__proto__,__v_isRef,__isVue"),eh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Jo));function $1(e){Jo(e)||(e=String(e));const t=ut(this);return co(t,"has",e),t.hasOwnProperty(e)}class th{constructor(t=!1,o=!1){this._isReadonly=t,this._isShallow=o}get(t,o,n){if(o==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(o==="__v_isReactive")return!r;if(o==="__v_isReadonly")return r;if(o==="__v_isShallow")return i;if(o==="__v_raw")return n===(r?i?ah:lh:i?ih:rh).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const l=Je(t);if(!r){let s;if(l&&(s=R1[o]))return s;if(o==="hasOwnProperty")return $1}const a=Reflect.get(t,o,It(t)?t:n);if((Jo(o)?eh.has(o):_1(o))||(r||co(t,"get",o),i))return a;if(It(a)){const s=l&&ma(o)?a:a.value;return r&&kt(s)?Io(s):s}return kt(a)?r?Io(a):mn(a):a}}class oh extends th{constructor(t=!1){super(!1,t)}set(t,o,n,r){let i=t[o];const l=Je(t)&&ma(o);if(!this._isShallow){const c=Ln(i);if(!Ao(n)&&!Ln(n)&&(i=ut(i),n=ut(n)),!l&&It(i)&&!It(n))return c||(i.value=n),!0}const a=l?Number(o)<t.length:Rt(t,o),s=Reflect.set(t,o,n,It(t)?t:r);return t===ut(r)&&(a?ao(n,i)&&Fn(t,"set",o,n):Fn(t,"add",o,n)),s}deleteProperty(t,o){const n=Rt(t,o);t[o];const r=Reflect.deleteProperty(t,o);return r&&n&&Fn(t,"delete",o,void 0),r}has(t,o){const n=Reflect.has(t,o);return(!Jo(o)||!eh.has(o))&&co(t,"has",o),n}ownKeys(t){return co(t,"iterate",Je(t)?"length":Ar),Reflect.ownKeys(t)}}class nh extends th{constructor(t=!1){super(!0,t)}set(t,o){return!0}deleteProperty(t,o){return!0}}const T1=new oh,z1=new nh,E1=new oh(!0),O1=new nh(!0),$c=e=>e,Ra=e=>Reflect.getPrototypeOf(e);function I1(e,t,o){return function(...n){const r=this.__v_raw,i=ut(r),l=yi(i),a=e==="entries"||e===Symbol.iterator&&l,s=e==="keys"&&l,c=r[e](...n),d=o?$c:t?wi:Qo;return!t&&co(i,"iterate",s?Rc:Ar),Vt(Object.create(c),{next(){const{value:u,done:p}=c.next();return p?{value:u,done:p}:{value:a?[d(u[0]),d(u[1])]:d(u),done:p}}})}}function Pa(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function A1(e,t){const o={get(r){const i=this.__v_raw,l=ut(i),a=ut(r);e||(ao(r,a)&&co(l,"get",r),co(l,"get",a));const{has:s}=Ra(l),c=t?$c:e?wi:Qo;if(s.call(l,r))return c(i.get(r));if(s.call(l,a))return c(i.get(a));i!==l&&i.get(r)},get size(){const r=this.__v_raw;return!e&&co(ut(r),"iterate",Ar),r.size},has(r){const i=this.__v_raw,l=ut(i),a=ut(r);return e||(ao(r,a)&&co(l,"has",r),co(l,"has",a)),r===a?i.has(r):i.has(r)||i.has(a)},forEach(r,i){const l=this,a=l.__v_raw,s=ut(a),c=t?$c:e?wi:Qo;return!e&&co(s,"iterate",Ar),a.forEach((d,u)=>r.call(i,c(d),c(u),l))}};return Vt(o,e?{add:Pa("add"),set:Pa("set"),delete:Pa("delete"),clear:Pa("clear")}:{add(r){const i=ut(this),l=Ra(i),a=ut(r),s=!t&&!Ao(r)&&!Ln(r)?a:r;return l.has.call(i,s)||ao(r,s)&&l.has.call(i,r)||ao(a,s)&&l.has.call(i,a)||(i.add(s),Fn(i,"add",s,s)),this},set(r,i){!t&&!Ao(i)&&!Ln(i)&&(i=ut(i));const l=ut(this),{has:a,get:s}=Ra(l);let c=a.call(l,r);c||(r=ut(r),c=a.call(l,r));const d=s.call(l,r);return l.set(r,i),c?ao(i,d)&&Fn(l,"set",r,i):Fn(l,"add",r,i),this},delete(r){const i=ut(this),{has:l,get:a}=Ra(i);let s=l.call(i,r);s||(r=ut(r),s=l.call(i,r)),a&&a.call(i,r);const c=i.delete(r);return s&&Fn(i,"delete",r,void 0),c},clear(){const r=ut(this),i=r.size!==0,l=r.clear();return i&&Fn(r,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(r=>{o[r]=I1(r,e,t)}),o}function _a(e,t){const o=A1(e,t);return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(Rt(o,r)&&r in n?o:n,r,i)}const F1={get:_a(!1,!1)},M1={get:_a(!1,!0)},B1={get:_a(!0,!1)},L1={get:_a(!0,!0)},rh=new WeakMap,ih=new WeakMap,lh=new WeakMap,ah=new WeakMap;function D1(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function H1(e){return e.__v_skip||!Object.isExtensible(e)?0:D1(u1(e))}function mn(e){return Ln(e)?e:$a(e,!1,T1,F1,rh)}function sh(e){return $a(e,!1,E1,M1,ih)}function Io(e){return $a(e,!0,z1,B1,lh)}function N7(e){return $a(e,!0,O1,L1,ah)}function $a(e,t,o,n,r){if(!kt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=H1(e);if(i===0)return e;const l=r.get(e);if(l)return l;const a=new Proxy(e,i===2?n:o);return r.set(e,a),a}function Bn(e){return Ln(e)?Bn(e.__v_raw):!!(e&&e.__v_isReactive)}function Ln(e){return!!(e&&e.__v_isReadonly)}function Ao(e){return!!(e&&e.__v_isShallow)}function Ta(e){return e?!!e.__v_raw:!1}function ut(e){const t=e&&e.__v_raw;return t?ut(t):e}function pl(e){return!Rt(e,"__v_skip")&&Object.isExtensible(e)&&Mf(e,"__v_skip",!0),e}const Qo=e=>kt(e)?mn(e):e,wi=e=>kt(e)?Io(e):e;function It(e){return e?e.__v_isRef===!0:!1}function L(e){return ch(e,!1)}function Tc(e){return ch(e,!0)}function ch(e,t){return It(e)?e:new N1(e,t)}class N1{constructor(t,o){this.dep=new wa,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?t:ut(t),this._value=o?t:Qo(t),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(t){const o=this._rawValue,n=this.__v_isShallow||Ao(t)||Ln(t);t=n?t:ut(t),ao(t,o)&&(this._rawValue=t,this._value=n?t:Qo(t),this.dep.trigger())}}function he(e){return It(e)?e.value:e}const j1={get:(e,t,o)=>t==="__v_raw"?e:he(Reflect.get(e,t,o)),set:(e,t,o,n)=>{const r=e[t];return It(r)&&!It(o)?(r.value=o,!0):Reflect.set(e,t,o,n)}};function dh(e){return Bn(e)?e:new Proxy(e,j1)}class W1{constructor(t){this.__v_isRef=!0,this._value=void 0;const o=this.dep=new wa,{get:n,set:r}=t(o.track.bind(o),o.trigger.bind(o));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function V1(e){return new W1(e)}function uh(e){const t=Je(e)?new Array(e.length):{};for(const o in e)t[o]=fh(e,o);return t}class U1{constructor(t,o,n){this._object=t,this._key=o,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=ut(t);let r=!0,i=t;if(!Je(t)||!ma(String(o)))do r=!Ta(i)||Ao(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=he(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&It(this._raw[this._key])){const o=this._object[this._key];if(It(o)){o.value=t;return}}this._object[this._key]=t}get dep(){return k1(this._raw,this._key)}}class K1{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function _e(e,t,o){return It(e)?e:lt(e)?new K1(e):kt(e)&&arguments.length>1?fh(e,t,o):L(e)}function fh(e,t,o){return new U1(e,t,o)}class q1{constructor(t,o,n){this.fn=t,this.setter=o,this._value=void 0,this.dep=new wa(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ul-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Et!==this)return Kf(this,!0),!0}get value(){const t=this.dep.track();return Xf(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function G1(e,t,o=!1){let n,r;return lt(e)?n=e:(n=e.get,r=e.set),new q1(n,r,o)}const za={},Ea=new WeakMap;let Fr;function X1(e,t=!1,o=Fr){if(o){let n=Ea.get(o);n||Ea.set(o,n=[]),n.push(e)}}function Y1(e,t,o=St){const{immediate:n,deep:r,once:i,scheduler:l,augmentJob:a,call:s}=o,c=C=>r?C:Ao(C)||r===!1||r===0?Dn(C,1):Dn(C);let d,u,p,v,h=!1,g=!1;if(It(e)?(u=()=>e.value,h=Ao(e)):Bn(e)?(u=()=>c(e),h=!0):Je(e)?(g=!0,h=e.some(C=>Bn(C)||Ao(C)),u=()=>e.map(C=>{if(It(C))return C.value;if(Bn(C))return c(C);if(lt(C))return s?s(C,2):C()})):lt(e)?t?u=s?()=>s(e,2):e:u=()=>{if(p){pn();try{p()}finally{vn()}}const C=Fr;Fr=d;try{return s?s(e,3,[v]):e(v)}finally{Fr=C}}:u=hn,t&&r){const C=u,y=r===!0?1/0:r;u=()=>Dn(C(),y)}const b=Wf(),m=()=>{d.stop(),b&&b.active&&vc(b.effects,d)};if(i&&t){const C=t;t=(...y)=>{C(...y),m()}}let x=g?new Array(e.length).fill(za):za;const S=C=>{if(!(!(d.flags&1)||!d.dirty&&!C))if(t){const y=d.run();if(r||h||(g?y.some((R,P)=>ao(R,x[P])):ao(y,x))){p&&p();const R=Fr;Fr=d;try{const P=[y,x===za?void 0:g&&x[0]===za?[]:x,v];x=y,s?s(t,3,P):t(...P)}finally{Fr=R}}}else d.run()};return a&&a(S),d=new Vf(u),d.scheduler=l?()=>l(S,!1):S,v=C=>X1(C,!1,d),p=d.onStop=()=>{const C=Ea.get(d);if(C){if(s)s(C,4);else for(const y of C)y();Ea.delete(d)}},t?n?S(!0):x=d.run():l?l(S.bind(null,!0),!0):d.run(),m.pause=d.pause.bind(d),m.resume=d.resume.bind(d),m.stop=m,m}function Dn(e,t=1/0,o){if(t<=0||!kt(e)||e.__v_skip||(o=o||new Map,(o.get(e)||0)>=t))return e;if(o.set(e,t),t--,It(e))Dn(e.value,t,o);else if(Je(e))for(let n=0;n<e.length;n++)Dn(e[n],t,o);else if(Ef(e)||yi(e))e.forEach(n=>{Dn(n,t,o)});else if(Ff(e)){for(const n in e)Dn(e[n],t,o);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Dn(e[n],t,o)}return e}/**
|
|
10
10
|
* @vue/runtime-core v3.5.30
|
|
11
11
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
12
|
* @license MIT
|
|
13
|
-
**/const vl=[];let zc=!1;function
|
|
13
|
+
**/const vl=[];let zc=!1;function j7(e,...t){if(zc)return;zc=!0,pn();const o=vl.length?vl[vl.length-1].component:null,n=o&&o.appContext.config.warnHandler,r=J1();if(n)Si(n,o,11,[e+t.map(i=>{var l,a;return(a=(l=i.toString)==null?void 0:l.call(i))!=null?a:JSON.stringify(i)}).join(""),o&&o.proxy,r.map(({vnode:i})=>`at <${Sp(o,i.type)}>`).join(`
|
|
14
14
|
`),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(`
|
|
15
15
|
`,...Z1(r)),console.warn(...i)}vn(),zc=!1}function J1(){let e=vl[vl.length-1];if(!e)return[];const t=[];for(;e;){const o=t[0];o&&o.vnode===e?o.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function Z1(e){const t=[];return e.forEach((o,n)=>{t.push(...n===0?[]:[`
|
|
16
|
-
`],...Q1(o))}),t}function Q1({vnode:e,recurseCount:t}){const o=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,r=` at <${Sp(e.component,e.type,n)}`,i=">"+o;return e.props?[r,...eC(e.props),i]:[r+i]}function eC(e){const t=[],o=Object.keys(e);return o.slice(0,3).forEach(n=>{t.push(...hh(n,e[n]))}),o.length>3&&t.push(" ..."),t}function hh(e,t,o){return Mt(t)?(t=JSON.stringify(t),o?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?o?t:[`${e}=${t}`]:It(t)?(t=hh(e,ut(t.value),!0),o?t:[`${e}=Ref<`,t,">"]):lt(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ut(t),o?t:[`${e}=`,t])}function Si(e,t,o,n){try{return n?e(...n):e()}catch(r){Oa(r,t,o)}}function en(e,t,o,n){if(lt(e)){const r=Si(e,t,o,n);return r&&If(r)&&r.catch(i=>{Oa(i,t,o)}),r}if(Je(e)){const r=[];for(let i=0;i<e.length;i++)r.push(en(e[i],t,o,n));return r}}function Oa(e,t,o,n=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||St;if(t){let a=t.parent;const s=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${o}`;for(;a;){const d=a.ec;if(d){for(let u=0;u<d.length;u++)if(d[u](e,s,c)===!1)return}a=a.parent}if(i){pn(),Si(i,null,10,[e,s,c]),vn();return}}tC(e,o,r,n,l)}function tC(e,t,o,n=!0,r=!1){if(r)throw e;console.error(e)}const wo=[];let bn=-1;const ki=[];let or=null,Ri=0;const ph=Promise.resolve();let Ia=null;function $t(e){const t=Ia||ph;return e?t.then(this?e.bind(this):e):t}function oC(e){let t=bn+1,o=wo.length;for(;t<o;){const n=t+o>>>1,r=wo[n],i=gl(r);i<e||i===e&&r.flags&2?t=n+1:o=n}return t}function Ec(e){if(!(e.flags&1)){const t=gl(e),o=wo[wo.length-1];!o||!(e.flags&2)&&t>=gl(o)?wo.push(e):wo.splice(oC(t),0,e),e.flags|=1,vh()}}function vh(){Ia||(Ia=ph.then(bh))}function nC(e){Je(e)?ki.push(...e):or&&e.id===-1?or.splice(Ri+1,0,e):e.flags&1||(ki.push(e),e.flags|=1),vh()}function gh(e,t,o=bn+1){for(;o<wo.length;o++){const n=wo[o];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;wo.splice(o,1),o--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function mh(e){if(ki.length){const t=[...new Set(ki)].sort((o,n)=>gl(o)-gl(n));if(ki.length=0,or){or.push(...t);return}for(or=t,Ri=0;Ri<or.length;Ri++){const o=or[Ri];o.flags&4&&(o.flags&=-2),o.flags&8||o(),o.flags&=-2}or=null,Ri=0}}const gl=e=>e.id==null?e.flags&2?-1:1/0:e.id;function bh(e){try{for(bn=0;bn<wo.length;bn++){const t=wo[bn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Si(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;bn<wo.length;bn++){const t=wo[bn];t&&(t.flags&=-2)}bn=-1,wo.length=0,mh(),Ia=null,(wo.length||ki.length)&&bh()}}let ro=null,xh=null;function Aa(e){const t=ro;return ro=e,xh=e&&e.type.__scopeId||null,t}function He(e,t=ro,o){if(!t||e._n)return e;const n=(...r)=>{n._d&&Ka(-1);const i=Aa(t);let l;try{l=e(...r)}finally{Aa(i),n._d&&Ka(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}function Ut(e,t){if(ro===null)return e;const o=Xa(ro),n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,l,a,s=St]=t[r];i&&(lt(i)&&(i={mounted:i,updated:i}),i.deep&&Dn(l),n.push({dir:i,instance:o,value:l,oldValue:void 0,arg:a,modifiers:s}))}return e}function Mr(e,t,o,n){const r=e.dirs,i=t&&t.dirs;for(let l=0;l<r.length;l++){const a=r[l];i&&(a.oldValue=i[l].value);let s=a.dir[n];s&&(pn(),en(s,o,8,[e.el,a,e,t]),vn())}}function tt(e,t){if(fo){let o=fo.provides;const n=fo.parent&&fo.parent.provides;n===o&&(o=fo.provides=Object.create(n)),o[e]=t}}function Be(e,t,o=!1){const n=Wn();if(n||Lr){let r=Lr?Lr._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return o&<(t)?t.call(n&&n.proxy):t}}function rC(){return!!(Wn()||Lr)}const iC=Symbol.for("v-scx"),lC=()=>Be(iC);function Lt(e,t){return Fa(e,null,t)}function aC(e,t){return Fa(e,null,{flush:"sync"})}function Ze(e,t,o){return Fa(e,t,o)}function Fa(e,t,o=St){const{immediate:n,deep:r,flush:i,once:l}=o,a=Vt({},o),s=t&&n||!t&&i!=="post";let c;if(zl){if(i==="sync"){const v=lC();c=v.__watcherHandles||(v.__watcherHandles=[])}else if(!s){const v=()=>{};return v.stop=hn,v.resume=hn,v.pause=hn,v}}const d=fo;a.call=(v,h,g)=>en(v,d,h,g);let u=!1;i==="post"?a.scheduler=v=>{uo(v,d&&d.suspense)}:i!=="sync"&&(u=!0,a.scheduler=(v,h)=>{h?v():Ec(v)}),a.augmentJob=v=>{t&&(v.flags|=4),u&&(v.flags|=2,d&&(v.id=d.uid,v.i=d))};const p=Y1(e,t,a);return zl&&(c?c.push(p):s&&p()),p}function sC(e,t,o){const n=this.proxy,r=Mt(e)?e.includes(".")?yh(n,e):()=>n[e]:e.bind(n,n);let i;lt(t)?i=t:(i=t.handler,o=t);const l=Tl(this),a=Fa(r,i.bind(n),o);return l(),a}function yh(e,t){const o=t.split(".");return()=>{let n=e;for(let r=0;r<o.length&&n;r++)n=n[o[r]];return n}}const Ch=Symbol("_vte"),wh=e=>e.__isTeleport,ml=e=>e&&(e.disabled||e.disabled===""),Sh=e=>e&&(e.defer||e.defer===""),kh=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Rh=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Oc=(e,t)=>{const o=e&&e.to;return Mt(o)?t?t(o):null:o},Ph={name:"Teleport",__isTeleport:!0,process(e,t,o,n,r,i,l,a,s,c){const{mc:d,pc:u,pbc:p,o:{insert:v,querySelector:h,createText:g,createComment:b}}=c,m=ml(t.props);let{shapeFlag:x,children:S,dynamicChildren:C}=t;if(e==null){const y=t.el=g(""),R=t.anchor=g("");v(y,o,n),v(R,o,n);const P=(_,B)=>{x&16&&d(S,_,B,r,i,l,a,s)},w=()=>{const _=t.target=Oc(t.props,h),B=Ic(_,t,g,v);_&&(l!=="svg"&&kh(_)?l="svg":l!=="mathml"&&Rh(_)&&(l="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(_),m||(P(_,B),Ba(t,!1)))};m&&(P(o,R),Ba(t,!0)),Sh(t.props)?(t.el.__isMounted=!1,uo(()=>{w(),delete t.el.__isMounted},i)):w()}else{if(Sh(t.props)&&e.el.__isMounted===!1){uo(()=>{Ph.process(e,t,o,n,r,i,l,a,s,c)},i);return}t.el=e.el,t.targetStart=e.targetStart;const y=t.anchor=e.anchor,R=t.target=e.target,P=t.targetAnchor=e.targetAnchor,w=ml(e.props),_=w?o:R,B=w?y:P;if(l==="svg"||kh(R)?l="svg":(l==="mathml"||Rh(R))&&(l="mathml"),C?(p(e.dynamicChildren,C,_,r,i,l,a),Uc(e,t,!0)):s||u(e,t,_,B,r,i,l,a,!1),m)w?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ma(t,o,y,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const z=t.target=Oc(t.props,h);z&&Ma(t,z,null,c,0)}else w&&Ma(t,R,P,c,1);Ba(t,m)}},remove(e,t,o,{um:n,o:{remove:r}},i){const{shapeFlag:l,children:a,anchor:s,targetStart:c,targetAnchor:d,target:u,props:p}=e;if(u&&(r(c),r(d)),i&&r(s),l&16){const v=i||!ml(p);for(let h=0;h<a.length;h++){const g=a[h];n(g,t,o,v,!!g.dynamicChildren)}}},move:Ma,hydrate:cC};function Ma(e,t,o,{o:{insert:n},m:r},i=2){i===0&&n(e.targetAnchor,t,o);const{el:l,anchor:a,shapeFlag:s,children:c,props:d}=e,u=i===2;if(u&&n(l,t,o),(!u||ml(d))&&s&16)for(let p=0;p<c.length;p++)r(c[p],t,o,2);u&&n(a,t,o)}function cC(e,t,o,n,r,i,{o:{nextSibling:l,parentNode:a,querySelector:s,insert:c,createText:d}},u){function p(b,m){let x=m;for(;x;){if(x&&x.nodeType===8){if(x.data==="teleport start anchor")t.targetStart=x;else if(x.data==="teleport anchor"){t.targetAnchor=x,b._lpa=t.targetAnchor&&l(t.targetAnchor);break}}x=l(x)}}function v(b,m){m.anchor=u(l(b),m,a(b),o,n,r,i)}const h=t.target=Oc(t.props,s),g=ml(t.props);if(h){const b=h._lpa||h.firstChild;t.shapeFlag&16&&(g?(v(e,t),p(h,b),t.targetAnchor||Ic(h,t,d,c,a(e)===h?e:null)):(t.anchor=l(e),p(h,b),t.targetAnchor||Ic(h,t,d,c),u(b&&l(b),t,h,o,n,r,i))),Ba(t,g)}else g&&t.shapeFlag&16&&(v(e,t),t.targetStart=e,t.targetAnchor=l(e));return t.anchor&&l(t.anchor)}const bl=Ph;function Ba(e,t){const o=e.ctx;if(o&&o.ut){let n,r;for(t?(n=e.el,r=e.anchor):(n=e.targetStart,r=e.targetAnchor);n&&n!==r;)n.nodeType===1&&n.setAttribute("data-v-owner",o.uid),n=n.nextSibling;o.ut()}}function Ic(e,t,o,n,r=null){const i=t.targetStart=o(""),l=t.targetAnchor=o("");return i[Ch]=l,e&&(n(i,e,r),n(l,e,r)),l}const xn=Symbol("_leaveCb"),xl=Symbol("_enterCb");function _h(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Bt(()=>{e.isMounted=!0}),Dt(()=>{e.isUnmounting=!0}),e}const Vo=[Function,Array],$h={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Vo,onEnter:Vo,onAfterEnter:Vo,onEnterCancelled:Vo,onBeforeLeave:Vo,onLeave:Vo,onAfterLeave:Vo,onLeaveCancelled:Vo,onBeforeAppear:Vo,onAppear:Vo,onAfterAppear:Vo,onAppearCancelled:Vo},Th=e=>{const t=e.subTree;return t.component?Th(t.component):t},dC={name:"BaseTransition",props:$h,setup(e,{slots:t}){const o=Wn(),n=_h();return()=>{const r=t.default&&Fc(t.default(),!0);if(!r||!r.length)return;const i=zh(r),l=ut(e),{mode:a}=l;if(n.isLeaving)return Ac(i);const s=Oh(i);if(!s)return Ac(i);let c=yl(s,l,n,o,u=>c=u);s.type!==Yt&&Br(s,c);let d=o.subTree&&Oh(o.subTree);if(d&&d.type!==Yt&&!Hr(d,s)&&Th(o).type!==Yt){let u=yl(d,l,n,o);if(Br(d,u),a==="out-in"&&s.type!==Yt)return n.isLeaving=!0,u.afterLeave=()=>{n.isLeaving=!1,o.job.flags&8||o.update(),delete u.afterLeave,d=void 0},Ac(i);a==="in-out"&&s.type!==Yt?u.delayLeave=(p,v,h)=>{const g=Eh(n,d);g[String(d.key)]=d,p[xn]=()=>{v(),p[xn]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{h(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return i}}};function zh(e){let t=e[0];if(e.length>1){for(const o of e)if(o.type!==Yt){t=o;break}}return t}const uC=dC;function Eh(e,t){const{leavingVNodes:o}=e;let n=o.get(t.type);return n||(n=Object.create(null),o.set(t.type,n)),n}function yl(e,t,o,n,r){const{appear:i,mode:l,persisted:a=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:p,onLeave:v,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:b,onAppear:m,onAfterAppear:x,onAppearCancelled:S}=t,C=String(e.key),y=Eh(o,e),R=(_,B)=>{_&&en(_,n,9,B)},P=(_,B)=>{const z=B[1];R(_,B),Je(_)?_.every(O=>O.length<=1)&&z():_.length<=1&&z()},w={mode:l,persisted:a,beforeEnter(_){let B=s;if(!o.isMounted)if(i)B=b||s;else return;_[xn]&&_[xn](!0);const z=y[C];z&&Hr(e,z)&&z.el[xn]&&z.el[xn](),R(B,[_])},enter(_){if(y[C]===e)return;let B=c,z=d,O=u;if(!o.isMounted)if(i)B=m||c,z=x||d,O=S||u;else return;let A=!1;_[xl]=W=>{A||(A=!0,W?R(O,[_]):R(z,[_]),w.delayedLeave&&w.delayedLeave(),_[xl]=void 0)};const U=_[xl].bind(null,!1);B?P(B,[_,U]):U()},leave(_,B){const z=String(e.key);if(_[xl]&&_[xl](!0),o.isUnmounting)return B();R(p,[_]);let O=!1;_[xn]=U=>{O||(O=!0,B(),U?R(g,[_]):R(h,[_]),_[xn]=void 0,y[z]===e&&delete y[z])};const A=_[xn].bind(null,!1);y[z]=e,v?P(v,[_,A]):A()},clone(_){const B=yl(_,t,o,n,r);return r&&r(B),B}};return w}function Ac(e){if(Da(e))return e=tn(e),e.children=null,e}function Oh(e){if(!Da(e))return wh(e.type)&&e.children?zh(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&<(o.default))return o.default()}}function Br(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Br(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Fc(e,t=!1,o){let n=[],r=0;for(let i=0;i<e.length;i++){let l=e[i];const a=o==null?l.key:String(o)+String(l.key!=null?l.key:i);l.type===Ue?(l.patchFlag&128&&r++,n=n.concat(Fc(l.children,t,a))):(t||l.type!==Yt)&&n.push(a!=null?tn(l,{key:a}):l)}if(r>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}function ge(e,t){return lt(e)?Vt({name:e.name},t,{setup:e}):e}function Ih(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ah(e,t){let o;return!!((o=Object.getOwnPropertyDescriptor(e,t))&&!o.configurable)}const La=new WeakMap;function Cl(e,t,o,n,r=!1){if(Je(e)){e.forEach((g,b)=>Cl(g,t&&(Je(t)?t[b]:t),o,n,r));return}if(Pi(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Cl(e,t,o,n.component.subTree);return}const i=n.shapeFlag&4?Xa(n.component):n.el,l=r?null:i,{i:a,r:s}=e,c=t&&t.r,d=a.refs===St?a.refs={}:a.refs,u=a.setupState,p=ut(u),v=u===St?zf:g=>Ah(d,g)?!1:Rt(p,g),h=(g,b)=>!(b&&Ah(d,b));if(c!=null&&c!==s){if(Fh(t),Mt(c))d[c]=null,v(c)&&(u[c]=null);else if(It(c)){const g=t;h(c,g.k)&&(c.value=null),g.k&&(d[g.k]=null)}}if(lt(s))Si(s,a,12,[l,d]);else{const g=Mt(s),b=It(s);if(g||b){const m=()=>{if(e.f){const x=g?v(s)?u[s]:d[s]:h()||!e.k?s.value:d[e.k];if(r)Je(x)&&vc(x,i);else if(Je(x))x.includes(i)||x.push(i);else if(g)d[s]=[i],v(s)&&(u[s]=d[s]);else{const S=[i];h(s,e.k)&&(s.value=S),e.k&&(d[e.k]=S)}}else g?(d[s]=l,v(s)&&(u[s]=l)):b&&(h(s,e.k)&&(s.value=l),e.k&&(d[e.k]=l))};if(l){const x=()=>{m(),La.delete(e)};x.id=-1,La.set(e,x),uo(x,o)}else Fh(e),m()}}}function Fh(e){const t=La.get(e);t&&(t.flags|=8,La.delete(e))}Ca().requestIdleCallback,Ca().cancelIdleCallback;const Pi=e=>!!e.type.__asyncLoader,Da=e=>e.type.__isKeepAlive;function Mc(e,t){Mh(e,"a",t)}function Ha(e,t){Mh(e,"da",t)}function Mh(e,t,o=fo){const n=e.__wdc||(e.__wdc=()=>{let r=o;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Na(t,n,o),o){let r=o.parent;for(;r&&r.parent;)Da(r.parent.vnode)&&fC(n,t,o,r),r=r.parent}}function fC(e,t,o,n){const r=Na(t,e,n,!0);wl(()=>{vc(n[t],r)},o)}function Na(e,t,o=fo,n=!1){if(o){const r=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...l)=>{pn();const a=Tl(o),s=en(t,o,e,l);return a(),vn(),s});return n?r.unshift(i):r.push(i),i}}const Hn=e=>(t,o=fo)=>{(!zl||e==="sp")&&Na(e,(...n)=>t(...n),o)},Nn=Hn("bm"),Bt=Hn("m"),hC=Hn("bu"),Bh=Hn("u"),Dt=Hn("bum"),wl=Hn("um"),pC=Hn("sp"),vC=Hn("rtg"),gC=Hn("rtc");function mC(e,t=fo){Na("ec",e,t)}const Lh="components";function bC(e,t){return Nh(Lh,e,!0,t)||e}const Dh=Symbol.for("v-ndc");function Hh(e){return Mt(e)?Nh(Lh,e,!1)||e:e||Dh}function Nh(e,t,o=!0,n=!1){const r=ro||fo;if(r){const i=r.type;{const a=wp(i,!1);if(a&&(a===t||a===lo(t)||a===xa(lo(t))))return i}const l=jh(r[e]||i[e],t)||jh(r.appContext[e],t);return!l&&n?i:l}}function jh(e,t){return e&&(e[t]||e[lo(t)]||e[xa(lo(t))])}function To(e,t,o,n){let r;const i=o,l=Je(e);if(l||Mt(e)){const a=l&&Bn(e);let s=!1,c=!1;a&&(s=!Ao(e),c=Ln(e),e=ka(e)),r=new Array(e.length);for(let d=0,u=e.length;d<u;d++)r[d]=t(s?c?wi(Qo(e[d])):Qo(e[d]):e[d],d,void 0,i)}else if(typeof e=="number"){r=new Array(e);for(let a=0;a<e;a++)r[a]=t(a+1,a,void 0,i)}else if(kt(e))if(e[Symbol.iterator])r=Array.from(e,(a,s)=>t(a,s,void 0,i));else{const a=Object.keys(e);r=new Array(a.length);for(let s=0,c=a.length;s<c;s++){const d=a[s];r[s]=t(e[d],d,s,i)}}else r=[];return r}function Wh(e,t,o={},n,r){if(ro.ce||ro.parent&&Pi(ro.parent)&&ro.parent.ce){const c=Object.keys(o).length>0;return me(),mt(Ue,null,[Se("slot",o,n)],c?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),me();const l=i&&Vh(i(o)),a=o.key||l&&l.key,s=mt(Ue,{key:(a&&!Jo(a)?a:`_${t}`)+(!l&&n?"_fb":"")},l||[],l&&e._===1?64:-2);return s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function Vh(e){return e.some(t=>$i(t)?!(t.type===Yt||t.type===Ue&&!Vh(t.children)):!0)?e:null}const Bc=e=>e?xp(e)?Xa(e):Bc(e.parent):null,Sl=Vt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Bc(e.parent),$root:e=>Bc(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Gh(e),$forceUpdate:e=>e.f||(e.f=()=>{Ec(e.update)}),$nextTick:e=>e.n||(e.n=$t.bind(e.proxy)),$watch:e=>sC.bind(e)}),Lc=(e,t)=>e!==St&&!e.__isScriptSetup&&Rt(e,t),xC={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:o,setupState:n,data:r,props:i,accessCache:l,type:a,appContext:s}=e;if(t[0]!=="$"){const p=l[t];if(p!==void 0)switch(p){case 1:return n[t];case 2:return r[t];case 4:return o[t];case 3:return i[t]}else{if(Lc(n,t))return l[t]=1,n[t];if(r!==St&&Rt(r,t))return l[t]=2,r[t];if(Rt(i,t))return l[t]=3,i[t];if(o!==St&&Rt(o,t))return l[t]=4,o[t];Dc&&(l[t]=0)}}const c=Sl[t];let d,u;if(c)return t==="$attrs"&&co(e.attrs,"get",""),c(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(o!==St&&Rt(o,t))return l[t]=4,o[t];if(u=s.config.globalProperties,Rt(u,t))return u[t]},set({_:e},t,o){const{data:n,setupState:r,ctx:i}=e;return Lc(r,t)?(r[t]=o,!0):n!==St&&Rt(n,t)?(n[t]=o,!0):Rt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:n,appContext:r,props:i,type:l}},a){let s;return!!(o[a]||e!==St&&a[0]!=="$"&&Rt(e,a)||Lc(t,a)||Rt(i,a)||Rt(n,a)||Rt(Sl,a)||Rt(r.config.globalProperties,a)||(s=l.__cssModules)&&s[a])},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:Rt(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function ja(e){return Je(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}function Uh(e,t){return!e||!t?e||t:Je(e)&&Je(t)?e.concat(t):Vt({},ja(e),ja(t))}let Dc=!0;function yC(e){const t=Gh(e),o=e.proxy,n=e.ctx;Dc=!1,t.beforeCreate&&Kh(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:l,watch:a,provide:s,inject:c,created:d,beforeMount:u,mounted:p,beforeUpdate:v,updated:h,activated:g,deactivated:b,beforeDestroy:m,beforeUnmount:x,destroyed:S,unmounted:C,render:y,renderTracked:R,renderTriggered:P,errorCaptured:w,serverPrefetch:_,expose:B,inheritAttrs:z,components:O,directives:A,filters:U}=t;if(c&&CC(c,n,null),l)for(const T in l){const k=l[T];lt(k)&&(n[T]=k.bind(o))}if(r){const T=r.call(o,o);kt(T)&&(e.data=mn(T))}if(Dc=!0,i)for(const T in i){const k=i[T],I=lt(k)?k.bind(o,o):lt(k.get)?k.get.bind(o,o):hn,Y=!lt(k)&<(k.set)?k.set.bind(o):hn,j=E({get:I,set:Y});Object.defineProperty(n,T,{enumerable:!0,configurable:!0,get:()=>j.value,set:ee=>j.value=ee})}if(a)for(const T in a)qh(a[T],n,o,T);if(s){const T=lt(s)?s.call(o):s;Reflect.ownKeys(T).forEach(k=>{tt(k,T[k])})}d&&Kh(d,e,"c");function F(T,k){Je(k)?k.forEach(I=>T(I.bind(o))):k&&T(k.bind(o))}if(F(Nn,u),F(Bt,p),F(hC,v),F(Bh,h),F(Mc,g),F(Ha,b),F(mC,w),F(gC,R),F(vC,P),F(Dt,x),F(wl,C),F(pC,_),Je(B))if(B.length){const T=e.exposed||(e.exposed={});B.forEach(k=>{Object.defineProperty(T,k,{get:()=>o[k],set:I=>o[k]=I,enumerable:!0})})}else e.exposed||(e.exposed={});y&&e.render===hn&&(e.render=y),z!=null&&(e.inheritAttrs=z),O&&(e.components=O),A&&(e.directives=A),_&&Ih(e)}function CC(e,t,o=hn){Je(e)&&(e=Hc(e));for(const n in e){const r=e[n];let i;kt(r)?"default"in r?i=Be(r.from||n,r.default,!0):i=Be(r.from||n):i=Be(r),It(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:l=>i.value=l}):t[n]=i}}function Kh(e,t,o){en(Je(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,o)}function qh(e,t,o,n){let r=n.includes(".")?yh(o,n):()=>o[n];if(Mt(e)){const i=t[e];lt(i)&&Ze(r,i)}else if(lt(e))Ze(r,e.bind(o));else if(kt(e))if(Je(e))e.forEach(i=>qh(i,t,o,n));else{const i=lt(e.handler)?e.handler.bind(o):t[e.handler];lt(i)&&Ze(r,i,e)}}function Gh(e){const t=e.type,{mixins:o,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let s;return a?s=a:!r.length&&!o&&!n?s=t:(s={},r.length&&r.forEach(c=>Wa(s,c,l,!0)),Wa(s,t,l)),kt(t)&&i.set(t,s),s}function Wa(e,t,o,n=!1){const{mixins:r,extends:i}=t;i&&Wa(e,i,o,!0),r&&r.forEach(l=>Wa(e,l,o,!0));for(const l in t)if(!(n&&l==="expose")){const a=wC[l]||o&&o[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const wC={data:Xh,props:Yh,emits:Yh,methods:kl,computed:kl,beforeCreate:So,created:So,beforeMount:So,mounted:So,beforeUpdate:So,updated:So,beforeDestroy:So,beforeUnmount:So,destroyed:So,unmounted:So,activated:So,deactivated:So,errorCaptured:So,serverPrefetch:So,components:kl,directives:kl,watch:kC,provide:Xh,inject:SC};function Xh(e,t){return t?e?function(){return Vt(lt(e)?e.call(this,this):e,lt(t)?t.call(this,this):t)}:t:e}function SC(e,t){return kl(Hc(e),Hc(t))}function Hc(e){if(Je(e)){const t={};for(let o=0;o<e.length;o++)t[e[o]]=e[o];return t}return e}function So(e,t){return e?[...new Set([].concat(e,t))]:t}function kl(e,t){return e?Vt(Object.create(null),e,t):t}function Yh(e,t){return e?Je(e)&&Je(t)?[...new Set([...e,...t])]:Vt(Object.create(null),ja(e),ja(t??{})):t}function kC(e,t){if(!e)return t;if(!t)return e;const o=Vt(Object.create(null),e);for(const n in t)o[n]=So(e[n],t[n]);return o}function Jh(){return{app:null,config:{isNativeTag:zf,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 RC=0;function PC(e,t){return function(n,r=null){lt(n)||(n=Vt({},n)),r!=null&&!kt(r)&&(r=null);const i=Jh(),l=new WeakSet,a=[];let s=!1;const c=i.app={_uid:RC++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:nw,get config(){return i.config},set config(d){},use(d,...u){return l.has(d)||(d&<(d.install)?(l.add(d),d.install(c,...u)):lt(d)&&(l.add(d),d(c,...u))),c},mixin(d){return i.mixins.includes(d)||i.mixins.push(d),c},component(d,u){return u?(i.components[d]=u,c):i.components[d]},directive(d,u){return u?(i.directives[d]=u,c):i.directives[d]},mount(d,u,p){if(!s){const v=c._ceVNode||Se(n,r);return v.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),e(v,d,p),s=!0,c._container=d,d.__vue_app__=c,Xa(v.component)}},onUnmount(d){a.push(d)},unmount(){s&&(en(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(d,u){return i.provides[d]=u,c},runWithContext(d){const u=Lr;Lr=c;try{return d()}finally{Lr=u}}};return c}}let Lr=null;function _i(e,t,o=St){const n=Wn(),r=lo(t),i=An(t),l=Zh(e,r),a=V1((s,c)=>{let d,u=St,p;return aC(()=>{const v=e[r];ao(d,v)&&(d=v,c())}),{get(){return s(),o.get?o.get(d):d},set(v){const h=o.set?o.set(v):v;if(!ao(h,d)&&!(u!==St&&ao(v,u)))return;const g=n.vnode.props;g&&(t in g||r in g||i in g)&&(`onUpdate:${t}`in g||`onUpdate:${r}`in g||`onUpdate:${i}`in g)||(d=v,c()),n.emit(`update:${t}`,h),ao(v,h)&&ao(v,u)&&!ao(h,p)&&c(),u=v,p=h}}});return a[Symbol.iterator]=()=>{let s=0;return{next(){return s<2?{value:s++?l||St:a,done:!1}:{done:!0}}}},a}const Zh=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${lo(t)}Modifiers`]||e[`${An(t)}Modifiers`];function _C(e,t,...o){if(e.isUnmounted)return;const n=e.vnode.props||St;let r=o;const i=t.startsWith("update:"),l=i&&Zh(n,t.slice(7));l&&(l.trim&&(r=o.map(d=>Mt(d)?d.trim():d)),l.number&&(r=o.map(mc)));let a,s=n[a=gc(t)]||n[a=gc(lo(t))];!s&&i&&(s=n[a=gc(An(t))]),s&&en(s,e,6,r);const c=n[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,en(c,e,6,r)}}const $C=new WeakMap;function Qh(e,t,o=!1){const n=o?$C:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let l={},a=!1;if(!lt(e)){const s=c=>{const d=Qh(c,t,!0);d&&(a=!0,Vt(l,d))};!o&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!a?(kt(e)&&n.set(e,null),null):(Je(i)?i.forEach(s=>l[s]=null):Vt(l,i),kt(e)&&n.set(e,l),l)}function Va(e,t){return!e||!ga(t)?!1:(t=t.slice(2).replace(/Once$/,""),Rt(e,t[0].toLowerCase()+t.slice(1))||Rt(e,An(t))||Rt(e,t))}function j7(){}function ep(e){const{type:t,vnode:o,proxy:n,withProxy:r,propsOptions:[i],slots:l,attrs:a,emit:s,render:c,renderCache:d,props:u,data:p,setupState:v,ctx:h,inheritAttrs:g}=e,b=Aa(e);let m,x;try{if(o.shapeFlag&4){const C=r||n,y=C;m=yn(c.call(y,C,d,u,v,p,h)),x=a}else{const C=t;m=yn(C.length>1?C(u,{attrs:a,slots:l,emit:s}):C(u,null)),x=t.props?a:TC(a)}}catch(C){Pl.length=0,Oa(C,e,1),m=Se(Yt)}let S=m;if(x&&g!==!1){const C=Object.keys(x),{shapeFlag:y}=S;C.length&&y&7&&(i&&C.some(pc)&&(x=zC(x,i)),S=tn(S,x,!1,!0))}return o.dirs&&(S=tn(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(o.dirs):o.dirs),o.transition&&Br(S,o.transition),m=S,Aa(b),m}const TC=e=>{let t;for(const o in e)(o==="class"||o==="style"||ga(o))&&((t||(t={}))[o]=e[o]);return t},zC=(e,t)=>{const o={};for(const n in e)(!pc(n)||!(n.slice(9)in t))&&(o[n]=e[n]);return o};function EC(e,t,o){const{props:n,children:r,component:i}=e,{props:l,children:a,patchFlag:s}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&s>=0){if(s&1024)return!0;if(s&16)return n?tp(n,l,c):!!l;if(s&8){const d=t.dynamicProps;for(let u=0;u<d.length;u++){const p=d[u];if(op(l,n,p)&&!Va(c,p))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:n===l?!1:n?l?tp(n,l,c):!0:!!l;return!1}function tp(e,t,o){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const i=n[r];if(op(t,e,i)&&!Va(o,i))return!0}return!1}function op(e,t,o){const n=e[o],r=t[o];return o==="style"&&kt(n)&&kt(r)?!bc(n,r):n!==r}function OC({vnode:e,parent:t},o){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=o,t=t.parent;else break}}const np={},rp=()=>Object.create(np),ip=e=>Object.getPrototypeOf(e)===np;function IC(e,t,o,n=!1){const r={},i=rp();e.propsDefaults=Object.create(null),lp(e,t,r,i);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);o?e.props=n?r:sh(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function AC(e,t,o,n){const{props:r,attrs:i,vnode:{patchFlag:l}}=e,a=ut(r),[s]=e.propsOptions;let c=!1;if((n||l>0)&&!(l&16)){if(l&8){const d=e.vnode.dynamicProps;for(let u=0;u<d.length;u++){let p=d[u];if(Va(e.emitsOptions,p))continue;const v=t[p];if(s)if(Rt(i,p))v!==i[p]&&(i[p]=v,c=!0);else{const h=lo(p);r[h]=Nc(s,a,h,v,e,!1)}else v!==i[p]&&(i[p]=v,c=!0)}}}else{lp(e,t,r,i)&&(c=!0);let d;for(const u in a)(!t||!Rt(t,u)&&((d=An(u))===u||!Rt(t,d)))&&(s?o&&(o[u]!==void 0||o[d]!==void 0)&&(r[u]=Nc(s,a,u,void 0,e,!0)):delete r[u]);if(i!==a)for(const u in i)(!t||!Rt(t,u))&&(delete i[u],c=!0)}c&&Fn(e.attrs,"set","")}function lp(e,t,o,n){const[r,i]=e.propsOptions;let l=!1,a;if(t)for(let s in t){if(sl(s))continue;const c=t[s];let d;r&&Rt(r,d=lo(s))?!i||!i.includes(d)?o[d]=c:(a||(a={}))[d]=c:Va(e.emitsOptions,s)||(!(s in n)||c!==n[s])&&(n[s]=c,l=!0)}if(i){const s=ut(o),c=a||St;for(let d=0;d<i.length;d++){const u=i[d];o[u]=Nc(r,s,u,c[u],e,!Rt(c,u))}}return l}function Nc(e,t,o,n,r,i){const l=e[o];if(l!=null){const a=Rt(l,"default");if(a&&n===void 0){const s=l.default;if(l.type!==Function&&!l.skipFactory&<(s)){const{propsDefaults:c}=r;if(o in c)n=c[o];else{const d=Tl(r);n=c[o]=s.call(null,t),d()}}else n=s;r.ce&&r.ce._setProp(o,n)}l[0]&&(i&&!a?n=!1:l[1]&&(n===""||n===An(o))&&(n=!0))}return n}const FC=new WeakMap;function ap(e,t,o=!1){const n=o?FC:t.propsCache,r=n.get(e);if(r)return r;const i=e.props,l={},a=[];let s=!1;if(!lt(e)){const d=u=>{s=!0;const[p,v]=ap(u,t,!0);Vt(l,p),v&&a.push(...v)};!o&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!s)return kt(e)&&n.set(e,xi),xi;if(Je(i))for(let d=0;d<i.length;d++){const u=lo(i[d]);sp(u)&&(l[u]=St)}else if(i)for(const d in i){const u=lo(d);if(sp(u)){const p=i[d],v=l[u]=Je(p)||lt(p)?{type:p}:Vt({},p),h=v.type;let g=!1,b=!0;if(Je(h))for(let m=0;m<h.length;++m){const x=h[m],S=lt(x)&&x.name;if(S==="Boolean"){g=!0;break}else S==="String"&&(b=!1)}else g=lt(h)&&h.name==="Boolean";v[0]=g,v[1]=b,(g||Rt(v,"default"))&&a.push(u)}}const c=[l,a];return kt(e)&&n.set(e,c),c}function sp(e){return e[0]!=="$"&&!sl(e)}const jc=e=>e==="_"||e==="_ctx"||e==="$stable",Wc=e=>Je(e)?e.map(yn):[yn(e)],MC=(e,t,o)=>{if(t._n)return t;const n=He((...r)=>Wc(t(...r)),o);return n._c=!1,n},cp=(e,t,o)=>{const n=e._ctx;for(const r in e){if(jc(r))continue;const i=e[r];if(lt(i))t[r]=MC(r,i,n);else if(i!=null){const l=Wc(i);t[r]=()=>l}}},dp=(e,t)=>{const o=Wc(t);e.slots.default=()=>o},up=(e,t,o)=>{for(const n in t)(o||!jc(n))&&(e[n]=t[n])},BC=(e,t,o)=>{const n=e.slots=rp();if(e.vnode.shapeFlag&32){const r=t._;r?(up(n,t,o),o&&Mf(n,"_",r,!0)):cp(t,n)}else t&&dp(e,t)},LC=(e,t,o)=>{const{vnode:n,slots:r}=e;let i=!0,l=St;if(n.shapeFlag&32){const a=t._;a?o&&a===1?i=!1:up(r,t,o):(i=!t.$stable,cp(t,r)),l=t}else t&&(dp(e,t),l={default:1});if(i)for(const a in r)!jc(a)&&l[a]==null&&delete r[a]},uo=WC;function DC(e){return HC(e)}function HC(e,t){const o=Ca();o.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:l,createText:a,createComment:s,setText:c,setElementText:d,parentNode:u,nextSibling:p,setScopeId:v=hn,insertStaticContent:h}=e,g=(H,G,le,xe=null,we=null,ue=null,Q=void 0,be=null,se=!!G.dynamicChildren)=>{if(H===G)return;H&&!Hr(H,G)&&(xe=J(H),ee(H,we,ue,!0),H=null),G.patchFlag===-2&&(se=!1,G.dynamicChildren=null);const{type:ae,ref:ie,shapeFlag:re}=G;switch(ae){case Rl:b(H,G,le,xe);break;case Yt:m(H,G,le,xe);break;case Ua:H==null&&x(G,le,xe,Q);break;case Ue:O(H,G,le,xe,we,ue,Q,be,se);break;default:re&1?y(H,G,le,xe,we,ue,Q,be,se):re&6?A(H,G,le,xe,we,ue,Q,be,se):(re&64||re&128)&&ae.process(H,G,le,xe,we,ue,Q,be,se,ne)}ie!=null&&we?Cl(ie,H&&H.ref,ue,G||H,!G):ie==null&&H&&H.ref!=null&&Cl(H.ref,null,ue,H,!0)},b=(H,G,le,xe)=>{if(H==null)n(G.el=a(G.children),le,xe);else{const we=G.el=H.el;G.children!==H.children&&c(we,G.children)}},m=(H,G,le,xe)=>{H==null?n(G.el=s(G.children||""),le,xe):G.el=H.el},x=(H,G,le,xe)=>{[H.el,H.anchor]=h(H.children,G,le,xe,H.el,H.anchor)},S=({el:H,anchor:G},le,xe)=>{let we;for(;H&&H!==G;)we=p(H),n(H,le,xe),H=we;n(G,le,xe)},C=({el:H,anchor:G})=>{let le;for(;H&&H!==G;)le=p(H),r(H),H=le;r(G)},y=(H,G,le,xe,we,ue,Q,be,se)=>{if(G.type==="svg"?Q="svg":G.type==="math"&&(Q="mathml"),H==null)R(G,le,xe,we,ue,Q,be,se);else{const ae=H.el&&H.el._isVueCE?H.el:null;try{ae&&ae._beginPatch(),_(H,G,we,ue,Q,be,se)}finally{ae&&ae._endPatch()}}},R=(H,G,le,xe,we,ue,Q,be)=>{let se,ae;const{props:ie,shapeFlag:re,transition:te,dirs:ce}=H;if(se=H.el=l(H.type,ue,ie&&ie.is,ie),re&8?d(se,H.children):re&16&&w(H.children,se,null,xe,we,Vc(H,ue),Q,be),ce&&Mr(H,null,xe,"created"),P(se,H,H.scopeId,Q,xe),ie){for(const ze in ie)ze!=="value"&&!sl(ze)&&i(se,ze,null,ie[ze],ue,xe);"value"in ie&&i(se,"value",null,ie.value,ue),(ae=ie.onVnodeBeforeMount)&&Cn(ae,xe,H)}ce&&Mr(H,null,xe,"beforeMount");const pe=NC(we,te);pe&&te.beforeEnter(se),n(se,G,le),((ae=ie&&ie.onVnodeMounted)||pe||ce)&&uo(()=>{ae&&Cn(ae,xe,H),pe&&te.enter(se),ce&&Mr(H,null,xe,"mounted")},we)},P=(H,G,le,xe,we)=>{if(le&&v(H,le),xe)for(let ue=0;ue<xe.length;ue++)v(H,xe[ue]);if(we){let ue=we.subTree;if(G===ue||vp(ue.type)&&(ue.ssContent===G||ue.ssFallback===G)){const Q=we.vnode;P(H,Q,Q.scopeId,Q.slotScopeIds,we.parent)}}},w=(H,G,le,xe,we,ue,Q,be,se=0)=>{for(let ae=se;ae<H.length;ae++){const ie=H[ae]=be?jn(H[ae]):yn(H[ae]);g(null,ie,G,le,xe,we,ue,Q,be)}},_=(H,G,le,xe,we,ue,Q)=>{const be=G.el=H.el;let{patchFlag:se,dynamicChildren:ae,dirs:ie}=G;se|=H.patchFlag&16;const re=H.props||St,te=G.props||St;let ce;if(le&&Dr(le,!1),(ce=te.onVnodeBeforeUpdate)&&Cn(ce,le,G,H),ie&&Mr(G,H,le,"beforeUpdate"),le&&Dr(le,!0),(re.innerHTML&&te.innerHTML==null||re.textContent&&te.textContent==null)&&d(be,""),ae?B(H.dynamicChildren,ae,be,le,xe,Vc(G,we),ue):Q||k(H,G,be,null,le,xe,Vc(G,we),ue,!1),se>0){if(se&16)z(be,re,te,le,we);else if(se&2&&re.class!==te.class&&i(be,"class",null,te.class,we),se&4&&i(be,"style",re.style,te.style,we),se&8){const pe=G.dynamicProps;for(let ze=0;ze<pe.length;ze++){const Ie=pe[ze],je=re[Ie],Ye=te[Ie];(Ye!==je||Ie==="value")&&i(be,Ie,je,Ye,we,le)}}se&1&&H.children!==G.children&&d(be,G.children)}else!Q&&ae==null&&z(be,re,te,le,we);((ce=te.onVnodeUpdated)||ie)&&uo(()=>{ce&&Cn(ce,le,G,H),ie&&Mr(G,H,le,"updated")},xe)},B=(H,G,le,xe,we,ue,Q)=>{for(let be=0;be<G.length;be++){const se=H[be],ae=G[be],ie=se.el&&(se.type===Ue||!Hr(se,ae)||se.shapeFlag&198)?u(se.el):le;g(se,ae,ie,null,xe,we,ue,Q,!0)}},z=(H,G,le,xe,we)=>{if(G!==le){if(G!==St)for(const ue in G)!sl(ue)&&!(ue in le)&&i(H,ue,G[ue],null,we,xe);for(const ue in le){if(sl(ue))continue;const Q=le[ue],be=G[ue];Q!==be&&ue!=="value"&&i(H,ue,be,Q,we,xe)}"value"in le&&i(H,"value",G.value,le.value,we)}},O=(H,G,le,xe,we,ue,Q,be,se)=>{const ae=G.el=H?H.el:a(""),ie=G.anchor=H?H.anchor:a("");let{patchFlag:re,dynamicChildren:te,slotScopeIds:ce}=G;ce&&(be=be?be.concat(ce):ce),H==null?(n(ae,le,xe),n(ie,le,xe),w(G.children||[],le,ie,we,ue,Q,be,se)):re>0&&re&64&&te&&H.dynamicChildren&&H.dynamicChildren.length===te.length?(B(H.dynamicChildren,te,le,we,ue,Q,be),(G.key!=null||we&&G===we.subTree)&&Uc(H,G,!0)):k(H,G,le,ie,we,ue,Q,be,se)},A=(H,G,le,xe,we,ue,Q,be,se)=>{G.slotScopeIds=be,H==null?G.shapeFlag&512?we.ctx.activate(G,le,xe,Q,se):U(G,le,xe,we,ue,Q,se):W(H,G,se)},U=(H,G,le,xe,we,ue,Q)=>{const be=H.component=XC(H,xe,we);if(Da(H)&&(be.ctx.renderer=ne),YC(be,!1,Q),be.asyncDep){if(we&&we.registerDep(be,F,Q),!H.el){const se=be.subTree=Se(Yt);m(null,se,G,le),H.placeholder=se.el}}else F(be,H,G,le,we,ue,Q)},W=(H,G,le)=>{const xe=G.component=H.component;if(EC(H,G,le))if(xe.asyncDep&&!xe.asyncResolved){T(xe,G,le);return}else xe.next=G,xe.update();else G.el=H.el,xe.vnode=G},F=(H,G,le,xe,we,ue,Q)=>{const be=()=>{if(H.isMounted){let{next:re,bu:te,u:ce,parent:pe,vnode:ze}=H;{const wt=fp(H);if(wt){re&&(re.el=ze.el,T(H,re,Q)),wt.asyncDep.then(()=>{uo(()=>{H.isUnmounted||ae()},we)});return}}let Ie=re,je;Dr(H,!1),re?(re.el=ze.el,T(H,re,Q)):re=ze,te&&ya(te),(je=re.props&&re.props.onVnodeBeforeUpdate)&&Cn(je,pe,re,ze),Dr(H,!0);const Ye=ep(H),ot=H.subTree;H.subTree=Ye,g(ot,Ye,u(ot.el),J(ot),H,we,ue),re.el=Ye.el,Ie===null&&OC(H,Ye.el),ce&&uo(ce,we),(je=re.props&&re.props.onVnodeUpdated)&&uo(()=>Cn(je,pe,re,ze),we)}else{let re;const{el:te,props:ce}=G,{bm:pe,m:ze,parent:Ie,root:je,type:Ye}=H,ot=Pi(G);Dr(H,!1),pe&&ya(pe),!ot&&(re=ce&&ce.onVnodeBeforeMount)&&Cn(re,Ie,G),Dr(H,!0);{je.ce&&je.ce._hasShadowRoot()&&je.ce._injectChildStyle(Ye,H.parent?H.parent.type:void 0);const wt=H.subTree=ep(H);g(null,wt,le,xe,H,we,ue),G.el=wt.el}if(ze&&uo(ze,we),!ot&&(re=ce&&ce.onVnodeMounted)){const wt=G;uo(()=>Cn(re,Ie,wt),we)}(G.shapeFlag&256||Ie&&Pi(Ie.vnode)&&Ie.vnode.shapeFlag&256)&&H.a&&uo(H.a,we),H.isMounted=!0,G=le=xe=null}};H.scope.on();const se=H.effect=new Vf(be);H.scope.off();const ae=H.update=se.run.bind(se),ie=H.job=se.runIfDirty.bind(se);ie.i=H,ie.id=H.uid,se.scheduler=()=>Ec(ie),Dr(H,!0),ae()},T=(H,G,le)=>{G.component=H;const xe=H.vnode.props;H.vnode=G,H.next=null,AC(H,G.props,xe,le),LC(H,G.children,le),pn(),gh(H),vn()},k=(H,G,le,xe,we,ue,Q,be,se=!1)=>{const ae=H&&H.children,ie=H?H.shapeFlag:0,re=G.children,{patchFlag:te,shapeFlag:ce}=G;if(te>0){if(te&128){Y(ae,re,le,xe,we,ue,Q,be,se);return}else if(te&256){I(ae,re,le,xe,we,ue,Q,be,se);return}}ce&8?(ie&16&&ve(ae,we,ue),re!==ae&&d(le,re)):ie&16?ce&16?Y(ae,re,le,xe,we,ue,Q,be,se):ve(ae,we,ue,!0):(ie&8&&d(le,""),ce&16&&w(re,le,xe,we,ue,Q,be,se))},I=(H,G,le,xe,we,ue,Q,be,se)=>{H=H||xi,G=G||xi;const ae=H.length,ie=G.length,re=Math.min(ae,ie);let te;for(te=0;te<re;te++){const ce=G[te]=se?jn(G[te]):yn(G[te]);g(H[te],ce,le,null,we,ue,Q,be,se)}ae>ie?ve(H,we,ue,!0,!1,re):w(G,le,xe,we,ue,Q,be,se,re)},Y=(H,G,le,xe,we,ue,Q,be,se)=>{let ae=0;const ie=G.length;let re=H.length-1,te=ie-1;for(;ae<=re&&ae<=te;){const ce=H[ae],pe=G[ae]=se?jn(G[ae]):yn(G[ae]);if(Hr(ce,pe))g(ce,pe,le,null,we,ue,Q,be,se);else break;ae++}for(;ae<=re&&ae<=te;){const ce=H[re],pe=G[te]=se?jn(G[te]):yn(G[te]);if(Hr(ce,pe))g(ce,pe,le,null,we,ue,Q,be,se);else break;re--,te--}if(ae>re){if(ae<=te){const ce=te+1,pe=ce<ie?G[ce].el:xe;for(;ae<=te;)g(null,G[ae]=se?jn(G[ae]):yn(G[ae]),le,pe,we,ue,Q,be,se),ae++}}else if(ae>te)for(;ae<=re;)ee(H[ae],we,ue,!0),ae++;else{const ce=ae,pe=ae,ze=new Map;for(ae=pe;ae<=te;ae++){const Le=G[ae]=se?jn(G[ae]):yn(G[ae]);Le.key!=null&&ze.set(Le.key,ae)}let Ie,je=0;const Ye=te-pe+1;let ot=!1,wt=0;const Tt=new Array(Ye);for(ae=0;ae<Ye;ae++)Tt[ae]=0;for(ae=ce;ae<=re;ae++){const Le=H[ae];if(je>=Ye){ee(Le,we,ue,!0);continue}let ye;if(Le.key!=null)ye=ze.get(Le.key);else for(Ie=pe;Ie<=te;Ie++)if(Tt[Ie-pe]===0&&Hr(Le,G[Ie])){ye=Ie;break}ye===void 0?ee(Le,we,ue,!0):(Tt[ye-pe]=ae+1,ye>=wt?wt=ye:ot=!0,g(Le,G[ye],le,null,we,ue,Q,be,se),je++)}const zt=ot?jC(Tt):xi;for(Ie=zt.length-1,ae=Ye-1;ae>=0;ae--){const Le=pe+ae,ye=G[Le],oe=G[Le+1],fe=Le+1<ie?oe.el||pp(oe):xe;Tt[ae]===0?g(null,ye,le,fe,we,ue,Q,be,se):ot&&(Ie<0||ae!==zt[Ie]?j(ye,le,fe,2):Ie--)}}},j=(H,G,le,xe,we=null)=>{const{el:ue,type:Q,transition:be,children:se,shapeFlag:ae}=H;if(ae&6){j(H.component.subTree,G,le,xe);return}if(ae&128){H.suspense.move(G,le,xe);return}if(ae&64){Q.move(H,G,le,ne);return}if(Q===Ue){n(ue,G,le);for(let re=0;re<se.length;re++)j(se[re],G,le,xe);n(H.anchor,G,le);return}if(Q===Ua){S(H,G,le);return}if(xe!==2&&ae&1&&be)if(xe===0)be.beforeEnter(ue),n(ue,G,le),uo(()=>be.enter(ue),we);else{const{leave:re,delayLeave:te,afterLeave:ce}=be,pe=()=>{H.ctx.isUnmounted?r(ue):n(ue,G,le)},ze=()=>{ue._isLeaving&&ue[xn](!0),re(ue,()=>{pe(),ce&&ce()})};te?te(ue,pe,ze):ze()}else n(ue,G,le)},ee=(H,G,le,xe=!1,we=!1)=>{const{type:ue,props:Q,ref:be,children:se,dynamicChildren:ae,shapeFlag:ie,patchFlag:re,dirs:te,cacheIndex:ce}=H;if(re===-2&&(we=!1),be!=null&&(pn(),Cl(be,null,le,H,!0),vn()),ce!=null&&(G.renderCache[ce]=void 0),ie&256){G.ctx.deactivate(H);return}const pe=ie&1&&te,ze=!Pi(H);let Ie;if(ze&&(Ie=Q&&Q.onVnodeBeforeUnmount)&&Cn(Ie,G,H),ie&6)N(H.component,le,xe);else{if(ie&128){H.suspense.unmount(le,xe);return}pe&&Mr(H,null,G,"beforeUnmount"),ie&64?H.type.remove(H,G,le,ne,xe):ae&&!ae.hasOnce&&(ue!==Ue||re>0&&re&64)?ve(ae,G,le,!1,!0):(ue===Ue&&re&384||!we&&ie&16)&&ve(se,G,le),xe&&D(H)}(ze&&(Ie=Q&&Q.onVnodeUnmounted)||pe)&&uo(()=>{Ie&&Cn(Ie,G,H),pe&&Mr(H,null,G,"unmounted")},le)},D=H=>{const{type:G,el:le,anchor:xe,transition:we}=H;if(G===Ue){M(le,xe);return}if(G===Ua){C(H);return}const ue=()=>{r(le),we&&!we.persisted&&we.afterLeave&&we.afterLeave()};if(H.shapeFlag&1&&we&&!we.persisted){const{leave:Q,delayLeave:be}=we,se=()=>Q(le,ue);be?be(H.el,ue,se):se()}else ue()},M=(H,G)=>{let le;for(;H!==G;)le=p(H),r(H),H=le;r(G)},N=(H,G,le)=>{const{bum:xe,scope:we,job:ue,subTree:Q,um:be,m:se,a:ae}=H;hp(se),hp(ae),xe&&ya(xe),we.stop(),ue&&(ue.flags|=8,ee(Q,H,G,le)),be&&uo(be,G),uo(()=>{H.isUnmounted=!0},G)},ve=(H,G,le,xe=!1,we=!1,ue=0)=>{for(let Q=ue;Q<H.length;Q++)ee(H[Q],G,le,xe,we)},J=H=>{if(H.shapeFlag&6)return J(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const G=p(H.anchor||H.el),le=G&&G[Ch];return le?p(le):G};let Ce=!1;const Z=(H,G,le)=>{let xe;H==null?G._vnode&&(ee(G._vnode,null,null,!0),xe=G._vnode.component):g(G._vnode||null,H,G,null,null,null,le),G._vnode=H,Ce||(Ce=!0,gh(xe),mh(),Ce=!1)},ne={p:g,um:ee,m:j,r:D,mt:U,mc:w,pc:k,pbc:B,n:J,o:e};return{render:Z,hydrate:void 0,createApp:PC(Z)}}function Vc({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function Dr({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function NC(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Uc(e,t,o=!1){const n=e.children,r=t.children;if(Je(n)&&Je(r))for(let i=0;i<n.length;i++){const l=n[i];let a=r[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[i]=jn(r[i]),a.el=l.el),!o&&a.patchFlag!==-2&&Uc(l,a)),a.type===Rl&&(a.patchFlag===-1&&(a=r[i]=jn(a)),a.el=l.el),a.type===Yt&&!a.el&&(a.el=l.el)}}function jC(e){const t=e.slice(),o=[0];let n,r,i,l,a;const s=e.length;for(n=0;n<s;n++){const c=e[n];if(c!==0){if(r=o[o.length-1],e[r]<c){t[n]=r,o.push(n);continue}for(i=0,l=o.length-1;i<l;)a=i+l>>1,e[o[a]]<c?i=a+1:l=a;c<e[o[i]]&&(i>0&&(t[n]=o[i-1]),o[i]=n)}}for(i=o.length,l=o[i-1];i-- >0;)o[i]=l,l=t[l];return o}function fp(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:fp(t)}function hp(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function pp(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?pp(t.subTree):null}const vp=e=>e.__isSuspense;function WC(e,t){t&&t.pendingBranch?Je(e)?t.effects.push(...e):t.effects.push(e):nC(e)}const Ue=Symbol.for("v-fgt"),Rl=Symbol.for("v-txt"),Yt=Symbol.for("v-cmt"),Ua=Symbol.for("v-stc"),Pl=[];let Fo=null;function me(e=!1){Pl.push(Fo=e?null:[])}function VC(){Pl.pop(),Fo=Pl[Pl.length-1]||null}let _l=1;function Ka(e,t=!1){_l+=e,e<0&&Fo&&t&&(Fo.hasOnce=!0)}function gp(e){return e.dynamicChildren=_l>0?Fo||xi:null,VC(),_l>0&&Fo&&Fo.push(e),e}function Re(e,t,o,n,r,i){return gp(K(e,t,o,n,r,i,!0))}function mt(e,t,o,n,r){return gp(Se(e,t,o,n,r,!0))}function $i(e){return e?e.__v_isVNode===!0:!1}function Hr(e,t){return e.type===t.type&&e.key===t.key}const mp=({key:e})=>e??null,qa=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?Mt(e)||It(e)||lt(e)?{i:ro,r:e,k:t,f:!!o}:e:null);function K(e,t=null,o=null,n=0,r=null,i=e===Ue?0:1,l=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&mp(t),ref:t&&qa(t),scopeId:xh,slotScopeIds:null,children:o,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:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ro};return a?(Kc(s,o),i&128&&e.normalize(s)):o&&(s.shapeFlag|=Mt(o)?8:16),_l>0&&!l&&Fo&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&Fo.push(s),s}const Se=UC;function UC(e,t=null,o=null,n=0,r=null,i=!1){if((!e||e===Dh)&&(e=Yt),$i(e)){const a=tn(e,t,!0);return o&&Kc(a,o),_l>0&&!i&&Fo&&(a.shapeFlag&6?Fo[Fo.indexOf(e)]=a:Fo.push(a)),a.patchFlag=-2,a}if(ow(e)&&(e=e.__vccOpts),t){t=KC(t);let{class:a,style:s}=t;a&&!Mt(a)&&(t.class=Pt(a)),kt(s)&&(Ta(s)&&!Je(s)&&(s=Vt({},s)),t.style=$o(s))}const l=Mt(e)?1:vp(e)?128:wh(e)?64:kt(e)?4:lt(e)?2:0;return K(e,t,o,n,r,l,i,!0)}function KC(e){return e?Ta(e)||ip(e)?Vt({},e):e:null}function tn(e,t,o=!1,n=!1){const{props:r,ref:i,patchFlag:l,children:a,transition:s}=e,c=t?ko(r||{},t):r,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&mp(c),ref:t&&t.ref?o&&i?Je(i)?i.concat(qa(t)):[i,qa(t)]:qa(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ue?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&tn(e.ssContent),ssFallback:e.ssFallback&&tn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&n&&Br(d,s.clone(d)),d}function it(e=" ",t=0){return Se(Rl,null,e,t)}function $l(e,t){const o=Se(Ua,null,e);return o.staticCount=t,o}function et(e="",t=!1){return t?(me(),mt(Yt,null,e)):Se(Yt,null,e)}function yn(e){return e==null||typeof e=="boolean"?Se(Yt):Je(e)?Se(Ue,null,e.slice()):$i(e)?jn(e):Se(Rl,null,String(e))}function jn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:tn(e)}function Kc(e,t){let o=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Je(t))o=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),Kc(e,r()),r._c&&(r._d=!0));return}else{o=32;const r=t._;!r&&!ip(t)?t._ctx=ro:r===3&&ro&&(ro.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else lt(t)?(t={default:t,_ctx:ro},o=32):(t=String(t),n&64?(o=16,t=[it(t)]):o=8);e.children=t,e.shapeFlag|=o}function ko(...e){const t={};for(let o=0;o<e.length;o++){const n=e[o];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=Pt([t.class,n.class]));else if(r==="style")t.style=$o([t.style,n.style]);else if(ga(r)){const i=t[r],l=n[r];l&&i!==l&&!(Je(i)&&i.includes(l))&&(t[r]=i?[].concat(i,l):l)}else r!==""&&(t[r]=n[r])}return t}function Cn(e,t,o,n=null){en(e,t,7,[o,n])}const qC=Jh();let GC=0;function XC(e,t,o){const n=e.type,r=(t?t.appContext:e.appContext)||qC,i={uid:GC++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Nf(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ap(n,r),emitsOptions:Qh(n,r),emit:null,emitted:null,propsDefaults:St,inheritAttrs:n.inheritAttrs,ctx:St,data:St,props:St,attrs:St,slots:St,refs:St,setupState:St,setupContext:null,suspense:o,suspenseId:o?o.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 i.ctx={_:i},i.root=t?t.root:i,i.emit=_C.bind(null,i),e.ce&&e.ce(i),i}let fo=null;const Wn=()=>fo||ro;let Ga,qc;{const e=Ca(),t=(o,n)=>{let r;return(r=e[o])||(r=e[o]=[]),r.push(n),i=>{r.length>1?r.forEach(l=>l(i)):r[0](i)}};Ga=t("__VUE_INSTANCE_SETTERS__",o=>fo=o),qc=t("__VUE_SSR_SETTERS__",o=>zl=o)}const Tl=e=>{const t=fo;return Ga(e),e.scope.on(),()=>{e.scope.off(),Ga(t)}},bp=()=>{fo&&fo.scope.off(),Ga(null)};function xp(e){return e.vnode.shapeFlag&4}let zl=!1;function YC(e,t=!1,o=!1){t&&qc(t);const{props:n,children:r}=e.vnode,i=xp(e);IC(e,n,i,t),BC(e,r,o||t);const l=i?JC(e,t):void 0;return t&&qc(!1),l}function JC(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,xC);const{setup:n}=o;if(n){pn();const r=e.setupContext=n.length>1?QC(e):null,i=Tl(e),l=Si(n,e,0,[e.props,r]),a=If(l);if(vn(),i(),(a||e.sp)&&!Pi(e)&&Ih(e),a){if(l.then(bp,bp),t)return l.then(s=>{yp(e,s)}).catch(s=>{Oa(s,e,0)});e.asyncDep=l}else yp(e,l)}else Cp(e)}function yp(e,t,o){lt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:kt(t)&&(e.setupState=dh(t)),Cp(e)}function Cp(e,t,o){const n=e.type;e.render||(e.render=n.render||hn);{const r=Tl(e);pn();try{yC(e)}finally{vn(),r()}}}const ZC={get(e,t){return co(e,"get",""),e[t]}};function QC(e){const t=o=>{e.exposed=o||{}};return{attrs:new Proxy(e.attrs,ZC),slots:e.slots,emit:e.emit,expose:t}}function Xa(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(dh(pl(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in Sl)return Sl[o](e)},has(t,o){return o in t||o in Sl}})):e.proxy}const ew=/(?:^|[-_])\w/g,tw=e=>e.replace(ew,t=>t.toUpperCase()).replace(/[-_]/g,"");function wp(e,t=!0){return lt(e)?e.displayName||e.name:e.name||t&&e.__name}function Sp(e,t,o=!1){let n=wp(t);if(!n&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(n=r[1])}if(!n&&e){const r=i=>{for(const l in i)if(i[l]===t)return l};n=r(e.components)||e.parent&&r(e.parent.type.components)||r(e.appContext.components)}return n?tw(n):o?"App":"Anonymous"}function ow(e){return lt(e)&&"__vccOpts"in e}const E=(e,t)=>G1(e,t,zl);function f(e,t,o){try{Ka(-1);const n=arguments.length;return n===2?kt(t)&&!Je(t)?$i(t)?Se(e,null,[t]):Se(e,t):Se(e,null,t):(n>3?o=Array.prototype.slice.call(arguments,2):n===3&&$i(o)&&(o=[o]),Se(e,t,o))}finally{Ka(1)}}const nw="3.5.30";/**
|
|
16
|
+
`],...Q1(o))}),t}function Q1({vnode:e,recurseCount:t}){const o=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,r=` at <${Sp(e.component,e.type,n)}`,i=">"+o;return e.props?[r,...eC(e.props),i]:[r+i]}function eC(e){const t=[],o=Object.keys(e);return o.slice(0,3).forEach(n=>{t.push(...hh(n,e[n]))}),o.length>3&&t.push(" ..."),t}function hh(e,t,o){return Mt(t)?(t=JSON.stringify(t),o?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?o?t:[`${e}=${t}`]:It(t)?(t=hh(e,ut(t.value),!0),o?t:[`${e}=Ref<`,t,">"]):lt(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ut(t),o?t:[`${e}=`,t])}function Si(e,t,o,n){try{return n?e(...n):e()}catch(r){Oa(r,t,o)}}function en(e,t,o,n){if(lt(e)){const r=Si(e,t,o,n);return r&&If(r)&&r.catch(i=>{Oa(i,t,o)}),r}if(Je(e)){const r=[];for(let i=0;i<e.length;i++)r.push(en(e[i],t,o,n));return r}}function Oa(e,t,o,n=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||St;if(t){let a=t.parent;const s=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${o}`;for(;a;){const d=a.ec;if(d){for(let u=0;u<d.length;u++)if(d[u](e,s,c)===!1)return}a=a.parent}if(i){pn(),Si(i,null,10,[e,s,c]),vn();return}}tC(e,o,r,n,l)}function tC(e,t,o,n=!0,r=!1){if(r)throw e;console.error(e)}const wo=[];let bn=-1;const ki=[];let or=null,Ri=0;const ph=Promise.resolve();let Ia=null;function $t(e){const t=Ia||ph;return e?t.then(this?e.bind(this):e):t}function oC(e){let t=bn+1,o=wo.length;for(;t<o;){const n=t+o>>>1,r=wo[n],i=gl(r);i<e||i===e&&r.flags&2?t=n+1:o=n}return t}function Ec(e){if(!(e.flags&1)){const t=gl(e),o=wo[wo.length-1];!o||!(e.flags&2)&&t>=gl(o)?wo.push(e):wo.splice(oC(t),0,e),e.flags|=1,vh()}}function vh(){Ia||(Ia=ph.then(bh))}function nC(e){Je(e)?ki.push(...e):or&&e.id===-1?or.splice(Ri+1,0,e):e.flags&1||(ki.push(e),e.flags|=1),vh()}function gh(e,t,o=bn+1){for(;o<wo.length;o++){const n=wo[o];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;wo.splice(o,1),o--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function mh(e){if(ki.length){const t=[...new Set(ki)].sort((o,n)=>gl(o)-gl(n));if(ki.length=0,or){or.push(...t);return}for(or=t,Ri=0;Ri<or.length;Ri++){const o=or[Ri];o.flags&4&&(o.flags&=-2),o.flags&8||o(),o.flags&=-2}or=null,Ri=0}}const gl=e=>e.id==null?e.flags&2?-1:1/0:e.id;function bh(e){try{for(bn=0;bn<wo.length;bn++){const t=wo[bn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Si(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;bn<wo.length;bn++){const t=wo[bn];t&&(t.flags&=-2)}bn=-1,wo.length=0,mh(),Ia=null,(wo.length||ki.length)&&bh()}}let ro=null,xh=null;function Aa(e){const t=ro;return ro=e,xh=e&&e.type.__scopeId||null,t}function He(e,t=ro,o){if(!t||e._n)return e;const n=(...r)=>{n._d&&Ka(-1);const i=Aa(t);let l;try{l=e(...r)}finally{Aa(i),n._d&&Ka(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}function Ut(e,t){if(ro===null)return e;const o=Xa(ro),n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,l,a,s=St]=t[r];i&&(lt(i)&&(i={mounted:i,updated:i}),i.deep&&Dn(l),n.push({dir:i,instance:o,value:l,oldValue:void 0,arg:a,modifiers:s}))}return e}function Mr(e,t,o,n){const r=e.dirs,i=t&&t.dirs;for(let l=0;l<r.length;l++){const a=r[l];i&&(a.oldValue=i[l].value);let s=a.dir[n];s&&(pn(),en(s,o,8,[e.el,a,e,t]),vn())}}function tt(e,t){if(fo){let o=fo.provides;const n=fo.parent&&fo.parent.provides;n===o&&(o=fo.provides=Object.create(n)),o[e]=t}}function Be(e,t,o=!1){const n=Wn();if(n||Lr){let r=Lr?Lr._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return o&<(t)?t.call(n&&n.proxy):t}}function rC(){return!!(Wn()||Lr)}const iC=Symbol.for("v-scx"),lC=()=>Be(iC);function Lt(e,t){return Fa(e,null,t)}function aC(e,t){return Fa(e,null,{flush:"sync"})}function Ze(e,t,o){return Fa(e,t,o)}function Fa(e,t,o=St){const{immediate:n,deep:r,flush:i,once:l}=o,a=Vt({},o),s=t&&n||!t&&i!=="post";let c;if(zl){if(i==="sync"){const v=lC();c=v.__watcherHandles||(v.__watcherHandles=[])}else if(!s){const v=()=>{};return v.stop=hn,v.resume=hn,v.pause=hn,v}}const d=fo;a.call=(v,h,g)=>en(v,d,h,g);let u=!1;i==="post"?a.scheduler=v=>{uo(v,d&&d.suspense)}:i!=="sync"&&(u=!0,a.scheduler=(v,h)=>{h?v():Ec(v)}),a.augmentJob=v=>{t&&(v.flags|=4),u&&(v.flags|=2,d&&(v.id=d.uid,v.i=d))};const p=Y1(e,t,a);return zl&&(c?c.push(p):s&&p()),p}function sC(e,t,o){const n=this.proxy,r=Mt(e)?e.includes(".")?yh(n,e):()=>n[e]:e.bind(n,n);let i;lt(t)?i=t:(i=t.handler,o=t);const l=Tl(this),a=Fa(r,i.bind(n),o);return l(),a}function yh(e,t){const o=t.split(".");return()=>{let n=e;for(let r=0;r<o.length&&n;r++)n=n[o[r]];return n}}const Ch=Symbol("_vte"),wh=e=>e.__isTeleport,ml=e=>e&&(e.disabled||e.disabled===""),Sh=e=>e&&(e.defer||e.defer===""),kh=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Rh=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Oc=(e,t)=>{const o=e&&e.to;return Mt(o)?t?t(o):null:o},Ph={name:"Teleport",__isTeleport:!0,process(e,t,o,n,r,i,l,a,s,c){const{mc:d,pc:u,pbc:p,o:{insert:v,querySelector:h,createText:g,createComment:b}}=c,m=ml(t.props);let{shapeFlag:x,children:S,dynamicChildren:C}=t;if(e==null){const y=t.el=g(""),R=t.anchor=g("");v(y,o,n),v(R,o,n);const P=(_,B)=>{x&16&&d(S,_,B,r,i,l,a,s)},w=()=>{const _=t.target=Oc(t.props,h),B=Ic(_,t,g,v);_&&(l!=="svg"&&kh(_)?l="svg":l!=="mathml"&&Rh(_)&&(l="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(_),m||(P(_,B),Ba(t,!1)))};m&&(P(o,R),Ba(t,!0)),Sh(t.props)?(t.el.__isMounted=!1,uo(()=>{w(),delete t.el.__isMounted},i)):w()}else{if(Sh(t.props)&&e.el.__isMounted===!1){uo(()=>{Ph.process(e,t,o,n,r,i,l,a,s,c)},i);return}t.el=e.el,t.targetStart=e.targetStart;const y=t.anchor=e.anchor,R=t.target=e.target,P=t.targetAnchor=e.targetAnchor,w=ml(e.props),_=w?o:R,B=w?y:P;if(l==="svg"||kh(R)?l="svg":(l==="mathml"||Rh(R))&&(l="mathml"),C?(p(e.dynamicChildren,C,_,r,i,l,a),Uc(e,t,!0)):s||u(e,t,_,B,r,i,l,a,!1),m)w?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ma(t,o,y,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const z=t.target=Oc(t.props,h);z&&Ma(t,z,null,c,0)}else w&&Ma(t,R,P,c,1);Ba(t,m)}},remove(e,t,o,{um:n,o:{remove:r}},i){const{shapeFlag:l,children:a,anchor:s,targetStart:c,targetAnchor:d,target:u,props:p}=e;if(u&&(r(c),r(d)),i&&r(s),l&16){const v=i||!ml(p);for(let h=0;h<a.length;h++){const g=a[h];n(g,t,o,v,!!g.dynamicChildren)}}},move:Ma,hydrate:cC};function Ma(e,t,o,{o:{insert:n},m:r},i=2){i===0&&n(e.targetAnchor,t,o);const{el:l,anchor:a,shapeFlag:s,children:c,props:d}=e,u=i===2;if(u&&n(l,t,o),(!u||ml(d))&&s&16)for(let p=0;p<c.length;p++)r(c[p],t,o,2);u&&n(a,t,o)}function cC(e,t,o,n,r,i,{o:{nextSibling:l,parentNode:a,querySelector:s,insert:c,createText:d}},u){function p(b,m){let x=m;for(;x;){if(x&&x.nodeType===8){if(x.data==="teleport start anchor")t.targetStart=x;else if(x.data==="teleport anchor"){t.targetAnchor=x,b._lpa=t.targetAnchor&&l(t.targetAnchor);break}}x=l(x)}}function v(b,m){m.anchor=u(l(b),m,a(b),o,n,r,i)}const h=t.target=Oc(t.props,s),g=ml(t.props);if(h){const b=h._lpa||h.firstChild;t.shapeFlag&16&&(g?(v(e,t),p(h,b),t.targetAnchor||Ic(h,t,d,c,a(e)===h?e:null)):(t.anchor=l(e),p(h,b),t.targetAnchor||Ic(h,t,d,c),u(b&&l(b),t,h,o,n,r,i))),Ba(t,g)}else g&&t.shapeFlag&16&&(v(e,t),t.targetStart=e,t.targetAnchor=l(e));return t.anchor&&l(t.anchor)}const bl=Ph;function Ba(e,t){const o=e.ctx;if(o&&o.ut){let n,r;for(t?(n=e.el,r=e.anchor):(n=e.targetStart,r=e.targetAnchor);n&&n!==r;)n.nodeType===1&&n.setAttribute("data-v-owner",o.uid),n=n.nextSibling;o.ut()}}function Ic(e,t,o,n,r=null){const i=t.targetStart=o(""),l=t.targetAnchor=o("");return i[Ch]=l,e&&(n(i,e,r),n(l,e,r)),l}const xn=Symbol("_leaveCb"),xl=Symbol("_enterCb");function _h(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Bt(()=>{e.isMounted=!0}),Dt(()=>{e.isUnmounting=!0}),e}const Vo=[Function,Array],$h={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Vo,onEnter:Vo,onAfterEnter:Vo,onEnterCancelled:Vo,onBeforeLeave:Vo,onLeave:Vo,onAfterLeave:Vo,onLeaveCancelled:Vo,onBeforeAppear:Vo,onAppear:Vo,onAfterAppear:Vo,onAppearCancelled:Vo},Th=e=>{const t=e.subTree;return t.component?Th(t.component):t},dC={name:"BaseTransition",props:$h,setup(e,{slots:t}){const o=Wn(),n=_h();return()=>{const r=t.default&&Fc(t.default(),!0);if(!r||!r.length)return;const i=zh(r),l=ut(e),{mode:a}=l;if(n.isLeaving)return Ac(i);const s=Oh(i);if(!s)return Ac(i);let c=yl(s,l,n,o,u=>c=u);s.type!==Yt&&Br(s,c);let d=o.subTree&&Oh(o.subTree);if(d&&d.type!==Yt&&!Hr(d,s)&&Th(o).type!==Yt){let u=yl(d,l,n,o);if(Br(d,u),a==="out-in"&&s.type!==Yt)return n.isLeaving=!0,u.afterLeave=()=>{n.isLeaving=!1,o.job.flags&8||o.update(),delete u.afterLeave,d=void 0},Ac(i);a==="in-out"&&s.type!==Yt?u.delayLeave=(p,v,h)=>{const g=Eh(n,d);g[String(d.key)]=d,p[xn]=()=>{v(),p[xn]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{h(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return i}}};function zh(e){let t=e[0];if(e.length>1){for(const o of e)if(o.type!==Yt){t=o;break}}return t}const uC=dC;function Eh(e,t){const{leavingVNodes:o}=e;let n=o.get(t.type);return n||(n=Object.create(null),o.set(t.type,n)),n}function yl(e,t,o,n,r){const{appear:i,mode:l,persisted:a=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:p,onLeave:v,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:b,onAppear:m,onAfterAppear:x,onAppearCancelled:S}=t,C=String(e.key),y=Eh(o,e),R=(_,B)=>{_&&en(_,n,9,B)},P=(_,B)=>{const z=B[1];R(_,B),Je(_)?_.every(O=>O.length<=1)&&z():_.length<=1&&z()},w={mode:l,persisted:a,beforeEnter(_){let B=s;if(!o.isMounted)if(i)B=b||s;else return;_[xn]&&_[xn](!0);const z=y[C];z&&Hr(e,z)&&z.el[xn]&&z.el[xn](),R(B,[_])},enter(_){if(y[C]===e)return;let B=c,z=d,O=u;if(!o.isMounted)if(i)B=m||c,z=x||d,O=S||u;else return;let A=!1;_[xl]=W=>{A||(A=!0,W?R(O,[_]):R(z,[_]),w.delayedLeave&&w.delayedLeave(),_[xl]=void 0)};const U=_[xl].bind(null,!1);B?P(B,[_,U]):U()},leave(_,B){const z=String(e.key);if(_[xl]&&_[xl](!0),o.isUnmounting)return B();R(p,[_]);let O=!1;_[xn]=U=>{O||(O=!0,B(),U?R(g,[_]):R(h,[_]),_[xn]=void 0,y[z]===e&&delete y[z])};const A=_[xn].bind(null,!1);y[z]=e,v?P(v,[_,A]):A()},clone(_){const B=yl(_,t,o,n,r);return r&&r(B),B}};return w}function Ac(e){if(Da(e))return e=tn(e),e.children=null,e}function Oh(e){if(!Da(e))return wh(e.type)&&e.children?zh(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&<(o.default))return o.default()}}function Br(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Br(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Fc(e,t=!1,o){let n=[],r=0;for(let i=0;i<e.length;i++){let l=e[i];const a=o==null?l.key:String(o)+String(l.key!=null?l.key:i);l.type===Ue?(l.patchFlag&128&&r++,n=n.concat(Fc(l.children,t,a))):(t||l.type!==Yt)&&n.push(a!=null?tn(l,{key:a}):l)}if(r>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}function ge(e,t){return lt(e)?Vt({name:e.name},t,{setup:e}):e}function Ih(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ah(e,t){let o;return!!((o=Object.getOwnPropertyDescriptor(e,t))&&!o.configurable)}const La=new WeakMap;function Cl(e,t,o,n,r=!1){if(Je(e)){e.forEach((g,b)=>Cl(g,t&&(Je(t)?t[b]:t),o,n,r));return}if(Pi(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Cl(e,t,o,n.component.subTree);return}const i=n.shapeFlag&4?Xa(n.component):n.el,l=r?null:i,{i:a,r:s}=e,c=t&&t.r,d=a.refs===St?a.refs={}:a.refs,u=a.setupState,p=ut(u),v=u===St?zf:g=>Ah(d,g)?!1:Rt(p,g),h=(g,b)=>!(b&&Ah(d,b));if(c!=null&&c!==s){if(Fh(t),Mt(c))d[c]=null,v(c)&&(u[c]=null);else if(It(c)){const g=t;h(c,g.k)&&(c.value=null),g.k&&(d[g.k]=null)}}if(lt(s))Si(s,a,12,[l,d]);else{const g=Mt(s),b=It(s);if(g||b){const m=()=>{if(e.f){const x=g?v(s)?u[s]:d[s]:h()||!e.k?s.value:d[e.k];if(r)Je(x)&&vc(x,i);else if(Je(x))x.includes(i)||x.push(i);else if(g)d[s]=[i],v(s)&&(u[s]=d[s]);else{const S=[i];h(s,e.k)&&(s.value=S),e.k&&(d[e.k]=S)}}else g?(d[s]=l,v(s)&&(u[s]=l)):b&&(h(s,e.k)&&(s.value=l),e.k&&(d[e.k]=l))};if(l){const x=()=>{m(),La.delete(e)};x.id=-1,La.set(e,x),uo(x,o)}else Fh(e),m()}}}function Fh(e){const t=La.get(e);t&&(t.flags|=8,La.delete(e))}Ca().requestIdleCallback,Ca().cancelIdleCallback;const Pi=e=>!!e.type.__asyncLoader,Da=e=>e.type.__isKeepAlive;function Mc(e,t){Mh(e,"a",t)}function Ha(e,t){Mh(e,"da",t)}function Mh(e,t,o=fo){const n=e.__wdc||(e.__wdc=()=>{let r=o;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Na(t,n,o),o){let r=o.parent;for(;r&&r.parent;)Da(r.parent.vnode)&&fC(n,t,o,r),r=r.parent}}function fC(e,t,o,n){const r=Na(t,e,n,!0);wl(()=>{vc(n[t],r)},o)}function Na(e,t,o=fo,n=!1){if(o){const r=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...l)=>{pn();const a=Tl(o),s=en(t,o,e,l);return a(),vn(),s});return n?r.unshift(i):r.push(i),i}}const Hn=e=>(t,o=fo)=>{(!zl||e==="sp")&&Na(e,(...n)=>t(...n),o)},Nn=Hn("bm"),Bt=Hn("m"),hC=Hn("bu"),Bh=Hn("u"),Dt=Hn("bum"),wl=Hn("um"),pC=Hn("sp"),vC=Hn("rtg"),gC=Hn("rtc");function mC(e,t=fo){Na("ec",e,t)}const Lh="components";function bC(e,t){return Nh(Lh,e,!0,t)||e}const Dh=Symbol.for("v-ndc");function Hh(e){return Mt(e)?Nh(Lh,e,!1)||e:e||Dh}function Nh(e,t,o=!0,n=!1){const r=ro||fo;if(r){const i=r.type;{const a=wp(i,!1);if(a&&(a===t||a===lo(t)||a===xa(lo(t))))return i}const l=jh(r[e]||i[e],t)||jh(r.appContext[e],t);return!l&&n?i:l}}function jh(e,t){return e&&(e[t]||e[lo(t)]||e[xa(lo(t))])}function To(e,t,o,n){let r;const i=o,l=Je(e);if(l||Mt(e)){const a=l&&Bn(e);let s=!1,c=!1;a&&(s=!Ao(e),c=Ln(e),e=ka(e)),r=new Array(e.length);for(let d=0,u=e.length;d<u;d++)r[d]=t(s?c?wi(Qo(e[d])):Qo(e[d]):e[d],d,void 0,i)}else if(typeof e=="number"){r=new Array(e);for(let a=0;a<e;a++)r[a]=t(a+1,a,void 0,i)}else if(kt(e))if(e[Symbol.iterator])r=Array.from(e,(a,s)=>t(a,s,void 0,i));else{const a=Object.keys(e);r=new Array(a.length);for(let s=0,c=a.length;s<c;s++){const d=a[s];r[s]=t(e[d],d,s,i)}}else r=[];return r}function Wh(e,t,o={},n,r){if(ro.ce||ro.parent&&Pi(ro.parent)&&ro.parent.ce){const c=Object.keys(o).length>0;return me(),mt(Ue,null,[Se("slot",o,n)],c?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),me();const l=i&&Vh(i(o)),a=o.key||l&&l.key,s=mt(Ue,{key:(a&&!Jo(a)?a:`_${t}`)+(!l&&n?"_fb":"")},l||[],l&&e._===1?64:-2);return s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function Vh(e){return e.some(t=>$i(t)?!(t.type===Yt||t.type===Ue&&!Vh(t.children)):!0)?e:null}const Bc=e=>e?xp(e)?Xa(e):Bc(e.parent):null,Sl=Vt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Bc(e.parent),$root:e=>Bc(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Gh(e),$forceUpdate:e=>e.f||(e.f=()=>{Ec(e.update)}),$nextTick:e=>e.n||(e.n=$t.bind(e.proxy)),$watch:e=>sC.bind(e)}),Lc=(e,t)=>e!==St&&!e.__isScriptSetup&&Rt(e,t),xC={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:o,setupState:n,data:r,props:i,accessCache:l,type:a,appContext:s}=e;if(t[0]!=="$"){const p=l[t];if(p!==void 0)switch(p){case 1:return n[t];case 2:return r[t];case 4:return o[t];case 3:return i[t]}else{if(Lc(n,t))return l[t]=1,n[t];if(r!==St&&Rt(r,t))return l[t]=2,r[t];if(Rt(i,t))return l[t]=3,i[t];if(o!==St&&Rt(o,t))return l[t]=4,o[t];Dc&&(l[t]=0)}}const c=Sl[t];let d,u;if(c)return t==="$attrs"&&co(e.attrs,"get",""),c(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(o!==St&&Rt(o,t))return l[t]=4,o[t];if(u=s.config.globalProperties,Rt(u,t))return u[t]},set({_:e},t,o){const{data:n,setupState:r,ctx:i}=e;return Lc(r,t)?(r[t]=o,!0):n!==St&&Rt(n,t)?(n[t]=o,!0):Rt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:n,appContext:r,props:i,type:l}},a){let s;return!!(o[a]||e!==St&&a[0]!=="$"&&Rt(e,a)||Lc(t,a)||Rt(i,a)||Rt(n,a)||Rt(Sl,a)||Rt(r.config.globalProperties,a)||(s=l.__cssModules)&&s[a])},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:Rt(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function ja(e){return Je(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}function Uh(e,t){return!e||!t?e||t:Je(e)&&Je(t)?e.concat(t):Vt({},ja(e),ja(t))}let Dc=!0;function yC(e){const t=Gh(e),o=e.proxy,n=e.ctx;Dc=!1,t.beforeCreate&&Kh(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:l,watch:a,provide:s,inject:c,created:d,beforeMount:u,mounted:p,beforeUpdate:v,updated:h,activated:g,deactivated:b,beforeDestroy:m,beforeUnmount:x,destroyed:S,unmounted:C,render:y,renderTracked:R,renderTriggered:P,errorCaptured:w,serverPrefetch:_,expose:B,inheritAttrs:z,components:O,directives:A,filters:U}=t;if(c&&CC(c,n,null),l)for(const T in l){const k=l[T];lt(k)&&(n[T]=k.bind(o))}if(r){const T=r.call(o,o);kt(T)&&(e.data=mn(T))}if(Dc=!0,i)for(const T in i){const k=i[T],I=lt(k)?k.bind(o,o):lt(k.get)?k.get.bind(o,o):hn,Y=!lt(k)&<(k.set)?k.set.bind(o):hn,j=E({get:I,set:Y});Object.defineProperty(n,T,{enumerable:!0,configurable:!0,get:()=>j.value,set:ee=>j.value=ee})}if(a)for(const T in a)qh(a[T],n,o,T);if(s){const T=lt(s)?s.call(o):s;Reflect.ownKeys(T).forEach(k=>{tt(k,T[k])})}d&&Kh(d,e,"c");function F(T,k){Je(k)?k.forEach(I=>T(I.bind(o))):k&&T(k.bind(o))}if(F(Nn,u),F(Bt,p),F(hC,v),F(Bh,h),F(Mc,g),F(Ha,b),F(mC,w),F(gC,R),F(vC,P),F(Dt,x),F(wl,C),F(pC,_),Je(B))if(B.length){const T=e.exposed||(e.exposed={});B.forEach(k=>{Object.defineProperty(T,k,{get:()=>o[k],set:I=>o[k]=I,enumerable:!0})})}else e.exposed||(e.exposed={});y&&e.render===hn&&(e.render=y),z!=null&&(e.inheritAttrs=z),O&&(e.components=O),A&&(e.directives=A),_&&Ih(e)}function CC(e,t,o=hn){Je(e)&&(e=Hc(e));for(const n in e){const r=e[n];let i;kt(r)?"default"in r?i=Be(r.from||n,r.default,!0):i=Be(r.from||n):i=Be(r),It(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:l=>i.value=l}):t[n]=i}}function Kh(e,t,o){en(Je(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,o)}function qh(e,t,o,n){let r=n.includes(".")?yh(o,n):()=>o[n];if(Mt(e)){const i=t[e];lt(i)&&Ze(r,i)}else if(lt(e))Ze(r,e.bind(o));else if(kt(e))if(Je(e))e.forEach(i=>qh(i,t,o,n));else{const i=lt(e.handler)?e.handler.bind(o):t[e.handler];lt(i)&&Ze(r,i,e)}}function Gh(e){const t=e.type,{mixins:o,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let s;return a?s=a:!r.length&&!o&&!n?s=t:(s={},r.length&&r.forEach(c=>Wa(s,c,l,!0)),Wa(s,t,l)),kt(t)&&i.set(t,s),s}function Wa(e,t,o,n=!1){const{mixins:r,extends:i}=t;i&&Wa(e,i,o,!0),r&&r.forEach(l=>Wa(e,l,o,!0));for(const l in t)if(!(n&&l==="expose")){const a=wC[l]||o&&o[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const wC={data:Xh,props:Yh,emits:Yh,methods:kl,computed:kl,beforeCreate:So,created:So,beforeMount:So,mounted:So,beforeUpdate:So,updated:So,beforeDestroy:So,beforeUnmount:So,destroyed:So,unmounted:So,activated:So,deactivated:So,errorCaptured:So,serverPrefetch:So,components:kl,directives:kl,watch:kC,provide:Xh,inject:SC};function Xh(e,t){return t?e?function(){return Vt(lt(e)?e.call(this,this):e,lt(t)?t.call(this,this):t)}:t:e}function SC(e,t){return kl(Hc(e),Hc(t))}function Hc(e){if(Je(e)){const t={};for(let o=0;o<e.length;o++)t[e[o]]=e[o];return t}return e}function So(e,t){return e?[...new Set([].concat(e,t))]:t}function kl(e,t){return e?Vt(Object.create(null),e,t):t}function Yh(e,t){return e?Je(e)&&Je(t)?[...new Set([...e,...t])]:Vt(Object.create(null),ja(e),ja(t??{})):t}function kC(e,t){if(!e)return t;if(!t)return e;const o=Vt(Object.create(null),e);for(const n in t)o[n]=So(e[n],t[n]);return o}function Jh(){return{app:null,config:{isNativeTag:zf,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 RC=0;function PC(e,t){return function(n,r=null){lt(n)||(n=Vt({},n)),r!=null&&!kt(r)&&(r=null);const i=Jh(),l=new WeakSet,a=[];let s=!1;const c=i.app={_uid:RC++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:nw,get config(){return i.config},set config(d){},use(d,...u){return l.has(d)||(d&<(d.install)?(l.add(d),d.install(c,...u)):lt(d)&&(l.add(d),d(c,...u))),c},mixin(d){return i.mixins.includes(d)||i.mixins.push(d),c},component(d,u){return u?(i.components[d]=u,c):i.components[d]},directive(d,u){return u?(i.directives[d]=u,c):i.directives[d]},mount(d,u,p){if(!s){const v=c._ceVNode||Se(n,r);return v.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),e(v,d,p),s=!0,c._container=d,d.__vue_app__=c,Xa(v.component)}},onUnmount(d){a.push(d)},unmount(){s&&(en(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(d,u){return i.provides[d]=u,c},runWithContext(d){const u=Lr;Lr=c;try{return d()}finally{Lr=u}}};return c}}let Lr=null;function _i(e,t,o=St){const n=Wn(),r=lo(t),i=An(t),l=Zh(e,r),a=V1((s,c)=>{let d,u=St,p;return aC(()=>{const v=e[r];ao(d,v)&&(d=v,c())}),{get(){return s(),o.get?o.get(d):d},set(v){const h=o.set?o.set(v):v;if(!ao(h,d)&&!(u!==St&&ao(v,u)))return;const g=n.vnode.props;g&&(t in g||r in g||i in g)&&(`onUpdate:${t}`in g||`onUpdate:${r}`in g||`onUpdate:${i}`in g)||(d=v,c()),n.emit(`update:${t}`,h),ao(v,h)&&ao(v,u)&&!ao(h,p)&&c(),u=v,p=h}}});return a[Symbol.iterator]=()=>{let s=0;return{next(){return s<2?{value:s++?l||St:a,done:!1}:{done:!0}}}},a}const Zh=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${lo(t)}Modifiers`]||e[`${An(t)}Modifiers`];function _C(e,t,...o){if(e.isUnmounted)return;const n=e.vnode.props||St;let r=o;const i=t.startsWith("update:"),l=i&&Zh(n,t.slice(7));l&&(l.trim&&(r=o.map(d=>Mt(d)?d.trim():d)),l.number&&(r=o.map(mc)));let a,s=n[a=gc(t)]||n[a=gc(lo(t))];!s&&i&&(s=n[a=gc(An(t))]),s&&en(s,e,6,r);const c=n[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,en(c,e,6,r)}}const $C=new WeakMap;function Qh(e,t,o=!1){const n=o?$C:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let l={},a=!1;if(!lt(e)){const s=c=>{const d=Qh(c,t,!0);d&&(a=!0,Vt(l,d))};!o&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!a?(kt(e)&&n.set(e,null),null):(Je(i)?i.forEach(s=>l[s]=null):Vt(l,i),kt(e)&&n.set(e,l),l)}function Va(e,t){return!e||!ga(t)?!1:(t=t.slice(2).replace(/Once$/,""),Rt(e,t[0].toLowerCase()+t.slice(1))||Rt(e,An(t))||Rt(e,t))}function W7(){}function ep(e){const{type:t,vnode:o,proxy:n,withProxy:r,propsOptions:[i],slots:l,attrs:a,emit:s,render:c,renderCache:d,props:u,data:p,setupState:v,ctx:h,inheritAttrs:g}=e,b=Aa(e);let m,x;try{if(o.shapeFlag&4){const C=r||n,y=C;m=yn(c.call(y,C,d,u,v,p,h)),x=a}else{const C=t;m=yn(C.length>1?C(u,{attrs:a,slots:l,emit:s}):C(u,null)),x=t.props?a:TC(a)}}catch(C){Pl.length=0,Oa(C,e,1),m=Se(Yt)}let S=m;if(x&&g!==!1){const C=Object.keys(x),{shapeFlag:y}=S;C.length&&y&7&&(i&&C.some(pc)&&(x=zC(x,i)),S=tn(S,x,!1,!0))}return o.dirs&&(S=tn(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(o.dirs):o.dirs),o.transition&&Br(S,o.transition),m=S,Aa(b),m}const TC=e=>{let t;for(const o in e)(o==="class"||o==="style"||ga(o))&&((t||(t={}))[o]=e[o]);return t},zC=(e,t)=>{const o={};for(const n in e)(!pc(n)||!(n.slice(9)in t))&&(o[n]=e[n]);return o};function EC(e,t,o){const{props:n,children:r,component:i}=e,{props:l,children:a,patchFlag:s}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&s>=0){if(s&1024)return!0;if(s&16)return n?tp(n,l,c):!!l;if(s&8){const d=t.dynamicProps;for(let u=0;u<d.length;u++){const p=d[u];if(op(l,n,p)&&!Va(c,p))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:n===l?!1:n?l?tp(n,l,c):!0:!!l;return!1}function tp(e,t,o){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const i=n[r];if(op(t,e,i)&&!Va(o,i))return!0}return!1}function op(e,t,o){const n=e[o],r=t[o];return o==="style"&&kt(n)&&kt(r)?!bc(n,r):n!==r}function OC({vnode:e,parent:t},o){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=o,t=t.parent;else break}}const np={},rp=()=>Object.create(np),ip=e=>Object.getPrototypeOf(e)===np;function IC(e,t,o,n=!1){const r={},i=rp();e.propsDefaults=Object.create(null),lp(e,t,r,i);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);o?e.props=n?r:sh(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function AC(e,t,o,n){const{props:r,attrs:i,vnode:{patchFlag:l}}=e,a=ut(r),[s]=e.propsOptions;let c=!1;if((n||l>0)&&!(l&16)){if(l&8){const d=e.vnode.dynamicProps;for(let u=0;u<d.length;u++){let p=d[u];if(Va(e.emitsOptions,p))continue;const v=t[p];if(s)if(Rt(i,p))v!==i[p]&&(i[p]=v,c=!0);else{const h=lo(p);r[h]=Nc(s,a,h,v,e,!1)}else v!==i[p]&&(i[p]=v,c=!0)}}}else{lp(e,t,r,i)&&(c=!0);let d;for(const u in a)(!t||!Rt(t,u)&&((d=An(u))===u||!Rt(t,d)))&&(s?o&&(o[u]!==void 0||o[d]!==void 0)&&(r[u]=Nc(s,a,u,void 0,e,!0)):delete r[u]);if(i!==a)for(const u in i)(!t||!Rt(t,u))&&(delete i[u],c=!0)}c&&Fn(e.attrs,"set","")}function lp(e,t,o,n){const[r,i]=e.propsOptions;let l=!1,a;if(t)for(let s in t){if(sl(s))continue;const c=t[s];let d;r&&Rt(r,d=lo(s))?!i||!i.includes(d)?o[d]=c:(a||(a={}))[d]=c:Va(e.emitsOptions,s)||(!(s in n)||c!==n[s])&&(n[s]=c,l=!0)}if(i){const s=ut(o),c=a||St;for(let d=0;d<i.length;d++){const u=i[d];o[u]=Nc(r,s,u,c[u],e,!Rt(c,u))}}return l}function Nc(e,t,o,n,r,i){const l=e[o];if(l!=null){const a=Rt(l,"default");if(a&&n===void 0){const s=l.default;if(l.type!==Function&&!l.skipFactory&<(s)){const{propsDefaults:c}=r;if(o in c)n=c[o];else{const d=Tl(r);n=c[o]=s.call(null,t),d()}}else n=s;r.ce&&r.ce._setProp(o,n)}l[0]&&(i&&!a?n=!1:l[1]&&(n===""||n===An(o))&&(n=!0))}return n}const FC=new WeakMap;function ap(e,t,o=!1){const n=o?FC:t.propsCache,r=n.get(e);if(r)return r;const i=e.props,l={},a=[];let s=!1;if(!lt(e)){const d=u=>{s=!0;const[p,v]=ap(u,t,!0);Vt(l,p),v&&a.push(...v)};!o&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!s)return kt(e)&&n.set(e,xi),xi;if(Je(i))for(let d=0;d<i.length;d++){const u=lo(i[d]);sp(u)&&(l[u]=St)}else if(i)for(const d in i){const u=lo(d);if(sp(u)){const p=i[d],v=l[u]=Je(p)||lt(p)?{type:p}:Vt({},p),h=v.type;let g=!1,b=!0;if(Je(h))for(let m=0;m<h.length;++m){const x=h[m],S=lt(x)&&x.name;if(S==="Boolean"){g=!0;break}else S==="String"&&(b=!1)}else g=lt(h)&&h.name==="Boolean";v[0]=g,v[1]=b,(g||Rt(v,"default"))&&a.push(u)}}const c=[l,a];return kt(e)&&n.set(e,c),c}function sp(e){return e[0]!=="$"&&!sl(e)}const jc=e=>e==="_"||e==="_ctx"||e==="$stable",Wc=e=>Je(e)?e.map(yn):[yn(e)],MC=(e,t,o)=>{if(t._n)return t;const n=He((...r)=>Wc(t(...r)),o);return n._c=!1,n},cp=(e,t,o)=>{const n=e._ctx;for(const r in e){if(jc(r))continue;const i=e[r];if(lt(i))t[r]=MC(r,i,n);else if(i!=null){const l=Wc(i);t[r]=()=>l}}},dp=(e,t)=>{const o=Wc(t);e.slots.default=()=>o},up=(e,t,o)=>{for(const n in t)(o||!jc(n))&&(e[n]=t[n])},BC=(e,t,o)=>{const n=e.slots=rp();if(e.vnode.shapeFlag&32){const r=t._;r?(up(n,t,o),o&&Mf(n,"_",r,!0)):cp(t,n)}else t&&dp(e,t)},LC=(e,t,o)=>{const{vnode:n,slots:r}=e;let i=!0,l=St;if(n.shapeFlag&32){const a=t._;a?o&&a===1?i=!1:up(r,t,o):(i=!t.$stable,cp(t,r)),l=t}else t&&(dp(e,t),l={default:1});if(i)for(const a in r)!jc(a)&&l[a]==null&&delete r[a]},uo=WC;function DC(e){return HC(e)}function HC(e,t){const o=Ca();o.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:l,createText:a,createComment:s,setText:c,setElementText:d,parentNode:u,nextSibling:p,setScopeId:v=hn,insertStaticContent:h}=e,g=(H,G,le,xe=null,we=null,ue=null,Q=void 0,be=null,se=!!G.dynamicChildren)=>{if(H===G)return;H&&!Hr(H,G)&&(xe=J(H),ee(H,we,ue,!0),H=null),G.patchFlag===-2&&(se=!1,G.dynamicChildren=null);const{type:ae,ref:ie,shapeFlag:re}=G;switch(ae){case Rl:b(H,G,le,xe);break;case Yt:m(H,G,le,xe);break;case Ua:H==null&&x(G,le,xe,Q);break;case Ue:O(H,G,le,xe,we,ue,Q,be,se);break;default:re&1?y(H,G,le,xe,we,ue,Q,be,se):re&6?A(H,G,le,xe,we,ue,Q,be,se):(re&64||re&128)&&ae.process(H,G,le,xe,we,ue,Q,be,se,ne)}ie!=null&&we?Cl(ie,H&&H.ref,ue,G||H,!G):ie==null&&H&&H.ref!=null&&Cl(H.ref,null,ue,H,!0)},b=(H,G,le,xe)=>{if(H==null)n(G.el=a(G.children),le,xe);else{const we=G.el=H.el;G.children!==H.children&&c(we,G.children)}},m=(H,G,le,xe)=>{H==null?n(G.el=s(G.children||""),le,xe):G.el=H.el},x=(H,G,le,xe)=>{[H.el,H.anchor]=h(H.children,G,le,xe,H.el,H.anchor)},S=({el:H,anchor:G},le,xe)=>{let we;for(;H&&H!==G;)we=p(H),n(H,le,xe),H=we;n(G,le,xe)},C=({el:H,anchor:G})=>{let le;for(;H&&H!==G;)le=p(H),r(H),H=le;r(G)},y=(H,G,le,xe,we,ue,Q,be,se)=>{if(G.type==="svg"?Q="svg":G.type==="math"&&(Q="mathml"),H==null)R(G,le,xe,we,ue,Q,be,se);else{const ae=H.el&&H.el._isVueCE?H.el:null;try{ae&&ae._beginPatch(),_(H,G,we,ue,Q,be,se)}finally{ae&&ae._endPatch()}}},R=(H,G,le,xe,we,ue,Q,be)=>{let se,ae;const{props:ie,shapeFlag:re,transition:te,dirs:ce}=H;if(se=H.el=l(H.type,ue,ie&&ie.is,ie),re&8?d(se,H.children):re&16&&w(H.children,se,null,xe,we,Vc(H,ue),Q,be),ce&&Mr(H,null,xe,"created"),P(se,H,H.scopeId,Q,xe),ie){for(const ze in ie)ze!=="value"&&!sl(ze)&&i(se,ze,null,ie[ze],ue,xe);"value"in ie&&i(se,"value",null,ie.value,ue),(ae=ie.onVnodeBeforeMount)&&Cn(ae,xe,H)}ce&&Mr(H,null,xe,"beforeMount");const pe=NC(we,te);pe&&te.beforeEnter(se),n(se,G,le),((ae=ie&&ie.onVnodeMounted)||pe||ce)&&uo(()=>{ae&&Cn(ae,xe,H),pe&&te.enter(se),ce&&Mr(H,null,xe,"mounted")},we)},P=(H,G,le,xe,we)=>{if(le&&v(H,le),xe)for(let ue=0;ue<xe.length;ue++)v(H,xe[ue]);if(we){let ue=we.subTree;if(G===ue||vp(ue.type)&&(ue.ssContent===G||ue.ssFallback===G)){const Q=we.vnode;P(H,Q,Q.scopeId,Q.slotScopeIds,we.parent)}}},w=(H,G,le,xe,we,ue,Q,be,se=0)=>{for(let ae=se;ae<H.length;ae++){const ie=H[ae]=be?jn(H[ae]):yn(H[ae]);g(null,ie,G,le,xe,we,ue,Q,be)}},_=(H,G,le,xe,we,ue,Q)=>{const be=G.el=H.el;let{patchFlag:se,dynamicChildren:ae,dirs:ie}=G;se|=H.patchFlag&16;const re=H.props||St,te=G.props||St;let ce;if(le&&Dr(le,!1),(ce=te.onVnodeBeforeUpdate)&&Cn(ce,le,G,H),ie&&Mr(G,H,le,"beforeUpdate"),le&&Dr(le,!0),(re.innerHTML&&te.innerHTML==null||re.textContent&&te.textContent==null)&&d(be,""),ae?B(H.dynamicChildren,ae,be,le,xe,Vc(G,we),ue):Q||k(H,G,be,null,le,xe,Vc(G,we),ue,!1),se>0){if(se&16)z(be,re,te,le,we);else if(se&2&&re.class!==te.class&&i(be,"class",null,te.class,we),se&4&&i(be,"style",re.style,te.style,we),se&8){const pe=G.dynamicProps;for(let ze=0;ze<pe.length;ze++){const Ie=pe[ze],je=re[Ie],Ye=te[Ie];(Ye!==je||Ie==="value")&&i(be,Ie,je,Ye,we,le)}}se&1&&H.children!==G.children&&d(be,G.children)}else!Q&&ae==null&&z(be,re,te,le,we);((ce=te.onVnodeUpdated)||ie)&&uo(()=>{ce&&Cn(ce,le,G,H),ie&&Mr(G,H,le,"updated")},xe)},B=(H,G,le,xe,we,ue,Q)=>{for(let be=0;be<G.length;be++){const se=H[be],ae=G[be],ie=se.el&&(se.type===Ue||!Hr(se,ae)||se.shapeFlag&198)?u(se.el):le;g(se,ae,ie,null,xe,we,ue,Q,!0)}},z=(H,G,le,xe,we)=>{if(G!==le){if(G!==St)for(const ue in G)!sl(ue)&&!(ue in le)&&i(H,ue,G[ue],null,we,xe);for(const ue in le){if(sl(ue))continue;const Q=le[ue],be=G[ue];Q!==be&&ue!=="value"&&i(H,ue,be,Q,we,xe)}"value"in le&&i(H,"value",G.value,le.value,we)}},O=(H,G,le,xe,we,ue,Q,be,se)=>{const ae=G.el=H?H.el:a(""),ie=G.anchor=H?H.anchor:a("");let{patchFlag:re,dynamicChildren:te,slotScopeIds:ce}=G;ce&&(be=be?be.concat(ce):ce),H==null?(n(ae,le,xe),n(ie,le,xe),w(G.children||[],le,ie,we,ue,Q,be,se)):re>0&&re&64&&te&&H.dynamicChildren&&H.dynamicChildren.length===te.length?(B(H.dynamicChildren,te,le,we,ue,Q,be),(G.key!=null||we&&G===we.subTree)&&Uc(H,G,!0)):k(H,G,le,ie,we,ue,Q,be,se)},A=(H,G,le,xe,we,ue,Q,be,se)=>{G.slotScopeIds=be,H==null?G.shapeFlag&512?we.ctx.activate(G,le,xe,Q,se):U(G,le,xe,we,ue,Q,se):W(H,G,se)},U=(H,G,le,xe,we,ue,Q)=>{const be=H.component=XC(H,xe,we);if(Da(H)&&(be.ctx.renderer=ne),YC(be,!1,Q),be.asyncDep){if(we&&we.registerDep(be,F,Q),!H.el){const se=be.subTree=Se(Yt);m(null,se,G,le),H.placeholder=se.el}}else F(be,H,G,le,we,ue,Q)},W=(H,G,le)=>{const xe=G.component=H.component;if(EC(H,G,le))if(xe.asyncDep&&!xe.asyncResolved){T(xe,G,le);return}else xe.next=G,xe.update();else G.el=H.el,xe.vnode=G},F=(H,G,le,xe,we,ue,Q)=>{const be=()=>{if(H.isMounted){let{next:re,bu:te,u:ce,parent:pe,vnode:ze}=H;{const wt=fp(H);if(wt){re&&(re.el=ze.el,T(H,re,Q)),wt.asyncDep.then(()=>{uo(()=>{H.isUnmounted||ae()},we)});return}}let Ie=re,je;Dr(H,!1),re?(re.el=ze.el,T(H,re,Q)):re=ze,te&&ya(te),(je=re.props&&re.props.onVnodeBeforeUpdate)&&Cn(je,pe,re,ze),Dr(H,!0);const Ye=ep(H),ot=H.subTree;H.subTree=Ye,g(ot,Ye,u(ot.el),J(ot),H,we,ue),re.el=Ye.el,Ie===null&&OC(H,Ye.el),ce&&uo(ce,we),(je=re.props&&re.props.onVnodeUpdated)&&uo(()=>Cn(je,pe,re,ze),we)}else{let re;const{el:te,props:ce}=G,{bm:pe,m:ze,parent:Ie,root:je,type:Ye}=H,ot=Pi(G);Dr(H,!1),pe&&ya(pe),!ot&&(re=ce&&ce.onVnodeBeforeMount)&&Cn(re,Ie,G),Dr(H,!0);{je.ce&&je.ce._hasShadowRoot()&&je.ce._injectChildStyle(Ye,H.parent?H.parent.type:void 0);const wt=H.subTree=ep(H);g(null,wt,le,xe,H,we,ue),G.el=wt.el}if(ze&&uo(ze,we),!ot&&(re=ce&&ce.onVnodeMounted)){const wt=G;uo(()=>Cn(re,Ie,wt),we)}(G.shapeFlag&256||Ie&&Pi(Ie.vnode)&&Ie.vnode.shapeFlag&256)&&H.a&&uo(H.a,we),H.isMounted=!0,G=le=xe=null}};H.scope.on();const se=H.effect=new Vf(be);H.scope.off();const ae=H.update=se.run.bind(se),ie=H.job=se.runIfDirty.bind(se);ie.i=H,ie.id=H.uid,se.scheduler=()=>Ec(ie),Dr(H,!0),ae()},T=(H,G,le)=>{G.component=H;const xe=H.vnode.props;H.vnode=G,H.next=null,AC(H,G.props,xe,le),LC(H,G.children,le),pn(),gh(H),vn()},k=(H,G,le,xe,we,ue,Q,be,se=!1)=>{const ae=H&&H.children,ie=H?H.shapeFlag:0,re=G.children,{patchFlag:te,shapeFlag:ce}=G;if(te>0){if(te&128){Y(ae,re,le,xe,we,ue,Q,be,se);return}else if(te&256){I(ae,re,le,xe,we,ue,Q,be,se);return}}ce&8?(ie&16&&ve(ae,we,ue),re!==ae&&d(le,re)):ie&16?ce&16?Y(ae,re,le,xe,we,ue,Q,be,se):ve(ae,we,ue,!0):(ie&8&&d(le,""),ce&16&&w(re,le,xe,we,ue,Q,be,se))},I=(H,G,le,xe,we,ue,Q,be,se)=>{H=H||xi,G=G||xi;const ae=H.length,ie=G.length,re=Math.min(ae,ie);let te;for(te=0;te<re;te++){const ce=G[te]=se?jn(G[te]):yn(G[te]);g(H[te],ce,le,null,we,ue,Q,be,se)}ae>ie?ve(H,we,ue,!0,!1,re):w(G,le,xe,we,ue,Q,be,se,re)},Y=(H,G,le,xe,we,ue,Q,be,se)=>{let ae=0;const ie=G.length;let re=H.length-1,te=ie-1;for(;ae<=re&&ae<=te;){const ce=H[ae],pe=G[ae]=se?jn(G[ae]):yn(G[ae]);if(Hr(ce,pe))g(ce,pe,le,null,we,ue,Q,be,se);else break;ae++}for(;ae<=re&&ae<=te;){const ce=H[re],pe=G[te]=se?jn(G[te]):yn(G[te]);if(Hr(ce,pe))g(ce,pe,le,null,we,ue,Q,be,se);else break;re--,te--}if(ae>re){if(ae<=te){const ce=te+1,pe=ce<ie?G[ce].el:xe;for(;ae<=te;)g(null,G[ae]=se?jn(G[ae]):yn(G[ae]),le,pe,we,ue,Q,be,se),ae++}}else if(ae>te)for(;ae<=re;)ee(H[ae],we,ue,!0),ae++;else{const ce=ae,pe=ae,ze=new Map;for(ae=pe;ae<=te;ae++){const Le=G[ae]=se?jn(G[ae]):yn(G[ae]);Le.key!=null&&ze.set(Le.key,ae)}let Ie,je=0;const Ye=te-pe+1;let ot=!1,wt=0;const Tt=new Array(Ye);for(ae=0;ae<Ye;ae++)Tt[ae]=0;for(ae=ce;ae<=re;ae++){const Le=H[ae];if(je>=Ye){ee(Le,we,ue,!0);continue}let ye;if(Le.key!=null)ye=ze.get(Le.key);else for(Ie=pe;Ie<=te;Ie++)if(Tt[Ie-pe]===0&&Hr(Le,G[Ie])){ye=Ie;break}ye===void 0?ee(Le,we,ue,!0):(Tt[ye-pe]=ae+1,ye>=wt?wt=ye:ot=!0,g(Le,G[ye],le,null,we,ue,Q,be,se),je++)}const zt=ot?jC(Tt):xi;for(Ie=zt.length-1,ae=Ye-1;ae>=0;ae--){const Le=pe+ae,ye=G[Le],oe=G[Le+1],fe=Le+1<ie?oe.el||pp(oe):xe;Tt[ae]===0?g(null,ye,le,fe,we,ue,Q,be,se):ot&&(Ie<0||ae!==zt[Ie]?j(ye,le,fe,2):Ie--)}}},j=(H,G,le,xe,we=null)=>{const{el:ue,type:Q,transition:be,children:se,shapeFlag:ae}=H;if(ae&6){j(H.component.subTree,G,le,xe);return}if(ae&128){H.suspense.move(G,le,xe);return}if(ae&64){Q.move(H,G,le,ne);return}if(Q===Ue){n(ue,G,le);for(let re=0;re<se.length;re++)j(se[re],G,le,xe);n(H.anchor,G,le);return}if(Q===Ua){S(H,G,le);return}if(xe!==2&&ae&1&&be)if(xe===0)be.beforeEnter(ue),n(ue,G,le),uo(()=>be.enter(ue),we);else{const{leave:re,delayLeave:te,afterLeave:ce}=be,pe=()=>{H.ctx.isUnmounted?r(ue):n(ue,G,le)},ze=()=>{ue._isLeaving&&ue[xn](!0),re(ue,()=>{pe(),ce&&ce()})};te?te(ue,pe,ze):ze()}else n(ue,G,le)},ee=(H,G,le,xe=!1,we=!1)=>{const{type:ue,props:Q,ref:be,children:se,dynamicChildren:ae,shapeFlag:ie,patchFlag:re,dirs:te,cacheIndex:ce}=H;if(re===-2&&(we=!1),be!=null&&(pn(),Cl(be,null,le,H,!0),vn()),ce!=null&&(G.renderCache[ce]=void 0),ie&256){G.ctx.deactivate(H);return}const pe=ie&1&&te,ze=!Pi(H);let Ie;if(ze&&(Ie=Q&&Q.onVnodeBeforeUnmount)&&Cn(Ie,G,H),ie&6)N(H.component,le,xe);else{if(ie&128){H.suspense.unmount(le,xe);return}pe&&Mr(H,null,G,"beforeUnmount"),ie&64?H.type.remove(H,G,le,ne,xe):ae&&!ae.hasOnce&&(ue!==Ue||re>0&&re&64)?ve(ae,G,le,!1,!0):(ue===Ue&&re&384||!we&&ie&16)&&ve(se,G,le),xe&&D(H)}(ze&&(Ie=Q&&Q.onVnodeUnmounted)||pe)&&uo(()=>{Ie&&Cn(Ie,G,H),pe&&Mr(H,null,G,"unmounted")},le)},D=H=>{const{type:G,el:le,anchor:xe,transition:we}=H;if(G===Ue){M(le,xe);return}if(G===Ua){C(H);return}const ue=()=>{r(le),we&&!we.persisted&&we.afterLeave&&we.afterLeave()};if(H.shapeFlag&1&&we&&!we.persisted){const{leave:Q,delayLeave:be}=we,se=()=>Q(le,ue);be?be(H.el,ue,se):se()}else ue()},M=(H,G)=>{let le;for(;H!==G;)le=p(H),r(H),H=le;r(G)},N=(H,G,le)=>{const{bum:xe,scope:we,job:ue,subTree:Q,um:be,m:se,a:ae}=H;hp(se),hp(ae),xe&&ya(xe),we.stop(),ue&&(ue.flags|=8,ee(Q,H,G,le)),be&&uo(be,G),uo(()=>{H.isUnmounted=!0},G)},ve=(H,G,le,xe=!1,we=!1,ue=0)=>{for(let Q=ue;Q<H.length;Q++)ee(H[Q],G,le,xe,we)},J=H=>{if(H.shapeFlag&6)return J(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const G=p(H.anchor||H.el),le=G&&G[Ch];return le?p(le):G};let Ce=!1;const Z=(H,G,le)=>{let xe;H==null?G._vnode&&(ee(G._vnode,null,null,!0),xe=G._vnode.component):g(G._vnode||null,H,G,null,null,null,le),G._vnode=H,Ce||(Ce=!0,gh(xe),mh(),Ce=!1)},ne={p:g,um:ee,m:j,r:D,mt:U,mc:w,pc:k,pbc:B,n:J,o:e};return{render:Z,hydrate:void 0,createApp:PC(Z)}}function Vc({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function Dr({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function NC(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Uc(e,t,o=!1){const n=e.children,r=t.children;if(Je(n)&&Je(r))for(let i=0;i<n.length;i++){const l=n[i];let a=r[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[i]=jn(r[i]),a.el=l.el),!o&&a.patchFlag!==-2&&Uc(l,a)),a.type===Rl&&(a.patchFlag===-1&&(a=r[i]=jn(a)),a.el=l.el),a.type===Yt&&!a.el&&(a.el=l.el)}}function jC(e){const t=e.slice(),o=[0];let n,r,i,l,a;const s=e.length;for(n=0;n<s;n++){const c=e[n];if(c!==0){if(r=o[o.length-1],e[r]<c){t[n]=r,o.push(n);continue}for(i=0,l=o.length-1;i<l;)a=i+l>>1,e[o[a]]<c?i=a+1:l=a;c<e[o[i]]&&(i>0&&(t[n]=o[i-1]),o[i]=n)}}for(i=o.length,l=o[i-1];i-- >0;)o[i]=l,l=t[l];return o}function fp(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:fp(t)}function hp(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function pp(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?pp(t.subTree):null}const vp=e=>e.__isSuspense;function WC(e,t){t&&t.pendingBranch?Je(e)?t.effects.push(...e):t.effects.push(e):nC(e)}const Ue=Symbol.for("v-fgt"),Rl=Symbol.for("v-txt"),Yt=Symbol.for("v-cmt"),Ua=Symbol.for("v-stc"),Pl=[];let Fo=null;function me(e=!1){Pl.push(Fo=e?null:[])}function VC(){Pl.pop(),Fo=Pl[Pl.length-1]||null}let _l=1;function Ka(e,t=!1){_l+=e,e<0&&Fo&&t&&(Fo.hasOnce=!0)}function gp(e){return e.dynamicChildren=_l>0?Fo||xi:null,VC(),_l>0&&Fo&&Fo.push(e),e}function Re(e,t,o,n,r,i){return gp(K(e,t,o,n,r,i,!0))}function mt(e,t,o,n,r){return gp(Se(e,t,o,n,r,!0))}function $i(e){return e?e.__v_isVNode===!0:!1}function Hr(e,t){return e.type===t.type&&e.key===t.key}const mp=({key:e})=>e??null,qa=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?Mt(e)||It(e)||lt(e)?{i:ro,r:e,k:t,f:!!o}:e:null);function K(e,t=null,o=null,n=0,r=null,i=e===Ue?0:1,l=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&mp(t),ref:t&&qa(t),scopeId:xh,slotScopeIds:null,children:o,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:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ro};return a?(Kc(s,o),i&128&&e.normalize(s)):o&&(s.shapeFlag|=Mt(o)?8:16),_l>0&&!l&&Fo&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&Fo.push(s),s}const Se=UC;function UC(e,t=null,o=null,n=0,r=null,i=!1){if((!e||e===Dh)&&(e=Yt),$i(e)){const a=tn(e,t,!0);return o&&Kc(a,o),_l>0&&!i&&Fo&&(a.shapeFlag&6?Fo[Fo.indexOf(e)]=a:Fo.push(a)),a.patchFlag=-2,a}if(ow(e)&&(e=e.__vccOpts),t){t=KC(t);let{class:a,style:s}=t;a&&!Mt(a)&&(t.class=Pt(a)),kt(s)&&(Ta(s)&&!Je(s)&&(s=Vt({},s)),t.style=$o(s))}const l=Mt(e)?1:vp(e)?128:wh(e)?64:kt(e)?4:lt(e)?2:0;return K(e,t,o,n,r,l,i,!0)}function KC(e){return e?Ta(e)||ip(e)?Vt({},e):e:null}function tn(e,t,o=!1,n=!1){const{props:r,ref:i,patchFlag:l,children:a,transition:s}=e,c=t?ko(r||{},t):r,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&mp(c),ref:t&&t.ref?o&&i?Je(i)?i.concat(qa(t)):[i,qa(t)]:qa(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ue?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&tn(e.ssContent),ssFallback:e.ssFallback&&tn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&n&&Br(d,s.clone(d)),d}function it(e=" ",t=0){return Se(Rl,null,e,t)}function $l(e,t){const o=Se(Ua,null,e);return o.staticCount=t,o}function et(e="",t=!1){return t?(me(),mt(Yt,null,e)):Se(Yt,null,e)}function yn(e){return e==null||typeof e=="boolean"?Se(Yt):Je(e)?Se(Ue,null,e.slice()):$i(e)?jn(e):Se(Rl,null,String(e))}function jn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:tn(e)}function Kc(e,t){let o=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Je(t))o=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),Kc(e,r()),r._c&&(r._d=!0));return}else{o=32;const r=t._;!r&&!ip(t)?t._ctx=ro:r===3&&ro&&(ro.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else lt(t)?(t={default:t,_ctx:ro},o=32):(t=String(t),n&64?(o=16,t=[it(t)]):o=8);e.children=t,e.shapeFlag|=o}function ko(...e){const t={};for(let o=0;o<e.length;o++){const n=e[o];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=Pt([t.class,n.class]));else if(r==="style")t.style=$o([t.style,n.style]);else if(ga(r)){const i=t[r],l=n[r];l&&i!==l&&!(Je(i)&&i.includes(l))&&(t[r]=i?[].concat(i,l):l)}else r!==""&&(t[r]=n[r])}return t}function Cn(e,t,o,n=null){en(e,t,7,[o,n])}const qC=Jh();let GC=0;function XC(e,t,o){const n=e.type,r=(t?t.appContext:e.appContext)||qC,i={uid:GC++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Nf(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ap(n,r),emitsOptions:Qh(n,r),emit:null,emitted:null,propsDefaults:St,inheritAttrs:n.inheritAttrs,ctx:St,data:St,props:St,attrs:St,slots:St,refs:St,setupState:St,setupContext:null,suspense:o,suspenseId:o?o.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 i.ctx={_:i},i.root=t?t.root:i,i.emit=_C.bind(null,i),e.ce&&e.ce(i),i}let fo=null;const Wn=()=>fo||ro;let Ga,qc;{const e=Ca(),t=(o,n)=>{let r;return(r=e[o])||(r=e[o]=[]),r.push(n),i=>{r.length>1?r.forEach(l=>l(i)):r[0](i)}};Ga=t("__VUE_INSTANCE_SETTERS__",o=>fo=o),qc=t("__VUE_SSR_SETTERS__",o=>zl=o)}const Tl=e=>{const t=fo;return Ga(e),e.scope.on(),()=>{e.scope.off(),Ga(t)}},bp=()=>{fo&&fo.scope.off(),Ga(null)};function xp(e){return e.vnode.shapeFlag&4}let zl=!1;function YC(e,t=!1,o=!1){t&&qc(t);const{props:n,children:r}=e.vnode,i=xp(e);IC(e,n,i,t),BC(e,r,o||t);const l=i?JC(e,t):void 0;return t&&qc(!1),l}function JC(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,xC);const{setup:n}=o;if(n){pn();const r=e.setupContext=n.length>1?QC(e):null,i=Tl(e),l=Si(n,e,0,[e.props,r]),a=If(l);if(vn(),i(),(a||e.sp)&&!Pi(e)&&Ih(e),a){if(l.then(bp,bp),t)return l.then(s=>{yp(e,s)}).catch(s=>{Oa(s,e,0)});e.asyncDep=l}else yp(e,l)}else Cp(e)}function yp(e,t,o){lt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:kt(t)&&(e.setupState=dh(t)),Cp(e)}function Cp(e,t,o){const n=e.type;e.render||(e.render=n.render||hn);{const r=Tl(e);pn();try{yC(e)}finally{vn(),r()}}}const ZC={get(e,t){return co(e,"get",""),e[t]}};function QC(e){const t=o=>{e.exposed=o||{}};return{attrs:new Proxy(e.attrs,ZC),slots:e.slots,emit:e.emit,expose:t}}function Xa(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(dh(pl(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in Sl)return Sl[o](e)},has(t,o){return o in t||o in Sl}})):e.proxy}const ew=/(?:^|[-_])\w/g,tw=e=>e.replace(ew,t=>t.toUpperCase()).replace(/[-_]/g,"");function wp(e,t=!0){return lt(e)?e.displayName||e.name:e.name||t&&e.__name}function Sp(e,t,o=!1){let n=wp(t);if(!n&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(n=r[1])}if(!n&&e){const r=i=>{for(const l in i)if(i[l]===t)return l};n=r(e.components)||e.parent&&r(e.parent.type.components)||r(e.appContext.components)}return n?tw(n):o?"App":"Anonymous"}function ow(e){return lt(e)&&"__vccOpts"in e}const E=(e,t)=>G1(e,t,zl);function f(e,t,o){try{Ka(-1);const n=arguments.length;return n===2?kt(t)&&!Je(t)?$i(t)?Se(e,null,[t]):Se(e,t):Se(e,null,t):(n>3?o=Array.prototype.slice.call(arguments,2):n===3&&$i(o)&&(o=[o]),Se(e,t,o))}finally{Ka(1)}}const nw="3.5.30";/**
|
|
17
17
|
* @vue/runtime-dom v3.5.30
|
|
18
18
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
19
19
|
* @license MIT
|
|
@@ -40,7 +40,7 @@ ${r}
|
|
|
40
40
|
`);return}a=Bv(a),s!=null&&l.push(` ${a}${t2(s)}`)}),e&&l.push("}"),l.join(`
|
|
41
41
|
`)}function hd(e,t,o){e&&e.forEach(n=>{if(Array.isArray(n))hd(n,t,o);else if(typeof n=="function"){const r=n(t);Array.isArray(r)?hd(r,t,o):r&&o(r)}else n&&o(n)})}function Dv(e,t,o,n,r){const i=e.$;let l="";if(!i||typeof i=="string")os(i)?l=i:t.push(i);else if(typeof i=="function"){const c=i({context:n.context,props:r});os(c)?l=c:t.push(c)}else if(i.before&&i.before(n.context),!i.$||typeof i.$=="string")os(i.$)?l=i.$:t.push(i.$);else if(i.$){const c=i.$({context:n.context,props:r});os(c)?l=c:t.push(c)}const a=ZS(t),s=Lv(a,e.props,n,r);l?o.push(`${l} {`):s.length&&o.push(s),e.children&&hd(e.children,{context:n.context,props:r},c=>{if(typeof c=="string"){const d=Lv(a,{raw:c},n,r);o.push(d)}else Dv(c,t,o,n,r)}),t.pop(),l&&o.push("}"),i&&i.after&&i.after(n.context)}function n2(e,t,o){const n=[];return Dv(e,[],n,t,o),n.join(`
|
|
42
42
|
|
|
43
|
-
`)}function Mi(e){for(var t=0,o,n=0,r=e.length;r>=4;++n,r-=4)o=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function r2(e,t,o,n){const{els:r}=t;if(o===void 0)r.forEach(Mv),t.els=[];else{const i=ts(o,n);i&&r.includes(i)&&(Mv(i),t.els=r.filter(l=>l!==i))}}function Hv(e,t){e.push(t)}function i2(e,t,o,n,r,i,l,a,s){let c;if(o===void 0&&(c=t.render(n),o=Mi(c)),s){s.adapter(o,c??t.render(n));return}a===void 0&&(a=document.head);const d=ts(o,a);if(d!==null&&!i)return d;const u=d??QS(o);if(c===void 0&&(c=t.render(n)),u.textContent=c,d!==null)return d;if(l){const p=a.querySelector(`meta[name="${l}"]`);if(p)return a.insertBefore(u,p),Hv(t.els,u),u}return r?a.insertBefore(u,a.querySelector("style, link")):a.appendChild(u),Hv(t.els,u),u}function l2(e){return n2(this,this.instance,e)}function a2(e={}){const{id:t,ssr:o,props:n,head:r=!1,force:i=!1,anchorMetaName:l,parent:a}=e;return i2(this.instance,this,t,n,r,i,l,a,o)}function s2(e={}){const{id:t,parent:o}=e;r2(this.instance,this,t,o)}const ns=function(e,t,o,n){return{instance:e,$:t,props:o,children:n,els:[],render:l2,mount:a2,unmount:s2}},c2=function(e,t,o,n){return Array.isArray(t)?ns(e,{$:null},null,t):Array.isArray(o)?ns(e,t,null,o):Array.isArray(n)?ns(e,t,o,n):ns(e,t,o,null)};function Nv(e={}){const t={c:(...o)=>c2(t,...o),use:(o,...n)=>o.install(t,...n),find:ts,context:{},config:e};return t}function d2(e,t){if(e===void 0)return!1;if(t){const{context:{ids:o}}=t;return o.has(e)}return ts(e)!==null}const Bl=".n-",u2="__",f2="--",jv=Nv(),Wv=qS({blockPrefix:Bl,elementPrefix:u2,modifierPrefix:f2});jv.use(Wv);const{c:V,find:G7}=jv,{cB:$,cE:q,cM:X,cNotM:ft}=Wv;function rs(e){return V(({props:{bPrefix:t}})=>`${t||Bl}modal, ${t||Bl}drawer`,[e])}function pd(e){return V(({props:{bPrefix:t}})=>`${t||Bl}popover`,[e])}function Vv(e){return V(({props:{bPrefix:t}})=>`&${t||Bl}modal`,e)}const h2=(...e)=>V(">",[$(...e)]);function ke(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,o=>o.toUpperCase()))}let is=[];const Uv=new WeakMap;function p2(){is.forEach(e=>e(...Uv.get(e))),is=[]}function Ll(e,...t){Uv.set(e,t),!is.includes(e)&&is.push(e)===1&&requestAnimationFrame(p2)}function Uo(e,t){let{target:o}=e;for(;o;){if(o.dataset&&o.dataset[t]!==void 0)return!0;o=o.parentElement}return!1}function Vr(e){return e.composedPath()[0]||null}function to(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function jt(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function Gt(e,t){const o=e.trim().split(/\s+/g),n={top:o[0]};switch(o.length){case 1:n.right=o[0],n.bottom=o[0],n.left=o[0];break;case 2:n.right=o[1],n.left=o[1],n.bottom=o[0];break;case 3:n.right=o[1],n.bottom=o[2],n.left=o[1];break;case 4:n.right=o[1],n.bottom=o[2],n.left=o[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?n:n[t]}const Kv={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#0FF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000",blanchedalmond:"#FFEBCD",blue:"#00F",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#0FF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#F0F",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#0F0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#F0F",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#F00",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFF",whitesmoke:"#F5F5F5",yellow:"#FF0",yellowgreen:"#9ACD32",transparent:"#0000"};function v2(e,t,o){t/=100,o/=100;let n=(r,i=(r+e/60)%6)=>o-o*t*Math.max(Math.min(i,4-i,1),0);return[n(5)*255,n(3)*255,n(1)*255]}function g2(e,t,o){t/=100,o/=100;let n=t*Math.min(o,1-o),r=(i,l=(i+e/30)%12)=>o-n*Math.max(Math.min(l-3,9-l,1),-1);return[r(0)*255,r(8)*255,r(4)*255]}const Sn="^\\s*",kn="\\s*$",sr="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",Mo="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",Ur="([0-9A-Fa-f])",Kr="([0-9A-Fa-f]{2})",qv=new RegExp(`${Sn}hsl\\s*\\(${Mo},${sr},${sr}\\)${kn}`),Gv=new RegExp(`${Sn}hsv\\s*\\(${Mo},${sr},${sr}\\)${kn}`),Xv=new RegExp(`${Sn}hsla\\s*\\(${Mo},${sr},${sr},${Mo}\\)${kn}`),Yv=new RegExp(`${Sn}hsva\\s*\\(${Mo},${sr},${sr},${Mo}\\)${kn}`),m2=new RegExp(`${Sn}rgb\\s*\\(${Mo},${Mo},${Mo}\\)${kn}`),b2=new RegExp(`${Sn}rgba\\s*\\(${Mo},${Mo},${Mo},${Mo}\\)${kn}`),x2=new RegExp(`${Sn}#${Ur}${Ur}${Ur}${kn}`),y2=new RegExp(`${Sn}#${Kr}${Kr}${Kr}${kn}`),C2=new RegExp(`${Sn}#${Ur}${Ur}${Ur}${Ur}${kn}`),w2=new RegExp(`${Sn}#${Kr}${Kr}${Kr}${Kr}${kn}`);function zo(e){return parseInt(e,16)}function S2(e){try{let t;if(t=Xv.exec(e))return[ls(t[1]),cr(t[5]),cr(t[9]),qr(t[13])];if(t=qv.exec(e))return[ls(t[1]),cr(t[5]),cr(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function k2(e){try{let t;if(t=Yv.exec(e))return[ls(t[1]),cr(t[5]),cr(t[9]),qr(t[13])];if(t=Gv.exec(e))return[ls(t[1]),cr(t[5]),cr(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function qn(e){try{let t;if(t=y2.exec(e))return[zo(t[1]),zo(t[2]),zo(t[3]),1];if(t=m2.exec(e))return[ho(t[1]),ho(t[5]),ho(t[9]),1];if(t=b2.exec(e))return[ho(t[1]),ho(t[5]),ho(t[9]),qr(t[13])];if(t=x2.exec(e))return[zo(t[1]+t[1]),zo(t[2]+t[2]),zo(t[3]+t[3]),1];if(t=w2.exec(e))return[zo(t[1]),zo(t[2]),zo(t[3]),qr(zo(t[4])/255)];if(t=C2.exec(e))return[zo(t[1]+t[1]),zo(t[2]+t[2]),zo(t[3]+t[3]),qr(zo(t[4]+t[4])/255)];if(e in Kv)return qn(Kv[e]);if(qv.test(e)||Xv.test(e)){const[o,n,r,i]=S2(e);return[...g2(o,n,r),i]}else if(Gv.test(e)||Yv.test(e)){const[o,n,r,i]=k2(e);return[...v2(o,n,r),i]}throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function R2(e){return e>1?1:e<0?0:e}function vd(e,t,o,n){return`rgba(${ho(e)}, ${ho(t)}, ${ho(o)}, ${R2(n)})`}function gd(e,t,o,n,r){return ho((e*t*(1-n)+o*n)/r)}function Ke(e,t){Array.isArray(e)||(e=qn(e)),Array.isArray(t)||(t=qn(t));const o=e[3],n=t[3],r=qr(o+n-o*n);return vd(gd(e[0],o,t[0],n,r),gd(e[1],o,t[1],n,r),gd(e[2],o,t[2],n,r),r)}function Te(e,t){const[o,n,r,i=1]=Array.isArray(e)?e:qn(e);return typeof t.alpha=="number"?vd(o,n,r,t.alpha):vd(o,n,r,i)}function Kt(e,t){const[o,n,r,i=1]=Array.isArray(e)?e:qn(e),{lightness:l=1,alpha:a=1}=t;return P2([o*l,n*l,r*l,i*a])}function qr(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function ls(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function ho(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function cr(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function P2(e){const[t,o,n]=e;return 3 in e?`rgba(${ho(t)}, ${ho(o)}, ${ho(n)}, ${qr(e[3])})`:`rgba(${ho(t)}, ${ho(o)}, ${ho(n)}, 1)`}function nn(e=8){return Math.random().toString(16).slice(2,2+e)}function _2(e,t){const o=[];for(let n=0;n<e;++n)o.push(t);return o}function as(e){return e.composedPath()[0]}const $2={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function T2(e,t,o){if(e==="mousemoveoutside"){const n=r=>{t.contains(as(r))||o(r)};return{mousemove:n,touchstart:n}}else if(e==="clickoutside"){let n=!1;const r=l=>{n=!t.contains(as(l))},i=l=>{n&&(t.contains(as(l))||o(l))};return{mousedown:r,mouseup:i,touchstart:r,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function Jv(e,t,o){const n=$2[e];let r=n.get(t);r===void 0&&n.set(t,r=new WeakMap);let i=r.get(o);return i===void 0&&r.set(o,i=T2(e,t,o)),i}function z2(e,t,o,n){if(e==="mousemoveoutside"||e==="clickoutside"){const r=Jv(e,t,o);return Object.keys(r).forEach(i=>{yt(i,document,r[i],n)}),!0}return!1}function E2(e,t,o,n){if(e==="mousemoveoutside"||e==="clickoutside"){const r=Jv(e,t,o);return Object.keys(r).forEach(i=>{ct(i,document,r[i],n)}),!0}return!1}function O2(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function o(){e.set(this,!0)}function n(){e.set(this,!0),t.set(this,!0)}function r(P,w,_){const B=P[w];return P[w]=function(){return _.apply(P,arguments),B.apply(P,arguments)},P}function i(P,w){P[w]=Event.prototype[w]}const l=new WeakMap,a=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var P;return(P=l.get(this))!==null&&P!==void 0?P:null}function c(P,w){a!==void 0&&Object.defineProperty(P,"currentTarget",{configurable:!0,enumerable:!0,get:w??a.get})}const d={bubble:{},capture:{}},u={};function p(){const P=function(w){const{type:_,eventPhase:B,bubbles:z}=w,O=as(w);if(B===2)return;const A=B===1?"capture":"bubble";let U=O;const W=[];for(;U===null&&(U=window),W.push(U),U!==window;)U=U.parentNode||null;const F=d.capture[_],T=d.bubble[_];if(r(w,"stopPropagation",o),r(w,"stopImmediatePropagation",n),c(w,s),A==="capture"){if(F===void 0)return;for(let k=W.length-1;k>=0&&!e.has(w);--k){const I=W[k],Y=F.get(I);if(Y!==void 0){l.set(w,I);for(const j of Y){if(t.has(w))break;j(w)}}if(k===0&&!z&&T!==void 0){const j=T.get(I);if(j!==void 0)for(const ee of j){if(t.has(w))break;ee(w)}}}}else if(A==="bubble"){if(T===void 0)return;for(let k=0;k<W.length&&!e.has(w);++k){const I=W[k],Y=T.get(I);if(Y!==void 0){l.set(w,I);for(const j of Y){if(t.has(w))break;j(w)}}}}i(w,"stopPropagation"),i(w,"stopImmediatePropagation"),c(w)};return P.displayName="evtdUnifiedHandler",P}function v(){const P=function(w){const{type:_,eventPhase:B}=w;if(B!==2)return;const z=u[_];z!==void 0&&z.forEach(O=>O(w))};return P.displayName="evtdUnifiedWindowEventHandler",P}const h=p(),g=v();function b(P,w){const _=d[P];return _[w]===void 0&&(_[w]=new Map,window.addEventListener(w,h,P==="capture")),_[w]}function m(P){return u[P]===void 0&&(u[P]=new Set,window.addEventListener(P,g)),u[P]}function x(P,w){let _=P.get(w);return _===void 0&&P.set(w,_=new Set),_}function S(P,w,_,B){const z=d[w][_];if(z!==void 0){const O=z.get(P);if(O!==void 0&&O.has(B))return!0}return!1}function C(P,w){const _=u[P];return!!(_!==void 0&&_.has(w))}function y(P,w,_,B){let z;if(typeof B=="object"&&B.once===!0?z=F=>{R(P,w,z,B),_(F)}:z=_,z2(P,w,z,B))return;const A=B===!0||typeof B=="object"&&B.capture===!0?"capture":"bubble",U=b(A,P),W=x(U,w);if(W.has(z)||W.add(z),w===window){const F=m(P);F.has(z)||F.add(z)}}function R(P,w,_,B){if(E2(P,w,_,B))return;const O=B===!0||typeof B=="object"&&B.capture===!0,A=O?"capture":"bubble",U=b(A,P),W=x(U,w);if(w===window&&!S(w,O?"bubble":"capture",P,_)&&C(P,_)){const T=u[P];T.delete(_),T.size===0&&(window.removeEventListener(P,g),u[P]=void 0)}W.has(_)&&W.delete(_),W.size===0&&U.delete(w),U.size===0&&(window.removeEventListener(P,h,A==="capture"),d[A][P]=void 0)}return{on:y,off:R}}const{on:yt,off:ct}=O2();function I2(e){const t=L(!!e.value);if(t.value)return Io(t);const o=Ze(e,n=>{n&&(t.value=!0,o())});return Io(t)}function bt(e){const t=E(e),o=L(t.value);return Ze(t,n=>{o.value=n}),typeof e=="function"?o:{__v_isRef:!0,get value(){return o.value},set value(n){e.set(n)}}}function ss(){return Wn()!==null}const md=typeof window<"u";let Bi,Dl;(()=>{var e,t;Bi=md?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Dl=!1,Bi!==void 0?Bi.then(()=>{Dl=!0}):Dl=!0})();function Zv(e){if(Dl)return;let t=!1;Bt(()=>{Dl||Bi==null||Bi.then(()=>{t||e()})}),Dt(()=>{t=!0})}const Hl=L(null);function Qv(e){if(e.clientX>0||e.clientY>0)Hl.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:o,top:n,width:r,height:i}=t.getBoundingClientRect();o>0||n>0?Hl.value={x:o+r/2,y:n+i/2}:Hl.value={x:0,y:0}}else Hl.value=null}}let cs=0,eg=!0;function bd(){if(!md)return Io(L(null));cs===0&&yt("click",document,Qv,!0);const e=()=>{cs+=1};return eg&&(eg=ss())?(Nn(e),Dt(()=>{cs-=1,cs===0&&ct("click",document,Qv,!0)})):e(),Io(Hl)}const A2=L(void 0);let ds=0;function tg(){A2.value=Date.now()}let og=!0;function xd(e){if(!md)return Io(L(!1));const t=L(!1);let o=null;function n(){o!==null&&window.clearTimeout(o)}function r(){n(),t.value=!0,o=window.setTimeout(()=>{t.value=!1},e)}ds===0&&yt("click",window,tg,!0);const i=()=>{ds+=1,yt("click",window,r,!0)};return og&&(og=ss())?(Nn(i),Dt(()=>{ds-=1,ds===0&&ct("click",window,tg,!0),ct("click",window,r,!0),n()})):i(),Io(t)}let us=0;const F2=typeof window<"u"&&window.matchMedia!==void 0,Gr=L(null);let rn,Xr;function fs(e){e.matches&&(Gr.value="dark")}function hs(e){e.matches&&(Gr.value="light")}function M2(){rn=window.matchMedia("(prefers-color-scheme: dark)"),Xr=window.matchMedia("(prefers-color-scheme: light)"),rn.matches?Gr.value="dark":Xr.matches?Gr.value="light":Gr.value=null,rn.addEventListener?(rn.addEventListener("change",fs),Xr.addEventListener("change",hs)):rn.addListener&&(rn.addListener(fs),Xr.addListener(hs))}function B2(){"removeEventListener"in rn?(rn.removeEventListener("change",fs),Xr.removeEventListener("change",hs)):"removeListener"in rn&&(rn.removeListener(fs),Xr.removeListener(hs)),rn=void 0,Xr=void 0}let ng=!0;function L2(){return F2&&(us===0&&M2(),ng&&(ng=ss())&&(Nn(()=>{us+=1}),Dt(()=>{us-=1,us===0&&B2()}))),Io(Gr)}function Ht(e,t){return Ze(e,o=>{o!==void 0&&(t.value=o)}),E(()=>e.value===void 0?t.value:e.value)}function dr(){const e=L(!1);return Bt(()=>{e.value=!0}),Io(e)}function Li(e,t){return E(()=>{for(const o of t)if(e[o]!==void 0)return e[o];return e[t[t.length-1]]})}const D2=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function H2(){return D2}function N2(e={},t){const o=mn({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:n,keyup:r}=e,i=s=>{switch(s.key){case"Control":o.ctrl=!0;break;case"Meta":o.command=!0,o.win=!0;break;case"Shift":o.shift=!0;break;case"Tab":o.tab=!0;break}n!==void 0&&Object.keys(n).forEach(c=>{if(c!==s.key)return;const d=n[c];if(typeof d=="function")d(s);else{const{stop:u=!1,prevent:p=!1}=d;u&&s.stopPropagation(),p&&s.preventDefault(),d.handler(s)}})},l=s=>{switch(s.key){case"Control":o.ctrl=!1;break;case"Meta":o.command=!1,o.win=!1;break;case"Shift":o.shift=!1;break;case"Tab":o.tab=!1;break}r!==void 0&&Object.keys(r).forEach(c=>{if(c!==s.key)return;const d=r[c];if(typeof d=="function")d(s);else{const{stop:u=!1,prevent:p=!1}=d;u&&s.stopPropagation(),p&&s.preventDefault(),d.handler(s)}})},a=()=>{(t===void 0||t.value)&&(yt("keydown",document,i),yt("keyup",document,l)),t!==void 0&&Ze(t,s=>{s?(yt("keydown",document,i),yt("keyup",document,l)):(ct("keydown",document,i),ct("keyup",document,l))})};return ss()?(Nn(a),Dt(()=>{(t===void 0||t.value)&&(ct("keydown",document,i),ct("keyup",document,l))})):a(),Io(o)}function Y7(e){return e}const yd="n-internal-select-menu",rg="n-internal-select-menu-body",ps="n-drawer-body",vs="n-modal-body",j2="n-modal-provider",ig="n-modal",Nl="n-popover-body",lg="__disabled__";function Bo(e){const t=Be(vs,null),o=Be(ps,null),n=Be(Nl,null),r=Be(rg,null),i=L();if(typeof document<"u"){i.value=document.fullscreenElement;const l=()=>{i.value=document.fullscreenElement};Bt(()=>{yt("fullscreenchange",document,l)}),Dt(()=>{ct("fullscreenchange",document,l)})}return bt(()=>{var l;const{to:a}=e;return a!==void 0?a===!1?lg:a===!0?i.value||"body":a:t!=null&&t.value?(l=t.value.$el)!==null&&l!==void 0?l:t.value:o!=null&&o.value?o.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:a??(i.value||"body")})}Bo.tdkey=lg,Bo.propTo={type:[String,Object,Boolean],default:void 0};function W2(e,t,o){const n=L(e.value);let r=null;return Ze(e,i=>{r!==null&&window.clearTimeout(r),i===!0?o&&!o.value?n.value=!0:r=window.setTimeout(()=>{n.value=!0},t):n.value=!1}),n}const ur=typeof document<"u"&&typeof window<"u",Cd=L(!1);function ag(){Cd.value=!0}function sg(){Cd.value=!1}let jl=0;function V2(){return ur&&(Nn(()=>{jl||(window.addEventListener("compositionstart",ag),window.addEventListener("compositionend",sg)),jl++}),Dt(()=>{jl<=1?(window.removeEventListener("compositionstart",ag),window.removeEventListener("compositionend",sg),jl=0):jl--})),Cd}let Di=0,cg="",dg="",ug="",fg="";const hg=L("0px");function U2(e){if(typeof document>"u")return;const t=document.documentElement;let o,n=!1;const r=()=>{t.style.marginRight=cg,t.style.overflow=dg,t.style.overflowX=ug,t.style.overflowY=fg,hg.value="0px"};Bt(()=>{o=Ze(e,i=>{if(i){if(!Di){const l=window.innerWidth-t.offsetWidth;l>0&&(cg=t.style.marginRight,t.style.marginRight=`${l}px`,hg.value=`${l}px`),dg=t.style.overflow,ug=t.style.overflowX,fg=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}n=!0,Di++}else Di--,Di||r(),n=!1},{immediate:!0})}),Dt(()=>{o==null||o(),n&&(Di--,Di||r(),n=!1)})}function K2(e){const t={isDeactivated:!1};let o=!1;return Mc(()=>{if(t.isDeactivated=!1,!o){o=!0;return}e()}),Ha(()=>{t.isDeactivated=!0,o||(o=!0)}),t}function wd(e,t,o="default"){const n=t[o];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);return n()}function Sd(e,t=!0,o=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&o.push(it(String(n)));return}if(Array.isArray(n)){Sd(n,t,o);return}if(n.type===Ue){if(n.children===null)return;Array.isArray(n.children)&&Sd(n.children,t,o)}else n.type!==Yt&&o.push(n)}}),o}function pg(e,t,o="default"){const n=t[o];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);const r=Sd(n());if(r.length===1)return r[0];throw new Error(`[vueuc/${e}]: slot[${o}] should have exactly one child.`)}let fr=null;function vg(){if(fr===null&&(fr=document.getElementById("v-binder-view-measurer"),fr===null)){fr=document.createElement("div"),fr.id="v-binder-view-measurer";const{style:e}=fr;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(fr)}return fr.getBoundingClientRect()}function q2(e,t){const o=vg();return{top:t,left:e,height:0,width:0,right:o.width-e,bottom:o.height-t}}function kd(e){const t=e.getBoundingClientRect(),o=vg();return{left:t.left-o.left,top:t.top-o.top,bottom:o.height+o.top-t.bottom,right:o.width+o.left-t.right,width:t.width,height:t.height}}function G2(e){return e.nodeType===9?null:e.parentNode}function gg(e){if(e===null)return null;const t=G2(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:o,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(o+r+n))return t}return gg(t)}const gs=ge({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;tt("VBinder",(t=Wn())===null||t===void 0?void 0:t.proxy);const o=Be("VBinder",null),n=L(null),r=m=>{n.value=m,o&&e.syncTargetWithParent&&o.setTargetRef(m)};let i=[];const l=()=>{let m=n.value;for(;m=gg(m),m!==null;)i.push(m);for(const x of i)yt("scroll",x,u,!0)},a=()=>{for(const m of i)ct("scroll",m,u,!0);i=[]},s=new Set,c=m=>{s.size===0&&l(),s.has(m)||s.add(m)},d=m=>{s.has(m)&&s.delete(m),s.size===0&&a()},u=()=>{Ll(p)},p=()=>{s.forEach(m=>m())},v=new Set,h=m=>{v.size===0&&yt("resize",window,b),v.has(m)||v.add(m)},g=m=>{v.has(m)&&v.delete(m),v.size===0&&ct("resize",window,b)},b=()=>{v.forEach(m=>m())};return Dt(()=>{ct("resize",window,b),a()}),{targetRef:n,setTargetRef:r,addScrollListener:c,removeScrollListener:d,addResizeListener:h,removeResizeListener:g}},render(){return wd("binder",this.$slots)}}),ms=ge({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Be("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?Ut(pg("follower",this.$slots),[[t]]):pg("follower",this.$slots)}}),Hi="@@mmoContext",X2={mounted(e,{value:t}){e[Hi]={handler:void 0},typeof t=="function"&&(e[Hi].handler=t,yt("mousemoveoutside",e,t))},updated(e,{value:t}){const o=e[Hi];typeof t=="function"?o.handler?o.handler!==t&&(ct("mousemoveoutside",e,o.handler),o.handler=t,yt("mousemoveoutside",e,t)):(e[Hi].handler=t,yt("mousemoveoutside",e,t)):o.handler&&(ct("mousemoveoutside",e,o.handler),o.handler=void 0)},unmounted(e){const{handler:t}=e[Hi];t&&ct("mousemoveoutside",e,t),e[Hi].handler=void 0}},Ni="@@coContext",ji={mounted(e,{value:t,modifiers:o}){e[Ni]={handler:void 0},typeof t=="function"&&(e[Ni].handler=t,yt("clickoutside",e,t,{capture:o.capture}))},updated(e,{value:t,modifiers:o}){const n=e[Ni];typeof t=="function"?n.handler?n.handler!==t&&(ct("clickoutside",e,n.handler,{capture:o.capture}),n.handler=t,yt("clickoutside",e,t,{capture:o.capture})):(e[Ni].handler=t,yt("clickoutside",e,t,{capture:o.capture})):n.handler&&(ct("clickoutside",e,n.handler,{capture:o.capture}),n.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:o}=e[Ni];o&&ct("clickoutside",e,o,{capture:t.capture}),e[Ni].handler=void 0}};function Y2(e,t){console.error(`[vdirs/${e}]: ${t}`)}class J2{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,o){const{elementZIndex:n}=this;if(o!==void 0){t.style.zIndex=`${o}`,n.delete(t);return}const{nextZIndex:r}=this;n.has(t)&&n.get(t)+1===this.nextZIndex||(t.style.zIndex=`${r}`,n.set(t,r),this.nextZIndex=r+1,this.squashState())}unregister(t,o){const{elementZIndex:n}=this;n.has(t)?n.delete(t):o===void 0&&Y2("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((o,n)=>o[1]-n[1]),this.nextZIndex=2e3,t.forEach(o=>{const n=o[0],r=this.nextZIndex++;`${r}`!==n.style.zIndex&&(n.style.zIndex=`${r}`)})}}const Rd=new J2,Wi="@@ziContext",bs={mounted(e,t){const{value:o={}}=t,{zIndex:n,enabled:r}=o;e[Wi]={enabled:!!r,initialized:!1},r&&(Rd.ensureZIndex(e,n),e[Wi].initialized=!0)},updated(e,t){const{value:o={}}=t,{zIndex:n,enabled:r}=o,i=e[Wi].enabled;r&&!i&&(Rd.ensureZIndex(e,n),e[Wi].initialized=!0),e[Wi].enabled=!!r},unmounted(e,t){if(!e[Wi].initialized)return;const{value:o={}}=t,{zIndex:n}=o;Rd.unregister(e,n)}},Z2="@css-render/vue3-ssr";function Q2(e,t){return`<style cssr-id="${e}">
|
|
43
|
+
`)}function Mi(e){for(var t=0,o,n=0,r=e.length;r>=4;++n,r-=4)o=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function r2(e,t,o,n){const{els:r}=t;if(o===void 0)r.forEach(Mv),t.els=[];else{const i=ts(o,n);i&&r.includes(i)&&(Mv(i),t.els=r.filter(l=>l!==i))}}function Hv(e,t){e.push(t)}function i2(e,t,o,n,r,i,l,a,s){let c;if(o===void 0&&(c=t.render(n),o=Mi(c)),s){s.adapter(o,c??t.render(n));return}a===void 0&&(a=document.head);const d=ts(o,a);if(d!==null&&!i)return d;const u=d??QS(o);if(c===void 0&&(c=t.render(n)),u.textContent=c,d!==null)return d;if(l){const p=a.querySelector(`meta[name="${l}"]`);if(p)return a.insertBefore(u,p),Hv(t.els,u),u}return r?a.insertBefore(u,a.querySelector("style, link")):a.appendChild(u),Hv(t.els,u),u}function l2(e){return n2(this,this.instance,e)}function a2(e={}){const{id:t,ssr:o,props:n,head:r=!1,force:i=!1,anchorMetaName:l,parent:a}=e;return i2(this.instance,this,t,n,r,i,l,a,o)}function s2(e={}){const{id:t,parent:o}=e;r2(this.instance,this,t,o)}const ns=function(e,t,o,n){return{instance:e,$:t,props:o,children:n,els:[],render:l2,mount:a2,unmount:s2}},c2=function(e,t,o,n){return Array.isArray(t)?ns(e,{$:null},null,t):Array.isArray(o)?ns(e,t,null,o):Array.isArray(n)?ns(e,t,o,n):ns(e,t,o,null)};function Nv(e={}){const t={c:(...o)=>c2(t,...o),use:(o,...n)=>o.install(t,...n),find:ts,context:{},config:e};return t}function d2(e,t){if(e===void 0)return!1;if(t){const{context:{ids:o}}=t;return o.has(e)}return ts(e)!==null}const Bl=".n-",u2="__",f2="--",jv=Nv(),Wv=qS({blockPrefix:Bl,elementPrefix:u2,modifierPrefix:f2});jv.use(Wv);const{c:V,find:X7}=jv,{cB:$,cE:q,cM:X,cNotM:ft}=Wv;function rs(e){return V(({props:{bPrefix:t}})=>`${t||Bl}modal, ${t||Bl}drawer`,[e])}function pd(e){return V(({props:{bPrefix:t}})=>`${t||Bl}popover`,[e])}function Vv(e){return V(({props:{bPrefix:t}})=>`&${t||Bl}modal`,e)}const h2=(...e)=>V(">",[$(...e)]);function ke(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,o=>o.toUpperCase()))}let is=[];const Uv=new WeakMap;function p2(){is.forEach(e=>e(...Uv.get(e))),is=[]}function Ll(e,...t){Uv.set(e,t),!is.includes(e)&&is.push(e)===1&&requestAnimationFrame(p2)}function Uo(e,t){let{target:o}=e;for(;o;){if(o.dataset&&o.dataset[t]!==void 0)return!0;o=o.parentElement}return!1}function Vr(e){return e.composedPath()[0]||null}function to(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function jt(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function Gt(e,t){const o=e.trim().split(/\s+/g),n={top:o[0]};switch(o.length){case 1:n.right=o[0],n.bottom=o[0],n.left=o[0];break;case 2:n.right=o[1],n.left=o[1],n.bottom=o[0];break;case 3:n.right=o[1],n.bottom=o[2],n.left=o[1];break;case 4:n.right=o[1],n.bottom=o[2],n.left=o[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?n:n[t]}const Kv={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#0FF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000",blanchedalmond:"#FFEBCD",blue:"#00F",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#0FF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#F0F",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#0F0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#F0F",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#F00",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFF",whitesmoke:"#F5F5F5",yellow:"#FF0",yellowgreen:"#9ACD32",transparent:"#0000"};function v2(e,t,o){t/=100,o/=100;let n=(r,i=(r+e/60)%6)=>o-o*t*Math.max(Math.min(i,4-i,1),0);return[n(5)*255,n(3)*255,n(1)*255]}function g2(e,t,o){t/=100,o/=100;let n=t*Math.min(o,1-o),r=(i,l=(i+e/30)%12)=>o-n*Math.max(Math.min(l-3,9-l,1),-1);return[r(0)*255,r(8)*255,r(4)*255]}const Sn="^\\s*",kn="\\s*$",sr="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",Mo="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",Ur="([0-9A-Fa-f])",Kr="([0-9A-Fa-f]{2})",qv=new RegExp(`${Sn}hsl\\s*\\(${Mo},${sr},${sr}\\)${kn}`),Gv=new RegExp(`${Sn}hsv\\s*\\(${Mo},${sr},${sr}\\)${kn}`),Xv=new RegExp(`${Sn}hsla\\s*\\(${Mo},${sr},${sr},${Mo}\\)${kn}`),Yv=new RegExp(`${Sn}hsva\\s*\\(${Mo},${sr},${sr},${Mo}\\)${kn}`),m2=new RegExp(`${Sn}rgb\\s*\\(${Mo},${Mo},${Mo}\\)${kn}`),b2=new RegExp(`${Sn}rgba\\s*\\(${Mo},${Mo},${Mo},${Mo}\\)${kn}`),x2=new RegExp(`${Sn}#${Ur}${Ur}${Ur}${kn}`),y2=new RegExp(`${Sn}#${Kr}${Kr}${Kr}${kn}`),C2=new RegExp(`${Sn}#${Ur}${Ur}${Ur}${Ur}${kn}`),w2=new RegExp(`${Sn}#${Kr}${Kr}${Kr}${Kr}${kn}`);function zo(e){return parseInt(e,16)}function S2(e){try{let t;if(t=Xv.exec(e))return[ls(t[1]),cr(t[5]),cr(t[9]),qr(t[13])];if(t=qv.exec(e))return[ls(t[1]),cr(t[5]),cr(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function k2(e){try{let t;if(t=Yv.exec(e))return[ls(t[1]),cr(t[5]),cr(t[9]),qr(t[13])];if(t=Gv.exec(e))return[ls(t[1]),cr(t[5]),cr(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function qn(e){try{let t;if(t=y2.exec(e))return[zo(t[1]),zo(t[2]),zo(t[3]),1];if(t=m2.exec(e))return[ho(t[1]),ho(t[5]),ho(t[9]),1];if(t=b2.exec(e))return[ho(t[1]),ho(t[5]),ho(t[9]),qr(t[13])];if(t=x2.exec(e))return[zo(t[1]+t[1]),zo(t[2]+t[2]),zo(t[3]+t[3]),1];if(t=w2.exec(e))return[zo(t[1]),zo(t[2]),zo(t[3]),qr(zo(t[4])/255)];if(t=C2.exec(e))return[zo(t[1]+t[1]),zo(t[2]+t[2]),zo(t[3]+t[3]),qr(zo(t[4]+t[4])/255)];if(e in Kv)return qn(Kv[e]);if(qv.test(e)||Xv.test(e)){const[o,n,r,i]=S2(e);return[...g2(o,n,r),i]}else if(Gv.test(e)||Yv.test(e)){const[o,n,r,i]=k2(e);return[...v2(o,n,r),i]}throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function R2(e){return e>1?1:e<0?0:e}function vd(e,t,o,n){return`rgba(${ho(e)}, ${ho(t)}, ${ho(o)}, ${R2(n)})`}function gd(e,t,o,n,r){return ho((e*t*(1-n)+o*n)/r)}function Ke(e,t){Array.isArray(e)||(e=qn(e)),Array.isArray(t)||(t=qn(t));const o=e[3],n=t[3],r=qr(o+n-o*n);return vd(gd(e[0],o,t[0],n,r),gd(e[1],o,t[1],n,r),gd(e[2],o,t[2],n,r),r)}function Te(e,t){const[o,n,r,i=1]=Array.isArray(e)?e:qn(e);return typeof t.alpha=="number"?vd(o,n,r,t.alpha):vd(o,n,r,i)}function Kt(e,t){const[o,n,r,i=1]=Array.isArray(e)?e:qn(e),{lightness:l=1,alpha:a=1}=t;return P2([o*l,n*l,r*l,i*a])}function qr(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function ls(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function ho(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function cr(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function P2(e){const[t,o,n]=e;return 3 in e?`rgba(${ho(t)}, ${ho(o)}, ${ho(n)}, ${qr(e[3])})`:`rgba(${ho(t)}, ${ho(o)}, ${ho(n)}, 1)`}function nn(e=8){return Math.random().toString(16).slice(2,2+e)}function _2(e,t){const o=[];for(let n=0;n<e;++n)o.push(t);return o}function as(e){return e.composedPath()[0]}const $2={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function T2(e,t,o){if(e==="mousemoveoutside"){const n=r=>{t.contains(as(r))||o(r)};return{mousemove:n,touchstart:n}}else if(e==="clickoutside"){let n=!1;const r=l=>{n=!t.contains(as(l))},i=l=>{n&&(t.contains(as(l))||o(l))};return{mousedown:r,mouseup:i,touchstart:r,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function Jv(e,t,o){const n=$2[e];let r=n.get(t);r===void 0&&n.set(t,r=new WeakMap);let i=r.get(o);return i===void 0&&r.set(o,i=T2(e,t,o)),i}function z2(e,t,o,n){if(e==="mousemoveoutside"||e==="clickoutside"){const r=Jv(e,t,o);return Object.keys(r).forEach(i=>{yt(i,document,r[i],n)}),!0}return!1}function E2(e,t,o,n){if(e==="mousemoveoutside"||e==="clickoutside"){const r=Jv(e,t,o);return Object.keys(r).forEach(i=>{ct(i,document,r[i],n)}),!0}return!1}function O2(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function o(){e.set(this,!0)}function n(){e.set(this,!0),t.set(this,!0)}function r(P,w,_){const B=P[w];return P[w]=function(){return _.apply(P,arguments),B.apply(P,arguments)},P}function i(P,w){P[w]=Event.prototype[w]}const l=new WeakMap,a=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var P;return(P=l.get(this))!==null&&P!==void 0?P:null}function c(P,w){a!==void 0&&Object.defineProperty(P,"currentTarget",{configurable:!0,enumerable:!0,get:w??a.get})}const d={bubble:{},capture:{}},u={};function p(){const P=function(w){const{type:_,eventPhase:B,bubbles:z}=w,O=as(w);if(B===2)return;const A=B===1?"capture":"bubble";let U=O;const W=[];for(;U===null&&(U=window),W.push(U),U!==window;)U=U.parentNode||null;const F=d.capture[_],T=d.bubble[_];if(r(w,"stopPropagation",o),r(w,"stopImmediatePropagation",n),c(w,s),A==="capture"){if(F===void 0)return;for(let k=W.length-1;k>=0&&!e.has(w);--k){const I=W[k],Y=F.get(I);if(Y!==void 0){l.set(w,I);for(const j of Y){if(t.has(w))break;j(w)}}if(k===0&&!z&&T!==void 0){const j=T.get(I);if(j!==void 0)for(const ee of j){if(t.has(w))break;ee(w)}}}}else if(A==="bubble"){if(T===void 0)return;for(let k=0;k<W.length&&!e.has(w);++k){const I=W[k],Y=T.get(I);if(Y!==void 0){l.set(w,I);for(const j of Y){if(t.has(w))break;j(w)}}}}i(w,"stopPropagation"),i(w,"stopImmediatePropagation"),c(w)};return P.displayName="evtdUnifiedHandler",P}function v(){const P=function(w){const{type:_,eventPhase:B}=w;if(B!==2)return;const z=u[_];z!==void 0&&z.forEach(O=>O(w))};return P.displayName="evtdUnifiedWindowEventHandler",P}const h=p(),g=v();function b(P,w){const _=d[P];return _[w]===void 0&&(_[w]=new Map,window.addEventListener(w,h,P==="capture")),_[w]}function m(P){return u[P]===void 0&&(u[P]=new Set,window.addEventListener(P,g)),u[P]}function x(P,w){let _=P.get(w);return _===void 0&&P.set(w,_=new Set),_}function S(P,w,_,B){const z=d[w][_];if(z!==void 0){const O=z.get(P);if(O!==void 0&&O.has(B))return!0}return!1}function C(P,w){const _=u[P];return!!(_!==void 0&&_.has(w))}function y(P,w,_,B){let z;if(typeof B=="object"&&B.once===!0?z=F=>{R(P,w,z,B),_(F)}:z=_,z2(P,w,z,B))return;const A=B===!0||typeof B=="object"&&B.capture===!0?"capture":"bubble",U=b(A,P),W=x(U,w);if(W.has(z)||W.add(z),w===window){const F=m(P);F.has(z)||F.add(z)}}function R(P,w,_,B){if(E2(P,w,_,B))return;const O=B===!0||typeof B=="object"&&B.capture===!0,A=O?"capture":"bubble",U=b(A,P),W=x(U,w);if(w===window&&!S(w,O?"bubble":"capture",P,_)&&C(P,_)){const T=u[P];T.delete(_),T.size===0&&(window.removeEventListener(P,g),u[P]=void 0)}W.has(_)&&W.delete(_),W.size===0&&U.delete(w),U.size===0&&(window.removeEventListener(P,h,A==="capture"),d[A][P]=void 0)}return{on:y,off:R}}const{on:yt,off:ct}=O2();function I2(e){const t=L(!!e.value);if(t.value)return Io(t);const o=Ze(e,n=>{n&&(t.value=!0,o())});return Io(t)}function bt(e){const t=E(e),o=L(t.value);return Ze(t,n=>{o.value=n}),typeof e=="function"?o:{__v_isRef:!0,get value(){return o.value},set value(n){e.set(n)}}}function ss(){return Wn()!==null}const md=typeof window<"u";let Bi,Dl;(()=>{var e,t;Bi=md?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Dl=!1,Bi!==void 0?Bi.then(()=>{Dl=!0}):Dl=!0})();function Zv(e){if(Dl)return;let t=!1;Bt(()=>{Dl||Bi==null||Bi.then(()=>{t||e()})}),Dt(()=>{t=!0})}const Hl=L(null);function Qv(e){if(e.clientX>0||e.clientY>0)Hl.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:o,top:n,width:r,height:i}=t.getBoundingClientRect();o>0||n>0?Hl.value={x:o+r/2,y:n+i/2}:Hl.value={x:0,y:0}}else Hl.value=null}}let cs=0,eg=!0;function bd(){if(!md)return Io(L(null));cs===0&&yt("click",document,Qv,!0);const e=()=>{cs+=1};return eg&&(eg=ss())?(Nn(e),Dt(()=>{cs-=1,cs===0&&ct("click",document,Qv,!0)})):e(),Io(Hl)}const A2=L(void 0);let ds=0;function tg(){A2.value=Date.now()}let og=!0;function xd(e){if(!md)return Io(L(!1));const t=L(!1);let o=null;function n(){o!==null&&window.clearTimeout(o)}function r(){n(),t.value=!0,o=window.setTimeout(()=>{t.value=!1},e)}ds===0&&yt("click",window,tg,!0);const i=()=>{ds+=1,yt("click",window,r,!0)};return og&&(og=ss())?(Nn(i),Dt(()=>{ds-=1,ds===0&&ct("click",window,tg,!0),ct("click",window,r,!0),n()})):i(),Io(t)}let us=0;const F2=typeof window<"u"&&window.matchMedia!==void 0,Gr=L(null);let rn,Xr;function fs(e){e.matches&&(Gr.value="dark")}function hs(e){e.matches&&(Gr.value="light")}function M2(){rn=window.matchMedia("(prefers-color-scheme: dark)"),Xr=window.matchMedia("(prefers-color-scheme: light)"),rn.matches?Gr.value="dark":Xr.matches?Gr.value="light":Gr.value=null,rn.addEventListener?(rn.addEventListener("change",fs),Xr.addEventListener("change",hs)):rn.addListener&&(rn.addListener(fs),Xr.addListener(hs))}function B2(){"removeEventListener"in rn?(rn.removeEventListener("change",fs),Xr.removeEventListener("change",hs)):"removeListener"in rn&&(rn.removeListener(fs),Xr.removeListener(hs)),rn=void 0,Xr=void 0}let ng=!0;function L2(){return F2&&(us===0&&M2(),ng&&(ng=ss())&&(Nn(()=>{us+=1}),Dt(()=>{us-=1,us===0&&B2()}))),Io(Gr)}function Ht(e,t){return Ze(e,o=>{o!==void 0&&(t.value=o)}),E(()=>e.value===void 0?t.value:e.value)}function dr(){const e=L(!1);return Bt(()=>{e.value=!0}),Io(e)}function Li(e,t){return E(()=>{for(const o of t)if(e[o]!==void 0)return e[o];return e[t[t.length-1]]})}const D2=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function H2(){return D2}function N2(e={},t){const o=mn({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:n,keyup:r}=e,i=s=>{switch(s.key){case"Control":o.ctrl=!0;break;case"Meta":o.command=!0,o.win=!0;break;case"Shift":o.shift=!0;break;case"Tab":o.tab=!0;break}n!==void 0&&Object.keys(n).forEach(c=>{if(c!==s.key)return;const d=n[c];if(typeof d=="function")d(s);else{const{stop:u=!1,prevent:p=!1}=d;u&&s.stopPropagation(),p&&s.preventDefault(),d.handler(s)}})},l=s=>{switch(s.key){case"Control":o.ctrl=!1;break;case"Meta":o.command=!1,o.win=!1;break;case"Shift":o.shift=!1;break;case"Tab":o.tab=!1;break}r!==void 0&&Object.keys(r).forEach(c=>{if(c!==s.key)return;const d=r[c];if(typeof d=="function")d(s);else{const{stop:u=!1,prevent:p=!1}=d;u&&s.stopPropagation(),p&&s.preventDefault(),d.handler(s)}})},a=()=>{(t===void 0||t.value)&&(yt("keydown",document,i),yt("keyup",document,l)),t!==void 0&&Ze(t,s=>{s?(yt("keydown",document,i),yt("keyup",document,l)):(ct("keydown",document,i),ct("keyup",document,l))})};return ss()?(Nn(a),Dt(()=>{(t===void 0||t.value)&&(ct("keydown",document,i),ct("keyup",document,l))})):a(),Io(o)}function J7(e){return e}const yd="n-internal-select-menu",rg="n-internal-select-menu-body",ps="n-drawer-body",vs="n-modal-body",j2="n-modal-provider",ig="n-modal",Nl="n-popover-body",lg="__disabled__";function Bo(e){const t=Be(vs,null),o=Be(ps,null),n=Be(Nl,null),r=Be(rg,null),i=L();if(typeof document<"u"){i.value=document.fullscreenElement;const l=()=>{i.value=document.fullscreenElement};Bt(()=>{yt("fullscreenchange",document,l)}),Dt(()=>{ct("fullscreenchange",document,l)})}return bt(()=>{var l;const{to:a}=e;return a!==void 0?a===!1?lg:a===!0?i.value||"body":a:t!=null&&t.value?(l=t.value.$el)!==null&&l!==void 0?l:t.value:o!=null&&o.value?o.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:a??(i.value||"body")})}Bo.tdkey=lg,Bo.propTo={type:[String,Object,Boolean],default:void 0};function W2(e,t,o){const n=L(e.value);let r=null;return Ze(e,i=>{r!==null&&window.clearTimeout(r),i===!0?o&&!o.value?n.value=!0:r=window.setTimeout(()=>{n.value=!0},t):n.value=!1}),n}const ur=typeof document<"u"&&typeof window<"u",Cd=L(!1);function ag(){Cd.value=!0}function sg(){Cd.value=!1}let jl=0;function V2(){return ur&&(Nn(()=>{jl||(window.addEventListener("compositionstart",ag),window.addEventListener("compositionend",sg)),jl++}),Dt(()=>{jl<=1?(window.removeEventListener("compositionstart",ag),window.removeEventListener("compositionend",sg),jl=0):jl--})),Cd}let Di=0,cg="",dg="",ug="",fg="";const hg=L("0px");function U2(e){if(typeof document>"u")return;const t=document.documentElement;let o,n=!1;const r=()=>{t.style.marginRight=cg,t.style.overflow=dg,t.style.overflowX=ug,t.style.overflowY=fg,hg.value="0px"};Bt(()=>{o=Ze(e,i=>{if(i){if(!Di){const l=window.innerWidth-t.offsetWidth;l>0&&(cg=t.style.marginRight,t.style.marginRight=`${l}px`,hg.value=`${l}px`),dg=t.style.overflow,ug=t.style.overflowX,fg=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}n=!0,Di++}else Di--,Di||r(),n=!1},{immediate:!0})}),Dt(()=>{o==null||o(),n&&(Di--,Di||r(),n=!1)})}function K2(e){const t={isDeactivated:!1};let o=!1;return Mc(()=>{if(t.isDeactivated=!1,!o){o=!0;return}e()}),Ha(()=>{t.isDeactivated=!0,o||(o=!0)}),t}function wd(e,t,o="default"){const n=t[o];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);return n()}function Sd(e,t=!0,o=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&o.push(it(String(n)));return}if(Array.isArray(n)){Sd(n,t,o);return}if(n.type===Ue){if(n.children===null)return;Array.isArray(n.children)&&Sd(n.children,t,o)}else n.type!==Yt&&o.push(n)}}),o}function pg(e,t,o="default"){const n=t[o];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);const r=Sd(n());if(r.length===1)return r[0];throw new Error(`[vueuc/${e}]: slot[${o}] should have exactly one child.`)}let fr=null;function vg(){if(fr===null&&(fr=document.getElementById("v-binder-view-measurer"),fr===null)){fr=document.createElement("div"),fr.id="v-binder-view-measurer";const{style:e}=fr;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(fr)}return fr.getBoundingClientRect()}function q2(e,t){const o=vg();return{top:t,left:e,height:0,width:0,right:o.width-e,bottom:o.height-t}}function kd(e){const t=e.getBoundingClientRect(),o=vg();return{left:t.left-o.left,top:t.top-o.top,bottom:o.height+o.top-t.bottom,right:o.width+o.left-t.right,width:t.width,height:t.height}}function G2(e){return e.nodeType===9?null:e.parentNode}function gg(e){if(e===null)return null;const t=G2(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:o,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(o+r+n))return t}return gg(t)}const gs=ge({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;tt("VBinder",(t=Wn())===null||t===void 0?void 0:t.proxy);const o=Be("VBinder",null),n=L(null),r=m=>{n.value=m,o&&e.syncTargetWithParent&&o.setTargetRef(m)};let i=[];const l=()=>{let m=n.value;for(;m=gg(m),m!==null;)i.push(m);for(const x of i)yt("scroll",x,u,!0)},a=()=>{for(const m of i)ct("scroll",m,u,!0);i=[]},s=new Set,c=m=>{s.size===0&&l(),s.has(m)||s.add(m)},d=m=>{s.has(m)&&s.delete(m),s.size===0&&a()},u=()=>{Ll(p)},p=()=>{s.forEach(m=>m())},v=new Set,h=m=>{v.size===0&&yt("resize",window,b),v.has(m)||v.add(m)},g=m=>{v.has(m)&&v.delete(m),v.size===0&&ct("resize",window,b)},b=()=>{v.forEach(m=>m())};return Dt(()=>{ct("resize",window,b),a()}),{targetRef:n,setTargetRef:r,addScrollListener:c,removeScrollListener:d,addResizeListener:h,removeResizeListener:g}},render(){return wd("binder",this.$slots)}}),ms=ge({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Be("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?Ut(pg("follower",this.$slots),[[t]]):pg("follower",this.$slots)}}),Hi="@@mmoContext",X2={mounted(e,{value:t}){e[Hi]={handler:void 0},typeof t=="function"&&(e[Hi].handler=t,yt("mousemoveoutside",e,t))},updated(e,{value:t}){const o=e[Hi];typeof t=="function"?o.handler?o.handler!==t&&(ct("mousemoveoutside",e,o.handler),o.handler=t,yt("mousemoveoutside",e,t)):(e[Hi].handler=t,yt("mousemoveoutside",e,t)):o.handler&&(ct("mousemoveoutside",e,o.handler),o.handler=void 0)},unmounted(e){const{handler:t}=e[Hi];t&&ct("mousemoveoutside",e,t),e[Hi].handler=void 0}},Ni="@@coContext",ji={mounted(e,{value:t,modifiers:o}){e[Ni]={handler:void 0},typeof t=="function"&&(e[Ni].handler=t,yt("clickoutside",e,t,{capture:o.capture}))},updated(e,{value:t,modifiers:o}){const n=e[Ni];typeof t=="function"?n.handler?n.handler!==t&&(ct("clickoutside",e,n.handler,{capture:o.capture}),n.handler=t,yt("clickoutside",e,t,{capture:o.capture})):(e[Ni].handler=t,yt("clickoutside",e,t,{capture:o.capture})):n.handler&&(ct("clickoutside",e,n.handler,{capture:o.capture}),n.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:o}=e[Ni];o&&ct("clickoutside",e,o,{capture:t.capture}),e[Ni].handler=void 0}};function Y2(e,t){console.error(`[vdirs/${e}]: ${t}`)}class J2{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,o){const{elementZIndex:n}=this;if(o!==void 0){t.style.zIndex=`${o}`,n.delete(t);return}const{nextZIndex:r}=this;n.has(t)&&n.get(t)+1===this.nextZIndex||(t.style.zIndex=`${r}`,n.set(t,r),this.nextZIndex=r+1,this.squashState())}unregister(t,o){const{elementZIndex:n}=this;n.has(t)?n.delete(t):o===void 0&&Y2("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((o,n)=>o[1]-n[1]),this.nextZIndex=2e3,t.forEach(o=>{const n=o[0],r=this.nextZIndex++;`${r}`!==n.style.zIndex&&(n.style.zIndex=`${r}`)})}}const Rd=new J2,Wi="@@ziContext",bs={mounted(e,t){const{value:o={}}=t,{zIndex:n,enabled:r}=o;e[Wi]={enabled:!!r,initialized:!1},r&&(Rd.ensureZIndex(e,n),e[Wi].initialized=!0)},updated(e,t){const{value:o={}}=t,{zIndex:n,enabled:r}=o,i=e[Wi].enabled;r&&!i&&(Rd.ensureZIndex(e,n),e[Wi].initialized=!0),e[Wi].enabled=!!r},unmounted(e,t){if(!e[Wi].initialized)return;const{value:o={}}=t,{zIndex:n}=o;Rd.unregister(e,n)}},Z2="@css-render/vue3-ssr";function Q2(e,t){return`<style cssr-id="${e}">
|
|
44
44
|
${t}
|
|
45
45
|
</style>`}function ek(e,t,o){const{styles:n,ids:r}=o;r.has(e)||n!==null&&(r.add(e),n.push(Q2(e,t)))}const tk=typeof document<"u";function hr(){if(tk)return;const e=Be(Z2,null);if(e!==null)return{adapter:(t,o)=>ek(t,o,e),context:e}}function mg(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:Rn}=Nv(),xs="vueuc-style";function bg(e){return e&-e}class xg{constructor(t,o){this.l=t,this.min=o;const n=new Array(t+1);for(let r=0;r<t+1;++r)n[r]=0;this.ft=n}add(t,o){if(o===0)return;const{l:n,ft:r}=this;for(t+=1;t<=n;)r[t]+=o,t+=bg(t)}get(t){return this.sum(t+1)-this.sum(t)}sum(t){if(t===void 0&&(t=this.l),t<=0)return 0;const{ft:o,min:n,l:r}=this;if(t>r)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*n;for(;t>0;)i+=o[t],t-=bg(t);return i}getBound(t){let o=0,n=this.l;for(;n>o;){const r=Math.floor((o+n)/2),i=this.sum(r);if(i>t){n=r;continue}else if(i<t){if(o===r)return this.sum(o+1)<=t?o+1:r;o=r}else return r}return o}}function yg(e){return typeof e=="string"?document.querySelector(e):e()||null}const Pd=ge({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:I2(_e(e,"show")),mergedTo:E(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?wd("lazy-teleport",this.$slots):f(bl,{disabled:this.disabled,to:this.mergedTo},wd("lazy-teleport",this.$slots)):null}}),ys={top:"bottom",bottom:"top",left:"right",right:"left"},Cg={start:"end",center:"center",end:"start"},_d={top:"height",bottom:"height",left:"width",right:"width"},ok={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},nk={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},rk={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},wg={top:!0,bottom:!1,left:!0,right:!1},Sg={top:"end",bottom:"start",left:"end",right:"start"};function ik(e,t,o,n,r,i){if(!r||i)return{placement:e,top:0,left:0};const[l,a]=e.split("-");let s=a??"center",c={top:0,left:0};const d=(v,h,g)=>{let b=0,m=0;const x=o[v]-t[h]-t[v];return x>0&&n&&(g?m=wg[h]?x:-x:b=wg[h]?x:-x),{left:b,top:m}},u=l==="left"||l==="right";if(s!=="center"){const v=rk[e],h=ys[v],g=_d[v];if(o[g]>t[g]){if(t[v]+t[g]<o[g]){const b=(o[g]-t[g])/2;t[v]<b||t[h]<b?t[v]<t[h]?(s=Cg[a],c=d(g,h,u)):c=d(g,v,u):s="center"}}else o[g]<t[g]&&t[h]<0&&t[v]>t[h]&&(s=Cg[a])}else{const v=l==="bottom"||l==="top"?"left":"top",h=ys[v],g=_d[v],b=(o[g]-t[g])/2;(t[v]<b||t[h]<b)&&(t[v]>t[h]?(s=Sg[v],c=d(g,v,u)):(s=Sg[h],c=d(g,h,u)))}let p=l;return t[l]<o[_d[l]]&&t[l]<t[ys[l]]&&(p=ys[l]),{placement:s!=="center"?`${p}-${s}`:p,left:c.left,top:c.top}}function lk(e,t){return t?nk[e]:ok[e]}function ak(e,t,o,n,r,i){if(i)switch(e){case"bottom-start":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left)}px`,transform:""};case"top-end":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left)}px`,transform:""};case"left-end":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left+o.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(o.top-t.top+o.height/2)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(o.top-t.top+o.height/2)}px`,left:`${Math.round(o.left-t.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left+o.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:""};case"bottom-end":return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:""};case"right-end":return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+o.width/2+r)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(o.top-t.top+o.height/2+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(o.top-t.top+o.height/2+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+o.width/2+r)}px`,transform:"translateX(-50%)"}}}const sk=Rn([Rn(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),Rn(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[Rn("> *",{pointerEvents:"all"})])]),Cs=ge({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Be("VBinder"),o=bt(()=>e.enabled!==void 0?e.enabled:e.show),n=L(null),r=L(null),i=()=>{const{syncTrigger:p}=e;p.includes("scroll")&&t.addScrollListener(s),p.includes("resize")&&t.addResizeListener(s)},l=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};Bt(()=>{o.value&&(s(),i())});const a=hr();sk.mount({id:"vueuc/binder",head:!0,anchorMetaName:xs,ssr:a}),Dt(()=>{l()}),Zv(()=>{o.value&&s()});const s=()=>{if(!o.value)return;const p=n.value;if(p===null)return;const v=t.targetRef,{x:h,y:g,overlap:b}=e,m=h!==void 0&&g!==void 0?q2(h,g):kd(v);p.style.setProperty("--v-target-width",`${Math.round(m.width)}px`),p.style.setProperty("--v-target-height",`${Math.round(m.height)}px`);const{width:x,minWidth:S,placement:C,internalShift:y,flip:R}=e;p.setAttribute("v-placement",C),b?p.setAttribute("v-overlap",""):p.removeAttribute("v-overlap");const{style:P}=p;x==="target"?P.width=`${m.width}px`:x!==void 0?P.width=x:P.width="",S==="target"?P.minWidth=`${m.width}px`:S!==void 0?P.minWidth=S:P.minWidth="";const w=kd(p),_=kd(r.value),{left:B,top:z,placement:O}=ik(C,m,w,y,R,b),A=lk(O,b),{left:U,top:W,transform:F}=ak(O,_,m,z,B,b);p.setAttribute("v-placement",O),p.style.setProperty("--v-offset-left",`${Math.round(B)}px`),p.style.setProperty("--v-offset-top",`${Math.round(z)}px`),p.style.transform=`translateX(${U}) translateY(${W}) ${F}`,p.style.setProperty("--v-transform-origin",A),p.style.transformOrigin=A};Ze(o,p=>{p?(i(),c()):l()});const c=()=>{$t().then(s).catch(p=>console.error(p))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(p=>{Ze(_e(e,p),s)}),["teleportDisabled"].forEach(p=>{Ze(_e(e,p),c)}),Ze(_e(e,"syncTrigger"),p=>{p.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),p.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const d=dr(),u=bt(()=>{const{to:p}=e;if(p!==void 0)return p;d.value});return{VBinder:t,mergedEnabled:o,offsetContainerRef:r,followerRef:n,mergedTo:u,syncPosition:s}},render(){return f(Pd,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const o=f("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[f("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?Ut(o,[[bs,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):o}})}});var Yr=[],ck=function(){return Yr.some(function(e){return e.activeTargets.length>0})},dk=function(){return Yr.some(function(e){return e.skippedTargets.length>0})},kg="ResizeObserver loop completed with undelivered notifications.",uk=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:kg}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=kg),window.dispatchEvent(e)},Wl;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Wl||(Wl={}));var Jr=function(e){return Object.freeze(e)},fk=function(){function e(t,o){this.inlineSize=t,this.blockSize=o,Jr(this)}return e}(),Rg=function(){function e(t,o,n,r){return this.x=t,this.y=o,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Jr(this)}return e.prototype.toJSON=function(){var t=this,o=t.x,n=t.y,r=t.top,i=t.right,l=t.bottom,a=t.left,s=t.width,c=t.height;return{x:o,y:n,top:r,right:i,bottom:l,left:a,width:s,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),$d=function(e){return e instanceof SVGElement&&"getBBox"in e},Pg=function(e){if($d(e)){var t=e.getBBox(),o=t.width,n=t.height;return!o&&!n}var r=e,i=r.offsetWidth,l=r.offsetHeight;return!(i||l||e.getClientRects().length)},_g=function(e){var t;if(e instanceof Element)return!0;var o=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(o&&e instanceof o.Element)},hk=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Vl=typeof window<"u"?window:{},ws=new WeakMap,$g=/auto|scroll/,pk=/^tb|vertical/,vk=/msie|trident/i.test(Vl.navigator&&Vl.navigator.userAgent),Pn=function(e){return parseFloat(e||"0")},Vi=function(e,t,o){return e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=!1),new fk((o?t:e)||0,(o?e:t)||0)},Tg=Jr({devicePixelContentBoxSize:Vi(),borderBoxSize:Vi(),contentBoxSize:Vi(),contentRect:new Rg(0,0,0,0)}),zg=function(e,t){if(t===void 0&&(t=!1),ws.has(e)&&!t)return ws.get(e);if(Pg(e))return ws.set(e,Tg),Tg;var o=getComputedStyle(e),n=$d(e)&&e.ownerSVGElement&&e.getBBox(),r=!vk&&o.boxSizing==="border-box",i=pk.test(o.writingMode||""),l=!n&&$g.test(o.overflowY||""),a=!n&&$g.test(o.overflowX||""),s=n?0:Pn(o.paddingTop),c=n?0:Pn(o.paddingRight),d=n?0:Pn(o.paddingBottom),u=n?0:Pn(o.paddingLeft),p=n?0:Pn(o.borderTopWidth),v=n?0:Pn(o.borderRightWidth),h=n?0:Pn(o.borderBottomWidth),g=n?0:Pn(o.borderLeftWidth),b=u+c,m=s+d,x=g+v,S=p+h,C=a?e.offsetHeight-S-e.clientHeight:0,y=l?e.offsetWidth-x-e.clientWidth:0,R=r?b+x:0,P=r?m+S:0,w=n?n.width:Pn(o.width)-R-y,_=n?n.height:Pn(o.height)-P-C,B=w+b+y+x,z=_+m+C+S,O=Jr({devicePixelContentBoxSize:Vi(Math.round(w*devicePixelRatio),Math.round(_*devicePixelRatio),i),borderBoxSize:Vi(B,z,i),contentBoxSize:Vi(w,_,i),contentRect:new Rg(u,s,w,_)});return ws.set(e,O),O},Eg=function(e,t,o){var n=zg(e,o),r=n.borderBoxSize,i=n.contentBoxSize,l=n.devicePixelContentBoxSize;switch(t){case Wl.DEVICE_PIXEL_CONTENT_BOX:return l;case Wl.BORDER_BOX:return r;default:return i}},gk=function(){function e(t){var o=zg(t);this.target=t,this.contentRect=o.contentRect,this.borderBoxSize=Jr([o.borderBoxSize]),this.contentBoxSize=Jr([o.contentBoxSize]),this.devicePixelContentBoxSize=Jr([o.devicePixelContentBoxSize])}return e}(),Og=function(e){if(Pg(e))return 1/0;for(var t=0,o=e.parentNode;o;)t+=1,o=o.parentNode;return t},mk=function(){var e=1/0,t=[];Yr.forEach(function(l){if(l.activeTargets.length!==0){var a=[];l.activeTargets.forEach(function(c){var d=new gk(c.target),u=Og(c.target);a.push(d),c.lastReportedSize=Eg(c.target,c.observedBox),u<e&&(e=u)}),t.push(function(){l.callback.call(l.observer,a,l.observer)}),l.activeTargets.splice(0,l.activeTargets.length)}});for(var o=0,n=t;o<n.length;o++){var r=n[o];r()}return e},Ig=function(e){Yr.forEach(function(o){o.activeTargets.splice(0,o.activeTargets.length),o.skippedTargets.splice(0,o.skippedTargets.length),o.observationTargets.forEach(function(r){r.isActive()&&(Og(r.target)>e?o.activeTargets.push(r):o.skippedTargets.push(r))})})},bk=function(){var e=0;for(Ig(e);ck();)e=mk(),Ig(e);return dk()&&uk(),e>0},Td,Ag=[],xk=function(){return Ag.splice(0).forEach(function(e){return e()})},yk=function(e){if(!Td){var t=0,o=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return xk()}).observe(o,n),Td=function(){o.textContent="".concat(t?t--:t++)}}Ag.push(e),Td()},Ck=function(e){yk(function(){requestAnimationFrame(e)})},Ss=0,wk=function(){return!!Ss},Sk=250,kk={attributes:!0,characterData:!0,childList:!0,subtree:!0},Fg=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Mg=function(e){return e===void 0&&(e=0),Date.now()+e},zd=!1,Rk=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var o=this;if(t===void 0&&(t=Sk),!zd){zd=!0;var n=Mg(t);Ck(function(){var r=!1;try{r=bk()}finally{if(zd=!1,t=n-Mg(),!wk())return;r?o.run(1e3):t>0?o.run(t):o.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,o=function(){return t.observer&&t.observer.observe(document.body,kk)};document.body?o():Vl.addEventListener("DOMContentLoaded",o)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Fg.forEach(function(o){return Vl.addEventListener(o,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Fg.forEach(function(o){return Vl.removeEventListener(o,t.listener,!0)}),this.stopped=!0)},e}(),Ed=new Rk,Bg=function(e){!Ss&&e>0&&Ed.start(),Ss+=e,!Ss&&Ed.stop()},Pk=function(e){return!$d(e)&&!hk(e)&&getComputedStyle(e).display==="inline"},_k=function(){function e(t,o){this.target=t,this.observedBox=o||Wl.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Eg(this.target,this.observedBox,!0);return Pk(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),$k=function(){function e(t,o){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=o}return e}(),ks=new WeakMap,Lg=function(e,t){for(var o=0;o<e.length;o+=1)if(e[o].target===t)return o;return-1},Rs=function(){function e(){}return e.connect=function(t,o){var n=new $k(t,o);ks.set(t,n)},e.observe=function(t,o,n){var r=ks.get(t),i=r.observationTargets.length===0;Lg(r.observationTargets,o)<0&&(i&&Yr.push(r),r.observationTargets.push(new _k(o,n&&n.box)),Bg(1),Ed.schedule())},e.unobserve=function(t,o){var n=ks.get(t),r=Lg(n.observationTargets,o),i=n.observationTargets.length===1;r>=0&&(i&&Yr.splice(Yr.indexOf(n),1),n.observationTargets.splice(r,1),Bg(-1))},e.disconnect=function(t){var o=this,n=ks.get(t);n.observationTargets.slice().forEach(function(r){return o.unobserve(t,r.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Tk=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Rs.connect(this,t)}return e.prototype.observe=function(t,o){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!_g(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Rs.observe(this,t,o)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!_g(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Rs.unobserve(this,t)},e.prototype.disconnect=function(){Rs.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class zk{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||Tk)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const o of t){const n=this.elHandlersMap.get(o.target);n!==void 0&&n(o)}}registerHandler(t,o){this.elHandlersMap.set(t,o),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Ul=new zk,_n=ge({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const o=Wn().proxy;function n(r){const{onResize:i}=e;i!==void 0&&i(r)}Bt(()=>{const r=o.$el;if(r===void 0){mg("resize-observer","$el does not exist.");return}if(r.nextElementSibling!==r.nextSibling&&r.nodeType===3&&r.nodeValue!==""){mg("resize-observer","$el can not be observed (it may be a text node).");return}r.nextElementSibling!==null&&(Ul.registerHandler(r.nextElementSibling,n),t=!0)}),Dt(()=>{t&&Ul.unregisterHandler(o.$el.nextElementSibling)})},render(){return Wh(this.$slots,"default")}});let Ps;function Ek(){return typeof document>"u"?!1:(Ps===void 0&&("matchMedia"in window?Ps=window.matchMedia("(pointer:coarse)").matches:Ps=!1),Ps)}let Od;function Dg(){return typeof document>"u"?1:(Od===void 0&&(Od="chrome"in window?window.devicePixelRatio:1),Od)}const Hg="VVirtualListXScroll";function Ok({columnsRef:e,renderColRef:t,renderItemWithColsRef:o}){const n=L(0),r=L(0),i=E(()=>{const c=e.value;if(c.length===0)return null;const d=new xg(c.length,0);return c.forEach((u,p)=>{d.add(p,u.width)}),d}),l=bt(()=>{const c=i.value;return c!==null?Math.max(c.getBound(r.value)-1,0):0}),a=c=>{const d=i.value;return d!==null?d.sum(c):0},s=bt(()=>{const c=i.value;return c!==null?Math.min(c.getBound(r.value+n.value)+1,e.value.length-1):0});return tt(Hg,{startIndexRef:l,endIndexRef:s,columnsRef:e,renderColRef:t,renderItemWithColsRef:o,getLeft:a}),{listWidthRef:n,scrollLeftRef:r}}const Ng=ge({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:e,endIndexRef:t,columnsRef:o,getLeft:n,renderColRef:r,renderItemWithColsRef:i}=Be(Hg);return{startIndex:e,endIndex:t,columns:o,renderCol:r,renderItemWithCols:i,getLeft:n}},render(){const{startIndex:e,endIndex:t,columns:o,renderCol:n,renderItemWithCols:r,getLeft:i,item:l}=this;if(r!=null)return r({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:o,item:l,getLeft:i});if(n!=null){const a=[];for(let s=e;s<=t;++s){const c=o[s];a.push(n({column:c,left:i(s),item:l}))}return a}return null}}),Ik=Rn(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[Rn("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[Rn("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Id=ge({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=hr();Ik.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:xs,ssr:t}),Bt(()=>{const{defaultScrollIndex:A,defaultScrollKey:U}=e;A!=null?b({index:A}):U!=null&&b({key:U})});let o=!1,n=!1;Mc(()=>{if(o=!1,!n){n=!0;return}b({top:v.value,left:l.value})}),Ha(()=>{o=!0,n||(n=!0)});const r=bt(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let A=0;return e.columns.forEach(U=>{A+=U.width}),A}),i=E(()=>{const A=new Map,{keyField:U}=e;return e.items.forEach((W,F)=>{A.set(W[U],F)}),A}),{scrollLeftRef:l,listWidthRef:a}=Ok({columnsRef:_e(e,"columns"),renderColRef:_e(e,"renderCol"),renderItemWithColsRef:_e(e,"renderItemWithCols")}),s=L(null),c=L(void 0),d=new Map,u=E(()=>{const{items:A,itemSize:U,keyField:W}=e,F=new xg(A.length,U);return A.forEach((T,k)=>{const I=T[W],Y=d.get(I);Y!==void 0&&F.add(k,Y)}),F}),p=L(0),v=L(0),h=bt(()=>Math.max(u.value.getBound(v.value-to(e.paddingTop))-1,0)),g=E(()=>{const{value:A}=c;if(A===void 0)return[];const{items:U,itemSize:W}=e,F=h.value,T=Math.min(F+Math.ceil(A/W+1),U.length-1),k=[];for(let I=F;I<=T;++I)k.push(U[I]);return k}),b=(A,U)=>{if(typeof A=="number"){C(A,U,"auto");return}const{left:W,top:F,index:T,key:k,position:I,behavior:Y,debounce:j=!0}=A;if(W!==void 0||F!==void 0)C(W,F,Y);else if(T!==void 0)S(T,Y,j);else if(k!==void 0){const ee=i.value.get(k);ee!==void 0&&S(ee,Y,j)}else I==="bottom"?C(0,Number.MAX_SAFE_INTEGER,Y):I==="top"&&C(0,0,Y)};let m,x=null;function S(A,U,W){const{value:F}=u,T=F.sum(A)+to(e.paddingTop);if(!W)s.value.scrollTo({left:0,top:T,behavior:U});else{m=A,x!==null&&window.clearTimeout(x),x=window.setTimeout(()=>{m=void 0,x=null},16);const{scrollTop:k,offsetHeight:I}=s.value;if(T>k){const Y=F.get(A);T+Y<=k+I||s.value.scrollTo({left:0,top:T+Y-I,behavior:U})}else s.value.scrollTo({left:0,top:T,behavior:U})}}function C(A,U,W){s.value.scrollTo({left:A,top:U,behavior:W})}function y(A,U){var W,F,T;if(o||e.ignoreItemResize||O(U.target))return;const{value:k}=u,I=i.value.get(A),Y=k.get(I),j=(T=(F=(W=U.borderBoxSize)===null||W===void 0?void 0:W[0])===null||F===void 0?void 0:F.blockSize)!==null&&T!==void 0?T:U.contentRect.height;if(j===Y)return;j-e.itemSize===0?d.delete(A):d.set(A,j-e.itemSize);const D=j-Y;if(D===0)return;k.add(I,D);const M=s.value;if(M!=null){if(m===void 0){const N=k.sum(I);M.scrollTop>N&&M.scrollBy(0,D)}else if(I<m)M.scrollBy(0,D);else if(I===m){const N=k.sum(I);j+N>M.scrollTop+M.offsetHeight&&M.scrollBy(0,D)}z()}p.value++}const R=!Ek();let P=!1;function w(A){var U;(U=e.onScroll)===null||U===void 0||U.call(e,A),(!R||!P)&&z()}function _(A){var U;if((U=e.onWheel)===null||U===void 0||U.call(e,A),R){const W=s.value;if(W!=null){if(A.deltaX===0&&(W.scrollTop===0&&A.deltaY<=0||W.scrollTop+W.offsetHeight>=W.scrollHeight&&A.deltaY>=0))return;A.preventDefault(),W.scrollTop+=A.deltaY/Dg(),W.scrollLeft+=A.deltaX/Dg(),z(),P=!0,Ll(()=>{P=!1})}}}function B(A){if(o||O(A.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(A.contentRect.height===c.value)return}else if(A.contentRect.height===c.value&&A.contentRect.width===a.value)return;c.value=A.contentRect.height,a.value=A.contentRect.width;const{onResize:U}=e;U!==void 0&&U(A)}function z(){const{value:A}=s;A!=null&&(v.value=A.scrollTop,l.value=A.scrollLeft)}function O(A){let U=A;for(;U!==null;){if(U.style.display==="none")return!0;U=U.parentElement}return!1}return{listHeight:c,listStyle:{overflow:"auto"},keyToIndex:i,itemsStyle:E(()=>{const{itemResizable:A}=e,U=jt(u.value.sum());return p.value,[e.itemsStyle,{boxSizing:"content-box",width:jt(r.value),height:A?"":U,minHeight:A?U:"",paddingTop:jt(e.paddingTop),paddingBottom:jt(e.paddingBottom)}]}),visibleItemsStyle:E(()=>(p.value,{transform:`translateY(${jt(u.value.sum(h.value))})`})),viewportItems:g,listElRef:s,itemsElRef:L(null),scrollTo:b,handleListResize:B,handleListScroll:w,handleListWheel:_,handleItemResize:y}},render(){const{itemResizable:e,keyField:t,keyToIndex:o,visibleItemsTag:n}=this;return f(_n,{onResize:this.handleListResize},{default:()=>{var r,i;return f("div",ko(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?f("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[f(n,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:l,renderItemWithCols:a}=this;return this.viewportItems.map(s=>{const c=s[t],d=o.get(c),u=l!=null?f(Ng,{index:d,item:s}):void 0,p=a!=null?f(Ng,{index:d,item:s}):void 0,v=this.$slots.default({item:s,renderedCols:u,renderedItemWithCols:p,index:d})[0];return e?f(_n,{key:c,onResize:h=>this.handleItemResize(c,h)},{default:()=>v}):(v.key=c,v)})}})]):(i=(r=this.$slots).empty)===null||i===void 0?void 0:i.call(r)])}})}}),Ak=Rn(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[Rn("&::-webkit-scrollbar",{width:0,height:0})]),Fk=ge({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=L(null);function t(r){!(r.currentTarget.offsetWidth<r.currentTarget.scrollWidth)||r.deltaY===0||(r.currentTarget.scrollLeft+=r.deltaY+r.deltaX,r.preventDefault())}const o=hr();return Ak.mount({id:"vueuc/x-scroll",head:!0,anchorMetaName:xs,ssr:o}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...r){var i;(i=e.value)===null||i===void 0||i.scrollTo(...r)}})},render(){return f("div",{ref:"selfRef",onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:"v-x-scroll"},this.$slots)}}),Gn="v-hidden",Mk=Rn("[v-hidden]",{display:"none!important"}),Ad=ge({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const o=L(null),n=L(null);function r(l){const{value:a}=o,{getCounter:s,getTail:c}=e;let d;if(s!==void 0?d=s():d=n.value,!a||!d)return;d.hasAttribute(Gn)&&d.removeAttribute(Gn);const{children:u}=a;if(l.showAllItemsBeforeCalculate)for(const S of u)S.hasAttribute(Gn)&&S.removeAttribute(Gn);const p=a.offsetWidth,v=[],h=t.tail?c==null?void 0:c():null;let g=h?h.offsetWidth:0,b=!1;const m=a.children.length-(t.tail?1:0);for(let S=0;S<m-1;++S){if(S<0)continue;const C=u[S];if(b){C.hasAttribute(Gn)||C.setAttribute(Gn,"");continue}else C.hasAttribute(Gn)&&C.removeAttribute(Gn);const y=C.offsetWidth;if(g+=y,v[S]=y,g>p){const{updateCounter:R}=e;for(let P=S;P>=0;--P){const w=m-1-P;R!==void 0?R(w):d.textContent=`${w}`;const _=d.offsetWidth;if(g-=v[P],g+_<=p||P===0){b=!0,S=P-1,h&&(S===-1?(h.style.maxWidth=`${p-_}px`,h.style.boxSizing="border-box"):h.style.maxWidth="");const{onUpdateCount:B}=e;B&&B(w);break}}}}const{onUpdateOverflow:x}=e;b?x!==void 0&&x(!0):(x!==void 0&&x(!1),d.setAttribute(Gn,""))}const i=hr();return Mk.mount({id:"vueuc/overflow",head:!0,anchorMetaName:xs,ssr:i}),Bt(()=>r({showAllItemsBeforeCalculate:!1})),{selfRef:o,counterRef:n,sync:r}},render(){const{$slots:e}=this;return $t(()=>this.sync({showAllItemsBeforeCalculate:!1})),f("div",{class:"v-overflow",ref:"selfRef"},[Wh(e,"default"),e.counter?e.counter():f("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function jg(e){return e instanceof HTMLElement}function Wg(e){for(let t=0;t<e.childNodes.length;t++){const o=e.childNodes[t];if(jg(o)&&(Ug(o)||Wg(o)))return!0}return!1}function Vg(e){for(let t=e.childNodes.length-1;t>=0;t--){const o=e.childNodes[t];if(jg(o)&&(Ug(o)||Vg(o)))return!0}return!1}function Ug(e){if(!Bk(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function Bk(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"SELECT":case"TEXTAREA":return!0;default:return!1}}let Kl=[];const Kg=ge({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=nn(),o=L(null),n=L(null);let r=!1,i=!1;const l=typeof document>"u"?null:document.activeElement;function a(){return Kl[Kl.length-1]===t}function s(b){var m;b.code==="Escape"&&a()&&((m=e.onEsc)===null||m===void 0||m.call(e,b))}Bt(()=>{Ze(()=>e.active,b=>{b?(u(),yt("keydown",document,s)):(ct("keydown",document,s),r&&p())},{immediate:!0})}),Dt(()=>{ct("keydown",document,s),r&&p()});function c(b){if(!i&&a()){const m=d();if(m===null||m.contains(Vr(b)))return;v("first")}}function d(){const b=o.value;if(b===null)return null;let m=b;for(;m=m.nextSibling,!(m===null||m instanceof Element&&m.tagName==="DIV"););return m}function u(){var b;if(!e.disabled){if(Kl.push(t),e.autoFocus){const{initialFocusTo:m}=e;m===void 0?v("first"):(b=yg(m))===null||b===void 0||b.focus({preventScroll:!0})}r=!0,document.addEventListener("focus",c,!0)}}function p(){var b;if(e.disabled||(document.removeEventListener("focus",c,!0),Kl=Kl.filter(x=>x!==t),a()))return;const{finalFocusTo:m}=e;m!==void 0?(b=yg(m))===null||b===void 0||b.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&l instanceof HTMLElement&&(i=!0,l.focus({preventScroll:!0}),i=!1)}function v(b){if(a()&&e.active){const m=o.value,x=n.value;if(m!==null&&x!==null){const S=d();if(S==null||S===x){i=!0,m.focus({preventScroll:!0}),i=!1;return}i=!0;const C=b==="first"?Wg(S):Vg(S);i=!1,C||(i=!0,m.focus({preventScroll:!0}),i=!1)}}}function h(b){if(i)return;const m=d();m!==null&&(b.relatedTarget!==null&&m.contains(b.relatedTarget)?v("last"):v("first"))}function g(b){i||(b.relatedTarget!==null&&b.relatedTarget===o.value?v("last"):v("first"))}return{focusableStartRef:o,focusableEndRef:n,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:h,handleEndFocus:g}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:o}=this;return f(Ue,null,[f("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:o,onFocus:this.handleStartFocus}),e(),f("div",{"aria-hidden":"true",style:o,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function qg(e,t){t&&(Bt(()=>{const{value:o}=e;o&&Ul.registerHandler(o,t)}),Ze(e,(o,n)=>{n&&Ul.unregisterHandler(n)},{deep:!1}),Dt(()=>{const{value:o}=e;o&&Ul.unregisterHandler(o)}))}function _s(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}const Lk=/^(\d|\.)+$/,Gg=/(\d|\.)+/;function Wt(e,{c:t=1,offset:o=0,attachPx:n=!0}={}){if(typeof e=="number"){const r=(e+o)*t;return r===0?"0":`${r}px`}else if(typeof e=="string")if(Lk.test(e)){const r=(Number(e)+o)*t;return n?r===0?"0":`${r}px`:`${r}`}else{const r=Gg.exec(e);return r?e.replace(Gg,String((Number(r[0])+o)*t)):e}return e}function Xg(e){const{left:t,right:o,top:n,bottom:r}=Gt(e);return`${n} ${t} ${r} ${o}`}function Fd(e,t){if(!e)return;const o=document.createElement("a");o.href=e,t!==void 0&&(o.download=t),document.body.appendChild(o),o.click(),document.body.removeChild(o)}let Md;function Dk(){return Md===void 0&&(Md=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Md}const Yg=new WeakSet;function Hk(e){Yg.add(e)}function Nk(e){return!Yg.has(e)}function Jg(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}const jk={tiny:"mini",small:"tiny",medium:"small",large:"medium",huge:"large"};function Zg(e){const t=jk[e];if(t===void 0)throw new Error(`${e} has no smaller size.`);return t}function ln(e,t){console.error(`[naive/${e}]: ${t}`)}function Qg(e,t,o){console.error(`[naive/${e}]: ${t}`,o)}function Ko(e,t){throw new Error(`[naive/${e}]: ${t}`)}function Pe(e,...t){if(Array.isArray(e))e.forEach(o=>Pe(o,...t));else return e(...t)}function em(e){return t=>{t?e.value=t.$el:e.value=null}}function pr(e,t=!0,o=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&o.push(it(String(n)));return}if(Array.isArray(n)){pr(n,t,o);return}if(n.type===Ue){if(n.children===null)return;Array.isArray(n.children)&&pr(n.children,t,o)}else{if(n.type===Yt&&t)return;o.push(n)}}}),o}function Wk(e,t="default",o=void 0){const n=e[t];if(!n)return ln("getFirstSlotVNode",`slot[${t}] is empty`),null;const r=pr(n(o));return r.length===1?r[0]:(ln("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function tm(e,t,o){if(!t)return null;const n=pr(t(o));return n.length===1?n[0]:(ln("getFirstSlotVNode",`slot[${e}] should have exactly one child`),null)}function Vk(e,t="default",o=[]){const r=e.$slots[t];return r===void 0?o:r()}function qo(e,t=[],o){const n={};return t.forEach(r=>{n[r]=e[r]}),Object.assign(n,o)}function Xn(e){return Object.keys(e)}function ql(e){const t=e.filter(o=>o!==void 0);if(t.length!==0)return t.length===1?t[0]:o=>{e.forEach(n=>{n&&n(o)})}}function vr(e,t=[],o){const n={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(n[i]=e[i])}),Object.assign(n,o)}function _t(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?it(e):typeof e=="number"?it(String(e)):null}function an(e){return e.some(t=>$i(t)?!(t.type===Yt||t.type===Ue&&!an(t.children)):!0)?e:null}function po(e,t){return e&&an(e())||t()}function Uk(e,t,o){return e&&an(e(t))||o(t)}function vt(e,t){const o=e&&an(e());return t(o||null)}function Ui(e){return!(e&&an(e()))}const Bd=ge({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),sn="n-config-provider",$s="n";function nt(e={},t={defaultBordered:!0}){const o=Be(sn,null);return{inlineThemeDisabled:o==null?void 0:o.inlineThemeDisabled,mergedRtlRef:o==null?void 0:o.mergedRtlRef,mergedComponentPropsRef:o==null?void 0:o.mergedComponentPropsRef,mergedBreakpointsRef:o==null?void 0:o.mergedBreakpointsRef,mergedBorderedRef:E(()=>{var n,r;const{bordered:i}=e;return i!==void 0?i:(r=(n=o==null?void 0:o.mergedBorderedRef.value)!==null&&n!==void 0?n:t.defaultBordered)!==null&&r!==void 0?r:!0}),mergedClsPrefixRef:o?o.mergedClsPrefixRef:Tc($s),namespaceRef:E(()=>o==null?void 0:o.mergedNamespaceRef.value)}}function om(){const e=Be(sn,null);return e?e.mergedClsPrefixRef:Tc($s)}function xt(e,t,o,n){o||Ko("useThemeClass","cssVarsRef is not passed");const r=Be(sn,null),i=r==null?void 0:r.mergedThemeHashRef,l=r==null?void 0:r.styleMountTarget,a=L(""),s=hr();let c;const d=`__${e}`,u=()=>{let p=d;const v=t?t.value:void 0,h=i==null?void 0:i.value;h&&(p+=`-${h}`),v&&(p+=`-${v}`);const{themeOverrides:g,builtinThemeOverrides:b}=n;g&&(p+=`-${Mi(JSON.stringify(g))}`),b&&(p+=`-${Mi(JSON.stringify(b))}`),a.value=p,c=()=>{const m=o.value;let x="";for(const S in m)x+=`${S}: ${m[S]};`;V(`.${p}`,x).mount({id:p,ssr:s,parent:l}),c=void 0}};return Lt(()=>{u()}),{themeClass:a,onRender:()=>{c==null||c()}}}const nm="n-form-item";function $n(e,{defaultSize:t="medium",mergedSize:o,mergedDisabled:n}={}){const r=Be(nm,null);tt(nm,null);const i=E(o?()=>o(r):()=>{const{size:s}=e;if(s)return s;if(r){const{mergedSize:c}=r;if(c.value!==void 0)return c.value}return t}),l=E(n?()=>n(r):()=>{const{disabled:s}=e;return s!==void 0?s:r?r.disabled.value:!1}),a=E(()=>{const{status:s}=e;return s||(r==null?void 0:r.mergedValidationStatus.value)});return Dt(()=>{r&&r.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:l,mergedStatusRef:a,nTriggerFormBlur(){r&&r.handleContentBlur()},nTriggerFormChange(){r&&r.handleContentChange()},nTriggerFormFocus(){r&&r.handleContentFocus()},nTriggerFormInput(){r&&r.handleContentInput()}}}const Kk={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"},Heatmap:{less:"less",more:"more",monthFormat:"MMM",weekdayFormat:"eee"}};function Ld(e){return(t={})=>{const o=t.width?String(t.width):e.defaultWidth;return e.formats[o]||e.formats[e.defaultWidth]}}function Gl(e){return(t,o)=>{const n=o!=null&&o.context?String(o.context):"standalone";let r;if(n==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,a=o!=null&&o.width?String(o.width):l;r=e.formattingValues[a]||e.formattingValues[l]}else{const l=e.defaultWidth,a=o!=null&&o.width?String(o.width):e.defaultWidth;r=e.values[a]||e.values[l]}const i=e.argumentCallback?e.argumentCallback(t):t;return r[i]}}function Xl(e){return(t,o={})=>{const n=o.width,r=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;const l=i[0],a=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(a)?Gk(a,u=>u.test(l)):qk(a,u=>u.test(l));let c;c=e.valueCallback?e.valueCallback(s):s,c=o.valueCallback?o.valueCallback(c):c;const d=t.slice(l.length);return{value:c,rest:d}}}function qk(e,t){for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t(e[o]))return o}function Gk(e,t){for(let o=0;o<e.length;o++)if(t(e[o]))return o}function Xk(e){return(t,o={})=>{const n=t.match(e.matchPattern);if(!n)return null;const r=n[0],i=t.match(e.parsePattern);if(!i)return null;let l=e.valueCallback?e.valueCallback(i[0]):i[0];l=o.valueCallback?o.valueCallback(l):l;const a=t.slice(r.length);return{value:l,rest:a}}}const Yk={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Jk=(e,t,o)=>{let n;const r=Yk[e];return typeof r=="string"?n=r:t===1?n=r.one:n=r.other.replace("{{count}}",t.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+n:n+" ago":n},Zk={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Qk=(e,t,o,n)=>Zk[e],eR={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},tR={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},oR={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},nR={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},rR={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},iR={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},lR={ordinalNumber:(e,t)=>{const o=Number(e),n=o%100;if(n>20||n<10)switch(n%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},era:Gl({values:eR,defaultWidth:"wide"}),quarter:Gl({values:tR,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Gl({values:oR,defaultWidth:"wide"}),day:Gl({values:nR,defaultWidth:"wide"}),dayPeriod:Gl({values:rR,defaultWidth:"wide",formattingValues:iR,defaultFormattingWidth:"wide"})},aR=/^(\d+)(th|st|nd|rd)?/i,sR=/\d+/i,cR={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},dR={any:[/^b/i,/^(a|c)/i]},uR={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},fR={any:[/1/i,/2/i,/3/i,/4/i]},hR={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},pR={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},vR={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},gR={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},mR={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bR={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},xR={ordinalNumber:Xk({matchPattern:aR,parsePattern:sR,valueCallback:e=>parseInt(e,10)}),era:Xl({matchPatterns:cR,defaultMatchWidth:"wide",parsePatterns:dR,defaultParseWidth:"any"}),quarter:Xl({matchPatterns:uR,defaultMatchWidth:"wide",parsePatterns:fR,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Xl({matchPatterns:hR,defaultMatchWidth:"wide",parsePatterns:pR,defaultParseWidth:"any"}),day:Xl({matchPatterns:vR,defaultMatchWidth:"wide",parsePatterns:gR,defaultParseWidth:"any"}),dayPeriod:Xl({matchPatterns:mR,defaultMatchWidth:"any",parsePatterns:bR,defaultParseWidth:"any"})},yR={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},CR={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},wR={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},SR={date:Ld({formats:yR,defaultWidth:"full"}),time:Ld({formats:CR,defaultWidth:"full"}),dateTime:Ld({formats:wR,defaultWidth:"full"})},kR={name:"en-US",locale:{code:"en-US",formatDistance:Jk,formatLong:SR,formatRelative:Qk,localize:lR,match:xR,options:{weekStartsOn:0,firstWeekContainsDate:1}}};var rm=typeof global=="object"&&global&&global.Object===Object&&global,RR=typeof self=="object"&&self&&self.Object===Object&&self,cn=rm||RR||Function("return this")(),gr=cn.Symbol,im=Object.prototype,PR=im.hasOwnProperty,_R=im.toString,Yl=gr?gr.toStringTag:void 0;function $R(e){var t=PR.call(e,Yl),o=e[Yl];try{e[Yl]=void 0;var n=!0}catch{}var r=_R.call(e);return n&&(t?e[Yl]=o:delete e[Yl]),r}var TR=Object.prototype,zR=TR.toString;function ER(e){return zR.call(e)}var OR="[object Null]",IR="[object Undefined]",lm=gr?gr.toStringTag:void 0;function Zr(e){return e==null?e===void 0?IR:OR:lm&&lm in Object(e)?$R(e):ER(e)}function mr(e){return e!=null&&typeof e=="object"}var AR="[object Symbol]";function Ts(e){return typeof e=="symbol"||mr(e)&&Zr(e)==AR}function am(e,t){for(var o=-1,n=e==null?0:e.length,r=Array(n);++o<n;)r[o]=t(e[o],o,e);return r}var Go=Array.isArray,sm=gr?gr.prototype:void 0,cm=sm?sm.toString:void 0;function dm(e){if(typeof e=="string")return e;if(Go(e))return am(e,dm)+"";if(Ts(e))return cm?cm.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var FR=/\s/;function MR(e){for(var t=e.length;t--&&FR.test(e.charAt(t)););return t}var BR=/^\s+/;function LR(e){return e&&e.slice(0,MR(e)+1).replace(BR,"")}function Xo(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var um=NaN,DR=/^[-+]0x[0-9a-f]+$/i,HR=/^0b[01]+$/i,NR=/^0o[0-7]+$/i,jR=parseInt;function fm(e){if(typeof e=="number")return e;if(Ts(e))return um;if(Xo(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Xo(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=LR(e);var o=HR.test(e);return o||NR.test(e)?jR(e.slice(2),o?2:8):DR.test(e)?um:+e}function Dd(e){return e}var WR="[object AsyncFunction]",VR="[object Function]",UR="[object GeneratorFunction]",KR="[object Proxy]";function Hd(e){if(!Xo(e))return!1;var t=Zr(e);return t==VR||t==UR||t==WR||t==KR}var Nd=cn["__core-js_shared__"],hm=function(){var e=/[^.]+$/.exec(Nd&&Nd.keys&&Nd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function qR(e){return!!hm&&hm in e}var GR=Function.prototype,XR=GR.toString;function Qr(e){if(e!=null){try{return XR.call(e)}catch{}try{return e+""}catch{}}return""}var YR=/[\\^$.*+?()[\]{}|]/g,JR=/^\[object .+?Constructor\]$/,ZR=Function.prototype,QR=Object.prototype,e5=ZR.toString,t5=QR.hasOwnProperty,o5=RegExp("^"+e5.call(t5).replace(YR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function n5(e){if(!Xo(e)||qR(e))return!1;var t=Hd(e)?o5:JR;return t.test(Qr(e))}function r5(e,t){return e==null?void 0:e[t]}function ei(e,t){var o=r5(e,t);return n5(o)?o:void 0}var jd=ei(cn,"WeakMap"),pm=Object.create,i5=function(){function e(){}return function(t){if(!Xo(t))return{};if(pm)return pm(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}();function l5(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}function a5(e,t){var o=-1,n=e.length;for(t||(t=Array(n));++o<n;)t[o]=e[o];return t}var s5=800,c5=16,d5=Date.now;function u5(e){var t=0,o=0;return function(){var n=d5(),r=c5-(n-o);if(o=n,r>0){if(++t>=s5)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function f5(e){return function(){return e}}var zs=function(){try{var e=ei(Object,"defineProperty");return e({},"",{}),e}catch{}}(),h5=zs?function(e,t){return zs(e,"toString",{configurable:!0,enumerable:!1,value:f5(t),writable:!0})}:Dd,p5=u5(h5),v5=9007199254740991,g5=/^(?:0|[1-9]\d*)$/;function Wd(e,t){var o=typeof e;return t=t??v5,!!t&&(o=="number"||o!="symbol"&&g5.test(e))&&e>-1&&e%1==0&&e<t}function Vd(e,t,o){t=="__proto__"&&zs?zs(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function Jl(e,t){return e===t||e!==e&&t!==t}var m5=Object.prototype,b5=m5.hasOwnProperty;function x5(e,t,o){var n=e[t];(!(b5.call(e,t)&&Jl(n,o))||o===void 0&&!(t in e))&&Vd(e,t,o)}function y5(e,t,o,n){var r=!o;o||(o={});for(var i=-1,l=t.length;++i<l;){var a=t[i],s=void 0;s===void 0&&(s=e[a]),r?Vd(o,a,s):x5(o,a,s)}return o}var vm=Math.max;function C5(e,t,o){return t=vm(t===void 0?e.length-1:t,0),function(){for(var n=arguments,r=-1,i=vm(n.length-t,0),l=Array(i);++r<i;)l[r]=n[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=n[r];return a[t]=o(l),l5(e,this,a)}}function w5(e,t){return p5(C5(e,t,Dd),e+"")}var S5=9007199254740991;function Ud(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=S5}function Ki(e){return e!=null&&Ud(e.length)&&!Hd(e)}function k5(e,t,o){if(!Xo(o))return!1;var n=typeof t;return(n=="number"?Ki(o)&&Wd(t,o.length):n=="string"&&t in o)?Jl(o[t],e):!1}function R5(e){return w5(function(t,o){var n=-1,r=o.length,i=r>1?o[r-1]:void 0,l=r>2?o[2]:void 0;for(i=e.length>3&&typeof i=="function"?(r--,i):void 0,l&&k5(o[0],o[1],l)&&(i=r<3?void 0:i,r=1),t=Object(t);++n<r;){var a=o[n];a&&e(t,a,n,i)}return t})}var P5=Object.prototype;function Kd(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||P5;return e===o}function _5(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n}var $5="[object Arguments]";function gm(e){return mr(e)&&Zr(e)==$5}var mm=Object.prototype,T5=mm.hasOwnProperty,z5=mm.propertyIsEnumerable,Es=gm(function(){return arguments}())?gm:function(e){return mr(e)&&T5.call(e,"callee")&&!z5.call(e,"callee")};function E5(){return!1}var bm=typeof Co=="object"&&Co&&!Co.nodeType&&Co,xm=bm&&typeof module=="object"&&module&&!module.nodeType&&module,O5=xm&&xm.exports===bm,ym=O5?cn.Buffer:void 0,I5=ym?ym.isBuffer:void 0,Os=I5||E5,A5="[object Arguments]",F5="[object Array]",M5="[object Boolean]",B5="[object Date]",L5="[object Error]",D5="[object Function]",H5="[object Map]",N5="[object Number]",j5="[object Object]",W5="[object RegExp]",V5="[object Set]",U5="[object String]",K5="[object WeakMap]",q5="[object ArrayBuffer]",G5="[object DataView]",X5="[object Float32Array]",Y5="[object Float64Array]",J5="[object Int8Array]",Z5="[object Int16Array]",Q5="[object Int32Array]",eP="[object Uint8Array]",tP="[object Uint8ClampedArray]",oP="[object Uint16Array]",nP="[object Uint32Array]",Ft={};Ft[X5]=Ft[Y5]=Ft[J5]=Ft[Z5]=Ft[Q5]=Ft[eP]=Ft[tP]=Ft[oP]=Ft[nP]=!0,Ft[A5]=Ft[F5]=Ft[q5]=Ft[M5]=Ft[G5]=Ft[B5]=Ft[L5]=Ft[D5]=Ft[H5]=Ft[N5]=Ft[j5]=Ft[W5]=Ft[V5]=Ft[U5]=Ft[K5]=!1;function rP(e){return mr(e)&&Ud(e.length)&&!!Ft[Zr(e)]}function iP(e){return function(t){return e(t)}}var Cm=typeof Co=="object"&&Co&&!Co.nodeType&&Co,Zl=Cm&&typeof module=="object"&&module&&!module.nodeType&&module,lP=Zl&&Zl.exports===Cm,qd=lP&&rm.process,wm=function(){try{var e=Zl&&Zl.require&&Zl.require("util").types;return e||qd&&qd.binding&&qd.binding("util")}catch{}}(),Sm=wm&&wm.isTypedArray,Gd=Sm?iP(Sm):rP,aP=Object.prototype,sP=aP.hasOwnProperty;function km(e,t){var o=Go(e),n=!o&&Es(e),r=!o&&!n&&Os(e),i=!o&&!n&&!r&&Gd(e),l=o||n||r||i,a=l?_5(e.length,String):[],s=a.length;for(var c in e)(t||sP.call(e,c))&&!(l&&(c=="length"||r&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Wd(c,s)))&&a.push(c);return a}function Rm(e,t){return function(o){return e(t(o))}}var cP=Rm(Object.keys,Object),dP=Object.prototype,uP=dP.hasOwnProperty;function fP(e){if(!Kd(e))return cP(e);var t=[];for(var o in Object(e))uP.call(e,o)&&o!="constructor"&&t.push(o);return t}function Xd(e){return Ki(e)?km(e):fP(e)}function hP(e){var t=[];if(e!=null)for(var o in Object(e))t.push(o);return t}var pP=Object.prototype,vP=pP.hasOwnProperty;function gP(e){if(!Xo(e))return hP(e);var t=Kd(e),o=[];for(var n in e)n=="constructor"&&(t||!vP.call(e,n))||o.push(n);return o}function Pm(e){return Ki(e)?km(e,!0):gP(e)}var mP=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bP=/^\w*$/;function Yd(e,t){if(Go(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||Ts(e)?!0:bP.test(e)||!mP.test(e)||t!=null&&e in Object(t)}var Ql=ei(Object,"create");function xP(){this.__data__=Ql?Ql(null):{},this.size=0}function yP(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var CP="__lodash_hash_undefined__",wP=Object.prototype,SP=wP.hasOwnProperty;function kP(e){var t=this.__data__;if(Ql){var o=t[e];return o===CP?void 0:o}return SP.call(t,e)?t[e]:void 0}var RP=Object.prototype,PP=RP.hasOwnProperty;function _P(e){var t=this.__data__;return Ql?t[e]!==void 0:PP.call(t,e)}var $P="__lodash_hash_undefined__";function TP(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Ql&&t===void 0?$P:t,this}function ti(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}ti.prototype.clear=xP,ti.prototype.delete=yP,ti.prototype.get=kP,ti.prototype.has=_P,ti.prototype.set=TP;function zP(){this.__data__=[],this.size=0}function Is(e,t){for(var o=e.length;o--;)if(Jl(e[o][0],t))return o;return-1}var EP=Array.prototype,OP=EP.splice;function IP(e){var t=this.__data__,o=Is(t,e);if(o<0)return!1;var n=t.length-1;return o==n?t.pop():OP.call(t,o,1),--this.size,!0}function AP(e){var t=this.__data__,o=Is(t,e);return o<0?void 0:t[o][1]}function FP(e){return Is(this.__data__,e)>-1}function MP(e,t){var o=this.__data__,n=Is(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this}function Yn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}Yn.prototype.clear=zP,Yn.prototype.delete=IP,Yn.prototype.get=AP,Yn.prototype.has=FP,Yn.prototype.set=MP;var ea=ei(cn,"Map");function BP(){this.size=0,this.__data__={hash:new ti,map:new(ea||Yn),string:new ti}}function LP(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function As(e,t){var o=e.__data__;return LP(t)?o[typeof t=="string"?"string":"hash"]:o.map}function DP(e){var t=As(this,e).delete(e);return this.size-=t?1:0,t}function HP(e){return As(this,e).get(e)}function NP(e){return As(this,e).has(e)}function jP(e,t){var o=As(this,e),n=o.size;return o.set(e,t),this.size+=o.size==n?0:1,this}function Jn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}Jn.prototype.clear=BP,Jn.prototype.delete=DP,Jn.prototype.get=HP,Jn.prototype.has=NP,Jn.prototype.set=jP;var WP="Expected a function";function Jd(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(WP);var o=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=o.cache;if(i.has(r))return i.get(r);var l=e.apply(this,n);return o.cache=i.set(r,l)||i,l};return o.cache=new(Jd.Cache||Jn),o}Jd.Cache=Jn;var VP=500;function UP(e){var t=Jd(e,function(n){return o.size===VP&&o.clear(),n}),o=t.cache;return t}var KP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qP=/\\(\\)?/g,GP=UP(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(KP,function(o,n,r,i){t.push(r?i.replace(qP,"$1"):n||o)}),t});function Fs(e){return e==null?"":dm(e)}function _m(e,t){return Go(e)?e:Yd(e,t)?[e]:GP(Fs(e))}function Ms(e){if(typeof e=="string"||Ts(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function $m(e,t){t=_m(t,e);for(var o=0,n=t.length;e!=null&&o<n;)e=e[Ms(t[o++])];return o&&o==n?e:void 0}function Zd(e,t,o){var n=e==null?void 0:$m(e,t);return n===void 0?o:n}function XP(e,t){for(var o=-1,n=t.length,r=e.length;++o<n;)e[r+o]=t[o];return e}var Tm=Rm(Object.getPrototypeOf,Object),YP="[object Object]",JP=Function.prototype,ZP=Object.prototype,zm=JP.toString,QP=ZP.hasOwnProperty,e_=zm.call(Object);function t_(e){if(!mr(e)||Zr(e)!=YP)return!1;var t=Tm(e);if(t===null)return!0;var o=QP.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&zm.call(o)==e_}function o_(e,t,o){var n=-1,r=e.length;t<0&&(t=-t>r?0:r+t),o=o>r?r:o,o<0&&(o+=r),r=t>o?0:o-t>>>0,t>>>=0;for(var i=Array(r);++n<r;)i[n]=e[n+t];return i}function n_(e,t,o){var n=e.length;return o=o===void 0?n:o,!t&&o>=n?e:o_(e,t,o)}var r_="\\ud800-\\udfff",i_="\\u0300-\\u036f",l_="\\ufe20-\\ufe2f",a_="\\u20d0-\\u20ff",s_=i_+l_+a_,c_="\\ufe0e\\ufe0f",d_="\\u200d",u_=RegExp("["+d_+r_+s_+c_+"]");function Em(e){return u_.test(e)}function f_(e){return e.split("")}var Om="\\ud800-\\udfff",h_="\\u0300-\\u036f",p_="\\ufe20-\\ufe2f",v_="\\u20d0-\\u20ff",g_=h_+p_+v_,m_="\\ufe0e\\ufe0f",b_="["+Om+"]",Qd="["+g_+"]",eu="\\ud83c[\\udffb-\\udfff]",x_="(?:"+Qd+"|"+eu+")",Im="[^"+Om+"]",Am="(?:\\ud83c[\\udde6-\\uddff]){2}",Fm="[\\ud800-\\udbff][\\udc00-\\udfff]",y_="\\u200d",Mm=x_+"?",Bm="["+m_+"]?",C_="(?:"+y_+"(?:"+[Im,Am,Fm].join("|")+")"+Bm+Mm+")*",w_=Bm+Mm+C_,S_="(?:"+[Im+Qd+"?",Qd,Am,Fm,b_].join("|")+")",k_=RegExp(eu+"(?="+eu+")|"+S_+w_,"g");function R_(e){return e.match(k_)||[]}function P_(e){return Em(e)?R_(e):f_(e)}function __(e){return function(t){t=Fs(t);var o=Em(t)?P_(t):void 0,n=o?o[0]:t.charAt(0),r=o?n_(o,1).join(""):t.slice(1);return n[e]()+r}}var $_=__("toUpperCase");function T_(e,t,o,n){for(var r=-1,i=e==null?0:e.length;++r<i;)o=t(o,e[r],r,e);return o}function z_(e){return function(t){return e==null?void 0:e[t]}}var E_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},O_=z_(E_),I_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,A_="\\u0300-\\u036f",F_="\\ufe20-\\ufe2f",M_="\\u20d0-\\u20ff",B_=A_+F_+M_,L_="["+B_+"]",D_=RegExp(L_,"g");function H_(e){return e=Fs(e),e&&e.replace(I_,O_).replace(D_,"")}var N_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function j_(e){return e.match(N_)||[]}var W_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function V_(e){return W_.test(e)}var Lm="\\ud800-\\udfff",U_="\\u0300-\\u036f",K_="\\ufe20-\\ufe2f",q_="\\u20d0-\\u20ff",G_=U_+K_+q_,Dm="\\u2700-\\u27bf",Hm="a-z\\xdf-\\xf6\\xf8-\\xff",X_="\\xac\\xb1\\xd7\\xf7",Y_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",J_="\\u2000-\\u206f",Z_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Nm="A-Z\\xc0-\\xd6\\xd8-\\xde",Q_="\\ufe0e\\ufe0f",jm=X_+Y_+J_+Z_,Wm="['’]",Vm="["+jm+"]",e3="["+G_+"]",Um="\\d+",t3="["+Dm+"]",Km="["+Hm+"]",qm="[^"+Lm+jm+Um+Dm+Hm+Nm+"]",o3="\\ud83c[\\udffb-\\udfff]",n3="(?:"+e3+"|"+o3+")",r3="[^"+Lm+"]",Gm="(?:\\ud83c[\\udde6-\\uddff]){2}",Xm="[\\ud800-\\udbff][\\udc00-\\udfff]",qi="["+Nm+"]",i3="\\u200d",Ym="(?:"+Km+"|"+qm+")",l3="(?:"+qi+"|"+qm+")",Jm="(?:"+Wm+"(?:d|ll|m|re|s|t|ve))?",Zm="(?:"+Wm+"(?:D|LL|M|RE|S|T|VE))?",Qm=n3+"?",eb="["+Q_+"]?",a3="(?:"+i3+"(?:"+[r3,Gm,Xm].join("|")+")"+eb+Qm+")*",s3="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",c3="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",d3=eb+Qm+a3,u3="(?:"+[t3,Gm,Xm].join("|")+")"+d3,f3=RegExp([qi+"?"+Km+"+"+Jm+"(?="+[Vm,qi,"$"].join("|")+")",l3+"+"+Zm+"(?="+[Vm,qi+Ym,"$"].join("|")+")",qi+"?"+Ym+"+"+Jm,qi+"+"+Zm,c3,s3,Um,u3].join("|"),"g");function h3(e){return e.match(f3)||[]}function p3(e,t,o){return e=Fs(e),t=t,t===void 0?V_(e)?h3(e):j_(e):e.match(t)||[]}var v3="['’]",g3=RegExp(v3,"g");function m3(e){return function(t){return T_(p3(H_(t).replace(g3,"")),e,"")}}function b3(){this.__data__=new Yn,this.size=0}function x3(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function y3(e){return this.__data__.get(e)}function C3(e){return this.__data__.has(e)}var w3=200;function S3(e,t){var o=this.__data__;if(o instanceof Yn){var n=o.__data__;if(!ea||n.length<w3-1)return n.push([e,t]),this.size=++o.size,this;o=this.__data__=new Jn(n)}return o.set(e,t),this.size=o.size,this}function Tn(e){var t=this.__data__=new Yn(e);this.size=t.size}Tn.prototype.clear=b3,Tn.prototype.delete=x3,Tn.prototype.get=y3,Tn.prototype.has=C3,Tn.prototype.set=S3;var tb=typeof Co=="object"&&Co&&!Co.nodeType&&Co,ob=tb&&typeof module=="object"&&module&&!module.nodeType&&module,k3=ob&&ob.exports===tb,nb=k3?cn.Buffer:void 0;nb&&nb.allocUnsafe;function R3(e,t){return e.slice()}function P3(e,t){for(var o=-1,n=e==null?0:e.length,r=0,i=[];++o<n;){var l=e[o];t(l,o,e)&&(i[r++]=l)}return i}function _3(){return[]}var $3=Object.prototype,T3=$3.propertyIsEnumerable,rb=Object.getOwnPropertySymbols,z3=rb?function(e){return e==null?[]:(e=Object(e),P3(rb(e),function(t){return T3.call(e,t)}))}:_3;function E3(e,t,o){var n=t(e);return Go(e)?n:XP(n,o(e))}function ib(e){return E3(e,Xd,z3)}var tu=ei(cn,"DataView"),ou=ei(cn,"Promise"),nu=ei(cn,"Set"),lb="[object Map]",O3="[object Object]",ab="[object Promise]",sb="[object Set]",cb="[object WeakMap]",db="[object DataView]",I3=Qr(tu),A3=Qr(ea),F3=Qr(ou),M3=Qr(nu),B3=Qr(jd),br=Zr;(tu&&br(new tu(new ArrayBuffer(1)))!=db||ea&&br(new ea)!=lb||ou&&br(ou.resolve())!=ab||nu&&br(new nu)!=sb||jd&&br(new jd)!=cb)&&(br=function(e){var t=Zr(e),o=t==O3?e.constructor:void 0,n=o?Qr(o):"";if(n)switch(n){case I3:return db;case A3:return lb;case F3:return ab;case M3:return sb;case B3:return cb}return t});var Bs=cn.Uint8Array;function L3(e){var t=new e.constructor(e.byteLength);return new Bs(t).set(new Bs(e)),t}function D3(e,t){var o=L3(e.buffer);return new e.constructor(o,e.byteOffset,e.length)}function H3(e){return typeof e.constructor=="function"&&!Kd(e)?i5(Tm(e)):{}}var N3="__lodash_hash_undefined__";function j3(e){return this.__data__.set(e,N3),this}function W3(e){return this.__data__.has(e)}function Ls(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new Jn;++t<o;)this.add(e[t])}Ls.prototype.add=Ls.prototype.push=j3,Ls.prototype.has=W3;function V3(e,t){for(var o=-1,n=e==null?0:e.length;++o<n;)if(t(e[o],o,e))return!0;return!1}function U3(e,t){return e.has(t)}var K3=1,q3=2;function ub(e,t,o,n,r,i){var l=o&K3,a=e.length,s=t.length;if(a!=s&&!(l&&s>a))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var u=-1,p=!0,v=o&q3?new Ls:void 0;for(i.set(e,t),i.set(t,e);++u<a;){var h=e[u],g=t[u];if(n)var b=l?n(g,h,u,t,e,i):n(h,g,u,e,t,i);if(b!==void 0){if(b)continue;p=!1;break}if(v){if(!V3(t,function(m,x){if(!U3(v,x)&&(h===m||r(h,m,o,n,i)))return v.push(x)})){p=!1;break}}else if(!(h===g||r(h,g,o,n,i))){p=!1;break}}return i.delete(e),i.delete(t),p}function G3(e){var t=-1,o=Array(e.size);return e.forEach(function(n,r){o[++t]=[r,n]}),o}function X3(e){var t=-1,o=Array(e.size);return e.forEach(function(n){o[++t]=n}),o}var Y3=1,J3=2,Z3="[object Boolean]",Q3="[object Date]",e$="[object Error]",t$="[object Map]",o$="[object Number]",n$="[object RegExp]",r$="[object Set]",i$="[object String]",l$="[object Symbol]",a$="[object ArrayBuffer]",s$="[object DataView]",fb=gr?gr.prototype:void 0,ru=fb?fb.valueOf:void 0;function c$(e,t,o,n,r,i,l){switch(o){case s$:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case a$:return!(e.byteLength!=t.byteLength||!i(new Bs(e),new Bs(t)));case Z3:case Q3:case o$:return Jl(+e,+t);case e$:return e.name==t.name&&e.message==t.message;case n$:case i$:return e==t+"";case t$:var a=G3;case r$:var s=n&Y3;if(a||(a=X3),e.size!=t.size&&!s)return!1;var c=l.get(e);if(c)return c==t;n|=J3,l.set(e,t);var d=ub(a(e),a(t),n,r,i,l);return l.delete(e),d;case l$:if(ru)return ru.call(e)==ru.call(t)}return!1}var d$=1,u$=Object.prototype,f$=u$.hasOwnProperty;function h$(e,t,o,n,r,i){var l=o&d$,a=ib(e),s=a.length,c=ib(t),d=c.length;if(s!=d&&!l)return!1;for(var u=s;u--;){var p=a[u];if(!(l?p in t:f$.call(t,p)))return!1}var v=i.get(e),h=i.get(t);if(v&&h)return v==t&&h==e;var g=!0;i.set(e,t),i.set(t,e);for(var b=l;++u<s;){p=a[u];var m=e[p],x=t[p];if(n)var S=l?n(x,m,p,t,e,i):n(m,x,p,e,t,i);if(!(S===void 0?m===x||r(m,x,o,n,i):S)){g=!1;break}b||(b=p=="constructor")}if(g&&!b){var C=e.constructor,y=t.constructor;C!=y&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof y=="function"&&y instanceof y)&&(g=!1)}return i.delete(e),i.delete(t),g}var p$=1,hb="[object Arguments]",pb="[object Array]",Ds="[object Object]",v$=Object.prototype,vb=v$.hasOwnProperty;function g$(e,t,o,n,r,i){var l=Go(e),a=Go(t),s=l?pb:br(e),c=a?pb:br(t);s=s==hb?Ds:s,c=c==hb?Ds:c;var d=s==Ds,u=c==Ds,p=s==c;if(p&&Os(e)){if(!Os(t))return!1;l=!0,d=!1}if(p&&!d)return i||(i=new Tn),l||Gd(e)?ub(e,t,o,n,r,i):c$(e,t,s,o,n,r,i);if(!(o&p$)){var v=d&&vb.call(e,"__wrapped__"),h=u&&vb.call(t,"__wrapped__");if(v||h){var g=v?e.value():e,b=h?t.value():t;return i||(i=new Tn),r(g,b,o,n,i)}}return p?(i||(i=new Tn),h$(e,t,o,n,r,i)):!1}function iu(e,t,o,n,r){return e===t?!0:e==null||t==null||!mr(e)&&!mr(t)?e!==e&&t!==t:g$(e,t,o,n,iu,r)}var m$=1,b$=2;function x$(e,t,o,n){var r=o.length,i=r;if(e==null)return!i;for(e=Object(e);r--;){var l=o[r];if(l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++r<i;){l=o[r];var a=l[0],s=e[a],c=l[1];if(l[2]){if(s===void 0&&!(a in e))return!1}else{var d=new Tn,u;if(!(u===void 0?iu(c,s,m$|b$,n,d):u))return!1}}return!0}function gb(e){return e===e&&!Xo(e)}function y$(e){for(var t=Xd(e),o=t.length;o--;){var n=t[o],r=e[n];t[o]=[n,r,gb(r)]}return t}function mb(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==void 0||e in Object(o))}}function C$(e){var t=y$(e);return t.length==1&&t[0][2]?mb(t[0][0],t[0][1]):function(o){return o===e||x$(o,e,t)}}function w$(e,t){return e!=null&&t in Object(e)}function S$(e,t,o){t=_m(t,e);for(var n=-1,r=t.length,i=!1;++n<r;){var l=Ms(t[n]);if(!(i=e!=null&&o(e,l)))break;e=e[l]}return i||++n!=r?i:(r=e==null?0:e.length,!!r&&Ud(r)&&Wd(l,r)&&(Go(e)||Es(e)))}function k$(e,t){return e!=null&&S$(e,t,w$)}var R$=1,P$=2;function _$(e,t){return Yd(e)&&gb(t)?mb(Ms(e),t):function(o){var n=Zd(o,e);return n===void 0&&n===t?k$(o,e):iu(t,n,R$|P$)}}function $$(e){return function(t){return t==null?void 0:t[e]}}function T$(e){return function(t){return $m(t,e)}}function z$(e){return Yd(e)?$$(Ms(e)):T$(e)}function E$(e){return typeof e=="function"?e:e==null?Dd:typeof e=="object"?Go(e)?_$(e[0],e[1]):C$(e):z$(e)}function O$(e){return function(t,o,n){for(var r=-1,i=Object(t),l=n(t),a=l.length;a--;){var s=l[++r];if(o(i[s],s,i)===!1)break}return t}}var bb=O$();function I$(e,t){return e&&bb(e,t,Xd)}function A$(e,t){return function(o,n){if(o==null)return o;if(!Ki(o))return e(o,n);for(var r=o.length,i=-1,l=Object(o);++i<r&&n(l[i],i,l)!==!1;);return o}}var F$=A$(I$),lu=function(){return cn.Date.now()},M$="Expected a function",B$=Math.max,L$=Math.min;function D$(e,t,o){var n,r,i,l,a,s,c=0,d=!1,u=!1,p=!0;if(typeof e!="function")throw new TypeError(M$);t=fm(t)||0,Xo(o)&&(d=!!o.leading,u="maxWait"in o,i=u?B$(fm(o.maxWait)||0,t):i,p="trailing"in o?!!o.trailing:p);function v(R){var P=n,w=r;return n=r=void 0,c=R,l=e.apply(w,P),l}function h(R){return c=R,a=setTimeout(m,t),d?v(R):l}function g(R){var P=R-s,w=R-c,_=t-P;return u?L$(_,i-w):_}function b(R){var P=R-s,w=R-c;return s===void 0||P>=t||P<0||u&&w>=i}function m(){var R=lu();if(b(R))return x(R);a=setTimeout(m,g(R))}function x(R){return a=void 0,p&&n?v(R):(n=r=void 0,l)}function S(){a!==void 0&&clearTimeout(a),c=0,n=s=r=a=void 0}function C(){return a===void 0?l:x(lu())}function y(){var R=lu(),P=b(R);if(n=arguments,r=this,s=R,P){if(a===void 0)return h(s);if(u)return clearTimeout(a),a=setTimeout(m,t),v(s)}return a===void 0&&(a=setTimeout(m,t)),l}return y.cancel=S,y.flush=C,y}function au(e,t,o){(o!==void 0&&!Jl(e[t],o)||o===void 0&&!(t in e))&&Vd(e,t,o)}function H$(e){return mr(e)&&Ki(e)}function su(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function N$(e){return y5(e,Pm(e))}function j$(e,t,o,n,r,i,l){var a=su(e,o),s=su(t,o),c=l.get(s);if(c){au(e,o,c);return}var d=i?i(a,s,o+"",e,t,l):void 0,u=d===void 0;if(u){var p=Go(s),v=!p&&Os(s),h=!p&&!v&&Gd(s);d=s,p||v||h?Go(a)?d=a:H$(a)?d=a5(a):v?(u=!1,d=R3(s)):h?(u=!1,d=D3(s)):d=[]:t_(s)||Es(s)?(d=a,Es(a)?d=N$(a):(!Xo(a)||Hd(a))&&(d=H3(s))):u=!1}u&&(l.set(s,d),r(d,s,n,i,l),l.delete(s)),au(e,o,d)}function xb(e,t,o,n,r){e!==t&&bb(t,function(i,l){if(r||(r=new Tn),Xo(i))j$(e,t,l,o,xb,n,r);else{var a=n?n(su(e,l),i,l+"",e,t,r):void 0;a===void 0&&(a=i),au(e,l,a)}},Pm)}function W$(e,t){var o=-1,n=Ki(e)?Array(e.length):[];return F$(e,function(r,i,l){n[++o]=t(r,i,l)}),n}function V$(e,t){var o=Go(e)?am:W$;return o(e,E$(t))}var U$=m3(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),ta=R5(function(e,t,o){xb(e,t,o)}),K$="Expected a function";function q$(e,t,o){var n=!0,r=!0;if(typeof e!="function")throw new TypeError(K$);return Xo(o)&&(n="leading"in o?!!o.leading:n,r="trailing"in o?!!o.trailing:r),D$(e,t,{leading:n,maxWait:t,trailing:r})}function xr(e){const{mergedLocaleRef:t,mergedDateLocaleRef:o}=Be(sn,null)||{},n=E(()=>{var i,l;return(l=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&l!==void 0?l:Kk[e]});return{dateLocaleRef:E(()=>{var i;return(i=o==null?void 0:o.value)!==null&&i!==void 0?i:kR}),localeRef:n}}const Gi="naive-ui-style";function Xt(e,t,o){if(!t)return;const n=hr(),r=E(()=>{const{value:a}=t;if(!a)return;const s=a[e];if(s)return s}),i=Be(sn,null),l=()=>{Lt(()=>{const{value:a}=o,s=`${a}${e}Rtl`;if(d2(s,n))return;const{value:c}=r;c&&c.style.mount({id:s,head:!0,anchorMetaName:Gi,props:{bPrefix:a?`.${a}-`:void 0},ssr:n,parent:i==null?void 0:i.styleMountTarget})})};return n?l():Nn(l),r}const yr={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:G$,fontFamily:X$,lineHeight:Y$}=yr,yb=V("body",`
|
|
46
46
|
margin: 0;
|
|
@@ -52,7 +52,7 @@ ${t}
|
|
|
52
52
|
`,[V("input",`
|
|
53
53
|
font-family: inherit;
|
|
54
54
|
font-size: inherit;
|
|
55
|
-
`)]);function oi(e,t,o){if(!t)return;const n=hr(),r=Be(sn,null),i=()=>{const l=o.value;t.mount({id:l===void 0?e:l+e,head:!0,anchorMetaName:Gi,props:{bPrefix:l?`.${l}-`:void 0},ssr:n,parent:r==null?void 0:r.styleMountTarget}),r!=null&&r.preflightStyleDisabled||yb.mount({id:"n-global",head:!0,anchorMetaName:Gi,ssr:n,parent:r==null?void 0:r.styleMountTarget})};n?i():Nn(i)}function
|
|
55
|
+
`)]);function oi(e,t,o){if(!t)return;const n=hr(),r=Be(sn,null),i=()=>{const l=o.value;t.mount({id:l===void 0?e:l+e,head:!0,anchorMetaName:Gi,props:{bPrefix:l?`.${l}-`:void 0},ssr:n,parent:r==null?void 0:r.styleMountTarget}),r!=null&&r.preflightStyleDisabled||yb.mount({id:"n-global",head:!0,anchorMetaName:Gi,ssr:n,parent:r==null?void 0:r.styleMountTarget})};n?i():Nn(i)}function eH(e){return e}function We(e,t,o,n,r,i){const l=hr(),a=Be(sn,null);if(o){const c=()=>{const d=i==null?void 0:i.value;o.mount({id:d===void 0?t:d+t,head:!0,props:{bPrefix:d?`.${d}-`:void 0},anchorMetaName:Gi,ssr:l,parent:a==null?void 0:a.styleMountTarget}),a!=null&&a.preflightStyleDisabled||yb.mount({id:"n-global",head:!0,anchorMetaName:Gi,ssr:l,parent:a==null?void 0:a.styleMountTarget})};l?c():Nn(c)}return E(()=>{var c;const{theme:{common:d,self:u,peers:p={}}={},themeOverrides:v={},builtinThemeOverrides:h={}}=r,{common:g,peers:b}=v,{common:m=void 0,[e]:{common:x=void 0,self:S=void 0,peers:C={}}={}}=(a==null?void 0:a.mergedThemeRef.value)||{},{common:y=void 0,[e]:R={}}=(a==null?void 0:a.mergedThemeOverridesRef.value)||{},{common:P,peers:w={}}=R,_=ta({},d||x||m||n.common,y,P,g),B=ta((c=u||S||n.self)===null||c===void 0?void 0:c(_),h,R,v);return{common:_,self:B,peers:ta({},n.peers,C,p),peerOverrides:ta({},h.peers,w,b)}})}We.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const J$=$("base-icon",`
|
|
56
56
|
height: 1em;
|
|
57
57
|
width: 1em;
|
|
58
58
|
line-height: 1em;
|
|
@@ -1067,7 +1067,7 @@ ${t}
|
|
|
1067
1067
|
`)])])]))]),BT=$("input",[X("disabled",[q("input-el, textarea-el",`
|
|
1068
1068
|
-webkit-text-fill-color: var(--n-text-color-disabled);
|
|
1069
1069
|
`)])]);function LT(e){let t=0;for(const o of e)t++;return t}function Ws(e){return e===""||e==null}function DT(e){const t=L(null);function o(){const{value:i}=e;if(!(i!=null&&i.focus)){r();return}const{selectionStart:l,selectionEnd:a,value:s}=i;if(l==null||a==null){r();return}t.value={start:l,end:a,beforeText:s.slice(0,l),afterText:s.slice(a)}}function n(){var i;const{value:l}=t,{value:a}=e;if(!l||!a)return;const{value:s}=a,{start:c,beforeText:d,afterText:u}=l;let p=s.length;if(s.endsWith(u))p=s.length-u.length;else if(s.startsWith(d))p=d.length;else{const v=d[c-1],h=s.indexOf(v,c-1);h!==-1&&(p=h+1)}(i=a.setSelectionRange)===null||i===void 0||i.call(a,p,p)}function r(){t.value=null}return Ze(e,r),{recordCursor:o,restoreCursor:n}}const a0=ge({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:o,maxlengthRef:n,mergedClsPrefixRef:r,countGraphemesRef:i}=Be(l0),l=E(()=>{const{value:a}=o;return a===null||Array.isArray(a)?0:(i.value||LT)(a)});return()=>{const{value:a}=n,{value:s}=o;return f("span",{class:`${r.value}-input-word-count`},Uk(t.default,{value:s===null||Array.isArray(s)?"":s},()=>[a===void 0?l.value:`${l.value} / ${a}`]))}}}),HT=Object.assign(Object.assign({},We.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),qt=ge({name:"Input",props:HT,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,inlineThemeDisabled:n,mergedRtlRef:r,mergedComponentPropsRef:i}=nt(e),l=We("Input","-input",MT,xu,e,t);r0&&oi("-input-safari",BT,t);const a=L(null),s=L(null),c=L(null),d=L(null),u=L(null),p=L(null),v=L(null),h=DT(v),g=L(null),{localeRef:b}=xr("Input"),m=L(e.defaultValue),S=Ht(_e(e,"value"),m),C=$n(e,{mergedSize:de=>{var $e,Xe;const{size:rt}=e;if(rt)return rt;const{mergedSize:st}=de||{};if(st!=null&&st.value)return st.value;const pt=(Xe=($e=i==null?void 0:i.value)===null||$e===void 0?void 0:$e.Input)===null||Xe===void 0?void 0:Xe.size;return pt||"medium"}}),{mergedSizeRef:y,mergedDisabledRef:R,mergedStatusRef:P}=C,w=L(!1),_=L(!1),B=L(!1),z=L(!1);let O=null;const A=E(()=>{const{placeholder:de,pair:$e}=e;return $e?Array.isArray(de)?de:de===void 0?["",""]:[de,de]:de===void 0?[b.value.placeholder]:[de]}),U=E(()=>{const{value:de}=B,{value:$e}=S,{value:Xe}=A;return!de&&(Ws($e)||Array.isArray($e)&&Ws($e[0]))&&Xe[0]}),W=E(()=>{const{value:de}=B,{value:$e}=S,{value:Xe}=A;return!de&&Xe[1]&&(Ws($e)||Array.isArray($e)&&Ws($e[1]))}),F=bt(()=>e.internalForceFocus||w.value),T=bt(()=>{if(R.value||e.readonly||!e.clearable||!F.value&&!_.value)return!1;const{value:de}=S,{value:$e}=F;return e.pair?!!(Array.isArray(de)&&(de[0]||de[1]))&&(_.value||$e):!!de&&(_.value||$e)}),k=E(()=>{const{showPasswordOn:de}=e;if(de)return de;if(e.showPasswordToggle)return"click"}),I=L(!1),Y=E(()=>{const{textDecoration:de}=e;return de?Array.isArray(de)?de.map($e=>({textDecoration:$e})):[{textDecoration:de}]:["",""]}),j=L(void 0),ee=()=>{var de,$e;if(e.type==="textarea"){const{autosize:Xe}=e;if(Xe&&(j.value=($e=(de=g.value)===null||de===void 0?void 0:de.$el)===null||$e===void 0?void 0:$e.offsetWidth),!s.value||typeof Xe=="boolean")return;const{paddingTop:rt,paddingBottom:st,lineHeight:pt}=window.getComputedStyle(s.value),jo=Number(rt.slice(0,-2)),Wo=Number(st.slice(0,-2)),fn=Number(pt.slice(0,-2)),{value:er}=c;if(!er)return;if(Xe.minRows){const tr=Math.max(Xe.minRows,1),bi=`${jo+Wo+fn*tr}px`;er.style.minHeight=bi}if(Xe.maxRows){const tr=`${jo+Wo+fn*Xe.maxRows}px`;er.style.maxHeight=tr}}},D=E(()=>{const{maxlength:de}=e;return de===void 0?void 0:Number(de)});Bt(()=>{const{value:de}=S;Array.isArray(de)||dt(de)});const M=Wn().proxy;function N(de,$e){const{onUpdateValue:Xe,"onUpdate:value":rt,onInput:st}=e,{nTriggerFormInput:pt}=C;Xe&&Pe(Xe,de,$e),rt&&Pe(rt,de,$e),st&&Pe(st,de,$e),m.value=de,pt()}function ve(de,$e){const{onChange:Xe}=e,{nTriggerFormChange:rt}=C;Xe&&Pe(Xe,de,$e),m.value=de,rt()}function J(de){const{onBlur:$e}=e,{nTriggerFormBlur:Xe}=C;$e&&Pe($e,de),Xe()}function Ce(de){const{onFocus:$e}=e,{nTriggerFormFocus:Xe}=C;$e&&Pe($e,de),Xe()}function Z(de){const{onClear:$e}=e;$e&&Pe($e,de)}function ne(de){const{onInputBlur:$e}=e;$e&&Pe($e,de)}function Ee(de){const{onInputFocus:$e}=e;$e&&Pe($e,de)}function H(){const{onDeactivate:de}=e;de&&Pe(de)}function G(){const{onActivate:de}=e;de&&Pe(de)}function le(de){const{onClick:$e}=e;$e&&Pe($e,de)}function xe(de){const{onWrapperFocus:$e}=e;$e&&Pe($e,de)}function we(de){const{onWrapperBlur:$e}=e;$e&&Pe($e,de)}function ue(){B.value=!0}function Q(de){B.value=!1,de.target===p.value?be(de,1):be(de,0)}function be(de,$e=0,Xe="input"){const rt=de.target.value;if(dt(rt),de instanceof InputEvent&&!de.isComposing&&(B.value=!1),e.type==="textarea"){const{value:pt}=g;pt&&pt.syncUnifiedContainer()}if(O=rt,B.value)return;h.recordCursor();const st=se(rt);if(st)if(!e.pair)Xe==="input"?N(rt,{source:$e}):ve(rt,{source:$e});else{let{value:pt}=S;Array.isArray(pt)?pt=[pt[0],pt[1]]:pt=["",""],pt[$e]=rt,Xe==="input"?N(pt,{source:$e}):ve(pt,{source:$e})}M.$forceUpdate(),st||$t(h.restoreCursor)}function se(de){const{countGraphemes:$e,maxlength:Xe,minlength:rt}=e;if($e){let pt;if(Xe!==void 0&&(pt===void 0&&(pt=$e(de)),pt>Number(Xe))||rt!==void 0&&(pt===void 0&&(pt=$e(de)),pt<Number(Xe)))return!1}const{allowInput:st}=e;return typeof st=="function"?st(de):!0}function ae(de){ne(de),de.relatedTarget===a.value&&H(),de.relatedTarget!==null&&(de.relatedTarget===u.value||de.relatedTarget===p.value||de.relatedTarget===s.value)||(z.value=!1),ce(de,"blur"),v.value=null}function ie(de,$e){Ee(de),w.value=!0,z.value=!0,G(),ce(de,"focus"),$e===0?v.value=u.value:$e===1?v.value=p.value:$e===2&&(v.value=s.value)}function re(de){e.passivelyActivated&&(we(de),ce(de,"blur"))}function te(de){e.passivelyActivated&&(w.value=!0,xe(de),ce(de,"focus"))}function ce(de,$e){de.relatedTarget!==null&&(de.relatedTarget===u.value||de.relatedTarget===p.value||de.relatedTarget===s.value||de.relatedTarget===a.value)||($e==="focus"?(Ce(de),w.value=!0):$e==="blur"&&(J(de),w.value=!1))}function pe(de,$e){be(de,$e,"change")}function ze(de){le(de)}function Ie(de){Z(de),je()}function je(){e.pair?(N(["",""],{source:"clear"}),ve(["",""],{source:"clear"})):(N("",{source:"clear"}),ve("",{source:"clear"}))}function Ye(de){const{onMousedown:$e}=e;$e&&$e(de);const{tagName:Xe}=de.target;if(Xe!=="INPUT"&&Xe!=="TEXTAREA"){if(e.resizable){const{value:rt}=a;if(rt){const{left:st,top:pt,width:jo,height:Wo}=rt.getBoundingClientRect(),fn=14;if(st+jo-fn<de.clientX&&de.clientX<st+jo&&pt+Wo-fn<de.clientY&&de.clientY<pt+Wo)return}}de.preventDefault(),w.value||Oe()}}function ot(){var de;_.value=!0,e.type==="textarea"&&((de=g.value)===null||de===void 0||de.handleMouseEnterWrapper())}function wt(){var de;_.value=!1,e.type==="textarea"&&((de=g.value)===null||de===void 0||de.handleMouseLeaveWrapper())}function Tt(){R.value||k.value==="click"&&(I.value=!I.value)}function zt(de){if(R.value)return;de.preventDefault();const $e=rt=>{rt.preventDefault(),ct("mouseup",document,$e)};if(yt("mouseup",document,$e),k.value!=="mousedown")return;I.value=!0;const Xe=()=>{I.value=!1,ct("mouseup",document,Xe)};yt("mouseup",document,Xe)}function Le(de){e.onKeyup&&Pe(e.onKeyup,de)}function ye(de){switch(e.onKeydown&&Pe(e.onKeydown,de),de.key){case"Escape":fe();break;case"Enter":oe(de);break}}function oe(de){var $e,Xe;if(e.passivelyActivated){const{value:rt}=z;if(rt){e.internalDeactivateOnEnter&&fe();return}de.preventDefault(),e.type==="textarea"?($e=s.value)===null||$e===void 0||$e.focus():(Xe=u.value)===null||Xe===void 0||Xe.focus()}}function fe(){e.passivelyActivated&&(z.value=!1,$t(()=>{var de;(de=a.value)===null||de===void 0||de.focus()}))}function Oe(){var de,$e,Xe;R.value||(e.passivelyActivated?(de=a.value)===null||de===void 0||de.focus():(($e=s.value)===null||$e===void 0||$e.focus(),(Xe=u.value)===null||Xe===void 0||Xe.focus()))}function Ne(){var de;!((de=a.value)===null||de===void 0)&&de.contains(document.activeElement)&&document.activeElement.blur()}function Ae(){var de,$e;(de=s.value)===null||de===void 0||de.select(),($e=u.value)===null||$e===void 0||$e.select()}function De(){R.value||(s.value?s.value.focus():u.value&&u.value.focus())}function Me(){const{value:de}=a;de!=null&&de.contains(document.activeElement)&&de!==document.activeElement&&fe()}function qe(de){if(e.type==="textarea"){const{value:$e}=s;$e==null||$e.scrollTo(de)}else{const{value:$e}=u;$e==null||$e.scrollTo(de)}}function dt(de){const{type:$e,pair:Xe,autosize:rt}=e;if(!Xe&&rt)if($e==="textarea"){const{value:st}=c;st&&(st.textContent=`${de??""}\r
|
|
1070
|
-
`)}else{const{value:st}=d;st&&(de?st.textContent=de:st.innerHTML=" ")}}function mo(){ee()}const oo=L({top:"0"});function bo(de){var $e;const{scrollTop:Xe}=de.target;oo.value.top=`${-Xe}px`,($e=g.value)===null||$e===void 0||$e.syncUnifiedContainer()}let eo=null;Lt(()=>{const{autosize:de,type:$e}=e;de&&$e==="textarea"?eo=Ze(S,Xe=>{!Array.isArray(Xe)&&Xe!==O&&dt(Xe)}):eo==null||eo()});let xo=null;Lt(()=>{e.type==="textarea"?xo=Ze(S,de=>{var $e;!Array.isArray(de)&&de!==O&&(($e=g.value)===null||$e===void 0||$e.syncUnifiedContainer())}):xo==null||xo()}),tt(l0,{mergedValueRef:S,maxlengthRef:D,mergedClsPrefixRef:t,countGraphemesRef:_e(e,"countGraphemes")});const No={wrapperElRef:a,inputElRef:u,textareaElRef:s,isCompositing:B,clear:je,focus:Oe,blur:Ne,select:Ae,deactivate:Me,activate:De,scrollTo:qe},yo=Xt("Input",r,t),_o=E(()=>{const{value:de}=y,{common:{cubicBezierEaseInOut:$e},self:{color:Xe,borderRadius:rt,textColor:st,caretColor:pt,caretColorError:jo,caretColorWarning:Wo,textDecorationColor:fn,border:er,borderDisabled:tr,borderHover:bi,borderFocus:fa,placeholderColor:ha,placeholderColorDisabled:pa,lineHeightTextarea:va,colorDisabled:Or,colorFocus:Ir,textColorDisabled:pf,boxShadowFocus:vf,iconSize:gf,colorFocusWarning:mf,boxShadowFocusWarning:bf,borderWarning:xf,borderFocusWarning:yf,borderHoverWarning:Cf,colorFocusError:wf,boxShadowFocusError:Sf,borderError:kf,borderFocusError:Rf,borderHoverError:Pf,clearSize:_f,clearColor:$f,clearColorHover:Tf,clearColorPressed:w7,iconColor:S7,iconColorDisabled:k7,suffixTextColor:R7,countTextColor:P7,countTextColorDisabled:_7,iconColorHover:$7,iconColorPressed:T7,loadingColor:z7,loadingColorError:E7,loadingColorWarning:O7,fontWeight:I7,[ke("padding",de)]:A7,[ke("fontSize",de)]:F7,[ke("height",de)]:M7}}=l.value,{left:B7,right:L7}=Gt(A7);return{"--n-bezier":$e,"--n-count-text-color":P7,"--n-count-text-color-disabled":_7,"--n-color":Xe,"--n-font-size":F7,"--n-font-weight":I7,"--n-border-radius":rt,"--n-height":M7,"--n-padding-left":B7,"--n-padding-right":L7,"--n-text-color":st,"--n-caret-color":pt,"--n-text-decoration-color":fn,"--n-border":er,"--n-border-disabled":tr,"--n-border-hover":bi,"--n-border-focus":fa,"--n-placeholder-color":ha,"--n-placeholder-color-disabled":pa,"--n-icon-size":gf,"--n-line-height-textarea":va,"--n-color-disabled":Or,"--n-color-focus":Ir,"--n-text-color-disabled":pf,"--n-box-shadow-focus":vf,"--n-loading-color":z7,"--n-caret-color-warning":Wo,"--n-color-focus-warning":mf,"--n-box-shadow-focus-warning":bf,"--n-border-warning":xf,"--n-border-focus-warning":yf,"--n-border-hover-warning":Cf,"--n-loading-color-warning":O7,"--n-caret-color-error":jo,"--n-color-focus-error":wf,"--n-box-shadow-focus-error":Sf,"--n-border-error":kf,"--n-border-focus-error":Rf,"--n-border-hover-error":Pf,"--n-loading-color-error":E7,"--n-clear-color":$f,"--n-clear-size":_f,"--n-clear-color-hover":Tf,"--n-clear-color-pressed":w7,"--n-icon-color":S7,"--n-icon-color-hover":$7,"--n-icon-color-pressed":T7,"--n-icon-color-disabled":k7,"--n-suffix-text-color":R7}}),no=n?xt("input",E(()=>{const{value:de}=y;return de[0]}),_o,e):void 0;return Object.assign(Object.assign({},No),{wrapperElRef:a,inputElRef:u,inputMirrorElRef:d,inputEl2Ref:p,textareaElRef:s,textareaMirrorElRef:c,textareaScrollbarInstRef:g,rtlEnabled:yo,uncontrolledValue:m,mergedValue:S,passwordVisible:I,mergedPlaceholder:A,showPlaceholder1:U,showPlaceholder2:W,mergedFocus:F,isComposing:B,activated:z,showClearButton:T,mergedSize:y,mergedDisabled:R,textDecorationStyle:Y,mergedClsPrefix:t,mergedBordered:o,mergedShowPasswordOn:k,placeholderStyle:oo,mergedStatus:P,textAreaScrollContainerWidth:j,handleTextAreaScroll:bo,handleCompositionStart:ue,handleCompositionEnd:Q,handleInput:be,handleInputBlur:ae,handleInputFocus:ie,handleWrapperBlur:re,handleWrapperFocus:te,handleMouseEnter:ot,handleMouseLeave:wt,handleMouseDown:Ye,handleChange:pe,handleClick:ze,handleClear:Ie,handlePasswordToggleClick:Tt,handlePasswordToggleMousedown:zt,handleWrapperKeydown:ye,handleWrapperKeyup:Le,handleTextAreaMirrorResize:mo,getTextareaScrollContainer:()=>s.value,mergedTheme:l,cssVars:n?void 0:_o,themeClass:no==null?void 0:no.themeClass,onRender:no==null?void 0:no.onRender})},render(){var e,t,o,n,r,i,l;const{mergedClsPrefix:a,mergedStatus:s,themeClass:c,type:d,countGraphemes:u,onRender:p}=this,v=this.$slots;return p==null||p(),f("div",{ref:"wrapperElRef",class:[`${a}-input`,`${a}-input--${this.mergedSize}-size`,c,s&&`${a}-input--${s}-status`,{[`${a}-input--rtl`]:this.rtlEnabled,[`${a}-input--disabled`]:this.mergedDisabled,[`${a}-input--textarea`]:d==="textarea",[`${a}-input--resizable`]:this.resizable&&!this.autosize,[`${a}-input--autosize`]:this.autosize,[`${a}-input--round`]:this.round&&d!=="textarea",[`${a}-input--pair`]:this.pair,[`${a}-input--focus`]:this.mergedFocus,[`${a}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},f("div",{class:`${a}-input-wrapper`},vt(v.prefix,h=>h&&f("div",{class:`${a}-input__prefix`},h)),d==="textarea"?f(Zn,{ref:"textareaScrollbarInstRef",class:`${a}-input__textarea`,container:this.getTextareaScrollContainer,theme:(t=(e=this.theme)===null||e===void 0?void 0:e.peers)===null||t===void 0?void 0:t.Scrollbar,themeOverrides:(n=(o=this.themeOverrides)===null||o===void 0?void 0:o.peers)===null||n===void 0?void 0:n.Scrollbar,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var h,g;const{textAreaScrollContainerWidth:b}=this,m={width:this.autosize&&b&&`${b}px`};return f(Ue,null,f("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${a}-input__textarea-el`,(h=this.inputProps)===null||h===void 0?void 0:h.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:u?void 0:this.maxlength,minlength:u?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(g=this.inputProps)===null||g===void 0?void 0:g.style,m],onBlur:this.handleInputBlur,onFocus:x=>{this.handleInputFocus(x,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?f("div",{class:`${a}-input__placeholder`,style:[this.placeholderStyle,m],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?f(_n,{onResize:this.handleTextAreaMirrorResize},{default:()=>f("div",{ref:"textareaMirrorElRef",class:`${a}-input__textarea-mirror`,key:"mirror"})}):null)}}):f("div",{class:`${a}-input__input`},f("input",Object.assign({type:d==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":d},this.inputProps,{ref:"inputElRef",class:[`${a}-input__input-el`,(r=this.inputProps)===null||r===void 0?void 0:r.class],style:[this.textDecorationStyle[0],(i=this.inputProps)===null||i===void 0?void 0:i.style],tabindex:this.passivelyActivated&&!this.activated?-1:(l=this.inputProps)===null||l===void 0?void 0:l.tabindex,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:u?void 0:this.maxlength,minlength:u?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:h=>{this.handleInputFocus(h,0)},onInput:h=>{this.handleInput(h,0)},onChange:h=>{this.handleChange(h,0)}})),this.showPlaceholder1?f("div",{class:`${a}-input__placeholder`},f("span",null,this.mergedPlaceholder[0])):null,this.autosize?f("div",{class:`${a}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&vt(v.suffix,h=>h||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?f("div",{class:`${a}-input__suffix`},[vt(v["clear-icon-placeholder"],g=>(this.clearable||g)&&f(cu,{clsPrefix:a,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>g,icon:()=>{var b,m;return(m=(b=this.$slots)["clear-icon"])===null||m===void 0?void 0:m.call(b)}})),this.internalLoadingBeforeSuffix?null:h,this.loading!==void 0?f(Qb,{clsPrefix:a,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?h:null,this.showCount&&this.type!=="textarea"?f(a0,null,{default:g=>{var b;const{renderCount:m}=this;return m?m(g):(b=v.count)===null||b===void 0?void 0:b.call(v,g)}}):null,this.mergedShowPasswordOn&&this.type==="password"?f("div",{class:`${a}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?po(v["password-visible-icon"],()=>[f(at,{clsPrefix:a},{default:()=>f(Pb,null)})]):po(v["password-invisible-icon"],()=>[f(at,{clsPrefix:a},{default:()=>f(l4,null)})])):null]):null)),this.pair?f("span",{class:`${a}-input__separator`},po(v.separator,()=>[this.separator])):null,this.pair?f("div",{class:`${a}-input-wrapper`},f("div",{class:`${a}-input__input`},f("input",{ref:"inputEl2Ref",type:this.type,class:`${a}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:u?void 0:this.maxlength,minlength:u?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:h=>{this.handleInputFocus(h,1)},onInput:h=>{this.handleInput(h,1)},onChange:h=>{this.handleChange(h,1)}}),this.showPlaceholder2?f("div",{class:`${a}-input__placeholder`},f("span",null,this.mergedPlaceholder[1])):null),vt(v.suffix,h=>(this.clearable||h)&&f("div",{class:`${a}-input__suffix`},[this.clearable&&f(cu,{clsPrefix:a,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var g;return(g=v["clear-icon"])===null||g===void 0?void 0:g.call(v)},placeholder:()=>{var g;return(g=v["clear-icon-placeholder"])===null||g===void 0?void 0:g.call(v)}}),h]))):null,this.mergedBordered?f("div",{class:`${a}-input__border`}):null,this.mergedBordered?f("div",{class:`${a}-input__state-border`}):null,this.showCount&&d==="textarea"?f(a0,null,{default:h=>{var g;const{renderCount:b}=this;return b?b(h):(g=v.count)===null||g===void 0?void 0:g.call(v,h)}}):null)}});function Vs(e){return e.type==="group"}function s0(e){return e.type==="ignored"}function yu(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function Cu(e,t){return{getIsGroup:Vs,getIgnored:s0,getKey(n){return Vs(n)?n.name||n.key||"key-required":n[e]},getChildren(n){return n[t]}}}function NT(e,t,o,n){if(!t)return e;function r(i){if(!Array.isArray(i))return[];const l=[];for(const a of i)if(Vs(a)){const s=r(a[n]);s.length&&l.push(Object.assign({},a,{[n]:s}))}else{if(s0(a))continue;t(o,a)&&l.push(a)}return l}return r(e)}function jT(e,t,o){const n=new Map;return e.forEach(r=>{Vs(r)?r[o].forEach(i=>{n.set(i[t],i)}):n.set(r[t],r)}),n}function c0(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const WT={name:"AutoComplete",common:gt,peers:{InternalSelectMenu:js,Input:xu},self:c0},VT={name:"AutoComplete",common:Fe,peers:{InternalSelectMenu:oa,Input:Do},self:c0},UT=V([$("auto-complete",`
|
|
1070
|
+
`)}else{const{value:st}=d;st&&(de?st.textContent=de:st.innerHTML=" ")}}function mo(){ee()}const oo=L({top:"0"});function bo(de){var $e;const{scrollTop:Xe}=de.target;oo.value.top=`${-Xe}px`,($e=g.value)===null||$e===void 0||$e.syncUnifiedContainer()}let eo=null;Lt(()=>{const{autosize:de,type:$e}=e;de&&$e==="textarea"?eo=Ze(S,Xe=>{!Array.isArray(Xe)&&Xe!==O&&dt(Xe)}):eo==null||eo()});let xo=null;Lt(()=>{e.type==="textarea"?xo=Ze(S,de=>{var $e;!Array.isArray(de)&&de!==O&&(($e=g.value)===null||$e===void 0||$e.syncUnifiedContainer())}):xo==null||xo()}),tt(l0,{mergedValueRef:S,maxlengthRef:D,mergedClsPrefixRef:t,countGraphemesRef:_e(e,"countGraphemes")});const No={wrapperElRef:a,inputElRef:u,textareaElRef:s,isCompositing:B,clear:je,focus:Oe,blur:Ne,select:Ae,deactivate:Me,activate:De,scrollTo:qe},yo=Xt("Input",r,t),_o=E(()=>{const{value:de}=y,{common:{cubicBezierEaseInOut:$e},self:{color:Xe,borderRadius:rt,textColor:st,caretColor:pt,caretColorError:jo,caretColorWarning:Wo,textDecorationColor:fn,border:er,borderDisabled:tr,borderHover:bi,borderFocus:fa,placeholderColor:ha,placeholderColorDisabled:pa,lineHeightTextarea:va,colorDisabled:Or,colorFocus:Ir,textColorDisabled:pf,boxShadowFocus:vf,iconSize:gf,colorFocusWarning:mf,boxShadowFocusWarning:bf,borderWarning:xf,borderFocusWarning:yf,borderHoverWarning:Cf,colorFocusError:wf,boxShadowFocusError:Sf,borderError:kf,borderFocusError:Rf,borderHoverError:Pf,clearSize:_f,clearColor:$f,clearColorHover:Tf,clearColorPressed:S7,iconColor:k7,iconColorDisabled:R7,suffixTextColor:P7,countTextColor:_7,countTextColorDisabled:$7,iconColorHover:T7,iconColorPressed:z7,loadingColor:E7,loadingColorError:O7,loadingColorWarning:I7,fontWeight:A7,[ke("padding",de)]:F7,[ke("fontSize",de)]:M7,[ke("height",de)]:B7}}=l.value,{left:L7,right:D7}=Gt(F7);return{"--n-bezier":$e,"--n-count-text-color":_7,"--n-count-text-color-disabled":$7,"--n-color":Xe,"--n-font-size":M7,"--n-font-weight":A7,"--n-border-radius":rt,"--n-height":B7,"--n-padding-left":L7,"--n-padding-right":D7,"--n-text-color":st,"--n-caret-color":pt,"--n-text-decoration-color":fn,"--n-border":er,"--n-border-disabled":tr,"--n-border-hover":bi,"--n-border-focus":fa,"--n-placeholder-color":ha,"--n-placeholder-color-disabled":pa,"--n-icon-size":gf,"--n-line-height-textarea":va,"--n-color-disabled":Or,"--n-color-focus":Ir,"--n-text-color-disabled":pf,"--n-box-shadow-focus":vf,"--n-loading-color":E7,"--n-caret-color-warning":Wo,"--n-color-focus-warning":mf,"--n-box-shadow-focus-warning":bf,"--n-border-warning":xf,"--n-border-focus-warning":yf,"--n-border-hover-warning":Cf,"--n-loading-color-warning":I7,"--n-caret-color-error":jo,"--n-color-focus-error":wf,"--n-box-shadow-focus-error":Sf,"--n-border-error":kf,"--n-border-focus-error":Rf,"--n-border-hover-error":Pf,"--n-loading-color-error":O7,"--n-clear-color":$f,"--n-clear-size":_f,"--n-clear-color-hover":Tf,"--n-clear-color-pressed":S7,"--n-icon-color":k7,"--n-icon-color-hover":T7,"--n-icon-color-pressed":z7,"--n-icon-color-disabled":R7,"--n-suffix-text-color":P7}}),no=n?xt("input",E(()=>{const{value:de}=y;return de[0]}),_o,e):void 0;return Object.assign(Object.assign({},No),{wrapperElRef:a,inputElRef:u,inputMirrorElRef:d,inputEl2Ref:p,textareaElRef:s,textareaMirrorElRef:c,textareaScrollbarInstRef:g,rtlEnabled:yo,uncontrolledValue:m,mergedValue:S,passwordVisible:I,mergedPlaceholder:A,showPlaceholder1:U,showPlaceholder2:W,mergedFocus:F,isComposing:B,activated:z,showClearButton:T,mergedSize:y,mergedDisabled:R,textDecorationStyle:Y,mergedClsPrefix:t,mergedBordered:o,mergedShowPasswordOn:k,placeholderStyle:oo,mergedStatus:P,textAreaScrollContainerWidth:j,handleTextAreaScroll:bo,handleCompositionStart:ue,handleCompositionEnd:Q,handleInput:be,handleInputBlur:ae,handleInputFocus:ie,handleWrapperBlur:re,handleWrapperFocus:te,handleMouseEnter:ot,handleMouseLeave:wt,handleMouseDown:Ye,handleChange:pe,handleClick:ze,handleClear:Ie,handlePasswordToggleClick:Tt,handlePasswordToggleMousedown:zt,handleWrapperKeydown:ye,handleWrapperKeyup:Le,handleTextAreaMirrorResize:mo,getTextareaScrollContainer:()=>s.value,mergedTheme:l,cssVars:n?void 0:_o,themeClass:no==null?void 0:no.themeClass,onRender:no==null?void 0:no.onRender})},render(){var e,t,o,n,r,i,l;const{mergedClsPrefix:a,mergedStatus:s,themeClass:c,type:d,countGraphemes:u,onRender:p}=this,v=this.$slots;return p==null||p(),f("div",{ref:"wrapperElRef",class:[`${a}-input`,`${a}-input--${this.mergedSize}-size`,c,s&&`${a}-input--${s}-status`,{[`${a}-input--rtl`]:this.rtlEnabled,[`${a}-input--disabled`]:this.mergedDisabled,[`${a}-input--textarea`]:d==="textarea",[`${a}-input--resizable`]:this.resizable&&!this.autosize,[`${a}-input--autosize`]:this.autosize,[`${a}-input--round`]:this.round&&d!=="textarea",[`${a}-input--pair`]:this.pair,[`${a}-input--focus`]:this.mergedFocus,[`${a}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},f("div",{class:`${a}-input-wrapper`},vt(v.prefix,h=>h&&f("div",{class:`${a}-input__prefix`},h)),d==="textarea"?f(Zn,{ref:"textareaScrollbarInstRef",class:`${a}-input__textarea`,container:this.getTextareaScrollContainer,theme:(t=(e=this.theme)===null||e===void 0?void 0:e.peers)===null||t===void 0?void 0:t.Scrollbar,themeOverrides:(n=(o=this.themeOverrides)===null||o===void 0?void 0:o.peers)===null||n===void 0?void 0:n.Scrollbar,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var h,g;const{textAreaScrollContainerWidth:b}=this,m={width:this.autosize&&b&&`${b}px`};return f(Ue,null,f("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${a}-input__textarea-el`,(h=this.inputProps)===null||h===void 0?void 0:h.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:u?void 0:this.maxlength,minlength:u?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(g=this.inputProps)===null||g===void 0?void 0:g.style,m],onBlur:this.handleInputBlur,onFocus:x=>{this.handleInputFocus(x,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?f("div",{class:`${a}-input__placeholder`,style:[this.placeholderStyle,m],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?f(_n,{onResize:this.handleTextAreaMirrorResize},{default:()=>f("div",{ref:"textareaMirrorElRef",class:`${a}-input__textarea-mirror`,key:"mirror"})}):null)}}):f("div",{class:`${a}-input__input`},f("input",Object.assign({type:d==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":d},this.inputProps,{ref:"inputElRef",class:[`${a}-input__input-el`,(r=this.inputProps)===null||r===void 0?void 0:r.class],style:[this.textDecorationStyle[0],(i=this.inputProps)===null||i===void 0?void 0:i.style],tabindex:this.passivelyActivated&&!this.activated?-1:(l=this.inputProps)===null||l===void 0?void 0:l.tabindex,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:u?void 0:this.maxlength,minlength:u?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:h=>{this.handleInputFocus(h,0)},onInput:h=>{this.handleInput(h,0)},onChange:h=>{this.handleChange(h,0)}})),this.showPlaceholder1?f("div",{class:`${a}-input__placeholder`},f("span",null,this.mergedPlaceholder[0])):null,this.autosize?f("div",{class:`${a}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&vt(v.suffix,h=>h||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?f("div",{class:`${a}-input__suffix`},[vt(v["clear-icon-placeholder"],g=>(this.clearable||g)&&f(cu,{clsPrefix:a,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>g,icon:()=>{var b,m;return(m=(b=this.$slots)["clear-icon"])===null||m===void 0?void 0:m.call(b)}})),this.internalLoadingBeforeSuffix?null:h,this.loading!==void 0?f(Qb,{clsPrefix:a,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?h:null,this.showCount&&this.type!=="textarea"?f(a0,null,{default:g=>{var b;const{renderCount:m}=this;return m?m(g):(b=v.count)===null||b===void 0?void 0:b.call(v,g)}}):null,this.mergedShowPasswordOn&&this.type==="password"?f("div",{class:`${a}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?po(v["password-visible-icon"],()=>[f(at,{clsPrefix:a},{default:()=>f(Pb,null)})]):po(v["password-invisible-icon"],()=>[f(at,{clsPrefix:a},{default:()=>f(l4,null)})])):null]):null)),this.pair?f("span",{class:`${a}-input__separator`},po(v.separator,()=>[this.separator])):null,this.pair?f("div",{class:`${a}-input-wrapper`},f("div",{class:`${a}-input__input`},f("input",{ref:"inputEl2Ref",type:this.type,class:`${a}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:u?void 0:this.maxlength,minlength:u?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:h=>{this.handleInputFocus(h,1)},onInput:h=>{this.handleInput(h,1)},onChange:h=>{this.handleChange(h,1)}}),this.showPlaceholder2?f("div",{class:`${a}-input__placeholder`},f("span",null,this.mergedPlaceholder[1])):null),vt(v.suffix,h=>(this.clearable||h)&&f("div",{class:`${a}-input__suffix`},[this.clearable&&f(cu,{clsPrefix:a,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var g;return(g=v["clear-icon"])===null||g===void 0?void 0:g.call(v)},placeholder:()=>{var g;return(g=v["clear-icon-placeholder"])===null||g===void 0?void 0:g.call(v)}}),h]))):null,this.mergedBordered?f("div",{class:`${a}-input__border`}):null,this.mergedBordered?f("div",{class:`${a}-input__state-border`}):null,this.showCount&&d==="textarea"?f(a0,null,{default:h=>{var g;const{renderCount:b}=this;return b?b(h):(g=v.count)===null||g===void 0?void 0:g.call(v,h)}}):null)}});function Vs(e){return e.type==="group"}function s0(e){return e.type==="ignored"}function yu(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function Cu(e,t){return{getIsGroup:Vs,getIgnored:s0,getKey(n){return Vs(n)?n.name||n.key||"key-required":n[e]},getChildren(n){return n[t]}}}function NT(e,t,o,n){if(!t)return e;function r(i){if(!Array.isArray(i))return[];const l=[];for(const a of i)if(Vs(a)){const s=r(a[n]);s.length&&l.push(Object.assign({},a,{[n]:s}))}else{if(s0(a))continue;t(o,a)&&l.push(a)}return l}return r(e)}function jT(e,t,o){const n=new Map;return e.forEach(r=>{Vs(r)?r[o].forEach(i=>{n.set(i[t],i)}):n.set(r[t],r)}),n}function c0(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const WT={name:"AutoComplete",common:gt,peers:{InternalSelectMenu:js,Input:xu},self:c0},VT={name:"AutoComplete",common:Fe,peers:{InternalSelectMenu:oa,Input:Do},self:c0},UT=V([$("auto-complete",`
|
|
1071
1071
|
z-index: auto;
|
|
1072
1072
|
position: relative;
|
|
1073
1073
|
display: inline-flex;
|
|
@@ -3717,4 +3717,4 @@ ${o}</${n}>`}const zy="fdoc_global_auth",Ey="fdoc_global_headers",Oy="fdoc_globa
|
|
|
3717
3717
|
`)}return{currentRequest:e,currentResponse:t,sending:o,history:d,globalAuth:r,globalHeaders:i,globalCookies:l,disabledQueryKeys:a,disabledHeaderKeys:s,setGlobalAuth:g,setGlobalHeaders:b,setGlobalCookies:m,setDisabledQueryKeys:v,setDisabledHeaderKeys:h,saveCurrentToCache:u,initRequest:x,autoFill:S,toCurl:B,send:C,cancel:y,clearHistory:R,clearEndpointHistory:P,removeHistory:w,restoreFromHistory:_}});function HA(e){const t=new FormData;for(const o of e)!o.enabled||!o.key||(o.type==="file"&&o.file?t.append(o.key,o.file,o.file.name):o.type==="text"&&t.append(o.key,o.value));return t}function rl(e,t){const o={};for(const[n,r]of Object.entries(e))!n||n==="_"||t.has(n)||/^[\w!#$%&'*+\-.^`|~]+$/.test(n)&&(o[n]=r);return o}function Ay(e,t,o){if(e.type==="bearer"&&e.bearer)t.Authorization=`Bearer ${e.bearer}`;else if(e.type==="basic"&&e.basicUser){const n=btoa(`${e.basicUser}:${e.basicPass??""}`);t.Authorization=`Basic ${n}`}else e.type==="apikey"&&e.apiKeyName&&e.apiKeyValue&&(e.apiKeyIn==="query"?o[e.apiKeyName]=e.apiKeyValue:t[e.apiKeyName]=e.apiKeyValue)}function Fy(e){let t=e.url??"";const o=e.query??{},n=new URLSearchParams;for(const[i,l]of Object.entries(o))l!==""&&n.append(i,l);const r=n.toString();return r&&(t+=(t.includes("?")?"&":"?")+r),t}function My(){const e=_r(),t=Tr(),o=L(!1),n=L(null);async function r(s){const c=await a(async()=>{const p=!s.startsWith(window.location.origin)&&!1?`/proxy/${encodeURIComponent(s)}`:s,v={};for(const[b,m]of Object.entries(t.globalHeaders))b.trim()&&(v[b.trim()]=m);const h=Object.entries(t.globalCookies).filter(([b,m])=>b.trim()&&m.trim());if(h.length>0){const b=h.map(([m,x])=>`${m}=${x}`).join("; ");v.Cookie=v.Cookie?`${v.Cookie}; ${b}`:b}const g=await fetch(p,Object.keys(v).length?{headers:v}:void 0);if(!g.ok)throw new Error(`HTTP ${g.status}: ${g.statusText}`);return g.json()});return c.ok&&e.setSourceUrl(s),c}async function i(s){const c=await a(()=>new Promise((d,u)=>{const p=new FileReader;p.onload=()=>{try{d(JSON.parse(p.result))}catch{u(new Error("文件不是有效的 JSON"))}},p.onerror=()=>u(new Error("文件读取失败")),p.readAsText(s,"utf-8")}));return c.ok&&(e.setSourceUrl(null),e.setSourceName(s.name)),c}async function l(s){const c=await a(async()=>{try{return JSON.parse(s)}catch{throw new Error("粘贴内容不是有效的 JSON")}});return c.ok&&e.setSourceUrl(null),c}async function a(s){o.value=!0,n.value=null;try{const c=await s();return e.loadSpec(c),e.error?(n.value=e.error,{ok:!1,error:e.error}):{ok:!0}}catch(c){const d=c instanceof Error?c.message:String(c);return n.value=d,{ok:!1,error:d}}finally{o.value=!1}}return{loading:o,error:n,loadFromUrl:r,loadFromFile:i,loadFromText:l}}const Ot=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},NA={},jA={width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"fdoc"};function WA(e,t){return me(),Re("svg",jA,[...t[0]||(t[0]=[$l('<defs><linearGradient id="fdoc-grad" x1="0" y1="0" x2="1" y2="1"><stop stop-color="#4338ca"></stop><stop offset="1" stop-color="#2563eb"></stop></linearGradient></defs><rect width="24" height="24" rx="6" fill="url(#fdoc-grad)"></rect><path d="M6 8.5 L11 12 L6 15.5" stroke="white" stroke-width="2.3" stroke-linecap="round" stroke-linejoin="round" fill="none"></path><line x1="13.5" y1="8.5" x2="19" y2="8.5" stroke="white" stroke-width="2" stroke-linecap="round"></line><line x1="13.5" y1="12" x2="17.5" y2="12" stroke="white" stroke-width="2" stroke-linecap="round"></line><line x1="13.5" y1="15.5" x2="19" y2="15.5" stroke="white" stroke-width="2" stroke-linecap="round"></line>',6)])])}const VA=Ot(NA,[["render",WA]]),UA={class:"auth-editor"},KA={class:"auth-row auth-type-row"},qA={key:0,class:"auth-row"},GA={class:"auth-row"},XA={class:"auth-row"},YA={class:"auth-row"},JA={class:"auth-row"},ZA={class:"auth-row"},By=Ot(ge({__name:"AuthEditor",props:{modelValue:{},inheritLabel:{}},emits:["update:modelValue"],setup(e,{emit:t}){const o=e,n=t,r=E(()=>{const a=[];return o.inheritLabel&&a.push({label:o.inheritLabel,value:"inherit"}),a.push({label:"无认证",value:"none"},{label:"Bearer Token",value:"bearer"},{label:"Basic Auth",value:"basic"},{label:"API Key",value:"apikey"}),a}),i=[{label:"Header",value:"header"},{label:"Query",value:"query"}];function l(a){n("update:modelValue",{...o.modelValue,...a})}return(a,s)=>(me(),Re("div",UA,[K("div",KA,[s[7]||(s[7]=K("span",{class:"auth-label"},"认证方式",-1)),Se(he(la),{value:e.modelValue.type,options:r.value,size:"small",style:{width:"180px"},"onUpdate:value":s[0]||(s[0]=c=>l({type:c}))},null,8,["value","options"])]),e.modelValue.type==="bearer"?(me(),Re("div",qA,[s[8]||(s[8]=K("span",{class:"auth-label"},"Token",-1)),Se(he(qt),{value:e.modelValue.bearer??"",size:"small",placeholder:"Bearer token",class:"auth-input","onUpdate:value":s[1]||(s[1]=c=>l({bearer:c}))},null,8,["value"])])):et("",!0),e.modelValue.type==="basic"?(me(),Re(Ue,{key:1},[K("div",GA,[s[9]||(s[9]=K("span",{class:"auth-label"},"用户名",-1)),Se(he(qt),{value:e.modelValue.basicUser??"",size:"small",placeholder:"Username",class:"auth-input","onUpdate:value":s[2]||(s[2]=c=>l({basicUser:c}))},null,8,["value"])]),K("div",XA,[s[10]||(s[10]=K("span",{class:"auth-label"},"密码",-1)),Se(he(qt),{value:e.modelValue.basicPass??"",size:"small",type:"password","show-password-on":"click",placeholder:"Password",class:"auth-input","onUpdate:value":s[3]||(s[3]=c=>l({basicPass:c}))},null,8,["value"])])],64)):et("",!0),e.modelValue.type==="apikey"?(me(),Re(Ue,{key:2},[K("div",YA,[s[11]||(s[11]=K("span",{class:"auth-label"},"位置",-1)),Se(he(la),{value:e.modelValue.apiKeyIn??"header",options:i,size:"small",style:{width:"120px"},"onUpdate:value":s[4]||(s[4]=c=>l({apiKeyIn:c}))},null,8,["value"])]),K("div",JA,[s[12]||(s[12]=K("span",{class:"auth-label"},"Key",-1)),Se(he(qt),{value:e.modelValue.apiKeyName??"",size:"small",placeholder:"X-API-Key",class:"auth-input","onUpdate:value":s[5]||(s[5]=c=>l({apiKeyName:c}))},null,8,["value"])]),K("div",ZA,[s[13]||(s[13]=K("span",{class:"auth-label"},"Value",-1)),Se(he(qt),{value:e.modelValue.apiKeyValue??"",size:"small",placeholder:"your-api-key",class:"auth-input","onUpdate:value":s[6]||(s[6]=c=>l({apiKeyValue:c}))},null,8,["value"])])],64)):et("",!0)]))}}),[["__scopeId","data-v-e4396512"]]),QA=["width","height"],Ly=Ot(ge({__name:"DownloadButton",props:{data:{},filename:{},size:{}},setup(e){const t=e;function o(){const n=JSON.stringify(t.data,null,2),r=new Blob([n],{type:"application/json"}),i=URL.createObjectURL(r),l=document.createElement("a");l.href=i,l.download=t.filename,l.click(),URL.revokeObjectURL(i)}return(n,r)=>(me(),Re("button",{class:"download-btn",title:"下载 JSON",onClick:jr(o,["stop"])},[(me(),Re("svg",{width:e.size??14,height:e.size??14,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...r[0]||(r[0]=[K("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"},null,-1),K("polyline",{points:"7 10 12 15 17 10"},null,-1),K("line",{x1:"12",y1:"15",x2:"12",y2:"3"},null,-1)])],8,QA))]))}}),[["__scopeId","data-v-eed7ed43"]]),eF={class:"ls-wrap"},tF={class:"ls-body"},oF={class:"ls-keys"},nF={key:0,class:"ls-keys-empty"},rF=["onClick"],iF={class:"ls-key-name"},lF={key:0,class:"ls-key-badge"},aF={class:"ls-detail"},sF={class:"ls-section"},cF={class:"ls-code"},dF={class:"ls-section"},uF={key:0,class:"ls-section"},fF={class:"ls-section"},hF={key:1,class:"ls-detail-empty"},pF={class:"ls-footer"},Dy=Ot(ge({__name:"LsValuePicker",props:{show:{type:Boolean}},emits:["update:show","select"],setup(e,{emit:t}){const o=e,n=t,r=L([]),i=L(null),l=L(""),a=L(new Map),s=new Set(["fdoc_spec_cache","fdoc_spec_headers_map","fdoc_server","fdoc_spec_source_url","fdoc_global_auth","fdoc_global_headers","fdoc_global_cookies","fdoc_debug_cache","fdoc_debug_history"]);function c(){const m=[];for(let x=0;x<localStorage.length;x++){const S=localStorage.key(x);if(!S||s.has(S))continue;const C=localStorage.getItem(S)??"";let y=!1,R=null;try{const P=JSON.parse(C);P!==null&&typeof P=="object"&&(y=!0,R=P)}catch{}m.push({key:S,raw:C,isJson:y,parsed:R})}r.value=m,i.value&&!m.find(x=>x.key===i.value)&&(i.value=m.length>0?m[0].key:null)}Ze(()=>o.show,m=>{m&&(c(),i.value=r.value.length>0?r.value[0].key:null,l.value="",a.value.clear())});function d(m){i.value!==null&&a.value.set(i.value,l.value),i.value=m,l.value=a.value.get(m)??"",g.value=""}Ze(l,m=>{i.value!==null&&a.value.set(i.value,m)});const u=E(()=>r.value.find(m=>m.key===i.value)??null);function p(m,x){const S=x.replace(/\[(\d+)\]/g,".$1").split(".").filter(Boolean);let C=m;for(const y of S){if(C==null||typeof C!="object")return;C=C[y]}return C}const v=E(()=>{if(!u.value)return"";if(!u.value.isJson)return u.value.raw;if(!l.value.trim())return"";const m=p(u.value.parsed,l.value.trim());return m===void 0?"":typeof m=="object"?JSON.stringify(m,null,2):String(m)}),h=E(()=>{var m;return!((m=u.value)!=null&&m.isJson)||!l.value.trim()?"idle":v.value?"ok":"error"}),g=L("");Ze(v,m=>{u.value&&!u.value.isJson&&(g.value=m)},{immediate:!0});function b(){!g.value||h.value==="error"||(n("select",g.value),n("update:show",!1))}return(m,x)=>(me(),mt(he(el),{show:e.show,"mask-closable":!0,style:{width:"720px","max-width":"95vw"},"onUpdate:show":x[2]||(x[2]=S=>n("update:show",S))},{default:He(()=>[Se(he(ra),{title:"从 localStorage 选取值",bordered:!1,size:"small",role:"dialog"},{default:He(()=>[K("div",eF,[K("div",tF,[K("div",oF,[K("div",{class:"ls-keys-header"},[x[4]||(x[4]=K("span",{class:"ls-keys-title"},"条目列表",-1)),K("button",{class:"ls-refresh-btn",title:"刷新",onClick:c},[...x[3]||(x[3]=[K("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[K("polyline",{points:"23 4 23 10 17 10"}),K("path",{d:"M20.49 15a9 9 0 1 1-2.12-9.36L23 10"})],-1)])])]),r.value.length===0?(me(),Re("p",nF,"localStorage 无可用条目")):et("",!0),(me(!0),Re(Ue,null,To(r.value,S=>(me(),Re("button",{key:S.key,class:Pt(["ls-key-item",{"ls-key-item--active":i.value===S.key}]),onClick:C=>d(S.key)},[K("span",iF,Ve(S.key),1),S.isJson?(me(),Re("span",lF,"JSON")):et("",!0)],10,rF))),128))]),K("div",aF,[u.value?(me(),Re(Ue,{key:0},[K("div",sF,[x[5]||(x[5]=K("div",{class:"ls-section-label"},"完整值",-1)),K("pre",cF,Ve(u.value.isJson?JSON.stringify(u.value.parsed,null,2):u.value.raw),1)]),u.value.isJson?(me(),Re(Ue,{key:0},[K("div",dF,[x[6]||(x[6]=K("div",{class:"ls-section-label"},[it(" JSON 路径 "),K("span",{class:"ls-section-hint"},"例如 user.token 或 items[0].id")],-1)),Se(he(qt),{value:l.value,"onUpdate:value":x[0]||(x[0]=S=>l.value=S),size:"small",status:h.value==="error"?"error":void 0,placeholder:"输入路径以提取字段值",class:"ls-path-input"},null,8,["value","status"])]),l.value.trim()?(me(),Re("div",uF,[x[7]||(x[7]=K("div",{class:"ls-section-label"},"解析结果",-1)),K("pre",{class:Pt(["ls-code",{"ls-code--error":h.value==="error"}])},Ve(h.value==="error"?"路径不存在":v.value),3)])):et("",!0)],64)):et("",!0),K("div",fF,[x[8]||(x[8]=K("div",{class:"ls-section-label"},"待应用的值",-1)),Se(he(qt),{value:g.value,"onUpdate:value":x[1]||(x[1]=S=>g.value=S),size:"small",type:"textarea",rows:3,placeholder:u.value.isJson?h.value==="ok"?v.value:l.value.trim()?"路径不存在":"请填写 JSON 路径,或在此直接输入要应用的值":"",class:"ls-path-input"},null,8,["value","placeholder"])])],64)):(me(),Re("div",hF,"请从左侧选择一个条目"))])]),K("div",pF,[Se(he(ht),{type:"primary",size:"small",disabled:!g.value||h.value==="error",onClick:b},{default:He(()=>[...x[9]||(x[9]=[it(" 应用 ",-1)])]),_:1},8,["disabled"])])])]),_:1})]),_:1},8,["show"]))}}),[["__scopeId","data-v-086db566"]]),vF={class:"app-header"},gF={class:"header-left"},mF={key:0,class:"spec-title"},bF={class:"header-right"},xF={class:"server-wrap"},yF={class:"server-url"},CF={key:0,class:"server-desc"},wF={class:"global-auth-wrap"},SF={class:"ga-tabs"},kF={key:0,class:"ga-tab-badge"},RF={key:0,class:"ga-tab-badge"},PF={class:"ga-kv-editor"},_F={class:"doc-header-row"},$F={class:"ga-key-wrap"},TF=["onUpdate:modelValue","onFocus"],zF={key:0,class:"key-suggestions"},EF=["onMousedown"],OF=["onUpdate:modelValue"],IF=["onClick"],AF=["onClick"],FF={key:0,class:"doc-headers-empty"},MF={class:"ga-kv-editor"},BF=["onUpdate:modelValue"],LF=["onUpdate:modelValue"],DF=["onClick"],HF={key:0,class:"doc-headers-empty"},NF={class:"doc-wrap"},jF={class:"doc-meta"},WF={class:"doc-meta-row"},VF=["href","title"],UF={class:"doc-meta-value doc-meta-mono"},KF={class:"doc-meta-row"},qF={class:"doc-meta-value doc-meta-mono"},GF=["disabled"],XF=Ot(ge({__name:"AppHeader",props:{isDark:{type:Boolean}},emits:["toggleTheme"],setup(e,{emit:t}){const o=t,n=_r(),r=Tr(),{loading:i,loadFromUrl:l}=My(),a=E(()=>{if(n.specSourceUrl)try{return new URL(n.specSourceUrl).hostname}catch{return n.specSourceUrl}return n.specSourceName??null}),s=E(()=>{if(!n.loadedAt)return null;const D=n.loadedAt,M=D.getFullYear(),N=String(D.getMonth()+1).padStart(2,"0"),ve=String(D.getDate()).padStart(2,"0"),J=String(D.getHours()).padStart(2,"0"),Ce=String(D.getMinutes()).padStart(2,"0"),Z=String(D.getSeconds()).padStart(2,"0");return`${M}-${N}-${ve} ${J}:${Ce}:${Z}`});async function c(){n.specSourceUrl&&await l(n.specSourceUrl)}const d=L(!1),u=L("auth"),p=E(()=>{const D=r.globalAuth.type;return D==="bearer"?"Bearer":D==="basic"?"Basic":D==="apikey"?"API Key":"Auth"}),v=E(()=>!!(r.globalAuth.type!=="none"||Object.values(r.globalHeaders).some(D=>D)||Object.values(r.globalCookies).some(D=>D)));function h(D){r.setGlobalAuth(D)}const g=L([]);Ze(()=>r.globalHeaders,D=>{g.value=Object.entries(D).map(([M,N])=>({key:M,value:N}))},{immediate:!0});function b(){const D={};for(const{key:M,value:N}of g.value)M.trim()&&(D[M.trim()]=N);r.setGlobalHeaders(D)}function m(){g.value.push({key:"",value:""})}function x(D){g.value.splice(D,1),b()}const S=["Authorization","X-API-Key","X-Auth-Token","X-Token","X-Staff-Name","X-Real-Staff-Name","Content-Type","Accept","Accept-Language","Accept-Encoding","Cache-Control","Pragma","X-Request-ID","X-Correlation-ID","X-Trace-ID","X-User-ID","X-Tenant-ID","X-Forwarded-For","X-Real-IP","User-Agent","Referer","Origin"],C=L(null);function y(D){const M=D.trim().toLowerCase();return M?S.filter(N=>N.toLowerCase().includes(M)):S}function R(D){C.value=D}function P(){setTimeout(()=>{C.value=null},150)}function w(D,M){g.value[D].key=M,C.value=null,b()}const _=L(!1),B=L(null);function z(D){B.value=D,_.value=!0}function O(D){const M=B.value;M!==null&&(g.value[M].value=D,b())}const A=L([]);Ze(()=>r.globalCookies,D=>{A.value=Object.entries(D).map(([M,N])=>({key:M,value:N}))},{immediate:!0});function U(){const D={};for(const{key:M,value:N}of A.value)M.trim()&&(D[M.trim()]=N);r.setGlobalCookies(D)}function W(){A.value.push({key:"",value:""})}function F(D){A.value.splice(D,1),U()}function T(){const D=document.cookie;if(!D.trim())return;const M=D.split(";").map(ve=>{const J=ve.indexOf("=");return J===-1?null:{key:ve.slice(0,J).trim(),value:ve.slice(J+1).trim()}}).filter(ve=>ve!==null&&ve.key!==""),N=new Map(A.value.map(ve=>[ve.key,ve.value]));for(const{key:ve,value:J}of M)N.set(ve,J);A.value=Array.from(N.entries()).map(([ve,J])=>({key:ve,value:J})),U()}const k=E(()=>document.cookie.trim()?document.cookie.split(";").filter(D=>D.includes("=")).length:0),I=L(!1),Y=Ex(),j=L(!1);async function ee(){if(n.specSourceUrl)try{if(navigator.clipboard)await navigator.clipboard.writeText(n.specSourceUrl);else{const D=document.createElement("textarea");D.value=n.specSourceUrl,D.style.position="fixed",D.style.opacity="0",document.body.appendChild(D),D.select(),document.execCommand("copy"),document.body.removeChild(D)}Y.success("链接已复制")}catch{Y.error("复制失败")}}return(D,M)=>(me(),Re("header",vF,[K("div",gF,[Se(VA),M[12]||(M[12]=K("span",{class:"logo"},"FDOC",-1)),he(n).specTitle?(me(),Re("span",mF,Ve(he(n).specTitle),1)):et("",!0)]),K("div",bF,[he(n).servers.length>0?(me(),mt(he(Lo),{key:0,show:I.value,trigger:"manual",placement:"bottom-end","show-arrow":!0,onClickoutside:M[1]||(M[1]=N=>I.value=!1)},{trigger:He(()=>[Se(he(ht),{size:"small",quaternary:"",onClick:M[0]||(M[0]=N=>I.value=!I.value)},{default:He(()=>[...M[13]||(M[13]=[it(" 🌐 服务器 ",-1)])]),_:1})]),default:He(()=>[K("div",xF,[M[14]||(M[14]=K("div",{class:"section-title"},"服务器列表",-1)),M[15]||(M[15]=K("div",{class:"section-desc"},"后端提供的服务器列表,仅供参考",-1)),(me(!0),Re(Ue,null,To(he(n).servers,N=>(me(),Re("div",{key:N.url,class:"server-item"},[K("span",yF,Ve(N.url),1),N.description?(me(),Re("span",CF,Ve(N.description),1)):et("",!0)]))),128))])]),_:1},8,["show"])):et("",!0),he(n).groups.length>0?(me(),mt(he(Lo),{key:1,show:d.value,trigger:"manual",placement:"bottom-end","show-arrow":!0,onClickoutside:M[6]||(M[6]=()=>{_.value||(d.value=!1)})},{trigger:He(()=>[Se(he(ht),{size:"small",type:v.value?"primary":"default",quaternary:!v.value,onClick:M[2]||(M[2]=N=>d.value=!d.value)},{default:He(()=>[it(" 🔑 "+Ve(p.value),1)]),_:1},8,["type","quaternary"])]),default:He(()=>[K("div",wF,[K("div",SF,[K("button",{class:Pt(["ga-tab",{"ga-tab--active":u.value==="auth"}]),onClick:M[3]||(M[3]=N=>u.value="auth")},"认证",2),K("button",{class:Pt(["ga-tab",{"ga-tab--active":u.value==="headers"}]),onClick:M[4]||(M[4]=N=>u.value="headers")},[M[16]||(M[16]=it(" Headers ",-1)),g.value.length?(me(),Re("span",kF,Ve(g.value.length),1)):et("",!0)],2),K("button",{class:Pt(["ga-tab",{"ga-tab--active":u.value==="cookies"}]),onClick:M[5]||(M[5]=N=>u.value="cookies")},[M[17]||(M[17]=it(" Cookies ",-1)),A.value.length?(me(),Re("span",RF,Ve(A.value.length),1)):et("",!0)],2)]),u.value==="auth"?(me(),Re(Ue,{key:0},[M[18]||(M[18]=K("div",{class:"section-desc"},"适用于所有接口,接口级设置优先",-1)),Se(By,{"model-value":he(r).globalAuth,"onUpdate:modelValue":h},null,8,["model-value"])],64)):u.value==="headers"?(me(),Re(Ue,{key:1},[M[20]||(M[20]=K("div",{class:"section-desc"},"随每个请求发送的全局请求头,接口级同名 Header 优先",-1)),K("div",PF,[(me(!0),Re(Ue,null,To(g.value,(N,ve)=>(me(),Re("div",{key:ve,class:"ga-header-entry"},[K("div",_F,[K("div",$F,[Ut(K("input",{"onUpdate:modelValue":J=>N.key=J,class:"doc-hi doc-hi--key",placeholder:"Header",autocomplete:"off",onChange:b,onFocus:J=>R(ve),onBlur:P},null,40,TF),[[Ei,N.key]]),C.value===ve&&y(N.key).length>0?(me(),Re("div",zF,[(me(!0),Re(Ue,null,To(y(N.key),J=>(me(),Re("button",{key:J,class:"key-suggestion-item",onMousedown:jr(Ce=>w(ve,J),["prevent"])},Ve(J),41,EF))),128))])):et("",!0)]),Ut(K("input",{"onUpdate:modelValue":J=>N.value=J,class:"doc-hi doc-hi--val",placeholder:"Value",onChange:b},null,40,OF),[[Ei,N.value]]),K("button",{class:Pt(["doc-ls-btn",{"doc-ls-btn--active":B.value===ve&&_.value}]),title:"从 localStorage 取值",onClick:J=>z(ve)},"LS",10,IF),K("button",{class:"doc-header-del",onClick:J=>x(ve)},[...M[19]||(M[19]=[K("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round"},[K("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),K("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])],8,AF)])]))),128)),g.value.length===0?(me(),Re("p",FF,"暂无全局请求头")):et("",!0),K("button",{class:"doc-add-btn ga-add-btn",onClick:m},"+ 添加")])],64)):(me(),Re(Ue,{key:2},[M[22]||(M[22]=K("div",{class:"section-desc"},"随每个请求发送的全局 Cookie,接口级同名 Cookie 附加在后",-1)),k.value>0?(me(),Re("button",{key:0,class:"doc-add-btn ga-load-btn",onClick:T},"从当前页面加载 ("+Ve(k.value)+")",1)):et("",!0),K("div",MF,[(me(!0),Re(Ue,null,To(A.value,(N,ve)=>(me(),Re("div",{key:ve,class:"doc-header-row"},[Ut(K("input",{"onUpdate:modelValue":J=>N.key=J,class:"doc-hi doc-hi--key",placeholder:"Name",onChange:U},null,40,BF),[[Ei,N.key]]),Ut(K("input",{"onUpdate:modelValue":J=>N.value=J,class:"doc-hi doc-hi--val",placeholder:"Value",onChange:U},null,40,LF),[[Ei,N.value]]),K("button",{class:"doc-header-del",onClick:J=>F(ve)},[...M[21]||(M[21]=[K("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round"},[K("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),K("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])],8,DF)]))),128)),A.value.length===0?(me(),Re("p",HF,"暂无全局 Cookie")):et("",!0),K("button",{class:"doc-add-btn ga-add-btn",onClick:W},"+ 添加")])],64))])]),_:1},8,["show"])):et("",!0),Se(Dy,{show:_.value,"onUpdate:show":M[7]||(M[7]=N=>_.value=N),onSelect:O},null,8,["show"]),Se(he(Lo),{show:j.value,trigger:"manual",placement:"bottom-end","show-arrow":!0,onClickoutside:M[10]||(M[10]=N=>j.value=!1)},{trigger:He(()=>[Se(he(ht),{size:"small",quaternary:"",onClick:M[8]||(M[8]=N=>j.value=!j.value)},{default:He(()=>[...M[23]||(M[23]=[it(" 文档 ",-1)])]),_:1})]),default:He(()=>[K("div",NF,[he(n).rawSpec?(me(),Re(Ue,{key:0},[K("div",jF,[K("div",WF,[M[25]||(M[25]=K("span",{class:"doc-meta-label"},"来源",-1)),he(n).specSourceUrl?(me(),Re(Ue,{key:0},[K("a",{class:"doc-meta-link",href:he(n).specSourceUrl,target:"_blank",rel:"noopener",title:he(n).specSourceUrl},Ve(a.value),9,VF),K("button",{class:"doc-icon-btn",title:"复制链接",onClick:ee},[...M[24]||(M[24]=[K("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[K("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),K("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})],-1)])]),Se(Ly,{data:he(n).rawSpec,filename:`${he(n).specTitle||"openapi"}.json`,size:12},null,8,["data","filename"])],64)):(me(),Re(Ue,{key:1},[K("span",UF,Ve(a.value??"本地文件"),1),Se(Ly,{data:he(n).rawSpec,filename:`${he(n).specTitle||"openapi"}.json`,size:12},null,8,["data","filename"])],64))]),K("div",KF,[M[26]||(M[26]=K("span",{class:"doc-meta-label"},"加载时间",-1)),K("span",qF,Ve(s.value??"—"),1)])]),M[27]||(M[27]=K("div",{class:"doc-divider"},null,-1))],64)):et("",!0),K("div",{class:Pt(["doc-actions",{"doc-actions--row":he(n).specSourceUrl}])},[he(n).specSourceUrl?(me(),Re("button",{key:0,class:"doc-action-btn",disabled:he(i),onClick:c},[(me(),Re("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round",class:Pt({spin:he(i)})},[...M[28]||(M[28]=[K("polyline",{points:"23 4 23 10 17 10"},null,-1),K("path",{d:"M20.49 15a9 9 0 1 1-2.12-9.36L23 10"},null,-1)])],2)),it(" "+Ve(he(i)?"刷新中…":"重新加载"),1)],8,GF)):et("",!0),K("button",{class:"doc-action-btn",onClick:M[9]||(M[9]=N=>{j.value=!1,he(n).openImporter()})},[M[29]||(M[29]=K("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[K("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),K("polyline",{points:"17 8 12 3 7 8"}),K("line",{x1:"12",y1:"3",x2:"12",y2:"15"})],-1)),it(" "+Ve(he(n).rawSpec?"导入新文档":"导入文档"),1)])],2)])]),_:1},8,["show"]),Se(he(OI),{value:e.isDark,size:"small","onUpdate:value":M[11]||(M[11]=N=>o("toggleTheme"))},null,8,["value"])])]))}}),[["__scopeId","data-v-a3e00ef5"]]);function YF(e){const t=L(""),o=L("");let n=null;Ze(t,l=>{n&&clearTimeout(n),n=setTimeout(()=>{o.value=l.trim().toLowerCase()},300)});const r=E(()=>{const l=o.value;return l?e().map(a=>{const s=a.tag.toLowerCase().includes(l),c=a.endpoints.filter(d=>s||d.path.toLowerCase().includes(l)||(d.summary??"").toLowerCase().includes(l)||(d.operationId??"").toLowerCase().includes(l));return{...a,endpoints:c}}).filter(a=>a.endpoints.length>0):e()});function i(){t.value="",o.value=""}return{query:t,filteredGroups:r,clearSearch:i}}const JF={class:"sidebar-search"},ZF={key:0,class:"sidebar-empty"},QF={key:1,class:"sidebar-empty"},eM={key:2,class:"menu-wrap"},tM=["title"],oM={class:"info-path-row"},nM={class:"info-path"},rM={class:"info-field"},iM={class:"info-value"},lM={key:0,class:"info-field"},aM={class:"info-value"},sM={key:1,class:"info-field"},cM={class:"info-value"},dM={key:2,class:"info-field"},uM={class:"info-value"},fM={key:3,class:"info-field"},hM=Ot(ge({__name:"Sidebar",setup(e){const t=_r(),o=Av(),{query:n,filteredGroups:r}=YF(()=>t.groups),i=L(!1);function l(){i.value=!i.value}const a={GET:"#18a058",POST:"#2080f0",PUT:"#f0a020",PATCH:"#8a2be2",DELETE:"#d03050",HEAD:"#888",OPTIONS:"#888"},s=L(null),c=L(""),d=L(0),u=L(!1);let p=null;function v(y,R,P){var w;p&&(clearTimeout(p),p=null),s.value=y,c.value=R,d.value=((w=P.currentTarget.closest(".n-menu-item"))==null?void 0:w.getBoundingClientRect().top)??P.currentTarget.getBoundingClientRect().top,u.value=!0}function h(){p=setTimeout(()=>{u.value=!1},120)}function g(){p&&(clearTimeout(p),p=null)}function b(){p=setTimeout(()=>{u.value=!1},80)}function m(y,R){const P=y.operationId??y.summary??y.path,w=P!==y.path?y.path:null,_=a[y.method]??"#888";return f("span",{class:"mi-root",onMouseenter:B=>v(y,R,B),onMouseleave:h},[f("span",{class:"mi-row"},[f("span",{class:"mi-method",style:{color:_}},y.method),f("span",{class:"mi-primary",title:P},P)]),w?f("span",{class:"mi-secondary",title:w},w):null])}const x=E(()=>r.value.map(y=>({key:`group:${y.tag}`,label:y.tag,children:y.endpoints.map(R=>({key:R.id,label:()=>m(R,y.tag)}))}))),S=E(()=>r.value.map(y=>`group:${y.tag}`));function C(y){const R=String(y);R.startsWith("group:")||o.push({query:{ep:R}})}return(y,R)=>(me(),Re(Ue,null,[K("aside",{class:Pt(["sidebar",{"sidebar--collapsed":i.value}])},[i.value?et("",!0):(me(),Re(Ue,{key:0},[K("div",JF,[Se(he(qt),{value:he(n),"onUpdate:value":R[0]||(R[0]=P=>It(n)?n.value=P:null),size:"small",placeholder:"搜索接口...",clearable:""},null,8,["value"])]),Se(he(Yu),{class:"sidebar-scroll"},{default:He(()=>[he(t).groups.length===0?(me(),Re("p",ZF," 导入规范后显示接口列表 ")):he(r).length===0?(me(),Re("p",QF," 无匹配接口 ")):(me(),Re("div",eM,[Se(he(uI),{options:x.value,value:he(t).currentEndpointId,"default-expanded-keys":S.value,"root-indent":14,indent:12,"item-height":44,"onUpdate:value":C},null,8,["options","value","default-expanded-keys"])]))]),_:1})],64)),K("button",{class:"sidebar-toggle",title:i.value?"展开侧栏":"收起侧栏",onClick:l},[(me(),Re("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",style:$o({transform:i.value?"rotate(180deg)":""})},[...R[1]||(R[1]=[K("polyline",{points:"11 17 6 12 11 7"},null,-1),K("polyline",{points:"18 17 13 12 18 7"},null,-1)])],4))],8,tM)],2),Se(Jt,{name:"info-fade"},{default:He(()=>[u.value&&s.value?(me(),Re("div",{key:0,class:"ep-info-panel",style:$o({top:`${d.value}px`}),onMouseenter:g,onMouseleave:b},[K("div",oM,[K("span",{class:"info-method",style:$o({color:a[s.value.method]})},Ve(s.value.method),5),K("code",nM,Ve(s.value.path),1)]),R[7]||(R[7]=K("div",{class:"info-divider"},null,-1)),K("div",rM,[R[2]||(R[2]=K("span",{class:"info-label"},"Tag",-1)),K("span",iM,Ve(c.value),1)]),s.value.operationId?(me(),Re("div",lM,[R[3]||(R[3]=K("span",{class:"info-label"},"operationId",-1)),K("span",aM,Ve(s.value.operationId),1)])):et("",!0),s.value.summary?(me(),Re("div",sM,[R[4]||(R[4]=K("span",{class:"info-label"},"Summary",-1)),K("span",cM,Ve(s.value.summary),1)])):et("",!0),s.value.description?(me(),Re("div",dM,[R[5]||(R[5]=K("span",{class:"info-label"},"Desc",-1)),K("span",uM,Ve(s.value.description),1)])):et("",!0),s.value.deprecated?(me(),Re("div",fM,[...R[6]||(R[6]=[K("span",{class:"info-label"},"Status",-1),K("span",{class:"info-value",style:{color:"#f59e0b"}},"deprecated",-1)])])):et("",!0)],36)):et("",!0)]),_:1})],64))}}),[["__scopeId","data-v-bfbcccf4"]]),Hy=Ot(ge({__name:"MethodBadge",props:{method:{}},setup(e){const t=e;return(o,n)=>(me(),Re("span",{class:Pt(["method-badge",`method-${t.method.toLowerCase()}`])},Ve(t.method),3))}}),[["__scopeId","data-v-6bc10dbf"]]),pM=["title"],vM={key:0,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},gM={key:1,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},In=Ot(ge({__name:"CopyButton",props:{text:{}},setup(e){const t=e,o=L(!1);async function n(){try{if(navigator.clipboard)await navigator.clipboard.writeText(t.text);else{const r=document.createElement("textarea");r.value=t.text,r.style.position="fixed",r.style.opacity="0",document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r)}o.value=!0,setTimeout(()=>o.value=!1,1200)}catch{}}return(r,i)=>(me(),Re("button",{class:Pt(["copy-btn",{"copy-btn--ok":o.value}]),title:o.value?"已复制":"复制",onClick:jr(n,["stop"])},[o.value?(me(),Re("svg",gM,[...i[1]||(i[1]=[K("polyline",{points:"20 6 9 17 4 12"},null,-1)])])):(me(),Re("svg",vM,[...i[0]||(i[0]=[K("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"},null,-1),K("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"},null,-1)])]))],10,pM))}}),[["__scopeId","data-v-fc68ea39"]]),mM={class:"schema-viewer"},bM={key:0,class:"circular-hint"},xM={key:1,class:"combiner-hint"},yM={class:"combiner-label"},CM={class:"combiner-count"},wM={key:2,class:"empty-hint"},SM=Ot(ge({__name:"SchemaViewer",props:{schema:{},maxDepth:{default:5},internalDepth:{default:0}},setup(e){const t=e,o=L(!1),n=L(null),r=L("");function i(x,S){r.value=x,n.value=S,o.value=!0}function l(x){if(x._circular)return"circular";if(x._combiner){if(x._combiner==="allOf"){const C=x.type??(x.properties||s(x)?"object":"any");return C==="array"&&x.items?"array":x.enum?`${C} enum`:C}return x.properties||s(x)?"object":x._combiner}const S=x.type??"object";return S==="array"&&x.items?"array":x.enum?`${S} enum`:S}function a(x){let S={},C=[...x.required??[]];if(x._combiner&&x._subSchemas)for(const y of x._subSchemas){const R=a(y);S={...S,...R.props},C=C.concat(R.required)}return x.properties&&(S={...S,...x.properties}),{props:S,required:C}}function s(x){return x.properties?!0:x._combiner&&x._subSchemas?x._subSchemas.some(s):x.type==="array"&&x.items?s(x.items):!1}function c(x){if(x.type==="array"&&x.items)return x.items;if(x._combiner==="allOf"&&x._subSchemas){for(const S of x._subSchemas)if(S.type==="array"&&S.items)return S.items}return x}function d(x,S,C,y){const{props:R}=a(x);return Object.keys(R).length===0?[]:Object.entries(R).map(([P,w])=>{const _=`${S}.${P}`,B=c(w),z=a(B),O=C<t.maxDepth&&Object.keys(z.props).length>0?d(B,_,C+1,new Set(z.required)):void 0;return{key:_,name:P,type:l(w),required:y.has(P),description:w.description??"",schema:w,depth:C,children:O&&O.length>0?O:void 0}})}const u=E(()=>{const x=t.schema;if(x._circular)return[];const{required:S}=a(x);return d(x,"root",t.internalDepth,new Set(S))}),p=L([]);function v(x){return x.depth>0?{class:`row-depth-${Math.min(x.depth,4)}`}:{}}const h={string:"#0ea5e9",number:"#f59e0b",integer:"#f59e0b",boolean:"#8b5cf6",array:"#10b981",object:"#6366f1",allOf:"#64748b",oneOf:"#64748b",anyOf:"#64748b",circular:"#ef4444"};function g(x){const S=x.split(" ")[0];return h[S]??"#94a3b8"}function b(x){const S=x.enum,C=x.enumVarnames,y=x.enumDescriptions,R=!!(C||y),P=()=>f(io,{size:"small",bordered:!1,style:{fontSize:"11px",cursor:"pointer",color:"#64748b",backgroundColor:"#64748b18"}},()=>`enum(${S.length})`),w=()=>f("div",{style:{maxWidth:"360px",maxHeight:"280px",overflowY:"auto"}},S.map((_,B)=>{const z=[],O=JSON.stringify(_);return z.push(f("div",{style:{display:"flex",alignItems:"baseline",gap:"6px"}},[f("code",{style:{fontFamily:"var(--font-mono)",fontSize:"12px",color:"#0ea5e9",background:"var(--color-code-bg, #f1f5f9)",padding:"1px 5px",borderRadius:"3px",flexShrink:0}},O),...C!=null&&C[B]?[f("span",{style:{fontFamily:"var(--font-mono)",fontSize:"11px",color:"#8b5cf6"}},C[B])]:[]])),y!=null&&y[B]&&z.push(f("div",{style:{fontSize:"11px",color:"var(--color-text-muted, #94a3b8)",paddingLeft:"4px",marginTop:"2px",lineHeight:"1.4"}},y[B])),f("div",{style:{padding:"4px 0",borderBottom:B<S.length-1?"1px solid var(--color-border, #e2e8f0)":"none"}},z)}));if(!R){const _=S.map(B=>JSON.stringify(B)).join(" | ");return f(Lo,{trigger:"hover"},{trigger:P,default:()=>f("code",{style:{fontSize:"12px"}},_)})}return f(Lo,{trigger:"hover",placement:"bottom"},{trigger:P,default:w})}const m=E(()=>[{key:"name",title:"字段名",width:360,tree:!0,render(x){return f("span",{style:{flex:"1",minWidth:"0",overflow:"hidden"}},[f(Gs,{trigger:"hover",placement:"top-start",delay:400},{trigger:()=>f("span",{style:{fontFamily:"var(--font-mono)",fontSize:"13px",display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",...x.depth>0?{paddingLeft:`${x.depth*10}px`}:{}}},x.name),default:()=>f("span",{style:{fontFamily:"var(--font-mono)",fontSize:"12px"}},x.name)})])}},{key:"type",title:"类型",width:140,render(x){const S=x.type,C=g(S);return x.schema._circular?f("span",{style:{color:"#ef4444",fontSize:"12px"}},"⟳ 循环引用"):x.schema._combiner&&x.schema._combiner!=="allOf"?f(ht,{text:!0,size:"tiny",style:{color:C,fontFamily:"var(--font-mono)",fontSize:"12px"},onClick:()=>i(x.name,x.schema)},()=>`${S} ↗`):f(io,{size:"small",bordered:!1,style:{backgroundColor:`${C}18`,color:C,fontFamily:"var(--font-mono)",fontSize:"11px",padding:"0 6px"}},()=>S)}},{key:"required",title:"必填",width:50,align:"center",render(x){const S=x.required?"#10b981":"#d1d5db",C=x.required?"M20 6L9 17l-5-5":"M18 6L6 18M6 6l12 12";return f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:S,"stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[f("path",{d:C})])}},{key:"description",title:"描述",render(x){const S=x.description,C=[];return S&&C.push(f("span",{style:{fontSize:"13px"}},S)),x.schema.deprecated&&C.push(f(io,{size:"small",type:"warning",bordered:!1,style:{marginLeft:"6px",fontSize:"11px"}},()=>"deprecated")),x.schema.enum&&C.push(b(x.schema)),f("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"4px"}},C)}}]);return(x,S)=>{var y;const C=bC("SchemaViewer",!0);return me(),Re("div",mM,[e.schema._circular?(me(),Re("div",bM,"⟳ 循环引用")):e.schema._combiner&&e.schema._combiner!=="allOf"&&!e.schema.properties?(me(),Re("div",xM,[K("span",yM,Ve(e.schema._combiner),1),K("span",CM,"("+Ve(((y=e.schema._subSchemas)==null?void 0:y.length)??0)+" schemas)",1),(me(!0),Re(Ue,null,To(e.schema._subSchemas,(R,P)=>(me(),mt(he(ht),{key:P,size:"tiny",text:"",style:{"margin-left":"8px"},onClick:w=>i(`${e.schema._combiner}[${P}]`,R)},{default:He(()=>[it(" 查看 ["+Ve(P)+"] ",1)]),_:2},1032,["onClick"]))),128))])):u.value.length===0?(me(),Re("div",wM,"无 Schema 字段")):(me(),mt(he(Du),{key:3,columns:m.value,data:u.value,"row-key":R=>R.key,"expanded-row-keys":p.value,"row-props":v,indent:20,size:"small",pagination:!1,"onUpdate:expandedRowKeys":S[0]||(S[0]=R=>p.value=R)},null,8,["columns","data","row-key","expanded-row-keys"])),Se(he(el),{show:o.value,"onUpdate:show":S[2]||(S[2]=R=>o.value=R),style:{width:"600px","max-height":"80vh"},"mask-closable":!0},{default:He(()=>[Se(he(ra),{title:r.value,bordered:!1,size:"small",style:{"max-height":"80vh","overflow-y":"auto"}},{"header-extra":He(()=>[Se(he(ht),{text:"",size:"small",onClick:S[1]||(S[1]=R=>o.value=!1)},{default:He(()=>[...S[3]||(S[3]=[it("✕",-1)])]),_:1})]),default:He(()=>[n.value?(me(),mt(C,{key:0,schema:n.value,"max-depth":e.maxDepth,"internal-depth":0},null,8,["schema","max-depth"])):et("",!0)]),_:1},8,["title"])]),_:1},8,["show"])])}}}),[["__scopeId","data-v-bb66e54d"]]),kM={class:"pe"},RM={class:"pe-cell pe-cell--check"},PM={class:"pe-cell pe-cell--key"},_M={class:"pe-cell pe-cell--val"},$M=["onClick"],TM={class:"pe-cell pe-cell--act"},zM=["disabled","onClick"],sc=Ot(ge({__name:"ParamEditor",props:{modelValue:{},lockedKeys:{default:()=>[]},requiredKeys:{default:()=>[]},cachedDisabledKeys:{default:void 0},keySuggestions:{default:()=>[]},placeholder:{default:"value"}},emits:["update:modelValue","update:disabledKeys"],setup(e,{emit:t}){const o=e,n=t,r=L(new Set),i=L("");Ze(()=>o.modelValue,S=>{const C=Object.keys(S).sort().join(",");if(C!==i.value){if(i.value=C,o.cachedDisabledKeys){const y=new Set(o.cachedDisabledKeys),R=new Set(Object.keys(S)),P=new Set;for(const w of y)R.has(w)&&P.add(w);r.value=P}else{const y=new Set(o.requiredKeys),R=new Set;for(const P of Object.keys(S))y.has(P)||R.add(P);r.value=R}n("update:disabledKeys",[...r.value])}},{immediate:!0});const l=E(()=>{const S=new Set(o.lockedKeys);return Object.entries(o.modelValue).map(([C,y])=>({key:C,value:y,locked:S.has(C),enabled:!r.value.has(C)}))});function a(){n("update:disabledKeys",[...r.value])}function s(S,C){C?r.value.delete(S):r.value.add(S),r.value=new Set(r.value),a()}function c(S,C){n("update:modelValue",{...o.modelValue,[S]:C})}function d(S,C){const y={};for(const[R,P]of Object.entries(o.modelValue))y[R===S?C:R]=P;n("update:modelValue",y)}function u(S){const C={...o.modelValue};delete C[S],r.value.delete(S),n("update:modelValue",C)}function p(){if(v.value){let S="";for(;o.modelValue[S]!==void 0;)S=`_${S}`;n("update:modelValue",{...o.modelValue,[S]:""})}else{let S=1;for(;o.modelValue[`key${S}`]!==void 0;)S++;n("update:modelValue",{...o.modelValue,[`key${S}`]:""})}}const v=E(()=>o.keySuggestions.length>0);function h(S){const C=new Set(Object.keys(o.modelValue));C.delete(S);const y=S.replace(/^_+$/,"").toLowerCase();return o.keySuggestions.filter(R=>!C.has(R)&&(!y||R.toLowerCase().includes(y)))}const g=L(!1),b=L(null);function m(S){b.value=S,g.value=!0}function x(S){b.value!==null&&c(b.value,S)}return(S,C)=>(me(),Re("div",kM,[Se(Dy,{show:g.value,"onUpdate:show":C[0]||(C[0]=y=>g.value=y),onSelect:x},null,8,["show"]),C[4]||(C[4]=$l('<div class="pe-header" data-v-2006b456><span class="pe-hcell pe-hcell--check" data-v-2006b456></span><span class="pe-hcell pe-hcell--key" data-v-2006b456>参数名</span><span class="pe-hcell pe-hcell--eq" data-v-2006b456></span><span class="pe-hcell pe-hcell--val" data-v-2006b456>参数值</span><span class="pe-hcell pe-hcell--act" data-v-2006b456></span></div>',1)),(me(!0),Re(Ue,null,To(l.value,(y,R)=>(me(),Re("div",{key:R,class:Pt(["pe-row",{"pe-row--disabled":!y.enabled}])},[K("span",RM,[Se(he(ia),{checked:y.enabled,size:"small","onUpdate:checked":P=>s(y.key,P)},null,8,["checked","onUpdate:checked"])]),K("span",PM,[v.value&&!y.locked?(me(),mt(he(GT),{key:0,value:/^_*$/.test(y.key)?"":y.key,size:"small",clearable:"",options:h(y.key).map(P=>({label:P,value:P})),placeholder:"输入或选择 header","get-show":()=>!0,class:"pe-input pe-autocomplete","onUpdate:value":P=>d(y.key,P),onSelect:P=>d(y.key,P)},null,8,["value","options","onUpdate:value","onSelect"])):(me(),mt(he(qt),{key:1,value:y.key,size:"tiny",bordered:!1,readonly:y.locked,clearable:"",placeholder:"key",class:"pe-input","onUpdate:value":P=>d(y.key,P)},null,8,["value","readonly","onUpdate:value"]))]),C[2]||(C[2]=K("span",{class:"pe-cell pe-cell--eq"},"=",-1)),K("span",_M,[Se(he(qt),{value:y.value,size:"tiny",bordered:!1,clearable:"",placeholder:e.placeholder,class:"pe-input","onUpdate:value":P=>c(y.key,P)},null,8,["value","placeholder","onUpdate:value"]),v.value?(me(),Re("button",{key:0,class:Pt(["pe-ls-btn",{"pe-ls-btn--active":b.value===y.key&&g.value}]),title:"从 localStorage 取值",onClick:jr(P=>m(y.key),["stop"])},"LS",10,$M)):et("",!0)]),K("span",TM,[K("button",{class:"pe-del",disabled:y.locked,onClick:P=>u(y.key)},[...C[1]||(C[1]=[$l('<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-2006b456><polyline points="3 6 5 6 21 6" data-v-2006b456></polyline><path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6" data-v-2006b456></path><path d="M10 11v6" data-v-2006b456></path><path d="M14 11v6" data-v-2006b456></path><path d="M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2" data-v-2006b456></path></svg>',1)])],8,zM)])],2))),128)),K("div",{class:"pe-add",onClick:p},[...C[3]||(C[3]=[K("svg",{class:"pe-add-icon",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[K("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),K("line",{x1:"5",y1:"12",x2:"19",y2:"12"})],-1),K("span",null,"添加参数",-1)])])]))}}),[["__scopeId","data-v-2006b456"]]);function zr(e){try{return JSON.stringify(e,null,2)}catch{return String(e)}}function EM(e){try{return JSON.parse(e),!0}catch{return!1}}const OM={class:"jbe"},IM={class:"jbe-toolbar"},AM={class:"jbe-wrap"},FM=Ot(ge({__name:"JsonBodyEditor",props:{modelValue:{default:null},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=_i(e,"modelValue");function o(){if(t.value)try{t.value=zr(JSON.parse(t.value))}catch{}}const n=()=>!t.value||EM(t.value);return(r,i)=>(me(),Re("div",OM,[K("div",IM,[K("span",{class:Pt(["jbe-hint",{"jbe-hint--err":!n()}])},Ve(n()?"application/json":"⚠ JSON 格式错误"),3),Se(he(ht),{size:"tiny",text:"",onClick:o},{default:He(()=>[...i[1]||(i[1]=[it("格式化",-1)])]),_:1})]),K("div",AM,[Se(he(qt),{value:t.value,"onUpdate:value":i[0]||(i[0]=l=>t.value=l),type:"textarea",placeholder:'{ "key": "value" }',rows:10,bordered:!1,status:n()?void 0:"error",class:"jbe-textarea"},null,8,["value","status"])])]))}}),[["__scopeId","data-v-4eb0272b"]]),MM=ge({__name:"FormBodyEditor",props:{modelValue:{default:null},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=_i(e,"modelValue"),o=E({get(){const n={};if(!t.value)return n;try{new URLSearchParams(t.value).forEach((r,i)=>{n[i]=r})}catch{}return n},set(n){const r=new URLSearchParams(n);t.value=r.toString()||null}});return(n,r)=>(me(),mt(sc,{modelValue:o.value,"onUpdate:modelValue":r[0]||(r[0]=i=>o.value=i),placeholder:"value"},null,8,["modelValue"]))}}),BM={class:"mp"},LM={class:"mp-cell mp-cell--check"},DM={class:"mp-cell mp-cell--key"},HM={class:"mp-cell mp-cell--type"},NM={class:"mp-cell mp-cell--val"},jM={key:1,class:"mp-file-row"},WM={class:"mp-cell mp-cell--act"},VM=["onClick"],UM={class:"mp-footer"},KM={key:0,class:"mp-stats"},qM=Ot(ge({__name:"MultipartEditor",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const o=e,n=t,r=[{label:"Text",value:"text"},{label:"File",value:"file"}];function i(){return crypto.randomUUID().slice(0,8)}function l(h,g){n("update:modelValue",o.modelValue.map(b=>b.id===h?{...b,...g}:b))}function a(h){n("update:modelValue",o.modelValue.filter(g=>g.id!==h))}function s(){n("update:modelValue",[...o.modelValue,{id:i(),key:"",type:"text",value:"",enabled:!0}])}function c(){n("update:modelValue",[...o.modelValue,{id:i(),key:"",type:"file",value:"",file:null,enabled:!0}])}function d(h,g){var m;const b=((m=g.fileList[0])==null?void 0:m.file)??null;l(h,{file:b,value:(b==null?void 0:b.name)??""})}const u=h=>h?`${(h.size/1024).toFixed(1)} KB`:"",p=E(()=>o.modelValue.filter(h=>h.enabled).length),v=E(()=>o.modelValue.length);return(h,g)=>(me(),Re("div",BM,[g[4]||(g[4]=$l('<div class="mp-header" data-v-dac4ff7c><span class="mp-hcell mp-hcell--check" data-v-dac4ff7c></span><span class="mp-hcell mp-hcell--key" data-v-dac4ff7c>字段名</span><span class="mp-hcell mp-hcell--type" data-v-dac4ff7c>类型</span><span class="mp-hcell mp-hcell--val" data-v-dac4ff7c>值</span><span class="mp-hcell mp-hcell--act" data-v-dac4ff7c></span></div>',1)),(me(!0),Re(Ue,null,To(e.modelValue,b=>(me(),Re("div",{key:b.id,class:Pt(["mp-row",{"mp-row--disabled":!b.enabled}])},[K("span",LM,[Se(he(ia),{checked:b.enabled,size:"small","onUpdate:checked":m=>l(b.id,{enabled:m})},null,8,["checked","onUpdate:checked"])]),K("span",DM,[Se(he(qt),{value:b.key,size:"tiny",bordered:!1,placeholder:"field name",class:"mp-input","onUpdate:value":m=>l(b.id,{key:m})},null,8,["value","onUpdate:value"])]),K("span",HM,[Se(he(la),{value:b.type,size:"tiny",options:r,bordered:!1,style:{width:"72px"},"onUpdate:value":m=>l(b.id,{type:m,value:"",file:null})},null,8,["value","onUpdate:value"])]),K("span",NM,[b.type==="text"?(me(),mt(he(qt),{key:0,value:b.value,size:"tiny",bordered:!1,placeholder:"value",class:"mp-input","onUpdate:value":m=>l(b.id,{value:m})},null,8,["value","onUpdate:value"])):(me(),Re("div",jM,[Se(he(oA),{max:1,"default-upload":!1,"show-file-list":!1,onChange:m=>d(b.id,m)},{default:He(()=>[Se(he(ht),{size:"tiny",quaternary:"",class:"mp-file-btn"},{default:He(()=>[it(Ve(b.file?b.file.name:"选择文件..."),1)]),_:2},1024)]),_:2},1032,["onChange"]),b.file?(me(),mt(he(io),{key:0,size:"small",bordered:!1,class:"mp-file-size"},{default:He(()=>[it(Ve(u(b.file)),1)]),_:2},1024)):et("",!0)]))]),K("span",WM,[K("button",{class:"mp-del",onClick:m=>a(b.id)},[...g[0]||(g[0]=[$l('<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-dac4ff7c><polyline points="3 6 5 6 21 6" data-v-dac4ff7c></polyline><path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6" data-v-dac4ff7c></path><path d="M10 11v6" data-v-dac4ff7c></path><path d="M14 11v6" data-v-dac4ff7c></path><path d="M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2" data-v-dac4ff7c></path></svg>',1)])],8,VM)])],2))),128)),K("div",UM,[K("div",{class:"mp-add-btns"},[K("span",{class:"mp-add",onClick:s},[...g[1]||(g[1]=[K("svg",{class:"mp-add-icon",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[K("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),K("line",{x1:"5",y1:"12",x2:"19",y2:"12"})],-1),it(" 文本字段 ",-1)])]),g[3]||(g[3]=K("span",{class:"mp-divider"},null,-1)),K("span",{class:"mp-add",onClick:c},[...g[2]||(g[2]=[K("svg",{class:"mp-add-icon",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[K("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),K("line",{x1:"5",y1:"12",x2:"19",y2:"12"})],-1),it(" 文件字段 ",-1)])])]),v.value?(me(),Re("span",KM,Ve(p.value)+"/"+Ve(v.value)+" 已启用 ",1)):et("",!0)])]))}}),[["__scopeId","data-v-dac4ff7c"]]),GM=ge({__name:"RawBodyEditor",props:{modelValue:{default:null},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=_i(e,"modelValue");return(o,n)=>(me(),mt(he(qt),{value:t.value,"onUpdate:value":n[0]||(n[0]=r=>t.value=r),type:"textarea",placeholder:"请求体内容...",rows:10,style:{fontFamily:"var(--font-mono)",fontSize:"12.5px"}},null,8,["value"]))}}),XM={class:"xbe"},YM={class:"xbe-toolbar"},JM={class:"xbe-wrap"},ZM=Ot(ge({__name:"XmlBodyEditor",props:{modelValue:{default:null},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=_i(e,"modelValue");function o(){t.value&&(t.value=BA(t.value))}const n=()=>!t.value||MA(t.value);return(r,i)=>(me(),Re("div",XM,[K("div",YM,[K("span",{class:Pt(["xbe-hint",{"xbe-hint--err":!n()}])},Ve(n()?"application/xml":"⚠ XML 格式错误"),3),Se(he(ht),{size:"tiny",text:"",onClick:o},{default:He(()=>[...i[1]||(i[1]=[it("格式化",-1)])]),_:1})]),K("div",JM,[Se(he(qt),{value:t.value,"onUpdate:value":i[0]||(i[0]=l=>t.value=l),type:"textarea",placeholder:'<?xml version="1.0" encoding="UTF-8"?>',rows:10,bordered:!1,status:n()?void 0:"error",class:"xbe-textarea"},null,8,["value","status"])])]))}}),[["__scopeId","data-v-893f3881"]]),QM={class:"bbe"},eB={key:0,class:"bbe-file"},tB={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",style:{"flex-shrink":"0"}},oB={class:"bbe-name"},nB={class:"bbe-size"},rB=Ot(ge({__name:"BinaryBodyEditor",props:{modelValue:{default:null},modelModifiers:{}},emits:["update:modelValue"],setup(e){_i(e,"modelValue");const t=Tr(),o=E({get:()=>t.currentRequest.binaryFile??null,set:s=>{t.currentRequest.binaryFile=s}}),n=L(null);function r(){var s;(s=n.value)==null||s.click()}function i(s){var d;const c=((d=s.target.files)==null?void 0:d[0])??null;o.value=c,n.value&&(n.value.value="")}function l(){o.value=null}function a(s){return s<1024?`${s} B`:s<1024*1024?`${(s/1024).toFixed(1)} KB`:`${(s/(1024*1024)).toFixed(1)} MB`}return(s,c)=>(me(),Re("div",QM,[K("input",{ref_key:"inputRef",ref:n,type:"file",style:{display:"none"},onChange:i},null,544),o.value?(me(),Re("div",eB,[(me(),Re("svg",tB,[...c[0]||(c[0]=[K("path",{d:"M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"},null,-1),K("polyline",{points:"13 2 13 9 20 9"},null,-1)])])),K("span",oB,Ve(o.value.name),1),K("span",nB,Ve(a(o.value.size)),1),K("button",{class:"bbe-clear",title:"移除",onClick:l},"✕")])):et("",!0),Se(he(ht),{size:"small",onClick:r},{default:He(()=>[it(Ve(o.value?"重新选择":"选择文件"),1)]),_:1})]))}}),[["__scopeId","data-v-eed78a60"]]),iB={class:"body-editor"},lB={class:"type-pills"},aB=["onClick"],sB={key:0,class:"editor-wrap"},cB={key:1,class:"body-none"},dB=Ot(ge({__name:"BodyEditor",props:Uh({availableTypes:{}},{modelValue:{default:null},modelModifiers:{}}),emits:Uh(["update:contentType"],["update:modelValue"]),setup(e,{emit:t}){const o=[{label:"none",value:"__none__"},{label:"form-data",value:"multipart/form-data"},{label:"x-www-form-urlencoded",value:"application/x-www-form-urlencoded"},{label:"JSON",value:"application/json"},{label:"XML",value:"application/xml"},{label:"Text",value:"text/plain"},{label:"Binary",value:"application/octet-stream"}],n=t,r=_i(e,"modelValue"),i=Tr(),l=E(()=>i.currentRequest.contentType??"application/json"),a=E(()=>i.currentRequest.contentType?i.currentRequest.contentType:"__none__"),s=E(()=>vi(l.value)),c=E(()=>s.value==="multipart"),d=E(()=>a.value==="__none__"),u=E(()=>{switch(s.value){case"json":return FM;case"form":return MM;case"xml":return ZM;case"binary":return rB;default:return GM}}),p=E({get:()=>i.currentRequest.multipartFields??[],set:g=>{i.currentRequest.multipartFields=g}});function v(g){var m;const b=i.currentRequest.contentType;b&&(i.currentRequest.bodyCache||(i.currentRequest.bodyCache={}),i.currentRequest.bodyCache[b]=r.value),g==="__none__"?(i.currentRequest.contentType="",r.value=null):(i.currentRequest.contentType=g,r.value=((m=i.currentRequest.bodyCache)==null?void 0:m[g])??null,n("update:contentType",g))}function h(g){return g==="__none__"?!i.currentRequest.contentType:i.currentRequest.contentType===g}return(g,b)=>(me(),Re("div",iB,[K("div",lB,[(me(),Re(Ue,null,To(o,m=>K("button",{key:m.value,class:Pt(["pill",{"pill--active":h(m.value)}]),onClick:x=>v(m.value)},Ve(m.label),11,aB)),64))]),d.value?(me(),Re("div",cB," 不发送请求体 ")):(me(),Re("div",sB,[c.value?(me(),mt(qM,{key:0,"model-value":p.value,"onUpdate:modelValue":b[0]||(b[0]=m=>p.value=m)},null,8,["model-value"])):(me(),mt(Hh(u.value),{key:1,modelValue:r.value,"onUpdate:modelValue":b[1]||(b[1]=m=>r.value=m)},null,8,["modelValue"]))]))]))}}),[["__scopeId","data-v-aa464c78"]]),uB={type:"inherit"},fB={class:"request-form"},hB={class:"url-bar"},pB={class:"req-toolbar"},vB={class:"curl-wrap"},gB={class:"curl-code"},mB={class:"curl-actions"},bB=Ot(ge({__name:"RequestForm",setup(e){const t=Tr(),o=_r(),n=E(()=>t.currentRequest),r=L("params"),i=E(()=>n.value.endpointId?o.allEndpoints.find(T=>T.id===n.value.endpointId):void 0),l=E(()=>{var T;return((T=i.value)==null?void 0:T.parameters.filter(k=>k.in==="query").map(k=>k.name))??[]}),a=E(()=>{var T;return((T=i.value)==null?void 0:T.parameters.filter(k=>k.in==="query"&&k.required).map(k=>k.name))??[]}),s=E(()=>{var T;return((T=i.value)==null?void 0:T.parameters.filter(k=>k.in==="header").map(k=>k.name))??[]}),c=E(()=>{var T;return((T=i.value)==null?void 0:T.parameters.filter(k=>k.in==="header"&&k.required).map(k=>k.name))??[]}),d=E(()=>{var T,k;return((k=(T=i.value)==null?void 0:T.requestBody)==null?void 0:k.mediaTypes.map(I=>I.mediaType))??["application/json"]}),u=E(()=>t.currentRequest.body??null),p=E(()=>t.currentRequest.auth??{...uB});function v(T){t.currentRequest.auth=T}const h=E(()=>p.value.type!=="none"&&p.value.type!=="inherit"),g={GET:"#18a058",POST:"#2080f0",PUT:"#f0a020",PATCH:"#8a2be2",DELETE:"#d03050",HEAD:"#888",OPTIONS:"#888"},b=E(()=>g[n.value.method??"GET"]??"#888");function m(T){const k=T.indexOf("?");if(k===-1){t.currentRequest.url=T;return}t.currentRequest.url=T.slice(0,k);const I={...t.currentRequest.query??{}};new URLSearchParams(T.slice(k+1)).forEach((j,ee)=>{I[ee]=j}),t.currentRequest.query=I}function x(T){t.currentRequest.query=T}function S(T){t.currentRequest.headers=T}function C(T){t.currentRequest.headers={...t.currentRequest.headers,Cookie:Object.entries(T).map(([k,I])=>`${k}=${I}`).join("; ")}}function y(T){t.currentRequest.contentType=T}const R=E(()=>{const T=n.value.url??"",k=n.value.query??{},I=t.disabledQueryKeys,Y=new URLSearchParams;for(const[ee,D]of Object.entries(k))D!==""&&!I.has(ee)&&Y.append(ee,D);const j=Y.toString();return j?`${T}?${j}`:T});function P(){i.value&&t.autoFill(i.value)}const w=L(!1),_=E(()=>t.toCurl());let B=null;Ze(()=>t.currentRequest,()=>{B&&clearTimeout(B),B=setTimeout(()=>t.saveCurrentToCache(),600)},{deep:!0});const z=["Accept","Accept-Encoding","Accept-Language","Authorization","Cache-Control","Content-Type","Cookie","Host","If-Match","If-None-Match","If-Modified-Since","Origin","Referer","User-Agent","X-Requested-With","X-Forwarded-For","X-Api-Key","X-Auth-Token","X-Token","X-Staff-Name","X-Real-Staff-Name","X-Request-Id","X-Trace-Id"],O=E(()=>Object.keys(n.value.query??{}).length),A=E(()=>Object.keys(n.value.headers??{}).length),U=E(()=>{const T=(n.value.headers??{}).Cookie??"";if(!T)return{};const k={};return T.split(";").forEach(I=>{const Y=I.indexOf("=");Y>0&&(k[I.slice(0,Y).trim()]=I.slice(Y+1).trim())}),k}),W=E(()=>Object.keys(U.value).length);function F(T,k){return k?()=>f("span",{class:"tab-with-badge"},[T,f("span",{class:"tab-badge"},String(k))]):()=>T}return(T,k)=>(me(),Re("div",fB,[K("div",hB,[K("span",{class:"method-badge",style:$o({color:b.value})},Ve(n.value.method??"GET"),5),Se(he(qt),{value:R.value,size:"small",class:"url-input",placeholder:"请求路径,如 /api/users","onUpdate:value":m},null,8,["value"]),he(t).sending?(me(),mt(he(ht),{key:1,size:"small",class:"send-btn",onClick:k[1]||(k[1]=I=>he(t).cancel())},{default:He(()=>[...k[7]||(k[7]=[it(" 取消 ",-1)])]),_:1})):(me(),mt(he(ht),{key:0,type:"primary",size:"small",class:"send-btn",disabled:!n.value.url,onClick:k[0]||(k[0]=I=>he(t).send())},{default:He(()=>[...k[6]||(k[6]=[it(" 发送 ",-1)])]),_:1},8,["disabled"]))]),K("div",pB,[Se(he(ht),{size:"tiny",quaternary:"",onClick:P},{default:He(()=>[...k[8]||(k[8]=[it("⚡ 自动生成参数",-1)])]),_:1}),Se(he(ht),{size:"tiny",quaternary:"",onClick:k[2]||(k[2]=I=>w.value=!0)},{default:He(()=>[...k[9]||(k[9]=[it("cURL",-1)])]),_:1})]),Se(he(el),{show:w.value,"onUpdate:show":k[3]||(k[3]=I=>w.value=I)},{default:He(()=>[Se(he(ra),{title:"cURL 命令",bordered:!1,size:"small",style:{width:"600px","max-width":"90vw"}},{default:He(()=>[K("div",vB,[K("pre",gB,Ve(_.value),1),K("div",mB,[Se(In,{text:_.value},null,8,["text"])])])]),_:1})]),_:1},8,["show"]),Se(he(rc),{value:r.value,"onUpdate:value":k[5]||(k[5]=I=>r.value=I),type:"line",size:"small",class:"sub-tabs"},{default:He(()=>[Se(he(Ho),{name:"params",tab:F("Params",O.value),"display-directive":"show:lazy"},{default:He(()=>[Se(sc,{"model-value":n.value.query??{},"locked-keys":l.value,"required-keys":a.value,"cached-disabled-keys":[...he(t).disabledQueryKeys],"onUpdate:modelValue":x,"onUpdate:disabledKeys":he(t).setDisabledQueryKeys},null,8,["model-value","locked-keys","required-keys","cached-disabled-keys","onUpdate:disabledKeys"])]),_:1},8,["tab"]),Se(he(Ho),{name:"body",tab:"Body","display-directive":"show:lazy"},{default:He(()=>[Se(dB,{"model-value":u.value,"available-types":d.value,"onUpdate:modelValue":k[4]||(k[4]=I=>he(t).currentRequest.body=I),"onUpdate:contentType":y},null,8,["model-value","available-types"])]),_:1}),Se(he(Ho),{name:"headers",tab:F("Headers",A.value),"display-directive":"show:lazy"},{default:He(()=>[Se(sc,{"model-value":n.value.headers??{},"locked-keys":s.value,"required-keys":c.value,"cached-disabled-keys":[...he(t).disabledHeaderKeys],"key-suggestions":z,placeholder:"header value","onUpdate:modelValue":S,"onUpdate:disabledKeys":he(t).setDisabledHeaderKeys},null,8,["model-value","locked-keys","required-keys","cached-disabled-keys","onUpdate:disabledKeys"])]),_:1},8,["tab"]),Se(he(Ho),{name:"cookies",tab:F("Cookies",W.value),"display-directive":"show:lazy"},{default:He(()=>[Se(sc,{"model-value":U.value,placeholder:"cookie value","onUpdate:modelValue":C},null,8,["model-value"])]),_:1},8,["tab"]),Se(he(Ho),{name:"auth",tab:h.value?F("Auth",1):"Auth","display-directive":"show:lazy"},{default:He(()=>[k[10]||(k[10]=K("div",{class:"auth-hint"},' 接口级认证,优先于全局认证。选择"继承全局"则使用全局设置。 ',-1)),Se(By,{"model-value":p.value,"inherit-label":"继承全局","onUpdate:modelValue":v},null,8,["model-value"])]),_:1},8,["tab"])]),_:1},8,["value"])]))}}),[["__scopeId","data-v-d65b882d"]]);function xB(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ny(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const o=e[t],n=typeof o;(n==="object"||n==="function")&&!Object.isFrozen(o)&&Ny(o)}),e}class jy{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Wy(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Er(e,...t){const o=Object.create(null);for(const n in e)o[n]=e[n];return t.forEach(function(n){for(const r in n)o[r]=n[r]}),o}const yB="</span>",Vy=e=>!!e.scope,CB=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const o=e.split(".");return[`${t}${o.shift()}`,...o.map((n,r)=>`${n}${"_".repeat(r+1)}`)].join(" ")}return`${t}${e}`};class wB{constructor(t,o){this.buffer="",this.classPrefix=o.classPrefix,t.walk(this)}addText(t){this.buffer+=Wy(t)}openNode(t){if(!Vy(t))return;const o=CB(t.scope,{prefix:this.classPrefix});this.span(o)}closeNode(t){Vy(t)&&(this.buffer+=yB)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const Uy=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class cf{constructor(){this.rootNode=Uy(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const o=Uy({scope:t});this.add(o),this.stack.push(o)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,o){return typeof o=="string"?t.addText(o):o.children&&(t.openNode(o),o.children.forEach(n=>this._walk(t,n)),t.closeNode(o)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(o=>typeof o=="string")?t.children=[t.children.join("")]:t.children.forEach(o=>{cf._collapse(o)}))}}class SB extends cf{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,o){const n=t.root;o&&(n.scope=`language:${o}`),this.add(n)}toHTML(){return new wB(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function da(e){return e?typeof e=="string"?e:e.source:null}function Ky(e){return gi("(?=",e,")")}function kB(e){return gi("(?:",e,")*")}function RB(e){return gi("(?:",e,")?")}function gi(...e){return e.map(o=>da(o)).join("")}function PB(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function df(...e){return"("+(PB(e).capture?"":"?:")+e.map(n=>da(n)).join("|")+")"}function qy(e){return new RegExp(e.toString()+"|").exec("").length-1}function _B(e,t){const o=e&&e.exec(t);return o&&o.index===0}const $B=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function uf(e,{joinWith:t}){let o=0;return e.map(n=>{o+=1;const r=o;let i=da(n),l="";for(;i.length>0;){const a=$B.exec(i);if(!a){l+=i;break}l+=i.substring(0,a.index),i=i.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?l+="\\"+String(Number(a[1])+r):(l+=a[0],a[0]==="("&&o++)}return l}).map(n=>`(${n})`).join(t)}const TB=/\b\B/,Gy="[a-zA-Z]\\w*",ff="[a-zA-Z_]\\w*",Xy="\\b\\d+(\\.\\d+)?",Yy="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Jy="\\b(0b[01]+)",zB="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",EB=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=gi(t,/.*\b/,e.binary,/\b.*/)),Er({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(o,n)=>{o.index!==0&&n.ignoreMatch()}},e)},ua={begin:"\\\\[\\s\\S]",relevance:0},OB={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ua]},IB={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ua]},AB={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},cc=function(e,t,o={}){const n=Er({scope:"comment",begin:e,end:t,contains:[]},o);n.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const r=df("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return n.contains.push({begin:gi(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},FB=cc("//","$"),MB=cc("/\\*","\\*/"),BB=cc("#","$"),LB={scope:"number",begin:Xy,relevance:0},DB={scope:"number",begin:Yy,relevance:0},HB={scope:"number",begin:Jy,relevance:0},NB={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ua,{begin:/\[/,end:/\]/,relevance:0,contains:[ua]}]},jB={scope:"title",begin:Gy,relevance:0},WB={scope:"title",begin:ff,relevance:0},VB={begin:"\\.\\s*"+ff,relevance:0};var dc=Object.freeze({__proto__:null,APOS_STRING_MODE:OB,BACKSLASH_ESCAPE:ua,BINARY_NUMBER_MODE:HB,BINARY_NUMBER_RE:Jy,COMMENT:cc,C_BLOCK_COMMENT_MODE:MB,C_LINE_COMMENT_MODE:FB,C_NUMBER_MODE:DB,C_NUMBER_RE:Yy,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(t,o)=>{o.data._beginMatch=t[1]},"on:end":(t,o)=>{o.data._beginMatch!==t[1]&&o.ignoreMatch()}})},HASH_COMMENT_MODE:BB,IDENT_RE:Gy,MATCH_NOTHING_RE:TB,METHOD_GUARD:VB,NUMBER_MODE:LB,NUMBER_RE:Xy,PHRASAL_WORDS_MODE:AB,QUOTE_STRING_MODE:IB,REGEXP_MODE:NB,RE_STARTERS_RE:zB,SHEBANG:EB,TITLE_MODE:jB,UNDERSCORE_IDENT_RE:ff,UNDERSCORE_TITLE_MODE:WB});function UB(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function KB(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function qB(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=UB,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function GB(e,t){Array.isArray(e.illegal)&&(e.illegal=df(...e.illegal))}function XB(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function YB(e,t){e.relevance===void 0&&(e.relevance=1)}const JB=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const o=Object.assign({},e);Object.keys(e).forEach(n=>{delete e[n]}),e.keywords=o.keywords,e.begin=gi(o.beforeMatch,Ky(o.begin)),e.starts={relevance:0,contains:[Object.assign(o,{endsParent:!0})]},e.relevance=0,delete o.beforeMatch},ZB=["of","and","for","in","not","or","if","then","parent","list","value"],QB="keyword";function Zy(e,t,o=QB){const n=Object.create(null);return typeof e=="string"?r(o,e.split(" ")):Array.isArray(e)?r(o,e):Object.keys(e).forEach(function(i){Object.assign(n,Zy(e[i],t,i))}),n;function r(i,l){t&&(l=l.map(a=>a.toLowerCase())),l.forEach(function(a){const s=a.split("|");n[s[0]]=[i,eL(s[0],s[1])]})}}function eL(e,t){return t?Number(t):tL(e)?0:1}function tL(e){return ZB.includes(e.toLowerCase())}const Qy={},mi=e=>{console.error(e)},e1=(e,...t)=>{console.log(`WARN: ${e}`,...t)},il=(e,t)=>{Qy[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Qy[`${e}/${t}`]=!0)},uc=new Error;function t1(e,t,{key:o}){let n=0;const r=e[o],i={},l={};for(let a=1;a<=t.length;a++)l[a+n]=r[a],i[a+n]=!0,n+=qy(t[a-1]);e[o]=l,e[o]._emit=i,e[o]._multi=!0}function oL(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw mi("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),uc;if(typeof e.beginScope!="object"||e.beginScope===null)throw mi("beginScope must be object"),uc;t1(e,e.begin,{key:"beginScope"}),e.begin=uf(e.begin,{joinWith:""})}}function nL(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw mi("skip, excludeEnd, returnEnd not compatible with endScope: {}"),uc;if(typeof e.endScope!="object"||e.endScope===null)throw mi("endScope must be object"),uc;t1(e,e.end,{key:"endScope"}),e.end=uf(e.end,{joinWith:""})}}function rL(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function iL(e){rL(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),oL(e),nL(e)}function lL(e){function t(l,a){return new RegExp(da(l),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(a?"g":""))}class o{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,s){s.position=this.position++,this.matchIndexes[this.matchAt]=s,this.regexes.push([s,a]),this.matchAt+=qy(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(s=>s[1]);this.matcherRe=t(uf(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const s=this.matcherRe.exec(a);if(!s)return null;const c=s.findIndex((u,p)=>p>0&&u!==void 0),d=this.matchIndexes[c];return s.splice(0,c),Object.assign(s,d)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const s=new o;return this.rules.slice(a).forEach(([c,d])=>s.addRule(c,d)),s.compile(),this.multiRegexes[a]=s,s}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,s){this.rules.push([a,s]),s.type==="begin"&&this.count++}exec(a){const s=this.getMatcher(this.regexIndex);s.lastIndex=this.lastIndex;let c=s.exec(a);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const d=this.getMatcher(0);d.lastIndex=this.lastIndex+1,c=d.exec(a)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function r(l){const a=new n;return l.contains.forEach(s=>a.addRule(s.begin,{rule:s,type:"begin"})),l.terminatorEnd&&a.addRule(l.terminatorEnd,{type:"end"}),l.illegal&&a.addRule(l.illegal,{type:"illegal"}),a}function i(l,a){const s=l;if(l.isCompiled)return s;[KB,XB,iL,JB].forEach(d=>d(l,a)),e.compilerExtensions.forEach(d=>d(l,a)),l.__beforeBegin=null,[qB,GB,YB].forEach(d=>d(l,a)),l.isCompiled=!0;let c=null;return typeof l.keywords=="object"&&l.keywords.$pattern&&(l.keywords=Object.assign({},l.keywords),c=l.keywords.$pattern,delete l.keywords.$pattern),c=c||/\w+/,l.keywords&&(l.keywords=Zy(l.keywords,e.case_insensitive)),s.keywordPatternRe=t(c,!0),a&&(l.begin||(l.begin=/\B|\b/),s.beginRe=t(s.begin),!l.end&&!l.endsWithParent&&(l.end=/\B|\b/),l.end&&(s.endRe=t(s.end)),s.terminatorEnd=da(s.end)||"",l.endsWithParent&&a.terminatorEnd&&(s.terminatorEnd+=(l.end?"|":"")+a.terminatorEnd)),l.illegal&&(s.illegalRe=t(l.illegal)),l.contains||(l.contains=[]),l.contains=[].concat(...l.contains.map(function(d){return aL(d==="self"?l:d)})),l.contains.forEach(function(d){i(d,s)}),l.starts&&i(l.starts,a),s.matcher=r(s),s}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Er(e.classNameAliases||{}),i(e)}function o1(e){return e?e.endsWithParent||o1(e.starts):!1}function aL(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Er(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:o1(e)?Er(e,{starts:e.starts?Er(e.starts):null}):Object.isFrozen(e)?Er(e):e}var sL="11.11.1";class cL extends Error{constructor(t,o){super(t),this.name="HTMLInjectionError",this.html=o}}const hf=Wy,n1=Er,r1=Symbol("nomatch"),dL=7,i1=function(e){const t=Object.create(null),o=Object.create(null),n=[];let r=!0;const i="Could not find the language '{}', did you forget to load/include a language module?",l={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:SB};function s(F){return a.noHighlightRe.test(F)}function c(F){let T=F.className+" ";T+=F.parentNode?F.parentNode.className:"";const k=a.languageDetectRe.exec(T);if(k){const I=w(k[1]);return I||(e1(i.replace("{}",k[1])),e1("Falling back to no-highlight mode for this block.",F)),I?k[1]:"no-highlight"}return T.split(/\s+/).find(I=>s(I)||w(I))}function d(F,T,k){let I="",Y="";typeof T=="object"?(I=F,k=T.ignoreIllegals,Y=T.language):(il("10.7.0","highlight(lang, code, ...args) has been deprecated."),il("10.7.0",`Please use highlight(code, options) instead.
|
|
3718
3718
|
https://github.com/highlightjs/highlight.js/issues/2277`),Y=F,I=T),k===void 0&&(k=!0);const j={code:I,language:Y};U("before:highlight",j);const ee=j.result?j.result:u(j.language,j.code,k);return ee.code=j.code,U("after:highlight",ee),ee}function u(F,T,k,I){const Y=Object.create(null);function j(pe,ze){return pe.keywords[ze]}function ee(){if(!Q.keywords){se.addText(ae);return}let pe=0;Q.keywordPatternRe.lastIndex=0;let ze=Q.keywordPatternRe.exec(ae),Ie="";for(;ze;){Ie+=ae.substring(pe,ze.index);const je=xe.case_insensitive?ze[0].toLowerCase():ze[0],Ye=j(Q,je);if(Ye){const[ot,wt]=Ye;if(se.addText(Ie),Ie="",Y[je]=(Y[je]||0)+1,Y[je]<=dL&&(ie+=wt),ot.startsWith("_"))Ie+=ze[0];else{const Tt=xe.classNameAliases[ot]||ot;N(ze[0],Tt)}}else Ie+=ze[0];pe=Q.keywordPatternRe.lastIndex,ze=Q.keywordPatternRe.exec(ae)}Ie+=ae.substring(pe),se.addText(Ie)}function D(){if(ae==="")return;let pe=null;if(typeof Q.subLanguage=="string"){if(!t[Q.subLanguage]){se.addText(ae);return}pe=u(Q.subLanguage,ae,!0,be[Q.subLanguage]),be[Q.subLanguage]=pe._top}else pe=v(ae,Q.subLanguage.length?Q.subLanguage:null);Q.relevance>0&&(ie+=pe.relevance),se.__addSublanguage(pe._emitter,pe.language)}function M(){Q.subLanguage!=null?D():ee(),ae=""}function N(pe,ze){pe!==""&&(se.startScope(ze),se.addText(pe),se.endScope())}function ve(pe,ze){let Ie=1;const je=ze.length-1;for(;Ie<=je;){if(!pe._emit[Ie]){Ie++;continue}const Ye=xe.classNameAliases[pe[Ie]]||pe[Ie],ot=ze[Ie];Ye?N(ot,Ye):(ae=ot,ee(),ae=""),Ie++}}function J(pe,ze){return pe.scope&&typeof pe.scope=="string"&&se.openNode(xe.classNameAliases[pe.scope]||pe.scope),pe.beginScope&&(pe.beginScope._wrap?(N(ae,xe.classNameAliases[pe.beginScope._wrap]||pe.beginScope._wrap),ae=""):pe.beginScope._multi&&(ve(pe.beginScope,ze),ae="")),Q=Object.create(pe,{parent:{value:Q}}),Q}function Ce(pe,ze,Ie){let je=_B(pe.endRe,Ie);if(je){if(pe["on:end"]){const Ye=new jy(pe);pe["on:end"](ze,Ye),Ye.isMatchIgnored&&(je=!1)}if(je){for(;pe.endsParent&&pe.parent;)pe=pe.parent;return pe}}if(pe.endsWithParent)return Ce(pe.parent,ze,Ie)}function Z(pe){return Q.matcher.regexIndex===0?(ae+=pe[0],1):(ce=!0,0)}function ne(pe){const ze=pe[0],Ie=pe.rule,je=new jy(Ie),Ye=[Ie.__beforeBegin,Ie["on:begin"]];for(const ot of Ye)if(ot&&(ot(pe,je),je.isMatchIgnored))return Z(ze);return Ie.skip?ae+=ze:(Ie.excludeBegin&&(ae+=ze),M(),!Ie.returnBegin&&!Ie.excludeBegin&&(ae=ze)),J(Ie,pe),Ie.returnBegin?0:ze.length}function Ee(pe){const ze=pe[0],Ie=T.substring(pe.index),je=Ce(Q,pe,Ie);if(!je)return r1;const Ye=Q;Q.endScope&&Q.endScope._wrap?(M(),N(ze,Q.endScope._wrap)):Q.endScope&&Q.endScope._multi?(M(),ve(Q.endScope,pe)):Ye.skip?ae+=ze:(Ye.returnEnd||Ye.excludeEnd||(ae+=ze),M(),Ye.excludeEnd&&(ae=ze));do Q.scope&&se.closeNode(),!Q.skip&&!Q.subLanguage&&(ie+=Q.relevance),Q=Q.parent;while(Q!==je.parent);return je.starts&&J(je.starts,pe),Ye.returnEnd?0:ze.length}function H(){const pe=[];for(let ze=Q;ze!==xe;ze=ze.parent)ze.scope&&pe.unshift(ze.scope);pe.forEach(ze=>se.openNode(ze))}let G={};function le(pe,ze){const Ie=ze&&ze[0];if(ae+=pe,Ie==null)return M(),0;if(G.type==="begin"&&ze.type==="end"&&G.index===ze.index&&Ie===""){if(ae+=T.slice(ze.index,ze.index+1),!r){const je=new Error(`0 width match regex (${F})`);throw je.languageName=F,je.badRule=G.rule,je}return 1}if(G=ze,ze.type==="begin")return ne(ze);if(ze.type==="illegal"&&!k){const je=new Error('Illegal lexeme "'+Ie+'" for mode "'+(Q.scope||"<unnamed>")+'"');throw je.mode=Q,je}else if(ze.type==="end"){const je=Ee(ze);if(je!==r1)return je}if(ze.type==="illegal"&&Ie==="")return ae+=`
|
|
3719
3719
|
`,1;if(te>1e5&&te>ze.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ae+=Ie,Ie.length}const xe=w(F);if(!xe)throw mi(i.replace("{}",F)),new Error('Unknown language: "'+F+'"');const we=lL(xe);let ue="",Q=I||we;const be={},se=new a.__emitter(a);H();let ae="",ie=0,re=0,te=0,ce=!1;try{if(xe.__emitTokens)xe.__emitTokens(T,se);else{for(Q.matcher.considerAll();;){te++,ce?ce=!1:Q.matcher.considerAll(),Q.matcher.lastIndex=re;const pe=Q.matcher.exec(T);if(!pe)break;const ze=T.substring(re,pe.index),Ie=le(ze,pe);re=pe.index+Ie}le(T.substring(re))}return se.finalize(),ue=se.toHTML(),{language:F,value:ue,relevance:ie,illegal:!1,_emitter:se,_top:Q}}catch(pe){if(pe.message&&pe.message.includes("Illegal"))return{language:F,value:hf(T),illegal:!0,relevance:0,_illegalBy:{message:pe.message,index:re,context:T.slice(re-100,re+100),mode:pe.mode,resultSoFar:ue},_emitter:se};if(r)return{language:F,value:hf(T),illegal:!1,relevance:0,errorRaised:pe,_emitter:se,_top:Q};throw pe}}function p(F){const T={value:hf(F),illegal:!1,relevance:0,_top:l,_emitter:new a.__emitter(a)};return T._emitter.addText(F),T}function v(F,T){T=T||a.languages||Object.keys(t);const k=p(F),I=T.filter(w).filter(B).map(M=>u(M,F,!1));I.unshift(k);const Y=I.sort((M,N)=>{if(M.relevance!==N.relevance)return N.relevance-M.relevance;if(M.language&&N.language){if(w(M.language).supersetOf===N.language)return 1;if(w(N.language).supersetOf===M.language)return-1}return 0}),[j,ee]=Y,D=j;return D.secondBest=ee,D}function h(F,T,k){const I=T&&o[T]||k;F.classList.add("hljs"),F.classList.add(`language-${I}`)}function g(F){let T=null;const k=c(F);if(s(k))return;if(U("before:highlightElement",{el:F,language:k}),F.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",F);return}if(F.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(F)),a.throwUnescapedHTML))throw new cL("One of your code blocks includes unescaped HTML.",F.innerHTML);T=F;const I=T.textContent,Y=k?d(I,{language:k,ignoreIllegals:!0}):v(I);F.innerHTML=Y.value,F.dataset.highlighted="yes",h(F,k,Y.language),F.result={language:Y.language,re:Y.relevance,relevance:Y.relevance},Y.secondBest&&(F.secondBest={language:Y.secondBest.language,relevance:Y.secondBest.relevance}),U("after:highlightElement",{el:F,result:Y,text:I})}function b(F){a=n1(a,F)}const m=()=>{C(),il("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function x(){C(),il("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let S=!1;function C(){function F(){C()}if(document.readyState==="loading"){S||window.addEventListener("DOMContentLoaded",F,!1),S=!0;return}document.querySelectorAll(a.cssSelector).forEach(g)}function y(F,T){let k=null;try{k=T(e)}catch(I){if(mi("Language definition for '{}' could not be registered.".replace("{}",F)),r)mi(I);else throw I;k=l}k.name||(k.name=F),t[F]=k,k.rawDefinition=T.bind(null,e),k.aliases&&_(k.aliases,{languageName:F})}function R(F){delete t[F];for(const T of Object.keys(o))o[T]===F&&delete o[T]}function P(){return Object.keys(t)}function w(F){return F=(F||"").toLowerCase(),t[F]||t[o[F]]}function _(F,{languageName:T}){typeof F=="string"&&(F=[F]),F.forEach(k=>{o[k.toLowerCase()]=T})}function B(F){const T=w(F);return T&&!T.disableAutodetect}function z(F){F["before:highlightBlock"]&&!F["before:highlightElement"]&&(F["before:highlightElement"]=T=>{F["before:highlightBlock"](Object.assign({block:T.el},T))}),F["after:highlightBlock"]&&!F["after:highlightElement"]&&(F["after:highlightElement"]=T=>{F["after:highlightBlock"](Object.assign({block:T.el},T))})}function O(F){z(F),n.push(F)}function A(F){const T=n.indexOf(F);T!==-1&&n.splice(T,1)}function U(F,T){const k=F;n.forEach(function(I){I[k]&&I[k](T)})}function W(F){return il("10.7.0","highlightBlock will be removed entirely in v12.0"),il("10.7.0","Please use highlightElement now."),g(F)}Object.assign(e,{highlight:d,highlightAuto:v,highlightAll:C,highlightElement:g,highlightBlock:W,configure:b,initHighlighting:m,initHighlightingOnLoad:x,registerLanguage:y,unregisterLanguage:R,listLanguages:P,getLanguage:w,registerAliases:_,autoDetection:B,inherit:n1,addPlugin:O,removePlugin:A}),e.debugMode=function(){r=!1},e.safeMode=function(){r=!0},e.versionString=sL,e.regex={concat:gi,lookahead:Ky,either:df,optional:RB,anyNumberOfTimes:kB};for(const F in dc)typeof dc[F]=="object"&&Ny(dc[F]);return Object.assign(e,dc),e},ll=i1({});ll.newInstance=()=>i1({});var uL=ll;ll.HighlightJS=ll,ll.default=ll;const fc=xB(uL);function fL(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},o={match:/[{}[\],:]/,className:"punctuation",relevance:0},n=["true","false","null"],r={scope:"literal",beginKeywords:n.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:n},contains:[t,o,e.QUOTE_STRING_MODE,r,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function hL(e){const t=e.regex,o=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},l=e.inherit(i,{begin:/\(/,end:/\)/}),a=e.inherit(e.APOS_STRING_MODE,{className:"string"}),s=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:n,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[i,s,a,l,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[i,l,s,a]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[s]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(o,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:o,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(o,/>/))),contains:[{className:"name",begin:o,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const pL={class:"toolbar"},vL={class:"lang-label"},gL={class:"hljs"},mL=["innerHTML"],bL={key:0,class:"fade-mask"},xL={key:0,class:"collapse-btn-row"},yL=300,CL="https://cdn.jsdelivr.net/npm/highlight.js@11/styles/github.min.css",wL="https://cdn.jsdelivr.net/npm/highlight.js@11/styles/github-dark.min.css",l1="hljs-theme",a1=Ot(ge({__name:"JsonHighlight",props:{code:{},language:{default:"json"},dark:{type:Boolean}},setup(e){fc.registerLanguage("json",fL),fc.registerLanguage("xml",hL);const t=e,o=L(t.dark!==void 0?t.dark:document.documentElement.getAttribute("data-theme")==="dark");let n=null;Bt(()=>{t.dark===void 0&&(n=new MutationObserver(()=>{o.value=document.documentElement.getAttribute("data-theme")==="dark"}),n.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}))}),wl(()=>n==null?void 0:n.disconnect());const r=E(()=>{try{return fc.highlight(t.code,{language:t.language}).value}catch{return fc.highlight(t.code,{language:"plaintext"}).value}}),i=E(()=>t.code.split(`
|
|
3720
|
-
`).length),l=E(()=>i.value>yL),a=L(!1),s=L(!1);async function c(){try{await navigator.clipboard.writeText(t.code),s.value=!0,setTimeout(()=>s.value=!1,1500)}catch{}}function d(){let u=document.getElementById(l1);u||(u=document.createElement("link"),u.id=l1,u.rel="stylesheet",document.head.appendChild(u)),u.href=o.value?wL:CL}return Ze(o,d,{immediate:!0}),Bt(()=>$t(d)),(u,p)=>(me(),Re("div",{class:Pt(["json-highlight",{dark:o.value}])},[K("div",pL,[K("span",vL,Ve(e.language),1),Se(he(ht),{size:"tiny",text:"",class:"copy-btn",style:$o({color:s.value?"#10b981":void 0}),onClick:c},{default:He(()=>[it(Ve(s.value?"已复制":"复制"),1)]),_:1},8,["style"])]),K("div",{class:Pt(["code-wrap",{collapsed:l.value&&!a.value}])},[K("pre",gL,[K("code",{innerHTML:r.value},null,8,mL)]),l.value&&!a.value?(me(),Re("div",bL,[Se(he(ht),{size:"small",onClick:p[0]||(p[0]=v=>a.value=!0)},{default:He(()=>[it("展开全部 ("+Ve(i.value)+" 行)",1)]),_:1})])):et("",!0)],2),l.value&&a.value?(me(),Re("div",xL,[Se(he(ht),{size:"small",text:"",onClick:p[1]||(p[1]=v=>a.value=!1)},{default:He(()=>[...p[2]||(p[2]=[it("收起",-1)])]),_:1})])):et("",!0)],2))}}),[["__scopeId","data-v-aec27471"]]),SL=ge({__name:"JsonResponseView",props:{body:{}},setup(e){const t=e,o=E(()=>{try{return zr(JSON.parse(t.body))}catch{return t.body}});return(n,r)=>(me(),mt(a1,{code:o.value,language:"json"},null,8,["code"]))}}),kL={class:"image-view"},RL=["src","alt"],PL={class:"meta"},_L=["href"],$L=Ot(ge({__name:"ImageResponseView",props:{body:{},contentType:{}},setup(e){return(t,o)=>(me(),Re("div",kL,[K("img",{src:e.body,alt:e.contentType,class:"preview-img"},null,8,RL),K("div",PL,[K("a",{href:e.body,download:"response-image",class:"download-link"},"下载图片",8,_L)])]))}}),[["__scopeId","data-v-b9fd1d77"]]),TL=ge({__name:"HtmlResponseView",props:{body:{}},setup(e){return(t,o)=>(me(),mt(a1,{code:e.body,language:"xml"},null,8,["code"]))}}),zL={class:"raw-view"},EL={class:"toolbar"},OL={class:"hint"},IL={class:"raw-body"},AL=Ot(ge({__name:"RawResponseView",props:{body:{},contentType:{}},setup(e){const t=e;function o(){const n=t.contentType.includes("octet-stream")?"bin":"txt",r=new Blob([t.body],{type:t.contentType||"text/plain"}),i=URL.createObjectURL(r),l=document.createElement("a");l.href=i,l.download=`response.${n}`,l.click(),URL.revokeObjectURL(i)}return(n,r)=>(me(),Re("div",zL,[K("div",EL,[K("span",OL,Ve(e.contentType||"text/plain"),1),Se(he(ht),{size:"tiny",text:"",onClick:o},{default:He(()=>[...r[0]||(r[0]=[it("下载",-1)])]),_:1})]),K("pre",IL,Ve(e.body),1)]))}}),[["__scopeId","data-v-30120298"]]),FL={class:"response-viewer"},ML={key:0,class:"state-center"},BL={key:1,class:"state-center"},LL={class:"status-bar"},DL={class:"body-wrap"},HL={class:"headers-pre"},NL=Ot(ge({__name:"ResponseViewer",props:{response:{},loading:{type:Boolean}},setup(e){const t=e;function o(i){return i>=500?"#ef4444":i>=400?"#f59e0b":i>=300?"#0ea5e9":i>=200?"#10b981":"#94a3b8"}const n=E(()=>{if(!t.response)return null;switch(t.response.bodyType){case"json":return SL;case"image":return $L;case"html":return TL;default:return AL}}),r=E(()=>t.response?zr(t.response.headers):"");return(i,l)=>(me(),Re("div",FL,[e.loading?(me(),Re("div",ML,[Se(he(Ju),{size:"medium"}),l[0]||(l[0]=K("span",{class:"state-hint"},"请求中...",-1))])):e.response?(me(),Re(Ue,{key:2},[K("div",LL,[Se(he(io),{size:"small",bordered:!1,style:$o({backgroundColor:`${o(e.response.status)}18`,color:o(e.response.status),fontFamily:"var(--font-mono)",fontSize:"12px",padding:"0 8px"})},{default:He(()=>[it(Ve(e.response.status)+" "+Ve(e.response.statusText),1)]),_:1},8,["style"]),Se(he(io),{size:"small",bordered:!1,style:{"font-size":"11px",color:"var(--color-text-muted)",background:"var(--color-bg-subtle)"}},{default:He(()=>[it(Ve(e.response.duration)+" ms ",1)]),_:1}),Se(he(io),{size:"small",bordered:!1,style:{"font-size":"11px","font-family":"var(--font-mono)",color:"var(--color-text-muted)",background:"var(--color-bg-subtle)"}},{default:He(()=>[it(Ve(e.response.contentType||"—"),1)]),_:1})]),Se(he(rc),{type:"line",size:"small","default-value":"body"},{default:He(()=>[Se(he(Ho),{name:"body",tab:"响应体"},{default:He(()=>[K("div",DL,[(me(),mt(Hh(n.value),{body:e.response.body,"content-type":e.response.contentType},null,8,["body","content-type"]))])]),_:1}),Se(he(Ho),{name:"headers",tab:"响应头"},{default:He(()=>[K("pre",HL,Ve(r.value),1)]),_:1})]),_:1})],64)):(me(),Re("div",BL,[Se(he(kr),{description:"点击「▶ 发送」发起请求",size:"small"})]))]))}}),[["__scopeId","data-v-9c1034fa"]]),jL={class:"history-list"},WL={class:"list-header"},VL={key:0,class:"search-bar"},UL={key:0,class:"empty-state"},KL=["onClick"],qL={class:"item-left"},GL=["title"],XL={class:"item-right"},YL={class:"item-duration"},JL={class:"item-time"},ZL={class:"history-detail"},QL={class:"detail-section"},eD={class:"detail-url"},tD={class:"detail-url-text"},oD={class:"detail-block"},nD={class:"detail-block-header"},rD={class:"detail-pre"},iD={key:0,class:"detail-block"},lD={class:"detail-block-header"},aD={class:"detail-pre"},sD={class:"detail-section detail-section--response"},cD={class:"detail-section-header"},dD={class:"detail-duration"},uD={class:"detail-block"},fD={class:"detail-block-header"},hD={class:"detail-pre"},pD={class:"detail-block"},vD={class:"detail-block-header"},gD={class:"detail-pre"},mD=Ot(ge({__name:"HistoryList",setup(e){const t=Tr(),o=L(""),n=L(null),r=E(()=>{const p=t.currentRequest.endpointId;return p?t.history.filter(v=>v.request.endpointId===p):t.history}),i=E(()=>{const p=o.value.trim().toLowerCase();return p?r.value.filter(v=>v.request.method.toLowerCase().includes(p)||v.request.url.toLowerCase().includes(p)||String(v.response.status).includes(p)):r.value});function l(p){return p>=500?"#ef4444":p>=400?"#f59e0b":p>=300?"#0ea5e9":p>=200?"#10b981":"#94a3b8"}function a(p){return new Date(p).toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit",second:"2-digit"})}function s(p){return p>=1e3?`${(p/1e3).toFixed(1)}s`:`${p}ms`}function c(p){try{const v=new URL(p);return v.pathname+v.search}catch{return p}}function d(p){n.value=n.value===p?null:p}function u(p){if(!p)return"(empty)";try{return zr(JSON.parse(p))}catch{return p.slice(0,2e3)}}return(p,v)=>(me(),Re("div",jL,[K("div",WL,[v[5]||(v[5]=K("span",{class:"list-title"},"调试历史",-1)),r.value.length?(me(),mt(he(ry),{key:0,onPositiveClick:v[0]||(v[0]=h=>he(t).clearEndpointHistory(he(t).currentRequest.endpointId))},{trigger:He(()=>[Se(he(ht),{size:"tiny",text:"",style:{color:"var(--color-text-muted)"}},{default:He(()=>[...v[3]||(v[3]=[it("清空",-1)])]),_:1})]),default:He(()=>[v[4]||(v[4]=it(" 确定清空该接口的调试历史? ",-1))]),_:1})):et("",!0)]),r.value.length?(me(),Re("div",VL,[Se(he(qt),{value:o.value,"onUpdate:value":v[1]||(v[1]=h=>o.value=h),size:"small",placeholder:"路径 / 方法 / 状态码",clearable:""},null,8,["value"])])):et("",!0),Se(he(Yu),{style:{"max-height":"520px"}},{default:He(()=>[i.value.length?et("",!0):(me(),Re("div",UL,[Se(he(kr),{description:r.value.length?"无匹配记录":"暂无调试历史",size:"small"},null,8,["description"])])),(me(!0),Re(Ue,null,To(i.value,h=>(me(),Re(Ue,{key:h.id},[K("div",{class:Pt(["history-item",{"history-item--expanded":n.value===h.id}]),onClick:g=>d(h.id)},[K("div",qL,[Se(Hy,{method:h.request.method},null,8,["method"]),K("span",{class:"item-path",title:h.request.url},Ve(c(h.request.url)),9,GL)]),K("div",XL,[K("span",{class:"item-status",style:$o({color:l(h.response.status)})},Ve(h.response.status),5),K("span",YL,Ve(s(h.response.duration)),1),K("span",JL,Ve(a(h.timestamp)),1),Se(he(ht),{text:"",size:"tiny",class:"action-btn",title:"回填请求",onClick:jr(g=>he(t).restoreFromHistory(h),["stop"])},{default:He(()=>[...v[6]||(v[6]=[K("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[K("polyline",{points:"1 4 1 10 7 10"}),K("path",{d:"M3.51 15a9 9 0 1 0 .49-4.95"})],-1)])]),_:1},8,["onClick"]),Se(he(ry),{onPositiveClick:jr(g=>he(t).removeHistory(h.id),["stop"])},{trigger:He(()=>[Se(he(ht),{text:"",size:"tiny",class:"action-btn del-btn",onClick:v[2]||(v[2]=jr(()=>{},["stop"]))},{default:He(()=>[...v[7]||(v[7]=[K("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[K("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),K("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])]),_:1})]),default:He(()=>[v[8]||(v[8]=it(" 删除这条记录? ",-1))]),_:1},8,["onPositiveClick"])])],10,KL),Se(he(Az),{show:n.value===h.id},{default:He(()=>[K("div",ZL,[K("div",QL,[v[11]||(v[11]=K("div",{class:"detail-section-header"},[K("span",{class:"detail-section-title"},"请求")],-1)),K("div",eD,[K("span",tD,Ve(h.request.url),1),Se(In,{text:h.request.url},null,8,["text"])]),K("div",oD,[K("div",nD,[v[9]||(v[9]=K("span",{class:"detail-label"},"Headers",-1)),Se(In,{text:he(zr)(h.request.headers)},null,8,["text"])]),K("pre",rD,Ve(he(zr)(h.request.headers)),1)]),h.request.body?(me(),Re("div",iD,[K("div",lD,[v[10]||(v[10]=K("span",{class:"detail-label"},"Body",-1)),Se(In,{text:h.request.body},null,8,["text"])]),K("pre",aD,Ve(u(h.request.body)),1)])):et("",!0)]),K("div",sD,[K("div",cD,[v[12]||(v[12]=K("span",{class:"detail-section-title"},"响应",-1)),K("span",{class:"detail-status-text",style:$o({color:l(h.response.status)})},Ve(h.response.status)+" "+Ve(h.response.statusText),5),K("span",dD,Ve(s(h.response.duration)),1)]),K("div",uD,[K("div",fD,[v[13]||(v[13]=K("span",{class:"detail-label"},"Headers",-1)),Se(In,{text:he(zr)(h.response.headers)},null,8,["text"])]),K("pre",hD,Ve(he(zr)(h.response.headers)),1)]),K("div",pD,[K("div",vD,[v[14]||(v[14]=K("span",{class:"detail-label"},"Body",-1)),Se(In,{text:h.response.body??""},null,8,["text"])]),K("pre",gD,Ve(u(h.response.body)),1)])])])]),_:2},1032,["show"])],64))),128))]),_:1})]))}}),[["__scopeId","data-v-e429157a"]]),bD={class:"debug-panel"},xD={key:0,class:"empty-state"},yD={class:"panel-section"},CD={class:"panel-section"},wD={class:"tab-bar"},SD={key:0,class:"tab-count"},kD={class:"tab-content"},RD=Ot(ge({__name:"DebugPanel",setup(e){const t=Tr(),o=L("response"),n=E(()=>{const r=t.currentRequest.endpointId;return r?t.history.filter(i=>i.request.endpointId===r).length:0});return Ze(()=>t.currentRequest,r=>{console.log("currentRequest",r)}),Ze(()=>t.currentResponse,r=>{r&&(o.value="response")}),(r,i)=>(me(),Re("div",bD,[he(t).currentRequest.url?(me(),Re(Ue,{key:1},[K("section",yD,[Se(bB)]),i[3]||(i[3]=K("div",{class:"divider"},null,-1)),K("section",CD,[K("div",wD,[K("button",{class:Pt(["tab-btn",{"tab-btn--active":o.value==="response"}]),onClick:i[0]||(i[0]=l=>o.value="response")}," 响应 ",2),K("button",{class:Pt(["tab-btn",{"tab-btn--active":o.value==="history"}]),onClick:i[1]||(i[1]=l=>o.value="history")},[i[2]||(i[2]=it(" 历史 ",-1)),n.value?(me(),Re("span",SD,Ve(n.value),1)):et("",!0)],2)]),K("div",kD,[Ut(Se(NL,{response:he(t).currentResponse,loading:he(t).sending},null,8,["response","loading"]),[[Un,o.value==="response"]]),Ut(Se(mD,null,null,512),[[Un,o.value==="history"]])])])],64)):(me(),Re("div",xD,[Se(he(kr),{description:"切换到调试模式后自动初始化请求",size:"small"})]))]))}}),[["__scopeId","data-v-d5a6183a"]]),PD={class:"detail-inner"},_D={class:"endpoint-header"},$D={class:"endpoint-title-row"},TD={class:"endpoint-path"},zD={key:0,class:"endpoint-summary"},ED={key:1,class:"endpoint-description"},OD={key:0,class:"tab-empty"},ID={class:"param-group-header"},AD={class:"param-group-label"},FD={class:"param-group-count"},MD={key:0,class:"example-block"},BD={class:"example-header"},LD={class:"example-title"},DD={class:"example-code"},HD={class:"media-type-selector"},ND={key:0,class:"schema-section"},jD={key:1,class:"tab-empty"},WD={key:0,class:"example-block"},VD={class:"example-header"},UD={class:"example-code"},KD={key:0,class:"tab-empty"},qD=["onClick"],GD={key:0,class:"resp-media-tag"},XD={key:1,class:"resp-desc-text"},YD={key:1,class:"resp-no-schema"},JD={key:2,class:"example-block"},ZD={class:"example-header"},QD={class:"example-code"},e7=Ot(ge({__name:"EndpointDetail",props:{endpoint:{}},setup(e){const t=e,o=Tr(),n=L("params");function r(k){n.value=k,k==="debug"&&o.initRequest(t.endpoint)}Ze(()=>t.endpoint.id,()=>{n.value==="debug"&&o.initRequest(t.endpoint)});function i(k){return JSON.stringify(k,null,2)??""}const l={string:"#0ea5e9",number:"#f59e0b",integer:"#f59e0b",boolean:"#8b5cf6",array:"#10b981",object:"#6366f1"};function a(k){return k.properties&&Object.keys(k.properties).length>0?!0:k._subSchemas?k._subSchemas.some(a):!1}function s(k){if(k._combiner){if(k._combiner==="allOf"){const Y=k.type??(a(k)?"object":"any");return Y==="array"&&k.items?`array<${a(k.items)?"object":k.items.type??"any"}>`:k.enum?`${Y} enum`:Y}return a(k)?"object":k._combiner}const I=k.type??"any";return I==="array"&&k.items?`array<${a(k.items)?"object":k.items.type??"any"}>`:k.enum?`${I} enum`:I}function c(k){const I=k.split(/[< ]/)[0],Y=l[I]??"#94a3b8";return f(io,{size:"small",bordered:!1,style:{backgroundColor:`${Y}18`,color:Y,fontFamily:"var(--font-mono)",fontSize:"11px",padding:"0 6px"}},()=>k)}function d(k){const I=k.enum,Y=k.enumVarnames,j=k.enumDescriptions,ee=!!(Y||j),D=()=>f(io,{size:"small",bordered:!1,style:{fontSize:"11px",cursor:"pointer",color:"#64748b",backgroundColor:"#64748b18"}},()=>`enum(${I.length})`),M=()=>f("div",{style:{maxWidth:"360px",maxHeight:"280px",overflowY:"auto"}},I.map((N,ve)=>{const J=[],Ce=JSON.stringify(N);return J.push(f("div",{style:{display:"flex",alignItems:"baseline",gap:"6px"}},[f("code",{style:{fontFamily:"var(--font-mono)",fontSize:"12px",color:"#0ea5e9",background:"var(--color-code-bg, #f1f5f9)",padding:"1px 5px",borderRadius:"3px",flexShrink:0}},Ce),...Y!=null&&Y[ve]?[f("span",{style:{fontFamily:"var(--font-mono)",fontSize:"11px",color:"#8b5cf6"}},Y[ve])]:[]])),j!=null&&j[ve]&&J.push(f("div",{style:{fontSize:"11px",color:"var(--color-text-muted, #94a3b8)",paddingLeft:"4px",marginTop:"2px",lineHeight:"1.4"}},j[ve])),f("div",{style:{padding:"4px 0",borderBottom:ve<I.length-1?"1px solid var(--color-border, #e2e8f0)":"none"}},J)}));if(!ee){const N=I.map(ve=>JSON.stringify(ve)).join(" | ");return f(Lo,{trigger:"hover"},{trigger:D,default:()=>f("code",{style:{fontSize:"12px"}},N)})}return f(Lo,{trigger:"hover",placement:"bottom"},{trigger:D,default:M})}function u(k){let I={},Y=[...k.required??[]];if(k._combiner&&k._subSchemas)for(const j of k._subSchemas){const ee=u(j);I={...I,...ee.props},Y=Y.concat(ee.required)}return k.properties&&(I={...I,...k.properties}),{props:I,required:Y}}function p(k,I,Y){if(Y>4)return;const j=B(k),{props:ee,required:D}=u(j);if(Object.keys(ee).length===0)return;const M=new Set(D),N=Object.entries(ee).map(([ve,J])=>{const Ce=`${I}.${ve}`;return{key:Ce,name:ve,type:s(J),required:M.has(ve),description:J.description??"",example:J.example,schema:J,deprecated:J.deprecated,depth:Y,children:p(J,Ce,Y+1)}});return N.length>0?N:void 0}const v=["path","query","header","cookie"],h={path:"Path 参数",query:"Query 参数",header:"Header 参数",cookie:"Cookie 参数"},g={path:"#3b82f6",query:"#10b981",header:"#f59e0b",cookie:"#8b5cf6"},b=E(()=>{const k=[];for(const I of v){const Y=t.endpoint.parameters.filter(D=>D.in===I);if(!Y.length)continue;const j=Y.map(D=>({key:`param:${D.in}:${D.name}`,name:D.name,in:D.in,type:s(D.schema),required:D.required,description:D.description??"",example:D.example??D.schema.example,schema:D.schema,deprecated:D.deprecated,depth:0,children:p(D.schema,`param:${D.in}:${D.name}`,0)}));let ee;if(I==="path"){let D=t.endpoint.path;for(const M of Y){const N=M.example??M.schema.example??On(M.schema);D=D.replace(`{${M.name}}`,String(N??M.name))}ee=D}else{const D={};for(const M of Y)D[M.name]=M.example??M.schema.example??On(M.schema);ee=i(D)}k.push({location:I,label:h[I]??I,color:g[I]??"#94a3b8",rows:j,exampleJson:ee})}return k}),m=L([]);function x(k){return k==null?"":typeof k=="string"?k:JSON.stringify(k)}function S(k){const I=x(k);return I?f("code",{style:{fontFamily:"var(--font-mono)",fontSize:"11.5px",color:"#0ea5e9",background:"var(--color-code-bg)",padding:"1px 5px",borderRadius:"3px"}},I):f("span",{style:{color:"var(--color-text-muted)",fontSize:"13px"}},"-")}function C(k){return f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:k?"#10b981":"#d1d5db","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[f("path",{d:k?"M20 6L9 17l-5-5":"M18 6L6 18M6 6l12 12"})])}function y(k){return k.depth>0?{class:`row-depth-${Math.min(k.depth,4)}`}:{}}function R(k){return f("span",{style:{fontFamily:"var(--font-mono)",fontSize:"13px"}},k)}const P=[{key:"name",title:"名称",width:360,tree:!0,ellipsis:{tooltip:!0},render:k=>R(k.name)},{key:"type",title:"类型",width:140,render:k=>c(k.type)},{key:"required",title:"必填",width:50,align:"center",render:k=>C(k.required)},{key:"example",title:"示例",width:160,ellipsis:{tooltip:!0},render:k=>S(k.example)},{key:"description",title:"描述",ellipsis:{tooltip:!0},render:k=>{const I=[];return k.description?I.push(f("span",{style:{fontSize:"13px"}},k.description)):!k.deprecated&&!k.schema.enum&&I.push(f("span",{style:{fontSize:"13px",color:"var(--color-text-muted)"}},"-")),k.deprecated&&I.push(f(io,{size:"small",type:"warning",bordered:!1,style:{fontSize:"11px",verticalAlign:"middle",marginLeft:"4px"}},()=>"deprecated")),k.schema.enum&&I.push(d(k.schema)),f("span",{},I)}}],w=L("");Ze(()=>t.endpoint,k=>{var I;(I=k.requestBody)!=null&&I.mediaTypes.length?w.value=k.requestBody.mediaTypes[0].mediaType:w.value=""},{immediate:!0,deep:!0});function _(k){const I=parseInt(k,10);return I>=500?"#ef4444":I>=400?"#f59e0b":I>=300?"#0ea5e9":I>=200?"#10b981":"#94a3b8"}function B(k){if(k.type==="array"&&k.items)return k.items;if(k._combiner==="allOf"&&k._subSchemas){for(const I of k._subSchemas)if(I.type==="array"&&I.items)return I.items}return k}function z(k,I,Y){if(Y>4)return;const j=B(k),{props:ee,required:D}=u(j);if(Object.keys(ee).length===0)return;const M=new Set(D),N=Object.entries(ee).map(([ve,J])=>{const Ce=`${I}.${ve}`;return{key:Ce,name:ve,type:s(J),required:M.has(ve),description:J.description??"",example:J.example,schema:J,depth:Y,children:z(J,Ce,Y+1)}});return N.length>0?N:void 0}const O=E(()=>t.endpoint.responses.map(k=>{var M;const I=k.mediaTypes.find(N=>N.schema),Y=I==null?void 0:I.schema,j=`resp:${k.statusCode}`,ee=Y?z(Y,j,0)??[]:[];let D="";return I&&(I.example!==void 0?D=i(I.example):((M=I.schema)==null?void 0:M.example)!==void 0?D=i(I.schema.example):I.schema&&(D=i(On(I.schema)))),{statusCode:k.statusCode,description:k.description,mediaType:I==null?void 0:I.mediaType,color:_(k.statusCode),rows:ee,exampleJson:D}})),A=L([]),U=L(new Set);function W(k){const I=new Set(U.value);I.has(k)?I.delete(k):I.add(k),U.value=I}const F=[{key:"name",title:"字段",width:360,tree:!0,ellipsis:{tooltip:!0},render:k=>R(k.name)},{key:"type",title:"类型",width:140,render:k=>c(k.type)},{key:"required",title:"必填",width:50,align:"center",render:k=>C(k.required)},{key:"example",title:"示例",width:160,ellipsis:{tooltip:!0},render:k=>S(k.example)},{key:"description",title:"描述",ellipsis:{tooltip:!0},render:k=>{const I=[];return k.description?I.push(f("span",{style:{fontSize:"13px"}},k.description)):I.push(f("span",{style:{fontSize:"13px",color:"var(--color-text-muted)"}},"-")),k.schema.enum&&I.push(d(k.schema)),f("span",{},I)}}],T=E(()=>{var I,Y;const k=(I=t.endpoint.requestBody)==null?void 0:I.mediaTypes.find(j=>j.mediaType===w.value);return k?k.example!==void 0?i(k.example):((Y=k.schema)==null?void 0:Y.example)!==void 0?i(k.schema.example):k.schema?i(On(k.schema)):"":""});return(k,I)=>(me(),mt(he(Yu),{class:"endpoint-detail"},{default:He(()=>[K("div",PD,[K("div",_D,[K("div",$D,[Se(Hy,{method:e.endpoint.method},null,8,["method"]),K("span",TD,Ve(e.endpoint.path),1),Se(In,{text:e.endpoint.path},null,8,["text"]),e.endpoint.deprecated?(me(),mt(he(io),{key:0,size:"small",type:"warning",bordered:!1,style:{"font-size":"11px"}},{default:He(()=>[...I[3]||(I[3]=[it(" deprecated ",-1)])]),_:1})):et("",!0),e.endpoint._isWebhook?(me(),mt(he(io),{key:1,size:"small",bordered:!1,style:{"font-size":"11px",background:"#8b5cf618",color:"#8b5cf6"}},{default:He(()=>[...I[4]||(I[4]=[it(" webhook ",-1)])]),_:1})):et("",!0)]),e.endpoint.summary?(me(),Re("p",zD,Ve(e.endpoint.summary),1)):et("",!0),e.endpoint.description?(me(),Re("p",ED,Ve(e.endpoint.description),1)):et("",!0)]),(me(),mt(he(rc),{key:e.endpoint.id,value:n.value,type:"line",size:"small",class:"detail-tabs","onUpdate:value":r},{default:He(()=>[Se(he(Ho),{name:"params",tab:"参数",disabled:!e.endpoint.parameters.length},{default:He(()=>[e.endpoint.parameters.length?(me(!0),Re(Ue,{key:1},To(b.value,Y=>(me(),Re("div",{key:Y.location,class:"param-group"},[K("div",ID,[K("span",{class:"param-group-dot",style:$o({background:Y.color})},null,4),K("span",AD,Ve(Y.label),1),K("span",FD,Ve(Y.rows.length),1)]),Se(he(Du),{columns:P,data:Y.rows,"row-key":j=>j.key,"expanded-row-keys":m.value,"row-props":y,indent:20,size:"small",pagination:!1,"onUpdate:expandedRowKeys":I[0]||(I[0]=j=>m.value=j)},null,8,["data","row-key","expanded-row-keys"]),Y.exampleJson?(me(),Re("div",MD,[K("div",BD,[K("span",LD,Ve(Y.location==="path"?"URL 示例":Y.label+" JSON 示例"),1),Se(In,{text:Y.exampleJson},null,8,["text"])]),K("pre",DD,Ve(Y.exampleJson),1)])):et("",!0)]))),128)):(me(),Re("div",OD,[Se(he(kr),{description:"无需参数",size:"small"})]))]),_:1},8,["disabled"]),Se(he(Ho),{name:"body",tab:"请求体",disabled:!e.endpoint.requestBody},{default:He(()=>[e.endpoint.requestBody?(me(),Re(Ue,{key:0},[K("div",HD,[Se(he(la),{value:w.value,"onUpdate:value":I[1]||(I[1]=Y=>w.value=Y),size:"small",style:{width:"240px"},options:e.endpoint.requestBody.mediaTypes.map(Y=>({label:Y.mediaType,value:Y.mediaType}))},null,8,["value","options"]),e.endpoint.requestBody.required?(me(),mt(he(io),{key:0,size:"small",type:"error",bordered:!1,style:{"font-size":"11px"}},{default:He(()=>[...I[5]||(I[5]=[it(" required ",-1)])]),_:1})):et("",!0)]),(me(!0),Re(Ue,null,To(e.endpoint.requestBody.mediaTypes,Y=>(me(),Re(Ue,{key:Y.mediaType},[Y.mediaType===w.value?(me(),Re("div",ND,[Y.schema?(me(),mt(SM,{key:0,schema:Y.schema},null,8,["schema"])):(me(),Re("div",jD,[Se(he(kr),{description:"无 Schema 定义",size:"small"})]))])):et("",!0)],64))),128)),T.value?(me(),Re("div",WD,[K("div",VD,[I[6]||(I[6]=K("span",{class:"example-title"},"JSON 示例",-1)),Se(In,{text:T.value},null,8,["text"])]),K("pre",UD,Ve(T.value),1)])):et("",!0)],64)):et("",!0)]),_:1},8,["disabled"]),Se(he(Ho),{name:"responses",tab:"响应"},{default:He(()=>[e.endpoint.responses.length?(me(!0),Re(Ue,{key:1},To(O.value,Y=>(me(),Re("div",{key:Y.statusCode,class:"param-group"},[K("div",{class:"param-group-header param-group-header--clickable",onClick:j=>W(Y.statusCode)},[(me(),Re("svg",{class:Pt(["collapse-arrow",{"collapse-arrow--collapsed":U.value.has(Y.statusCode)}]),xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...I[7]||(I[7]=[K("polyline",{points:"6 9 12 15 18 9"},null,-1)])],2)),Se(he(io),{size:"small",bordered:!1,style:$o({backgroundColor:Y.color+"18",color:Y.color,fontFamily:"var(--font-mono)",fontSize:"12px",padding:"0 8px"})},{default:He(()=>[it(Ve(Y.statusCode),1)]),_:2},1032,["style"]),Y.mediaType?(me(),Re("span",GD,Ve(Y.mediaType),1)):et("",!0),Y.description?(me(),Re("span",XD,Ve(Y.description),1)):et("",!0)],8,qD),U.value.has(Y.statusCode)?et("",!0):(me(),Re(Ue,{key:0},[Y.rows.length?(me(),mt(he(Du),{key:0,columns:F,data:Y.rows,"row-key":j=>j.key,"expanded-row-keys":A.value,"row-props":y,indent:20,size:"small",pagination:!1,"onUpdate:expandedRowKeys":I[2]||(I[2]=j=>A.value=j)},null,8,["data","row-key","expanded-row-keys"])):(me(),Re("div",YD,"无 Schema 定义")),Y.exampleJson?(me(),Re("div",JD,[K("div",ZD,[I[8]||(I[8]=K("span",{class:"example-title"},"JSON 示例",-1)),Se(In,{text:Y.exampleJson},null,8,["text"])]),K("pre",QD,Ve(Y.exampleJson),1)])):et("",!0)],64))]))),128)):(me(),Re("div",KD,[Se(he(kr),{description:"无响应定义",size:"small"})]))]),_:1}),Se(he(Ho),{name:"debug",tab:"调试 ▶"},{default:He(()=>[Se(RD)]),_:1})]),_:1},8,["value"]))])]),_:1}))}}),[["__scopeId","data-v-26dfef0a"]]),t7={class:"main-content"},o7={key:0,class:"state-center"},n7={key:1,class:"state-center"},r7={class:"error-box"},i7={key:2,class:"state-center"},l7={class:"welcome-inner"},a7={key:0,class:"state-center"},s7=Ot(ge({__name:"MainContent",setup(e){const t=_r(),o=E(()=>t.groups.length>0),n=E(()=>t.currentEndpoint);return(r,i)=>(me(),Re("main",t7,[he(t).loading?(me(),Re("div",o7,[Se(he(Ju),{size:"large"})])):he(t).error?(me(),Re("div",n7,[K("div",r7,[Se(he(n0),{type:"error",title:"规范解析失败"},{default:He(()=>[it(Ve(he(t).error),1)]),_:1}),Se(he(ht),{size:"small",style:{"margin-top":"12px"},onClick:he(t).openImporter},{default:He(()=>[...i[0]||(i[0]=[it(" 重新导入 ",-1)])]),_:1},8,["onClick"])])])):o.value?(me(),Re(Ue,{key:3},[n.value?(me(),mt(e7,{key:1,endpoint:n.value},null,8,["endpoint"])):(me(),Re("div",a7,[...i[4]||(i[4]=[K("span",{class:"muted-hint"},"← 从左侧选择一个接口",-1)])]))],64)):(me(),Re("div",i7,[K("div",l7,[i[2]||(i[2]=K("h2",{class:"welcome-title"},"FDOC",-1)),i[3]||(i[3]=K("p",{class:"welcome-desc"},"OpenAPI 3.x 接口文档与调试工具",-1)),Se(he(ht),{type:"primary",onClick:he(t).openImporter},{default:He(()=>[...i[1]||(i[1]=[it("导入 OpenAPI",-1)])]),_:1},8,["onClick"])])]))]))}}),[["__scopeId","data-v-c1db5596"]]),c7={key:0},d7={key:1,class:"url-tab"},u7={class:"headers-section"},f7=["onUpdate:modelValue"],h7=["onUpdate:modelValue"],p7=["onClick"],v7={key:0,class:"headers-empty"},g7={class:"url-actions"},s1="fdoc_last_url",m7=Ot(ge({__name:"SpecImporter",setup(e){const t=_r(),{loading:o,error:n,loadFromUrl:r,loadFromFile:i}=My(),l=localStorage.getItem(s1)??"",a=L(l),s=L(l?"url":"file"),c=L([]);Ze(a,S=>{c.value=t.getHeadersFor(S.trim()).map(C=>({...C}))},{immediate:!0});function d(){c.value.push({key:"",value:""})}function u(S){c.value.splice(S,1)}const p=L(!1);function v(S){S.preventDefault(),p.value=!0}function h(){p.value=!1}async function g(S){var R,P;S.preventDefault(),p.value=!1;const C=(P=(R=S.dataTransfer)==null?void 0:R.files)==null?void 0:P[0];if(!C)return;(await i(C)).ok&&x()}async function b(S){var R;const C=(R=S.target.files)==null?void 0:R[0];if(!C)return;(await i(C)).ok&&x()}async function m(){const S=a.value.trim();if(!S)return;t.saveHeadersFor(S,c.value),(await r(S)).ok&&(localStorage.setItem(s1,S),x())}function x(){t.closeImporter(),n.value=null}return(S,C)=>(me(),mt(he(el),{show:he(t).importerOpen,"mask-closable":!he(o),style:{width:"520px"},"onUpdate:show":C[2]||(C[2]=y=>!y&&x())},{default:He(()=>[Se(he(ra),{title:"导入 OpenAPI",bordered:!1,size:"medium",role:"dialog"},{"header-extra":He(()=>[Se(he(ht),{text:"",size:"small",style:{color:"var(--color-text-muted)"},onClick:x},{default:He(()=>[...C[3]||(C[3]=[it("✕",-1)])]),_:1})]),default:He(()=>[Se(he(Ju),{show:he(o)},{default:He(()=>[Se(he(rc),{value:s.value,"onUpdate:value":C[0]||(C[0]=y=>s.value=y),type:"segment",size:"small",style:{"margin-bottom":"16px"}},{default:He(()=>[Se(he(Ho),{name:"file",tab:"上传文件"}),Se(he(Ho),{name:"url",tab:"URL 导入"})]),_:1},8,["value"]),s.value==="file"?(me(),Re("div",c7,[K("label",{class:Pt(["drop-zone",{dragging:p.value}]),onDragover:v,onDragleave:h,onDrop:g},[K("input",{type:"file",accept:".json",class:"file-input",onChange:b},null,32),C[4]||(C[4]=K("span",{class:"drop-icon"},[K("svg",{width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},[K("polyline",{points:"16 16 12 12 8 16"}),K("line",{x1:"12",y1:"12",x2:"12",y2:"21"}),K("path",{d:"M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"})])],-1)),C[5]||(C[5]=K("span",{class:"drop-text"},"点击或拖拽文件到此区域导入",-1)),C[6]||(C[6]=K("span",{class:"drop-hint"},"支持 OpenAPI 3.x JSON 格式",-1))],34)])):(me(),Re("div",d7,[Se(he(qt),{value:a.value,"onUpdate:value":C[1]||(C[1]=y=>a.value=y),placeholder:"https://example.com/openapi.json",clearable:"",size:"medium",onKeydown:Ow(m,["enter"])},null,8,["value"]),K("div",u7,[K("div",{class:"headers-bar"},[C[7]||(C[7]=K("span",{class:"headers-label"},"请求头",-1)),K("button",{class:"headers-add",onClick:d},"+ 添加")]),(me(!0),Re(Ue,null,To(c.value,(y,R)=>(me(),Re("div",{key:R,class:"header-row"},[Ut(K("input",{"onUpdate:modelValue":P=>y.key=P,class:"hi hi--key",placeholder:"Header"},null,8,f7),[[Ei,y.key]]),Ut(K("input",{"onUpdate:modelValue":P=>y.value=P,class:"hi hi--val",placeholder:"Value"},null,8,h7),[[Ei,y.value]]),K("button",{class:"header-del",onClick:P=>u(R)},[...C[8]||(C[8]=[K("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round"},[K("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),K("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])],8,p7)]))),128)),c.value.length===0?(me(),Re("p",v7,"暂无自定义请求头")):et("",!0)]),K("div",g7,[Se(he(ht),{type:"primary",disabled:!a.value.trim(),onClick:m},{default:He(()=>[...C[9]||(C[9]=[it(" 导入 ",-1)])]),_:1},8,["disabled"])])])),he(n)?(me(),mt(he(n0),{key:2,type:"error",title:he(n),style:{"margin-top":"14px"}},null,8,["title"])):et("",!0)]),_:1},8,["show"])]),_:1})]),_:1},8,["show","mask-closable"]))}}),[["__scopeId","data-v-4eed4792"]]),b7={class:"app-root"},x7={class:"app-body"},c1="fdoc_theme",y7=Ot(ge({__name:"App",setup(e){const t=_r(),o=KS(),n=Av(),r=L2(),i=localStorage.getItem(c1),l=L(i),a=E(()=>l.value!==null?l.value==="dark":r.value==="dark"),s=E(()=>a.value?nA:null),c=E(()=>a.value?iA:rA);Lt(()=>{document.documentElement.setAttribute("data-theme",a.value?"dark":"light")});function d(){const v=a.value?"light":"dark";l.value=v,localStorage.setItem(c1,v)}const{message:u}=gO(["message"]);let p=!1;return Ze(()=>o.query.ep,v=>{var b;const h=typeof v=="string"?v:void 0;if(!h||h===t.currentEndpointId)return;if(t.allEndpoints.some(m=>m.id===h))t.selectEndpoint(h);else if(t.groups.length>0){u.warning(`接口 "${h}" 不存在,已加载第一个接口`);const m=(b=t.allEndpoints[0])==null?void 0:b.id;m&&t.selectEndpoint(m),n.replace({query:{}})}}),Ze(()=>t.currentEndpointId,v=>{if(!p)return;const h=o.query.ep;v&&v!==h?n.replace({query:{ep:v}}):!v&&h&&n.replace({query:{}})}),Bt(()=>{t.restoreCache();const v=o.query.ep;v&&t.groups.length>0&&(t.allEndpoints.some(g=>g.id===v)?t.selectEndpoint(v):(u.warning(`接口 "${v}" 不存在,自动选中第一个接口`),n.replace({query:{}}))),p=!0}),(v,h)=>(me(),mt(he(w0),{theme:s.value,"theme-overrides":c.value},{default:He(()=>[Se(he(zx),null,{default:He(()=>[K("div",b7,[Se(XF,{"is-dark":a.value,onToggleTheme:d},null,8,["is-dark"]),K("div",x7,[Se(hM),Se(s7)]),Se(m7)])]),_:1})]),_:1},8,["theme","theme-overrides"]))}}),[["__scopeId","data-v-4962dc25"]]);function C7(e,t){const o=typeof e=="string"?document.querySelector(e):e;if(!o)throw new Error(`[fdoc] mount: cannot find element "${String(e)}"`);const n=Bw(),r=US({history:kS(),routes:[{path:"/",component:{template:"<div/>"}}]}),i=ev(y7);if(i.use(n),i.use(r),r.isReady().then(()=>i.mount(o)),t!=null&&t.url){const l=_r(n);fetch(t.url).then(a=>a.json()).then(a=>{l.loadSpec(a),l.setSourceUrl(t.url)}).catch(a=>console.error("[fdoc] Failed to load spec from url:",a))}return()=>i.unmount()}return Co.mount=C7,Object.defineProperty(Co,Symbol.toStringTag,{value:"Module"}),Co}({});
|
|
3720
|
+
`).length),l=E(()=>i.value>yL),a=L(!1),s=L(!1);async function c(){try{await navigator.clipboard.writeText(t.code),s.value=!0,setTimeout(()=>s.value=!1,1500)}catch{}}function d(){let u=document.getElementById(l1);u||(u=document.createElement("link"),u.id=l1,u.rel="stylesheet",document.head.appendChild(u)),u.href=o.value?wL:CL}return Ze(o,d,{immediate:!0}),Bt(()=>$t(d)),(u,p)=>(me(),Re("div",{class:Pt(["json-highlight",{dark:o.value}])},[K("div",pL,[K("span",vL,Ve(e.language),1),Se(he(ht),{size:"tiny",text:"",class:"copy-btn",style:$o({color:s.value?"#10b981":void 0}),onClick:c},{default:He(()=>[it(Ve(s.value?"已复制":"复制"),1)]),_:1},8,["style"])]),K("div",{class:Pt(["code-wrap",{collapsed:l.value&&!a.value}])},[K("pre",gL,[K("code",{innerHTML:r.value},null,8,mL)]),l.value&&!a.value?(me(),Re("div",bL,[Se(he(ht),{size:"small",onClick:p[0]||(p[0]=v=>a.value=!0)},{default:He(()=>[it("展开全部 ("+Ve(i.value)+" 行)",1)]),_:1})])):et("",!0)],2),l.value&&a.value?(me(),Re("div",xL,[Se(he(ht),{size:"small",text:"",onClick:p[1]||(p[1]=v=>a.value=!1)},{default:He(()=>[...p[2]||(p[2]=[it("收起",-1)])]),_:1})])):et("",!0)],2))}}),[["__scopeId","data-v-aec27471"]]),SL=ge({__name:"JsonResponseView",props:{body:{}},setup(e){const t=e,o=E(()=>{try{return zr(JSON.parse(t.body))}catch{return t.body}});return(n,r)=>(me(),mt(a1,{code:o.value,language:"json"},null,8,["code"]))}}),kL={class:"image-view"},RL=["src","alt"],PL={class:"meta"},_L=["href"],$L=Ot(ge({__name:"ImageResponseView",props:{body:{},contentType:{}},setup(e){return(t,o)=>(me(),Re("div",kL,[K("img",{src:e.body,alt:e.contentType,class:"preview-img"},null,8,RL),K("div",PL,[K("a",{href:e.body,download:"response-image",class:"download-link"},"下载图片",8,_L)])]))}}),[["__scopeId","data-v-b9fd1d77"]]),TL=ge({__name:"HtmlResponseView",props:{body:{}},setup(e){return(t,o)=>(me(),mt(a1,{code:e.body,language:"xml"},null,8,["code"]))}}),zL={class:"raw-view"},EL={class:"toolbar"},OL={class:"hint"},IL={class:"raw-body"},AL=Ot(ge({__name:"RawResponseView",props:{body:{},contentType:{}},setup(e){const t=e;function o(){const n=t.contentType.includes("octet-stream")?"bin":"txt",r=new Blob([t.body],{type:t.contentType||"text/plain"}),i=URL.createObjectURL(r),l=document.createElement("a");l.href=i,l.download=`response.${n}`,l.click(),URL.revokeObjectURL(i)}return(n,r)=>(me(),Re("div",zL,[K("div",EL,[K("span",OL,Ve(e.contentType||"text/plain"),1),Se(he(ht),{size:"tiny",text:"",onClick:o},{default:He(()=>[...r[0]||(r[0]=[it("下载",-1)])]),_:1})]),K("pre",IL,Ve(e.body),1)]))}}),[["__scopeId","data-v-30120298"]]),FL={class:"response-viewer"},ML={key:0,class:"state-center"},BL={key:1,class:"state-center"},LL={class:"status-bar"},DL={class:"body-wrap"},HL={class:"headers-pre"},NL=Ot(ge({__name:"ResponseViewer",props:{response:{},loading:{type:Boolean}},setup(e){const t=e;function o(i){return i>=500?"#ef4444":i>=400?"#f59e0b":i>=300?"#0ea5e9":i>=200?"#10b981":"#94a3b8"}const n=E(()=>{if(!t.response)return null;switch(t.response.bodyType){case"json":return SL;case"image":return $L;case"html":return TL;default:return AL}}),r=E(()=>t.response?zr(t.response.headers):"");return(i,l)=>(me(),Re("div",FL,[e.loading?(me(),Re("div",ML,[Se(he(Ju),{size:"medium"}),l[0]||(l[0]=K("span",{class:"state-hint"},"请求中...",-1))])):e.response?(me(),Re(Ue,{key:2},[K("div",LL,[Se(he(io),{size:"small",bordered:!1,style:$o({backgroundColor:`${o(e.response.status)}18`,color:o(e.response.status),fontFamily:"var(--font-mono)",fontSize:"12px",padding:"0 8px"})},{default:He(()=>[it(Ve(e.response.status)+" "+Ve(e.response.statusText),1)]),_:1},8,["style"]),Se(he(io),{size:"small",bordered:!1,style:{"font-size":"11px",color:"var(--color-text-muted)",background:"var(--color-bg-subtle)"}},{default:He(()=>[it(Ve(e.response.duration)+" ms ",1)]),_:1}),Se(he(io),{size:"small",bordered:!1,style:{"font-size":"11px","font-family":"var(--font-mono)",color:"var(--color-text-muted)",background:"var(--color-bg-subtle)"}},{default:He(()=>[it(Ve(e.response.contentType||"—"),1)]),_:1})]),Se(he(rc),{type:"line",size:"small","default-value":"body"},{default:He(()=>[Se(he(Ho),{name:"body",tab:"响应体"},{default:He(()=>[K("div",DL,[(me(),mt(Hh(n.value),{body:e.response.body,"content-type":e.response.contentType},null,8,["body","content-type"]))])]),_:1}),Se(he(Ho),{name:"headers",tab:"响应头"},{default:He(()=>[K("pre",HL,Ve(r.value),1)]),_:1})]),_:1})],64)):(me(),Re("div",BL,[Se(he(kr),{description:"点击「▶ 发送」发起请求",size:"small"})]))]))}}),[["__scopeId","data-v-9c1034fa"]]),jL={class:"history-list"},WL={class:"list-header"},VL={key:0,class:"search-bar"},UL={key:0,class:"empty-state"},KL=["onClick"],qL={class:"item-left"},GL=["title"],XL={class:"item-right"},YL={class:"item-duration"},JL={class:"item-time"},ZL={class:"history-detail"},QL={class:"detail-section"},eD={class:"detail-url"},tD={class:"detail-url-text"},oD={class:"detail-block"},nD={class:"detail-block-header"},rD={class:"detail-pre"},iD={key:0,class:"detail-block"},lD={class:"detail-block-header"},aD={class:"detail-pre"},sD={class:"detail-section detail-section--response"},cD={class:"detail-section-header"},dD={class:"detail-duration"},uD={class:"detail-block"},fD={class:"detail-block-header"},hD={class:"detail-pre"},pD={class:"detail-block"},vD={class:"detail-block-header"},gD={class:"detail-pre"},mD=Ot(ge({__name:"HistoryList",setup(e){const t=Tr(),o=L(""),n=L(null),r=E(()=>{const p=t.currentRequest.endpointId;return p?t.history.filter(v=>v.request.endpointId===p):t.history}),i=E(()=>{const p=o.value.trim().toLowerCase();return p?r.value.filter(v=>v.request.method.toLowerCase().includes(p)||v.request.url.toLowerCase().includes(p)||String(v.response.status).includes(p)):r.value});function l(p){return p>=500?"#ef4444":p>=400?"#f59e0b":p>=300?"#0ea5e9":p>=200?"#10b981":"#94a3b8"}function a(p){return new Date(p).toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit",second:"2-digit"})}function s(p){return p>=1e3?`${(p/1e3).toFixed(1)}s`:`${p}ms`}function c(p){try{const v=new URL(p);return v.pathname+v.search}catch{return p}}function d(p){n.value=n.value===p?null:p}function u(p){if(!p)return"(empty)";try{return zr(JSON.parse(p))}catch{return p.slice(0,2e3)}}return(p,v)=>(me(),Re("div",jL,[K("div",WL,[v[5]||(v[5]=K("span",{class:"list-title"},"调试历史",-1)),r.value.length?(me(),mt(he(ry),{key:0,onPositiveClick:v[0]||(v[0]=h=>he(t).clearEndpointHistory(he(t).currentRequest.endpointId))},{trigger:He(()=>[Se(he(ht),{size:"tiny",text:"",style:{color:"var(--color-text-muted)"}},{default:He(()=>[...v[3]||(v[3]=[it("清空",-1)])]),_:1})]),default:He(()=>[v[4]||(v[4]=it(" 确定清空该接口的调试历史? ",-1))]),_:1})):et("",!0)]),r.value.length?(me(),Re("div",VL,[Se(he(qt),{value:o.value,"onUpdate:value":v[1]||(v[1]=h=>o.value=h),size:"small",placeholder:"路径 / 方法 / 状态码",clearable:""},null,8,["value"])])):et("",!0),Se(he(Yu),{style:{"max-height":"520px"}},{default:He(()=>[i.value.length?et("",!0):(me(),Re("div",UL,[Se(he(kr),{description:r.value.length?"无匹配记录":"暂无调试历史",size:"small"},null,8,["description"])])),(me(!0),Re(Ue,null,To(i.value,h=>(me(),Re(Ue,{key:h.id},[K("div",{class:Pt(["history-item",{"history-item--expanded":n.value===h.id}]),onClick:g=>d(h.id)},[K("div",qL,[Se(Hy,{method:h.request.method},null,8,["method"]),K("span",{class:"item-path",title:h.request.url},Ve(c(h.request.url)),9,GL)]),K("div",XL,[K("span",{class:"item-status",style:$o({color:l(h.response.status)})},Ve(h.response.status),5),K("span",YL,Ve(s(h.response.duration)),1),K("span",JL,Ve(a(h.timestamp)),1),Se(he(ht),{text:"",size:"tiny",class:"action-btn",title:"回填请求",onClick:jr(g=>he(t).restoreFromHistory(h),["stop"])},{default:He(()=>[...v[6]||(v[6]=[K("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[K("polyline",{points:"1 4 1 10 7 10"}),K("path",{d:"M3.51 15a9 9 0 1 0 .49-4.95"})],-1)])]),_:1},8,["onClick"]),Se(he(ry),{onPositiveClick:jr(g=>he(t).removeHistory(h.id),["stop"])},{trigger:He(()=>[Se(he(ht),{text:"",size:"tiny",class:"action-btn del-btn",onClick:v[2]||(v[2]=jr(()=>{},["stop"]))},{default:He(()=>[...v[7]||(v[7]=[K("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[K("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),K("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])]),_:1})]),default:He(()=>[v[8]||(v[8]=it(" 删除这条记录? ",-1))]),_:1},8,["onPositiveClick"])])],10,KL),Se(he(Az),{show:n.value===h.id},{default:He(()=>[K("div",ZL,[K("div",QL,[v[11]||(v[11]=K("div",{class:"detail-section-header"},[K("span",{class:"detail-section-title"},"请求")],-1)),K("div",eD,[K("span",tD,Ve(h.request.url),1),Se(In,{text:h.request.url},null,8,["text"])]),K("div",oD,[K("div",nD,[v[9]||(v[9]=K("span",{class:"detail-label"},"Headers",-1)),Se(In,{text:he(zr)(h.request.headers)},null,8,["text"])]),K("pre",rD,Ve(he(zr)(h.request.headers)),1)]),h.request.body?(me(),Re("div",iD,[K("div",lD,[v[10]||(v[10]=K("span",{class:"detail-label"},"Body",-1)),Se(In,{text:h.request.body},null,8,["text"])]),K("pre",aD,Ve(u(h.request.body)),1)])):et("",!0)]),K("div",sD,[K("div",cD,[v[12]||(v[12]=K("span",{class:"detail-section-title"},"响应",-1)),K("span",{class:"detail-status-text",style:$o({color:l(h.response.status)})},Ve(h.response.status)+" "+Ve(h.response.statusText),5),K("span",dD,Ve(s(h.response.duration)),1)]),K("div",uD,[K("div",fD,[v[13]||(v[13]=K("span",{class:"detail-label"},"Headers",-1)),Se(In,{text:he(zr)(h.response.headers)},null,8,["text"])]),K("pre",hD,Ve(he(zr)(h.response.headers)),1)]),K("div",pD,[K("div",vD,[v[14]||(v[14]=K("span",{class:"detail-label"},"Body",-1)),Se(In,{text:h.response.body??""},null,8,["text"])]),K("pre",gD,Ve(u(h.response.body)),1)])])])]),_:2},1032,["show"])],64))),128))]),_:1})]))}}),[["__scopeId","data-v-e429157a"]]),bD={class:"debug-panel"},xD={key:0,class:"empty-state"},yD={class:"panel-section"},CD={class:"panel-section"},wD={class:"tab-bar"},SD={key:0,class:"tab-count"},kD={class:"tab-content"},RD=Ot(ge({__name:"DebugPanel",setup(e){const t=Tr(),o=L("response"),n=E(()=>{const r=t.currentRequest.endpointId;return r?t.history.filter(i=>i.request.endpointId===r).length:0});return Ze(()=>t.currentRequest,r=>{console.log("currentRequest",r)}),Ze(()=>t.currentResponse,r=>{r&&(o.value="response")}),(r,i)=>(me(),Re("div",bD,[he(t).currentRequest.url?(me(),Re(Ue,{key:1},[K("section",yD,[Se(bB)]),i[3]||(i[3]=K("div",{class:"divider"},null,-1)),K("section",CD,[K("div",wD,[K("button",{class:Pt(["tab-btn",{"tab-btn--active":o.value==="response"}]),onClick:i[0]||(i[0]=l=>o.value="response")}," 响应 ",2),K("button",{class:Pt(["tab-btn",{"tab-btn--active":o.value==="history"}]),onClick:i[1]||(i[1]=l=>o.value="history")},[i[2]||(i[2]=it(" 历史 ",-1)),n.value?(me(),Re("span",SD,Ve(n.value),1)):et("",!0)],2)]),K("div",kD,[Ut(Se(NL,{response:he(t).currentResponse,loading:he(t).sending},null,8,["response","loading"]),[[Un,o.value==="response"]]),Ut(Se(mD,null,null,512),[[Un,o.value==="history"]])])])],64)):(me(),Re("div",xD,[Se(he(kr),{description:"切换到调试模式后自动初始化请求",size:"small"})]))]))}}),[["__scopeId","data-v-d5a6183a"]]),PD={class:"detail-inner"},_D={class:"endpoint-header"},$D={class:"endpoint-title-row"},TD={class:"endpoint-path"},zD={key:0,class:"endpoint-summary"},ED={key:1,class:"endpoint-description"},OD={key:0,class:"tab-empty"},ID={class:"param-group-header"},AD={class:"param-group-label"},FD={class:"param-group-count"},MD={key:0,class:"example-block"},BD={class:"example-header"},LD={class:"example-title"},DD={class:"example-code"},HD={class:"media-type-selector"},ND={key:0,class:"schema-section"},jD={key:1,class:"tab-empty"},WD={key:0,class:"example-block"},VD={class:"example-header"},UD={class:"example-code"},KD={key:0,class:"tab-empty"},qD=["onClick"],GD={key:0,class:"resp-media-tag"},XD={key:1,class:"resp-desc-text"},YD={key:1,class:"resp-no-schema"},JD={key:2,class:"example-block"},ZD={class:"example-header"},QD={class:"example-code"},e7=Ot(ge({__name:"EndpointDetail",props:{endpoint:{}},setup(e){const t=e,o=Tr(),n=L("params");function r(k){n.value=k,k==="debug"&&o.initRequest(t.endpoint)}Ze(()=>t.endpoint.id,()=>{n.value==="debug"&&o.initRequest(t.endpoint)});function i(k){return JSON.stringify(k,null,2)??""}const l={string:"#0ea5e9",number:"#f59e0b",integer:"#f59e0b",boolean:"#8b5cf6",array:"#10b981",object:"#6366f1"};function a(k){return k.properties&&Object.keys(k.properties).length>0?!0:k._subSchemas?k._subSchemas.some(a):!1}function s(k){if(k._combiner){if(k._combiner==="allOf"){const Y=k.type??(a(k)?"object":"any");return Y==="array"&&k.items?`array<${a(k.items)?"object":k.items.type??"any"}>`:k.enum?`${Y} enum`:Y}return a(k)?"object":k._combiner}const I=k.type??"any";return I==="array"&&k.items?`array<${a(k.items)?"object":k.items.type??"any"}>`:k.enum?`${I} enum`:I}function c(k){const I=k.split(/[< ]/)[0],Y=l[I]??"#94a3b8";return f(io,{size:"small",bordered:!1,style:{backgroundColor:`${Y}18`,color:Y,fontFamily:"var(--font-mono)",fontSize:"11px",padding:"0 6px"}},()=>k)}function d(k){const I=k.enum,Y=k.enumVarnames,j=k.enumDescriptions,ee=!!(Y||j),D=()=>f(io,{size:"small",bordered:!1,style:{fontSize:"11px",cursor:"pointer",color:"#64748b",backgroundColor:"#64748b18"}},()=>`enum(${I.length})`),M=()=>f("div",{style:{maxWidth:"360px",maxHeight:"280px",overflowY:"auto"}},I.map((N,ve)=>{const J=[],Ce=JSON.stringify(N);return J.push(f("div",{style:{display:"flex",alignItems:"baseline",gap:"6px"}},[f("code",{style:{fontFamily:"var(--font-mono)",fontSize:"12px",color:"#0ea5e9",background:"var(--color-code-bg, #f1f5f9)",padding:"1px 5px",borderRadius:"3px",flexShrink:0}},Ce),...Y!=null&&Y[ve]?[f("span",{style:{fontFamily:"var(--font-mono)",fontSize:"11px",color:"#8b5cf6"}},Y[ve])]:[]])),j!=null&&j[ve]&&J.push(f("div",{style:{fontSize:"11px",color:"var(--color-text-muted, #94a3b8)",paddingLeft:"4px",marginTop:"2px",lineHeight:"1.4"}},j[ve])),f("div",{style:{padding:"4px 0",borderBottom:ve<I.length-1?"1px solid var(--color-border, #e2e8f0)":"none"}},J)}));if(!ee){const N=I.map(ve=>JSON.stringify(ve)).join(" | ");return f(Lo,{trigger:"hover"},{trigger:D,default:()=>f("code",{style:{fontSize:"12px"}},N)})}return f(Lo,{trigger:"hover",placement:"bottom"},{trigger:D,default:M})}function u(k){let I={},Y=[...k.required??[]];if(k._combiner&&k._subSchemas)for(const j of k._subSchemas){const ee=u(j);I={...I,...ee.props},Y=Y.concat(ee.required)}return k.properties&&(I={...I,...k.properties}),{props:I,required:Y}}function p(k,I,Y){if(Y>4)return;const j=B(k),{props:ee,required:D}=u(j);if(Object.keys(ee).length===0)return;const M=new Set(D),N=Object.entries(ee).map(([ve,J])=>{const Ce=`${I}.${ve}`;return{key:Ce,name:ve,type:s(J),required:M.has(ve),description:J.description??"",example:J.example,schema:J,deprecated:J.deprecated,depth:Y,children:p(J,Ce,Y+1)}});return N.length>0?N:void 0}const v=["path","query","header","cookie"],h={path:"Path 参数",query:"Query 参数",header:"Header 参数",cookie:"Cookie 参数"},g={path:"#3b82f6",query:"#10b981",header:"#f59e0b",cookie:"#8b5cf6"},b=E(()=>{const k=[];for(const I of v){const Y=t.endpoint.parameters.filter(D=>D.in===I);if(!Y.length)continue;const j=Y.map(D=>({key:`param:${D.in}:${D.name}`,name:D.name,in:D.in,type:s(D.schema),required:D.required,description:D.description??"",example:D.example??D.schema.example,schema:D.schema,deprecated:D.deprecated,depth:0,children:p(D.schema,`param:${D.in}:${D.name}`,0)}));let ee;if(I==="path"){let D=t.endpoint.path;for(const M of Y){const N=M.example??M.schema.example??On(M.schema);D=D.replace(`{${M.name}}`,String(N??M.name))}ee=D}else{const D={};for(const M of Y)D[M.name]=M.example??M.schema.example??On(M.schema);ee=i(D)}k.push({location:I,label:h[I]??I,color:g[I]??"#94a3b8",rows:j,exampleJson:ee})}return k}),m=L([]);function x(k){return k==null?"":typeof k=="string"?k:JSON.stringify(k)}function S(k){const I=x(k);return I?f("code",{style:{fontFamily:"var(--font-mono)",fontSize:"11.5px",color:"#0ea5e9",background:"var(--color-code-bg)",padding:"1px 5px",borderRadius:"3px"}},I):f("span",{style:{color:"var(--color-text-muted)",fontSize:"13px"}},"-")}function C(k){return f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:k?"#10b981":"#d1d5db","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[f("path",{d:k?"M20 6L9 17l-5-5":"M18 6L6 18M6 6l12 12"})])}function y(k){return k.depth>0?{class:`row-depth-${Math.min(k.depth,4)}`}:{}}function R(k){return f("span",{style:{fontFamily:"var(--font-mono)",fontSize:"13px"}},k)}const P=[{key:"name",title:"名称",width:360,tree:!0,ellipsis:{tooltip:!0},render:k=>R(k.name)},{key:"type",title:"类型",width:140,render:k=>c(k.type)},{key:"required",title:"必填",width:50,align:"center",render:k=>C(k.required)},{key:"example",title:"示例",width:160,ellipsis:{tooltip:!0},render:k=>S(k.example)},{key:"description",title:"描述",ellipsis:{tooltip:!0},render:k=>{const I=[];return k.description?I.push(f("span",{style:{fontSize:"13px"}},k.description)):!k.deprecated&&!k.schema.enum&&I.push(f("span",{style:{fontSize:"13px",color:"var(--color-text-muted)"}},"-")),k.deprecated&&I.push(f(io,{size:"small",type:"warning",bordered:!1,style:{fontSize:"11px",verticalAlign:"middle",marginLeft:"4px"}},()=>"deprecated")),k.schema.enum&&I.push(d(k.schema)),f("span",{},I)}}],w=L("");Ze(()=>t.endpoint,k=>{var I;(I=k.requestBody)!=null&&I.mediaTypes.length?w.value=k.requestBody.mediaTypes[0].mediaType:w.value=""},{immediate:!0,deep:!0});function _(k){const I=parseInt(k,10);return I>=500?"#ef4444":I>=400?"#f59e0b":I>=300?"#0ea5e9":I>=200?"#10b981":"#94a3b8"}function B(k){if(k.type==="array"&&k.items)return k.items;if(k._combiner==="allOf"&&k._subSchemas){for(const I of k._subSchemas)if(I.type==="array"&&I.items)return I.items}return k}function z(k,I,Y){if(Y>4)return;const j=B(k),{props:ee,required:D}=u(j);if(Object.keys(ee).length===0)return;const M=new Set(D),N=Object.entries(ee).map(([ve,J])=>{const Ce=`${I}.${ve}`;return{key:Ce,name:ve,type:s(J),required:M.has(ve),description:J.description??"",example:J.example,schema:J,depth:Y,children:z(J,Ce,Y+1)}});return N.length>0?N:void 0}const O=E(()=>t.endpoint.responses.map(k=>{var M;const I=k.mediaTypes.find(N=>N.schema),Y=I==null?void 0:I.schema,j=`resp:${k.statusCode}`,ee=Y?z(Y,j,0)??[]:[];let D="";return I&&(I.example!==void 0?D=i(I.example):((M=I.schema)==null?void 0:M.example)!==void 0?D=i(I.schema.example):I.schema&&(D=i(On(I.schema)))),{statusCode:k.statusCode,description:k.description,mediaType:I==null?void 0:I.mediaType,color:_(k.statusCode),rows:ee,exampleJson:D}})),A=L([]),U=L(new Set);function W(k){const I=new Set(U.value);I.has(k)?I.delete(k):I.add(k),U.value=I}const F=[{key:"name",title:"字段",width:360,tree:!0,ellipsis:{tooltip:!0},render:k=>R(k.name)},{key:"type",title:"类型",width:140,render:k=>c(k.type)},{key:"required",title:"必填",width:50,align:"center",render:k=>C(k.required)},{key:"example",title:"示例",width:160,ellipsis:{tooltip:!0},render:k=>S(k.example)},{key:"description",title:"描述",ellipsis:{tooltip:!0},render:k=>{const I=[];return k.description?I.push(f("span",{style:{fontSize:"13px"}},k.description)):I.push(f("span",{style:{fontSize:"13px",color:"var(--color-text-muted)"}},"-")),k.schema.enum&&I.push(d(k.schema)),f("span",{},I)}}],T=E(()=>{var I,Y;const k=(I=t.endpoint.requestBody)==null?void 0:I.mediaTypes.find(j=>j.mediaType===w.value);return k?k.example!==void 0?i(k.example):((Y=k.schema)==null?void 0:Y.example)!==void 0?i(k.schema.example):k.schema?i(On(k.schema)):"":""});return(k,I)=>(me(),mt(he(Yu),{class:"endpoint-detail"},{default:He(()=>[K("div",PD,[K("div",_D,[K("div",$D,[Se(Hy,{method:e.endpoint.method},null,8,["method"]),K("span",TD,Ve(e.endpoint.path),1),Se(In,{text:e.endpoint.path},null,8,["text"]),e.endpoint.deprecated?(me(),mt(he(io),{key:0,size:"small",type:"warning",bordered:!1,style:{"font-size":"11px"}},{default:He(()=>[...I[3]||(I[3]=[it(" deprecated ",-1)])]),_:1})):et("",!0),e.endpoint._isWebhook?(me(),mt(he(io),{key:1,size:"small",bordered:!1,style:{"font-size":"11px",background:"#8b5cf618",color:"#8b5cf6"}},{default:He(()=>[...I[4]||(I[4]=[it(" webhook ",-1)])]),_:1})):et("",!0)]),e.endpoint.summary?(me(),Re("p",zD,Ve(e.endpoint.summary),1)):et("",!0),e.endpoint.description?(me(),Re("p",ED,Ve(e.endpoint.description),1)):et("",!0)]),(me(),mt(he(rc),{key:e.endpoint.id,value:n.value,type:"line",size:"small",class:"detail-tabs","onUpdate:value":r},{default:He(()=>[Se(he(Ho),{name:"params",tab:"参数",disabled:!e.endpoint.parameters.length},{default:He(()=>[e.endpoint.parameters.length?(me(!0),Re(Ue,{key:1},To(b.value,Y=>(me(),Re("div",{key:Y.location,class:"param-group"},[K("div",ID,[K("span",{class:"param-group-dot",style:$o({background:Y.color})},null,4),K("span",AD,Ve(Y.label),1),K("span",FD,Ve(Y.rows.length),1)]),Se(he(Du),{columns:P,data:Y.rows,"row-key":j=>j.key,"expanded-row-keys":m.value,"row-props":y,indent:20,size:"small",pagination:!1,"onUpdate:expandedRowKeys":I[0]||(I[0]=j=>m.value=j)},null,8,["data","row-key","expanded-row-keys"]),Y.exampleJson?(me(),Re("div",MD,[K("div",BD,[K("span",LD,Ve(Y.location==="path"?"URL 示例":Y.label+" JSON 示例"),1),Se(In,{text:Y.exampleJson},null,8,["text"])]),K("pre",DD,Ve(Y.exampleJson),1)])):et("",!0)]))),128)):(me(),Re("div",OD,[Se(he(kr),{description:"无需参数",size:"small"})]))]),_:1},8,["disabled"]),Se(he(Ho),{name:"body",tab:"请求体",disabled:!e.endpoint.requestBody},{default:He(()=>[e.endpoint.requestBody?(me(),Re(Ue,{key:0},[K("div",HD,[Se(he(la),{value:w.value,"onUpdate:value":I[1]||(I[1]=Y=>w.value=Y),size:"small",style:{width:"240px"},options:e.endpoint.requestBody.mediaTypes.map(Y=>({label:Y.mediaType,value:Y.mediaType}))},null,8,["value","options"]),e.endpoint.requestBody.required?(me(),mt(he(io),{key:0,size:"small",type:"error",bordered:!1,style:{"font-size":"11px"}},{default:He(()=>[...I[5]||(I[5]=[it(" required ",-1)])]),_:1})):et("",!0)]),(me(!0),Re(Ue,null,To(e.endpoint.requestBody.mediaTypes,Y=>(me(),Re(Ue,{key:Y.mediaType},[Y.mediaType===w.value?(me(),Re("div",ND,[Y.schema?(me(),mt(SM,{key:0,schema:Y.schema},null,8,["schema"])):(me(),Re("div",jD,[Se(he(kr),{description:"无 Schema 定义",size:"small"})]))])):et("",!0)],64))),128)),T.value?(me(),Re("div",WD,[K("div",VD,[I[6]||(I[6]=K("span",{class:"example-title"},"JSON 示例",-1)),Se(In,{text:T.value},null,8,["text"])]),K("pre",UD,Ve(T.value),1)])):et("",!0)],64)):et("",!0)]),_:1},8,["disabled"]),Se(he(Ho),{name:"responses",tab:"响应"},{default:He(()=>[e.endpoint.responses.length?(me(!0),Re(Ue,{key:1},To(O.value,Y=>(me(),Re("div",{key:Y.statusCode,class:"param-group"},[K("div",{class:"param-group-header param-group-header--clickable",onClick:j=>W(Y.statusCode)},[(me(),Re("svg",{class:Pt(["collapse-arrow",{"collapse-arrow--collapsed":U.value.has(Y.statusCode)}]),xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...I[7]||(I[7]=[K("polyline",{points:"6 9 12 15 18 9"},null,-1)])],2)),Se(he(io),{size:"small",bordered:!1,style:$o({backgroundColor:Y.color+"18",color:Y.color,fontFamily:"var(--font-mono)",fontSize:"12px",padding:"0 8px"})},{default:He(()=>[it(Ve(Y.statusCode),1)]),_:2},1032,["style"]),Y.mediaType?(me(),Re("span",GD,Ve(Y.mediaType),1)):et("",!0),Y.description?(me(),Re("span",XD,Ve(Y.description),1)):et("",!0)],8,qD),U.value.has(Y.statusCode)?et("",!0):(me(),Re(Ue,{key:0},[Y.rows.length?(me(),mt(he(Du),{key:0,columns:F,data:Y.rows,"row-key":j=>j.key,"expanded-row-keys":A.value,"row-props":y,indent:20,size:"small",pagination:!1,"onUpdate:expandedRowKeys":I[2]||(I[2]=j=>A.value=j)},null,8,["data","row-key","expanded-row-keys"])):(me(),Re("div",YD,"无 Schema 定义")),Y.exampleJson?(me(),Re("div",JD,[K("div",ZD,[I[8]||(I[8]=K("span",{class:"example-title"},"JSON 示例",-1)),Se(In,{text:Y.exampleJson},null,8,["text"])]),K("pre",QD,Ve(Y.exampleJson),1)])):et("",!0)],64))]))),128)):(me(),Re("div",KD,[Se(he(kr),{description:"无响应定义",size:"small"})]))]),_:1}),Se(he(Ho),{name:"debug",tab:"调试 ▶"},{default:He(()=>[Se(RD)]),_:1})]),_:1},8,["value"]))])]),_:1}))}}),[["__scopeId","data-v-26dfef0a"]]),t7={class:"main-content"},o7={key:0,class:"state-center"},n7={key:1,class:"state-center"},r7={class:"error-box"},i7={key:2,class:"state-center"},l7={class:"welcome-inner"},a7={key:0,class:"state-center"},s7=Ot(ge({__name:"MainContent",setup(e){const t=_r(),o=E(()=>t.groups.length>0),n=E(()=>t.currentEndpoint);return(r,i)=>(me(),Re("main",t7,[he(t).loading?(me(),Re("div",o7,[Se(he(Ju),{size:"large"})])):he(t).error?(me(),Re("div",n7,[K("div",r7,[Se(he(n0),{type:"error",title:"规范解析失败"},{default:He(()=>[it(Ve(he(t).error),1)]),_:1}),Se(he(ht),{size:"small",style:{"margin-top":"12px"},onClick:he(t).openImporter},{default:He(()=>[...i[0]||(i[0]=[it(" 重新导入 ",-1)])]),_:1},8,["onClick"])])])):o.value?(me(),Re(Ue,{key:3},[n.value?(me(),mt(e7,{key:1,endpoint:n.value},null,8,["endpoint"])):(me(),Re("div",a7,[...i[4]||(i[4]=[K("span",{class:"muted-hint"},"← 从左侧选择一个接口",-1)])]))],64)):(me(),Re("div",i7,[K("div",l7,[i[2]||(i[2]=K("h2",{class:"welcome-title"},"FDOC",-1)),i[3]||(i[3]=K("p",{class:"welcome-desc"},"OpenAPI 3.x 接口文档与调试工具",-1)),Se(he(ht),{type:"primary",onClick:he(t).openImporter},{default:He(()=>[...i[1]||(i[1]=[it("导入 OpenAPI",-1)])]),_:1},8,["onClick"])])]))]))}}),[["__scopeId","data-v-c1db5596"]]),c7={key:0},d7={key:1,class:"url-tab"},u7={class:"headers-section"},f7=["onUpdate:modelValue"],h7=["onUpdate:modelValue"],p7=["onClick"],v7={key:0,class:"headers-empty"},g7={class:"url-actions"},s1="fdoc_last_url",m7=Ot(ge({__name:"SpecImporter",setup(e){const t=_r(),{loading:o,error:n,loadFromUrl:r,loadFromFile:i}=My(),l=localStorage.getItem(s1)??"",a=L(l),s=L(l?"url":"file"),c=L([]);Ze(a,S=>{c.value=t.getHeadersFor(S.trim()).map(C=>({...C}))},{immediate:!0});function d(){c.value.push({key:"",value:""})}function u(S){c.value.splice(S,1)}const p=L(!1);function v(S){S.preventDefault(),p.value=!0}function h(){p.value=!1}async function g(S){var R,P;S.preventDefault(),p.value=!1;const C=(P=(R=S.dataTransfer)==null?void 0:R.files)==null?void 0:P[0];if(!C)return;(await i(C)).ok&&x()}async function b(S){var R;const C=(R=S.target.files)==null?void 0:R[0];if(!C)return;(await i(C)).ok&&x()}async function m(){const S=a.value.trim();if(!S)return;t.saveHeadersFor(S,c.value),(await r(S)).ok&&(localStorage.setItem(s1,S),x())}function x(){t.closeImporter(),n.value=null}return(S,C)=>(me(),mt(he(el),{show:he(t).importerOpen,"mask-closable":!he(o),style:{width:"520px"},"onUpdate:show":C[2]||(C[2]=y=>!y&&x())},{default:He(()=>[Se(he(ra),{title:"导入 OpenAPI",bordered:!1,size:"medium",role:"dialog"},{"header-extra":He(()=>[Se(he(ht),{text:"",size:"small",style:{color:"var(--color-text-muted)"},onClick:x},{default:He(()=>[...C[3]||(C[3]=[it("✕",-1)])]),_:1})]),default:He(()=>[Se(he(Ju),{show:he(o)},{default:He(()=>[Se(he(rc),{value:s.value,"onUpdate:value":C[0]||(C[0]=y=>s.value=y),type:"segment",size:"small",style:{"margin-bottom":"16px"}},{default:He(()=>[Se(he(Ho),{name:"file",tab:"上传文件"}),Se(he(Ho),{name:"url",tab:"URL 导入"})]),_:1},8,["value"]),s.value==="file"?(me(),Re("div",c7,[K("label",{class:Pt(["drop-zone",{dragging:p.value}]),onDragover:v,onDragleave:h,onDrop:g},[K("input",{type:"file",accept:".json",class:"file-input",onChange:b},null,32),C[4]||(C[4]=K("span",{class:"drop-icon"},[K("svg",{width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},[K("polyline",{points:"16 16 12 12 8 16"}),K("line",{x1:"12",y1:"12",x2:"12",y2:"21"}),K("path",{d:"M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"})])],-1)),C[5]||(C[5]=K("span",{class:"drop-text"},"点击或拖拽文件到此区域导入",-1)),C[6]||(C[6]=K("span",{class:"drop-hint"},"支持 OpenAPI 3.x JSON 格式",-1))],34)])):(me(),Re("div",d7,[Se(he(qt),{value:a.value,"onUpdate:value":C[1]||(C[1]=y=>a.value=y),placeholder:"https://example.com/openapi.json",clearable:"",size:"medium",onKeydown:Ow(m,["enter"])},null,8,["value"]),K("div",u7,[K("div",{class:"headers-bar"},[C[7]||(C[7]=K("span",{class:"headers-label"},"请求头",-1)),K("button",{class:"headers-add",onClick:d},"+ 添加")]),(me(!0),Re(Ue,null,To(c.value,(y,R)=>(me(),Re("div",{key:R,class:"header-row"},[Ut(K("input",{"onUpdate:modelValue":P=>y.key=P,class:"hi hi--key",placeholder:"Header"},null,8,f7),[[Ei,y.key]]),Ut(K("input",{"onUpdate:modelValue":P=>y.value=P,class:"hi hi--val",placeholder:"Value"},null,8,h7),[[Ei,y.value]]),K("button",{class:"header-del",onClick:P=>u(R)},[...C[8]||(C[8]=[K("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round"},[K("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),K("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])],8,p7)]))),128)),c.value.length===0?(me(),Re("p",v7,"暂无自定义请求头")):et("",!0)]),K("div",g7,[Se(he(ht),{type:"primary",disabled:!a.value.trim(),onClick:m},{default:He(()=>[...C[9]||(C[9]=[it(" 导入 ",-1)])]),_:1},8,["disabled"])])])),he(n)?(me(),mt(he(n0),{key:2,type:"error",title:he(n),style:{"margin-top":"14px"}},null,8,["title"])):et("",!0)]),_:1},8,["show"])]),_:1})]),_:1},8,["show","mask-closable"]))}}),[["__scopeId","data-v-4eed4792"]]),b7={class:"app-root"},x7={class:"app-body"},c1="fdoc_theme",y7=Ot(ge({__name:"App",setup(e){const t=_r(),o=KS(),n=Av(),r=L2(),i=localStorage.getItem(c1),l=L(i),a=E(()=>l.value!==null?l.value==="dark":r.value==="dark"),s=E(()=>a.value?nA:null),c=E(()=>a.value?iA:rA);Lt(()=>{document.documentElement.setAttribute("data-theme",a.value?"dark":"light")});function d(){const v=a.value?"light":"dark";l.value=v,localStorage.setItem(c1,v)}const{message:u}=gO(["message"]);let p=!1;return Ze(()=>o.query.ep,v=>{var b;const h=typeof v=="string"?v:void 0;if(!h||h===t.currentEndpointId)return;if(t.allEndpoints.some(m=>m.id===h))t.selectEndpoint(h);else if(t.groups.length>0){u.warning(`接口 "${h}" 不存在,已加载第一个接口`);const m=(b=t.allEndpoints[0])==null?void 0:b.id;m&&t.selectEndpoint(m),n.replace({query:{}})}}),Ze(()=>t.currentEndpointId,v=>{if(!p)return;const h=o.query.ep;v&&v!==h?h&&t.allEndpoints.some(g=>g.id===h)?t.selectEndpoint(h):n.replace({query:{ep:v}}):!v&&h&&n.replace({query:{}})}),Bt(()=>{t.restoreCache();const v=o.query.ep;v&&t.groups.length>0&&(t.allEndpoints.some(g=>g.id===v)?t.selectEndpoint(v):(u.warning(`接口 "${v}" 不存在,自动选中第一个接口`),n.replace({query:{}}))),p=!0}),(v,h)=>(me(),mt(he(w0),{theme:s.value,"theme-overrides":c.value},{default:He(()=>[Se(he(zx),null,{default:He(()=>[K("div",b7,[Se(XF,{"is-dark":a.value,onToggleTheme:d},null,8,["is-dark"]),K("div",x7,[Se(hM),Se(s7)]),Se(m7)])]),_:1})]),_:1},8,["theme","theme-overrides"]))}}),[["__scopeId","data-v-b5984c8a"]]);function C7(){const e=new URLSearchParams(window.location.search).get("ep");if(e)return e;const t=window.location.hash,o=t.includes("?")?t.slice(t.indexOf("?")):"";return new URLSearchParams(o).get("ep")}function w7(e,t){const o=typeof e=="string"?document.querySelector(e):e;if(!o)throw new Error(`[fdoc] mount: cannot find element "${String(e)}"`);const n=Bw(),r=US({history:kS(),routes:[{path:"/",component:{template:"<div/>"}}]}),i=ev(y7);if(i.use(n),i.use(r),r.isReady().then(()=>{i.mount(o);const l=(t==null?void 0:t.ep)??C7();l&&r.push({query:{ep:l}})}),t!=null&&t.url){const l=_r(n);fetch(t.url).then(a=>a.json()).then(a=>{l.loadSpec(a),l.setSourceUrl(t.url)}).catch(a=>console.error("[fdoc] Failed to load spec from url:",a))}return()=>i.unmount()}return Co.mount=w7,Object.defineProperty(Co,Symbol.toStringTag,{value:"Module"}),Co}({});
|