90 lines
191 KiB
JavaScript
90 lines
191 KiB
JavaScript
var Fa=Object.defineProperty;var xo=e=>{throw TypeError(e)};var Ua=(e,t,n)=>t in e?Fa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ce=(e,t,n)=>Ua(e,typeof t!="symbol"?t+"":t,n),Ha=(e,t,n)=>t.has(e)||xo("Cannot "+n);var yo=(e,t,n)=>t.has(e)?xo("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n);var Jn=(e,t,n)=>(Ha(e,t,"access private method"),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/**
|
|
* @vue/shared v3.5.34
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/function Nr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ie={},nn=[],yt=()=>{},Li=()=>!1,Rs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ks=e=>e.startsWith("onUpdate:"),Oe=Object.assign,Ir=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},za=Object.prototype.hasOwnProperty,te=(e,t)=>za.call(e,t),V=Array.isArray,sn=e=>jn(e)==="[object Map]",Bi=e=>jn(e)==="[object Set]",wo=e=>jn(e)==="[object Date]",q=e=>typeof e=="function",de=e=>typeof e=="string",vt=e=>typeof e=="symbol",se=e=>e!==null&&typeof e=="object",$i=e=>(se(e)||q(e))&&q(e.then)&&q(e.catch),Mi=Object.prototype.toString,jn=e=>Mi.call(e),Va=e=>jn(e).slice(8,-1),ji=e=>jn(e)==="[object Object]",Dr=e=>de(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,_n=Nr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Es=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},qa=/-\w/g,Ve=Es(e=>e.replace(qa,t=>t.slice(1).toUpperCase())),Ka=/\B([A-Z])/g,Jt=Es(e=>e.replace(Ka,"-$1").toLowerCase()),Ss=Es(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ks=Es(e=>e?`on${Ss(e)}`:""),mt=(e,t)=>!Object.is(e,t),ns=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Fi=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Lr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let vo;const As=()=>vo||(vo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ts(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=de(s)?Qa(s):Ts(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(de(e)||se(e))return e}const Wa=/;(?![^(]*\))/g,Ga=/:([^]+)/,Ja=/\/\*[^]*?\*\//g;function Qa(e){const t={};return e.replace(Ja,"").split(Wa).forEach(n=>{if(n){const s=n.split(Ga);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function De(e){let t="";if(de(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const s=De(e[n]);s&&(t+=s+" ")}else if(se(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Za="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Xa=Nr(Za);function Ui(e){return!!e||e===""}function Ya(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Br(e[s],t[s]);return n}function Br(e,t){if(e===t)return!0;let n=wo(e),s=wo(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=vt(e),s=vt(t),n||s)return e===t;if(n=V(e),s=V(t),n||s)return n&&s?Ya(e,t):!1;if(n=se(e),s=se(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const i in e){const l=e.hasOwnProperty(i),a=t.hasOwnProperty(i);if(l&&!a||!l&&a||!Br(e[i],t[i]))return!1}}return String(e)===String(t)}const Hi=e=>!!(e&&e.__v_isRef===!0),Ee=e=>de(e)?e:e==null?"":V(e)||se(e)&&(e.toString===Mi||!q(e.toString))?Hi(e)?Ee(e.value):JSON.stringify(e,zi,2):String(e),zi=(e,t)=>Hi(t)?zi(e,t.value):sn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[Ws(s,o)+" =>"]=r,n),{})}:Bi(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ws(n))}:vt(t)?Ws(t):se(t)&&!V(t)&&!ji(t)?String(t):t,Ws=(e,t="")=>{var n;return vt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
* @vue/reactivity v3.5.34
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let Ce;class ec{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Ce&&(Ce.active?(this.parent=Ce,this.index=(Ce.scopes||(Ce.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ce;try{return Ce=this,t()}finally{Ce=n}}}on(){++this._on===1&&(this.prevScope=Ce,Ce=this)}off(){if(this._on>0&&--this._on===0){if(Ce===this)Ce=this.prevScope;else{let t=Ce;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].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 tc(){return Ce}let ae;const Gs=new WeakSet;class Vi{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,Ce&&(Ce.active?Ce.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Gs.has(this)&&(Gs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ki(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,_o(this),Wi(this);const t=ae,n=st;ae=this,st=!0;try{return this.fn()}finally{Gi(this),ae=t,st=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)jr(t);this.deps=this.depsTail=void 0,_o(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Gs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ur(this)&&this.run()}get dirty(){return ur(this)}}let qi=0,Rn,kn;function Ki(e,t=!1){if(e.flags|=8,t){e.next=kn,kn=e;return}e.next=Rn,Rn=e}function $r(){qi++}function Mr(){if(--qi>0)return;if(kn){let t=kn;for(kn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Rn;){let t=Rn;for(Rn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Wi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Gi(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),jr(s),nc(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function ur(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ji(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ji(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Nn)||(e.globalVersion=Nn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ur(e))))return;e.flags|=2;const t=e.dep,n=ae,s=st;ae=e,st=!0;try{Wi(e);const r=e.fn(e._value);(t.version===0||mt(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{ae=n,st=s,Gi(e),e.flags&=-3}}function jr(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)jr(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function nc(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let st=!0;const Qi=[];function Ct(){Qi.push(st),st=!1}function Ot(){const e=Qi.pop();st=e===void 0?!0:e}function _o(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ae;ae=void 0;try{t()}finally{ae=n}}}let Nn=0;class sc{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Fr{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(!ae||!st||ae===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ae)n=this.activeLink=new sc(ae,this),ae.deps?(n.prevDep=ae.depsTail,ae.depsTail.nextDep=n,ae.depsTail=n):ae.deps=ae.depsTail=n,Zi(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=ae.depsTail,n.nextDep=void 0,ae.depsTail.nextDep=n,ae.depsTail=n,ae.deps===n&&(ae.deps=s)}return n}trigger(t){this.version++,Nn++,this.notify(t)}notify(t){$r();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Mr()}}}function Zi(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Zi(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const fr=new WeakMap,zt=Symbol(""),dr=Symbol(""),In=Symbol("");function Le(e,t,n){if(st&&ae){let s=fr.get(e);s||fr.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Fr),r.map=s,r.key=n),r.track()}}function At(e,t,n,s,r,o){const i=fr.get(e);if(!i){Nn++;return}const l=a=>{a&&a.trigger()};if($r(),t==="clear")i.forEach(l);else{const a=V(e),u=a&&Dr(n);if(a&&n==="length"){const c=Number(s);i.forEach((f,h)=>{(h==="length"||h===In||!vt(h)&&h>=c)&&l(f)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),u&&l(i.get(In)),t){case"add":a?u&&l(i.get("length")):(l(i.get(zt)),sn(e)&&l(i.get(dr)));break;case"delete":a||(l(i.get(zt)),sn(e)&&l(i.get(dr)));break;case"set":sn(e)&&l(i.get(zt));break}}Mr()}function Zt(e){const t=ee(e);return t===e?t:(Le(t,"iterate",In),tt(e)?t:t.map(ot))}function Cs(e){return Le(e=ee(e),"iterate",In),e}function pt(e,t){return Pt(e)?an(Vt(e)?ot(t):t):ot(t)}const rc={__proto__:null,[Symbol.iterator](){return Js(this,Symbol.iterator,e=>pt(this,e))},concat(...e){return Zt(this).concat(...e.map(t=>V(t)?Zt(t):t))},entries(){return Js(this,"entries",e=>(e[1]=pt(this,e[1]),e))},every(e,t){return Rt(this,"every",e,t,void 0,arguments)},filter(e,t){return Rt(this,"filter",e,t,n=>n.map(s=>pt(this,s)),arguments)},find(e,t){return Rt(this,"find",e,t,n=>pt(this,n),arguments)},findIndex(e,t){return Rt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Rt(this,"findLast",e,t,n=>pt(this,n),arguments)},findLastIndex(e,t){return Rt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Rt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Qs(this,"includes",e)},indexOf(...e){return Qs(this,"indexOf",e)},join(e){return Zt(this).join(e)},lastIndexOf(...e){return Qs(this,"lastIndexOf",e)},map(e,t){return Rt(this,"map",e,t,void 0,arguments)},pop(){return gn(this,"pop")},push(...e){return gn(this,"push",e)},reduce(e,...t){return Ro(this,"reduce",e,t)},reduceRight(e,...t){return Ro(this,"reduceRight",e,t)},shift(){return gn(this,"shift")},some(e,t){return Rt(this,"some",e,t,void 0,arguments)},splice(...e){return gn(this,"splice",e)},toReversed(){return Zt(this).toReversed()},toSorted(e){return Zt(this).toSorted(e)},toSpliced(...e){return Zt(this).toSpliced(...e)},unshift(...e){return gn(this,"unshift",e)},values(){return Js(this,"values",e=>pt(this,e))}};function Js(e,t,n){const s=Cs(e),r=s[t]();return s!==e&&!tt(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=n(o.value)),o}),r}const oc=Array.prototype;function Rt(e,t,n,s,r,o){const i=Cs(e),l=i!==e&&!tt(e),a=i[t];if(a!==oc[t]){const f=a.apply(e,o);return l?ot(f):f}let u=n;i!==e&&(l?u=function(f,h){return n.call(this,pt(e,f),h,e)}:n.length>2&&(u=function(f,h){return n.call(this,f,h,e)}));const c=a.call(i,u,s);return l&&r?r(c):c}function Ro(e,t,n,s){const r=Cs(e),o=r!==e&&!tt(e);let i=n,l=!1;r!==e&&(o?(l=s.length===0,i=function(u,c,f){return l&&(l=!1,u=pt(e,u)),n.call(this,u,pt(e,c),f,e)}):n.length>3&&(i=function(u,c,f){return n.call(this,u,c,f,e)}));const a=r[t](i,...s);return l?pt(e,a):a}function Qs(e,t,n){const s=ee(e);Le(s,"iterate",In);const r=s[t](...n);return(r===-1||r===!1)&&zr(n[0])?(n[0]=ee(n[0]),s[t](...n)):r}function gn(e,t,n=[]){Ct(),$r();const s=ee(e)[t].apply(e,n);return Mr(),Ot(),s}const ic=Nr("__proto__,__v_isRef,__isVue"),Xi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(vt));function lc(e){vt(e)||(e=String(e));const t=ee(this);return Le(t,"has",e),t.hasOwnProperty(e)}class Yi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?bc:sl:o?nl:tl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=V(t);if(!r){let a;if(i&&(a=rc[n]))return a;if(n==="hasOwnProperty")return lc}const l=Reflect.get(t,n,Me(t)?t:s);if((vt(n)?Xi.has(n):ic(n))||(r||Le(t,"get",n),o))return l;if(Me(l)){const a=i&&Dr(n)?l:l.value;return r&&se(a)?pr(a):a}return se(l)?r?pr(l):Os(l):l}}class el extends Yi{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];const i=V(t)&&Dr(n);if(!this._isShallow){const u=Pt(o);if(!tt(s)&&!Pt(s)&&(o=ee(o),s=ee(s)),!i&&Me(o)&&!Me(s))return u||(o.value=s),!0}const l=i?Number(n)<t.length:te(t,n),a=Reflect.set(t,n,s,Me(t)?t:r);return t===ee(r)&&(l?mt(s,o)&&At(t,"set",n,s):At(t,"add",n,s)),a}deleteProperty(t,n){const s=te(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&At(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!vt(n)||!Xi.has(n))&&Le(t,"has",n),s}ownKeys(t){return Le(t,"iterate",V(t)?"length":zt),Reflect.ownKeys(t)}}class ac extends Yi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const cc=new el,uc=new ac,fc=new el(!0);const hr=e=>e,Qn=e=>Reflect.getPrototypeOf(e);function dc(e,t,n){return function(...s){const r=this.__v_raw,o=ee(r),i=sn(o),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,u=r[e](...s),c=n?hr:t?an:ot;return!t&&Le(o,"iterate",a?dr:zt),Oe(Object.create(u),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:l?[c(f[0]),c(f[1])]:c(f),done:h}}})}}function Zn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function hc(e,t){const n={get(r){const o=this.__v_raw,i=ee(o),l=ee(r);e||(mt(r,l)&&Le(i,"get",r),Le(i,"get",l));const{has:a}=Qn(i),u=t?hr:e?an:ot;if(a.call(i,r))return u(o.get(r));if(a.call(i,l))return u(o.get(l));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!e&&Le(ee(r),"iterate",zt),r.size},has(r){const o=this.__v_raw,i=ee(o),l=ee(r);return e||(mt(r,l)&&Le(i,"has",r),Le(i,"has",l)),r===l?o.has(r):o.has(r)||o.has(l)},forEach(r,o){const i=this,l=i.__v_raw,a=ee(l),u=t?hr:e?an:ot;return!e&&Le(a,"iterate",zt),l.forEach((c,f)=>r.call(o,u(c),u(f),i))}};return Oe(n,e?{add:Zn("add"),set:Zn("set"),delete:Zn("delete"),clear:Zn("clear")}:{add(r){const o=ee(this),i=Qn(o),l=ee(r),a=!t&&!tt(r)&&!Pt(r)?l:r;return i.has.call(o,a)||mt(r,a)&&i.has.call(o,r)||mt(l,a)&&i.has.call(o,l)||(o.add(a),At(o,"add",a,a)),this},set(r,o){!t&&!tt(o)&&!Pt(o)&&(o=ee(o));const i=ee(this),{has:l,get:a}=Qn(i);let u=l.call(i,r);u||(r=ee(r),u=l.call(i,r));const c=a.call(i,r);return i.set(r,o),u?mt(o,c)&&At(i,"set",r,o):At(i,"add",r,o),this},delete(r){const o=ee(this),{has:i,get:l}=Qn(o);let a=i.call(o,r);a||(r=ee(r),a=i.call(o,r)),l&&l.call(o,r);const u=o.delete(r);return a&&At(o,"delete",r,void 0),u},clear(){const r=ee(this),o=r.size!==0,i=r.clear();return o&&At(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=dc(r,e,t)}),n}function Ur(e,t){const n=hc(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(te(n,r)&&r in s?n:s,r,o)}const pc={get:Ur(!1,!1)},gc={get:Ur(!1,!0)},mc={get:Ur(!0,!1)};const tl=new WeakMap,nl=new WeakMap,sl=new WeakMap,bc=new WeakMap;function xc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function yc(e){return e.__v_skip||!Object.isExtensible(e)?0:xc(Va(e))}function Os(e){return Pt(e)?e:Hr(e,!1,cc,pc,tl)}function rl(e){return Hr(e,!1,fc,gc,nl)}function pr(e){return Hr(e,!0,uc,mc,sl)}function Hr(e,t,n,s,r){if(!se(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=yc(e);if(o===0)return e;const i=r.get(e);if(i)return i;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function Vt(e){return Pt(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function Pt(e){return!!(e&&e.__v_isReadonly)}function tt(e){return!!(e&&e.__v_isShallow)}function zr(e){return e?!!e.__v_raw:!1}function ee(e){const t=e&&e.__v_raw;return t?ee(t):e}function wc(e){return!te(e,"__v_skip")&&Object.isExtensible(e)&&Fi(e,"__v_skip",!0),e}const ot=e=>se(e)?Os(e):e,an=e=>se(e)?pr(e):e;function Me(e){return e?e.__v_isRef===!0:!1}function He(e){return ol(e,!1)}function vc(e){return ol(e,!0)}function ol(e,t){return Me(e)?e:new _c(e,t)}class _c{constructor(t,n){this.dep=new Fr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ee(t),this._value=n?t:ot(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||tt(t)||Pt(t);t=s?t:ee(t),mt(t,n)&&(this._rawValue=t,this._value=s?t:ot(t),this.dep.trigger())}}function wt(e){return Me(e)?e.value:e}const Rc={get:(e,t,n)=>t==="__v_raw"?e:wt(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Me(r)&&!Me(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function il(e){return Vt(e)?e:new Proxy(e,Rc)}class kc{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Fr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Nn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&ae!==this)return Ki(this,!0),!0}get value(){const t=this.dep.track();return Ji(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ec(e,t,n=!1){let s,r;return q(e)?s=e:(s=e.get,r=e.set),new kc(s,r,n)}const Xn={},cs=new WeakMap;let Ft;function Sc(e,t=!1,n=Ft){if(n){let s=cs.get(n);s||cs.set(n,s=[]),s.push(e)}}function Ac(e,t,n=ie){const{immediate:s,deep:r,once:o,scheduler:i,augmentJob:l,call:a}=n,u=C=>r?C:tt(C)||r===!1||r===0?Tt(C,1):Tt(C);let c,f,h,p,x=!1,y=!1;if(Me(e)?(f=()=>e.value,x=tt(e)):Vt(e)?(f=()=>u(e),x=!0):V(e)?(y=!0,x=e.some(C=>Vt(C)||tt(C)),f=()=>e.map(C=>{if(Me(C))return C.value;if(Vt(C))return u(C);if(q(C))return a?a(C,2):C()})):q(e)?t?f=a?()=>a(e,2):e:f=()=>{if(h){Ct();try{h()}finally{Ot()}}const C=Ft;Ft=c;try{return a?a(e,3,[p]):e(p)}finally{Ft=C}}:f=yt,t&&r){const C=f,H=r===!0?1/0:r;f=()=>Tt(C(),H)}const w=tc(),k=()=>{c.stop(),w&&w.active&&Ir(w.effects,c)};if(o&&t){const C=t;t=(...H)=>{C(...H),k()}}let A=y?new Array(e.length).fill(Xn):Xn;const P=C=>{if(!(!(c.flags&1)||!c.dirty&&!C))if(t){const H=c.run();if(r||x||(y?H.some((K,B)=>mt(K,A[B])):mt(H,A))){h&&h();const K=Ft;Ft=c;try{const B=[H,A===Xn?void 0:y&&A[0]===Xn?[]:A,p];A=H,a?a(t,3,B):t(...B)}finally{Ft=K}}}else c.run()};return l&&l(P),c=new Vi(f),c.scheduler=i?()=>i(P,!1):P,p=C=>Sc(C,!1,c),h=c.onStop=()=>{const C=cs.get(c);if(C){if(a)a(C,4);else for(const H of C)H();cs.delete(c)}},t?s?P(!0):A=c.run():i?i(P.bind(null,!0),!0):c.run(),k.pause=c.pause.bind(c),k.resume=c.resume.bind(c),k.stop=k,k}function Tt(e,t=1/0,n){if(t<=0||!se(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Me(e))Tt(e.value,t,n);else if(V(e))for(let s=0;s<e.length;s++)Tt(e[s],t,n);else if(Bi(e)||sn(e))e.forEach(s=>{Tt(s,t,n)});else if(ji(e)){for(const s in e)Tt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Tt(e[s],t,n)}return e}/**
|
|
* @vue/runtime-core v3.5.34
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/function Fn(e,t,n,s){try{return s?e(...s):e()}catch(r){Ps(r,t,n)}}function _t(e,t,n,s){if(q(e)){const r=Fn(e,t,n,s);return r&&$i(r)&&r.catch(o=>{Ps(o,t,n)}),r}if(V(e)){const r=[];for(let o=0;o<e.length;o++)r.push(_t(e[o],t,n,s));return r}}function Ps(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||ie;if(t){let l=t.parent;const a=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const c=l.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,a,u)===!1)return}l=l.parent}if(o){Ct(),Fn(o,null,10,[e,a,u]),Ot();return}}Tc(e,n,r,s,i)}function Tc(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const ze=[];let ht=-1;const rn=[];let Dt=null,Yt=0;const ll=Promise.resolve();let us=null;function al(e){const t=us||ll;return e?t.then(this?e.bind(this):e):t}function Cc(e){let t=ht+1,n=ze.length;for(;t<n;){const s=t+n>>>1,r=ze[s],o=Dn(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function Vr(e){if(!(e.flags&1)){const t=Dn(e),n=ze[ze.length-1];!n||!(e.flags&2)&&t>=Dn(n)?ze.push(e):ze.splice(Cc(t),0,e),e.flags|=1,cl()}}function cl(){us||(us=ll.then(fl))}function Oc(e){V(e)?rn.push(...e):Dt&&e.id===-1?Dt.splice(Yt+1,0,e):e.flags&1||(rn.push(e),e.flags|=1),cl()}function ko(e,t,n=ht+1){for(;n<ze.length;n++){const s=ze[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;ze.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function ul(e){if(rn.length){const t=[...new Set(rn)].sort((n,s)=>Dn(n)-Dn(s));if(rn.length=0,Dt){Dt.push(...t);return}for(Dt=t,Yt=0;Yt<Dt.length;Yt++){const n=Dt[Yt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Dt=null,Yt=0}}const Dn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function fl(e){try{for(ht=0;ht<ze.length;ht++){const t=ze[ht];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Fn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;ht<ze.length;ht++){const t=ze[ht];t&&(t.flags&=-2)}ht=-1,ze.length=0,ul(),us=null,(ze.length||rn.length)&&fl()}}let Ze=null,dl=null;function fs(e){const t=Ze;return Ze=e,dl=e&&e.type.__scopeId||null,t}function hl(e,t=Ze,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&ps(-1);const o=fs(t);let i;try{i=e(...r)}finally{fs(o),s._d&&ps(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Pc(e,t){if(Ze===null)return e;const n=Bs(Ze),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,i,l,a=ie]=t[r];o&&(q(o)&&(o={mounted:o,updated:o}),o.deep&&Tt(i),s.push({dir:o,instance:n,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function $t(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];o&&(l.oldValue=o[i].value);let a=l.dir[s];a&&(Ct(),_t(a,n,8,[e.el,l,e,t]),Ot())}}function ss(e,t){if(Be){let n=Be.provides;const s=Be.parent&&Be.parent.provides;s===n&&(n=Be.provides=Object.create(s)),n[e]=t}}function rt(e,t,n=!1){const s=Cu();if(s||ln){let r=ln?ln._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&q(t)?t.call(s&&s.proxy):t}}const Nc=Symbol.for("v-scx"),Ic=()=>rt(Nc);function on(e,t,n){return pl(e,t,n)}function pl(e,t,n=ie){const{immediate:s,deep:r,flush:o,once:i}=n,l=Oe({},n),a=t&&s||!t&&o!=="post";let u;if($n){if(o==="sync"){const p=Ic();u=p.__watcherHandles||(p.__watcherHandles=[])}else if(!a){const p=()=>{};return p.stop=yt,p.resume=yt,p.pause=yt,p}}const c=Be;l.call=(p,x,y)=>_t(p,c,x,y);let f=!1;o==="post"?l.scheduler=p=>{Ke(p,c&&c.suspense)}:o!=="sync"&&(f=!0,l.scheduler=(p,x)=>{x?p():Vr(p)}),l.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,c&&(p.id=c.uid,p.i=c))};const h=Ac(e,t,l);return $n&&(u?u.push(h):a&&h()),h}function Dc(e,t,n){const s=this.proxy,r=de(e)?e.includes(".")?gl(s,e):()=>s[e]:e.bind(s,s);let o;q(t)?o=t:(o=t.handler,n=t);const i=Un(this),l=pl(r,o.bind(s),n);return i(),l}function gl(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const Lc=Symbol("_vte"),Bc=e=>e.__isTeleport,$c=Symbol("_leaveCb");function qr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,qr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ml(e,t){return q(e)?Oe({name:e.name},t,{setup:e}):e}function bl(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Eo(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const ds=new WeakMap;function En(e,t,n,s,r=!1){if(V(e)){e.forEach((y,w)=>En(y,t&&(V(t)?t[w]:t),n,s,r));return}if(Sn(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&En(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?Bs(s.component):s.el,i=r?null:o,{i:l,r:a}=e,u=t&&t.r,c=l.refs===ie?l.refs={}:l.refs,f=l.setupState,h=ee(f),p=f===ie?Li:y=>Eo(c,y)?!1:te(h,y),x=(y,w)=>!(w&&Eo(c,w));if(u!=null&&u!==a){if(So(t),de(u))c[u]=null,p(u)&&(f[u]=null);else if(Me(u)){const y=t;x(u,y.k)&&(u.value=null),y.k&&(c[y.k]=null)}}if(q(a))Fn(a,l,12,[i,c]);else{const y=de(a),w=Me(a);if(y||w){const k=()=>{if(e.f){const A=y?p(a)?f[a]:c[a]:x()||!e.k?a.value:c[e.k];if(r)V(A)&&Ir(A,o);else if(V(A))A.includes(o)||A.push(o);else if(y)c[a]=[o],p(a)&&(f[a]=c[a]);else{const P=[o];x(a,e.k)&&(a.value=P),e.k&&(c[e.k]=P)}}else y?(c[a]=i,p(a)&&(f[a]=i)):w&&(x(a,e.k)&&(a.value=i),e.k&&(c[e.k]=i))};if(i){const A=()=>{k(),ds.delete(e)};A.id=-1,ds.set(e,A),Ke(A,n)}else So(e),k()}}}function So(e){const t=ds.get(e);t&&(t.flags|=8,ds.delete(e))}As().requestIdleCallback;As().cancelIdleCallback;const Sn=e=>!!e.type.__asyncLoader,xl=e=>e.type.__isKeepAlive;function Mc(e,t){yl(e,"a",t)}function jc(e,t){yl(e,"da",t)}function yl(e,t,n=Be){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Ns(t,s,n),n){let r=n.parent;for(;r&&r.parent;)xl(r.parent.vnode)&&Fc(s,t,n,r),r=r.parent}}function Fc(e,t,n,s){const r=Ns(t,e,s,!0);Is(()=>{Ir(s[t],r)},n)}function Ns(e,t,n=Be,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Ct();const l=Un(n),a=_t(t,n,e,i);return l(),Ot(),a});return s?r.unshift(o):r.push(o),o}}const Nt=e=>(t,n=Be)=>{(!$n||e==="sp")&&Ns(e,(...s)=>t(...s),n)},Uc=Nt("bm"),Kr=Nt("m"),Hc=Nt("bu"),zc=Nt("u"),Vc=Nt("bum"),Is=Nt("um"),qc=Nt("sp"),Kc=Nt("rtg"),Wc=Nt("rtc");function Gc(e,t=Be){Ns("ec",e,t)}const wl="components";function vl(e,t){return Rl(wl,e,!0,t)||e}const _l=Symbol.for("v-ndc");function Jc(e){return de(e)?Rl(wl,e,!1)||e:e||_l}function Rl(e,t,n=!0,s=!1){const r=Ze||Be;if(r){const o=r.type;{const l=Du(o,!1);if(l&&(l===t||l===Ve(t)||l===Ss(Ve(t))))return o}const i=Ao(r[e]||o[e],t)||Ao(r.appContext[e],t);return!i&&s?o:i}}function Ao(e,t){return e&&(e[t]||e[Ve(t)]||e[Ss(Ve(t))])}function kl(e,t,n,s){let r;const o=n,i=V(e);if(i||de(e)){const l=i&&Vt(e);let a=!1,u=!1;l&&(a=!tt(e),u=Pt(e),e=Cs(e)),r=new Array(e.length);for(let c=0,f=e.length;c<f;c++)r[c]=t(a?u?an(ot(e[c])):ot(e[c]):e[c],c,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,o)}else if(se(e))if(e[Symbol.iterator])r=Array.from(e,(l,a)=>t(l,a,void 0,o));else{const l=Object.keys(e);r=new Array(l.length);for(let a=0,u=l.length;a<u;a++){const c=l[a];r[a]=t(e[c],c,a,o)}}else r=[];return r}const gr=e=>e?ql(e)?Bs(e):gr(e.parent):null,An=Oe(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=>gr(e.parent),$root:e=>gr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Sl(e),$forceUpdate:e=>e.f||(e.f=()=>{Vr(e.update)}),$nextTick:e=>e.n||(e.n=al.bind(e.proxy)),$watch:e=>Dc.bind(e)}),Zs=(e,t)=>e!==ie&&!e.__isScriptSetup&&te(e,t),Qc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:a}=e;if(t[0]!=="$"){const h=i[t];if(h!==void 0)switch(h){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Zs(s,t))return i[t]=1,s[t];if(r!==ie&&te(r,t))return i[t]=2,r[t];if(te(o,t))return i[t]=3,o[t];if(n!==ie&&te(n,t))return i[t]=4,n[t];mr&&(i[t]=0)}}const u=An[t];let c,f;if(u)return t==="$attrs"&&Le(e.attrs,"get",""),u(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(n!==ie&&te(n,t))return i[t]=4,n[t];if(f=a.config.globalProperties,te(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return Zs(r,t)?(r[t]=n,!0):s!==ie&&te(s,t)?(s[t]=n,!0):te(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:o,type:i}},l){let a;return!!(n[l]||e!==ie&&l[0]!=="$"&&te(e,l)||Zs(t,l)||te(o,l)||te(s,l)||te(An,l)||te(r.config.globalProperties,l)||(a=i.__cssModules)&&a[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:te(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function To(e){return V(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let mr=!0;function Zc(e){const t=Sl(e),n=e.proxy,s=e.ctx;mr=!1,t.beforeCreate&&Co(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:a,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:p,updated:x,activated:y,deactivated:w,beforeDestroy:k,beforeUnmount:A,destroyed:P,unmounted:C,render:H,renderTracked:K,renderTriggered:B,errorCaptured:he,serverPrefetch:ve,expose:pe,inheritAttrs:Pe,components:Ye,directives:Ge,filters:Ne}=t;if(u&&Xc(u,s,null),i)for(const X in i){const J=i[X];q(J)&&(s[X]=J.bind(n))}if(r){const X=r.call(n,n);se(X)&&(e.data=Os(X))}if(mr=!0,o)for(const X in o){const J=o[X],_e=q(J)?J.bind(n,n):q(J.get)?J.get.bind(n,n):yt,be=!q(J)&&q(J.set)?J.set.bind(n):yt,Re=me({get:_e,set:be});Object.defineProperty(s,X,{enumerable:!0,configurable:!0,get:()=>Re.value,set:Ae=>Re.value=Ae})}if(l)for(const X in l)El(l[X],s,n,X);if(a){const X=q(a)?a.call(n):a;Reflect.ownKeys(X).forEach(J=>{ss(J,X[J])})}c&&Co(c,e,"c");function ue(X,J){V(J)?J.forEach(_e=>X(_e.bind(n))):J&&X(J.bind(n))}if(ue(Uc,f),ue(Kr,h),ue(Hc,p),ue(zc,x),ue(Mc,y),ue(jc,w),ue(Gc,he),ue(Wc,K),ue(Kc,B),ue(Vc,A),ue(Is,C),ue(qc,ve),V(pe))if(pe.length){const X=e.exposed||(e.exposed={});pe.forEach(J=>{Object.defineProperty(X,J,{get:()=>n[J],set:_e=>n[J]=_e,enumerable:!0})})}else e.exposed||(e.exposed={});H&&e.render===yt&&(e.render=H),Pe!=null&&(e.inheritAttrs=Pe),Ye&&(e.components=Ye),Ge&&(e.directives=Ge),ve&&bl(e)}function Xc(e,t,n=yt){V(e)&&(e=br(e));for(const s in e){const r=e[s];let o;se(r)?"default"in r?o=rt(r.from||s,r.default,!0):o=rt(r.from||s):o=rt(r),Me(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Co(e,t,n){_t(V(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function El(e,t,n,s){let r=s.includes(".")?gl(n,s):()=>n[s];if(de(e)){const o=t[e];q(o)&&on(r,o)}else if(q(e))on(r,e.bind(n));else if(se(e))if(V(e))e.forEach(o=>El(o,t,n,s));else{const o=q(e.handler)?e.handler.bind(n):t[e.handler];q(o)&&on(r,o,e)}}function Sl(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let a;return l?a=l:!r.length&&!n&&!s?a=t:(a={},r.length&&r.forEach(u=>hs(a,u,i,!0)),hs(a,t,i)),se(t)&&o.set(t,a),a}function hs(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&hs(e,o,n,!0),r&&r.forEach(i=>hs(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=Yc[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Yc={data:Oo,props:Po,emits:Po,methods:wn,computed:wn,beforeCreate:Fe,created:Fe,beforeMount:Fe,mounted:Fe,beforeUpdate:Fe,updated:Fe,beforeDestroy:Fe,beforeUnmount:Fe,destroyed:Fe,unmounted:Fe,activated:Fe,deactivated:Fe,errorCaptured:Fe,serverPrefetch:Fe,components:wn,directives:wn,watch:tu,provide:Oo,inject:eu};function Oo(e,t){return t?e?function(){return Oe(q(e)?e.call(this,this):e,q(t)?t.call(this,this):t)}:t:e}function eu(e,t){return wn(br(e),br(t))}function br(e){if(V(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Fe(e,t){return e?[...new Set([].concat(e,t))]:t}function wn(e,t){return e?Oe(Object.create(null),e,t):t}function Po(e,t){return e?V(e)&&V(t)?[...new Set([...e,...t])]:Oe(Object.create(null),To(e),To(t??{})):t}function tu(e,t){if(!e)return t;if(!t)return e;const n=Oe(Object.create(null),e);for(const s in t)n[s]=Fe(e[s],t[s]);return n}function Al(){return{app:null,config:{isNativeTag:Li,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 nu=0;function su(e,t){return function(s,r=null){q(s)||(s=Oe({},s)),r!=null&&!se(r)&&(r=null);const o=Al(),i=new WeakSet,l=[];let a=!1;const u=o.app={_uid:nu++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:Bu,get config(){return o.config},set config(c){},use(c,...f){return i.has(c)||(c&&q(c.install)?(i.add(c),c.install(u,...f)):q(c)&&(i.add(c),c(u,...f))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,f){return f?(o.components[c]=f,u):o.components[c]},directive(c,f){return f?(o.directives[c]=f,u):o.directives[c]},mount(c,f,h){if(!a){const p=u._ceVNode||Se(s,r);return p.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),e(p,c,h),a=!0,u._container=c,c.__vue_app__=u,Bs(p.component)}},onUnmount(c){l.push(c)},unmount(){a&&(_t(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return o.provides[c]=f,u},runWithContext(c){const f=ln;ln=u;try{return c()}finally{ln=f}}};return u}}let ln=null;const ru=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ve(t)}Modifiers`]||e[`${Jt(t)}Modifiers`];function ou(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ie;let r=n;const o=t.startsWith("update:"),i=o&&ru(s,t.slice(7));i&&(i.trim&&(r=n.map(c=>de(c)?c.trim():c)),i.number&&(r=n.map(Lr)));let l,a=s[l=Ks(t)]||s[l=Ks(Ve(t))];!a&&o&&(a=s[l=Ks(Jt(t))]),a&&_t(a,e,6,r);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,_t(u,e,6,r)}}const iu=new WeakMap;function Tl(e,t,n=!1){const s=n?iu:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!q(e)){const a=u=>{const c=Tl(u,t,!0);c&&(l=!0,Oe(i,c))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!l?(se(e)&&s.set(e,null),null):(V(o)?o.forEach(a=>i[a]=null):Oe(i,o),se(e)&&s.set(e,i),i)}function Ds(e,t){return!e||!Rs(t)?!1:(t=t.slice(2).replace(/Once$/,""),te(e,t[0].toLowerCase()+t.slice(1))||te(e,Jt(t))||te(e,t))}function No(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:a,render:u,renderCache:c,props:f,data:h,setupState:p,ctx:x,inheritAttrs:y}=e,w=fs(e);let k,A;try{if(n.shapeFlag&4){const C=r||s,H=C;k=gt(u.call(H,C,c,f,p,h,x)),A=l}else{const C=t;k=gt(C.length>1?C(f,{attrs:l,slots:i,emit:a}):C(f,null)),A=t.props?l:lu(l)}}catch(C){Tn.length=0,Ps(C,e,1),k=Se(Bt)}let P=k;if(A&&y!==!1){const C=Object.keys(A),{shapeFlag:H}=P;C.length&&H&7&&(o&&C.some(ks)&&(A=au(A,o)),P=cn(P,A,!1,!0))}return n.dirs&&(P=cn(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(n.dirs):n.dirs),n.transition&&qr(P,n.transition),k=P,fs(w),k}const lu=e=>{let t;for(const n in e)(n==="class"||n==="style"||Rs(n))&&((t||(t={}))[n]=e[n]);return t},au=(e,t)=>{const n={};for(const s in e)(!ks(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function cu(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:a}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?Io(s,i,u):!!i;if(a&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const h=c[f];if(Cl(i,s,h)&&!Ds(u,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?Io(s,i,u):!0:!!i;return!1}function Io(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(Cl(t,e,o)&&!Ds(n,o))return!0}return!1}function Cl(e,t,n){const s=e[n],r=t[n];return n==="style"&&se(s)&&se(r)?!Br(s,r):s!==r}function uu({vnode:e,parent:t,suspense:n},s){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=s,e=r),r===e)(e=t.vnode).el=s,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=s)}const Ol={},Pl=()=>Object.create(Ol),Nl=e=>Object.getPrototypeOf(e)===Ol;function fu(e,t,n,s=!1){const r={},o=Pl();e.propsDefaults=Object.create(null),Il(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:rl(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function du(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=ee(r),[a]=e.propsOptions;let u=!1;if((s||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let h=c[f];if(Ds(e.emitsOptions,h))continue;const p=t[h];if(a)if(te(o,h))p!==o[h]&&(o[h]=p,u=!0);else{const x=Ve(h);r[x]=xr(a,l,x,p,e,!1)}else p!==o[h]&&(o[h]=p,u=!0)}}}else{Il(e,t,r,o)&&(u=!0);let c;for(const f in l)(!t||!te(t,f)&&((c=Jt(f))===f||!te(t,c)))&&(a?n&&(n[f]!==void 0||n[c]!==void 0)&&(r[f]=xr(a,l,f,void 0,e,!0)):delete r[f]);if(o!==l)for(const f in o)(!t||!te(t,f))&&(delete o[f],u=!0)}u&&At(e.attrs,"set","")}function Il(e,t,n,s){const[r,o]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(_n(a))continue;const u=t[a];let c;r&&te(r,c=Ve(a))?!o||!o.includes(c)?n[c]=u:(l||(l={}))[c]=u:Ds(e.emitsOptions,a)||(!(a in s)||u!==s[a])&&(s[a]=u,i=!0)}if(o){const a=ee(n),u=l||ie;for(let c=0;c<o.length;c++){const f=o[c];n[f]=xr(r,a,f,u[f],e,!te(u,f))}}return i}function xr(e,t,n,s,r,o){const i=e[n];if(i!=null){const l=te(i,"default");if(l&&s===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&q(a)){const{propsDefaults:u}=r;if(n in u)s=u[n];else{const c=Un(r);s=u[n]=a.call(null,t),c()}}else s=a;r.ce&&r.ce._setProp(n,s)}i[0]&&(o&&!l?s=!1:i[1]&&(s===""||s===Jt(n))&&(s=!0))}return s}const hu=new WeakMap;function Dl(e,t,n=!1){const s=n?hu:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,i={},l=[];let a=!1;if(!q(e)){const c=f=>{a=!0;const[h,p]=Dl(f,t,!0);Oe(i,h),p&&l.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!a)return se(e)&&s.set(e,nn),nn;if(V(o))for(let c=0;c<o.length;c++){const f=Ve(o[c]);Do(f)&&(i[f]=ie)}else if(o)for(const c in o){const f=Ve(c);if(Do(f)){const h=o[c],p=i[f]=V(h)||q(h)?{type:h}:Oe({},h),x=p.type;let y=!1,w=!0;if(V(x))for(let k=0;k<x.length;++k){const A=x[k],P=q(A)&&A.name;if(P==="Boolean"){y=!0;break}else P==="String"&&(w=!1)}else y=q(x)&&x.name==="Boolean";p[0]=y,p[1]=w,(y||te(p,"default"))&&l.push(f)}}const u=[i,l];return se(e)&&s.set(e,u),u}function Do(e){return e[0]!=="$"&&!_n(e)}const Wr=e=>e==="_"||e==="_ctx"||e==="$stable",Gr=e=>V(e)?e.map(gt):[gt(e)],pu=(e,t,n)=>{if(t._n)return t;const s=hl((...r)=>Gr(t(...r)),n);return s._c=!1,s},Ll=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Wr(r))continue;const o=e[r];if(q(o))t[r]=pu(r,o,s);else if(o!=null){const i=Gr(o);t[r]=()=>i}}},Bl=(e,t)=>{const n=Gr(t);e.slots.default=()=>n},$l=(e,t,n)=>{for(const s in t)(n||!Wr(s))&&(e[s]=t[s])},gu=(e,t,n)=>{const s=e.slots=Pl();if(e.vnode.shapeFlag&32){const r=t._;r?($l(s,t,n),n&&Fi(s,"_",r,!0)):Ll(t,s)}else t&&Bl(e,t)},mu=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=ie;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:$l(r,t,n):(o=!t.$stable,Ll(t,r)),i=t}else t&&(Bl(e,t),i={default:1});if(o)for(const l in r)!Wr(l)&&i[l]==null&&delete r[l]},Ke=vu;function bu(e){return xu(e)}function xu(e,t){const n=As();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:a,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:p=yt,insertStaticContent:x}=e,y=(d,g,m,R=null,S=null,E=null,L=void 0,D=null,N=!!g.dynamicChildren)=>{if(d===g)return;d&&!mn(d,g)&&(R=v(d),Ae(d,S,E,!0),d=null),g.patchFlag===-2&&(N=!1,g.dynamicChildren=null);const{type:T,ref:U,shapeFlag:$}=g;switch(T){case Ls:w(d,g,m,R);break;case Bt:k(d,g,m,R);break;case rs:d==null&&A(g,m,R,L);break;case nt:Ye(d,g,m,R,S,E,L,D,N);break;default:$&1?H(d,g,m,R,S,E,L,D,N):$&6?Ge(d,g,m,R,S,E,L,D,N):($&64||$&128)&&T.process(d,g,m,R,S,E,L,D,N,j)}U!=null&&S?En(U,d&&d.ref,E,g||d,!g):U==null&&d&&d.ref!=null&&En(d.ref,null,E,d,!0)},w=(d,g,m,R)=>{if(d==null)s(g.el=l(g.children),m,R);else{const S=g.el=d.el;g.children!==d.children&&u(S,g.children)}},k=(d,g,m,R)=>{d==null?s(g.el=a(g.children||""),m,R):g.el=d.el},A=(d,g,m,R)=>{[d.el,d.anchor]=x(d.children,g,m,R,d.el,d.anchor)},P=({el:d,anchor:g},m,R)=>{let S;for(;d&&d!==g;)S=h(d),s(d,m,R),d=S;s(g,m,R)},C=({el:d,anchor:g})=>{let m;for(;d&&d!==g;)m=h(d),r(d),d=m;r(g)},H=(d,g,m,R,S,E,L,D,N)=>{if(g.type==="svg"?L="svg":g.type==="math"&&(L="mathml"),d==null)K(g,m,R,S,E,L,D,N);else{const T=d.el&&d.el._isVueCE?d.el:null;try{T&&T._beginPatch(),ve(d,g,S,E,L,D,N)}finally{T&&T._endPatch()}}},K=(d,g,m,R,S,E,L,D)=>{let N,T;const{props:U,shapeFlag:$,transition:F,dirs:z}=d;if(N=d.el=i(d.type,E,U&&U.is,U),$&8?c(N,d.children):$&16&&he(d.children,N,null,R,S,Xs(d,E),L,D),z&&$t(d,null,R,"created"),B(N,d,d.scopeId,L,R),U){for(const oe in U)oe!=="value"&&!_n(oe)&&o(N,oe,null,U[oe],E,R);"value"in U&&o(N,"value",null,U.value,E),(T=U.onVnodeBeforeMount)&&dt(T,R,d)}z&&$t(d,null,R,"beforeMount");const Q=yu(S,F);Q&&F.beforeEnter(N),s(N,g,m),((T=U&&U.onVnodeMounted)||Q||z)&&Ke(()=>{try{T&&dt(T,R,d),Q&&F.enter(N),z&&$t(d,null,R,"mounted")}finally{}},S)},B=(d,g,m,R,S)=>{if(m&&p(d,m),R)for(let E=0;E<R.length;E++)p(d,R[E]);if(S){let E=S.subTree;if(g===E||Ul(E.type)&&(E.ssContent===g||E.ssFallback===g)){const L=S.vnode;B(d,L,L.scopeId,L.slotScopeIds,S.parent)}}},he=(d,g,m,R,S,E,L,D,N=0)=>{for(let T=N;T<d.length;T++){const U=d[T]=D?St(d[T]):gt(d[T]);y(null,U,g,m,R,S,E,L,D)}},ve=(d,g,m,R,S,E,L)=>{const D=g.el=d.el;let{patchFlag:N,dynamicChildren:T,dirs:U}=g;N|=d.patchFlag&16;const $=d.props||ie,F=g.props||ie;let z;if(m&&Mt(m,!1),(z=F.onVnodeBeforeUpdate)&&dt(z,m,g,d),U&&$t(g,d,m,"beforeUpdate"),m&&Mt(m,!0),($.innerHTML&&F.innerHTML==null||$.textContent&&F.textContent==null)&&c(D,""),T?pe(d.dynamicChildren,T,D,m,R,Xs(g,S),E):L||J(d,g,D,null,m,R,Xs(g,S),E,!1),N>0){if(N&16)Pe(D,$,F,m,S);else if(N&2&&$.class!==F.class&&o(D,"class",null,F.class,S),N&4&&o(D,"style",$.style,F.style,S),N&8){const Q=g.dynamicProps;for(let oe=0;oe<Q.length;oe++){const le=Q[oe],ye=$[le],Te=F[le];(Te!==ye||le==="value")&&o(D,le,ye,Te,S,m)}}N&1&&d.children!==g.children&&c(D,g.children)}else!L&&T==null&&Pe(D,$,F,m,S);((z=F.onVnodeUpdated)||U)&&Ke(()=>{z&&dt(z,m,g,d),U&&$t(g,d,m,"updated")},R)},pe=(d,g,m,R,S,E,L)=>{for(let D=0;D<g.length;D++){const N=d[D],T=g[D],U=N.el&&(N.type===nt||!mn(N,T)||N.shapeFlag&198)?f(N.el):m;y(N,T,U,null,R,S,E,L,!0)}},Pe=(d,g,m,R,S)=>{if(g!==m){if(g!==ie)for(const E in g)!_n(E)&&!(E in m)&&o(d,E,g[E],null,S,R);for(const E in m){if(_n(E))continue;const L=m[E],D=g[E];L!==D&&E!=="value"&&o(d,E,D,L,S,R)}"value"in m&&o(d,"value",g.value,m.value,S)}},Ye=(d,g,m,R,S,E,L,D,N)=>{const T=g.el=d?d.el:l(""),U=g.anchor=d?d.anchor:l("");let{patchFlag:$,dynamicChildren:F,slotScopeIds:z}=g;z&&(D=D?D.concat(z):z),d==null?(s(T,m,R),s(U,m,R),he(g.children||[],m,U,S,E,L,D,N)):$>0&&$&64&&F&&d.dynamicChildren&&d.dynamicChildren.length===F.length?(pe(d.dynamicChildren,F,m,S,E,L,D),(g.key!=null||S&&g===S.subTree)&&Ml(d,g,!0)):J(d,g,m,U,S,E,L,D,N)},Ge=(d,g,m,R,S,E,L,D,N)=>{g.slotScopeIds=D,d==null?g.shapeFlag&512?S.ctx.activate(g,m,R,L,N):Ne(g,m,R,S,E,L,N):at(d,g,N)},Ne=(d,g,m,R,S,E,L)=>{const D=d.component=Tu(d,R,S);if(xl(d)&&(D.ctx.renderer=j),Ou(D,!1,L),D.asyncDep){if(S&&S.registerDep(D,ue,L),!d.el){const N=D.subTree=Se(Bt);k(null,N,g,m),d.placeholder=N.el}}else ue(D,d,g,m,S,E,L)},at=(d,g,m)=>{const R=g.component=d.component;if(cu(d,g,m))if(R.asyncDep&&!R.asyncResolved){X(R,g,m);return}else R.next=g,R.update();else g.el=d.el,R.vnode=g},ue=(d,g,m,R,S,E,L)=>{const D=()=>{if(d.isMounted){let{next:$,bu:F,u:z,parent:Q,vnode:oe}=d;{const ut=jl(d);if(ut){$&&($.el=oe.el,X(d,$,L)),ut.asyncDep.then(()=>{Ke(()=>{d.isUnmounted||T()},S)});return}}let le=$,ye;Mt(d,!1),$?($.el=oe.el,X(d,$,L)):$=oe,F&&ns(F),(ye=$.props&&$.props.onVnodeBeforeUpdate)&&dt(ye,Q,$,oe),Mt(d,!0);const Te=No(d),ct=d.subTree;d.subTree=Te,y(ct,Te,f(ct.el),v(ct),d,S,E),$.el=Te.el,le===null&&uu(d,Te.el),z&&Ke(z,S),(ye=$.props&&$.props.onVnodeUpdated)&&Ke(()=>dt(ye,Q,$,oe),S)}else{let $;const{el:F,props:z}=g,{bm:Q,m:oe,parent:le,root:ye,type:Te}=d,ct=Sn(g);Mt(d,!1),Q&&ns(Q),!ct&&($=z&&z.onVnodeBeforeMount)&&dt($,le,g),Mt(d,!0);{ye.ce&&ye.ce._hasShadowRoot()&&ye.ce._injectChildStyle(Te,d.parent?d.parent.type:void 0);const ut=d.subTree=No(d);y(null,ut,m,R,d,S,E),g.el=ut.el}if(oe&&Ke(oe,S),!ct&&($=z&&z.onVnodeMounted)){const ut=g;Ke(()=>dt($,le,ut),S)}(g.shapeFlag&256||le&&Sn(le.vnode)&&le.vnode.shapeFlag&256)&&d.a&&Ke(d.a,S),d.isMounted=!0,g=m=R=null}};d.scope.on();const N=d.effect=new Vi(D);d.scope.off();const T=d.update=N.run.bind(N),U=d.job=N.runIfDirty.bind(N);U.i=d,U.id=d.uid,N.scheduler=()=>Vr(U),Mt(d,!0),T()},X=(d,g,m)=>{g.component=d;const R=d.vnode.props;d.vnode=g,d.next=null,du(d,g.props,R,m),mu(d,g.children,m),Ct(),ko(d),Ot()},J=(d,g,m,R,S,E,L,D,N=!1)=>{const T=d&&d.children,U=d?d.shapeFlag:0,$=g.children,{patchFlag:F,shapeFlag:z}=g;if(F>0){if(F&128){be(T,$,m,R,S,E,L,D,N);return}else if(F&256){_e(T,$,m,R,S,E,L,D,N);return}}z&8?(U&16&&Ie(T,S,E),$!==T&&c(m,$)):U&16?z&16?be(T,$,m,R,S,E,L,D,N):Ie(T,S,E,!0):(U&8&&c(m,""),z&16&&he($,m,R,S,E,L,D,N))},_e=(d,g,m,R,S,E,L,D,N)=>{d=d||nn,g=g||nn;const T=d.length,U=g.length,$=Math.min(T,U);let F;for(F=0;F<$;F++){const z=g[F]=N?St(g[F]):gt(g[F]);y(d[F],z,m,null,S,E,L,D,N)}T>U?Ie(d,S,E,!0,!1,$):he(g,m,R,S,E,L,D,N,$)},be=(d,g,m,R,S,E,L,D,N)=>{let T=0;const U=g.length;let $=d.length-1,F=U-1;for(;T<=$&&T<=F;){const z=d[T],Q=g[T]=N?St(g[T]):gt(g[T]);if(mn(z,Q))y(z,Q,m,null,S,E,L,D,N);else break;T++}for(;T<=$&&T<=F;){const z=d[$],Q=g[F]=N?St(g[F]):gt(g[F]);if(mn(z,Q))y(z,Q,m,null,S,E,L,D,N);else break;$--,F--}if(T>$){if(T<=F){const z=F+1,Q=z<U?g[z].el:R;for(;T<=F;)y(null,g[T]=N?St(g[T]):gt(g[T]),m,Q,S,E,L,D,N),T++}}else if(T>F)for(;T<=$;)Ae(d[T],S,E,!0),T++;else{const z=T,Q=T,oe=new Map;for(T=Q;T<=F;T++){const Je=g[T]=N?St(g[T]):gt(g[T]);Je.key!=null&&oe.set(Je.key,T)}let le,ye=0;const Te=F-Q+1;let ct=!1,ut=0;const pn=new Array(Te);for(T=0;T<Te;T++)pn[T]=0;for(T=z;T<=$;T++){const Je=d[T];if(ye>=Te){Ae(Je,S,E,!0);continue}let ft;if(Je.key!=null)ft=oe.get(Je.key);else for(le=Q;le<=F;le++)if(pn[le-Q]===0&&mn(Je,g[le])){ft=le;break}ft===void 0?Ae(Je,S,E,!0):(pn[ft-Q]=T+1,ft>=ut?ut=ft:ct=!0,y(Je,g[ft],m,null,S,E,L,D,N),ye++)}const go=ct?wu(pn):nn;for(le=go.length-1,T=Te-1;T>=0;T--){const Je=Q+T,ft=g[Je],mo=g[Je+1],bo=Je+1<U?mo.el||Fl(mo):R;pn[T]===0?y(null,ft,m,bo,S,E,L,D,N):ct&&(le<0||T!==go[le]?Re(ft,m,bo,2):le--)}}},Re=(d,g,m,R,S=null)=>{const{el:E,type:L,transition:D,children:N,shapeFlag:T}=d;if(T&6){Re(d.component.subTree,g,m,R);return}if(T&128){d.suspense.move(g,m,R);return}if(T&64){L.move(d,g,m,j);return}if(L===nt){s(E,g,m);for(let $=0;$<N.length;$++)Re(N[$],g,m,R);s(d.anchor,g,m);return}if(L===rs){P(d,g,m);return}if(R!==2&&T&1&&D)if(R===0)D.beforeEnter(E),s(E,g,m),Ke(()=>D.enter(E),S);else{const{leave:$,delayLeave:F,afterLeave:z}=D,Q=()=>{d.ctx.isUnmounted?r(E):s(E,g,m)},oe=()=>{E._isLeaving&&E[$c](!0),$(E,()=>{Q(),z&&z()})};F?F(E,Q,oe):oe()}else s(E,g,m)},Ae=(d,g,m,R=!1,S=!1)=>{const{type:E,props:L,ref:D,children:N,dynamicChildren:T,shapeFlag:U,patchFlag:$,dirs:F,cacheIndex:z,memo:Q}=d;if($===-2&&(S=!1),D!=null&&(Ct(),En(D,null,m,d,!0),Ot()),z!=null&&(g.renderCache[z]=void 0),U&256){g.ctx.deactivate(d);return}const oe=U&1&&F,le=!Sn(d);let ye;if(le&&(ye=L&&L.onVnodeBeforeUnmount)&&dt(ye,g,d),U&6)ke(d.component,m,R);else{if(U&128){d.suspense.unmount(m,R);return}oe&&$t(d,null,g,"beforeUnmount"),U&64?d.type.remove(d,g,m,j,R):T&&!T.hasOnce&&(E!==nt||$>0&&$&64)?Ie(T,g,m,!1,!0):(E===nt&&$&384||!S&&U&16)&&Ie(N,g,m),R&&fe(d)}const Te=Q!=null&&z==null;(le&&(ye=L&&L.onVnodeUnmounted)||oe||Te)&&Ke(()=>{ye&&dt(ye,g,d),oe&&$t(d,null,g,"unmounted"),Te&&(d.el=null)},m)},fe=d=>{const{type:g,el:m,anchor:R,transition:S}=d;if(g===nt){je(m,R);return}if(g===rs){C(d);return}const E=()=>{r(m),S&&!S.persisted&&S.afterLeave&&S.afterLeave()};if(d.shapeFlag&1&&S&&!S.persisted){const{leave:L,delayLeave:D}=S,N=()=>L(m,E);D?D(d.el,E,N):N()}else E()},je=(d,g)=>{let m;for(;d!==g;)m=h(d),r(d),d=m;r(g)},ke=(d,g,m)=>{const{bum:R,scope:S,job:E,subTree:L,um:D,m:N,a:T}=d;Lo(N),Lo(T),R&&ns(R),S.stop(),E&&(E.flags|=8,Ae(L,d,g,m)),D&&Ke(D,g),Ke(()=>{d.isUnmounted=!0},g)},Ie=(d,g,m,R=!1,S=!1,E=0)=>{for(let L=E;L<d.length;L++)Ae(d[L],g,m,R,S)},v=d=>{if(d.shapeFlag&6)return v(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const g=h(d.anchor||d.el),m=g&&g[Lc];return m?h(m):g};let O=!1;const I=(d,g,m)=>{let R;d==null?g._vnode&&(Ae(g._vnode,null,null,!0),R=g._vnode.component):y(g._vnode||null,d,g,null,null,null,m),g._vnode=d,O||(O=!0,ko(R),ul(),O=!1)},j={p:y,um:Ae,m:Re,r:fe,mt:Ne,mc:he,pc:J,pbc:pe,n:v,o:e};return{render:I,hydrate:void 0,createApp:su(I)}}function Xs({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Mt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function yu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ml(e,t,n=!1){const s=e.children,r=t.children;if(V(s)&&V(r))for(let o=0;o<s.length;o++){const i=s[o];let l=r[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[o]=St(r[o]),l.el=i.el),!n&&l.patchFlag!==-2&&Ml(i,l)),l.type===Ls&&(l.patchFlag===-1&&(l=r[o]=St(l)),l.el=i.el),l.type===Bt&&!l.el&&(l.el=i.el)}}function wu(e){const t=e.slice(),n=[0];let s,r,o,i,l;const a=e.length;for(s=0;s<a;s++){const u=e[s];if(u!==0){if(r=n[n.length-1],e[r]<u){t[s]=r,n.push(s);continue}for(o=0,i=n.length-1;o<i;)l=o+i>>1,e[n[l]]<u?o=l+1:i=l;u<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function jl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:jl(t)}function Lo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Fl(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Fl(t.subTree):null}const Ul=e=>e.__isSuspense;function vu(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):Oc(e)}const nt=Symbol.for("v-fgt"),Ls=Symbol.for("v-txt"),Bt=Symbol.for("v-cmt"),rs=Symbol.for("v-stc"),Tn=[];let Xe=null;function G(e=!1){Tn.push(Xe=e?null:[])}function _u(){Tn.pop(),Xe=Tn[Tn.length-1]||null}let Ln=1;function ps(e,t=!1){Ln+=e,e<0&&Xe&&t&&(Xe.hasOnce=!0)}function Hl(e){return e.dynamicChildren=Ln>0?Xe||nn:null,_u(),Ln>0&&Xe&&Xe.push(e),e}function Z(e,t,n,s,r,o){return Hl(_(e,t,n,s,r,o,!0))}function Jr(e,t,n,s,r){return Hl(Se(e,t,n,s,r,!0))}function gs(e){return e?e.__v_isVNode===!0:!1}function mn(e,t){return e.type===t.type&&e.key===t.key}const zl=({key:e})=>e??null,os=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?de(e)||Me(e)||q(e)?{i:Ze,r:e,k:t,f:!!n}:e:null);function _(e,t=null,n=null,s=0,r=null,o=e===nt?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&zl(t),ref:t&&os(t),scopeId:dl,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ze};return l?(Qr(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=de(n)?8:16),Ln>0&&!i&&Xe&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&Xe.push(a),a}const Se=Ru;function Ru(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===_l)&&(e=Bt),gs(e)){const l=cn(e,t,!0);return n&&Qr(l,n),Ln>0&&!o&&Xe&&(l.shapeFlag&6?Xe[Xe.indexOf(e)]=l:Xe.push(l)),l.patchFlag=-2,l}if(Lu(e)&&(e=e.__vccOpts),t){t=ku(t);let{class:l,style:a}=t;l&&!de(l)&&(t.class=De(l)),se(a)&&(zr(a)&&!V(a)&&(a=Oe({},a)),t.style=Ts(a))}const i=de(e)?1:Ul(e)?128:Bc(e)?64:se(e)?4:q(e)?2:0;return _(e,t,n,s,r,i,o,!0)}function ku(e){return e?zr(e)||Nl(e)?Oe({},e):e:null}function cn(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:a}=e,u=t?Eu(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&zl(u),ref:t&&t.ref?n&&o?V(o)?o.concat(os(t)):[o,os(t)]:os(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==nt?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cn(e.ssContent),ssFallback:e.ssFallback&&cn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&qr(c,a.clone(c)),c}function Vl(e=" ",t=0){return Se(Ls,null,e,t)}function ms(e,t){const n=Se(rs,null,e);return n.staticCount=t,n}function Bn(e="",t=!1){return t?(G(),Jr(Bt,null,e)):Se(Bt,null,e)}function gt(e){return e==null||typeof e=="boolean"?Se(Bt):V(e)?Se(nt,null,e.slice()):gs(e)?St(e):Se(Ls,null,String(e))}function St(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:cn(e)}function Qr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Qr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Nl(t)?t._ctx=Ze:r===3&&Ze&&(Ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else q(t)?(t={default:t,_ctx:Ze},n=32):(t=String(t),s&64?(n=16,t=[Vl(t)]):n=8);e.children=t,e.shapeFlag|=n}function Eu(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=De([t.class,s.class]));else if(r==="style")t.style=Ts([t.style,s.style]);else if(Rs(r)){const o=t[r],i=s[r];i&&o!==i&&!(V(o)&&o.includes(i))?t[r]=o?[].concat(o,i):i:i==null&&o==null&&!ks(r)&&(t[r]=i)}else r!==""&&(t[r]=s[r])}return t}function dt(e,t,n,s=null){_t(e,t,7,[n,s])}const Su=Al();let Au=0;function Tu(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||Su,o={uid:Au++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ec(!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:Dl(s,r),emitsOptions:Tl(s,r),emit:null,emitted:null,propsDefaults:ie,inheritAttrs:s.inheritAttrs,ctx:ie,data:ie,props:ie,attrs:ie,slots:ie,refs:ie,setupState:ie,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=ou.bind(null,o),e.ce&&e.ce(o),o}let Be=null;const Cu=()=>Be||Ze;let bs,yr;{const e=As(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};bs=t("__VUE_INSTANCE_SETTERS__",n=>Be=n),yr=t("__VUE_SSR_SETTERS__",n=>$n=n)}const Un=e=>{const t=Be;return bs(e),e.scope.on(),()=>{e.scope.off(),bs(t)}},Bo=()=>{Be&&Be.scope.off(),bs(null)};function ql(e){return e.vnode.shapeFlag&4}let $n=!1;function Ou(e,t=!1,n=!1){t&&yr(t);const{props:s,children:r}=e.vnode,o=ql(e);fu(e,s,o,t),gu(e,r,n||t);const i=o?Pu(e,t):void 0;return t&&yr(!1),i}function Pu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Qc);const{setup:s}=n;if(s){Ct();const r=e.setupContext=s.length>1?Iu(e):null,o=Un(e),i=Fn(s,e,0,[e.props,r]),l=$i(i);if(Ot(),o(),(l||e.sp)&&!Sn(e)&&bl(e),l){if(i.then(Bo,Bo),t)return i.then(a=>{$o(e,a)}).catch(a=>{Ps(a,e,0)});e.asyncDep=i}else $o(e,i)}else Kl(e)}function $o(e,t,n){q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:se(t)&&(e.setupState=il(t)),Kl(e)}function Kl(e,t,n){const s=e.type;e.render||(e.render=s.render||yt);{const r=Un(e);Ct();try{Zc(e)}finally{Ot(),r()}}}const Nu={get(e,t){return Le(e,"get",""),e[t]}};function Iu(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Nu),slots:e.slots,emit:e.emit,expose:t}}function Bs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(il(wc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in An)return An[n](e)},has(t,n){return n in t||n in An}})):e.proxy}function Du(e,t=!0){return q(e)?e.displayName||e.name:e.name||t&&e.__name}function Lu(e){return q(e)&&"__vccOpts"in e}const me=(e,t)=>Ec(e,t,$n);function xs(e,t,n){try{ps(-1);const s=arguments.length;return s===2?se(t)&&!V(t)?gs(t)?Se(e,null,[t]):Se(e,t):Se(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&gs(n)&&(n=[n]),Se(e,t,n))}finally{ps(1)}}const Bu="3.5.34";/**
|
|
* @vue/runtime-dom v3.5.34
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let wr;const Mo=typeof window<"u"&&window.trustedTypes;if(Mo)try{wr=Mo.createPolicy("vue",{createHTML:e=>e})}catch{}const Wl=wr?e=>wr.createHTML(e):e=>e,$u="http://www.w3.org/2000/svg",Mu="http://www.w3.org/1998/Math/MathML",Et=typeof document<"u"?document:null,jo=Et&&Et.createElement("template"),ju={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Et.createElementNS($u,e):t==="mathml"?Et.createElementNS(Mu,e):n?Et.createElement(e,{is:n}):Et.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Et.createTextNode(e),createComment:e=>Et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Et.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{jo.innerHTML=Wl(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=jo.content;if(s==="svg"||s==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Fu=Symbol("_vtc");function Uu(e,t,n){const s=e[Fu];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Fo=Symbol("_vod"),Hu=Symbol("_vsh"),zu=Symbol(""),Vu=/(?:^|;)\s*display\s*:/;function qu(e,t,n){const s=e.style,r=de(n);let o=!1;if(n&&!r){if(t)if(de(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&vn(s,l,"")}else for(const i in t)n[i]==null&&vn(s,i,"");for(const i in n){i==="display"&&(o=!0);const l=n[i];l!=null?Wu(e,i,!de(t)&&t?t[i]:void 0,l)||vn(s,i,l):vn(s,i,"")}}else if(r){if(t!==n){const i=s[zu];i&&(n+=";"+i),s.cssText=n,o=Vu.test(n)}}else t&&e.removeAttribute("style");Fo in e&&(e[Fo]=o?s.display:"",e[Hu]&&(s.display="none"))}const Uo=/\s*!important$/;function vn(e,t,n){if(V(n))n.forEach(s=>vn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Ku(e,t);Uo.test(n)?e.setProperty(Jt(s),n.replace(Uo,""),"important"):e[s]=n}}const Ho=["Webkit","Moz","ms"],Ys={};function Ku(e,t){const n=Ys[t];if(n)return n;let s=Ve(t);if(s!=="filter"&&s in e)return Ys[t]=s;s=Ss(s);for(let r=0;r<Ho.length;r++){const o=Ho[r]+s;if(o in e)return Ys[t]=o}return t}function Wu(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&de(s)&&n===s}const zo="http://www.w3.org/1999/xlink";function Vo(e,t,n,s,r,o=Xa(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(zo,t.slice(6,t.length)):e.setAttributeNS(zo,t,n):n==null||o&&!Ui(n)?e.removeAttribute(t):e.setAttribute(t,o?"":vt(n)?String(n):n)}function qo(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Wl(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const l=o==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(l!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Ui(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(r||t)}function en(e,t,n,s){e.addEventListener(t,n,s)}function Gu(e,t,n,s){e.removeEventListener(t,n,s)}const Ko=Symbol("_vei");function Ju(e,t,n,s,r=null){const o=e[Ko]||(e[Ko]={}),i=o[t];if(s&&i)i.value=s;else{const[l,a]=Qu(t);if(s){const u=o[t]=Yu(s,r);en(e,l,u,a)}else i&&(Gu(e,l,i,a),o[t]=void 0)}}const Wo=/(?:Once|Passive|Capture)$/;function Qu(e){let t;if(Wo.test(e)){t={};let s;for(;s=e.match(Wo);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Jt(e.slice(2)),t]}let er=0;const Zu=Promise.resolve(),Xu=()=>er||(Zu.then(()=>er=0),er=Date.now());function Yu(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;_t(ef(s,n.value),t,5,[s])};return n.value=e,n.attached=Xu(),n}function ef(e,t){if(V(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Go=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,tf=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?Uu(e,s,i):t==="style"?qu(e,n,s):Rs(t)?ks(t)||Ju(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):nf(e,t,s,i))?(qo(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Vo(e,t,s,i,o,t!=="value")):e._isVueCE&&(sf(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!de(s)))?qo(e,Ve(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Vo(e,t,s,i))};function nf(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Go(t)&&q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Go(t)&&de(n)?!1:t in e}function sf(e,t){const n=e._def.props;if(!n)return!1;const s=Ve(t);return Array.isArray(n)?n.some(r=>Ve(r)===s):Object.keys(n).some(r=>Ve(r)===s)}const Jo=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>ns(t,n):t};function rf(e){e.target.composing=!0}function Qo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const tr=Symbol("_assign");function Zo(e,t,n){return t&&(e=e.trim()),n&&(e=Lr(e)),e}const of={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[tr]=Jo(r);const o=s||r.props&&r.props.type==="number";en(e,t?"change":"input",i=>{i.target.composing||e[tr](Zo(e.value,n,o))}),(n||o)&&en(e,"change",()=>{e.value=Zo(e.value,n,o)}),t||(en(e,"compositionstart",rf),en(e,"compositionend",Qo),en(e,"change",Qo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},i){if(e[tr]=Jo(i),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?Lr(e.value):e.value,a=t??"";if(l===a)return;const u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===a)||(e.value=a)}},lf=Oe({patchProp:tf},ju);let Xo;function af(){return Xo||(Xo=bu(lf))}const cf=(...e)=>{const t=af().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=ff(s);if(!r)return;const o=t._component;!q(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,uf(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function uf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ff(e){return de(e)?document.querySelector(e):e}const Zr=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},df={},hf={class:"min-h-screen bg-gradient-to-br from-orange-100 via-orange-200 to-amber-100"};function pf(e,t){const n=vl("router-view");return G(),Z("div",hf,[Se(n)])}const gf=Zr(df,[["render",pf]]);/*!
|
|
* vue-router v4.6.4
|
|
* (c) 2025 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/const tn=typeof document<"u";function Gl(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function mf(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Gl(e.default)}const Y=Object.assign;function nr(e,t){const n={};for(const s in t){const r=t[s];n[s]=it(r)?r.map(e):e(r)}return n}const Cn=()=>{},it=Array.isArray;function Yo(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const Jl=/#/g,bf=/&/g,xf=/\//g,yf=/=/g,wf=/\?/g,Ql=/\+/g,vf=/%5B/g,_f=/%5D/g,Zl=/%5E/g,Rf=/%60/g,Xl=/%7B/g,kf=/%7C/g,Yl=/%7D/g,Ef=/%20/g;function Xr(e){return e==null?"":encodeURI(""+e).replace(kf,"|").replace(vf,"[").replace(_f,"]")}function Sf(e){return Xr(e).replace(Xl,"{").replace(Yl,"}").replace(Zl,"^")}function vr(e){return Xr(e).replace(Ql,"%2B").replace(Ef,"+").replace(Jl,"%23").replace(bf,"%26").replace(Rf,"`").replace(Xl,"{").replace(Yl,"}").replace(Zl,"^")}function Af(e){return vr(e).replace(yf,"%3D")}function Tf(e){return Xr(e).replace(Jl,"%23").replace(wf,"%3F")}function Cf(e){return Tf(e).replace(xf,"%2F")}function Mn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Of=/\/$/,Pf=e=>e.replace(Of,"");function sr(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return a=l>=0&&a>l?-1:a,a>=0&&(s=t.slice(0,a),o=t.slice(a,l>0?l:t.length),r=e(o.slice(1))),l>=0&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=Lf(s??t,n),{fullPath:s+o+i,path:s,query:r,hash:Mn(i)}}function Nf(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ei(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function If(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&un(t.matched[s],n.matched[r])&&ea(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function un(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ea(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Df(e[n],t[n]))return!1;return!0}function Df(e,t){return it(e)?ti(e,t):it(t)?ti(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function ti(e,t){return it(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Lf(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,l;for(i=0;i<s.length;i++)if(l=s[i],l!==".")if(l==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const It={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let _r=function(e){return e.pop="pop",e.push="push",e}({}),rr=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function Bf(e){if(!e)if(tn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Pf(e)}const $f=/^[^#]+#/;function Mf(e,t){return e.replace($f,"#")+t}function jf(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const $s=()=>({left:window.scrollX,top:window.scrollY});function Ff(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=jf(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ni(e,t){return(history.state?history.state.position-t:-1)+e}const Rr=new Map;function Uf(e,t){Rr.set(e,t)}function Hf(e){const t=Rr.get(e);return Rr.delete(e),t}function zf(e){return typeof e=="string"||e&&typeof e=="object"}function ta(e){return typeof e=="string"||typeof e=="symbol"}let ge=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const na=Symbol("");ge.MATCHER_NOT_FOUND+"",ge.NAVIGATION_GUARD_REDIRECT+"",ge.NAVIGATION_ABORTED+"",ge.NAVIGATION_CANCELLED+"",ge.NAVIGATION_DUPLICATED+"";function fn(e,t){return Y(new Error,{type:e,[na]:!0},t)}function kt(e,t){return e instanceof Error&&na in e&&(t==null||!!(e.type&t))}const Vf=["params","query","hash"];function qf(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Vf)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Kf(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<n.length;++s){const r=n[s].replace(Ql," "),o=r.indexOf("="),i=Mn(o<0?r:r.slice(0,o)),l=o<0?null:Mn(r.slice(o+1));if(i in t){let a=t[i];it(a)||(a=t[i]=[a]),a.push(l)}else t[i]=l}return t}function si(e){let t="";for(let n in e){const s=e[n];if(n=Af(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(it(s)?s.map(r=>r&&vr(r)):[s&&vr(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function Wf(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=it(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Gf=Symbol(""),ri=Symbol(""),Ms=Symbol(""),Yr=Symbol(""),kr=Symbol("");function bn(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Lt(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,a)=>{const u=h=>{h===!1?a(fn(ge.NAVIGATION_ABORTED,{from:n,to:t})):h instanceof Error?a(h):zf(h)?a(fn(ge.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(i&&s.enterCallbacks[r]===i&&typeof h=="function"&&i.push(h),l())},c=o(()=>e.call(s&&s.instances[r],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(h=>a(h))})}function or(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const l in i.components){let a=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Gl(a)){const u=(a.__vccOpts||a)[t];u&&o.push(Lt(u,n,s,i,l,r))}else{let u=a();o.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const f=mf(c)?c.default:c;i.mods[l]=c,i.components[l]=f;const h=(f.__vccOpts||f)[t];return h&&Lt(h,n,s,i,l,r)()}))}}return o}function Jf(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const l=t.matched[i];l&&(e.matched.find(u=>un(u,l))?s.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(u=>un(u,a))||r.push(a))}return[n,s,r]}/*!
|
|
* vue-router v4.6.4
|
|
* (c) 2025 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/let Qf=()=>location.protocol+"//"+location.host;function sa(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let i=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(i);return l[0]!=="/"&&(l="/"+l),ei(l,"")}return ei(n,e)+s+r}function Zf(e,t,n,s){let r=[],o=[],i=null;const l=({state:h})=>{const p=sa(e,location),x=n.value,y=t.value;let w=0;if(h){if(n.value=p,t.value=h,i&&i===x){i=null;return}w=y?h.position-y.position:0}else s(p);r.forEach(k=>{k(n.value,x,{delta:w,type:_r.pop,direction:w?w>0?rr.forward:rr.back:rr.unknown})})};function a(){i=n.value}function u(h){r.push(h);const p=()=>{const x=r.indexOf(h);x>-1&&r.splice(x,1)};return o.push(p),p}function c(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(Y({},h.state,{scroll:$s()}),"")}}function f(){for(const h of o)h();o=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:a,listen:u,destroy:f}}function oi(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?$s():null}}function Xf(e){const{history:t,location:n}=window,s={value:sa(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(a,u,c){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:Qf()+e+a;try{t[c?"replaceState":"pushState"](u,"",h),r.value=u}catch(p){console.error(p),n[c?"replace":"assign"](h)}}function i(a,u){o(a,Y({},t.state,oi(r.value.back,a,r.value.forward,!0),u,{position:r.value.position}),!0),s.value=a}function l(a,u){const c=Y({},r.value,t.state,{forward:a,scroll:$s()});o(c.current,c,!0),o(a,Y({},oi(s.value,a,null),{position:c.position+1},u),!1),s.value=a}return{location:s,state:r,push:l,replace:i}}function Yf(e){e=Bf(e);const t=Xf(e),n=Zf(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=Y({location:"",base:e,go:s,createHref:Mf.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let Ut=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var we=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(we||{});const ed={type:Ut.Static,value:""},td=/[a-zA-Z0-9_]/;function nd(e){if(!e)return[[]];if(e==="/")return[[ed]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${u}": ${p}`)}let n=we.Static,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,a,u="",c="";function f(){u&&(n===we.Static?o.push({type:Ut.Static,value:u}):n===we.Param||n===we.ParamRegExp||n===we.ParamRegExpEnd?(o.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Ut.Param,value:u,regexp:c,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=a}for(;l<e.length;){if(a=e[l++],a==="\\"&&n!==we.ParamRegExp){s=n,n=we.EscapeNext;continue}switch(n){case we.Static:a==="/"?(u&&f(),i()):a===":"?(f(),n=we.Param):h();break;case we.EscapeNext:h(),n=s;break;case we.Param:a==="("?n=we.ParamRegExp:td.test(a)?h():(f(),n=we.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case we.ParamRegExp:a===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+a:n=we.ParamRegExpEnd:c+=a;break;case we.ParamRegExpEnd:f(),n=we.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--,c="";break;default:t("Unknown state");break}}return n===we.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),f(),i(),r}const ii="[^/]+?",sd={sensitive:!1,strict:!1,start:!0,end:!0};var Ue=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(Ue||{});const rd=/[.+*?^${}()[\]/\\]/g;function od(e,t){const n=Y({},sd,t),s=[];let r=n.start?"^":"";const o=[];for(const u of e){const c=u.length?[]:[Ue.Root];n.strict&&!u.length&&(r+="/");for(let f=0;f<u.length;f++){const h=u[f];let p=Ue.Segment+(n.sensitive?Ue.BonusCaseSensitive:0);if(h.type===Ut.Static)f||(r+="/"),r+=h.value.replace(rd,"\\$&"),p+=Ue.Static;else if(h.type===Ut.Param){const{value:x,repeatable:y,optional:w,regexp:k}=h;o.push({name:x,repeatable:y,optional:w});const A=k||ii;if(A!==ii){p+=Ue.BonusCustomRegExp;try{`${A}`}catch(C){throw new Error(`Invalid custom RegExp for param "${x}" (${A}): `+C.message)}}let P=y?`((?:${A})(?:/(?:${A}))*)`:`(${A})`;f||(P=w&&u.length<2?`(?:/${P})`:"/"+P),w&&(P+="?"),r+=P,p+=Ue.Dynamic,w&&(p+=Ue.BonusOptional),y&&(p+=Ue.BonusRepeatable),A===".*"&&(p+=Ue.BonusWildcard)}c.push(p)}s.push(c)}if(n.strict&&n.end){const u=s.length-1;s[u][s[u].length-1]+=Ue.BonusStrict}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const i=new RegExp(r,n.sensitive?"":"i");function l(u){const c=u.match(i),f={};if(!c)return null;for(let h=1;h<c.length;h++){const p=c[h]||"",x=o[h-1];f[x.name]=p&&x.repeatable?p.split("/"):p}return f}function a(u){let c="",f=!1;for(const h of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const p of h)if(p.type===Ut.Static)c+=p.value;else if(p.type===Ut.Param){const{value:x,repeatable:y,optional:w}=p,k=x in u?u[x]:"";if(it(k)&&!y)throw new Error(`Provided param "${x}" is an array but it is not repeatable (* or + modifiers)`);const A=it(k)?k.join("/"):k;if(!A)if(w)h.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${x}"`);c+=A}}return c||"/"}return{re:i,score:s,keys:o,parse:l,stringify:a}}function id(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===Ue.Static+Ue.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Ue.Static+Ue.Segment?1:-1:0}function ra(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const o=id(s[n],r[n]);if(o)return o;n++}if(Math.abs(r.length-s.length)===1){if(li(s))return 1;if(li(r))return-1}return r.length-s.length}function li(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const ld={strict:!1,end:!0,sensitive:!1};function ad(e,t,n){const s=od(nd(e.path),n),r=Y(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function cd(e,t){const n=[],s=new Map;t=Yo(ld,t);function r(f){return s.get(f)}function o(f,h,p){const x=!p,y=ci(f);y.aliasOf=p&&p.record;const w=Yo(t,f),k=[y];if("alias"in f){const C=typeof f.alias=="string"?[f.alias]:f.alias;for(const H of C)k.push(ci(Y({},y,{components:p?p.record.components:y.components,path:H,aliasOf:p?p.record:y})))}let A,P;for(const C of k){const{path:H}=C;if(h&&H[0]!=="/"){const K=h.record.path,B=K[K.length-1]==="/"?"":"/";C.path=h.record.path+(H&&B+H)}if(A=ad(C,h,w),p?p.alias.push(A):(P=P||A,P!==A&&P.alias.push(A),x&&f.name&&!ui(A)&&i(f.name)),oa(A)&&a(A),y.children){const K=y.children;for(let B=0;B<K.length;B++)o(K[B],A,p&&p.children[B])}p=p||A}return P?()=>{i(P)}:Cn}function i(f){if(ta(f)){const h=s.get(f);h&&(s.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&s.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function l(){return n}function a(f){const h=dd(f,n);n.splice(h,0,f),f.record.name&&!ui(f)&&s.set(f.record.name,f)}function u(f,h){let p,x={},y,w;if("name"in f&&f.name){if(p=s.get(f.name),!p)throw fn(ge.MATCHER_NOT_FOUND,{location:f});w=p.record.name,x=Y(ai(h.params,p.keys.filter(P=>!P.optional).concat(p.parent?p.parent.keys.filter(P=>P.optional):[]).map(P=>P.name)),f.params&&ai(f.params,p.keys.map(P=>P.name))),y=p.stringify(x)}else if(f.path!=null)y=f.path,p=n.find(P=>P.re.test(y)),p&&(x=p.parse(y),w=p.record.name);else{if(p=h.name?s.get(h.name):n.find(P=>P.re.test(h.path)),!p)throw fn(ge.MATCHER_NOT_FOUND,{location:f,currentLocation:h});w=p.record.name,x=Y({},h.params,f.params),y=p.stringify(x)}const k=[];let A=p;for(;A;)k.unshift(A.record),A=A.parent;return{name:w,path:y,params:x,matched:k,meta:fd(k)}}e.forEach(f=>o(f));function c(){n.length=0,s.clear()}return{addRoute:o,resolve:u,removeRoute:i,clearRoutes:c,getRoutes:l,getRecordMatcher:r}}function ai(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function ci(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:ud(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function ud(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function ui(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function fd(e){return e.reduce((t,n)=>Y(t,n.meta),{})}function dd(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;ra(e,t[o])<0?s=o:n=o+1}const r=hd(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function hd(e){let t=e;for(;t=t.parent;)if(oa(t)&&ra(e,t)===0)return t}function oa({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function fi(e){const t=rt(Ms),n=rt(Yr),s=me(()=>{const a=wt(e.to);return t.resolve(a)}),r=me(()=>{const{matched:a}=s.value,{length:u}=a,c=a[u-1],f=n.matched;if(!c||!f.length)return-1;const h=f.findIndex(un.bind(null,c));if(h>-1)return h;const p=di(a[u-2]);return u>1&&di(c)===p&&f[f.length-1].path!==p?f.findIndex(un.bind(null,a[u-2])):h}),o=me(()=>r.value>-1&&xd(n.params,s.value.params)),i=me(()=>r.value>-1&&r.value===n.matched.length-1&&ea(n.params,s.value.params));function l(a={}){if(bd(a)){const u=t[wt(e.replace)?"replace":"push"](wt(e.to)).catch(Cn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:s,href:me(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}function pd(e){return e.length===1?e[0]:e}const gd=ml({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:fi,setup(e,{slots:t}){const n=Os(fi(e)),{options:s}=rt(Ms),r=me(()=>({[hi(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[hi(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&pd(t.default(n));return e.custom?o:xs("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),md=gd;function bd(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function xd(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!it(r)||r.length!==s.length||s.some((o,i)=>o.valueOf()!==r[i].valueOf()))return!1}return!0}function di(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const hi=(e,t,n)=>e??t??n,yd=ml({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=rt(kr),r=me(()=>e.route||s.value),o=rt(ri,0),i=me(()=>{let u=wt(o);const{matched:c}=r.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),l=me(()=>r.value.matched[i.value]);ss(ri,me(()=>i.value+1)),ss(Gf,l),ss(kr,r);const a=He();return on(()=>[a.value,l.value,e.name],([u,c,f],[h,p,x])=>{c&&(c.instances[f]=u,p&&p!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=p.leaveGuards),c.updateGuards.size||(c.updateGuards=p.updateGuards))),u&&c&&(!p||!un(c,p)||!h)&&(c.enterCallbacks[f]||[]).forEach(y=>y(u))},{flush:"post"}),()=>{const u=r.value,c=e.name,f=l.value,h=f&&f.components[c];if(!h)return pi(n.default,{Component:h,route:u});const p=f.props[c],x=p?p===!0?u.params:typeof p=="function"?p(u):p:null,w=xs(h,Y({},x,t,{onVnodeUnmounted:k=>{k.component.isUnmounted&&(f.instances[c]=null)},ref:a}));return pi(n.default,{Component:w,route:u})||w}}});function pi(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const wd=yd;function vd(e){const t=cd(e.routes,e),n=e.parseQuery||Kf,s=e.stringifyQuery||si,r=e.history,o=bn(),i=bn(),l=bn(),a=vc(It);let u=It;tn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=nr.bind(null,v=>""+v),f=nr.bind(null,Cf),h=nr.bind(null,Mn);function p(v,O){let I,j;return ta(v)?(I=t.getRecordMatcher(v),j=O):j=v,t.addRoute(j,I)}function x(v){const O=t.getRecordMatcher(v);O&&t.removeRoute(O)}function y(){return t.getRoutes().map(v=>v.record)}function w(v){return!!t.getRecordMatcher(v)}function k(v,O){if(O=Y({},O||a.value),typeof v=="string"){const m=sr(n,v,O.path),R=t.resolve({path:m.path},O),S=r.createHref(m.fullPath);return Y(m,R,{params:h(R.params),hash:Mn(m.hash),redirectedFrom:void 0,href:S})}let I;if(v.path!=null)I=Y({},v,{path:sr(n,v.path,O.path).path});else{const m=Y({},v.params);for(const R in m)m[R]==null&&delete m[R];I=Y({},v,{params:f(m)}),O.params=f(O.params)}const j=t.resolve(I,O),W=v.hash||"";j.params=c(h(j.params));const d=Nf(s,Y({},v,{hash:Sf(W),path:j.path})),g=r.createHref(d);return Y({fullPath:d,hash:W,query:s===si?Wf(v.query):v.query||{}},j,{redirectedFrom:void 0,href:g})}function A(v){return typeof v=="string"?sr(n,v,a.value.path):Y({},v)}function P(v,O){if(u!==v)return fn(ge.NAVIGATION_CANCELLED,{from:O,to:v})}function C(v){return B(v)}function H(v){return C(Y(A(v),{replace:!0}))}function K(v,O){const I=v.matched[v.matched.length-1];if(I&&I.redirect){const{redirect:j}=I;let W=typeof j=="function"?j(v,O):j;return typeof W=="string"&&(W=W.includes("?")||W.includes("#")?W=A(W):{path:W},W.params={}),Y({query:v.query,hash:v.hash,params:W.path!=null?{}:v.params},W)}}function B(v,O){const I=u=k(v),j=a.value,W=v.state,d=v.force,g=v.replace===!0,m=K(I,j);if(m)return B(Y(A(m),{state:typeof m=="object"?Y({},W,m.state):W,force:d,replace:g}),O||I);const R=I;R.redirectedFrom=O;let S;return!d&&If(s,j,I)&&(S=fn(ge.NAVIGATION_DUPLICATED,{to:R,from:j}),Re(j,j,!0,!1)),(S?Promise.resolve(S):pe(R,j)).catch(E=>kt(E)?kt(E,ge.NAVIGATION_GUARD_REDIRECT)?E:be(E):J(E,R,j)).then(E=>{if(E){if(kt(E,ge.NAVIGATION_GUARD_REDIRECT))return B(Y({replace:g},A(E.to),{state:typeof E.to=="object"?Y({},W,E.to.state):W,force:d}),O||R)}else E=Ye(R,j,!0,g,W);return Pe(R,j,E),E})}function he(v,O){const I=P(v,O);return I?Promise.reject(I):Promise.resolve()}function ve(v){const O=je.values().next().value;return O&&typeof O.runWithContext=="function"?O.runWithContext(v):v()}function pe(v,O){let I;const[j,W,d]=Jf(v,O);I=or(j.reverse(),"beforeRouteLeave",v,O);for(const m of j)m.leaveGuards.forEach(R=>{I.push(Lt(R,v,O))});const g=he.bind(null,v,O);return I.push(g),Ie(I).then(()=>{I=[];for(const m of o.list())I.push(Lt(m,v,O));return I.push(g),Ie(I)}).then(()=>{I=or(W,"beforeRouteUpdate",v,O);for(const m of W)m.updateGuards.forEach(R=>{I.push(Lt(R,v,O))});return I.push(g),Ie(I)}).then(()=>{I=[];for(const m of d)if(m.beforeEnter)if(it(m.beforeEnter))for(const R of m.beforeEnter)I.push(Lt(R,v,O));else I.push(Lt(m.beforeEnter,v,O));return I.push(g),Ie(I)}).then(()=>(v.matched.forEach(m=>m.enterCallbacks={}),I=or(d,"beforeRouteEnter",v,O,ve),I.push(g),Ie(I))).then(()=>{I=[];for(const m of i.list())I.push(Lt(m,v,O));return I.push(g),Ie(I)}).catch(m=>kt(m,ge.NAVIGATION_CANCELLED)?m:Promise.reject(m))}function Pe(v,O,I){l.list().forEach(j=>ve(()=>j(v,O,I)))}function Ye(v,O,I,j,W){const d=P(v,O);if(d)return d;const g=O===It,m=tn?history.state:{};I&&(j||g?r.replace(v.fullPath,Y({scroll:g&&m&&m.scroll},W)):r.push(v.fullPath,W)),a.value=v,Re(v,O,I,g),be()}let Ge;function Ne(){Ge||(Ge=r.listen((v,O,I)=>{if(!ke.listening)return;const j=k(v),W=K(j,ke.currentRoute.value);if(W){B(Y(W,{replace:!0,force:!0}),j).catch(Cn);return}u=j;const d=a.value;tn&&Uf(ni(d.fullPath,I.delta),$s()),pe(j,d).catch(g=>kt(g,ge.NAVIGATION_ABORTED|ge.NAVIGATION_CANCELLED)?g:kt(g,ge.NAVIGATION_GUARD_REDIRECT)?(B(Y(A(g.to),{force:!0}),j).then(m=>{kt(m,ge.NAVIGATION_ABORTED|ge.NAVIGATION_DUPLICATED)&&!I.delta&&I.type===_r.pop&&r.go(-1,!1)}).catch(Cn),Promise.reject()):(I.delta&&r.go(-I.delta,!1),J(g,j,d))).then(g=>{g=g||Ye(j,d,!1),g&&(I.delta&&!kt(g,ge.NAVIGATION_CANCELLED)?r.go(-I.delta,!1):I.type===_r.pop&&kt(g,ge.NAVIGATION_ABORTED|ge.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),Pe(j,d,g)}).catch(Cn)}))}let at=bn(),ue=bn(),X;function J(v,O,I){be(v);const j=ue.list();return j.length?j.forEach(W=>W(v,O,I)):console.error(v),Promise.reject(v)}function _e(){return X&&a.value!==It?Promise.resolve():new Promise((v,O)=>{at.add([v,O])})}function be(v){return X||(X=!v,Ne(),at.list().forEach(([O,I])=>v?I(v):O()),at.reset()),v}function Re(v,O,I,j){const{scrollBehavior:W}=e;if(!tn||!W)return Promise.resolve();const d=!I&&Hf(ni(v.fullPath,0))||(j||!I)&&history.state&&history.state.scroll||null;return al().then(()=>W(v,O,d)).then(g=>g&&Ff(g)).catch(g=>J(g,v,O))}const Ae=v=>r.go(v);let fe;const je=new Set,ke={currentRoute:a,listening:!0,addRoute:p,removeRoute:x,clearRoutes:t.clearRoutes,hasRoute:w,getRoutes:y,resolve:k,options:e,push:C,replace:H,go:Ae,back:()=>Ae(-1),forward:()=>Ae(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:ue.add,isReady:_e,install(v){v.component("RouterLink",md),v.component("RouterView",wd),v.config.globalProperties.$router=ke,Object.defineProperty(v.config.globalProperties,"$route",{enumerable:!0,get:()=>wt(a)}),tn&&!fe&&a.value===It&&(fe=!0,C(r.location).catch(j=>{}));const O={};for(const j in It)Object.defineProperty(O,j,{get:()=>a.value[j],enumerable:!0});v.provide(Ms,ke),v.provide(Yr,rl(O)),v.provide(kr,a);const I=v.unmount;je.add(v),v.unmount=function(){je.delete(v),je.size<1&&(u=It,Ge&&Ge(),Ge=null,a.value=It,fe=!1,X=!1),I()}}};function Ie(v){return v.reduce((O,I)=>O.then(()=>ve(I)),Promise.resolve())}return ke}function _d(){return rt(Ms)}function Rd(e){return rt(Yr)}function ia(e,t){return function(){return e.apply(t,arguments)}}const{toString:kd}=Object.prototype,{getPrototypeOf:js}=Object,{iterator:Fs,toStringTag:la}=Symbol,Us=(e=>t=>{const n=kd.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),lt=e=>(e=e.toLowerCase(),t=>Us(t)===e),Hs=e=>t=>typeof t===e,{isArray:hn}=Array,dn=Hs("undefined");function Hn(e){return e!==null&&!dn(e)&&e.constructor!==null&&!dn(e.constructor)&&We(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const aa=lt("ArrayBuffer");function Ed(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&aa(e.buffer),t}const Sd=Hs("string"),We=Hs("function"),ca=Hs("number"),zn=e=>e!==null&&typeof e=="object",Ad=e=>e===!0||e===!1,is=e=>{if(Us(e)!=="object")return!1;const t=js(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(la in e)&&!(Fs in e)},Td=e=>{if(!zn(e)||Hn(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Cd=lt("Date"),Od=lt("File"),Pd=e=>!!(e&&typeof e.uri<"u"),Nd=e=>e&&typeof e.getParts<"u",Id=lt("Blob"),Dd=lt("FileList"),Ld=e=>zn(e)&&We(e.pipe);function Bd(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const gi=Bd(),mi=typeof gi.FormData<"u"?gi.FormData:void 0,$d=e=>{if(!e)return!1;if(mi&&e instanceof mi)return!0;const t=js(e);if(!t||t===Object.prototype||!We(e.append))return!1;const n=Us(e);return n==="formdata"||n==="object"&&We(e.toString)&&e.toString()==="[object FormData]"},Md=lt("URLSearchParams"),[jd,Fd,Ud,Hd]=["ReadableStream","Request","Response","Headers"].map(lt),zd=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vn(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),hn(e))for(s=0,r=e.length;s<r;s++)t.call(null,e[s],s,e);else{if(Hn(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let l;for(s=0;s<i;s++)l=o[s],t.call(null,e[l],l,e)}}function ua(e,t){if(Hn(e))return null;t=t.toLowerCase();const n=Object.keys(e);let s=n.length,r;for(;s-- >0;)if(r=n[s],t===r.toLowerCase())return r;return null}const Ht=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,fa=e=>!dn(e)&&e!==Ht;function Er(...e){const{caseless:t,skipUndefined:n}=fa(this)&&this||{},s={},r=(o,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const l=t&&ua(s,i)||i,a=Sr(s,l)?s[l]:void 0;is(a)&&is(o)?s[l]=Er(a,o):is(o)?s[l]=Er({},o):hn(o)?s[l]=o.slice():(!n||!dn(o))&&(s[l]=o)};for(let o=0,i=e.length;o<i;o++)e[o]&&Vn(e[o],r);return s}const Vd=(e,t,n,{allOwnKeys:s}={})=>(Vn(t,(r,o)=>{n&&We(r)?Object.defineProperty(e,o,{__proto__:null,value:ia(r,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:r,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),e),qd=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Kd=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},Wd=(e,t,n,s)=>{let r,o,i;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],(!s||s(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&js(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Gd=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},Jd=e=>{if(!e)return null;if(hn(e))return e;let t=e.length;if(!ca(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Qd=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&js(Uint8Array)),Zd=(e,t)=>{const s=(e&&e[Fs]).call(e);let r;for(;(r=s.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},Xd=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Yd=lt("HTMLFormElement"),eh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),Sr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),th=lt("RegExp"),da=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Vn(n,(r,o)=>{let i;(i=t(r,o,e))!==!1&&(s[o]=i||r)}),Object.defineProperties(e,s)},nh=e=>{da(e,(t,n)=>{if(We(e)&&["arguments","caller","callee"].includes(n))return!1;const s=e[n];if(We(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},sh=(e,t)=>{const n={},s=r=>{r.forEach(o=>{n[o]=!0})};return hn(e)?s(e):s(String(e).split(t)),n},rh=()=>{},oh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ih(e){return!!(e&&We(e.append)&&e[la]==="FormData"&&e[Fs])}const lh=e=>{const t=new WeakSet,n=s=>{if(zn(s)){if(t.has(s))return;if(Hn(s))return s;if(!("toJSON"in s)){t.add(s);const r=hn(s)?[]:{};return Vn(s,(o,i)=>{const l=n(o);!dn(l)&&(r[i]=l)}),t.delete(s),r}}return s};return n(e)},ah=lt("AsyncFunction"),ch=e=>e&&(zn(e)||We(e))&&We(e.then)&&We(e.catch),ha=((e,t)=>e?setImmediate:t?((n,s)=>(Ht.addEventListener("message",({source:r,data:o})=>{r===Ht&&o===n&&s.length&&s.shift()()},!1),r=>{s.push(r),Ht.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",We(Ht.postMessage)),uh=typeof queueMicrotask<"u"?queueMicrotask.bind(Ht):typeof process<"u"&&process.nextTick||ha,fh=e=>e!=null&&We(e[Fs]),b={isArray:hn,isArrayBuffer:aa,isBuffer:Hn,isFormData:$d,isArrayBufferView:Ed,isString:Sd,isNumber:ca,isBoolean:Ad,isObject:zn,isPlainObject:is,isEmptyObject:Td,isReadableStream:jd,isRequest:Fd,isResponse:Ud,isHeaders:Hd,isUndefined:dn,isDate:Cd,isFile:Od,isReactNativeBlob:Pd,isReactNative:Nd,isBlob:Id,isRegExp:th,isFunction:We,isStream:Ld,isURLSearchParams:Md,isTypedArray:Qd,isFileList:Dd,forEach:Vn,merge:Er,extend:Vd,trim:zd,stripBOM:qd,inherits:Kd,toFlatObject:Wd,kindOf:Us,kindOfTest:lt,endsWith:Gd,toArray:Jd,forEachEntry:Zd,matchAll:Xd,isHTMLForm:Yd,hasOwnProperty:Sr,hasOwnProp:Sr,reduceDescriptors:da,freezeMethods:nh,toObjectSet:sh,toCamelCase:eh,noop:rh,toFiniteNumber:oh,findKey:ua,global:Ht,isContextDefined:fa,isSpecCompliantForm:ih,toJSONObject:lh,isAsyncFn:ah,isThenable:ch,setImmediate:ha,asap:uh,isIterable:fh},dh=b.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),hh=e=>{const t={};let n,s,r;return e&&e.split(`
|
|
`).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),s=i.substring(r+1).trim(),!(!n||t[n]&&dh[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t};function ph(e){let t=0,n=e.length;for(;t<n;){const s=e.charCodeAt(t);if(s!==9&&s!==32)break;t+=1}for(;n>t;){const s=e.charCodeAt(n-1);if(s!==9&&s!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const gh=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),mh=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function eo(e,t){return b.isArray(e)?e.map(n=>eo(n,t)):ph(String(e).replace(t,""))}const bh=e=>eo(e,gh),xh=e=>eo(e,mh);function pa(e){const t=Object.create(null);return b.forEach(e.toJSON(),(n,s)=>{t[s]=xh(n)}),t}const bi=Symbol("internals");function xn(e){return e&&String(e).trim().toLowerCase()}function ls(e){return e===!1||e==null?e:b.isArray(e)?e.map(ls):bh(String(e))}function yh(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const wh=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ir(e,t,n,s,r){if(b.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!b.isString(t)){if(b.isString(s))return t.indexOf(s)!==-1;if(b.isRegExp(s))return s.test(t)}}function vh(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function _h(e,t){const n=b.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{__proto__:null,value:function(r,o,i){return this[s].call(this,t,r,o,i)},configurable:!0})})}let qe=class{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function o(l,a,u){const c=xn(a);if(!c)throw new Error("header name must be a non-empty string");const f=b.findKey(r,c);(!f||r[f]===void 0||u===!0||u===void 0&&r[f]!==!1)&&(r[f||a]=ls(l))}const i=(l,a)=>b.forEach(l,(u,c)=>o(u,c,a));if(b.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(b.isString(t)&&(t=t.trim())&&!wh(t))i(hh(t),n);else if(b.isObject(t)&&b.isIterable(t)){let l={},a,u;for(const c of t){if(!b.isArray(c))throw TypeError("Object iterator must return a key-value pair");l[u=c[0]]=(a=l[u])?b.isArray(a)?[...a,c[1]]:[a,c[1]]:c[1]}i(l,n)}else t!=null&&o(n,t,s);return this}get(t,n){if(t=xn(t),t){const s=b.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return yh(r);if(b.isFunction(n))return n.call(this,r,s);if(b.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=xn(t),t){const s=b.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||ir(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function o(i){if(i=xn(i),i){const l=b.findKey(s,i);l&&(!n||ir(s,s[l],l,n))&&(delete s[l],r=!0)}}return b.isArray(t)?t.forEach(o):o(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const o=n[s];(!t||ir(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){const n=this,s={};return b.forEach(this,(r,o)=>{const i=b.findKey(s,o);if(i){n[i]=ls(r),delete n[o];return}const l=t?vh(o):String(o).trim();l!==o&&delete n[o],n[l]=ls(r),s[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return b.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&b.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[bi]=this[bi]={accessors:{}}).accessors,r=this.prototype;function o(i){const l=xn(i);s[l]||(_h(r,i),s[l]=!0)}return b.isArray(t)?t.forEach(o):o(t),this}};qe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);b.reduceDescriptors(qe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});b.freezeMethods(qe);const Rh="[REDACTED ****]";function kh(e){if(b.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(b.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Eh(e,t){const n=new Set(t.map(o=>String(o).toLowerCase())),s=[],r=o=>{if(o===null||typeof o!="object"||b.isBuffer(o))return o;if(s.indexOf(o)!==-1)return;o instanceof qe&&(o=o.toJSON()),s.push(o);let i;if(b.isArray(o))i=[],o.forEach((l,a)=>{const u=r(l);b.isUndefined(u)||(i[a]=u)});else{if(!b.isPlainObject(o)&&kh(o))return s.pop(),o;i=Object.create(null);for(const[l,a]of Object.entries(o)){const u=n.has(l.toLowerCase())?Rh:r(a);b.isUndefined(u)||(i[l]=u)}}return s.pop(),i};return r(e)}let M=class ga extends Error{static from(t,n,s,r,o,i){const l=new ga(t.message,n||t.code,s,r,o);return l.cause=t,l.name=t.name,t.status!=null&&l.status==null&&(l.status=t.status),i&&Object.assign(l,i),l}constructor(t,n,s,r,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),s&&(this.config=s),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){const t=this.config,n=t&&b.hasOwnProp(t,"redact")?t.redact:void 0,s=b.isArray(n)&&n.length>0?Eh(t,n):b.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:s,code:this.code,status:this.status}}};M.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";M.ERR_BAD_OPTION="ERR_BAD_OPTION";M.ECONNABORTED="ECONNABORTED";M.ETIMEDOUT="ETIMEDOUT";M.ECONNREFUSED="ECONNREFUSED";M.ERR_NETWORK="ERR_NETWORK";M.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";M.ERR_DEPRECATED="ERR_DEPRECATED";M.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";M.ERR_BAD_REQUEST="ERR_BAD_REQUEST";M.ERR_CANCELED="ERR_CANCELED";M.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";M.ERR_INVALID_URL="ERR_INVALID_URL";M.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Sh=null;function Ar(e){return b.isPlainObject(e)||b.isArray(e)}function ma(e){return b.endsWith(e,"[]")?e.slice(0,-2):e}function lr(e,t,n){return e?e.concat(t).map(function(r,o){return r=ma(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function Ah(e){return b.isArray(e)&&!e.some(Ar)}const Th=b.toFlatObject(b,{},null,function(t){return/^is[A-Z]/.test(t)});function zs(e,t,n){if(!b.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=b.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,k){return!b.isUndefined(k[w])});const s=n.metaTokens,r=n.visitor||f,o=n.dots,i=n.indexes,l=n.Blob||typeof Blob<"u"&&Blob,a=n.maxDepth===void 0?100:n.maxDepth,u=l&&b.isSpecCompliantForm(t);if(!b.isFunction(r))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(b.isDate(y))return y.toISOString();if(b.isBoolean(y))return y.toString();if(!u&&b.isBlob(y))throw new M("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(y)||b.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function f(y,w,k){let A=y;if(b.isReactNative(t)&&b.isReactNativeBlob(y))return t.append(lr(k,w,o),c(y)),!1;if(y&&!k&&typeof y=="object"){if(b.endsWith(w,"{}"))w=s?w:w.slice(0,-2),y=JSON.stringify(y);else if(b.isArray(y)&&Ah(y)||(b.isFileList(y)||b.endsWith(w,"[]"))&&(A=b.toArray(y)))return w=ma(w),A.forEach(function(C,H){!(b.isUndefined(C)||C===null)&&t.append(i===!0?lr([w],H,o):i===null?w:w+"[]",c(C))}),!1}return Ar(y)?!0:(t.append(lr(k,w,o),c(y)),!1)}const h=[],p=Object.assign(Th,{defaultVisitor:f,convertValue:c,isVisitable:Ar});function x(y,w,k=0){if(!b.isUndefined(y)){if(k>a)throw new M("Object is too deeply nested ("+k+" levels). Max depth: "+a,M.ERR_FORM_DATA_DEPTH_EXCEEDED);if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+w.join("."));h.push(y),b.forEach(y,function(P,C){(!(b.isUndefined(P)||P===null)&&r.call(t,P,b.isString(C)?C.trim():C,w,p))===!0&&x(P,w?w.concat(C):[C],k+1)}),h.pop()}}if(!b.isObject(e))throw new TypeError("data must be an object");return x(e),t}function xi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(s){return t[s]})}function to(e,t){this._pairs=[],e&&zs(e,this,t)}const ba=to.prototype;ba.append=function(t,n){this._pairs.push([t,n])};ba.toString=function(t){const n=t?function(s){return t.call(this,s,xi)}:xi;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Ch(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function xa(e,t,n){if(!t)return e;const s=n&&n.encode||Ch,r=b.isFunction(n)?{serialize:n}:n,o=r&&r.serialize;let i;if(o?i=o(t,r):i=b.isURLSearchParams(t)?t.toString():new to(t,r).toString(s),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class yi{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){b.forEach(this.handlers,function(s){s!==null&&t(s)})}}const no={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Oh=typeof URLSearchParams<"u"?URLSearchParams:to,Ph=typeof FormData<"u"?FormData:null,Nh=typeof Blob<"u"?Blob:null,Ih={isBrowser:!0,classes:{URLSearchParams:Oh,FormData:Ph,Blob:Nh},protocols:["http","https","file","blob","url","data"]},so=typeof window<"u"&&typeof document<"u",Tr=typeof navigator=="object"&&navigator||void 0,Dh=so&&(!Tr||["ReactNative","NativeScript","NS"].indexOf(Tr.product)<0),Lh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Bh=so&&window.location.href||"http://localhost",$h=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:so,hasStandardBrowserEnv:Dh,hasStandardBrowserWebWorkerEnv:Lh,navigator:Tr,origin:Bh},Symbol.toStringTag,{value:"Module"})),$e={...$h,...Ih};function Mh(e,t){return zs(e,new $e.classes.URLSearchParams,{visitor:function(n,s,r,o){return $e.isNode&&b.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function jh(e){return b.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Fh(e){const t={},n=Object.keys(e);let s;const r=n.length;let o;for(s=0;s<r;s++)o=n[s],t[o]=e[o];return t}function ya(e){function t(n,s,r,o){let i=n[o++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),a=o>=n.length;return i=!i&&b.isArray(r)?r.length:i,a?(b.hasOwnProp(r,i)?r[i]=b.isArray(r[i])?r[i].concat(s):[r[i],s]:r[i]=s,!l):((!b.hasOwnProp(r,i)||!b.isObject(r[i]))&&(r[i]=[]),t(n,s,r[i],o)&&b.isArray(r[i])&&(r[i]=Fh(r[i])),!l)}if(b.isFormData(e)&&b.isFunction(e.entries)){const n={};return b.forEachEntry(e,(s,r)=>{t(jh(s),r,n,0)}),n}return null}const Xt=(e,t)=>e!=null&&b.hasOwnProp(e,t)?e[t]:void 0;function Uh(e,t,n){if(b.isString(e))try{return(t||JSON.parse)(e),b.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const qn={transitional:no,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,o=b.isObject(t);if(o&&b.isHTMLForm(t)&&(t=new FormData(t)),b.isFormData(t))return r?JSON.stringify(ya(t)):t;if(b.isArrayBuffer(t)||b.isBuffer(t)||b.isStream(t)||b.isFile(t)||b.isBlob(t)||b.isReadableStream(t))return t;if(b.isArrayBufferView(t))return t.buffer;if(b.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){const a=Xt(this,"formSerializer");if(s.indexOf("application/x-www-form-urlencoded")>-1)return Mh(t,a).toString();if((l=b.isFileList(t))||s.indexOf("multipart/form-data")>-1){const u=Xt(this,"env"),c=u&&u.FormData;return zs(l?{"files[]":t}:t,c&&new c,a)}}return o||r?(n.setContentType("application/json",!1),Uh(t)):t}],transformResponse:[function(t){const n=Xt(this,"transitional")||qn.transitional,s=n&&n.forcedJSONParsing,r=Xt(this,"responseType"),o=r==="json";if(b.isResponse(t)||b.isReadableStream(t))return t;if(t&&b.isString(t)&&(s&&!r||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,Xt(this,"parseReviver"))}catch(a){if(l)throw a.name==="SyntaxError"?M.from(a,M.ERR_BAD_RESPONSE,this,null,Xt(this,"response")):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$e.classes.FormData,Blob:$e.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch","query"],e=>{qn.headers[e]={}});function ar(e,t){const n=this||qn,s=t||n,r=qe.from(s.headers);let o=s.data;return b.forEach(e,function(l){o=l.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function wa(e){return!!(e&&e.__CANCEL__)}let Kn=class extends M{constructor(t,n,s){super(t??"canceled",M.ERR_CANCELED,n,s),this.name="CanceledError",this.__CANCEL__=!0}};function va(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new M("Request failed with status code "+n.status,n.status>=400&&n.status<500?M.ERR_BAD_REQUEST:M.ERR_BAD_RESPONSE,n.config,n.request,n))}function Hh(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function zh(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,i;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),c=s[o];i||(i=u),n[r]=a,s[r]=u;let f=o,h=0;for(;f!==r;)h+=n[f++],f=f%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),u-i<t)return;const p=c&&u-c;return p?Math.round(h*1e3/p):void 0}}function Vh(e,t){let n=0,s=1e3/t,r,o;const i=(u,c=Date.now())=>{n=c,r=null,o&&(clearTimeout(o),o=null),e(...u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=s?i(u,c):(r=u,o||(o=setTimeout(()=>{o=null,i(r)},s-f)))},()=>r&&i(r)]}const ys=(e,t,n=3)=>{let s=0;const r=zh(50,250);return Vh(o=>{if(!o||typeof o.loaded!="number")return;const i=o.loaded,l=o.lengthComputable?o.total:void 0,a=l!=null?Math.min(i,l):i,u=Math.max(0,a-s),c=r(u);s=Math.max(s,a);const f={loaded:a,total:l,progress:l?a/l:void 0,bytes:u,rate:c||void 0,estimated:c&&l?(l-a)/c:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},wi=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},vi=e=>(...t)=>b.asap(()=>e(...t)),qh=$e.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,$e.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL($e.origin),$e.navigator&&/(msie|trident)/i.test($e.navigator.userAgent)):()=>!0,Kh=$e.hasStandardBrowserEnv?{write(e,t,n,s,r,o,i){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];b.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),b.isString(s)&&l.push(`path=${s}`),b.isString(r)&&l.push(`domain=${r}`),o===!0&&l.push("secure"),b.isString(i)&&l.push(`SameSite=${i}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const s=t[n].replace(/^\s+/,""),r=s.indexOf("=");if(r!==-1&&s.slice(0,r)===e)return decodeURIComponent(s.slice(r+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Wh(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Gh(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function _a(e,t,n){let s=!Wh(t);return e&&(s||n===!1)?Gh(e,t):t}const _i=e=>e instanceof qe?{...e}:e;function Kt(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function s(u,c,f,h){return b.isPlainObject(u)&&b.isPlainObject(c)?b.merge.call({caseless:h},u,c):b.isPlainObject(c)?b.merge({},c):b.isArray(c)?c.slice():c}function r(u,c,f,h){if(b.isUndefined(c)){if(!b.isUndefined(u))return s(void 0,u,f,h)}else return s(u,c,f,h)}function o(u,c){if(!b.isUndefined(c))return s(void 0,c)}function i(u,c){if(b.isUndefined(c)){if(!b.isUndefined(u))return s(void 0,u)}else return s(void 0,c)}function l(u,c,f){if(b.hasOwnProp(t,f))return s(u,c);if(b.hasOwnProp(e,f))return s(void 0,u)}const a={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:l,headers:(u,c,f)=>r(_i(u),_i(c),f,!0)};return b.forEach(Object.keys({...e,...t}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const f=b.hasOwnProp(a,c)?a[c]:r,h=b.hasOwnProp(e,c)?e[c]:void 0,p=b.hasOwnProp(t,c)?t[c]:void 0,x=f(h,p,c);b.isUndefined(x)&&f!==l||(n[c]=x)}),n}const Jh=["content-type","content-length"];function Qh(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([s,r])=>{Jh.includes(s.toLowerCase())&&e.set(s,r)})}const Zh=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),Ra=e=>{const t=Kt({},e),n=h=>b.hasOwnProp(t,h)?t[h]:void 0,s=n("data");let r=n("withXSRFToken");const o=n("xsrfHeaderName"),i=n("xsrfCookieName");let l=n("headers");const a=n("auth"),u=n("baseURL"),c=n("allowAbsoluteUrls"),f=n("url");if(t.headers=l=qe.from(l),t.url=xa(_a(u,f,c),e.params,e.paramsSerializer),a&&l.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?Zh(a.password):""))),b.isFormData(s)&&($e.hasStandardBrowserEnv||$e.hasStandardBrowserWebWorkerEnv?l.setContentType(void 0):b.isFunction(s.getHeaders)&&Qh(l,s.getHeaders(),n("formDataHeaderPolicy"))),$e.hasStandardBrowserEnv&&(b.isFunction(r)&&(r=r(t)),r===!0||r==null&&qh(t.url))){const p=o&&i&&Kh.read(i);p&&l.set(o,p)}return t},Xh=typeof XMLHttpRequest<"u",Yh=Xh&&function(e){return new Promise(function(n,s){const r=Ra(e);let o=r.data;const i=qe.from(r.headers).normalize();let{responseType:l,onUploadProgress:a,onDownloadProgress:u}=r,c,f,h,p,x;function y(){p&&p(),x&&x(),r.cancelToken&&r.cancelToken.unsubscribe(c),r.signal&&r.signal.removeEventListener("abort",c)}let w=new XMLHttpRequest;w.open(r.method.toUpperCase(),r.url,!0),w.timeout=r.timeout;function k(){if(!w)return;const P=qe.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),H={data:!l||l==="text"||l==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:P,config:e,request:w};va(function(B){n(B),y()},function(B){s(B),y()},H),w=null}"onloadend"in w?w.onloadend=k:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.startsWith("file:"))||setTimeout(k)},w.onabort=function(){w&&(s(new M("Request aborted",M.ECONNABORTED,e,w)),y(),w=null)},w.onerror=function(C){const H=C&&C.message?C.message:"Network Error",K=new M(H,M.ERR_NETWORK,e,w);K.event=C||null,s(K),y(),w=null},w.ontimeout=function(){let C=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const H=r.transitional||no;r.timeoutErrorMessage&&(C=r.timeoutErrorMessage),s(new M(C,H.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,e,w)),y(),w=null},o===void 0&&i.setContentType(null),"setRequestHeader"in w&&b.forEach(pa(i),function(C,H){w.setRequestHeader(H,C)}),b.isUndefined(r.withCredentials)||(w.withCredentials=!!r.withCredentials),l&&l!=="json"&&(w.responseType=r.responseType),u&&([h,x]=ys(u,!0),w.addEventListener("progress",h)),a&&w.upload&&([f,p]=ys(a),w.upload.addEventListener("progress",f),w.upload.addEventListener("loadend",p)),(r.cancelToken||r.signal)&&(c=P=>{w&&(s(!P||P.type?new Kn(null,e,w):P),w.abort(),y(),w=null)},r.cancelToken&&r.cancelToken.subscribe(c),r.signal&&(r.signal.aborted?c():r.signal.addEventListener("abort",c)));const A=Hh(r.url);if(A&&!$e.protocols.includes(A)){s(new M("Unsupported protocol "+A+":",M.ERR_BAD_REQUEST,e));return}w.send(o||null)})},ep=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let s=!1;const r=function(a){if(!s){s=!0,i();const u=a instanceof Error?a:this.reason;n.abort(u instanceof M?u:new Kn(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,r(new M(`timeout of ${t}ms exceeded`,M.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(r):a.removeEventListener("abort",r)}),e=null)};e.forEach(a=>a.addEventListener("abort",r));const{signal:l}=n;return l.unsubscribe=()=>b.asap(i),l},tp=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,r;for(;s<n;)r=s+t,yield e.slice(s,r),s=r},np=async function*(e,t){for await(const n of sp(e))yield*tp(n,t)},sp=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},Ri=(e,t,n,s)=>{const r=np(e,t);let o=0,i,l=a=>{i||(i=!0,s&&s(a))};return new ReadableStream({async pull(a){try{const{done:u,value:c}=await r.next();if(u){l(),a.close();return}let f=c.byteLength;if(n){let h=o+=f;n(h)}a.enqueue(new Uint8Array(c))}catch(u){throw l(u),u}},cancel(a){return l(a),r.return()}},{highWaterMark:2})};function rp(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),s=e.slice(t+1);if(/;base64/i.test(n)){let i=s.length;const l=s.length;for(let p=0;p<l;p++)if(s.charCodeAt(p)===37&&p+2<l){const x=s.charCodeAt(p+1),y=s.charCodeAt(p+2);(x>=48&&x<=57||x>=65&&x<=70||x>=97&&x<=102)&&(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102)&&(i-=2,p+=2)}let a=0,u=l-1;const c=p=>p>=2&&s.charCodeAt(p-2)===37&&s.charCodeAt(p-1)===51&&(s.charCodeAt(p)===68||s.charCodeAt(p)===100);u>=0&&(s.charCodeAt(u)===61?(a++,u--):c(u)&&(a++,u-=3)),a===1&&u>=0&&(s.charCodeAt(u)===61||c(u))&&a++;const h=Math.floor(i/4)*3-(a||0);return h>0?h:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(s,"utf8");let o=0;for(let i=0,l=s.length;i<l;i++){const a=s.charCodeAt(i);if(a<128)o+=1;else if(a<2048)o+=2;else if(a>=55296&&a<=56319&&i+1<l){const u=s.charCodeAt(i+1);u>=56320&&u<=57343?(o+=4,i++):o+=3}else o+=3}return o}const ro="1.16.1",ki=64*1024,{isFunction:Yn}=b,Ei=(e,...t)=>{try{return!!e(...t)}catch{return!1}},op=e=>{const t=b.global!==void 0&&b.global!==null?b.global:globalThis,{ReadableStream:n,TextEncoder:s}=t;e=b.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:r,Request:o,Response:i}=e,l=r?Yn(r):typeof fetch=="function",a=Yn(o),u=Yn(i);if(!l)return!1;const c=l&&Yn(n),f=l&&(typeof s=="function"?(k=>A=>k.encode(A))(new s):async k=>new Uint8Array(await new o(k).arrayBuffer())),h=a&&c&&Ei(()=>{let k=!1;const A=new o($e.origin,{body:new n,method:"POST",get duplex(){return k=!0,"half"}}),P=A.headers.has("Content-Type");return A.body!=null&&A.body.cancel(),k&&!P}),p=u&&c&&Ei(()=>b.isReadableStream(new i("").body)),x={stream:p&&(k=>k.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(k=>{!x[k]&&(x[k]=(A,P)=>{let C=A&&A[k];if(C)return C.call(A);throw new M(`Response type '${k}' is not supported`,M.ERR_NOT_SUPPORT,P)})});const y=async k=>{if(k==null)return 0;if(b.isBlob(k))return k.size;if(b.isSpecCompliantForm(k))return(await new o($e.origin,{method:"POST",body:k}).arrayBuffer()).byteLength;if(b.isArrayBufferView(k)||b.isArrayBuffer(k))return k.byteLength;if(b.isURLSearchParams(k)&&(k=k+""),b.isString(k))return(await f(k)).byteLength},w=async(k,A)=>{const P=b.toFiniteNumber(k.getContentLength());return P??y(A)};return async k=>{let{url:A,method:P,data:C,signal:H,cancelToken:K,timeout:B,onDownloadProgress:he,onUploadProgress:ve,responseType:pe,headers:Pe,withCredentials:Ye="same-origin",fetchOptions:Ge,maxContentLength:Ne,maxBodyLength:at}=Ra(k);const ue=b.isNumber(Ne)&&Ne>-1,X=b.isNumber(at)&&at>-1;let J=r||fetch;pe=pe?(pe+"").toLowerCase():"text";let _e=ep([H,K&&K.toAbortSignal()],B),be=null;const Re=_e&&_e.unsubscribe&&(()=>{_e.unsubscribe()});let Ae;try{if(ue&&typeof A=="string"&&A.startsWith("data:")&&rp(A)>Ne)throw new M("maxContentLength size of "+Ne+" exceeded",M.ERR_BAD_RESPONSE,k,be);if(X&&P!=="get"&&P!=="head"){const O=await w(Pe,C);if(typeof O=="number"&&isFinite(O)&&O>at)throw new M("Request body larger than maxBodyLength limit",M.ERR_BAD_REQUEST,k,be)}if(ve&&h&&P!=="get"&&P!=="head"&&(Ae=await w(Pe,C))!==0){let O=new o(A,{method:"POST",body:C,duplex:"half"}),I;if(b.isFormData(C)&&(I=O.headers.get("content-type"))&&Pe.setContentType(I),O.body){const[j,W]=wi(Ae,ys(vi(ve)));C=Ri(O.body,ki,j,W)}}b.isString(Ye)||(Ye=Ye?"include":"omit");const fe=a&&"credentials"in o.prototype;if(b.isFormData(C)){const O=Pe.getContentType();O&&/^multipart\/form-data/i.test(O)&&!/boundary=/i.test(O)&&Pe.delete("content-type")}Pe.set("User-Agent","axios/"+ro,!1);const je={...Ge,signal:_e,method:P.toUpperCase(),headers:pa(Pe.normalize()),body:C,duplex:"half",credentials:fe?Ye:void 0};be=a&&new o(A,je);let ke=await(a?J(be,Ge):J(A,je));if(ue){const O=b.toFiniteNumber(ke.headers.get("content-length"));if(O!=null&&O>Ne)throw new M("maxContentLength size of "+Ne+" exceeded",M.ERR_BAD_RESPONSE,k,be)}const Ie=p&&(pe==="stream"||pe==="response");if(p&&ke.body&&(he||ue||Ie&&Re)){const O={};["status","statusText","headers"].forEach(m=>{O[m]=ke[m]});const I=b.toFiniteNumber(ke.headers.get("content-length")),[j,W]=he&&wi(I,ys(vi(he),!0))||[];let d=0;const g=m=>{if(ue&&(d=m,d>Ne))throw new M("maxContentLength size of "+Ne+" exceeded",M.ERR_BAD_RESPONSE,k,be);j&&j(m)};ke=new i(Ri(ke.body,ki,g,()=>{W&&W(),Re&&Re()}),O)}pe=pe||"text";let v=await x[b.findKey(x,pe)||"text"](ke,k);if(ue&&!p&&!Ie){let O;if(v!=null&&(typeof v.byteLength=="number"?O=v.byteLength:typeof v.size=="number"?O=v.size:typeof v=="string"&&(O=typeof s=="function"?new s().encode(v).byteLength:v.length)),typeof O=="number"&&O>Ne)throw new M("maxContentLength size of "+Ne+" exceeded",M.ERR_BAD_RESPONSE,k,be)}return!Ie&&Re&&Re(),await new Promise((O,I)=>{va(O,I,{data:v,headers:qe.from(ke.headers),status:ke.status,statusText:ke.statusText,config:k,request:be})})}catch(fe){if(Re&&Re(),_e&&_e.aborted&&_e.reason instanceof M){const je=_e.reason;throw je.config=k,be&&(je.request=be),fe!==je&&(je.cause=fe),je}throw fe&&fe.name==="TypeError"&&/Load failed|fetch/i.test(fe.message)?Object.assign(new M("Network Error",M.ERR_NETWORK,k,be,fe&&fe.response),{cause:fe.cause||fe}):M.from(fe,fe&&fe.code,k,be,fe&&fe.response)}}},ip=new Map,ka=e=>{let t=e&&e.env||{};const{fetch:n,Request:s,Response:r}=t,o=[s,r,n];let i=o.length,l=i,a,u,c=ip;for(;l--;)a=o[l],u=c.get(a),u===void 0&&c.set(a,u=l?new Map:op(t)),c=u;return u};ka();const oo={http:Sh,xhr:Yh,fetch:{get:ka}};b.forEach(oo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Si=e=>`- ${e}`,lp=e=>b.isFunction(e)||e===null||e===!1;function ap(e,t){e=b.isArray(e)?e:[e];const{length:n}=e;let s,r;const o={};for(let i=0;i<n;i++){s=e[i];let l;if(r=s,!lp(s)&&(r=oo[(l=String(s)).toLowerCase()],r===void 0))throw new M(`Unknown adapter '${l}'`);if(r&&(b.isFunction(r)||(r=r.get(t))))break;o[l||"#"+i]=r}if(!r){const i=Object.entries(o).map(([a,u])=>`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=n?i.length>1?`since :
|
|
`+i.map(Si).join(`
|
|
`):" "+Si(i[0]):"as no adapter specified";throw new M("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r}const Ea={getAdapter:ap,adapters:oo};function cr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Kn(null,e)}function Ai(e){return cr(e),e.headers=qe.from(e.headers),e.data=ar.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ea.getAdapter(e.adapter||qn.adapter,e)(e).then(function(s){cr(e),e.response=s;try{s.data=ar.call(e,e.transformResponse,s)}finally{delete e.response}return s.headers=qe.from(s.headers),s},function(s){if(!wa(s)&&(cr(e),s&&s.response)){e.response=s.response;try{s.response.data=ar.call(e,e.transformResponse,s.response)}finally{delete e.response}s.response.headers=qe.from(s.response.headers)}return Promise.reject(s)})}const Vs={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Vs[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Ti={};Vs.transitional=function(t,n,s){function r(o,i){return"[Axios v"+ro+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,l)=>{if(t===!1)throw new M(r(i," has been removed"+(n?" in "+n:"")),M.ERR_DEPRECATED);return n&&!Ti[i]&&(Ti[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};Vs.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function cp(e,t,n){if(typeof e!="object")throw new M("options must be an object",M.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],i=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(i){const l=e[o],a=l===void 0||i(l,o,e);if(a!==!0)throw new M("option "+o+" must be "+a,M.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new M("Unknown option "+o,M.ERR_BAD_OPTION)}}const as={assertOptions:cp,validators:Vs},et=as.validators;let qt=class{constructor(t){this.defaults=t||{},this.interceptors={request:new yi,response:new yi}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const o=(()=>{if(!r.stack)return"";const i=r.stack.indexOf(`
|
|
`);return i===-1?"":r.stack.slice(i+1)})();try{if(!s.stack)s.stack=o;else if(o){const i=o.indexOf(`
|
|
`),l=i===-1?-1:o.indexOf(`
|
|
`,i+1),a=l===-1?"":o.slice(l+1);String(s.stack).endsWith(a)||(s.stack+=`
|
|
`+o)}}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Kt(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&as.assertOptions(s,{silentJSONParsing:et.transitional(et.boolean),forcedJSONParsing:et.transitional(et.boolean),clarifyTimeoutError:et.transitional(et.boolean),legacyInterceptorReqResOrdering:et.transitional(et.boolean)},!1),r!=null&&(b.isFunction(r)?n.paramsSerializer={serialize:r}:as.assertOptions(r,{encode:et.function,serialize:et.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),as.assertOptions(n,{baseUrl:et.spelling("baseURL"),withXsrfToken:et.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&b.merge(o.common,o[n.method]);o&&b.forEach(["delete","get","head","post","put","patch","query","common"],x=>{delete o[x]}),n.headers=qe.concat(i,o);const l=[];let a=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(n)===!1)return;a=a&&y.synchronous;const w=n.transitional||no;w&&w.legacyInterceptorReqResOrdering?l.unshift(y.fulfilled,y.rejected):l.push(y.fulfilled,y.rejected)});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let c,f=0,h;if(!a){const x=[Ai.bind(this),void 0];for(x.unshift(...l),x.push(...u),h=x.length,c=Promise.resolve(n);f<h;)c=c.then(x[f++],x[f++]);return c}h=l.length;let p=n;for(;f<h;){const x=l[f++],y=l[f++];try{p=x(p)}catch(w){y.call(this,w);break}}try{c=Ai.call(this,p)}catch(x){return Promise.reject(x)}for(f=0,h=u.length;f<h;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=Kt(this.defaults,t);const n=_a(t.baseURL,t.url,t.allowAbsoluteUrls);return xa(n,t.params,t.paramsSerializer)}};b.forEach(["delete","get","head","options"],function(t){qt.prototype[t]=function(n,s){return this.request(Kt(s||{},{method:t,url:n,data:(s||{}).data}))}});b.forEach(["post","put","patch","query"],function(t){function n(s){return function(o,i,l){return this.request(Kt(l||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}qt.prototype[t]=n(),t!=="query"&&(qt.prototype[t+"Form"]=n(!0))});let up=class Sa{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const s=this;this.promise.then(r=>{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(l=>{s.subscribe(l),o=l}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,l){s.reason||(s.reason=new Kn(o,i,l),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Sa(function(r){t=r}),cancel:t}}};function fp(e){return function(n){return e.apply(null,n)}}function dp(e){return b.isObject(e)&&e.isAxiosError===!0}const Cr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Cr).forEach(([e,t])=>{Cr[t]=e});function Aa(e){const t=new qt(e),n=ia(qt.prototype.request,t);return b.extend(n,qt.prototype,t,{allOwnKeys:!0}),b.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Aa(Kt(e,r))},n}const xe=Aa(qn);xe.Axios=qt;xe.CanceledError=Kn;xe.CancelToken=up;xe.isCancel=wa;xe.VERSION=ro;xe.toFormData=zs;xe.AxiosError=M;xe.Cancel=xe.CanceledError;xe.all=function(t){return Promise.all(t)};xe.spread=fp;xe.isAxiosError=dp;xe.mergeConfig=Kt;xe.AxiosHeaders=qe;xe.formToJSON=e=>ya(b.isHTMLForm(e)?new FormData(e):e);xe.getAdapter=Ea.getAdapter;xe.HttpStatusCode=Cr;xe.default=xe;const{Axios:gm,AxiosError:mm,CanceledError:bm,isCancel:xm,CancelToken:ym,VERSION:wm,all:vm,Cancel:_m,isAxiosError:Rm,spread:km,toFormData:Em,AxiosHeaders:Sm,HttpStatusCode:Am,formToJSON:Tm,getAdapter:Cm,mergeConfig:Om,create:Pm}=xe,jt=xe.create({baseURL:"/api",timeout:1e4}),hp=[{id:1,name:"项目一",description:"主要产品线",reportCount:15,todayNewReports:2},{id:2,name:"项目二",description:"内部工具",reportCount:8,todayNewReports:1},{id:3,name:"项目三",description:"客户定制",reportCount:12,todayNewReports:0}],Ci={1:[{id:101,fileName:"2026-05-22 日报.html",fileType:"html",reportDate:"2026-05-22",size:"15KB"},{id:102,fileName:"2026-05-21 日报.md",fileType:"md",reportDate:"2026-05-21",size:"8KB"},{id:103,fileName:"2026-05-20 周报.pptx",fileType:"pptx",reportDate:"2026-05-20",size:"256KB"}],2:[{id:201,fileName:"2026-05-22 开发日报.html",fileType:"html",reportDate:"2026-05-22",size:"12KB"},{id:202,fileName:"2026-05-21 开发日报.html",fileType:"html",reportDate:"2026-05-21",size:"11KB"}],3:[{id:301,fileName:"2026-05-22 进度报告.md",fileType:"md",reportDate:"2026-05-22",size:"10KB"},{id:302,fileName:"2026-05-21 进度报告.md",fileType:"md",reportDate:"2026-05-21",size:"9KB"}]},pp={html:"<html><body><h1>日报内容</h1><p>这是一份HTML格式的日报。</p></body></html>",md:`# 日报标题
|
|
|
|
## 工作内容
|
|
|
|
1. 完成功能A
|
|
2. 进行代码审查
|
|
3. 修复Bug
|
|
|
|
## 明日计划
|
|
|
|
- 继续开发功能B
|
|
- 优化性能`,pptx:null};function io(){const e=He(!1),t=He(null);return{loading:e,error:t,fetchProjects:async()=>{e.value=!0,t.value=null;try{return(await jt.get("/projects")).data}catch{return console.warn("API not available, using mock data"),hp}finally{e.value=!1}},fetchReports:async a=>{e.value=!0,t.value=null;try{return(await jt.get(`/reports?projectId=${a}`)).data}catch{return console.warn("API not available, using mock data"),Ci[a]||[]}finally{e.value=!1}},fetchReportContent:async a=>{e.value=!0,t.value=null;try{const u=await jt.get(`/reports/${a}`);return{content:u.data.fileContent,type:u.data.fileType}}catch{console.warn("API not available, using mock data");for(const c of Object.values(Ci)){const f=c.find(h=>h.id===a);if(f)return{content:pp[f.fileType],type:f.fileType}}return null}finally{e.value=!1}},fetchReportBytes:async a=>{try{return(await jt.get(`/reports/${a}/download`,{responseType:"arraybuffer"})).data}catch(u){return console.warn("Failed to fetch report bytes:",u),null}},fetchReportPdf:async a=>{try{const u=await jt.get(`/reports/${a}/pdf`,{responseType:"arraybuffer"});return new Blob([u.data],{type:"application/pdf"})}catch(u){return console.warn("Failed to fetch report PDF:",u),null}},updateProject:async(a,u)=>{e.value=!0,t.value=null;try{let c;return u instanceof FormData?c=await jt.put(`/projects/${a}`,u,{headers:{"Content-Type":"multipart/form-data"}}):c=await jt.put(`/projects/${a}`,u),c.data}catch(c){return console.warn("API not available, failed to update project:",c),null}finally{e.value=!1}}}}const gp={key:1,class:"absolute inset-0 bg-gradient-to-br from-orange-400 via-orange-500 to-orange-600"},mp={class:"absolute inset-0 flex flex-col justify-end p-8"},bp={class:"text-2xl font-bold text-white mb-2 group-hover:text-orange-200 transition-colors"},xp={class:"text-white/80 text-sm mb-4 line-clamp-2"},yp={class:"flex items-center justify-between"},wp={class:"flex items-center space-x-4"},vp={class:"px-3 py-1.5 bg-white/20 backdrop-blur-sm text-white text-sm font-medium rounded-full"},_p={class:"text-white/70 text-sm"},Rp={__name:"ProjectCard",props:{title:{type:String,required:!0},description:{type:String,default:""},imageUrl:{type:String,default:""},reportCount:{type:Number,default:0},createdAt:{type:String,default:""}},emits:["click"],setup(e){const t=n=>{if(!n)return"未知时间";try{return new Date(n).toLocaleDateString("zh-CN",{year:"numeric",month:"short",day:"numeric"})}catch{return n}};return(n,s)=>(G(),Z("div",{onClick:s[0]||(s[0]=r=>n.$emit("click")),class:"group relative h-[420px] rounded-3xl overflow-hidden cursor-pointer select-none transition-all duration-300 hover:-translate-y-1 hover:shadow-2xl"},[e.imageUrl?(G(),Z("div",{key:0,class:"absolute inset-0 bg-cover bg-center transition-transform duration-500 group-hover:scale-105",style:Ts({backgroundImage:`url(${e.imageUrl})`})},null,4)):(G(),Z("div",gp)),s[3]||(s[3]=_("div",{class:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/40 to-transparent"},null,-1)),s[4]||(s[4]=_("div",{class:"absolute inset-0 bg-gradient-to-r from-transparent via-white/10 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-1000"},null,-1)),_("div",mp,[s[2]||(s[2]=_("div",{class:"absolute top-6 right-6"},[_("div",{class:"w-12 h-12 bg-white/20 backdrop-blur-md rounded-xl flex items-center justify-center"},[_("svg",{class:"w-6 h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})])])],-1)),_("h3",bp,Ee(e.title),1),_("p",xp,Ee(e.description||"暂无描述"),1),_("div",yp,[_("div",wp,[_("span",vp,Ee(e.reportCount)+" 份报告 ",1),_("span",_p,Ee(t(e.createdAt)),1)]),s[1]||(s[1]=_("div",{class:"w-10 h-10 bg-white/20 backdrop-blur-sm rounded-full flex items-center justify-center group-hover:bg-orange-500 transition-all duration-300"},[_("svg",{class:"w-5 h-5 text-white transform group-hover:translate-x-1 transition-transform",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 8l4 4m0 0l-4 4m4-4H3"})])],-1))])]),s[5]||(s[5]=_("div",{class:"absolute inset-0 rounded-3xl border-2 border-transparent group-hover:border-orange-400/50 transition-colors duration-300 pointer-events-none"},null,-1))]))}},kp=Zr(Rp,[["__scopeId","data-v-229745c6"]]),Ep={class:"min-h-screen bg-gradient-to-br from-orange-100 via-orange-200 to-amber-100"},Sp={class:"relative z-10 flex-1 overflow-y-auto p-8"},Ap={key:0,class:"flex items-center justify-center h-64"},Tp={key:1,class:"max-w-md mx-auto text-center p-8 glass rounded-2xl border border-orange-200"},Cp={class:"text-orange-600"},Op={key:2,class:"max-w-6xl mx-auto"},Pp={class:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-12"},Np={class:"glass rounded-2xl border border-orange-200/50 p-6 hover:-translate-y-1 transition-all duration-300 hover:shadow-xl"},Ip={class:"flex items-center space-x-4"},Dp={class:"text-4xl font-bold text-slate-800"},Lp={class:"glass rounded-2xl border border-orange-200/50 p-6 hover:-translate-y-1 transition-all duration-300 hover:shadow-xl"},Bp={class:"flex items-center space-x-4"},$p={class:"text-4xl font-bold text-slate-800"},Mp={class:"glass rounded-2xl border border-orange-200/50 p-6 hover:-translate-y-1 transition-all duration-300 hover:shadow-xl"},jp={class:"flex items-center space-x-4"},Fp={class:"text-4xl font-bold text-slate-800"},Up={key:0,class:"relative"},Hp={key:1,class:"text-center py-16"},zp={__name:"ProjectList",setup(e){const t=_d(),{loading:n,error:s,fetchProjects:r}=io(),o=He([]),i=He(null),l=me(()=>o.value.reduce((p,x)=>p+(x.reportCount||0),0)),a=me(()=>o.value.reduce((p,x)=>p+(x.todayNewReports||0),0)),u=async()=>{o.value=await r()},c=p=>{t.push(`/project/${p}`)},f=()=>{i.value&&i.value.scrollBy({left:-440,behavior:"smooth"})},h=()=>{i.value&&i.value.scrollBy({left:440,behavior:"smooth"})};return Kr(u),t.afterEach(p=>{p.path==="/"&&u()}),Is(()=>{}),(p,x)=>(G(),Z("div",Ep,[_("main",Sp,[x[12]||(x[12]=ms('<div class="max-w-6xl mx-auto mb-12" data-v-b0fc9718><div class="flex items-center space-x-3 mb-4" data-v-b0fc9718><div class="w-12 h-12 bg-gradient-to-br from-orange-400 to-orange-600 rounded-xl flex items-center justify-center shadow-lg shadow-orange-500/30" data-v-b0fc9718><svg class="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-b0fc9718><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" data-v-b0fc9718></path></svg></div><span class="px-3 py-1 bg-orange-500/20 text-orange-600 text-sm font-medium rounded-full border border-orange-300" data-v-b0fc9718>日报分发平台</span></div><h1 class="text-4xl font-bold text-slate-800 mb-3 tracking-tight" data-v-b0fc9718> 选择项目 </h1><p class="text-lg text-slate-600" data-v-b0fc9718>查看和管理您的日报、周报文件</p></div>',1)),wt(n)?(G(),Z("div",Ap,[...x[0]||(x[0]=[_("div",{class:"relative w-16 h-16"},[_("div",{class:"absolute inset-0 border-4 border-orange-200 rounded-full"}),_("div",{class:"absolute inset-0 border-4 border-transparent border-t-orange-500 rounded-full animate-spin"})],-1)])])):wt(s)?(G(),Z("div",Tp,[x[1]||(x[1]=_("svg",{class:"w-12 h-12 text-orange-400 mx-auto mb-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})],-1)),_("p",Cp,Ee(wt(s)),1)])):(G(),Z("div",Op,[_("div",Pp,[_("div",Np,[_("div",Ip,[x[3]||(x[3]=_("div",{class:"w-14 h-14 bg-gradient-to-br from-orange-400 to-orange-600 rounded-xl flex items-center justify-center shadow-lg"},[_("svg",{class:"w-7 h-7 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"})])],-1)),_("div",null,[_("p",Dp,Ee(o.value.length),1),x[2]||(x[2]=_("p",{class:"text-sm text-slate-500 mt-1"},"个项目",-1))])])]),_("div",Lp,[_("div",Bp,[x[5]||(x[5]=_("div",{class:"w-14 h-14 bg-gradient-to-br from-orange-400 to-orange-600 rounded-xl flex items-center justify-center shadow-lg"},[_("svg",{class:"w-7 h-7 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})])],-1)),_("div",null,[_("p",$p,Ee(l.value),1),x[4]||(x[4]=_("p",{class:"text-sm text-slate-500 mt-1"},"份报告",-1))])])]),_("div",Mp,[_("div",jp,[x[7]||(x[7]=_("div",{class:"w-14 h-14 bg-gradient-to-br from-orange-400 to-orange-600 rounded-xl flex items-center justify-center shadow-lg"},[_("svg",{class:"w-7 h-7 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01"})])],-1)),_("div",null,[_("p",Fp,Ee(a.value),1),x[6]||(x[6]=_("p",{class:"text-sm text-slate-500 mt-1"},"今日新增",-1))])])])]),x[11]||(x[11]=_("div",{class:"flex items-center space-x-4 mb-8"},[_("h2",{class:"text-2xl font-semibold text-slate-800"},"所有项目"),_("div",{class:"flex-1 h-px bg-gradient-to-r from-orange-300 to-transparent"})],-1)),o.value.length>0?(G(),Z("div",Up,[_("button",{onClick:f,class:"absolute left-0 top-1/2 -translate-y-1/2 z-10 w-12 h-12 glass rounded-full flex items-center justify-center shadow-lg hover:bg-orange-500 hover:text-white transition-all duration-300 -ml-6"},[...x[8]||(x[8]=[_("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])]),_("button",{onClick:h,class:"absolute right-0 top-1/2 -translate-y-1/2 z-10 w-12 h-12 glass rounded-full flex items-center justify-center shadow-lg hover:bg-orange-500 hover:text-white transition-all duration-300 -mr-6"},[...x[9]||(x[9]=[_("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)])]),_("div",{ref_key:"carouselRef",ref:i,class:"flex gap-6 overflow-x-auto scrollbar-hide pb-4 px-6 snap-x snap-mandatory",style:{"scroll-padding":"1.5rem"}},[(G(!0),Z(nt,null,kl(o.value,y=>(G(),Z("div",{key:y.id,class:"flex-shrink-0 w-[400px] snap-start"},[Se(kp,{title:y.name,description:y.description,"image-url":y.coverImage,"report-count":y.reportCount||0,"created-at":y.createdAt,onClick:w=>c(y.id)},null,8,["title","description","image-url","report-count","created-at","onClick"])]))),128))],512)])):Bn("",!0),o.value.length===0?(G(),Z("div",Hp,[...x[10]||(x[10]=[ms('<div class="w-24 h-24 glass rounded-full flex items-center justify-center mx-auto mb-6" data-v-b0fc9718><svg class="w-12 h-12 text-orange-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-b0fc9718><path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z" data-v-b0fc9718></path></svg></div><h3 class="text-xl font-medium text-slate-700 mb-2" data-v-b0fc9718>暂无项目</h3><p class="text-slate-500" data-v-b0fc9718>创建一个新项目开始管理您的日报</p>',3)])])):Bn("",!0)]))])]))}},Vp=Zr(zp,[["__scopeId","data-v-b0fc9718"]]),qp={class:"flex items-start space-x-3"},Kp={key:0,class:"w-6 h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Wp={class:"flex-1 min-w-0"},Gp=["title"],Jp={class:"mt-2 flex items-center space-x-3"},Qp={__name:"ReportCard",props:{report:{type:Object,required:!0},isSelected:{type:Boolean,default:!1}},emits:["select"],setup(e){const t=e,n={html:{color:"bg-gradient-to-br from-orange-500 to-orange-600"},md:{color:"bg-gradient-to-br from-orange-400 to-orange-500"},pptx:{color:"bg-gradient-to-br from-orange-500 to-orange-600"}},s={html:"HTML",md:"Markdown",pptx:"PowerPoint"},r={render(){return xs("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[xs("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"})])}},o=me(()=>r),i=me(()=>(n[t.report.fileType]||n.html).color),l=me(()=>s[t.report.fileType]||t.report.fileType.toUpperCase()),a=me(()=>({html:"bg-orange-100 text-orange-600",md:"bg-orange-100 text-orange-600",pptx:"bg-orange-100 text-orange-600"})[t.report.fileType]||"bg-orange-100 text-orange-600");return(u,c)=>(G(),Z("div",{onClick:c[0]||(c[0]=f=>u.$emit("select",e.report)),class:De(["group relative rounded-xl cursor-pointer transition-all duration-300 overflow-hidden",e.isSelected?"bg-orange-600 shadow-xl shadow-orange-600/40 border-2 border-orange-500":"glass border border-orange-200/50 hover:border-orange-400 hover:shadow-lg hover:-translate-y-0.5"])},[_("div",{class:De(["p-4",e.isSelected?"text-white":"text-slate-700"])},[_("div",qp,[_("div",{class:De(["flex-shrink-0 w-12 h-12 rounded-xl flex items-center justify-center shadow-lg transition-colors",e.isSelected?"bg-white/30":i.value])},[e.isSelected?(G(),Z("svg",Kp,[...c[1]||(c[1]=[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"},null,-1)])])):(G(),Jr(Jc(o.value),{key:1,class:"w-6 h-6 text-white"}))],2),_("div",Wp,[_("h3",{class:De(["text-base font-semibold truncate select-none",e.isSelected?"text-white":"text-slate-800 group-hover:text-orange-600"]),title:e.report.fileName},Ee(e.report.fileName),11,Gp),_("div",Jp,[_("span",{class:De(["px-3 py-1 rounded-full text-xs font-semibold",e.isSelected?"bg-white/20 text-white":a.value])},Ee(l.value),3),_("span",{class:De(["text-sm",e.isSelected?"text-white/80":"text-slate-500"])},Ee(e.report.size),3)])])]),_("div",{class:De(["mt-4 pt-3 flex items-center justify-between",e.isSelected?"border-t border-white/20":"border-t border-orange-100"])},[_("div",{class:De(["flex items-center text-sm",e.isSelected?"text-white/70":"text-slate-500"])},[c[2]||(c[2]=_("svg",{class:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})],-1)),Vl(" "+Ee(e.report.reportDate||"未知时间"),1)],2),_("div",{class:De(["w-8 h-8 rounded-full flex items-center justify-center transition-all",e.isSelected?"bg-white/20":"bg-orange-100 group-hover:bg-orange-500 group-hover:text-white"])},[(G(),Z("svg",{class:De(["w-4 h-4",e.isSelected?"text-white":"text-orange-500"]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...c[3]||(c[3]=[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])],2))],2)],2)],2)],2))}};function lo(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Qt=lo();function Ta(e){Qt=e}const Ca=/[&<>"']/,Zp=new RegExp(Ca.source,"g"),Oa=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Xp=new RegExp(Oa.source,"g"),Yp={"&":"&","<":"<",">":">",'"':""","'":"'"},Oi=e=>Yp[e];function Qe(e,t){if(t){if(Ca.test(e))return e.replace(Zp,Oi)}else if(Oa.test(e))return e.replace(Xp,Oi);return e}const eg=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function tg(e){return e.replace(eg,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const ng=/(^|[^\[])\^/g;function re(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const s={replace:(r,o)=>{let i=typeof o=="string"?o:o.source;return i=i.replace(ng,"$1"),n=n.replace(r,i),s},getRegex:()=>new RegExp(n,t)};return s}function Pi(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const On={exec:()=>null};function Ni(e,t){const n=e.replace(/\|/g,(o,i,l)=>{let a=!1,u=i;for(;--u>=0&&l[u]==="\\";)a=!a;return a?"|":" |"}),s=n.split(/ \|/);let r=0;if(s[0].trim()||s.shift(),s.length>0&&!s[s.length-1].trim()&&s.pop(),t)if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;r<s.length;r++)s[r]=s[r].trim().replace(/\\\|/g,"|");return s}function es(e,t,n){const s=e.length;if(s===0)return"";let r=0;for(;r<s&&e.charAt(s-r-1)===t;)r++;return e.slice(0,s-r)}function sg(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let s=0;s<e.length;s++)if(e[s]==="\\")s++;else if(e[s]===t[0])n++;else if(e[s]===t[1]&&(n--,n<0))return s;return-1}function Ii(e,t,n,s){const r=t.href,o=t.title?Qe(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){s.state.inLink=!0;const l={type:"link",raw:n,href:r,title:o,text:i,tokens:s.inlineTokens(i)};return s.state.inLink=!1,l}return{type:"image",raw:n,href:r,title:o,text:Qe(i)}}function rg(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const s=n[1];return t.split(`
|
|
`).map(r=>{const o=r.match(/^\s+/);if(o===null)return r;const[i]=o;return i.length>=s.length?r.slice(s.length):r}).join(`
|
|
`)}class ws{constructor(t){ce(this,"options");ce(this,"rules");ce(this,"lexer");this.options=t||Qt}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const s=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?s:es(s,`
|
|
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const s=n[0],r=rg(s,n[3]||"");return{type:"code",raw:s,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:r}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let s=n[2].trim();if(/#$/.test(s)){const r=es(s,"#");(this.options.pedantic||!r||/ $/.test(r))&&(s=r.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let s=n[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
|
|
$1`);s=es(s.replace(/^ *>[ \t]?/gm,""),`
|
|
`);const r=this.lexer.state.top;this.lexer.state.top=!0;const o=this.lexer.blockTokens(s);return this.lexer.state.top=r,{type:"blockquote",raw:n[0],tokens:o,text:s}}}list(t){let n=this.rules.block.list.exec(t);if(n){let s=n[1].trim();const r=s.length>1,o={type:"list",raw:"",ordered:r,start:r?+s.slice(0,-1):"",loose:!1,items:[]};s=r?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=r?s:"[*+-]");const i=new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`);let l="",a="",u=!1;for(;t;){let c=!1;if(!(n=i.exec(t))||this.rules.block.hr.test(t))break;l=n[0],t=t.substring(l.length);let f=n[2].split(`
|
|
`,1)[0].replace(/^\t+/,k=>" ".repeat(3*k.length)),h=t.split(`
|
|
`,1)[0],p=0;this.options.pedantic?(p=2,a=f.trimStart()):(p=n[2].search(/[^ ]/),p=p>4?1:p,a=f.slice(p),p+=n[1].length);let x=!1;if(!f&&/^ *$/.test(h)&&(l+=h+`
|
|
`,t=t.substring(h.length+1),c=!0),!c){const k=new RegExp(`^ {0,${Math.min(3,p-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),A=new RegExp(`^ {0,${Math.min(3,p-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),P=new RegExp(`^ {0,${Math.min(3,p-1)}}(?:\`\`\`|~~~)`),C=new RegExp(`^ {0,${Math.min(3,p-1)}}#`);for(;t;){const H=t.split(`
|
|
`,1)[0];if(h=H,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),P.test(h)||C.test(h)||k.test(h)||A.test(t))break;if(h.search(/[^ ]/)>=p||!h.trim())a+=`
|
|
`+h.slice(p);else{if(x||f.search(/[^ ]/)>=4||P.test(f)||C.test(f)||A.test(f))break;a+=`
|
|
`+h}!x&&!h.trim()&&(x=!0),l+=H+`
|
|
`,t=t.substring(H.length+1),f=h.slice(p)}}o.loose||(u?o.loose=!0:/\n *\n *$/.test(l)&&(u=!0));let y=null,w;this.options.gfm&&(y=/^\[[ xX]\] /.exec(a),y&&(w=y[0]!=="[ ] ",a=a.replace(/^\[[ xX]\] +/,""))),o.items.push({type:"list_item",raw:l,task:!!y,checked:w,loose:!1,text:a,tokens:[]}),o.raw+=l}o.items[o.items.length-1].raw=l.trimEnd(),o.items[o.items.length-1].text=a.trimEnd(),o.raw=o.raw.trimEnd();for(let c=0;c<o.items.length;c++)if(this.lexer.state.top=!1,o.items[c].tokens=this.lexer.blockTokens(o.items[c].text,[]),!o.loose){const f=o.items[c].tokens.filter(p=>p.type==="space"),h=f.length>0&&f.some(p=>/\n.*\n/.test(p.raw));o.loose=h}if(o.loose)for(let c=0;c<o.items.length;c++)o.items[c].loose=!0;return o}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const s=n[1].toLowerCase().replace(/\s+/g," "),r=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:s,raw:n[0],href:r,title:o}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;const s=Ni(n[1]),r=n[2].replace(/^\||\| *$/g,"").split("|"),o=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
|
|
`):[],i={type:"table",raw:n[0],header:[],align:[],rows:[]};if(s.length===r.length){for(const l of r)/^ *-+: *$/.test(l)?i.align.push("right"):/^ *:-+: *$/.test(l)?i.align.push("center"):/^ *:-+ *$/.test(l)?i.align.push("left"):i.align.push(null);for(const l of s)i.header.push({text:l,tokens:this.lexer.inline(l)});for(const l of o)i.rows.push(Ni(l,i.header.length).map(a=>({text:a,tokens:this.lexer.inline(a)})));return i}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const s=n[1].charAt(n[1].length-1)===`
|
|
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:s,tokens:this.lexer.inline(s)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:Qe(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const s=n[2].trim();if(!this.options.pedantic&&/^</.test(s)){if(!/>$/.test(s))return;const i=es(s.slice(0,-1),"\\");if((s.length-i.length)%2===0)return}else{const i=sg(n[2],"()");if(i>-1){const a=(n[0].indexOf("!")===0?5:4)+n[1].length+i;n[2]=n[2].substring(0,i),n[0]=n[0].substring(0,a).trim(),n[3]=""}}let r=n[2],o="";if(this.options.pedantic){const i=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);i&&(r=i[1],o=i[3])}else o=n[3]?n[3].slice(1,-1):"";return r=r.trim(),/^</.test(r)&&(this.options.pedantic&&!/>$/.test(s)?r=r.slice(1):r=r.slice(1,-1)),Ii(n,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(t,n){let s;if((s=this.rules.inline.reflink.exec(t))||(s=this.rules.inline.nolink.exec(t))){const r=(s[2]||s[1]).replace(/\s+/g," "),o=n[r.toLowerCase()];if(!o){const i=s[0].charAt(0);return{type:"text",raw:i,text:i}}return Ii(s,o,s[0],this.lexer)}}emStrong(t,n,s=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!r||r[3]&&s.match(/[\p{L}\p{N}]/u))return;if(!(r[1]||r[2]||"")||!s||this.rules.inline.punctuation.exec(s)){const i=[...r[0]].length-1;let l,a,u=i,c=0;const f=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,n=n.slice(-1*t.length+i);(r=f.exec(n))!=null;){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l)continue;if(a=[...l].length,r[3]||r[4]){u+=a;continue}else if((r[5]||r[6])&&i%3&&!((i+a)%3)){c+=a;continue}if(u-=a,u>0)continue;a=Math.min(a,a+u+c);const h=[...r[0]][0].length,p=t.slice(0,i+r.index+h+a);if(Math.min(i,a)%2){const y=p.slice(1,-1);return{type:"em",raw:p,text:y,tokens:this.lexer.inlineTokens(y)}}const x=p.slice(2,-2);return{type:"strong",raw:p,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let s=n[2].replace(/\n/g," ");const r=/[^ ]/.test(s),o=/^ /.test(s)&&/ $/.test(s);return r&&o&&(s=s.substring(1,s.length-1)),s=Qe(s,!0),{type:"codespan",raw:n[0],text:s}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let s,r;return n[2]==="@"?(s=Qe(n[1]),r="mailto:"+s):(s=Qe(n[1]),r=s),{type:"link",raw:n[0],text:s,href:r,tokens:[{type:"text",raw:s,text:s}]}}}url(t){var s;let n;if(n=this.rules.inline.url.exec(t)){let r,o;if(n[2]==="@")r=Qe(n[0]),o="mailto:"+r;else{let i;do i=n[0],n[0]=((s=this.rules.inline._backpedal.exec(n[0]))==null?void 0:s[0])??"";while(i!==n[0]);r=Qe(n[0]),n[1]==="www."?o="http://"+n[0]:o=n[0]}return{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let s;return this.lexer.state.inRawBlock?s=n[0]:s=Qe(n[0]),{type:"text",raw:n[0],text:s}}}}const og=/^(?: *(?:\n|$))+/,ig=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,lg=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Wn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ag=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Pa=/(?:[*+-]|\d{1,9}[.)])/,Na=re(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Pa).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),ao=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,cg=/^[^\n]+/,co=/(?!\s*\])(?:\\.|[^\[\]\\])+/,ug=re(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",co).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),fg=re(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Pa).getRegex(),qs="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",uo=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,dg=re("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",uo).replace("tag",qs).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ia=re(ao).replace("hr",Wn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qs).getRegex(),hg=re(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ia).getRegex(),fo={blockquote:hg,code:ig,def:ug,fences:lg,heading:ag,hr:Wn,html:dg,lheading:Na,list:fg,newline:og,paragraph:Ia,table:On,text:cg},Di=re("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Wn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qs).getRegex(),pg={...fo,table:Di,paragraph:re(ao).replace("hr",Wn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Di).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qs).getRegex()},gg={...fo,html:re(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",uo).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:On,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:re(ao).replace("hr",Wn).replace("heading",` *#{1,6} *[^
|
|
]`).replace("lheading",Na).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Da=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,mg=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,La=/^( {2,}|\\)\n(?!\s*$)/,bg=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Gn="\\p{P}\\p{S}",xg=re(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Gn).getRegex(),yg=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,wg=re(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Gn).getRegex(),vg=re("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Gn).getRegex(),_g=re("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Gn).getRegex(),Rg=re(/\\([punct])/,"gu").replace(/punct/g,Gn).getRegex(),kg=re(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Eg=re(uo).replace("(?:-->|$)","-->").getRegex(),Sg=re("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Eg).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),vs=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ag=re(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",vs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ba=re(/^!?\[(label)\]\[(ref)\]/).replace("label",vs).replace("ref",co).getRegex(),$a=re(/^!?\[(ref)\](?:\[\])?/).replace("ref",co).getRegex(),Tg=re("reflink|nolink(?!\\()","g").replace("reflink",Ba).replace("nolink",$a).getRegex(),ho={_backpedal:On,anyPunctuation:Rg,autolink:kg,blockSkip:yg,br:La,code:mg,del:On,emStrongLDelim:wg,emStrongRDelimAst:vg,emStrongRDelimUnd:_g,escape:Da,link:Ag,nolink:$a,punctuation:xg,reflink:Ba,reflinkSearch:Tg,tag:Sg,text:bg,url:On},Cg={...ho,link:re(/^!?\[(label)\]\((.*?)\)/).replace("label",vs).getRegex(),reflink:re(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",vs).getRegex()},Or={...ho,escape:re(Da).replace("])","~|])").getRegex(),url:re(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Og={...Or,br:re(La).replace("{2,}","*").getRegex(),text:re(Or.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ts={normal:fo,gfm:pg,pedantic:gg},yn={normal:ho,gfm:Or,breaks:Og,pedantic:Cg};class bt{constructor(t){ce(this,"tokens");ce(this,"options");ce(this,"state");ce(this,"tokenizer");ce(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Qt,this.options.tokenizer=this.options.tokenizer||new ws,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:ts.normal,inline:yn.normal};this.options.pedantic?(n.block=ts.pedantic,n.inline=yn.pedantic):this.options.gfm&&(n.block=ts.gfm,this.options.breaks?n.inline=yn.breaks:n.inline=yn.gfm),this.tokenizer.rules=n}static get rules(){return{block:ts,inline:yn}}static lex(t,n){return new bt(n).lex(t)}static lexInline(t,n){return new bt(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
|
|
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const s=this.inlineQueue[n];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(l,a,u)=>a+" ".repeat(u.length));let s,r,o,i;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(l=>(s=l.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))){if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length),s.raw.length===1&&n.length>0?n[n.length-1].raw+=`
|
|
`:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length),r=n[n.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=`
|
|
`+s.raw,r.text+=`
|
|
`+s.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text):n.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length),r=n[n.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=`
|
|
`+s.raw,r.text+=`
|
|
`+s.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(o=t,this.options.extensions&&this.options.extensions.startBlock){let l=1/0;const a=t.slice(1);let u;this.options.extensions.startBlock.forEach(c=>{u=c.call({lexer:this},a),typeof u=="number"&&u>=0&&(l=Math.min(l,u))}),l<1/0&&l>=0&&(o=t.substring(0,l+1))}if(this.state.top&&(s=this.tokenizer.paragraph(o))){r=n[n.length-1],i&&r.type==="paragraph"?(r.raw+=`
|
|
`+s.raw,r.text+=`
|
|
`+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):n.push(s),i=o.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length),r=n[n.length-1],r&&r.type==="text"?(r.raw+=`
|
|
`+s.raw,r.text+=`
|
|
`+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):n.push(s);continue}if(t){const l="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let s,r,o,i=t,l,a,u;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)c.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,l.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(a||(u=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(s=c.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))){if(s=this.tokenizer.escape(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.tag(t)){t=t.substring(s.raw.length),r=n[n.length-1],r&&s.type==="text"&&r.type==="text"?(r.raw+=s.raw,r.text+=s.text):n.push(s);continue}if(s=this.tokenizer.link(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(s.raw.length),r=n[n.length-1],r&&s.type==="text"&&r.type==="text"?(r.raw+=s.raw,r.text+=s.text):n.push(s);continue}if(s=this.tokenizer.emStrong(t,i,u)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.codespan(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.br(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.del(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.autolink(t)){t=t.substring(s.raw.length),n.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(t))){t=t.substring(s.raw.length),n.push(s);continue}if(o=t,this.options.extensions&&this.options.extensions.startInline){let c=1/0;const f=t.slice(1);let h;this.options.extensions.startInline.forEach(p=>{h=p.call({lexer:this},f),typeof h=="number"&&h>=0&&(c=Math.min(c,h))}),c<1/0&&c>=0&&(o=t.substring(0,c+1))}if(s=this.tokenizer.inlineText(o)){t=t.substring(s.raw.length),s.raw.slice(-1)!=="_"&&(u=s.raw.slice(-1)),a=!0,r=n[n.length-1],r&&r.type==="text"?(r.raw+=s.raw,r.text+=s.text):n.push(s);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return n}}class _s{constructor(t){ce(this,"options");this.options=t||Qt}code(t,n,s){var o;const r=(o=(n||"").match(/^\S*/))==null?void 0:o[0];return t=t.replace(/\n$/,"")+`
|
|
`,r?'<pre><code class="language-'+Qe(r)+'">'+(s?t:Qe(t,!0))+`</code></pre>
|
|
`:"<pre><code>"+(s?t:Qe(t,!0))+`</code></pre>
|
|
`}blockquote(t){return`<blockquote>
|
|
${t}</blockquote>
|
|
`}html(t,n){return t}heading(t,n,s){return`<h${n}>${t}</h${n}>
|
|
`}hr(){return`<hr>
|
|
`}list(t,n,s){const r=n?"ol":"ul",o=n&&s!==1?' start="'+s+'"':"";return"<"+r+o+`>
|
|
`+t+"</"+r+`>
|
|
`}listitem(t,n,s){return`<li>${t}</li>
|
|
`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(t){return`<p>${t}</p>
|
|
`}table(t,n){return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
<thead>
|
|
`+t+`</thead>
|
|
`+n+`</table>
|
|
`}tablerow(t){return`<tr>
|
|
${t}</tr>
|
|
`}tablecell(t,n){const s=n.header?"th":"td";return(n.align?`<${s} align="${n.align}">`:`<${s}>`)+t+`</${s}>
|
|
`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,n,s){const r=Pi(t);if(r===null)return s;t=r;let o='<a href="'+t+'"';return n&&(o+=' title="'+n+'"'),o+=">"+s+"</a>",o}image(t,n,s){const r=Pi(t);if(r===null)return s;t=r;let o=`<img src="${t}" alt="${s}"`;return n&&(o+=` title="${n}"`),o+=">",o}text(t){return t}}class po{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,n,s){return""+s}image(t,n,s){return""+s}br(){return""}}class xt{constructor(t){ce(this,"options");ce(this,"renderer");ce(this,"textRenderer");this.options=t||Qt,this.options.renderer=this.options.renderer||new _s,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new po}static parse(t,n){return new xt(n).parse(t)}static parseInline(t,n){return new xt(n).parseInline(t)}parse(t,n=!0){let s="";for(let r=0;r<t.length;r++){const o=t[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]){const i=o,l=this.options.extensions.renderers[i.type].call({parser:this},i);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(i.type)){s+=l||"";continue}}switch(o.type){case"space":continue;case"hr":{s+=this.renderer.hr();continue}case"heading":{const i=o;s+=this.renderer.heading(this.parseInline(i.tokens),i.depth,tg(this.parseInline(i.tokens,this.textRenderer)));continue}case"code":{const i=o;s+=this.renderer.code(i.text,i.lang,!!i.escaped);continue}case"table":{const i=o;let l="",a="";for(let c=0;c<i.header.length;c++)a+=this.renderer.tablecell(this.parseInline(i.header[c].tokens),{header:!0,align:i.align[c]});l+=this.renderer.tablerow(a);let u="";for(let c=0;c<i.rows.length;c++){const f=i.rows[c];a="";for(let h=0;h<f.length;h++)a+=this.renderer.tablecell(this.parseInline(f[h].tokens),{header:!1,align:i.align[h]});u+=this.renderer.tablerow(a)}s+=this.renderer.table(l,u);continue}case"blockquote":{const i=o,l=this.parse(i.tokens);s+=this.renderer.blockquote(l);continue}case"list":{const i=o,l=i.ordered,a=i.start,u=i.loose;let c="";for(let f=0;f<i.items.length;f++){const h=i.items[f],p=h.checked,x=h.task;let y="";if(h.task){const w=this.renderer.checkbox(!!p);u?h.tokens.length>0&&h.tokens[0].type==="paragraph"?(h.tokens[0].text=w+" "+h.tokens[0].text,h.tokens[0].tokens&&h.tokens[0].tokens.length>0&&h.tokens[0].tokens[0].type==="text"&&(h.tokens[0].tokens[0].text=w+" "+h.tokens[0].tokens[0].text)):h.tokens.unshift({type:"text",text:w+" "}):y+=w+" "}y+=this.parse(h.tokens,u),c+=this.renderer.listitem(y,x,!!p)}s+=this.renderer.list(c,l,a);continue}case"html":{const i=o;s+=this.renderer.html(i.text,i.block);continue}case"paragraph":{const i=o;s+=this.renderer.paragraph(this.parseInline(i.tokens));continue}case"text":{let i=o,l=i.tokens?this.parseInline(i.tokens):i.text;for(;r+1<t.length&&t[r+1].type==="text";)i=t[++r],l+=`
|
|
`+(i.tokens?this.parseInline(i.tokens):i.text);s+=n?this.renderer.paragraph(l):l;continue}default:{const i='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return s}parseInline(t,n){n=n||this.renderer;let s="";for(let r=0;r<t.length;r++){const o=t[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]){const i=this.options.extensions.renderers[o.type].call({parser:this},o);if(i!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){s+=i||"";continue}}switch(o.type){case"escape":{const i=o;s+=n.text(i.text);break}case"html":{const i=o;s+=n.html(i.text);break}case"link":{const i=o;s+=n.link(i.href,i.title,this.parseInline(i.tokens,n));break}case"image":{const i=o;s+=n.image(i.href,i.title,i.text);break}case"strong":{const i=o;s+=n.strong(this.parseInline(i.tokens,n));break}case"em":{const i=o;s+=n.em(this.parseInline(i.tokens,n));break}case"codespan":{const i=o;s+=n.codespan(i.text);break}case"br":{s+=n.br();break}case"del":{const i=o;s+=n.del(this.parseInline(i.tokens,n));break}case"text":{const i=o;s+=n.text(i.text);break}default:{const i='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return s}}class Pn{constructor(t){ce(this,"options");this.options=t||Qt}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}ce(Pn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var Gt,Pr,Ma;class Pg{constructor(...t){yo(this,Gt);ce(this,"defaults",lo());ce(this,"options",this.setOptions);ce(this,"parse",Jn(this,Gt,Pr).call(this,bt.lex,xt.parse));ce(this,"parseInline",Jn(this,Gt,Pr).call(this,bt.lexInline,xt.parseInline));ce(this,"Parser",xt);ce(this,"Renderer",_s);ce(this,"TextRenderer",po);ce(this,"Lexer",bt);ce(this,"Tokenizer",ws);ce(this,"Hooks",Pn);this.use(...t)}walkTokens(t,n){var r,o;let s=[];for(const i of t)switch(s=s.concat(n.call(this,i)),i.type){case"table":{const l=i;for(const a of l.header)s=s.concat(this.walkTokens(a.tokens,n));for(const a of l.rows)for(const u of a)s=s.concat(this.walkTokens(u.tokens,n));break}case"list":{const l=i;s=s.concat(this.walkTokens(l.items,n));break}default:{const l=i;(o=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&o[l.type]?this.defaults.extensions.childTokens[l.type].forEach(a=>{const u=l[a].flat(1/0);s=s.concat(this.walkTokens(u,n))}):l.tokens&&(s=s.concat(this.walkTokens(l.tokens,n)))}}return s}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(s=>{const r={...s};if(r.async=this.defaults.async||r.async||!1,s.extensions&&(s.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){const i=n.renderers[o.name];i?n.renderers[o.name]=function(...l){let a=o.renderer.apply(this,l);return a===!1&&(a=i.apply(this,l)),a}:n.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const i=n[o.level];i?i.unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&(o.level==="block"?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:o.level==="inline"&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(n.childTokens[o.name]=o.childTokens)}),r.extensions=n),s.renderer){const o=this.defaults.renderer||new _s(this.defaults);for(const i in s.renderer){if(!(i in o))throw new Error(`renderer '${i}' does not exist`);if(i==="options")continue;const l=i,a=s.renderer[l],u=o[l];o[l]=(...c)=>{let f=a.apply(o,c);return f===!1&&(f=u.apply(o,c)),f||""}}r.renderer=o}if(s.tokenizer){const o=this.defaults.tokenizer||new ws(this.defaults);for(const i in s.tokenizer){if(!(i in o))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;const l=i,a=s.tokenizer[l],u=o[l];o[l]=(...c)=>{let f=a.apply(o,c);return f===!1&&(f=u.apply(o,c)),f}}r.tokenizer=o}if(s.hooks){const o=this.defaults.hooks||new Pn;for(const i in s.hooks){if(!(i in o))throw new Error(`hook '${i}' does not exist`);if(i==="options")continue;const l=i,a=s.hooks[l],u=o[l];Pn.passThroughHooks.has(i)?o[l]=c=>{if(this.defaults.async)return Promise.resolve(a.call(o,c)).then(h=>u.call(o,h));const f=a.call(o,c);return u.call(o,f)}:o[l]=(...c)=>{let f=a.apply(o,c);return f===!1&&(f=u.apply(o,c)),f}}r.hooks=o}if(s.walkTokens){const o=this.defaults.walkTokens,i=s.walkTokens;r.walkTokens=function(l){let a=[];return a.push(i.call(this,l)),o&&(a=a.concat(o.call(this,l))),a}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return bt.lex(t,n??this.defaults)}parser(t,n){return xt.parse(t,n??this.defaults)}}Gt=new WeakSet,Pr=function(t,n){return(s,r)=>{const o={...r},i={...this.defaults,...o};this.defaults.async===!0&&o.async===!1&&(i.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),i.async=!0);const l=Jn(this,Gt,Ma).call(this,!!i.silent,!!i.async);if(typeof s>"u"||s===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof s!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(s)+", string expected"));if(i.hooks&&(i.hooks.options=i),i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(s):s).then(a=>t(a,i)).then(a=>i.hooks?i.hooks.processAllTokens(a):a).then(a=>i.walkTokens?Promise.all(this.walkTokens(a,i.walkTokens)).then(()=>a):a).then(a=>n(a,i)).then(a=>i.hooks?i.hooks.postprocess(a):a).catch(l);try{i.hooks&&(s=i.hooks.preprocess(s));let a=t(s,i);i.hooks&&(a=i.hooks.processAllTokens(a)),i.walkTokens&&this.walkTokens(a,i.walkTokens);let u=n(a,i);return i.hooks&&(u=i.hooks.postprocess(u)),u}catch(a){return l(a)}}},Ma=function(t,n){return s=>{if(s.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,t){const r="<p>An error occurred:</p><pre>"+Qe(s.message+"",!0)+"</pre>";return n?Promise.resolve(r):r}if(n)return Promise.reject(s);throw s}};const Wt=new Pg;function ne(e,t){return Wt.parse(e,t)}ne.options=ne.setOptions=function(e){return Wt.setOptions(e),ne.defaults=Wt.defaults,Ta(ne.defaults),ne};ne.getDefaults=lo;ne.defaults=Qt;ne.use=function(...e){return Wt.use(...e),ne.defaults=Wt.defaults,Ta(ne.defaults),ne};ne.walkTokens=function(e,t){return Wt.walkTokens(e,t)};ne.parseInline=Wt.parseInline;ne.Parser=xt;ne.parser=xt.parse;ne.Renderer=_s;ne.TextRenderer=po;ne.Lexer=bt;ne.lexer=bt.lex;ne.Tokenizer=ws;ne.Hooks=Pn;ne.parse=ne;ne.options;ne.setOptions;ne.use;ne.walkTokens;ne.parseInline;xt.parse;bt.lex;const Ng={class:"h-full flex flex-col"},Ig={key:0,class:"glass border-b border-orange-200/50 px-6 py-4 shadow-sm"},Dg={class:"flex items-center justify-between"},Lg={class:"flex items-center space-x-4"},Bg={class:"font-semibold text-slate-800 text-lg"},$g={class:"mt-1 flex items-center space-x-3 text-sm"},Mg={class:"px-2.5 py-1 bg-orange-100 text-orange-600 rounded-full font-medium"},jg={class:"text-slate-500"},Fg={class:"text-slate-500"},Ug={class:"flex-1 overflow-auto p-6 bg-slate-50/50"},Hg={key:0,class:"bg-white rounded-2xl shadow-xl overflow-hidden border border-orange-200/30 flex flex-col",style:{"min-height":"500px"}},zg=["srcdoc"],Vg={key:1,class:"bg-white rounded-2xl shadow-xl p-8 border border-orange-200/30 prose max-w-none prose-orange flex-1 overflow-auto",style:{"min-height":"500px"}},qg=["innerHTML"],Kg={key:2,class:"bg-white rounded-2xl shadow-xl overflow-hidden h-full flex flex-col border border-orange-200/30"},Wg=["src"],Gg={key:1,class:"flex items-center justify-center h-full"},Jg={key:3,class:"flex items-center justify-center h-full"},Qg={__name:"FilePreview",props:{report:{type:Object,default:null},content:{type:String,default:""}},setup(e){const t=e,n=He(null),s=He(null),{fetchReportBytes:r,fetchReportPdf:o}=io(),i={html:"HTML",md:"Markdown",pptx:"PowerPoint"},l={html:"bg-orange-500",md:"bg-orange-400",pptx:"bg-orange-500"},a=me(()=>{var p,x;return i[c.value]||((x=(p=t.report)==null?void 0:p.fileType)==null?void 0:x.toUpperCase())||""}),u=me(()=>l[c.value]||l.html),c=me(()=>{var p;return(((p=t.report)==null?void 0:p.fileType)||"").toLowerCase()}),f=me(()=>t.content?ne(t.content):"");on(()=>t.report,async p=>{if(s.value=null,c.value==="pptx")try{const x=await o(p.id);x&&(s.value=URL.createObjectURL(x))}catch(x){console.error("Failed to load PDF preview:",x)}},{immediate:!0}),Is(()=>{s.value&&URL.revokeObjectURL(s.value)});const h=async()=>{if(!t.report)return;const p=c.value;if(p==="pptx"||p==="html"||p==="md"){try{const x=await r(t.report.id);if(x){const y=new Blob([x],{type:"application/octet-stream"}),w=URL.createObjectURL(y),k=document.createElement("a");k.href=w,k.download=t.report.fileName,k.click(),URL.revokeObjectURL(w)}else alert("文件不存在或无法读取")}catch(x){console.error("Download failed:",x),alert("下载失败")}return}};return(p,x)=>(G(),Z("div",Ng,[e.report?(G(),Z("div",Ig,[_("div",Dg,[_("div",Lg,[_("div",{class:De([u.value,"w-12 h-12 rounded-xl flex items-center justify-center shadow-lg"])},[...x[0]||(x[0]=[_("svg",{class:"w-6 h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"})],-1)])],2),_("div",null,[_("h3",Bg,Ee(e.report.fileName),1),_("div",$g,[_("span",Mg,Ee(a.value),1),_("span",jg,Ee(e.report.reportDate),1),x[1]||(x[1]=_("span",{class:"text-slate-400"},"·",-1)),_("span",Fg,Ee(e.report.size),1)])])]),_("button",{onClick:h,class:"group px-5 py-2.5 bg-orange-500 text-white rounded-xl hover:bg-orange-600 transition-all shadow-lg shadow-orange-500/30 flex items-center space-x-2 hover:shadow-xl"},[...x[2]||(x[2]=[_("svg",{class:"w-5 h-5 group-hover:translate-y-0.5 transition-transform",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1),_("span",{class:"font-medium"},"下载",-1)])])])])):Bn("",!0),_("div",Ug,[c.value==="html"?(G(),Z("div",Hg,[_("iframe",{ref_key:"iframeRef",ref:n,srcdoc:e.content,class:"w-full flex-1",sandbox:"allow-same-origin"},null,8,zg)])):c.value==="md"?(G(),Z("div",Vg,[_("div",{innerHTML:f.value},null,8,qg)])):c.value==="pptx"?(G(),Z("div",Kg,[s.value?(G(),Z("iframe",{key:0,src:s.value,class:"w-full flex-1",type:"application/pdf"},null,8,Wg)):(G(),Z("div",Gg,[...x[3]||(x[3]=[ms('<div class="text-center"><div class="w-16 h-16 mx-auto bg-gradient-to-br from-orange-400 to-orange-600 rounded-2xl flex items-center justify-center mb-4 shadow-lg"><svg class="w-8 h-8 text-white animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"></path></svg></div><p class="text-slate-500 font-medium">正在加载预览...</p></div>',1)])]))])):(G(),Z("div",Jg,[...x[4]||(x[4]=[ms('<div class="text-center"><div class="w-24 h-24 glass rounded-2xl flex items-center justify-center mx-auto mb-6"><svg class="w-12 h-12 text-slate-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg></div><p class="text-slate-500 text-lg">选择一份报告以预览</p></div>',1)])]))])]))}},Zg={class:"min-h-screen bg-gradient-to-br from-orange-100 via-orange-200 to-amber-100"},Xg={class:"relative z-10 flex h-screen overflow-hidden"},Yg={class:"bg-white/80 backdrop-blur-xl border-b border-orange-200/50 p-6"},em={class:"text-2xl font-bold text-slate-800 group-hover:text-orange-600 transition-colors"},tm={key:1,class:"flex flex-col space-y-4 p-4 bg-white/50 rounded-xl"},nm={class:"flex flex-col space-y-2"},sm={key:0,class:"mt-2"},rm=["src"],om={class:"flex-1 overflow-y-auto p-4 space-y-3"},im={key:0,class:"flex items-center justify-center py-12"},lm={key:1,class:"text-center py-12"},am={__name:"ProjectDetail",setup(e){const t=Rd(),{loading:n,fetchProjects:s,fetchReports:r,fetchReportContent:o,updateProject:i}=io(),l=He([]),a=He([]),u=He(null),c=He(""),f=He(!1),h=He(""),p=He(null),x=He(""),y=me(()=>{const K=t.params.id,B=l.value.find(he=>he.id==K);return(B==null?void 0:B.name)||`项目 ${K}`}),w=async()=>{const K=t.params.id;l.value=await s();const B=l.value.find(he=>he.id==K);B&&(h.value=B.name,x.value=B.coverImage||""),a.value=await r(K)},k=async K=>{u.value=K;const B=await o(K.id);B&&(c.value=B.content)},A=()=>{const K=t.params.id,B=l.value.find(he=>he.id==K);B&&(h.value=B.name,x.value=B.coverImage||""),p.value=null,f.value=!0},P=K=>{const B=K.target.files[0];B&&(p.value=B,x.value=URL.createObjectURL(B))},C=()=>{f.value=!1,p.value=null},H=async()=>{const K=t.params.id;try{const B=new FormData;B.append("name",h.value),p.value&&B.append("coverImage",p.value),await i(K,B),await w(),f.value=!1}catch(B){console.error("Failed to update project:",B),alert("更新失败")}};return on(()=>t.params.id,w),Kr(w),(K,B)=>{const he=vl("router-link");return G(),Z("div",Zg,[_("main",Xg,[_("div",{class:De(["w-full md:w-[400px] flex-1 flex flex-col glass-light border-r border-orange-200/50 shadow-2xl overflow-y-auto",{"hidden md:flex":u.value}])},[_("div",Yg,[Se(he,{to:"/",class:"inline-flex items-center space-x-2 text-orange-500 hover:text-orange-600 transition-colors mb-4 group"},{default:hl(()=>[...B[2]||(B[2]=[_("svg",{class:"w-5 h-5 group-hover:-translate-x-1 transition-transform",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1),_("span",null,"返回项目列表",-1)])]),_:1}),f.value?(G(),Z("div",tm,[Pc(_("input",{"onUpdate:modelValue":B[0]||(B[0]=ve=>h.value=ve),class:"w-full px-4 py-3 bg-white rounded-xl border border-orange-200 focus:ring-2 focus:ring-orange-500 focus:border-orange-500 shadow-sm",placeholder:"项目名称"},null,512),[[of,h.value]]),_("div",nm,[B[4]||(B[4]=_("label",{class:"text-sm text-slate-600 font-medium"},"封面图片",-1)),_("input",{type:"file",accept:"image/*",onChange:P,class:"w-full text-sm text-slate-500 file:mr-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-sm file:font-semibold file:bg-orange-50 file:text-orange-600 hover:file:bg-orange-100"},null,32),x.value?(G(),Z("div",sm,[_("img",{src:x.value,class:"w-full h-32 object-cover rounded-xl shadow-md",alt:"Preview"},null,8,rm)])):Bn("",!0)]),_("div",{class:"flex space-x-3"},[_("button",{onClick:H,style:{color:"#1e293b","font-weight":"600"},class:"flex-1 px-4 py-2.5 bg-gradient-to-r from-orange-500 to-orange-600 rounded-xl hover:from-orange-600 hover:to-orange-700 transition-all shadow-lg shadow-orange-500/30"}," 保存 "),_("button",{onClick:C,class:"px-4 py-2.5 bg-slate-100 text-slate-600 rounded-xl hover:bg-slate-200 transition-colors"}," 取消 ")])])):(G(),Z("div",{key:0,onClick:A,class:"cursor-pointer hover:bg-orange-50 -mx-2 px-2 py-2 rounded-xl transition-colors group"},[_("h2",em,Ee(y.value),1),B[3]||(B[3]=_("p",{class:"text-sm text-slate-500 mt-1"},"点击编辑项目",-1))]))]),_("div",om,[wt(n)?(G(),Z("div",im,[...B[5]||(B[5]=[_("div",{class:"w-12 h-12 border-4 border-orange-200 border-t-orange-500 rounded-full animate-spin"},null,-1)])])):a.value.length===0?(G(),Z("div",lm,[...B[6]||(B[6]=[_("div",{class:"w-16 h-16 glass rounded-full flex items-center justify-center mx-auto mb-4"},[_("svg",{class:"w-8 h-8 text-orange-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})])],-1),_("p",{class:"text-slate-500"},"暂无报告",-1)])])):(G(!0),Z(nt,{key:2},kl(a.value,ve=>{var pe;return G(),Jr(Qp,{key:ve.id,report:ve,"is-selected":((pe=u.value)==null?void 0:pe.id)===ve.id,onSelect:k},null,8,["report","is-selected"])}),128))])],2),_("div",{class:De(["flex-1 flex flex-col bg-white/50",{"hidden md:flex":!u.value}])},[u.value?(G(),Z("button",{key:0,onClick:B[1]||(B[1]=ve=>u.value=null),class:"md:hidden flex items-center space-x-2 px-4 py-3 text-orange-500 hover:text-orange-600 border-b border-orange-200/50"},[...B[7]||(B[7]=[_("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[_("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1),_("span",null,"返回列表",-1)])])):Bn("",!0),Se(Qg,{report:u.value,content:c.value},null,8,["report","content"])],2)])])}}},cm=[{path:"/",name:"home",component:Vp},{path:"/project/:id",name:"project",component:am,props:!0}],um=vd({history:Yf(),routes:cm}),ja=cf(gf);ja.use(um);ja.mount("#app");
|