zen-gitsync 2.18.20 → 2.18.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -1
- package/src/cli/ai/agent.js +9 -2
- package/src/cli/ai/extensions.js +1 -1
- package/src/cli/ai/runtime.test.js +57 -1
- package/src/cli/ai/termui.js +11 -2
- package/src/cli/ai/tools.js +266 -5
- package/src/cli/ai/tools.test.js +81 -0
- package/src/cli/ai/transport.js +1 -1
- package/src/cli/ai/turn.js +59 -3
- package/src/config.js +60 -4
- package/src/mcp/install.js +548 -529
- package/src/ui/public/assets/AgentView-DdiyBMDD.js +26 -0
- package/src/ui/public/assets/{AgentView-BE7GD8rc.css → AgentView-_DUYxFmp.css} +1 -1
- package/src/ui/public/assets/{AppVersionBadge-86tbKU20.js → AppVersionBadge-CSEM45L4.js} +2 -2
- package/src/ui/public/assets/{BranchSelector-CsrkmTCA.js → BranchSelector-cSx2ZxYM.js} +1 -1
- package/src/ui/public/assets/ChatSilenceBadge-Dtv23ZmV.js +16 -0
- package/src/ui/public/assets/{CommitForm-DBK0GXEh.js → CommitForm-CrAsbDkq.js} +2 -2
- package/src/ui/public/assets/{CommonDialog-BkuDIWro.js → CommonDialog-BtO3uKdw.js} +1 -1
- package/src/ui/public/assets/{EditorView-CnWsMdHg.css → EditorView-B-t-nuf0.css} +1 -1
- package/src/ui/public/assets/EditorView-BesiWTV2.js +10 -0
- package/src/ui/public/assets/{FlowExecutionViewer-ClUkAmA2.js → FlowExecutionViewer-CfU9DLFG.js} +1 -1
- package/src/ui/public/assets/{FlowOrchestrationWorkspace-B3sOK3fz.js → FlowOrchestrationWorkspace-D3CSRMvG.js} +1 -1
- package/src/ui/public/assets/{LogList-6aO0-2xh.js → LogList-CT-SRIS3.js} +4 -4
- package/src/ui/public/assets/MindmapView-BCGq2zdh.js +35 -0
- package/src/ui/public/assets/MindmapView-CoUbyadF.css +1 -0
- package/src/ui/public/assets/{MonitorView-fcNrgVaU.js → MonitorView-BuBJJVhR.js} +1 -1
- package/src/ui/public/assets/{ProjectManagerView-CZfrML6A.js → ProjectManagerView-DlSfRn9N.js} +2 -2
- package/src/ui/public/assets/{ProjectStartupButton-D5MREz6F.js → ProjectStartupButton-DKZttDb3.js} +1 -1
- package/src/ui/public/assets/RemoteManagerDialog-CVrhhUPg.js +4 -0
- package/src/ui/public/assets/{RemoteRepoCard-CTnmfv2y.js → RemoteRepoCard-CmdYDF24.js} +1 -1
- package/src/ui/public/assets/{SourceMapView-B4q5qiE8.js → SourceMapView-DClgTmda.js} +1 -1
- package/src/ui/public/assets/{SvgIcon-WpEiC1rI.js → SvgIcon-D5fhBiJr.js} +1 -1
- package/src/ui/public/assets/TaskExecutorPicker-CzvWdS_K.js +1 -0
- package/src/ui/public/assets/TaskExecutorPicker-Dn8SgrTZ.css +1 -0
- package/src/ui/public/assets/{UserInputNode-Deoc3UvQ.js → UserInputNode-CNuW_Dtu.js} +1 -1
- package/src/ui/public/assets/WorkbenchView-D61DxNnn.css +1 -0
- package/src/ui/public/assets/WorkbenchView-WKNPn-oz.js +341 -0
- package/src/ui/public/assets/_plugin-vue_export-helper-E2AaPXn7.js +19 -0
- package/src/ui/public/assets/configStore-JIX2MOKo.js +1 -0
- package/src/ui/public/assets/{dagre-CpKxpMNH.js → dagre-yiQDclZv.js} +3 -3
- package/src/ui/public/assets/{element-plus-Bz6lYur-.js → element-plus-BeZBQw4X.js} +1 -1
- package/src/ui/public/assets/{flow-mindmap-cTg78Krq.js → flow-mindmap-CGjPqCv0.js} +1 -1
- package/src/ui/public/assets/{index-cDiVh_ZL.js → index-Cjv2Z6nF.js} +134 -125
- package/src/ui/public/assets/index-IjYv2goK.css +1 -0
- package/src/ui/public/assets/{monaco-CvMddat7.js → monaco-CMQow_j-.js} +1 -1
- package/src/ui/public/assets/{office-docx-VOB-i4K2.js → office-docx-nuGPI15f.js} +1 -1
- package/src/ui/public/assets/{office-excel-CJ2JvfA8.js → office-excel-CK-HOYi8.js} +1 -1
- package/src/ui/public/assets/{office-pptx-Z88k9qnx.js → office-pptx-9onMeLux.js} +1 -1
- package/src/ui/public/assets/{relativeTime-CoXAs57j.js → relativeTime-DHhE9Ihn.js} +1 -1
- package/src/ui/public/assets/taskExecutionExport-DlBMELzX.js +15 -0
- package/src/ui/public/assets/toolsStore-h5iqPyST.js +1 -0
- package/src/ui/public/assets/{useWorkbenchProjects-BS59r5Rj.js → useWorkbenchProjects-DW3vBHpK.js} +1 -1
- package/src/ui/public/assets/{vendor-CSFGMcMB.css → vendor-CAhoE06w.css} +1 -1
- package/src/ui/public/assets/{vendor-C2k0GBzj.js → vendor-KxSgeiUX.js} +303 -303
- package/src/ui/public/assets/{vue-flow-Cnxq2qrs.js → vue-flow-BMMiguH1.js} +1 -1
- package/src/ui/public/index.html +14 -14
- package/src/ui/server/routes/config.js +13 -0
- package/src/ui/server/routes/fileOpen.js +1851 -1736
- package/src/ui/server/routes/fileOpen.test.js +39 -1
- package/src/ui/server/routes/workbench/agentChat.js +48 -8
- package/src/ui/server/routes/workbench/agentChatShared.test.js +584 -496
- package/src/ui/server/routes/workbench/agentEngines.js +7 -4
- package/src/ui/server/routes/workbench/executorModels.js +25 -4
- package/src/ui/server/routes/workbench/executorModels.test.js +557 -530
- package/src/ui/server/routes/workbench/jobActivity.js +2 -2
- package/src/ui/server/routes/workbench/taskRunner.codearts.test.js +252 -0
- package/src/ui/server/routes/workbench/taskRunner.codebuddy.test.js +317 -317
- package/src/ui/server/routes/workbench/taskRunner.js +216 -7
- package/src/ui/server/routes/workbench/taskRunner.opencode.test.js +130 -130
- package/src/ui/server/routes/workbench/taskRunner.pi.test.js +298 -298
- package/src/ui/public/assets/AgentView-Du9akUeZ.js +0 -12
- package/src/ui/public/assets/ChatSilenceBadge-BBoFeSqe.js +0 -21
- package/src/ui/public/assets/EditorAgentPanel-BMUphuG0.css +0 -1
- package/src/ui/public/assets/EditorAgentPanel-KiHbQPJP.js +0 -34
- package/src/ui/public/assets/EditorView-B18B4yNJ.js +0 -13
- package/src/ui/public/assets/MindmapView-BDI3D_1h.css +0 -1
- package/src/ui/public/assets/MindmapView-aJ9TTijE.js +0 -4
- package/src/ui/public/assets/RecentDirectoriesChat-DBGoUlkn.css +0 -1
- package/src/ui/public/assets/RecentDirectoriesChat-wfkSF6NU.js +0 -3
- package/src/ui/public/assets/RemoteManagerDialog-BBwNlK9J.js +0 -4
- package/src/ui/public/assets/WorkbenchView-CVqXb__l.css +0 -1
- package/src/ui/public/assets/WorkbenchView-CijzpDWN.js +0 -360
- package/src/ui/public/assets/_plugin-vue_export-helper-BhdsvhKo.js +0 -19
- package/src/ui/public/assets/agentConversations-DaAtF1v4.js +0 -10
- package/src/ui/public/assets/configStore-Drlw8KtR.js +0 -1
- package/src/ui/public/assets/index-DSQ6mp_N.css +0 -1
- package/src/ui/public/assets/toolsStore-CnX34C96.js +0 -1
- package/src/ui/public/assets/useOrchestrator-BXmxJsRl.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,o as t,r as n,t as r}from"./rolldown-runtime-C0FnF6B9.js";import{Ar as i,Cr as a,Dr as o,Er as s,Mr as c,Nr as l,Or as u,Sr as d,Tr as f,_r as p,ar as m,br as h,cr as g,dr as _,fr as v,gr as y,hr as b,jr as x,kr as S,lr as C,mr as w,or as T,pr as E,sr as D,ur as ee,vr as O,wr as te,xr as ne,yr as re}from"./dagre-
|
|
1
|
+
import{n as e,o as t,r as n,t as r}from"./rolldown-runtime-C0FnF6B9.js";import{Ar as i,Cr as a,Dr as o,Er as s,Mr as c,Nr as l,Or as u,Sr as d,Tr as f,_r as p,ar as m,br as h,cr as g,dr as _,fr as v,gr as y,hr as b,jr as x,kr as S,lr as C,mr as w,or as T,pr as E,sr as D,ur as ee,vr as O,wr as te,xr as ne,yr as re}from"./dagre-yiQDclZv.js";var ie=n({EMPTY_ARR:()=>we,EMPTY_OBJ:()=>Ce,NO:()=>Ee,NOOP:()=>Te,PatchFlagNames:()=>lt,PatchFlags:()=>ct,ShapeFlags:()=>ut,SlotFlags:()=>dt,camelize:()=>Ye,capitalize:()=>Qe,cssVarNameEscapeSymbolsRE:()=>Rt,def:()=>nt,escapeHtml:()=>he,escapeHtmlComment:()=>ge,extend:()=>ke,genCacheKey:()=>se,genPropsAccessExp:()=>oe,generateCodeFrame:()=>ce,getEscapedCssVarName:()=>_e,getGlobalThis:()=>ot,hasChanged:()=>et,hasOwn:()=>Me,hyphenate:()=>Ze,includeBooleanAttr:()=>fe,invokeArrayFns:()=>tt,isArray:()=>j,isBooleanAttr:()=>kt,isBuiltInDirective:()=>Ke,isDate:()=>Fe,isFunction:()=>M,isGloballyAllowed:()=>pt,isGloballyWhitelisted:()=>mt,isHTMLTag:()=>Ct,isIntegerKey:()=>We,isKnownHtmlAttr:()=>Nt,isKnownMathMLAttr:()=>Ft,isKnownSvgAttr:()=>Pt,isMap:()=>Ne,isMathMLTag:()=>Tt,isModelListener:()=>Oe,isObject:()=>Re,isOn:()=>De,isPlainObject:()=>Ue,isPromise:()=>ze,isRegExp:()=>Ie,isRenderableAttrValue:()=>me,isReservedProp:()=>Ge,isSSRSafeAttrName:()=>pe,isSVGTag:()=>wt,isSet:()=>Pe,isSpecialBooleanAttr:()=>Ot,isString:()=>N,isSymbol:()=>Le,isVoidTag:()=>Et,looseEqual:()=>be,looseIndexOf:()=>xe,looseToNumber:()=>rt,makeMap:()=>ae,normalizeClass:()=>A,normalizeCssVarValue:()=>Se,normalizeProps:()=>de,normalizeStyle:()=>k,objectToString:()=>Be,parseStringStyle:()=>le,propsToAttrMap:()=>Mt,remove:()=>Ae,slotFlagsText:()=>ft,stringifyStyle:()=>ue,toDisplayString:()=>P,toHandlerKey:()=>$e,toNumber:()=>it,toRawType:()=>He,toTypeString:()=>Ve});function ae(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}function oe(e){return st.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function se(e,t){return e+JSON.stringify(t,(e,t)=>typeof t==`function`?t.toString():t)}function ce(e,t=0,n=e.length){if(t=Math.max(0,Math.min(t,e.length)),n=Math.max(0,Math.min(n,e.length)),t>n)return``;let r=e.split(/(\r?\n)/),i=r.filter((e,t)=>t%2==1);r=r.filter((e,t)=>t%2==0);let a=0,o=[];for(let e=0;e<r.length;e++)if(a+=r[e].length+(i[e]&&i[e].length||0),a>=t){for(let s=e-ht;s<=e+ht||n>a;s++){if(s<0||s>=r.length)continue;let c=s+1;o.push(`${c}${` `.repeat(Math.max(3-String(c).length,0))}| ${r[s]}`);let l=r[s].length,u=i[s]&&i[s].length||0;if(s===e){let e=t-(a-(l+u)),r=Math.max(1,n>a?l-e:n-t);o.push(` | `+` `.repeat(e)+`^`.repeat(r))}else if(s>e){if(n>a){let e=Math.max(Math.min(n-a,l),1);o.push(` | `+`^`.repeat(e))}a+=l+u}}break}return o.join(`
|
|
2
2
|
`)}function k(e){if(j(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=N(r)?le(r):k(r);if(i)for(let e in i)t[e]=i[e]}return t}if(N(e)||Re(e))return e}function le(e){let t={};return e.replace(vt,``).split(gt).forEach(e=>{if(e){let n=e.split(_t);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ue(e){if(!e)return``;if(N(e))return e;let t=``;for(let n in e){let r=e[n];if(N(r)||typeof r==`number`){let e=n.startsWith(`--`)?n:Ze(n);t+=`${e}:${r};`}}return t}function A(e){let t=``;if(N(e))t=e;else if(j(e))for(let n=0;n<e.length;n++){let r=A(e[n]);r&&(t+=r+` `)}else if(Re(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function de(e){if(!e)return null;let{class:t,style:n}=e;return t&&!N(t)&&(e.class=A(t)),n&&(e.style=k(n)),e}function fe(e){return!!e||e===``}function pe(e){if(jt.hasOwnProperty(e))return jt[e];let t=At.test(e);return t&&console.error(`unsafe attribute name: ${e}`),jt[e]=!t}function me(e){if(e==null)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`}function he(e){let t=``+e,n=It.exec(t);if(!n)return t;let r=``,i,a,o=0;for(a=n.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:i=`"`;break;case 38:i=`&`;break;case 39:i=`'`;break;case 60:i=`<`;break;case 62:i=`>`;break;default:continue}o!==a&&(r+=t.slice(o,a)),o=a+1,r+=i}return o===a?r:r+t.slice(o,a)}function ge(e){let t;do t=e,e=e.replace(Lt,``);while(e!==t);return e}function _e(e,t){return e.replace(Rt,e=>t?e===`"`?`\\\\\\"`:`\\\\${e}`:`\\${e}`)}function ve(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=be(e[r],t[r]);return n}function ye(e,t){if(e.size!==t.size)return!1;let n=Array.from(t),r=new Uint8Array(n.length);for(let t of e){let e=-1;for(let i=0;i<n.length;i++)if(!r[i]&&be(t,n[i])){e=i;break}if(e<0)return!1;r[e]=1}return!0}function be(e,t){if(e===t)return!0;let n=Fe(e),r=Fe(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Le(e),r=Le(t),n||r)return e===t;if(n=j(e),r=j(t),n||r)return n&&r?ve(e,t):!1;if(n=Re(e),r=Re(t),n||r){if(!n||!r)return!1;if(n=Ne(e),r=Ne(t),n||r||(n=Pe(e),r=Pe(t),n||r))return n&&r?ye(e,t):!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!be(e[n],t[n]))return!1}}return String(e)===String(t)}function xe(e,t){return e.findIndex(e=>be(e,t))}function Se(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:((typeof e!=`number`||!Number.isFinite(e))&&console.warn(`[Vue warn] Invalid value used for CSS binding. Expected a string or a finite number but received:`,e),String(e))}var Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,j,Ne,Pe,Fe,Ie,M,N,Le,Re,ze,Be,Ve,He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt,it,at,ot,st,ct,lt,ut,dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,P,Bt,Vt,Ht=e((()=>{Ce=Object.freeze({}),we=Object.freeze([]),Te=()=>{},Ee=()=>!1,De=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Oe=e=>e.startsWith(`onUpdate:`),ke=Object.assign,Ae=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},je=Object.prototype.hasOwnProperty,Me=(e,t)=>je.call(e,t),j=Array.isArray,Ne=e=>Ve(e)===`[object Map]`,Pe=e=>Ve(e)===`[object Set]`,Fe=e=>Ve(e)===`[object Date]`,Ie=e=>Ve(e)===`[object RegExp]`,M=e=>typeof e==`function`,N=e=>typeof e==`string`,Le=e=>typeof e==`symbol`,Re=e=>typeof e==`object`&&!!e,ze=e=>(Re(e)||M(e))&&M(e.then)&&M(e.catch),Be=Object.prototype.toString,Ve=e=>Be.call(e),He=e=>Ve(e).slice(8,-1),Ue=e=>Ve(e)===`[object Object]`,We=e=>N(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,Ge=ae(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),Ke=ae(`bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo`),qe=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Je=/-\w/g,Ye=qe(e=>e.replace(Je,e=>e.slice(1).toUpperCase())),Xe=/\B([A-Z])/g,Ze=qe(e=>e.replace(Xe,`-$1`).toLowerCase()),Qe=qe(e=>e.charAt(0).toUpperCase()+e.slice(1)),$e=qe(e=>e?`on${Qe(e)}`:``),et=(e,t)=>!Object.is(e,t),tt=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},nt=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},rt=e=>{let t=parseFloat(e);return isNaN(t)?e:t},it=e=>{let t=N(e)?Number(e):NaN;return isNaN(t)?e:t},ot=()=>at||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{},st=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/,ct={TEXT:1,1:`TEXT`,CLASS:2,2:`CLASS`,STYLE:4,4:`STYLE`,PROPS:8,8:`PROPS`,FULL_PROPS:16,16:`FULL_PROPS`,NEED_HYDRATION:32,32:`NEED_HYDRATION`,STABLE_FRAGMENT:64,64:`STABLE_FRAGMENT`,KEYED_FRAGMENT:128,128:`KEYED_FRAGMENT`,UNKEYED_FRAGMENT:256,256:`UNKEYED_FRAGMENT`,NEED_PATCH:512,512:`NEED_PATCH`,DYNAMIC_SLOTS:1024,1024:`DYNAMIC_SLOTS`,DEV_ROOT_FRAGMENT:2048,2048:`DEV_ROOT_FRAGMENT`,CACHED:-1,"-1":`CACHED`,BAIL:-2,"-2":`BAIL`},lt={1:`TEXT`,2:`CLASS`,4:`STYLE`,8:`PROPS`,16:`FULL_PROPS`,32:`NEED_HYDRATION`,64:`STABLE_FRAGMENT`,128:`KEYED_FRAGMENT`,256:`UNKEYED_FRAGMENT`,512:`NEED_PATCH`,1024:`DYNAMIC_SLOTS`,2048:`DEV_ROOT_FRAGMENT`,[-1]:`CACHED`,[-2]:`BAIL`},ut={ELEMENT:1,1:`ELEMENT`,FUNCTIONAL_COMPONENT:2,2:`FUNCTIONAL_COMPONENT`,STATEFUL_COMPONENT:4,4:`STATEFUL_COMPONENT`,TEXT_CHILDREN:8,8:`TEXT_CHILDREN`,ARRAY_CHILDREN:16,16:`ARRAY_CHILDREN`,SLOTS_CHILDREN:32,32:`SLOTS_CHILDREN`,TELEPORT:64,64:`TELEPORT`,SUSPENSE:128,128:`SUSPENSE`,COMPONENT_SHOULD_KEEP_ALIVE:256,256:`COMPONENT_SHOULD_KEEP_ALIVE`,COMPONENT_KEPT_ALIVE:512,512:`COMPONENT_KEPT_ALIVE`,COMPONENT:6,6:`COMPONENT`},dt={STABLE:1,1:`STABLE`,DYNAMIC:2,2:`DYNAMIC`,FORWARDED:3,3:`FORWARDED`},ft={1:`STABLE`,2:`DYNAMIC`,3:`FORWARDED`},pt=ae(`Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol`),mt=pt,ht=2,gt=/;(?![^(]*\))/g,_t=/:([^]+)/,vt=/\/\*[^]*?\*\//g,yt=`html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot`,bt=`svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view`,xt=`annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics`,St=`area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr`,Ct=ae(yt),wt=ae(bt),Tt=ae(xt),Et=ae(St),Dt=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,Ot=ae(Dt),kt=ae(Dt+`,async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`),At=/[>/="'\u0009\u000a\u000c\u000d\u0020]/,jt={},Mt={acceptCharset:`accept-charset`,className:`class`,htmlFor:`for`,httpEquiv:`http-equiv`},Nt=ae(`accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap`),Pt=ae(`xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan`),Ft=ae(`accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns`),It=/["'&<>]/,Lt=/^(?:-?>)+|<!--|-->|--!>|<!-$/g,Rt=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g,zt=e=>!!(e&&e.__v_isRef===!0),P=e=>N(e)?e:e==null?``:j(e)||Re(e)&&(e.toString===Be||!M(e.toString))?zt(e)?P(e.value):JSON.stringify(e,Bt,2):String(e),Bt=(e,t)=>zt(t)?Bt(e,t.value):Ne(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Vt(t,r)+` =>`]=n,e),{})}:Pe(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Vt(e))}:Le(t)?Vt(t):Re(t)&&!j(t)&&!Ue(t)?String(t):t,Vt=(e,t=``)=>Le(e)?`Symbol(${e.description??t})`:e}));function Ut(e,...t){console.warn(`[Vue warn] ${e}`,...t)}function Wt(e){return new er(e)}function Gt(){return $n}function Kt(e,t=!1){$n?$n.cleanups.push(e):t||Ut(`onScopeDispose() is called when there is no active effect scope to be associated with.`)}function qt(e,t=!1){if(e.flags|=8,t){e.next=or,or=e;return}e.next=ar,ar=e}function Jt(){ir++}function Yt(){if(--ir>0)return;if(or){let e=or;for(or=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;ar;){let t=ar;for(ar=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Xt(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Zt(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),en(r),tn(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Qt(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&($t(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function $t(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===lr)||(e.globalVersion=lr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Qt(e))))return;e.flags|=2;let t=e.dep,n=tr,r=sr;tr=e,sr=!0;try{Xt(e);let n=e.fn(e._value);(t.version===0||et(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{tr=n,sr=r,Zt(e),e.flags&=-3}}function en(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subsHead===e&&(n.subsHead=i),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)en(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function tn(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function nn(e,t){e.effect instanceof rr&&(e=e.effect.fn);let n=new rr(e);t&&ke(n,t);try{n.run()}catch(e){throw n.stop(),e}let r=n.run.bind(n);return r.effect=n,r}function rn(e){e.effect.stop()}function an(){cr.push(sr),sr=!1}function on(){let e=cr.pop();sr=e===void 0||e}function sn(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=tr;tr=void 0;try{t()}finally{tr=e}}}function cn(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)cn(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}function ln(e,t,n){if(sr&&tr){let r=fr.get(e);r||fr.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new dr),i.map=r,i.key=n),i.track({target:e,type:t,key:n})}}function un(e,t,n,r,i,a){let o=fr.get(e);if(!o){lr++;return}let s=o=>{o&&o.trigger({target:e,type:t,key:n,newValue:r,oldValue:i,oldTarget:a})};if(Jt(),t===`clear`)o.forEach(s);else{let i=j(e),a=i&&We(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===hr||!Le(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(hr)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(pr)),Ne(e)&&s(o.get(mr)));break;case`delete`:i||(s(o.get(pr)),Ne(e)&&s(o.get(mr)));break;case`set`:Ne(e)&&s(o.get(pr))}}Yt()}function dn(e,t){let n=fr.get(e);return n&&n.get(t)}function fn(e){let t=In(e);return t===e?t:(ln(t,`iterate`,hr),Pn(e)?t:t.map(Lr))}function pn(e){return ln(e=In(e),`iterate`,hr),e}function mn(e,t){return Nn(e)?Rr(Mn(e)?Lr(t):t):Lr(t)}function hn(e,t,n){let r=pn(e),i=r[t]();return r!==e&&!Pn(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}function gn(e,t,n,r,i,a){let o=pn(e),s=o!==e&&!Pn(e),c=o[t];if(c!==_r[t]){let t=c.apply(e,a);return s?Lr(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,mn(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function _n(e,t,n,r){let i=pn(e),a=i!==e&&!Pn(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=mn(e,t)),n.call(this,t,mn(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?mn(e,c):c}function vn(e,t,n){let r=In(e);ln(r,`iterate`,hr);let i=r[t](...n);return(i===-1||i===!1)&&Fn(n[0])?(n[0]=In(n[0]),r[t](...n)):i}function yn(e,t,n=[]){an(),Jt();let r=In(e)[t].apply(e,n);return Yt(),on(),r}function bn(e){Le(e)||(e=String(e));let t=In(this);return ln(t,`has`,e),t.hasOwnProperty(e)}function xn(e,t,n){return function(...r){let i=this.__v_raw,a=In(i),o=Ne(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),u=n?Dr:t?Rr:Lr;return!t&&ln(a,`iterate`,c?mr:pr),ke(Object.create(l),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}}})}}function Sn(e){return function(...t){{let n=t[0]?`on key "${t[0]}" `:``;Ut(`${Qe(e)} operation ${n}failed: target is readonly.`,In(this))}return e===`delete`?!1:e===`clear`?void 0:this}}function Cn(e,t){let n={get(n){let r=this.__v_raw,i=In(r),a=In(n);e||(et(n,a)&&ln(i,`get`,n),ln(i,`get`,a));let{has:o}=Or(i),s=t?Dr:e?Rr:Lr;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&ln(In(t),`iterate`,pr),t.size},has(t){let n=this.__v_raw,r=In(n),i=In(t);return e||(et(t,i)&&ln(r,`has`,t),ln(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=In(a),s=t?Dr:e?Rr:Lr;return!e&&ln(o,`iterate`,pr),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return ke(n,e?{add:Sn(`add`),set:Sn(`set`),delete:Sn(`delete`),clear:Sn(`clear`)}:{add(e){let n=In(this),r=Or(n),i=In(e),a=!t&&!Pn(e)&&!Nn(e)?i:e;return r.has.call(n,a)||et(e,a)&&r.has.call(n,e)||et(i,a)&&r.has.call(n,i)||(n.add(a),un(n,`add`,a,a)),this},set(e,n){!t&&!Pn(n)&&!Nn(n)&&(n=In(n));let r=In(this),{has:i,get:a}=Or(r),o=i.call(r,e);o?Tn(r,i,e):(e=In(e),o=i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?et(n,s)&&un(r,`set`,e,n,s):un(r,`add`,e,n),this},delete(e){let t=In(this),{has:n,get:r}=Or(t),i=n.call(t,e);i?Tn(t,n,e):(e=In(e),i=n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&un(t,`delete`,e,void 0,a),o},clear(){let e=In(this),t=e.size!==0,n=Ne(e)?new Map(e):new Set(e),r=e.clear();return t&&un(e,`clear`,void 0,void 0,n),r}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=xn(r,e,t)}),n}function wn(e,t){let n=Cn(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(Me(n,r)&&r in t?n:t,r,i)}function Tn(e,t,n){let r=In(n);if(r!==n&&t.call(e,r)){let t=He(e);Ut(`Reactive ${t} contains both the raw and reactive versions of the same object${t===`Map`?` as keys`:``}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}function En(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Dn(e){return Nn(e)?e:jn(e,!1,Cr,kr,Nr)}function On(e){return jn(e,!1,Tr,Ar,Pr)}function kn(e){return jn(e,!0,wr,jr,Fr)}function An(e){return jn(e,!0,Er,Mr,Ir)}function jn(e,t,n,r,i){if(!Re(e))return Ut(`value cannot be made ${t?`readonly`:`reactive`}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=En(He(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function Mn(e){return Nn(e)?Mn(e.__v_raw):!!(e&&e.__v_isReactive)}function Nn(e){return!!(e&&e.__v_isReadonly)}function Pn(e){return!!(e&&e.__v_isShallow)}function Fn(e){return e?!!e.__v_raw:!1}function In(e){let t=e&&e.__v_raw;return t?In(t):e}function Ln(e){return!Me(e,`__v_skip`)&&Object.isExtensible(e)&&nt(e,`__v_skip`,!0),e}function Rn(e){return e?e.__v_isRef===!0:!1}function F(e){return Bn(e,!1)}function zn(e){return Bn(e,!0)}function Bn(e,t){return Rn(e)?e:new zr(e,t)}function Vn(e){e.dep&&e.dep.trigger({target:e,type:`set`,key:`value`,newValue:e._value})}function I(e){return Rn(e)?e.value:e}function Hn(e){return M(e)?e():I(e)}function Un(e){return Mn(e)?e:new Proxy(e,Br)}function Wn(e){return new Vr(e)}function Gn(e){Fn(e)||Ut(`toRefs() expects a reactive object but received a plain one.`);let t=j(e)?Array(e.length):{};for(let n in e)t[n]=qn(e,n);return t}function Kn(e,t,n){return Rn(e)?e:M(e)?new Ur(e):Re(e)&&arguments.length>1?qn(e,t,n):F(e)}function qn(e,t,n){return new Hr(e,t,n)}function Jn(e,t,n=!1){let r,i;M(e)?r=e:(r=e.get,i=e.set);let a=new Wr(r,i,n);return t&&!n&&(a.onTrack=t.onTrack,a.onTrigger=t.onTrigger),a}function Yn(){return Yr}function Xn(e,t=!1,n=Yr){if(n){let t=Jr.get(n);t||Jr.set(n,t=[]),t.push(e)}else t||Ut(`onWatcherCleanup() was called when there was no active watcher to associate with.`)}function Zn(e,t,n=Ce){let{immediate:r,deep:i,once:a,scheduler:o,augmentJob:s,call:c}=n,l=e=>{(n.onWarn||Ut)(`Invalid watch source: `,e,`A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`)},u=e=>i?e:Pn(e)||i===!1||i===0?Qn(e,1):Qn(e),d,f,p,m,h=!1,g=!1;if(Rn(e)?(f=()=>e.value,h=Pn(e)):Mn(e)?(f=()=>u(e),h=!0):j(e)?(g=!0,h=e.some(e=>Mn(e)||Pn(e)),f=()=>e.map(e=>{if(Rn(e))return e.value;if(Mn(e))return u(e);if(M(e))return c?c(e,2):e();l(e)})):M(e)?f=t?c?()=>c(e,2):e:()=>{if(p){an();try{p()}finally{on()}}let t=Yr;Yr=d;try{return c?c(e,3,[m]):e(m)}finally{Yr=t}}:(f=Te,l(e)),t&&i){let e=f,t=i===!0?1/0:i;f=()=>Qn(e(),t)}let _=Gt(),v=()=>{d.stop(),_&&_.active&&Ae(_.effects,d)};if(a&&t){let e=t;t=(...t)=>{let n=e(...t);return v(),n}}let y=g?Array(e.length).fill(qr):qr,b=e=>{if(d.flags&1&&(d.dirty||e)){if(t){let n=d.run();if(e||i||h||(g?n.some((e,t)=>et(e,y[t])):et(n,y))){p&&p();let e=Yr;Yr=d;try{let e=[n,y===qr?void 0:g&&y[0]===qr?[]:y,m];y=n,c?c(t,3,e):t(...e)}finally{Yr=e}}}else d.run()}};return s&&s(b),d=new rr(f),d.scheduler=o?()=>o(b,!1):b,m=e=>Xn(e,!1,d),p=d.onStop=()=>{let e=Jr.get(d);if(e){if(c)c(e,4);else for(let t of e)t();Jr.delete(d)}},d.onTrack=n.onTrack,d.onTrigger=n.onTrigger,t?r?b(!0):y=d.run():o?o(b.bind(null,!0),!0):d.run(),v.pause=d.pause.bind(d),v.resume=d.resume.bind(d),v.stop=v,v}function Qn(e,t=1/0,n){if(t<=0||!Re(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Rn(e))Qn(e.value,t,n);else if(j(e))for(let r=0;r<e.length;r++)Qn(e[r],t,n);else if(Pe(e)||Ne(e))e.forEach(e=>{Qn(e,t,n)});else if(Ue(e)){for(let r in e)Qn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Qn(e[r],t,n)}return e}var $n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr=e((()=>{Ht(),er=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&$n&&($n.active?(this.parent=$n,this.index=($n.scopes||($n.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}let n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){let t=$n;try{return $n=this,e()}finally{$n=t}}else this._warnOnRun&&Ut(`cannot run an inactive effect scope.`)}on(){++this._on===1&&(this.prevScope=$n,$n=this)}off(){if(this._on>0&&--this._on===0){if($n===this)$n=this.prevScope;else{let e=$n;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){let e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}},nr=new WeakSet,rr=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,$n&&($n.active?$n.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,nr.has(this)&&(nr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||qt(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,sn(this),Xt(this);let e=tr,t=sr;tr=this,sr=!0;try{return this.fn()}finally{tr!==this&&Ut(`Active effect was not restored correctly - this is likely a Vue internal bug.`),Zt(this),tr=e,sr=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)en(e);this.deps=this.depsTail=void 0,sn(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?nr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Qt(this)&&this.run()}get dirty(){return Qt(this)}},ir=0,sr=!0,cr=[],lr=0,ur=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},dr=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,this.subsHead=void 0}track(e){if(!tr||!sr||tr===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==tr)t=this.activeLink=new ur(tr,this),tr.deps?(t.prevDep=tr.depsTail,tr.depsTail.nextDep=t,tr.depsTail=t):tr.deps=tr.depsTail=t,cn(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=tr.depsTail,t.nextDep=void 0,tr.depsTail.nextDep=t,tr.depsTail=t,tr.deps===t&&(tr.deps=e)}return tr.onTrack&&tr.onTrack(ke({effect:tr},e)),t}trigger(e){this.version++,lr++,this.notify(e)}notify(e){Jt();try{for(let t=this.subsHead;t;t=t.nextSub)t.sub.onTrigger&&!(t.sub.flags&8)&&t.sub.onTrigger(ke({effect:t.sub},e));for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Yt()}}},fr=new WeakMap,pr=Symbol(`Object iterate`),mr=Symbol(`Map keys iterate`),hr=Symbol(`Array iterate`),gr={__proto__:null,[Symbol.iterator](){return hn(this,Symbol.iterator,e=>mn(this,e))},concat(...e){return fn(this).concat(...e.map(e=>j(e)?fn(e):e))},entries(){return hn(this,`entries`,e=>(e[1]=mn(this,e[1]),e))},every(e,t){return gn(this,`every`,e,t,void 0,arguments)},filter(e,t){return gn(this,`filter`,e,t,e=>e.map(e=>mn(this,e)),arguments)},find(e,t){return gn(this,`find`,e,t,e=>mn(this,e),arguments)},findIndex(e,t){return gn(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return gn(this,`findLast`,e,t,e=>mn(this,e),arguments)},findLastIndex(e,t){return gn(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return gn(this,`forEach`,e,t,void 0,arguments)},includes(...e){return vn(this,`includes`,e)},indexOf(...e){return vn(this,`indexOf`,e)},join(e){return fn(this).join(e)},lastIndexOf(...e){return vn(this,`lastIndexOf`,e)},map(e,t){return gn(this,`map`,e,t,void 0,arguments)},pop(){return yn(this,`pop`)},push(...e){return yn(this,`push`,e)},reduce(e,...t){return _n(this,`reduce`,e,t)},reduceRight(e,...t){return _n(this,`reduceRight`,e,t)},shift(){return yn(this,`shift`)},some(e,t){return gn(this,`some`,e,t,void 0,arguments)},splice(...e){return yn(this,`splice`,e)},toReversed(){return fn(this).toReversed()},toSorted(e){return fn(this).toSorted(e)},toSpliced(...e){return fn(this).toSpliced(...e)},unshift(...e){return yn(this,`unshift`,e)},values(){return hn(this,`values`,e=>mn(this,e))}},_r=Array.prototype,vr=ae(`__proto__,__v_isRef,__isVue`),yr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(Le)),br=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Ir:Fr:i?Pr:Nr).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=j(e);if(!r){let e;if(a&&(e=gr[t]))return e;if(t===`hasOwnProperty`)return bn}let o=Reflect.get(e,t,Rn(e)?e:n);if((Le(t)?yr.has(t):vr(t))||(r||ln(e,`get`,t),i))return o;if(Rn(o)){let e=a&&We(t)?o:o.value;return r&&Re(e)?kn(e):e}return Re(o)?r?kn(o):Dn(o):o}},xr=class extends br{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=j(e)&&We(t);if(!this._isShallow){let r=Nn(i);if(!Pn(n)&&!Nn(n)&&(i=In(i),n=In(n)),!a&&Rn(i)&&!Rn(n))return r?(Ut(`Set operation on key "${String(t)}" failed: target is readonly.`,e[t]),!0):(i.value=n,!0)}let o=a?Number(t)<e.length:Me(e,t),s=Reflect.set(e,t,n,Rn(e)?e:r);return e===In(r)&&s&&(o?et(n,i)&&un(e,`set`,t,n,i):un(e,`add`,t,n)),s}deleteProperty(e,t){let n=Me(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&un(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!Le(t)||!yr.has(t))&&ln(e,`has`,t),n}ownKeys(e){return ln(e,`iterate`,j(e)?`length`:pr),Reflect.ownKeys(e)}},Sr=class extends br{constructor(e=!1){super(!0,e)}set(e,t){return Ut(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0}deleteProperty(e,t){return Ut(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},Cr=new xr,wr=new Sr,Tr=new xr(!0),Er=new Sr(!0),Dr=e=>e,Or=e=>Reflect.getPrototypeOf(e),kr={get:wn(!1,!1)},Ar={get:wn(!1,!0)},jr={get:wn(!0,!1)},Mr={get:wn(!0,!0)},Nr=new WeakMap,Pr=new WeakMap,Fr=new WeakMap,Ir=new WeakMap,Lr=e=>Re(e)?Dn(e):e,Rr=e=>Re(e)?kn(e):e,zr=class{constructor(e,t){this.dep=new dr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:In(e),this._value=t?e:Lr(e),this.__v_isShallow=t}get value(){return this.dep.track({target:this,type:`get`,key:`value`}),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||Pn(e)||Nn(e);e=n?e:In(e),et(e,t)&&(this._rawValue=e,this._value=n?e:Lr(e),this.dep.trigger({target:this,type:`set`,key:`value`,newValue:e,oldValue:t}))}},Br={get:(e,t,n)=>t===`__v_raw`?e:I(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return Rn(i)&&!Rn(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}},Vr=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new dr,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}},Hr=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=Le(t)?t:String(t),this._raw=In(e);let r=!0,i=e;if(!j(e)||Le(this._key)||!We(this._key))do r=!Fn(i)||Pn(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=I(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&Rn(this._raw[this._key])){let t=this._object[this._key];if(Rn(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return dn(this._raw,this._key)}},Ur=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}},Wr=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new dr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=lr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&tr!==this)return qt(this,!0),!0}get value(){let e=this.dep.track({target:this,type:`get`,key:`value`});return $t(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter?this.setter(e):Ut(`Write operation failed: computed value is readonly`)}},Gr={GET:`get`,HAS:`has`,ITERATE:`iterate`},Kr={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},qr={},Jr=new WeakMap,Yr=void 0}));function Zr(e){oc.push(e)}function Qr(){oc.pop()}function L(e,...t){if(sc)return;sc=!0,an();let n=oc.length?oc[oc.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=$r();if(r)ai(r,n,11,[e+t.map(e=>e.toString?.call(e)??JSON.stringify(e)).join(``),n&&n.proxy,i.map(({vnode:e})=>`at <${ec(n,e.type)}>`).join(`
|
|
3
3
|
`),i]);else{let n=[`[Vue warn]: ${e}`,...t];i.length&&n.push(`
|
|
4
4
|
`,...ei(i)),console.warn(...n)}on(),sc=!1}function $r(){let e=oc[oc.length-1];if(!e)return[];let t=[];for(;e;){let n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});let r=e.component&&e.component.parent;e=r&&r.vnode}return t}function ei(e){let t=[];return e.forEach((e,n)=>{t.push(...n===0?[]:[`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{An as e,Bn as t,Cn as n,Gn as r,In as i,Kr as a,Mn as o,On as s,Sn as c,Sr as l,Tn as u,Un as d,Wr as f,Xn as p,Xr as m,Yn as h,Zn as g,_n as _,ar as v,gn as y,gr as b,hn as x,in as S,ir as C,jr as w,kn as T,lr as E,mn as D,mr as O,nr as k,on as A,pn as j,qn as M,wn as N,xn as P}from"./element-plus-Bz6lYur-.js";i(),E(),A(),w();var F=Object.defineProperty,ee=(e,t,n)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I=(e,t,n)=>ee(e,typeof t==`symbol`?t:t+``,n),te=[`width`,`height`,`stroke-width`],ne={key:4,points:`6 9 12 15 18 9`},re={key:5,points:`9 6 15 12 9 18`},L=o({__name:`Icon`,props:{name:{},size:{},stroke:{}},setup(e){return(t,n)=>(M(),u(`svg`,{width:e.size??16,height:e.size??16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":e.stroke??1.8,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[e.name===`add`?(M(),u(_,{key:0},[n[0]||=c(`circle`,{cx:`12`,cy:`12`,r:`9`},null,-1),n[1]||=c(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`16`},null,-1),n[2]||=c(`line`,{x1:`8`,y1:`12`,x2:`16`,y2:`12`},null,-1)],64)):e.name===`minus`?(M(),u(_,{key:1},[n[3]||=c(`circle`,{cx:`12`,cy:`12`,r:`9`},null,-1),n[4]||=c(`line`,{x1:`8`,y1:`12`,x2:`16`,y2:`12`},null,-1)],64)):e.name===`delete`?(M(),u(_,{key:2},[n[5]||=s(`<polyline points="4 7 20 7"></polyline><path d="M9 7 V5 a1 1 0 0 1 1 -1 h4 a1 1 0 0 1 1 1 V7"></path><path d="M6 7 l1 12 a1 1 0 0 0 1 1 h8 a1 1 0 0 0 1 -1 l1 -12"></path><line x1="10" y1="11" x2="10" y2="18"></line><line x1="14" y1="11" x2="14" y2="18"></line>`,5)],64)):e.name===`edit`?(M(),u(_,{key:3},[n[6]||=c(`path`,{d:`M4 20 l4 -1 11 -11 -3 -3 -11 11 z`},null,-1),n[7]||=c(`line`,{x1:`14`,y1:`6`,x2:`18`,y2:`10`},null,-1)],64)):e.name===`collapse`?(M(),u(`polyline`,ne)):e.name===`expand`?(M(),u(`polyline`,re)):e.name===`collapse-all`?(M(),u(_,{key:6},[n[8]||=s(`<line x1="4" y1="4" x2="10" y2="10"></line><polyline points="6 10 10 10 10 6"></polyline><line x1="20" y1="4" x2="14" y2="10"></line><polyline points="14 6 14 10 18 10"></polyline><line x1="20" y1="20" x2="14" y2="14"></line><polyline points="14 18 14 14 18 14"></polyline><line x1="4" y1="20" x2="10" y2="14"></line><polyline points="6 14 10 14 10 18"></polyline>`,8)],64)):e.name===`expand-all`?(M(),u(_,{key:7},[n[9]||=s(`<line x1="10" y1="10" x2="4" y2="4"></line><polyline points="4 6 4 4 6 4"></polyline><line x1="14" y1="10" x2="20" y2="4"></line><polyline points="20 6 20 4 18 4"></polyline><line x1="14" y1="14" x2="20" y2="20"></line><polyline points="20 18 20 20 18 20"></polyline><line x1="10" y1="14" x2="4" y2="20"></line><polyline points="4 18 4 20 6 20"></polyline>`,8)],64)):e.name===`expand-level-1`?(M(),u(_,{key:8},[n[10]||=s(`<circle cx="12" cy="5" r="1.8" fill="currentColor" stroke="none"></circle><line x1="12" y1="7" x2="12" y2="11"></line><line x1="12" y1="11" x2="5" y2="17"></line><line x1="12" y1="11" x2="12" y2="17"></line><line x1="12" y1="11" x2="19" y2="17"></line><circle cx="5" cy="19" r="1.8" fill="currentColor" stroke="none"></circle><circle cx="12" cy="19" r="1.8" fill="currentColor" stroke="none"></circle><circle cx="19" cy="19" r="1.8" fill="currentColor" stroke="none"></circle>`,8)],64)):e.name===`expand-level-2`?(M(),u(_,{key:9},[n[11]||=s(`<circle cx="12" cy="3" r="1.4" fill="currentColor" stroke="none"></circle><line x1="12" y1="4.5" x2="12" y2="7"></line><line x1="12" y1="7" x2="5" y2="11"></line><line x1="12" y1="7" x2="12" y2="11"></line><line x1="12" y1="7" x2="19" y2="11"></line><line x1="5" y1="11" x2="3" y2="16"></line><line x1="5" y1="11" x2="7" y2="16"></line><line x1="12" y1="11" x2="10" y2="16"></line><line x1="12" y1="11" x2="14" y2="16"></line><line x1="19" y1="11" x2="17" y2="16"></line><line x1="19" y1="11" x2="21" y2="16"></line><circle cx="5" cy="11" r="1.4" fill="currentColor" stroke="none"></circle><circle cx="12" cy="11" r="1.4" fill="currentColor" stroke="none"></circle><circle cx="19" cy="11" r="1.4" fill="currentColor" stroke="none"></circle><circle cx="3" cy="18" r="1.4" fill="currentColor" stroke="none"></circle><circle cx="7" cy="18" r="1.4" fill="currentColor" stroke="none"></circle><circle cx="10" cy="18" r="1.4" fill="currentColor" stroke="none"></circle><circle cx="14" cy="18" r="1.4" fill="currentColor" stroke="none"></circle><circle cx="17" cy="18" r="1.4" fill="currentColor" stroke="none"></circle><circle cx="21" cy="18" r="1.4" fill="currentColor" stroke="none"></circle>`,20)],64)):e.name===`zoom-in`?(M(),u(_,{key:10},[n[12]||=c(`circle`,{cx:`11`,cy:`11`,r:`7`},null,-1),n[13]||=c(`line`,{x1:`11`,y1:`8`,x2:`11`,y2:`14`},null,-1),n[14]||=c(`line`,{x1:`8`,y1:`11`,x2:`14`,y2:`11`},null,-1),n[15]||=c(`line`,{x1:`16`,y1:`16`,x2:`21`,y2:`21`},null,-1)],64)):e.name===`zoom-out`?(M(),u(_,{key:11},[n[16]||=c(`circle`,{cx:`11`,cy:`11`,r:`7`},null,-1),n[17]||=c(`line`,{x1:`8`,y1:`11`,x2:`14`,y2:`11`},null,-1),n[18]||=c(`line`,{x1:`16`,y1:`16`,x2:`21`,y2:`21`},null,-1)],64)):e.name===`reset`?(M(),u(_,{key:12},[n[19]||=c(`polyline`,{points:`4 9 4 4 9 4`},null,-1),n[20]||=c(`polyline`,{points:`15 4 20 4 20 9`},null,-1),n[21]||=c(`polyline`,{points:`20 15 20 20 15 20`},null,-1),n[22]||=c(`polyline`,{points:`9 20 4 20 4 15`},null,-1)],64)):e.name===`database`?(M(),u(_,{key:13},[n[23]||=c(`ellipse`,{cx:`12`,cy:`6`,rx:`7`,ry:`2.5`},null,-1),n[24]||=c(`path`,{d:`M5 6 V18 C5 19.4 8 20.5 12 20.5 C16 20.5 19 19.4 19 18 V6`},null,-1),n[25]||=c(`path`,{d:`M5 12 C5 13.4 8 14.5 12 14.5 C16 14.5 19 13.4 19 12`},null,-1)],64)):e.name===`settings`?(M(),u(_,{key:14},[n[26]||=c(`path`,{d:`M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z`},null,-1),n[27]||=c(`circle`,{cx:`12`,cy:`12`,r:`3`},null,-1)],64)):e.name===`markdown`?(M(),u(_,{key:15},[n[28]||=c(`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`},null,-1),n[29]||=c(`path`,{d:`M6 15 V9 L9 12 L12 9 V15`},null,-1),n[30]||=c(`path`,{d:`M15 15 V9 L18 12 V9 M15 12 L18 15`},null,-1)],64)):e.name===`txt`?(M(),u(_,{key:16},[n[31]||=c(`rect`,{x:`5`,y:`3`,width:`14`,height:`18`,rx:`1.5`},null,-1),n[32]||=c(`line`,{x1:`8`,y1:`8`,x2:`16`,y2:`8`},null,-1),n[33]||=c(`line`,{x1:`8`,y1:`12`,x2:`16`,y2:`12`},null,-1),n[34]||=c(`line`,{x1:`8`,y1:`16`,x2:`13`,y2:`16`},null,-1)],64)):e.name===`eye`?(M(),u(_,{key:17},[n[35]||=c(`path`,{d:`M2 12 C4 6 8 3 12 3 C16 3 20 6 22 12 C20 18 16 21 12 21 C8 21 4 18 2 12 Z`},null,-1),n[36]||=c(`circle`,{cx:`12`,cy:`12`,r:`3.2`},null,-1)],64)):e.name===`eye-off`?(M(),u(_,{key:18},[n[37]||=c(`path`,{d:`M3 3 L21 21`},null,-1),n[38]||=c(`path`,{d:`M10.5 6.2 C11 6.1 11.5 6 12 6 C16 6 19.5 8.5 21 12 C20.4 13.2 19.6 14.3 18.7 15.2`},null,-1),n[39]||=c(`path`,{d:`M6.6 6.6 C4 8.2 2.7 10.2 2 12 C3 14.5 5.2 16.8 8 18.3 C9.2 19 10.6 19.4 12 19.4 C13.5 19.4 14.9 19 16.2 18.3`},null,-1),n[40]||=c(`path`,{d:`M9.5 9.5 C9.1 10.2 9 11.1 9 12 C9 13.7 9.8 15.2 11 16.1`},null,-1)],64)):e.name===`outline`?(M(),u(_,{key:19},[n[41]||=c(`rect`,{x:`4`,y:`3`,width:`16`,height:`18`,rx:`2`},null,-1),n[42]||=c(`line`,{x1:`8`,y1:`8`,x2:`16`,y2:`8`},null,-1),n[43]||=c(`line`,{x1:`8`,y1:`12`,x2:`16`,y2:`12`},null,-1),n[44]||=c(`line`,{x1:`8`,y1:`16`,x2:`13`,y2:`16`},null,-1)],64)):e.name===`logo`?(M(),u(_,{key:20},[n[45]||=s(`<circle cx="12" cy="12" r="2.2"></circle><circle cx="4" cy="5" r="1.6"></circle><circle cx="20" cy="5" r="1.6"></circle><circle cx="4" cy="19" r="1.6"></circle><circle cx="20" cy="19" r="1.6"></circle><line x1="10.5" y1="10.8" x2="5.2" y2="6.4"></line><line x1="13.5" y1="10.8" x2="18.8" y2="6.4"></line><line x1="10.5" y1="13.2" x2="5.2" y2="17.6"></line><line x1="13.5" y1="13.2" x2="18.8" y2="17.6"></line>`,9)],64)):e.name===`import`?(M(),u(_,{key:21},[n[46]||=c(`path`,{d:`M12 4 V15`},null,-1),n[47]||=c(`polyline`,{points:`7 10 12 15 17 10`},null,-1),n[48]||=c(`path`,{d:`M4 19 H20`},null,-1)],64)):e.name===`export`?(M(),u(_,{key:22},[n[49]||=c(`path`,{d:`M12 15 V4`},null,-1),n[50]||=c(`polyline`,{points:`7 9 12 4 17 9`},null,-1),n[51]||=c(`path`,{d:`M4 19 H20`},null,-1)],64)):e.name===`balance`?(M(),u(_,{key:23},[n[52]||=s(`<line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="18" x2="21" y2="18"></line><polyline points="9 4 5 6 9 8"></polyline><polyline points="15 4 19 6 15 8"></polyline><polyline points="9 10 5 12 9 14"></polyline><polyline points="15 10 19 12 15 14"></polyline><polyline points="9 16 5 18 9 20"></polyline><polyline points="15 16 19 18 15 20"></polyline>`,9)],64)):e.name===`mindmap`?(M(),u(_,{key:24},[n[53]||=s(`<circle cx="12" cy="12" r="2.4" fill="currentColor" stroke="none"></circle><line x1="13.4" y1="10.6" x2="18.5" y2="5.5"></line><line x1="13.4" y1="13.4" x2="18.5" y2="18.5"></line><line x1="10.6" y1="10.6" x2="5.5" y2="5.5"></line><line x1="10.6" y1="13.4" x2="5.5" y2="18.5"></line><circle cx="19.5" cy="4.5" r="1.8" fill="currentColor" stroke="none"></circle><circle cx="19.5" cy="19.5" r="1.8" fill="currentColor" stroke="none"></circle><circle cx="4.5" cy="4.5" r="1.8" fill="currentColor" stroke="none"></circle><circle cx="4.5" cy="19.5" r="1.8" fill="currentColor" stroke="none"></circle>`,9)],64)):e.name===`tree`?(M(),u(_,{key:25},[n[54]||=s(`<circle cx="5" cy="12" r="2" fill="currentColor" stroke="none"></circle><circle cx="19" cy="5" r="2" fill="currentColor" stroke="none"></circle><circle cx="19" cy="12" r="2" fill="currentColor" stroke="none"></circle><circle cx="19" cy="19" r="2" fill="currentColor" stroke="none"></circle><line x1="7" y1="12" x2="12" y2="12"></line><line x1="12" y1="12" x2="12" y2="5"></line><line x1="12" y1="12" x2="12" y2="19"></line><line x1="12" y1="5" x2="17" y2="5"></line><line x1="12" y1="19" x2="17" y2="19"></line>`,9)],64)):e.name===`org`?(M(),u(_,{key:26},[n[55]||=s(`<circle cx="12" cy="5" r="2" fill="currentColor" stroke="none"></circle><circle cx="6" cy="19" r="2" fill="currentColor" stroke="none"></circle><circle cx="12" cy="19" r="2" fill="currentColor" stroke="none"></circle><circle cx="18" cy="19" r="2" fill="currentColor" stroke="none"></circle><line x1="12" y1="7" x2="12" y2="13"></line><line x1="6" y1="13" x2="18" y2="13"></line><line x1="6" y1="13" x2="6" y2="17"></line><line x1="12" y1="13" x2="12" y2="17"></line><line x1="18" y1="13" x2="18" y2="17"></line>`,9)],64)):e.name===`image`?(M(),u(_,{key:27},[n[56]||=c(`rect`,{x:`3`,y:`5`,width:`18`,height:`14`,rx:`2`},null,-1),n[57]||=c(`circle`,{cx:`9`,cy:`11`,r:`1.6`},null,-1),n[58]||=c(`polyline`,{points:`3 17 9 12 13 15 16 13 21 17`},null,-1)],64)):e.name===`x`?(M(),u(_,{key:28},[n[59]||=c(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`},null,-1),n[60]||=c(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`},null,-1)],64)):e.name===`link`?(M(),u(_,{key:29},[n[61]||=c(`path`,{d:`M10 13 a4 4 0 0 0 5.66 0 l3 -3 a4 4 0 1 0 -5.66 -5.66 l-1 1`},null,-1),n[62]||=c(`path`,{d:`M14 11 a4 4 0 0 0 -5.66 0 l-3 3 a4 4 0 1 0 5.66 5.66 l1 -1`},null,-1)],64)):e.name===`note`?(M(),u(_,{key:30},[n[63]||=c(`path`,{d:`M6 4 h9 l3 3 v13 a1 1 0 0 1 -1 1 h-11 a1 1 0 0 1 -1 -1 v-15 a1 1 0 0 1 1 -1 z`},null,-1),n[64]||=c(`line`,{x1:`8`,y1:`10`,x2:`16`,y2:`10`},null,-1),n[65]||=c(`line`,{x1:`8`,y1:`13`,x2:`16`,y2:`13`},null,-1),n[66]||=c(`line`,{x1:`8`,y1:`16`,x2:`13`,y2:`16`},null,-1)],64)):e.name===`search`?(M(),u(_,{key:31},[n[67]||=c(`circle`,{cx:`11`,cy:`11`,r:`7`},null,-1),n[68]||=c(`line`,{x1:`16`,y1:`16`,x2:`21`,y2:`21`},null,-1)],64)):e.name===`json`?(M(),u(_,{key:32},[n[69]||=c(`path`,{d:`M8 4 C6 4 6 6 6 7 C6 8 5 8 5 9 C5 10 6 10 6 11 C6 12 6 14 8 14`},null,-1),n[70]||=c(`path`,{d:`M16 4 C18 4 18 6 18 7 C18 8 19 8 19 9 C19 10 18 10 18 11 C18 12 18 14 16 14`},null,-1)],64)):e.name===`svg-export`?(M(),u(_,{key:33},[n[71]||=c(`path`,{d:`M6 3 h8 l4 4 v14 a1 1 0 0 1 -1 1 h-11 a1 1 0 0 1 -1 -1 v-15 a1 1 0 0 1 1 -1 z`},null,-1),n[72]||=c(`polyline`,{points:`14 3 14 7 18 7`},null,-1),n[73]||=c(`polyline`,{points:`8 14 6 16 8 18`},null,-1),n[74]||=c(`polyline`,{points:`14 14 16 16 14 18`},null,-1)],64)):e.name===`relation`?(M(),u(_,{key:34},[n[75]||=c(`circle`,{cx:`5`,cy:`19`,r:`2.5`},null,-1),n[76]||=c(`circle`,{cx:`19`,cy:`5`,r:`2.5`},null,-1),n[77]||=c(`path`,{d:`M7 17 C 10 12, 14 12, 17 7`,"stroke-dasharray":`3 2.2`},null,-1)],64)):e.name===`fullscreen`?(M(),u(_,{key:35},[n[78]||=c(`polyline`,{points:`4 9 4 4 9 4`},null,-1),n[79]||=c(`polyline`,{points:`15 4 20 4 20 9`},null,-1),n[80]||=c(`polyline`,{points:`20 15 20 20 15 20`},null,-1),n[81]||=c(`polyline`,{points:`9 20 4 20 4 15`},null,-1)],64)):e.name===`fullscreen-exit`?(M(),u(_,{key:36},[n[82]||=c(`polyline`,{points:`9 4 9 9 4 9`},null,-1),n[83]||=c(`polyline`,{points:`20 9 15 9 15 4`},null,-1),n[84]||=c(`polyline`,{points:`15 20 15 15 20 15`},null,-1),n[85]||=c(`polyline`,{points:`4 15 9 15 9 20`},null,-1)],64)):N(``,!0)],8,te))}}),ie=`data:image/svg+xml,%3csvg%20t='1780822312364'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7459'%20width='200'%20height='200'%3e%3cpath%20d='M329.16%20292.571h658.286V512H329.16zM329.16%200h658.286v219.429H329.16z'%20fill='%239AA1A2'%20p-id='7460'%3e%3c/path%3e%3cpath%20d='M44.927%20146.286a46.519%2046.519%200%200%201%2038.107-73.143h319.269v73.143H109.73V791.99l-48.713%205.705-24.43-651.41h8.339z'%20fill='%239AA1A2'%20p-id='7461'%3e%3c/path%3e%3cpath%20d='M363.83%20877.714H179.51c-78.775%200-142.921-66.12-142.921-147.31V112.787c0-21.943%2017.188-39.643%2038.473-39.643%2021.211%200%2033.5%2017.774%2033.5%2039.643v617.619c0%2037.522%2028.013%2076.58%2064.438%2076.58h190.903c21.211%200%2038.766%2013.97%2038.766%2035.84%200%2021.943-17.555%2034.89-38.766%2034.89z'%20fill='%239AA1A2'%20p-id='7462'%3e%3c/path%3e%3cpath%20d='M432.95%20438.857H179.51c-78.775%200-81.043-18.578-81.043-62.903l10.094-90.624c0%2020.48%2013.458%2080.677%2049.884%2080.677h210.139c21.211%200%20120.613%204.023%20120.613%2016.018%200%2011.922-35.036%2056.832-56.32%2056.832zM640.017%20749.714V640a54.857%2054.857%200%200%201%20109.714%200v109.714h109.715a54.857%2054.857%200%200%201%200%20109.715H749.73v109.714a54.857%2054.857%200%200%201-109.714%200V859.429H530.303a54.857%2054.857%200%200%201%200-109.715h109.714z'%20fill='%239AA1A2'%20p-id='7463'%3e%3c/path%3e%3c/svg%3e`,R=`data:image/svg+xml,%3csvg%20t='1780822464335'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8457'%20width='200'%20height='200'%3e%3cpath%20d='M512%20804.571h512V1024H512V804.571zM0%200h658.286v219.429H0V0z'%20fill='%239AA1A2'%20p-id='8458'%3e%3c/path%3e%3cpath%20d='M619.813%20950.857h-184.32c-78.775%200-142.922-66.121-142.922-147.31V185.93c0-21.943%2017.189-39.643%2038.474-39.643%2021.211%200%2033.353%2017.773%2033.353%2039.643v617.618c0%2037.523%2034.743%2073.728%2071.095%2073.728h184.32c21.211%200%2038.473%2012.069%2038.473%2033.939%200%2021.943-17.189%2039.643-38.473%2039.643z'%20fill='%239AA1A2'%20p-id='8459'%3e%3c/path%3e%3cpath%20d='M676.571%20457.143V347.429a54.857%2054.857%200%200%201%20109.715%200v109.714H896a54.857%2054.857%200%200%201%200%20109.714H786.286v109.714a54.857%2054.857%200%200%201-109.715%200V566.857H566.857a54.857%2054.857%200%200%201%200-109.714h109.714z'%20fill='%239AA1A2'%20p-id='8460'%3e%3c/path%3e%3c/svg%3e`,z=[22,15,13,12],B=[700,600,500,400],ae=[46,36,30,26],oe=[120,80,60,44],V=[.8,.8,.8,.8],se=z.length-1;function ce(e,t){return Math.round(ue(e,t)*V[le(e)])}function le(e){return Math.min(se,Math.max(0,e))}function ue(e,t=14){return Math.round(z[le(e)]*t/14*10)/10}function de(e,t=14){return Math.round(ae[le(e)]*t/14)}var fe=60,pe=30,me=.75,he=14,ge=24;function _e(e){return Math.max(pe,Math.round(fe*me**+e))}var ve=null;function ye(){if(ve)return ve;let e=typeof document<`u`?document.createElement(`canvas`).getContext(`2d`):null;return e?(ve=e,e):{font:``,measureText:()=>({width:0})}}var be=new Map;function xe(e,t,n){let r=`${n}|${t}|${e}`,i=be.get(r);if(i!==void 0)return i;let a=ye();a.font=`${n} ${t}px "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif`;let o=e.split(`
|
|
1
|
+
import{An as e,Bn as t,Cn as n,Gn as r,In as i,Kr as a,Mn as o,On as s,Sn as c,Sr as l,Tn as u,Un as d,Wr as f,Xn as p,Xr as m,Yn as h,Zn as g,_n as _,ar as v,gn as y,gr as b,hn as x,in as S,ir as C,jr as w,kn as T,lr as E,mn as D,mr as O,nr as k,on as A,pn as j,qn as M,wn as N,xn as P}from"./element-plus-BeZBQw4X.js";i(),E(),A(),w();var F=Object.defineProperty,ee=(e,t,n)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I=(e,t,n)=>ee(e,typeof t==`symbol`?t:t+``,n),te=[`width`,`height`,`stroke-width`],ne={key:4,points:`6 9 12 15 18 9`},re={key:5,points:`9 6 15 12 9 18`},L=o({__name:`Icon`,props:{name:{},size:{},stroke:{}},setup(e){return(t,n)=>(M(),u(`svg`,{width:e.size??16,height:e.size??16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":e.stroke??1.8,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[e.name===`add`?(M(),u(_,{key:0},[n[0]||=c(`circle`,{cx:`12`,cy:`12`,r:`9`},null,-1),n[1]||=c(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`16`},null,-1),n[2]||=c(`line`,{x1:`8`,y1:`12`,x2:`16`,y2:`12`},null,-1)],64)):e.name===`minus`?(M(),u(_,{key:1},[n[3]||=c(`circle`,{cx:`12`,cy:`12`,r:`9`},null,-1),n[4]||=c(`line`,{x1:`8`,y1:`12`,x2:`16`,y2:`12`},null,-1)],64)):e.name===`delete`?(M(),u(_,{key:2},[n[5]||=s(`<polyline points="4 7 20 7"></polyline><path d="M9 7 V5 a1 1 0 0 1 1 -1 h4 a1 1 0 0 1 1 1 V7"></path><path d="M6 7 l1 12 a1 1 0 0 0 1 1 h8 a1 1 0 0 0 1 -1 l1 -12"></path><line x1="10" y1="11" x2="10" y2="18"></line><line x1="14" y1="11" x2="14" y2="18"></line>`,5)],64)):e.name===`edit`?(M(),u(_,{key:3},[n[6]||=c(`path`,{d:`M4 20 l4 -1 11 -11 -3 -3 -11 11 z`},null,-1),n[7]||=c(`line`,{x1:`14`,y1:`6`,x2:`18`,y2:`10`},null,-1)],64)):e.name===`collapse`?(M(),u(`polyline`,ne)):e.name===`expand`?(M(),u(`polyline`,re)):e.name===`collapse-all`?(M(),u(_,{key:6},[n[8]||=s(`<line x1="4" y1="4" x2="10" y2="10"></line><polyline points="6 10 10 10 10 6"></polyline><line x1="20" y1="4" x2="14" y2="10"></line><polyline points="14 6 14 10 18 10"></polyline><line x1="20" y1="20" x2="14" y2="14"></line><polyline points="14 18 14 14 18 14"></polyline><line x1="4" y1="20" x2="10" y2="14"></line><polyline points="6 14 10 14 10 18"></polyline>`,8)],64)):e.name===`expand-all`?(M(),u(_,{key:7},[n[9]||=s(`<line x1="10" y1="10" x2="4" y2="4"></line><polyline points="4 6 4 4 6 4"></polyline><line x1="14" y1="10" x2="20" y2="4"></line><polyline points="20 6 20 4 18 4"></polyline><line x1="14" y1="14" x2="20" y2="20"></line><polyline points="20 18 20 20 18 20"></polyline><line x1="10" y1="14" x2="4" y2="20"></line><polyline points="4 18 4 20 6 20"></polyline>`,8)],64)):e.name===`expand-level-1`?(M(),u(_,{key:8},[n[10]||=s(`<circle cx="12" cy="5" r="1.8" fill="currentColor" stroke="none"></circle><line x1="12" y1="7" x2="12" y2="11"></line><line x1="12" y1="11" x2="5" y2="17"></line><line x1="12" y1="11" x2="12" y2="17"></line><line x1="12" y1="11" x2="19" y2="17"></line><circle cx="5" cy="19" r="1.8" fill="currentColor" stroke="none"></circle><circle cx="12" cy="19" r="1.8" fill="currentColor" stroke="none"></circle><circle cx="19" cy="19" r="1.8" fill="currentColor" stroke="none"></circle>`,8)],64)):e.name===`expand-level-2`?(M(),u(_,{key:9},[n[11]||=s(`<circle cx="12" cy="3" r="1.4" fill="currentColor" stroke="none"></circle><line x1="12" y1="4.5" x2="12" y2="7"></line><line x1="12" y1="7" x2="5" y2="11"></line><line x1="12" y1="7" x2="12" y2="11"></line><line x1="12" y1="7" x2="19" y2="11"></line><line x1="5" y1="11" x2="3" y2="16"></line><line x1="5" y1="11" x2="7" y2="16"></line><line x1="12" y1="11" x2="10" y2="16"></line><line x1="12" y1="11" x2="14" y2="16"></line><line x1="19" y1="11" x2="17" y2="16"></line><line x1="19" y1="11" x2="21" y2="16"></line><circle cx="5" cy="11" r="1.4" fill="currentColor" stroke="none"></circle><circle cx="12" cy="11" r="1.4" fill="currentColor" stroke="none"></circle><circle cx="19" cy="11" r="1.4" fill="currentColor" stroke="none"></circle><circle cx="3" cy="18" r="1.4" fill="currentColor" stroke="none"></circle><circle cx="7" cy="18" r="1.4" fill="currentColor" stroke="none"></circle><circle cx="10" cy="18" r="1.4" fill="currentColor" stroke="none"></circle><circle cx="14" cy="18" r="1.4" fill="currentColor" stroke="none"></circle><circle cx="17" cy="18" r="1.4" fill="currentColor" stroke="none"></circle><circle cx="21" cy="18" r="1.4" fill="currentColor" stroke="none"></circle>`,20)],64)):e.name===`zoom-in`?(M(),u(_,{key:10},[n[12]||=c(`circle`,{cx:`11`,cy:`11`,r:`7`},null,-1),n[13]||=c(`line`,{x1:`11`,y1:`8`,x2:`11`,y2:`14`},null,-1),n[14]||=c(`line`,{x1:`8`,y1:`11`,x2:`14`,y2:`11`},null,-1),n[15]||=c(`line`,{x1:`16`,y1:`16`,x2:`21`,y2:`21`},null,-1)],64)):e.name===`zoom-out`?(M(),u(_,{key:11},[n[16]||=c(`circle`,{cx:`11`,cy:`11`,r:`7`},null,-1),n[17]||=c(`line`,{x1:`8`,y1:`11`,x2:`14`,y2:`11`},null,-1),n[18]||=c(`line`,{x1:`16`,y1:`16`,x2:`21`,y2:`21`},null,-1)],64)):e.name===`reset`?(M(),u(_,{key:12},[n[19]||=c(`polyline`,{points:`4 9 4 4 9 4`},null,-1),n[20]||=c(`polyline`,{points:`15 4 20 4 20 9`},null,-1),n[21]||=c(`polyline`,{points:`20 15 20 20 15 20`},null,-1),n[22]||=c(`polyline`,{points:`9 20 4 20 4 15`},null,-1)],64)):e.name===`database`?(M(),u(_,{key:13},[n[23]||=c(`ellipse`,{cx:`12`,cy:`6`,rx:`7`,ry:`2.5`},null,-1),n[24]||=c(`path`,{d:`M5 6 V18 C5 19.4 8 20.5 12 20.5 C16 20.5 19 19.4 19 18 V6`},null,-1),n[25]||=c(`path`,{d:`M5 12 C5 13.4 8 14.5 12 14.5 C16 14.5 19 13.4 19 12`},null,-1)],64)):e.name===`settings`?(M(),u(_,{key:14},[n[26]||=c(`path`,{d:`M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z`},null,-1),n[27]||=c(`circle`,{cx:`12`,cy:`12`,r:`3`},null,-1)],64)):e.name===`markdown`?(M(),u(_,{key:15},[n[28]||=c(`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`},null,-1),n[29]||=c(`path`,{d:`M6 15 V9 L9 12 L12 9 V15`},null,-1),n[30]||=c(`path`,{d:`M15 15 V9 L18 12 V9 M15 12 L18 15`},null,-1)],64)):e.name===`txt`?(M(),u(_,{key:16},[n[31]||=c(`rect`,{x:`5`,y:`3`,width:`14`,height:`18`,rx:`1.5`},null,-1),n[32]||=c(`line`,{x1:`8`,y1:`8`,x2:`16`,y2:`8`},null,-1),n[33]||=c(`line`,{x1:`8`,y1:`12`,x2:`16`,y2:`12`},null,-1),n[34]||=c(`line`,{x1:`8`,y1:`16`,x2:`13`,y2:`16`},null,-1)],64)):e.name===`eye`?(M(),u(_,{key:17},[n[35]||=c(`path`,{d:`M2 12 C4 6 8 3 12 3 C16 3 20 6 22 12 C20 18 16 21 12 21 C8 21 4 18 2 12 Z`},null,-1),n[36]||=c(`circle`,{cx:`12`,cy:`12`,r:`3.2`},null,-1)],64)):e.name===`eye-off`?(M(),u(_,{key:18},[n[37]||=c(`path`,{d:`M3 3 L21 21`},null,-1),n[38]||=c(`path`,{d:`M10.5 6.2 C11 6.1 11.5 6 12 6 C16 6 19.5 8.5 21 12 C20.4 13.2 19.6 14.3 18.7 15.2`},null,-1),n[39]||=c(`path`,{d:`M6.6 6.6 C4 8.2 2.7 10.2 2 12 C3 14.5 5.2 16.8 8 18.3 C9.2 19 10.6 19.4 12 19.4 C13.5 19.4 14.9 19 16.2 18.3`},null,-1),n[40]||=c(`path`,{d:`M9.5 9.5 C9.1 10.2 9 11.1 9 12 C9 13.7 9.8 15.2 11 16.1`},null,-1)],64)):e.name===`outline`?(M(),u(_,{key:19},[n[41]||=c(`rect`,{x:`4`,y:`3`,width:`16`,height:`18`,rx:`2`},null,-1),n[42]||=c(`line`,{x1:`8`,y1:`8`,x2:`16`,y2:`8`},null,-1),n[43]||=c(`line`,{x1:`8`,y1:`12`,x2:`16`,y2:`12`},null,-1),n[44]||=c(`line`,{x1:`8`,y1:`16`,x2:`13`,y2:`16`},null,-1)],64)):e.name===`logo`?(M(),u(_,{key:20},[n[45]||=s(`<circle cx="12" cy="12" r="2.2"></circle><circle cx="4" cy="5" r="1.6"></circle><circle cx="20" cy="5" r="1.6"></circle><circle cx="4" cy="19" r="1.6"></circle><circle cx="20" cy="19" r="1.6"></circle><line x1="10.5" y1="10.8" x2="5.2" y2="6.4"></line><line x1="13.5" y1="10.8" x2="18.8" y2="6.4"></line><line x1="10.5" y1="13.2" x2="5.2" y2="17.6"></line><line x1="13.5" y1="13.2" x2="18.8" y2="17.6"></line>`,9)],64)):e.name===`import`?(M(),u(_,{key:21},[n[46]||=c(`path`,{d:`M12 4 V15`},null,-1),n[47]||=c(`polyline`,{points:`7 10 12 15 17 10`},null,-1),n[48]||=c(`path`,{d:`M4 19 H20`},null,-1)],64)):e.name===`export`?(M(),u(_,{key:22},[n[49]||=c(`path`,{d:`M12 15 V4`},null,-1),n[50]||=c(`polyline`,{points:`7 9 12 4 17 9`},null,-1),n[51]||=c(`path`,{d:`M4 19 H20`},null,-1)],64)):e.name===`balance`?(M(),u(_,{key:23},[n[52]||=s(`<line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="18" x2="21" y2="18"></line><polyline points="9 4 5 6 9 8"></polyline><polyline points="15 4 19 6 15 8"></polyline><polyline points="9 10 5 12 9 14"></polyline><polyline points="15 10 19 12 15 14"></polyline><polyline points="9 16 5 18 9 20"></polyline><polyline points="15 16 19 18 15 20"></polyline>`,9)],64)):e.name===`mindmap`?(M(),u(_,{key:24},[n[53]||=s(`<circle cx="12" cy="12" r="2.4" fill="currentColor" stroke="none"></circle><line x1="13.4" y1="10.6" x2="18.5" y2="5.5"></line><line x1="13.4" y1="13.4" x2="18.5" y2="18.5"></line><line x1="10.6" y1="10.6" x2="5.5" y2="5.5"></line><line x1="10.6" y1="13.4" x2="5.5" y2="18.5"></line><circle cx="19.5" cy="4.5" r="1.8" fill="currentColor" stroke="none"></circle><circle cx="19.5" cy="19.5" r="1.8" fill="currentColor" stroke="none"></circle><circle cx="4.5" cy="4.5" r="1.8" fill="currentColor" stroke="none"></circle><circle cx="4.5" cy="19.5" r="1.8" fill="currentColor" stroke="none"></circle>`,9)],64)):e.name===`tree`?(M(),u(_,{key:25},[n[54]||=s(`<circle cx="5" cy="12" r="2" fill="currentColor" stroke="none"></circle><circle cx="19" cy="5" r="2" fill="currentColor" stroke="none"></circle><circle cx="19" cy="12" r="2" fill="currentColor" stroke="none"></circle><circle cx="19" cy="19" r="2" fill="currentColor" stroke="none"></circle><line x1="7" y1="12" x2="12" y2="12"></line><line x1="12" y1="12" x2="12" y2="5"></line><line x1="12" y1="12" x2="12" y2="19"></line><line x1="12" y1="5" x2="17" y2="5"></line><line x1="12" y1="19" x2="17" y2="19"></line>`,9)],64)):e.name===`org`?(M(),u(_,{key:26},[n[55]||=s(`<circle cx="12" cy="5" r="2" fill="currentColor" stroke="none"></circle><circle cx="6" cy="19" r="2" fill="currentColor" stroke="none"></circle><circle cx="12" cy="19" r="2" fill="currentColor" stroke="none"></circle><circle cx="18" cy="19" r="2" fill="currentColor" stroke="none"></circle><line x1="12" y1="7" x2="12" y2="13"></line><line x1="6" y1="13" x2="18" y2="13"></line><line x1="6" y1="13" x2="6" y2="17"></line><line x1="12" y1="13" x2="12" y2="17"></line><line x1="18" y1="13" x2="18" y2="17"></line>`,9)],64)):e.name===`image`?(M(),u(_,{key:27},[n[56]||=c(`rect`,{x:`3`,y:`5`,width:`18`,height:`14`,rx:`2`},null,-1),n[57]||=c(`circle`,{cx:`9`,cy:`11`,r:`1.6`},null,-1),n[58]||=c(`polyline`,{points:`3 17 9 12 13 15 16 13 21 17`},null,-1)],64)):e.name===`x`?(M(),u(_,{key:28},[n[59]||=c(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`},null,-1),n[60]||=c(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`},null,-1)],64)):e.name===`link`?(M(),u(_,{key:29},[n[61]||=c(`path`,{d:`M10 13 a4 4 0 0 0 5.66 0 l3 -3 a4 4 0 1 0 -5.66 -5.66 l-1 1`},null,-1),n[62]||=c(`path`,{d:`M14 11 a4 4 0 0 0 -5.66 0 l-3 3 a4 4 0 1 0 5.66 5.66 l1 -1`},null,-1)],64)):e.name===`note`?(M(),u(_,{key:30},[n[63]||=c(`path`,{d:`M6 4 h9 l3 3 v13 a1 1 0 0 1 -1 1 h-11 a1 1 0 0 1 -1 -1 v-15 a1 1 0 0 1 1 -1 z`},null,-1),n[64]||=c(`line`,{x1:`8`,y1:`10`,x2:`16`,y2:`10`},null,-1),n[65]||=c(`line`,{x1:`8`,y1:`13`,x2:`16`,y2:`13`},null,-1),n[66]||=c(`line`,{x1:`8`,y1:`16`,x2:`13`,y2:`16`},null,-1)],64)):e.name===`search`?(M(),u(_,{key:31},[n[67]||=c(`circle`,{cx:`11`,cy:`11`,r:`7`},null,-1),n[68]||=c(`line`,{x1:`16`,y1:`16`,x2:`21`,y2:`21`},null,-1)],64)):e.name===`json`?(M(),u(_,{key:32},[n[69]||=c(`path`,{d:`M8 4 C6 4 6 6 6 7 C6 8 5 8 5 9 C5 10 6 10 6 11 C6 12 6 14 8 14`},null,-1),n[70]||=c(`path`,{d:`M16 4 C18 4 18 6 18 7 C18 8 19 8 19 9 C19 10 18 10 18 11 C18 12 18 14 16 14`},null,-1)],64)):e.name===`svg-export`?(M(),u(_,{key:33},[n[71]||=c(`path`,{d:`M6 3 h8 l4 4 v14 a1 1 0 0 1 -1 1 h-11 a1 1 0 0 1 -1 -1 v-15 a1 1 0 0 1 1 -1 z`},null,-1),n[72]||=c(`polyline`,{points:`14 3 14 7 18 7`},null,-1),n[73]||=c(`polyline`,{points:`8 14 6 16 8 18`},null,-1),n[74]||=c(`polyline`,{points:`14 14 16 16 14 18`},null,-1)],64)):e.name===`relation`?(M(),u(_,{key:34},[n[75]||=c(`circle`,{cx:`5`,cy:`19`,r:`2.5`},null,-1),n[76]||=c(`circle`,{cx:`19`,cy:`5`,r:`2.5`},null,-1),n[77]||=c(`path`,{d:`M7 17 C 10 12, 14 12, 17 7`,"stroke-dasharray":`3 2.2`},null,-1)],64)):e.name===`fullscreen`?(M(),u(_,{key:35},[n[78]||=c(`polyline`,{points:`4 9 4 4 9 4`},null,-1),n[79]||=c(`polyline`,{points:`15 4 20 4 20 9`},null,-1),n[80]||=c(`polyline`,{points:`20 15 20 20 15 20`},null,-1),n[81]||=c(`polyline`,{points:`9 20 4 20 4 15`},null,-1)],64)):e.name===`fullscreen-exit`?(M(),u(_,{key:36},[n[82]||=c(`polyline`,{points:`9 4 9 9 4 9`},null,-1),n[83]||=c(`polyline`,{points:`20 9 15 9 15 4`},null,-1),n[84]||=c(`polyline`,{points:`15 20 15 15 20 15`},null,-1),n[85]||=c(`polyline`,{points:`4 15 9 15 9 20`},null,-1)],64)):N(``,!0)],8,te))}}),ie=`data:image/svg+xml,%3csvg%20t='1780822312364'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7459'%20width='200'%20height='200'%3e%3cpath%20d='M329.16%20292.571h658.286V512H329.16zM329.16%200h658.286v219.429H329.16z'%20fill='%239AA1A2'%20p-id='7460'%3e%3c/path%3e%3cpath%20d='M44.927%20146.286a46.519%2046.519%200%200%201%2038.107-73.143h319.269v73.143H109.73V791.99l-48.713%205.705-24.43-651.41h8.339z'%20fill='%239AA1A2'%20p-id='7461'%3e%3c/path%3e%3cpath%20d='M363.83%20877.714H179.51c-78.775%200-142.921-66.12-142.921-147.31V112.787c0-21.943%2017.188-39.643%2038.473-39.643%2021.211%200%2033.5%2017.774%2033.5%2039.643v617.619c0%2037.522%2028.013%2076.58%2064.438%2076.58h190.903c21.211%200%2038.766%2013.97%2038.766%2035.84%200%2021.943-17.555%2034.89-38.766%2034.89z'%20fill='%239AA1A2'%20p-id='7462'%3e%3c/path%3e%3cpath%20d='M432.95%20438.857H179.51c-78.775%200-81.043-18.578-81.043-62.903l10.094-90.624c0%2020.48%2013.458%2080.677%2049.884%2080.677h210.139c21.211%200%20120.613%204.023%20120.613%2016.018%200%2011.922-35.036%2056.832-56.32%2056.832zM640.017%20749.714V640a54.857%2054.857%200%200%201%20109.714%200v109.714h109.715a54.857%2054.857%200%200%201%200%20109.715H749.73v109.714a54.857%2054.857%200%200%201-109.714%200V859.429H530.303a54.857%2054.857%200%200%201%200-109.715h109.714z'%20fill='%239AA1A2'%20p-id='7463'%3e%3c/path%3e%3c/svg%3e`,R=`data:image/svg+xml,%3csvg%20t='1780822464335'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8457'%20width='200'%20height='200'%3e%3cpath%20d='M512%20804.571h512V1024H512V804.571zM0%200h658.286v219.429H0V0z'%20fill='%239AA1A2'%20p-id='8458'%3e%3c/path%3e%3cpath%20d='M619.813%20950.857h-184.32c-78.775%200-142.922-66.121-142.922-147.31V185.93c0-21.943%2017.189-39.643%2038.474-39.643%2021.211%200%2033.353%2017.773%2033.353%2039.643v617.618c0%2037.523%2034.743%2073.728%2071.095%2073.728h184.32c21.211%200%2038.473%2012.069%2038.473%2033.939%200%2021.943-17.189%2039.643-38.473%2039.643z'%20fill='%239AA1A2'%20p-id='8459'%3e%3c/path%3e%3cpath%20d='M676.571%20457.143V347.429a54.857%2054.857%200%200%201%20109.715%200v109.714H896a54.857%2054.857%200%200%201%200%20109.714H786.286v109.714a54.857%2054.857%200%200%201-109.715%200V566.857H566.857a54.857%2054.857%200%200%201%200-109.714h109.714z'%20fill='%239AA1A2'%20p-id='8460'%3e%3c/path%3e%3c/svg%3e`,z=[22,15,13,12],B=[700,600,500,400],ae=[46,36,30,26],oe=[120,80,60,44],V=[.8,.8,.8,.8],se=z.length-1;function ce(e,t){return Math.round(ue(e,t)*V[le(e)])}function le(e){return Math.min(se,Math.max(0,e))}function ue(e,t=14){return Math.round(z[le(e)]*t/14*10)/10}function de(e,t=14){return Math.round(ae[le(e)]*t/14)}var fe=60,pe=30,me=.75,he=14,ge=24;function _e(e){return Math.max(pe,Math.round(fe*me**+e))}var ve=null;function ye(){if(ve)return ve;let e=typeof document<`u`?document.createElement(`canvas`).getContext(`2d`):null;return e?(ve=e,e):{font:``,measureText:()=>({width:0})}}var be=new Map;function xe(e,t,n){let r=`${n}|${t}|${e}`,i=be.get(r);if(i!==void 0)return i;let a=ye();a.font=`${n} ${t}px "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif`;let o=e.split(`
|
|
2
2
|
`),s=0;for(let e of o){let t=a.measureText(e).width;t>s&&(s=t)}return be.set(r,s),s}var Se=24,Ce=400,we=8,Te=16,Ee=4,H=200;function De(e,t,n){return Math.min(n,Math.max(t,e))}function Oe(e,t,n,r,i){let a=le(t),o=ue(t,n),s=Math.min(xe(e.text||``,o,B[a]),H),c=ce(t,n),l=Math.ceil(s+c*2+2),u=(e.text||``).split(`
|
|
3
3
|
`),d=0;for(let e of u){let t=xe(e,o,B[a]);d+=Math.max(1,Math.ceil(t/H))}d=Math.max(1,d);let f=!e.richContent||e.richContent.kind!==`code`&&e.richContent.kind!==`table`?de(t,n)+Math.ceil(o*1.2*(d-1)):Math.ceil(o*1.2)+6+Math.ceil(o*1.2*(d-1)),p=0;if(e.link&&(p+=Te),e.note&&(p+=Te),p>0){let t=+!!e.link+ +!!e.note;p+=Ee*t}let m=0;e.markers&&e.markers.length>0&&(m=e.markers.length*14+(e.markers.length-1)*2+Ee);let h=e.tags&&e.tags.length>0?18:0,g=l+p+m,_=(()=>{let t=Math.round(oe[a]*n/14);if(e.richContent&&(e.richContent.kind===`code`||e.richContent.kind===`table`)){let n=i?.[e.id];return Math.max(t,n??240)}return t})(),v=!(!e.richContent||e.richContent.kind!==`code`&&e.richContent.kind!==`table`),y=r?.[e.id],b=v?Math.max(24,y??Math.max(70,Math.ceil(o*5))):0,x=b>0?10:0;if(!e.image)return{w:Math.max(_,g),h:Math.ceil(f+x+b+(h>0?4+h:0))};let S=De(e.image.width,Se,Ce);return{w:Math.max(_,g,Math.ceil(S+c*2)),h:Math.ceil(e.image.height+we+f+x+b+(h>0?4+h:0))}}function ke(e,t={}){let n=t.mode??`mindmap`,r=t.preservePositions===!0,i=t.baseFontSize??14,a=t.branchGap??0,o=Ne(e,0,null,1,`right`,i,t.richHeights,t.richWidths);return Pe(o,a),Ae(o,n,r,a),o.x=0,o.y=0,Fe(o,r)}function Ae(e,t,n=!1,r=0){if(t===`mindmap`){let t=e.children;if(t.length!==0){if(t.length===1)t[0]._dir=`right`,t[0].side=1,t[0]._dirRight=1;else{let e=t.reduce((e,t)=>e+t._subtreeH,0),n=1,r=Math.abs(t[0]._subtreeH-(e-t[0]._subtreeH)),i=0;for(let a=0;a<t.length-1;a++){i+=t[a]._subtreeH;let o=Math.abs(i-(e-i));o<r&&(r=o,n=a+1)}for(let e=0;e<n;e++)t[e]._dir=`right`,t[e].side=1,t[e]._dirRight=1;for(let e=n;e<t.length;e++)t[e]._dir=`left`,t[e].side=-1,t[e]._dirRight=-1}}let i=e.children.filter(e=>e.side===1),a=e.children.filter(e=>e.side===-1),o=(e,t)=>{let n=t===`right`?1:-1;e._dir=t,e.side=n,e._dirRight=n;for(let n of e.children)o(n,t)};for(let e of i)o(e,`right`);for(let e of a)o(e,`left`);i.length>0&&je({...e,children:i},`right`,fe,!0,n,r),a.length>0&&je({...e,children:a},`left`,fe,!0,n,r)}else if(t===`tree`){let t=e=>{e.side=1,e._dir=`right`;for(let n of e.children)t(n)};for(let t of e.children)t._dir=`right`;je(e,`right`,fe,!0,n,r),t(e)}else{for(let t of e.children)t._dir=`down`;Me(e,fe,n,r)}}function je(e,t,n,r,i=!1,a=0){if(e.children.length===0)return;let o=r?he+a:he,s=e.children.reduce((e,t,n)=>e+t._subtreeH+(n>0?o:0),0),c=t===`right`?1:-1,l=r?c:1,u=e.y-l*s/2,d=_e(e.depth);e.children.forEach(r=>{i||(r.x=e.x+c*(e.width/2+d+r.width/2),r.y=u+l*r._subtreeH/2),r._dir=t,u+=l*(r._subtreeH+o),je(r,t,n,!1,i,0)})}function Me(e,t,n=!1,r=0){if(e.children.length===0)return;let i=e.depth===0?he+r:he,a=e.children.reduce((e,t,n)=>e+t._subtreeW+(n>0?i*2:0),0),o=e.x-a/2,s=_e(e.depth);e.children.forEach(r=>{n||(r.x=o+r._subtreeW/2,r.y=e.y+e.height/2+s+r.height/2),r._dir=`down`,o+=r._subtreeW+i*2,Me(r,t,n,0)})}function Ne(e,t,n,r,i,a,o,s){let c=Oe(e,t,a,o,s),l={id:e.id,text:e.text,depth:t,x:e._x??0,y:e._y??0,width:c.w,height:c.h,fontSize:ue(t,a),isRoot:t===0,collapsed:e.collapsed,side:r,_dir:i,_dirRight:r,_subtreeH:c.h,_subtreeW:c.w,image:e.image?{...e.image}:void 0,link:e.link?{url:e.link.url}:void 0,note:e.note?{text:e.note.text}:void 0,richContent:e.richContent?{kind:e.richContent.kind,raw:e.richContent.raw,lang:e.richContent.lang}:void 0,markers:e.markers?[...e.markers]:void 0,tags:e.tags?[...e.tags]:void 0,children:[],parent:n};if(e.collapsed)return l;let u=e.children.length,d=Math.ceil(u/2);return l.children=e.children.map((e,n)=>{let c=t===0?n<d?1:-1:r;return Ne(e,t+1,l,c,i,a,o,s)}),l}function Pe(e,t=0){let n=[e];for(let e=0;e<n.length;e++){let t=n[e];for(let e of t.children)n.push(e)}for(let e=n.length-1;e>=0;e--){let r=n[e];if(r.collapsed||r.children.length===0){r._subtreeH=r.height,r._subtreeW=r.width;continue}let i=r.depth===0?he+t:he,a=0,o=0;for(let e of r.children)a+=e._subtreeH,o+=e._subtreeW;r.children.length>1&&(a+=i*(r.children.length-1),o+=i*2*(r.children.length-1)),r._subtreeH=Math.max(r.height,a),r._subtreeW=Math.max(r.width,o)}}function Fe(e,t=!1){let n=[e],r=1/0,i=-1/0,a=1/0,o=-1/0;for(;n.length;){let e=n.pop(),t=e.width/2,s=e.height/2;e.x-t<r&&(r=e.x-t),e.x+t>i&&(i=e.x+t),e.y-s<a&&(a=e.y-s),e.y+s>o&&(o=e.y+s),n.push(...e.children)}if(t)return{root:e,width:i-r+48,height:o-a+48,vbX:r-ge,vbY:a-ge,vbW:i-r+48,vbH:o-a+48};let s=ge-a,c=[e];for(;c.length;){let e=c.pop();e.y+=s,c.push(...e.children)}return a+=s,o+=s,{root:e,width:i-r+48,height:o+ge,vbX:r-ge,vbY:0,vbW:i-r+48,vbH:o+ge}}var Ie=[{id:`default`,name:`默认`,colors:[`#f87171`,`#fb923c`,`#fbbf24`,`#a3e635`,`#34d399`,`#22d3ee`,`#818cf8`,`#c084fc`]},{id:`classic`,name:`经典`,colors:[`#ef4444`,`#f59e0b`,`#10b981`,`#3b82f6`,`#6366f1`,`#8b5cf6`,`#ec4899`,`#14b8a6`]},{id:`vivid`,name:`活力`,colors:[`#dc2626`,`#ea580c`,`#ca8a04`,`#16a34a`,`#0891b2`,`#2563eb`,`#7c3aed`,`#db2777`]},{id:`dev`,name:`代码`,colors:[`#f472b6`,`#a78bfa`,`#60a5fa`,`#38bdf8`,`#22d3ee`,`#34d399`,`#facc15`,`#fb923c`]},{id:`mint`,name:`薄荷`,colors:[`#5eead4`,`#67e8f9`,`#93c5fd`,`#c4b5fd`,`#fbcfe8`,`#fde68a`,`#a7f3d0`,`#bae6fd`]}];function Le(e,t=[]){return[...Ie,...t].find(t=>t.id===e)??Ie[0]}function Re(e,t=8){let n=[],r=new Set,i=/#[0-9a-fA-F]{3,8}\b|rgba?\([^)]+\)|[A-Za-z][A-Za-z0-9_-]{2,30}/g,a;for(;(a=i.exec(e))!==null;){let e=a[0],i=null;if(i=e.startsWith(`#`)?ze(e):e.startsWith(`rgb`)?Be(e):Ve[e.toLowerCase()]??null,!i)continue;let o=i.toLowerCase();if(!r.has(o)&&(r.add(o),n.push(o),n.length>=t))break}return n}function ze(e){let t=e.startsWith(`#`)?e.slice(1):e;if(!/^[0-9a-fA-F]+$/.test(t))return null;let n;if(t.length===3)n=t.split(``).map(e=>e+e).join(``);else if(t.length===4)n=t.slice(0,3).split(``).map(e=>e+e).join(``);else if(t.length===6)n=t;else if(t.length===8)n=t.slice(0,6);else return null;return`#`+n.toLowerCase()}function Be(e){let t=e.match(/^rgba?\(\s*([^)]+?)\s*\)$/i);if(!t)return null;let n=t[1].split(/\s*,\s*/);if(n.length<3)return null;let r=[];for(let e=0;e<3;e++){let t=n[e];if(t.endsWith(`%`)){let e=parseFloat(t);if(!isFinite(e))return null;r.push(Math.round(e/100*255))}else{let e=parseInt(t,10);if(!isFinite(e)||e<0||e>255)return null;r.push(e)}}return`#`+r.map(e=>e.toString(16).padStart(2,`0`)).join(``).toLowerCase()}var Ve={black:`#000000`,white:`#ffffff`,red:`#ff0000`,green:`#008000`,blue:`#0000ff`,yellow:`#ffff00`,cyan:`#00ffff`,magenta:`#ff00ff`,gray:`#808080`,grey:`#808080`,silver:`#c0c0c0`,maroon:`#800000`,olive:`#808000`,lime:`#00ff00`,aqua:`#00ffff`,teal:`#008080`,navy:`#000080`,fuchsia:`#ff00ff`,purple:`#800080`,orange:`#ffa500`,pink:`#ffc0cb`,brown:`#a52a2a`,gold:`#ffd700`,coral:`#ff7f50`,tomato:`#ff6347`,salmon:`#fa8072`,khaki:`#f0e68c`,violet:`#ee82ee`,indigo:`#4b0082`,turquoise:`#40e0d0`,chocolate:`#d2691e`,crimson:`#dc143c`,darkred:`#8b0000`,darkblue:`#00008b`,darkgreen:`#006400`,darkgray:`#a9a9a9`,darkgrey:`#a9a9a9`,lightgray:`#d3d3d3`,lightgrey:`#d3d3d3`,lightblue:`#add8e6`,lightgreen:`#90ee90`,lightyellow:`#ffffe0`,lightpink:`#ffb6c1`,skyblue:`#87ceeb`,forestgreen:`#228b22`,royalblue:`#4169e1`,steelblue:`#4682b4`,hotpink:`#ff69b4`,deeppink:`#ff1493`,orangered:`#ff4500`,goldenrod:`#daa520`,mediumpurple:`#9370db`};function U(){return`n_`+Math.random().toString(36).slice(2,10)+Date.now().toString(36).slice(-4)}function He(e){return JSON.parse(JSON.stringify(e))}function W(e,t){if(e.id===t)return e;for(let n of e.children){let e=W(n,t);if(e)return e}return null}function Ue(e,t,n=null){if(e.id===t)return n;for(let n of e.children){let r=Ue(n,t,e);if(r!==null)return r}return null}function We(e,t){let n=e.children.findIndex(e=>e.id===t);if(n>=0)return e.children.splice(n,1),!0;for(let n of e.children)if(We(n,t))return!0;return!1}function Ge(e,t,n){let r=W(e,t);return!r||r.text===n?!1:(r.text=n,!0)}function Ke(e,t,n,r){if(!Ue(e,t)||t===n||W(W(e,t),n))return!1;let i=Ue(e,t),a=i.children.findIndex(e=>e.id===t);if(a<0)return!1;let[o]=i.children.splice(a,1);if(r===`child`){let t=W(e,n);return t?(t.children.push(o),!0):(i.children.splice(a,0,o),!1)}let s=Ue(e,n);if(!s)return i.children.splice(a,0,o),!1;let c=s.children.findIndex(e=>e.id===n);return c<0?(i.children.splice(a,0,o),!1):(r===`after`&&(c+=1),s.children.splice(c,0,o),!0)}function qe(e){let t=/^新节点(?:\s+(\d+))?$/,n=0,r=!1;for(let i of e.children){let e=i.text.match(t);if(e){if(e[1]){let t=parseInt(e[1],10);t>n&&(n=t)}else r=!0}}return n===0&&!r?tt:n>0?`新节点 ${n+1}`:`新节点 2`}function Je(e,t,n){let r=W(e,t);if(!r)return null;let i={id:U(),text:n??qe(r),children:[]};return r.children.push(i),i}function Ye(e,t,n){let r=Ue(e,t);if(!r)return null;let i=r.children.findIndex(e=>e.id===t);if(i<0)return null;let a={id:U(),text:n??qe(r),children:[]};return r.children.splice(i+1,0,a),a}function Xe(e,t,n){let r=Ue(e,t);if(!r)return null;let i=r.children.findIndex(e=>e.id===t);if(i<0)return null;let a={id:U(),text:n,children:[]};return r.children.splice(i,0,a),a}function Ze(e,t){let n=Ue(e,t);if(!n)return null;let r=n.children.findIndex(e=>e.id===t);if(r<0)return null;let i=n.children[r],a=He(i);return Qe(a),n.children.splice(r+1,0,a),a}function Qe(e){e.id=U();for(let t of e.children)Qe(t)}function $e(e,t){let n=W(e,t);if(!n||n.id===e.id)return null;let r=He(n);return Qe(r),r}function et(e){return e.children.reduce((e,t)=>e+1+et(t),0)}var tt=`新节点`;function nt(e){return e.relations||=[],e.relations}function rt(e,t){return e.relations?.find(e=>e.id===t)??null}function it(e,t,n){if(t===n||!W(e,t)||!W(e,n))return null;let r=nt(e);if(r.some(e=>e.fromId===t&&e.toId===n))return null;let i={id:U(),fromId:t,toId:n};return r.push(i),i}function at(e,t){let n=e.relations;if(!n)return!1;let r=n.findIndex(e=>e.id===t);return r<0?!1:(n.splice(r,1),!0)}function ot(e,t,n){let r=rt(e,t);return r?(Object.assign(r,n),!0):!1}function st(e,t,n,r){var i;let a=rt(e,t);if(!a||!W(e,r)||r===(n===`from`?a.toId:a.fromId))return!1;let o=n===`from`?r:a.fromId,s=n===`to`?r:a.toId;return(i=e.relations)!=null&&i.some(e=>e.id!==t&&e.fromId===o&&e.toId===s)?!1:(n===`from`?(a.fromId=r,delete a.fromT):(a.toId=r,delete a.toT),delete a.c1,delete a.c2,!0)}function ct(e,t){let n=e.relations;if(!n||n.length===0)return 0;let r=n.length;return e.relations=n.filter(e=>e.fromId!==t&&e.toId!==t),r-e.relations.length}function lt(e,t=`导入的导图`){let n=e.split(/\r?\n/),r={id:U(),text:t,children:[]},i=[r],a=[-1/0],o=[],s=/^(#{1,6})\s+(.+?)\s*#*\s*$/,c=/^!\[([^\]]*)\]\((\S+?)(?:\s+"[^"]*")?\)\s*$/,l=/^\[([^\]]+)\]\((\S+?)(?:\s+"[^"]*")?\)\s*$/,u=/^(`{3,}|~{3,})\s*(\S+)?\s*$/,d=!1,f=[],p=null;function m(e){f.push(e)}function h(){if(p&&f.length>0){for(;f.length>0&&f[0].trim()===``;)f.shift();for(;f.length>0&&f[f.length-1].trim()===``;)f.pop();let e=f.join(`
|
|
4
4
|
`);e&&(p.note={text:e})}d=!1,f=[]}for(let e of n){if(d){let t=e.match(u);if(t&&t[1][0]==="`"){h();continue}m(e);continue}let t=e.match(s);if(t){let e=t[1].length,n=t[2].trim();o.push({level:e,text:n,body:``}),p=o[o.length-1];continue}let n=e.match(u);if(n&&n[2]===`note`){d=!0,f=[];continue}let r=e.match(c);if(r&&p){let e=r[2];p.image={src:e,naturalW:160,naturalH:120,width:160,height:120};continue}let i=e.match(l);if(i&&p){p.link={url:i[2]},p.text=i[1];continue}if(e.trim().length>0&&p){let t=e.trim();p.body=p.body?p.body+`
|