(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const n of r)if(n.type==="childList")for(const o of n.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function s(r){const n={};return r.integrity&&(n.integrity=r.integrity),r.referrerPolicy&&(n.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?n.credentials="include":r.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function i(r){if(r.ep)return;r.ep=!0;const n=s(r);fetch(r.href,n)}})();function lr(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const he={},Ot=[],ft=()=>{},In=()=>!1,hi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),xi=e=>e.startsWith("onUpdate:"),Ae=Object.assign,ar=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},bl=Object.prototype.hasOwnProperty,le=(e,t)=>bl.call(e,t),J=Array.isArray,Tt=e=>Rs(e)==="[object Map]",Xt=e=>Rs(e)==="[object Set]",zr=e=>Rs(e)==="[object Date]",Y=e=>typeof e=="function",me=e=>typeof e=="string",pt=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",Dn=e=>(pe(e)||Y(e))&&Y(e.then)&&Y(e.catch),Ln=Object.prototype.toString,Rs=e=>Ln.call(e),_l=e=>Rs(e).slice(8,-1),Mn=e=>Rs(e)==="[object Object]",cr=e=>me(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,vs=lr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),gi=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},yl=/-\w/g,De=gi(e=>e.replace(yl,t=>t.slice(1).toUpperCase())),kl=/\B([A-Z])/g,Kt=gi(e=>e.replace(kl,"-$1").toLowerCase()),wi=gi(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ti=gi(e=>e?`on${wi(e)}`:""),at=(e,t)=>!Object.is(e,t),Gs=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},On=(e,t,s,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:s})},fr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Nr;const vi=()=>Nr||(Nr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ve(e){if(J(e)){const t={};for(let s=0;s<e.length;s++){const i=e[s],r=me(i)?Sl(i):ve(i);if(r)for(const n in r)t[n]=r[n]}return t}else if(me(e)||pe(e))return e}const Al=/;(?![^(]*\))/g,Fl=/:([^]+)/,$l=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function Sl(e){const t={};return e.replace($l,s=>s.startsWith("/*")?"":s).split(Al).forEach(s=>{if(s){const i=s.split(Fl);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function ne(e){let t="";if(me(e))t=e;else if(J(e))for(let s=0;s<e.length;s++){const i=ne(e[s]);i&&(t+=i+" ")}else if(pe(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const El="itemscope,allowfullscreen,disablepictureinpicture,disableremoteplayback,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly",Tl=lr(El);function zn(e){return!!e||e===""}function Cl(e,t,s){if(e.length!==t.length)return!1;let i=!0;for(let r=0;i&&r<e.length;r++)i=ss(e[r],t[r],s);return i}function qr(e,t,s){if(e.size!==t.size)return!1;const i=Array.from(t),r=new Uint8Array(i.length);for(const n of e){let o=-1;for(let l=0;l<i.length;l++)if(!r[l]&&ss(n,i[l],s)){o=l;break}if(o<0)return!1;r[o]=1}return!0}function Bl(e,t,s){let i=Tt(e),r=Tt(t);if(i||r||(i=Xt(e),r=Xt(t),i||r))return i&&r?qr(e,t,s):!1;const n=Object.keys(e).length,o=Object.keys(t).length;if(n!==o)return!1;for(const l in e){const a=e.hasOwnProperty(l),p=t.hasOwnProperty(l);if(a&&!p||!a&&p||!ss(e[l],t[l],s))return!1}return String(e)===String(t)}function Ur(e,t,s,i){s||(s=[new Map,new Map]);const[r,n]=s;if(r.has(e)||n.has(t))return r.get(e)===t&&n.get(t)===e;r.set(e,t),n.set(t,e);const o=i(e,t,s);return r.delete(e),n.delete(t),o}function ss(e,t,s){if(e===t)return!0;let i=zr(e),r=zr(t);return i||r?i&&r?e.getTime()===t.getTime():!1:(i=pt(e),r=pt(t),i||r?e===t:(i=J(e),r=J(t),i||r?i&&r?Ur(e,t,s,Cl):!1:(i=pe(e),r=pe(t),i||r?!i||!r?!1:Ur(e,t,s,Bl):String(e)===String(t))))}function Nn(e,t){return e.findIndex(s=>ss(s,t))}const qn=e=>!!(e&&e.__v_isRef===!0),A=e=>me(e)?e:e==null?"":J(e)||pe(e)&&(e.toString===Ln||!Y(e.toString))?qn(e)?A(e.value):JSON.stringify(e,Un,2):String(e),Un=(e,t)=>qn(t)?Un(e,t.value):Tt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[i,r],n)=>(s[Ci(i,n)+" =>"]=r,s),{})}:Xt(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Ci(s))}:pt(t)?Ci(t):pe(t)&&!J(t)&&!Mn(t)?String(t):t,Ci=(e,t="")=>{var s;return pt(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let Se;class jl{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&&Se&&(Se.active?(this.parent=Se,this.index=(Se.scopes||(Se.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes){const i=this.scopes.slice();for(t=0,s=i.length;t<s;t++)i[t].pause()}for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes){const r=this.scopes.slice();for(t=0,s=r.length;t<s;t++)r[t].resume()}const i=this.effects.slice();for(t=0,s=i.length;t<s;t++)i[t].resume()}}run(t){if(this._active){const s=Se;try{return Se=this,t()}finally{Se=s}}}on(){++this._on===1&&(this.prevScope=Se,Se=this)}off(){if(this._on>0&&--this._on===0){if(Se===this)Se=this.prevScope;else{let t=Se;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 s,i;for(s=0,i=this.effects.length;s<i;s++)this.effects[s].stop();for(this.effects.length=0,s=0,i=this.cleanups.length;s<i;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){const r=this.scopes.slice();for(s=0,i=r.length;s<i;s++)r[s].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 Rl(){return Se}let we;const Bi=new WeakSet;class Hn{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,Se&&(Se.active?Se.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Bi.has(this)&&(Bi.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Kn(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Hr(this),Wn(this);const t=we,s=Ge;we=this,Ge=!0;try{return this.fn()}finally{Qn(this),we=t,Ge=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)dr(t);this.deps=this.depsTail=void 0,Hr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Bi.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ui(this)&&this.run()}get dirty(){return Ui(this)}}let Vn=0,ms,bs;function Kn(e,t=!1){if(e.flags|=8,t){e.next=bs,bs=e;return}e.next=ms,ms=e}function pr(){Vn++}function ur(){if(--Vn>0)return;if(bs){let t=bs;for(bs=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;ms;){let t=ms;for(ms=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=s}}if(e)throw e}function Wn(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Qn(e){let t,s=e.depsTail,i=s;for(;i;){const r=i.prevDep;i.version===-1?(i===s&&(s=r),dr(i),Pl(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=r}e.deps=t,e.depsTail=s}function Ui(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Zn(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Zn(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===$s)||(e.globalVersion=$s,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ui(e))))return;e.flags|=2;const t=e.dep,s=we,i=Ge;we=e,Ge=!0;try{Wn(e);const r=e.fn(e._value);(t.version===0||at(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{we=s,Ge=i,Qn(e),e.flags&=-3}}function dr(e,t=!1){const{dep:s,prevSub:i,nextSub:r}=e;if(i&&(i.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=i,e.nextSub=void 0),s.subs===e&&(s.subs=i,!i&&s.computed)){s.computed.flags&=-5;for(let n=s.computed.deps;n;n=n.nextDep)dr(n,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Pl(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Ge=!0;const Gn=[];function ut(){Gn.push(Ge),Ge=!1}function dt(){const e=Gn.pop();Ge=e===void 0?!0:e}function Hr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=we;we=void 0;try{t()}finally{we=s}}}let $s=0;class Il{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class hr{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(!we||!Ge||we===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==we)s=this.activeLink=new Il(we,this),we.deps?(s.prevDep=we.depsTail,we.depsTail.nextDep=s,we.depsTail=s):we.deps=we.depsTail=s,Jn(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const i=s.nextDep;i.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=i),s.prevDep=we.depsTail,s.nextDep=void 0,we.depsTail.nextDep=s,we.depsTail=s,we.deps===s&&(we.deps=i)}return s}trigger(t){this.version++,$s++,this.notify(t)}notify(t){pr();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{ur()}}}function Jn(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)Jn(i)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Hi=new WeakMap,qt=Symbol(""),Vi=Symbol(""),Ss=Symbol("");function Te(e,t,s){if(Ge&&we){let i=Hi.get(e);i||Hi.set(e,i=new Map);let r=i.get(s);r||(i.set(s,r=new hr),r.map=i,r.key=s),r.track()}}function yt(e,t,s,i,r,n){const o=Hi.get(e);if(!o){$s++;return}const l=a=>{a&&a.trigger()};if(pr(),t==="clear")o.forEach(l);else{const a=J(e),p=a&&cr(s);if(a&&s==="length"){const f=Number(i);o.forEach((h,x)=>{(x==="length"||x===Ss||!pt(x)&&x>=f)&&l(h)})}else switch((s!==void 0||o.has(void 0))&&l(o.get(s)),p&&l(o.get(Ss)),t){case"add":a?p&&l(o.get("length")):(l(o.get(qt)),Tt(e)&&l(o.get(Vi)));break;case"delete":a||(l(o.get(qt)),Tt(e)&&l(o.get(Vi)));break;case"set":Tt(e)&&l(o.get(qt));break}}ur()}function Qt(e){const t=ae(e);return t===e||(Te(t,"iterate",Ss),He(e))?t:ht(e)?Ct(e)?t.map(s=>Bt(Ve(s))):t.map(Bt):t.map(Ve)}function mi(e){return Te(e=ae(e),"iterate",Ss),e}function nt(e,t){return ht(e)?Bt(Ct(e)?Ve(t):t):Ve(t)}const Dl={__proto__:null,[Symbol.iterator](){return ji(this,Symbol.iterator,e=>nt(this,e))},concat(...e){return Qt(this).concat(...e.map(t=>J(t)?Qt(t):t))},entries(){return ji(this,"entries",e=>(e[1]=nt(this,e[1]),e))},every(e,t){return vt(this,"every",e,t,void 0,arguments)},filter(e,t){return vt(this,"filter",e,t,s=>s.map(i=>nt(this,i)),arguments)},find(e,t){return vt(this,"find",e,t,s=>nt(this,s),arguments)},findIndex(e,t){return vt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return vt(this,"findLast",e,t,s=>nt(this,s),arguments)},findLastIndex(e,t){return vt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return vt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ri(this,"includes",e)},indexOf(...e){return Ri(this,"indexOf",e)},join(e){return Qt(this).join(e)},lastIndexOf(...e){return Ri(this,"lastIndexOf",e)},map(e,t){return vt(this,"map",e,t,void 0,arguments)},pop(){return os(this,"pop")},push(...e){return os(this,"push",e)},reduce(e,...t){return Kr(this,"reduce",e,t)},reduceRight(e,...t){return Kr(this,"reduceRight",e,t)},shift(){return os(this,"shift")},some(e,t){return vt(this,"some",e,t,void 0,arguments)},splice(...e){return os(this,"splice",e)},toReversed(){return Qt(this).toReversed()},toSorted(e){return Qt(this).toSorted(e)},toSpliced(...e){return Qt(this).toSpliced(...e)},unshift(...e){return os(this,"unshift",e)},values(){return ji(this,"values",e=>nt(this,e))}};function ji(e,t,s){const i=mi(e),r=i[t],n=r.call(i);if(i!==e&&!He(e)){if(n[Symbol.toStringTag]==="Array Iterator"){const o=Object.create(Object.getPrototypeOf(n));return o.next=()=>Vr(n.next(),s),r!==Xn[t]&&Object.defineProperties(o,{return:{get(){const l=n.return;return typeof l=="function"?l.bind(n):l}},throw:{get(){const l=n.throw;return typeof l=="function"?l.bind(n):l}}}),o}n._next=n.next,n.next=()=>Vr(n._next(),s)}return n}function Vr(e,t){return e.done||(e.value=t(e.value)),e}const Xn=Array.prototype;function vt(e,t,s,i,r,n){const o=mi(e),l=o!==e&&!He(e),a=o[t];if(a!==Xn[t]){const h=a.apply(e,n);return l?Ve(h):h}let p=s;o!==e&&(l?p=function(h,x){return s.call(this,nt(e,h),x,e)}:s.length>2&&(p=function(h,x){return s.call(this,h,x,e)}));const f=a.call(o,p,i);return l&&r?r(f):f}function Kr(e,t,s,i){const r=mi(e),n=r!==e&&!He(e);let o=s,l=!1;r!==e&&(n?(l=i.length===0,o=function(p,f,h){return l&&(l=!1,p=nt(e,p)),s.call(this,p,nt(e,f),h,e)}):s.length>3&&(o=function(p,f,h){return s.call(this,p,f,h,e)}));const a=r[t](o,...i);return l?nt(e,a):a}function Ri(e,t,s){const i=ae(e);Te(i,"iterate",Ss);const r=i[t](...s);return(r===-1||r===!1)&&wr(s[0])?(s[0]=ae(s[0]),i[t](...s)):r}function os(e,t,s=[]){ut(),pr();const i=ae(e)[t].apply(e,s);return ur(),dt(),i}const Ll=lr("__proto__,__v_isRef,__isVue"),Yn=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(pt));function Ml(e){pt(e)||(e=String(e));const t=ae(this);return Te(t,"has",e),t.hasOwnProperty(e)}class eo{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,i){if(s==="__v_skip")return t.__v_skip;const r=this._isReadonly,n=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return n;if(s==="__v_raw")return i===(r?n?Ql:ro:n?io:so).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const o=J(t);if(!r){let a;if(o&&(a=Dl[s]))return a;if(s==="hasOwnProperty")return Ml}const l=Reflect.get(t,s,je(t)?t:i);if((pt(s)?Yn.has(s):Ll(s))||(r||Te(t,"get",s),n))return l;if(je(l)){const a=o&&cr(s)?l:l.value;return r&&pe(a)?Wi(a):a}return pe(l)?r?Wi(l):bi(l):l}}class to extends eo{constructor(t=!1){super(!1,t)}set(t,s,i,r){let n=t[s];const o=J(t)&&cr(s);if(!this._isShallow){const p=ht(n);if(!He(i)&&!ht(i)&&(n=ae(n),i=ae(i)),!o&&je(n)&&!je(i))return p||(n.value=i),!0}const l=o?Number(s)<t.length:le(t,s),a=Reflect.set(t,s,i,je(t)?t:r);return t===ae(r)&&a&&(l?at(i,n)&&yt(t,"set",s,i):yt(t,"add",s,i)),a}deleteProperty(t,s){const i=le(t,s);t[s];const r=Reflect.deleteProperty(t,s);return r&&i&&yt(t,"delete",s,void 0),r}has(t,s){const i=Reflect.has(t,s);return(!pt(s)||!Yn.has(s))&&Te(t,"has",s),i}ownKeys(t){return Te(t,"iterate",J(t)?"length":qt),Reflect.ownKeys(t)}}class Ol extends eo{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const zl=new to,Nl=new Ol,ql=new to(!0);const Ki=e=>e,Ns=e=>Reflect.getPrototypeOf(e);function Ul(e,t,s){return function(...i){const r=this.__v_raw,n=ae(r),o=Tt(n),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,p=r[e](...i),f=s?Ki:t?Bt:Ve;return!t&&Te(n,"iterate",a?Vi:qt),Ae(Object.create(p),{next(){const{value:h,done:x}=p.next();return x?{value:h,done:x}:{value:l?[f(h[0]),f(h[1])]:f(h),done:x}}})}}function qs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Hl(e,t){const s={get(r){const n=this.__v_raw,o=ae(n),l=ae(r);e||(at(r,l)&&Te(o,"get",r),Te(o,"get",l));const{has:a}=Ns(o),p=t?Ki:e?Bt:Ve;if(a.call(o,r))return p(n.get(r));if(a.call(o,l))return p(n.get(l));n!==o&&n.get(r)},get size(){const r=this.__v_raw;return!e&&Te(ae(r),"iterate",qt),r.size},has(r){const n=this.__v_raw,o=ae(n),l=ae(r);return e||(at(r,l)&&Te(o,"has",r),Te(o,"has",l)),r===l?n.has(r):n.has(r)||n.has(l)},forEach(r,n){const o=this,l=o.__v_raw,a=ae(l),p=t?Ki:e?Bt:Ve;return!e&&Te(a,"iterate",qt),l.forEach((f,h)=>r.call(n,p(f),p(h),o))}};return Ae(s,e?{add:qs("add"),set:qs("set"),delete:qs("delete"),clear:qs("clear")}:{add(r){const n=ae(this),o=Ns(n),l=ae(r),a=!t&&!He(r)&&!ht(r)?l:r;return o.has.call(n,a)||at(r,a)&&o.has.call(n,r)||at(l,a)&&o.has.call(n,l)||(n.add(a),yt(n,"add",a,a)),this},set(r,n){!t&&!He(n)&&!ht(n)&&(n=ae(n));const o=ae(this),{has:l,get:a}=Ns(o);let p=l.call(o,r);p||(r=ae(r),p=l.call(o,r));const f=a.call(o,r);return o.set(r,n),p?at(n,f)&&yt(o,"set",r,n):yt(o,"add",r,n),this},delete(r){const n=ae(this),{has:o,get:l}=Ns(n);let a=o.call(n,r);a||(r=ae(r),a=o.call(n,r)),l&&l.call(n,r);const p=n.delete(r);return a&&yt(n,"delete",r,void 0),p},clear(){const r=ae(this),n=r.size!==0,o=r.clear();return n&&yt(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=Ul(r,e,t)}),s}function xr(e,t){const s=Hl(e,t);return(i,r,n)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_isShallow"?t:r==="__v_raw"?i:Reflect.get(le(s,r)&&r in i?s:i,r,n)}const Vl={get:xr(!1,!1)},Kl={get:xr(!1,!0)},Wl={get:xr(!0,!1)};const so=new WeakMap,io=new WeakMap,ro=new WeakMap,Ql=new WeakMap;function Zl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function bi(e){return ht(e)?e:gr(e,!1,zl,Vl,so)}function Gl(e){return gr(e,!1,ql,Kl,io)}function Wi(e){return gr(e,!0,Nl,Wl,ro)}function gr(e,t,s,i,r){if(!pe(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const n=r.get(e);if(n)return n;const o=Zl(_l(e));if(o===0)return e;const l=new Proxy(e,o===2?i:s);return r.set(e,l),l}function Ct(e){return ht(e)?Ct(e.__v_raw):!!(e&&e.__v_isReactive)}function ht(e){return!!(e&&e.__v_isReadonly)}function He(e){return!!(e&&e.__v_isShallow)}function wr(e){return e?!!e.__v_raw:!1}function ae(e){const t=e&&e.__v_raw;return t?ae(t):e}function Jl(e){return!le(e,"__v_skip")&&Object.isExtensible(e)&&On(e,"__v_skip",!0),e}const Ve=e=>pe(e)?bi(e):e,Bt=e=>pe(e)?Wi(e):e;function je(e){return e?e.__v_isRef===!0:!1}function Me(e){return Xl(e,!1)}function Xl(e,t){return je(e)?e:new Yl(e,t)}class Yl{constructor(t,s){this.dep=new hr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:ae(t),this._value=s?t:Ve(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,i=this.__v_isShallow||He(t)||ht(t);t=i?t:ae(t),at(t,s)&&(this._rawValue=t,this._value=i?t:Ve(t),this.dep.trigger())}}function ct(e){return je(e)?e.value:e}const ea={get:(e,t,s)=>t==="__v_raw"?e:ct(Reflect.get(e,t,s)),set:(e,t,s,i)=>{const r=e[t];return je(r)&&!je(s)?(r.value=s,!0):Reflect.set(e,t,s,i)}};function no(e){return Ct(e)?e:new Proxy(e,ea)}class ta{constructor(t,s,i){this.fn=t,this.setter=s,this._value=void 0,this.dep=new hr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=$s-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&we!==this)return Kn(this,!0),!0}get value(){const t=this.dep.track();return Zn(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function sa(e,t,s=!1){let i,r;return Y(e)?i=e:(i=e.get,r=e.set),new ta(i,r,s)}const Us={},ti=new WeakMap;let It;function ia(e,t=!1,s=It){if(s){let i=ti.get(s);i||ti.set(s,i=[]),i.push(e)}}function ra(e,t,s=he){const{immediate:i,deep:r,once:n,scheduler:o,augmentJob:l,call:a}=s,p=O=>r?O:He(O)||r===!1||r===0?kt(O,1):kt(O);let f,h,x,w,C=!1,F=!1;if(je(e)?(h=()=>e.value,C=He(e)):Ct(e)?(h=()=>p(e),C=!0):J(e)?(F=!0,C=e.some(O=>Ct(O)||He(O)),h=()=>e.map(O=>{if(je(O))return O.value;if(Ct(O))return p(O);if(Y(O))return a?a(O,2):O()})):Y(e)?t?h=a?()=>a(e,2):e:h=()=>{if(x){ut();try{x()}finally{dt()}}const O=It;It=f;try{return a?a(e,3,[w]):e(w)}finally{It=O}}:h=ft,t&&r){const O=h,te=r===!0?1/0:r;h=()=>kt(O(),te)}const T=Rl(),P=()=>{f.stop(),T&&T.active&&ar(T.effects,f)};if(n&&t){const O=t;t=(...te)=>{try{return O(...te)}finally{P()}}}let H=F?new Array(e.length).fill(Us):Us;const U=O=>{if(!(!(f.flags&1)||!f.dirty&&!O))if(t){const te=f.run();if(O||r||C||(F?te.some((ge,B)=>at(ge,H[B])):at(te,H))){const ge=It;ut();try{x&&x(),It=f;const B=[te,H===Us?void 0:F&&H[0]===Us?[]:H,w];H=te,a?a(t,3,B):t(...B)}finally{It=ge,dt()}}}else f.run()};return l&&l(U),f=new Hn(h),f.scheduler=o?()=>o(U,!1):U,w=O=>ia(O,!1,f),x=f.onStop=()=>{const O=ti.get(f);if(O){if(a)a(O,4);else for(const te of O)te();ti.delete(f)}},t?i?U(!0):H=f.run():o?o(U.bind(null,!0),!0):f.run(),P.pause=f.pause.bind(f),P.resume=f.resume.bind(f),P.stop=P,P}function kt(e,t=1/0,s){if(t<=0||!pe(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,je(e))kt(e.value,t,s);else if(J(e))for(let i=0;i<e.length;i++)kt(e[i],t,s);else if(Xt(e)||Tt(e))e.forEach(i=>{kt(i,t,s)});else if(Mn(e)){for(const i in e)kt(e[i],t,s);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&kt(e[i],t,s)}return e}function Ps(e,t,s,i){try{return i?e(...i):e()}catch(r){_i(r,t,s)}}function Xe(e,t,s,i){if(Y(e)){const r=Ps(e,t,s,i);return r&&Dn(r)&&r.catch(n=>{_i(n,t,s,void 0,!0)}),r}if(J(e)){const r=[];for(let n=0;n<e.length;n++)r.push(Xe(e[n],t,s,i));return r}}function _i(e,t,s,i=!0,r=!1){const n=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||he;if(t){let a=t.parent;const p=t.proxy,f=`https://vuejs.org/error-reference/#runtime-${s}`;for(;a;){const h=a.ec;if(h&&!a.isUnmounted&&(!r||a.scope.active)){for(let x=0;x<h.length;x++)if(h[x](e,p,f)===!1)return}a=a.parent}if(o){ut(),Ps(o,null,10,[e,p,f]),dt();return}}na(e,s,n,i,l)}function na(e,t,s,i=!0,r=!1){if(r)throw e;console.error(e)}const Ie=[];let We=-1;const ot=[];let Et=null,Zt=0;const oo=Promise.resolve();let si=null;function lo(e){const t=si||oo;return e?t.then(this?e.bind(this):e):t}function oa(e){let t=We+1,s=Ie.length;for(;t<s;){const i=t+s>>>1,r=Ie[i],n=Es(r);n<e||n===e&&r.flags&2?t=i+1:s=i}return t}function vr(e){if(!(e.flags&1)){const t=Es(e),s=Ie[Ie.length-1];!s||!(e.flags&2)&&t>=Es(s)?Ie.push(e):Ie.splice(oa(t),0,e),e.flags|=1,ao()}}function ao(){si||(si=oo.then(po))}function la(e){if(!J(e))Et&&e.id===-1?Et.splice(Zt+1,0,e):e.flags&1||(ot.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)ot.push(e[t]);ao()}function co(e,t,s,i=We+1){for(;i<Ie.length;i++){const r=Ie[i];if(r&&r.flags&2){if(e&&r.id!==e.uid||t!==void 0&&!(r.id>=t))continue;Ie.splice(i,1),i=e?i-1:We,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function fo(e,t,s=0){if(ot.length){let i=ot,r=0;if(t){i=[];for(let o=0;o<ot.length;o++){const l=ot[o];(l.i!==void 0?!l.i||l.i.uid<s:t.has(l))?ot[r++]=l:i.push(l)}}const n=[...new Set(i)].sort((o,l)=>Es(o)-Es(l));if(ot.length=r,Et){for(let o=0;o<n.length;o++)Et.push(n[o]);return}for(Et=n,Zt=0;Zt<Et.length;Zt++){const o=Et[Zt];o.flags&4&&(o.flags&=-2),o.flags&8||o(),o.flags&=-2}Et=null,Zt=0}}let Pi=!1;function aa(e,t){if(Pi){e();return}const s=t===void 0?void 0:new Set(ot);e(),Pi=!0;try{co(void 0,t),fo(void 0,s,t)}finally{Pi=!1}}const Es=e=>e.id==null?e.flags&2?-1:1/0:e.id;function po(e){try{for(We=0;We<Ie.length;We++){const t=Ie[We];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ps(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;We<Ie.length;We++){const t=Ie[We];t&&(t.flags&=-2)}We=-1,Ie.length=0,fo(),si=null,(Ie.length||ot.length)&&po()}}let Ne=null,uo=null;function ii(e){const t=Ne;return Ne=e,uo=e&&e.type.__scopeId||null,t}function ca(e,t=Ne,s){if(!t||e._n)return e;const i=(...r)=>{i._d&&ln(-1);const n=ii(t),o=Ut.length;let l;try{l=e(...r)}finally{for(let a=Ut.length;a>o;a--)Oo();ii(n),i._d&&ln(1)}return l};return i._n=!0,i._c=!0,i._d=!0,i}function At(e,t){if(Ne===null)return e;const s=Si(Ne),i=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[n,o,l,a=he]=t[r];n&&(Y(n)&&(n={mounted:n,updated:n}),n.deep&&kt(o),i.push({dir:n,instance:s,value:o,oldValue:void 0,arg:l,modifiers:a}))}return e}function jt(e,t,s,i){let r=e;if(i==="beforeMount")e._mount=e;else if(i==="beforeUpdate"){const l=t&&t._mount;l&&(l._latest=e,e._mount=l)}else if(i==="mounted"){const l=e._latest;e._mount=e._latest=void 0,l&&(r=l,l._mount=void 0)}const n=r.dirs,o=t&&t.dirs;for(let l=0;l<n.length;l++){let a=n[l];o?a.oldValue=o[l].value:i==="mounted"&&a.oldValue!==void 0&&(a=Ae({},a,{oldValue:void 0}));let p=a.dir[i];p&&(ut(),Xe(p,s,8,[e.el,a,r,t]),dt())}}function fa(e,t){if(Be){let s=Be.provides;const i=Be.parent&&Be.parent.provides;i===s&&(s=Be.provides=Object.create(i)),s[e]=t}}function Js(e,t,s=!1){const i=uc();if(i||Jt){let r=Jt?Jt._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&Y(t)?t.call(i&&i.proxy):t}}const pa=Symbol.for("v-scx"),ua=()=>Js(pa);function Gt(e,t,s){return ho(e,t,s)}function ho(e,t,s=he){const{immediate:i,deep:r,flush:n,once:o}=s,l=Ae({},s),a=t&&i||!t&&n!=="post";let p;if(js){if(n==="sync"){const w=ua();p=w.__watcherHandles||(w.__watcherHandles=[])}else if(!a){const w=()=>{};return w.stop=ft,w.resume=ft,w.pause=ft,w}}const f=Be;l.call=(w,C,F)=>Xe(w,f,C,F);let h=!1;n==="post"?l.scheduler=w=>{w.i=f,Ee(w,f&&f.suspense)}:n!=="sync"&&(h=!0,l.scheduler=(w,C)=>{C?w():vr(w)}),l.augmentJob=w=>{t&&(w.flags|=4),h&&(w.flags|=2,f&&(w.id=f.uid,w.i=f))};const x=ra(e,t,l);return js&&(p?p.push(x):a&&x()),x}function da(e,t,s){const i=this.proxy,r=me(e)?e.includes(".")?xo(i,e):()=>i[e]:e.bind(i,i);let n;Y(t)?n=t:(n=t.handler,s=t);const o=Is(this),l=ho(r,n.bind(i),s);return o(),l}function xo(e,t){const s=t.split(".");return()=>{let i=e;for(let r=0;r<s.length&&i;r++)i=i[s[r]];return i}}const St=new WeakMap,go=Symbol("_vte"),yi=e=>e.__isTeleport,Dt=e=>e&&(e.disabled||e.disabled===""),ha=e=>e&&(e.defer||e.defer===""),Wr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Qr=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Qi=(e,t)=>{const s=e&&e.to;return me(s)?t?t(s):null:s},xa={name:"Teleport",__isTeleport:!0,process(e,t,s,i,r,n,o,l,a,p){const{mc:f,pc:h,pbc:x,o:{insert:w,querySelector:C,createText:F,createComment:T,parentNode:P}}=p,H=Dt(t.props);let{dynamicChildren:U}=t;const O=(B,V,b)=>{B.shapeFlag&16&&f(B.children,V,b,r,n,o,l,a)},te=(B=t)=>{const V=Dt(B.props),b=B.target=Qi(B.props,C),N=Zi(b,B,F,w);b&&(o!=="svg"&&Wr(b)?o="svg":o!=="mathml"&&Qr(b)&&(o="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(b),V||(O(B,b,N),us(B,!1)))},ge=B=>{const V=()=>{if(St.get(B)===V){if(St.delete(B),Dt(B.props)){const b=P(B.el)||s;O(B,b,B.anchor),us(B,!0)}te(B)}};St.set(B,V),Ee(V,n)};if(e==null){const B=t.el=F(""),V=t.anchor=F("");if(w(B,s,i),w(V,s,i),ha(t.props)||n&&n.pendingBranch){ge(t);return}H&&(O(t,s,V),us(t,!0)),te()}else{t.el=e.el;const B=t.anchor=e.anchor,V=St.get(e);if(V){V.flags|=8,St.delete(e),ge(t);return}t.targetStart=e.targetStart;const b=t.target=e.target,N=t.targetAnchor=e.targetAnchor,oe=Dt(e.props),v=oe?s:b,W=oe?B:N;if(o==="svg"||Wr(b)?o="svg":(o==="mathml"||Qr(b))&&(o="mathml"),U?(x(e.dynamicChildren,U,v,r,n,o,l),yr(e,t,!0)):a||h(e,t,v,W,r,n,o,l,!1),H)oe?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Hs(t,s,B,p,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const $=Qi(t.props,C);$&&(t.target=$,Hs(t,$,null,p,0))}else oe&&Hs(t,b,N,p,1);us(t,H)}},remove(e,t,s,{um:i,o:{remove:r}},n){const{shapeFlag:o,children:l,anchor:a,targetStart:p,targetAnchor:f,target:h,props:x}=e,w=Dt(x),C=n||!w,F=St.get(e);if(F&&(F.flags|=8,St.delete(e)),h&&(r(p),r(f)),n&&r(a),!F&&(w||h)&&o&16)for(let T=0;T<l.length;T++){const P=l[T];i(P,t,s,C,!!P.dynamicChildren)}},move:Hs,hydrate:ga};function Hs(e,t,s,{o:{insert:i},m:r},n=2){n===0&&(e.targetStart&&i(e.targetStart,t,s),i(e.targetAnchor,t,s),s=e.targetAnchor);const{el:o,anchor:l,shapeFlag:a,children:p,props:f}=e,h=n===2;if(h&&i(o,t,s),!St.has(e)&&(!h||Dt(f))&&a&16)for(let x=0;x<p.length;x++)r(p[x],t,s,2);h&&i(l,t,s)}function ga(e,t,s,i,r,n,{o:{nextSibling:o,parentNode:l,querySelector:a,insert:p,createText:f}},h){function x(T,P){let H=P;for(;H;){if(H&&H.nodeType===8){if(H.data==="teleport start anchor")t.targetStart=H;else if(H.data==="teleport anchor"){t.targetAnchor=H,T._lpa=t.targetAnchor&&o(t.targetAnchor);break}}H=o(H)}}function w(T,P){P.anchor=h(o(T),P,l(T),s,i,r,n)}const C=t.target=Qi(t.props,a),F=Dt(t.props);if(C){const T=C._lpa||C.firstChild;t.shapeFlag&16&&(F?(w(e,t),x(C,T),t.targetAnchor||Zi(C,t,f,p,l(e)===C?e:null)):(t.anchor=o(e),x(C,T),t.targetAnchor||Zi(C,t,f,p),h(T&&o(T),t,C,s,i,r,n))),us(t,F)}else F&&t.shapeFlag&16&&(w(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}const wa=xa;function us(e,t){const s=e.ctx;if(s&&s.ut){let i,r;for(t?(i=e.el,r=e.anchor):(i=e.targetStart,r=e.targetAnchor);i&&i!==r;)i.nodeType===1&&i.setAttribute("data-v-owner",s.uid),i=i.nextSibling;s.ut()}}function Zi(e,t,s,i,r=null){const n=t.targetStart=s(""),o=t.targetAnchor=s("");return n[go]=o,e&&(i(n,e,r),i(o,e,r)),o}const Ii=Symbol("_leaveCb");function va(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==Ye){t=s;break}}return t}function wo(e){if(!mr(e))return yi(e.type)&&e.children?va(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&Y(s.default))return s.default()}}function _s(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const s=e.component.subTree;_s(yi(s.type)&&wo(s)||s,t)}else if(e.shapeFlag&128){const s=e.suspense;if(s){const i=s.isHydrating?s.pendingBranch:s.activeBranch;i&&_s(i,t.clone(i))}else e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)}else if(e.transition=t,e.type===se&&J(e.children)){const s=So(e.children,!1);s&&_s(s,t)}}function Gi(e){if(e.component)return Gi(e.component.subTree);if(e.type===se){const t=J(e.children)&&So(e.children,!1);return t?Gi(t):void 0}if(e.type!==Ye)return e}function Re(e,t){return Y(e)?Ae({name:e.name},t,{setup:e}):e}function vo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Zr(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const ri=new WeakMap;function ys(e,t,s,i,r=!1){if(J(e)){e.forEach((F,T)=>ys(F,t&&(J(t)?t[T]:t),s,i,r));return}if(ks(i)&&!r){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&ys(e,t,s,i.component.subTree);return}const n=i.shapeFlag&4?Si(i.component):i.el,o=r?null:n,{i:l,r:a}=e,p=t&&t.r,f=l.refs===he?l.refs={}:l.refs,h=l.setupState,x=ae(h),w=h===he?In:F=>Zr(f,F)?!1:le(x,F),C=(F,T)=>!(T&&Zr(f,T));if(p!=null&&p!==a){if(Gr(t),me(p))f[p]=null,w(p)&&(h[p]=null);else if(je(p)){const F=t;C(p,F.k)&&(p.value=null),F.k&&(f[F.k]=null)}}if(Y(a))Ps(a,l,12,[o,f]);else{const F=me(a),T=je(a);if(F||T){const P=()=>{if(e.f){const H=F?w(a)?h[a]:f[a]:C()||!e.k?a.value:f[e.k];if(r)J(H)&&ar(H,n);else if(J(H))H.includes(n)||H.push(n);else if(F)f[a]=[n],w(a)&&(h[a]=f[a]);else{const U=[n];C(a,e.k)&&(a.value=U),e.k&&(f[e.k]=U)}}else F?(f[a]=o,w(a)&&(h[a]=o)):T&&(C(a,e.k)&&(a.value=o),e.k&&(f[e.k]=o))};if(o){const H=()=>{P(),ri.delete(e)};H.id=-1,ri.set(e,H),Ee(H,s)}else Gr(e),P()}}}function Gr(e){const t=ri.get(e);t&&(t.flags|=8,ri.delete(e))}vi().requestIdleCallback;vi().cancelIdleCallback;const ks=e=>!!e.type.__asyncLoader,mr=e=>e.type.__isKeepAlive;function ma(e,t){mo(e,"a",t)}function ba(e,t){mo(e,"da",t)}function mo(e,t,s=Be){const i=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Ts(t,i,s),s){let r=s.parent;for(;r&&r.parent;)mr(r.parent.vnode)&&_a(i,t,s,r),r=r.parent}}function _a(e,t,s,i){const r=Ts(t,e,i,!0),n=Ts("um",()=>ar(i[t],r),s);n.flags=16}function Ts(e,t,s=Be,i=!1){if(s){const r=s[e]||(s[e]=[]),n=t.__weh||(t.__weh=(...o)=>{ut();const l=Is(s),a=Xe(t,s,e,o);return l(),dt(),a});return i?r.unshift(n):r.push(n),n}}const Ft=e=>(t,s=Be)=>{(!js||e==="sp")&&Ts(e,(...i)=>t(...i),s)},ya=Ft("bm"),ki=Ft("m"),ka=Ft("bu"),Aa=Ft("u"),Fa=Ft("bum"),Ai=Ft("um"),$a=Ft("sp"),Sa=Ft("rtg"),Ea=Ft("rtc");function Ta(e,t=Be){Ts("ec",e,t)}const bo="components";function Ca(e,t){return yo(bo,e,!0,t)||e}const _o=Symbol.for("v-ndc");function Ba(e){return me(e)?yo(bo,e,!1)||e:e||_o}function yo(e,t,s=!0,i=!1){const r=Ne||Be;if(r){const n=r.type;{const l=wc(n,!1);if(l&&(l===t||l===De(t)||l===wi(De(t))))return n}const o=Jr(r[e]||n[e],t)||Jr(r.appContext[e],t);return!o&&i?n:o}}function Jr(e,t){return e&&(e[t]||e[De(t)]||e[wi(De(t))])}function Ce(e,t,s,i){let r;const n=s,o=J(e);if(o||me(e)){const l=o&&Ct(e);let a=!1,p=!1;l&&(a=!He(e),p=ht(e),e=mi(e)),r=new Array(e.length);for(let f=0,h=e.length;f<h;f++)r[f]=t(a?p?Bt(Ve(e[f])):Ve(e[f]):e[f],f,void 0,n)}else if(typeof e=="number")if(!Number.isInteger(e)||e<0)r=[];else{r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,n)}else if(pe(e))if(e[Symbol.iterator])r=Array.from(e,(l,a)=>t(l,a,void 0,n));else{const l=Object.keys(e);r=new Array(l.length);for(let a=0,p=l.length;a<p;a++){const f=l[a];r[a]=t(e[f],f,a,n)}}else r=[];return r}const Ji=e=>e?Uo(e)?Si(e):Ji(e.parent):null,As=Ae(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=>Ji(e.parent),$root:e=>Ji(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ao(e),$forceUpdate:e=>e.f||(e.f=()=>{vr(e.update)}),$nextTick:e=>e.n||(e.n=lo.bind(e.proxy)),$watch:e=>da.bind(e)}),Di=(e,t)=>e!==he&&!e.__isScriptSetup&&le(e,t),ja={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:i,data:r,props:n,accessCache:o,type:l,appContext:a}=e;if(t[0]!=="$"){const x=o[t];if(x!==void 0)switch(x){case 1:return i[t];case 2:return r[t];case 4:return s[t];case 3:return n[t]}else{if(Di(i,t))return o[t]=1,i[t];if(r!==he&&le(r,t))return o[t]=2,r[t];if(le(n,t))return o[t]=3,n[t];if(s!==he&&le(s,t))return o[t]=4,s[t];Xi&&(o[t]=0)}}const p=As[t];let f,h;if(p)return t==="$attrs"&&Te(e.attrs,"get",""),p(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(s!==he&&le(s,t))return o[t]=4,s[t];if(h=a.config.globalProperties,le(h,t))return h[t]},set({_:e},t,s){const{data:i,setupState:r,ctx:n}=e;return Di(r,t)?(r[t]=s,!0):i!==he&&le(i,t)?(i[t]=s,!0):le(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(n[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:i,appContext:r,props:n,type:o}},l){let a;return!!(s[l]||e!==he&&l[0]!=="$"&&le(e,l)||Di(t,l)||le(n,l)||le(i,l)||le(As,l)||le(r.config.globalProperties,l)||(a=o.__cssModules)&&a[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:le(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Xr(e){return J(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Xi=!0;function Ra(e){const t=Ao(e),s=e.proxy,i=e.ctx;Xi=!1,t.beforeCreate&&Yr(t.beforeCreate,e,"bc");const{data:r,computed:n,methods:o,watch:l,provide:a,inject:p,created:f,beforeMount:h,mounted:x,beforeUpdate:w,updated:C,activated:F,deactivated:T,beforeDestroy:P,beforeUnmount:H,destroyed:U,unmounted:O,render:te,renderTracked:ge,renderTriggered:B,errorCaptured:V,serverPrefetch:b,expose:N,inheritAttrs:oe,components:v,directives:W,filters:$}=t;if(p&&Pa(p,i,null),o)for(const K in o){const Q=o[K];Y(Q)&&(i[K]=Q.bind(s))}if(r){const K=r.call(s,s);pe(K)&&(e.data=bi(K))}if(Xi=!0,n)for(const K in n){const Q=n[K],ye=Y(Q)?Q.bind(s,s):Y(Q.get)?Q.get.bind(s,s):ft,gt=!Y(Q)&&Y(Q.set)?Q.set.bind(s):ft,Ue=M({get:ye,set:gt});Object.defineProperty(i,K,{enumerable:!0,configurable:!0,get:()=>Ue.value,set:Le=>Ue.value=Le})}if(l)for(const K in l)ko(l[K],i,s,K);if(a){const K=Y(a)?a.call(s):a;Reflect.ownKeys(K).forEach(Q=>{fa(Q,K[Q])})}f&&Yr(f,e,"c");function D(K,Q){J(Q)?Q.forEach(ye=>K(ye.bind(s))):Q&&K(Q.bind(s))}if(D(ya,h),D(ki,x),D(ka,w),D(Aa,C),D(ma,F),D(ba,T),D(Ta,V),D(Ea,ge),D(Sa,B),D(Fa,H),D(Ai,O),D($a,b),J(N))if(N.length){const K=e.exposed||(e.exposed={});N.forEach(Q=>{Object.defineProperty(K,Q,{get:()=>s[Q],set:ye=>s[Q]=ye,enumerable:!0})})}else e.exposed||(e.exposed={});te&&e.render===ft&&(e.render=te),oe!=null&&(e.inheritAttrs=oe),v&&(e.components=v),W&&(e.directives=W),b&&vo(e)}function Pa(e,t,s=ft){J(e)&&(e=Yi(e));for(const i in e){const r=e[i];let n;pe(r)?"default"in r?n=Js(r.from||i,r.default,!0):n=Js(r.from||i):n=Js(r),je(n)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>n.value,set:o=>n.value=o}):t[i]=n}}function Yr(e,t,s){Xe(J(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,s)}function ko(e,t,s,i){let r=i.includes(".")?xo(s,i):()=>s[i];if(me(e)){const n=t[e];Y(n)&&Gt(r,n)}else if(Y(e))Gt(r,e.bind(s));else if(pe(e))if(J(e))e.forEach(n=>ko(n,t,s,i));else{const n=Y(e.handler)?e.handler.bind(s):t[e.handler];Y(n)&&Gt(r,n,e)}}function Ao(e){const t=e.type,{mixins:s,extends:i}=t,{mixins:r,optionsCache:n,config:{optionMergeStrategies:o}}=e.appContext,l=n.get(t);let a;return l?a=l:!r.length&&!s&&!i?a=t:(a={},r.length&&r.forEach(p=>ni(a,p,o,!0)),ni(a,t,o)),pe(t)&&n.set(t,a),a}function ni(e,t,s,i=!1){const{mixins:r,extends:n}=t;n&&ni(e,n,s,!0),r&&r.forEach(o=>ni(e,o,s,!0));for(const o in t)if(!(i&&o==="expose")){const l=Ia[o]||s&&s[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Ia={data:en,props:tn,emits:tn,methods:ds,computed:ds,beforeCreate:Pe,created:Pe,beforeMount:Pe,mounted:Pe,beforeUpdate:Pe,updated:Pe,beforeDestroy:Pe,beforeUnmount:Pe,destroyed:Pe,unmounted:Pe,activated:Pe,deactivated:Pe,errorCaptured:Pe,serverPrefetch:Pe,components:ds,directives:ds,watch:La,provide:en,inject:Da};function en(e,t){return t?e?function(){return Ae(Y(e)?e.call(this,this):e,Y(t)?t.call(this,this):t)}:t:e}function Da(e,t){return ds(Yi(e),Yi(t))}function Yi(e){if(J(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function Pe(e,t){return e?[...new Set([].concat(e,t))]:t}function ds(e,t){return e?Ae(Object.create(null),e,t):t}function tn(e,t){return e?J(e)&&J(t)?[...new Set([...e,...t])]:Ae(Object.create(null),Xr(e),Xr(t??{})):t}function La(e,t){if(!e)return t;if(!t)return e;const s=Ae(Object.create(null),e);for(const i in t)s[i]=Pe(e[i],t[i]);return s}function Fo(){return{app:null,config:{isNativeTag:In,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 Ma=0;function Oa(e,t){return function(i,r=null){Y(i)||(i=Ae({},i)),r!=null&&!pe(r)&&(r=null);const n=Fo(),o=new WeakSet,l=[];let a=!1;const p=n.app={_uid:Ma++,_component:i,_props:r,_container:null,_context:n,_instance:null,version:mc,get config(){return n.config},set config(f){},use(f,...h){return o.has(f)||(f&&Y(f.install)?(o.add(f),f.install(p,...h)):Y(f)&&(o.add(f),f(p,...h))),p},mixin(f){return n.mixins.includes(f)||n.mixins.push(f),p},component(f,h){return h?(n.components[f]=h,p):n.components[f]},directive(f,h){return h?(n.directives[f]=h,p):n.directives[f]},mount(f,h,x){if(!a){const w=p._ceVNode||Je(i,r);return w.appContext=n,x===!0?x="svg":x===!1&&(x=void 0),e(w,f,x),a=!0,p._container=f,f.__vue_app__=p,Si(w.component)}},onUnmount(f){l.push(f)},unmount(){a&&(Xe(l,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(f,h){return n.provides[f]=h,p},runWithContext(f){const h=Jt;Jt=p;try{return f()}finally{Jt=h}}};return p}}let Jt=null;const za=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${De(t)}Modifiers`]||e[`${Kt(t)}Modifiers`];function Na(e,t,...s){if(e.isUnmounted)return;const i=e.vnode.props||he;let r=s;const n=t.startsWith("update:"),o=n&&za(i,t.slice(7));o&&(o.trim&&(r=s.map(f=>me(f)?f.trim():f)),o.number&&(r=r.map(fr)));let l,a=i[l=Ti(t)]||i[l=Ti(De(t))];!a&&n&&(a=i[l=Ti(Kt(t))]),a&&Xe(a,e,6,r);const p=i[l+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Xe(p,e,6,r)}}const qa=new WeakMap;function $o(e,t,s=!1){const i=s?qa:t.emitsCache,r=i.get(e);if(r!==void 0)return r;const n=e.emits;let o={},l=!1;if(!Y(e)){const a=p=>{const f=$o(p,t,!0);f&&(l=!0,Ae(o,f))};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!n&&!l?(pe(e)&&i.set(e,null),null):(J(n)?n.forEach(a=>o[a]=null):Ae(o,n),pe(e)&&i.set(e,o),o)}function Fi(e,t){return!e||!hi(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),le(e,t[0].toLowerCase()+t.slice(1))||le(e,Kt(t))||le(e,t))}function sn(e){const{type:t,vnode:s,proxy:i,withProxy:r,propsOptions:[n],slots:o,attrs:l,emit:a,render:p,renderCache:f,props:h,data:x,setupState:w,ctx:C,inheritAttrs:F}=e,T=ii(e);let P,H;try{if(s.shapeFlag&4){const O=r||i,te=O;P=lt(p.call(te,O,f,h,w,x,C)),H=l}else{const O=t;P=lt(O.length>1?O(h,{attrs:l,slots:o,emit:a}):O(h,null)),H=t.props?l:Ua(l)}}catch(O){Ut.length=0,_i(O,e,1),P=Je(Ye)}let U=P;if(H&&F!==!1){const O=Object.keys(H),{shapeFlag:te}=U;O.length&&te&7&&(n&&O.some(xi)&&(H=Ha(H,n)),U=Yt(U,H,!1,!0))}if(s.dirs&&(U=Yt(U,null,!1,!0),U.dirs=U.dirs?U.dirs.concat(s.dirs):s.dirs),s.transition){const O=yi(U.type)&&wo(U)||U;_s(O,s.transition)}return P=U,ii(T),P}function So(e,t=!0){let s;for(let i=0;i<e.length;i++){const r=e[i];if(kr(r)){if(r.type!==Ye||r.children==="v-if"){if(s)return;s=r}}else return}return s}const Ua=e=>{let t;for(const s in e)(s==="class"||s==="style"||hi(s))&&((t||(t={}))[s]=e[s]);return t},Ha=(e,t)=>{const s={};for(const i in e)(!xi(i)||!(i.slice(9)in t))&&(s[i]=e[i]);return s};function Va(e,t,s){const{props:i,children:r,component:n}=e,{props:o,children:l,patchFlag:a}=t,p=n.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&a>=0){if(a&1024)return!0;if(a&16)return i?rn(i,o,p):!!o;if(a&8){const f=t.dynamicProps;for(let h=0;h<f.length;h++){const x=f[h];if(Eo(o,i,x)&&!Fi(p,x))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:i===o?!1:i?o?rn(i,o,p):!0:!!o;return!1}function rn(e,t,s){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let r=0;r<i.length;r++){const n=i[r];if(!le(e,n)||Eo(t,e,n)&&!Fi(s,n))return!0}return!1}function Eo(e,t,s){const i=e[s],r=t[s];return s==="style"&&pe(i)&&pe(r)?!ss(i,r):i!==r}function Ka({vnode:e,parent:t,suspense:s},i){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=i,e=r),r===e)(e=t.vnode).el=i,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=i)}const To={},Co=()=>Object.create(To),Bo=e=>Object.getPrototypeOf(e)===To;function Wa(e,t,s,i=!1){const r={},n=Co();e.propsDefaults=Object.create(null),jo(e,t,r,n);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);s?e.props=i?r:Gl(r):e.type.props?e.props=r:e.props=n,e.attrs=n}function Qa(e,t,s,i){const{props:r,attrs:n,vnode:{patchFlag:o}}=e,l=ae(r),[a]=e.propsOptions;let p=!1;if((i||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let h=0;h<f.length;h++){let x=f[h];if(Fi(e.emitsOptions,x))continue;const w=t[x];if(a)if(le(n,x))w!==n[x]&&(n[x]=w,p=!0);else{const C=De(x);r[C]=er(a,l,C,w,e,!1)}else w!==n[x]&&(n[x]=w,p=!0)}}}else{jo(e,t,r,n)&&(p=!0);let f;for(const h in l)(!t||!le(t,h)&&((f=Kt(h))===h||!le(t,f)))&&(a?s&&(s[h]!==void 0||s[f]!==void 0)&&(r[h]=er(a,l,h,void 0,e,!0)):delete r[h]);if(n!==l)for(const h in n)(!t||!le(t,h))&&(delete n[h],p=!0)}p&&yt(e.attrs,"set","")}function jo(e,t,s,i){const[r,n]=e.propsOptions;let o=!1,l;if(t)for(let a in t){if(vs(a))continue;const p=t[a];let f;r&&le(r,f=De(a))?!n||!n.includes(f)?s[f]=p:(l||(l={}))[f]=p:Fi(e.emitsOptions,a)||(!(a in i)||p!==i[a])&&(i[a]=p,o=!0)}if(n){const a=ae(s),p=l||he;for(let f=0;f<n.length;f++){const h=n[f];s[h]=er(r,a,h,p[h],e,!le(p,h))}}return o}function er(e,t,s,i,r,n){const o=e[s];if(o!=null){const l=le(o,"default");if(l&&i===void 0){const a=o.default;if(o.type!==Function&&!o.skipFactory&&Y(a)){const{propsDefaults:p}=r;if(s in p)i=p[s];else{const f=Is(r);i=p[s]=a.call(null,t),f()}}else i=a;r.ce&&r.ce._setProp(s,i)}o[0]&&(n&&!l?i=!1:o[1]&&(i===""||i===Kt(s))&&(i=!0))}return i}const Za=new WeakMap;function Ro(e,t,s=!1){const i=s?Za:t.propsCache,r=i.get(e);if(r)return r;const n=e.props,o={},l=[];let a=!1;if(!Y(e)){const f=h=>{a=!0;const[x,w]=Ro(h,t,!0);Ae(o,x),w&&l.push(...w)};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!n&&!a)return pe(e)&&i.set(e,Ot),Ot;if(J(n))for(let f=0;f<n.length;f++){const h=De(n[f]);nn(h)&&(o[h]=he)}else if(n)for(const f in n){const h=De(f);if(nn(h)){const x=n[f],w=o[h]=J(x)||Y(x)?{type:x}:Ae({},x),C=w.type;let F=!1,T=!0;if(J(C))for(let P=0;P<C.length;++P){const H=C[P],U=Y(H)&&H.name;if(U==="Boolean"){F=!0;break}else U==="String"&&(T=!1)}else F=Y(C)&&C.name==="Boolean";w[0]=F,w[1]=T,(F||le(w,"default"))&&l.push(h)}}const p=[o,l];return pe(e)&&i.set(e,p),p}function nn(e){return e[0]!=="$"&&!vs(e)}const br=e=>e==="_"||e==="_ctx"||e==="$stable",_r=e=>J(e)?e.map(lt):[lt(e)],Ga=(e,t,s)=>{if(t._n)return t;const i=ca((...r)=>_r(t(...r)),s);return i._c=!1,i},Po=(e,t,s)=>{const i=e._ctx;for(const r in e){if(br(r))continue;const n=e[r];if(Y(n))t[r]=Ga(r,n,i);else if(n!=null){const o=_r(n);t[r]=()=>o}}},Io=(e,t)=>{const s=_r(t);e.slots.default=()=>s},Do=(e,t,s)=>{for(const i in t)(s||!br(i))&&(e[i]=t[i])},Ja=(e,t,s)=>{const i=e.slots=Co();if(e.vnode.shapeFlag&32){const r=t._;r?(Do(i,t,s),s&&On(i,"_",r,!0)):Po(t,i)}else t&&Io(e,t)},Xa=(e,t,s)=>{const{vnode:i,slots:r}=e;let n=!0,o=he;if(i.shapeFlag&32){const l=t._;l?s&&l===1?n=!1:Do(r,t,s):(n=!t.$stable,Po(t,r)),o=t}else t&&(Io(e,t),o={default:1});if(n)for(const l in r)!br(l)&&o[l]==null&&delete r[l]},Ee=rc;function Ya(e){return ec(e)}function ec(e,t){const s=vi();s.__VUE__=!0;const{insert:i,remove:r,patchProp:n,createElement:o,createText:l,createComment:a,setText:p,setElementText:f,parentNode:h,nextSibling:x,setScopeId:w=ft,insertStaticContent:C}=e,F=(d,g,m,E=null,_=null,k=null,L=void 0,I=null,R=!!g.dynamicChildren)=>{if(d===g)return;d&&!ls(d,g)&&(E=zs(d),Le(d,_,k,!0),d=null),g.patchFlag===-2&&(R=!1,g.dynamicChildren=null),g.dynamicChildren&&d&&d.dynamicChildren&&d.dynamicChildren.hasOnce&&(g.dynamicChildren===Ot&&(g.dynamicChildren=[]),g.dynamicChildren.hasOnce=!0);const{type:y,ref:Z,shapeFlag:z}=g;switch(y){case $i:T(d,g,m,E);break;case Ye:P(d,g,m,E);break;case Xs:d==null&&H(g,m,E,L);break;case se:v(d,g,m,E,_,k,L,I,R);break;default:z&1?te(d,g,m,E,_,k,L,I,R):z&6?W(d,g,m,E,_,k,L,I,R):(z&64||z&128)&&y.process(d,g,m,E,_,k,L,I,R,ns)}Z!=null&&_?ys(Z,d&&d.ref,k,g||d,!g):Z==null&&d&&d.ref!=null&&ys(d.ref,null,k,d,!0)},T=(d,g,m,E)=>{if(d==null)i(g.el=l(g.children),m,E);else{const _=g.el=d.el;g.children!==d.children&&p(_,g.children)}},P=(d,g,m,E)=>{d==null?i(g.el=a(g.children||""),m,E):g.el=d.el},H=(d,g,m,E)=>{[d.el,d.anchor]=C(d.children,g,m,E,d.el,d.anchor)},U=({el:d,anchor:g},m,E)=>{let _;for(;d&&d!==g;)_=x(d),i(d,m,E),d=_;i(g,m,E)},O=({el:d,anchor:g})=>{let m;for(;d&&d!==g;)m=x(d),r(d),d=m;r(g)},te=(d,g,m,E,_,k,L,I,R)=>{if(g.type==="svg"?L="svg":g.type==="math"&&(L="mathml"),d==null)ge(g,m,E,_,k,L,I,R);else{const y=d.el&&d.el._isVueCE?d.el:null;try{y&&y._beginPatch(),b(d,g,_,k,L,I,R)}finally{y&&y._endPatch()}}},ge=(d,g,m,E,_,k,L,I)=>{let R,y;const{props:Z,shapeFlag:z,transition:G,dirs:X}=d;if(R=d.el=o(d.type,k,Z&&Z.is,Z),z&8?f(R,d.children):z&16&&V(d.children,R,null,E,_,Li(d,k),L,I),X&&jt(d,null,E,"created"),B(R,d,d.scopeId,L,E),Z){for(const ue in Z)ue!=="value"&&!vs(ue)&&n(R,ue,null,Z[ue],k,E);"value"in Z&&n(R,"value",null,Z.value,k),(y=Z.onVnodeBeforeMount)&&it(y,E,d)}X&&jt(d,null,E,"beforeMount");const ie=tc(_,G);ie?G.beforeEnter(R):G&&!G.persisted&&(R[ic]=!0),i(R,g,m),((y=Z&&Z.onVnodeMounted)||ie||X)&&Ee(()=>{y&&it(y,E,d),ie&&G.enter(R),X&&jt(d,null,E,"mounted")},_)},B=(d,g,m,E,_)=>{if(m&&w(d,m),E)for(let k=0;k<E.length;k++)w(d,E[k]);if(_){let k=_.subTree;if(g===k||Mo(k.type)&&(k.ssContent===g||k.ssFallback===g)){const L=_.vnode;B(d,L,L.scopeId,L.slotScopeIds,_.parent)}}},V=(d,g,m,E,_,k,L,I,R=0)=>{for(let y=R;y<d.length;y++){const Z=d[y]=I?_t(d[y]):lt(d[y]);F(null,Z,g,m,E,_,k,L,I)}},b=(d,g,m,E,_,k,L)=>{const I=g.el=d.el;let{patchFlag:R,dynamicChildren:y,dirs:Z}=g;R|=d.patchFlag&16;const z=d.props||he,G=g.props||he;let X;if(m&&Rt(m,!1),(X=G.onVnodeBeforeUpdate)&&it(X,m,g,d),Z&&jt(g,d,m,"beforeUpdate"),m&&Rt(m,!0),y&&(!d.dynamicChildren||d.dynamicChildren.length!==y.length)&&(R=0,L=!1,y=null),(z.innerHTML&&G.innerHTML==null||z.textContent&&G.textContent==null)&&f(I,""),y?N(d.dynamicChildren,y,I,m,E,Li(g,_),k):L||Q(d,g,I,null,m,E,Li(g,_),k,!1),R>0){if(R&16)oe(I,z,G,m,_);else if(R&2&&z.class!==G.class&&n(I,"class",null,G.class,_),R&4&&n(I,"style",z.style,G.style,_),R&8){const ie=g.dynamicProps;for(let ue=0;ue<ie.length;ue++){const fe=ie[ue],_e=z[fe],Fe=G[fe];(Fe!==_e||fe==="value")&&n(I,fe,_e,Fe,_,m)}}R&1&&d.children!==g.children&&f(I,g.children)}else!L&&y==null&&oe(I,z,G,m,_);((X=G.onVnodeUpdated)||Z)&&Ee(()=>{X&&it(X,m,g,d),Z&&jt(g,d,m,"updated")},E)},N=(d,g,m,E,_,k,L)=>{for(let I=0;I<g.length;I++){const R=d[I],y=g[I],Z=R.el||Fs(R),z=Z&&(R.type===se||!ls(R,y)||R.shapeFlag&198)?h(Z):m;F(R,y,z,null,E,_,k,L,!0)}},oe=(d,g,m,E,_)=>{if(g!==m){if(g!==he)for(const k in g)!vs(k)&&!(k in m)&&n(d,k,g[k],null,_,E);for(const k in m){if(vs(k))continue;const L=m[k],I=g[k];L!==I&&k!=="value"&&n(d,k,I,L,_,E)}"value"in m&&n(d,"value",g.value,m.value,_)}},v=(d,g,m,E,_,k,L,I,R)=>{const y=g.el=d?d.el:l(""),Z=g.anchor=d?d.anchor:l("");let{patchFlag:z,dynamicChildren:G,slotScopeIds:X}=g;X&&(I=I?I.concat(X):X),d==null?(i(y,m,E),i(Z,m,E),V(g.children||[],m,Z,_,k,L,I,R)):z>0&&z&64&&G&&d.dynamicChildren&&d.dynamicChildren.length===G.length?(N(d.dynamicChildren,G,m,_,k,L,I),(g.key!=null||_&&g===_.subTree)&&yr(d,g,!0)):Q(d,g,m,Z,_,k,L,I,R)},W=(d,g,m,E,_,k,L,I,R)=>{g.slotScopeIds=I,d==null?g.shapeFlag&512?_.ctx.activate(g,m,E,L,R):$(g,m,E,_,k,L,R):q(d,g,R)},$=(d,g,m,E,_,k,L)=>{const I=d.component=pc(d,E,_);if(mr(d)&&(I.ctx.renderer=ns),dc(I,!1,L),I.asyncDep){if(_&&_.registerDep(I,D,L,k),!d.el){const R=I.subTree=Je(Ye);P(null,R,g,m),d.placeholder=R.el}}else D(I,d,g,m,_,k,L)},q=(d,g,m)=>{const E=g.component=d.component;if(Va(d,g,m))if(E.asyncDep&&!E.asyncResolved){g.el=d.el,g.placeholder=d.placeholder,K(E,g,m);return}else E.next=g,E.update();else g.el=d.el,g.placeholder=d.placeholder,E.vnode=g},D=(d,g,m,E,_,k,L)=>{const I=()=>{if(d.isMounted){let{next:z,bu:G,u:X,parent:ie,vnode:ue}=d;{const tt=Lo(d);if(tt){z&&(z.el=ue.el,K(d,z,L)),tt.asyncDep.then(()=>{const wt=()=>{d.job.flags&8||(_&&_.pendingBranch?Ee(wt,_):y())};wt.flags=48,Ee(wt,_)});return}}let fe=z,_e;Rt(d,!1),z?(z.el=ue.el,K(d,z,L)):z=ue,G&&Gs(G),(_e=z.props&&z.props.onVnodeBeforeUpdate)&&it(_e,ie,z,ue),Rt(d,!0);const Fe=sn(d),Ke=d.subTree;d.subTree=Fe,F(Ke,Fe,h(Ke.el||Fs(Ke)),zs(Ke),d,_,k),z.el=Fe.el,fe===null&&Ka(d,Fe.el),X&&Ee(X,_),(_e=z.props&&z.props.onVnodeUpdated)&&Ee(()=>it(_e,ie,z,ue),_)}else{let z;const{el:G,props:X}=g,{bm:ie,m:ue,parent:fe,root:_e,type:Fe}=d,Ke=ks(g);Rt(d,!1),ie&&Gs(ie),!Ke&&(z=X&&X.onVnodeBeforeMount)&&it(z,fe,g),Rt(d,!0);{_e.ce&&_e.ce._hasShadowRoot()&&_e.ce._injectChildStyle(Fe,d.parent?d.parent.type:void 0);const tt=d.subTree=sn(d);F(null,tt,m,E,d,_,k),g.el=tt.el}if(ue&&Ee(ue,_),!Ke&&(z=X&&X.onVnodeMounted)){const tt=g;Ee(()=>it(z,fe,tt),_)}(g.shapeFlag&256||fe&&ks(fe.vnode)&&fe.vnode.shapeFlag&256)&&d.a&&Ee(d.a,_),d.isMounted=!0,g=m=E=null}};d.scope.on();const R=d.effect=new Hn(I);d.scope.off();const y=d.update=R.run.bind(R),Z=d.job=R.runIfDirty.bind(R);Z.i=d,Z.id=d.uid,R.scheduler=()=>vr(Z),Rt(d,!0),y()},K=(d,g,m)=>{g.component=d;const E=d.vnode.props;d.vnode=g,d.next=null,Qa(d,g.props,E,m),Xa(d,g.children,m),ut(),co(d),dt()},Q=(d,g,m,E,_,k,L,I,R=!1)=>{const y=d&&d.children,Z=d?d.shapeFlag:0,z=g.children,{patchFlag:G,shapeFlag:X}=g;if(G>0){if(G&128){gt(y,z,m,E,_,k,L,I,R);return}else if(G&256){ye(y,z,m,E,_,k,L,I,R);return}}X&8?(Z&16&&rs(y,_,k),z!==y&&f(m,z)):Z&16?X&16?gt(y,z,m,E,_,k,L,I,R):rs(y,_,k,!0):(Z&8&&f(m,""),X&16&&V(z,m,E,_,k,L,I,R))},ye=(d,g,m,E,_,k,L,I,R)=>{d=d||Ot,g=g||Ot;const y=d.length,Z=g.length,z=Math.min(y,Z);let G;for(G=0;G<z;G++){const X=g[G]=R?_t(g[G]):lt(g[G]);F(d[G],X,m,null,_,k,L,I,R)}y>Z?rs(d,_,k,!0,!1,z):V(g,m,E,_,k,L,I,R,z)},gt=(d,g,m,E,_,k,L,I,R)=>{let y=0;const Z=g.length;let z=d.length-1,G=Z-1;for(;y<=z&&y<=G;){const X=d[y],ie=g[y]=R?_t(g[y]):lt(g[y]);if(ls(X,ie))F(X,ie,m,null,_,k,L,I,R);else break;y++}for(;y<=z&&y<=G;){const X=d[z],ie=g[G]=R?_t(g[G]):lt(g[G]);if(ls(X,ie))F(X,ie,m,null,_,k,L,I,R);else break;z--,G--}if(y>z){if(y<=G){const X=G+1,ie=X<Z?g[X].el:E;for(;y<=G;)F(null,g[y]=R?_t(g[y]):lt(g[y]),m,ie,_,k,L,I,R),y++}}else if(y>G)for(;y<=z;)Le(d[y],_,k,!0),y++;else{const X=y,ie=y,ue=new Map;for(y=ie;y<=G;y++){const Oe=g[y]=R?_t(g[y]):lt(g[y]);Oe.key!=null&&ue.set(Oe.key,y)}let fe,_e=0;const Fe=G-ie+1;let Ke=!1,tt=0;const wt=new Array(Fe);for(y=0;y<Fe;y++)wt[y]=0;for(y=X;y<=z;y++){const Oe=d[y];if(_e>=Fe){Le(Oe,_,k,!0);continue}let st;if(Oe.key!=null)st=ue.get(Oe.key);else for(fe=ie;fe<=G;fe++)if(wt[fe-ie]===0&&ls(Oe,g[fe])){st=fe;break}st===void 0?Le(Oe,_,k,!0):(wt[st-ie]=y+1,st>=tt?tt=st:Ke=!0,F(Oe,g[st],m,null,_,k,L,I,R),_e++)}const Lr=Ke?sc(wt):Ot;for(fe=Lr.length-1,y=Fe-1;y>=0;y--){const Oe=ie+y,st=g[Oe],Mr=g[Oe+1],Or=Oe+1<Z?Mr.el||Fs(Mr):E;wt[y]===0?F(null,st,m,Or,_,k,L,I,R):Ke&&(fe<0||y!==Lr[fe]?Ue(st,m,Or,2):fe--)}}},Ue=(d,g,m,E,_=null)=>{const{el:k,type:L,transition:I,children:R,shapeFlag:y}=d;if(y&6){Ue(d.component.subTree,g,m,E);return}if(y&128){d.suspense.move(g,m,E);return}if(y&64){L.move(d,g,m,ns);return}if(L===se){i(k,g,m);for(let z=0;z<R.length;z++)Ue(R[z],g,m,E);i(d.anchor,g,m);return}if(L===Xs){U(d,g,m);return}if(E!==2&&y&1&&I)if(E===0)I.persisted&&!k[Ii]?i(k,g,m):(I.beforeEnter(k),i(k,g,m),Ee(()=>I.enter(k),_));else{const{leave:z,delayLeave:G,afterLeave:X}=I,ie=()=>{d.ctx.isUnmounted?r(k):i(k,g,m)},ue=()=>{const fe=k._isLeaving||!!k[Ii];k._isLeaving&&k[Ii](!0),I.persisted&&!fe?ie():z(k,()=>{ie(),X&&X()})};G?G(k,ie,ue):ue()}else i(k,g,m)},Le=(d,g,m,E=!1,_=!1)=>{const{type:k,props:L,ref:I,children:R,dynamicChildren:y,shapeFlag:Z,patchFlag:z,dirs:G,cacheIndex:X,memo:ie}=d;if((z===-2||y&&y.hasOnce)&&(_=!1),I!=null&&(ut(),ys(I,null,m,d,!0),dt()),X!=null&&(!d.ctx||d.ctx===g)&&(g.renderCache[X]=void 0),Z&256&&g.ctx.deactivate(d))return;const ue=Z&1&&G,fe=!ks(d);let _e;if(fe&&(_e=L&&L.onVnodeBeforeUnmount)&&it(_e,g,d),Z&6)ml(d.component,m,E);else{if(Z&128){d.suspense.unmount(m,E);return}ue&&jt(d,null,g,"beforeUnmount"),Z&64?d.type.remove(d,g,m,ns,E):y&&!y.hasOnce&&(k!==se||z>0&&z&64)?rs(y,g,m,!1,!0):(k===se&&z&384||!_&&Z&16)&&rs(R,g,m),E&&Os(d)}const Fe=ie!=null&&X==null;(fe&&(_e=L&&L.onVnodeUnmounted)||ue||Fe)&&Ee(()=>{_e&&it(_e,g,d),ue&&jt(d,null,g,"unmounted"),Fe&&(d.el=null)},m)},Os=d=>{const{type:g,el:m,anchor:E,transition:_}=d,k=g===se;if(k&&!_){Ir(m,E);return}if(g===Xs){O(d),_&&!_.persisted&&_.afterLeave&&_.afterLeave();return}const L=k?Gi(d):d,I=()=>{k?h(m)&&Ir(m,E):r(m),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(L&&L.shapeFlag&1&&_&&!_.persisted){const{leave:R,delayLeave:y}=_,Z=L.el,z=()=>R(Z,I);y?y(Z,I,z):z()}else I()},Ir=(d,g)=>{let m;for(;d!==g;)m=x(d),r(d),d=m;r(g)},ml=(d,g,m)=>{const{bum:E,scope:_,job:k,subTree:L,um:I,m:R,a:y}=d;on(R),on(y),E&&Gs(E),_.stop(),k?(k.flags|=8,Le(L,d,g,m)):L&&(L.transition=d.vnode.transition,Le(L,d,g,m)),I&&Ee(I,g);const Z=()=>{d.isUnmounted=!0};Z.flags=16,Ee(Z,g)},rs=(d,g,m,E=!1,_=!1,k=0)=>{for(let L=k;L<d.length;L++)Le(d[L],g,m,E,_)},zs=d=>{if(d.shapeFlag&6)return zs(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const g=x(d.anchor||d.el),m=g&&g[go];return m?x(m):g},Dr=(d,g,m)=>{const E=d&&g._vnode?void 0:d&&d.component?d.component.uid:fc();aa(()=>{d==null?g._vnode&&Le(g._vnode,null,null,!0):F(g._vnode||null,d,g,null,null,null,m),g._vnode=d},E)},ns={p:F,um:Le,m:Ue,r:Os,mt:$,mc:V,pc:Q,pbc:N,n:zs,o:e};return{render:Dr,hydrate:void 0,createApp:Oa(Dr)}}function Li({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Rt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function tc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function yr(e,t,s=!1){const i=e.children,r=t.children;if(J(i)&&J(r))for(let n=0;n<i.length;n++){const o=i[n];let l=r[n];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[n]=_t(r[n]),l.el=o.el),!s&&l.patchFlag!==-2&&yr(o,l)),l.type===$i&&(l.patchFlag===-1&&(l=r[n]=_t(l)),l.el=o.el),l.type===Ye&&!l.el&&(l.el=o.el)}}function sc(e){const t=e.slice(),s=[0];let i,r,n,o,l;const a=e.length;for(i=0;i<a;i++){const p=e[i];if(p!==0){if(r=s[s.length-1],e[r]<p){t[i]=r,s.push(i);continue}for(n=0,o=s.length-1;n<o;)l=n+o>>1,e[s[l]]<p?n=l+1:o=l;p<e[s[n]]&&(n>0&&(t[i]=s[n-1]),s[n]=i)}}for(n=s.length,o=s[n-1];n-- >0;)s[n]=o,o=t[o];return s}function Lo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Lo(t)}function on(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Fs(e){if(e.placeholder)return e.placeholder;const t=e.component;if(t)return Fs(t.subTree);const s=e.suspense;return s&&s.activeBranch?Fs(s.activeBranch):null}const Mo=e=>e.__isSuspense,ic=Symbol("_deferredEnter");function rc(e,t){t&&t.pendingBranch?J(e)?t.effects.push(...e):t.effects.push(e):la(e)}const se=Symbol.for("v-fgt"),$i=Symbol.for("v-txt"),Ye=Symbol.for("v-cmt"),Xs=Symbol.for("v-stc"),Ut=[];let qe=null;function S(e=!1){Ut.push(qe=e?null:[])}function Oo(){Ut.pop(),qe=Ut[Ut.length-1]||null}let Cs=1;function ln(e,t=!1){Cs+=e,e<0&&qe&&t&&(qe.hasOnce=!0)}function zo(e){return e.dynamicChildren=Cs>0?qe||Ot:null,Oo(),Cs>0&&qe&&qe.push(e),e}function j(e,t,s,i,r,n){return zo(c(e,t,s,i,r,n,!0))}function rt(e,t,s,i,r){return zo(Je(e,t,s,i,r,!0))}function kr(e){return e?e.__v_isVNode===!0:!1}function ls(e,t){return e.type===t.type&&e.key===t.key}const No=({key:e})=>e??null,Ys=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?me(e)||je(e)||Y(e)?{i:Ne,r:e,k:t,f:!!s}:e:null);function c(e,t=null,s=null,i=0,r=null,n=e===se?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&No(t),ref:t&&Ys(t),scopeId:uo,slotScopeIds:null,children:s,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:n,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ne};return l?(oi(a,s),n&128&&e.normalize(a)):s&&(a.shapeFlag|=me(s)?8:16),Cs>0&&!o&&qe&&(a.patchFlag>0||n&6)&&a.patchFlag!==32&&qe.push(a),a}const Je=nc;function nc(e,t=null,s=null,i=0,r=null,n=!1){if((!e||e===_o)&&(e=Ye),kr(e)){const l=Yt(e,t,!0);return s&&oi(l,s),Cs>0&&!n&&qe&&(l.shapeFlag&6?qe[qe.indexOf(e)]=l:qe.push(l)),l.patchFlag=-2,l}if(vc(e)&&(e=e.__vccOpts),t){t=oc(t);let{class:l,style:a}=t;l&&!me(l)&&(t.class=ne(l)),pe(a)&&(wr(a)&&!J(a)&&(a=Ae({},a)),t.style=ve(a))}const o=me(e)?1:Mo(e)?128:yi(e)?64:pe(e)?4:Y(e)?2:0;return c(e,t,s,i,r,o,n,!0)}function oc(e){return e?wr(e)?Ae({},e):Bo(e)?Ae({},e[Vo]||e):e:null}function Yt(e,t,s=!1,i=!1){const{props:r,ref:n,patchFlag:o,children:l,transition:a}=e,p=t?ac(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&No(p),ref:t&&t.ref?s&&n?J(n)?n.concat(Ys(t)):[n,Ys(t)]:Ys(t):n,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!==se?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Yt(e.ssContent),ssFallback:e.ssFallback&&Yt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return a&&i&&_s(f,a.clone(f)),f}function lc(e=" ",t=0){return Je($i,null,e,t)}function et(e,t){const s=Je(Xs,null,e);return s.staticCount=t,s}function be(e="",t=!1){return t?(S(),rt(Ye,null,e)):Je(Ye,null,e)}function lt(e){return e==null||typeof e=="boolean"?Je(Ye):J(e)?Je(se,null,e.slice()):kr(e)?_t(e):Je($i,null,String(e))}function _t(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Yt(e)}function oi(e,t){let s=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(J(t))s=16;else if(typeof t=="object")if(i&65){const r=t.default;r&&(r._c&&(r._d=!1),oi(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!Bo(t)?t._ctx=Ne:r===3&&Ne&&(Ne.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Y(t)){if(i&65){oi(e,{default:t});return}t={default:t,_ctx:Ne},s=32}else t=String(t),i&64?(s=16,t=[lc(t)]):s=8;e.children=t,e.shapeFlag|=s}function ac(...e){const t={};for(let s=0;s<e.length;s++){const i=e[s];for(const r in i)if(r==="class")t.class!==i.class&&(t.class=ne([t.class,i.class]));else if(r==="style")t.style=ve([t.style,i.style]);else if(hi(r)){const n=t[r],o=i[r];o&&n!==o&&!(J(n)&&n.includes(o))?t[r]=n?[].concat(n,o):o:o==null&&n==null&&!xi(r)&&(t[r]=o)}else r!==""&&(t[r]=i[r])}return t}function it(e,t,s,i=null){Xe(e,t,7,[s,i])}const cc=Fo();let qo=0;function fc(){return qo}function pc(e,t,s){const i=e.type,r=(t?t.appContext:e.appContext)||cc,n={uid:qo++,vnode:e,type:i,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new jl(!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:Ro(i,r),emitsOptions:$o(i,r),emit:null,emitted:null,propsDefaults:he,inheritAttrs:i.inheritAttrs,ctx:he,data:he,props:he,attrs:he,slots:he,refs:he,setupState:he,setupContext:null,suspense:s,suspenseId:s?s.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 n.ctx={_:n},n.root=t?t.root:n,n.emit=Na.bind(null,n),e.ce&&e.ce(n),n}let Be=null;const uc=()=>Be||Ne;let li,Bs;{const e=vi(),t=(s,i)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(i),n=>{r.length>1?r.forEach(o=>o(n)):r[0](n)}};li=t("__VUE_INSTANCE_SETTERS__",s=>Be=s),Bs=t("__VUE_SSR_SETTERS__",s=>js=s)}const Is=e=>{const t=Be;return li(e),e.scope.on(),()=>{e.scope.off(),li(t)}},an=()=>{Be&&Be.scope.off(),li(null)};function Uo(e){return e.vnode.shapeFlag&4}let js=!1;function dc(e,t=!1,s=!1){t&&Bs(t);const{props:i,children:r}=e.vnode,n=Uo(e);Wa(e,i,n,t),Ja(e,r,s||t);const o=n?hc(e,t):void 0;return t&&Bs(!1),o}function hc(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ja);const{setup:i}=s;if(i){ut();const r=e.setupContext=i.length>1?gc(e):null,n=Is(e),o=Ps(i,e,0,[e.props,r]),l=Dn(o);if(dt(),n(),(l||e.sp)&&!ks(e)&&vo(e),l){if(o.then(an,an),t)return o.then(a=>{Bs(!0);try{cn(e,a,t)}finally{Bs(!1)}}).catch(a=>{_i(a,e,0,void 0,!0),e.ssrRender=(p,f)=>f("<!---->")});e.asyncDep=o}else cn(e,o)}else Ho(e)}function cn(e,t,s){Y(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=no(t)),Ho(e)}function Ho(e,t,s){const i=e.type;e.render||(e.render=i.render||ft);{const r=Is(e);ut();try{Ra(e)}finally{dt(),r()}}}const Vo=Symbol(),xc={get(e,t){return Te(e,"get",""),t===Vo?e:e[t]}};function gc(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,xc),slots:e.slots,emit:e.emit,expose:t}}function Si(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(no(Jl(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in As)return As[s](e)},has(t,s){return s in t||s in As}})):e.proxy}function wc(e,t=!0){return Y(e)?e.displayName||e.name:e.name||t&&e.__name}function vc(e){return Y(e)&&"__vccOpts"in e}const M=(e,t)=>sa(e,t,js),mc="3.5.45";let tr;const fn=typeof window<"u"&&window.trustedTypes;if(fn)try{tr=fn.createPolicy("vue",{createHTML:e=>e})}catch{}const Ko=tr?e=>tr.createHTML(e):e=>e,bc="http://www.w3.org/2000/svg",_c="http://www.w3.org/1998/Math/MathML",bt=typeof document<"u"?document:null,pn=bt&&bt.createElement("template"),yc={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,i)=>{const r=t==="svg"?bt.createElementNS(bc,e):t==="mathml"?bt.createElementNS(_c,e):s?bt.createElement(e,{is:s}):bt.createElement(e);return e==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:e=>bt.createTextNode(e),createComment:e=>bt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>bt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,i,r,n){const o=s?s.previousSibling:t.lastChild;if(r&&(r===n||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===n||!(r=r.nextSibling)););else{pn.innerHTML=Ko(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);const l=pn.content;if(i==="svg"||i==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},kc=Symbol("_vtc");function Ac(e,t,s){const i=e[kc];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const ai=Symbol("_vod"),Wo=Symbol("_vsh"),Fc={name:"show",beforeMount(e,{value:t},{transition:s}){e[ai]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):as(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:i}){!t!=!s&&(i?t?(i.beforeEnter(e),as(e,!0),i.enter(e)):i.leave(e,()=>{as(e,!1)}):as(e,t))},beforeUnmount(e,{value:t}){as(e,t)}};function as(e,t){e.style.display=t?e[ai]:"none",e[Wo]=!t}const $c=Symbol(""),Sc=/(?:^|;)\s*display\s*:/;function Ec(e,t,s){const i=e.style,r=me(s);let n=!1;if(s&&!r){if(t)if(me(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&hs(i,l,"")}else for(const o in t)s[o]==null&&hs(i,o,"");for(const o in s){o==="display"&&(n=!0);const l=s[o];l!=null?Cc(e,o,!me(t)&&t?t[o]:void 0,l)||hs(i,o,l):hs(i,o,"")}}else if(r){if(t!==s){const o=i[$c];o&&(s+=";"+o),i.cssText=s,n=Sc.test(s)}}else t&&e.removeAttribute("style");ai in e&&((!r||t!==s)&&(e[ai]=n?i.display:""),e[Wo]&&(i.display="none"))}const Vs=/\s*!important$/;function hs(e,t,s){if(J(s))s.forEach(i=>hs(e,t,i));else if(s==null&&(s=""),t.startsWith("--"))Vs.test(s)?e.setProperty(t,s.replace(Vs,""),"important"):e.setProperty(t,s);else{const i=Tc(e,t);Vs.test(s)?e.setProperty(Kt(i),s.replace(Vs,""),"important"):e[i]=s}}const un=["Webkit","Moz","ms"],Mi={};function Tc(e,t){const s=Mi[t];if(s)return s;let i=De(t);if(i!=="filter"&&i in e)return Mi[t]=i;i=wi(i);for(let r=0;r<un.length;r++){const n=un[r]+i;if(n in e)return Mi[t]=n}return t}function Cc(e,t,s,i){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&me(i)&&s===i}const dn="http://www.w3.org/1999/xlink";function hn(e,t,s,i,r,n=Tl(t)){i&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(dn,t.slice(6,t.length)):e.setAttributeNS(dn,t,s):s==null||n&&!zn(s)?e.removeAttribute(t):e.setAttribute(t,n?"":pt(s)?String(s):s)}function xn(e,t,s,i,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Ko(s):s);return}const n=e.tagName;if(t==="value"&&n!=="PROGRESS"&&!n.includes("-")){const l=n==="OPTION"?e.getAttribute("value")||"":e.value,a=s==null?e.type==="checkbox"?"on":"":String(s);(l!==a||!("_value"in e))&&(e.value=a),s==null&&e.removeAttribute(t),e._value=s;return}let o=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=zn(s):s==null&&l==="string"?(s="",o=!0):l==="number"&&(s=0,o=!0)}try{e[t]=s}catch{}o&&e.removeAttribute(r||t)}function Lt(e,t,s,i){e.addEventListener(t,s,i)}function Bc(e,t,s,i){e.removeEventListener(t,s,i)}const gn=Symbol("_vei");function jc(e,t,s,i,r=null){const n=e[gn]||(e[gn]={}),o=n[t];if(i&&o)o.value=i;else{const[l,a]=Ic(t);if(i){const p=n[t]=Mc(i,r);Lt(e,l,p,a)}else o&&(Bc(e,l,o,a),n[t]=void 0)}}const Rc=/(Once|Passive|Capture)$/,Pc=/^on:?(?:Once|Passive|Capture)$/;function Ic(e){let t,s;for(;(s=e.match(Rc))&&!Pc.test(e);)t||(t={}),e=e.slice(0,e.length-s[1].length),t[s[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Kt(e.slice(2)),t]}let Oi=0;const Dc=Promise.resolve(),Lc=()=>Oi||(Dc.then(()=>Oi=0),Oi=Date.now());function Mc(e,t){const s=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=s.attached)return;const r=s.value;if(J(r)){const n=i.stopImmediatePropagation;i.stopImmediatePropagation=()=>{n.call(i),i._stopped=!0};const o=r.slice(),l=[i];for(let a=0;a<o.length&&!i._stopped;a++){const p=o[a];p&&Xe(p,t,5,l)}}else Xe(r,t,5,[i])};return s.value=e,s.attached=Lc(),s}const wn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Oc=(e,t,s,i,r,n)=>{const o=r==="svg";t==="class"?Ac(e,i,o):t==="style"?Ec(e,s,i):hi(t)?xi(t)||jc(e,t,s,i,n):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):zc(e,t,i,o))?(xn(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&hn(e,t,i,o,n,t!=="value")):e._isVueCE&&(Nc(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!me(i)))?xn(e,De(t),i,n,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),hn(e,t,i,o))};function zc(e,t,s,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&wn(t)&&Y(s));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 wn(t)&&me(s)?!1:t in e}function Nc(e,t){const s=e._def.props;if(!s)return!1;const i=De(t);return Array.isArray(s)?s.some(r=>De(r)===i):Object.keys(s).some(r=>De(r)===i)}const ci=e=>{const t=e.props["onUpdate:modelValue"]||!1;return J(t)?s=>Gs(t,s):t};function qc(e){e.target.composing=!0}function vn(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const zt=Symbol("_assign"),Ks=Symbol("_initialValue");function zi(e,t,s){return t&&(e=e.trim()),s&&(e=fr(e)),e}const es={created(e,{modifiers:{lazy:t,trim:s,number:i}},r){e.parentNode&&(e.type==="text"?e[Ks]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Ks]=e.defaultValue.replace(/\r\n?/g,`
`))),e[zt]=ci(r);const n=i||r.props&&r.props.type==="number";Lt(e,t?"change":"input",o=>{o.target.composing||e[zt](zi(e.value,s,n))}),(s||n)&&Lt(e,"change",()=>{e.value=zi(e.value,s,n)}),t||(Lt(e,"compositionstart",qc),Lt(e,"compositionend",vn),Lt(e,"change",vn))},mounted(e,{value:t,modifiers:{trim:s,number:i}}){const r=t??"",n=e[Ks];delete e[Ks],n!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==n?e[zt](zi(e.value,s,i)):e.value=r},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:i,trim:r,number:n}},o){if(e[zt]=ci(o),e.composing)return;const l=(n||e.type==="number")&&!/^0\d/.test(e.value)?fr(e.value):e.value,a=t??"";if(l===a)return;const p=e.getRootNode();(p instanceof Document||p instanceof ShadowRoot)&&p.activeElement===e&&e.type!=="range"&&(i&&t===s||r&&e.value.trim()===a)||(e.value=a)}},Qo={deep:!0,created(e,t,s){e[zt]=ci(s),Lt(e,"change",()=>{const i=e._modelValue,r=Uc(e),n=e.checked,o=e[zt];if(J(i)){const l=Nn(i,r),a=l!==-1;if(n&&!a)o(i.concat(r));else if(!n&&a){const p=[...i];p.splice(l,1),o(p)}}else if(Xt(i)){const l=new Set(i);n?l.add(r):l.delete(r),o(l)}else o(Zo(e,n))})},mounted:mn,beforeUpdate(e,t,s){e[zt]=ci(s),mn(e,t,s)}};function mn(e,{value:t,oldValue:s},i){e._modelValue=t;let r;if(J(t))r=Nn(t,i.props.value)>-1;else if(Xt(t))r=t.has(i.props.value);else{if(t===s)return;r=ss(t,Zo(e,!0))}e.checked!==r&&(e.checked=r)}function Uc(e){return"_value"in e?e._value:e.value}function Zo(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const Hc=["ctrl","shift","alt","meta"],Vc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Hc.some(s=>e[`${s}Key`]&&!t.includes(s))},Go=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),i=t.join(".");return s[i]||(s[i]=((r,...n)=>{for(let o=0;o<t.length;o++){const l=Vc[t[o]];if(l&&l(r,t))return}return e(r,...n)}))},Kc=Ae({patchProp:Oc},yc);let bn;function Wc(){return bn||(bn=Ya(Kc))}const Qc=((...e)=>{const t=Wc().createApp(...e),{mount:s}=t;return t.mount=i=>{const r=Gc(i);if(!r)return;const n=t._component;!Y(n)&&!n.render&&!n.template&&(n.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=s(r,!1,Zc(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function Zc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Gc(e){return me(e)?document.querySelector(e):e}const Jo="https://cdn.chuanbota.com/zhijiu-xin/design/svg/31_403.svg",Xo="https://cdn.chuanbota.com/zhijiu-xin/design/svg/31_407.svg",Jc="https://cdn.chuanbota.com/zhijiu-xin/design/svg/2_749.svg",Xc="https://cdn.chuanbota.com/zhijiu-xin/design/svg/2_759.svg",Yc={BASE_URL:"https://cdn.chuanbota.com/zhijiu-xin/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_API_BASE_URL:"https://api.zhijiu.org.cn",VITE_CDN_BASE:"https://cdn.chuanbota.com/zhijiu-xin/",VITE_H5_BASE:"https://m.zhijiu.org.cn",VITE_USE_MOCK:"false",VITE_WECHAT_APPID:"wxab10a8a4056f8959",VITE_WX_MINI_ORIGINAL_ID:"gh_3b400d47e7c4"},ef="https://api.zhijiu.org.cn".replace(/\/$/,""),tf="/api.v1",fi="token",Yo="forums_token",sr="forums_return",ir="forums_pending_sheet",sf="VITE_WECHAT_APPID";class xs extends Error{code;constructor(t,s){super(s),this.name="ApiError",this.code=t}}function Ht(){return localStorage.getItem(fi)||""}function rf(e){e?(localStorage.setItem(fi,e),localStorage.removeItem(Yo)):localStorage.removeItem(fi)}function el(){localStorage.removeItem(fi),localStorage.removeItem(Yo)}function nf(e,t){return typeof t=="number"&&Number.isInteger(t)&&/id$/i.test(e)&&Math.abs(t)>Number.MAX_SAFE_INTEGER/1e3||typeof t=="number"&&Number.isInteger(t)&&Math.abs(t)>Number.MAX_SAFE_INTEGER?String(t):t}function of(e,t){return t===401||e===401}function tl(e){const t=Yc[sf],s=e||location.href;localStorage.setItem(sr,s);const i=encodeURIComponent(s),r=String(Date.now()),n=`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${t}&redirect_uri=${i}&response_type=code&scope=snsapi_base&state=${r}#wechat_redirect`;return location.replace(n),!0}function lf(){const e=localStorage.getItem(sr)||"/";return localStorage.removeItem(sr),e}function af(e){e&&localStorage.setItem(ir,e)}function _n(){const e=localStorage.getItem(ir)||"";return localStorage.removeItem(ir),e}async function gs(e,t={}){const{method:s="GET",query:i,body:r,auth:n=!1}=t;let o=`${ef}${tf}${e}`;if(i){const x=new URLSearchParams;Object.entries(i).forEach(([C,F])=>{F!=null&&F!==""&&x.append(C,String(F))});const w=x.toString();w&&(o+=`?${w}`)}const l={Accept:"application/json"};r!==void 0&&(l["Content-Type"]="application/json");const a=Ht();n&&a&&(l.Authorization=`Bearer ${a}`);let p;try{p=await fetch(o,{method:s,headers:l,body:r===void 0?void 0:JSON.stringify(r),credentials:"same-origin"})}catch(x){throw new xs(-1,`网络请求失败: ${x.message}`)}const f=await p.text();let h;try{h=JSON.parse(f,nf)}catch{throw new xs(p.status,`响应解析失败(${p.status}): ${f.slice(0,120)}`)}if(of(h.code,p.status)){if(!t._retried&&!Ht()&&tl(),!t._retried)return el(),gs(e,{...t,_retried:!0});throw new xs(401,"请先登录")}if(h.code!==0)throw new xs(h.code,h.message||"请求失败");return h.data}const ce={get:(e,t,s=!1)=>gs(e,{method:"GET",query:t,auth:s}),post:(e,t,s=!0)=>gs(e,{method:"POST",body:t,auth:s}),put:(e,t,s=!0)=>gs(e,{method:"PUT",body:t,auth:s}),del:(e,t,s=!0)=>gs(e,{method:"DELETE",body:t,auth:s})},de={login:e=>ce.post("/forums/login",{code:e},!1),questions:e=>ce.get("/forums/questions",e),question:e=>ce.get(`/forums/question/${e}`),answers:(e,t)=>ce.get(`/forums/question/${e}/answers`,t),replies:(e,t)=>ce.get(`/forums/answer/${e}/replies`,t),similar:(e,t=5)=>ce.get("/forums/similar",{question:e,limit:t}),tags:(e=20)=>ce.get("/forums/tags",{limit:e}),userProfile:e=>ce.get(`/forums/user/${e}/profile`),userAnswers:(e,t)=>ce.get(`/forums/user/${e}/answers`,t),wxJsConfig:e=>ce.get("/open/wechat/jssdk",{url:e}),createQuestion:e=>ce.post("/forums/questions",e),createAnswer:(e,t)=>ce.post(`/forums/question/${e}/answers`,{content:t}),createReply:(e,t,s,i)=>ce.post(`/forums/answer/${e}/replies`,{content:t,parent_id:s||0,reply_to_user_id:i||0}),vote:(e,t,s)=>ce[s?"post":"del"]("/forums/vote",{target_type:e,target_id:t}),favorite:(e,t,s)=>ce[s?"post":"del"]("/forums/favorite",{target_type:e,target_id:t}),myQuestions:e=>ce.get("/forums/my/questions",e,!0),myAnswers:e=>ce.get("/forums/my/answers",e,!0),myReactions:e=>ce.post("/forums/my/reactions",e),myVotes:e=>ce.get("/forums/my/votes",e,!0),myReceivedVotes:e=>ce.get("/forums/my/received-votes",e,!0),myFavorites:e=>ce.get("/forums/my/favorites",e,!0),myReceived:e=>ce.get("/forums/my/received-questions",e,!0),myStats:()=>ce.get("/forums/my/stats",void 0,!0)},Ni={current:()=>ce.get("/user/current",void 0,!0),updateCurrent:e=>ce.put("/user/current",e),bindCreator:(e,t)=>ce.post("/forums/user/bind-creator",{account:e,password:t})},cf={uploadToken:(e,t="avatar")=>ce.get("/storage/upload/token",{file_name:e,from_type:t},!0)},ff="https://upload.qiniup.com";function pf(e){const t=["image/png","image/jpeg","image/webp"];return!e.type||!t.includes(e.type)?"仅支持 PNG / JPG / WEBP 图片":e.size>5*1024*1024?"图片不能超过 5MB":null}async function uf(e){const t=e.name&&e.name.match(/\.[^.]+$/)?.[0]||".png",s=`avatar-${Date.now()}${t}`;let i;try{i=await cf.uploadToken(s,"avatar")}catch(n){return{ok:!1,error:`获取上传凭证失败: ${n.message}`}}if(!i?.token||!i?.key)return{ok:!1,error:"上传凭证无效"};const r=new FormData;r.append("token",i.token),r.append("key",i.key),r.append("file",e,s);try{const n=await fetch(ff,{method:"POST",body:r}),o=await n.text();let l;try{l=JSON.parse(o)}catch{l={error:o.slice(0,120)}}return!n.ok||l.error||!l.key&&!l.hash?{ok:!1,error:l.error||`上传失败(${n.status})`}:{ok:!0,url:i.full_path}}catch(n){return{ok:!1,error:`上传失败: ${n.message}`}}}const u=bi({creatorBound:!1,unreplied:0,homeTab:"recent",topicTab:"recent",page:1,myListTab:0,writeText:"",replies:[],likedAnswers:[],likedReplies:[],favedAnswers:[],favedQuestion:!1,likedPosts:[],favedPosts:[],loggedIn:!1,user:null,authError:"",questions:[],questionTotal:0,listLoading:!0,currentTag:"",detail:null,answers:[],answerTotal:0,repliesByAnswer:{},detailLoading:!0,focusAnswerId:"",askTitle:"",askAnonymous:!0,askTargetId:"",askSimilar:[],similarLoading:!0,created:null,myStats:null,myList:[],myListTotal:0,myListLoading:!0,tags:[],tagsLoading:!0,profileUserId:"",profile:null,profileAnswers:[],profileLoading:!0,editNickName:"",editAvatar:"",profileSaving:!1,avatarUploading:!1,bindAccount:"",bindPassword:"",bindSaving:!1}),df={recent:"latest",liked:"most_liked",unanswered:"unanswered"};function $e(e){return e instanceof xs||e instanceof Error?e.message:"请求失败"}const re={async bootstrap(e){if(e)try{const t=await de.login(e);rf(t.token||""),u.user=t,u.loggedIn=!0}catch(t){u.authError=$e(t)}else Ht()&&(u.loggedIn=!0);Ht()&&await this.loadCurrentUser()},async loadCurrentUser(){try{const e=await Ni.current(),t={...e,user_id:e.user_id||e.id||"",bind_user_id:e.bind_user_id||"0"};u.user=t,u.loggedIn=!0,u.creatorBound=Number(t.bind_user_id||0)>0}catch{}},async bindCreator(e,t){try{const s=await Ni.bindCreator(e,t);return u.creatorBound=!0,u.user&&(u.user.bind_user_id=s.bind_user_id),null}catch(s){return $e(s)}},initProfile(){u.editNickName=u.user?.nick_name||"",u.editAvatar=u.user?.avatar||""},async uploadProfileAvatar(e){const t=pf(e);if(t)return t;u.avatarUploading=!0;try{const s=await uf(e);return!s.ok||!s.url?s.error||"头像上传失败":(u.editAvatar=s.url,null)}finally{u.avatarUploading=!1}},async saveProfile(){const e=u.editNickName.trim();if(!e)return"昵称不能为空";if(e.length>20)return"昵称不能超过 20 个字";u.profileSaving=!0;try{return await Ni.updateCurrent({nick_name:e,avatar:u.editAvatar}),u.user&&(u.user.nick_name=e,u.user.avatar=u.editAvatar),null}catch(t){return $e(t)}finally{u.profileSaving=!1}},async loadQuestions(e){u.listLoading=!0;const t=e!==void 0?e:u.currentTag;u.currentTag=t;try{const s=df[u.homeTab]||"latest",i=await de.questions({sort:s,tag:t||void 0,page:u.page,limit:10});u.questions=i.list||[],u.questionTotal=i.total||0}catch(s){u.authError=$e(s),u.questions=[]}finally{u.listLoading=!1}},async loadDetail(e){u.detailLoading=!0;try{u.detail=await de.question(e),await this.loadAnswers(e),this.loadMyReactions(u.answers.map(t=>t.id),e)}catch(t){u.authError=$e(t)}finally{u.detailLoading=!1}},async loadAnswers(e){try{const t=await de.answers(e,{sort:"likes",filter:"all",page:1,limit:50});u.answers=t.list||[],u.answerTotal=t.total||0}catch(t){u.authError=$e(t)}},async loadReplies(e){if(!u.repliesByAnswer[e])try{const s=(await de.replies(e,{page:1,limit:50})).list||[];u.repliesByAnswer[e]=s,this.loadMyReactions([],void 0,s.map(i=>i.id))}catch(t){u.authError=$e(t)}},async findSimilar(e){u.similarLoading=!0;try{const t=await de.similar(e,5);u.askSimilar=t.list||[]}catch(t){u.authError=$e(t),u.askSimilar=[]}finally{u.similarLoading=!1}},async submitQuestion(e=0){try{const t=await de.createQuestion({title:u.askTitle.trim(),is_anonymous:u.askAnonymous?1:0,target_user_id:u.askTargetId||"0",force:e});return u.created=t,t}catch(t){return u.authError=$e(t),null}},async submitAnswer(e,t){try{return await de.createAnswer(e,t),await this.loadAnswers(e),!0}catch(s){return u.authError=$e(s),!1}},async submitReply(e,t,s,i){try{return await de.createReply(e,t,s,i),delete u.repliesByAnswer[e],await this.loadReplies(e),u.detail&&await this.loadAnswers(u.detail.id),!0}catch(r){return u.authError=$e(r),!1}},async toggleReplyVote(e,t){try{const s=await de.vote(3,e,t),i=String(e),r=u.likedReplies,n=r.indexOf(i);t&&n<0?r.push(i):!t&&n>=0&&r.splice(n,1);for(const o of Object.keys(u.repliesByAnswer)){const l=(u.repliesByAnswer[o]||[]).find(a=>String(a.id)===i);l&&(l.upvote_count=s.count)}for(const o of u.myList)o.target_type===3&&String(o.target_id)===i&&(o.upvote_count=s.count);return s}catch(s){return u.authError=$e(s),null}},async toggleVote(e,t,s){try{return await de.vote(e,t,s)}catch(i){return u.authError=$e(i),null}},async toggleFavorite(e,t,s){try{return await de.favorite(e,t,s),!0}catch(i){return u.authError=$e(i),!1}},async loadMyStats(){try{u.myStats=await de.myStats()}catch(e){u.authError=$e(e)}},async loadMyReactions(e,t,s=[]){if(!(!Ht()||e.length===0&&s.length===0))try{const i=await de.myReactions({answer_ids:e,reply_ids:s,question_id:t});e.length&&(u.likedAnswers=(i.liked||[]).map(String)),s.length&&(u.likedReplies=(i.liked_replies||[]).map(String)),e.length&&(u.favedAnswers=(i.favorited||[]).map(String)),t&&(u.favedQuestion=!!i.fav_question)}catch{}},async loadMyList(e,t=1,s=1){u.myListLoading=!0;try{const i={page:t,limit:10};let r;switch(e){case"questions":r=await de.myQuestions(i);break;case"answers":r=await de.myAnswers(i);break;case"votes":r=await de.myVotes({...i,target_type:s});break;case"likes":r=await de.myReceivedVotes({...i,target_type:s});break;case"favorites":r=await de.myFavorites({...i,target_type:s});break;case"received":r=await de.myReceived(i);break;default:r=await de.myQuestions(i)}u.myList=r.list||[],u.myListTotal=r.total||0,e==="answers"?this.loadMyReactions(u.myList.map(n=>n.id)):e==="favorites"&&s===2?this.loadMyReactions(u.myList.map(n=>n.target_id||n.id)):e==="likes"&&s===3?this.loadMyReactions([],void 0,u.myList.map(n=>n.target_id||n.id)):e==="likes"||e==="votes"&&s===2?this.loadMyReactions(u.myList.map(n=>n.target_id||n.id)):e==="votes"&&s===3&&this.loadMyReactions([],void 0,u.myList.map(n=>n.target_id||n.id))}catch(i){u.authError=$e(i),u.myList=[]}finally{u.myListLoading=!1}},async loadUnrepliedCount(){try{const e=await de.myReceived({page:1,limit:50});u.unreplied=(e.list||[]).filter(t=>!t.answer_count).length}catch{u.unreplied=0}},async loadTags(){u.tagsLoading=!0;try{const e=await de.tags(20);u.tags=e.list||[]}catch{u.tags=[]}finally{u.tagsLoading=!1}},async loadProfile(e){u.profileUserId=e,u.profile=null,u.profileAnswers=[],u.profileLoading=!0;try{const[t,s]=await Promise.all([de.userProfile(e),de.userAnswers(e,{page:1,limit:20})]);u.profile=t,u.profileAnswers=s.list||[],this.loadMyReactions(u.profileAnswers.map(i=>i.id))}catch(t){u.authError=$e(t)}finally{u.profileLoading=!1}},logout(){el(),u.loggedIn=!1,u.user=null},consumeReturnUrl(){return lf()}},hf={class:"screen relative w-full bg-[#F5EFE3] flex flex-col",style:{"min-height":"100vh","padding-bottom":"104px"}},xf={class:"flex flex-row justify-between items-center gap-[8px] pl-[16px] pr-[16px] pt-[20px] pb-[8px] bg-[#FFFAF0] overflow-hidden w-full h-[60px]"},gf={class:"flex flex-row justify-center items-center gap-[2px] pl-[3px] pr-[3px] pt-[3px] pb-[3px] border border-[#E4DBC8] rounded-full overflow-hidden w-fit h-[34px]"},wf={class:"flex flex-col justify-start items-start bg-[#FFFAF0] w-full"},vf={class:"flex flex-col justify-start items-start pb-[3px] bg-[#FFFAF0] overflow-hidden w-full h-fit"},mf={class:"flex flex-row justify-between items-center gap-[10px] pl-[12px] pr-[12px] pt-[6px] pb-[6px] bg-[#F5EFE3] overflow-hidden w-full h-[46px]"},bf={class:"flex flex-col justify-start items-end gap-[3px] overflow-hidden w-fit h-fit"},_f={class:"whitespace-pre-wrap font-mono text-[12px] font-[500] text-[#6F2929] w-fit h-fit"},yf=["data-action"],kf={class:"whitespace-pre-wrap font-serif text-[14px] font-[600] text-[#2A2421] leading-[20px] w-full h-fit"},Af={class:"flex flex-row justify-between items-center overflow-hidden w-full h-[13px]"},Ff={class:"flex flex-row justify-start items-center gap-[4px] overflow-hidden w-fit h-fit"},$f={key:1,class:"relative overflow-hidden w-[1px] h-[1px]"},Sf={style:{width:"84px"},class:"flex flex-row justify-start items-center gap-[4px] overflow-hidden h-fit"},Ef={class:"whitespace-pre-wrap font-mono text-[10px] font-[400] text-[#7A716A] w-fit h-fit"},Tf={key:1,class:"flex flex-col justify-center items-center py-[80px] w-full"},Cf={class:"whitespace-pre-wrap font-serif text-[13px] font-[400] text-[#7A716A] w-fit h-fit"},Bf={class:"flex flex-row justify-center items-center gap-[10px] pt-[12px] pb-[12px] bg-[#FFFAF0] overflow-hidden w-full h-fit"},jf={class:"whitespace-pre-wrap font-mono text-[10px] font-[500] text-[#7A716A] w-fit h-fit"},Rf=Re({__name:"HomeScreen",setup(e){const t=M(()=>u.homeTab),s=M(()=>u.page),i=M(()=>u.questions),r=M(()=>u.questionTotal),n=M(()=>u.listLoading),o=M(()=>Math.max(1,Math.ceil(r.value/10)));function l(a){return a>=1e3?`${(a/1e3).toFixed(1)}k`:String(a)}return(a,p)=>(S(),j("section",hf,[c("div",xf,[p[0]||(p[0]=c("div",{"data-action":"go:sidebar",class:"flex flex-row justify-center items-center gap-[7px] pl-[10px] pr-[10px] border border-[#E4DBC8] rounded-full overflow-hidden w-fit h-[34px]"},[c("div",{class:"whitespace-pre-wrap font-mono text-[13px] font-[500] text-[#6F2929] w-fit h-fit"},"☰"),c("div",{class:"whitespace-pre-wrap font-serif text-[12px] font-[600] text-[#6F2929] w-fit h-fit"},"目录"),c("div",{class:"whitespace-pre-wrap font-mono text-[13px] font-[500] text-[#B8924A] w-fit h-fit"},"›")],-1)),c("div",gf,[c("div",{"data-action":"tab:recent",class:"flex flex-row justify-center items-center pl-[12px] pr-[12px] rounded-full overflow-hidden w-fit h-[28px] cursor-pointer",style:ve(t.value==="recent"?"background:#9A3B3B":"")},[c("div",{class:ne(["whitespace-pre-wrap font-serif text-[11px] w-fit h-fit",t.value==="recent"?"font-[600] text-[#FFFAF0]":"font-[400] text-[#7A716A]"])},"最近更新",2)],4),c("div",{"data-action":"tab:liked",class:"flex flex-row justify-center items-center pl-[12px] pr-[12px] rounded-full overflow-hidden w-fit h-[28px] cursor-pointer",style:ve(t.value==="liked"?"background:#9A3B3B":"")},[c("div",{class:ne(["whitespace-pre-wrap font-serif text-[11px] w-fit h-fit",t.value==="liked"?"font-[600] text-[#FFFAF0]":"font-[400] text-[#7A716A]"])},"最多点赞",2)],4),c("div",{"data-action":"tab:unanswered",class:"flex flex-row justify-center items-center pl-[12px] pr-[12px] rounded-full overflow-hidden w-fit h-[28px] cursor-pointer",style:ve(t.value==="unanswered"?"background:#9A3B3B":"")},[c("div",{class:ne(["whitespace-pre-wrap font-serif text-[11px] w-fit h-fit",t.value==="unanswered"?"font-[600] text-[#FFFAF0]":"font-[400] text-[#7A716A]"])},"待回答",2)],4)])]),p[7]||(p[7]=c("div",{class:"relative bg-[#E4DBC8] overflow-hidden w-full h-[1px]"},null,-1)),p[8]||(p[8]=c("div",{class:"relative bg-[#F5EFE3] overflow-hidden w-full h-[6px]"},null,-1)),c("div",wf,[c("div",vf,[c("div",mf,[p[1]||(p[1]=et('<div class="flex flex-row justify-start items-center gap-[10px] overflow-hidden w-fit h-fit"><div class="relative bg-[#9A3B3B] rounded-[1px] overflow-hidden w-[3px] h-[28px]"></div><div class="flex flex-col justify-start items-start gap-[4px] overflow-hidden w-fit h-fit"><div class="flex flex-row justify-start items-center gap-[7px] overflow-hidden w-fit h-fit"><div class="whitespace-pre-wrap font-serif text-[18px] font-[600] text-[#6F2929] w-fit h-fit">最新问答</div></div></div></div>',1)),c("div",bf,[c("div",_f,A(r.value)+" 问",1)])]),p[2]||(p[2]=c("div",{class:"relative bg-[#E4DBC8] overflow-hidden w-full h-[1px]"},null,-1))]),i.value.length?(S(!0),j(se,{key:0},Ce(i.value,f=>(S(),j(se,{key:String(f.id)},[c("div",{"data-action":`openquestion:${f.id}`,class:"list-card flex flex-col justify-start items-start gap-[4px] pl-[12px] pr-[12px] pt-[8px] pb-[8px] bg-[#FFFAF0] overflow-hidden w-full h-fit"},[c("div",kf,A(f.title),1),c("div",Af,[c("div",Ff,[f.ai_answered===1?(S(),j(se,{key:0},[p[3]||(p[3]=c("img",{class:"w-[10px] h-[10px] shrink-0 block",src:Jo,alt:""},null,-1)),p[4]||(p[4]=c("div",{class:"whitespace-pre-wrap font-serif text-[9px] font-[600] text-[#9A3B3B] w-fit h-fit"},"有 AI 回答",-1))],64)):(S(),j("div",$f))]),c("div",Sf,[p[5]||(p[5]=c("img",{class:"w-[10px] h-[10px] shrink-0 block",src:Xo,alt:""},null,-1)),c("div",Ef,A(l(f.upvote_count))+" · "+A(f.answer_count)+" 答",1)])])],8,yf),p[6]||(p[6]=c("div",{class:"relative bg-[#E4DBC8] overflow-hidden w-full h-[1px]"},null,-1))],64))),128)):(S(),j("div",Tf,[c("div",Cf,A(n.value?"加载中…":"还没有问答，来提第一个问题吧"),1)])),c("div",Bf,[c("div",{"data-action":"page:prev",class:ne(["flex flex-row justify-center items-center pl-[14px] pr-[14px] h-[32px]",s.value>1?"cursor-pointer":"is-disabled"]),style:ve(s.value>1?"border:1px solid #B8924A;border-radius:8px;background:#FFFAF0":"border:1px solid #E4DBC8;border-radius:8px;background:#F5EFE3")},[c("div",{class:ne(["whitespace-pre-wrap font-serif text-[11px] w-fit h-fit",s.value>1?"font-[600] text-[#9A3B3B]":"font-[400] text-[#7A716A]"])},"‹ 上一页",2)],6),c("div",jf,A(s.value)+" / "+A(o.value),1),c("div",{"data-action":"page:next",class:ne(["flex flex-row justify-center items-center pl-[14px] pr-[14px] h-[32px]",s.value<o.value?"cursor-pointer":"is-disabled"]),style:ve(s.value<o.value?"border:1px solid #B8924A;border-radius:8px;background:#FFFAF0":"border:1px solid #E4DBC8;border-radius:8px;background:#F5EFE3")},[c("div",{class:ne(["whitespace-pre-wrap font-serif text-[11px] w-fit h-fit",s.value<o.value?"font-[600] text-[#9A3B3B]":"font-[400] text-[#7A716A]"])},"下一页 ›",2)],6)])]),p[9]||(p[9]=et('<div class="fixed bottom-0 left-0 right-0 z-20 flex flex-row justify-around items-center bg-[#FFFAF0] w-full h-[64px]"><div data-action="go:home" class="flex flex-col justify-center items-center gap-[4px] overflow-hidden w-[64px] h-[54px]"><img class="w-[20px] h-[20px] shrink-0 block" src="'+Jc+'" alt=""><div class="whitespace-pre-wrap font-serif text-[10px] font-[600] text-[#9A3B3B] w-fit h-fit">首页</div></div><div class="flex flex-row justify-center items-center pl-[5px] pr-[5px] pt-[5px] pb-[5px] bg-[#FFFAF0] border border-[#B8924A] rounded-[14px] overflow-hidden w-[124px] h-[44px]"><div data-action="go:ask" class="flex flex-row justify-center items-center gap-[6px] pl-[8px] pr-[8px] bg-[#9A3B3B] rounded-[9px] overflow-hidden w-[114px] h-[34px]"><div class="whitespace-pre-wrap font-serif text-[12px] font-[600] text-[#FFFAF0] w-fit h-fit">提问 · 搜索</div></div></div><div data-action="go:me" class="flex flex-col justify-center items-center gap-[4px] overflow-hidden w-[64px] h-[54px]"><img class="w-[20px] h-[20px] shrink-0 block" src="'+Xc+'" alt=""><div class="whitespace-pre-wrap font-serif text-[10px] font-[400] text-[#7A716A] w-fit h-fit">我的</div></div></div>',1))]))}}),Pf="https://cdn.chuanbota.com/zhijiu-xin/design/svg/31_392.svg",If="https://cdn.chuanbota.com/zhijiu-xin/design/svg/31_366.svg";function Ar(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Wt=Ar();function sl(e){Wt=e}var Mt={exec:()=>null};function Pt(e){let t=[];return s=>{let i=Math.max(0,Math.min(3,s-1)),r=t[i];return r||(r=e(i),t[i]=r),r}}function ee(e,t=""){let s=typeof e=="string"?e:e.source,i={replace:(r,n)=>{let o=typeof n=="string"?n:n.source;return o=o.replace(ke.caret,"$1"),s=s.replace(r,o),i},getRegex:()=>new RegExp(s,t)};return i}var il=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),ke={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,listInterruptsParagraph:/^ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+)[ \t]*)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,blockquoteMarkerWhitespace:/^( {0,3}>)(\t[ \t]*)/gm,nestedBlockMarker:/^ {0,3}(?:(?:[*+-]|\d{1,9}[.)])(?: |$)|> ?)/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\][ \t]+\S/,listReplaceTask:/^\[[ xX]\][ \t]+/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/,numericCharacterReferenceOrAmpersand:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Pt(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`)),hrRegex:Pt(e=>new RegExp(`^ {0,${e}}((?:-[ 	]*){3,}|(?:_[ 	]*){3,}|(?:\\*[ 	]*){3,})(?:\\n+|$)`)),fencesBeginRegex:Pt(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Pt(e=>new RegExp(`^ {0,${e}}#{1,6}(?:\\s|$)`)),pedanticHeadingBeginRegex:Pt(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Pt(e=>new RegExp(`^ {0,${e}}(?:</?(?:${$r})(?:[ \\t]+|$|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`,"i")),blockquoteBeginRegex:Pt(e=>new RegExp(`^ {0,${e}}>`)),nestedContainerMarkers:/^(?: {0,3}(?:(?:[*+-]|\d{1,9}[.)])[ \t]+|>[ \t]?))+/},Df=/^(?:[ \t]*(?:\n|$))+/,Lf=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Mf=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}(?:(?=`)\1`*|(?=~)\1~*) *(?=\n|$)|$)/,Ds=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Of=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Fr=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,$r="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",Ls=ee(" {0,3}(?:</?(?:tag)(?:[ \\t]+|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",$r).getRegex(),rl=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+)[ \t]*(?:\n+|$)/,nl=ee(rl).replace(/bull/g,Fr).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/\|table/g,"").replace(/html/g,Ls).getRegex(),zf=ee(rl).replace(/bull/g,Fr).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).replace(/html/g,Ls).getRegex(),Sr=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Nf=/^[^\n]+/,Er=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\\n]|\n(?![ \t]*\n))+/,qf=ee(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<(?:\\.|[^\n<>\\])*>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Er).replace("title",/(?:"(?:\\[\s\S]|[^"\\])*"|'(?:\\[\s\S]|[^'\\\n]|\n(?!\n))*'|\((?:\\[\s\S]|[^()\\])*\))/).getRegex(),Uf=ee(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Fr).getRegex(),Tr=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Hf=ee("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?:[ \\t]+|\\n|/?>|$)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!(?:script|pre|style|textarea)(?![a-z0-9-]))([a-z][a-z0-9-]*)(?:attribute)*?[ \\t]*/?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",Tr).replace("tag",$r).replace("attribute",/[ \t]+[a-zA-Z:_][\w.:-]*(?:[ \t]*=[ \t]*"[^"\n]*"|[ \t]*=[ \t]*'[^'\n]*'|[ \t]*=[ \t]*[^\s"'=<>`]+)?/).getRegex(),ol=e=>ee(Sr).replace("hr",Ds).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",e).replace("html",Ls).getRegex(),Vf=ol(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Kf=ol(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Wf=ee(/^( {0,3}> ?(?:(?![ \t]*(?:\n|$))(paragraph)|[^\n]*)(?:\n|$))+/).replace("paragraph",Kf).getRegex(),Cr={blockquote:Wf,code:Lf,def:qf,fences:Mf,heading:Of,hr:Ds,html:Hf,lheading:nl,list:Uf,newline:Df,paragraph:Vf,table:Mt,text:Nf},yn=ee("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ds).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html",Ls).getRegex(),Qf={...Cr,lheading:zf,table:yn,paragraph:ee(Sr).replace("hr",Ds).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",yn).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html",Ls).getRegex()},Zf={...Cr,html:ee(`^ *(?:comment(?: *\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1>(?: *\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?>(?: *\\n{2,}|\\s*$))`).replace("comment",Tr).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:Mt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ee(Sr).replace("hr",Ds).replace("heading",` *#{1,6} *[^
]`).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").replace("lheading",nl).getRegex()},Gf=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Jf=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ll=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,Xf=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,xt=/[\p{P}\p{S}]/u,is=/[\s\p{P}\p{S}]/u,Ms=/[^\s\p{P}\p{S}]/u,Yf=ee(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,is).getRegex(),ep=/[\p{Pi}\p{Ps}"']/u,al=/(?!~)[\p{P}\p{S}]/u,tp=/(?!~)[\s\p{P}\p{S}]/u,sp=/(?:[^\s\p{P}\p{S}]|~)/u,ip=ee(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",il?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),cl=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,rp=ee(cl,"u").replace(/punct/g,xt).getRegex(),np=ee(cl,"u").replace(/punct/g,al).getRegex(),op=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,lp=ee(op,"u").replace(/openQuote/g,ep).replace(/punct/g,xt).getRegex(),fl="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ap=ee(fl,"gu").replace(/notPunctSpace/g,Ms).replace(/punctSpace/g,is).replace(/punct/g,xt).getRegex(),cp=ee(fl,"gu").replace(/notPunctSpace/g,sp).replace(/punctSpace/g,tp).replace(/punct/g,al).getRegex(),fp="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",pp=ee(fp,"gu").replace(/notPunctSpace/g,Ms).replace(/punctSpace/g,is).replace(/punct/g,xt).getRegex(),up=ee("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ms).replace(/punctSpace/g,is).replace(/punct/g,xt).getRegex(),dp="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",hp=ee(dp,"gu").replace(/notPunctSpace/g,Ms).replace(/punctSpace/g,is).replace(/punct/g,xt).getRegex(),xp=ee(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,xt).getRegex(),gp="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",wp=ee(gp,"gu").replace(/notPunctSpace/g,Ms).replace(/punctSpace/g,is).replace(/punct/g,xt).getRegex(),vp=ee(/\\(punct)/,"gu").replace(/punct/g,xt).getRegex(),mp=ee(/(`+)(?:[^`]|[^`][\s\S]*?[^`])\1(?!`)|`+|\\(punct)/,"gu").replace(/punct/g,xt).getRegex(),bp=ee(/^<(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(),_p=ee(Tr).replace("(?:-->|$)","-->").getRegex(),yp=ee("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",_p).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),pl=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,pi=ee(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",pl).getRegex(),kp=ee(/^!?\[(label)\]\([ \t\n]*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?[ \t\n]*\)/).replace("label",pi).replace("href",/<(?:\\.|[^\n<>\\])*>|(?!<)[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\[\s\S]|[^"\\])*"|'(?:\\[\s\S]|[^'\\])*'|\((?:\\[\s\S]|[^)\\])*\)/).getRegex(),Ap=ee(/^!?\[(label)\]\[(ref)\]/).replace("label",pi).replace("ref",Er).getRegex(),Fp=ee(/^!?\[(ref)\](?:\[\])?/).replace("ref",Er).getRegex(),kn=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,$p=ee(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",pl).getRegex(),Sp=ee("reflink|nolink(?!\\()","g").replace("reflink",ee(/^!?\[(label)\]\[(ref)\]/).replace("label",$p).replace("ref",kn).getRegex()).replace("nolink",ee(/^!?\[(ref)\](?:\[\])?/).replace("ref",kn).getRegex()).getRegex(),An=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ep=/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/,Tp=ee(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,Ep).getRegex(),Br={_backpedal:Mt,anyPunctuation:vp,anyPunctuationOutsideCode:mp,autolink:bp,blockSkip:ip,br:ll,code:Jf,del:Mt,delLDelim:Mt,delRDelim:Mt,emStrongLDelim:rp,emStrongRDelimAst:ap,emStrongRDelimUnd:up,escape:Gf,link:kp,nolink:Fp,punctuation:Yf,reflink:Ap,reflinkSearch:Sp,tag:yp,text:Xf,url:Mt},Cp={...Br,emStrongLDelim:lp,emStrongRDelimAst:pp,emStrongRDelimUnd:hp,link:ee(/^!?\[(label)\]\((.*?)\)/).replace("label",pi).getRegex(),reflink:ee(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",pi).getRegex()},rr={...Br,emStrongRDelimAst:cp,emStrongLDelim:np,delLDelim:xp,delRDelim:wp,url:ee(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("emailProtocol",Tp).replace("protocol",An).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ee(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|wwwStart|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace("protocol",An).replace(/emailProtocol/g,/(?:mailto|xmpp):/).replace("wwwStart",il?"(?<![^\\s*_~(])www\\.":"www\\.").getRegex()},Bp={...rr,br:ee(ll).replace("{2,}","*").getRegex(),text:ee(rr.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ws={normal:Cr,gfm:Qf,pedantic:Zf},cs={normal:Br,gfm:rr,breaks:Bp,pedantic:Cp},jp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Fn=e=>jp[e];function ze(e,t){if(t){if(ke.escapeTest.test(e))return e.replace(ke.escapeReplace,Fn)}else if(ke.escapeTestNoEncode.test(e))return e.replace(ke.escapeReplaceNoEncode,Fn);return e}function Rp(e){return ke.numericCharacterReference.test(e)?e.replace(ke.numericCharacterReferenceOrAmpersand,(t,s,i)=>{if(s===void 0&&i===void 0)return"&amp;";let r=s===void 0?Number.parseInt(i,16):Number.parseInt(s,10);return r===0||r>1114111||r>=55296&&r<=57343?"�":r===38?"&amp;":String.fromCodePoint(r)}):e}function $n(e){try{e=encodeURI(e).replace(ke.percentDecode,"%")}catch{return null}return e}function Sn(e,t){let s=e.replace(ke.findPipe,(n,o,l)=>{let a=!1,p=o;for(;--p>=0&&l[p]==="\\";)a=!a;return a?"|":" |"}),i=s.split(ke.splitPipe),r=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;r<i.length;r++)i[r]=i[r].trim().replace(ke.slashPipe,"|");return i}function mt(e,t,s){let i=e.length;if(i===0)return"";let r=0;for(;r<i&&e.charAt(i-r-1)===t;)r++;return e.slice(0,i-r)}function En(e){let t=e.split(`
`),s=t.length-1;for(;s>=0&&ke.blankLine.test(t[s]);)s--;return t.length-s<=2?e:t.slice(0,s+1).join(`
`)}function ui(e){return e.trim().replace(ke.multipleSpaceGlobal," ").toLowerCase().toUpperCase().toLowerCase()}function Tn(e,t){if(e.indexOf(t[0])===-1&&e.indexOf(t[1])===-1)return-1;let s=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])s++;else if(e[i]===t[1]&&(s--,s<0))return i;return s>0?-2:-1}var ts=new WeakMap;function jr(e){let t={"*":-1,_:-1},s=-1,i=e.length;for(let r=0;r<i;r++){let n=e[r];if(n!=="*"&&n!=="_"&&n!=="~")continue;let o=r===0?`
`:e[r-1],l=r+1;for(;l<i&&e[l]===n;)l++;o!==" "&&o!=="	"&&o!==`
`&&o!=="\r"&&o!=="\f"&&(n==="~"?s=r:t[n]=r),r=l-1}return{maskedSrc:e,lastPossibleEmStrongCloserIndex:t,lastPossibleDelCloserIndex:s}}function Pp(e,t){let s=jr(t),i=ts.get(e);i?i.push(s):ts.set(e,[s])}function Ip(e){let t=ts.get(e);t&&(t.pop(),t.length===0&&ts.delete(e))}function ul(e,t,s){let i=ts.get(e)?.at(-1);return i&&i.maskedSrc===t?i.lastPossibleEmStrongCloserIndex[s]:jr(t).lastPossibleEmStrongCloserIndex[s]}function dl(e,t){let s=ts.get(e)?.at(-1);return s&&s.maskedSrc===t?s.lastPossibleDelCloserIndex:jr(t).lastPossibleDelCloserIndex}function Qs(e,t=0){let s=t,i="";for(let r of e)if(r==="	"){let n=4-s%4;i+=" ".repeat(n),s+=n}else i+=r,s++;return i}function Dp(e,t){let s="";for(let i=0;i<e.length;i++){if(e[i]==="`"){let r=t.inline.code.exec(e.slice(i));if(r){s+=r[0],i+=r[0].length-1;continue}}if(e[i]==="\\"&&(e[i+1]==="["||e[i+1]==="]")){s+=e[i+1],i++;continue}s+=e[i]}return s}function Cn(e,t,s,i,r){let n=t.href,o=t.title||null,l=Dp(e[1],r),a=e[0].charAt(0)==="!",p=i.state.inLink,f=i.state.linkEmitted,h=i.state.inRawBlock;i.state.inLink=!0,i.state.linkEmitted=!1;let x=i.inlineTokens(l),w=i.state.linkEmitted;if(i.state.linkEmitted=f,i.state.inLink=p,!a){if(w){i.state.inRawBlock=h;return}i.state.linkEmitted=!0}return{type:a?"image":"link",raw:s,href:n,title:o,text:l,tokens:x}}function Lp(e,t,s){let i=e.match(s.other.indentCodeCompensation);if(i===null)return t;let r=i[1];return t.split(`
`).map(n=>{let o=n.match(s.other.beginningSpace);if(o===null)return n;let[l]=o;return n.slice(Math.min(l.length,r.length))}).join(`
`)}function Bn(e,t,s,i){if(!t.includes("<"))return!1;for(let r=0;r<t.length;r++){if(t[r]==="\\"){r++;continue}if(t[r]==="`"){let l=i.inline.code.exec(t.slice(r));if(l){r+=l[0].length-1;continue}}if(t[r]!=="<")continue;let n=e.slice(s+r),o=i.inline.tag.exec(n)||i.inline.autolink.exec(n);if(o){if(o[0].length>t.length-r)return!0;r+=o[0].length-1}}return!1}var Nt=class{options;rules;lexer;constructor(e){this.options=e||Wt}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let s=this.options.pedantic?t[0]:En(t[0]),i=s.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:s,codeBlockStyle:"indented",text:i}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let s=t[0],i=Lp(s,t[3]||"",this.rules);return t[3]!==void 0&&(i===""||i.endsWith(`
`))&&(i+=`
`),{type:"code",raw:s,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let s=t[2].trim();if(this.rules.other.endingHash.test(s)){let i=mt(s,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceTabChar.test(i))&&(s=i.trim())}return{type:"heading",raw:mt(t[0],`
`),depth:t[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:mt(t[0],`
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let s=mt(t[0],`
`).split(`
`),i="",r="",n=[];for(;s.length>0;){let o=!1,l=[],a;for(a=0;a<s.length;a++)if(this.rules.other.blockquoteStart.test(s[a]))l.push(s[a]),o=!0;else if(!o)l.push(s[a]);else break;s=s.slice(a);let p=l.join(`
`),f=p.replace(this.rules.other.blockquoteMarkerWhitespace,(w,C,F)=>F.startsWith(" ")?C+" "+F.slice(1):C+Qs(F,C.length)).replace(this.rules.other.blockquoteSetextReplace,`
    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
${p}`:p,r=r?`${r}
${f}`:f;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,n,!0),this.lexer.state.top=h,s.length===0)break;let x=n.at(-1);if(x?.type==="code"||x?.type==="heading"||x?.type==="hr"||x?.type==="html"||x?.type==="table")break;if(x?.type==="blockquote"){let w=x,C=s.join(`
`),F=w.raw+`
`+C.replace(this.rules.other.blockquoteSetextReplace2,""),T=this.blockquote(F);n[n.length-1]=T;let P=F.substring(T.raw.length).replace(/^\n/,""),H=P?P.split(`
`).length:0,U=H?s.slice(0,-H):s;if(U.length>0&&(i=`${i}
${U.join(`
`)}`),r=r.substring(0,r.length-w.text.length)+T.text,s=s.slice(U.length),s.length>0&&this.rules.other.blockquoteStart.test(s[0]))continue;break}else if(x?.type==="list"){let w=x,C=w.raw+`
`+s.join(`
`),F=this.list(C);n[n.length-1]=F;let T=F.raw.length>w.raw.length?C.slice(w.raw.length+1,F.raw.length).split(`
`).length:0;if(T>0){let P=s.slice(0,T).join(`
`);i=`${i}
${P}`,r=`${r}
${P}`}if(s=s.slice(T),s.length>0&&!this.rules.other.blockquoteStart.test(s[0]))break;continue}}return{type:"blockquote",raw:i,tokens:n,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){if(!this.options.pedantic&&this.lexer.state.lastToken?.type==="text"&&!this.rules.other.listInterruptsParagraph.test(e))return;let s=e,i=()=>s.length-e.length,r=t[1].trim(),n=r.length>1,o={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let l=this.rules.other.listItemRegex(r),a=!1;for(;e;){let h=!1,x="";if(!(t=l.exec(e))||this.rules.block.hr.test(e))break;let w=i();e=e.substring(t[0].length);let C=t[2].split(`
`,1)[0],F=t[1].length,T=this.options.pedantic?Qs(C,F):C.replace(this.rules.other.leadingSpaceTab,te=>Qs(te,F)),P=e.split(`
`,1)[0],H=!T.trim(),U=0;if(this.options.pedantic?(U=2,x=T.trimStart()):H?U=F+1:(U=T.search(this.rules.other.nonSpaceChar),U=U>4?1:U,x=T.slice(U),U+=F),H&&this.rules.other.blankLine.test(P)&&(e=e.substring(P.length+1),h=!0),!h){let te=this.rules.other.nextBulletRegex(U),ge=this.rules.other.hrRegex(U),B=this.rules.other.fencesBeginRegex(U),V=this.options.pedantic?this.rules.other.pedanticHeadingBeginRegex(U):this.rules.other.headingBeginRegex(U),b=this.rules.other.htmlBeginRegex(U),N=this.rules.other.blockquoteBeginRegex(U),oe=!1;for(;e;){let v=e.split(`
`,1)[0],W;if(P=v,this.options.pedantic?(P=P.replace(this.rules.other.listReplaceNesting,"  "),W=P):W=P.replace(this.rules.other.leadingSpaceTab,$=>Qs($)),B.test(P)||V.test(P)||b.test(P)||N.test(P)||te.test(P)||ge.test(P))break;if(W.search(this.rules.other.nonSpaceChar)>=U||!P.trim())x+=`
`+W.slice(U),oe=!1;else{if(H)break;let $=T;if(!this.options.pedantic&&!x.includes(`
`)&&!T.includes("	")){let D;for(;!ge.test($)&&(D=this.rules.other.nestedBlockMarker.exec($));)$=$.slice(D[0].length);if(!$.trim())break}if($.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||B.test($)||V.test($)||b.test($)||ge.test($))break;if(!this.options.pedantic&&!oe){let D=T.replace(this.rules.other.nestedContainerMarkers,"");if(this.rules.block.fences.test(D)||this.rules.block.heading.test(D)||this.rules.block.hr.test(D))break}let q=!this.options.pedantic&&/^ {0,3}(?:=+|-+) *$/.test(P)&&this.rules.block.lheading.test(`${T}
${P}`)?`    ${W.replace(/^ {0,3}/,"")}`:P;x+=`
`+q,oe=!0}H=!P.trim(),e=e.substring(v.length+1),T=W.slice(U)}}let O=s.slice(w,i());o.loose||(a?o.loose=!0:this.rules.other.doubleBlankLine.test(O)&&(a=!0)),o.items.push({type:"list_item",raw:O,task:!!this.options.gfm&&this.rules.other.listIsTask.test(x),loose:!1,text:x,tokens:[]})}let p=o.items.at(-1);if(p)p.raw=p.raw.trimEnd(),p.text=p.text.trimEnd();else return;o.raw=s.slice(0,i()).trimEnd();let f=[];for(let h of o.items)if(this.lexer.state.top=!1,f.push(this.lexer.inlineQueue.length),h.tokens=this.lexer.blockTokens(h.text,[]),!o.loose){let x=h.tokens.filter(C=>C.type==="space"),w=x.length>0&&x.some(C=>this.rules.other.anyLine.test(C.raw));o.loose=w}for(let h=0;h<o.items.length;h++){let x=o.items[h],w=x.tokens[0];if(x.task&&(w?.type==="text"||w?.type==="paragraph")){x.text=x.text.replace(this.rules.other.listReplaceTask,""),w.raw=w.raw.replace(this.rules.other.listReplaceTask,""),w.text=w.text.replace(this.rules.other.listReplaceTask,"");let C=this.lexer.inlineQueue;for(let T=f[h];T<C.length;T++)if(C[T].tokens===w.tokens){C[T].src=C[T].src.replace(this.rules.other.listReplaceTask,"");break}let F=this.rules.other.listTaskCheckbox.exec(x.raw);if(F){let T={type:"checkbox",raw:F[0]+" ",checked:F[0]!=="[ ]"};x.checked=T.checked,o.loose?x.tokens[0]&&["paragraph","text"].includes(x.tokens[0].type)&&"tokens"in x.tokens[0]&&x.tokens[0].tokens?(x.tokens[0].raw=T.raw+x.tokens[0].raw,x.tokens[0].text=T.raw+x.tokens[0].text,x.tokens[0].tokens.unshift(T)):x.tokens.unshift({type:"paragraph",raw:T.raw,text:T.raw,tokens:[T]}):x.tokens.unshift(T)}}else x.task&&(x.task=!1)}if(o.loose)for(let h of o.items){h.loose=!0;for(let x of h.tokens)x.type==="text"&&(x.type="paragraph")}return o}}html(e){let t=this.rules.block.html.exec(e);if(t){if(this.lexer.state.lastToken?.type==="paragraph"&&!this.rules.other.htmlBeginRegex(4).test(e))return;let s=En(t[0]);return{type:"html",block:!0,raw:s,pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:s}}}def(e){let t=this.rules.block.def.exec(e);if(t){if(!this.rules.other.startAngleBracket.test(t[2])&&Tn(t[2],"()")!==-1)return;let s=ui(t[1]),i=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:s,raw:mt(t[0],`
`),href:i,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let s=Sn(t[1]),i=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],n={type:"table",raw:mt(t[0],`
`),header:[],align:[],rows:[]};if(s.length===i.length){for(let o of i)this.rules.other.tableAlignRight.test(o)?n.align.push("right"):this.rules.other.tableAlignCenter.test(o)?n.align.push("center"):this.rules.other.tableAlignLeft.test(o)?n.align.push("left"):n.align.push(null);for(let o=0;o<s.length;o++)n.header.push({text:s[o],tokens:this.lexer.inline(s[o]),header:!0,align:n.align[o]});for(let o of r)n.rows.push(Sn(o,n.header.length).map((l,a)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:n.align[a]})));return n}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let s=t[1].trim();return{type:"heading",raw:mt(t[0],`
`),depth:t[2].charAt(0)==="="?1:2,text:s,tokens:this.lexer.inline(s)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let s=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:s,tokens:this.lexer.inline(s)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){if(e.charCodeAt(0)!==92)return;let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){if(e.charCodeAt(0)!==60)return;let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){if(this.lexer.state.linkParenPossible===!1)return;let t=e.charCodeAt(0);if(t!==91&&t!==33)return;let s=this.rules.inline.link.exec(e);if(s){let i=s[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&Bn(e,s[1],i,this.rules))return;let r=s[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let a=mt(r.slice(0,-1),"\\");if((r.length-a.length)%2===0)return}else{let a=Tn(s[2],"()");if(a===-2)return;if(a>-1){let p=(s[0].indexOf("!")===0?5:4)+s[1].length+a;s[2]=s[2].substring(0,a),s[0]=s[0].substring(0,p).trim(),s[3]=""}}let n=mt(s[0].slice(0,-1),"\\");if((s[0].length-n.length)%2===0)return;let o=s[2],l="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(o);a&&(o=a[1],l=a[3])}else l=s[3]?s[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?o=o.slice(1):o=o.slice(1,-1)),Cn(s,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:l&&l.replace(this.rules.inline.anyPunctuation,"$1")},s[0],this.lexer,this.rules)}}reflink(e,t){let s=e.charCodeAt(0);if(s!==91&&s!==33)return;let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let r=i[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&Bn(e,i[1],r,this.rules))return;let n=t[ui(i[2]||i[1])];if(!n){let o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return Cn(i,n,i[0],this.lexer,this.rules)}}emStrong(e,t,s=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!i||!i[1]&&!i[2]&&!i[3]&&!i[4])return;let r=i[0][0],n=s===r,o=t.length-e.length,l=o;for(;!this.options.pedantic&&l>0&&t[l-1]===r;)l--;let a=[...t.slice(Math.max(0,l-2),l)].at(-1)??"",p=a==="*"||a==="_"||!!this.rules.inline.punctuation.exec(a);l<o&&(s=a);let f=l<o?p:s==="*"||s==="_"||!!this.rules.inline.punctuation.exec(s);if(i[4]&&s.match(this.rules.other.unicodeAlphaNumeric))return;let h=i[1]||i[3]||"";if(!h||!s||f){let x=[...i[0]].length-1,w,C,F=x,T=0,P=o-l+x,H=!this.options.pedantic&&!!a.trim()&&(!!h||r==="*"&&!p);if(r!=="*"&&r!=="_")return;let U=r==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd,O=ul(this,t,r),te=t.length-e.length+x;if(O<te)return;t=t.slice(-1*e.length+x);let ge=O-te;for(U.lastIndex=0;(i=U.exec(t))!==null&&!(i.index>ge);){if(w=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!w)continue;if(C=[...w].length,i[3]||i[4]){F+=C;continue}else if((i[5]||i[6]||H)&&P%3&&!((P+C)%3)){if(n&&(i[5]||i[6]))break;T+=C;continue}if(F-=C,F>0)continue;C=Math.min(C,C+F+T);let B=[...i[0]][0].length,V=e.slice(0,x+i.index+B+C);if(Math.min(x,C)%2){let N=V.slice(1,-1);return{type:"em",raw:V,text:N,tokens:this.lexer.inlineTokens(N)}}let b=V.slice(2,-2);return{type:"strong",raw:V,text:b,tokens:this.lexer.inlineTokens(b)}}}}codespan(e){if(e.charCodeAt(0)!==96)return;let t=this.rules.inline.code.exec(e);if(t){let s=t[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(s),r=this.rules.other.startingSpaceChar.test(s)&&this.rules.other.endingSpaceChar.test(s);return i&&r&&(s=s.substring(1,s.length-1)),{type:"codespan",raw:t[0],text:s}}}br(e){let t=e.charCodeAt(0);if(t!==32&&t!==92&&t!==10)return;let s=this.rules.inline.br.exec(e);if(s)return{type:"br",raw:s[0]}}del(e,t,s=""){if(e.charCodeAt(0)!==126)return;let i=this.rules.inline.delLDelim.exec(e);if(i&&(!i[1]||!s||this.rules.inline.punctuation.exec(s))){let r=[...i[0]].length-1,n,o,l=r,a=this.rules.inline.delRDelim,p=dl(this,t),f=t.length-e.length+r;if(p<f)return;t=t.slice(-1*e.length+r);let h=p-f;for(a.lastIndex=0;(i=a.exec(t))!==null&&!(i.index>h);){if(n=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!n||(o=[...n].length,o!==r))continue;if(i[3]||i[4]){l+=o;continue}if(l-=o,l>0)continue;o=Math.min(o,o+l);let x=[...i[0]][0].length,w=e.slice(0,r+i.index+x+o),C=w.slice(r,-r);return{type:"del",raw:w,text:C,tokens:this.lexer.inlineTokens(C)}}}}autolink(e){if(e.charCodeAt(0)!==60)return;let t=this.rules.inline.autolink.exec(e);if(t){let s,i;return t[2]==="@"?(s=t[1],i="mailto:"+s):(s=t[1],i=s),{type:"link",raw:t[0],text:s,href:i,autolink:!0,tokens:[{type:"text",raw:s,text:s}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let s,i;if(t[2]==="@")s=t[0],i="mailto:"+s;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);s=t[0],t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:s,href:i,autolink:!0,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let s=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:s?t[0]:Rp(t[0]),escaped:s}}}},Qe=class nr{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Wt,this.options.tokenizer=this.options.tokenizer||new Nt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,linkParenPossible:!0,top:!0};let s={other:ke,block:Ws.normal,inline:cs.normal};this.options.pedantic?(s.block=Ws.pedantic,s.inline=cs.pedantic):this.options.gfm&&(s.block=Ws.gfm,this.options.breaks?s.inline=cs.breaks:s.inline=cs.gfm),this.tokenizer.rules=s}static get rules(){return{block:Ws,inline:cs}}static lex(t,s){return new nr(s).lex(t)}static lexInline(t,s){return new nr(s).inlineTokens(t)}lex(t){t=t.replace(ke.carriageReturn,`
`),this.blockTokens(t,this.tokens);for(let s=0;s<this.inlineQueue.length;s++){let i=this.inlineQueue[s];this.state.inRawBlock=!1,this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,s=[],i=!1){this.tokenizer.lexer=this;let r=this.state.lastToken;this.options.pedantic&&(t=t.replace(ke.tabCharGlobal,"    ").replace(ke.spaceLine,""));let n=1/0,o,l=this.options.gfm&&!this.options.pedantic&&this.tokenizer.paragraph===Nt.prototype.paragraph;for(;t;){if(t.length<n)n=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}this.state.lastToken=s.at(-1);let a;if(this.options.extensions?.block?.some(f=>(a=f.call({lexer:this},t,s))?(t=t.substring(a.raw.length),s.push(a),!0):!1))continue;if(a=this.tokenizer.space(t)){t=t.substring(a.raw.length);let f=s.at(-1);a.raw.length===1&&f!==void 0?f.raw+=`
`:s.push(a);continue}if(a=this.tokenizer.code(t)){t=t.substring(a.raw.length);let f=s.at(-1);f?.type==="paragraph"||f?.type==="text"?(f.raw+=(f.raw.endsWith(`
`)?"":`
`)+a.raw,f.text+=`
`+a.text,this.inlineQueue.at(-1).src=f.text):s.push(a);continue}if(a=this.tokenizer.fences(t)){t=t.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.heading(t)){t=t.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.hr(t)){t=t.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.blockquote(t)){t=t.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.list(t)){t=t.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.html(t)){t=t.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.def(t)){t=t.substring(a.raw.length);let f=s.at(-1);f?.type==="paragraph"||f?.type==="text"?(f.raw+=(f.raw.endsWith(`
`)?"":`
`)+a.raw,f.text+=`
`+a.raw,this.inlineQueue.at(-1).src=f.text):(this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title}),s.push(a));continue}if(a=this.tokenizer.table(t)){t=t.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.lheading(t)){t=t.substring(a.raw.length),s.push(a);continue}let p=t;if(this.options.extensions?.startBlock){let f=1/0,h=t.slice(1),x;this.options.extensions.startBlock.forEach(w=>{x=w.call({lexer:this},h),typeof x=="number"&&x>=0&&(f=Math.min(f,x))}),f<1/0&&f>=0&&(p=t.substring(0,f+1))}if(this.state.top&&(a=this.tokenizer.paragraph(p))){let f=s.at(-1);(i||f===o&&l)&&f?.type==="paragraph"?(f.raw+=(f.raw.endsWith(`
`)?"":`
`)+a.raw,f.text+=`
`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text,o=f):(s.push(a),o=a),i=p.length!==t.length,t=t.substring(a.raw.length);continue}if(a=this.tokenizer.text(t)){t=t.substring(a.raw.length);let f=s.at(-1);f?.type==="text"?(f.raw+=(f.raw.endsWith(`
`)?"":`
`)+a.raw,f.text+=`
`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):s.push(a);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,this.state.lastToken=r,s}inline(t,s=[]){return this.inlineQueue.push({src:t,tokens:s}),s}linkInText(t){if(!t.includes("["))return!1;let s=this.tokenizer.rules.inline.link;for(let i of t.matchAll(this.tokenizer.rules.inline.blockSkip))if(s.test(i[0])&&t.charAt(i.index-1)!=="!")return!0;for(let i of t.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let r=i[0],n=r.lastIndexOf("[");if(!(r.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,ui(r.slice(n+1,-1))))&&!(n>1&&this.linkInText(r.slice(1,n-1))))return!0}return!1}inlineTokens(t,s=[]){this.tokenizer.lexer=this;let i=this.state.linkParenPossible;this.state.linkParenPossible=t.includes(")");try{return this.#t(t,s)}finally{this.state.linkParenPossible=i}}#t(t,s){let i=t.includes("*")||t.includes("_")||t.includes("~"),r=i||this.options.hooks?.emStrongMask||this.tokenizer.emStrong!==Nt.prototype.emStrong||this.tokenizer.del!==Nt.prototype.del?this.#i(t):t;if(!i)return this.#e(t,r,s);Pp(this.tokenizer,r);try{return this.#e(t,r,s)}finally{Ip(this.tokenizer)}}#e(t,s,i){let r=!1,n="",o=1/0;for(;t;){if(t.length<o)o=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}r||(n=""),r=!1;let l;if(this.options.extensions?.inline?.some(f=>(l=f.call({lexer:this},t,i))?(t=t.substring(l.raw.length),i.push(l),!0):!1))continue;if(l=this.tokenizer.escape(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.tag(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.link(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(l.raw.length);let f=i.at(-1);l.type==="text"&&f?.type==="text"?(f.raw+=l.raw,f.text+=l.text):i.push(l);continue}let a=t[0];if(a==="*"||a==="_"){let f=s.length-t.length;if(ul(this.tokenizer,s,a)<=f){let h=1;for(;h<t.length&&t.charCodeAt(h)===a.charCodeAt(0);)h++;let x=t.substring(0,h),w=i.at(-1);w?.type==="text"&&!w.escaped?(w.raw+=x,w.text+=x):i.push({type:"text",raw:x,text:x,escaped:!1}),t=t.substring(h),n=a,r=!0;continue}}else if(a==="~"){let f=s.length-t.length;if(dl(this.tokenizer,s)<=f){let h=1;for(;h<t.length&&t.charCodeAt(h)===126;)h++;let x=t.substring(0,h),w=i.at(-1);w?.type==="text"&&!w.escaped?(w.raw+=x,w.text+=x):i.push({type:"text",raw:x,text:x,escaped:!1}),t=t.substring(h),n=a,r=!0;continue}}if(l=this.tokenizer.emStrong(t,s,n)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.codespan(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.br(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.del(t,s,n)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.autolink(t)){t=t.substring(l.raw.length),i.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(t))){t=t.substring(l.raw.length),i.push(l);continue}let p=t;if(this.options.extensions?.startInline){let f=1/0,h=t.slice(1),x;this.options.extensions.startInline.forEach(w=>{x=w.call({lexer:this},h),typeof x=="number"&&x>=0&&(f=Math.min(f,x))}),f<1/0&&f>=0&&(p=t.substring(0,f+1))}if(l=this.tokenizer.inlineText(p)){t=t.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(n=l.raw.slice(-1)),r=!0;let f=i.at(-1);f?.type==="text"?(f.raw+=l.raw,f.text+=l.text):i.push(l);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return i}#s(t){let{blockSkip:s,tag:i,autolink:r}=this.tokenizer.rules.inline,n="",o=0,l;for(s.lastIndex=0;l=s.exec(t);){let a=l.index+(l[2]?l[2].length:0),p=l.index+l[0].length;if(t.charAt(a)==="<"){let f=t.slice(a),h=i.exec(f)||r.exec(f);if(!h){s.lastIndex=a+1;continue}p=a+h[0].length,s.lastIndex=p}n+=t.slice(o,a)+"["+"a".repeat(p-a-2)+"]",o=p}return n+t.slice(o)}#i(t){let s=t;if(this.tokens.links&&t.includes("[")){let i=this.tokenizer.rules.inline.reflinkSearch,r=n=>{let o=n.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,ui(n.slice(o+1,-1))))return n;if(o>1&&n.charAt(0)!=="!"){let l=n.slice(1,o-1);if(this.linkInText(l))return"["+l.replace(i,r)+"]["+"a".repeat(n.length-o-2)+"]"}return"["+"a".repeat(n.length-2)+"]"};s=s.replace(i,r)}return s=s.replace(this.tokenizer.rules.inline.anyPunctuationOutsideCode,(i,r,n)=>n?"+".repeat(i.length):r?r+i.slice(r.length,-r.length).replace(/`/g,"+")+r:i),s=this.#s(s),s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s,s}infiniteLoopError(t){let s="Infinite loop on byte: "+t;if(this.options.silent)console.error(s);else throw new Error(s)}},di=class{options;parser;constructor(e){this.options=e||Wt}space(e){return""}code({text:e,lang:t,escaped:s}){let i=(t||"").match(ke.notSpaceStart)?.[0],r=e?e.replace(ke.endingNewline,"")+`
`:"";return i?'<pre><code class="language-'+ze(i)+'">'+(s?r:ze(r,!0))+`</code></pre>
`:"<pre><code>"+(s?r:ze(r,!0))+`</code></pre>
`}blockquote({tokens:e}){return`<blockquote>
${this.parser.parse(e)}</blockquote>
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
`}hr(e){return`<hr>
`}list(e){let t=e.ordered,s=e.start,i="";for(let o=0;o<e.items.length;o++){let l=e.items[o];i+=this.listitem(l)}let r=t?"ol":"ul",n=t&&s!==1?' start="'+s+'"':"";return"<"+r+n+`>
`+i+"</"+r+`>
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
`}table(e){let t="",s="";for(let r=0;r<e.header.length;r++)s+=this.tablecell(e.header[r]);t+=this.tablerow({text:s});let i="";for(let r=0;r<e.rows.length;r++){let n=e.rows[r];s="";for(let o=0;o<n.length;o++)s+=this.tablecell(n[o]);i+=this.tablerow({text:s})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
<thead>
`+t+`</thead>
`+i+`</table>
`}tablerow({text:e}){return`<tr>
${e}</tr>
`}tablecell(e){let t=this.parser.parseInline(e.tokens),s=e.header?"th":"td";return(e.align?`<${s} align="${e.align}">`:`<${s}>`)+t+`</${s}>
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ze(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,text:s,tokens:i,autolink:r}){let n=r?ze(s,!0):this.parser.parseInline(i),o=$n(e);if(o===null)return n;e=ze(o,r);let l='<a href="'+e+'"';return t&&(l+=' title="'+ze(t)+'"'),l+=">"+n+"</a>",l}image({href:e,title:t,text:s,tokens:i}){i&&(s=this.parser.parseInline(i,this.parser.textRenderer));let r=$n(e);if(r===null)return ze(s);e=r;let n=`<img src="${ze(e)}" alt="${ze(s)}"`;return t&&(n+=` title="${ze(t)}"`),n+=">",n}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ze(e.text)}},Rr=class{parser;strong({text:e,tokens:t}){return t?this.parser.parseInline(t,this):e}em({text:e,tokens:t}){return t?this.parser.parseInline(t,this):e}codespan({text:e}){return e}del({text:e,tokens:t}){return t?this.parser.parseInline(t,this):e}html({text:e}){return e}text({text:e}){return e}link({text:e,tokens:t}){return t?this.parser.parseInline(t,this):e}image({text:e,tokens:t}){return t?this.parser.parseInline(t,this):e}br(){return`
`}checkbox({raw:e}){return e}},Ze=class or{options;renderer;textRenderer;constructor(t){this.options=t||Wt,this.options.renderer=this.options.renderer||new di,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Rr,this.textRenderer.parser=this}static parse(t,s){return new or(s).parse(t)}static parseInline(t,s){return new or(s).parseInline(t)}parse(t){this.renderer.parser=this;let s="";for(let i=0;i<t.length;i++){let r=t[i];if(this.options.extensions?.renderers?.[r.type]){let o=r,l=this.options.extensions.renderers[o.type].call({parser:this},o);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(o.type)){s+=l===!1?"":l??"";continue}}let n=r;switch(n.type){case"space":{s+=this.renderer.space(n);break}case"hr":{s+=this.renderer.hr(n);break}case"heading":{s+=this.renderer.heading(n);break}case"code":{s+=this.renderer.code(n);break}case"table":{s+=this.renderer.table(n);break}case"blockquote":{s+=this.renderer.blockquote(n);break}case"list":{s+=this.renderer.list(n);break}case"checkbox":{s+=this.renderer.checkbox(n);break}case"html":{s+=this.renderer.html(n);break}case"def":{s+=this.renderer.def(n);break}case"paragraph":{s+=this.renderer.paragraph(n);break}case"text":{s+=this.renderer.text(n);break}default:{let o='Token with "'+n.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}parseInline(t,s=this.renderer){this.renderer.parser=this;let i="";for(let r=0;r<t.length;r++){let n=t[r];if(this.options.extensions?.renderers?.[n.type]){let l=this.options.extensions.renderers[n.type].call({parser:this},n);if(l!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(n.type)){i+=l===!1?"":l??"";continue}}let o=n;switch(o.type){case"escape":{i+=s.text(o);break}case"html":{i+=s.html(o);break}case"link":{i+=s.link(o);break}case"image":{i+=s.image(o);break}case"checkbox":{i+=s.checkbox(o);break}case"strong":{i+=s.strong(o);break}case"em":{i+=s.em(o);break}case"codespan":{i+=s.codespan(o);break}case"br":{i+=s.br(o);break}case"del":{i+=s.del(o);break}case"text":{i+=s.text(o);break}default:{let l='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return i}},ws=class{options;block;constructor(e){this.options=e||Wt}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?Qe.lex:Qe.lexInline}provideParser(e=this.block){return e?Ze.parse:Ze.parseInline}};function $t(e,t){if(Array.isArray(t))for(let s=0;s<t.length;s++)e.push(t[s]);else e.push(t)}var hl=class{defaults=Ar();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Ze;Renderer=di;TextRenderer=Rr;Lexer=Qe;Tokenizer=Nt;Hooks=ws;constructor(...e){this.use(...e)}walkTokens(e,t){let s=[];for(let i of e)switch($t(s,t.call(this,i)),i.type){case"table":{let r=i;for(let n of r.header)$t(s,this.walkTokens(n.tokens,t));for(let n of r.rows)for(let o of n)$t(s,this.walkTokens(o.tokens,t));break}case"list":{let r=i;$t(s,this.walkTokens(r.items,t));break}default:{let r=i;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(n=>{let o=r[n].flat(1/0);$t(s,this.walkTokens(o,t))}):r.tokens&&$t(s,this.walkTokens(r.tokens,t))}}return s}use(...e){let t=this.defaults.extensions||{renderers:Object.create(null),childTokens:Object.create(null)};return e.forEach(s=>{let i={...s};if(i.async=this.defaults.async||i.async||!1,s.extensions&&(s.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let n=t.renderers[r.name];n?t.renderers[r.name]=function(...o){let l=r.renderer.apply(this,o);return l===!1&&(l=n.apply(this,o)),l}:t.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let n=t[r.level];n?n.unshift(r.tokenizer):t[r.level]=[r.tokenizer],r.start&&(r.level==="block"?t.startBlock?t.startBlock.push(r.start):t.startBlock=[r.start]:r.level==="inline"&&(t.startInline?t.startInline.push(r.start):t.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(t.childTokens[r.name]=r.childTokens)}),i.extensions=t),s.renderer){let r=this.defaults.renderer||new di(this.defaults);for(let n in s.renderer){if(!(n in r))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let o=n,l=s.renderer[o],a=r[o];r[o]=(...p)=>{let f=l.apply(r,p);return f===!1&&(f=a.apply(r,p)),f===!1?"":f??""}}i.renderer=r}if(s.tokenizer){let r=this.defaults.tokenizer||new Nt(this.defaults);for(let n in s.tokenizer){if(!(n in r))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let o=n,l=s.tokenizer[o],a=r[o];r[o]=(...p)=>{let f=l.apply(r,p);return f===!1&&(f=a.apply(r,p)),f}}i.tokenizer=r}if(s.hooks){let r=this.defaults.hooks||new ws;for(let n in s.hooks){if(!(n in r))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let o=n,l=s.hooks[o],a=r[o];ws.passThroughHooks.has(n)?r[o]=p=>{if(r.options.async&&ws.passThroughHooksRespectAsync.has(n))return(async()=>{let h=await l.call(r,p);return a.call(r,h)})();let f=l.call(r,p);return a.call(r,f)}:r[o]=(...p)=>{if(r.options.async)return(async()=>{let h=await l.apply(r,p);return h===!1&&(h=await a.apply(r,p)),h})();let f=l.apply(r,p);return f===!1&&(f=a.apply(r,p)),f}}i.hooks=r}if(s.walkTokens){let r=this.defaults.walkTokens,n=s.walkTokens;i.walkTokens=function(o){let l=[];return $t(l,n.call(this,o)),r&&$t(l,r.call(this,o)),l}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Qe.lex(e,t??this.defaults)}parser(e,t){return Ze.parse(e,t??this.defaults)}parseMarkdown(e){return(t,s)=>{let i={...s},r={...this.defaults,...i},n=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&i.async===!1)return n(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return n(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return n(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=e),r.async)return(async()=>{let o=r.hooks?await r.hooks.preprocess(t):t,l=await(r.hooks?await r.hooks.provideLexer(e):e?Qe.lex:Qe.lexInline)(o,r),a=r.hooks?await r.hooks.processAllTokens(l):l;r.walkTokens&&await Promise.all(this.walkTokens(a,r.walkTokens));let p=await(r.hooks?await r.hooks.provideParser(e):e?Ze.parse:Ze.parseInline)(a,r);return r.hooks?await r.hooks.postprocess(p):p})().catch(n);try{r.hooks&&(t=r.hooks.preprocess(t));let o=(r.hooks?r.hooks.provideLexer(e):e?Qe.lex:Qe.lexInline)(t,r);r.hooks&&(o=r.hooks.processAllTokens(o)),r.walkTokens&&this.walkTokens(o,r.walkTokens);let l=(r.hooks?r.hooks.provideParser(e):e?Ze.parse:Ze.parseInline)(o,r);return r.hooks&&(l=r.hooks.postprocess(l)),l}catch(o){return n(o)}}}onError(e,t){return s=>{if(s.message+=`
Please report this to https://github.com/markedjs/marked.`,e){let i="<p>An error occurred:</p><pre>"+ze(s.message+"",!0)+"</pre>";return t?Promise.resolve(i):i}if(t)return Promise.reject(s);throw s}}},Vt=new hl;function xe(e,t){return Vt.parse(e,t)}xe.options=xe.setOptions=function(e){return Vt.setOptions(e),xe.defaults=Vt.defaults,sl(xe.defaults),xe};xe.getDefaults=Ar;xe.defaults=Wt;function Mp(...e){return Vt.use(...e),xe.defaults=Vt.defaults,sl(xe.defaults),xe}xe.use=Mp;xe.walkTokens=function(e,t){return Vt.walkTokens(e,t)};xe.parseInline=Vt.parseInline;xe.Parser=Ze;xe.parser=Ze.parse;xe.Renderer=di;xe.TextRenderer=Rr;xe.Lexer=Qe;xe.lexer=Qe.lex;xe.Tokenizer=Nt;xe.Hooks=ws;xe.parse=xe;xe.options;xe.setOptions;xe.walkTokens;xe.parseInline;Ze.parse;Qe.lex;const Pr=new hl({breaks:!0,gfm:!0});Pr.use({renderer:{html({text:e}){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}}});Pr.use({renderer:{link({href:e,title:t,tokens:s}){const i=this.parser.parseInline(s),r=t?` title="${t.replace(/"/g,"&quot;")}"`:"";return`<a href="${e}" target="_blank" rel="noopener noreferrer"${r}>${i}</a>`}}});function Op(e){return e.replace(/"/g,"&quot;").replace(/javascript:/gi,"").replace(/on\w+=/gi,"")}const fs=new Map,zp=200;function xl(e){if(!e)return"";const t=fs.get(e);if(t!==void 0)return t;let s=Pr.parse(e,{async:!1});if(s=s.replace(/href="([^"]*)"/g,(i,r)=>`href="${Op(r)}"`),fs.size>=zp){const i=fs.keys().next().value;i!==void 0&&fs.delete(i)}return fs.set(e,s),s}const Np="gh_3b400d47e7c4",jn="https://m.zhijiu.org.cn",qp="https://res.wx.qq.com/open/js/jweixin-1.6.0.js",Up="问心 - 直示本心 · 问答社区";let Zs=null,qi="";function gl(){return/micromessenger/i.test(navigator.userAgent)}function Hp(){return window.wx?Promise.resolve():Zs||(Zs=new Promise((e,t)=>{const s=document.createElement("script");s.src=qp,s.onload=()=>e(),s.onerror=()=>t(new Error("微信 JSSDK 加载失败")),document.head.appendChild(s)}),Zs)}function wl(){return location.href.split("#")[0]}const Vp="https://cdn.chuanbota.com/zhujiu-app/logo.png";function Kp(){return Vp}async function Wp(e){if(!gl())return;const t=wl();if(t===qi){Rn(e);return}try{if(await Hp(),!window.wx)return;const s=await de.wxJsConfig(t);window.wx.config({debug:!1,appId:s.app_id,timestamp:s.timestamp,nonceStr:s.nonce_str,signature:s.signature,jsApiList:["updateAppMessageShareData","updateTimelineShareData","onMenuShareAppMessage","onMenuShareTimeline"],openTagList:["wx-open-launch-weapp"]}),qi=t,window.wx.ready(()=>{ei.value=!0,Rn(e)}),window.wx.error(()=>{qi="",ei.value=!1})}catch{ei.value=!1}}function Rn(e){const t=window.wx;if(!t)return;const s=e.link||wl(),i=e.imgUrl||Kp(),r={title:e.title,desc:e.desc||Up,link:s,imgUrl:i};t.updateAppMessageShareData?.(r),t.updateTimelineShareData?.({title:e.title,link:s,imgUrl:i}),t.onMenuShareAppMessage?.(r),t.onMenuShareTimeline?.({title:e.title,link:s,imgUrl:i})}function Qp(e,t,s){const i=String(t??""),r=String(s??"");let n="";if(e===1){if(!i||i==="0")return null;n=`/pages/course/item?id=${i}`}else{if(e===2)return!i||i==="0"?null:{miniPath:"",h5Url:`${jn}/forum/detail?id=${i}`};if(e===3)if(i&&i!=="0")n=`/pages/ebook/preview?id=${i}`;else if(r&&r!=="0")n=`/pages/ebook/detail?id=${r}`;else return null;else return null}return{miniPath:n,h5Url:`${jn}${n}`}}const ei=Me(!1);function Zp(){return gl()&&!0&&ei.value}const Gp={class:"screen relative w-full bg-[#F5EFE3] flex flex-col",style:{"min-height":"100vh","padding-bottom":"140px"}},Jp={class:"flex flex-col justify-start items-start gap-[6px] pl-[16px] pr-[16px] pt-[12px] pb-[12px] bg-[#FFFAF0] overflow-hidden w-full h-fit"},Xp={class:"whitespace-pre-wrap font-serif text-[19px] font-[700] text-[#2A2421] leading-[27px] w-full h-fit"},Yp={class:"flex flex-row flex-wrap justify-start items-center gap-[6px] overflow-hidden w-full h-fit"},eu=["data-action"],tu={class:"whitespace-pre-wrap font-serif text-[10px] font-[400] text-[#6F2929] w-fit h-fit"},su={class:"flex flex-col justify-start items-start gap-[2px] pl-[12px] pr-[12px] pt-[8px] pb-[4px] bg-[#F5EFE3] w-full"},iu={class:"flex flex-row justify-between items-center gap-[8px] pl-[10px] pr-[6px] overflow-hidden w-full h-fit"},ru={class:"flex flex-row justify-start items-center gap-[6px] overflow-hidden w-fit h-fit"},nu={class:"whitespace-pre-wrap font-serif text-[10px] font-[600] text-[#6F2929] w-fit h-fit"},ou={class:"flex flex-row justify-start items-center gap-[2px] pl-[3px] pr-[3px] pt-[3px] pb-[3px] border border-[#E4DBC8] rounded-full overflow-hidden w-fit h-[34px]"},lu={class:"flex flex-col justify-start items-start gap-[16px] overflow-hidden w-full h-fit"},au=["id"],cu={class:"flex flex-row justify-start items-center gap-[8px] overflow-hidden w-full h-fit"},fu={class:"flex flex-row justify-start items-start pl-[5px] pr-[5px] pt-[5px] pb-[5px] bg-[#9A3B3B] rounded-[4px] overflow-hidden w-fit h-fit"},pu={class:"whitespace-pre-wrap font-mono text-[10px] font-[700] text-[#FFFAF0] w-fit h-fit"},uu={key:0,class:"flex flex-row justify-start items-start pl-[5px] pr-[5px] pt-[5px] pb-[5px] bg-[#9A3B3B] rounded-[4px] overflow-hidden w-fit h-fit"},du=["data-action"],hu={class:"whitespace-pre-wrap font-serif text-[11px] font-[600] text-[#6F2929] w-fit h-fit"},xu=["data-action"],gu=["innerHTML"],wu={key:1,class:"whitespace-pre-wrap font-serif text-[14px] font-[400] text-[#2A2421] leading-[22px] w-full h-fit mb-[10px]"},vu={key:2,class:"flex flex-col justify-start items-start gap-[6px] w-full h-fit mb-[10px]"},mu={class:"whitespace-pre-wrap font-serif text-[10px] font-[600] text-[#A89878] w-fit h-fit"},bu=["onClick"],_u=["src"],yu={class:"whitespace-pre-wrap font-serif text-[9px] font-[400] text-[#2A2421] flex-1 min-w-0 h-fit"},ku={class:"whitespace-pre-wrap font-mono text-[8px] font-[500] text-[#A89878] w-fit h-fit"},Au=["onClick"],Fu={class:"whitespace-pre-wrap font-serif text-[10px] font-[500] text-[#9A3B3B] w-fit h-fit"},$u={key:4,class:"w-full"},Su={class:"flex flex-col justify-start items-start gap-[10px] pl-[12px] pr-[12px] pt-[12px] pb-[12px] bg-[#F5EFE3] overflow-hidden w-full h-fit"},Eu={class:"flex flex-row justify-start items-center gap-[6px] overflow-hidden w-full h-fit"},Tu=["data-action"],Cu={class:"whitespace-pre-wrap font-serif text-[9px] font-[600] text-[#FFFAF0] w-fit h-fit"},Bu=["data-action"],ju={class:"whitespace-pre-wrap font-serif text-[11px] font-[400] text-[#2A2421] leading-[17px] w-full h-fit"},Ru={class:"flex flex-row justify-between items-center gap-[14px] overflow-hidden w-full h-fit"},Pu=["data-action"],Iu=["data-action"],Du=["src"],Lu={class:"whitespace-pre-wrap font-mono text-[10px] font-[500] text-[#9A3B3B] w-fit h-fit"},Mu={class:"flex flex-row justify-start items-center gap-[6px] overflow-hidden w-full h-fit"},Ou={class:"whitespace-pre-wrap font-serif text-[10px] font-[600] text-[#6F2929] w-fit h-fit"},zu={class:"whitespace-pre-wrap font-serif text-[11px] font-[400] text-[#2A2421] leading-[17px] w-full h-fit"},Nu={class:"flex flex-row justify-between items-center gap-[10px] overflow-hidden w-full h-fit"},qu=["data-action"],Uu={class:"flex flex-row justify-center items-center gap-[12px] overflow-hidden w-fit h-fit"},Hu=["data-action"],Vu=["src"],Ku={class:"whitespace-pre-wrap font-mono text-[10px] font-[500] text-[#9A3B3B] w-fit h-fit"},Wu=["data-action"],Qu=["src"],Zu={key:0,class:"flex flex-col justify-center items-center py-[30px] w-full"},Gu={class:"whitespace-pre-wrap font-serif text-[12px] font-[400] text-[#7A716A] w-fit h-fit"},Ju={class:"fixed bottom-0 left-0 right-0 z-20 w-full flex flex-row justify-start items-center gap-[10px] pl-[14px] pr-[14px] pt-[14px] pb-[14px] bg-[#FFFAF0] border border-[#E4DBC8] overflow-hidden w-full h-[80px]"},Xu={"data-action":"favQuestion",class:"flex flex-row justify-center items-center gap-[5px] bg-[#FFFAF0] border border-[#A89878] rounded-[10px] overflow-hidden w-[112px] h-[46px]"},Yu=["src"],ed=Re({__name:"DetailScreen",setup(e){const t=Me({}),s=Me("likes"),i=Me(!1);let r,n;const o=M(()=>u.detail),l=M(()=>u.answers),a=M(()=>u.answerTotal),p=M(()=>u.detailLoading),f=M(()=>u.likedAnswers),h=M(()=>u.favedAnswers),x=M(()=>u.focusAnswerId),w=M(()=>(o.value?.tags||"").split(/[,，\s]+/).filter(Boolean));function C(b){const N=String(b);t.value[N]=!t.value[N],t.value[N]&&re.loadReplies(b)}function F(b){return u.repliesByAnswer[String(b)]||[]}function T(b){return u.replies.filter(N=>String(N.answerId)===String(b))}function P(b){return b?b.slice(0,1):"答"}function H(b){return b>=1e3?`${(b/1e3).toFixed(1)}k`:String(b)}function U(b){if(!b)return[];try{const N=JSON.parse(b);return Array.isArray(N)?N:[]}catch{return[]}}function O(b){return b===1?"课程":b===2?"问答":b===3?"电子书":"资料"}function te(b){return b===1?"/design/svg/21_75.svg":b===2?"/design/svg/21_82.svg":"/design/svg/21_89.svg"}function ge(b){return Qp(b.source_type,b.source_id,b.parent_id)}function B(b){const N=ge(b);N?.h5Url&&(window.location.href=N.h5Url)}async function V(b){s.value=b;const N=o.value?.id;if(N)try{const oe=await ce.get(`/forums/question/${N}/answers`,{sort:b,filter:"all",page:1,limit:50});u.answers=oe.list||[],u.answerTotal=oe.total||0}catch{}}return Gt([l,x],async()=>{const b=x.value;if(!b||!l.value.some(oe=>String(oe.id)===b))return;await lo();const N=document.getElementById(`answer-${b}`);N&&(N.scrollIntoView({behavior:"smooth",block:"center"}),setTimeout(()=>{u.focusAnswerId===b&&(u.focusAnswerId="")},2500))}),ki(()=>{const b=u.created,N=o.value?.id;if(b&&b.ai_requested===1&&N&&l.value.length===0){i.value=!0;let oe=0;r=setInterval(async()=>{if(oe++,oe>24){i.value=!1,clearInterval(r);return}await re.loadAnswers(N),u.answers.length>0&&(i.value=!1,clearInterval(r))},5e3)}if(b&&N&&!w.value.length){let oe=0;n=setInterval(async()=>{if(oe++,oe>10){clearInterval(n);return}await re.loadDetail(N),w.value.length&&clearInterval(n)},1500)}}),Ai(()=>{r&&clearInterval(r),n&&clearInterval(n)}),(b,N)=>{const oe=Ca("wx-open-launch-weapp");return S(),j("section",Gp,[N[9]||(N[9]=c("div",{"data-action":"go:home",class:"flex flex-row justify-between items-center pl-[16px] pr-[16px] bg-[#FFFAF0] overflow-hidden w-full h-[48px]"},[c("div",{class:"whitespace-pre-wrap font-serif text-[12px] font-[400] text-[#9A3B3B] w-fit h-fit"},"‹ 返回"),c("div",{class:"whitespace-pre-wrap font-serif text-[16px] font-[600] text-[#2A2421] w-fit h-fit"},"问题详情"),c("div",{class:"whitespace-pre-wrap font-mono text-[11px] font-[500] text-[#7A716A] w-fit h-fit"},"···")],-1)),c("div",Jp,[c("div",Xp,A(o.value?.title||"加载中…"),1),c("div",Yp,[(S(!0),j(se,null,Ce(w.value,(v,W)=>(S(),j("div",{key:W,"data-action":`tag:${v}`,class:"flex flex-row justify-start items-start pl-[6px] pr-[6px] pt-[3px] pb-[3px] bg-[#F5EFE3] border border-[#E4DBC8] rounded-[4px] overflow-hidden w-fit h-[20px]"},[c("div",tu,"#"+A(v),1)],8,eu))),128))])]),N[10]||(N[10]=c("div",{class:"relative bg-[#E4DBC8] overflow-hidden w-full h-[1px]"},null,-1)),c("div",su,[c("div",iu,[c("div",ru,[c("div",nu,A(a.value)+" 个回答",1)]),c("div",ou,[c("div",{onClick:N[0]||(N[0]=v=>V("likes")),class:"flex flex-row justify-center items-center pl-[12px] pr-[12px] rounded-full overflow-hidden w-fit h-[28px] cursor-pointer",style:ve(s.value==="likes"?"background:#9A3B3B":"")},[c("div",{class:ne(["whitespace-pre-wrap font-serif text-[11px] w-fit h-fit",s.value==="likes"?"font-[600] text-[#FFFAF0]":"font-[400] text-[#7A716A]"])},"按赞数排序",2)],4),c("div",{onClick:N[1]||(N[1]=v=>V("reply_time")),class:"flex flex-row justify-center items-center pl-[12px] pr-[12px] rounded-full overflow-hidden w-fit h-[28px] cursor-pointer",style:ve(s.value==="reply_time"?"background:#9A3B3B":"")},[c("div",{class:ne(["whitespace-pre-wrap font-serif text-[11px] w-fit h-fit",s.value==="reply_time"?"font-[600] text-[#FFFAF0]":"font-[400] text-[#7A716A]"])},"按回复时间排序",2)],4)])]),c("div",lu,[(S(!0),j(se,null,Ce(l.value,(v,W)=>(S(),j("div",{key:String(v.id),id:`answer-${v.id}`,class:ne([x.value===String(v.id)?"answer-focused":"","flex flex-col justify-start items-start gap-[5px] pl-[12px] pr-[12px] pt-[8px] pb-[8px] bg-[#FFFAF0] border border-[#E4DBC8] rounded-[10px] overflow-hidden w-full h-fit"])},[c("div",cu,[c("div",fu,[c("div",pu,"#"+A(W+1),1)]),v.answer_type===1?(S(),j("div",uu,[...N[2]||(N[2]=[c("div",{class:"whitespace-pre-wrap font-serif text-[9px] font-[600] text-[#FFFAF0] w-fit h-fit"},"AI 回答",-1)])])):be("",!0),v.answer_type!==1?(S(),j(se,{key:1},[c("div",{"data-action":String(v.author_user_id)!=="0"?`openuser:${v.author_user_id}`:"",class:ne(["flex flex-col justify-center items-center bg-[#F7EED9] rounded-full overflow-hidden w-[24px] h-[24px]",String(v.author_user_id)!=="0"?"cursor-pointer":""])},[c("div",hu,A(P(v.author_name)),1)],10,du),c("div",{"data-action":String(v.author_user_id)!=="0"?`openuser:${v.author_user_id}`:"",class:ne(["whitespace-pre-wrap font-serif text-[12px] font-[600] text-[#2A2421] w-fit h-fit",String(v.author_user_id)!=="0"?"cursor-pointer":""])},A(v.author_name),11,xu)],64)):be("",!0),N[3]||(N[3]=c("div",{class:"relative overflow-hidden flex-1 min-w-0 h-[1px]"},null,-1))]),v.answer_type===1?(S(),j("div",{key:0,class:"md-body font-serif text-[14px] font-[400] text-[#2A2421] leading-[22px] w-full h-fit mb-[10px]",innerHTML:ct(xl)(v.content)},null,8,gu)):(S(),j("div",wu,A(v.content),1)),v.answer_type===1&&U(v.references).length?(S(),j("div",vu,[c("div",mu,"引用 "+A(U(v.references).length)+" 个资料来源",1),(S(!0),j(se,null,Ce(U(v.references),($,q)=>(S(),j("div",{key:q,class:"flex flex-row justify-start items-center gap-[6px] pl-[8px] pr-[8px] pt-[6px] pb-[6px] bg-[#F7EED9] border border-[#B8924A] rounded-[8px] overflow-hidden w-full h-fit cursor-pointer",style:{position:"relative"},onClick:D=>B($)},[c("img",{class:"w-[12px] h-[12px] shrink-0 block",src:te($.source_type),alt:""},null,8,_u),c("div",yu,A($.title||"资料来源"),1),c("div",ku,A(O($.source_type))+" ›",1),ct(Zp)()&&ge($)?.miniPath?(S(),rt(oe,{key:0,username:ct(Np),path:ge($).miniPath,style:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%",opacity:"0","z-index":"2"}},null,8,["username","path"])):be("",!0)],8,bu))),128))])):be("",!0),v.reply_count>0?(S(),j("div",{key:3,"data-action":"toggle",onClick:Go($=>C(v.id),["stop"]),class:"flex flex-row justify-center items-center gap-[5px] bg-[#F5EFE3] rounded-[6px] overflow-hidden w-full h-[24px] cursor-pointer"},[c("div",Fu,A(t.value[String(v.id)]?"收起":"展开")+" "+A(v.reply_count)+" 条回复",1),c("img",{class:"w-[10px] h-[10px] shrink-0 block transition-transform duration-200",style:ve(t.value[String(v.id)]?"transform:rotate(180deg)":""),src:Pf,alt:""},null,4)],8,Au)):be("",!0),t.value[String(v.id)]?(S(),j("div",$u,[c("div",Su,[(S(!0),j(se,null,Ce(F(v.id),$=>(S(),j("div",{key:String($.id),class:"flex flex-col justify-start items-start gap-[6px] pl-[12px] pr-[12px] pt-[12px] pb-[12px] bg-[#FFFAF0] border border-[#E4DBC8] rounded-[8px] overflow-hidden w-full h-fit"},[c("div",Eu,[c("div",{"data-action":String($.user_id)!=="0"?`openuser:${$.user_id}`:"",class:ne(["flex flex-col justify-center items-center bg-[#9A3B3B] rounded-full overflow-hidden w-[20px] h-[20px]",String($.user_id)!=="0"?"cursor-pointer":""])},[c("div",Cu,A(P($.author_name)),1)],10,Tu),c("div",{"data-action":String($.user_id)!=="0"?`openuser:${$.user_id}`:"",class:ne(["whitespace-pre-wrap font-serif text-[10px] font-[600] text-[#6F2929] w-fit h-fit",String($.user_id)!=="0"?"cursor-pointer":""])},A($.author_name),11,Bu)]),c("div",ju,A($.content),1),c("div",Ru,[c("div",{"data-action":`write:replyTo:${$.author_name}@${v.id}#${$.id}#${$.user_id}`,class:"whitespace-pre-wrap font-serif text-[10px] font-[400] text-[#7A716A] w-fit h-fit"},"回复 ›",8,Pu),c("div",{"data-action":`likeReply:${$.id}`,class:"flex flex-row justify-center items-center gap-[4px] pl-[8px] pr-[8px] pt-[4px] pb-[4px] bg-[rgba(154,59,59,0.122)] rounded-full overflow-hidden w-fit h-fit cursor-pointer"},[c("img",{class:"w-[13px] h-[13px] shrink-0 block",src:ct(u).likedReplies.includes(String($.id))?"/design/svg/like-solid.svg":"/design/svg/12_23.svg",alt:""},null,8,Du),c("div",Lu,A($.upvote_count),1)],8,Iu)])]))),128)),(S(!0),j(se,null,Ce(T(v.id),($,q)=>(S(),j("div",{key:"my"+q,class:"flex flex-col justify-start items-start gap-[6px] pl-[12px] pr-[12px] pt-[12px] pb-[12px] bg-[#FFFAF0] border border-[#E4DBC8] rounded-[8px] overflow-hidden w-full h-fit"},[c("div",Mu,[N[4]||(N[4]=c("div",{class:"flex flex-col justify-center items-center bg-[#9A3B3B] rounded-full overflow-hidden w-[20px] h-[20px]"},[c("div",{class:"whitespace-pre-wrap font-serif text-[9px] font-[600] text-[#FFFAF0] w-fit h-fit"},"我")],-1)),c("div",Ou,"我 回复 "+A($.to),1)]),c("div",zu,A($.text),1)]))),128))])])):be("",!0),c("div",Nu,[c("div",{"data-action":`write:reply:${v.id}`,class:"whitespace-pre-wrap font-serif text-[10px] font-[400] text-[#7A716A] flex-1 min-w-0 h-fit cursor-pointer"},"＋ 写回复",8,qu),c("div",Uu,[c("div",{"data-action":`like:${v.id}#${v.upvote_count}`,class:"flex flex-row justify-center items-center gap-[5px] pl-[10px] pr-[10px] pt-[5px] pb-[5px] bg-[rgba(154,59,59,0.122)] rounded-full overflow-hidden w-fit h-fit"},[c("img",{class:"w-[15px] h-[15px] shrink-0 block",src:f.value.includes(String(v.id))?"/design/svg/like-solid.svg":"/design/svg/12_23.svg",alt:""},null,8,Vu),c("div",Ku,A(H(v.upvote_count)),1)],8,Hu),c("div",{"data-action":`fav:${v.id}#${v.upvote_count}`,class:"flex flex-row justify-center items-center gap-[5px] pl-[10px] pr-[10px] pt-[5px] pb-[5px] bg-[#FFFAF0] border border-[#E4DBC8] rounded-full overflow-hidden w-fit h-fit"},[c("img",{class:"w-[15px] h-[15px] shrink-0 block",src:h.value.includes(String(v.id))?"/design/svg/star-solid.svg":"/design/svg/12_27.svg",alt:""},null,8,Qu),N[5]||(N[5]=c("div",{class:"whitespace-pre-wrap font-serif text-[10px] font-[400] text-[#7A716A] w-fit h-fit"},"收藏",-1))],8,Wu),N[6]||(N[6]=c("div",{class:"flex flex-row justify-center items-center gap-[5px] pl-[10px] pr-[10px] pt-[5px] pb-[5px] bg-[#FFFAF0] border border-[#E4DBC8] rounded-full overflow-hidden w-fit h-fit"},[c("img",{class:"w-[15px] h-[15px] shrink-0 block",src:If,alt:""}),c("div",{class:"whitespace-pre-wrap font-serif text-[10px] font-[400] text-[#7A716A] w-fit h-fit"},"分享")],-1))])])],10,au))),128)),!p.value&&l.value.length===0?(S(),j("div",Zu,[c("div",Gu,A(i.value?"AI 正在回答中…":"还没有回答，来写第一条吧"),1)])):be("",!0)])]),c("div",Ju,[N[8]||(N[8]=c("div",{"data-action":"write:answer",class:"flex flex-col justify-center items-center bg-[#9A3B3B] rounded-[10px] overflow-hidden flex-1 min-w-0 h-[46px]"},[c("div",{class:"whitespace-pre-wrap font-serif text-[14px] font-[600] text-[#FFFAF0] w-fit h-fit"},"＋ 写回答")],-1)),c("div",Xu,[c("img",{class:"w-[15px] h-[15px] shrink-0 block",src:ct(u).favedQuestion?"/design/svg/star-solid.svg":"/design/svg/12_27.svg",alt:""},null,8,Yu),N[7]||(N[7]=c("div",{class:"whitespace-pre-wrap font-serif text-[11px] font-[400] text-[#6F2929] w-fit h-fit"},"收藏问题",-1))])])])}}}),td="https://cdn.chuanbota.com/zhijiu-xin/design/svg/41_68.svg",sd="https://cdn.chuanbota.com/zhijiu-xin/design/svg/41_84.svg",id="https://cdn.chuanbota.com/zhijiu-xin/design/svg/2_806.svg",rd="https://cdn.chuanbota.com/zhijiu-xin/design/svg/2_810.svg",nd={class:"screen relative w-full bg-[#F5EFE3] flex flex-col",style:{"min-height":"100vh","padding-bottom":"104px"}},od={class:"flex flex-col justify-start items-start gap-[12px] pl-[16px] pr-[16px] pt-[16px] pb-[16px] bg-[#F5EFE3] w-full"},ld={class:"flex flex-col justify-start items-start gap-[10px] pl-[14px] pr-[14px] pt-[14px] pb-[12px] bg-[#FFFAF0] border border-[#E4DBC8] rounded-[12px] overflow-hidden w-full h-fit"},ad={class:"flex flex-row justify-start items-center gap-[12px] overflow-hidden w-full h-fit"},cd={class:"flex flex-col justify-center items-center bg-[#E4DBC8] rounded-full overflow-hidden w-[60px] h-[60px]"},fd=["src"],pd={key:1,class:"whitespace-pre-wrap font-serif text-[22px] font-[600] text-[#6F2929] w-fit h-fit"},ud={class:"flex flex-col justify-start items-start gap-[4px] overflow-hidden flex-1 min-w-0 h-fit"},dd={class:"whitespace-pre-wrap font-serif text-[18px] font-[600] text-[#2A2421] w-fit h-fit"},hd={class:"flex flex-row justify-start items-start gap-[6px] overflow-hidden w-full h-fit"},xd={"data-action":"go:likes",class:"flex flex-col justify-center items-center gap-[2px] bg-[#F5EFE3] rounded-[8px] overflow-hidden flex-1 min-w-0 h-[44px] cursor-pointer"},gd={class:"whitespace-pre-wrap font-mono text-[15px] font-[500] text-[#6F2929] w-fit h-fit"},wd={"data-action":"go:answers",class:"flex flex-col justify-center items-center gap-[2px] bg-[#F5EFE3] rounded-[8px] overflow-hidden flex-1 min-w-0 h-[44px] cursor-pointer"},vd={class:"whitespace-pre-wrap font-mono text-[15px] font-[500] text-[#6F2929] w-fit h-fit"},md={"data-action":"go:liked",class:"flex flex-col justify-center items-center gap-[2px] bg-[#F5EFE3] rounded-[8px] overflow-hidden flex-1 min-w-0 h-[44px] cursor-pointer"},bd={class:"whitespace-pre-wrap font-mono text-[15px] font-[500] text-[#6F2929] w-fit h-fit"},_d={"data-action":"go:favorites",class:"flex flex-col justify-center items-center gap-[2px] bg-[#F5EFE3] rounded-[8px] overflow-hidden flex-1 min-w-0 h-[44px] cursor-pointer"},yd={class:"whitespace-pre-wrap font-mono text-[15px] font-[500] text-[#6F2929] w-fit h-fit"},kd={"data-action":"go:questions",class:"flex flex-col justify-center items-center gap-[2px] bg-[#F5EFE3] rounded-[8px] overflow-hidden flex-1 min-w-0 h-[44px] cursor-pointer"},Ad={class:"whitespace-pre-wrap font-mono text-[15px] font-[500] text-[#6F2929] w-fit h-fit"},Fd={class:"flex flex-col justify-start items-start pl-[12px] pr-[12px] pt-[2px] pb-[2px] bg-[#FFFAF0] border border-[#E4DBC8] rounded-[10px] overflow-hidden w-full h-fit"},$d={"data-action":"go:askme",class:"flex flex-row justify-start items-center gap-[10px] overflow-hidden w-full h-[44px]"},Sd={key:0,class:"flex flex-row justify-center items-center rounded-full overflow-hidden shrink-0",style:{background:"#9A3B3B","min-width":"18px",height:"18px",padding:"0 5px"}},Ed={class:"whitespace-pre-wrap font-mono text-[9px] font-[700] text-[#FFFAF0] w-fit h-fit"},Td=["data-action"],Cd=["data-action"],Bd={class:"flex flex-col justify-start items-start gap-[2px] overflow-hidden flex-1 min-w-0 h-fit"},jd={class:"whitespace-pre-wrap font-serif text-[9px] font-[400] text-[#7A716A] w-fit h-fit"},Rd=Re({__name:"MeScreen",setup(e){const t=M(()=>u.creatorBound),s=M(()=>u.unreplied),i=M(()=>u.user?.nick_name||"问心-直示本心用户"),r=M(()=>u.user?.avatar||""),n=M(()=>(u.user?.nick_name||"我").slice(0,1)),o=M(()=>u.user?.user_id||"0"),l=M(()=>({received_votes:u.myStats?.received_votes??0,answer_count:u.myStats?.answer_count??0,favorite_count:u.myStats?.favorite_count??0,question_count:u.myStats?.question_count??0,vote_count:u.myStats?.vote_count??0}));return(a,p)=>(S(),j("section",nd,[c("div",od,[c("div",ld,[c("div",ad,[c("div",cd,[r.value?(S(),j("img",{key:0,src:r.value,class:"w-full h-full object-cover",alt:"头像"},null,8,fd)):(S(),j("div",pd,A(n.value),1))]),c("div",ud,[c("div",dd,A(i.value),1)]),p[0]||(p[0]=c("div",{"data-action":"go:edit",class:"flex flex-row justify-center items-center pl-[10px] pr-[10px] border border-[#E4DBC8] rounded-full overflow-hidden w-fit h-[26px]"},[c("div",{class:"whitespace-pre-wrap font-serif text-[9px] font-[400] text-[#9A3B3B] w-fit h-fit"},"编辑资料 ›")],-1))]),c("div",hd,[c("div",xd,[c("div",gd,A(l.value.received_votes),1),p[1]||(p[1]=c("div",{class:"whitespace-pre-wrap font-serif text-[9px] font-[400] text-[#7A716A] w-fit h-fit"},"获赞",-1))]),c("div",wd,[c("div",vd,A(l.value.answer_count),1),p[2]||(p[2]=c("div",{class:"whitespace-pre-wrap font-serif text-[9px] font-[400] text-[#7A716A] w-fit h-fit"},"回答",-1))]),c("div",md,[c("div",bd,A(l.value.vote_count),1),p[3]||(p[3]=c("div",{class:"whitespace-pre-wrap font-serif text-[9px] font-[400] text-[#7A716A] w-fit h-fit"},"点赞",-1))]),c("div",_d,[c("div",yd,A(l.value.favorite_count),1),p[4]||(p[4]=c("div",{class:"whitespace-pre-wrap font-serif text-[9px] font-[400] text-[#7A716A] w-fit h-fit"},"收藏",-1))]),c("div",kd,[c("div",Ad,A(l.value.question_count),1),p[5]||(p[5]=c("div",{class:"whitespace-pre-wrap font-serif text-[9px] font-[400] text-[#7A716A] w-fit h-fit"},"提问",-1))])])]),c("div",Fd,[c("div",$d,[p[6]||(p[6]=c("img",{class:"w-[20px] h-[20px] shrink-0 block",src:td,alt:""},null,-1)),p[7]||(p[7]=c("div",{class:"flex flex-col justify-start items-start gap-[2px] overflow-hidden flex-1 min-w-0 h-fit"},[c("div",{class:"whitespace-pre-wrap font-serif text-[12px] font-[400] text-[#2A2421] w-fit h-fit"},"向我提问"),c("div",{class:"whitespace-pre-wrap font-serif text-[9px] font-[400] text-[#7A716A] w-fit h-fit"},"收到的提问列表")],-1)),s.value>0?(S(),j("div",Sd,[c("div",Ed,A(s.value),1)])):be("",!0),p[8]||(p[8]=c("div",{class:"whitespace-pre-wrap font-mono text-[14px] font-[400] text-[#B8924A] w-fit h-fit"},"›",-1))]),p[13]||(p[13]=c("div",{class:"relative bg-[#E4DBC8] overflow-hidden w-full h-[1px]"},null,-1)),c("div",{"data-action":`openuser:${o.value}`,class:"flex flex-row justify-start items-center gap-[10px] overflow-hidden w-full h-[44px]"},[...p[9]||(p[9]=[et('<div class="flex flex-col justify-center items-center bg-[#E4DBC8] rounded-full overflow-hidden w-[20px] h-[20px] shrink-0"><div class="whitespace-pre-wrap font-serif text-[9px] font-[600] text-[#6F2929] w-fit h-fit">文</div></div><div class="flex flex-col justify-start items-start gap-[2px] overflow-hidden flex-1 min-w-0 h-fit"><div class="whitespace-pre-wrap font-serif text-[12px] font-[400] text-[#2A2421] w-fit h-fit">我的个人主页</div><div class="whitespace-pre-wrap font-serif text-[9px] font-[400] text-[#7A716A] w-fit h-fit">查看公开主页</div></div><div class="whitespace-pre-wrap font-mono text-[14px] font-[400] text-[#B8924A] w-fit h-fit">›</div>',3)])],8,Td),p[14]||(p[14]=c("div",{class:"relative bg-[#E4DBC8] overflow-hidden w-full h-[1px]"},null,-1)),c("div",{"data-action":t.value?"toast:已绑定，不支持解绑":"open:bind",class:"flex flex-row justify-start items-center gap-[10px] overflow-hidden w-full h-[44px]"},[p[11]||(p[11]=c("img",{class:"w-[20px] h-[20px] shrink-0 block",src:sd,alt:""},null,-1)),c("div",Bd,[p[10]||(p[10]=c("div",{class:"whitespace-pre-wrap font-serif text-[12px] font-[400] text-[#2A2421] w-fit h-fit"},"绑定创作者账号",-1)),c("div",jd,A(t.value?"已绑定 · 不支持解绑":"关联创作者身份"),1)]),p[12]||(p[12]=c("div",{class:"whitespace-pre-wrap font-mono text-[14px] font-[400] text-[#B8924A] w-fit h-fit"},"›",-1))],8,Cd)])]),p[15]||(p[15]=et('<div class="fixed bottom-0 left-0 right-0 z-20 flex flex-row justify-around items-center bg-[#FFFAF0] w-full h-[64px]"><div data-action="go:home" class="flex flex-col justify-center items-center gap-[4px] overflow-hidden w-[64px] h-[54px]"><img class="w-[20px] h-[20px] shrink-0 block" src="'+id+'" alt=""><div class="whitespace-pre-wrap font-serif text-[10px] font-[400] text-[#7A716A] w-fit h-fit">首页</div></div><div class="flex flex-row justify-center items-center pl-[5px] pr-[5px] pt-[5px] pb-[5px] bg-[#FFFAF0] border border-[#B8924A] rounded-[14px] overflow-hidden w-[124px] h-[44px]"><div data-action="go:ask" class="flex flex-row justify-center items-center gap-[6px] pl-[8px] pr-[8px] bg-[#9A3B3B] rounded-[9px] overflow-hidden w-[114px] h-[34px]"><div class="whitespace-pre-wrap font-serif text-[12px] font-[600] text-[#FFFAF0] w-fit h-fit">提问 · 搜索</div></div></div><div data-action="go:me" class="flex flex-col justify-center items-center gap-[4px] overflow-hidden w-[64px] h-[54px]"><img class="w-[20px] h-[20px] shrink-0 block" src="'+rd+'" alt=""><div class="whitespace-pre-wrap font-serif text-[10px] font-[600] text-[#9A3B3B] w-fit h-fit">我的</div></div></div>',1))]))}}),Pd={style:{position:"fixed",inset:"0","z-index":"30"}},Id={style:{position:"absolute",left:"0",top:"0",bottom:"0",width:"60%","overflow-y":"auto"},class:"flex flex-col justify-start items-start gap-[10px] pl-[24px] pr-[24px] pt-[52px] pb-[24px] bg-[#FFFAF0] border border-[#E4DBC8]"},Dd={class:"flex flex-col justify-start items-start gap-[6px] overflow-hidden w-full h-fit"},Ld=["data-action"],Md={class:"whitespace-pre-wrap font-serif text-[13px] font-[400] text-[#2A2421] w-fit h-fit"},Od={class:"whitespace-pre-wrap font-mono text-[10px] font-[400] text-[#B8924A] w-fit h-fit"},zd={key:1,class:"whitespace-pre-wrap font-serif text-[11px] font-[400] text-[#A89878] w-fit h-fit"},Nd={class:"flex flex-row flex-wrap justify-start items-center gap-[6px] overflow-hidden w-full h-fit"},qd=["data-action"],Ud={class:"whitespace-pre-wrap font-serif text-[10px] font-[400] text-[#6F2929] w-fit h-fit"},Hd=Re({__name:"SidebarScreen",setup(e){const t=M(()=>u.tags),s=M(()=>u.tagsLoading),i=M(()=>t.value.slice(0,5)),r=M(()=>t.value.slice(5));return(n,o)=>(S(),j("section",Pd,[o[4]||(o[4]=c("div",{"data-action":"close:sidebar",style:{position:"absolute",inset:"0",background:"rgba(42,36,33,0.4)"}},null,-1)),c("div",Id,[o[0]||(o[0]=et('<div data-action="close:sidebar" class="flex flex-row justify-between items-center overflow-hidden w-full h-fit"><div class="whitespace-pre-wrap font-serif text-[11px] font-[400] text-[#7A716A] w-fit h-fit">问心-直示本心 / 目录</div><div class="whitespace-pre-wrap font-serif text-[11px] font-[600] text-[#9A3B3B] w-fit h-fit">✕ 收起</div></div><div class="whitespace-pre-wrap font-serif text-[24px] font-[600] text-[#2A2421] w-fit h-fit">目录</div><div class="relative bg-[#A89878] overflow-hidden w-full h-[1px]"></div><div data-action="go:home" class="flex flex-row justify-between items-center pl-[8px] pr-[8px] pt-[8px] pb-[8px] rounded-[6px] overflow-hidden w-full h-[36px]"><div class="whitespace-pre-wrap font-serif text-[13px] font-[400] text-[#2A2421] w-fit h-fit">首页 · 全部问题</div><div class="whitespace-pre-wrap font-mono text-[10px] font-[400] text-[#B8924A] w-fit h-fit">全部</div></div>',4)),c("div",Dd,[t.value.length?(S(!0),j(se,{key:0},Ce(i.value,l=>(S(),j("div",{key:l.name,"data-action":`tag:${l.name}`,class:"flex flex-row justify-between items-center pl-[8px] pr-[8px] pt-[8px] pb-[8px] rounded-[6px] overflow-hidden w-full h-[36px]"},[c("div",Md,"#"+A(l.name),1),c("div",Od,A(l.question_count)+" 问",1)],8,Ld))),128)):(S(),j("div",zd,A(s.value?"加载中…":"暂无标签数据"),1))]),o[1]||(o[1]=c("div",{class:"relative bg-[#E4DBC8] overflow-hidden w-full h-[1px]"},null,-1)),o[2]||(o[2]=c("div",{class:"whitespace-pre-wrap font-mono text-[10px] font-[500] text-[#B8924A] w-fit h-fit"},"更多标签 · 按话题浏览",-1)),c("div",Nd,[(S(!0),j(se,null,Ce(r.value,l=>(S(),j("div",{key:l.name,"data-action":`tag:${l.name}`,class:"flex flex-row justify-start items-start pl-[7px] pr-[7px] pt-[5px] pb-[5px] bg-[#F5EFE3] border border-[#E4DBC8] rounded-full overflow-hidden w-fit h-[24px]"},[c("div",Ud,"#"+A(l.name),1)],8,qd))),128))]),o[3]||(o[3]=c("div",{class:"flex flex-col justify-end items-start bg-[#FFFAF0] overflow-hidden w-full flex-1 min-h-0"},null,-1))])]))}}),Ei="https://cdn.chuanbota.com/zhijiu-xin/design/svg/12_65.svg",Vd={style:{position:"fixed",inset:"0","z-index":"30"}},Kd={style:{position:"absolute",left:"0",right:"0",bottom:"0","border-radius":"20px 20px 0 0"},class:"flex flex-col justify-start items-start gap-[10px] pl-[20px] pr-[20px] pt-[8px] pb-[28px] bg-[#FFFAF0] border border-[#E4DBC8] overflow-hidden w-full h-[366px]"},Wd={class:"flex flex-row justify-start items-center gap-[8px] pl-[2px] pr-[2px] overflow-hidden w-full h-[32px] cursor-pointer"},Qd=Re({__name:"AskScreen",setup(e){const t=M({get:()=>u.askTitle,set:i=>{u.askTitle=i}}),s=M({get:()=>u.askAnonymous,set:i=>{u.askAnonymous=i}});return(i,r)=>(S(),j("section",Vd,[r[6]||(r[6]=c("div",{"data-action":"close:ask",style:{position:"absolute",inset:"0",background:"rgba(42,36,33,0.4)"}},null,-1)),c("div",Kd,[r[3]||(r[3]=c("img",{class:"w-[20px] h-[4px] shrink-0 block",src:Ei,alt:""},null,-1)),r[4]||(r[4]=c("div",{"data-action":"close:ask",class:"flex flex-row justify-between items-center overflow-hidden w-full h-fit"},[c("div",{class:"whitespace-pre-wrap font-serif text-[18px] font-[600] text-[#2A2421] w-fit h-fit"},"提一个问题"),c("div",{class:"whitespace-pre-wrap font-serif text-[11px] font-[400] text-[#7A716A] w-fit h-fit"},"✕ 关闭")],-1)),At(c("textarea",{"onUpdate:modelValue":r[0]||(r[0]=n=>t.value=n),placeholder:"输入你的问题…",class:"font-serif text-[14px] font-[600] text-[#2A2421] leading-[22px] w-full h-[104px] pl-[14px] pr-[14px] pt-[14px] pb-[14px] bg-[#F5EFE3] rounded-[10px]",style:{"box-sizing":"border-box",border:"1px solid #B8924A",resize:"none",outline:"none"}},null,512),[[es,t.value]]),c("label",Wd,[At(c("input",{type:"checkbox","onUpdate:modelValue":r[1]||(r[1]=n=>s.value=n),class:"w-[16px] h-[16px] shrink-0",style:{"accent-color":"#9A3B3B"}},null,512),[[Qo,s.value]]),r[2]||(r[2]=c("div",{class:"whitespace-pre-wrap font-serif text-[12px] font-[600] text-[#2A2421] w-fit h-fit"},"匿名提问",-1))]),r[5]||(r[5]=et('<div class="flex flex-row justify-center items-center gap-[6px] pl-[2px] pr-[2px] pt-[8px] overflow-hidden w-full h-[28px]"><div class="whitespace-pre-wrap font-mono text-[9px] font-[500] text-[#A89878] w-fit h-fit">01 输入</div><div class="whitespace-pre-wrap font-mono text-[11px] font-[500] text-[#A89878] w-fit h-fit">›</div><div class="whitespace-pre-wrap font-mono text-[9px] font-[500] text-[#A89878] w-fit h-fit">02 查相似</div><div class="whitespace-pre-wrap font-mono text-[11px] font-[500] text-[#A89878] w-fit h-fit">›</div><div class="whitespace-pre-wrap font-mono text-[9px] font-[500] text-[#9A3B3B] w-fit h-fit">03 发布 → 详情</div></div><div class="relative bg-[#FFFAF0] overflow-hidden w-full flex-1 min-h-0"></div><div data-action="step:next" class="flex flex-row justify-center items-center bg-[#9A3B3B] rounded-[10px] overflow-hidden w-full h-[46px]"><div class="whitespace-pre-wrap font-serif text-[14px] font-[600] text-[#FFFAF0] w-fit h-fit">下一步 · 找相似问题</div></div>',3))])]))}}),Zd={style:{position:"fixed",inset:"0","z-index":"30"},class:"flex flex-col bg-[#F5EFE3]"},Gd={class:"flex flex-col justify-start items-start gap-[12px] pl-[16px] pr-[16px] pt-[16px] pb-[16px] bg-[#F5EFE3] overflow-hidden w-full flex-1 min-h-0"},Jd={class:"flex flex-col justify-start items-start gap-[6px] pl-[14px] pr-[14px] pt-[12px] pb-[12px] bg-[#FFFAF0] border border-[#E4DBC8] rounded-[10px] overflow-hidden w-full h-fit"},Xd={class:"whitespace-pre-wrap font-serif text-[13px] font-[600] text-[#2A2421] w-full h-fit"},Yd={class:"flex flex-row justify-between items-center overflow-hidden w-full h-fit"},eh={class:"whitespace-pre-wrap font-serif text-[12px] font-[600] text-[#6F2929] w-fit h-fit"},th={class:"flex flex-col justify-start items-start gap-[8px] overflow-hidden w-full h-fit"},sh=["data-action"],ih={class:"whitespace-pre-wrap font-mono text-[9px] font-[500] text-[#9A3B3B] w-fit h-fit"},rh={class:"whitespace-pre-wrap font-serif text-[13px] font-[600] text-[#2A2421] leading-[19px] flex-1 min-w-0 h-fit"},nh={class:"flex flex-row justify-between items-center gap-[8px] overflow-hidden w-full h-fit"},oh={class:"whitespace-pre-wrap font-mono text-[10px] font-[400] text-[#7A716A] w-fit h-fit"},lh=["data-action"],ah={key:0,class:"flex flex-col justify-center items-center py-[20px] w-full"},ch={class:"whitespace-pre-wrap font-serif text-[11px] font-[400] text-[#7A716A] w-fit h-fit"},fh=Re({__name:"SimilarScreen",setup(e){const t=M(()=>u.askTitle),s=M(()=>u.askSimilar),i=M(()=>u.similarLoading);function r(n){return n>=1e3?`${(n/1e3).toFixed(1)}k`:String(n)}return(n,o)=>(S(),j("section",Zd,[c("div",Gd,[c("div",Jd,[o[0]||(o[0]=c("div",{class:"whitespace-pre-wrap font-mono text-[9px] font-[500] text-[#A89878] w-fit h-fit"},"你输入的问题",-1)),c("div",Xd,A(t.value||"—"),1)]),c("div",Yd,[c("div",eh,"找到 "+A(s.value.length)+" 个相似问题",1)]),c("div",th,[(S(!0),j(se,null,Ce(s.value,l=>(S(),j("div",{key:String(l.id),class:"flex flex-col justify-start items-start gap-[6px] pl-[14px] pr-[14px] pt-[12px] pb-[12px] bg-[#FFFAF0] border border-[#E4DBC8] rounded-[10px] overflow-hidden w-full h-fit"},[c("div",{"data-action":`openquestion:${l.id}`,class:"flex flex-row justify-start items-center gap-[8px] overflow-hidden w-full h-fit"},[c("div",ih,A(l.similarity)+"% 相似",1),c("div",rh,A(l.title),1)],8,sh),c("div",nh,[c("div",oh,A(l.answer_count)+" 答 · ♡ "+A(r(l.upvote_count||0)),1),c("div",{"data-action":`openquestion:${l.id}`,class:"whitespace-pre-wrap font-serif text-[10px] font-[600] text-[#9A3B3B] w-fit h-fit"},"看回答 ›",8,lh)])]))),128)),s.value.length?be("",!0):(S(),j("div",ah,[c("div",ch,A(i.value?"正在查找相似问题…":"没有找到相似问题，可直接发布"),1)]))]),o[1]||(o[1]=c("div",{class:"relative bg-[#F5EFE3] overflow-hidden w-full flex-1 min-h-0"},null,-1)),o[2]||(o[2]=c("div",{class:"whitespace-pre-wrap font-serif text-[11px] font-[400] text-[#7A716A] w-full h-fit"},"没有相似或满意的问答？",-1))]),o[3]||(o[3]=et('<div class="flex flex-row justify-start items-center gap-[10px] pl-[14px] pr-[14px] pt-[14px] pb-[14px] bg-[#FFFAF0] border border-[#E4DBC8] overflow-hidden w-full h-[80px] shrink-0"><div data-action="step:prev" class="flex flex-col justify-center items-center bg-[#F5EFE3] border border-[#A89878] rounded-[10px] overflow-hidden flex-1 min-w-0 h-[46px] cursor-pointer"><div class="whitespace-pre-wrap font-serif text-[12px] font-[400] text-[#6F2929] w-fit h-fit">‹ 上一步</div></div><div data-action="publish" class="flex flex-col justify-center items-center bg-[#9A3B3B] rounded-[10px] overflow-hidden flex-1 min-w-0 h-[46px]"><div class="whitespace-pre-wrap font-serif text-[14px] font-[600] text-[#FFFAF0] w-fit h-fit">继续提问 · 发布问题</div></div></div>',1))]))}}),ph={class:"screen relative w-full bg-[#F5EFE3] flex flex-col",style:{"min-height":"100vh","padding-bottom":"24px"}},uh={class:"flex flex-col justify-start items-start gap-[14px] pl-[16px] pr-[16px] pt-[20px] pb-[20px] bg-[#F5EFE3] overflow-hidden w-full flex-1 min-h-0"},dh={class:"flex flex-col justify-start items-start gap-[6px] pl-[14px] pr-[14px] pt-[14px] pb-[14px] bg-[#FFFAF0] border border-[#E4DBC8] rounded-[10px] overflow-hidden w-full h-fit"},hh={class:"whitespace-pre-wrap font-mono text-[9px] font-[500] text-[#A89878] w-fit h-fit"},xh={class:"whitespace-pre-wrap font-serif text-[15px] font-[600] text-[#2A2421] leading-[22px] w-full h-fit"},gh={class:"whitespace-pre-wrap font-serif text-[10px] font-[400] text-[#6F2929] w-fit h-fit"},wh={class:"flex flex-row justify-between items-center gap-[6px] overflow-hidden w-full h-[24px]"},vh={class:"whitespace-pre-wrap font-serif text-[12px] font-[600] text-[#2A2421] w-fit h-fit"},mh={key:0,class:"flex flex-col justify-start items-start gap-[12px] pl-[18px] pr-[18px] pt-[20px] pb-[20px] bg-[#F7EED9] border border-[#B8924A] rounded-[12px] overflow-hidden w-full h-fit"},bh={style:{width:"100%",height:"4px",background:"#E4DBC8","border-radius":"999px",overflow:"hidden"}},_h={class:"flex flex-col justify-start items-start gap-[8px] overflow-hidden w-full h-fit"},yh={key:0,class:"font-serif text-[11px]"},kh={key:1,class:"wx-spinner shrink-0"},Ah={class:"whitespace-pre-wrap font-serif text-[11px] font-[400] leading-[17px]"},Fh=["data-action"],$h=Re({__name:"PostedScreen",setup(e){const t=M(()=>u.created),s=M(()=>u.askTitle),i=M(()=>u.askAnonymous),r=Me(null),n=["检索知识库中的相关资料","整理可追溯的小程序链接","正在撰写回答，稍候进入同榜列表"],o=Me(0),l=M(()=>n.slice(0,o.value+1)),a=M(()=>Math.round((o.value+1)/n.length*100));let p,f;return ki(()=>{p=setInterval(()=>{o.value<n.length-1?o.value++:p&&(clearInterval(p),p=void 0)},6e3);const h=t.value?.id;if(t.value?.ai_requested===1&&h){let x=0;f=setInterval(async()=>{if(x++,x>24){clearInterval(f),f=void 0;return}try{const w=await de.answers(h,{page:1,limit:50});w.list&&w.list.length>0&&(clearInterval(f),f=void 0,p&&(clearInterval(p),p=void 0),o.value=n.length-1,r.value?.click())}catch{}},5e3)}}),Ai(()=>{p&&clearInterval(p),f&&clearInterval(f)}),(h,x)=>(S(),j("section",ph,[x[2]||(x[2]=c("div",{"data-action":"go:home",class:"flex flex-row justify-between items-center pl-[16px] pr-[16px] bg-[#FFFAF0] overflow-hidden w-full h-[48px]"},[c("div",{class:"whitespace-pre-wrap font-serif text-[12px] font-[400] text-[#9A3B3B] w-fit h-fit"},"‹ 返回"),c("div",{class:"whitespace-pre-wrap font-serif text-[16px] font-[600] text-[#2A2421] w-fit h-fit"},"问题详情"),c("div",{class:"whitespace-pre-wrap font-mono text-[11px] font-[500] text-[#7A716A] w-fit h-fit"},"···")],-1)),c("div",uh,[c("div",dh,[c("div",hh,"刚刚发布"+A(i.value?" · 匿名提问":""),1),c("div",xh,A(t.value?.title||s.value),1),c("div",gh,"✦ "+A(t.value?.ai_requested?"AI 正在生成回答":"今日 AI 配额已用完 · 仅发布")+" · 今日 "+A(t.value?.ai_used_today??"—")+"/"+A(t.value?.ai_quota??"—"),1)]),c("div",wh,[c("div",vh,A(t.value?.ai_requested?"回答 · 1 条生成中":"回答 · 等待回答"),1)]),t.value?.ai_requested?(S(),j("div",mh,[x[0]||(x[0]=et('<div class="flex flex-row justify-start items-center gap-[10px] overflow-hidden w-full h-fit" data-v-f9bee3a8><div class="whitespace-pre-wrap font-mono text-[22px] font-[500] text-[#B8924A] w-fit h-fit" data-v-f9bee3a8>✦</div><div class="whitespace-pre-wrap font-serif text-[17px] font-[600] text-[#6F2929] flex-1 min-w-0 h-fit" data-v-f9bee3a8>AI 正在回答中<span class="wx-dot" style="animation-delay:0s;" data-v-f9bee3a8>·</span><span class="wx-dot" style="animation-delay:.2s;" data-v-f9bee3a8>·</span><span class="wx-dot" style="animation-delay:.4s;" data-v-f9bee3a8>·</span></div></div><div class="whitespace-pre-wrap font-serif text-[11px] font-[400] text-[#7A716A] leading-[17px] w-full h-fit" data-v-f9bee3a8>基于知识库生成回答并附小程序链接，通常 20 秒以上，请稍候</div>',2)),c("div",bh,[c("div",{style:ve({width:a.value+"%",height:"100%",background:"#B8924A",borderRadius:"999px",transition:"width .6s ease"})},null,4)]),c("div",_h,[(S(!0),j(se,null,Ce(l.value,(w,C)=>(S(),j("div",{key:w,class:"flex flex-row justify-start items-center gap-[6px] w-full h-fit",style:ve({color:C===o.value?"#2A2421":"#6F2929",transition:"color .3s ease"})},[C<o.value?(S(),j("span",yh,"✓")):(S(),j("span",kh)),c("span",Ah,A(w),1)],4))),128))]),c("div",{ref_key:"jumpEl",ref:r,"data-action":`openquestion:${t.value?.id||""}`,style:{display:"none"}},null,8,Fh)])):be("",!0),x[1]||(x[1]=c("div",{class:"relative bg-[#F5EFE3] overflow-hidden w-full flex-1 min-h-0"},null,-1))])]))}}),Sh=(e,t)=>{const s=e.__vccOpts||e;for(const[i,r]of t)s[i]=r;return s},Eh=Sh($h,[["__scopeId","data-v-f9bee3a8"]]),Th="https://cdn.chuanbota.com/zhijiu-xin/design/svg/31_503.svg",Ch="https://cdn.chuanbota.com/zhijiu-xin/design/svg/31_505.svg",Bh="https://cdn.chuanbota.com/zhijiu-xin/design/svg/31_79.svg",jh="https://cdn.chuanbota.com/zhijiu-xin/design/svg/31_82.svg",Rh={class:"screen relative w-full bg-[#F5EFE3] flex flex-col",style:{"min-height":"100vh","padding-bottom":"104px"}},Ph={class:"flex flex-row justify-between items-center gap-[8px] pl-[16px] pr-[16px] pt-[20px] pb-[8px] bg-[#FFFAF0] overflow-hidden w-full h-[60px]"},Ih={class:"flex flex-row justify-center items-center gap-[2px] pl-[3px] pr-[3px] pt-[3px] pb-[3px] border border-[#E4DBC8] rounded-full overflow-hidden w-fit h-[34px]"},Dh={class:"flex flex-col justify-start items-start bg-[#FFFAF0] w-full"},Lh={class:"flex flex-col justify-start items-start pb-[3px] bg-[#FFFAF0] overflow-hidden w-full h-fit"},Mh={class:"flex flex-row justify-between items-center gap-[10px] pl-[12px] pr-[12px] pt-[6px] pb-[6px] bg-[#F5EFE3] overflow-hidden w-full h-[46px]"},Oh={class:"flex flex-row justify-start items-center gap-[10px] overflow-hidden w-fit h-fit"},zh={class:"whitespace-pre-wrap font-serif text-[18px] font-[600] text-[#6F2929] w-fit h-fit"},Nh={class:"flex flex-col justify-start items-end gap-[3px] overflow-hidden w-fit h-fit"},qh={class:"whitespace-pre-wrap font-mono text-[12px] font-[500] text-[#6F2929] w-fit h-fit"},Uh=["data-action"],Hh={class:"whitespace-pre-wrap font-serif text-[14px] font-[600] text-[#2A2421] leading-[20px] w-full h-fit"},Vh={class:"flex flex-row justify-between items-center overflow-hidden w-full h-[13px]"},Kh={class:"flex flex-row justify-start items-center gap-[4px] overflow-hidden w-fit h-fit"},Wh={key:1,class:"relative overflow-hidden w-[1px] h-[1px]"},Qh={class:"flex flex-row justify-start items-center gap-[4px] overflow-hidden w-fit h-fit"},Zh={class:"whitespace-pre-wrap font-mono text-[10px] font-[400] text-[#7A716A] w-fit h-fit"},Gh={key:1,class:"flex flex-col justify-center items-center py-[40px] w-full"},Jh={class:"whitespace-pre-wrap font-serif text-[13px] font-[400] text-[#7A716A] w-fit h-fit"},Xh={class:"flex flex-row justify-center items-center gap-[10px] pt-[12px] pb-[12px] bg-[#FFFAF0] overflow-hidden w-full h-fit"},Yh={class:"whitespace-pre-wrap font-mono text-[10px] font-[500] text-[#7A716A] w-fit h-fit"},ex=Re({__name:"TopicScreen",setup(e){const t=M(()=>u.topicTab),s=M(()=>u.page),i=M(()=>u.questions),r=M(()=>u.questionTotal),n=M(()=>u.listLoading),o=M(()=>u.currentTag),l=M(()=>Math.max(1,Math.ceil(r.value/10)));function a(p){return p>=1e3?`${(p/1e3).toFixed(1)}k`:String(p)}return(p,f)=>(S(),j("section",Rh,[c("div",Ph,[f[0]||(f[0]=c("div",{"data-action":"go:sidebar",class:"flex flex-row justify-center items-center gap-[7px] pl-[10px] pr-[10px] border border-[#E4DBC8] rounded-full overflow-hidden w-fit h-[34px]"},[c("div",{class:"whitespace-pre-wrap font-mono text-[13px] font-[500] text-[#6F2929] w-fit h-fit"},"☰"),c("div",{class:"whitespace-pre-wrap font-serif text-[12px] font-[600] text-[#6F2929] w-fit h-fit"},"目录"),c("div",{class:"whitespace-pre-wrap font-mono text-[13px] font-[500] text-[#B8924A] w-fit h-fit"},"›")],-1)),c("div",Ih,[c("div",{"data-action":"ttab:recent",class:"flex flex-row justify-center items-center pl-[12px] pr-[12px] rounded-full overflow-hidden w-fit h-[28px] cursor-pointer",style:ve(t.value==="recent"?"background:#9A3B3B":"")},[c("div",{class:ne(["whitespace-pre-wrap font-serif text-[11px] w-fit h-fit",t.value==="recent"?"font-[600] text-[#FFFAF0]":"font-[400] text-[#7A716A]"])},"最近更新",2)],4),c("div",{"data-action":"ttab:liked",class:"flex flex-row justify-center items-center pl-[12px] pr-[12px] rounded-full overflow-hidden w-fit h-[28px] cursor-pointer",style:ve(t.value==="liked"?"background:#9A3B3B":"")},[c("div",{class:ne(["whitespace-pre-wrap font-serif text-[11px] w-fit h-fit",t.value==="liked"?"font-[600] text-[#FFFAF0]":"font-[400] text-[#7A716A]"])},"最多点赞",2)],4),c("div",{"data-action":"ttab:unanswered",class:"flex flex-row justify-center items-center pl-[12px] pr-[12px] rounded-full overflow-hidden w-fit h-[28px] cursor-pointer",style:ve(t.value==="unanswered"?"background:#9A3B3B":"")},[c("div",{class:ne(["whitespace-pre-wrap font-serif text-[11px] w-fit h-fit",t.value==="unanswered"?"font-[600] text-[#FFFAF0]":"font-[400] text-[#7A716A]"])},"待回答",2)],4)])]),f[7]||(f[7]=c("div",{class:"relative bg-[#E4DBC8] overflow-hidden w-full h-[1px]"},null,-1)),f[8]||(f[8]=c("div",{class:"relative bg-[#F5EFE3] overflow-hidden w-full h-[6px]"},null,-1)),c("div",Dh,[c("div",Lh,[c("div",Mh,[c("div",Oh,[f[1]||(f[1]=c("div",{class:"whitespace-pre-wrap font-mono text-[22px] font-[500] text-[#B8924A] w-fit h-fit"},"#",-1)),c("div",zh,A(o.value||"全部"),1)]),c("div",Nh,[c("div",qh,A(r.value)+" 问",1)])]),f[2]||(f[2]=c("div",{class:"relative bg-[#E4DBC8] overflow-hidden w-full h-[1px]"},null,-1))])]),i.value.length?(S(!0),j(se,{key:0},Ce(i.value,h=>(S(),j(se,{key:String(h.id)},[c("div",{"data-action":`openquestion:${h.id}`,class:"list-card flex flex-col justify-start items-start gap-[4px] pl-[12px] pr-[12px] pt-[8px] pb-[8px] bg-[#FFFAF0] overflow-hidden w-full h-fit"},[c("div",Hh,A(h.title),1),c("div",Vh,[c("div",Kh,[h.ai_answered===1?(S(),j(se,{key:0},[f[3]||(f[3]=c("img",{class:"w-[10px] h-[10px] shrink-0 block",src:Th,alt:""},null,-1)),f[4]||(f[4]=c("div",{class:"whitespace-pre-wrap font-serif text-[9px] font-[600] text-[#9A3B3B] w-fit h-fit"},"有 AI 回答",-1))],64)):(S(),j("div",Wh))]),c("div",Qh,[f[5]||(f[5]=c("img",{class:"w-[10px] h-[10px] shrink-0 block",src:Ch,alt:""},null,-1)),c("div",Zh,A(a(h.upvote_count))+" · "+A(h.answer_count)+" 答",1)])])],8,Uh),f[6]||(f[6]=c("div",{class:"relative bg-[#E4DBC8] overflow-hidden w-full h-[1px]"},null,-1))],64))),128)):(S(),j("div",Gh,[c("div",Jh,A(n.value?"加载中…":"该话题下暂无问答"),1)])),c("div",Xh,[c("div",{"data-action":"page:prev",class:ne(["flex flex-row justify-center items-center pl-[14px] pr-[14px] h-[32px]",s.value>1?"cursor-pointer":"is-disabled"]),style:ve(s.value>1?"border:1px solid #B8924A;border-radius:8px;background:#FFFAF0":"border:1px solid #E4DBC8;border-radius:8px;background:#F5EFE3")},[c("div",{class:ne(["whitespace-pre-wrap font-serif text-[11px] w-fit h-fit",s.value>1?"font-[600] text-[#9A3B3B]":"font-[400] text-[#7A716A]"])},"‹ 上一页",2)],6),c("div",Yh,A(s.value)+" / "+A(l.value),1),c("div",{"data-action":"page:next",class:ne(["flex flex-row justify-center items-center pl-[14px] pr-[14px] h-[32px]",s.value<l.value?"cursor-pointer":"is-disabled"]),style:ve(s.value<l.value?"border:1px solid #B8924A;border-radius:8px;background:#FFFAF0":"border:1px solid #E4DBC8;border-radius:8px;background:#F5EFE3")},[c("div",{class:ne(["whitespace-pre-wrap font-serif text-[11px] w-fit h-fit",s.value<l.value?"font-[600] text-[#9A3B3B]":"font-[400] text-[#7A716A]"])},"下一页 ›",2)],6)]),f[9]||(f[9]=et('<div class="fixed bottom-0 left-0 right-0 z-20 flex flex-row justify-around items-center bg-[#FFFAF0] w-full h-[64px]"><div data-action="go:home" class="flex flex-col justify-center items-center gap-[4px] overflow-hidden w-[64px] h-[54px]"><img class="w-[20px] h-[20px] shrink-0 block" src="'+Bh+'" alt=""><div class="whitespace-pre-wrap font-serif text-[10px] font-[600] text-[#9A3B3B] w-fit h-fit">首页</div></div><div class="flex flex-row justify-center items-center pl-[5px] pr-[5px] pt-[5px] pb-[5px] bg-[#FFFAF0] border border-[#B8924A] rounded-[14px] overflow-hidden w-[124px] h-[44px]"><div data-action="go:ask" class="flex flex-row justify-center items-center gap-[6px] pl-[8px] pr-[8px] bg-[#9A3B3B] rounded-[9px] overflow-hidden w-[114px] h-[34px]"><div class="whitespace-pre-wrap font-serif text-[12px] font-[600] text-[#FFFAF0] w-fit h-fit">提问 · 搜索</div></div></div><div data-action="go:me" class="flex flex-col justify-center items-center gap-[4px] overflow-hidden w-[64px] h-[54px]"><img class="w-[20px] h-[20px] shrink-0 block" src="'+jh+'" alt=""><div class="whitespace-pre-wrap font-serif text-[10px] font-[400] text-[#7A716A] w-fit h-fit">我的</div></div></div>',1))]))}}),tx={style:{position:"fixed",inset:"0","z-index":"30"}},sx={style:{position:"absolute",left:"0",right:"0",bottom:"0","border-radius":"20px 20px 0 0"},class:"flex flex-col justify-start items-start gap-[10px] pl-[20px] pr-[20px] pt-[8px] pb-[28px] bg-[#FFFAF0] border border-[#E4DBC8] overflow-hidden w-full"},ix={class:"flex flex-col justify-center items-center gap-[10px] pl-[14px] pr-[14px] pt-[16px] pb-[14px] bg-[#F5EFE3] border border-[#E4DBC8] rounded-[10px] overflow-hidden w-full h-fit"},rx={class:"relative flex flex-col justify-center items-center bg-[#E4DBC8] rounded-full overflow-hidden w-[64px] h-[64px] cursor-pointer"},nx=["src"],ox={key:1,class:"whitespace-pre-wrap font-serif text-[24px] font-[600] text-[#6F2929] w-fit h-fit"},lx={class:"absolute bottom-0 left-0 right-0 text-center bg-[rgba(42,36,33,0.55)] text-[#FFFAF0] text-[8px] py-[1px]"},ax={class:"whitespace-pre-wrap font-serif text-[10px] font-[400] text-[#A89878] w-fit h-fit"},cx={class:"flex flex-row justify-start items-center gap-[8px] pl-[10px] pr-[10px] bg-[#F5EFE3] border border-[#E4DBC8] rounded-[8px] overflow-hidden w-full h-[36px]"},fx={"data-action":"submitEdit",class:"flex flex-row justify-center items-center bg-[#9A3B3B] rounded-[10px] overflow-hidden w-full h-[46px]"},px={class:"whitespace-pre-wrap font-serif text-[14px] font-[600] text-[#FFFAF0] w-fit h-fit"},ux=Re({__name:"EditScreen",setup(e){const t=M({get:()=>u.editNickName,set:a=>{u.editNickName=a}}),s=M(()=>u.editAvatar),i=M(()=>u.avatarUploading),r=M(()=>u.profileSaving),n=Me(""),o=M(()=>(u.editNickName||"我").slice(0,1));async function l(a){const p=a.target,f=p.files?.[0];if(p.value="",!f)return;n.value="";const h=await re.uploadProfileAvatar(f);n.value=h||"头像已上传，记得保存"}return(a,p)=>(S(),j("section",tx,[p[4]||(p[4]=c("div",{"data-action":"close:edit",style:{position:"absolute",inset:"0",background:"rgba(42,36,33,0.4)"}},null,-1)),c("div",sx,[p[2]||(p[2]=c("img",{class:"w-[20px] h-[4px] shrink-0 block",src:Ei,alt:""},null,-1)),p[3]||(p[3]=c("div",{"data-action":"close:edit",class:"flex flex-row justify-between items-center overflow-hidden w-full h-fit"},[c("div",{class:"whitespace-pre-wrap font-serif text-[18px] font-[600] text-[#2A2421] w-fit h-fit"},"编辑资料"),c("div",{class:"whitespace-pre-wrap font-serif text-[11px] font-[400] text-[#7A716A] w-fit h-fit"},"✕ 关闭")],-1)),c("div",ix,[c("label",rx,[s.value?(S(),j("img",{key:0,src:s.value,class:"w-full h-full object-cover",alt:"头像"},null,8,nx)):(S(),j("div",ox,A(o.value),1)),c("span",lx,A(i.value?"上传中…":"更换"),1),c("input",{type:"file",accept:"image/png,image/jpeg,image/webp",class:"hidden",onChange:l},null,32)]),c("div",ax,A(n.value),1)]),c("div",cx,[p[1]||(p[1]=c("div",{class:"whitespace-pre-wrap font-serif text-[10px] font-[400] text-[#7A716A] w-fit h-fit"},"昵称",-1)),At(c("input",{"onUpdate:modelValue":p[0]||(p[0]=f=>t.value=f),maxlength:"20",class:"font-serif text-[12px] font-[600] text-[#2A2421] flex-1 min-w-0 bg-transparent",style:{outline:"none"}},null,512),[[es,t.value]])]),c("div",fx,[c("div",px,A(r.value?"保存中…":"保存资料"),1)])])]))}}),dx={class:"screen relative w-full bg-[#F5EFE3] flex flex-col",style:{"min-height":"100vh","padding-bottom":"104px"}},hx={class:"flex flex-col justify-start items-start gap-[12px] pl-[16px] pr-[16px] pt-[16px] pb-[16px] bg-[#F5EFE3] overflow-hidden w-full flex-1 min-h-0"},xx={class:"flex flex-col justify-start items-start gap-[8px] pl-[14px] pr-[14px] pt-[14px] pb-[12px] bg-[#FFFAF0] border border-[#E4DBC8] rounded-[12px] overflow-hidden w-full h-fit"},gx={class:"flex flex-row justify-start items-center gap-[12px] overflow-hidden w-full h-fit"},wx={class:"flex flex-col justify-center items-center bg-[#E4DBC8] rounded-full overflow-hidden w-[60px] h-[60px]"},vx=["src"],mx={key:1,class:"whitespace-pre-wrap font-serif text-[22px] font-[600] text-[#6F2929] w-fit h-fit"},bx={class:"flex flex-col justify-start items-start gap-[4px] overflow-hidden flex-1 min-w-0 h-fit"},_x={class:"whitespace-pre-wrap font-serif text-[18px] font-[600] text-[#2A2421] w-fit h-fit"},yx={class:"flex flex-row justify-start items-center gap-[8px] overflow-hidden w-full h-fit"},kx={class:"flex flex-col justify-center items-center gap-[2px] bg-[#F7EED9] rounded-[8px] overflow-hidden flex-1 min-w-0 h-[88px]"},Ax={class:"whitespace-pre-wrap font-mono text-[26px] font-[500] text-[#9A3B3B] w-fit h-fit"},Fx={class:"flex flex-col justify-center items-center gap-[2px] bg-[#F5EFE3] rounded-[8px] overflow-hidden flex-1 min-w-0 h-[88px]"},$x={class:"whitespace-pre-wrap font-mono text-[22px] font-[500] text-[#9A3B3B] w-fit h-fit"},Sx={class:"flex flex-row justify-end items-center overflow-hidden w-full h-fit"},Ex={class:"flex flex-row justify-start items-center gap-[2px] pl-[3px] pr-[3px] pt-[3px] pb-[3px] border border-[#E4DBC8] rounded-full overflow-hidden w-fit h-[34px]"},Tx=["data-action"],Cx={class:"whitespace-pre-wrap font-serif text-[13px] font-[600] text-[#2A2421] leading-[20px] w-full h-fit"},Bx={class:"whitespace-pre-wrap font-serif text-[11px] font-[400] text-[#7A716A] leading-[16px] w-full h-fit"},jx={class:"flex flex-row justify-end items-center gap-[8px] overflow-hidden w-full h-fit"},Rx=["data-action"],Px=["src"],Ix={class:"whitespace-pre-wrap font-mono text-[10px] font-[500] text-[#9A3B3B] w-fit h-fit"},Dx=["data-action"],Lx=["src"],Mx={key:1,class:"flex flex-col justify-center items-center py-[30px] w-full"},Ox={class:"whitespace-pre-wrap font-serif text-[12px] font-[400] text-[#7A716A] w-fit h-fit"},zx={class:"fixed bottom-0 left-0 right-0 z-20 w-full flex flex-row justify-start items-center gap-[10px] pl-[14px] pr-[14px] pt-[14px] pb-[14px] bg-[#FFFAF0] border border-[#E4DBC8] overflow-hidden w-full h-[80px]"},Nx=["data-action"],qx={class:"whitespace-pre-wrap font-serif text-[14px] font-[600] text-[#FFFAF0] w-fit h-fit"},Ux=Re({__name:"PersonScreen",setup(e){const t=M(()=>u.likedAnswers),s=M(()=>u.favedAnswers),i=M(()=>u.profile),r=M(()=>u.profileUserId),n=M(()=>u.profileAnswers),o=M(()=>u.profileLoading),l=Me("top"),a=M(()=>(i.value?.nick_name||"我").slice(0,1));function p(h){return h>=1e3?`${(h/1e3).toFixed(1)}k`:String(h)}async function f(h){l.value=h;const x=r.value;if(x)try{const w=await ce.get(`/forums/user/${x}/answers`,{page:1,limit:20,sort:h==="top"?"likes":"reply_time"});u.profileAnswers=w.list||[]}catch{}}return Gt(r,()=>{l.value="top"}),(h,x)=>(S(),j("section",dx,[x[5]||(x[5]=c("div",{"data-action":"back",class:"flex flex-row justify-between items-center pl-[16px] pr-[16px] bg-[#FFFAF0] overflow-hidden w-full h-[48px]"},[c("div",{class:"whitespace-pre-wrap font-serif text-[12px] font-[400] text-[#9A3B3B] w-fit h-fit"},"‹ 返回"),c("div",{class:"whitespace-pre-wrap font-serif text-[16px] font-[600] text-[#2A2421] w-fit h-fit"},"个人主页"),c("div",{class:"whitespace-pre-wrap font-mono text-[11px] font-[500] text-[#7A716A] w-fit h-fit"},"···")],-1)),c("div",hx,[c("div",xx,[c("div",gx,[c("div",wx,[i.value?.avatar?(S(),j("img",{key:0,src:i.value.avatar,class:"w-full h-full object-cover",alt:"头像"},null,8,vx)):(S(),j("div",mx,A(a.value),1))]),c("div",bx,[c("div",_x,A(i.value?.nick_name||"加载中…"),1)])]),c("div",yx,[c("div",kx,[c("div",Ax,A(p(i.value?.received_likes||0)),1),x[2]||(x[2]=c("div",{class:"whitespace-pre-wrap font-serif text-[10px] font-[400] text-[#7A716A] w-fit h-fit"},"收到的赞",-1))]),c("div",Fx,[c("div",$x,A(i.value?.answer_count||0),1),x[3]||(x[3]=c("div",{class:"whitespace-pre-wrap font-serif text-[10px] font-[400] text-[#7A716A] w-fit h-fit"},"回答",-1))])])]),c("div",Sx,[c("div",Ex,[c("div",{onClick:x[0]||(x[0]=w=>f("top")),class:"flex flex-row justify-center items-center pl-[12px] pr-[12px] rounded-full overflow-hidden w-fit h-[28px] cursor-pointer",style:ve(l.value==="top"?"background:#9A3B3B":"")},[c("div",{class:ne(["whitespace-pre-wrap font-serif text-[11px] w-fit h-fit",l.value==="top"?"font-[600] text-[#FFFAF0]":"font-[400] text-[#7A716A]"])},"高赞回答",2)],4),c("div",{onClick:x[1]||(x[1]=w=>f("new")),class:"flex flex-row justify-center items-center pl-[12px] pr-[12px] rounded-full overflow-hidden w-fit h-[28px] cursor-pointer",style:ve(l.value==="new"?"background:#9A3B3B":"")},[c("div",{class:ne(["whitespace-pre-wrap font-serif text-[11px] w-fit h-fit",l.value==="new"?"font-[600] text-[#FFFAF0]":"font-[400] text-[#7A716A]"])},"最新回答",2)],4)])]),n.value.length?(S(!0),j(se,{key:0},Ce(n.value,w=>(S(),j("div",{key:String(w.id),"data-action":`openanswer:${w.question_id}#${w.id}`,class:"list-card flex flex-col justify-start items-start gap-[6px] pl-[12px] pr-[12px] pt-[12px] pb-[12px] bg-[#FFFAF0] border border-[#E4DBC8] rounded-[10px] overflow-hidden w-full h-fit"},[c("div",Cx,A(w.question_title||"查看问题"),1),c("div",Bx,A(w.content),1),c("div",jx,[c("div",{"data-action":`like:${w.id}#${w.upvote_count}`,class:"flex flex-row justify-center items-center gap-[5px] pl-[10px] pr-[10px] pt-[5px] pb-[5px] bg-[rgba(154,59,59,0.122)] rounded-full overflow-hidden w-fit h-fit"},[c("img",{class:"w-[15px] h-[15px] shrink-0 block",src:t.value.includes(String(w.id))?"/design/svg/like-solid.svg":"/design/svg/12_23.svg",alt:""},null,8,Px),c("div",Ix,A(w.upvote_count),1)],8,Rx),c("div",{"data-action":`fav:${w.id}#${w.upvote_count}`,class:"flex flex-row justify-center items-center gap-[5px] pl-[10px] pr-[10px] pt-[5px] pb-[5px] bg-[#FFFAF0] border border-[#E4DBC8] rounded-full overflow-hidden w-fit h-fit"},[c("img",{class:"w-[15px] h-[15px] shrink-0 block",src:s.value.includes(String(w.id))?"/design/svg/star-solid.svg":"/design/svg/12_27.svg",alt:""},null,8,Lx),x[4]||(x[4]=c("div",{class:"whitespace-pre-wrap font-serif text-[10px] font-[400] text-[#7A716A] w-fit h-fit"},"收藏",-1))],8,Dx)])],8,Tx))),128)):(S(),j("div",Mx,[c("div",Ox,A(o.value?"加载中…":"TA 还没有回答"),1)]))]),c("div",zx,[c("div",{"data-action":`asktarget:${r.value}`,class:"flex flex-col justify-center items-center bg-[#9A3B3B] rounded-[10px] overflow-hidden flex-1 min-w-0 h-[46px]"},[c("div",qx,"向 "+A(i.value?.nick_name||"Ta")+" 提问",1)],8,Nx)])]))}}),Hx="https://cdn.chuanbota.com/zhijiu-xin/design/svg/60_90.svg",Vx={style:{position:"fixed",inset:"0","z-index":"30"}},Kx={style:{position:"absolute",left:"0",right:"0",bottom:"0","border-radius":"20px 20px 0 0"},class:"flex flex-col justify-start items-start gap-[10px] pl-[20px] pr-[20px] pt-[8px] pb-[28px] bg-[#FFFAF0] border border-[#E4DBC8] overflow-hidden w-full h-[410px]"},Wx={class:"flex flex-row justify-start items-center gap-[8px] pl-[2px] pr-[2px] overflow-hidden w-full h-[32px] cursor-pointer"},Qx=Re({__name:"AskTargetScreen",setup(e){const t=M({get:()=>u.askTitle,set:i=>{u.askTitle=i}}),s=M({get:()=>u.askAnonymous,set:i=>{u.askAnonymous=i}});return(i,r)=>(S(),j("section",Vx,[r[5]||(r[5]=c("div",{"data-action":"close:asktarget",style:{position:"absolute",inset:"0",background:"rgba(42,36,33,0.4)"}},null,-1)),c("div",Kx,[r[3]||(r[3]=et('<img class="w-[20px] h-[6px] shrink-0 block" src="'+Hx+'" alt=""><div data-action="close:asktarget" class="flex flex-row justify-between items-center overflow-hidden w-full h-fit"><div class="whitespace-pre-wrap font-serif text-[18px] font-[600] text-[#2A2421] w-fit h-fit">提一个问题</div><div class="whitespace-pre-wrap font-serif text-[11px] font-[400] text-[#7A716A] w-fit h-fit">✕ 关闭</div></div><div class="flex flex-row justify-between items-center pl-[10px] pr-[10px] bg-[#F5EFE3] border border-[#E4DBC8] rounded-[8px] overflow-hidden w-full h-[32px]"><div class="whitespace-pre-wrap font-serif text-[12px] font-[600] text-[#9A3B3B] w-fit h-fit">向 沈知远 提问</div><div class="whitespace-pre-wrap font-mono text-[9px] font-[400] text-[#7A716A] w-fit h-fit">AI 与其他用户也可回答</div></div>',3)),At(c("textarea",{"onUpdate:modelValue":r[0]||(r[0]=n=>t.value=n),class:"font-serif text-[14px] font-[600] text-[#2A2421] leading-[22px] w-full h-[104px] pl-[14px] pr-[14px] pt-[14px] pb-[14px] bg-[#F5EFE3] rounded-[10px]",style:{"box-sizing":"border-box",border:"1px solid #B8924A",resize:"none",outline:"none"}},null,512),[[es,t.value]]),c("label",Wx,[At(c("input",{type:"checkbox","onUpdate:modelValue":r[1]||(r[1]=n=>s.value=n),class:"w-[16px] h-[16px] shrink-0",style:{"accent-color":"#9A3B3B"}},null,512),[[Qo,s.value]]),r[2]||(r[2]=c("div",{class:"whitespace-pre-wrap font-serif text-[12px] font-[600] text-[#2A2421] w-fit h-fit"},"匿名提问",-1))]),r[4]||(r[4]=et('<div class="flex flex-row justify-center items-center gap-[6px] pl-[2px] pr-[2px] pt-[8px] overflow-hidden w-full h-[28px]"><div class="whitespace-pre-wrap font-mono text-[9px] font-[500] text-[#A89878] w-fit h-fit">01 输入</div><div class="whitespace-pre-wrap font-mono text-[11px] font-[500] text-[#A89878] w-fit h-fit">›</div><div class="whitespace-pre-wrap font-mono text-[9px] font-[500] text-[#A89878] w-fit h-fit">02 查相似</div><div class="whitespace-pre-wrap font-mono text-[11px] font-[500] text-[#A89878] w-fit h-fit">›</div><div class="whitespace-pre-wrap font-mono text-[9px] font-[500] text-[#9A3B3B] w-fit h-fit">03 发布 → 详情</div></div><div class="relative bg-[#FFFAF0] overflow-hidden w-full flex-1 min-h-0"></div><div data-action="step:next" class="flex flex-row justify-center items-center bg-[#9A3B3B] rounded-[10px] overflow-hidden w-full h-[46px]"><div class="whitespace-pre-wrap font-serif text-[14px] font-[600] text-[#FFFAF0] w-fit h-fit">下一步 · 找相似问题</div></div>',3))])]))}}),Zx={style:{position:"fixed",inset:"0","z-index":"30"}},Gx={style:{position:"absolute",left:"0",right:"0",bottom:"0","border-radius":"20px 20px 0 0"},class:"flex flex-col justify-start items-start gap-[10px] pl-[20px] pr-[20px] pt-[8px] pb-[28px] bg-[#FFFAF0] border border-[#E4DBC8] overflow-hidden w-full h-[340px]"},Jx={"data-action":"close:write",class:"flex flex-row justify-between items-center overflow-hidden w-full h-fit"},Xx={class:"whitespace-pre-wrap font-serif text-[18px] font-[600] text-[#2A2421] w-fit h-fit"},Yx=["placeholder"],eg={"data-action":"submitWrite",class:"flex flex-row justify-center items-center bg-[#9A3B3B] rounded-[10px] overflow-hidden w-full h-[46px]"},tg={class:"whitespace-pre-wrap font-serif text-[14px] font-[600] text-[#FFFAF0] w-fit h-fit"},sg=Re({__name:"WriteScreen",props:{kind:{},replyTo:{}},setup(e){const t=e,s=M({get:()=>u.writeText,set:n=>{u.writeText=n}}),i=M(()=>t.replyTo?`回复 ${t.replyTo}`:t.kind==="reply"?"写回复":"写回答"),r=M(()=>t.replyTo?`回复 ${t.replyTo}…`:t.kind==="reply"?"写下你的回复…":"写下你的回答…");return(n,o)=>(S(),j("section",Zx,[o[3]||(o[3]=c("div",{"data-action":"close:write",style:{position:"absolute",inset:"0",background:"rgba(42,36,33,0.4)"}},null,-1)),c("div",Gx,[o[2]||(o[2]=c("img",{class:"w-[20px] h-[4px] shrink-0 block",src:Ei,alt:""},null,-1)),c("div",Jx,[c("div",Xx,A(i.value),1),o[1]||(o[1]=c("div",{class:"whitespace-pre-wrap font-serif text-[11px] font-[400] text-[#7A716A] w-fit h-fit"},"✕ 关闭",-1))]),At(c("textarea",{"onUpdate:modelValue":o[0]||(o[0]=l=>s.value=l),placeholder:r.value,class:"font-serif text-[14px] font-[400] text-[#2A2421] leading-[22px] w-full pl-[14px] pr-[14px] pt-[14px] pb-[14px] bg-[#F5EFE3] rounded-[10px] flex-1 min-h-0",style:{"box-sizing":"border-box",border:"1px solid #B8924A",resize:"none",outline:"none"}},null,8,Yx),[[es,s.value]]),c("div",eg,[c("div",tg,"发布"+A(e.kind==="reply"?"回复":"回答"),1)])])]))}}),ig={class:"screen relative w-full bg-[#F5EFE3] flex flex-col",style:{"min-height":"100vh","padding-bottom":"104px"}},rg={"data-action":"go:me",class:"flex flex-row justify-between items-center pl-[16px] pr-[16px] bg-[#FFFAF0] overflow-hidden w-full h-[48px]"},ng={class:"whitespace-pre-wrap font-serif text-[16px] font-[600] text-[#2A2421] w-fit h-fit"},og={class:"flex flex-col justify-start items-start gap-[12px] pl-[16px] pr-[16px] pt-[16px] pb-[16px] bg-[#F5EFE3] w-full"},lg={key:0,class:"flex flex-row justify-start items-center gap-[2px] pl-[3px] pr-[3px] pt-[3px] pb-[3px] border border-[#E4DBC8] rounded-full overflow-hidden w-fit h-[34px]"},ag=["onClick"],cg=["data-action"],fg={class:"whitespace-pre-wrap font-serif text-[14px] font-[600] text-[#2A2421] leading-[20px] w-full h-fit"},pg={class:"flex flex-row justify-between items-center overflow-hidden w-full h-[13px]"},ug={class:"flex flex-row justify-start items-center gap-[4px] overflow-hidden w-fit h-fit"},dg={key:1,class:"relative overflow-hidden w-[1px] h-[1px]"},hg={style:{width:"84px"},class:"flex flex-row justify-start items-center gap-[4px] overflow-hidden h-fit"},xg={class:"whitespace-pre-wrap font-mono text-[10px] font-[400] text-[#7A716A] w-fit h-fit"},gg=["data-action"],wg={class:"whitespace-pre-wrap font-serif text-[13px] font-[600] text-[#2A2421] leading-[20px] w-full h-fit"},vg=["innerHTML"],mg={key:1,class:"whitespace-pre-wrap font-serif text-[11px] font-[400] text-[#7A716A] leading-[16px] w-full"},bg=["onClick"],_g={class:"whitespace-pre-wrap font-serif text-[10px] font-[500] text-[#9A3B3B] w-fit h-fit"},yg={class:"flex flex-row justify-end items-center gap-[8px] overflow-hidden w-full h-fit"},kg=["data-action"],Ag=["src"],Fg={class:"whitespace-pre-wrap font-mono text-[10px] font-[500] text-[#9A3B3B] w-fit h-fit"},$g=["data-action"],Sg=["src"],Eg=["data-action"],Tg={class:"whitespace-pre-wrap font-serif text-[12px] font-[400] text-[#2A2421] leading-[18px] w-full h-fit"},Cg={class:"flex flex-row justify-end items-center gap-[8px] overflow-hidden w-full h-fit"},Bg=["data-action"],jg=["src"],Rg={class:"whitespace-pre-wrap font-mono text-[10px] font-[500] text-[#9A3B3B] w-fit h-fit"},Pg=["data-action"],Ig={class:"whitespace-pre-wrap font-serif text-[13px] font-[600] text-[#2A2421] leading-[20px] w-full h-fit"},Dg={class:"flex flex-row justify-between items-center overflow-hidden w-full h-[13px]"},Lg={class:"whitespace-pre-wrap font-mono text-[10px] font-[400] text-[#7A716A] w-fit h-fit"},Mg={key:2,class:"flex flex-col justify-center items-center py-[40px] w-full"},Og={class:"whitespace-pre-wrap font-serif text-[12px] font-[400] text-[#7A716A] w-fit h-fit"},zg={class:"fixed bottom-0 left-0 right-0 z-20 flex flex-row justify-center items-center gap-[10px] pt-[12px] pb-[12px] bg-[#FFFAF0] w-full",style:{"border-top":"1px solid #E4DBC8"}},Ng={class:"whitespace-pre-wrap font-mono text-[10px] font-[500] text-[#7A716A] w-fit h-fit"},ps=Re({__name:"ProfileListScreen",props:{kind:{}},setup(e){const t=e,s=M(()=>u.myListTab),i=M(()=>u.page),r=M(()=>u.myList),n=M(()=>u.myListLoading),o={likes:{title:"获赞",tabs:["获赞的回答","获赞的回复"],kind:"likes"},answers:{title:"我的回答",tabs:["我回答的问题"],kind:"answers"},liked:{title:"我的点赞",tabs:["点赞的回答","点赞的回复"],kind:"votes"},favorites:{title:"我的收藏",tabs:["收藏的问题","收藏的回答"],kind:"favorites"},questions:{title:"我的提问",tabs:["我的提问"],kind:"questions"}},l=M(()=>o[t.kind]||o.likes),a=M(()=>t.kind==="questions"||t.kind==="favorites"&&s.value===0),p=M(()=>t.kind==="answers"||t.kind==="likes"&&s.value===0||t.kind==="favorites"&&s.value===1||t.kind==="liked"&&s.value===0),f=M(()=>(t.kind==="liked"||t.kind==="likes")&&s.value===1);function h(B){return p.value&&B.target_type!==3}const x=M(()=>Math.max(1,Math.ceil(u.myListTotal/10)));function w(B){u.myListTab=B,u.page=1;let V=1;l.value.kind==="favorites"?V=B===1?2:1:(l.value.kind==="votes"||l.value.kind==="likes")&&(V=B===1?3:2),re.loadMyList(l.value.kind,1,V)}function C(B){const V=B.question_id||(B.target_type===1?B.target_id:"")||B.id;return V?`openquestion:${V}`:""}function F(B){return(t.kind==="answers"?B.id:B.target_id)||B.id}function T(B){return B.question_id||(t.kind==="answers"?B.target_id:"")}function P(B){return B?B.slice(0,10):""}function H(B){return B>=1e3?`${(B/1e3).toFixed(1)}k`:String(B)}function U(B){return!!B.content&&B.content.length>90}const O=Me(new Set);function te(B){return O.value.has(String(B))}function ge(B){const V=new Set(O.value),b=String(B);V.has(b)?V.delete(b):V.add(b),O.value=V}return Gt(()=>t.kind,()=>{u.myListTab=0},{immediate:!0}),(B,V)=>(S(),j("section",ig,[c("div",rg,[V[0]||(V[0]=c("div",{class:"whitespace-pre-wrap font-serif text-[12px] font-[400] text-[#9A3B3B] w-fit h-fit"},"‹ 返回",-1)),c("div",ng,A(l.value.title),1),V[1]||(V[1]=c("div",{class:"whitespace-pre-wrap font-mono text-[11px] font-[500] text-[#7A716A] w-fit h-fit"},"···",-1))]),c("div",og,[l.value.tabs.length>1?(S(),j("div",lg,[(S(!0),j(se,null,Ce(l.value.tabs,(b,N)=>(S(),j("div",{key:N,onClick:oe=>w(N),class:"flex flex-row justify-center items-center pl-[12px] pr-[12px] rounded-full overflow-hidden w-fit h-[28px] cursor-pointer",style:ve(s.value===N?"background:#9A3B3B":"")},[c("div",{class:ne(["whitespace-pre-wrap font-serif text-[11px] w-fit h-fit",s.value===N?"font-[600] text-[#FFFAF0]":"font-[400] text-[#7A716A]"])},A(b),3)],12,ag))),128))])):be("",!0),r.value.length?(S(!0),j(se,{key:1},Ce(r.value,b=>(S(),j(se,{key:String(b.id)},[a.value?(S(),j(se,{key:0},[c("div",{"data-action":C(b),class:"list-card flex flex-col justify-start items-start gap-[4px] pl-[12px] pr-[12px] pt-[8px] pb-[8px] bg-[#FFFAF0] overflow-hidden w-full h-fit"},[c("div",fg,A(b.title||b.content),1),c("div",pg,[c("div",ug,[b.ai_answered===1?(S(),j(se,{key:0},[V[2]||(V[2]=c("img",{class:"w-[10px] h-[10px] shrink-0 block",src:Jo,alt:""},null,-1)),V[3]||(V[3]=c("div",{class:"whitespace-pre-wrap font-serif text-[9px] font-[600] text-[#9A3B3B] w-fit h-fit"},"有 AI 回答",-1))],64)):(S(),j("div",dg))]),c("div",hg,[V[4]||(V[4]=c("img",{class:"w-[10px] h-[10px] shrink-0 block",src:Xo,alt:""},null,-1)),c("div",xg,A(H(b.upvote_count||0))+" · "+A(b.answer_count||0)+" 答",1)])])],8,cg),V[5]||(V[5]=c("div",{class:"relative bg-[#E4DBC8] overflow-hidden w-full h-[1px]"},null,-1))],64)):h(b)?(S(),j("div",{key:1,"data-action":`openanswer:${T(b)}#${F(b)}`,class:"list-card flex flex-col justify-start items-start gap-[6px] pl-[12px] pr-[12px] pt-[12px] pb-[12px] bg-[#FFFAF0] border border-[#E4DBC8] rounded-[10px] overflow-hidden w-full h-fit"},[c("div",wg,A(b.title||"查看问题"),1),c("div",{class:ne(["answer-excerpt w-full",[te(F(b))?"is-expanded":"",U(b)?"is-clamp":""]])},[b.answer_type===1?(S(),j("div",{key:0,class:"md-body font-serif text-[11px] font-[400] text-[#7A716A] leading-[16px] w-full",innerHTML:ct(xl)(b.content||"")},null,8,vg)):(S(),j("div",mg,A(b.content),1))],2),U(b)?(S(),j("div",{key:0,"data-action":"expand",onClick:Go(N=>ge(F(b)),["stop"]),class:"flex flex-row justify-center items-center w-full h-[28px] mt-[2px] bg-[#F7EED9] rounded-[6px] cursor-pointer"},[c("div",_g,A(te(F(b))?"收起":"展开全文"),1)],8,bg)):be("",!0),c("div",yg,[c("div",{"data-action":`like:${F(b)}#${b.upvote_count||0}`,class:"flex flex-row justify-center items-center gap-[5px] pl-[10px] pr-[10px] pt-[5px] pb-[5px] bg-[rgba(154,59,59,0.122)] rounded-full overflow-hidden w-fit h-fit"},[c("img",{class:"w-[15px] h-[15px] shrink-0 block",src:ct(u).likedAnswers.includes(String(F(b)))?"/design/svg/like-solid.svg":"/design/svg/12_23.svg",alt:""},null,8,Ag),c("div",Fg,A(b.upvote_count||0),1)],8,kg),c("div",{"data-action":`fav:${F(b)}#${b.upvote_count||0}`,class:"flex flex-row justify-center items-center gap-[5px] pl-[10px] pr-[10px] pt-[5px] pb-[5px] bg-[#FFFAF0] border border-[#E4DBC8] rounded-full overflow-hidden w-fit h-fit"},[c("img",{class:"w-[15px] h-[15px] shrink-0 block",src:ct(u).favedAnswers.includes(String(F(b)))?"/design/svg/star-solid.svg":"/design/svg/12_27.svg",alt:""},null,8,Sg),V[6]||(V[6]=c("div",{class:"whitespace-pre-wrap font-serif text-[10px] font-[400] text-[#7A716A] w-fit h-fit"},"收藏",-1))],8,$g)])],8,gg)):f.value?(S(),j("div",{key:2,"data-action":`openanswer:${b.question_id}#${b.answer_id}`,class:"list-card flex flex-col justify-start items-start gap-[6px] pl-[12px] pr-[12px] pt-[12px] pb-[12px] bg-[#FFFAF0] border border-[#E4DBC8] rounded-[10px] overflow-hidden w-full h-fit"},[c("div",Tg,A(b.content),1),c("div",Cg,[c("div",{"data-action":`likeReply:${b.target_id}`,class:"flex flex-row justify-center items-center gap-[5px] pl-[10px] pr-[10px] pt-[5px] pb-[5px] bg-[rgba(154,59,59,0.122)] rounded-full overflow-hidden w-fit h-fit cursor-pointer"},[c("img",{class:"w-[15px] h-[15px] shrink-0 block",src:ct(u).likedReplies.includes(String(b.target_id))?"/design/svg/like-solid.svg":"/design/svg/12_23.svg",alt:""},null,8,jg),c("div",Rg,A(b.upvote_count||0),1)],8,Bg)])],8,Eg)):(S(),j("div",{key:3,"data-action":C(b),class:"flex flex-col justify-start items-start gap-[6px] pl-[12px] pr-[12px] pt-[12px] pb-[12px] bg-[#FFFAF0] border border-[#E4DBC8] rounded-[10px] overflow-hidden w-full h-fit"},[c("div",Ig,A(b.title||b.content),1),c("div",Dg,[c("div",Lg,A(l.value.tabs[s.value])+" · "+A(P(b.created_at)),1)])],8,Pg))],64))),128)):(S(),j("div",Mg,[c("div",Og,A(n.value?"加载中…":"暂无记录"),1)]))]),c("div",zg,[c("div",{"data-action":"page:prev",class:ne(["flex flex-row justify-center items-center pl-[14px] pr-[14px] h-[32px]",i.value>1?"cursor-pointer":"is-disabled"]),style:ve(i.value>1?"border:1px solid #B8924A;border-radius:8px;background:#FFFAF0":"border:1px solid #E4DBC8;border-radius:8px;background:#F5EFE3")},[c("div",{class:ne(["whitespace-pre-wrap font-serif text-[11px] w-fit h-fit",i.value>1?"font-[600] text-[#9A3B3B]":"font-[400] text-[#7A716A]"])},"‹ 上一页",2)],6),c("div",Ng,A(i.value)+" / "+A(x.value),1),c("div",{"data-action":"page:next",class:ne(["flex flex-row justify-center items-center pl-[14px] pr-[14px] h-[32px]",i.value<x.value?"cursor-pointer":"is-disabled"]),style:ve(i.value<x.value?"border:1px solid #B8924A;border-radius:8px;background:#FFFAF0":"border:1px solid #E4DBC8;border-radius:8px;background:#F5EFE3")},[c("div",{class:ne(["whitespace-pre-wrap font-serif text-[11px] w-fit h-fit",i.value<x.value?"font-[600] text-[#9A3B3B]":"font-[400] text-[#7A716A]"])},"下一页 ›",2)],6)])]))}}),qg={class:"screen relative w-full bg-[#F5EFE3] flex flex-col",style:{"min-height":"100vh","padding-bottom":"104px"}},Ug={"data-action":"go:me",class:"flex flex-row justify-between items-center pl-[16px] pr-[16px] bg-[#FFFAF0] overflow-hidden w-full h-[48px]"},Hg={class:"whitespace-pre-wrap font-mono text-[11px] font-[500] text-[#7A716A] w-fit h-fit"},Vg={class:"flex flex-col justify-start items-start gap-[12px] pl-[16px] pr-[16px] pt-[16px] pb-[16px] bg-[#F5EFE3] w-full"},Kg=["data-action"],Wg={class:"flex flex-row justify-between items-center overflow-hidden w-full h-fit"},Qg={key:0,class:"flex flex-row justify-center items-center rounded-full overflow-hidden",style:{background:"#9A3B3B","min-width":"18px",height:"18px",padding:"0 5px"}},Zg={class:"whitespace-pre-wrap font-serif text-[13px] font-[600] text-[#2A2421] leading-[20px] w-full h-fit"},Gg={class:"whitespace-pre-wrap font-mono text-[10px] font-[400] text-[#7A716A] w-fit h-fit"},Jg={key:0,class:"flex flex-col justify-center items-center py-[40px] w-full"},Xg={class:"whitespace-pre-wrap font-serif text-[12px] font-[400] text-[#7A716A] w-fit h-fit"},Yg=Re({__name:"AskMeScreen",setup(e){const t=M(()=>u.myList),s=M(()=>u.myListLoading),i=M(()=>t.value.filter(n=>!n.answer_count).length);function r(n){return n?n.slice(0,10):""}return(n,o)=>(S(),j("section",qg,[c("div",Ug,[o[0]||(o[0]=c("div",{class:"whitespace-pre-wrap font-serif text-[12px] font-[400] text-[#9A3B3B] w-fit h-fit"},"‹ 返回",-1)),o[1]||(o[1]=c("div",{class:"whitespace-pre-wrap font-serif text-[16px] font-[600] text-[#2A2421] w-fit h-fit"},"向我提问",-1)),c("div",Hg,A(i.value)+" 条待回复",1)]),c("div",Vg,[(S(!0),j(se,null,Ce(t.value,l=>(S(),j("div",{key:String(l.id),"data-action":`openquestion:${l.id}`,class:"list-card flex flex-col justify-start items-start gap-[6px] pl-[12px] pr-[12px] pt-[12px] pb-[12px] bg-[#FFFAF0] border border-[#E4DBC8] rounded-[10px] overflow-hidden w-full h-fit"},[c("div",Wg,[o[3]||(o[3]=c("div",{class:"whitespace-pre-wrap font-serif text-[12px] font-[600] text-[#6F2929] w-fit h-fit"},"有人 向你提问",-1)),l.answer_count?be("",!0):(S(),j("div",Qg,[...o[2]||(o[2]=[c("div",{class:"whitespace-pre-wrap font-mono text-[9px] font-[700] text-[#FFFAF0] w-fit h-fit"},"待回复",-1)])]))]),c("div",Zg,A(l.title),1),c("div",Gg,A(r(l.created_at))+" · "+A(l.answer_count||0)+" 人已回复",1)],8,Kg))),128)),t.value.length?be("",!0):(S(),j("div",Jg,[c("div",Xg,A(s.value?"加载中…":"暂无收到的提问"),1)]))])]))}}),ew={style:{position:"fixed",inset:"0","z-index":"30"}},tw={style:{position:"absolute",left:"0",right:"0",bottom:"0","border-radius":"20px 20px 0 0"},class:"flex flex-col justify-start items-start gap-[10px] pl-[20px] pr-[20px] pt-[8px] pb-[28px] bg-[#FFFAF0] border border-[#E4DBC8] overflow-hidden w-full h-[320px]"},sw={key:0,class:"flex flex-col justify-center items-center gap-[8px] bg-[#F7EED9] border border-[#B8924A] rounded-[10px] overflow-hidden w-full h-[120px]"},iw={"data-action":"submitBind",class:"flex flex-row justify-center items-center bg-[#9A3B3B] rounded-[10px] overflow-hidden w-full h-[46px]"},rw={class:"whitespace-pre-wrap font-serif text-[14px] font-[600] text-[#FFFAF0] w-fit h-fit"},nw=Re({__name:"BindScreen",setup(e){const t=M({get:()=>u.bindAccount,set:n=>{u.bindAccount=n}}),s=M({get:()=>u.bindPassword,set:n=>{u.bindPassword=n}}),i=M(()=>u.bindSaving),r=M(()=>u.creatorBound);return(n,o)=>(S(),j("section",ew,[o[6]||(o[6]=c("div",{"data-action":"close:bind",style:{position:"absolute",inset:"0",background:"rgba(42,36,33,0.4)"}},null,-1)),c("div",tw,[o[4]||(o[4]=c("img",{class:"w-[20px] h-[4px] shrink-0 block",src:Ei,alt:""},null,-1)),o[5]||(o[5]=c("div",{"data-action":"close:bind",class:"flex flex-row justify-between items-center overflow-hidden w-full h-fit"},[c("div",{class:"whitespace-pre-wrap font-serif text-[18px] font-[600] text-[#2A2421] w-fit h-fit"},"绑定创作者账号"),c("div",{class:"whitespace-pre-wrap font-serif text-[11px] font-[400] text-[#7A716A] w-fit h-fit"},"✕ 关闭")],-1)),r.value?(S(),j("div",sw,[...o[2]||(o[2]=[c("div",{class:"whitespace-pre-wrap font-serif text-[15px] font-[600] text-[#6F2929] w-fit h-fit"},"已绑定创作者账号",-1),c("div",{class:"whitespace-pre-wrap font-serif text-[11px] font-[400] text-[#7A716A] w-fit h-fit"},"绑定后不可解绑或更换",-1)])])):(S(),j(se,{key:1},[At(c("input",{"onUpdate:modelValue":o[0]||(o[0]=l=>t.value=l),type:"text",inputmode:"tel",placeholder:"创作者账号（手机号）",class:"font-serif text-[14px] text-[#2A2421] w-full h-[44px] pl-[14px] pr-[14px] bg-[#F5EFE3] rounded-[10px]",style:{"box-sizing":"border-box",border:"1px solid #E4DBC8",outline:"none"}},null,512),[[es,t.value]]),At(c("input",{"onUpdate:modelValue":o[1]||(o[1]=l=>s.value=l),type:"password",placeholder:"密码",class:"font-serif text-[14px] text-[#2A2421] w-full h-[44px] pl-[14px] pr-[14px] bg-[#F5EFE3] rounded-[10px]",style:{"box-sizing":"border-box",border:"1px solid #E4DBC8",outline:"none"}},null,512),[[es,s.value]]),o[3]||(o[3]=c("div",{class:"whitespace-pre-wrap font-serif text-[10px] font-[400] text-[#A89878] w-full h-fit"},"绑定后不可解绑，请确认账号信息无误。",-1)),c("div",iw,[c("div",rw,A(i.value?"绑定中…":"确认绑定"),1)])],64))])]))}}),ow={class:"stage"},Pn="问心 - 直示本心",lw=Re({__name:"DesignApp",setup(e){const t={home:Rf,detail:ed,me:Rd,posted:Eh,topic:ex,person:Ux,likes:ps,answers:ps,favorites:ps,questions:ps,liked:ps,askme:Yg},s={ask:"ask",asktarget:"asktarget",sidebar:"sidebar",edit:"edit"},i=Me(null);let r="ask";const n=Me("reply"),o=Me("");let l="",a="",p="";const f={home:Pn,detail:"问题详情 - 问心",favorites:"我的收藏 - 问心",me:"我的 - 问心",posted:"发布成功 - 问心",topic:"话题 - 问心",edit:"编辑资料 - 问心",person:"个人主页 - 问心",likes:"获赞 - 问心",answers:"我的回答 - 问心",questions:"我的提问 - 问心",liked:"我的点赞 - 问心",askme:"向我提问 - 问心"},h=["likes","answers","liked","favorites","questions","askme","person"];function x(v){let W;const $=new URLSearchParams;v==="home"?(W="/",u.homeTab!=="recent"&&$.set("tab",u.homeTab)):v==="me"?W="/me":h.includes(v)?W=`/me/${v}`:(W=`/forum/${v}`,v==="topic"&&(u.topicTab!=="recent"&&$.set("tab",u.topicTab),u.currentTag&&$.set("tag",u.currentTag)),v==="detail"&&P&&$.set("id",P),v==="detail"&&u.focusAnswerId&&$.set("answer",u.focusAnswerId)),u.page>1&&$.set("page",String(u.page));const q=$.toString();return q?`${W}?${q}`:W}function w(){const v=location.pathname.split("/").filter(Boolean);if((v[0]==="me"||v[0]==="forum")&&v[1]&&t[v[1]])return v[1];const W=v[0]||"";return W&&t[W]?W:"home"}function C(v){T.value=v;const W=f[v]||Pn;document.title=W,setTimeout(()=>{Wp({title:W})},0)}function F(v,W){return v==="home"||Ht()?!0:!tl(W)}const T=Me(w());let P="";const H=Me("");let U;function O(v,W={}){if(!t[v])return;i.value=null,W.id&&(P=W.id),v!==T.value&&(u.page=1);const $=x(v),q=location.origin+$;F(v,q)&&(W.push!==!1&&v!==T.value?window.history.pushState({page:v},"",$):window.history.replaceState({page:v},"",$),C(v),window.scrollTo({top:0,behavior:"instant"}),V(v))}function te(v){if(i.value==="similar"){i.value=r;return}if(i.value){i.value=null;return}if(v){O(v,{push:!1});return}window.history.back()}function ge(){i.value=null;const v=w(),W=new URLSearchParams(location.search),$=W.get("tab"),q=$&&["recent","liked","unanswered"].includes($)?$:"recent";v==="home"&&(u.homeTab=q,u.currentTag=""),v==="topic"&&(u.topicTab=q);const D=W.get("tag");v==="topic"&&D&&(u.currentTag=D);const K=parseInt(W.get("page")||"1",10);u.page=Number.isFinite(K)&&K>1?K:1;const Q=W.get("id");v==="detail"&&Q&&(P=Q),u.focusAnswerId=v==="detail"&&W.get("answer")||"",u.myListTab=0,C(v),window.scrollTo({top:0,behavior:"instant"}),F(v,location.href)&&V(v)}function B(v){H.value=v,clearTimeout(U),U=setTimeout(()=>{H.value=""},1800)}function V(v){if(v==="home")re.loadQuestions("");else if(v==="topic")re.loadQuestions(u.currentTag);else if(v==="person")u.profileUserId?re.loadProfile(u.profileUserId):u.user?.user_id&&re.loadProfile(u.user.user_id);else if(v==="detail"&&P)re.loadDetail(P),re.loadMyStats();else if(v==="me")re.loadMyStats(),re.loadUnrepliedCount();else if(["likes","answers","favorites","questions","liked","askme"].includes(v)){let W=1;v==="favorites"?W=u.myListTab===1?2:1:(v==="liked"||v==="likes")&&(W=u.myListTab===1?3:2),re.loadMyList(b(v),u.page,W),v==="askme"&&re.loadUnrepliedCount()}}function b(v){return v==="askme"?"received":v==="liked"?"votes":v}async function N(v){if(!v)return;const W=v.indexOf(":"),$=W<0?v:v.slice(0,W),q=W<0?"":v.slice(W+1);if($==="go"){if((q==="ask"||q==="asktarget")&&!Ht()){if(af(q),!F("ask",location.href))return;_n()}(q==="ask"||q==="asktarget")&&(u.askTitle="",u.askTargetId="",u.askSimilar=[],u.created=null),q==="edit"&&re.initProfile(),q==="sidebar"&&re.loadTags(),q==="person"&&!u.profileUserId&&u.user?.user_id&&(u.profileUserId=u.user.user_id),s[q]?i.value=s[q]:O(q==="detail"?"detail":q)}else if($==="openuser")u.profileUserId=q,O("person",{push:!0});else if($==="asktarget")u.askTitle="",u.askTargetId=q,u.askSimilar=[],u.created=null,i.value="asktarget";else if($==="tag")u.currentTag=q,u.page=1,O("topic");else if($==="tab")u.homeTab=["recent","liked","unanswered"].includes(q)?q:"recent",u.page=1,window.history.replaceState({page:"home",tab:u.homeTab},"",x("home")),re.loadQuestions("");else if($==="ttab")u.topicTab=["recent","liked","unanswered"].includes(q)?q:"recent",u.page=1,window.history.replaceState({page:"topic",tab:u.topicTab},"",x("topic")),re.loadQuestions(u.currentTag);else if($==="page"){if(q!=="prev"&&q!=="next")return;const D=["home","topic"].includes(T.value)?u.questionTotal:u.myListTotal,K=Math.max(1,Math.ceil(D/10)),Q=q==="prev"?u.page-1:u.page+1;if(Q<1||Q>K)return;u.page=Q,window.history.replaceState({page:T.value},"",x(T.value)),V(T.value)}else if($==="openquestion")P=q,u.focusAnswerId="",O("detail",{id:q,push:!0});else if($==="openanswer"){const D=q.indexOf("#"),K=D>=0?q.slice(0,D):q,Q=D>=0?q.slice(D+1):"";P=K,u.focusAnswerId=Q,O("detail",{id:K,push:!0})}else if($==="step")q==="next"?(r=i.value||"ask",i.value="similar",re.findSimilar(u.askTitle.trim())):q==="prev"&&(i.value=r);else if($==="write"){if(u.writeText="",p="",l="",q.startsWith("replyTo:")){const D=q.slice(8),K=D.lastIndexOf("@"),Q=K>=0?D.slice(0,K):D,ye=K>=0?D.slice(K+1).split("#"):[];o.value=Q,a=ye[0]||"",p=ye[1]||"",l=ye[2]||"",n.value="reply"}else o.value="",q==="answer"?(a="",n.value="answer"):q.startsWith("reply:")?(a=q.slice(6),n.value="reply"):(a=q,n.value="reply");i.value="write"}else if($==="submitWrite"){const D=u.writeText.trim();if(!D){B("内容不能为空");return}let K=!1;if(n.value==="answer")K=await re.submitAnswer(P,D),B(K?"回答已发布":u.authError||"发布失败");else{const Q=o.value.trim(),ye=Q&&!D.startsWith("回复")?`回复${Q}：${D}`:D;K=await re.submitReply(a,ye,p,l),B(K?"回复已发布":u.authError||"发布失败")}K&&(u.writeText="",o.value="",i.value=null)}else if($==="publish"){if(!u.askTitle.trim()){B("请输入问题");return}const D=await re.submitQuestion(0);if(D&&D.need_confirm===1&&D.similar&&D.similar.length){u.askSimilar=D.similar,i.value="similar",B("请确认相似问题");return}D?(P=D.id,O("posted",{id:D.id,push:!0})):B(u.authError||"发布失败")}else if($==="publishForce"){const D=await re.submitQuestion(1);D?(P=D.id,i.value=null,O("posted",{id:D.id,push:!0})):B(u.authError||"发布失败")}else if($==="open")q==="bind"&&(i.value=u.creatorBound?null:"bind");else if($==="submitBind"){if(u.creatorBound){B("已绑定，不支持解绑");return}if(!u.bindAccount.trim()||!u.bindPassword){B("请输入账号和密码");return}u.bindSaving=!0;const D=await re.bindCreator(u.bindAccount.trim(),u.bindPassword);if(u.bindSaving=!1,D){B(D);return}u.bindAccount="",u.bindPassword="",i.value=null,B("绑定成功")}else if($==="submitEdit"){const D=await re.saveProfile();if(D){B(D);return}i.value=null,B("资料已保存")}else if($==="likeReply"){const D=!u.likedReplies.includes(q);await re.toggleReplyVote(q,D)&&B(D?"已点赞":"已取消点赞")}else if($==="like"||$==="fav"){const D=q.indexOf("#"),K=D>=0?q.slice(0,D):q;D>=0&&Number(q.slice(D+1));const Q=$==="like"?u.likedAnswers:u.favedAnswers,ye=Q.indexOf(K),gt=ye<0;if($==="like"){const Ue=await re.toggleVote(2,K,gt);if(Ue){gt?Q.push(K):ye>=0&&Q.splice(ye,1);const Le=u.answers.find(Os=>String(Os.id)===K);Le?Le.upvote_count=Ue.count:u.detail&&String(u.detail.id)===K&&(u.detail.upvote_count=Ue.count)}}else await re.toggleFavorite(2,K,gt)&&(gt?Q.push(K):ye>=0&&Q.splice(ye,1))}else if($==="favQuestion"){const D=P,K=!u.favedQuestion;await re.toggleFavorite(1,D,K)&&(u.favedQuestion=K)}else if($==="plike"||$==="pfav"){const D=parseInt(q,10),K=$==="plike"?u.likedPosts:u.favedPosts,Q=K.indexOf(D);Q>=0?K.splice(Q,1):K.push(D)}else $==="close"?i.value==="similar"?i.value=r:i.value?i.value=null:te():$==="toast"?B(q):$==="back"&&te(q)}function oe(v){const W=v.target.closest("[data-action]");!W||W.classList.contains("is-disabled")||(v.preventDefault(),N(W.dataset.action??""))}return ki(()=>{const v=new URLSearchParams(location.search),W=v.get("code"),$=v.get("tab");$&&["recent","liked","unanswered"].includes($)&&(T.value==="home"&&(u.homeTab=$),T.value==="topic"&&(u.topicTab=$));const q=parseInt(v.get("page")||"1",10);u.page=Number.isFinite(q)&&q>1?q:1;const D=v.get("id");T.value==="detail"&&D&&(P=D),T.value==="detail"&&(u.focusAnswerId=v.get("answer")||"");const K=v.get("tag");if(T.value==="topic"&&K&&(u.currentTag=K),W){const Q=location.pathname+(v.toString().replace(/(^|&)code=[^&]*/,"").replace(/^&/,"")?"?"+v.toString().replace(/(^|&)code=[^&]*/,"").replace(/^&/,""):"");window.history.replaceState({page:T.value},"",Q)}C(T.value),(async()=>{if(W){await re.bootstrap(W),u.authError&&B(u.authError);const Q=_n();Q&&s[Q]&&(i.value=s[Q])}else{const Q=location.href;if(!F(T.value,Q))return;await re.bootstrap()}V(T.value)})(),document.addEventListener("click",oe),window.addEventListener("popstate",ge)}),Ai(()=>{document.removeEventListener("click",oe),window.removeEventListener("popstate",ge)}),window.__gongda={show:v=>O(v),get current(){return T.value},state:u,actions:re},(v,W)=>(S(),j("div",ow,[(S(),j(se,null,Ce(t,($,q)=>At(Je(Ba($),{key:q,kind:q},null,8,["kind"]),[[Fc,T.value===q]])),64)),(S(),rt(wa,{to:"body"},[i.value==="ask"?(S(),rt(Qd,{key:0})):be("",!0),i.value==="asktarget"?(S(),rt(Qx,{key:1})):be("",!0),i.value==="similar"?(S(),rt(fh,{key:2})):be("",!0),i.value==="sidebar"?(S(),rt(Hd,{key:3})):be("",!0),i.value==="write"?(S(),rt(sg,{key:4,kind:n.value,"reply-to":o.value},null,8,["kind","reply-to"])):be("",!0),i.value==="bind"?(S(),rt(nw,{key:5})):be("",!0),i.value==="edit"?(S(),rt(ux,{key:6})):be("",!0)])),c("div",{id:"toast",style:ve({opacity:H.value?"1":"0"})},A(H.value),5)]))}}),vl=Qc(lw);vl.config.compilerOptions.isCustomElement=e=>e.startsWith("wx-");vl.mount("#app");
