18 lines
68 KiB
JavaScript
18 lines
68 KiB
JavaScript
"use strict";var Ro=Object.defineProperty;var Po=(e,t,n)=>t in e?Ro(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ie=(e,t,n)=>(Po(e,typeof t!="symbol"?t+"":t,n),n);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Fo=require("siyuan");/**
|
|
* @vue/shared v3.4.8
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/function Fn(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const Y={},lt=[],Ee=()=>{},Lo=()=>!1,zt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ln=e=>e.startsWith("onUpdate:"),he=Object.assign,Hn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ho=Object.prototype.hasOwnProperty,D=(e,t)=>Ho.call(e,t),P=Array.isArray,ct=e=>Yt(e)==="[object Map]",Ps=e=>Yt(e)==="[object Set]",F=e=>typeof e=="function",re=e=>typeof e=="string",gt=e=>typeof e=="symbol",te=e=>e!==null&&typeof e=="object",Fs=e=>(te(e)||F(e))&&F(e.then)&&F(e.catch),Ls=Object.prototype.toString,Yt=e=>Ls.call(e),No=e=>Yt(e).slice(8,-1),Hs=e=>Yt(e)==="[object Object]",Nn=e=>re(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Nt=Fn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Bo=/-(\w)/g,dt=Xt(e=>e.replace(Bo,(t,n)=>n?n.toUpperCase():"")),Do=/\B([A-Z])/g,Qe=Xt(e=>e.replace(Do,"-$1").toLowerCase()),Ns=Xt(e=>e.charAt(0).toUpperCase()+e.slice(1)),rn=Xt(e=>e?`on${Ns(e)}`:""),Ge=(e,t)=>!Object.is(e,t),Bt=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},jt=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},bn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let es;const Bs=()=>es||(es=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function kt(e){if(P(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=re(s)?Ko(s):kt(s);if(o)for(const r in o)t[r]=o[r]}return t}else if(re(e)||te(e))return e}const $o=/;(?![^(]*\))/g,Vo=/:([^]+)/,jo=/\/\*[^]*?\*\//g;function Ko(e){const t={};return e.replace(jo,"").split($o).forEach(n=>{if(n){const s=n.split(Vo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Tt(e){let t="";if(re(e))t=e;else if(P(e))for(let n=0;n<e.length;n++){const s=Tt(e[n]);s&&(t+=s+" ")}else if(te(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Uo="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Wo=Fn(Uo);function Ds(e){return!!e||e===""}const qo=e=>re(e)?e:e==null?"":P(e)||te(e)&&(e.toString===Ls||!F(e.toString))?JSON.stringify(e,$s,2):String(e),$s=(e,t)=>t&&t.__v_isRef?$s(e,t.value):ct(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],r)=>(n[ln(s,r)+" =>"]=o,n),{})}:Ps(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ln(n))}:gt(t)?ln(t):te(t)&&!P(t)&&!Hs(t)?String(t):t,ln=(e,t="")=>{var n;return gt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
* @vue/reactivity v3.4.8
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let Te;class Go{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Te,!t&&Te&&(this.index=(Te.scopes||(Te.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Te;try{return Te=this,t()}finally{Te=n}}}on(){Te=this}off(){Te=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function zo(e,t=Te){t&&t.active&&t.effects.push(e)}function Yo(){return Te}let Je;class Bn{constructor(t,n,s,o){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=3,this._trackId=0,this._runnings=0,this._queryings=0,this._depsLength=0,zo(this,o)}get dirty(){if(this._dirtyLevel===1){this._dirtyLevel=0,this._queryings++,et();for(const t of this.deps)if(t.computed&&(Xo(t.computed),this._dirtyLevel>=2))break;tt(),this._queryings--}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=We,n=Je;try{return We=!0,Je=this,this._runnings++,ts(this),this.fn()}finally{ns(this),this._runnings--,Je=n,We=t}}stop(){var t;this.active&&(ts(this),ns(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Xo(e){return e.value}function ts(e){e._trackId++,e._depsLength=0}function ns(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Vs(e.deps[t],e);e.deps.length=e._depsLength}}function Vs(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let We=!0,vn=0;const js=[];function et(){js.push(We),We=!1}function tt(){const e=js.pop();We=e===void 0?!0:e}function Dn(){vn++}function $n(){for(vn--;!vn&&Cn.length;)Cn.shift()()}function Ks(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&Vs(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Cn=[];function Us(e,t,n){Dn();for(const s of e.keys())if(!(!s.allowRecurse&&s._runnings)&&s._dirtyLevel<t&&(!s._runnings||t!==2)){const o=s._dirtyLevel;s._dirtyLevel=t,o===0&&(!s._queryings||t!==2)&&(s.trigger(),s.scheduler&&Cn.push(s.scheduler))}$n()}const Ws=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},xn=new WeakMap,Ze=Symbol(""),En=Symbol("");function ge(e,t,n){if(We&&Je){let s=xn.get(e);s||xn.set(e,s=new Map);let o=s.get(n);o||s.set(n,o=Ws(()=>s.delete(n))),Ks(Je,o)}}function Be(e,t,n,s,o,r){const i=xn.get(e);if(!i)return;let c=[];if(t==="clear")c=[...i.values()];else if(n==="length"&&P(e)){const f=Number(s);i.forEach((d,h)=>{(h==="length"||!gt(h)&&h>=f)&&c.push(d)})}else switch(n!==void 0&&c.push(i.get(n)),t){case"add":P(e)?Nn(n)&&c.push(i.get("length")):(c.push(i.get(Ze)),ct(e)&&c.push(i.get(En)));break;case"delete":P(e)||(c.push(i.get(Ze)),ct(e)&&c.push(i.get(En)));break;case"set":ct(e)&&c.push(i.get(Ze));break}Dn();for(const f of c)f&&Us(f,3);$n()}const ko=Fn("__proto__,__v_isRef,__isVue"),qs=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(gt)),ss=Jo();function Jo(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=j(this);for(let r=0,i=this.length;r<i;r++)ge(s,"get",r+"");const o=s[t](...n);return o===-1||o===!1?s[t](...n.map(j)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){et(),Dn();const s=j(this)[t].apply(this,n);return $n(),tt(),s}}),e}function Zo(e){const t=j(this);return ge(t,"has",e),t.hasOwnProperty(e)}class Gs{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,s){const o=this._isReadonly,r=this._shallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(o?r?ar:ks:r?Xs:Ys).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=P(t);if(!o){if(i&&D(ss,n))return Reflect.get(ss,n,s);if(n==="hasOwnProperty")return Zo}const c=Reflect.get(t,n,s);return(gt(n)?qs.has(n):ko(n))||(o||ge(t,"get",n),r)?c:me(c)?i&&Nn(n)?c:c.value:te(c)?o?Js(c):Kn(c):c}}class zs extends Gs{constructor(t=!1){super(!1,t)}set(t,n,s,o){let r=t[n];if(!this._shallow){const f=ht(r);if(!Kt(s)&&!ht(s)&&(r=j(r),s=j(s)),!P(t)&&me(r)&&!me(s))return f?!1:(r.value=s,!0)}const i=P(t)&&Nn(n)?Number(n)<t.length:D(t,n),c=Reflect.set(t,n,s,o);return t===j(o)&&(i?Ge(s,r)&&Be(t,"set",n,s):Be(t,"add",n,s)),c}deleteProperty(t,n){const s=D(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&Be(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!gt(n)||!qs.has(n))&&ge(t,"has",n),s}ownKeys(t){return ge(t,"iterate",P(t)?"length":Ze),Reflect.ownKeys(t)}}class Qo extends Gs{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const er=new zs,tr=new Qo,nr=new zs(!0),Vn=e=>e,Jt=e=>Reflect.getPrototypeOf(e);function Ot(e,t,n=!1,s=!1){e=e.__v_raw;const o=j(e),r=j(t);n||(Ge(t,r)&&ge(o,"get",t),ge(o,"get",r));const{has:i}=Jt(o),c=s?Vn:n?Wn:Ct;if(i.call(o,t))return c(e.get(t));if(i.call(o,r))return c(e.get(r));e!==o&&e.get(t)}function At(e,t=!1){const n=this.__v_raw,s=j(n),o=j(e);return t||(Ge(e,o)&&ge(s,"has",e),ge(s,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Rt(e,t=!1){return e=e.__v_raw,!t&&ge(j(e),"iterate",Ze),Reflect.get(e,"size",e)}function os(e){e=j(e);const t=j(this);return Jt(t).has.call(t,e)||(t.add(e),Be(t,"add",e,e)),this}function rs(e,t){t=j(t);const n=j(this),{has:s,get:o}=Jt(n);let r=s.call(n,e);r||(e=j(e),r=s.call(n,e));const i=o.call(n,e);return n.set(e,t),r?Ge(t,i)&&Be(n,"set",e,t):Be(n,"add",e,t),this}function is(e){const t=j(this),{has:n,get:s}=Jt(t);let o=n.call(t,e);o||(e=j(e),o=n.call(t,e)),s&&s.call(t,e);const r=t.delete(e);return o&&Be(t,"delete",e,void 0),r}function ls(){const e=j(this),t=e.size!==0,n=e.clear();return t&&Be(e,"clear",void 0,void 0),n}function Pt(e,t){return function(s,o){const r=this,i=r.__v_raw,c=j(i),f=t?Vn:e?Wn:Ct;return!e&&ge(c,"iterate",Ze),i.forEach((d,h)=>s.call(o,f(d),f(h),r))}}function Ft(e,t,n){return function(...s){const o=this.__v_raw,r=j(o),i=ct(r),c=e==="entries"||e===Symbol.iterator&&i,f=e==="keys"&&i,d=o[e](...s),h=n?Vn:t?Wn:Ct;return!t&&ge(r,"iterate",f?En:Ze),{next(){const{value:C,done:w}=d.next();return w?{value:C,done:w}:{value:c?[h(C[0]),h(C[1])]:h(C),done:w}},[Symbol.iterator](){return this}}}}function Ve(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function sr(){const e={get(r){return Ot(this,r)},get size(){return Rt(this)},has:At,add:os,set:rs,delete:is,clear:ls,forEach:Pt(!1,!1)},t={get(r){return Ot(this,r,!1,!0)},get size(){return Rt(this)},has:At,add:os,set:rs,delete:is,clear:ls,forEach:Pt(!1,!0)},n={get(r){return Ot(this,r,!0)},get size(){return Rt(this,!0)},has(r){return At.call(this,r,!0)},add:Ve("add"),set:Ve("set"),delete:Ve("delete"),clear:Ve("clear"),forEach:Pt(!0,!1)},s={get(r){return Ot(this,r,!0,!0)},get size(){return Rt(this,!0)},has(r){return At.call(this,r,!0)},add:Ve("add"),set:Ve("set"),delete:Ve("delete"),clear:Ve("clear"),forEach:Pt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=Ft(r,!1,!1),n[r]=Ft(r,!0,!1),t[r]=Ft(r,!1,!0),s[r]=Ft(r,!0,!0)}),[e,n,t,s]}const[or,rr,ir,lr]=sr();function jn(e,t){const n=t?e?lr:ir:e?rr:or;return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(D(n,o)&&o in s?n:s,o,r)}const cr={get:jn(!1,!1)},ur={get:jn(!1,!0)},fr={get:jn(!0,!1)},Ys=new WeakMap,Xs=new WeakMap,ks=new WeakMap,ar=new WeakMap;function dr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function hr(e){return e.__v_skip||!Object.isExtensible(e)?0:dr(No(e))}function Kn(e){return ht(e)?e:Un(e,!1,er,cr,Ys)}function pr(e){return Un(e,!1,nr,ur,Xs)}function Js(e){return Un(e,!0,tr,fr,ks)}function Un(e,t,n,s,o){if(!te(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const i=hr(e);if(i===0)return e;const c=new Proxy(e,i===2?s:n);return o.set(e,c),c}function ut(e){return ht(e)?ut(e.__v_raw):!!(e&&e.__v_isReactive)}function ht(e){return!!(e&&e.__v_isReadonly)}function Kt(e){return!!(e&&e.__v_isShallow)}function Zs(e){return ut(e)||ht(e)}function j(e){const t=e&&e.__v_raw;return t?j(t):e}function Qs(e){return jt(e,"__v_skip",!0),e}const Ct=e=>te(e)?Kn(e):e,Wn=e=>te(e)?Js(e):e;class eo{constructor(t,n,s,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Bn(()=>t(this._value),()=>wn(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const t=j(this);return to(t),(!t._cacheable||t.effect.dirty)&&Ge(t._value,t._value=t.effect.run())&&wn(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function gr(e,t,n=!1){let s,o;const r=F(e);return r?(s=e,o=Ee):(s=e.get,o=e.set),new eo(s,o,r||!o,n)}function to(e){We&&Je&&(e=j(e),Ks(Je,e.dep||(e.dep=Ws(()=>e.dep=void 0,e instanceof eo?e:void 0))))}function wn(e,t=3,n){e=j(e);const s=e.dep;s&&Us(s,t)}function me(e){return!!(e&&e.__v_isRef===!0)}function Lt(e){return mr(e,!1)}function mr(e,t){return me(e)?e:new _r(e,t)}class _r{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:j(t),this._value=n?t:Ct(t)}get value(){return to(this),this._value}set value(t){const n=this.__v_isShallow||Kt(t)||ht(t);t=n?t:j(t),Ge(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ct(t),wn(this,3))}}function qn(e){return me(e)?e.value:e}const yr={get:(e,t,n)=>qn(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return me(o)&&!me(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function no(e){return ut(e)?e:new Proxy(e,yr)}/**
|
|
* @vue/runtime-core v3.4.8
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/function qe(e,t,n,s){let o;try{o=s?e(...s):e()}catch(r){Zt(r,t,n)}return o}function Me(e,t,n,s){if(F(e)){const r=qe(e,t,n,s);return r&&Fs(r)&&r.catch(i=>{Zt(i,t,n)}),r}const o=[];for(let r=0;r<e.length;r++)o.push(Me(e[r],t,n,s));return o}function Zt(e,t,n,s=!0){const o=t?t.vnode:null;if(t){let r=t.parent;const i=t.proxy,c=`https://vuejs.org/errors/#runtime-${n}`;for(;r;){const d=r.ec;if(d){for(let h=0;h<d.length;h++)if(d[h](e,i,c)===!1)return}r=r.parent}const f=t.appContext.config.errorHandler;if(f){qe(f,null,10,[e,i,c]);return}}br(e,n,o,s)}function br(e,t,n,s=!0){console.error(e)}let xt=!1,Sn=!1;const le=[];let Le=0;const ft=[];let je=null,Xe=0;const so=Promise.resolve();let Gn=null;function vr(e){const t=Gn||so;return e?t.then(this?e.bind(this):e):t}function Cr(e){let t=Le+1,n=le.length;for(;t<n;){const s=t+n>>>1,o=le[s],r=Et(o);r<e||r===e&&o.pre?t=s+1:n=s}return t}function zn(e){(!le.length||!le.includes(e,xt&&e.allowRecurse?Le+1:Le))&&(e.id==null?le.push(e):le.splice(Cr(e.id),0,e),oo())}function oo(){!xt&&!Sn&&(Sn=!0,Gn=so.then(io))}function xr(e){const t=le.indexOf(e);t>Le&&le.splice(t,1)}function Er(e){P(e)?ft.push(...e):(!je||!je.includes(e,e.allowRecurse?Xe+1:Xe))&&ft.push(e),oo()}function cs(e,t,n=xt?Le+1:0){for(;n<le.length;n++){const s=le[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;le.splice(n,1),n--,s()}}}function ro(e){if(ft.length){const t=[...new Set(ft)].sort((n,s)=>Et(n)-Et(s));if(ft.length=0,je){je.push(...t);return}for(je=t,Xe=0;Xe<je.length;Xe++)je[Xe]();je=null,Xe=0}}const Et=e=>e.id==null?1/0:e.id,wr=(e,t)=>{const n=Et(e)-Et(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function io(e){Sn=!1,xt=!0,le.sort(wr);try{for(Le=0;Le<le.length;Le++){const t=le[Le];t&&t.active!==!1&&qe(t,null,14)}}finally{Le=0,le.length=0,ro(),xt=!1,Gn=null,(le.length||ft.length)&&io()}}function Sr(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Y;let o=n;const r=t.startsWith("update:"),i=r&&t.slice(7);if(i&&i in s){const h=`${i==="modelValue"?"model":i}Modifiers`,{number:C,trim:w}=s[h]||Y;w&&(o=n.map(A=>re(A)?A.trim():A)),C&&(o=n.map(bn))}let c,f=s[c=rn(t)]||s[c=rn(dt(t))];!f&&r&&(f=s[c=rn(Qe(t))]),f&&Me(f,e,6,o);const d=s[c+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Me(d,e,6,o)}}function lo(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},c=!1;if(!F(e)){const f=d=>{const h=lo(d,t,!0);h&&(c=!0,he(i,h))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!r&&!c?(te(e)&&s.set(e,null),null):(P(r)?r.forEach(f=>i[f]=null):he(i,r),te(e)&&s.set(e,i),i)}function Qt(e,t){return!e||!zt(t)?!1:(t=t.slice(2).replace(/Once$/,""),D(e,t[0].toLowerCase()+t.slice(1))||D(e,Qe(t))||D(e,t))}let Ce=null,co=null;function Ut(e){const t=Ce;return Ce=e,co=e&&e.type.__scopeId||null,t}function Tr(e,t=Ce,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&bs(-1);const r=Ut(t);let i;try{i=e(...o)}finally{Ut(r),s._d&&bs(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function us(e){const{type:t,vnode:n,proxy:s,withProxy:o,props:r,propsOptions:[i],slots:c,attrs:f,emit:d,render:h,renderCache:C,data:w,setupState:A,ctx:G,inheritAttrs:$}=e;let ne,k;const _e=Ut(e);try{if(n.shapeFlag&4){const se=o||s,S=se;ne=Fe(h.call(S,se,C,r,A,w,G)),k=f}else{const se=t;ne=Fe(se.length>1?se(r,{attrs:f,slots:c,emit:d}):se(r,null)),k=t.props?f:Ir(f)}}catch(se){vt.length=0,Zt(se,e,1),ne=He(wt)}let U=ne;if(k&&$!==!1){const se=Object.keys(k),{shapeFlag:S}=U;se.length&&S&7&&(i&&se.some(Ln)&&(k=Mr(k,i)),U=pt(U,k))}return n.dirs&&(U=pt(U),U.dirs=U.dirs?U.dirs.concat(n.dirs):n.dirs),n.transition&&(U.transition=n.transition),ne=U,Ut(_e),ne}const Ir=e=>{let t;for(const n in e)(n==="class"||n==="style"||zt(n))&&((t||(t={}))[n]=e[n]);return t},Mr=(e,t)=>{const n={};for(const s in e)(!Ln(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Or(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:c,patchFlag:f}=t,d=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return s?fs(s,i,d):!!i;if(f&8){const h=t.dynamicProps;for(let C=0;C<h.length;C++){const w=h[C];if(i[w]!==s[w]&&!Qt(d,w))return!0}}}else return(o||c)&&(!c||!c.$stable)?!0:s===i?!1:s?i?fs(s,i,d):!0:!!i;return!1}function fs(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const r=s[o];if(t[r]!==e[r]&&!Qt(n,r))return!0}return!1}function Ar({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const Rr=Symbol.for("v-ndc"),Pr=e=>e.__isSuspense;function Fr(e,t){t&&t.pendingBranch?P(e)?t.effects.push(...e):t.effects.push(e):Er(e)}const Lr=Symbol.for("v-scx"),Hr=()=>$t(Lr),Ht={};function cn(e,t,n){return uo(e,t,n)}function uo(e,t,{immediate:n,deep:s,flush:o,once:r,onTrack:i,onTrigger:c}=Y){if(t&&r){const y=t;t=(...M)=>{y(...M),S()}}const f=de,d=y=>s===!0?y:ke(y,s===!1?1:void 0);let h,C=!1,w=!1;if(me(e)?(h=()=>e.value,C=Kt(e)):ut(e)?(h=()=>d(e),C=!0):P(e)?(w=!0,C=e.some(y=>ut(y)||Kt(y)),h=()=>e.map(y=>{if(me(y))return y.value;if(ut(y))return d(y);if(F(y))return qe(y,f,2)})):F(e)?t?h=()=>qe(e,f,2):h=()=>(A&&A(),Me(e,f,3,[G])):h=Ee,t&&s){const y=h;h=()=>ke(y())}let A,G=y=>{A=U.onStop=()=>{qe(y,f,4),A=U.onStop=void 0}},$;if(sn)if(G=Ee,t?n&&Me(t,f,3,[h(),w?[]:void 0,G]):h(),o==="sync"){const y=Hr();$=y.__watcherHandles||(y.__watcherHandles=[])}else return Ee;let ne=w?new Array(e.length).fill(Ht):Ht;const k=()=>{if(!(!U.active||!U.dirty))if(t){const y=U.run();(s||C||(w?y.some((M,T)=>Ge(M,ne[T])):Ge(y,ne)))&&(A&&A(),Me(t,f,3,[y,ne===Ht?void 0:w&&ne[0]===Ht?[]:ne,G]),ne=y)}else U.run()};k.allowRecurse=!!t;let _e;o==="sync"?_e=k:o==="post"?_e=()=>pe(k,f&&f.suspense):(k.pre=!0,f&&(k.id=f.uid),_e=()=>zn(k));const U=new Bn(h,Ee,_e),se=Yo(),S=()=>{U.stop(),se&&Hn(se.effects,U)};return t?n?k():ne=U.run():o==="post"?pe(U.run.bind(U),f&&f.suspense):U.run(),$&&$.push(S),S}function Nr(e,t,n){const s=this.proxy,o=re(e)?e.includes(".")?fo(s,e):()=>s[e]:e.bind(s,s);let r;F(t)?r=t:(r=t.handler,n=t);const i=It(this),c=uo(o,r.bind(s),n);return i(),c}function fo(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}function ke(e,t,n=0,s){if(!te(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),me(e))ke(e.value,t,n,s);else if(P(e))for(let o=0;o<e.length;o++)ke(e[o],t,n,s);else if(Ps(e)||ct(e))e.forEach(o=>{ke(o,t,n,s)});else if(Hs(e))for(const o in e)ke(e[o],t,n,s);return e}function Br(e,t){if(Ce===null)return e;const n=on(Ce)||Ce.proxy,s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,c,f=Y]=t[o];r&&(F(r)&&(r={mounted:r,updated:r}),r.deep&&ke(i),s.push({dir:r,instance:n,value:i,oldValue:void 0,arg:c,modifiers:f}))}return e}function ze(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const c=o[i];r&&(c.oldValue=r[i].value);let f=c.dir[s];f&&(et(),Me(f,n,8,[e.el,c,e,t]),tt())}}/*! #__NO_SIDE_EFFECTS__ */function ao(e,t){return F(e)?he({name:e.name},t,{setup:e}):e}const Dt=e=>!!e.type.__asyncLoader,ho=e=>e.type.__isKeepAlive;function Dr(e,t){po(e,"a",t)}function $r(e,t){po(e,"da",t)}function po(e,t,n=de){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(en(t,s,n),n){let o=n.parent;for(;o&&o.parent;)ho(o.parent.vnode)&&Vr(s,t,n,o),o=o.parent}}function Vr(e,t,n,s){const o=en(t,e,s,!0);Yn(()=>{Hn(s[t],o)},n)}function en(e,t,n=de,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;et();const c=It(n),f=Me(t,n,e,i);return c(),tt(),f});return s?o.unshift(r):o.push(r),r}}const De=e=>(t,n=de)=>(!sn||e==="sp")&&en(e,(...s)=>t(...s),n),jr=De("bm"),go=De("m"),Kr=De("bu"),Ur=De("u"),Wr=De("bum"),Yn=De("um"),qr=De("sp"),Gr=De("rtg"),zr=De("rtc");function Yr(e,t=de){en("ec",e,t)}const Tn=e=>e?Oo(e)?on(e)||e.proxy:Tn(e.parent):null,bt=he(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=>Tn(e.parent),$root:e=>Tn(e.root),$emit:e=>e.emit,$options:e=>_o(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,zn(e.update)}),$nextTick:e=>e.n||(e.n=vr.bind(e.proxy)),$watch:e=>Nr.bind(e)}),un=(e,t)=>e!==Y&&!e.__isScriptSetup&&D(e,t),Xr={get({_:e},t){const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:c,appContext:f}=e;let d;if(t[0]!=="$"){const A=i[t];if(A!==void 0)switch(A){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(un(s,t))return i[t]=1,s[t];if(o!==Y&&D(o,t))return i[t]=2,o[t];if((d=e.propsOptions[0])&&D(d,t))return i[t]=3,r[t];if(n!==Y&&D(n,t))return i[t]=4,n[t];In&&(i[t]=0)}}const h=bt[t];let C,w;if(h)return t==="$attrs"&&ge(e,"get",t),h(e);if((C=c.__cssModules)&&(C=C[t]))return C;if(n!==Y&&D(n,t))return i[t]=4,n[t];if(w=f.config.globalProperties,D(w,t))return w[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return un(o,t)?(o[t]=n,!0):s!==Y&&D(s,t)?(s[t]=n,!0):D(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:r}},i){let c;return!!n[i]||e!==Y&&D(e,i)||un(t,i)||(c=r[0])&&D(c,i)||D(s,i)||D(bt,i)||D(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:D(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function as(e){return P(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let In=!0;function kr(e){const t=_o(e),n=e.proxy,s=e.ctx;In=!1,t.beforeCreate&&ds(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:c,provide:f,inject:d,created:h,beforeMount:C,mounted:w,beforeUpdate:A,updated:G,activated:$,deactivated:ne,beforeDestroy:k,beforeUnmount:_e,destroyed:U,unmounted:se,render:S,renderTracked:y,renderTriggered:M,errorCaptured:T,serverPrefetch:N,expose:X,inheritAttrs:Q,components:oe,directives:xe,filters:ce}=t;if(d&&Jr(d,s,null),i)for(const K in i){const B=i[K];F(B)&&(s[K]=B.bind(n))}if(o){const K=o.call(n,n);te(K)&&(e.data=Kn(K))}if(In=!0,r)for(const K in r){const B=r[K],ye=F(B)?B.bind(n,n):F(B.get)?B.get.bind(n,n):Ee,st=!F(B)&&F(B.set)?B.set.bind(n):Ee,Oe=Oi({get:ye,set:st});Object.defineProperty(s,K,{enumerable:!0,configurable:!0,get:()=>Oe.value,set:L=>Oe.value=L})}if(c)for(const K in c)mo(c[K],s,n,K);if(f){const K=F(f)?f.call(n):f;Reflect.ownKeys(K).forEach(B=>{si(B,K[B])})}h&&ds(h,e,"c");function J(K,B){P(B)?B.forEach(ye=>K(ye.bind(n))):B&&K(B.bind(n))}if(J(jr,C),J(go,w),J(Kr,A),J(Ur,G),J(Dr,$),J($r,ne),J(Yr,T),J(zr,y),J(Gr,M),J(Wr,_e),J(Yn,se),J(qr,N),P(X))if(X.length){const K=e.exposed||(e.exposed={});X.forEach(B=>{Object.defineProperty(K,B,{get:()=>n[B],set:ye=>n[B]=ye})})}else e.exposed||(e.exposed={});S&&e.render===Ee&&(e.render=S),Q!=null&&(e.inheritAttrs=Q),oe&&(e.components=oe),xe&&(e.directives=xe)}function Jr(e,t,n=Ee){P(e)&&(e=Mn(e));for(const s in e){const o=e[s];let r;te(o)?"default"in o?r=$t(o.from||s,o.default,!0):r=$t(o.from||s):r=$t(o),me(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function ds(e,t,n){Me(P(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function mo(e,t,n,s){const o=s.includes(".")?fo(n,s):()=>n[s];if(re(e)){const r=t[e];F(r)&&cn(o,r)}else if(F(e))cn(o,e.bind(n));else if(te(e))if(P(e))e.forEach(r=>mo(r,t,n,s));else{const r=F(e.handler)?e.handler.bind(n):t[e.handler];F(r)&&cn(o,r,e)}}function _o(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,c=r.get(t);let f;return c?f=c:!o.length&&!n&&!s?f=t:(f={},o.length&&o.forEach(d=>Wt(f,d,i,!0)),Wt(f,t,i)),te(t)&&r.set(t,f),f}function Wt(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&Wt(e,r,n,!0),o&&o.forEach(i=>Wt(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const c=Zr[i]||n&&n[i];e[i]=c?c(e[i],t[i]):t[i]}return e}const Zr={data:hs,props:ps,emits:ps,methods:yt,computed:yt,beforeCreate:ae,created:ae,beforeMount:ae,mounted:ae,beforeUpdate:ae,updated:ae,beforeDestroy:ae,beforeUnmount:ae,destroyed:ae,unmounted:ae,activated:ae,deactivated:ae,errorCaptured:ae,serverPrefetch:ae,components:yt,directives:yt,watch:ei,provide:hs,inject:Qr};function hs(e,t){return t?e?function(){return he(F(e)?e.call(this,this):e,F(t)?t.call(this,this):t)}:t:e}function Qr(e,t){return yt(Mn(e),Mn(t))}function Mn(e){if(P(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ae(e,t){return e?[...new Set([].concat(e,t))]:t}function yt(e,t){return e?he(Object.create(null),e,t):t}function ps(e,t){return e?P(e)&&P(t)?[...new Set([...e,...t])]:he(Object.create(null),as(e),as(t??{})):t}function ei(e,t){if(!e)return t;if(!t)return e;const n=he(Object.create(null),e);for(const s in t)n[s]=ae(e[s],t[s]);return n}function yo(){return{app:null,config:{isNativeTag:Lo,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 ti=0;function ni(e,t){return function(s,o=null){F(s)||(s=he({},s)),o!=null&&!te(o)&&(o=null);const r=yo(),i=new WeakSet;let c=!1;const f=r.app={_uid:ti++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:Ai,get config(){return r.config},set config(d){},use(d,...h){return i.has(d)||(d&&F(d.install)?(i.add(d),d.install(f,...h)):F(d)&&(i.add(d),d(f,...h))),f},mixin(d){return r.mixins.includes(d)||r.mixins.push(d),f},component(d,h){return h?(r.components[d]=h,f):r.components[d]},directive(d,h){return h?(r.directives[d]=h,f):r.directives[d]},mount(d,h,C){if(!c){const w=He(s,o);return w.appContext=r,C===!0?C="svg":C===!1&&(C=void 0),e(w,d,C),c=!0,f._container=d,d.__vue_app__=f,on(w.component)||w.component.proxy}},unmount(){c&&(e(null,f._container),delete f._container.__vue_app__)},provide(d,h){return r.provides[d]=h,f},runWithContext(d){qt=f;try{return d()}finally{qt=null}}};return f}}let qt=null;function si(e,t){if(de){let n=de.provides;const s=de.parent&&de.parent.provides;s===n&&(n=de.provides=Object.create(s)),n[e]=t}}function $t(e,t,n=!1){const s=de||Ce;if(s||qt){const o=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:qt._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&F(t)?t.call(s&&s.proxy):t}}function oi(e,t,n,s=!1){const o={},r={};jt(r,nn,1),e.propsDefaults=Object.create(null),bo(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:pr(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function ri(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,c=j(o),[f]=e.propsOptions;let d=!1;if((s||i>0)&&!(i&16)){if(i&8){const h=e.vnode.dynamicProps;for(let C=0;C<h.length;C++){let w=h[C];if(Qt(e.emitsOptions,w))continue;const A=t[w];if(f)if(D(r,w))A!==r[w]&&(r[w]=A,d=!0);else{const G=dt(w);o[G]=On(f,c,G,A,e,!1)}else A!==r[w]&&(r[w]=A,d=!0)}}}else{bo(e,t,o,r)&&(d=!0);let h;for(const C in c)(!t||!D(t,C)&&((h=Qe(C))===C||!D(t,h)))&&(f?n&&(n[C]!==void 0||n[h]!==void 0)&&(o[C]=On(f,c,C,void 0,e,!0)):delete o[C]);if(r!==c)for(const C in r)(!t||!D(t,C))&&(delete r[C],d=!0)}d&&Be(e,"set","$attrs")}function bo(e,t,n,s){const[o,r]=e.propsOptions;let i=!1,c;if(t)for(let f in t){if(Nt(f))continue;const d=t[f];let h;o&&D(o,h=dt(f))?!r||!r.includes(h)?n[h]=d:(c||(c={}))[h]=d:Qt(e.emitsOptions,f)||(!(f in s)||d!==s[f])&&(s[f]=d,i=!0)}if(r){const f=j(n),d=c||Y;for(let h=0;h<r.length;h++){const C=r[h];n[C]=On(o,f,C,d[C],e,!D(d,C))}}return i}function On(e,t,n,s,o,r){const i=e[n];if(i!=null){const c=D(i,"default");if(c&&s===void 0){const f=i.default;if(i.type!==Function&&!i.skipFactory&&F(f)){const{propsDefaults:d}=o;if(n in d)s=d[n];else{const h=It(o);s=d[n]=f.call(null,t),h()}}else s=f}i[0]&&(r&&!c?s=!1:i[1]&&(s===""||s===Qe(n))&&(s=!0))}return s}function vo(e,t,n=!1){const s=t.propsCache,o=s.get(e);if(o)return o;const r=e.props,i={},c=[];let f=!1;if(!F(e)){const h=C=>{f=!0;const[w,A]=vo(C,t,!0);he(i,w),A&&c.push(...A)};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!r&&!f)return te(e)&&s.set(e,lt),lt;if(P(r))for(let h=0;h<r.length;h++){const C=dt(r[h]);gs(C)&&(i[C]=Y)}else if(r)for(const h in r){const C=dt(h);if(gs(C)){const w=r[h],A=i[C]=P(w)||F(w)?{type:w}:he({},w);if(A){const G=ys(Boolean,A.type),$=ys(String,A.type);A[0]=G>-1,A[1]=$<0||G<$,(G>-1||D(A,"default"))&&c.push(C)}}}const d=[i,c];return te(e)&&s.set(e,d),d}function gs(e){return e[0]!=="$"}function ms(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function _s(e,t){return ms(e)===ms(t)}function ys(e,t){return P(t)?t.findIndex(n=>_s(n,e)):F(t)&&_s(t,e)?0:-1}const Co=e=>e[0]==="_"||e==="$stable",Xn=e=>P(e)?e.map(Fe):[Fe(e)],ii=(e,t,n)=>{if(t._n)return t;const s=Tr((...o)=>Xn(t(...o)),n);return s._c=!1,s},xo=(e,t,n)=>{const s=e._ctx;for(const o in e){if(Co(o))continue;const r=e[o];if(F(r))t[o]=ii(o,r,s);else if(r!=null){const i=Xn(r);t[o]=()=>i}}},Eo=(e,t)=>{const n=Xn(t);e.slots.default=()=>n},li=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=j(t),jt(t,"_",n)):xo(t,e.slots={})}else e.slots={},t&&Eo(e,t);jt(e.slots,nn,1)},ci=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=Y;if(s.shapeFlag&32){const c=t._;c?n&&c===1?r=!1:(he(o,t),!n&&c===1&&delete o._):(r=!t.$stable,xo(t,o)),i=t}else t&&(Eo(e,t),i={default:1});if(r)for(const c in o)!Co(c)&&i[c]==null&&delete o[c]};function An(e,t,n,s,o=!1){if(P(e)){e.forEach((w,A)=>An(w,t&&(P(t)?t[A]:t),n,s,o));return}if(Dt(s)&&!o)return;const r=s.shapeFlag&4?on(s.component)||s.component.proxy:s.el,i=o?null:r,{i:c,r:f}=e,d=t&&t.r,h=c.refs===Y?c.refs={}:c.refs,C=c.setupState;if(d!=null&&d!==f&&(re(d)?(h[d]=null,D(C,d)&&(C[d]=null)):me(d)&&(d.value=null)),F(f))qe(f,c,12,[i,h]);else{const w=re(f),A=me(f);if(w||A){const G=()=>{if(e.f){const $=w?D(C,f)?C[f]:h[f]:f.value;o?P($)&&Hn($,r):P($)?$.includes(r)||$.push(r):w?(h[f]=[r],D(C,f)&&(C[f]=h[f])):(f.value=[r],e.k&&(h[e.k]=f.value))}else w?(h[f]=i,D(C,f)&&(C[f]=i)):A&&(f.value=i,e.k&&(h[e.k]=i))};i?(G.id=-1,pe(G,n)):G()}}}const pe=Fr;function ui(e){return fi(e)}function fi(e,t){const n=Bs();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:c,createComment:f,setText:d,setElementText:h,parentNode:C,nextSibling:w,setScopeId:A=Ee,insertStaticContent:G}=e,$=(l,u,a,p=null,g=null,b=null,x=void 0,_=null,v=!!u.dynamicChildren)=>{if(l===u)return;l&&!_t(l,u)&&(p=ue(l),L(l,g,b,!0),l=null),u.patchFlag===-2&&(v=!1,u.dynamicChildren=null);const{type:m,ref:E,shapeFlag:O}=u;switch(m){case tn:ne(l,u,a,p);break;case wt:k(l,u,a,p);break;case an:l==null&&_e(u,a,p,x);break;case Ne:oe(l,u,a,p,g,b,x,_,v);break;default:O&1?S(l,u,a,p,g,b,x,_,v):O&6?xe(l,u,a,p,g,b,x,_,v):(O&64||O&128)&&m.process(l,u,a,p,g,b,x,_,v,be)}E!=null&&g&&An(E,l&&l.ref,b,u||l,!u)},ne=(l,u,a,p)=>{if(l==null)s(u.el=c(u.children),a,p);else{const g=u.el=l.el;u.children!==l.children&&d(g,u.children)}},k=(l,u,a,p)=>{l==null?s(u.el=f(u.children||""),a,p):u.el=l.el},_e=(l,u,a,p)=>{[l.el,l.anchor]=G(l.children,u,a,p,l.el,l.anchor)},U=({el:l,anchor:u},a,p)=>{let g;for(;l&&l!==u;)g=w(l),s(l,a,p),l=g;s(u,a,p)},se=({el:l,anchor:u})=>{let a;for(;l&&l!==u;)a=w(l),o(l),l=a;o(u)},S=(l,u,a,p,g,b,x,_,v)=>{u.type==="svg"?x="svg":u.type==="math"&&(x="mathml"),l==null?y(u,a,p,g,b,x,_,v):N(l,u,g,b,x,_,v)},y=(l,u,a,p,g,b,x,_)=>{let v,m;const{props:E,shapeFlag:O,transition:I,dirs:R}=l;if(v=l.el=i(l.type,b,E&&E.is,E),O&8?h(v,l.children):O&16&&T(l.children,v,null,p,g,fn(l,b),x,_),R&&ze(l,null,p,"created"),M(v,l,l.scopeId,x,p),E){for(const W in E)W!=="value"&&!Nt(W)&&r(v,W,null,E[W],b,l.children,p,g,q);"value"in E&&r(v,"value",null,E.value,b),(m=E.onVnodeBeforeMount)&&Re(m,p,l)}R&&ze(l,null,p,"beforeMount");const H=ai(g,I);H&&I.beforeEnter(v),s(v,u,a),((m=E&&E.onVnodeMounted)||H||R)&&pe(()=>{m&&Re(m,p,l),H&&I.enter(v),R&&ze(l,null,p,"mounted")},g)},M=(l,u,a,p,g)=>{if(a&&A(l,a),p)for(let b=0;b<p.length;b++)A(l,p[b]);if(g){let b=g.subTree;if(u===b){const x=g.vnode;M(l,x,x.scopeId,x.slotScopeIds,g.parent)}}},T=(l,u,a,p,g,b,x,_,v=0)=>{for(let m=v;m<l.length;m++){const E=l[m]=_?Ke(l[m]):Fe(l[m]);$(null,E,u,a,p,g,b,x,_)}},N=(l,u,a,p,g,b,x)=>{const _=u.el=l.el;let{patchFlag:v,dynamicChildren:m,dirs:E}=u;v|=l.patchFlag&16;const O=l.props||Y,I=u.props||Y;let R;if(a&&Ye(a,!1),(R=I.onVnodeBeforeUpdate)&&Re(R,a,u,l),E&&ze(u,l,a,"beforeUpdate"),a&&Ye(a,!0),m?X(l.dynamicChildren,m,_,a,p,fn(u,g),b):x||B(l,u,_,null,a,p,fn(u,g),b,!1),v>0){if(v&16)Q(_,u,O,I,a,p,g);else if(v&2&&O.class!==I.class&&r(_,"class",null,I.class,g),v&4&&r(_,"style",O.style,I.style,g),v&8){const H=u.dynamicProps;for(let W=0;W<H.length;W++){const Z=H[W],fe=O[Z],Se=I[Z];(Se!==fe||Z==="value")&&r(_,Z,fe,Se,g,l.children,a,p,q)}}v&1&&l.children!==u.children&&h(_,u.children)}else!x&&m==null&&Q(_,u,O,I,a,p,g);((R=I.onVnodeUpdated)||E)&&pe(()=>{R&&Re(R,a,u,l),E&&ze(u,l,a,"updated")},p)},X=(l,u,a,p,g,b,x)=>{for(let _=0;_<u.length;_++){const v=l[_],m=u[_],E=v.el&&(v.type===Ne||!_t(v,m)||v.shapeFlag&70)?C(v.el):a;$(v,m,E,null,p,g,b,x,!0)}},Q=(l,u,a,p,g,b,x)=>{if(a!==p){if(a!==Y)for(const _ in a)!Nt(_)&&!(_ in p)&&r(l,_,a[_],null,x,u.children,g,b,q);for(const _ in p){if(Nt(_))continue;const v=p[_],m=a[_];v!==m&&_!=="value"&&r(l,_,m,v,x,u.children,g,b,q)}"value"in p&&r(l,"value",a.value,p.value,x)}},oe=(l,u,a,p,g,b,x,_,v)=>{const m=u.el=l?l.el:c(""),E=u.anchor=l?l.anchor:c("");let{patchFlag:O,dynamicChildren:I,slotScopeIds:R}=u;R&&(_=_?_.concat(R):R),l==null?(s(m,a,p),s(E,a,p),T(u.children||[],a,E,g,b,x,_,v)):O>0&&O&64&&I&&l.dynamicChildren?(X(l.dynamicChildren,I,a,g,b,x,_),(u.key!=null||g&&u===g.subTree)&&wo(l,u,!0)):B(l,u,a,E,g,b,x,_,v)},xe=(l,u,a,p,g,b,x,_,v)=>{u.slotScopeIds=_,l==null?u.shapeFlag&512?g.ctx.activate(u,a,p,x,v):ce(u,a,p,g,b,x,v):nt(l,u,v)},ce=(l,u,a,p,g,b,x)=>{const _=l.component=Ei(l,p,g);if(ho(l)&&(_.ctx.renderer=be),wi(_),_.asyncDep){if(g&&g.registerDep(_,J),!l.el){const v=_.subTree=He(wt);k(null,v,u,a)}}else J(_,l,u,a,g,b,x)},nt=(l,u,a)=>{const p=u.component=l.component;if(Or(l,u,a))if(p.asyncDep&&!p.asyncResolved){K(p,u,a);return}else p.next=u,xr(p.update),p.effect.dirty=!0,p.update();else u.el=l.el,p.vnode=u},J=(l,u,a,p,g,b,x)=>{const _=()=>{if(l.isMounted){let{next:E,bu:O,u:I,parent:R,vnode:H}=l;{const ot=So(l);if(ot){E&&(E.el=H.el,K(l,E,x)),ot.asyncDep.then(()=>{l.isUnmounted||_()});return}}let W=E,Z;Ye(l,!1),E?(E.el=H.el,K(l,E,x)):E=H,O&&Bt(O),(Z=E.props&&E.props.onVnodeBeforeUpdate)&&Re(Z,R,E,H),Ye(l,!0);const fe=us(l),Se=l.subTree;l.subTree=fe,$(Se,fe,C(Se.el),ue(Se),l,g,b),E.el=fe.el,W===null&&Ar(l,fe.el),I&&pe(I,g),(Z=E.props&&E.props.onVnodeUpdated)&&pe(()=>Re(Z,R,E,H),g)}else{let E;const{el:O,props:I}=u,{bm:R,m:H,parent:W}=l,Z=Dt(u);Ye(l,!1),R&&Bt(R),!Z&&(E=I&&I.onVnodeBeforeMount)&&Re(E,W,u),Ye(l,!0);{const fe=l.subTree=us(l);$(null,fe,a,p,l,g,b),u.el=fe.el}if(H&&pe(H,g),!Z&&(E=I&&I.onVnodeMounted)){const fe=u;pe(()=>Re(E,W,fe),g)}(u.shapeFlag&256||W&&Dt(W.vnode)&&W.vnode.shapeFlag&256)&&l.a&&pe(l.a,g),l.isMounted=!0,u=a=p=null}},v=l.effect=new Bn(_,Ee,()=>zn(m),l.scope),m=l.update=()=>{v.dirty&&v.run()};m.id=l.uid,Ye(l,!0),m()},K=(l,u,a)=>{u.component=l;const p=l.vnode.props;l.vnode=u,l.next=null,ri(l,u.props,p,a),ci(l,u.children,a),et(),cs(l),tt()},B=(l,u,a,p,g,b,x,_,v=!1)=>{const m=l&&l.children,E=l?l.shapeFlag:0,O=u.children,{patchFlag:I,shapeFlag:R}=u;if(I>0){if(I&128){st(m,O,a,p,g,b,x,_,v);return}else if(I&256){ye(m,O,a,p,g,b,x,_,v);return}}R&8?(E&16&&q(m,g,b),O!==m&&h(a,O)):E&16?R&16?st(m,O,a,p,g,b,x,_,v):q(m,g,b,!0):(E&8&&h(a,""),R&16&&T(O,a,p,g,b,x,_,v))},ye=(l,u,a,p,g,b,x,_,v)=>{l=l||lt,u=u||lt;const m=l.length,E=u.length,O=Math.min(m,E);let I;for(I=0;I<O;I++){const R=u[I]=v?Ke(u[I]):Fe(u[I]);$(l[I],R,a,null,g,b,x,_,v)}m>E?q(l,g,b,!0,!1,O):T(u,a,p,g,b,x,_,v,O)},st=(l,u,a,p,g,b,x,_,v)=>{let m=0;const E=u.length;let O=l.length-1,I=E-1;for(;m<=O&&m<=I;){const R=l[m],H=u[m]=v?Ke(u[m]):Fe(u[m]);if(_t(R,H))$(R,H,a,null,g,b,x,_,v);else break;m++}for(;m<=O&&m<=I;){const R=l[O],H=u[I]=v?Ke(u[I]):Fe(u[I]);if(_t(R,H))$(R,H,a,null,g,b,x,_,v);else break;O--,I--}if(m>O){if(m<=I){const R=I+1,H=R<E?u[R].el:p;for(;m<=I;)$(null,u[m]=v?Ke(u[m]):Fe(u[m]),a,H,g,b,x,_,v),m++}}else if(m>I)for(;m<=O;)L(l[m],g,b,!0),m++;else{const R=m,H=m,W=new Map;for(m=H;m<=I;m++){const ve=u[m]=v?Ke(u[m]):Fe(u[m]);ve.key!=null&&W.set(ve.key,m)}let Z,fe=0;const Se=I-H+1;let ot=!1,Jn=0;const mt=new Array(Se);for(m=0;m<Se;m++)mt[m]=0;for(m=R;m<=O;m++){const ve=l[m];if(fe>=Se){L(ve,g,b,!0);continue}let Ae;if(ve.key!=null)Ae=W.get(ve.key);else for(Z=H;Z<=I;Z++)if(mt[Z-H]===0&&_t(ve,u[Z])){Ae=Z;break}Ae===void 0?L(ve,g,b,!0):(mt[Ae-H]=m+1,Ae>=Jn?Jn=Ae:ot=!0,$(ve,u[Ae],a,null,g,b,x,_,v),fe++)}const Zn=ot?di(mt):lt;for(Z=Zn.length-1,m=Se-1;m>=0;m--){const ve=H+m,Ae=u[ve],Qn=ve+1<E?u[ve+1].el:p;mt[m]===0?$(null,Ae,a,Qn,g,b,x,_,v):ot&&(Z<0||m!==Zn[Z]?Oe(Ae,a,Qn,2):Z--)}}},Oe=(l,u,a,p,g=null)=>{const{el:b,type:x,transition:_,children:v,shapeFlag:m}=l;if(m&6){Oe(l.component.subTree,u,a,p);return}if(m&128){l.suspense.move(u,a,p);return}if(m&64){x.move(l,u,a,be);return}if(x===Ne){s(b,u,a);for(let O=0;O<v.length;O++)Oe(v[O],u,a,p);s(l.anchor,u,a);return}if(x===an){U(l,u,a);return}if(p!==2&&m&1&&_)if(p===0)_.beforeEnter(b),s(b,u,a),pe(()=>_.enter(b),g);else{const{leave:O,delayLeave:I,afterLeave:R}=_,H=()=>s(b,u,a),W=()=>{O(b,()=>{H(),R&&R()})};I?I(b,H,W):W()}else s(b,u,a)},L=(l,u,a,p=!1,g=!1)=>{const{type:b,props:x,ref:_,children:v,dynamicChildren:m,shapeFlag:E,patchFlag:O,dirs:I}=l;if(_!=null&&An(_,null,a,l,!0),E&256){u.ctx.deactivate(l);return}const R=E&1&&I,H=!Dt(l);let W;if(H&&(W=x&&x.onVnodeBeforeUnmount)&&Re(W,u,l),E&6)z(l.component,a,p);else{if(E&128){l.suspense.unmount(a,p);return}R&&ze(l,null,u,"beforeUnmount"),E&64?l.type.remove(l,u,a,g,be,p):m&&(b!==Ne||O>0&&O&64)?q(m,u,a,!1,!0):(b===Ne&&O&384||!g&&E&16)&&q(v,u,a),p&&V(l)}(H&&(W=x&&x.onVnodeUnmounted)||R)&&pe(()=>{W&&Re(W,u,l),R&&ze(l,null,u,"unmounted")},a)},V=l=>{const{type:u,el:a,anchor:p,transition:g}=l;if(u===Ne){ee(a,p);return}if(u===an){se(l);return}const b=()=>{o(a),g&&!g.persisted&&g.afterLeave&&g.afterLeave()};if(l.shapeFlag&1&&g&&!g.persisted){const{leave:x,delayLeave:_}=g,v=()=>x(a,b);_?_(l.el,b,v):v()}else b()},ee=(l,u)=>{let a;for(;l!==u;)a=w(l),o(l),l=a;o(u)},z=(l,u,a)=>{const{bum:p,scope:g,update:b,subTree:x,um:_}=l;p&&Bt(p),g.stop(),b&&(b.active=!1,L(x,l,u,a)),_&&pe(_,u),pe(()=>{l.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&l.asyncDep&&!l.asyncResolved&&l.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},q=(l,u,a,p=!1,g=!1,b=0)=>{for(let x=b;x<l.length;x++)L(l[x],u,a,p,g)},ue=l=>l.shapeFlag&6?ue(l.component.subTree):l.shapeFlag&128?l.suspense.next():w(l.anchor||l.el);let we=!1;const $e=(l,u,a)=>{l==null?u._vnode&&L(u._vnode,null,null,!0):$(u._vnode||null,l,u,null,null,null,a),we||(we=!0,cs(),ro(),we=!1),u._vnode=l},be={p:$,um:L,m:Oe,r:V,mt:ce,mc:T,pc:B,pbc:X,n:ue,o:e};return{render:$e,hydrate:void 0,createApp:ni($e)}}function fn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ye({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ai(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function wo(e,t,n=!1){const s=e.children,o=t.children;if(P(s)&&P(o))for(let r=0;r<s.length;r++){const i=s[r];let c=o[r];c.shapeFlag&1&&!c.dynamicChildren&&((c.patchFlag<=0||c.patchFlag===32)&&(c=o[r]=Ke(o[r]),c.el=i.el),n||wo(i,c)),c.type===tn&&(c.el=i.el)}}function di(e){const t=e.slice(),n=[0];let s,o,r,i,c;const f=e.length;for(s=0;s<f;s++){const d=e[s];if(d!==0){if(o=n[n.length-1],e[o]<d){t[s]=o,n.push(s);continue}for(r=0,i=n.length-1;r<i;)c=r+i>>1,e[n[c]]<d?r=c+1:i=c;d<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}function So(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:So(t)}const hi=e=>e.__isTeleport,Ne=Symbol.for("v-fgt"),tn=Symbol.for("v-txt"),wt=Symbol.for("v-cmt"),an=Symbol.for("v-stc"),vt=[];let Ie=null;function To(e=!1){vt.push(Ie=e?null:[])}function pi(){vt.pop(),Ie=vt[vt.length-1]||null}let St=1;function bs(e){St+=e}function gi(e){return e.dynamicChildren=St>0?Ie||lt:null,pi(),St>0&&Ie&&Ie.push(e),e}function Io(e,t,n,s,o,r){return gi(Pe(e,t,n,s,o,r,!0))}function mi(e){return e?e.__v_isVNode===!0:!1}function _t(e,t){return e.type===t.type&&e.key===t.key}const nn="__vInternal",Mo=({key:e})=>e??null,Vt=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?re(e)||me(e)||F(e)?{i:Ce,r:e,k:t,f:!!n}:e:null);function Pe(e,t=null,n=null,s=0,o=null,r=e===Ne?0:1,i=!1,c=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Mo(t),ref:t&&Vt(t),scopeId:co,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ce};return c?(kn(f,n),r&128&&e.normalize(f)):n&&(f.shapeFlag|=re(n)?8:16),St>0&&!i&&Ie&&(f.patchFlag>0||r&6)&&f.patchFlag!==32&&Ie.push(f),f}const He=_i;function _i(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===Rr)&&(e=wt),mi(e)){const c=pt(e,t,!0);return n&&kn(c,n),St>0&&!r&&Ie&&(c.shapeFlag&6?Ie[Ie.indexOf(e)]=c:Ie.push(c)),c.patchFlag|=-2,c}if(Mi(e)&&(e=e.__vccOpts),t){t=yi(t);let{class:c,style:f}=t;c&&!re(c)&&(t.class=Tt(c)),te(f)&&(Zs(f)&&!P(f)&&(f=he({},f)),t.style=kt(f))}const i=re(e)?1:Pr(e)?128:hi(e)?64:te(e)?4:F(e)?2:0;return Pe(e,t,n,s,o,i,r,!0)}function yi(e){return e?Zs(e)||nn in e?he({},e):e:null}function pt(e,t,n=!1){const{props:s,ref:o,patchFlag:r,children:i}=e,c=t?vi(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Mo(c),ref:t&&t.ref?n&&o?P(o)?o.concat(Vt(t)):[o,Vt(t)]:Vt(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ne?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pt(e.ssContent),ssFallback:e.ssFallback&&pt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function bi(e=" ",t=0){return He(tn,null,e,t)}function Fe(e){return e==null||typeof e=="boolean"?He(wt):P(e)?He(Ne,null,e.slice()):typeof e=="object"?Ke(e):He(tn,null,String(e))}function Ke(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pt(e)}function kn(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(P(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),kn(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(nn in t)?t._ctx=Ce:o===3&&Ce&&(Ce.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else F(t)?(t={default:t,_ctx:Ce},n=32):(t=String(t),s&64?(n=16,t=[bi(t)]):n=8);e.children=t,e.shapeFlag|=n}function vi(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=Tt([t.class,s.class]));else if(o==="style")t.style=kt([t.style,s.style]);else if(zt(o)){const r=t[o],i=s[o];i&&r!==i&&!(P(r)&&r.includes(i))&&(t[o]=r?[].concat(r,i):i)}else o!==""&&(t[o]=s[o])}return t}function Re(e,t,n,s=null){Me(e,t,7,[n,s])}const Ci=yo();let xi=0;function Ei(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||Ci,r={uid:xi++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Go(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:vo(s,o),emitsOptions:lo(s,o),emit:null,emitted:null,propsDefaults:Y,inheritAttrs:s.inheritAttrs,ctx:Y,data:Y,props:Y,attrs:Y,slots:Y,refs:Y,setupState:Y,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=Sr.bind(null,r),e.ce&&e.ce(r),r}let de=null,Gt,Rn;{const e=Bs(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};Gt=t("__VUE_INSTANCE_SETTERS__",n=>de=n),Rn=t("__VUE_SSR_SETTERS__",n=>sn=n)}const It=e=>{const t=de;return Gt(e),e.scope.on(),()=>{e.scope.off(),Gt(t)}},vs=()=>{de&&de.scope.off(),Gt(null)};function Oo(e){return e.vnode.shapeFlag&4}let sn=!1;function wi(e,t=!1){t&&Rn(t);const{props:n,children:s}=e.vnode,o=Oo(e);oi(e,n,o,t),li(e,s);const r=o?Si(e,t):void 0;return t&&Rn(!1),r}function Si(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Qs(new Proxy(e.ctx,Xr));const{setup:s}=n;if(s){const o=e.setupContext=s.length>1?Ii(e):null,r=It(e);et();const i=qe(s,e,0,[e.props,o]);if(tt(),r(),Fs(i)){if(i.then(vs,vs),t)return i.then(c=>{Cs(e,c)}).catch(c=>{Zt(c,e,0)});e.asyncDep=i}else Cs(e,i)}else Ao(e)}function Cs(e,t,n){F(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:te(t)&&(e.setupState=no(t)),Ao(e)}function Ao(e,t,n){const s=e.type;e.render||(e.render=s.render||Ee);{const o=It(e);et();try{kr(e)}finally{tt(),o()}}}function Ti(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return ge(e,"get","$attrs"),t[n]}}))}function Ii(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Ti(e)},slots:e.slots,emit:e.emit,expose:t}}function on(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(no(Qs(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bt)return bt[n](e)},has(t,n){return n in t||n in bt}}))}function Mi(e){return F(e)&&"__vccOpts"in e}const Oi=(e,t)=>gr(e,t,sn),Ai="3.4.8";/**
|
|
* @vue/runtime-dom v3.4.8
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/const Ri="http://www.w3.org/2000/svg",Pi="http://www.w3.org/1998/Math/MathML",Ue=typeof document<"u"?document:null,xs=Ue&&Ue.createElement("template"),Fi={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t==="svg"?Ue.createElementNS(Ri,e):t==="mathml"?Ue.createElementNS(Pi,e):Ue.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>Ue.createTextNode(e),createComment:e=>Ue.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ue.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,r){const i=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{xs.innerHTML=s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e;const c=xs.content;if(s==="svg"||s==="mathml"){const f=c.firstChild;for(;f.firstChild;)c.appendChild(f.firstChild);c.removeChild(f)}t.insertBefore(c,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Li=Symbol("_vtc");function Hi(e,t,n){const s=e[Li];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ni=Symbol("_vod"),Bi=Symbol("");function Di(e,t,n){const s=e.style,o=re(n);if(n&&!o){if(t&&!re(t))for(const r in t)n[r]==null&&Pn(s,r,"");for(const r in n)Pn(s,r,n[r])}else{const r=s.display;if(o){if(t!==n){const i=s[Bi];i&&(n+=";"+i),s.cssText=n}}else t&&e.removeAttribute("style");Ni in e&&(s.display=r)}}const Es=/\s*!important$/;function Pn(e,t,n){if(P(n))n.forEach(s=>Pn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=$i(e,t);Es.test(n)?e.setProperty(Qe(s),n.replace(Es,""),"important"):e[s]=n}}const ws=["Webkit","Moz","ms"],dn={};function $i(e,t){const n=dn[t];if(n)return n;let s=dt(t);if(s!=="filter"&&s in e)return dn[t]=s;s=Ns(s);for(let o=0;o<ws.length;o++){const r=ws[o]+s;if(r in e)return dn[t]=r}return t}const Ss="http://www.w3.org/1999/xlink";function Vi(e,t,n,s,o){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Ss,t.slice(6,t.length)):e.setAttributeNS(Ss,t,n);else{const r=Wo(t);n==null||r&&!Ds(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function ji(e,t,n,s,o,r,i){if(t==="innerHTML"||t==="textContent"){s&&i(s,o,r),e[t]=n??"";return}const c=e.tagName;if(t==="value"&&c!=="PROGRESS"&&!c.includes("-")){e._value=n;const d=c==="OPTION"?e.getAttribute("value"):e.value,h=n??"";d!==h&&(e.value=h),n==null&&e.removeAttribute(t);return}let f=!1;if(n===""||n==null){const d=typeof e[t];d==="boolean"?n=Ds(n):n==null&&d==="string"?(n="",f=!0):d==="number"&&(n=0,f=!0)}try{e[t]=n}catch{}f&&e.removeAttribute(t)}function rt(e,t,n,s){e.addEventListener(t,n,s)}function Ki(e,t,n,s){e.removeEventListener(t,n,s)}const Ts=Symbol("_vei");function Ui(e,t,n,s,o=null){const r=e[Ts]||(e[Ts]={}),i=r[t];if(s&&i)i.value=s;else{const[c,f]=Wi(t);if(s){const d=r[t]=zi(s,o);rt(e,c,d,f)}else i&&(Ki(e,c,i,f),r[t]=void 0)}}const Is=/(?:Once|Passive|Capture)$/;function Wi(e){let t;if(Is.test(e)){t={};let s;for(;s=e.match(Is);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Qe(e.slice(2)),t]}let hn=0;const qi=Promise.resolve(),Gi=()=>hn||(qi.then(()=>hn=0),hn=Date.now());function zi(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Me(Yi(s,n.value),t,5,[s])};return n.value=e,n.attached=Gi(),n}function Yi(e,t){if(P(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const Ms=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Xi=(e,t,n,s,o,r,i,c,f)=>{const d=o==="svg";t==="class"?Hi(e,s,d):t==="style"?Di(e,n,s):zt(t)?Ln(t)||Ui(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ki(e,t,s,d))?ji(e,t,s,r,i,c,f):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Vi(e,t,s,d))};function ki(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ms(t)&&F(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Ms(t)&&re(n)?!1:t in e}const Os=e=>{const t=e.props["onUpdate:modelValue"]||!1;return P(t)?n=>Bt(t,n):t};function Ji(e){e.target.composing=!0}function As(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const pn=Symbol("_assign"),Zi={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e[pn]=Os(o);const r=s||o.props&&o.props.type==="number";rt(e,t?"change":"input",i=>{if(i.target.composing)return;let c=e.value;n&&(c=c.trim()),r&&(c=bn(c)),e[pn](c)}),n&&rt(e,"change",()=>{e.value=e.value.trim()}),t||(rt(e,"compositionstart",Ji),rt(e,"compositionend",As),rt(e,"change",As))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:o}},r){if(e[pn]=Os(r),e.composing)return;const i=o||e.type==="number"?bn(e.value):e.value,c=t??"";i!==c&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===c)||(e.value=c))}},Qi=["ctrl","shift","alt","meta"],el={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)=>Qi.some(n=>e[`${n}Key`]&&!t.includes(n))},gn=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(o,...r)=>{for(let i=0;i<t.length;i++){const c=el[t[i]];if(c&&c(o,t))return}return e(o,...r)})},tl={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},mn=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=o=>{if(!("key"in o))return;const r=Qe(o.key);if(t.some(i=>i===r||tl[i]===r))return e(o)})},nl=he({patchProp:Xi},Fi);let Rs;function sl(){return Rs||(Rs=ui(nl))}const ol=(...e)=>{const t=sl().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=il(s);if(!o)return;const r=t._component;!F(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,rl(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function rl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function il(e){return re(e)?document.querySelector(e):e}const ll={id:/^\d{14}-[0-9a-z]{7}$/,url:/^siyuan:\/\/blocks\/(\d{14}-[0-9a-z]{7})/,snippet:/^\d{14}-[0-9a-z]{7}$/,created:/^\d{10}$/,history:/[\/\\]history[\/\\]\d{4}-\d{2}-\d{2}-\d{6}-(clean|update|delete|format|sync|replace)([\/\\]\d{14}-[0-9a-z]{7})+\.sy$/,snapshot:/^[0-9a-f]{40}$/,shorthand:/^\d{13}$/,weburl:/(https?:\/\/)([\w-]+\.)+[\w-]+(\/[\w-./?%&=#]*)?/g},cl=["data-id"],ul=["xlink:href"],_n=ao({__name:"Svg",props:{icon:{},id:{default:""},className:{default:""},style:{default:""}},setup(e){return(t,n)=>(To(),Io("svg",{"data-id":t.id,style:kt(t.style),class:Tt([t.className,{popover__block:qn(ll).id.test(t.id)}])},[Pe("use",{"xlink:href":t.icon},null,8,ul)],14,cl))}}),fl={class:"search-dialog"},al={class:"b3-form__icon search-input"},dl={class:"search-tools"},hl="🔍︎ (Shift) + Enter",yn=400,pl=ao({__name:"Search",props:{edit:{},element:{},plugin:{}},setup(e,{expose:t}){const n=Lt(""),s=Lt(0),o=Lt(0),r=Lt();function i(S){if(!S)return[];const y=[S],M=S.trim();M!==S&&y.push(M);const T=S.replace(/[\u200B-\u200D\uFEFF]/g,"");T!==S&&y.push(T);const N=S.replace(/\s/g,"");return N!==S&&N.length>0&&y.push(N),[...new Set(y)]}const c=e;go(()=>{var y,M;const S=c.element.querySelector(".search-dialog .b3-text-field");if(S){const T=c.element.getAttribute("data-preset-text");T?(c.element.removeAttribute("data-preset-text"),n.value=T,S.value=T,S.focus(),A(T,!0)):(S.focus(),S.select())}(M=(y=c.plugin)==null?void 0:y.onSearchComponentMounted)==null||M.call(y,d)}),Yn(()=>{var S,y;(y=(S=c.plugin)==null?void 0:S.onSearchComponentUnmounted)==null||y.call(S,d)});function f(S){var M,T;if(at())return;const y=S.currentTarget.closest(".search-dialog");(T=(M=c.plugin)==null?void 0:M.startDragging)==null||T.call(M,y,S.clientX,S.clientY),S.preventDefault()}function d(S){var y,M;if(["savedoc","rename"].includes(S.detail.cmd))clearTimeout(h),h=window.setTimeout(()=>{var T,N;(N=(T=c.plugin)==null?void 0:T.isLastHighlightComponent)!=null&&N.call(T,c.element)?(A(n.value,!1),o.value>=1&&k(o.value-1,!1)):w(n.value,!1)},yn);else if(["loaded-protyle-dynamic","loaded-protyle-static","switch-protyle","switch-protyle-mode"].includes(S.type)){const T=(M=(y=S.detail)==null?void 0:y.protyle)==null?void 0:M.element;if(!T)return;const N=T.closest(".layout-tab-container");if(N&&!N.contains(c.element))return;const X=T.closest(".block__popover");if(X&&!X.contains(c.element))return;clearTimeout(h),h=window.setTimeout(()=>{var Q,oe;o.value=0,(oe=(Q=c.plugin)==null?void 0:Q.isLastHighlightComponent)!=null&&oe.call(Q,c.element)?A(n.value,!1):w(n.value,!1)},yn)}}let h;function C(){clearTimeout(h),h=window.setTimeout(()=>{A(n.value,!0)},yn)}function w(S,y){const M=S.trim().toLowerCase();if(!M)return G(),[];y==!0&&(o.value=0,s.value=0);let T=c.edit.querySelector(":scope > .protyle:not(.fn__none) :is(.protyle-content:not(.fn__none) .protyle-wysiwyg, .protyle-preview:not(.fn__none) .b3-typography)");if(T||(T=c.edit.querySelector(".protyle:not(.fn__none) :is(.protyle-content:not(.fn__none) .protyle-wysiwyg, .protyle-preview:not(.fn__none) .b3-typography)")),!T)return[];const N=T.textContent.toLowerCase(),X=[];let Q=[],oe=0;const xe=document.createTreeWalker(T,NodeFilter.SHOW_TEXT);let ce=xe.nextNode();for(;ce;)X.push(ce),oe+=ce.textContent.length,Q.push(oe),ce=xe.nextNode();const nt=i(M);let J=[];const K=new Set,B=[];nt.forEach(L=>{let V=0,ee=0;for(;(V=N.indexOf(L,V))!==-1;)ee=V+L.length,B.push({startIndex:V,endIndex:ee,searchStr:L}),V=ee;const z=N.replace(/[\u200B-\u200D\uFEFF]/g,""),q=L.replace(/[\u200B-\u200D\uFEFF]/g,"");if(q!==L||z!==N)for(V=0;(V=z.indexOf(q,V))!==-1;){ee=V+q.length;const ue=Oe(N,z,V),we=Oe(N,z,ee);ue!==-1&&we!==-1&&B.push({startIndex:ue,endIndex:we,searchStr:L}),V=ee}}),B.sort((L,V)=>L.startIndex-V.startIndex),B.forEach(L=>{let V=!1;for(const ee of K){const[z,q]=ee.split("-").map(Number);if(L.startIndex<q&&L.endIndex>z){V=!0;break}}V||st(L.startIndex,L.endIndex,0,X,Q,K,J)});function ye(L){var q,ue;if(!L)return!1;const V=L;if(((q=V.tagName)==null?void 0:q.toLowerCase())==="style")return!1;let ee=L;for(;ee&&ee!==document.body;){if((ue=ee.classList)!=null&&ue.contains("fn__none"))return!1;ee=ee.parentElement}if(typeof V.checkVisibility=="function")return V.checkVisibility({visibilityProperty:!0,opacityProperty:!0});const z=window.getComputedStyle(V);return z.display==="none"||z.visibility==="hidden"?!1:ye(V.parentElement)}function st(L,V,ee,z,q,ue,we){try{const $e=document.createRange();let be=ee;for(;be<z.length-1&&q[be]<=L;)be++;const Mt=z[be],l=L-(be>0?q[be-1]:0),u=Mt.textContent.length;if(l<0||l>u)return!1;let a=be;for(;a<z.length-1&&q[a]<V;)a++;const p=z[a],g=V-(a>0?q[a-1]:0),b=p.textContent.length;if(g<0||g>b)return!1;$e.setStart(Mt,l),$e.setEnd(p,g);const x=Mt.parentElement,_=p.parentElement;if(x&&_&&ye(x)&&ye(_))return we.push($e),ue.add(`${L}-${V}`),!0}catch($e){console.error("Error setting range in node:",$e)}return!1}function Oe(L,V,ee){let z=0,q=0;for(;z<L.length&&q<ee;)/[\u200B-\u200D\uFEFF]/.test(L[z])||q++,z++;if(q===ee&&z<=L.length){const ue=L.slice(z).replace(/[\u200B-\u200D\uFEFF]/g,""),we=V.slice(ee);if(ue.startsWith(we.substring(0,Math.min(ue.length,we.length)))){for(;z<L.length&&/[\u200B-\u200D\uFEFF]/.test(L[z]);)z++;return z}}return-1}return s.value=J.flat().length,r.value=J.flat(),J.flat()}function A(S,y){var N,X;const M=w(S,y);if(M.length===0){G();return}G();const T=new Highlight(...M);CSS.highlights.set("search-results",T),(X=(N=c.plugin)==null?void 0:N.updateLastHighlightComponent)==null||X.call(N,c.element)}function G(){CSS.highlights.delete("search-results"),CSS.highlights.delete("search-focus")}t({highlightHitResult:A});function $(S){const y=[];let M=S;for(;M&&M!==document.body;){const T=M,N=window.getComputedStyle(T).overflowY,X=window.getComputedStyle(T).overflowX,Q=(N==="auto"||N==="scroll")&&T.scrollHeight>T.clientHeight,oe=(X==="auto"||X==="scroll")&&T.scrollWidth>T.clientWidth;(Q||oe)&&y.push(T),M=M.parentElement}return y}function ne(S,y){const M=S.getBoundingClientRect(),T=y.getBoundingClientRect(),N=window.getComputedStyle(y),X=(M.left+M.right)/2,Q=N.overflowY,oe=N.overflowX,xe=(Q==="auto"||Q==="scroll")&&y.scrollHeight>y.clientHeight,ce=(oe==="auto"||oe==="scroll")&&y.scrollWidth>y.clientWidth;if(xe){const K=(M.top+M.bottom)/2-T.top+y.scrollTop-y.clientHeight/2,B=y.scrollHeight-y.clientHeight,ye=0;y.scrollTop=Math.max(ye,Math.min(K,B))}if(ce){const J=X-T.left+y.scrollLeft-y.clientWidth/2,K=y.scrollWidth-y.clientWidth,B=0;y.scrollLeft=Math.max(B,Math.min(J,K))}}function k(S,y=!0){var N,X;const M=r.value;if(!M||M.length===0)return;const T=M[S];if(y){const Q=T.commonAncestorContainer,oe=Q.nodeType===Node.TEXT_NODE?Q.parentElement:Q;if(oe){const xe=$(oe);if(xe.forEach(ce=>{ne(T,ce)}),xe.length===0){const ce=c.edit.querySelector(":scope > .protyle:not(.fn__none) :is(.protyle-content:not(.fn__none), .protyle-preview:not(.fn__none))");ce&&ne(T,ce)}}}CSS.highlights.set("search-focus",new Highlight(T)),(X=(N=c.plugin)==null?void 0:N.updateLastHighlightComponent)==null||X.call(N,c.element)}function _e(){o.value>1&&o.value<=s.value&&s.value!=0?o.value=o.value-1:(o.value<=1||o.value>s.value)&&s.value!=0?o.value=s.value:s.value==0&&(o.value=0),k(o.value-1)}function U(){o.value<s.value?o.value=o.value+1:o.value>=s.value&&s.value!=0?o.value=1:s.value==0&&(o.value=0),k(o.value-1)}function se(){var S,y;G(),(y=(S=c.plugin)==null?void 0:S.closeCurrentSearchDialog)==null||y.call(S,c.element)}return(S,y)=>(To(),Io("div",fl,[Pe("div",al,[Br(Pe("input",{type:"text",class:"b3-text-field fn__size200",spellcheck:"false",placeholder:hl,"onUpdate:modelValue":y[0]||(y[0]=M=>n.value=M),onKeydown:[y[1]||(y[1]=mn(gn(M=>U(),["exact"]),["enter"])),y[2]||(y[2]=mn(gn(M=>_e(),["shift"]),["enter"])),y[3]||(y[3]=mn(gn(M=>se(),["exact"]),["esc"]))],onInput:C},null,544),[[Zi,n.value]])]),Pe("span",{class:Tt(["search-count",{"search-count--draggable":!qn(at)()}]),onMousedown:f},qo(o.value+"/"+s.value),35),Pe("div",dl,[Pe("div",{onClick:_e},[He(_n,{icon:"#iconUp",class:"icon--14_14"})]),Pe("div",{onClick:U},[He(_n,{icon:"#iconDown",class:"icon--14_14"})]),Pe("div",{onClick:se},[He(_n,{icon:"#iconClose",class:"icon--14_14"})])])]))}}),gl=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},ml=gl(pl,[["__scopeId","data-v-e103d479"]]),it="highlight-search-result",at=()=>{var e;return!!((e=window.siyuan)!=null&&e.mobile)};class _l extends Fo.Plugin{constructor(){super(...arguments);ie(this,"icon",'<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.29289 1.29289C9.48043 1.10536 9.73478 1 10 1H18C19.6569 1 21 2.34315 21 4V8C21 8.55228 20.5523 9 20 9C19.4477 9 19 8.55228 19 8V4C19 3.44772 18.5523 3 18 3H11V8C11 8.55228 10.5523 9 10 9H5V20C5 20.5523 5.44772 21 6 21H10C10.5523 21 11 21.4477 11 22C11 22.5523 10.5523 23 10 23H6C4.34315 23 3 21.6569 3 20V8C3 7.73478 3.10536 7.48043 3.29289 7.29289L9.29289 1.29289ZM6.41421 7H9V4.41421L6.41421 7ZM20.1716 18.7574C20.6951 17.967 21 17.0191 21 16C21 13.2386 18.7614 11 16 11C13.2386 11 11 13.2386 11 16C11 18.7614 13.2386 21 16 21C17.0191 21 17.967 20.6951 18.7574 20.1716L21.2929 22.7071C21.6834 23.0976 22.3166 23.0976 22.7071 22.7071C23.0976 22.3166 23.0976 21.6834 22.7071 21.2929L20.1716 18.7574ZM13 16C13 14.3431 14.3431 13 16 13C17.6569 13 19 14.3431 19 16C19 17.6569 17.6569 19 16 19C14.3431 19 13 17.6569 13 16Z"/></svg>');ie(this,"searchComponentCallbacks",new Set);ie(this,"searchApps",new Map);ie(this,"activeSearchComponentsCount",0);ie(this,"lastHighlightComponent",null);ie(this,"isDragging",!1);ie(this,"dragStartX",0);ie(this,"dragStartY",0);ie(this,"initialLeft",0);ie(this,"initialTop",0);ie(this,"currentDraggingElement",null);ie(this,"cleanupTimer",null);ie(this,"handleEventBusEvent",n=>{this.searchComponentCallbacks.forEach(s=>{s(n)})});ie(this,"handleGlobalMouseMove",n=>{if(!this.isDragging||!this.currentDraggingElement)return;const s=n.clientX-this.dragStartX,o=n.clientY-this.dragStartY;this.currentDraggingElement.style.position="fixed",this.currentDraggingElement.style.left=this.initialLeft+s+"px",this.currentDraggingElement.style.top=this.initialTop+o+"px",this.currentDraggingElement.style.zIndex="9999"});ie(this,"handleGlobalMouseUp",()=>{this.isDragging=!1,this.currentDraggingElement=null})}updateLastHighlightComponent(n){this.lastHighlightComponent=n}getLastHighlightComponent(){return this.lastHighlightComponent}isLastHighlightComponent(n){return this.lastHighlightComponent===n}cleanupInvalidComponents(){const n=[];this.searchApps.forEach((s,o)=>{document.contains(o)||n.push(o)}),n.length>0&&console.warn("Component element detected as unexpectedly removed, cleaning up..."),n.forEach(s=>{const o=this.searchApps.get(s);if(o)try{o.unmount()}catch(r){console.error("Error unmounting Vue app:",r)}this.searchApps.delete(s),this.activeSearchComponentsCount=Math.max(0,this.activeSearchComponentsCount-1)}),this.activeSearchComponentsCount===0&&(this.searchComponentCallbacks.clear(),this.eventBusOff(),this.removeGlobalDragListeners(),this.lastHighlightComponent=null)}startCleanupTimer(){this.cleanupTimer&&clearInterval(this.cleanupTimer),this.cleanupTimer=window.setInterval(()=>{this.cleanupInvalidComponents()},3e4)}stopCleanupTimer(){this.cleanupTimer&&(clearInterval(this.cleanupTimer),this.cleanupTimer=null)}manualCleanup(){this.cleanupInvalidComponents()}onload(){this.addTopBar({icon:this.icon,title:this.i18n.topBarTitle,position:"right",callback:()=>{this.closePanel(),this.addSearchElement(!0)}}),this.addCommand({langKey:"showDialog",hotkey:"⌥⇧⌘F",callback:()=>{this.addSearchElement(!1)}}),console.log(this.displayName,this.i18n.pluginOnload)}setupGlobalDragListeners(){document.addEventListener("mousemove",this.handleGlobalMouseMove),document.addEventListener("mouseup",this.handleGlobalMouseUp)}removeGlobalDragListeners(){document.removeEventListener("mousemove",this.handleGlobalMouseMove),document.removeEventListener("mouseup",this.handleGlobalMouseUp)}eventBusOn(){this.eventBus.on("ws-main",this.handleEventBusEvent),this.eventBus.on("loaded-protyle-dynamic",this.handleEventBusEvent),this.eventBus.on("loaded-protyle-static",this.handleEventBusEvent),this.eventBus.on("switch-protyle",this.handleEventBusEvent),this.eventBus.on("switch-protyle-mode",this.handleEventBusEvent)}eventBusOff(){this.eventBus.off("ws-main",this.handleEventBusEvent),this.eventBus.off("loaded-protyle-dynamic",this.handleEventBusEvent),this.eventBus.off("loaded-protyle-static",this.handleEventBusEvent),this.eventBus.off("switch-protyle",this.handleEventBusEvent),this.eventBus.off("switch-protyle-mode",this.handleEventBusEvent)}startDragging(n,s,o){this.isDragging=!0,this.dragStartX=s,this.dragStartY=o,this.currentDraggingElement=n;const r=n.getBoundingClientRect();this.initialLeft=r.left,this.initialTop=r.top}resetComponentPosition(n){n.style.position="",n.style.left="",n.style.top="",n.style.zIndex=""}onSearchComponentMounted(n){this.searchComponentCallbacks.add(n),this.activeSearchComponentsCount++,this.activeSearchComponentsCount===1&&(this.eventBusOn(),at()||this.setupGlobalDragListeners(),this.startCleanupTimer())}onSearchComponentUnmounted(n){n&&this.searchComponentCallbacks.delete(n),this.activeSearchComponentsCount--,this.activeSearchComponentsCount===0&&(this.eventBusOff(),this.removeGlobalDragListeners(),this.stopCleanupTimer())}closeSearchDialog(){this.searchApps.forEach(s=>{try{s.unmount()}catch(o){console.error("Error unmounting Vue app:",o)}}),this.searchApps.clear(),this.activeSearchComponentsCount=0,document.querySelectorAll(`.${it}`).forEach(s=>{try{s.remove()}catch(o){console.error("Error removing DOM element:",o)}})}closeCurrentSearchDialog(n){const s=this.searchApps.get(n);if(s){try{s.unmount()}catch(o){console.error("Error unmounting Vue app:",o)}this.searchApps.delete(n)}try{n.remove()}catch(o){console.error("Error removing DOM element:",o)}}onLayoutReady(){}onunload(){this.closeSearchDialog(),this.removeGlobalDragListeners(),this.stopCleanupTimer(),console.log(this.displayName,this.i18n.pluginOnunload)}uninstall(){this.closeSearchDialog(),this.removeGlobalDragListeners(),this.stopCleanupTimer(),console.log(this.displayName,this.i18n.pluginUninstall)}closePanel(){var i,c;if(!at())return;const n=document.getElementById("menu"),s=document.getElementById("sidebar"),o=document.getElementById("model");n&&(n.style.transform=""),s&&(s.style.transform=""),o&&(o.style.transform="");const r=document.querySelector(".side-mask");r&&(r.classList.add("fn__none"),r.style.opacity=""),(c=(i=window.siyuan)==null?void 0:i.menus)==null||c.menu.remove()}addSearchElement(n=!1){var r;this.cleanupInvalidComponents();let s=at(),o=s?document.querySelectorAll("#editor"):document.querySelectorAll(".layout__wnd--active > .layout-tab-container");if(o.length===0){const i=(r=document.activeElement)==null?void 0:r.closest(".protyle");if(i)o=[i];else{console.error("no protyle found");return}}o.forEach(i=>{let c;if(s?c=document.querySelector(`.${it}`):c=i.querySelector(`.${it}`),c){const f=c.querySelector(".search-dialog .b3-text-field");if(f){n&&this.resetComponentPosition(c.querySelector(".search-dialog"));const d=this.getSelectedText();d?(f.value=d,f.dispatchEvent(new Event("input",{bubbles:!0})),f.focus(),setTimeout(()=>{var C;const h=this.searchApps.get(c);if(h){const w=(C=h._instance)==null?void 0:C.exposed;w&&w.highlightHitResult&&w.highlightHitResult(d,!0)}},50)):(f.focus(),f.select())}}else{const f=document.createElement("div");f.className=`${it} ${s?it+"--mobile":""}`,s?i.insertAdjacentElement("afterend",f):i.appendChild(f);const d=this.getSelectedText();d&&f.setAttribute("data-preset-text",d);const h=ol(ml,{edit:i,element:f,plugin:this});h.mount(f),this.searchApps.set(f,h)}})}getSelectedText(){const n=window.getSelection();return!n||n.rangeCount===0?"":n.getRangeAt(0).toString().trim()||""}}exports.CLASS_NAME=it;exports.default=_l;exports.isMobile=at;
|