Files
Snap.Hutao.Docs/assets/app-ef09c392.js

62 lines
298 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{d as defineAsyncComponent,r as ref,a as readonly,b as reactive,c as defineComponent,i as isString$1,e as isArray,f as dedupeHead,g as resolveLocalePath,o as onMounted,h as computed,j as h$3,k as isLinkHttp,l as removeLeadingSlash,m as inject,n as getCurrentInstance,p as isPlainObject,q as camelize,s as capitalize,t as isFunction$1,u as unref,v as nextTick,w as isRef,x as watch,y as getCurrentScope,z as onScopeDispose,A as shallowRef,B as watchEffect,C as useRoute,D as useRouter,R as RouterLink,T as Transition,E as onBeforeUnmount,F as createBaseVNode,G as onUnmounted,H as openBlock,I as createElementBlock,J as toDisplayString,K as Fragment,L as renderList,M as createCommentVNode,N as normalizeStyle,O as createVNode,P as normalizeClass,Q as withDirectives,S as vModelText,U as vShow,V as createTextVNode,W as createBlock,X as vModelDynamic,Y as resolveComponent,Z as provide,_ as isLinkMailto,$ as toRef,a0 as isLinkTel,a1 as isLinkExternal,a2 as ensureEndingSlash,a3 as TransitionGroup,a4 as removeEndingSlash,a5 as useLink,a6 as createSSRApp,a7 as RouterView,a8 as createRouter,a9 as START_LOCATION_NORMALIZED,aa as createWebHistory}from"./framework-2050cf2c.js";const scriptRel="modulepreload",assetsURL=function($){return"/"+$},seen={},__vitePreload=function(b,j,U){if(!j||j.length===0)return b();const Bn=document.getElementsByTagName("link");return Promise.all(j.map(Fn=>{if(Fn=assetsURL(Fn),Fn in seen)return;seen[Fn]=!0;const qn=Fn.endsWith(".css"),Wn=qn?'[rel="stylesheet"]':"";if(!!U)for(let Qn=Bn.length-1;Qn>=0;Qn--){const Zn=Bn[Qn];if(Zn.href===Fn&&(!qn||Zn.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${Fn}"]${Wn}`))return;const Yn=document.createElement("link");if(Yn.rel=qn?"stylesheet":scriptRel,qn||(Yn.as="script",Yn.crossOrigin=""),Yn.href=Fn,document.head.appendChild(Yn),qn)return new Promise((Qn,Zn)=>{Yn.addEventListener("load",Qn),Yn.addEventListener("error",()=>Zn(new Error(`Unable to preload CSS for ${Fn}`)))})})).then(()=>b())},pagesData$1={"v-8daa1a0e":()=>__vitePreload(()=>import("./index.html-b78e8cf1.js"),[]).then(({data:$})=>$),"v-67f865c9":()=>__vitePreload(()=>import("./community.html-4259ed5c.js"),[]).then(({data:$})=>$),"v-c360777a":()=>__vitePreload(()=>import("./markmap.html-3825499a.js"),[]).then(({data:$})=>$),"v-590a42d9":()=>__vitePreload(()=>import("./project.html-9bfa1e4e.js"),[]).then(({data:$})=>$),"v-96f5eae0":()=>__vitePreload(()=>import("./quick-start.html-71fd557f.js"),[]).then(({data:$})=>$),"v-35ed7d28":()=>__vitePreload(()=>import("./star-request.html-0a6171e5.js"),[]).then(({data:$})=>$),"v-4f87b30d":()=>__vitePreload(()=>import("./Gacha-system-and-export-principal.html-4011e065.js"),[]).then(({data:$})=>$),"v-5b94d45f":()=>__vitePreload(()=>import("./HttpRequestException.html-4f30254a.js"),[]).then(({data:$})=>$),"v-0288c929":()=>__vitePreload(()=>import("./artifact-rating-rules.html-89b1cb5d.js"),[]).then(({data:$})=>$),"v-9a0eaba6":()=>__vitePreload(()=>import("./get-stoken-cookie-from-the-third-party.html-ac32733d.js"),[]).then(({data:$})=>$),"v-179f15e2":()=>__vitePreload(()=>import("./how-to.html-5cb96e32.js"),[]).then(({data:$})=>$),"v-401b4afa":()=>__vitePreload(()=>import("./mihoyo-risk-tip.html-d397119f.js"),[]).then(({data:$})=>$),"v-289a9e83":()=>__vitePreload(()=>import("./why.html-69ac89b7.js"),[]).then(({data:$})=>$),"v-28eb1946":()=>__vitePreload(()=>import("./symposium1.html-307eb376.js"),[]).then(({data:$})=>$),"v-2a9ff1e5":()=>__vitePreload(()=>import("./symposium2.html-3a708b8f.js"),[]).then(({data:$})=>$),"v-2d0a870d":()=>__vitePreload(()=>import("./index.html-59219388.js"),[]).then(({data:$})=>$),"v-35380e8e":()=>__vitePreload(()=>import("./index.html-5d0fb0cb.js"),[]).then(({data:$})=>$),"v-73139ec8":()=>__vitePreload(()=>import("./achievements.html-717876fb.js"),[]).then(({data:$})=>$),"v-1c93fc72":()=>__vitePreload(()=>import("./character-data.html-41fa4a18.js"),[]).then(({data:$})=>$),"v-e37f5fa8":()=>__vitePreload(()=>import("./character-wiki.html-150c6cea.js"),[]).then(({data:$})=>$),"v-646944b6":()=>__vitePreload(()=>import("./daily-notes.html-4f5386f2.js"),[]).then(({data:$})=>$),"v-1ae10847":()=>__vitePreload(()=>import("./develop-plan.html-a9728973.js"),[]).then(({data:$})=>$),"v-923d01d2":()=>__vitePreload(()=>import("./game-launcher.html-bea5849c.js"),[]).then(({data:$})=>$),"v-6de46920":()=>__vitePreload(()=>import("./hutao-API.html-a02b463f.js"),[]).then(({data:$})=>$),"v-0c385e36":()=>__vitePreload(()=>import("./hutao-settings.html-8e84b5ab.js"),[]).then(({data:$})=>$),"v-3e40bb9d":()=>__vitePreload(()=>import("./mhy-account-switch.html-93d20ec1.js"),[]).then(({data:$})=>$),"v-7070f771":()=>__vitePreload(()=>import("./weapon-wiki.html-ee86d91d.js"),[]).then(({data:$})=>$),"v-f4f67790":()=>__vitePreload(()=>import("./wish-export.html-38eb66bf.js"),[]).then(({data:$})=>$),"v-39f4c4da":()=>__vitePreload(()=>import("./bug-report.html-9d6bda3c.js"),[]).then(({data:$})=>$),"v-6730cc6c":()=>__vitePreload(()=>import("./privacy-notice.html-4dbebbbb.js"),[]).then(({data:$})=>$),"v-d670f89a":()=>__vitePreload(()=>import("./tos.html-89cadc91.js"),[]).then(({data:$})=>$),"v-3706649a":()=>__vitePreload(()=>import("./404.html-32d5d192.js"),[]).then(({data:$})=>$),"v-74379e72":()=>__vitePreload(()=>import("./index.html-a8160138.js"),[]).then(({data:$})=>$),"v-437b37b6":()=>__vitePreload(()=>import("./index.html-ffce7d23.js"),[]).then(({data:$})=>$),"v-b573819c":()=>__vitePreload(()=>import("./index.html-01fa0df8.js"),[]).then(({data:$})=>$)},siteData$1=JSON.parse('{"base":"/","lang":"en-US","title":"","description":"","head":[["script",{"async":"","defer":"","data-website-id":"f586534f-1741-450e-a0f4-3c0189f993c9","src":"https://umami.irain.in/umami.js"},"\\n "],["div",{"id":"docsearch"}],["link",{"rel":"icon","href":"/favicon.ico"}],["link",{"rel":"icon","href":"/pwa-icon/chrome-512.png","type":"image/png","sizes":"512x512"}],["link",{"rel":"icon","href":"/pwa-icon/chrome-192.png","type":"image/png","sizes":"192x192"}],["link",{"rel":"manifest","href":"/manifest.webmanifest","crossorigin":"use-credentials"}],["meta",{"name":"theme-color","content":"#f26d6d"}],["link",{"rel":"apple-touch-icon","href":"/favicon.ico"}],["meta",{"name":"apple-mobile-web-app-capable","content":"yes"}],["meta",{"name":"apple-mobile-web-app-status-bar-style","content":"black"}],["meta",{"name":"msapplication-TileImage","content":"/favicon.ico"}],["meta",{"name":"msapplication-TileColor","content":"#ffffff"}],["meta",{"name":"viewport","content":"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"}]],"locales":{"/":{"lang":"zh-CN","title":"胡桃工具箱","description":"多功能的原神工具箱"},"/en/":{"lang":"en-US","title":"Snap Hutao","description":"Super utilitarian Genshin Impact Tool"}}}'),pagesComponents={"v-8daa1a0e":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-c0b215e3.js"),["assets/index.html-c0b215e3.js","assets/framework-2050cf2c.js"])),"v-67f865c9":defineAsyncComponent(()=>__vitePreload(()=>import("./community.html-b313a1f6.js"),["assets/community.html-b313a1f6.js","assets/framework-2050cf2c.js"])),"v-c360777a":defineAsyncComponent(()=>__vitePreload(()=>import("./markmap.html-c8233cb5.js"),["assets/markmap.html-c8233cb5.js","assets/framework-2050cf2c.js"])),"v-590a42d9":defineAsyncComponent(()=>__vitePreload(()=>import("./project.html-3e4ddd91.js"),["assets/project.html-3e4ddd91.js","assets/framework-2050cf2c.js"])),"v-96f5eae0":defineAsyncComponent(()=>__vitePreload(()=>import("./quick-start.html-191c457a.js"),["assets/quick-start.html-191c457a.js","assets/framework-2050cf2c.js"])),"v-35ed7d28":defineAsyncComponent(()=>__vitePreload(()=>import("./star-request.html-a111ddc0.js"),["assets/star-request.html-a111ddc0.js","assets/framework-2050cf2c.js"])),"v-4f87b30d":defineAsyncComponent(()=>__vitePreload(()=>import("./Gacha-system-and-export-principal.html-abf4ddb4.js"),["assets/Gacha-system-and-export-principal.html-abf4ddb4.js","assets/framework-2050cf2c.js"])),"v-5b94d45f":defineAsyncComponent(()=>__vitePreload(()=>import("./HttpRequestException.html-2143ce68.js"),["assets/HttpRequestException.html-2143ce68.js","assets/framework-2050cf2c.js"])),"v-0288c929":defineAsyncComponent(()=>__vitePreload(()=>import("./artifact-rating-rules.html-2ad9f1be.js"),["assets/artifact-rating-rules.html-2ad9f1be.js","assets/framework-2050cf2c.js"])),"v-9a0eaba6":defineAsyncComponent(()=>__vitePreload(()=>import("./get-stoken-cookie-from-the-third-party.html-a02de77c.js"),["assets/get-stoken-cookie-from-the-third-party.html-a02de77c.js","assets/framework-2050cf2c.js"])),"v-179f15e2":defineAsyncComponent(()=>__vitePreload(()=>import("./how-to.html-702e4cb9.js"),["assets/how-to.html-702e4cb9.js","assets/framework-2050cf2c.js"])),"v-401b4afa":defineAsyncComponent(()=>__vitePreload(()=>import("./mihoyo-risk-tip.html-1202309e.js"),["assets/mihoyo-risk-tip.html-1202309e.js","assets/framework-2050cf2c.js"])),"v-289a9e83":defineAsyncComponent(()=>__vitePreload(()=>import("./why.html-2a2ae349.js"),["assets/why.html-2a2ae349.js","assets/framework-2050cf2c.js"])),"v-28eb1946":defineAsyncComponent(()=>__vitePreload(()=>import("./symposium1.html-3ced5dc3.js"),["assets/symposium1.html-3ced5dc3.js","assets/framework-2050cf2c.js"])),"v-2a9ff1e5":defineAsyncComponent(()=>__vitePreload(()=>import("./symposium2.html-bad37c5f.js"),["assets/symposium2.html-bad37c5f.js","assets/framework-2050cf2c.js"])),"v-2d0a870d":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-12187913.js"),["assets/index.html-12187913.js","assets/framework-2050cf2c.js"])),"v-35380e8e":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-c412ed13.js"),["assets/index.html-c412ed13.js","assets/framework-2050cf2c.js"])),"v-73139ec8":defineAsyncComponent(()=>__vitePreload(()=>import("./achievements.html-d587d759.js"),["assets/achievements.html-d587d759.js","assets/framework-2050cf2c.js"])),"v-1c93fc72":defineAsyncComponent(()=>__vitePreload(()=>import("./character-data.html-7cbcfb0c.js"),["assets/character-data.html-7cbcfb0c.js","assets/framework-2050cf2c.js"])),"v-e37f5fa8":defineAsyncComponent(()=>__vitePreload(()=>import("./character-wiki.html-c3f4fc0d.js"),["assets/character-wiki.html-c3f4fc0d.js","assets/framework-2050cf2c.js"])),"v-646944b6":defineAsyncComponent(()=>__vitePreload(()=>import("./daily-notes.html-0811c141.js"),["assets/daily-notes.html-0811c141.js","assets/framework-2050cf2c.js"])),"v-1ae10847":defineAsyncComponent(()=>__vitePreload(()=>import("./develop-plan.html-304a21a8.js"),["assets/develop-plan.html-304a21a8.js","assets/framework-2050cf2c.js"])),"v-923d01d2":defineAsyncComponent(()=>__vitePreload(()=>import("./game-launcher.html-50a156eb.js"),["assets/game-launcher.html-50a156eb.js","assets/framework-2050cf2c.js"])),"v-6de46920":defineAsyncComponent(()=>__vitePreload(()=>import("./hutao-API.html-bf294432.js"),["assets/hutao-API.html-bf294432.js","assets/framework-2050cf2c.js"])),"v-0c385e36":defineAsyncComponent(()=>__vitePreload(()=>import("./hutao-settings.html-418b1f2c.js"),["assets/hutao-settings.html-418b1f2c.js","assets/framework-2050cf2c.js"])),"v-3e40bb9d":defineAsyncComponent(()=>__vitePreload(()=>import("./mhy-account-switch.html-0482798f.js"),["assets/mhy-account-switch.html-0482798f.js","assets/framework-2050cf2c.js"])),"v-7070f771":defineAsyncComponent(()=>__vitePreload(()=>import("./weapon-wiki.html-33bb156f.js"),["assets/weapon-wiki.html-33bb156f.js","assets/framework-2050cf2c.js"])),"v-f4f67790":defineAsyncComponent(()=>__vitePreload(()=>import("./wish-export.html-2131fc6d.js"),["assets/wish-export.html-2131fc6d.js","assets/framework-2050cf2c.js"])),"v-39f4c4da":defineAsyncComponent(()=>__vitePreload(()=>import("./bug-report.html-665f088a.js"),["assets/bug-report.html-665f088a.js","assets/framework-2050cf2c.js"])),"v-6730cc6c":defineAsyncComponent(()=>__vitePreload(()=>import("./privacy-notice.html-c8d33cc7.js"),["assets/privacy-notice.html-c8d33cc7.js","assets/framework-2050cf2c.js"])),"v-d670f89a":defineAsyncComponent(()=>__vitePreload(()=>import("./tos.html-00997ad6.js"),["assets/tos.html-00997ad6.js","assets/framework-2050cf2c.js"])),"v-3706649a":defineAsyncComponent(()=>__vitePreload(()=>import("./404.html-0864d709.js"),["assets/404.html-0864d709.js","assets/framework-2050cf2c.js"])),"v-74379e72":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-a508a192.js"),["assets/index.html-a508a192.js","assets/framework-2050cf2c.js"])),"v-437b37b6":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-6108273b.js"),["assets/index.html-6108273b.js","assets/framework-2050cf2c.js"])),"v-b573819c":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-de9c2355.js"),["assets/index.html-de9c2355.js","assets/framework-2050cf2c.js"]))};var layoutsSymbol=Symbol(""),pagesData=ref(pagesData$1),pageDataEmpty=readonly({key:"",path:"",title:"",lang:"",frontmatter:{},headers:[]}),pageData=ref(pageDataEmpty),usePageData=()=>pageData,pageFrontmatterSymbol=Symbol(""),usePageFrontmatter=()=>{const $=inject(pageFrontmatterSymbol);if(!$)throw new Error("usePageFrontmatter() is called without provider.");return $},pageHeadSymbol=Symbol(""),usePageHead=()=>{const $=inject(pageHeadSymbol);if(!$)throw new Error("usePageHead() is called without provider.");return $},pageHeadTitleSymbol=Symbol(""),pageLangSymbol=Symbol(""),usePageLang=()=>{const $=inject(pageLangSymbol);if(!$)throw new Error("usePageLang() is called without provider.");return $},pageLayoutSymbol=Symbol(""),usePageLayout=()=>{const $=inject(pageLayoutSymbol);if(!$)throw new Error("usePageLayout() is called without provider.");return $},routeLocaleSymbol=Symbol(""),useRouteLocale=()=>{const $=inject(routeLocaleSymbol);if(!$)throw new Error("useRouteLocale() is called without provider.");return $},siteData=ref(siteData$1),useSiteData=()=>siteData,siteLocaleDataSymbol=Symbol(""),useSiteLocaleData=()=>{const $=inject(siteLocaleDataSymbol);if(!$)throw new Error("useSiteLocaleData() is called without provider.");return $},updateHeadSymbol=Symbol(""),LAYOUT_NAME_DEFAULT="Layout",LAYOUT_NAME_NOT_FOUND="NotFound",resolvers=reactive({resolveLayouts:$=>$.reduce((b,j)=>({...b,...j.layouts}),{}),resolvePageData:async $=>{const b=pagesData.value[$];return await(b==null?void 0:b())??pageDataEmpty},resolvePageFrontmatter:$=>$.frontmatter,resolvePageHead:($,b,j)=>{const U=isString$1(b.description)?b.description:j.description,Bn=[...isArray(b.head)?b.head:[],...j.head,["title",{},$],["meta",{name:"description",content:U}]];return dedupeHead(Bn)},resolvePageHeadTitle:($,b)=>[$.title,b.title].filter(j=>!!j).join(" | "),resolvePageLang:$=>$.lang||"en",resolvePageLayout:($,b)=>{let j;if($.path){const U=$.frontmatter.layout;isString$1(U)?j=U:j=LAYOUT_NAME_DEFAULT}else j=LAYOUT_NAME_NOT_FOUND;return b[j]},resolveRouteLocale:($,b)=>resolveLocalePath($,b),resolveSiteLocaleData:($,b)=>({...$,...$.locales[b]})}),ClientOnly=defineComponent({name:"ClientOnly",setup($,b){const j=ref(!1);return onMounted(()=>{j.value=!0}),()=>{var U,Bn;return j.value?(Bn=(U=b.slots).default)==null?void 0:Bn.call(U):null}}}),Content=defineComponent({name:"Content",props:{pageKey:{type:String,required:!1,default:""}},setup($){const b=usePageData(),j=computed(()=>pagesComponents[$.pageKey||b.value.key]);return()=>j.value?h$3(j.value):h$3("div","404 Not Found")}}),defineClientConfig=($={})=>$,withBase=$=>isLinkHttp($)?$:`/${removeLeadingSlash($)}`;const hopeInject="",clientConfig0={};var u8=Uint8Array,u16=Uint16Array,u32=Uint32Array,fleb=new u8([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),fdeb=new u8([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),clim=new u8([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),freb=function($,b){for(var j=new u16(31),U=0;U<31;++U)j[U]=b+=1<<$[U-1];for(var Bn=new u32(j[30]),U=1;U<30;++U)for(var Fn=j[U];Fn<j[U+1];++Fn)Bn[Fn]=Fn-j[U]<<5|U;return[j,Bn]},_a$1=freb(fleb,2),fl=_a$1[0],revfl=_a$1[1];fl[28]=258,revfl[258]=28;var _b=freb(fdeb,0),fd=_b[0],rev=new u16(32768);for(var i$5=0;i$5<32768;++i$5){var x$3=(i$5&43690)>>>1|(i$5&21845)<<1;x$3=(x$3&52428)>>>2|(x$3&13107)<<2,x$3=(x$3&61680)>>>4|(x$3&3855)<<4,rev[i$5]=((x$3&65280)>>>8|(x$3&255)<<8)>>>1}var hMap=function($,b,j){for(var U=$.length,Bn=0,Fn=new u16(b);Bn<U;++Bn)$[Bn]&&++Fn[$[Bn]-1];var qn=new u16(b);for(Bn=0;Bn<b;++Bn)qn[Bn]=qn[Bn-1]+Fn[Bn-1]<<1;var Wn;if(j){Wn=new u16(1<<b);var Gn=15-b;for(Bn=0;Bn<U;++Bn)if($[Bn])for(var Yn=Bn<<4|$[Bn],Qn=b-$[Bn],Zn=qn[$[Bn]-1]++<<Qn,Jn=Zn|(1<<Qn)-1;Zn<=Jn;++Zn)Wn[rev[Zn]>>>Gn]=Yn}else for(Wn=new u16(U),Bn=0;Bn<U;++Bn)$[Bn]&&(Wn[Bn]=rev[qn[$[Bn]-1]++]>>>15-$[Bn]);return Wn},flt=new u8(288);for(var i$5=0;i$5<144;++i$5)flt[i$5]=8;for(var i$5=144;i$5<256;++i$5)flt[i$5]=9;for(var i$5=256;i$5<280;++i$5)flt[i$5]=7;for(var i$5=280;i$5<288;++i$5)flt[i$5]=8;var fdt=new u8(32);for(var i$5=0;i$5<32;++i$5)fdt[i$5]=5;var flrm=hMap(flt,9,1),fdrm=hMap(fdt,5,1),max=function($){for(var b=$[0],j=1;j<$.length;++j)$[j]>b&&(b=$[j]);return b},bits=function($,b,j){var U=b/8|0;return($[U]|$[U+1]<<8)>>(b&7)&j},bits16=function($,b){var j=b/8|0;return($[j]|$[j+1]<<8|$[j+2]<<16)>>(b&7)},shft=function($){return($+7)/8|0},slc=function($,b,j){(b==null||b<0)&&(b=0),(j==null||j>$.length)&&(j=$.length);var U=new($.BYTES_PER_ELEMENT==2?u16:$.BYTES_PER_ELEMENT==4?u32:u8)(j-b);return U.set($.subarray(b,j)),U},ec=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],err=function($,b,j){var U=new Error(b||ec[$]);if(U.code=$,Error.captureStackTrace&&Error.captureStackTrace(U,err),!j)throw U;return U},inflt=function($,b,j){var U=$.length;if(!U||j&&j.f&&!j.l)return b||new u8(0);var Bn=!b||j,Fn=!j||j.i;j||(j={}),b||(b=new u8(U*3));var qn=function(Ma){var Ra=b.length;if(Ma>Ra){var za=new u8(Math.max(Ra*2,Ma));za.set(b),b=za}},Wn=j.f||0,Gn=j.p||0,Yn=j.b||0,Qn=j.l,Zn=j.d,Jn=j.m,Kn=j.n,ea=U*8;do{if(!Qn){Wn=bits($,Gn,1);var Xn=bits($,Gn+1,3);if(Gn+=3,Xn)if(Xn==1)Qn=flrm,Zn=fdrm,Jn=9,Kn=5;else if(Xn==2){var ca=bits($,Gn,31)+257,pa=bits($,Gn+10,15)+4,va=ca+bits($,Gn+5,31)+1;Gn+=14;for(var ga=new u8(va),ia=new u8(19),la=0;la<pa;++la)ia[clim[la]]=bits($,Gn+la*3,7);Gn+=pa*3;for(var ba=max(ia),Sa=(1<<ba)-1,Aa=hMap(ia,ba,1),la=0;la<va;){var ka=Aa[bits($,Gn,Sa)];Gn+=ka&15;var ta=ka>>>4;if(ta<16)ga[la++]=ta;else{var sa=0,aa=0;for(ta==16?(aa=3+bits($,Gn,3),Gn+=2,sa=ga[la-1]):ta==17?(aa=3+bits($,Gn,7),Gn+=3):ta==18&&(aa=11+bits($,Gn,127),Gn+=7);aa--;)ga[la++]=sa}}var oa=ga.subarray(0,ca),da=ga.subarray(ca);Jn=max(oa),Kn=max(da),Qn=hMap(oa,Jn,1),Zn=hMap(da,Kn,1)}else err(1);else{var ta=shft(Gn)+4,na=$[ta-4]|$[ta-3]<<8,ra=ta+na;if(ra>U){Fn&&err(0);break}Bn&&qn(Yn+na),b.set($.subarray(ta,ra),Yn),j.b=Yn+=na,j.p=Gn=ra*8,j.f=Wn;continue}if(Gn>ea){Fn&&err(0);break}}Bn&&qn(Yn+131072);for(var ua=(1<<Jn)-1,ma=(1<<Kn)-1,$a=Gn;;$a=Gn){var sa=Qn[bits16($,Gn)&ua],wa=sa>>>4;if(Gn+=sa&15,Gn>ea){Fn&&err(0);break}if(sa||err(2),wa<256)b[Yn++]=wa;else if(wa==256){$a=Gn,Qn=null;break}else{var Ea=wa-254;if(wa>264){var la=wa-257,xa=fleb[la];Ea=bits($,Gn,(1<<xa)-1)+fl[la],Gn+=xa}var Pa=Zn[bits16($,Gn)&ma],Oa=Pa>>>4;Pa||err(3),Gn+=Pa&15;var da=fd[Oa];if(Oa>3){var xa=fdeb[Oa];da+=bits16($,Gn)&(1<<xa)-1,Gn+=xa}if(Gn>ea){Fn&&err(0);break}Bn&&qn(Yn+131072);for(var Da=Yn+Ea;Yn<Da;Yn+=4)b[Yn]=b[Yn-da],b[Yn+1]=b[Yn+1-da],b[Yn+2]=b[Yn+2-da],b[Yn+3]=b[Yn+3-da];Yn=Da}}j.l=Qn,j.p=$a,j.b=Yn,j.f=Wn,Qn&&(Wn=1,j.m=Jn,j.d=Zn,j.n=Kn)}while(!Wn);return Yn==b.length?b:slc(b,0,Yn)},et$2=new u8(0),zlv=function($){(($[0]&15)!=8||$[0]>>>4>7||($[0]<<8|$[1])%31)&&err(6,"invalid zlib data"),$[1]&32&&err(6,"invalid zlib data: preset dictionaries not supported")};function unzlibSync($,b){return inflt((zlv($),$.subarray(2,-4)),b)}var te$2=typeof TextEncoder<"u"&&new TextEncoder,td=typeof TextDecoder<"u"&&new TextDecoder,tds=0;try{td.decode(et$2,{stream:!0}),tds=1}catch{}var dutf8=function($){for(var b="",j=0;;){var U=$[j++],Bn=(U>127)+(U>223)+(U>239);if(j+Bn>$.length)return[b,slc($,j-1)];Bn?Bn==3?(U=((U&15)<<18|($[j++]&63)<<12|($[j++]&63)<<6|$[j++]&63)-65536,b+=String.fromCharCode(55296|U>>10,56320|U&1023)):Bn&1?b+=String.fromCharCode((U&31)<<6|$[j++]&63):b+=String.fromCharCode((U&15)<<12|($[j++]&63)<<6|$[j++]&63):b+=String.fromCharCode(U)}};function strToU8($,b){if(b){for(var j=new u8($.length),U=0;U<$.length;++U)j[U]=$.charCodeAt(U);return j}if(te$2)return te$2.encode($);for(var Bn=$.length,Fn=new u8($.length+($.length>>1)),qn=0,Wn=function(Qn){Fn[qn++]=Qn},U=0;U<Bn;++U){if(qn+5>Fn.length){var Gn=new u8(qn+8+(Bn-U<<1));Gn.set(Fn),Fn=Gn}var Yn=$.charCodeAt(U);Yn<128||b?Wn(Yn):Yn<2048?(Wn(192|Yn>>6),Wn(128|Yn&63)):Yn>55295&&Yn<57344?(Yn=65536+(Yn&1023<<10)|$.charCodeAt(++U)&1023,Wn(240|Yn>>18),Wn(128|Yn>>12&63),Wn(128|Yn>>6&63),Wn(128|Yn&63)):(Wn(224|Yn>>12),Wn(128|Yn>>6&63),Wn(128|Yn&63))}return slc(Fn,0,qn)}function strFromU8($,b){if(b){for(var j="",U=0;U<$.length;U+=16384)j+=String.fromCharCode.apply(null,$.subarray(U,U+16384));return j}else{if(td)return td.decode($);var Bn=dutf8($),Fn=Bn[0],qn=Bn[1];return qn.length&&err(8),Fn}}const P$5=({name:$="",color:b="currentColor"},{slots:j})=>{var U;return h$3("svg",{xmlns:"http://www.w3.org/2000/svg",class:["icon",`${$}-icon`],viewBox:"0 0 1024 1024",fill:b,"aria-label":`${$} icon`},(U=j.default)==null?void 0:U.call(j))};P$5.displayName="IconBase";const Ct$1=($,{slots:b})=>{var j;return((j=b.default)==null?void 0:j.call(b))||null},vt$1=()=>h$3(P$5,{name:"github"},()=>h$3("path",{d:"M511.957 21.333C241.024 21.333 21.333 240.981 21.333 512c0 216.832 140.544 400.725 335.574 465.664 24.49 4.395 32.256-10.07 32.256-23.083 0-11.69.256-44.245 0-85.205-136.448 29.61-164.736-64.64-164.736-64.64-22.315-56.704-54.4-71.765-54.4-71.765-44.587-30.464 3.285-29.824 3.285-29.824 49.195 3.413 75.179 50.517 75.179 50.517 43.776 75.008 114.816 53.333 142.762 40.79 4.523-31.66 17.152-53.377 31.19-65.537-108.971-12.458-223.488-54.485-223.488-242.602 0-53.547 19.114-97.323 50.517-131.67-5.035-12.33-21.93-62.293 4.779-129.834 0 0 41.258-13.184 134.912 50.346a469.803 469.803 0 0 1 122.88-16.554c41.642.213 83.626 5.632 122.88 16.554 93.653-63.488 134.784-50.346 134.784-50.346 26.752 67.541 9.898 117.504 4.864 129.834 31.402 34.347 50.474 78.123 50.474 131.67 0 188.586-114.73 230.016-224.042 242.09 17.578 15.232 33.578 44.672 33.578 90.454v135.85c0 13.142 7.936 27.606 32.854 22.87C862.25 912.597 1002.667 728.747 1002.667 512c0-271.019-219.648-490.667-490.71-490.667z"}));vt$1.displayName="GitHubIcon";const pt$1=()=>h$3(P$5,{name:"gitlab"},()=>h$3("path",{d:"M229.333 78.688C223.52 62 199.895 62 193.895 78.688L87.958 406.438h247.5c-.188 0-106.125-327.75-106.125-327.75zM33.77 571.438c-4.875 15 .563 31.687 13.313 41.25l464.812 345L87.77 406.438zm301.5-165 176.813 551.25 176.812-551.25zm655.125 165-54-165-424.312 551.25 464.812-345c12.938-9.563 18.188-26.25 13.5-41.25zM830.27 78.688c-5.812-16.688-29.437-16.688-35.437 0l-106.125 327.75h247.5z"}));pt$1.displayName="GitlabIcon";const $t$1=()=>h$3(P$5,{name:"gitee"},()=>h$3("path",{d:"M512 992C246.92 992 32 777.08 32 512S246.92 32 512 32s480 214.92 480 480-214.92 480-480 480zm242.97-533.34H482.39a23.7 23.7 0 0 0-23.7 23.7l-.03 59.28c0 13.08 10.59 23.7 23.7 23.7h165.96a23.7 23.7 0 0 1 23.7 23.7v11.85a71.1 71.1 0 0 1-71.1 71.1H375.71a23.7 23.7 0 0 1-23.7-23.7V423.11a71.1 71.1 0 0 1 71.1-71.1h331.8a23.7 23.7 0 0 0 23.7-23.7l.06-59.25a23.73 23.73 0 0 0-23.7-23.73H423.11a177.78 177.78 0 0 0-177.78 177.75v331.83c0 13.08 10.62 23.7 23.7 23.7h349.62a159.99 159.99 0 0 0 159.99-159.99V482.33a23.7 23.7 0 0 0-23.7-23.7z"}));$t$1.displayName="GiteeIcon";const gt$1=()=>h$3(P$5,{name:"bitbucket"},()=>h$3("path",{d:"M575.256 490.862c6.29 47.981-52.005 85.723-92.563 61.147-45.714-20.004-45.714-92.562-1.133-113.152 38.29-23.442 93.696 7.424 93.696 52.005zm63.451-11.996c-10.276-81.152-102.29-134.839-177.152-101.156-47.433 21.138-79.433 71.424-77.129 124.562 2.853 69.705 69.157 126.866 138.862 120.576S647.3 548.571 638.708 478.83zm136.558-309.723c-25.161-33.134-67.986-38.839-105.728-45.13-106.862-17.151-216.576-17.7-323.438 1.134-35.438 5.706-75.447 11.996-97.719 43.996 36.572 34.304 88.576 39.424 135.424 45.129 84.553 10.862 171.447 11.447 256 .585 47.433-5.705 99.987-10.276 135.424-45.714zm32.585 591.433c-16.018 55.99-6.839 131.438-66.304 163.986-102.29 56.576-226.304 62.867-338.87 42.862-59.43-10.862-129.135-29.696-161.72-85.723-14.3-54.858-23.442-110.848-32.585-166.84l3.438-9.142 10.276-5.157c170.277 112.567 408.576 112.567 579.438 0 26.844 8.01 6.84 40.558 6.29 60.014zm103.424-549.157c-19.42 125.148-41.728 249.71-63.415 374.272-6.29 36.572-41.728 57.162-71.424 72.558-106.862 53.724-231.424 62.866-348.562 50.286-79.433-8.558-160.585-29.696-225.134-79.433-30.28-23.443-30.28-63.415-35.986-97.134-20.005-117.138-42.862-234.277-57.161-352.585 6.839-51.42 64.585-73.728 107.447-89.71 57.16-21.138 118.272-30.866 178.87-36.571 129.134-12.58 261.157-8.01 386.304 28.562 44.581 13.13 92.563 31.415 122.844 69.705 13.714 17.7 9.143 40.01 6.29 60.014z"}));gt$1.displayName="BitbucketIcon";const yt$1=()=>h$3(P$5,{name:"source"},()=>h$3("path",{d:"M601.92 475.2c0 76.428-8.91 83.754-28.512 99.594-14.652 11.88-43.956 14.058-78.012 16.434-18.81 1.386-40.392 2.97-62.172 6.534-18.612 2.97-36.432 9.306-53.064 17.424V299.772c37.818-21.978 63.36-62.766 63.36-109.692 0-69.894-56.826-126.72-126.72-126.72S190.08 120.186 190.08 190.08c0 46.926 25.542 87.714 63.36 109.692v414.216c-37.818 21.978-63.36 62.766-63.36 109.692 0 69.894 56.826 126.72 126.72 126.72s126.72-56.826 126.72-126.72c0-31.086-11.286-59.598-29.7-81.576 13.266-9.504 27.522-17.226 39.996-19.206 16.038-2.574 32.868-3.762 50.688-5.148 48.312-3.366 103.158-7.326 148.896-44.55 61.182-49.698 74.25-103.158 75.24-187.902V475.2h-126.72zM316.8 126.72c34.848 0 63.36 28.512 63.36 63.36s-28.512 63.36-63.36 63.36-63.36-28.512-63.36-63.36 28.512-63.36 63.36-63.36zm0 760.32c-34.848 0-63.36-28.512-63.36-63.36s28.512-63.36 63.36-63.36 63.36 28.512 63.36 63.36-28.512 63.36-63.36 63.36zM823.68 158.4h-95.04V63.36h-126.72v95.04h-95.04v126.72h95.04v95.04h126.72v-95.04h95.04z"}));yt$1.displayName="SourceIcon";const _t$1=($,b)=>{const j=b?b._instance:getCurrentInstance();return isPlainObject(j==null?void 0:j.appContext.components)&&($ in j.appContext.components||camelize($)in j.appContext.components||capitalize(camelize($))in j.appContext.components)},kt$1=$=>{const b=useRouteLocale();return computed(()=>$[b.value])},Ht$1=$=>/\b(?:Android|iPhone)/i.test($),Gt$1=($,b)=>{let j=1;for(let U=0;U<$.length;U++)j+=$.charCodeAt(U),j+=j<<10,j^=j>>6;return j+=j<<3,j^=j>>11,j%b};let Pt$1=class{constructor(){this.messageElements={};const b="message-container",j=document.getElementById(b);j?this.containerElement=j:(this.containerElement=document.createElement("div"),this.containerElement.id=b,document.body.appendChild(this.containerElement))}pop(b,j=2e3){const U=document.createElement("div"),Bn=Date.now();return U.className="message move-in",U.innerHTML=b,this.containerElement.appendChild(U),this.messageElements[Bn]=U,j>0&&setTimeout(()=>{this.close(Bn)},j),Bn}close(b){if(b){const j=this.messageElements[b];j.className=j.className.replace("move-in",""),j.className+="move-out",j.addEventListener("animationend",()=>{j.remove(),delete this.messageElements[b]})}else Object.keys(this.messageElements).forEach(j=>this.close(Number(j)))}destroy(){document.body.removeChild(this.containerElement)}};const bt$1=/#.*$/u,St$1=$=>{const b=bt$1.exec($);return b?b[0]:""},et$1=$=>decodeURI($).replace(bt$1,"").replace(/(index)?\.(md|html)$/,""),Rt$1=($,b)=>{if(b===void 0)return!1;const j=et$1($.path),U=et$1(b),Bn=St$1(b);return Bn?Bn===$.hash&&(!U||j===U):j===U},Bt$1=$=>{const b=atob($);return strFromU8(unzlibSync(strToU8(b,!0)))},Ft$1=$=>isLinkHttp($)?$:`https://github.com/${$}`,Jt$1=$=>!isLinkHttp($)||/github\.com/.test($)?"GitHub":/bitbucket\.org/.test($)?"Bitbucket":/gitlab\.com/.test($)?"GitLab":/gitee\.com/.test($)?"Gitee":null,Dt$1=($,...b)=>{const j=$.resolve(...b),U=j.matched[j.matched.length-1];if(!(U!=null&&U.redirect))return j;const{redirect:Bn}=U,Fn=isFunction$1(Bn)?Bn(j):Bn,qn=isString$1(Fn)?{path:Fn}:Fn;return Dt$1($,{hash:j.hash,query:j.query,params:j.params,...qn})};var K$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},nt$1={},qt$1={get exports(){return nt$1},set exports($){nt$1=$}};(function($,b){(function(j,U){$.exports=U()})(K$1,function(){var j=1e3,U=6e4,Bn=36e5,Fn="millisecond",qn="second",Wn="minute",Gn="hour",Yn="day",Qn="week",Zn="month",Jn="quarter",Kn="year",ea="date",Xn="Invalid Date",ta=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,na=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ra={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(sa){var aa=["th","st","nd","rd"],oa=sa%100;return"["+sa+(aa[(oa-20)%10]||aa[oa]||aa[0])+"]"}},ca=function(sa,aa,oa){var da=String(sa);return!da||da.length>=aa?sa:""+Array(aa+1-da.length).join(oa)+sa},pa={s:ca,z:function(sa){var aa=-sa.utcOffset(),oa=Math.abs(aa),da=Math.floor(oa/60),ua=oa%60;return(aa<=0?"+":"-")+ca(da,2,"0")+":"+ca(ua,2,"0")},m:function sa(aa,oa){if(aa.date()<oa.date())return-sa(oa,aa);var da=12*(oa.year()-aa.year())+(oa.month()-aa.month()),ua=aa.clone().add(da,Zn),ma=oa-ua<0,$a=aa.clone().add(da+(ma?-1:1),Zn);return+(-(da+(oa-ua)/(ma?ua-$a:$a-ua))||0)},a:function(sa){return sa<0?Math.ceil(sa)||0:Math.floor(sa)},p:function(sa){return{M:Zn,y:Kn,w:Qn,d:Yn,D:ea,h:Gn,m:Wn,s:qn,ms:Fn,Q:Jn}[sa]||String(sa||"").toLowerCase().replace(/s$/,"")},u:function(sa){return sa===void 0}},va="en",ga={};ga[va]=ra;var ia=function(sa){return sa instanceof Aa},la=function sa(aa,oa,da){var ua;if(!aa)return va;if(typeof aa=="string"){var ma=aa.toLowerCase();ga[ma]&&(ua=ma),oa&&(ga[ma]=oa,ua=ma);var $a=aa.split("-");if(!ua&&$a.length>1)return sa($a[0])}else{var wa=aa.name;ga[wa]=aa,ua=wa}return!da&&ua&&(va=ua),ua||!da&&va},ba=function(sa,aa){if(ia(sa))return sa.clone();var oa=typeof aa=="object"?aa:{};return oa.date=sa,oa.args=arguments,new Aa(oa)},Sa=pa;Sa.l=la,Sa.i=ia,Sa.w=function(sa,aa){return ba(sa,{locale:aa.$L,utc:aa.$u,x:aa.$x,$offset:aa.$offset})};var Aa=function(){function sa(oa){this.$L=la(oa.locale,null,!0),this.parse(oa)}var aa=sa.prototype;return aa.parse=function(oa){this.$d=function(da){var ua=da.date,ma=da.utc;if(ua===null)return new Date(NaN);if(Sa.u(ua))return new Date;if(ua instanceof Date)return new Date(ua);if(typeof ua=="string"&&!/Z$/i.test(ua)){var $a=ua.match(ta);if($a){var wa=$a[2]-1||0,Ea=($a[7]||"0").substring(0,3);return ma?new Date(Date.UTC($a[1],wa,$a[3]||1,$a[4]||0,$a[5]||0,$a[6]||0,Ea)):new Date($a[1],wa,$a[3]||1,$a[4]||0,$a[5]||0,$a[6]||0,Ea)}}return new Date(ua)}(oa),this.$x=oa.x||{},this.init()},aa.init=function(){var oa=this.$d;this.$y=oa.getFullYear(),this.$M=oa.getMonth(),this.$D=oa.getDate(),this.$W=oa.getDay(),this.$H=oa.getHours(),this.$m=oa.getMinutes(),this.$s=oa.getSeconds(),this.$ms=oa.getMilliseconds()},aa.$utils=function(){return Sa},aa.isValid=function(){return this.$d.toString()!==Xn},aa.isSame=function(oa,da){var ua=ba(oa);return this.startOf(da)<=ua&&ua<=this.endOf(da)},aa.isAfter=function(oa,da){return ba(oa)<this.startOf(da)},aa.isBefore=function(oa,da){return this.endOf(da)<ba(oa)},aa.$g=function(oa,da,ua){return Sa.u(oa)?this[da]:this.set(ua,oa)},aa.unix=function(){return Math.floor(this.valueOf()/1e3)},aa.valueOf=function(){return this.$d.getTime()},aa.startOf=function(oa,da){var ua=this,ma=!!Sa.u(da)||da,$a=Sa.p(oa),wa=function(za,Ba){var fa=Sa.w(ua.$u?Date.UTC(ua.$y,Ba,za):new Date(ua.$y,Ba,za),ua);return ma?fa:fa.endOf(Yn)},Ea=function(za,Ba){return Sa.w(ua.toDate()[za].apply(ua.toDate("s"),(ma?[0,0,0,0]:[23,59,59,999]).slice(Ba)),ua)},xa=this.$W,Pa=this.$M,Oa=this.$D,Da="set"+(this.$u?"UTC":"");switch($a){case Kn:return ma?wa(1,0):wa(31,11);case Zn:return ma?wa(1,Pa):wa(0,Pa+1);case Qn:var Ma=this.$locale().weekStart||0,Ra=(xa<Ma?xa+7:xa)-Ma;return wa(ma?Oa-Ra:Oa+(6-Ra),Pa);case Yn:case ea:return Ea(Da+"Hours",0);case Gn:return Ea(Da+"Minutes",1);case Wn:return Ea(Da+"Seconds",2);case qn:return Ea(Da+"Milliseconds",3);default:return this.clone()}},aa.endOf=function(oa){return this.startOf(oa,!1)},aa.$set=function(oa,da){var ua,ma=Sa.p(oa),$a="set"+(this.$u?"UTC":""),wa=(ua={},ua[Yn]=$a+"Date",ua[ea]=$a+"Date",ua[Zn]=$a+"Month",ua[Kn]=$a+"FullYear",ua[Gn]=$a+"Hours",ua[Wn]=$a+"Minutes",ua[qn]=$a+"Seconds",ua[Fn]=$a+"Milliseconds",ua)[ma],Ea=ma===Yn?this.$D+(da-this.$W):da;if(ma===Zn||ma===Kn){var xa=this.clone().set(ea,1);xa.$d[wa](Ea),xa.init(),this.$d=xa.set(ea,Math.min(this.$D,xa.daysInMonth())).$d}else wa&&this.$d[wa](Ea);return this.init(),this},aa.set=function(oa,da){return this.clone().$set(oa,da)},aa.get=function(oa){return this[Sa.p(oa)]()},aa.add=function(oa,da){var ua,ma=this;oa=Number(oa);var $a=Sa.p(da),wa=function(Pa){var Oa=ba(ma);return Sa.w(Oa.date(Oa.date()+Math.round(Pa*oa)),ma)};if($a===Zn)return this.set(Zn,this.$M+oa);if($a===Kn)return this.set(Kn,this.$y+oa);if($a===Yn)return wa(1);if($a===Qn)return wa(7);var Ea=(ua={},ua[Wn]=U,ua[Gn]=Bn,ua[qn]=j,ua)[$a]||1,xa=this.$d.getTime()+oa*Ea;return Sa.w(xa,this)},aa.subtract=function(oa,da){return this.add(-1*oa,da)},aa.format=function(oa){var da=this,ua=this.$locale();if(!this.isValid())return ua.invalidDate||Xn;var ma=oa||"YYYY-MM-DDTHH:mm:ssZ",$a=Sa.z(this),wa=this.$H,Ea=this.$m,xa=this.$M,Pa=ua.weekdays,Oa=ua.months,Da=function(Ba,fa,ha,Ca){return Ba&&(Ba[fa]||Ba(da,ma))||ha[fa].slice(0,Ca)},Ma=function(Ba){return Sa.s(wa%12||12,Ba,"0")},Ra=ua.meridiem||function(Ba,fa,ha){var Ca=Ba<12?"AM":"PM";return ha?Ca.toLowerCase():Ca},za={YY:String(this.$y).slice(-2),YYYY:this.$y,M:xa+1,MM:Sa.s(xa+1,2,"0"),MMM:Da(ua.monthsShort,xa,Oa,3),MMMM:Da(Oa,xa),D:this.$D,DD:Sa.s(this.$D,2,"0"),d:String(this.$W),dd:Da(ua.weekdaysMin,this.$W,Pa,2),ddd:Da(ua.weekdaysShort,this.$W,Pa,3),dddd:Pa[this.$W],H:String(wa),HH:Sa.s(wa,2,"0"),h:Ma(1),hh:Ma(2),a:Ra(wa,Ea,!0),A:Ra(wa,Ea,!1),m:String(Ea),mm:Sa.s(Ea,2,"0"),s:String(this.$s),ss:Sa.s(this.$s,2,"0"),SSS:Sa.s(this.$ms,3,"0"),Z:$a};return ma.replace(na,function(Ba,fa){return fa||za[Ba]||$a.replace(":","")})},aa.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},aa.diff=function(oa,da,ua){var ma,$a=Sa.p(da),wa=ba(oa),Ea=(wa.utcOffset()-this.utcOffset())*U,xa=this-wa,Pa=Sa.m(this,wa);return Pa=(ma={},ma[Kn]=Pa/12,ma[Zn]=Pa,ma[Jn]=Pa/3,ma[Qn]=(xa-Ea)/6048e5,ma[Yn]=(xa-Ea)/864e5,ma[Gn]=xa/Bn,ma[Wn]=xa/U,ma[qn]=xa/j,ma)[$a]||xa,ua?Pa:Sa.a(Pa)},aa.daysInMonth=function(){return this.endOf(Zn).$D},aa.$locale=function(){return ga[this.$L]},aa.locale=function(oa,da){if(!oa)return this.$L;var ua=this.clone(),ma=la(oa,da,!0);return ma&&(ua.$L=ma),ua},aa.clone=function(){return Sa.w(this.$d,this)},aa.toDate=function(){return new Date(this.valueOf())},aa.toJSON=function(){return this.isValid()?this.toISOString():null},aa.toISOString=function(){return this.$d.toISOString()},aa.toString=function(){return this.$d.toUTCString()},sa}(),ka=Aa.prototype;return ba.prototype=ka,[["$ms",Fn],["$s",qn],["$m",Wn],["$H",Gn],["$W",Yn],["$M",Zn],["$y",Kn],["$D",ea]].forEach(function(sa){ka[sa[1]]=function(aa){return this.$g(aa,sa[0],sa[1])}}),ba.extend=function(sa,aa){return sa.$i||(sa(aa,Aa,ba),sa.$i=!0),ba},ba.locale=la,ba.isDayjs=ia,ba.unix=function(sa){return ba(1e3*sa)},ba.en=ga[va],ba.Ls=ga,ba.p={},ba})})(qt$1);var R$1=nt$1,it$1={},Qt$1={get exports(){return it$1},set exports($){it$1=$}};(function($,b){(function(j,U){$.exports=U()})(K$1,function(){return function(j,U,Bn){var Fn=U.prototype,qn=function(Jn){var Kn,ea=Jn.date,Xn=Jn.utc,ta={};if(!((Kn=ea)instanceof Date||Kn instanceof Array||Fn.$utils().u(Kn)||Kn.constructor.name!=="Object")){if(!Object.keys(ea).length)return new Date;var na=Xn?Bn.utc():Bn();Object.keys(ea).forEach(function(ba){var Sa,Aa;ta[Sa=ba,Aa=Fn.$utils().p(Sa),Aa==="date"?"day":Aa]=ea[ba]});var ra=ta.day||(ta.year||ta.month>=0?1:na.date()),ca=ta.year||na.year(),pa=ta.month>=0?ta.month:ta.year||ta.day?0:na.month(),va=ta.hour||0,ga=ta.minute||0,ia=ta.second||0,la=ta.millisecond||0;return Xn?new Date(Date.UTC(ca,pa,ra,va,ga,ia,la)):new Date(ca,pa,ra,va,ga,ia,la)}return ea},Wn=Fn.parse;Fn.parse=function(Jn){Jn.date=qn.bind(this)(Jn),Wn.bind(this)(Jn)};var Gn=Fn.set,Yn=Fn.add,Qn=Fn.subtract,Zn=function(Jn,Kn,ea,Xn){Xn===void 0&&(Xn=1);var ta=Object.keys(Kn),na=this;return ta.forEach(function(ra){na=Jn.bind(na)(Kn[ra]*Xn,ra)}),na};Fn.set=function(Jn,Kn){return Kn=Kn===void 0?Jn:Kn,Jn.constructor.name==="Object"?Zn.bind(this)(function(ea,Xn){return Gn.bind(this)(Xn,ea)},Kn,Jn):Gn.bind(this)(Jn,Kn)},Fn.add=function(Jn,Kn){return Jn.constructor.name==="Object"?Zn.bind(this)(Yn,Jn,Kn):Yn.bind(this)(Jn,Kn)},Fn.subtract=function(Jn,Kn){return Jn.constructor.name==="Object"?Zn.bind(this)(Yn,Jn,Kn,-1):Qn.bind(this)(Jn,Kn)}}})})(Qt$1);var Kt$1=it$1,rt$1={},Xt$1={get exports(){return rt$1},set exports($){rt$1=$}};(function($,b){(function(j,U){$.exports=U()})(K$1,function(){var j={year:0,month:1,day:2,hour:3,minute:4,second:5},U={};return function(Bn,Fn,qn){var Wn,Gn=function(Jn,Kn,ea){ea===void 0&&(ea={});var Xn=new Date(Jn),ta=function(na,ra){ra===void 0&&(ra={});var ca=ra.timeZoneName||"short",pa=na+"|"+ca,va=U[pa];return va||(va=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:na,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:ca}),U[pa]=va),va}(Kn,ea);return ta.formatToParts(Xn)},Yn=function(Jn,Kn){for(var ea=Gn(Jn,Kn),Xn=[],ta=0;ta<ea.length;ta+=1){var na=ea[ta],ra=na.type,ca=na.value,pa=j[ra];pa>=0&&(Xn[pa]=parseInt(ca,10))}var va=Xn[3],ga=va===24?0:va,ia=Xn[0]+"-"+Xn[1]+"-"+Xn[2]+" "+ga+":"+Xn[4]+":"+Xn[5]+":000",la=+Jn;return(qn.utc(ia).valueOf()-(la-=la%1e3))/6e4},Qn=Fn.prototype;Qn.tz=function(Jn,Kn){Jn===void 0&&(Jn=Wn);var ea=this.utcOffset(),Xn=this.toDate(),ta=Xn.toLocaleString("en-US",{timeZone:Jn}),na=Math.round((Xn-new Date(ta))/1e3/60),ra=qn(ta).$set("millisecond",this.$ms).utcOffset(15*-Math.round(Xn.getTimezoneOffset()/15)-na,!0);if(Kn){var ca=ra.utcOffset();ra=ra.add(ea-ca,"minute")}return ra.$x.$timezone=Jn,ra},Qn.offsetName=function(Jn){var Kn=this.$x.$timezone||qn.tz.guess(),ea=Gn(this.valueOf(),Kn,{timeZoneName:Jn}).find(function(Xn){return Xn.type.toLowerCase()==="timezonename"});return ea&&ea.value};var Zn=Qn.startOf;Qn.startOf=function(Jn,Kn){if(!this.$x||!this.$x.$timezone)return Zn.call(this,Jn,Kn);var ea=qn(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return Zn.call(ea,Jn,Kn).tz(this.$x.$timezone,!0)},qn.tz=function(Jn,Kn,ea){var Xn=ea&&Kn,ta=ea||Kn||Wn,na=Yn(+qn(),ta);if(typeof Jn!="string")return qn(Jn).tz(ta);var ra=function(ga,ia,la){var ba=ga-60*ia*1e3,Sa=Yn(ba,la);if(ia===Sa)return[ba,ia];var Aa=Yn(ba-=60*(Sa-ia)*1e3,la);return Sa===Aa?[ba,Sa]:[ga-60*Math.min(Sa,Aa)*1e3,Math.max(Sa,Aa)]}(qn.utc(Jn,Xn).valueOf(),na,ta),ca=ra[0],pa=ra[1],va=qn(ca).utcOffset(pa);return va.$x.$timezone=ta,va},qn.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},qn.tz.setDefault=function(Jn){Wn=Jn}}})})(Xt$1);var te$1=rt$1,st$1={},ee$1={get exports(){return st$1},set exports($){st$1=$}};(function($,b){(function(j,U){$.exports=U()})(K$1,function(){var j="minute",U=/[+-]\d\d(?::?\d\d)?/g,Bn=/([+-]|\d\d)/g;return function(Fn,qn,Wn){var Gn=qn.prototype;Wn.utc=function(Xn){var ta={date:Xn,utc:!0,args:arguments};return new qn(ta)},Gn.utc=function(Xn){var ta=Wn(this.toDate(),{locale:this.$L,utc:!0});return Xn?ta.add(this.utcOffset(),j):ta},Gn.local=function(){return Wn(this.toDate(),{locale:this.$L,utc:!1})};var Yn=Gn.parse;Gn.parse=function(Xn){Xn.utc&&(this.$u=!0),this.$utils().u(Xn.$offset)||(this.$offset=Xn.$offset),Yn.call(this,Xn)};var Qn=Gn.init;Gn.init=function(){if(this.$u){var Xn=this.$d;this.$y=Xn.getUTCFullYear(),this.$M=Xn.getUTCMonth(),this.$D=Xn.getUTCDate(),this.$W=Xn.getUTCDay(),this.$H=Xn.getUTCHours(),this.$m=Xn.getUTCMinutes(),this.$s=Xn.getUTCSeconds(),this.$ms=Xn.getUTCMilliseconds()}else Qn.call(this)};var Zn=Gn.utcOffset;Gn.utcOffset=function(Xn,ta){var na=this.$utils().u;if(na(Xn))return this.$u?0:na(this.$offset)?Zn.call(this):this.$offset;if(typeof Xn=="string"&&(Xn=function(va){va===void 0&&(va="");var ga=va.match(U);if(!ga)return null;var ia=(""+ga[0]).match(Bn)||["-",0,0],la=ia[0],ba=60*+ia[1]+ +ia[2];return ba===0?0:la==="+"?ba:-ba}(Xn),Xn===null))return this;var ra=Math.abs(Xn)<=16?60*Xn:Xn,ca=this;if(ta)return ca.$offset=ra,ca.$u=Xn===0,ca;if(Xn!==0){var pa=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(ca=this.local().add(ra+pa,j)).$offset=ra,ca.$x.$localOffset=pa}else ca=this.utc();return ca};var Jn=Gn.format;Gn.format=function(Xn){var ta=Xn||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return Jn.call(this,ta)},Gn.valueOf=function(){var Xn=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*Xn},Gn.isUTC=function(){return!!this.$u},Gn.toISOString=function(){return this.toDate().toISOString()},Gn.toString=function(){return this.toDate().toUTCString()};var Kn=Gn.toDate;Gn.toDate=function(Xn){return Xn==="s"&&this.$offset?Wn(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():Kn.call(this)};var ea=Gn.diff;Gn.diff=function(Xn,ta,na){if(Xn&&this.$u===Xn.$u)return ea.call(this,Xn,ta,na);var ra=this.local(),ca=Wn(Xn).local();return ea.call(ra,ca,ta,na)}}})})(ee$1);var ne$1=st$1;R$1.extend(Kt$1),R$1.extend(ne$1),R$1.extend(te$1);const ot$1=($,b)=>{if($){if(R$1($ instanceof Date?$:$.trim()).isValid()){const U=b?R$1($).tz(b):R$1($),Bn=U.year(),Fn=U.month()+1,qn=U.date(),Wn=U.hour(),Gn=U.minute(),Yn=U.second(),Qn=U.millisecond(),Zn=Wn===0&&Gn===0&&Yn===0&&Qn===0;return{value:U.toDate(),info:{year:Bn,month:Fn,day:qn,...Zn?{}:{hour:Wn,minute:Gn,second:Yn}},type:Zn?"date":"full"}}const j=/(?:(\d{2,4})[/-](\d{1,2})[/-](\d{1,2}))?\s*(?:(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?)?/u.exec($.trim());if(j){const[,U,Bn,Fn,qn,Wn,Gn]=j,Yn=ta=>typeof ta>"u"?void 0:Number(ta),Qn=ta=>ta&&ta<100?ta+2e3:ta,Zn=ta=>qn&&Wn&&!Gn?0:ta,Jn={year:Qn(Yn(U)),month:Yn(Bn),day:Yn(Fn),hour:Yn(qn),minute:Yn(Wn),second:Zn(Yn(Gn))},Kn=U===void 0&&Bn===void 0&&Fn===void 0,ea=qn===void 0&&Wn===void 0&&Gn===void 0,Xn=R$1({...Jn,month:Jn.month-1}).toDate();return{value:Kn?void 0:Xn,info:ea?{year:Jn.year,month:Jn.month,day:Jn.day}:Kn?{hour:Jn.hour,minute:Jn.minute,second:Jn.second}:Jn,type:Kn?"time":ea?"date":"full"}}}return null},at$1=($,...b)=>{if(b.length===0)return $;const j=b.shift()||null;return j&&Object.entries(j).forEach(([U,Bn])=>{U==="__proto__"||U==="constructor"||(isPlainObject($[U])&&isPlainObject(Bn)?at$1($[U],Bn):isArray(Bn)?$[U]=[...Bn]:isPlainObject(Bn)?$[U]={...Bn}:$[U]=j[U])}),at$1($,...b)},re$1=($,b=!1)=>$?isArray($)?$.map(j=>isString$1(j)?{name:j}:j):isString$1($)?[{name:$}]:isPlainObject($)&&$.name?[$]:(console.error(`Expect "author" to be \`AuthorInfo[] | AuthorInfo | string[] | string ${b?"":"| false"} | undefined\`, but got`,$),[]):[],ut$1=($,b)=>{if($){if(isArray($))return $;if(isString$1($))return[$];console.error(`Expect ${b||"value"} to be \`string[] | string | undefined\`, but got`,$)}return[]},se$1=$=>ut$1($,"category"),oe$1=$=>ut$1($,"tag"),ue$1=$=>isString$1($)&&$.startsWith("/");var _a;const isClient=typeof window<"u",isFunction=$=>typeof $=="function",isString=$=>typeof $=="string",noop=()=>{};isClient&&((_a=window==null?void 0:window.navigator)!=null&&_a.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function resolveUnref($){return typeof $=="function"?$():unref($)}function createFilterWrapper($,b){function j(...U){return new Promise((Bn,Fn)=>{Promise.resolve($(()=>b.apply(this,U),{fn:b,thisArg:this,args:U})).then(Bn).catch(Fn)})}return j}const bypassFilter=$=>$();function debounceFilter($,b={}){let j,U,Bn=noop;const Fn=Wn=>{clearTimeout(Wn),Bn(),Bn=noop};return Wn=>{const Gn=resolveUnref($),Yn=resolveUnref(b.maxWait);return j&&Fn(j),Gn<=0||Yn!==void 0&&Yn<=0?(U&&(Fn(U),U=null),Promise.resolve(Wn())):new Promise((Qn,Zn)=>{Bn=b.rejectOnCancel?Zn:Qn,Yn&&!U&&(U=setTimeout(()=>{j&&Fn(j),U=null,Qn(Wn())},Yn)),j=setTimeout(()=>{U&&Fn(U),U=null,Qn(Wn())},Gn)})}}function throttleFilter($,b=!0,j=!0,U=!1){let Bn=0,Fn,qn=!0,Wn=noop,Gn;const Yn=()=>{Fn&&(clearTimeout(Fn),Fn=void 0,Wn(),Wn=noop)};return Zn=>{const Jn=resolveUnref($),Kn=Date.now()-Bn,ea=()=>Gn=Zn();if(Yn(),Jn<=0)return Bn=Date.now(),ea();if(Kn>Jn&&(j||!qn))Bn=Date.now(),ea();else if(b)return new Promise((Xn,ta)=>{Wn=U?ta:Xn,Fn=setTimeout(()=>{Bn=Date.now(),qn=!0,Xn(ea()),Yn()},Jn-Kn)});return!j&&!Fn&&(Fn=setTimeout(()=>qn=!0,Jn)),qn=!1,Gn}}function pausableFilter($=bypassFilter){const b=ref(!0);function j(){b.value=!1}function U(){b.value=!0}return{isActive:b,pause:j,resume:U,eventFilter:(...Fn)=>{b.value&&$(...Fn)}}}function identity($){return $}function tryOnScopeDispose($){return getCurrentScope()?(onScopeDispose($),!0):!1}function useDebounceFn($,b=200,j={}){return createFilterWrapper(debounceFilter(b,j),$)}function useThrottleFn($,b=200,j=!1,U=!0,Bn=!1){return createFilterWrapper(throttleFilter(b,j,U,Bn),$)}function resolveRef($){return typeof $=="function"?computed($):ref($)}function tryOnMounted($,b=!0){getCurrentInstance()?onMounted($):b?$():nextTick($)}function useIntervalFn($,b=1e3,j={}){const{immediate:U=!0,immediateCallback:Bn=!1}=j;let Fn=null;const qn=ref(!1);function Wn(){Fn&&(clearInterval(Fn),Fn=null)}function Gn(){qn.value=!1,Wn()}function Yn(){unref(b)<=0||(qn.value=!0,Bn&&$(),Wn(),Fn=setInterval($,resolveUnref(b)))}if(U&&isClient&&Yn(),isRef(b)||isFunction(b)){const Qn=watch(b,()=>{qn.value&&isClient&&Yn()});tryOnScopeDispose(Qn)}return tryOnScopeDispose(Gn),{isActive:qn,pause:Gn,resume:Yn}}var __getOwnPropSymbols$6$1=Object.getOwnPropertySymbols,__hasOwnProp$6$1=Object.prototype.hasOwnProperty,__propIsEnum$6$1=Object.prototype.propertyIsEnumerable,__objRest$5=($,b)=>{var j={};for(var U in $)__hasOwnProp$6$1.call($,U)&&b.indexOf(U)<0&&(j[U]=$[U]);if($!=null&&__getOwnPropSymbols$6$1)for(var U of __getOwnPropSymbols$6$1($))b.indexOf(U)<0&&__propIsEnum$6$1.call($,U)&&(j[U]=$[U]);return j};function watchWithFilter($,b,j={}){const U=j,{eventFilter:Bn=bypassFilter}=U,Fn=__objRest$5(U,["eventFilter"]);return watch($,createFilterWrapper(Bn,b),Fn)}var __defProp$2=Object.defineProperty,__defProps$2=Object.defineProperties,__getOwnPropDescs$2=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$2=Object.getOwnPropertySymbols,__hasOwnProp$2=Object.prototype.hasOwnProperty,__propIsEnum$2=Object.prototype.propertyIsEnumerable,__defNormalProp$2=($,b,j)=>b in $?__defProp$2($,b,{enumerable:!0,configurable:!0,writable:!0,value:j}):$[b]=j,__spreadValues$2=($,b)=>{for(var j in b||(b={}))__hasOwnProp$2.call(b,j)&&__defNormalProp$2($,j,b[j]);if(__getOwnPropSymbols$2)for(var j of __getOwnPropSymbols$2(b))__propIsEnum$2.call(b,j)&&__defNormalProp$2($,j,b[j]);return $},__spreadProps$2=($,b)=>__defProps$2($,__getOwnPropDescs$2(b)),__objRest$1=($,b)=>{var j={};for(var U in $)__hasOwnProp$2.call($,U)&&b.indexOf(U)<0&&(j[U]=$[U]);if($!=null&&__getOwnPropSymbols$2)for(var U of __getOwnPropSymbols$2($))b.indexOf(U)<0&&__propIsEnum$2.call($,U)&&(j[U]=$[U]);return j};function watchPausable($,b,j={}){const U=j,{eventFilter:Bn}=U,Fn=__objRest$1(U,["eventFilter"]),{eventFilter:qn,pause:Wn,resume:Gn,isActive:Yn}=pausableFilter(Bn);return{stop:watchWithFilter($,b,__spreadProps$2(__spreadValues$2({},Fn),{eventFilter:qn})),pause:Wn,resume:Gn,isActive:Yn}}function unrefElement($){var b;const j=resolveUnref($);return(b=j==null?void 0:j.$el)!=null?b:j}const defaultWindow=isClient?window:void 0,defaultDocument=isClient?window.document:void 0;isClient&&window.navigator;isClient&&window.location;function useEventListener(...$){let b,j,U,Bn;if(isString($[0])||Array.isArray($[0])?([j,U,Bn]=$,b=defaultWindow):[b,j,U,Bn]=$,!b)return noop;Array.isArray(j)||(j=[j]),Array.isArray(U)||(U=[U]);const Fn=[],qn=()=>{Fn.forEach(Qn=>Qn()),Fn.length=0},Wn=(Qn,Zn,Jn)=>(Qn.addEventListener(Zn,Jn,Bn),()=>Qn.removeEventListener(Zn,Jn,Bn)),Gn=watch(()=>unrefElement(b),Qn=>{qn(),Qn&&Fn.push(...j.flatMap(Zn=>U.map(Jn=>Wn(Qn,Zn,Jn))))},{immediate:!0,flush:"post"}),Yn=()=>{Gn(),qn()};return tryOnScopeDispose(Yn),Yn}function onClickOutside($,b,j={}){const{window:U=defaultWindow,ignore:Bn=[],capture:Fn=!0,detectIframe:qn=!1}=j;if(!U)return;let Wn=!0,Gn;const Yn=Kn=>Bn.some(ea=>{if(typeof ea=="string")return Array.from(U.document.querySelectorAll(ea)).some(Xn=>Xn===Kn.target||Kn.composedPath().includes(Xn));{const Xn=unrefElement(ea);return Xn&&(Kn.target===Xn||Kn.composedPath().includes(Xn))}}),Qn=Kn=>{U.clearTimeout(Gn);const ea=unrefElement($);if(!(!ea||ea===Kn.target||Kn.composedPath().includes(ea))){if(Kn.detail===0&&(Wn=!Yn(Kn)),!Wn){Wn=!0;return}b(Kn)}},Zn=[useEventListener(U,"click",Qn,{passive:!0,capture:Fn}),useEventListener(U,"pointerdown",Kn=>{const ea=unrefElement($);ea&&(Wn=!Kn.composedPath().includes(ea)&&!Yn(Kn))},{passive:!0}),useEventListener(U,"pointerup",Kn=>{if(Kn.button===0){const ea=Kn.composedPath();Kn.composedPath=()=>ea,Gn=U.setTimeout(()=>Qn(Kn),50)}},{passive:!0}),qn&&useEventListener(U,"blur",Kn=>{var ea;const Xn=unrefElement($);((ea=U.document.activeElement)==null?void 0:ea.tagName)==="IFRAME"&&!(Xn!=null&&Xn.contains(U.document.activeElement))&&b(Kn)})].filter(Boolean);return()=>Zn.forEach(Kn=>Kn())}function useSupported($,b=!1){const j=ref(),U=()=>j.value=Boolean($());return U(),tryOnMounted(U,b),j}function useMediaQuery($,b={}){const{window:j=defaultWindow}=b,U=useSupported(()=>j&&"matchMedia"in j&&typeof j.matchMedia=="function");let Bn;const Fn=ref(!1),qn=()=>{Bn&&("removeEventListener"in Bn?Bn.removeEventListener("change",Wn):Bn.removeListener(Wn))},Wn=()=>{U.value&&(qn(),Bn=j.matchMedia(resolveRef($).value),Fn.value=Bn.matches,"addEventListener"in Bn?Bn.addEventListener("change",Wn):Bn.addListener(Wn))};return watchEffect(Wn),tryOnScopeDispose(()=>qn()),Fn}const _global=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__";_global[globalKey]=_global[globalKey]||{};const handlers=_global[globalKey];function getSSRHandler($,b){return handlers[$]||b}function guessSerializerType($){return $==null?"any":$ instanceof Set?"set":$ instanceof Map?"map":$ instanceof Date?"date":typeof $=="boolean"?"boolean":typeof $=="string"?"string":typeof $=="object"?"object":Number.isNaN($)?"any":"number"}var __defProp$j=Object.defineProperty,__getOwnPropSymbols$l=Object.getOwnPropertySymbols,__hasOwnProp$l=Object.prototype.hasOwnProperty,__propIsEnum$l=Object.prototype.propertyIsEnumerable,__defNormalProp$j=($,b,j)=>b in $?__defProp$j($,b,{enumerable:!0,configurable:!0,writable:!0,value:j}):$[b]=j,__spreadValues$j=($,b)=>{for(var j in b||(b={}))__hasOwnProp$l.call(b,j)&&__defNormalProp$j($,j,b[j]);if(__getOwnPropSymbols$l)for(var j of __getOwnPropSymbols$l(b))__propIsEnum$l.call(b,j)&&__defNormalProp$j($,j,b[j]);return $};const StorageSerializers={boolean:{read:$=>$==="true",write:$=>String($)},object:{read:$=>JSON.parse($),write:$=>JSON.stringify($)},number:{read:$=>Number.parseFloat($),write:$=>String($)},any:{read:$=>$,write:$=>String($)},string:{read:$=>$,write:$=>String($)},map:{read:$=>new Map(JSON.parse($)),write:$=>JSON.stringify(Array.from($.entries()))},set:{read:$=>new Set(JSON.parse($)),write:$=>JSON.stringify(Array.from($))},date:{read:$=>new Date($),write:$=>$.toISOString()}};function useStorage($,b,j,U={}){var Bn;const{flush:Fn="pre",deep:qn=!0,listenToStorageChanges:Wn=!0,writeDefaults:Gn=!0,mergeDefaults:Yn=!1,shallow:Qn,window:Zn=defaultWindow,eventFilter:Jn,onError:Kn=ia=>{console.error(ia)}}=U,ea=(Qn?shallowRef:ref)(b);if(!j)try{j=getSSRHandler("getDefaultStorage",()=>{var ia;return(ia=defaultWindow)==null?void 0:ia.localStorage})()}catch(ia){Kn(ia)}if(!j)return ea;const Xn=resolveUnref(b),ta=guessSerializerType(Xn),na=(Bn=U.serializer)!=null?Bn:StorageSerializers[ta],{pause:ra,resume:ca}=watchPausable(ea,()=>pa(ea.value),{flush:Fn,deep:qn,eventFilter:Jn});return Zn&&Wn&&useEventListener(Zn,"storage",ga),ga(),ea;function pa(ia){try{if(ia==null)j.removeItem($);else{const la=na.write(ia),ba=j.getItem($);ba!==la&&(j.setItem($,la),Zn&&(Zn==null||Zn.dispatchEvent(new StorageEvent("storage",{key:$,oldValue:ba,newValue:la,storageArea:j}))))}}catch(la){Kn(la)}}function va(ia){const la=ia?ia.newValue:j.getItem($);if(la==null)return Gn&&Xn!==null&&j.setItem($,na.write(Xn)),Xn;if(!ia&&Yn){const ba=na.read(la);return isFunction(Yn)?Yn(ba,Xn):ta==="object"&&!Array.isArray(ba)?__spreadValues$j(__spreadValues$j({},Xn),ba):ba}else return typeof la!="string"?la:na.read(la)}function ga(ia){if(!(ia&&ia.storageArea!==j)){if(ia&&ia.key==null){ea.value=Xn;return}if(!(ia&&ia.key!==$)){ra();try{ea.value=va(ia)}catch(la){Kn(la)}finally{ia?nextTick(ca):ca()}}}}}function usePreferredDark($){return useMediaQuery("(prefers-color-scheme: dark)",$)}function useRafFn($,b={}){const{immediate:j=!0,window:U=defaultWindow}=b,Bn=ref(!1);let Fn=0,qn=null;function Wn(Qn){if(!Bn.value||!U)return;const Zn=Qn-Fn;$({delta:Zn,timestamp:Qn}),Fn=Qn,qn=U.requestAnimationFrame(Wn)}function Gn(){!Bn.value&&U&&(Bn.value=!0,qn=U.requestAnimationFrame(Wn))}function Yn(){Bn.value=!1,qn!=null&&U&&(U.cancelAnimationFrame(qn),qn=null)}return j&&Gn(),tryOnScopeDispose(Yn),{isActive:Bn,pause:Yn,resume:Gn}}const functionsMap=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];function useFullscreen($,b={}){const{document:j=defaultDocument,autoExit:U=!1}=b,Bn=$||(j==null?void 0:j.querySelector("html")),Fn=ref(!1);let qn=functionsMap[0];const Wn=useSupported(()=>{if(j){for(const Xn of functionsMap)if(Xn[1]in j)return qn=Xn,!0}else return!1;return!1}),[Gn,Yn,Qn,,Zn]=qn;async function Jn(){Wn.value&&(j!=null&&j[Qn]&&await j[Yn](),Fn.value=!1)}async function Kn(){if(!Wn.value)return;await Jn();const Xn=unrefElement(Bn);Xn&&(await Xn[Gn](),Fn.value=!0)}async function ea(){Fn.value?await Jn():await Kn()}return j&&useEventListener(j,Zn,()=>{Fn.value=!!(j!=null&&j[Qn])},!1),U&&tryOnScopeDispose(Jn),{isSupported:Wn,isFullscreen:Fn,enter:Kn,exit:Jn,toggle:ea}}function useLocalStorage($,b,j={}){const{window:U=defaultWindow}=j;return useStorage($,b,U==null?void 0:U.localStorage,j)}var __defProp$6=Object.defineProperty,__getOwnPropSymbols$6=Object.getOwnPropertySymbols,__hasOwnProp$6=Object.prototype.hasOwnProperty,__propIsEnum$6=Object.prototype.propertyIsEnumerable,__defNormalProp$6=($,b,j)=>b in $?__defProp$6($,b,{enumerable:!0,configurable:!0,writable:!0,value:j}):$[b]=j,__spreadValues$6=($,b)=>{for(var j in b||(b={}))__hasOwnProp$6.call(b,j)&&__defNormalProp$6($,j,b[j]);if(__getOwnPropSymbols$6)for(var j of __getOwnPropSymbols$6(b))__propIsEnum$6.call(b,j)&&__defNormalProp$6($,j,b[j]);return $};function useNow($={}){const{controls:b=!1,interval:j="requestAnimationFrame"}=$,U=ref(new Date),Bn=()=>U.value=new Date,Fn=j==="requestAnimationFrame"?useRafFn(Bn,{immediate:!0}):useIntervalFn(Bn,j,{immediate:!0});return b?__spreadValues$6({now:U},Fn):U}var SwipeDirection;(function($){$.UP="UP",$.RIGHT="RIGHT",$.DOWN="DOWN",$.LEFT="LEFT",$.NONE="NONE"})(SwipeDirection||(SwipeDirection={}));let _id=0;function useStyleTag($,b={}){const j=ref(!1),{document:U=defaultDocument,immediate:Bn=!0,manual:Fn=!1,id:qn=`vueuse_styletag_${++_id}`}=b,Wn=ref($);let Gn=()=>{};const Yn=()=>{if(!U)return;const Zn=U.getElementById(qn)||U.createElement("style");Zn.isConnected||(Zn.type="text/css",Zn.id=qn,b.media&&(Zn.media=b.media),U.head.appendChild(Zn)),!j.value&&(Gn=watch(Wn,Jn=>{Zn.textContent=Jn},{immediate:!0}),j.value=!0)},Qn=()=>{!U||!j.value||(Gn(),U.head.removeChild(U.getElementById(qn)),j.value=!1)};return Bn&&!Fn&&tryOnMounted(Yn),Fn||tryOnScopeDispose(Qn),{id:qn,css:Wn,unload:Qn,load:Yn,isLoaded:readonly(j)}}var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=($,b,j)=>b in $?__defProp($,b,{enumerable:!0,configurable:!0,writable:!0,value:j}):$[b]=j,__spreadValues=($,b)=>{for(var j in b||(b={}))__hasOwnProp.call(b,j)&&__defNormalProp($,j,b[j]);if(__getOwnPropSymbols)for(var j of __getOwnPropSymbols(b))__propIsEnum.call(b,j)&&__defNormalProp($,j,b[j]);return $};const _TransitionPresets={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};__spreadValues({linear:identity},_TransitionPresets);const fontIcon="";var s$3=defineComponent({name:"FontIcon",props:{icon:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""}},setup($){const b=computed(()=>{const j={};return $.color&&(j.color=$.color),$.size&&(j["font-size"]=Number.isNaN(Number($.size))?$.size:`${$.size}px`),Object.keys(j).length?j:null});return()=>$.icon?h$3("span",{class:["font-icon icon",`iconfont icon-${$.icon}`],style:b.value}):null}});const catalog="";var f$1=defineComponent({name:"FontIcon",props:{icon:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""}},setup($){const b=computed(()=>{const j={};return $.color&&(j.color=$.color),$.size&&(j["font-size"]=Number.isNaN(Number($.size))?$.size:`${$.size}px`),Object.keys(j).length?j:null});return()=>$.icon?h$3("span",{class:["font-icon icon",`iconfont icon-${$.icon}`],style:b.value}):null}}),S$6=defineComponent({name:"Catalog",props:{base:{type:String,default:""},level:{type:Number,default:3},titleGetter:{type:Function,default:$=>$.title},iconGetter:{type:Function,default:$=>$.icon},orderGetter:{type:Function,default:$=>$.order||0},shouldIndex:{type:Function,default:$=>$.index!==!1}},setup($){const b=kt$1({"/en/":{title:"Catalog"},"/":{title:"目录"}}),j=useRoute(),U=useRouter(),Bn=useSiteData(),Fn=()=>{const Wn=$.base||j.path.replace(/\/[^/]+$/,"/"),Gn=U.getRoutes(),Yn=[];return Gn.filter(({meta:Qn,path:Zn})=>{if(!Zn.startsWith(Wn)||Zn===Wn)return!1;if(Wn==="/"){const Jn=Object.keys(Bn.value.locales).filter(Kn=>Kn!=="/");if(Zn==="/404.html"||Jn.some(Kn=>Zn.startsWith(Kn)))return!1}return(Zn.endsWith(".html")&&!Zn.endsWith("/index.html")||Zn.endsWith("/"))&&$.shouldIndex(Qn)}).map(({path:Qn,meta:Zn})=>{const Jn=Qn.substring(Wn.length).split("/").length;return{title:$.titleGetter(Zn),icon:$.iconGetter(Zn),base:Qn.replace(/\/[^/]+\/?$/,"/"),order:$.orderGetter(Zn),level:Qn.endsWith("/")?Jn-1:Jn,path:Qn}}).filter(({title:Qn,level:Zn})=>Zn<=$.level||!Qn).sort((Qn,Zn)=>Qn.level-Zn.level||(Qn.path.endsWith("/index.html")?-1:Zn.path.endsWith("/index.html")?1:Qn.order===null?Zn.order===null?Qn.title.localeCompare(Zn.title):Zn.order:Zn.order===null?Qn.order:Qn.order>0?Zn.order>0?Qn.order-Zn.order:-1:Zn.order<0?Qn.order-Zn.order:1)).forEach(Qn=>{var Zn;const{base:Jn,level:Kn}=Qn;switch(Kn){case 1:Yn.push(Qn);break;case 2:{const ea=Yn.find(Xn=>Xn.path===Jn);ea&&(ea.children??(ea.children=[])).push(Qn);break}default:{const ea=Yn.find(Xn=>Xn.path===Jn.replace(/\/[^/]+\/$/,"/"));if(ea){const Xn=(Zn=ea.children)==null?void 0:Zn.find(ta=>ta.path===Jn);Xn&&(Xn.children??(Xn.children=[])).push(Qn)}}}}),Yn},qn=computed(()=>Fn());return()=>h$3("div",{class:"catalog-wrapper"},[h$3("h2",{class:"main-title"},b.value.title),...qn.value.map(({children:Wn=[],icon:Gn,path:Yn,title:Qn},Zn)=>[h$3("h3",{id:Qn,class:["child-title",{"has-children":Wn.length}]},[h$3("a",{href:`#${Qn}`,class:"header-anchor"},"#"),h$3(RouterLink,{class:"catalog-title",to:Yn},()=>[Gn?h$3(f$1,{icon:Gn}):null,`${Zn+1}. ${Qn||"Unknown"}`])]),Wn.length?h$3("ul",{class:"child-catalog-wrapper"},Wn.map(({children:Jn=[],icon:Kn,path:ea,title:Xn},ta)=>h$3("li",{class:"child-catalog-item"},[h$3("div",{class:["sub-title",{"has-children":Jn.length}]},[h$3("a",{href:`#${Xn}`,class:"header-anchor"},"#"),h$3(RouterLink,{class:"catalog-title",to:ea},()=>[Kn?h$3(f$1,{icon:Kn}):null,`${Zn+1}.${ta+1} ${Xn||"Unknown"}`])]),Jn.length?h$3("div",{class:"sub-catalog-wrapper"},Jn.map(({icon:na,path:ra,title:ca},pa)=>h$3(RouterLink,{class:"sub-catalog-item",to:ra},()=>[na?h$3(f$1,{icon:na}):null,`${Zn+1}.${ta+1}.${pa+1} ${ca||"Unknown"}`]))):null]))):null])])}});const Catalog=Object.freeze(Object.defineProperty({__proto__:null,default:S$6},Symbol.toStringTag,{value:"Module"})),badge="",t$3=({type:$="info",text:b="",vertical:j="top",color:U},{slots:Bn})=>{var Fn;return h$3("span",{class:["badge",$,{diy:U}],style:{verticalAlign:j,...U?{backgroundColor:U}:{}}},b||((Fn=Bn.default)==null?void 0:Fn.call(Bn)))};t$3.displayName="Badge";const biliBili="",v$2=$=>isString$1($)?$:`${$}px`,B$2=($,b=0)=>{const j=ref(),U=computed(()=>v$2(unref($.width)||"100%")),Bn=ref("auto"),Fn=Gn=>{if(isString$1(Gn)){const[Yn,Qn]=Gn.split(":"),Zn=Number(Yn)/Number(Qn);if(!Number.isNaN(Zn))return Zn}return typeof Gn=="number"?Gn:16/9},qn=Gn=>{const Yn=unref($.height),Qn=Fn(unref($.ratio));return Yn?v$2(Yn):`${Number(Gn)/Qn+unref(b)}px`},Wn=()=>{j.value&&(Bn.value=qn(j.value.clientWidth))};return onMounted(()=>{Wn(),isRef(b)&&watch(b,()=>Wn()),useEventListener("orientationchange",()=>Wn()),useEventListener("resize",()=>Wn())}),{el:j,width:U,height:Bn}};var k$5=defineComponent({name:"BiliBili",props:{bvid:{type:String,required:!0},title:{type:String,default:"A BiliBili video"},page:{type:[String,Number],default:1},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:void 0},ratio:{type:[String,Number],default:16/9},time:{type:[String,Number],default:0},lowQuality:Boolean,noDanmaku:Boolean},setup($){const b=ref(!1),j=computed(()=>b.value?0:68),U=()=>{b.value=Ht$1(navigator.userAgent)||Bn.value.clientWidth<640},{el:Bn,width:Fn,height:qn}=B$2($,j),Wn=computed(()=>`https://player.bilibili.com/player.html?bvid=${$.bvid}&t=${$.time}&high_quality=${$.lowQuality?0:1}&page=${$.page}&danmaku=${$.noDanmaku?0:1}`);return onMounted(()=>{U(),useEventListener("orientationchange",()=>U()),useEventListener("resize",()=>U())}),()=>[h$3("div",{class:"bili-desc"},h$3("a",{class:"sr-only",href:Wn.value},$.title)),h$3("iframe",{ref:Bn,src:`https://player.bilibili.com/player.html?bvid=${$.bvid}&t=${$.time}&high_quality=${$.lowQuality?0:1}&page=${$.page}&danmaku=${$.noDanmaku?0:1}`,title:$.title,class:"bili-iframe",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; fullscreen; gyroscope; picture-in-picture",style:{width:Fn.value,height:qn.value}})]}});const backToTop="",a$5=()=>h$3(P$5,{name:"back-to-top"},()=>[h$3("path",{d:"M512 843.2c-36.2 0-66.4-13.6-85.8-21.8-10.8-4.6-22.6 3.6-21.8 15.2l7 102c.4 6.2 7.6 9.4 12.6 5.6l29-22c3.6-2.8 9-1.8 11.4 2l41 64.2c3 4.8 10.2 4.8 13.2 0l41-64.2c2.4-3.8 7.8-4.8 11.4-2l29 22c5 3.8 12.2.6 12.6-5.6l7-102c.8-11.6-11-20-21.8-15.2-19.6 8.2-49.6 21.8-85.8 21.8z"}),h$3("path",{d:"m795.4 586.2-96-98.2C699.4 172 513 32 513 32S324.8 172 324.8 488l-96 98.2c-3.6 3.6-5.2 9-4.4 14.2L261.2 824c1.8 11.4 14.2 17 23.6 10.8L419 744s41.4 40 94.2 40c52.8 0 92.2-40 92.2-40l134.2 90.8c9.2 6.2 21.6.6 23.6-10.8l37-223.8c.4-5.2-1.2-10.4-4.8-14zM513 384c-34 0-61.4-28.6-61.4-64s27.6-64 61.4-64c34 0 61.4 28.6 61.4 64S547 384 513 384z"})]);a$5.displayName="BackToTopIcon";var h$2=defineComponent({name:"BackToTop",props:{threshold:{type:Number,default:300}},setup($){const b=usePageFrontmatter(),j=kt$1({"/en/":{backToTop:"Back to top"},"/":{backToTop:"返回顶部"}}),U=ref(0),Bn=computed(()=>b.value.backToTop!==!1&&U.value>$.threshold),Fn=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;return onMounted(()=>{U.value=Fn()}),useEventListener("scroll",useDebounceFn(()=>{U.value=Fn()},100)),()=>h$3(Transition,{name:"fade"},()=>Bn.value?h$3("button",{class:"back-to-top","aria-label":j.value.backToTop,"data-balloon-pos":"left",onClick:()=>{window.scrollTo({top:0,behavior:"smooth"}),U.value=0}},h$3(a$5)):null)}});const srOnly="",clientConfig1=defineClientConfig({enhance:({app:$})=>{_t$1("FontIcon")||$.component("FontIcon",s$3),_t$1("Catalog")||$.component("Catalog",S$6),_t$1("Badge")||$.component("Badge",t$3),_t$1("BiliBili")||$.component("BiliBili",k$5)},setup:()=>{useStyleTag('@import url("//at.alicdn.com/t/c/font_2410206_5vb9zlyghj.css");',{id:"icon-assets"})},rootComponents:[()=>h$3(h$2,{threshold:300})]});function r$4($,b,j){var U,Bn,Fn;b===void 0&&(b=50),j===void 0&&(j={});var qn=(U=j.isImmediate)!=null&&U,Wn=(Bn=j.callback)!=null&&Bn,Gn=j.maxWait,Yn=Date.now(),Qn=[];function Zn(){if(Gn!==void 0){var Kn=Date.now()-Yn;if(Kn+b>=Gn)return Gn-Kn}return b}var Jn=function(){var Kn=[].slice.call(arguments),ea=this;return new Promise(function(Xn,ta){var na=qn&&Fn===void 0;if(Fn!==void 0&&clearTimeout(Fn),Fn=setTimeout(function(){if(Fn=void 0,Yn=Date.now(),!qn){var ca=$.apply(ea,Kn);Wn&&Wn(ca),Qn.forEach(function(pa){return(0,pa.resolve)(ca)}),Qn=[]}},Zn()),na){var ra=$.apply(ea,Kn);return Wn&&Wn(ra),Xn(ra)}Qn.push({resolve:Xn,reject:ta})})};return Jn.cancel=function(Kn){Fn!==void 0&&clearTimeout(Fn),Qn.forEach(function(ea){return(0,ea.reject)(Kn)}),Qn=[]},Jn}const useActiveHeaderLinks=({headerLinkSelector:$,headerAnchorSelector:b,delay:j,offset:U=5})=>{const Bn=useRouter(),qn=r$4(()=>{var Xn,ta;const Wn=Math.max(window.scrollY,document.documentElement.scrollTop,document.body.scrollTop);if(Math.abs(Wn-0)<U){updateHash(Bn,"");return}const Yn=window.innerHeight+Wn,Qn=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),Zn=Math.abs(Qn-Yn)<U,Jn=Array.from(document.querySelectorAll($)),ea=Array.from(document.querySelectorAll(b)).filter(na=>Jn.some(ra=>ra.hash===na.hash));for(let na=0;na<ea.length;na++){const ra=ea[na],ca=ea[na+1],pa=Wn>=(((Xn=ra.parentElement)==null?void 0:Xn.offsetTop)??0)-U,va=!ca||Wn<(((ta=ca.parentElement)==null?void 0:ta.offsetTop)??0)-U;if(!(pa&&va))continue;const ia=decodeURIComponent(Bn.currentRoute.value.hash),la=decodeURIComponent(ra.hash);if(ia===la)return;if(Zn){for(let ba=na+1;ba<ea.length;ba++)if(ia===decodeURIComponent(ea[ba].hash))return}updateHash(Bn,la);return}},j);onMounted(()=>{window.addEventListener("scroll",qn)}),onBeforeUnmount(()=>{window.removeEventListener("scroll",qn)})},updateHash=async($,b)=>{const{scrollBehavior:j}=$.options;$.options.scrollBehavior=void 0,await $.replace({query:$.currentRoute.value.query,hash:b,force:!0}).finally(()=>$.options.scrollBehavior=j)},headerLinkSelector=".sidebar-link, .toc-link",headerAnchorSelector=".header-anchor",delay=200,offset=5,clientConfig2=defineClientConfig({setup(){useActiveHeaderLinks({headerLinkSelector,headerAnchorSelector,delay,offset})}});var a$4=defineClientConfig({enhance:({app:$})=>{!_t$1("AutoCatalog",$)&&$.component("AutoCatalog",defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>Catalog),void 0)))}});const vars$1="",externalLinkIcon="",svg=h$3("svg",{class:"external-link-icon",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",x:"0px",y:"0px",viewBox:"0 0 100 100",width:"15",height:"15"},[h$3("path",{fill:"currentColor",d:"M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"}),h$3("polygon",{fill:"currentColor",points:"45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"})]),ExternalLinkIcon=defineComponent({name:"ExternalLinkIcon",props:{locales:{type:Object,required:!1,default:()=>({})}},setup($){const b=useRouteLocale(),j=computed(()=>$.locales[b.value]??{openInNewWindow:"open in new window"});return()=>h$3("span",[svg,h$3("span",{class:"external-link-icon-sr-only"},j.value.openInNewWindow)])}}),locales={},clientConfig4=defineClientConfig({enhance({app:$}){$.component("ExternalLinkIcon",h$3(ExternalLinkIcon,{locales}))}});/**
* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
* @license MIT
*/const nprogress$1={settings:{minimum:.08,easing:"ease",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,barSelector:'[role="bar"]',parent:"body",template:'<div class="bar" role="bar"></div>'},status:null,set:$=>{const b=nprogress$1.isStarted();$=clamp($,nprogress$1.settings.minimum,1),nprogress$1.status=$===1?null:$;const j=nprogress$1.render(!b),U=j.querySelector(nprogress$1.settings.barSelector),Bn=nprogress$1.settings.speed,Fn=nprogress$1.settings.easing;return j.offsetWidth,queue(qn=>{css(U,{transform:"translate3d("+toBarPerc($)+"%,0,0)",transition:"all "+Bn+"ms "+Fn}),$===1?(css(j,{transition:"none",opacity:"1"}),j.offsetWidth,setTimeout(function(){css(j,{transition:"all "+Bn+"ms linear",opacity:"0"}),setTimeout(function(){nprogress$1.remove(),qn()},Bn)},Bn)):setTimeout(()=>qn(),Bn)}),nprogress$1},isStarted:()=>typeof nprogress$1.status=="number",start:()=>{nprogress$1.status||nprogress$1.set(0);const $=()=>{setTimeout(()=>{nprogress$1.status&&(nprogress$1.trickle(),$())},nprogress$1.settings.trickleSpeed)};return nprogress$1.settings.trickle&&$(),nprogress$1},done:$=>!$&&!nprogress$1.status?nprogress$1:nprogress$1.inc(.3+.5*Math.random()).set(1),inc:$=>{let b=nprogress$1.status;return b?(typeof $!="number"&&($=(1-b)*clamp(Math.random()*b,.1,.95)),b=clamp(b+$,0,.994),nprogress$1.set(b)):nprogress$1.start()},trickle:()=>nprogress$1.inc(Math.random()*nprogress$1.settings.trickleRate),render:$=>{if(nprogress$1.isRendered())return document.getElementById("nprogress");addClass(document.documentElement,"nprogress-busy");const b=document.createElement("div");b.id="nprogress",b.innerHTML=nprogress$1.settings.template;const j=b.querySelector(nprogress$1.settings.barSelector),U=$?"-100":toBarPerc(nprogress$1.status||0),Bn=document.querySelector(nprogress$1.settings.parent);return css(j,{transition:"all 0 linear",transform:"translate3d("+U+"%,0,0)"}),Bn!==document.body&&addClass(Bn,"nprogress-custom-parent"),Bn==null||Bn.appendChild(b),b},remove:()=>{removeClass(document.documentElement,"nprogress-busy"),removeClass(document.querySelector(nprogress$1.settings.parent),"nprogress-custom-parent");const $=document.getElementById("nprogress");$&&removeElement($)},isRendered:()=>!!document.getElementById("nprogress")},clamp=($,b,j)=>$<b?b:$>j?j:$,toBarPerc=$=>(-1+$)*100,queue=function(){const $=[];function b(){const j=$.shift();j&&j(b)}return function(j){$.push(j),$.length===1&&b()}}(),css=function(){const $=["Webkit","O","Moz","ms"],b={};function j(qn){return qn.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(Wn,Gn){return Gn.toUpperCase()})}function U(qn){const Wn=document.body.style;if(qn in Wn)return qn;let Gn=$.length;const Yn=qn.charAt(0).toUpperCase()+qn.slice(1);let Qn;for(;Gn--;)if(Qn=$[Gn]+Yn,Qn in Wn)return Qn;return qn}function Bn(qn){return qn=j(qn),b[qn]||(b[qn]=U(qn))}function Fn(qn,Wn,Gn){Wn=Bn(Wn),qn.style[Wn]=Gn}return function(qn,Wn){for(const Gn in Wn){const Yn=Wn[Gn];Yn!==void 0&&Object.prototype.hasOwnProperty.call(Wn,Gn)&&Fn(qn,Gn,Yn)}}}(),hasClass=($,b)=>(typeof $=="string"?$:classList($)).indexOf(" "+b+" ")>=0,addClass=($,b)=>{const j=classList($),U=j+b;hasClass(j,b)||($.className=U.substring(1))},removeClass=($,b)=>{const j=classList($);if(!hasClass($,b))return;const U=j.replace(" "+b+" "," ");$.className=U.substring(1,U.length-1)},classList=$=>(" "+($.className||"")+" ").replace(/\s+/gi," "),removeElement=$=>{$&&$.parentNode&&$.parentNode.removeChild($)},vars="",nprogress="",useNprogress=()=>{onMounted(()=>{const $=useRouter(),b=new Set;b.add($.currentRoute.value.path),$.beforeEach(j=>{b.has(j.path)||nprogress$1.start()}),$.afterEach(j=>{b.add(j.path),nprogress$1.done()})})},clientConfig5=defineClientConfig({setup(){useNprogress()}}),themeData$1=JSON.parse(`{"encrypt":{},"locales":{"/en/":{"lang":"en-US","navbarLocales":{"langName":"English","selectLangAriaLabel":"Select language"},"metaLocales":{"author":"Author","date":"Writing Date","origin":"Original","views":"Page views","category":"Category","tag":"Tag","readingTime":"Reading Time","words":"Words","toc":"On This Page","prev":"Prev","next":"Next","lastUpdated":"Last update","contributors":"Contributors","editLink":"Edit this page on GitHub"},"outlookLocales":{"themeColor":"Theme Color","darkmode":"Theme Mode","fullscreen":"Full Screen"},"encryptLocales":{"iconLabel":"Page Encrypted","placeholder":"Enter password","remember":"Remember password","errorHint":"Please enter the correct password!"},"routeLocales":{"skipToContent":"Skip to main content","notFoundMsg":["Theres nothing here.","How did we get here?","Thats a Four-Oh-Four.","Looks like we've got some broken links."],"back":"Go back","home":"Take me home","openInNewWindow":"Open in new window"},"author":{"name":"DGP-Studio","url":"https://github.com/DGP-Studio"},"logo":"https://img.alicdn.com/imgextra/i1/1797064093/O1CN01TOz2Cm1g6du5e8Hml_!!1797064093.png","repo":"DGP-Studio/Snap.Hutao","pageInfo":["Author","Original","Date","Category","Tag","ReadingTime"],"docsRepo":"DGP-Studio/Snap.Hutao.Docs","docsDir":"docs","navbar":["/en",{"text":"Document","icon":"article","link":"/features/README.md"},{"text":"Download","icon":"install","link":"https://d.hut.ao"}],"sidebar":{"/en/":["",{"icon":"play","text":"快速开始","link":"quick-start.md"}]},"footer":"Be the best Genshin Impact tool","displayFooter":true},"/":{"lang":"zh-CN","navbarLocales":{"langName":"简体中文","selectLangAriaLabel":"选择语言"},"metaLocales":{"author":"作者","date":"写作日期","origin":"原创","views":"访问量","category":"分类","tag":"标签","readingTime":"阅读时间","words":"字数","toc":"此页内容","prev":"上一页","next":"下一页","lastUpdated":"上次编辑于","contributors":"贡献者","editLink":"在 GitHub 上编辑此页"},"outlookLocales":{"themeColor":"主题色","darkmode":"外观","fullscreen":"全屏"},"encryptLocales":{"iconLabel":"文章已加密","placeholder":"输入密码","remember":"记住密码","errorHint":"请输入正确的密码"},"routeLocales":{"skipToContent":"跳至主要內容","notFoundMsg":["这里什么也没有","我们是怎么来到这儿的?","这 是 四 零 四 !","看起来你访问了一个失效的链接"],"back":"返回上一页","home":"带我回家","openInNewWindow":"Open in new window"},"author":{"name":"DGP-Studio","url":"https://github.com/DGP-Studio"},"logo":"https://img.alicdn.com/imgextra/i1/1797064093/O1CN01TOz2Cm1g6du5e8Hml_!!1797064093.png","repo":"DGP-Studio/Snap.Hutao","pageInfo":["Author","Original","Date","Category","Tag","ReadingTime"],"docsRepo":"DGP-Studio/Snap.Hutao.Docs","docsDir":"docs","navbar":["/",{"text":"文档","icon":"article","link":"/features/README.md"},{"text":"下载","icon":"install","link":"https://d.hut.ao"},{"text":"加入社区讨论","icon":"community","link":"/community.md"}],"sidebar":{"/":["",{"icon":"workingDirectory","text":"项目介绍","link":"project.md"},{"icon":"play","text":"快速开始","link":"quick-start.md"},{"icon":"read","text":"功能指南","prefix":"features/","children":"structure"},{"icon":"ask","text":"常见问题","prefix":"FAQ/","children":"structure"},{"icon":"article","text":"声明和公告","prefix":"statements/","children":"structure"}]},"footer":"做最好的原神工具","displayFooter":true}}}`),themeData=ref(themeData$1),useThemeData$1=()=>themeData,themeLocaleDataSymbol=Symbol(""),useThemeLocaleData$1=()=>{const $=inject(themeLocaleDataSymbol);if(!$)throw new Error("useThemeLocaleData() is called without provider.");return $},resolveThemeLocaleData=($,b)=>{var j;return{...$,...(j=$.locales)==null?void 0:j[b]}},clientConfig6=defineClientConfig({enhance({app:$}){const b=useThemeData$1(),j=$._context.provides[routeLocaleSymbol],U=computed(()=>resolveThemeLocaleData(b.value,j.value));$.provide(themeLocaleDataSymbol,U),Object.defineProperties($.config.globalProperties,{$theme:{get(){return b.value}},$themeLocale:{get(){return U.value}}})}});var e$2,t$2,n$2=typeof Map=="function"?new Map:(e$2=[],t$2=[],{has:function($){return e$2.indexOf($)>-1},get:function($){return t$2[e$2.indexOf($)]},set:function($,b){e$2.indexOf($)===-1&&(e$2.push($),t$2.push(b))},delete:function($){var b=e$2.indexOf($);b>-1&&(e$2.splice(b,1),t$2.splice(b,1))}}),o$3=function($){return new Event($,{bubbles:!0})};try{new Event("test")}catch{o$3=function(b){var j=document.createEvent("Event");return j.initEvent(b,!0,!1),j}}function r$3($){var b=n$2.get($);b&&b.destroy()}function i$4($){var b=n$2.get($);b&&b.update()}var l$3=null;typeof window>"u"||typeof window.getComputedStyle!="function"?((l$3=function($){return $}).destroy=function($){return $},l$3.update=function($){return $}):((l$3=function($,b){return $&&Array.prototype.forEach.call($.length?$:[$],function(j){return function(U){if(U&&U.nodeName&&U.nodeName==="TEXTAREA"&&!n$2.has(U)){var Bn,Fn=null,qn=null,Wn=null,Gn=function(){U.clientWidth!==qn&&Jn()},Yn=function(Kn){window.removeEventListener("resize",Gn,!1),U.removeEventListener("input",Jn,!1),U.removeEventListener("keyup",Jn,!1),U.removeEventListener("autosize:destroy",Yn,!1),U.removeEventListener("autosize:update",Jn,!1),Object.keys(Kn).forEach(function(ea){U.style[ea]=Kn[ea]}),n$2.delete(U)}.bind(U,{height:U.style.height,resize:U.style.resize,overflowY:U.style.overflowY,overflowX:U.style.overflowX,wordWrap:U.style.wordWrap});U.addEventListener("autosize:destroy",Yn,!1),"onpropertychange"in U&&"oninput"in U&&U.addEventListener("keyup",Jn,!1),window.addEventListener("resize",Gn,!1),U.addEventListener("input",Jn,!1),U.addEventListener("autosize:update",Jn,!1),U.style.overflowX="hidden",U.style.wordWrap="break-word",n$2.set(U,{destroy:Yn,update:Jn}),(Bn=window.getComputedStyle(U,null)).resize==="vertical"?U.style.resize="none":Bn.resize==="both"&&(U.style.resize="horizontal"),Fn=Bn.boxSizing==="content-box"?-(parseFloat(Bn.paddingTop)+parseFloat(Bn.paddingBottom)):parseFloat(Bn.borderTopWidth)+parseFloat(Bn.borderBottomWidth),isNaN(Fn)&&(Fn=0),Jn()}function Qn(Kn){var ea=U.style.width;U.style.width="0px",U.style.width=ea,U.style.overflowY=Kn}function Zn(){if(U.scrollHeight!==0){var Kn=function(ea){for(var Xn=[];ea&&ea.parentNode&&ea.parentNode instanceof Element;)ea.parentNode.scrollTop&&(ea.parentNode.style.scrollBehavior="auto",Xn.push([ea.parentNode,ea.parentNode.scrollTop])),ea=ea.parentNode;return function(){return Xn.forEach(function(ta){var na=ta[0];na.scrollTop=ta[1],na.style.scrollBehavior=null})}}(U);U.style.height="",U.style.height=U.scrollHeight+Fn+"px",qn=U.clientWidth,Kn()}}function Jn(){Zn();var Kn=Math.round(parseFloat(U.style.height)),ea=window.getComputedStyle(U,null),Xn=ea.boxSizing==="content-box"?Math.round(parseFloat(ea.height)):U.offsetHeight;if(Xn<Kn?ea.overflowY==="hidden"&&(Qn("scroll"),Zn(),Xn=ea.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(U,null).height)):U.offsetHeight):ea.overflowY!=="hidden"&&(Qn("hidden"),Zn(),Xn=ea.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(U,null).height)):U.offsetHeight),Wn!==Xn){Wn=Xn;var ta=o$3("autosize:resized");try{U.dispatchEvent(ta)}catch{}}}}(j)}),$}).destroy=function($){return $&&Array.prototype.forEach.call($.length?$:[$],r$3),$},l$3.update=function($){return $&&Array.prototype.forEach.call($.length?$:[$],i$4),$});var a$3=l$3;function getDefaults(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let defaults=getDefaults();function changeDefaults($){defaults=$}const escapeTest=/[&<>"']/,escapeReplace=new RegExp(escapeTest.source,"g"),escapeTestNoEncode=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode=new RegExp(escapeTestNoEncode.source,"g"),escapeReplacements={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},getEscapeReplacement=$=>escapeReplacements[$];function escape($,b){if(b){if(escapeTest.test($))return $.replace(escapeReplace,getEscapeReplacement)}else if(escapeTestNoEncode.test($))return $.replace(escapeReplaceNoEncode,getEscapeReplacement);return $}const unescapeTest=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function unescape($){return $.replace(unescapeTest,(b,j)=>(j=j.toLowerCase(),j==="colon"?":":j.charAt(0)==="#"?j.charAt(1)==="x"?String.fromCharCode(parseInt(j.substring(2),16)):String.fromCharCode(+j.substring(1)):""))}const caret=/(^|[^\[])\^/g;function edit($,b){$=typeof $=="string"?$:$.source,b=b||"";const j={replace:(U,Bn)=>(Bn=Bn.source||Bn,Bn=Bn.replace(caret,"$1"),$=$.replace(U,Bn),j),getRegex:()=>new RegExp($,b)};return j}const nonWordAndColonTest=/[^\w:]/g,originIndependentUrl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function cleanUrl($,b,j){if($){let U;try{U=decodeURIComponent(unescape(j)).replace(nonWordAndColonTest,"").toLowerCase()}catch{return null}if(U.indexOf("javascript:")===0||U.indexOf("vbscript:")===0||U.indexOf("data:")===0)return null}b&&!originIndependentUrl.test(j)&&(j=resolveUrl(b,j));try{j=encodeURI(j).replace(/%25/g,"%")}catch{return null}return j}const baseUrls={},justDomain=/^[^:]+:\/*[^/]*$/,protocol=/^([^:]+:)[\s\S]*$/,domain=/^([^:]+:\/*[^/]*)[\s\S]*$/;function resolveUrl($,b){baseUrls[" "+$]||(justDomain.test($)?baseUrls[" "+$]=$+"/":baseUrls[" "+$]=rtrim($,"/",!0)),$=baseUrls[" "+$];const j=$.indexOf(":")===-1;return b.substring(0,2)==="//"?j?b:$.replace(protocol,"$1")+b:b.charAt(0)==="/"?j?b:$.replace(domain,"$1")+b:$+b}const noopTest={exec:function(){}};function merge($){let b=1,j,U;for(;b<arguments.length;b++){j=arguments[b];for(U in j)Object.prototype.hasOwnProperty.call(j,U)&&($[U]=j[U])}return $}function splitCells($,b){const j=$.replace(/\|/g,(Fn,qn,Wn)=>{let Gn=!1,Yn=qn;for(;--Yn>=0&&Wn[Yn]==="\\";)Gn=!Gn;return Gn?"|":" |"}),U=j.split(/ \|/);let Bn=0;if(U[0].trim()||U.shift(),U.length>0&&!U[U.length-1].trim()&&U.pop(),U.length>b)U.splice(b);else for(;U.length<b;)U.push("");for(;Bn<U.length;Bn++)U[Bn]=U[Bn].trim().replace(/\\\|/g,"|");return U}function rtrim($,b,j){const U=$.length;if(U===0)return"";let Bn=0;for(;Bn<U;){const Fn=$.charAt(U-Bn-1);if(Fn===b&&!j)Bn++;else if(Fn!==b&&j)Bn++;else break}return $.slice(0,U-Bn)}function findClosingBracket($,b){if($.indexOf(b[1])===-1)return-1;const j=$.length;let U=0,Bn=0;for(;Bn<j;Bn++)if($[Bn]==="\\")Bn++;else if($[Bn]===b[0])U++;else if($[Bn]===b[1]&&(U--,U<0))return Bn;return-1}function checkSanitizeDeprecation($){$&&$.sanitize&&!$.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function repeatString($,b){if(b<1)return"";let j="";for(;b>1;)b&1&&(j+=$),b>>=1,$+=$;return j+$}function outputLink($,b,j,U){const Bn=b.href,Fn=b.title?escape(b.title):null,qn=$[1].replace(/\\([\[\]])/g,"$1");if($[0].charAt(0)!=="!"){U.state.inLink=!0;const Wn={type:"link",raw:j,href:Bn,title:Fn,text:qn,tokens:U.inlineTokens(qn)};return U.state.inLink=!1,Wn}return{type:"image",raw:j,href:Bn,title:Fn,text:escape(qn)}}function indentCodeCompensation($,b){const j=$.match(/^(\s+)(?:```)/);if(j===null)return b;const U=j[1];return b.split(`
`).map(Bn=>{const Fn=Bn.match(/^\s+/);if(Fn===null)return Bn;const[qn]=Fn;return qn.length>=U.length?Bn.slice(U.length):Bn}).join(`
`)}class Tokenizer{constructor(b){this.options=b||defaults}space(b){const j=this.rules.block.newline.exec(b);if(j&&j[0].length>0)return{type:"space",raw:j[0]}}code(b){const j=this.rules.block.code.exec(b);if(j){const U=j[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:j[0],codeBlockStyle:"indented",text:this.options.pedantic?U:rtrim(U,`
`)}}}fences(b){const j=this.rules.block.fences.exec(b);if(j){const U=j[0],Bn=indentCodeCompensation(U,j[3]||"");return{type:"code",raw:U,lang:j[2]?j[2].trim().replace(this.rules.inline._escapes,"$1"):j[2],text:Bn}}}heading(b){const j=this.rules.block.heading.exec(b);if(j){let U=j[2].trim();if(/#$/.test(U)){const Bn=rtrim(U,"#");(this.options.pedantic||!Bn||/ $/.test(Bn))&&(U=Bn.trim())}return{type:"heading",raw:j[0],depth:j[1].length,text:U,tokens:this.lexer.inline(U)}}}hr(b){const j=this.rules.block.hr.exec(b);if(j)return{type:"hr",raw:j[0]}}blockquote(b){const j=this.rules.block.blockquote.exec(b);if(j){const U=j[0].replace(/^ *>[ \t]?/gm,""),Bn=this.lexer.state.top;this.lexer.state.top=!0;const Fn=this.lexer.blockTokens(U);return this.lexer.state.top=Bn,{type:"blockquote",raw:j[0],tokens:Fn,text:U}}}list(b){let j=this.rules.block.list.exec(b);if(j){let U,Bn,Fn,qn,Wn,Gn,Yn,Qn,Zn,Jn,Kn,ea,Xn=j[1].trim();const ta=Xn.length>1,na={type:"list",raw:"",ordered:ta,start:ta?+Xn.slice(0,-1):"",loose:!1,items:[]};Xn=ta?`\\d{1,9}\\${Xn.slice(-1)}`:`\\${Xn}`,this.options.pedantic&&(Xn=ta?Xn:"[*+-]");const ra=new RegExp(`^( {0,3}${Xn})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;b&&(ea=!1,!(!(j=ra.exec(b))||this.rules.block.hr.test(b)));){if(U=j[0],b=b.substring(U.length),Qn=j[2].split(`
`,1)[0].replace(/^\t+/,pa=>" ".repeat(3*pa.length)),Zn=b.split(`
`,1)[0],this.options.pedantic?(qn=2,Kn=Qn.trimLeft()):(qn=j[2].search(/[^ ]/),qn=qn>4?1:qn,Kn=Qn.slice(qn),qn+=j[1].length),Gn=!1,!Qn&&/^ *$/.test(Zn)&&(U+=Zn+`
`,b=b.substring(Zn.length+1),ea=!0),!ea){const pa=new RegExp(`^ {0,${Math.min(3,qn-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),va=new RegExp(`^ {0,${Math.min(3,qn-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),ga=new RegExp(`^ {0,${Math.min(3,qn-1)}}(?:\`\`\`|~~~)`),ia=new RegExp(`^ {0,${Math.min(3,qn-1)}}#`);for(;b&&(Jn=b.split(`
`,1)[0],Zn=Jn,this.options.pedantic&&(Zn=Zn.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(ga.test(Zn)||ia.test(Zn)||pa.test(Zn)||va.test(b)));){if(Zn.search(/[^ ]/)>=qn||!Zn.trim())Kn+=`
`+Zn.slice(qn);else{if(Gn||Qn.search(/[^ ]/)>=4||ga.test(Qn)||ia.test(Qn)||va.test(Qn))break;Kn+=`
`+Zn}!Gn&&!Zn.trim()&&(Gn=!0),U+=Jn+`
`,b=b.substring(Jn.length+1),Qn=Zn.slice(qn)}}na.loose||(Yn?na.loose=!0:/\n *\n *$/.test(U)&&(Yn=!0)),this.options.gfm&&(Bn=/^\[[ xX]\] /.exec(Kn),Bn&&(Fn=Bn[0]!=="[ ] ",Kn=Kn.replace(/^\[[ xX]\] +/,""))),na.items.push({type:"list_item",raw:U,task:!!Bn,checked:Fn,loose:!1,text:Kn}),na.raw+=U}na.items[na.items.length-1].raw=U.trimRight(),na.items[na.items.length-1].text=Kn.trimRight(),na.raw=na.raw.trimRight();const ca=na.items.length;for(Wn=0;Wn<ca;Wn++)if(this.lexer.state.top=!1,na.items[Wn].tokens=this.lexer.blockTokens(na.items[Wn].text,[]),!na.loose){const pa=na.items[Wn].tokens.filter(ga=>ga.type==="space"),va=pa.length>0&&pa.some(ga=>/\n.*\n/.test(ga.raw));na.loose=va}if(na.loose)for(Wn=0;Wn<ca;Wn++)na.items[Wn].loose=!0;return na}}html(b){const j=this.rules.block.html.exec(b);if(j){const U={type:"html",raw:j[0],pre:!this.options.sanitizer&&(j[1]==="pre"||j[1]==="script"||j[1]==="style"),text:j[0]};if(this.options.sanitize){const Bn=this.options.sanitizer?this.options.sanitizer(j[0]):escape(j[0]);U.type="paragraph",U.text=Bn,U.tokens=this.lexer.inline(Bn)}return U}}def(b){const j=this.rules.block.def.exec(b);if(j){const U=j[1].toLowerCase().replace(/\s+/g," "),Bn=j[2]?j[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",Fn=j[3]?j[3].substring(1,j[3].length-1).replace(this.rules.inline._escapes,"$1"):j[3];return{type:"def",tag:U,raw:j[0],href:Bn,title:Fn}}}table(b){const j=this.rules.block.table.exec(b);if(j){const U={type:"table",header:splitCells(j[1]).map(Bn=>({text:Bn})),align:j[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:j[3]&&j[3].trim()?j[3].replace(/\n[ \t]*$/,"").split(`
`):[]};if(U.header.length===U.align.length){U.raw=j[0];let Bn=U.align.length,Fn,qn,Wn,Gn;for(Fn=0;Fn<Bn;Fn++)/^ *-+: *$/.test(U.align[Fn])?U.align[Fn]="right":/^ *:-+: *$/.test(U.align[Fn])?U.align[Fn]="center":/^ *:-+ *$/.test(U.align[Fn])?U.align[Fn]="left":U.align[Fn]=null;for(Bn=U.rows.length,Fn=0;Fn<Bn;Fn++)U.rows[Fn]=splitCells(U.rows[Fn],U.header.length).map(Yn=>({text:Yn}));for(Bn=U.header.length,qn=0;qn<Bn;qn++)U.header[qn].tokens=this.lexer.inline(U.header[qn].text);for(Bn=U.rows.length,qn=0;qn<Bn;qn++)for(Gn=U.rows[qn],Wn=0;Wn<Gn.length;Wn++)Gn[Wn].tokens=this.lexer.inline(Gn[Wn].text);return U}}}lheading(b){const j=this.rules.block.lheading.exec(b);if(j)return{type:"heading",raw:j[0],depth:j[2].charAt(0)==="="?1:2,text:j[1],tokens:this.lexer.inline(j[1])}}paragraph(b){const j=this.rules.block.paragraph.exec(b);if(j){const U=j[1].charAt(j[1].length-1)===`
`?j[1].slice(0,-1):j[1];return{type:"paragraph",raw:j[0],text:U,tokens:this.lexer.inline(U)}}}text(b){const j=this.rules.block.text.exec(b);if(j)return{type:"text",raw:j[0],text:j[0],tokens:this.lexer.inline(j[0])}}escape(b){const j=this.rules.inline.escape.exec(b);if(j)return{type:"escape",raw:j[0],text:escape(j[1])}}tag(b){const j=this.rules.inline.tag.exec(b);if(j)return!this.lexer.state.inLink&&/^<a /i.test(j[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(j[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(j[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(j[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:j[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(j[0]):escape(j[0]):j[0]}}link(b){const j=this.rules.inline.link.exec(b);if(j){const U=j[2].trim();if(!this.options.pedantic&&/^</.test(U)){if(!/>$/.test(U))return;const qn=rtrim(U.slice(0,-1),"\\");if((U.length-qn.length)%2===0)return}else{const qn=findClosingBracket(j[2],"()");if(qn>-1){const Gn=(j[0].indexOf("!")===0?5:4)+j[1].length+qn;j[2]=j[2].substring(0,qn),j[0]=j[0].substring(0,Gn).trim(),j[3]=""}}let Bn=j[2],Fn="";if(this.options.pedantic){const qn=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Bn);qn&&(Bn=qn[1],Fn=qn[3])}else Fn=j[3]?j[3].slice(1,-1):"";return Bn=Bn.trim(),/^</.test(Bn)&&(this.options.pedantic&&!/>$/.test(U)?Bn=Bn.slice(1):Bn=Bn.slice(1,-1)),outputLink(j,{href:Bn&&Bn.replace(this.rules.inline._escapes,"$1"),title:Fn&&Fn.replace(this.rules.inline._escapes,"$1")},j[0],this.lexer)}}reflink(b,j){let U;if((U=this.rules.inline.reflink.exec(b))||(U=this.rules.inline.nolink.exec(b))){let Bn=(U[2]||U[1]).replace(/\s+/g," ");if(Bn=j[Bn.toLowerCase()],!Bn){const Fn=U[0].charAt(0);return{type:"text",raw:Fn,text:Fn}}return outputLink(U,Bn,U[0],this.lexer)}}emStrong(b,j,U=""){let Bn=this.rules.inline.emStrong.lDelim.exec(b);if(!Bn||Bn[3]&&U.match(/[\p{L}\p{N}]/u))return;const Fn=Bn[1]||Bn[2]||"";if(!Fn||Fn&&(U===""||this.rules.inline.punctuation.exec(U))){const qn=Bn[0].length-1;let Wn,Gn,Yn=qn,Qn=0;const Zn=Bn[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(Zn.lastIndex=0,j=j.slice(-1*b.length+qn);(Bn=Zn.exec(j))!=null;){if(Wn=Bn[1]||Bn[2]||Bn[3]||Bn[4]||Bn[5]||Bn[6],!Wn)continue;if(Gn=Wn.length,Bn[3]||Bn[4]){Yn+=Gn;continue}else if((Bn[5]||Bn[6])&&qn%3&&!((qn+Gn)%3)){Qn+=Gn;continue}if(Yn-=Gn,Yn>0)continue;Gn=Math.min(Gn,Gn+Yn+Qn);const Jn=b.slice(0,qn+Bn.index+(Bn[0].length-Wn.length)+Gn);if(Math.min(qn,Gn)%2){const ea=Jn.slice(1,-1);return{type:"em",raw:Jn,text:ea,tokens:this.lexer.inlineTokens(ea)}}const Kn=Jn.slice(2,-2);return{type:"strong",raw:Jn,text:Kn,tokens:this.lexer.inlineTokens(Kn)}}}}codespan(b){const j=this.rules.inline.code.exec(b);if(j){let U=j[2].replace(/\n/g," ");const Bn=/[^ ]/.test(U),Fn=/^ /.test(U)&&/ $/.test(U);return Bn&&Fn&&(U=U.substring(1,U.length-1)),U=escape(U,!0),{type:"codespan",raw:j[0],text:U}}}br(b){const j=this.rules.inline.br.exec(b);if(j)return{type:"br",raw:j[0]}}del(b){const j=this.rules.inline.del.exec(b);if(j)return{type:"del",raw:j[0],text:j[2],tokens:this.lexer.inlineTokens(j[2])}}autolink(b,j){const U=this.rules.inline.autolink.exec(b);if(U){let Bn,Fn;return U[2]==="@"?(Bn=escape(this.options.mangle?j(U[1]):U[1]),Fn="mailto:"+Bn):(Bn=escape(U[1]),Fn=Bn),{type:"link",raw:U[0],text:Bn,href:Fn,tokens:[{type:"text",raw:Bn,text:Bn}]}}}url(b,j){let U;if(U=this.rules.inline.url.exec(b)){let Bn,Fn;if(U[2]==="@")Bn=escape(this.options.mangle?j(U[0]):U[0]),Fn="mailto:"+Bn;else{let qn;do qn=U[0],U[0]=this.rules.inline._backpedal.exec(U[0])[0];while(qn!==U[0]);Bn=escape(U[0]),U[1]==="www."?Fn="http://"+U[0]:Fn=U[0]}return{type:"link",raw:U[0],text:Bn,href:Fn,tokens:[{type:"text",raw:Bn,text:Bn}]}}}inlineText(b,j){const U=this.rules.inline.text.exec(b);if(U){let Bn;return this.lexer.state.inRawBlock?Bn=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(U[0]):escape(U[0]):U[0]:Bn=escape(this.options.smartypants?j(U[0]):U[0]),{type:"text",raw:U[0],text:Bn}}}}const block={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:noopTest,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};block._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;block._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;block.def=edit(block.def).replace("label",block._label).replace("title",block._title).getRegex();block.bullet=/(?:[*+-]|\d{1,9}[.)])/;block.listItemStart=edit(/^( *)(bull) */).replace("bull",block.bullet).getRegex();block.list=edit(block.list).replace(/bull/g,block.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+block.def.source+")").getRegex();block._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";block._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;block.html=edit(block.html,"i").replace("comment",block._comment).replace("tag",block._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();block.paragraph=edit(block._paragraph).replace("hr",block.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",block._tag).getRegex();block.blockquote=edit(block.blockquote).replace("paragraph",block.paragraph).getRegex();block.normal=merge({},block);block.gfm=merge({},block.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});block.gfm.table=edit(block.gfm.table).replace("hr",block.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",block._tag).getRegex();block.gfm.paragraph=edit(block._paragraph).replace("hr",block.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",block.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",block._tag).getRegex();block.pedantic=merge({},block.normal,{html:edit(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",block._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:noopTest,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:edit(block.normal._paragraph).replace("hr",block.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",block.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const inline={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:noopTest,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:noopTest,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};inline._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";inline.punctuation=edit(inline.punctuation).replace(/punctuation/g,inline._punctuation).getRegex();inline.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;inline.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;inline._comment=edit(block._comment).replace("(?:-->|$)","-->").getRegex();inline.emStrong.lDelim=edit(inline.emStrong.lDelim).replace(/punct/g,inline._punctuation).getRegex();inline.emStrong.rDelimAst=edit(inline.emStrong.rDelimAst,"g").replace(/punct/g,inline._punctuation).getRegex();inline.emStrong.rDelimUnd=edit(inline.emStrong.rDelimUnd,"g").replace(/punct/g,inline._punctuation).getRegex();inline._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;inline._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;inline._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;inline.autolink=edit(inline.autolink).replace("scheme",inline._scheme).replace("email",inline._email).getRegex();inline._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;inline.tag=edit(inline.tag).replace("comment",inline._comment).replace("attribute",inline._attribute).getRegex();inline._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;inline._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;inline._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;inline.link=edit(inline.link).replace("label",inline._label).replace("href",inline._href).replace("title",inline._title).getRegex();inline.reflink=edit(inline.reflink).replace("label",inline._label).replace("ref",block._label).getRegex();inline.nolink=edit(inline.nolink).replace("ref",block._label).getRegex();inline.reflinkSearch=edit(inline.reflinkSearch,"g").replace("reflink",inline.reflink).replace("nolink",inline.nolink).getRegex();inline.normal=merge({},inline);inline.pedantic=merge({},inline.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:edit(/^!?\[(label)\]\((.*?)\)/).replace("label",inline._label).getRegex(),reflink:edit(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",inline._label).getRegex()});inline.gfm=merge({},inline.normal,{escape:edit(inline.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/});inline.gfm.url=edit(inline.gfm.url,"i").replace("email",inline.gfm._extended_email).getRegex();inline.breaks=merge({},inline.gfm,{br:edit(inline.br).replace("{2,}","*").getRegex(),text:edit(inline.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function smartypants($){return $.replace(/---/g,"—").replace(/--/g,"").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1").replace(/'/g,"").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function mangle($){let b="",j,U;const Bn=$.length;for(j=0;j<Bn;j++)U=$.charCodeAt(j),Math.random()>.5&&(U="x"+U.toString(16)),b+="&#"+U+";";return b}class Lexer{constructor(b){this.tokens=[],this.tokens.links=Object.create(null),this.options=b||defaults,this.options.tokenizer=this.options.tokenizer||new Tokenizer,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const j={block:block.normal,inline:inline.normal};this.options.pedantic?(j.block=block.pedantic,j.inline=inline.pedantic):this.options.gfm&&(j.block=block.gfm,this.options.breaks?j.inline=inline.breaks:j.inline=inline.gfm),this.tokenizer.rules=j}static get rules(){return{block,inline}}static lex(b,j){return new Lexer(j).lex(b)}static lexInline(b,j){return new Lexer(j).inlineTokens(b)}lex(b){b=b.replace(/\r\n|\r/g,`
`),this.blockTokens(b,this.tokens);let j;for(;j=this.inlineQueue.shift();)this.inlineTokens(j.src,j.tokens);return this.tokens}blockTokens(b,j=[]){this.options.pedantic?b=b.replace(/\t/g," ").replace(/^ +$/gm,""):b=b.replace(/^( *)(\t+)/gm,(Wn,Gn,Yn)=>Gn+" ".repeat(Yn.length));let U,Bn,Fn,qn;for(;b;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(Wn=>(U=Wn.call({lexer:this},b,j))?(b=b.substring(U.raw.length),j.push(U),!0):!1))){if(U=this.tokenizer.space(b)){b=b.substring(U.raw.length),U.raw.length===1&&j.length>0?j[j.length-1].raw+=`
`:j.push(U);continue}if(U=this.tokenizer.code(b)){b=b.substring(U.raw.length),Bn=j[j.length-1],Bn&&(Bn.type==="paragraph"||Bn.type==="text")?(Bn.raw+=`
`+U.raw,Bn.text+=`
`+U.text,this.inlineQueue[this.inlineQueue.length-1].src=Bn.text):j.push(U);continue}if(U=this.tokenizer.fences(b)){b=b.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.heading(b)){b=b.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.hr(b)){b=b.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.blockquote(b)){b=b.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.list(b)){b=b.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.html(b)){b=b.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.def(b)){b=b.substring(U.raw.length),Bn=j[j.length-1],Bn&&(Bn.type==="paragraph"||Bn.type==="text")?(Bn.raw+=`
`+U.raw,Bn.text+=`
`+U.raw,this.inlineQueue[this.inlineQueue.length-1].src=Bn.text):this.tokens.links[U.tag]||(this.tokens.links[U.tag]={href:U.href,title:U.title});continue}if(U=this.tokenizer.table(b)){b=b.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.lheading(b)){b=b.substring(U.raw.length),j.push(U);continue}if(Fn=b,this.options.extensions&&this.options.extensions.startBlock){let Wn=1/0;const Gn=b.slice(1);let Yn;this.options.extensions.startBlock.forEach(function(Qn){Yn=Qn.call({lexer:this},Gn),typeof Yn=="number"&&Yn>=0&&(Wn=Math.min(Wn,Yn))}),Wn<1/0&&Wn>=0&&(Fn=b.substring(0,Wn+1))}if(this.state.top&&(U=this.tokenizer.paragraph(Fn))){Bn=j[j.length-1],qn&&Bn.type==="paragraph"?(Bn.raw+=`
`+U.raw,Bn.text+=`
`+U.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Bn.text):j.push(U),qn=Fn.length!==b.length,b=b.substring(U.raw.length);continue}if(U=this.tokenizer.text(b)){b=b.substring(U.raw.length),Bn=j[j.length-1],Bn&&Bn.type==="text"?(Bn.raw+=`
`+U.raw,Bn.text+=`
`+U.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Bn.text):j.push(U);continue}if(b){const Wn="Infinite loop on byte: "+b.charCodeAt(0);if(this.options.silent){console.error(Wn);break}else throw new Error(Wn)}}return this.state.top=!0,j}inline(b,j=[]){return this.inlineQueue.push({src:b,tokens:j}),j}inlineTokens(b,j=[]){let U,Bn,Fn,qn=b,Wn,Gn,Yn;if(this.tokens.links){const Qn=Object.keys(this.tokens.links);if(Qn.length>0)for(;(Wn=this.tokenizer.rules.inline.reflinkSearch.exec(qn))!=null;)Qn.includes(Wn[0].slice(Wn[0].lastIndexOf("[")+1,-1))&&(qn=qn.slice(0,Wn.index)+"["+repeatString("a",Wn[0].length-2)+"]"+qn.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Wn=this.tokenizer.rules.inline.blockSkip.exec(qn))!=null;)qn=qn.slice(0,Wn.index)+"["+repeatString("a",Wn[0].length-2)+"]"+qn.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Wn=this.tokenizer.rules.inline.escapedEmSt.exec(qn))!=null;)qn=qn.slice(0,Wn.index+Wn[0].length-2)+"++"+qn.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;b;)if(Gn||(Yn=""),Gn=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(Qn=>(U=Qn.call({lexer:this},b,j))?(b=b.substring(U.raw.length),j.push(U),!0):!1))){if(U=this.tokenizer.escape(b)){b=b.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.tag(b)){b=b.substring(U.raw.length),Bn=j[j.length-1],Bn&&U.type==="text"&&Bn.type==="text"?(Bn.raw+=U.raw,Bn.text+=U.text):j.push(U);continue}if(U=this.tokenizer.link(b)){b=b.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.reflink(b,this.tokens.links)){b=b.substring(U.raw.length),Bn=j[j.length-1],Bn&&U.type==="text"&&Bn.type==="text"?(Bn.raw+=U.raw,Bn.text+=U.text):j.push(U);continue}if(U=this.tokenizer.emStrong(b,qn,Yn)){b=b.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.codespan(b)){b=b.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.br(b)){b=b.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.del(b)){b=b.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.autolink(b,mangle)){b=b.substring(U.raw.length),j.push(U);continue}if(!this.state.inLink&&(U=this.tokenizer.url(b,mangle))){b=b.substring(U.raw.length),j.push(U);continue}if(Fn=b,this.options.extensions&&this.options.extensions.startInline){let Qn=1/0;const Zn=b.slice(1);let Jn;this.options.extensions.startInline.forEach(function(Kn){Jn=Kn.call({lexer:this},Zn),typeof Jn=="number"&&Jn>=0&&(Qn=Math.min(Qn,Jn))}),Qn<1/0&&Qn>=0&&(Fn=b.substring(0,Qn+1))}if(U=this.tokenizer.inlineText(Fn,smartypants)){b=b.substring(U.raw.length),U.raw.slice(-1)!=="_"&&(Yn=U.raw.slice(-1)),Gn=!0,Bn=j[j.length-1],Bn&&Bn.type==="text"?(Bn.raw+=U.raw,Bn.text+=U.text):j.push(U);continue}if(b){const Qn="Infinite loop on byte: "+b.charCodeAt(0);if(this.options.silent){console.error(Qn);break}else throw new Error(Qn)}}return j}}class Renderer{constructor(b){this.options=b||defaults}code(b,j,U){const Bn=(j||"").match(/\S*/)[0];if(this.options.highlight){const Fn=this.options.highlight(b,Bn);Fn!=null&&Fn!==b&&(U=!0,b=Fn)}return b=b.replace(/\n$/,"")+`
`,Bn?'<pre><code class="'+this.options.langPrefix+escape(Bn)+'">'+(U?b:escape(b,!0))+`</code></pre>
`:"<pre><code>"+(U?b:escape(b,!0))+`</code></pre>
`}blockquote(b){return`<blockquote>
${b}</blockquote>
`}html(b){return b}heading(b,j,U,Bn){if(this.options.headerIds){const Fn=this.options.headerPrefix+Bn.slug(U);return`<h${j} id="${Fn}">${b}</h${j}>
`}return`<h${j}>${b}</h${j}>
`}hr(){return this.options.xhtml?`<hr/>
`:`<hr>
`}list(b,j,U){const Bn=j?"ol":"ul",Fn=j&&U!==1?' start="'+U+'"':"";return"<"+Bn+Fn+`>
`+b+"</"+Bn+`>
`}listitem(b){return`<li>${b}</li>
`}checkbox(b){return"<input "+(b?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(b){return`<p>${b}</p>
`}table(b,j){return j&&(j=`<tbody>${j}</tbody>`),`<table>
<thead>
`+b+`</thead>
`+j+`</table>
`}tablerow(b){return`<tr>
${b}</tr>
`}tablecell(b,j){const U=j.header?"th":"td";return(j.align?`<${U} align="${j.align}">`:`<${U}>`)+b+`</${U}>
`}strong(b){return`<strong>${b}</strong>`}em(b){return`<em>${b}</em>`}codespan(b){return`<code>${b}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(b){return`<del>${b}</del>`}link(b,j,U){if(b=cleanUrl(this.options.sanitize,this.options.baseUrl,b),b===null)return U;let Bn='<a href="'+b+'"';return j&&(Bn+=' title="'+j+'"'),Bn+=">"+U+"</a>",Bn}image(b,j,U){if(b=cleanUrl(this.options.sanitize,this.options.baseUrl,b),b===null)return U;let Bn=`<img src="${b}" alt="${U}"`;return j&&(Bn+=` title="${j}"`),Bn+=this.options.xhtml?"/>":">",Bn}text(b){return b}}class TextRenderer{strong(b){return b}em(b){return b}codespan(b){return b}del(b){return b}html(b){return b}text(b){return b}link(b,j,U){return""+U}image(b,j,U){return""+U}br(){return""}}class Slugger{constructor(){this.seen={}}serialize(b){return b.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(b,j){let U=b,Bn=0;if(this.seen.hasOwnProperty(U)){Bn=this.seen[b];do Bn++,U=b+"-"+Bn;while(this.seen.hasOwnProperty(U))}return j||(this.seen[b]=Bn,this.seen[U]=0),U}slug(b,j={}){const U=this.serialize(b);return this.getNextSafeSlug(U,j.dryrun)}}class Parser{constructor(b){this.options=b||defaults,this.options.renderer=this.options.renderer||new Renderer,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new TextRenderer,this.slugger=new Slugger}static parse(b,j){return new Parser(j).parse(b)}static parseInline(b,j){return new Parser(j).parseInline(b)}parse(b,j=!0){let U="",Bn,Fn,qn,Wn,Gn,Yn,Qn,Zn,Jn,Kn,ea,Xn,ta,na,ra,ca,pa,va,ga;const ia=b.length;for(Bn=0;Bn<ia;Bn++){if(Kn=b[Bn],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[Kn.type]&&(ga=this.options.extensions.renderers[Kn.type].call({parser:this},Kn),ga!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(Kn.type))){U+=ga||"";continue}switch(Kn.type){case"space":continue;case"hr":{U+=this.renderer.hr();continue}case"heading":{U+=this.renderer.heading(this.parseInline(Kn.tokens),Kn.depth,unescape(this.parseInline(Kn.tokens,this.textRenderer)),this.slugger);continue}case"code":{U+=this.renderer.code(Kn.text,Kn.lang,Kn.escaped);continue}case"table":{for(Zn="",Qn="",Wn=Kn.header.length,Fn=0;Fn<Wn;Fn++)Qn+=this.renderer.tablecell(this.parseInline(Kn.header[Fn].tokens),{header:!0,align:Kn.align[Fn]});for(Zn+=this.renderer.tablerow(Qn),Jn="",Wn=Kn.rows.length,Fn=0;Fn<Wn;Fn++){for(Yn=Kn.rows[Fn],Qn="",Gn=Yn.length,qn=0;qn<Gn;qn++)Qn+=this.renderer.tablecell(this.parseInline(Yn[qn].tokens),{header:!1,align:Kn.align[qn]});Jn+=this.renderer.tablerow(Qn)}U+=this.renderer.table(Zn,Jn);continue}case"blockquote":{Jn=this.parse(Kn.tokens),U+=this.renderer.blockquote(Jn);continue}case"list":{for(ea=Kn.ordered,Xn=Kn.start,ta=Kn.loose,Wn=Kn.items.length,Jn="",Fn=0;Fn<Wn;Fn++)ra=Kn.items[Fn],ca=ra.checked,pa=ra.task,na="",ra.task&&(va=this.renderer.checkbox(ca),ta?ra.tokens.length>0&&ra.tokens[0].type==="paragraph"?(ra.tokens[0].text=va+" "+ra.tokens[0].text,ra.tokens[0].tokens&&ra.tokens[0].tokens.length>0&&ra.tokens[0].tokens[0].type==="text"&&(ra.tokens[0].tokens[0].text=va+" "+ra.tokens[0].tokens[0].text)):ra.tokens.unshift({type:"text",text:va}):na+=va),na+=this.parse(ra.tokens,ta),Jn+=this.renderer.listitem(na,pa,ca);U+=this.renderer.list(Jn,ea,Xn);continue}case"html":{U+=this.renderer.html(Kn.text);continue}case"paragraph":{U+=this.renderer.paragraph(this.parseInline(Kn.tokens));continue}case"text":{for(Jn=Kn.tokens?this.parseInline(Kn.tokens):Kn.text;Bn+1<ia&&b[Bn+1].type==="text";)Kn=b[++Bn],Jn+=`
`+(Kn.tokens?this.parseInline(Kn.tokens):Kn.text);U+=j?this.renderer.paragraph(Jn):Jn;continue}default:{const la='Token with "'+Kn.type+'" type was not found.';if(this.options.silent){console.error(la);return}else throw new Error(la)}}}return U}parseInline(b,j){j=j||this.renderer;let U="",Bn,Fn,qn;const Wn=b.length;for(Bn=0;Bn<Wn;Bn++){if(Fn=b[Bn],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[Fn.type]&&(qn=this.options.extensions.renderers[Fn.type].call({parser:this},Fn),qn!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(Fn.type))){U+=qn||"";continue}switch(Fn.type){case"escape":{U+=j.text(Fn.text);break}case"html":{U+=j.html(Fn.text);break}case"link":{U+=j.link(Fn.href,Fn.title,this.parseInline(Fn.tokens,j));break}case"image":{U+=j.image(Fn.href,Fn.title,Fn.text);break}case"strong":{U+=j.strong(this.parseInline(Fn.tokens,j));break}case"em":{U+=j.em(this.parseInline(Fn.tokens,j));break}case"codespan":{U+=j.codespan(Fn.text);break}case"br":{U+=j.br();break}case"del":{U+=j.del(this.parseInline(Fn.tokens,j));break}case"text":{U+=j.text(Fn.text);break}default:{const Gn='Token with "'+Fn.type+'" type was not found.';if(this.options.silent){console.error(Gn);return}else throw new Error(Gn)}}}return U}}function marked($,b,j){if(typeof $>"u"||$===null)throw new Error("marked(): input parameter is undefined or null");if(typeof $!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call($)+", string expected");if(typeof b=="function"&&(j=b,b=null),b=merge({},marked.defaults,b||{}),checkSanitizeDeprecation(b),j){const Bn=b.highlight;let Fn;try{Fn=Lexer.lex($,b)}catch(Gn){return j(Gn)}const qn=function(Gn){let Yn;if(!Gn)try{b.walkTokens&&marked.walkTokens(Fn,b.walkTokens),Yn=Parser.parse(Fn,b)}catch(Qn){Gn=Qn}return b.highlight=Bn,Gn?j(Gn):j(null,Yn)};if(!Bn||Bn.length<3||(delete b.highlight,!Fn.length))return qn();let Wn=0;marked.walkTokens(Fn,function(Gn){Gn.type==="code"&&(Wn++,setTimeout(()=>{Bn(Gn.text,Gn.lang,function(Yn,Qn){if(Yn)return qn(Yn);Qn!=null&&Qn!==Gn.text&&(Gn.text=Qn,Gn.escaped=!0),Wn--,Wn===0&&qn()})},0))}),Wn===0&&qn();return}function U(Bn){if(Bn.message+=`
Please report this to https://github.com/markedjs/marked.`,b.silent)return"<p>An error occurred:</p><pre>"+escape(Bn.message+"",!0)+"</pre>";throw Bn}try{const Bn=Lexer.lex($,b);if(b.walkTokens){if(b.async)return Promise.all(marked.walkTokens(Bn,b.walkTokens)).then(()=>Parser.parse(Bn,b)).catch(U);marked.walkTokens(Bn,b.walkTokens)}return Parser.parse(Bn,b)}catch(Bn){U(Bn)}}marked.options=marked.setOptions=function($){return merge(marked.defaults,$),changeDefaults(marked.defaults),marked};marked.getDefaults=getDefaults;marked.defaults=defaults;marked.use=function(...$){const b=marked.defaults.extensions||{renderers:{},childTokens:{}};$.forEach(j=>{const U=merge({},j);if(U.async=marked.defaults.async||U.async,j.extensions&&(j.extensions.forEach(Bn=>{if(!Bn.name)throw new Error("extension name required");if(Bn.renderer){const Fn=b.renderers[Bn.name];Fn?b.renderers[Bn.name]=function(...qn){let Wn=Bn.renderer.apply(this,qn);return Wn===!1&&(Wn=Fn.apply(this,qn)),Wn}:b.renderers[Bn.name]=Bn.renderer}if(Bn.tokenizer){if(!Bn.level||Bn.level!=="block"&&Bn.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");b[Bn.level]?b[Bn.level].unshift(Bn.tokenizer):b[Bn.level]=[Bn.tokenizer],Bn.start&&(Bn.level==="block"?b.startBlock?b.startBlock.push(Bn.start):b.startBlock=[Bn.start]:Bn.level==="inline"&&(b.startInline?b.startInline.push(Bn.start):b.startInline=[Bn.start]))}Bn.childTokens&&(b.childTokens[Bn.name]=Bn.childTokens)}),U.extensions=b),j.renderer){const Bn=marked.defaults.renderer||new Renderer;for(const Fn in j.renderer){const qn=Bn[Fn];Bn[Fn]=(...Wn)=>{let Gn=j.renderer[Fn].apply(Bn,Wn);return Gn===!1&&(Gn=qn.apply(Bn,Wn)),Gn}}U.renderer=Bn}if(j.tokenizer){const Bn=marked.defaults.tokenizer||new Tokenizer;for(const Fn in j.tokenizer){const qn=Bn[Fn];Bn[Fn]=(...Wn)=>{let Gn=j.tokenizer[Fn].apply(Bn,Wn);return Gn===!1&&(Gn=qn.apply(Bn,Wn)),Gn}}U.tokenizer=Bn}if(j.walkTokens){const Bn=marked.defaults.walkTokens;U.walkTokens=function(Fn){let qn=[];return qn.push(j.walkTokens.call(this,Fn)),Bn&&(qn=qn.concat(Bn.call(this,Fn))),qn}}marked.setOptions(U)})};marked.walkTokens=function($,b){let j=[];for(const U of $)switch(j=j.concat(b.call(marked,U)),U.type){case"table":{for(const Bn of U.header)j=j.concat(marked.walkTokens(Bn.tokens,b));for(const Bn of U.rows)for(const Fn of Bn)j=j.concat(marked.walkTokens(Fn.tokens,b));break}case"list":{j=j.concat(marked.walkTokens(U.items,b));break}default:marked.defaults.extensions&&marked.defaults.extensions.childTokens&&marked.defaults.extensions.childTokens[U.type]?marked.defaults.extensions.childTokens[U.type].forEach(function(Bn){j=j.concat(marked.walkTokens(U[Bn],b))}):U.tokens&&(j=j.concat(marked.walkTokens(U.tokens,b)))}return j};marked.parseInline=function($,b){if(typeof $>"u"||$===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof $!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call($)+", string expected");b=merge({},marked.defaults,b||{}),checkSanitizeDeprecation(b);try{const j=Lexer.lexInline($,b);return b.walkTokens&&marked.walkTokens(j,b.walkTokens),Parser.parseInline(j,b)}catch(j){if(j.message+=`
Please report this to https://github.com/markedjs/marked.`,b.silent)return"<p>An error occurred:</p><pre>"+escape(j.message+"",!0)+"</pre>";throw j}};marked.Parser=Parser;marked.parser=Parser.parse;marked.Renderer=Renderer;marked.TextRenderer=TextRenderer;marked.Lexer=Lexer;marked.lexer=Lexer.lex;marked.Tokenizer=Tokenizer;marked.Slugger=Slugger;marked.parse=marked;marked.options;marked.setOptions;marked.use;marked.walkTokens;marked.parseInline;Parser.parse;Lexer.lex;const O$2=({size:$})=>h$3("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:$,height:$},[h$3("path",{d:"M697.173 85.333h-369.92c-144.64 0-241.92 101.547-241.92 252.587v348.587c0 150.613 97.28 252.16 241.92 252.16h369.92c144.64 0 241.494-101.547 241.494-252.16V337.92c0-151.04-96.854-252.587-241.494-252.587z",fill:"currentColor"}),h$3("path",{d:"m640.683 587.52-75.947-75.861 75.904-75.862a37.29 37.29 0 0 0 0-52.778 37.205 37.205 0 0 0-52.779 0l-75.946 75.818-75.862-75.946a37.419 37.419 0 0 0-52.821 0 37.419 37.419 0 0 0 0 52.821l75.947 75.947-75.776 75.733a37.29 37.29 0 1 0 52.778 52.821l75.776-75.776 75.947 75.947a37.376 37.376 0 0 0 52.779-52.821z",fill:"#888"})]),P$4=()=>h$3("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},h$3("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),V$1=()=>h$3("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},h$3("path",{d:"M563.2 463.3 677 540c1.7 1.2 3.7 1.8 5.8 1.8.7 0 1.4-.1 2-.2 2.7-.5 5.1-2.1 6.6-4.4l25.3-37.8c1.5-2.3 2.1-5.1 1.6-7.8s-2.1-5.1-4.4-6.6l-73.6-49.1 73.6-49.1c2.3-1.5 3.9-3.9 4.4-6.6.5-2.7 0-5.5-1.6-7.8l-25.3-37.8a10.1 10.1 0 0 0-6.6-4.4c-.7-.1-1.3-.2-2-.2-2.1 0-4.1.6-5.8 1.8l-113.8 76.6c-9.2 6.2-14.7 16.4-14.7 27.5.1 11 5.5 21.3 14.7 27.4zM387 348.8h-45.5c-5.7 0-10.4 4.7-10.4 10.4v153.3c0 5.7 4.7 10.4 10.4 10.4H387c5.7 0 10.4-4.7 10.4-10.4V359.2c0-5.7-4.7-10.4-10.4-10.4zm333.8 241.3-41-20a10.3 10.3 0 0 0-8.1-.5c-2.6.9-4.8 2.9-5.9 5.4-30.1 64.9-93.1 109.1-164.4 115.2-5.7.5-9.9 5.5-9.5 11.2l3.9 45.5c.5 5.3 5 9.5 10.3 9.5h.9c94.8-8 178.5-66.5 218.6-152.7 2.4-5 .3-11.2-4.8-13.6zm186-186.1c-11.9-42-30.5-81.4-55.2-117.1-24.1-34.9-53.5-65.6-87.5-91.2-33.9-25.6-71.5-45.5-111.6-59.2-41.2-14-84.1-21.1-127.8-21.1h-1.2c-75.4 0-148.8 21.4-212.5 61.7-63.7 40.3-114.3 97.6-146.5 165.8-32.2 68.1-44.3 143.6-35.1 218.4 9.3 74.8 39.4 145 87.3 203.3.1.2.3.3.4.5l36.2 38.4c1.1 1.2 2.5 2.1 3.9 2.6 73.3 66.7 168.2 103.5 267.5 103.5 73.3 0 145.2-20.3 207.7-58.7 37.3-22.9 70.3-51.5 98.1-85 27.1-32.7 48.7-69.5 64.2-109.1 15.5-39.7 24.4-81.3 26.6-123.8 2.4-43.6-2.5-87-14.5-129zm-60.5 181.1c-8.3 37-22.8 72-43 104-19.7 31.1-44.3 58.6-73.1 81.7-28.8 23.1-61 41-95.7 53.4-35.6 12.7-72.9 19.1-110.9 19.1-82.6 0-161.7-30.6-222.8-86.2l-34.1-35.8c-23.9-29.3-42.4-62.2-55.1-97.7-12.4-34.7-18.8-71-19.2-107.9-.4-36.9 5.4-73.3 17.1-108.2 12-35.8 30-69.2 53.4-99.1 31.7-40.4 71.1-72 117.2-94.1 44.5-21.3 94-32.6 143.4-32.6 49.3 0 97 10.8 141.8 32 34.3 16.3 65.3 38.1 92 64.8 26.1 26 47.5 56 63.6 89.2 16.2 33.2 26.6 68.5 31 105.1 4.6 37.5 2.7 75.3-5.6 112.3z",fill:"currentColor"})),T$1=()=>h$3("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[h$3("path",{d:"M784 112H240c-88 0-160 72-160 160v480c0 88 72 160 160 160h544c88 0 160-72 160-160V272c0-88-72-160-160-160zm96 640c0 52.8-43.2 96-96 96H240c-52.8 0-96-43.2-96-96V272c0-52.8 43.2-96 96-96h544c52.8 0 96 43.2 96 96v480z",fill:"currentColor"}),h$3("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),D$2=({active:$=!1})=>h$3("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[h$3("path",{d:"M850.654 323.804c-11.042-25.625-26.862-48.532-46.885-68.225-20.022-19.61-43.258-34.936-69.213-45.73-26.78-11.124-55.124-16.727-84.375-16.727-40.622 0-80.256 11.123-114.698 32.135A214.79 214.79 0 0 0 512 241.819a214.79 214.79 0 0 0-23.483-16.562c-34.442-21.012-74.076-32.135-114.698-32.135-29.25 0-57.595 5.603-84.375 16.727-25.872 10.711-49.19 26.12-69.213 45.73-20.105 19.693-35.843 42.6-46.885 68.225-11.453 26.615-17.303 54.877-17.303 83.963 0 27.439 5.603 56.03 16.727 85.117 9.31 24.307 22.659 49.52 39.715 74.981 27.027 40.293 64.188 82.316 110.33 124.915 76.465 70.615 152.189 119.394 155.402 121.371l19.528 12.525c8.652 5.52 19.776 5.52 28.427 0l19.529-12.525c3.213-2.06 78.854-50.756 155.401-121.371 46.143-42.6 83.304-84.622 110.33-124.915 17.057-25.46 30.487-50.674 39.716-74.981 11.124-29.087 16.727-57.678 16.727-85.117.082-29.086-5.768-57.348-17.221-83.963z"+($?"":"M512 761.5S218.665 573.55 218.665 407.767c0-83.963 69.461-152.023 155.154-152.023 60.233 0 112.473 33.618 138.181 82.727 25.708-49.109 77.948-82.727 138.18-82.727 85.694 0 155.155 68.06 155.155 152.023C805.335 573.551 512 761.5 512 761.5z"),fill:$?"red":"currentColor"})]),N$2=()=>h$3("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[h$3("path",{d:"M710.816 654.301c70.323-96.639 61.084-230.578-23.705-314.843-46.098-46.098-107.183-71.109-172.28-71.109-65.008 0-126.092 25.444-172.28 71.109-45.227 46.098-70.756 107.183-70.756 172.106 0 64.923 25.444 126.007 71.194 172.106 46.099 46.098 107.184 71.109 172.28 71.109 51.414 0 100.648-16.212 142.824-47.404l126.53 126.006c7.058 7.06 16.297 10.979 26.406 10.979 10.105 0 19.343-3.919 26.402-10.979 14.467-14.467 14.467-38.172 0-52.723L710.816 654.301zm-315.107-23.265c-65.88-65.88-65.88-172.54 0-238.42 32.069-32.07 74.245-49.149 119.471-49.149 45.227 0 87.407 17.603 119.472 49.149 65.88 65.879 65.88 172.539 0 238.42-63.612 63.178-175.242 63.178-238.943 0zm0 0",fill:"currentColor"}),h$3("path",{d:"M703.319 121.603H321.03c-109.8 0-199.469 89.146-199.469 199.38v382.034c0 109.796 89.236 199.38 199.469 199.38h207.397c20.653 0 37.384-16.645 37.384-37.299 0-20.649-16.731-37.296-37.384-37.296H321.03c-68.582 0-124.352-55.77-124.352-124.267V321.421c0-68.496 55.77-124.267 124.352-124.267h382.289c68.582 0 124.352 55.771 124.352 124.267V524.72c0 20.654 16.736 37.299 37.385 37.299 20.654 0 37.384-16.645 37.384-37.299V320.549c-.085-109.8-89.321-198.946-199.121-198.946zm0 0",fill:"currentColor"})]),B$1=()=>h$3("svg",{width:"16",height:"16",ariaHidden:"true"},h$3("path",{d:"M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z",fill:"currentColor"})),W$1=()=>h$3("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},h$3("path",{d:"M810.667 213.333a64 64 0 0 1 64 64V704a64 64 0 0 1-64 64H478.336l-146.645 96.107a21.333 21.333 0 0 1-33.024-17.856V768h-85.334a64 64 0 0 1-64-64V277.333a64 64 0 0 1 64-64h597.334zm0 64H213.333V704h149.334v63.296L459.243 704h351.424V277.333zm-271.36 213.334v64h-176.64v-64h176.64zm122.026-128v64H362.667v-64h298.666z",fill:"currentColor"})),F$2=()=>h$3("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},h$3("path",{d:"M813.039 318.772L480.53 651.278H360.718V531.463L693.227 198.961C697.904 194.284 704.027 192 710.157 192C716.302 192 722.436 194.284 727.114 198.961L813.039 284.88C817.72 289.561 820 295.684 820 301.825C820 307.95 817.72 314.093 813.039 318.772ZM710.172 261.888L420.624 551.431V591.376H460.561L750.109 301.825L710.172 261.888ZM490.517 291.845H240.906V771.09H720.156V521.479C720.156 504.947 733.559 491.529 750.109 491.529C766.653 491.529 780.063 504.947 780.063 521.479V791.059C780.063 813.118 762.18 831 740.125 831H220.937C198.882 831 181 813.118 181 791.059V271.872C181 249.817 198.882 231.935 220.937 231.935H490.517C507.06 231.935 520.47 245.352 520.47 261.888C520.47 278.424 507.06 291.845 490.517 291.845Z",fill:"currentColor"})),K=()=>h$3("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},h$3("path",{d:"m894.4 461.56-54.4-63.2c-10.4-12-18.8-34.4-18.8-50.4v-68c0-42.4-34.8-77.2-77.2-77.2h-68c-15.6 0-38.4-8.4-50.4-18.8l-63.2-54.4c-27.6-23.6-72.8-23.6-100.8 0l-62.8 54.8c-12 10-34.8 18.4-50.4 18.4h-69.2c-42.4 0-77.2 34.8-77.2 77.2v68.4c0 15.6-8.4 38-18.4 50l-54 63.6c-23.2 27.6-23.2 72.4 0 100l54 63.6c10 12 18.4 34.4 18.4 50v68.4c0 42.4 34.8 77.2 77.2 77.2h69.2c15.6 0 38.4 8.4 50.4 18.8l63.2 54.4c27.6 23.6 72.8 23.6 100.8 0l63.2-54.4c12-10.4 34.4-18.8 50.4-18.8h68c42.4 0 77.2-34.8 77.2-77.2v-68c0-15.6 8.4-38.4 18.8-50.4l54.4-63.2c23.2-27.6 23.2-73.2-.4-100.8zm-216-25.2-193.2 193.2a30 30 0 0 1-42.4 0l-96.8-96.8a30.16 30.16 0 0 1 0-42.4c11.6-11.6 30.8-11.6 42.4 0l75.6 75.6 172-172c11.6-11.6 30.8-11.6 42.4 0 11.6 11.6 11.6 30.8 0 42.4z",fill:"#27ae60"})),q$1=({size:$})=>h$3("svg",{width:$,height:$,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},h$3("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},h$3("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),G=()=>h$3("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[h$3("path",{style:"transform: translateY(0.5px)",d:"M18.968 10.5H15.968V11.484H17.984V12.984H15.968V15H14.468V9H18.968V10.5V10.5ZM8.984 9C9.26533 9 9.49967 9.09367 9.687 9.281C9.87433 9.46833 9.968 9.70267 9.968 9.984V10.5H6.499V13.5H8.468V12H9.968V14.016C9.968 14.2973 9.87433 14.5317 9.687 14.719C9.49967 14.9063 9.26533 15 8.984 15H5.984C5.70267 15 5.46833 14.9063 5.281 14.719C5.09367 14.5317 5 14.2973 5 14.016V9.985C5 9.70367 5.09367 9.46933 5.281 9.282C5.46833 9.09467 5.70267 9.001 5.984 9.001H8.984V9ZM11.468 9H12.968V15H11.468V9V9Z"}),h$3("path",{d:"M18.5 3H5.75C3.6875 3 2 4.6875 2 6.75V18C2 20.0625 3.6875 21.75 5.75 21.75H18.5C20.5625 21.75 22.25 20.0625 22.25 18V6.75C22.25 4.6875 20.5625 3 18.5 3ZM20.75 18C20.75 19.2375 19.7375 20.25 18.5 20.25H5.75C4.5125 20.25 3.5 19.2375 3.5 18V6.75C3.5 5.5125 4.5125 4.5 5.75 4.5H18.5C19.7375 4.5 20.75 5.5125 20.75 6.75V18Z"})]),Z={"Content-Type":"application/json"},J$1=($,b="")=>{if(typeof $=="object"&&$.errno)throw new TypeError(`${b} failed with ${$.errno}: ${$.errmsg}`);return $},Y=({serverURL:$,lang:b,path:j,type:U,action:Bn})=>fetch(`${$}/article?lang=${b}`,{method:"POST",headers:Z,body:JSON.stringify({path:j,type:U,action:Bn})}).then(Fn=>Fn.json()),X=({serverURL:$,lang:b,token:j,objectId:U,comment:Bn})=>fetch(`${$}/comment/${U}?lang=${b}`,{method:"PUT",headers:{...Z,Authorization:`Bearer ${j}`},body:JSON.stringify(Bn)}).then(Fn=>Fn.json()).then(Fn=>J$1(Fn,"Update comment"));let Q$1=null;const ee=()=>Q$1||(Q$1=useStorage("WALINE_LIKE",[]));let te=null;const ne=()=>te??(te=useStorage("WALINE_REACTION",{}));var ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},le={},ie={},oe={},re=ae&&ae.__awaiter||function($,b,j,U){return new(j||(j=Promise))(function(Bn,Fn){function qn(Yn){try{Gn(U.next(Yn))}catch(Qn){Fn(Qn)}}function Wn(Yn){try{Gn(U.throw(Yn))}catch(Qn){Fn(Qn)}}function Gn(Yn){var Qn;Yn.done?Bn(Yn.value):(Qn=Yn.value,Qn instanceof j?Qn:new j(function(Zn){Zn(Qn)})).then(qn,Wn)}Gn((U=U.apply($,b||[])).next())})},se=ae&&ae.__generator||function($,b){var j,U,Bn,Fn,qn={label:0,sent:function(){if(1&Bn[0])throw Bn[1];return Bn[1]},trys:[],ops:[]};return Fn={next:Wn(0),throw:Wn(1),return:Wn(2)},typeof Symbol=="function"&&(Fn[Symbol.iterator]=function(){return this}),Fn;function Wn(Gn){return function(Yn){return function(Qn){if(j)throw new TypeError("Generator is already executing.");for(;qn;)try{if(j=1,U&&(Bn=2&Qn[0]?U.return:Qn[0]?U.throw||((Bn=U.return)&&Bn.call(U),0):U.next)&&!(Bn=Bn.call(U,Qn[1])).done)return Bn;switch(U=0,Bn&&(Qn=[2&Qn[0],Bn.value]),Qn[0]){case 0:case 1:Bn=Qn;break;case 4:return qn.label++,{value:Qn[1],done:!1};case 5:qn.label++,U=Qn[1],Qn=[0];continue;case 7:Qn=qn.ops.pop(),qn.trys.pop();continue;default:if(Bn=qn.trys,!((Bn=Bn.length>0&&Bn[Bn.length-1])||Qn[0]!==6&&Qn[0]!==2)){qn=0;continue}if(Qn[0]===3&&(!Bn||Qn[1]>Bn[0]&&Qn[1]<Bn[3])){qn.label=Qn[1];break}if(Qn[0]===6&&qn.label<Bn[1]){qn.label=Bn[1],Bn=Qn;break}if(Bn&&qn.label<Bn[2]){qn.label=Bn[2],qn.ops.push(Qn);break}Bn[2]&&qn.ops.pop(),qn.trys.pop();continue}Qn=b.call($,qn)}catch(Zn){Qn=[6,Zn],U=0}finally{j=Bn=0}if(5&Qn[0])throw Qn[1];return{value:Qn[0]?Qn[1]:void 0,done:!0}}([Gn,Yn])}}};Object.defineProperty(oe,"__esModule",{value:!0}),oe.ReCaptchaInstance=void 0;var ce=function(){function $(b,j,U){this.siteKey=b,this.recaptchaID=j,this.recaptcha=U,this.styleContainer=null}return $.prototype.execute=function(b){return re(this,void 0,void 0,function(){return se(this,function(j){return[2,this.recaptcha.enterprise?this.recaptcha.enterprise.execute(this.recaptchaID,{action:b}):this.recaptcha.execute(this.recaptchaID,{action:b})]})})},$.prototype.getSiteKey=function(){return this.siteKey},$.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},$.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},$}();oe.ReCaptchaInstance=ce,Object.defineProperty(ie,"__esModule",{value:!0}),ie.getInstance=ie.load=void 0;var ue,de=oe;(function($){$[$.NOT_LOADED=0]="NOT_LOADED",$[$.LOADING=1]="LOADING",$[$.LOADED=2]="LOADED"})(ue||(ue={}));var me=function(){function $(){}return $.load=function(b,j){if(j===void 0&&(j={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if($.getLoadingState()===ue.LOADED)return $.instance.getSiteKey()===b?Promise.resolve($.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if($.getLoadingState()===ue.LOADING)return b!==$.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(Bn,Fn){$.successfulLoadingConsumers.push(function(qn){return Bn(qn)}),$.errorLoadingRunnable.push(function(qn){return Fn(qn)})});$.instanceSiteKey=b,$.setLoadingState(ue.LOADING);var U=new $;return new Promise(function(Bn,Fn){U.loadScript(b,j.useRecaptchaNet||!1,j.useEnterprise||!1,j.renderParameters?j.renderParameters:{},j.customUrl).then(function(){$.setLoadingState(ue.LOADED);var qn=U.doExplicitRender(grecaptcha,b,j.explicitRenderParameters?j.explicitRenderParameters:{},j.useEnterprise||!1),Wn=new de.ReCaptchaInstance(b,qn,grecaptcha);$.successfulLoadingConsumers.forEach(function(Gn){return Gn(Wn)}),$.successfulLoadingConsumers=[],j.autoHideBadge&&Wn.hideBadge(),$.instance=Wn,Bn(Wn)}).catch(function(qn){$.errorLoadingRunnable.forEach(function(Wn){return Wn(qn)}),$.errorLoadingRunnable=[],Fn(qn)})})},$.getInstance=function(){return $.instance},$.setLoadingState=function(b){$.loadingState=b},$.getLoadingState=function(){return $.loadingState===null?ue.NOT_LOADED:$.loadingState},$.prototype.loadScript=function(b,j,U,Bn,Fn){var qn=this;j===void 0&&(j=!1),U===void 0&&(U=!1),Bn===void 0&&(Bn={}),Fn===void 0&&(Fn="");var Wn=document.createElement("script");Wn.setAttribute("recaptcha-v3-script","");var Gn="https://www.google.com/recaptcha/api.js";j&&(Gn=U?"https://recaptcha.net/recaptcha/enterprise.js":"https://recaptcha.net/recaptcha/api.js"),U&&(Gn="https://www.google.com/recaptcha/enterprise.js"),Fn&&(Gn=Fn),Bn.render&&(Bn.render=void 0);var Yn=this.buildQueryString(Bn);return Wn.src=Gn+"?render=explicit"+Yn,new Promise(function(Qn,Zn){Wn.addEventListener("load",qn.waitForScriptToLoad(function(){Qn(Wn)},U),!1),Wn.onerror=function(Jn){$.setLoadingState(ue.NOT_LOADED),Zn(Jn)},document.head.appendChild(Wn)})},$.prototype.buildQueryString=function(b){return Object.keys(b).length<1?"":"&"+Object.keys(b).filter(function(j){return!!b[j]}).map(function(j){return j+"="+b[j]}).join("&")},$.prototype.waitForScriptToLoad=function(b,j){var U=this;return function(){window.grecaptcha===void 0?setTimeout(function(){U.waitForScriptToLoad(b,j)},$.SCRIPT_LOAD_DELAY):j?window.grecaptcha.enterprise.ready(function(){b()}):window.grecaptcha.ready(function(){b()})}},$.prototype.doExplicitRender=function(b,j,U,Bn){var Fn={sitekey:j,badge:U.badge,size:U.size,tabindex:U.tabindex};return U.container?Bn?b.enterprise.render(U.container,Fn):b.render(U.container,Fn):Bn?b.enterprise.render(Fn):b.render(Fn)},$.loadingState=null,$.instance=null,$.instanceSiteKey=null,$.successfulLoadingConsumers=[],$.errorLoadingRunnable=[],$.SCRIPT_LOAD_DELAY=25,$}();ie.load=me.load,ie.getInstance=me.getInstance,function($){Object.defineProperty($,"__esModule",{value:!0}),$.ReCaptchaInstance=$.getInstance=$.load=void 0;var b=ie;Object.defineProperty($,"load",{enumerable:!0,get:function(){return b.load}}),Object.defineProperty($,"getInstance",{enumerable:!0,get:function(){return b.getInstance}});var j=oe;Object.defineProperty($,"ReCaptchaInstance",{enumerable:!0,get:function(){return j.ReCaptchaInstance}})}(le);const ve={};let pe=null;const he=()=>pe??(pe=useStorage("WALINE_USER",{})),ge={key:0,class:"wl-reaction"},fe=["textContent"],ye={class:"wl-reaction-list"},we=["onClick"],be={class:"wl-reaction-img"},ke=["src","alt"],Ce=["textContent"],$e=["textContent"];var Le=defineComponent({__name:"ArticleReaction",setup($,{expose:b}){b();const j=ne(),U=inject("config"),Bn=ref(-1),Fn=ref([]),qn=computed(()=>U.value.locale),Wn=computed(()=>U.value.reaction.length>0),Gn=computed(()=>{const{reaction:Zn,path:Jn}=U.value;return Zn.map((Kn,ea)=>({icon:Kn,desc:qn.value[`reaction${ea}`],active:j.value[Jn]===ea}))});let Yn;const Qn=async()=>{if(Wn.value){const{serverURL:Zn,lang:Jn,path:Kn,reaction:ea}=U.value,Xn=new AbortController;Yn=Xn.abort.bind(Xn);const ta=await(({serverURL:na,lang:ra,paths:ca,type:pa,signal:va})=>fetch(`${na}/article?path=${encodeURIComponent(ca.join(","))}&type=${encodeURIComponent(pa.join(","))}&lang=${ra}`,{signal:va}).then(ga=>ga.json()))({serverURL:Zn,lang:Jn,paths:[Kn],type:ea.map((na,ra)=>`reaction${ra}`),signal:Xn.signal});if(Array.isArray(ta)||typeof ta=="number")return;Fn.value=ea.map((na,ra)=>ta[`reaction${ra}`])}};return onMounted(()=>{watch(()=>[U.value.serverURL,U.value.path],()=>{Qn()},{immediate:!0})}),onUnmounted(()=>Yn==null?void 0:Yn()),(Zn,Jn)=>unref(Gn).length?(openBlock(),createElementBlock("div",ge,[createBaseVNode("div",{class:"wl-reaction-title",textContent:toDisplayString(unref(qn).reactionTitle)},null,8,fe),createBaseVNode("ul",ye,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Gn),({active:Kn,icon:ea,desc:Xn},ta)=>(openBlock(),createElementBlock("li",{key:ta,class:normalizeClass(["wl-reaction-item",{active:Kn}]),onClick:na=>(async ra=>{if(Bn.value===-1){const{serverURL:ca,lang:pa,path:va}=U.value,ga=j.value[va];Bn.value=ra,ga!==void 0&&(await Y({serverURL:ca,lang:pa,path:va,type:`reaction${ga}`,action:"desc"}),Fn.value[ga]=Math.max(Fn.value[ga]-1,0)),ga!==ra&&(await Y({serverURL:ca,lang:pa,path:va,type:`reaction${ra}`}),Fn.value[ra]=(Fn.value[ra]||0)+1),ga===ra?delete j.value[va]:j.value[va]=ra,Bn.value=-1}})(ta)},[createBaseVNode("div",be,[createBaseVNode("img",{src:ea,alt:Xn},null,8,ke),Bn.value===ta?(openBlock(),createBlock(unref(q$1),{key:0,class:"wl-reaction-loading"})):(openBlock(),createElementBlock("div",{key:1,class:"wl-reaction-votes",textContent:toDisplayString(Fn.value[ta]||0)},null,8,Ce))]),createBaseVNode("div",{class:"wl-reaction-text",textContent:toDisplayString(Xn)},null,8,$e)],10,we))),128))])])):createCommentVNode("v-if",!0)}}),xe=($,b)=>{const j=$.__vccOpts||$;for(const[U,Bn]of b)j[U]=Bn;return j},Ie=xe(Le,[["__file","ArticleReaction.vue"]]);const Re=["data-index"],Ee=["src","title","onClick"];var je=xe(defineComponent({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup($,{expose:b}){const j=$;b();let U=null;const Bn=ref(null),Fn=ref({}),qn=ref([]),Wn=()=>{const Zn=Math.floor((Bn.value.getBoundingClientRect().width+j.gap)/(j.columnWidth+j.gap));return Zn>0?Zn:1},Gn=async Zn=>{var Kn;if(Zn>=j.items.length)return;await nextTick();const Jn=Array.from(((Kn=Bn.value)==null?void 0:Kn.children)||[]).reduce((ea,Xn)=>Xn.getBoundingClientRect().height<ea.getBoundingClientRect().height?Xn:ea);qn.value[Number(Jn.dataset.index)].push(Zn),await Gn(Zn+1)},Yn=async(Zn=!1)=>{if(qn.value.length===Wn()&&!Zn)return;var Jn;qn.value=(Jn=Wn(),new Array(Jn).fill(null).map(()=>[]));const Kn=window.scrollY;await Gn(0),window.scrollTo({top:Kn})},Qn=Zn=>{Fn.value[Zn.target.src]=!0};return onMounted(()=>{Yn(!0),U=new ResizeObserver(()=>{Yn()}),U.observe(Bn.value),watch(()=>[j.items],()=>{Fn.value={},Yn(!0)}),watch(()=>[j.columnWidth,j.gap],()=>{Yn()})}),onBeforeUnmount(()=>U.unobserve(Bn.value)),(Zn,Jn)=>(openBlock(),createElementBlock("div",{ref_key:"wall",ref:Bn,class:"wl-gallery",style:normalizeStyle({gap:`${$.gap}px`})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(qn.value,(Kn,ea)=>(openBlock(),createElementBlock("div",{key:ea,class:"wl-gallery-column","data-index":ea,style:normalizeStyle({gap:`${$.gap}px`})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Kn,Xn=>(openBlock(),createElementBlock(Fragment,{key:Xn},[Fn.value[$.items[Xn].src]?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(q$1),{key:0,size:36,style:{margin:"20px auto"}})),createBaseVNode("img",{class:"wl-gallery-item",src:$.items[Xn].src,title:$.items[Xn].title,loading:"lazy",onLoad:Qn,onClick:ta=>Zn.$emit("insert",`![](${$.items[Xn].src})`)},null,40,Ee)],64))),128))],12,Re))),128))],4))}}),[["__file","ImageWall.vue"]]);const Se=["nick","mail","link"],_e=$=>$.filter(b=>Se.includes(b)),Ae=["//unpkg.com/@waline/emojis@1.1.0/weibo"],ze=$=>new Promise((b,j)=>{if($.size>128e3)return j(new Error("File too large! File size limit 128KB"));const U=new FileReader;U.readAsDataURL($),U.onload=()=>{var Bn;return b(((Bn=U.result)==null?void 0:Bn.toString())||"")},U.onerror=j}),Ue=$=>$===!0?'<p class="wl-tex">Tex is not available in preview</p>':'<span class="wl-tex">Tex is not available in preview</span>',Me=$=>{const b=async(j,U={})=>fetch(`https://api.giphy.com/v1/gifs/${j}?${new URLSearchParams({lang:$,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...U}).toString()}`).then(Bn=>Bn.json()).then(({data:Bn})=>Bn.map(Fn=>({title:Fn.title,src:Fn.images.downsized_medium.url})));return{search:j=>b("search",{q:j,offset:"0"}),default:()=>b("trending",{}),more:(j,U=0)=>b("search",{q:j,offset:U.toString()})}},He=["//unpkg.com/@waline/emojis/tieba/tieba_agree.png","//unpkg.com/@waline/emojis/tieba/tieba_look_down.png","//unpkg.com/@waline/emojis/tieba/tieba_sunglasses.png","//unpkg.com/@waline/emojis/tieba/tieba_pick_nose.png","//unpkg.com/@waline/emojis/tieba/tieba_awkward.png","//unpkg.com/@waline/emojis/tieba/tieba_sleep.png"],Oe=new RegExp(`(${/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source}|${/</.source})|((?:${/(?:^|\s)\/\/(.+?)$/gm.source})|(?:${/\/\*([\S\s]*?)\*\//gm.source}))`,"gmi"),Pe=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Ve={},Te=$=>{let b=0;return $.replace(Oe,(j,U,Bn)=>{if(Bn)return`<span style="color: slategray">${Bn}</span>`;if(U==="<")return"&lt;";let Fn;Ve[U]?Fn=Ve[U]:(Fn=Pe[b],Ve[U]=Fn);const qn=`<span style="color: #${Fn}">${U}</span>`;return b=++b%Pe.length,qn})},De=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","like","cancelLike","reply","cancelReply","comment","refresh","more","preview","emoji","uploadImage","seconds","minutes","hours","days","now","uploading","login","logout","admin","sticky","word","wordHint","anonymous","level0","level1","level2","level3","level4","level5","gif","gifSearchPlaceholder","profile","approved","waiting","spam","unsticky","oldest","latest","hottest","reactionTitle"],Ne=$=>Object.fromEntries($.map((b,j)=>[De[j],b]));var Be=Ne(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words",`Please input comments between $0 and $1 words!
Current word number: $2`,"Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile","Approved","Waiting","Spam","Unsticky","Oldest","Latest","Hottest","What do you think?"]),We=Ne(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),Fe=Ne(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 $1 字之间
当前字数$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Ke=Ne(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎評論","來發評論吧~","提交","喜歡","取消喜歡","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字",`評論字數應在 $0 $1 字之間
當前字數$2`,"匿名","潛水","冒泡","吐槽","活躍","話癆","傳說","表情包","搜索表情包","個人資料","通過","待審核","垃圾","取消置頂","按倒序","按正序","按熱度","你認為這篇文章怎麼樣?"]),qe=Ne(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras",`Favor enviar comentário com $0 a $1 palavras!
Número de palavras atuais: $2`,"Anônimo","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF","informação pessoal","Aprovado","Espera","Spam","Unsticky","Mais velho","Mais recentes","Mais quente","O que você acha?"]),Ge=Ne(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]);const Ze={zh:Fe,"zh-cn":Fe,"zh-CN":Fe,"zh-tw":Ke,"zh-TW":Ke,en:Be,"en-US":Be,"en-us":Be,jp:We,ja:We,"jp-jp":We,"jp-JP":We,"pt-br":qe,"pt-BR":qe,ru:Ge,"ru-ru":Ge,"ru-RU":Ge},Je=$=>{try{$=decodeURI($)}catch{}return $},Ye=($="")=>$.replace(/\/$/u,""),Xe=$=>/^(https?:)?\/\//.test($),Qe=$=>{const b=Ye($);return Xe(b)?b:`https://${b}`},et=$=>Array.isArray($)?$:!!$&&[0,$],tt=($,b)=>typeof $=="function"?$:$!==!1&&b,nt="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-color:#888;--waline-bgcolor:#1e1e1e;--waline-bgcolor-light:#272727;--waline-bgcolor-hover: #444;--waline-border-color:#333;--waline-disable-bgcolor:#444;--waline-disable-color:#272727;--waline-bq-color:#272727;--waline-info-bgcolor:#272727;--waline-info-color:#666}",at=($,b)=>{let j=$.toString();for(;j.length<b;)j="0"+j;return j},lt=($,b,j)=>{if(!$)return"";const U=typeof $=="string"?new Date($.indexOf(" ")!==-1?$.replace(/-/g,"/"):$):$,Bn=b.getTime()-U.getTime(),Fn=Math.floor(Bn/864e5);if(Fn===0){const qn=Bn%864e5,Wn=Math.floor(qn/36e5);if(Wn===0){const Gn=qn%36e5,Yn=Math.floor(Gn/6e4);if(Yn===0){const Qn=Gn%6e4;return`${Math.round(Qn/1e3)} ${j.seconds}`}return`${Yn} ${j.minutes}`}return`${Wn} ${j.hours}`}return Fn<0?j.now:Fn<8?`${Fn} ${j.days}`:(qn=>{const Wn=at(qn.getDate(),2),Gn=at(qn.getMonth()+1,2);return`${at(qn.getFullYear(),2)}-${Gn}-${Wn}`})(U)},it=$=>{const b=useStorage("WALINE_EMOJI",{}),j=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test($));if(j){const U=b.value[$];if(U)return Promise.resolve(U)}return fetch(`${$}/info.json`).then(U=>U.json()).then(U=>{const Bn={folder:$,...U};return j&&(b.value[$]=Bn),Bn})},ot=($,b="",j="",U="")=>`${b?`${b}/`:""}${j}${$}${U?`.${U}`:""}`,rt=$=>$.type.includes("image"),st=$=>{const b=Array.from($).find(rt);return b?b.getAsFile():null},ct=/\$.*?\$/,ut=/^\$(.*?)\$/,dt=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,mt=($="",b={})=>$.replace(/:(.+?):/g,(j,U)=>b[U]?`<img class="wl-emoji" src="${b[U]}" alt="${U}">`:j),vt=($,{emojiMap:b,highlighter:j,texRenderer:U})=>{if(marked.setOptions({highlight:j||void 0,breaks:!0,smartLists:!0,smartypants:!0}),U){const Bn=(Fn=>[{name:"blockMath",level:"block",tokenizer(qn){const Wn=dt.exec(qn);if(Wn!==null)return{type:"html",raw:Wn[0],text:Fn(!0,Wn[1])}}},{name:"inlineMath",level:"inline",start(qn){const Wn=qn.search(ct);return Wn!==-1?Wn:qn.length},tokenizer(qn){const Wn=ut.exec(qn);if(Wn!==null)return{type:"html",raw:Wn[0],text:Fn(!1,Wn[1])}}}])(U);marked.use({extensions:Bn})}return marked.parse(mt($,b))},pt={class:"wl-comment"},ht={key:0,class:"wl-login-info"},gt={class:"wl-avatar"},ft=["title"],yt=["title"],wt=["src"],bt=["title","textContent"],kt={class:"wl-panel"},Ct=["for","textContent"],$t=["id","onUpdate:modelValue","name","type"],Lt=["placeholder"],xt={class:"wl-preview"},It=createBaseVNode("hr",null,null,-1),Rt=["innerHTML"],Et={class:"wl-footer"},jt={class:"wl-actions"},St={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},_t=["title"],At=["title"],zt=["title"],Ut=["title"],Mt={class:"wl-info"},Ht={class:"wl-text-number"},Ot={key:0},Pt=["textContent"],Vt=["textContent"],Tt=["disabled"],Dt=["placeholder"],Nt={key:0,class:"wl-loading"},Bt={key:0,class:"wl-tab-wrapper"},Wt=["title","onClick"],Ft=["src","alt"],Kt={key:0,class:"wl-tabs"},qt=["onClick"],Gt=["src","alt","title"],Zt=["title"];var Jt=defineComponent({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup($,{expose:b,emit:j}){const U=$;b();const Bn=inject("config"),Fn=useStorage("WALINE_COMMENT_BOX_EDITOR",""),qn=useStorage("WALINE_USER_META",{nick:"",mail:"",link:""}),Wn=he(),Gn=ref({}),Yn=ref(null),Qn=ref(null),Zn=ref(null),Jn=ref(null),Kn=ref(null),ea=ref(null),Xn=ref(null),ta=ref({tabs:[],map:{}}),na=ref(0),ra=ref(!1),ca=ref(!1),pa=ref(!1),va=ref(""),ga=ref(0),ia=reactive({loading:!0,list:[]}),la=ref(0),ba=ref(!1),Sa=ref(""),Aa=ref(!1),ka=ref(!1),sa=computed(()=>Bn.value.locale),aa=computed(()=>{var fa;return Boolean((fa=Wn.value)==null?void 0:fa.token)}),oa=computed(()=>Bn.value.imageUploader!==!1),da=fa=>{const ha=Yn.value,Ca=ha.selectionStart,Ia=ha.selectionEnd||0,ya=ha.scrollTop;Fn.value=ha.value.substring(0,Ca)+fa+ha.value.substring(Ia,ha.value.length),ha.focus(),ha.selectionStart=Ca+fa.length,ha.selectionEnd=Ca+fa.length,ha.scrollTop=ya},ua=fa=>{const ha=fa.key;(fa.ctrlKey||fa.metaKey)&&ha==="Enter"&&xa()},ma=fa=>{const ha=`![${Bn.value.locale.uploading} ${fa.name}]()`;return da(ha),Promise.resolve().then(()=>Bn.value.imageUploader(fa)).then(Ca=>{Fn.value=Fn.value.replace(ha,`\r
![${fa.name}](${Ca})`)}).catch(Ca=>{alert(Ca.message),Fn.value=Fn.value.replace(ha,"")})},$a=fa=>{var ha;if((ha=fa.dataTransfer)!=null&&ha.items){const Ca=st(fa.dataTransfer.items);Ca&&oa.value&&(ma(Ca),fa.preventDefault())}},wa=fa=>{if(fa.clipboardData){const ha=st(fa.clipboardData.items);ha&&oa.value&&ma(ha)}},Ea=()=>{const fa=Qn.value;fa.files&&oa.value&&ma(fa.files[0]).then(()=>{fa.value=""})},xa=async()=>{var Ha,Fa,ja,Wa,qa;const{serverURL:fa,lang:ha,login:Ca,wordLimit:Ia,requiredMeta:ya}=Bn.value;let Ta="";Bn.value.recaptchaV3Key&&(Ta=await(Va=>{const Ua=ve[Va]??(ve[Va]=le.load(Va,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:Ga=>Ua.then(Ya=>Ya.execute(Ga))}})(Bn.value.recaptchaV3Key).execute("social"));const La={comment:Sa.value,nick:qn.value.nick,mail:qn.value.mail,link:qn.value.link,ua:navigator.userAgent,url:Bn.value.path,recaptchaV3:Ta};if((Ha=Wn.value)!=null&&Ha.token)La.nick=Wn.value.display_name,La.mail=Wn.value.email,La.link=Wn.value.url;else{if(Ca==="force")return;if(ya.indexOf("nick")>-1&&!La.nick)return(Fa=Gn.value.nick)==null||Fa.focus(),alert(sa.value.nickError);if(ya.indexOf("mail")>-1&&!La.mail||La.mail&&!/^\w(?:[\w._-]*\w)?@(?:\w(?:[\w-]*\w)?\.)*\w+$/.exec(La.mail))return(ja=Gn.value.mail)==null||ja.focus(),alert(sa.value.mailError);if(!La.comment)return void((Wa=Yn.value)==null?void 0:Wa.focus());La.nick||(La.nick=sa.value.anonymous)}if(!ba.value)return alert(sa.value.wordHint.replace("$0",Ia[0].toString()).replace("$1",Ia[1].toString()).replace("$2",ga.value.toString()));La.comment=mt(La.comment,ta.value.map),U.replyId&&U.rootId&&(La.pid=U.replyId,La.rid=U.rootId,La.at=U.replyUser),Aa.value=!0;const Na={serverURL:fa,lang:ha,token:(qa=Wn.value)==null?void 0:qa.token,comment:La};(U.edit?X({objectId:U.edit.objectId,...Na}):(({serverURL:Va,lang:Ua,token:Ga,comment:Ya})=>{const Qa={"Content-Type":"application/json"};return Ga&&(Qa.Authorization=`Bearer ${Ga}`),fetch(`${Va}/comment?lang=${Ua}`,{method:"POST",headers:Qa,body:JSON.stringify(Ya)}).then(Za=>Za.json())})(Na)).then(Va=>{var Ua;if(Aa.value=!1,Va.errmsg)return alert(Va.errmsg);j("submit",Va.data),Fn.value="",va.value="",U.replyId&&j("cancelReply"),(Ua=U.edit)!=null&&Ua.objectId&&j("cancelEdit")}).catch(Va=>{Aa.value=!1,alert(Va.message)})},Pa=fa=>{fa.preventDefault();const{lang:ha,serverURL:Ca}=Bn.value;(({lang:Ia,serverURL:ya})=>{const Ta=(window.innerWidth-450)/2,La=(window.innerHeight-450)/2,Na=window.open(`${ya}/ui/login?lng=${encodeURIComponent(Ia)}`,"_blank",`width=450,height=450,left=${Ta},top=${La},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return Na==null||Na.postMessage({type:"TOKEN",data:null},"*"),new Promise(Ha=>{const Fa=({data:ja})=>{ja&&typeof ja=="object"&&ja.type==="userInfo"&&ja.data.token&&(Na==null||Na.close(),window.removeEventListener("message",Fa),Ha(ja.data))};window.addEventListener("message",Fa)})})({serverURL:Ca,lang:ha}).then(Ia=>{Wn.value=Ia,(Ia.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(Ia)),j("log")})},Oa=()=>{Wn.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),j("log")},Da=fa=>{var La;fa.preventDefault();const{lang:ha,serverURL:Ca}=Bn.value,Ia=(window.innerWidth-800)/2,ya=(window.innerHeight-800)/2,Ta=new URLSearchParams({lng:ha,token:Wn.value.token});(La=window.open(`${Ca}/ui/profile?${Ta.toString()}`,"_blank",`width=800,height=800,left=${Ia},top=${ya},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`))==null||La.postMessage({type:"TOKEN",data:Wn.value.token},"*")},Ma=fa=>{var ha,Ca,Ia,ya;(ha=Zn.value)!=null&&ha.contains(fa.target)||(Ca=Jn.value)!=null&&Ca.contains(fa.target)||(ra.value=!1),(Ia=Kn.value)!=null&&Ia.contains(fa.target)||(ya=ea.value)!=null&&ya.contains(fa.target)||(ca.value=!1)},Ra=async fa=>{var Na;const{scrollTop:ha,clientHeight:Ca,scrollHeight:Ia}=fa.target,ya=(Ca+ha)/Ia,Ta=Bn.value.search,La=((Na=Xn.value)==null?void 0:Na.value)||"";ya<.9||ia.loading||ka.value||(ia.loading=!0,(Ta.more&&ia.list.length?await Ta.more(La,ia.list.length):await Ta.search(La)).length?ia.list=[...ia.list,...Ta.more&&ia.list.length?await Ta.more(La,ia.list.length):await Ta.search(La)]:ka.value=!0,ia.loading=!1,setTimeout(()=>{fa.target.scrollTop=ha},50))},za=useDebounceFn(fa=>{ia.list=[],ka.value=!1,Ra(fa)},300);watch([Bn,ga],([fa,ha])=>{const{wordLimit:Ca}=fa;Ca?ha<Ca[0]&&Ca[0]!==0?(la.value=Ca[0],ba.value=!1):ha>Ca[1]?(la.value=Ca[1],ba.value=!1):(la.value=Ca[1],ba.value=!0):(la.value=0,ba.value=!0)},{immediate:!0});const Ba=({data:fa})=>{fa&&fa.type==="profile"&&(Wn.value={...Wn.value,...fa.data},[localStorage,sessionStorage].filter(ha=>ha.getItem("WALINE_USER")).forEach(ha=>ha.setItem("WALINE_USER",JSON.stringify(Wn))))};return onMounted(()=>{var fa;document.body.addEventListener("click",Ma),window.addEventListener("message",Ba),(fa=U.edit)!=null&&fa.objectId&&(Fn.value=U.edit.orig),watch(ca,async ha=>{if(!ha)return;const Ca=Bn.value.search;Xn.value&&(Xn.value.value=""),ia.loading=!0,ia.list=Ca.default?await Ca.default():await Ca.search(""),ia.loading=!1}),watch(()=>Fn.value,ha=>{const{highlighter:Ca,texRenderer:Ia}=Bn.value;Sa.value=ha,va.value=vt(ha,{emojiMap:ta.value.map,highlighter:Ca,texRenderer:Ia}),ga.value=(ya=>(Ta=>Ta.match(/[\w\d\s\u00C0-\u024F]+/giu)||[])(ya).reduce((Ta,La)=>Ta+(La.trim()===""?0:La.trim().split(/\s+/u).length),0)+(Ta=>Ta.match(/[\u4E00-\u9FA5]/gu)||[])(ya).length)(ha),ha?a$3(Yn.value):a$3.destroy(Yn.value)},{immediate:!0}),watch(()=>Bn.value.emoji,ha=>{return(Ca=ha,Promise.all(Ca.map(Ia=>typeof Ia=="string"?it(Ye(Ia)):Promise.resolve(Ia))).then(Ia=>{const ya={tabs:[],map:{}};return Ia.forEach(Ta=>{const{name:La,folder:Na,icon:Ha,prefix:Fa,type:ja,items:Wa}=Ta;ya.tabs.push({name:La,icon:ot(Ha,Na,Fa,ja),items:Wa.map(qa=>{const Va=`${Fa||""}${qa}`;return ya.map[Va]=ot(qa,Na,Fa,ja),Va})})}),ya})).then(Ia=>{ta.value=Ia});var Ca},{immediate:!0})}),onUnmounted(()=>{document.body.removeEventListener("click",Ma),window.removeEventListener("message",Ba)}),(fa,ha)=>{var Ca,Ia;return openBlock(),createElementBlock("div",pt,[unref(Bn).login!=="disable"&&unref(aa)&&!((Ca=$.edit)!=null&&Ca.objectId)?(openBlock(),createElementBlock("div",ht,[createBaseVNode("div",gt,[createBaseVNode("button",{type:"submit",class:"wl-logout-btn",title:unref(sa).logout,onClick:Oa},[createVNode(unref(O$2),{size:14})],8,ft),createBaseVNode("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:unref(sa).profile,onClick:Da},[createBaseVNode("img",{src:unref(Wn).avatar,alt:"avatar"},null,8,wt)],8,yt)]),createBaseVNode("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:unref(sa).profile,onClick:Da,textContent:toDisplayString(unref(Wn).display_name)},null,8,bt)])):createCommentVNode("v-if",!0),createBaseVNode("div",kt,[unref(Bn).login!=="force"&&unref(Bn).meta.length&&!unref(aa)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["wl-header",`item${unref(Bn).meta.length}`])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Bn).meta,ya=>(openBlock(),createElementBlock("div",{key:ya,class:"wl-header-item"},[createBaseVNode("label",{for:`wl-${ya}`,textContent:toDisplayString(unref(sa)[ya]+(unref(Bn).requiredMeta.includes(ya)||!unref(Bn).requiredMeta.length?"":`(${unref(sa).optional})`))},null,8,Ct),withDirectives(createBaseVNode("input",{id:`wl-${ya}`,ref_for:!0,ref:Ta=>{Ta&&(Gn.value[ya]=Ta)},"onUpdate:modelValue":Ta=>unref(qn)[ya]=Ta,class:normalizeClass(["wl-input",`wl-${ya}`]),name:ya,type:ya==="mail"?"email":"text"},null,10,$t),[[vModelDynamic,unref(qn)[ya]]])]))),128))],2)):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("textarea",{id:"wl-edit",ref_key:"editorRef",ref:Yn,"onUpdate:modelValue":ha[0]||(ha[0]=ya=>isRef(Fn)?Fn.value=ya:null),class:"wl-editor",placeholder:$.replyUser?`@${$.replyUser}`:unref(sa).placeholder,onKeydown:ua,onDrop:$a,onPaste:wa},null,40,Lt),[[vModelText,unref(Fn)]]),withDirectives(createBaseVNode("div",xt,[It,createBaseVNode("h4",null,toDisplayString(unref(sa).preview)+":",1),createBaseVNode("div",{class:"wl-content",innerHTML:va.value},null,8,Rt)],512),[[vShow,pa.value]]),createBaseVNode("div",Et,[createBaseVNode("div",jt,[createBaseVNode("a",St,[createVNode(unref(B$1))]),withDirectives(createBaseVNode("button",{ref_key:"emojiButtonRef",ref:Zn,type:"button",class:normalizeClass(["wl-action",{active:ra.value}]),title:unref(sa).emoji,onClick:ha[1]||(ha[1]=ya=>ra.value=!ra.value)},[createVNode(unref(V$1))],10,_t),[[vShow,ta.value.tabs.length]]),unref(Bn).search?(openBlock(),createElementBlock("button",{key:0,ref_key:"gifButtonRef",ref:Kn,type:"button",class:normalizeClass(["wl-action",{active:ca.value}]),title:unref(sa).gif,onClick:ha[2]||(ha[2]=ya=>ca.value=!ca.value)},[createVNode(unref(G))],10,At)):createCommentVNode("v-if",!0),createBaseVNode("input",{id:"wl-image-upload",ref_key:"imageUploadRef",ref:Qn,class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:Ea},null,544),unref(oa)?(openBlock(),createElementBlock("label",{key:1,for:"wl-image-upload",class:"wl-action",title:unref(sa).uploadImage},[createVNode(unref(T$1))],8,zt)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:normalizeClass(["wl-action",{active:pa.value}]),title:unref(sa).preview,onClick:ha[3]||(ha[3]=ya=>pa.value=!pa.value)},[createVNode(unref(N$2))],10,Ut)]),createBaseVNode("div",Mt,[createBaseVNode("div",Ht,[createTextVNode(toDisplayString(ga.value)+" ",1),unref(Bn).wordLimit?(openBlock(),createElementBlock("span",Ot,[createTextVNode("  /  "),createBaseVNode("span",{class:normalizeClass({illegal:!ba.value}),textContent:toDisplayString(la.value)},null,10,Pt)])):createCommentVNode("v-if",!0),createTextVNode("  "+toDisplayString(unref(sa).word),1)]),unref(Bn).login==="disable"||unref(aa)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("button",{key:0,type:"button",class:"wl-btn",onClick:Pa,textContent:toDisplayString(unref(sa).login)},null,8,Vt)),unref(Bn).login!=="force"||unref(aa)?(openBlock(),createElementBlock("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:Aa.value,onClick:xa},[Aa.value?(openBlock(),createBlock(unref(q$1),{key:0,size:16})):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(unref(sa).submit),1)],64))],8,Tt)):createCommentVNode("v-if",!0)]),createBaseVNode("div",{ref_key:"gifPopupRef",ref:ea,class:normalizeClass(["wl-gif-popup",{display:ca.value}])},[createBaseVNode("input",{ref_key:"gifSearchInputRef",ref:Xn,type:"text",placeholder:unref(sa).gifSearchPlaceholder,onInput:ha[4]||(ha[4]=(...ya)=>unref(za)&&unref(za)(...ya))},null,40,Dt),createVNode(je,{items:ia.list,"column-width":200,gap:6,onInsert:ha[5]||(ha[5]=ya=>da(ya)),onScroll:Ra},null,8,["items"]),ia.loading?(openBlock(),createElementBlock("div",Nt,[createVNode(unref(q$1),{size:30})])):createCommentVNode("v-if",!0)],2),createBaseVNode("div",{ref_key:"emojiPopupRef",ref:Jn,class:normalizeClass(["wl-emoji-popup",{display:ra.value}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(ta.value.tabs,(ya,Ta)=>(openBlock(),createElementBlock(Fragment,{key:ya.name},[Ta===na.value?(openBlock(),createElementBlock("div",Bt,[(openBlock(!0),createElementBlock(Fragment,null,renderList(ya.items,La=>(openBlock(),createElementBlock("button",{key:La,type:"button",title:La,onClick:Na=>da(`:${La}:`)},[ra.value?(openBlock(),createElementBlock("img",{key:0,class:"wl-emoji",src:ta.value.map[La],alt:La,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ft)):createCommentVNode("v-if",!0)],8,Wt))),128))])):createCommentVNode("v-if",!0)],64))),128)),ta.value.tabs.length>1?(openBlock(),createElementBlock("div",Kt,[(openBlock(!0),createElementBlock(Fragment,null,renderList(ta.value.tabs,(ya,Ta)=>(openBlock(),createElementBlock("button",{key:ya.name,type:"button",class:normalizeClass(["wl-tab",{active:na.value===Ta}]),onClick:La=>na.value=Ta},[createBaseVNode("img",{class:"wl-emoji",src:ya.icon,alt:ya.name,title:ya.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Gt)],10,qt))),128))])):createCommentVNode("v-if",!0)],2)])]),$.replyId||(Ia=$.edit)!=null&&Ia.objectId?(openBlock(),createElementBlock("button",{key:1,type:"button",class:"wl-close",title:unref(sa).cancelReply,onClick:ha[6]||(ha[6]=ya=>fa.$emit($.replyId?"cancelReply":"cancelEdit"))},[createVNode(unref(O$2),{size:24})],8,Zt)):createCommentVNode("v-if",!0)])}}}),Yt=xe(Jt,[["__file","CommentBox.vue"]]);const Xt=["id"],Qt={class:"wl-user","aria-hidden":"true"},en=["src"],tn={class:"wl-card"},nn={class:"wl-head"},an=["href"],ln={key:1,class:"wl-nick"},on=["textContent"],rn=["textContent"],sn=["textContent"],cn=["textContent"],un=["textContent"],dn={class:"wl-comment-actions"},mn=["title"],vn=["textContent"],pn=["title"],hn={class:"wl-meta","aria-hidden":"true"},gn=["data-value","textContent"],fn=["data-value","textContent"],yn=["data-value","textContent"],wn=["innerHTML"],bn={key:1,class:"wl-admin-actions"},kn={class:"wl-comment-status"},Cn=["disabled","onClick","textContent"],$n={key:3,class:"wl-quote"};var Ln=xe(defineComponent({__name:"CommentCard",props:{comment:null,edit:{default:null},rootId:null,reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup($){const b=$,j=["approved","waiting","spam"],U=inject("config"),Bn=ee(),Fn=useNow(),qn=he(),Wn=computed(()=>U.value.locale),Gn=computed(()=>{const{link:Xn}=b.comment;return Xn?Xe(Xn)?Xn:`https://${Xn}`:""}),Yn=computed(()=>Bn.value.includes(b.comment.objectId)),Qn=computed(()=>lt(b.comment.insertedAt,Fn.value,Wn.value)),Zn=computed(()=>qn.value.type==="administrator"),Jn=computed(()=>b.comment.user_id&&qn.value.objectId===b.comment.user_id),Kn=computed(()=>{var Xn;return b.comment.objectId===((Xn=b.reply)==null?void 0:Xn.objectId)}),ea=computed(()=>{var Xn;return b.comment.objectId===((Xn=b.edit)==null?void 0:Xn.objectId)});return(Xn,ta)=>{var ra;const na=resolveComponent("CommentCard",!0);return openBlock(),createElementBlock("div",{id:$.comment.objectId,class:"wl-card-item"},[createBaseVNode("div",Qt,[$.comment.avatar?(openBlock(),createElementBlock("img",{key:0,src:$.comment.avatar},null,8,en)):createCommentVNode("v-if",!0),$.comment.type?(openBlock(),createBlock(unref(K),{key:1})):createCommentVNode("v-if",!0)]),createBaseVNode("div",tn,[createBaseVNode("div",nn,[unref(Gn)?(openBlock(),createElementBlock("a",{key:0,class:"wl-nick",href:unref(Gn),target:"_blank",rel:"noopener noreferrer"},toDisplayString($.comment.nick),9,an)):(openBlock(),createElementBlock("span",ln,toDisplayString($.comment.nick),1)),$.comment.type==="administrator"?(openBlock(),createElementBlock("span",{key:2,class:"wl-badge",textContent:toDisplayString(unref(Wn).admin)},null,8,on)):createCommentVNode("v-if",!0),$.comment.label?(openBlock(),createElementBlock("span",{key:3,class:"wl-badge",textContent:toDisplayString($.comment.label)},null,8,rn)):createCommentVNode("v-if",!0),$.comment.sticky?(openBlock(),createElementBlock("span",{key:4,class:"wl-badge",textContent:toDisplayString(unref(Wn).sticky)},null,8,sn)):createCommentVNode("v-if",!0),$.comment.level!==void 0&&$.comment.level>=0?(openBlock(),createElementBlock("span",{key:5,class:normalizeClass(`wl-badge level${$.comment.level}`),textContent:toDisplayString(unref(Wn)[`level${$.comment.level}`]||`Level ${$.comment.level}`)},null,10,cn)):createCommentVNode("v-if",!0),createBaseVNode("span",{class:"wl-time",textContent:toDisplayString(unref(Qn))},null,8,un),createBaseVNode("div",dn,[unref(Zn)||unref(Jn)?(openBlock(),createElementBlock("button",{key:0,type:"button",class:"wl-edit",onClick:ta[0]||(ta[0]=()=>Xn.$emit("edit",$.comment))},[createVNode(unref(F$2))])):createCommentVNode("v-if",!0),unref(Zn)||unref(Jn)?(openBlock(),createElementBlock("button",{key:1,type:"button",class:"wl-delete",onClick:ta[1]||(ta[1]=ca=>Xn.$emit("delete",$.comment))},[createVNode(unref(P$4))])):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:"wl-like",title:unref(Yn)?unref(Wn).cancelLike:unref(Wn).like,onClick:ta[2]||(ta[2]=ca=>Xn.$emit("like",$.comment))},[createVNode(unref(D$2),{active:unref(Yn)},null,8,["active"]),"like"in $.comment?(openBlock(),createElementBlock("span",{key:0,textContent:toDisplayString($.comment.like)},null,8,vn)):createCommentVNode("v-if",!0)],8,mn),createBaseVNode("button",{type:"button",class:normalizeClass(["wl-reply",{active:unref(Kn)}]),title:unref(Kn)?unref(Wn).cancelReply:unref(Wn).reply,onClick:ta[3]||(ta[3]=ca=>Xn.$emit("reply",unref(Kn)?null:$.comment))},[createVNode(unref(W$1))],10,pn)])]),createBaseVNode("div",hn,[$.comment.addr?(openBlock(),createElementBlock("span",{key:0,class:"wl-addr","data-value":$.comment.addr,textContent:toDisplayString($.comment.addr)},null,8,gn)):createCommentVNode("v-if",!0),$.comment.browser?(openBlock(),createElementBlock("span",{key:1,class:"wl-browser","data-value":$.comment.browser,textContent:toDisplayString($.comment.browser)},null,8,fn)):createCommentVNode("v-if",!0),$.comment.os?(openBlock(),createElementBlock("span",{key:2,class:"wl-os","data-value":$.comment.os,textContent:toDisplayString($.comment.os)},null,8,yn)):createCommentVNode("v-if",!0)]),unref(ea)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:"wl-content",innerHTML:$.comment.comment},null,8,wn)),unref(Zn)&&!unref(ea)?(openBlock(),createElementBlock("div",bn,[createBaseVNode("span",kn,[(openBlock(),createElementBlock(Fragment,null,renderList(j,ca=>createBaseVNode("button",{key:ca,type:"submit",class:normalizeClass(`wl-btn wl-${ca}`),disabled:$.comment.status===ca,onClick:pa=>Xn.$emit("status",{status:ca,comment:$.comment}),textContent:toDisplayString(unref(Wn)[ca])},null,10,Cn)),64))]),unref(Zn)&&!$.comment.rid?(openBlock(),createElementBlock("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:ta[4]||(ta[4]=ca=>Xn.$emit("sticky",$.comment))},toDisplayString($.comment.sticky?unref(Wn).unsticky:unref(Wn).sticky),1)):createCommentVNode("v-if",!0)])):createCommentVNode("v-if",!0),unref(Kn)||unref(ea)?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass({"wl-reply-wrapper":unref(Kn),"wl-edit-wrapper":unref(ea)})},[createVNode(Yt,{edit:$.edit,"reply-id":(ra=$.reply)==null?void 0:ra.objectId,"reply-user":$.comment.nick,"root-id":$.rootId,onLog:ta[5]||(ta[5]=ca=>Xn.$emit("log")),onCancelReply:ta[6]||(ta[6]=ca=>Xn.$emit("reply",null)),onCancelEdit:ta[7]||(ta[7]=ca=>Xn.$emit("edit",null)),onSubmit:ta[8]||(ta[8]=ca=>Xn.$emit("submit",ca))},null,8,["edit","reply-id","reply-user","root-id"])],2)):createCommentVNode("v-if",!0),$.comment.children?(openBlock(),createElementBlock("div",$n,[(openBlock(!0),createElementBlock(Fragment,null,renderList($.comment.children,ca=>(openBlock(),createBlock(na,{key:ca.objectId,comment:ca,reply:$.reply,edit:$.edit,"root-id":$.rootId,onLog:ta[9]||(ta[9]=pa=>Xn.$emit("log")),onDelete:ta[10]||(ta[10]=pa=>Xn.$emit("delete",pa)),onEdit:ta[11]||(ta[11]=pa=>Xn.$emit("edit",pa)),onLike:ta[12]||(ta[12]=pa=>Xn.$emit("like",pa)),onReply:ta[13]||(ta[13]=pa=>Xn.$emit("reply",pa)),onStatus:ta[14]||(ta[14]=pa=>Xn.$emit("status",pa)),onSticky:ta[15]||(ta[15]=pa=>Xn.$emit("sticky",pa)),onSubmit:ta[16]||(ta[16]=pa=>Xn.$emit("submit",pa))},null,8,["comment","reply","edit","root-id"]))),128))])):createCommentVNode("v-if",!0)])],8,Xt)}}}),[["__file","CommentCard.vue"]]);const xn="2.14.7",In={"data-waline":""},Rn={class:"wl-meta-head"},En={class:"wl-count"},jn=["textContent"],Sn={class:"wl-sort"},_n=["onClick"],An={class:"wl-cards"},zn={key:1,class:"wl-operation"},Un=["textContent"],Mn={key:0,class:"wl-loading"},Hn=["textContent"],On={key:2,class:"wl-operation"},Pn=["textContent"],Vn={key:3,class:"wl-power"},Tn=createBaseVNode("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1);var Dn=defineComponent({__name:"WalineComment",props:["serverURL","path","meta","requiredMeta","dark","commentSorting","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","reaction"],setup($){const b=$,j={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},U=Object.keys(j),Bn=he(),Fn=ee(),qn=ref("loading"),Wn=ref(0),Gn=ref(1),Yn=ref(0),Qn=computed(()=>(({serverURL:ka,path:sa=location.pathname,lang:aa=typeof navigator>"u"?"en-US":navigator.language,locale:oa,emoji:da=Ae,meta:ua=["nick","mail","link"],requiredMeta:ma=[],dark:$a=!1,pageSize:wa=10,wordLimit:Ea,imageUploader:xa,highlighter:Pa,texRenderer:Oa,copyright:Da=!0,login:Ma="enable",search:Ra,reaction:za,recaptchaV3Key:Ba="",commentSorting:fa="latest",...ha})=>({serverURL:Qe(ka),path:Je(sa),locale:{...Ze[aa]||Ze["en-US"],...typeof oa=="object"?oa:{}},wordLimit:et(Ea),meta:_e(ua),requiredMeta:_e(ma),imageUploader:tt(xa,ze),highlighter:tt(Pa,Te),texRenderer:tt(Oa,Ue),lang:Object.keys(Ze).includes(aa)?aa:"en-US",dark:$a,emoji:typeof da=="boolean"?da?Ae:[]:da,pageSize:wa,login:Ma,copyright:Da,search:Ra!==!1&&(typeof Ra=="object"?Ra:Me(aa)),recaptchaV3Key:Ba,reaction:Array.isArray(za)?za:za===!0?He:[],commentSorting:fa,...ha}))(b)),Zn=ref(Qn.value.commentSorting),Jn=ref([]),Kn=ref(null),ea=ref(null),Xn=computed(()=>{return typeof(ka=Qn.value.dark)=="string"?ka==="auto"?`@media(prefers-color-scheme:dark){body${nt}}`:`${ka}${nt}`:ka===!0?`:root${nt}`:"";var ka}),ta=computed(()=>Qn.value.locale);let na;useStyleTag(Xn);const ra=ka=>{var ua;const{serverURL:sa,path:aa,pageSize:oa}=Qn.value,da=new AbortController;qn.value="loading",na==null||na(),(({serverURL:ma,lang:$a,path:wa,page:Ea,pageSize:xa,sortBy:Pa,signal:Oa,token:Da})=>{const Ma={};return Da&&(Ma.Authorization=`Bearer ${Da}`),fetch(`${ma}/comment?path=${encodeURIComponent(wa)}&pageSize=${xa}&page=${Ea}&lang=${$a}&sortBy=${Pa}`,{signal:Oa,headers:Ma}).then(Ra=>Ra.json()).then(Ra=>J$1(Ra,"Get comment data"))})({serverURL:sa,lang:Qn.value.lang,path:aa,pageSize:oa,sortBy:j[Zn.value],page:ka,signal:da.signal,token:(ua=Bn.value)==null?void 0:ua.token}).then(ma=>{qn.value="success",Wn.value=ma.count,Jn.value.push(...ma.data),Gn.value=ka,Yn.value=ma.totalPages}).catch(ma=>{ma.name!=="AbortError"&&(console.error(ma.message),qn.value="error")}),na=da.abort.bind(da)},ca=()=>ra(Gn.value+1),pa=()=>{Wn.value=0,Jn.value=[],ra(1)},va=ka=>{Kn.value=ka},ga=ka=>{ea.value=ka},ia=ka=>{if(ea.value)ea.value.comment=ka.comment,ea.value.orig=ka.orig;else if(ka.rid){const sa=Jn.value.find(({objectId:aa})=>aa===ka.rid);if(!sa)return;Array.isArray(sa.children)||(sa.children=[]),sa.children.push(ka)}else Jn.value.unshift(ka)},la=async({comment:ka,status:sa})=>{var da;if(ka.status===sa)return;const{serverURL:aa,lang:oa}=Qn.value;await X({serverURL:aa,lang:oa,token:(da=Bn.value)==null?void 0:da.token,objectId:ka.objectId,comment:{status:sa}}),ka.status=sa},ba=async ka=>{var oa;if(ka.rid)return;const{serverURL:sa,lang:aa}=Qn.value;await X({serverURL:sa,lang:aa,token:(oa=Bn.value)==null?void 0:oa.token,objectId:ka.objectId,comment:{sticky:ka.sticky?0:1}}),ka.sticky=!ka.sticky},Sa=async({objectId:ka})=>{var oa;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:sa,lang:aa}=Qn.value;await(({serverURL:da,lang:ua,token:ma,objectId:$a})=>fetch(`${da}/comment/${$a}?lang=${ua}`,{method:"DELETE",headers:{Authorization:`Bearer ${ma}`}}).then(wa=>wa.json()).then(wa=>J$1(wa,"Delete comment")))({serverURL:sa,lang:aa,token:(oa=Bn.value)==null?void 0:oa.token,objectId:ka}),Jn.value.some((da,ua)=>da.objectId===ka?(Jn.value=Jn.value.filter((ma,$a)=>$a!==ua),!0):da.children.some((ma,$a)=>ma.objectId===ka&&(Jn.value[ua].children=da.children.filter((wa,Ea)=>Ea!==$a),!0)))},Aa=async ka=>{var ua;const{serverURL:sa,lang:aa}=Qn.value,{objectId:oa}=ka,da=Fn.value.includes(oa);await X({serverURL:sa,lang:aa,objectId:oa,token:(ua=Bn.value)==null?void 0:ua.token,comment:{like:!da}}),da?Fn.value=Fn.value.filter(ma=>ma!==oa):(Fn.value=[...Fn.value,oa],Fn.value.length>50&&(Fn.value=Fn.value.slice(-50))),ka.like=(ka.like||0)+(da?-1:1)};return provide("config",Qn),onMounted(()=>{watch(()=>[b.serverURL,b.path],()=>pa(),{immediate:!0})}),onUnmounted(()=>na==null?void 0:na()),(ka,sa)=>(openBlock(),createElementBlock("div",In,[createVNode(Ie),Kn.value?createCommentVNode("v-if",!0):(openBlock(),createBlock(Yt,{key:0,onLog:pa,onSubmit:ia})),createBaseVNode("div",Rn,[createBaseVNode("div",En,[Wn.value?(openBlock(),createElementBlock("span",{key:0,class:"wl-num",textContent:toDisplayString(Wn.value)},null,8,jn)):createCommentVNode("v-if",!0),createTextVNode(" "+toDisplayString(unref(ta).comment),1)]),createBaseVNode("ul",Sn,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(U),aa=>(openBlock(),createElementBlock("li",{key:aa,class:normalizeClass([aa===Zn.value?"active":""]),onClick:oa=>(da=>{Zn.value!==da&&(Zn.value=da,pa())})(aa)},toDisplayString(unref(ta)[aa]),11,_n))),128))])]),createBaseVNode("div",An,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Jn.value,aa=>(openBlock(),createBlock(Ln,{key:aa.objectId,"root-id":aa.objectId,comment:aa,reply:Kn.value,edit:ea.value,onLog:pa,onReply:va,onEdit:ga,onSubmit:ia,onStatus:la,onDelete:Sa,onSticky:ba,onLike:Aa},null,8,["root-id","comment","reply","edit"]))),128))]),qn.value==="error"?(openBlock(),createElementBlock("div",zn,[createBaseVNode("button",{type:"button",class:"wl-btn",onClick:pa,textContent:toDisplayString(unref(ta).refresh)},null,8,Un)])):(openBlock(),createElementBlock(Fragment,{key:2},[qn.value==="loading"?(openBlock(),createElementBlock("div",Mn,[createVNode(unref(q$1),{size:30})])):Jn.value.length?Gn.value<Yn.value?(openBlock(),createElementBlock("div",On,[createBaseVNode("button",{type:"button",class:"wl-btn",onClick:ca,textContent:toDisplayString(unref(ta).more)},null,8,Pn)])):createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:1,class:"wl-empty",textContent:toDisplayString(unref(ta).sofa)},null,8,Hn))],64)),unref(Qn).copyright?(openBlock(),createElementBlock("div",Vn,[createTextVNode(" Powered by "),Tn,createTextVNode(" v"+toDisplayString(unref(xn)),1)])):createCommentVNode("v-if",!0)]))}}),Nn=xe(Dn,[["__file","WalineComment.vue"]]);const t$1={"Content-Type":"application/json"},n$1=({serverURL:$,lang:b,paths:j,signal:U})=>(({serverURL:Bn,lang:Fn,paths:qn,type:Wn,signal:Gn})=>fetch(`${Bn}/article?path=${encodeURIComponent(qn.join(","))}&type=${encodeURIComponent(Wn.join(","))}&lang=${Fn}`,{signal:Gn}).then(Yn=>Yn.json()))({serverURL:$,lang:b,paths:j,type:["time"],signal:U}).then(Bn=>Array.isArray(Bn)?Bn:[Bn]),a$2=$=>(({serverURL:b,lang:j,path:U,type:Bn,action:Fn})=>fetch(`${b}/article?lang=${j}`,{method:"POST",headers:t$1,body:JSON.stringify({path:U,type:Bn,action:Fn})}).then(qn=>qn.json()))({...$,type:"time",action:"inc"}),r$2=$=>{const b=((j="")=>j.replace(/\/$/u,""))($);return/^(https?:)?\/\//.test(b)?b:`https://${b}`},o$2=$=>{$.name!=="AbortError"&&console.error($.message)},l$2=$=>$.dataset.path||$.getAttribute("id"),s$2=($,b)=>{b.forEach((j,U)=>{j.innerText=$[U].toString()})},i$3=({serverURL:$,path:b=window.location.pathname,selector:j=".waline-pageview-count",update:U=!0,lang:Bn=navigator.language})=>{const Fn=new AbortController,qn=Array.from(document.querySelectorAll(j)),Wn=Yn=>{const Qn=l$2(Yn);return Qn!==null&&b!==Qn},Gn=Yn=>n$1({serverURL:r$2($),paths:Yn.map(Qn=>l$2(Qn)||b),lang:Bn,signal:Fn.signal}).then(Qn=>s$2(Qn,Yn)).catch(o$2);if(U){const Yn=qn.filter(Zn=>!Wn(Zn)),Qn=qn.filter(Wn);a$2({serverURL:r$2($),path:b,lang:Bn}).then(Zn=>s$2(new Array(Yn.length).fill(Zn),Yn)),Qn.length&&Gn(Qn)}else Gn(qn);return Fn.abort.bind(Fn)},waline$1="",waline="",e$1={provider:"Waline",dark:"auto",serverURL:"https://comments.snapgenshin.com",emoji:["//unpkg.com/@waline/emojis@1.1.0/weibo","//unpkg.com/@waline/emojis@1.1.0/bilibili","//unpkg.com/@waline/emojis@1.1.0/bmoji","//unpkg.com/@waline/emojis@1.1.0/qq","//unpkg.com/@waline/emojis@1.1.0/tieba"],requiredMeta:["mail"],login:"enable",reaction:!0},k$4={"/en/":{placeholder:"Write a comment here (Fill in the email address to receive an email notification when being replied)"},"/":{placeholder:"请留言。(填写邮箱可在被回复时收到邮件提醒)"}},i$2=Boolean(e$1.serverURL);__vitePreload(()=>import("./waline-meta-a31b78ed.js"),[]);var A$4=defineComponent({name:"WalineComment",setup(){const $=useRoute(),b=usePageFrontmatter(),j=usePageLang(),U=kt$1(k$4);let Bn;const Fn=computed(()=>{if(!i$2)return!1;const Gn=e$1.comment!==!1,Yn=b.value.comment;return Boolean(Yn)||Gn!==!1&&Yn!==!1}),qn=computed(()=>{if(!i$2)return!1;const Gn=e$1.pageview!==!1,Yn=b.value.pageview;return Boolean(Yn)||Gn!==!1&&Yn!==!1}),Wn=computed(()=>({lang:j.value==="zh-CN"?"zh-CN":"en",locale:U.value,emoji:["//unpkg.com/@waline/emojis@1.1.0/weibo","//unpkg.com/@waline/emojis@1.1.0/bilibili"],dark:"html.dark",...e$1,path:withBase($.path)}));return onMounted(()=>{watch(()=>$.path,()=>{Bn==null||Bn(),qn.value&&setTimeout(()=>{Bn=i$3({serverURL:e$1.serverURL,path:withBase($.path)})},e$1.delay||800)},{immediate:!0})}),()=>Fn.value?h$3("div",{class:"waline-wrapper",id:"comment"},i$2?h$3(Nn,Wn.value):[]):null}});const l$1={provider:"Waline",dark:"auto",serverURL:"https://comments.snapgenshin.com",emoji:["//unpkg.com/@waline/emojis@1.1.0/weibo","//unpkg.com/@waline/emojis@1.1.0/bilibili","//unpkg.com/@waline/emojis@1.1.0/bmoji","//unpkg.com/@waline/emojis@1.1.0/qq","//unpkg.com/@waline/emojis@1.1.0/tieba"],requiredMeta:["mail"],login:"enable",reaction:!0}.comment!==!1;var s$1=defineClientConfig({enhance:({app:$})=>{const b=defineComponent({name:"CommentService",props:{darkmode:Boolean},setup(j){const U=usePageFrontmatter(),Bn=computed(()=>U.value.comment||l$1&&U.value.comment!==!1);return()=>h$3(A$4,{darkmode:j.darkmode,style:{display:Bn.value?"block":"none"}})}});$.component("CommentService",b)}});const message="",balloon="",button="",L$2=800,S$5=2e3,_$1={"/en/":{copy:"Copy code",copied:"Copied",hint:"Copied successfully"},"/":{copy:"复制代码",copied:"已复制",hint:"复制成功"}},d$3='.theme-hope-content div[class*="language-"] pre',g$3=!1,w$2=async $=>{try{return navigator.clipboard.writeText($)}catch{const b=document.createElement("textarea"),j=document.activeElement;b.value=$,b.setAttribute("readonly",""),b.style.contain="strict",b.style.position="absolute",b.style.left="-9999px",b.style.fontSize="12pt";const U=document.getSelection(),Bn=U?U.rangeCount>0&&U.getRangeAt(0):null;document.body.appendChild(b),b.select(),b.selectionStart=0,b.selectionEnd=$.length,document.execCommand("copy"),document.body.removeChild(b),Bn&&(U.removeAllRanges(),U.addRange(Bn)),j&&j.focus()}},P$3='<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="#06a35a"><path d="M822.812 824.618c-83.076 81.992-188.546 124.614-316.05 127.865-122.085-3.251-223.943-45.873-305.935-127.865S76.213 640.406 72.962 518.682c3.251-127.503 45.873-232.973 127.865-316.05 81.992-83.075 184.211-126.058 305.936-129.309 127.503 3.251 232.973 46.234 316.049 129.31 83.076 83.076 126.059 188.546 129.31 316.05-2.89 121.723-46.234 223.943-129.31 305.935zM432.717 684.111c3.973 3.974 8.307 5.78 13.364 6.14 5.057.362 9.753-1.444 13.365-5.417l292.57-287.515c3.974-3.973 5.78-8.307 5.78-13.364s-1.806-9.753-5.78-13.365l1.807 1.806c-3.973-3.973-8.669-5.779-14.087-6.14-5.418-.361-10.475 1.445-14.809 5.418L460.529 592.006c-3.973 3.25-8.669 4.695-14.448 4.695-5.78 0-10.836-1.445-15.531-3.973l-94.273-72.962c-4.335-3.251-9.392-4.335-14.448-3.973s-9.392 3.25-12.642 7.585l-2.89 3.973c-3.25 4.334-4.334 9.391-3.973 14.81.722 5.417 2.528 10.113 5.779 14.086L432.717 684.11z"/></svg>',C$2=()=>navigator?/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/iu.test(navigator.userAgent):!1,p$2=new Map,x$2=()=>{const $=useRoute(),b=kt$1(_$1);let j;const U=qn=>{if(!qn.hasAttribute("copy-code-registered")){const Wn=document.createElement("button");Wn.classList.add("copy-code-button"),Wn.innerHTML='<div class="copy-icon" />',Wn.setAttribute("aria-label",b.value.copy),Wn.setAttribute("data-copied",b.value.copied),Wn.setAttribute("data-balloon-pos","left"),qn.parentElement&&qn.parentElement.insertBefore(Wn,qn),qn.setAttribute("copy-code-registered","")}},Bn=()=>{setTimeout(()=>{isString$1(d$3)?document.querySelectorAll(d$3).forEach(U):isArray(d$3)&&d$3.forEach(qn=>{document.querySelectorAll(qn).forEach(U)})},L$2)},Fn=(qn,Wn,Gn)=>{let{innerText:Yn=""}=Wn;/language-(shellscript|shell|bash|sh|zsh)/.test(qn.classList.toString())&&(Yn=Yn.replace(/^ *(\$|>) /gm,"")),w$2(Yn).then(()=>{Gn.classList.add("copied"),clearTimeout(p$2.get(Gn));const Qn=setTimeout(()=>{Gn.classList.remove("copied"),Gn.blur(),p$2.delete(Gn)},2e3);p$2.set(Gn,Qn),j.pop(`${P$3}<span>${b.value.hint} 🎉</span>`,S$5)})};onMounted(()=>{j=new Pt$1,(!C$2()||g$3)&&Bn(),window.addEventListener("click",qn=>{const Wn=qn.target;if(Wn.matches('div[class*="language-"] > button.copy')){const Gn=Wn.parentElement,Yn=Wn.nextElementSibling;Yn&&Fn(Gn,Yn,Wn)}else if(Wn.matches('div[class*="language-"] div.copy-icon')){const Gn=Wn.parentElement,Yn=Gn.parentElement,Qn=Gn.nextElementSibling;Qn&&Fn(Yn,Qn,Gn)}}),watch(()=>$.path,()=>{(!C$2()||g$3)&&Bn()})})};var D$1=defineClientConfig({setup:()=>{x$2()}});const chart="",LoadingIcon$1=()=>h$3(P$5,{name:"loading"},()=>["0s","-0.333s","-0.667s"].map($=>h$3("circle",{cx:512,cy:512,r:0,fill:"none",stroke:"currentColor","stroke-width":"20"},[h$3("animate",{attributeName:"r",repeatCount:"indefinite",dur:"1s",values:"0;400",keyTimes:"0;1",keySplines:"0 0.2 0.8 1",calcMode:"spline",begin:$}),h$3("animate",{attributeName:"opacity",repeatCount:"indefinite",dur:"1s",values:"1;0",keyTimes:"0;1",keySplines:"0.2 0 0.8 1",calcMode:"spline",begin:$})]))),parseChartConfig=(config,type)=>{if(type==="json")return JSON.parse(config);const exports={},module={exports};return eval(config),module.exports};var ChartJS=defineComponent({name:"ChartJS",props:{config:{type:String,required:!0},id:{type:String,required:!0},title:{type:String,default:""},type:{type:String,default:"json"}},setup($){const b=ref(),j=ref(),U=ref(!0);return onMounted(()=>{Promise.all([__vitePreload(()=>import("./auto-5a6868c8.js"),[]),new Promise(Bn=>setTimeout(Bn,800))]).then(([{default:Bn}])=>{Bn.defaults.maintainAspectRatio=!1;const Fn=parseChartConfig(Bt$1($.config),$.type),qn=j.value.getContext("2d");new Bn(qn,Fn),U.value=!1})}),()=>[$.title?h$3("div",{class:"chart-title"},decodeURIComponent($.title)):null,U.value?h$3("div",{class:"chart-loading-wrapper"},h$3(LoadingIcon$1)):null,h$3("div",{ref:b,class:"chart-wrapper",id:$.id,style:{display:U.value?"none":"block"}},h$3("canvas",{ref:j,height:400}))]}});const codeTabs="",o$1=useStorage("VUEPRESS_CODE_TAB_STORE",{});var S$4=defineComponent({name:"CodeTabs",props:{active:{type:Number,default:0},data:{type:Array,required:!0},id:{type:String,required:!0},tabId:{type:String,default:""}},setup($,{slots:b}){const j=ref($.active),U=ref([]),Bn=()=>{if($.tabId){const{title:Yn,id:Qn=Yn}=$.data[j.value];o$1.value[$.tabId]=Qn}},Fn=(Yn=j.value)=>{j.value=Yn<U.value.length-1?Yn+1:0,U.value[j.value].focus()},qn=(Yn=j.value)=>{j.value=Yn>0?Yn-1:U.value.length-1,U.value[j.value].focus()},Wn=(Yn,Qn)=>{if(Yn.key===" "||Yn.key==="Enter"?(Yn.preventDefault(),j.value=Qn):Yn.key==="ArrowRight"?(Yn.preventDefault(),Fn()):Yn.key==="ArrowLeft"&&(Yn.preventDefault(),qn()),$.tabId){const{title:Zn,id:Jn=Zn}=$.data[j.value];o$1.value[$.tabId]=Jn}},Gn=()=>{if($.tabId){const Yn=$.data.findIndex(({title:Qn,id:Zn=Qn})=>o$1.value[$.tabId]===Zn);if(Yn!==-1)return Yn}return $.active};return onMounted(()=>{j.value=Gn(),watch(()=>o$1.value[$.tabId],(Yn,Qn)=>{if($.tabId&&Yn!==Qn){const Zn=$.data.findIndex(({title:Jn,id:Kn=Jn})=>Kn===Yn);Zn!==-1&&(j.value=Zn)}})}),()=>$.data.length?h$3("div",{class:"code-tabs"},[h$3("div",{class:"code-tabs-nav",role:"tablist"},$.data.map(({title:Yn},Qn)=>{const Zn=Qn===j.value;return h$3("button",{ref:Jn=>{Jn&&(U.value[Qn]=Jn)},class:["code-tabs-nav-tab",{active:Zn}],role:"tab","aria-controls":`codetab-${$.id}-${Qn}`,"aria-selected":Zn,onClick:()=>{j.value=Qn,Bn()},onKeydown:Jn=>Wn(Jn,Qn)},Yn)})),$.data.map(({title:Yn,id:Qn=Yn},Zn)=>{var Jn;const Kn=Zn===j.value;return h$3("div",{class:["code-tab",{active:Kn}],id:`codetab-${$.id}-${Zn}`,role:"tabpanel","aria-expanded":Kn},(Jn=b[`tab${Zn}`])==null?void 0:Jn.call(b,{title:Yn,value:Qn,isActive:Kn}))})]):null}});const index$2="",codeDemo="",M$1=()=>h$3(P$5,{name:"loading"},()=>["0s","-0.333s","-0.667s"].map($=>h$3("circle",{cx:512,cy:512,r:0,fill:"none",stroke:"currentColor","stroke-width":"20"},[h$3("animate",{attributeName:"r",repeatCount:"indefinite",dur:"1s",values:"0;400",keyTimes:"0;1",keySplines:"0 0.2 0.8 1",calcMode:"spline",begin:$}),h$3("animate",{attributeName:"opacity",repeatCount:"indefinite",dur:"1s",values:"1;0",keyTimes:"0;1",keySplines:"0.2 0 0.8 1",calcMode:"spline",begin:$})]))),O$1='<svg class="codepen-icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M123.429 668L468 897.714V692.571L277.143 565.143zM88 585.714L198.286 512 88 438.286v147.428zm468 312L900.571 668 746.857 565.143 556 692.57v205.143zM512 616l155.429-104L512 408 356.571 512zM277.143 458.857L468 331.43V126.286L123.429 356zM825.714 512L936 585.714V438.286zm-78.857-53.143L900.571 356 556 126.286v205.143zM1024 356v312q0 23.429-19.429 36.571l-468 312Q524.571 1024 512 1024t-24.571-7.429l-468-312Q0 691.43 0 668V356q0-23.429 19.429-36.571l468-312Q499.429 0 512 0t24.571 7.429l468 312Q1024 332.57 1024 356z"/></svg>',N$1='<svg class="jsfiddle-icon" viewBox="0 0 1170 1024" xmlns="http://www.w3.org/2000/svg" width="228.516" height="200"><path d="M1028.571 441.143q63.429 26.286 102.572 83.143t39.143 126.571q0 93.714-67.429 160.286T940 877.714q-2.286 0-6.571-.285t-6-.286H232q-97.143-5.714-164.571-71.714T0 645.143q0-62.857 31.429-116t84-84q-6.858-22.286-6.858-46.857 0-65.715 46.858-112T269.143 240q54.286 0 98.286 33.143 42.857-88 127.142-141.714t186.572-53.715q94.857 0 174.857 46t126.571 124.857 46.572 172q0 3.429-.286 10.286t-.286 10.286zm-761.142 152q0 69.714 48 110.286T434.286 744q78.285 0 137.143-56.571-9.143-11.429-27.143-32.286t-24.857-28.857q-38.286 37.143-82.286 37.143-31.429 0-53.429-19.143t-22-50q0-30.286 22-49.715T436 525.143q25.143 0 48.286 12T526 568.57t37.143 42.858 39.428 46.857 44 42.857T702 732.57t69.429 12q69.142 0 116.857-40.857T936 594.857q0-69.143-48-109.714T769.714 444.57Q688 444.571 632 500l53.143 61.714q37.714-36.571 81.143-36.571 29.714 0 52.571 18.857t22.857 48q0 32.571-21.143 52.286T766.857 664q-24.571 0-47.143-12t-41.143-31.429-37.428-42.857-39.714-46.857T557.143 488 502 456.571t-67.714-12q-69.715 0-118.286 40.286t-48.571 108.286z"/></svg>',L$1={useBabel:!1,jsLib:[],cssLib:[],codepenLayout:"left",codepenEditors:"101",babel:"https://unpkg.com/@babel/standalone/babel.min.js",vue:"https://unpkg.com/vue/dist/vue.global.prod.js",react:"https://unpkg.com/react/umd/react.production.min.js",reactDOM:"https://unpkg.com/react-dom/umd/react-dom.production.min.js"},C$1={html:{types:["html","slim","haml","md","markdown","vue"],map:{html:"none",vue:"none",md:"markdown"}},js:{types:["js","javascript","coffee","coffeescript","ts","typescript","ls","livescript"],map:{js:"none",javascript:"none",coffee:"coffeescript",ls:"livescript",ts:"typescript"}},css:{types:["css","less","sass","scss","stylus","styl"],map:{css:"none",styl:"stylus"}}},A$3=($,b,j)=>{const U=document.createElement($);return b&&Object.keys(b).forEach(Bn=>{if(Bn.indexOf("data"))U[Bn]=b[Bn];else{const Fn=Bn.replace("data","");U.dataset[Fn]=b[Bn]}}),j&&j.forEach(Bn=>{U.appendChild(Bn)}),U},w$1=$=>({...L$1,...$,jsLib:Array.from(new Set([...L$1.jsLib||[],...$.jsLib||[]])),cssLib:Array.from(new Set([...L$1.cssLib||[],...$.cssLib||[]]))}),v$1=($,b)=>{if($[b]!==void 0)return $[b];const j=new Promise(U=>{var Bn;const Fn=document.createElement("script");Fn.src=b,(Bn=document.querySelector("body"))==null||Bn.appendChild(Fn),Fn.onload=()=>{U()}});return $[b]=j,j},k$3=($,b)=>{if(b.css&&Array.from($.childNodes).every(j=>j.nodeName!=="STYLE")){const j=A$3("style",{innerHTML:b.css});$.appendChild(j)}},D=($,b,j)=>{const U=j.getScript();if(U&&Array.from(b.childNodes).every(Bn=>Bn.nodeName!=="SCRIPT")){const Bn=document.createElement("script");Bn.appendChild(document.createTextNode(`{const document=window.document.querySelector('#${$} .code-demo-container').shadowRoot;
${U}}`)),b.appendChild(Bn)}},R=$=>{const b=Object.keys($),j={html:[],js:[],css:[],isLegal:!1};return["html","js","css"].forEach(U=>{const Bn=b.filter(Fn=>C$1[U].types.includes(Fn));if(Bn.length){const Fn=Bn[0];j[U]=[$[Fn].replace(/^\n|\n$/g,""),C$1[U].map[Fn]||Fn]}}),j.isLegal=(!j.html.length||j.html[1]==="none")&&(!j.js.length||j.js[1]==="none")&&(!j.css.length||j.css[1]==="none"),j},x$1=$=>$.replace(/<br \/>/g,"<br>").replace(/<((\S+)[^<]*?)\s+\/>/g,"<$1></$2>"),_=$=>`<div id="app">
${x$1($)}
</div>`,B=$=>`${$.replace("export default ","const $reactApp = ").replace(/App\.__style__(\s*)=(\s*)`([\s\S]*)?`/,"")};
ReactDOM.createRoot(document.getElementById("app")).render(React.createElement($reactApp))`,V=$=>$.replace(/export\s+default\s*\{(\n*[\s\S]*)\n*\}\s*;?$/u,"Vue.createApp({$1}).mount('#app')").replace(/export\s+default\s*define(Async)?Component\s*\(\s*\{(\n*[\s\S]*)\n*\}\s*\)\s*;?$/u,"Vue.createApp({$1}).mount('#app')").trim(),q=$=>`(function(exports){var module={};module.exports=exports;${$};return module.exports.__esModule?module.exports.default:module.exports;})({})`,z=($,b)=>{const j=w$1(b),U=$.js[0]||"";return{...j,html:x$1($.html[0]||""),js:U,css:$.css[0]||"",isLegal:$.isLegal,getScript:()=>{var Bn;return j.useBabel?((Bn=window.Babel.transform(U,{presets:["es2015"]}))==null?void 0:Bn.code)||"":U}}},P$2=($,b)=>{const j=w$1(b),U=$.html[0]||"",Bn=/<template>([\s\S]+)<\/template>/u.exec(U),Fn=/<script(\s*lang=(['"])(.*?)\2)?>([\s\S]+)<\/script>/u.exec(U),qn=/<style(\s*lang=(['"])(.*?)\2)?\s*(?:scoped)?>([\s\S]+)<\/style>/u.exec(U),Wn=Bn?Bn[1].replace(/^\n|\n$/g,""):"",[Gn="",Yn=""]=Fn?[Fn[4].replace(/^\n|\n$/g,""),Fn[3]]:[],[Qn="",Zn=""]=qn?[qn[4].replace(/^\n|\n$/g,""),qn[3]]:[],Jn=Yn===""&&(Zn===""||Zn==="css");return{...j,html:_(Wn),js:V(Gn),css:Qn,isLegal:Jn,jsLib:[j.vue,...j.jsLib],getScript:()=>{var Kn,ea;const Xn=b.useBabel?((ea=(Kn=window.Babel)==null?void 0:Kn.transform(Gn,{presets:["es2015"]}))==null?void 0:ea.code)||"":Gn.replace(/export\s+default/u,"return");return`const app=window.document.createElement('div');document.firstElementChild.appendChild(app);const appOptions=${q(Xn)};appOptions.template=\`${Wn.replace("`",'\\`"')}\`;window.Vue.createApp(appOptions).mount(app);`}}},H$2=($,b)=>{const j=w$1(b);return{...j,html:_(""),js:B($.js[0]||""),css:$.css[0]||($.js[0]?$.js[0].replace(/App\.__style__(?:\s*)=(?:\s*)`([\s\S]*)?`/,"$1").trim():""),isLegal:$.isLegal,jsLib:[j.react,j.reactDOM,...j.jsLib],jsx:!0,getScript:()=>{var U,Bn;const Fn=((Bn=(U=window.Babel)==null?void 0:U.transform($.js[0]||"",{presets:["es2015","react"]}))==null?void 0:Bn.code)||"";return`window.ReactDOM.createRoot(document.firstElementChild).render(window.React.createElement(${q(Fn)}))`}}},h$1={},I$2=$=>Promise.all([v$1(h$1,$.babel),v$1(h$1,$.react),v$1(h$1,$.reactDOM)]),J=$=>{const b=[v$1(h$1,$.vue)];return $.useBabel&&b.push(v$1(h$1,$.babel)),Promise.all(b)},Q=$=>$.useBabel?v$1(h$1,$.babel):Promise.resolve();var F$1=defineComponent({name:"CodeDemo",props:{id:{type:String,required:!0},type:{type:String,default:"normal"},title:{type:String,default:""},config:{type:String,default:""},code:{type:String,required:!0}},setup($,{slots:b}){const j=ref(!1),U=ref(),Bn=ref(),Fn=ref("0"),qn=ref(!1),Wn=computed(()=>JSON.parse($.config?Bt$1($.config):"{}")),Gn=computed(()=>{const Kn=JSON.parse(Bt$1($.code));return R(Kn)}),Yn=computed(()=>$.type==="react"?H$2(Gn.value,Wn.value):$.type==="vue"?P$2(Gn.value,Wn.value):z(Gn.value,Wn.value)),Qn=computed(()=>Yn.value.isLegal),Zn=(Kn=!1)=>{const ea=U.value.attachShadow({mode:"open"}),Xn=document.createElement("div");Xn.classList.add("code-demo-app"),ea.appendChild(Xn),Qn.value?(Kn&&(Xn.innerHTML=Yn.value.html),k$3(ea,Yn.value),D($.id,ea,Yn.value),Fn.value="0"):Fn.value="auto",qn.value=!0},Jn=()=>{switch($.type){case"react":return I$2(Yn.value).then(()=>Zn());case"vue":return J(Yn.value).then(()=>Zn());default:return Q(Yn.value).then(()=>Zn(!0))}};return onMounted(()=>{setTimeout(()=>{Jn()},800)}),()=>{var Kn;return h$3("div",{class:"code-demo-wrapper",id:$.id},[qn.value?null:h$3("div",{class:"loading"},h$3(M$1)),h$3("div",{class:"code-demo-header"},[Yn.value.isLegal?h$3("button",{class:["toggle-button",j.value?"down":"right"],onClick:()=>{Fn.value=j.value?"0":`${Bn.value.clientHeight+13.8}px`,j.value=!j.value}}):null,$.title?h$3("span",{class:"title"},decodeURIComponent($.title)):null,Yn.value.isLegal&&Yn.value.jsfiddle!==!1?h$3("form",{class:"code-demo-jsfiddle",target:"_blank",action:"https://jsfiddle.net/api/post/library/pure/",method:"post"},[h$3("input",{type:"hidden",name:"html",value:Yn.value.html}),h$3("input",{type:"hidden",name:"js",value:Yn.value.js}),h$3("input",{type:"hidden",name:"css",value:Yn.value.css}),h$3("input",{type:"hidden",name:"wrap",value:"1"}),h$3("input",{type:"hidden",name:"panel_js",value:"3"}),h$3("input",{type:"hidden",name:"resources",value:[...Yn.value.cssLib,...Yn.value.jsLib].join(",")}),h$3("button",{type:"submit",class:"jsfiddle-button",innerHTML:N$1,"aria-label":"JSFiddle","data-balloon-pos":"up"})]):null,!Yn.value.isLegal||Yn.value.codepen!==!1?h$3("form",{class:"code-demo-codepen",target:"_blank",action:"https://codepen.io/pen/define",method:"post"},[h$3("input",{type:"hidden",name:"data",value:JSON.stringify({html:Yn.value.html,js:Yn.value.js,css:Yn.value.css,js_external:Yn.value.jsLib.join(";"),css_external:Yn.value.cssLib.join(";"),layout:Yn.value.codepenLayout,html_pre_processor:Gn.value?Gn.value.html[1]:"none",js_pre_processor:Gn.value?Gn.value.js[1]:Yn.value.jsx?"babel":"none",css_pre_processor:Gn.value?Gn.value.css[1]:"none",editors:Yn.value.codepenEditors})}),h$3("button",{type:"submit",innerHTML:O$1,class:"codepen-button","aria-label":"Codepen","data-balloon-pos":"up"})]):null]),h$3("div",{ref:U,class:"code-demo-container",style:{display:Qn.value&&qn.value?"block":"none"}}),h$3("div",{class:"code-demo-code-wrapper",style:{height:Fn.value}},h$3("div",{ref:Bn,class:"code-demo-codes"},(Kn=b.default)==null?void 0:Kn.call(b)))])}}});const echarts="",LoadingIcon=()=>h$3(P$5,{name:"loading"},()=>["0s","-0.333s","-0.667s"].map($=>h$3("circle",{cx:512,cy:512,r:0,fill:"none",stroke:"currentColor","stroke-width":"20"},[h$3("animate",{attributeName:"r",repeatCount:"indefinite",dur:"1s",values:"0;400",keyTimes:"0;1",keySplines:"0 0.2 0.8 1",calcMode:"spline",begin:$}),h$3("animate",{attributeName:"opacity",repeatCount:"indefinite",dur:"1s",values:"1;0",keyTimes:"0;1",keySplines:"0.2 0 0.8 1",calcMode:"spline",begin:$})]))),parseEChartsConfig=(config,type)=>{if(type==="js"){const exports={},module={exports};return eval(config),module.exports}return JSON.parse(config)};var ECharts=defineComponent({name:"ECharts",props:{config:{type:String,required:!0},id:{type:String,required:!0},title:{type:String,default:""},type:{type:String,default:"json"}},setup($){const b=ref();let j;const U=ref(!0);return onMounted(()=>{Promise.all([__vitePreload(()=>import("./index-8764208e.js"),[]),new Promise(Bn=>setTimeout(Bn,800))]).then(([Bn])=>{const Fn=parseEChartsConfig(Bt$1($.config),$.type);j=Bn.init(b.value),j.showLoading(),j.setOption(Fn),j.hideLoading(),U.value=!1}),useEventListener("resize",useDebounceFn(()=>j==null?void 0:j.resize(),100))}),onBeforeUnmount(()=>{j==null||j.dispose()}),()=>[$.title?h$3("div",{class:"echarts-title"},decodeURIComponent($.title)):null,U.value?h$3("div",{class:"echarts-loading-wrapper"},h$3(LoadingIcon)):null,h$3("div",{ref:b,class:"echarts-wrapper",id:$.id})]}});const figure="",flowchart="",y$1=()=>h$3(P$5,{name:"loading"},()=>["0s","-0.333s","-0.667s"].map($=>h$3("circle",{cx:512,cy:512,r:0,fill:"none",stroke:"currentColor","stroke-width":"20"},[h$3("animate",{attributeName:"r",repeatCount:"indefinite",dur:"1s",values:"0;400",keyTimes:"0;1",keySplines:"0 0.2 0.8 1",calcMode:"spline",begin:$}),h$3("animate",{attributeName:"opacity",repeatCount:"indefinite",dur:"1s",values:"1;0",keyTimes:"0;1",keySplines:"0.2 0 0.8 1",calcMode:"spline",begin:$})])));var a$1={x:0,y:0,"line-width":2,"line-length":40,"text-margin":8,"font-size":14,"font-color":"#8DA1AC","line-color":"#8DA1AC","element-color":"black",fill:"white","yes-text":"Yes","no-text":"No","arrow-end":"block",scale:1},F={...a$1,symbols:{start:{class:"start-element","font-color":"#fff",fill:"#595959","line-width":"0px"},end:{class:"end-element","font-color":"#fff",fill:"#595959","line-width":"0px"},operation:{class:"operation-element","font-color":"#fff",fill:"#1890ff","line-width":"0px"},inputoutput:{class:"inputoutput-element","font-color":"#fff",fill:"#1890ff","line-width":"0px"},subroutine:{class:"subroutine-element","font-color":"#fff",fill:"#FF485E","element-color":"#fff","line-color":"red"},condition:{class:"condition-element","font-color":"#fff",fill:"#FF485E","line-width":"0px"},parallel:{class:"parallel-element","font-color":"#fff",fill:"#1890ff","line-width":"0px"}}},C={...a$1,"line-width":1,symbols:{start:{class:"start-element",fill:"#ccc","line-width":"1px","line-color":"#5c6ac4","font-color":"#000"},end:{class:"end-element",fill:"#ccc","line-width":"1px","line-color":"#5c6ac4","font-color":"#000"},operation:{class:"operation-element",fill:"#f1f1f1","line-width":"1px","line-color":"#5c6ac4","font-color":"#000"},inputoutput:{class:"inputoutput-element",fill:"#f1f1f1","line-width":"1px","line-color":"#5c6ac4","font-color":"#000"},subroutine:{class:"subroutine-element",fill:"#f1f1f1","line-width":"1px","line-color":"#5c6ac4","font-color":"#000"},condition:{class:"condition-element",fill:"#f1f1f1","line-width":"1px","line-color":"#5c6ac4","font-color":"#000"},parallel:{class:"parallel-element",fill:"#f1f1f1","line-width":"1px","line-color":"#5c6ac4","font-color":"#000"}}},g$2={...a$1,symbols:{start:{class:"start-element","font-color":"#fff",fill:"#2F495F","line-width":"0px"},end:{class:"end-element","font-color":"#fff",fill:"#2F495F","line-width":"0px"},operation:{class:"operation-element","font-color":"#fff",fill:"#00BC7D","line-width":"0px"},inputoutput:{class:"inputoutput-element","font-color":"#fff",fill:"#EB4D5D","line-width":"0px"},subroutine:{class:"subroutine-element","font-color":"#fff",fill:"#937AC4","element-color":"#fff","line-color":"red"},condition:{class:"condition-element","font-color":"#fff",fill:"#FFB500","line-width":"0px"},parallel:{class:"parallel-element","font-color":"#fff",fill:"#2F495F","line-width":"0px"}}},p$1={ant:F,vue:g$2,pie:C},k$2=defineComponent({name:"FlowChart",props:{code:{type:String,required:!0},id:{type:String,required:!0},preset:{type:String,default:"vue"}},setup($){let b;const j=ref(),U=ref(!0),Bn=ref(1),Fn=computed(()=>p$1[$.preset]||(console.warn(`[md-enhance:flowchart] Unknown preset: ${$.preset}`),p$1.vue)),qn=Wn=>Wn<419?.8:Wn>1280?1:.9;return onMounted(()=>{Promise.all([__vitePreload(()=>import("./flowchart.parse-0007e96c.js").then(Wn=>Wn.f),[]),new Promise(Wn=>setTimeout(Wn,800))]).then(([{default:Wn}])=>{b=Wn(Bt$1($.code)),Bn.value=qn(window.innerWidth),U.value=!1,b.drawSVG($.id,{...Fn.value,scale:Bn.value}),useEventListener("resize",useDebounceFn(()=>{const Gn=qn(window.innerWidth);Bn.value!==Gn&&(Bn.value=Gn,b.drawSVG($.id,{...Fn.value,scale:Gn}))},100))})}),()=>[U.value?h$3("div",{class:"flowchart-loading-wrapper"},h$3(y$1)):null,h$3("div",{ref:j,class:["flowchart-wrapper",$.preset],id:$.id,style:{display:U.value?"none":"block"}})]}});const footnote="",imageMark="",mermaid="",M=()=>h$3(P$5,{name:"loading"},()=>["0s","-0.333s","-0.667s"].map($=>h$3("circle",{cx:512,cy:512,r:0,fill:"none",stroke:"currentColor","stroke-width":"20"},[h$3("animate",{attributeName:"r",repeatCount:"indefinite",dur:"1s",values:"0;400",keyTimes:"0;1",keySplines:"0 0.2 0.8 1",calcMode:"spline",begin:$}),h$3("animate",{attributeName:"opacity",repeatCount:"indefinite",dur:"1s",values:"1;0",keyTimes:"0;1",keySplines:"0.2 0 0.8 1",calcMode:"spline",begin:$})]))),k$1=$=>({dark:$,background:$?"#1e1e1e":"#fff",primaryColor:$?"#389d70":"#4abf8a",primaryBorderColor:$?"#389d70":"#4abf8a",primaryTextColor:"#fff",secondaryColor:"#ffb500",secondaryBorderColor:$?"#fff":"#000",secondaryTextColor:$?"#ddd":"#333",tertiaryColor:$?"#282828":"#efeef4",tertiaryBorderColor:$?"#bbb":"#242424",tertiaryTextColor:$?"#ddd":"#333",noteBkgColor:$?"#f6d365":"#fff5ad",noteTextColor:"#242424",noteBorderColor:$?"#f6d365":"#333",lineColor:$?"#d3d3d3":"#333",textColor:$?"#fff":"#242424",mainBkg:$?"#389d70":"#4abf8a",errorBkgColor:"#eb4d5d",errorTextColor:"#fff",nodeBorder:$?"#389d70":"#4abf8a",nodeTextColor:$?"#fff":"#242424",signalTextColor:$?"#9e9e9e":"#242424",classText:"#fff",labelColor:"#fff",fillType0:$?"#cf1322":"#f1636e",fillType1:"#f39c12",fillType2:"#2ecc71",fillType3:"#fa541c",fillType4:"#25a55b",fillType5:"#13c2c2",fillType6:"#096dd9",fillType7:"#aa6fe9"});var w=defineComponent({name:"Mermaid",props:{id:{type:String,required:!0},code:{type:String,required:!0}},setup($){const b=ref(""),j=ref(),U=ref(!1);let Bn=null;return onMounted(()=>{const Fn=document.querySelector("html"),qn=Bt$1($.code),Wn=()=>Fn.classList.contains("dark")||Fn.getAttribute("data-theme")==="dark";U.value=Wn(),Promise.all([__vitePreload(()=>import("./mermaid.esm.min-bc08675d.js"),[]),__vitePreload(()=>import("./mermaid-mindmap.esm.min-fc5d6484.js"),["assets/mermaid-mindmap.esm.min-fc5d6484.js","assets/framework-2050cf2c.js"]),new Promise(Gn=>setTimeout(Gn,800))]).then(async([{default:Gn},{default:Yn}])=>{try{await Gn.registerExternalDiagrams([Yn])}catch{}const Qn=async()=>{const Zn=document.createElement("div");Zn.style.position="relative",Zn.style.top="-9999px";const Jn=Kn=>{b.value=Kn,document.body.removeChild(Zn)};Gn.initialize({theme:"base",themeVariables:k$1(U.value),flowchart:{useMaxWidth:!1},sequence:{useMaxWidth:!1},journey:{useMaxWidth:!1},gantt:{useMaxWidth:!1},er:{useMaxWidth:!1},pie:{useMaxWidth:!1},startOnLoad:!1}),b.value="",document.body.appendChild(Zn),await nextTick(),await Gn.renderAsync($.id,qn,Jn,Zn)};await Qn(),Bn=new MutationObserver(()=>{U.value=Wn()}),Bn.observe(Fn,{attributeFilter:["class","data-theme"],attributes:!0}),watch(U,Qn)})}),onBeforeUnmount(()=>{Bn==null||Bn.disconnect()}),()=>h$3("div",{ref:j,class:["mermaid-wrapper",{loading:!b.value}]},b.value?h$3("div",{class:"content",innerHTML:b.value}):h$3(M))}});const o=()=>__vitePreload(()=>import("./highlight.esm-a794bb63.js"),[]),t=()=>__vitePreload(()=>import("./markdown.esm-d92a2fc9.js"),[]),e=()=>__vitePreload(()=>import("./math.esm-70a288c8.js"),[]),r$1=()=>__vitePreload(()=>import("./notes.esm-224f94d9.js"),[]),a=()=>__vitePreload(()=>import("./reveal.esm-e5069ce0.js"),[]),i$1=()=>__vitePreload(()=>import("./search.esm-2c3fba7d.js"),[]),c=()=>__vitePreload(()=>import("./zoom.esm-b83b91d0.js"),[]),useReveal=()=>[a(),t(),o(),e(),i$1(),r$1(),c()],index$1="",leagueGothic="",sourceSansPro="",k=()=>h$3(P$5,{name:"loading"},()=>["0s","-0.333s","-0.667s"].map($=>h$3("circle",{cx:512,cy:512,r:0,fill:"none",stroke:"currentColor","stroke-width":"20"},[h$3("animate",{attributeName:"r",repeatCount:"indefinite",dur:"1s",values:"0;400",keyTimes:"0;1",keySplines:"0 0.2 0.8 1",calcMode:"spline",begin:$}),h$3("animate",{attributeName:"opacity",repeatCount:"indefinite",dur:"1s",values:"1;0",keyTimes:"0;1",keySplines:"0.2 0 0.8 1",calcMode:"spline",begin:$})])));var S$3=defineComponent({name:"Presentation",props:{id:{type:String,required:!0},code:{type:String,required:!0},theme:{type:String,default:"auto"}},setup($){const b=usePageFrontmatter(),j=ref(""),U=ref(!1),Bn=ref(),Fn=ref();let qn;return onMounted(()=>{if(Fn.value){j.value=Bt$1($.code),Fn.value.setAttribute("id",$.id),Fn.value.setAttribute("data-theme",$.theme);const Wn=[new Promise(Gn=>setTimeout(Gn,800)),...useReveal()];Promise.all(Wn).then(([,Gn,...Yn])=>{qn=new Gn.default(Fn.value,{plugins:Yn.map(Qn=>Qn.default)}),qn.initialize({backgroundTransition:"slide",hash:b.value.layout==="Slide",mouseWheel:b.value.layout==="Slide",transition:"slide",slideNumber:!0,...b.value.reveal||{},embedded:b.value.layout!=="Slide"}).then(()=>{U.value=!1,qn.configure({backgroundTransition:"slide"})})})}}),onBeforeUnmount(()=>{qn==null||qn.destroy()}),()=>h$3("div",{ref:Bn,class:{"md-enhance-presentation":!0,loading:U.value}},[U.value?h$3(k):null,h$3("div",{ref:Fn,class:["reveal","reveal-viewport"]},h$3("div",{class:"slides",style:{display:U.value?"none":"block"},innerHTML:`<section data-markdown data-separator="^\\r?\\n---\\r?\\n$" data-separator-vertical="^\\r?\\n--\\r?\\n$"><script type="text/template">${j.value}<\/script></section>`}))])}});const playground="",n='<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M512 74.667C270.933 74.667 74.667 270.933 74.667 512S270.933 949.333 512 949.333 949.333 753.067 949.333 512 753.067 74.667 512 74.667zm0 810.666C307.2 885.333 138.667 716.8 138.667 512S307.2 138.667 512 138.667 885.333 307.2 885.333 512 716.8 885.333 512 885.333z"/><path d="M708.267 465.067 473.6 330.667c-8.533-4.267-17.067-6.4-25.6-6.4-29.867 0-53.333 23.466-53.333 53.333v268.8c0 8.533 2.133 19.2 6.4 25.6 10.666 17.067 27.733 27.733 46.933 27.733 8.533 0 17.067-2.133 25.6-6.4l234.667-134.4c8.533-4.266 14.933-10.666 19.2-19.2 6.4-12.8 8.533-27.733 4.266-40.533-2.133-14.933-10.666-25.6-23.466-34.133zM458.667 627.2V396.8L661.333 512 458.667 627.2z"/></svg>';var r=defineComponent({name:"Playground",props:{title:{type:String,default:""},link:{type:String,required:!0}},setup($){return()=>[h$3("div",{class:"playground-wrapper"},[h$3("div",{class:"title-wrapper"},[$.title?h$3("div",{class:"title"},decodeURIComponent($.title)):null,h$3("div",{class:"actions"},[h$3("a",{class:"action",href:decodeURIComponent($.link),target:"_blank",innerHTML:n})])]),h$3("div",{class:"preview-container"},h$3("iframe",{class:"iframe-preview",src:decodeURIComponent($.link)}))])]}});const tabs="",v=useStorage("VUEPRESS_TAB_STORE",{});var S$2=defineComponent({name:"Tabs",props:{active:{type:Number,default:0},data:{type:Array,required:!0},id:{type:String,required:!0},tabId:{type:String,default:""}},setup($,{slots:b}){const j=ref($.active),U=ref([]),Bn=()=>{if($.tabId){const{title:Yn,id:Qn=Yn}=$.data[j.value];v.value[$.tabId]=Qn}},Fn=(Yn=j.value)=>{j.value=Yn<U.value.length-1?Yn+1:0,U.value[j.value].focus()},qn=(Yn=j.value)=>{j.value=Yn>0?Yn-1:U.value.length-1,U.value[j.value].focus()},Wn=(Yn,Qn)=>{Yn.key===" "||Yn.key==="Enter"?(Yn.preventDefault(),j.value=Qn):Yn.key==="ArrowRight"?(Yn.preventDefault(),Fn()):Yn.key==="ArrowLeft"&&(Yn.preventDefault(),qn()),Bn()},Gn=()=>{if($.tabId){const Yn=$.data.findIndex(({title:Qn,id:Zn=Qn})=>v.value[$.tabId]===Zn);if(Yn!==-1)return Yn}return $.active};return onMounted(()=>{j.value=Gn(),watch(()=>v.value[$.tabId],(Yn,Qn)=>{if($.tabId&&Yn!==Qn){const Zn=$.data.findIndex(({title:Jn,id:Kn=Jn})=>Kn===Yn);Zn!==-1&&(j.value=Zn)}})}),()=>$.data.length?h$3("div",{class:"tab-list"},[h$3("div",{class:"tab-list-nav",role:"tablist"},$.data.map(({title:Yn},Qn)=>{const Zn=Qn===j.value;return h$3("button",{ref:Jn=>{Jn&&(U.value[Qn]=Jn)},class:["tab-list-nav-item",{active:Zn}],role:"tab","aria-controls":`tab-${$.id}-${Qn}`,"aria-selected":Zn,onClick:()=>{j.value=Qn,Bn()},onKeydown:Jn=>Wn(Jn,Qn)},Yn)})),$.data.map(({title:Yn,id:Qn=Yn},Zn)=>{var Jn;const Kn=Zn===j.value;return h$3("div",{class:["tab-item",{active:Kn}],id:`tab-${$.id}-${Zn}`,role:"tabpanel","aria-expanded":Kn},(Jn=b[`tab${Zn}`])==null?void 0:Jn.call(b,{title:Yn,value:Qn,isActive:Kn}))})]):null}});const tasklist="",katex="",clientConfig9=defineClientConfig({enhance:({app:$})=>{$.component("ChartJS",ChartJS),$.component("CodeTabs",S$4),$.component("CodeDemo",F$1),$.component("ECharts",ECharts),$.component("FlowChart",k$2),$.component("Mermaid",w),$.component("Presentation",S$3),$.component("Playground",r),$.component("Tabs",S$2),$.component("VuePlayground",defineAsyncComponent(()=>__vitePreload(()=>import("./VuePlayground-3e83015b.js"),["assets/VuePlayground-3e83015b.js","assets/framework-2050cf2c.js"])))}}),photoswipe="",E$1=".theme-hope-content :not(a) > img",P$1={"/en/":{closeTitle:"Close",downloadTitle:"Download Image",fullscreenTitle:"Switch to full screen",zoomTitle:"Zoom in/out",arrowPrevTitle:"Prev (Arrow Left)",arrowNextTitle:"Next (Arrow Right)"},"/":{closeTitle:"关闭",downloadTitle:"下载图片",fullscreenTitle:"切换全屏",zoomTitle:"缩放",arrowPrevTitle:"上一个 (左箭头)",arrowNextTitle:"下一个 (右箭头)"}},O=800,H$1={},d$2=$=>({src:$.src,width:$.naturalWidth,height:$.naturalHeight,alt:$.alt}),I$1=$=>{const b=isString$1($)?Array.from(document.querySelectorAll($)):$.map(j=>Array.from(document.querySelectorAll(j))).flat();return Promise.all(b.map(j=>new Promise((U,Bn)=>{j.complete?U(d$2(j)):(j.onload=()=>U(d$2(j)),j.onerror=Fn=>Bn(Fn))}))).then(j=>({elements:b,infos:j}))},A$2=()=>{const{isSupported:$,toggle:b}=useFullscreen(),j=kt$1(P$1),U=useRoute(),Bn=()=>{Promise.all([__vitePreload(()=>import("./photoswipe.esm-a9093b7c.js"),[]),new Promise(Fn=>setTimeout(Fn,O)).then(()=>I$1(E$1))]).then(([Fn,qn])=>{qn.elements.forEach((Wn,Gn)=>{const Yn=()=>{const Qn=new Fn.default({dataSource:qn.infos,...j.value,...H$1,index:Gn});Qn.on("uiRegister",()=>{$&&Qn.ui.registerElement({name:"fullscreen",order:7,isButton:!0,html:'<svg class="pswp__icn" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg"><path d="M249.5 270.833H437v-75H212a37.5 37.5 0 0 0-37.5 37.5v225h75v-187.5zm-37.5 600h225v-75H249.5v-187.5h-75v225a37.5 37.5 0 0 0 37.5 37.5zm637.5-37.5v-225h-75v187.5H587v75h225a37.5 37.5 0 0 0 37.5-37.5zM587 270.833h187.5v187.5h75v-225a37.5 37.5 0 0 0-37.5-37.5H587v75z"/></svg>',onClick:()=>{b()}}),Qn.ui.registerElement({name:"download",order:8,isButton:!0,tagName:"a",html:{isCustomSVG:!0,inner:'<path d="M20.5 14.3 17.1 18V10h-2.2v7.9l-3.4-3.6L10 16l6 6.1 6-6.1-1.5-1.6ZM23 23H9v2h14" id="pswp__icn-download"/>',outlineID:"pswp__icn-download"},onInit:(Zn,Jn)=>{Zn.setAttribute("download",""),Zn.setAttribute("target","_blank"),Zn.setAttribute("rel","noopener"),Jn.on("change",()=>{Zn.href=Jn.currSlide.data.src})}})}),Qn.init()};Wn.style.cursor="zoom-in",Wn.addEventListener("click",Yn),Wn.addEventListener("keypress",({key:Qn})=>{Qn==="Enter"&&Yn()})})})};onMounted(()=>{Bn(),watch(()=>U.path,()=>Bn())})};var y=defineClientConfig({setup:()=>{A$2()}});function i($){return{all:$=$||new Map,on:function(b,j){var U=$.get(b);U?U.push(j):$.set(b,[j])},off:function(b,j){var U=$.get(b);U&&(j?U.splice(U.indexOf(j)>>>0,1):$.set(b,[]))},emit:function(b,j){var U=$.get(b);U&&U.slice().map(function(Bn){Bn(j)}),(U=$.get("*"))&&U.slice().map(function(Bn){Bn(b,j)})}}}const l=Symbol.for("PWAEvent"),g$1=async $=>{const{register:b}=await __vitePreload(()=>import("./index-70769223.js"),[]);b(withBase("service-worker.js"),{ready(j){console.log("[PWA]: Service worker is active"),$.emit("ready",j)},registered(j){console.log("[PWA]: Service worker has been registered."),$.emit("registered",j)},cached(j){console.log("[PWA]: Content has been cached for offline usage"),$.emit("cached",j)},async updatefound(j){await navigator.serviceWorker.getRegistration()&&(console.log("[PWA]: New content is downloading."),$.emit("updatefound",j))},updated(j){console.log("[PWA]: New content is available, please refresh.");const U="service-worker-version",Bn=Number(localStorage.getItem(U)||0);localStorage.setItem(U,(Bn+1).toString()),localStorage.removeItem("manifest"),$.emit("updated",j)},offline(){console.log("[PWA]: No internet connection found. App is running in offline mode."),$.emit("offline")},error(j){console.log("[PWA]: Error during service worker registration:",j),$.emit("error",j)}})},m$1=()=>{const $=i();provide(l,$),onMounted(async()=>{var b;let j=!1;(b=navigator.serviceWorker)!=null&&b.controller&&navigator.serviceWorker.addEventListener("controllerchange",()=>{j||(j=!0,window.location.reload())}),await g$1($)})},popup="",W={"/en/":{install:"Install",iOSInstall:"Tap the share button and then 'Add to Home Screen'",cancel:"Cancel",close:"Close",prevImage:"Previous Image",nextImage:"Next Image",desc:"Description",feature:"Key Features",explain:"This app can be installed on your PC or mobile device. This will allow this web app to look and behave like any other installed app. You will find it in your app lists and be able to pin it to your home screen, start menus or task bars. This installed web app will also be able to safely interact with other apps and your operating system. ",hint:"New content found.",update:"New content is available."},"/":{install:"安装",iOSInstall:"点击分享按钮然后点击“添加到主屏幕”",cancel:"取消",close:"关闭",prevImage:"上一张图片",nextImage:"下一张图片",desc:"详情",feature:"主要特色",explain:"该应用可以安装在你的 PC 或移动设备上。这将使该 Web 应用程序外观和行为与其他应用程序相同。它将在出现在应用程序列表中,并可以固定到主屏幕,开始菜单或任务栏。此 Web 应用程序还将能够与其他应用程序和你的操作系统安全地进行交互。",hint:"发现新内容可用",update:"新内容已就绪"}},s=()=>h$3(P$5,{name:"update"},()=>h$3("path",{d:"M949.949 146.25v255.826c0 21.981-13.989 35.97-35.97 35.97H658.154c-13.988 0-25.983-7.992-33.973-21.981-5.997-13.989-4-27.977 7.991-39.97l79.942-77.946c-55.954-51.973-121.918-77.955-199.863-77.955-37.975 0-75.95 8.002-113.924 21.99-37.975 15.985-67.948 37.976-91.934 63.957-25.982 23.987-47.973 53.96-63.957 91.934-29.983 73.955-29.983 153.895 0 227.85 15.984 37.976 37.975 67.947 63.957 91.934 23.986 25.982 53.959 47.973 91.934 63.956 37.974 13.989 75.95 21.991 113.924 21.991 45.967 0 87.942-9.998 127.913-29.982 41.976-17.99 75.951-45.967 101.931-83.943 7.993-4 11.994-5.995 13.989-5.995 5.997 0 9.998 1.994 13.988 5.995l77.958 77.946c3.989 4 5.986 7.993 5.986 11.994 0 1.994-1.996 5.995-3.99 11.994-43.973 51.962-93.941 91.934-151.9 117.914-53.958 25.983-115.92 39.972-185.874 39.972-61.961 0-119.921-11.984-169.89-33.973-57.96-25.985-105.923-57.963-139.896-93.943-35.98-33.972-67.958-81.936-93.94-139.897-45.967-101.93-45.967-237.846 0-339.777 25.982-57.96 57.96-105.923 93.94-139.896 33.973-35.98 81.936-67.958 139.896-93.94 49.968-21.99 107.928-33.974 169.89-33.974 55.963 0 109.923 9.988 161.885 29.973 53.97 21.99 101.933 51.963 139.908 89.938l73.954-73.944c9.987-9.998 23.987-13.988 39.971-8.002 13.988 8.002 21.98 19.995 21.98 33.984z"}));s.displayName="UpdateIcon";const P=Symbol.for("PWAEvent"),S$1=()=>{const $=inject(P);if(!$)throw new Error("usePWAEvent() is called without provider.");return $},g=$=>{const b=$.waiting;if(!b)return;const j=new MessageChannel;b.postMessage({type:"SKIP_WAITING"},[j.port2])};var A$1=defineComponent({name:"SWUpdatePopup",setup($,{slots:b}){const j=kt$1(W),U=ref(),Bn=computed(()=>Boolean(U.value)),Fn=()=>{U.value&&(g(U.value),U.value=void 0)};return onMounted(()=>{S$1().on("updated",qn=>{qn&&(U.value=qn)})}),()=>h$3(Transition,{name:"popup"},()=>{var qn;return((qn=b.default)==null?void 0:qn.call(b,{enabled:Bn.value,reload:Fn}))||(Bn.value?h$3("button",{class:"sw-update-popup",tabindex:0,onClick:()=>Fn()},[j.value.update,h$3("span",{class:"icon-wrapper"},h$3(s))]):null)})}});const clientConfig11=defineClientConfig({setup:()=>{m$1()},rootComponents:[A$1]}),useAutoLink=($,b=!1)=>{const j=useRouter(),{fullPath:U,meta:Bn,name:Fn}=Dt$1(j,encodeURI($));return{text:!b&&Bn.s?Bn.s:Bn.title||$,link:Fn==="404"?$:U,...Bn.i?{icon:Bn.i}:{}}},useThemeData=()=>useThemeData$1(),useThemeLocaleData=()=>useThemeLocaleData$1(),usePure=()=>computed(()=>Boolean(useThemeData().value.pure)),useWindowSize=()=>{const $=useThemeData(),b=ref(!1),j=ref(!1),U=()=>{b.value=window.innerWidth<=($.value.mobileBreakPoint||719),j.value=window.innerWidth>=($.value.wideBreakPoint||1440)};return onMounted(()=>{U(),useEventListener("resize",U,!1),useEventListener("orientationchange",U,!1)}),{isMobile:b,isWide:j}},useNavigate=()=>{const $=useRouter(),b=useRoute();return j=>{if(j)if(ue$1(j))b.path!==j&&$.push(j);else if(isLinkHttp(j)||isLinkMailto(j))window&&window.open(j);else{const U=b.path.slice(0,b.path.lastIndexOf("/"));$.push(`${U}/${encodeURI(j)}`)}}},usePageAuthor=()=>{const $=useThemeLocaleData(),b=usePageFrontmatter();return computed(()=>{const{author:j}=b.value;return j?re$1(j):j===!1?[]:re$1($.value.author,!1)})},usePageCategory=()=>{const $=usePageFrontmatter();return computed(()=>se$1($.value.category).map(b=>({name:b,path:""})))},usePageTag=()=>{const $=usePageFrontmatter();return computed(()=>oe$1($.value.tag).map(b=>({name:b,path:""})))},usePageDate=()=>{const $=usePageFrontmatter(),b=usePageData();return computed(()=>{const{date:j}=$.value;if(j)return ot$1(j);const{createdTime:U}=b.value.git||{};return U?ot$1(new Date(U)):null})},usePageInfo=()=>{const $=useThemeLocaleData(),b=usePageData(),j=usePageFrontmatter(),U=usePageAuthor(),Bn=usePageCategory(),Fn=usePageTag(),qn=usePageDate(),Wn=computed(()=>({author:U.value,category:Bn.value,date:qn.value,localizedDate:b.value.localizedDate,tag:Fn.value,isOriginal:j.value.isOriginal||!1,readingTime:b.value.readingTime||null,pageview:"pageview"in j.value?j.value.pageview:!0})),Gn=computed(()=>"pageInfo"in j.value?j.value.pageInfo:"pageInfo"in $.value?$.value.pageInfo:null);return{info:Wn,items:Gn}};let promise=null,promiseResolve=null;const scrollPromise={wait:()=>promise,pending:()=>{promise=new Promise($=>promiseResolve=$)},resolve:()=>{promiseResolve==null||promiseResolve(),promise=null,promiseResolve=null}},useScrollPromise=()=>scrollPromise,footer="",PageFooter=defineComponent({name:"PageFooter",setup(){const $=usePageFrontmatter(),b=useThemeLocaleData(),j=usePageAuthor(),U=computed(()=>{const{copyright:qn,footer:Wn}=$.value;return Wn!==!1&&Boolean(qn||Wn||b.value.displayFooter)}),Bn=computed(()=>{const{footer:qn}=$.value;return qn===!1?!1:isString$1(qn)?qn:b.value.footer||""}),Fn=computed(()=>"copyright"in $.value?$.value.copyright:"copyright"in b.value?b.value.copyright:j.value.length?`Copyright © ${new Date().getFullYear()} ${j.value[0].name}`:!1);return()=>U.value?h$3("footer",{class:"footer-wrapper"},[Bn.value?h$3("div",{class:"footer",innerHTML:Bn.value}):null,Fn.value?h$3("div",{class:"copyright",innerHTML:Fn.value}):null]):null}}),I18nIcon=()=>h$3(P$5,{name:"i18n"},()=>[h$3("path",{d:"M379.392 460.8 494.08 575.488l-42.496 102.4L307.2 532.48 138.24 701.44l-71.68-72.704L234.496 460.8l-45.056-45.056c-27.136-27.136-51.2-66.56-66.56-108.544h112.64c7.68 14.336 16.896 27.136 26.112 35.84l45.568 46.08 45.056-45.056C382.976 312.32 409.6 247.808 409.6 204.8H0V102.4h256V0h102.4v102.4h256v102.4H512c0 70.144-37.888 161.28-87.04 210.944L378.88 460.8zM576 870.4 512 1024H409.6l256-614.4H768l256 614.4H921.6l-64-153.6H576zM618.496 768h196.608L716.8 532.48 618.496 768z"})]);I18nIcon.displayName="I18nIcon";const Icon=$=>{const{icon:b=""}=$;return isLinkHttp(b)?h$3("img",{class:"icon",src:b}):ue$1(b)?h$3("img",{class:"icon",src:withBase(b)}):h$3(resolveComponent("FontIcon"),$)};Icon.displayName="Icon";const AutoLink=defineComponent({name:"AutoLink",inheritAttrs:!1,props:{config:{type:Object,required:!0},exact:Boolean,noExternalLinkIcon:Boolean},emits:{focusout:()=>!0},setup($,{attrs:b,emit:j,slots:U}){const Bn=useRoute(),Fn=useSiteData(),qn=toRef($,"config"),Wn=computed(()=>isLinkHttp(qn.value.link)),Gn=computed(()=>isLinkMailto(qn.value.link)||isLinkTel(qn.value.link)),Yn=computed(()=>Gn.value?void 0:qn.value.target||(Wn.value?"_blank":void 0)),Qn=computed(()=>Yn.value==="_blank"),Zn=computed(()=>!Wn.value&&!Gn.value&&!Qn.value),Jn=computed(()=>Gn.value?void 0:qn.value.rel||(Qn.value?"noopener noreferrer":void 0)),Kn=computed(()=>qn.value.ariaLabel||qn.value.text),ea=computed(()=>{if($.exact)return!1;const ta=Object.keys(Fn.value.locales);return ta.length?ta.every(na=>na!==qn.value.link):qn.value.link!=="/"}),Xn=computed(()=>Zn.value?qn.value.activeMatch?new RegExp(qn.value.activeMatch).test(Bn.path):ea.value?Bn.path.startsWith(qn.value.link):Bn.path===qn.value.link:!1);return()=>{var ca,pa,va;const{text:ta,icon:na,link:ra}=qn.value;return Zn.value?h$3(RouterLink,{to:ra,"aria-label":Kn.value,...b,class:["nav-link",{active:Xn.value},b.class],onFocusout:()=>j("focusout")},()=>{var ga,ia,la;return((ga=U.default)==null?void 0:ga.call(U))||[((ia=U.before)==null?void 0:ia.call(U))||h$3(Icon,{icon:na}),ta,(la=U.after)==null?void 0:la.call(U)]}):h$3("a",{href:ra,rel:Jn.value,target:Yn.value,"aria-label":Kn.value,...b,class:["nav-link",b.class],onFocusout:()=>j("focusout")},((ca=U.default)==null?void 0:ca.call(U))||[((pa=U.before)==null?void 0:pa.call(U))||h$3(Icon,{icon:na}),ta,$.noExternalLinkIcon?null:h$3(ExternalLinkIcon),(va=U.after)==null?void 0:va.call(U)])}}}),dropdownLink="",DropdownLink=defineComponent({name:"NavbarDropdownLink",props:{config:{type:Object,required:!0}},setup($,{slots:b}){const j=useRoute(),U=toRef($,"config"),Bn=computed(()=>U.value.ariaLabel||U.value.text),Fn=ref(!1);watch(()=>j.path,()=>{Fn.value=!1});const qn=Wn=>{Wn.detail===0&&(Fn.value=!Fn.value)};return()=>{var Wn;return h$3("div",{class:["dropdown-wrapper",{open:Fn.value}]},[h$3("button",{class:"dropdown-title",type:"button","aria-label":Bn.value,onClick:qn},[((Wn=b.title)==null?void 0:Wn.call(b))||h$3("span",{class:"title"},[h$3(Icon,{icon:U.value.icon}),$.config.text]),h$3("span",{class:"arrow"}),h$3("ul",{class:"nav-dropdown"},U.value.children.map((Gn,Yn)=>{const Qn=Yn===U.value.children.length-1;return h$3("li",{class:"dropdown-item"},"children"in Gn?[h$3("h4",{class:"dropdown-subtitle"},Gn.link?h$3(AutoLink,{config:Gn,onFocusout:()=>{Gn.children.length===0&&Qn&&(Fn.value=!1)}}):h$3("span",Gn.text)),h$3("ul",{class:"dropdown-subitem-wrapper"},Gn.children.map((Zn,Jn)=>h$3("li",{class:"dropdown-subitem"},h$3(AutoLink,{config:Zn,onFocusout:()=>{Jn===Gn.children.length-1&&Qn&&(Fn.value=!1)}}))))]:h$3(AutoLink,{config:Gn,onFocusout:()=>{Qn&&(Fn.value=!1)}}))}))])])}}}),resolveNavbarItem=($,b="")=>isString$1($)?useAutoLink(`${b}${$}`):"children"in $?{...$,...$.link&&!isLinkExternal($.link)?useAutoLink(`${b}${$.link}`):{},children:$.children.map(j=>resolveNavbarItem(j,`${b}${$.prefix||""}`))}:{...$,link:isLinkExternal($.link)?$.link:useAutoLink(`${b}${$.link}`).link},useNavbarConfig=()=>computed(()=>(useThemeLocaleData().value.navbar||[]).map($=>resolveNavbarItem($))),useNavbarLanguageDropdown=()=>{const $=useRouter(),b=useRouteLocale(),j=useSiteLocaleData(),U=useThemeData(),Bn=useThemeLocaleData();return computed(()=>{const Fn=Object.keys(j.value.locales);if(Fn.length<2)return null;const{path:qn,fullPath:Wn}=$.currentRoute.value,{navbarLocales:Gn}=Bn.value;return{text:"",ariaLabel:Gn==null?void 0:Gn.selectLangAriaLabel,children:Fn.map(Qn=>{var ta,na,ra;const Zn=((ta=j.value.locales)==null?void 0:ta[Qn])??{},Jn=((na=U.value.locales)==null?void 0:na[Qn])??{},Kn=Zn.lang||"",ea=((ra=Jn.navbarLocales)==null?void 0:ra.langName)??Kn;let Xn;if(Kn===j.value.lang)Xn=qn;else{const ca=qn.replace(b.value,Qn);Xn=$.getRoutes().some(pa=>pa.path===ca)?Wn.replace(qn,ca):Jn.home??Qn}return{text:ea,link:Xn}})}})},useNavbarRepo=()=>{const $=useThemeLocaleData(),b=computed(()=>$.value.repo||null),j=computed(()=>b.value?Ft$1(b.value):null),U=computed(()=>b.value?Jt$1(b.value):null),Bn=computed(()=>j.value?$.value.repoLabel??(U.value===null?"Source":U.value):null);return computed(()=>!j.value||!Bn.value||$.value.repoDisplay===!1?null:{type:U.value||"Source",label:Bn.value,link:j.value})},LanguageDropdown=defineComponent({name:"LanguageDropdown",setup(){const $=useNavbarLanguageDropdown();return()=>$.value?h$3("div",{class:"nav-item"},h$3(DropdownLink,{class:"i18n-dropdown",config:$.value},{title:()=>{var b;return h$3(I18nIcon,{"aria-label":(b=$.value)==null?void 0:b.ariaLabel,style:{width:"1rem",height:"1rem",verticalAlign:"middle"}})}})):null}}),navbarBrand="",NavbarBrand=defineComponent({name:"NavbarBrand",setup(){const $=useRouteLocale(),b=useSiteLocaleData(),j=useThemeLocaleData(),U=computed(()=>j.value.home||$.value),Bn=computed(()=>b.value.title),Fn=computed(()=>j.value.logo?withBase(j.value.logo):null),qn=computed(()=>j.value.logoDark?withBase(j.value.logoDark):null);return()=>h$3(RouterLink,{to:U.value,class:"brand"},()=>[Fn.value?h$3("img",{class:["logo",{light:Boolean(qn.value)}],src:Fn.value,alt:Bn.value}):null,qn.value?h$3("img",{class:["logo dark"],src:qn.value,alt:Bn.value}):null,Bn.value?h$3("span",{class:["site-name",{"hide-in-pad":Fn.value&&j.value.hideSiteNameOnMobile!==!1}]},Bn.value):null])}}),navbarLinks="",NavbarLinks=defineComponent({name:"NavbarLinks",setup(){const $=useNavbarConfig();return()=>$.value.length?h$3("nav",{class:"nav-links"},[...$.value.map(b=>h$3("div",{class:"nav-item hide-in-mobile"},"children"in b?h$3(DropdownLink,{config:b}):h$3(AutoLink,{config:b})))]):null}});function _toConsumableArray($){if(Array.isArray($)){for(var b=0,j=Array($.length);b<$.length;b++)j[b]=$[b];return j}else return Array.from($)}var hasPassiveEvents=!1;if(typeof window<"u"){var passiveTestOptions={get passive(){hasPassiveEvents=!0}};window.addEventListener("testPassive",null,passiveTestOptions),window.removeEventListener("testPassive",null,passiveTestOptions)}var isIosDevice=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),locks=[],documentListenerAdded=!1,initialClientY=-1,previousBodyOverflowSetting=void 0,previousBodyPaddingRight=void 0,allowTouchMove=function $(b){return locks.some(function(j){return!!(j.options.allowTouchMove&&j.options.allowTouchMove(b))})},preventDefault=function $(b){var j=b||window.event;return allowTouchMove(j.target)||j.touches.length>1?!0:(j.preventDefault&&j.preventDefault(),!1)},setOverflowHidden=function $(b){if(previousBodyPaddingRight===void 0){var j=!!b&&b.reserveScrollBarGap===!0,U=window.innerWidth-document.documentElement.clientWidth;j&&U>0&&(previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight=U+"px")}previousBodyOverflowSetting===void 0&&(previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden")},restoreOverflowSetting=function $(){previousBodyPaddingRight!==void 0&&(document.body.style.paddingRight=previousBodyPaddingRight,previousBodyPaddingRight=void 0),previousBodyOverflowSetting!==void 0&&(document.body.style.overflow=previousBodyOverflowSetting,previousBodyOverflowSetting=void 0)},isTargetElementTotallyScrolled=function $(b){return b?b.scrollHeight-b.scrollTop<=b.clientHeight:!1},handleScroll=function $(b,j){var U=b.targetTouches[0].clientY-initialClientY;return allowTouchMove(b.target)?!1:j&&j.scrollTop===0&&U>0||isTargetElementTotallyScrolled(j)&&U<0?preventDefault(b):(b.stopPropagation(),!0)},disableBodyScroll=function $(b,j){if(!b){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!locks.some(function(Bn){return Bn.targetElement===b})){var U={targetElement:b,options:j||{}};locks=[].concat(_toConsumableArray(locks),[U]),isIosDevice?(b.ontouchstart=function(Bn){Bn.targetTouches.length===1&&(initialClientY=Bn.targetTouches[0].clientY)},b.ontouchmove=function(Bn){Bn.targetTouches.length===1&&handleScroll(Bn,b)},documentListenerAdded||(document.addEventListener("touchmove",preventDefault,hasPassiveEvents?{passive:!1}:void 0),documentListenerAdded=!0)):setOverflowHidden(j)}},clearAllBodyScrollLocks=function $(){isIosDevice?(locks.forEach(function(b){b.targetElement.ontouchstart=null,b.targetElement.ontouchmove=null}),documentListenerAdded&&(document.removeEventListener("touchmove",preventDefault,hasPassiveEvents?{passive:!1}:void 0),documentListenerAdded=!1),initialClientY=-1):restoreOverflowSetting(),locks=[]};const navScreenDropdown="",NavScreenDropdown=defineComponent({name:"NavScreenDropdown",props:{config:{type:Object,required:!0}},setup($){const b=useRoute(),j=toRef($,"config"),U=computed(()=>j.value.ariaLabel||j.value.text),Bn=ref(!1);watch(()=>b.path,()=>{Bn.value=!1});const Fn=(qn,Wn)=>Wn[Wn.length-1]===qn;return()=>[h$3("button",{class:["nav-screen-dropdown-title",{active:Bn.value}],type:"button","aria-label":U.value,onClick:()=>{Bn.value=!Bn.value}},[h$3("span",{class:"title"},[h$3(Icon,{icon:j.value.icon}),$.config.text]),h$3("span",{class:["arrow",Bn.value?"down":"right"]})]),h$3("ul",{class:["nav-screen-dropdown",{hide:!Bn.value}]},j.value.children.map(qn=>h$3("li",{class:"dropdown-item"},"children"in qn?[h$3("h4",{class:"dropdown-subtitle"},qn.link?h$3(AutoLink,{config:qn,onFocusout:()=>{Fn(qn,j.value.children)&&qn.children.length===0&&(Bn.value=!1)}}):h$3("span",qn.text)),h$3("ul",{class:"dropdown-subitem-wrapper"},qn.children.map(Wn=>h$3("li",{class:"dropdown-subitem"},h$3(AutoLink,{config:Wn,onFocusout:()=>{Fn(Wn,qn.children)&&Fn(qn,j.value.children)&&(Bn.value=!1)}}))))]:h$3(AutoLink,{config:qn,onFocusout:()=>{Fn(qn,j.value.children)&&(Bn.value=!1)}}))))]}}),navScreenLinks="",NavScreenLinks=defineComponent({name:"NavScreenLinks",setup(){const $=useNavbarConfig();return()=>$.value.length?h$3("nav",{class:"nav-screen-links"},$.value.map(b=>h$3("div",{class:"navbar-links-item"},"children"in b?h$3(NavScreenDropdown,{config:b}):h$3(AutoLink,{config:b})))):null}}),DarkIcon=()=>h$3(P$5,{name:"dark"},()=>h$3("path",{d:"M524.8 938.667h-4.267a439.893 439.893 0 0 1-313.173-134.4 446.293 446.293 0 0 1-11.093-597.334A432.213 432.213 0 0 1 366.933 90.027a42.667 42.667 0 0 1 45.227 9.386 42.667 42.667 0 0 1 10.24 42.667 358.4 358.4 0 0 0 82.773 375.893 361.387 361.387 0 0 0 376.747 82.774 42.667 42.667 0 0 1 54.187 55.04 433.493 433.493 0 0 1-99.84 154.88 438.613 438.613 0 0 1-311.467 128z"}));DarkIcon.displayName="DarkIcon";const LightIcon=()=>h$3(P$5,{name:"light"},()=>h$3("path",{d:"M952 552h-80a40 40 0 0 1 0-80h80a40 40 0 0 1 0 80zM801.88 280.08a41 41 0 0 1-57.96-57.96l57.96-58a41.04 41.04 0 0 1 58 58l-58 57.96zM512 752a240 240 0 1 1 0-480 240 240 0 0 1 0 480zm0-560a40 40 0 0 1-40-40V72a40 40 0 0 1 80 0v80a40 40 0 0 1-40 40zm-289.88 88.08-58-57.96a41.04 41.04 0 0 1 58-58l57.96 58a41 41 0 0 1-57.96 57.96zM192 512a40 40 0 0 1-40 40H72a40 40 0 0 1 0-80h80a40 40 0 0 1 40 40zm30.12 231.92a41 41 0 0 1 57.96 57.96l-57.96 58a41.04 41.04 0 0 1-58-58l58-57.96zM512 832a40 40 0 0 1 40 40v80a40 40 0 0 1-80 0v-80a40 40 0 0 1 40-40zm289.88-88.08 58 57.96a41.04 41.04 0 0 1-58 58l-57.96-58a41 41 0 0 1 57.96-57.96z"}));LightIcon.displayName="LightIcon";const AutoIcon=()=>h$3(P$5,{name:"auto"},()=>h$3("path",{d:"M512 992C246.92 992 32 777.08 32 512S246.92 32 512 32s480 214.92 480 480-214.92 480-480 480zm0-840c-198.78 0-360 161.22-360 360 0 198.84 161.22 360 360 360s360-161.16 360-360c0-198.78-161.22-360-360-360zm0 660V212c165.72 0 300 134.34 300 300 0 165.72-134.28 300-300 300z"}));AutoIcon.displayName="AutoIcon";const EnterFullScreenIcon=()=>h$3(P$5,{name:"enter-fullscreen"},()=>h$3("path",{d:"M762.773 90.24h-497.28c-96.106 0-174.4 78.293-174.4 174.4v497.28c0 96.107 78.294 174.4 174.4 174.4h497.28c96.107 0 175.04-78.293 174.4-174.4V264.64c0-96.213-78.186-174.4-174.4-174.4zm-387.2 761.173H215.04c-21.867 0-40.427-17.92-41.067-41.066V649.92c0-22.507 17.92-40.427 40.427-40.427 11.307 0 21.227 4.694 28.48 11.947 7.253 7.253 11.947 17.92 11.947 28.48v62.293l145.28-145.28c15.893-15.893 41.813-15.893 57.706 0 15.894 15.894 15.894 41.814 0 57.707l-145.28 145.28h62.294c22.506 0 40.426 17.92 40.426 40.427s-17.173 41.066-39.68 41.066zM650.24 165.76h160.427c21.866 0 40.426 17.92 41.066 41.067v160.426c0 22.507-17.92 40.427-40.426 40.427-11.307 0-21.227-4.693-28.48-11.947-7.254-7.253-11.947-17.92-11.947-28.48v-62.186L625.6 450.347c-15.893 15.893-41.813 15.893-57.707 0-15.893-15.894-15.893-41.814 0-57.707l145.28-145.28H650.88c-22.507 0-40.427-17.92-40.427-40.427s17.174-41.173 39.787-41.173z"}));EnterFullScreenIcon.displayName="EnterFullScreenIcon";const CancelFullScreenIcon=()=>h$3(P$5,{name:"cancel-fullscreen"},()=>h$3("path",{d:"M778.468 78.62H247.922c-102.514 0-186.027 83.513-186.027 186.027V795.08c0 102.514 83.513 186.027 186.027 186.027h530.432c102.514 0 186.71-83.513 186.026-186.027V264.647C964.494 162.02 880.981 78.62 778.468 78.62zM250.88 574.35h171.122c23.324 0 43.122 19.115 43.804 43.805v171.121c0 24.008-19.114 43.122-43.122 43.122-12.06 0-22.641-5.006-30.378-12.743s-12.743-19.115-12.743-30.379V722.83L224.597 877.91c-16.953 16.952-44.6 16.952-61.553 0-16.953-16.954-16.953-44.602 0-61.554L318.009 661.39h-66.446c-24.007 0-43.122-19.114-43.122-43.122 0-24.12 18.432-43.918 42.439-43.918zm521.899-98.873H601.657c-23.325 0-43.122-19.114-43.805-43.804V260.55c0-24.007 19.115-43.122 43.122-43.122 12.06 0 22.642 5.007 30.379 12.743s12.743 19.115 12.743 30.38v66.445l154.965-154.965c16.953-16.953 44.601-16.953 61.554 0 16.953 16.953 16.953 44.6 0 61.554L705.536 388.55h66.446c24.007 0 43.122 19.115 43.122 43.122.114 24.007-18.318 43.804-42.325 43.804z"}));CancelFullScreenIcon.displayName="CancelFullScreenIcon";const OutlookIcon=()=>h$3(P$5,{name:"outlook"},()=>[h$3("path",{d:"M224 800c0 9.6 3.2 44.8 6.4 54.4 6.4 48-48 76.8-48 76.8s80 41.6 147.2 0 134.4-134.4 38.4-195.2c-22.4-12.8-41.6-19.2-57.6-19.2C259.2 716.8 227.2 761.6 224 800zM560 675.2l-32 51.2c-51.2 51.2-83.2 32-83.2 32 25.6 67.2 0 112-12.8 128 25.6 6.4 51.2 9.6 80 9.6 54.4 0 102.4-9.6 150.4-32l0 0c3.2 0 3.2-3.2 3.2-3.2 22.4-16 12.8-35.2 6.4-44.8-9.6-12.8-12.8-25.6-12.8-41.6 0-54.4 60.8-99.2 137.6-99.2 6.4 0 12.8 0 22.4 0 12.8 0 38.4 9.6 48-25.6 0-3.2 0-3.2 3.2-6.4 0-3.2 3.2-6.4 3.2-6.4 6.4-16 6.4-16 6.4-19.2 9.6-35.2 16-73.6 16-115.2 0-105.6-41.6-198.4-108.8-268.8C704 396.8 560 675.2 560 675.2zM224 419.2c0-28.8 22.4-51.2 51.2-51.2 28.8 0 51.2 22.4 51.2 51.2 0 28.8-22.4 51.2-51.2 51.2C246.4 470.4 224 448 224 419.2zM320 284.8c0-22.4 19.2-41.6 41.6-41.6 22.4 0 41.6 19.2 41.6 41.6 0 22.4-19.2 41.6-41.6 41.6C339.2 326.4 320 307.2 320 284.8zM457.6 208c0-12.8 12.8-25.6 25.6-25.6 12.8 0 25.6 12.8 25.6 25.6 0 12.8-12.8 25.6-25.6 25.6C470.4 233.6 457.6 220.8 457.6 208zM128 505.6C128 592 153.6 672 201.6 736c28.8-60.8 112-60.8 124.8-60.8-16-51.2 16-99.2 16-99.2l316.8-422.4c-48-19.2-99.2-32-150.4-32C297.6 118.4 128 291.2 128 505.6zM764.8 86.4c-22.4 19.2-390.4 518.4-390.4 518.4-22.4 28.8-12.8 76.8 22.4 99.2l9.6 6.4c35.2 22.4 80 12.8 99.2-25.6 0 0 6.4-12.8 9.6-19.2 54.4-105.6 275.2-524.8 288-553.6 6.4-19.2-3.2-32-19.2-32C777.6 76.8 771.2 80 764.8 86.4z"})]);OutlookIcon.displayName="OutlookIcon";const darkModeSymbol=Symbol.for("darkMode"),useDarkmode=()=>{const $=inject(darkModeSymbol);if(!$)throw new Error("useDarkmode() is called without provider.");return $},injectDarkMode=$=>{const b=useThemeData(),j=usePreferredDark(),U=useStorage("vuepress-theme-hope-scheme","auto"),Bn=computed(()=>b.value.darkmode||"switch"),Fn=computed(()=>{const Wn=Bn.value;return Wn==="disable"?!1:Wn==="enable"?!0:Wn==="auto"?j.value:Wn==="toggle"?U.value==="dark":U.value==="dark"||U.value==="auto"&&j.value}),qn=computed(()=>{const Wn=Bn.value;return Wn==="switch"||Wn==="toggle"});$.provide(darkModeSymbol,{canToggle:qn,config:Bn,isDarkmode:Fn,status:U}),Object.defineProperties($.config.globalProperties,{$isDarkmode:{get:()=>Fn.value}})},setupDarkMode=()=>{const{isDarkmode:$}=useDarkmode(),b=(j=$.value)=>{const U=window==null?void 0:window.document.querySelector("html");U==null||U.setAttribute("data-theme",j?"dark":"light")};onMounted(()=>{watch($,b,{immediate:!0})})},appearanceSwitch="",AppearanceSwitch=defineComponent({name:"AppearanceSwitch",setup(){const{config:$,status:b}=useDarkmode(),j=()=>{$.value==="switch"?b.value={light:"dark",dark:"auto",auto:"light"}[b.value]:b.value=b.value==="light"?"dark":"light"};return()=>h$3("button",{id:"appearance-switch",onClick:()=>j()},[h$3(AutoIcon,{style:{display:b.value==="auto"?"block":"none"}}),h$3(DarkIcon,{style:{display:b.value==="dark"?"block":"none"}}),h$3(LightIcon,{style:{display:b.value==="light"?"block":"none"}})])}}),AppearanceMode=defineComponent({name:"AppearanceMode",setup(){const $=useThemeLocaleData(),{canToggle:b}=useDarkmode(),j=computed(()=>$.value.outlookLocales.darkmode);return()=>b.value?h$3("div",{class:"appearance-wrapper"},[h$3("label",{class:"appearance-title",for:"appearance-switch"},j.value),h$3(AppearanceSwitch)]):null}}),themeColorPicker="",ThemeColorPicker=defineComponent({name:"ThemeColorPicker",props:{themeColor:{type:Object,required:!0}},setup($){const b=(j="")=>{const U=document.documentElement.classList,Bn=Object.keys($.themeColor).map(Fn=>`theme-${Fn}`);if(!j){localStorage.removeItem("theme"),U.remove(...Bn);return}U.remove(...Bn.filter(Fn=>Fn!==`theme-${j}`)),U.add(`theme-${j}`),localStorage.setItem("theme",j)};return onMounted(()=>{const j=localStorage.getItem("theme");j&&b(j)}),()=>h$3("ul",{id:"theme-color-picker"},[h$3("li",h$3("span",{class:"theme-color",onClick:()=>b()})),...Object.entries($.themeColor).map(([j,U])=>h$3("li",h$3("span",{style:{background:U},onClick:()=>b(j)})))])}}),ThemeColor=defineComponent({name:"ThemeColor",setup(){const $=useThemeData(),b=useThemeLocaleData(),j=computed(()=>b.value.outlookLocales.themeColor),U=computed(()=>{const{themeColor:Bn}=$.value;return Bn===!1?null:Bn});return()=>U.value?h$3("div",{class:"theme-color-wrapper"},[h$3("label",{class:"theme-color-title",for:"theme-color-picker"},j.value),h$3(ThemeColorPicker,{themeColor:U.value})]):null}}),toggleFullScreenButton="",ToggleFullScreenButton=defineComponent({name:"ToggleFullScreenButton",setup(){const $=useThemeLocaleData(),{isSupported:b,isFullscreen:j,toggle:U}=useFullscreen(),Bn=computed(()=>$.value.outlookLocales.fullscreen);return()=>b?h$3("div",{class:"fullscreen-wrapper"},[h$3("label",{class:"full-screen-title",for:"full-screen-switch"},Bn.value),h$3("button",{class:"full-screen",id:"full-screen-switch",ariaPressed:j.value,onClick:()=>U()},j.value?h$3(CancelFullScreenIcon):h$3(EnterFullScreenIcon))]):null}}),OutlookSettings=defineComponent({name:"OutlookSettings",setup(){const $=useThemeData(),b=usePure(),j=computed(()=>!b.value&&Boolean($.value.themeColor)),U=computed(()=>!b.value&&$.value.fullscreen);return()=>h$3(ClientOnly,()=>[j.value?h$3(ThemeColor):null,h$3(AppearanceMode),U.value?h$3(ToggleFullScreenButton):null])}}),navScreen="",NavScreen=defineComponent({name:"NavScreen",props:{show:Boolean},emits:{close:()=>!0},setup($,{emit:b,slots:j}){const U=useRoute(),{isMobile:Bn}=useWindowSize(),Fn=ref();return onMounted(()=>{watch(Bn,qn=>{!qn&&$.show&&(clearAllBodyScrollLocks(),b("close"))}),watch(()=>U.path,()=>{clearAllBodyScrollLocks(),b("close")})}),onBeforeUnmount(()=>{clearAllBodyScrollLocks()}),()=>h$3(Transition,{name:"fade",onEnter:()=>disableBodyScroll(Fn.value,{reserveScrollBarGap:!0}),onAfterLeave:()=>clearAllBodyScrollLocks()},()=>{var qn,Wn;return $.show?h$3("div",{id:"nav-screen",ref:Fn},h$3("div",{class:"container"},[(qn=j.before)==null?void 0:qn.call(j),h$3(NavScreenLinks),h$3("div",{class:"outlook-wrapper"},h$3(OutlookSettings)),(Wn=j.after)==null?void 0:Wn.call(j)])):null})}}),outlookButton="",OutlookButton=defineComponent({name:"OutlookButton",setup(){const{isSupported:$}=useFullscreen(),b=useThemeData(),j=usePure(),U=useRoute(),{canToggle:Bn}=useDarkmode(),Fn=ref(!1),qn=computed(()=>!j.value&&Boolean(b.value.themeColor)),Wn=computed(()=>!j.value&&b.value.fullscreen&&$);return watch(()=>U.path,()=>{Fn.value=!1}),()=>Bn.value||Wn.value||qn.value?h$3("div",{class:"nav-item hide-in-mobile"},Bn.value&&!Wn.value&&!qn.value?h$3(AppearanceSwitch):Wn.value&&!Bn.value&&!qn.value?h$3(ToggleFullScreenButton):h$3("button",{class:["outlook-button",{open:Fn.value}],tabindex:"-1",ariaHidden:!0},[h$3(OutlookIcon),h$3("div",{class:"outlook-dropdown"},h$3(OutlookSettings))])):null}}),toggleNavbarButton="",ToggleNavbarButton=({active:$=!1},{emit:b})=>h$3("button",{class:["toggle-navbar-button",{"is-active":$}],"aria-label":"Toggle Navbar","aria-expanded":$,"aria-controls":"nav-screen",onClick:()=>b("toggle")},h$3("span",{class:"button-container"},[h$3("span",{class:"button-top"}),h$3("span",{class:"button-middle"}),h$3("span",{class:"button-bottom"})]));ToggleNavbarButton.displayName="ToggleNavbarButton";const toggleSidebarButton="",ToggleSidebarButton=($,{emit:b})=>h$3("button",{class:"toggle-sidebar-button",title:"Toggle Sidebar",onClick:()=>b("toggle")},h$3("span",{class:"icon"}));ToggleSidebarButton.displayName="ToggleSidebarButton";ToggleSidebarButton.emits=["toggle"];const repoLink="",RepoLink=defineComponent({name:"RepoLink",components:{BitbucketIcon:gt$1,GiteeIcon:$t$1,GitHubIcon:vt$1,GitlabIcon:pt$1,SourceIcon:yt$1},setup(){const $=useNavbarRepo();return()=>$.value?h$3("div",{class:"nav-item"},h$3("a",{class:"repo-link",href:$.value.link,target:"_blank",rel:"noopener noreferrer","aria-label":$.value.label},h$3(resolveComponent(`${$.value.type}Icon`),{style:{width:"1.25rem",height:"1.25rem",verticalAlign:"middle"}}))):null}}),navbar="",Navbar=defineComponent({name:"NavBar",emits:{toggleSidebar:()=>!0},setup($,{emit:b,slots:j}){const U=useThemeLocaleData(),{isMobile:Bn}=useWindowSize(),Fn=ref(!1),qn=computed(()=>{const{navbarAutoHide:Gn="mobile"}=U.value;return Gn!=="none"&&(Gn==="always"||Bn.value)}),Wn=computed(()=>U.value.navbarLayout||{left:["Brand"],center:["Links"],right:["Language","Repo","Outlook","Search"]});return()=>{var Yn,Qn,Zn,Jn,Kn,ea;const Gn={Brand:h$3(NavbarBrand),Language:h$3(LanguageDropdown),Links:h$3(NavbarLinks),Repo:h$3(RepoLink),Outlook:h$3(OutlookButton),Search:_t$1("Docsearch")?h$3(resolveComponent("Docsearch")):_t$1("SearchBox")?h$3(resolveComponent("SearchBox")):_t$1("SearchBox")?h$3(resolveComponent("SearchBox")):null};return[h$3("header",{class:["navbar",{"auto-hide":qn.value,"hide-icon":U.value.navbarIcon===!1}],id:"navbar"},[h$3("div",{class:"navbar-left"},[h$3(ToggleSidebarButton,{onToggle:()=>{Fn.value&&(Fn.value=!1),b("toggleSidebar")}}),(Yn=j.leftStart)==null?void 0:Yn.call(j),...Wn.value.left.map(Xn=>Gn[Xn]),(Qn=j.leftEnd)==null?void 0:Qn.call(j)]),h$3("div",{class:"navbar-center"},[(Zn=j.centerStart)==null?void 0:Zn.call(j),...Wn.value.center.map(Xn=>Gn[Xn]),(Jn=j.centerEnd)==null?void 0:Jn.call(j)]),h$3("div",{class:"navbar-right"},[(Kn=j.rightStart)==null?void 0:Kn.call(j),...Wn.value.right.map(Xn=>Gn[Xn]),(ea=j.rightEnd)==null?void 0:ea.call(j),h$3(ToggleNavbarButton,{active:Fn.value,onToggle:()=>{Fn.value=!Fn.value}})])]),h$3(NavScreen,{show:Fn.value,onClose:()=>{Fn.value=!1}},{before:()=>{var Xn;return(Xn=j.screenTop)==null?void 0:Xn.call(j)},after:()=>{var Xn;return(Xn=j.screenBottom)==null?void 0:Xn.call(j)}})]}}}),isActiveSidebarItem=($,b,j=!1)=>"activeMatch"in b?new RegExp(b.activeMatch).test($.path):Rt$1($,b.link)?!0:b.children&&!j?b.children.some(U=>isActiveSidebarItem($,U)):!1,isMatchedSidebarItem=($,b)=>b.type==="group"?b.children.some(j=>j.type==="group"?isMatchedSidebarItem($,j):j.type==="page"&&isActiveSidebarItem($,j,!0))||"prefix"in b&&Rt$1($,b.prefix):!1,renderItem=($,b)=>$.link?h$3(AutoLink,{...b,config:$}):h$3("p",b,[h$3(Icon,{icon:$.icon}),$.text]),renderChildren$1=$=>{const b=useRoute();return $?h$3("ul",{class:"sidebar-sub-headers"},$.map(j=>{const U=isActiveSidebarItem(b,j,!0);return h$3("li",{class:"sidebar-sub-header"},[renderItem(j,{class:["sidebar-link","heading",{active:U}]}),renderChildren$1(j.children)])})):null},sidebarData={"/features/":["README.md","develop-plan.md","daily-notes.md","character-data.md","achievements.md","weapon-wiki.md","wish-export.md","mhy-account-switch.md","hutao-API.md","character-wiki.md","hutao-settings.md","game-launcher.md"],"/FAQ/":["HttpRequestException.md","why.md","get-stoken-cookie-from-the-third-party.md","artifact-rating-rules.md","how-to.md","Gacha-system-and-export-principal.md","mihoyo-risk-tip.md"],"/statements/":["bug-report.md","tos.md","privacy-notice.md"]},resolvePrefix=($="",b="")=>ue$1(b)?b:`${ensureEndingSlash($)}${b}`,headerToSidebarItem=($,b)=>{const j=usePageData();return{type:"heading",text:$.title,link:`${j.value.path}#${$.slug}`,children:headersToSidebarItemChildren($.children,b)}},headersToSidebarItemChildren=($,b)=>b>0?$.map(j=>headerToSidebarItem(j,b-1)):[],resolveHeadingSidebarItems=$=>{const b=usePageData();return headersToSidebarItemChildren(b.value.headers,$)},resolveArraySidebarItems=($,b,j="")=>{const U=usePageData(),Bn=useRoute(),Fn=(qn,Wn=j)=>{var Yn;const Gn=isString$1(qn)?useAutoLink(resolvePrefix(Wn,qn)):qn.link?{...qn,...isLinkExternal(qn.link)?{}:{link:useAutoLink(resolvePrefix(Wn,qn.link)).link}}:qn;if("children"in Gn){const Qn=resolvePrefix(Wn,Gn.prefix),Zn=Gn.children==="structure"?sidebarData[Qn]:Gn.children;return{type:"group",...Gn,prefix:Qn,children:Zn.map(Jn=>Fn(Jn,Qn))}}return{type:"page",...Gn,children:Gn.link===Bn.path?headersToSidebarItemChildren(((Yn=U.value.headers[0])==null?void 0:Yn.level)===1?U.value.headers[0].children:U.value.headers,b):[]}};return $.map(qn=>Fn(qn))},resolveMultiSidebarItems=($,b)=>{const j=useRoute(),U=Object.keys($).sort((Bn,Fn)=>Fn.length-Bn.length);for(const Bn of U)if(decodeURI(j.path).startsWith(Bn)){const Fn=$[Bn];return Fn?resolveArraySidebarItems(Fn==="structure"?sidebarData[Bn]:Fn,b,Bn):[]}return console.warn(`${j.path} is missing sidebar config.`),[]},resolveSidebarItems=()=>{const $=useRouteLocale(),b=usePageFrontmatter(),j=useThemeLocaleData(),U=b.value.home?!1:b.value.sidebar??j.value.sidebar??"structure",Bn=b.value.headerDepth??j.value.headerDepth??2;return U===!1?[]:U==="heading"?resolveHeadingSidebarItems(Bn):U==="structure"?resolveArraySidebarItems(sidebarData[$.value],Bn,$.value):isArray(U)?resolveArraySidebarItems(U,Bn):isPlainObject(U)?resolveMultiSidebarItems(U,Bn):[]},sidebarItemsSymbol=Symbol.for("sidebarItems"),setupSidebarItems=()=>{const $=computed(()=>resolveSidebarItems());provide(sidebarItemsSymbol,$)},useSidebarItems=()=>{const $=inject(sidebarItemsSymbol);if(!$)throw new Error("useSidebarItems() is called without provider.");return $},sidebarChild="",SidebarChild=defineComponent({name:"SidebarChild",props:{config:{type:Object,required:!0}},setup($){const b=useRoute();return()=>[renderItem($.config,{class:["sidebar-link",`sidebar-${$.config.type}`,{active:isActiveSidebarItem(b,$.config,!0)}],exact:!0}),renderChildren$1($.config.children)]}}),sidebarGroup="",SidebarGroup=defineComponent({name:"SidebarGroup",props:{config:{type:Object,required:!0},open:{type:Boolean,required:!0}},emits:{toggle:()=>!0},setup($,{emit:b}){const j=useRoute(),U=computed(()=>isActiveSidebarItem(j,$.config)),Bn=computed(()=>isActiveSidebarItem(j,$.config,!0));return()=>{const{collapsible:Fn,children:qn=[],icon:Wn,prefix:Gn,link:Yn,text:Qn}=$.config;return h$3("section",{class:"sidebar-group"},[h$3(Fn?"button":"p",{class:["sidebar-heading",{clickable:Fn||Yn,exact:Bn.value,active:U.value}],...Fn?{onClick:()=>b("toggle"),onKeydown:Zn=>{Zn.key==="Enter"&&b("toggle")}}:{}},[h$3(Icon,{icon:Wn}),Yn?h$3(RouterLink,{to:Yn,class:"title"},()=>Qn):h$3("span",{class:"title"},Qn),Fn?h$3("span",{class:["arrow",$.open?"down":"right"]}):null]),$.open||!Fn?h$3(SidebarLinks,{key:Gn,config:qn}):null])}}}),sidebarLinks="",SidebarLinks=defineComponent({name:"SidebarLinks",props:{config:{type:Array,required:!0}},setup($){const b=useRoute(),j=ref(-1),U=Bn=>{j.value=Bn===j.value?-1:Bn};return watch(()=>b.path,()=>{const Bn=$.config.findIndex(Fn=>isMatchedSidebarItem(b,Fn));j.value=Bn},{immediate:!0,flush:"post"}),()=>h$3("ul",{class:"sidebar-links"},$.config.map((Bn,Fn)=>h$3("li",Bn.type==="group"?h$3(SidebarGroup,{config:Bn,open:Fn===j.value,onToggle:()=>U(Fn)}):h$3(SidebarChild,{config:Bn}))))}}),sidebar="",Sidebar=defineComponent({name:"SideBar",setup($,{slots:b}){const j=useRoute(),U=useThemeLocaleData(),Bn=useSidebarItems(),Fn=ref();return onMounted(()=>{watch(()=>j.hash,qn=>{const Wn=document.querySelector(`.sidebar a.sidebar-link[href="${j.path}${qn}"]`);if(!Wn)return;const{top:Gn,height:Yn}=Fn.value.getBoundingClientRect(),{top:Qn,height:Zn}=Wn.getBoundingClientRect();Qn<Gn?Wn.scrollIntoView(!0):Qn+Zn>Gn+Yn&&Wn.scrollIntoView(!1)})}),()=>{var qn,Wn,Gn;return h$3("aside",{class:["sidebar",{"hide-icon":U.value.sidebarIcon===!1}],id:"sidebar",ref:Fn},[(qn=b.top)==null?void 0:qn.call(b),((Wn=b.default)==null?void 0:Wn.call(b))||h$3(SidebarLinks,{config:Bn.value}),(Gn=b.bottom)==null?void 0:Gn.call(b)])}}}),common="",CommonWrapper=defineComponent({name:"CommonWrapper",props:{noNavbar:Boolean,noSidebar:Boolean},setup($,{slots:b}){const j=useRouter(),U=usePageData(),Bn=usePageFrontmatter(),Fn=useThemeLocaleData(),{isMobile:qn,isWide:Wn}=useWindowSize(),Gn=ref(!1),Yn=computed(()=>$.noNavbar||Bn.value.navbar===!1||Fn.value.navbar===!1?!1:Boolean(U.value.title||Fn.value.logo||Fn.value.repo||Fn.value.navbar)),Qn=useSidebarItems(),Zn=computed(()=>$.noSidebar?!1:Bn.value.sidebar!==!1&&Qn.value.length!==0&&!Bn.value.home),Jn=ref(!1),Kn=ref(!1),ea=ia=>{Jn.value=typeof ia=="boolean"?ia:!Jn.value},Xn=ia=>{Kn.value=typeof ia=="boolean"?ia:!Kn.value},ta={x:0,y:0},na=ia=>{ta.x=ia.changedTouches[0].clientX,ta.y=ia.changedTouches[0].clientY},ra=ia=>{const la=ia.changedTouches[0].clientX-ta.x,ba=ia.changedTouches[0].clientY-ta.y;Math.abs(la)>Math.abs(ba)*1.5&&Math.abs(la)>40&&(la>0&&ta.x<=80?ea(!0):ea(!1))},ca=computed(()=>Bn.value.home?!1:Bn.value.toc||Fn.value.toc!==!1&&Bn.value.toc!==!1),pa=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;let va,ga=0;return useEventListener("scroll",useThrottleFn(()=>{const ia=pa();ga<ia&&ia>58?Jn.value||(Gn.value=!0):Gn.value=!1,ga=ia},300,!0)),watch(qn,ia=>{ia||ea(!1)}),onMounted(()=>{va=j.afterEach(()=>{ea(!1)})}),onBeforeUnmount(()=>{va()}),()=>h$3(_t$1("GlobalEncrypt")?resolveComponent("GlobalEncrypt"):Ct$1,()=>{var ia;return h$3("div",{class:["theme-container",{"no-navbar":!Yn.value,"no-sidebar":!Zn.value&&!(b.sidebar||b.sidebarTop||b.sidebarBottom),"has-toc":ca.value,"hide-navbar":Gn.value,"sidebar-collapsed":!qn.value&&!Wn.value&&Kn.value,"sidebar-open":qn.value&&Jn.value},Bn.value.containerClass||""],onTouchStart:na,onTouchEnd:ra},[Yn.value?h$3(Navbar,{onToggleSidebar:()=>ea()},{leftStart:()=>{var la;return(la=b.navbarLeftStart)==null?void 0:la.call(b)},leftEnd:()=>{var la;return(la=b.navbarLeftEnd)==null?void 0:la.call(b)},centerStart:()=>{var la;return(la=b.navbarCenterStart)==null?void 0:la.call(b)},centerEnd:()=>{var la;return(la=b.navbarCenterEnd)==null?void 0:la.call(b)},rightStart:()=>{var la;return(la=b.navbarRightStart)==null?void 0:la.call(b)},rightEnd:()=>{var la;return(la=b.navbarRightEnd)==null?void 0:la.call(b)},screenTop:()=>{var la;return(la=b.navScreenTop)==null?void 0:la.call(b)},screenBottom:()=>{var la;return(la=b.navScreenBottom)==null?void 0:la.call(b)}}):null,h$3(Transition,{name:"fade"},()=>Jn.value?h$3("div",{class:"sidebar-mask",onClick:()=>ea(!1)}):null),h$3(Transition,{name:"fade"},()=>qn.value?null:h$3("div",{class:"toggle-sidebar-wrapper",onClick:()=>Xn()},h$3("span",{class:["arrow",Kn.value?"right":"left"]}))),h$3(Sidebar,{},{...b.sidebar?{default:()=>{var la;return(la=b.sidebar)==null?void 0:la.call(b)}}:{},top:()=>{var la;return(la=b.sidebarTop)==null?void 0:la.call(b)},bottom:()=>{var la;return(la=b.sidebarBottom)==null?void 0:la.call(b)}}),(ia=b.default)==null?void 0:ia.call(b),h$3(PageFooter)])})}}),DropTransition=defineComponent({name:"DropTransition",props:{type:{type:String,default:"single"},delay:{type:Number,default:0},duration:{type:Number,default:.25},appear:Boolean},setup($,{slots:b}){const j=Bn=>{Bn.style.transition=`transform ${$.duration}s ease-in-out ${$.delay}s, opacity ${$.duration}s ease-in-out ${$.delay}s`,Bn.style.transform="translateY(-20px)",Bn.style.opacity="0"},U=Bn=>{Bn.style.transform="translateY(0)",Bn.style.opacity="1"};return()=>h$3($.type==="single"?Transition:TransitionGroup,{name:"drop",appear:$.appear,onAppear:j,onAfterAppear:U,onEnter:j,onAfterEnter:U,onBeforeLeave:j},()=>{var Bn;return(Bn=b.default)==null?void 0:Bn.call(b)})}}),featurePanel="",FeaturePanel=defineComponent({name:"FeaturePanel",props:{items:{type:Object,default:()=>[]},header:{type:String,default:""}},setup($){return()=>h$3("div",{class:"feature-panel"},[$.header?h$3("h2",{class:"feature-header"},$.header):null,$.items.length?h$3("div",{class:"feature-wrapper"},$.items.map(b=>{const j=[h$3("h3",[h$3(Icon,{icon:b.icon}),h$3("span",{innerHTML:b.title})]),h$3("p",{innerHTML:b.details})];return b.link?isLinkExternal(b.link)?h$3("a",{class:"feature-item link",href:b.link,role:"navigation","aria-label":b.title,target:"_blank"},j):h$3(RouterLink,{class:"feature-item link",to:b.link,role:"navigation","aria-label":b.title},()=>j):h$3("div",{class:"feature-item"},j)})):null])}}),heroInfo="",HeroInfo=defineComponent({name:"HeroInfo",setup($,{slots:b}){const j=usePageFrontmatter(),U=useSiteLocaleData(),Bn=computed(()=>j.value.heroText===!1?!1:j.value.heroText||U.value.title||"Hello"),Fn=computed(()=>j.value.tagline===!1?!1:j.value.tagline||U.value.description||"Welcome to your VuePress site"),qn=computed(()=>j.value.heroImage?withBase(j.value.heroImage):null),Wn=computed(()=>j.value.heroImageDark?withBase(j.value.heroImageDark):null),Gn=computed(()=>j.value.heroAlt||Bn.value||"hero"),Yn=computed(()=>j.value.actions??[]);return()=>{var Qn,Zn;return h$3("header",{class:"hero-info-wrapper"},[((Qn=b.heroImage)==null?void 0:Qn.call(b))||h$3(DropTransition,{appear:!0,type:"group"},()=>[qn.value?h$3("img",{key:"light",class:{light:Wn.value},src:qn.value,alt:Gn.value}):null,Wn.value?h$3("img",{key:"dark",class:"dark",src:Wn.value,alt:Gn.value}):null]),((Zn=b.heroInfo)==null?void 0:Zn.call(b))||h$3("div",{class:"hero-info"},[Bn.value?h$3(DropTransition,{appear:!0,delay:.04},()=>h$3("h1",{id:"main-title"},Bn.value)):null,Fn.value?h$3(DropTransition,{appear:!0,delay:.08},()=>h$3("p",{class:"description"},Fn.value)):null,Yn.value.length?h$3(DropTransition,{appear:!0,delay:.12},()=>h$3("p",{class:"actions"},Yn.value.map(Jn=>h$3(AutoLink,{class:["action-button",Jn.type||"default"],config:Jn,noExternalLinkIcon:!0})))):null])])}}}),MarkdownContent=({custom:$})=>h$3(Content,{class:["theme-hope-content",{custom:$}]});MarkdownContent.displayName="MarkdownContent";MarkdownContent.props={custom:Boolean};const homePage="",HomePage=defineComponent({name:"HopePage",setup($,{slots:b}){const j=usePure(),U=usePageFrontmatter(),Bn=computed(()=>{const{features:Fn}=U.value;return isArray(Fn)?Fn.some(qn=>!("items"in qn))?[{items:Fn}]:Fn:[]});return()=>{var Fn,qn,Wn;return h$3("main",{class:["home project",{pure:j.value}],id:"main-content","aria-labelledby":U.value.heroText===null?void 0:"main-title"},[(Fn=b.top)==null?void 0:Fn.call(b),h$3(HeroInfo),Bn.value.map(({header:Gn="",items:Yn},Qn)=>h$3(DropTransition,{appear:!0,delay:.16+Qn*.08},()=>h$3(FeaturePanel,{header:Gn,items:Yn}))),(qn=b.center)==null?void 0:qn.call(b),h$3(DropTransition,{appear:!0,delay:.16+Bn.value.length*.08},()=>h$3(MarkdownContent,{custom:!0})),(Wn=b.bottom)==null?void 0:Wn.call(b)])}}}),getAncestorLinks=($,b)=>{const j=$.path.replace(b,"/").split("/"),U=[];let Bn=removeEndingSlash(b);return j.forEach((Fn,qn)=>{qn!==j.length-1?(Bn+=`${Fn}/`,U.push(Bn)):Fn!==""&&(Bn+=Fn,U.push(Bn))}),U},breadcrumb="",BreadCrumb=defineComponent({name:"BreadCrumb",setup(){const $=useRouter(),b=useRoute(),j=useRouteLocale(),U=usePageFrontmatter(),Bn=useThemeLocaleData(),Fn=ref([]),qn=computed(()=>(U.value.breadcrumb||U.value.breadcrumb!==!1&&Bn.value.breadcrumb!==!1)&&Fn.value.length>1),Wn=computed(()=>U.value.breadcrumbIcon||U.value.breadcrumbIcon!==!1&&Bn.value.breadcrumbIcon!==!1),Gn=()=>{const Yn=$.getRoutes(),Qn=getAncestorLinks(b,j.value).map(Zn=>{const Jn=Yn.find(Kn=>Kn.path===Zn);if(Jn){const{meta:Kn,path:ea}=Dt$1($,Jn.path),Xn=Kn.s||Kn.title;if(Xn)return{title:Xn,icon:Kn.i,path:ea}}return null}).filter(Zn=>Zn!==null);Qn.length>1&&(Fn.value=Qn)};return onMounted(()=>{Gn(),watch(()=>b.path,Gn)}),()=>h$3("nav",{class:["breadcrumb",{disable:!qn.value}]},qn.value?h$3("ol",{vocab:"https://schema.org/",typeof:"BreadcrumbList"},Fn.value.map((Yn,Qn)=>h$3("li",{class:{"is-active":Fn.value.length-1===Qn},property:"itemListElement",typeof:"ListItem"},[h$3(RouterLink,{to:Yn.path,property:"item",typeof:"WebPage"},()=>[Wn.value?h$3(Icon,{icon:Yn.icon}):null,h$3("span",{property:"name"},Yn.title||"Unknown")]),h$3("meta",{property:"position",content:Qn+1})]))):[])}}),pageNav="",resolveFromFrontmatterConfig=$=>$===!1?!1:isString$1($)?useAutoLink($,!0):isPlainObject($)?$:null,resolveFromSidebarItems=($,b,j)=>{const U=$.findIndex(Bn=>Bn.link===b);if(U!==-1){const Bn=$[U+j];return Bn!=null&&Bn.link?Bn:null}for(const Bn of $)if(Bn.children){const Fn=resolveFromSidebarItems(Bn.children,b,j);if(Fn)return Fn}return null},PageNav=defineComponent({name:"PageNav",setup(){const $=useThemeLocaleData(),b=usePageFrontmatter(),j=useSidebarItems(),U=useRoute(),Bn=useNavigate(),Fn=computed(()=>{const Wn=resolveFromFrontmatterConfig(b.value.prev);return Wn===!1?null:Wn||($.value.prevLink===!1?null:resolveFromSidebarItems(j.value,U.path,-1))}),qn=computed(()=>{const Wn=resolveFromFrontmatterConfig(b.value.next);return Wn===!1?null:Wn||($.value.nextLink===!1?null:resolveFromSidebarItems(j.value,U.path,1))});return useEventListener("keydown",Wn=>{Wn.altKey&&(Wn.key==="ArrowRight"?qn.value&&(Bn(qn.value.link),Wn.preventDefault()):Wn.key==="ArrowLeft"&&Fn.value&&(Bn(Fn.value.link),Wn.preventDefault()))}),()=>Fn.value||qn.value?h$3("nav",{class:"page-nav"},[Fn.value?h$3(AutoLink,{class:"prev",config:Fn.value},()=>{var Wn,Gn;return[h$3("div",{class:"hint"},[h$3("span",{class:"arrow left"}),$.value.metaLocales.prev]),h$3("div",{class:"link"},[h$3(Icon,{icon:(Wn=Fn.value)==null?void 0:Wn.icon}),(Gn=Fn.value)==null?void 0:Gn.text])]}):null,qn.value?h$3(AutoLink,{class:"next",config:qn.value},()=>{var Wn,Gn;return[h$3("div",{class:"hint"},[$.value.metaLocales.next,h$3("span",{class:"arrow right"})]),h$3("div",{class:"link"},[(Wn=qn.value)==null?void 0:Wn.text,h$3(Icon,{icon:(Gn=qn.value)==null?void 0:Gn.icon})])]}):null]):null}}),AuthorIcon=()=>h$3(P$5,{name:"author"},()=>h$3("path",{d:"M649.6 633.6c86.4-48 147.2-144 147.2-249.6 0-160-128-288-288-288s-288 128-288 288c0 108.8 57.6 201.6 147.2 249.6-121.6 48-214.4 153.6-240 288-3.2 9.6 0 19.2 6.4 25.6 3.2 9.6 12.8 12.8 22.4 12.8h704c9.6 0 19.2-3.2 25.6-12.8 6.4-6.4 9.6-16 6.4-25.6-25.6-134.4-121.6-240-243.2-288z"}));AuthorIcon.displayName="AuthorIcon";const CalendarIcon=()=>h$3(P$5,{name:"calendar"},()=>h$3("path",{d:"M716.4 110.137c0-18.753-14.72-33.473-33.472-33.473-18.753 0-33.473 14.72-33.473 33.473v33.473h66.993v-33.473zm-334.87 0c0-18.753-14.72-33.473-33.473-33.473s-33.52 14.72-33.52 33.473v33.473h66.993v-33.473zm468.81 33.52H716.4v100.465c0 18.753-14.72 33.473-33.472 33.473a33.145 33.145 0 01-33.473-33.473V143.657H381.53v100.465c0 18.753-14.72 33.473-33.473 33.473a33.145 33.145 0 01-33.473-33.473V143.657H180.6A134.314 134.314 0 0046.66 277.595v535.756A134.314 134.314 0 00180.6 947.289h669.74a134.36 134.36 0 00133.94-133.938V277.595a134.314 134.314 0 00-133.94-133.938zm33.473 267.877H147.126a33.145 33.145 0 01-33.473-33.473c0-18.752 14.72-33.473 33.473-33.473h736.687c18.752 0 33.472 14.72 33.472 33.473a33.145 33.145 0 01-33.472 33.473z"}));CalendarIcon.displayName="CalendarIcon";const CategoryIcon=()=>h$3(P$5,{name:"category"},()=>h$3("path",{d:"M148.41 106.992h282.176c22.263 0 40.31 18.048 40.31 40.31V429.48c0 22.263-18.047 40.31-40.31 40.31H148.41c-22.263 0-40.311-18.047-40.311-40.31V147.302c0-22.263 18.048-40.31 40.311-40.31zM147.556 553.478H429.73c22.263 0 40.311 18.048 40.311 40.31v282.176c0 22.263-18.048 40.312-40.31 40.312H147.555c-22.263 0-40.311-18.049-40.311-40.312V593.79c0-22.263 18.048-40.311 40.31-40.311zM593.927 106.992h282.176c22.263 0 40.31 18.048 40.31 40.31V429.48c0 22.263-18.047 40.31-40.31 40.31H593.927c-22.263 0-40.311-18.047-40.311-40.31V147.302c0-22.263 18.048-40.31 40.31-40.31zM730.22 920.502H623.926c-40.925 0-74.22-33.388-74.22-74.425V623.992c0-41.038 33.387-74.424 74.425-74.424h222.085c41.038 0 74.424 33.226 74.424 74.067v114.233c0 10.244-8.304 18.548-18.547 18.548s-18.548-8.304-18.548-18.548V623.635c0-20.388-16.746-36.974-37.33-36.974H624.13c-20.585 0-37.331 16.747-37.331 37.33v222.086c0 20.585 16.654 37.331 37.126 37.331H730.22c10.243 0 18.547 8.304 18.547 18.547 0 10.244-8.304 18.547-18.547 18.547z"}));CategoryIcon.displayName="CategoryIcon";const EyeIcon=()=>h$3(P$5,{name:"eye"},()=>h$3("path",{d:"M992 512.096c0-5.76-.992-10.592-1.28-11.136-.192-2.88-1.152-8.064-2.08-10.816-.256-.672-.544-1.376-.832-2.08-.48-1.568-1.024-3.104-1.6-4.32C897.664 290.112 707.104 160 512 160c-195.072 0-385.632 130.016-473.76 322.592-1.056 2.112-1.792 4.096-2.272 5.856a55.512 55.512 0 00-.64 1.6c-1.76 5.088-1.792 8.64-1.632 7.744-.832 3.744-1.568 11.168-1.568 11.168-.224 2.272-.224 4.032.032 6.304 0 0 .736 6.464 1.088 7.808.128 1.824.576 4.512 1.12 6.976h-.032c.448 2.08 1.12 4.096 1.984 6.08.48 1.536.992 2.976 1.472 4.032C126.432 733.856 316.992 864 512 864c195.136 0 385.696-130.048 473.216-321.696 1.376-2.496 2.24-4.832 2.848-6.912.256-.608.48-1.184.672-1.728 1.536-4.48 1.856-8.32 1.728-8.32l-.032.032c.608-3.104 1.568-7.744 1.568-13.28zM512 672c-88.224 0-160-71.776-160-160s71.776-160 160-160 160 71.776 160 160-71.776 160-160 160z"}));EyeIcon.displayName="EyeIcon";const FireIcon=()=>h$3(P$5,{name:"fire"},()=>h$3("path",{d:"M726.4 201.6c-12.8-9.6-28.8-6.4-38.4 0-9.6 9.6-16 25.6-9.6 38.4 6.4 12.8 9.6 28.8 12.8 44.8C604.8 83.2 460.8 38.4 454.4 35.2c-9.6-3.2-22.4 0-28.8 6.4-9.6 6.4-12.8 19.2-9.6 28.8 12.8 86.4-25.6 188.8-115.2 310.4-6.4-25.6-16-51.2-32-80-9.6-9.6-22.4-16-35.2-12.8-16 3.2-25.6 12.8-25.6 28.8-3.2 48-25.6 92.8-51.2 140.8C134.4 499.2 112 544 102.4 592c-32 150.4 99.2 329.6 233.6 380.8 9.6 3.2 19.2 6.4 32 9.6-25.6-19.2-41.6-51.2-48-96C294.4 691.2 505.6 640 515.2 460.8c153.6 105.6 224 336 137.6 505.6 3.2 0 6.4-3.2 9.6-3.2 0 0 3.2 0 3.2-3.2 163.2-89.6 252.8-208 259.2-345.6 16-211.2-163.2-390.4-198.4-412.8z"}));FireIcon.displayName="FireIcon";const PrintIcon=()=>h$3(P$5,{name:"print"},()=>h$3("path",{d:"M819.2 364.8h-44.8V128c0-17.067-14.933-32-32-32H281.6c-17.067 0-32 14.933-32 32v236.8h-44.8C145.067 364.8 96 413.867 96 473.6v192c0 59.733 49.067 108.8 108.8 108.8h44.8V896c0 17.067 14.933 32 32 32h460.8c17.067 0 32-14.933 32-32V774.4h44.8c59.733 0 108.8-49.067 108.8-108.8v-192c0-59.733-49.067-108.8-108.8-108.8zM313.6 160h396.8v204.8H313.6V160zm396.8 704H313.6V620.8h396.8V864zM864 665.6c0 25.6-19.2 44.8-44.8 44.8h-44.8V588.8c0-17.067-14.933-32-32-32H281.6c-17.067 0-32 14.933-32 32v121.6h-44.8c-25.6 0-44.8-19.2-44.8-44.8v-192c0-25.6 19.2-44.8 44.8-44.8h614.4c25.6 0 44.8 19.2 44.8 44.8v192z"}));PrintIcon.displayName="PrintIcon";const TagIcon=()=>h$3(P$5,{name:"tag"},()=>h$3("path",{d:"M939.902 458.563L910.17 144.567c-1.507-16.272-14.465-29.13-30.737-30.737L565.438 84.098h-.402c-3.215 0-5.726 1.005-7.634 2.913l-470.39 470.39a10.004 10.004 0 000 14.164l365.423 365.424c1.909 1.908 4.42 2.913 7.132 2.913s5.223-1.005 7.132-2.913l470.39-470.39c2.01-2.11 3.014-5.023 2.813-8.036zm-240.067-72.121c-35.458 0-64.286-28.828-64.286-64.286s28.828-64.285 64.286-64.285 64.286 28.828 64.286 64.285-28.829 64.286-64.286 64.286z"}));TagIcon.displayName="TagIcon";const TimerIcon=()=>h$3(P$5,{name:"timer"},()=>h$3("path",{d:"M799.387 122.15c4.402-2.978 7.38-7.897 7.38-13.463v-1.165c0-8.933-7.38-16.312-16.312-16.312H256.33c-8.933 0-16.311 7.38-16.311 16.312v1.165c0 5.825 2.977 10.874 7.637 13.592 4.143 194.44 97.22 354.963 220.201 392.763-122.204 37.542-214.893 196.511-220.2 389.397-4.661 5.049-7.638 11.651-7.638 19.03v5.825h566.49v-5.825c0-7.379-2.849-13.981-7.509-18.9-5.049-193.016-97.867-351.985-220.2-389.527 123.24-37.67 216.446-198.453 220.588-392.892zM531.16 450.445v352.632c117.674 1.553 211.787 40.778 211.787 88.676H304.097c0-48.286 95.149-87.382 213.728-88.676V450.445c-93.077-3.107-167.901-81.297-167.901-177.093 0-8.803 6.99-15.793 15.793-15.793 8.803 0 15.794 6.99 15.794 15.793 0 80.261 63.69 145.635 142.01 145.635s142.011-65.374 142.011-145.635c0-8.803 6.99-15.793 15.794-15.793s15.793 6.99 15.793 15.793c0 95.019-73.789 172.82-165.96 177.093z"}));TimerIcon.displayName="TimerIcon";const WordIcon=()=>h$3(P$5,{name:"word"},()=>[h$3("path",{d:"M518.217 432.64V73.143A73.143 73.143 0 01603.43 1.097a512 512 0 01419.474 419.474 73.143 73.143 0 01-72.046 85.212H591.36a73.143 73.143 0 01-73.143-73.143z"}),h$3("path",{d:"M493.714 566.857h340.297a73.143 73.143 0 0173.143 85.577A457.143 457.143 0 11371.566 117.76a73.143 73.143 0 0185.577 73.143v339.383a36.571 36.571 0 0036.571 36.571z"})]);WordIcon.displayName="WordIcon";const useMetaLocale=()=>{const $=useThemeLocaleData();return computed(()=>$.value.metaLocales)},readingTimeLocales={"/en/":{word:"About $word words",less1Minute:"Less than 1 minute",time:"About $time min"},"/":{word:"约 $word 字",less1Minute:"小于 1 分钟",time:"大约 $time 分钟"}},editLinkPatterns={GitHub:":repo/edit/:branch/:path",GitLab:":repo/-/edit/:branch/:path",Gitee:":repo/edit/:branch/:path",Bitbucket:":repo/src/:branch/:path?mode=edit&spa=0&at=:branch&fileviewer=file-view-default"},resolveEditLink=({docsRepo:$,docsBranch:b,docsDir:j,filePathRelative:U,editLinkPattern:Bn})=>{if(!U)return null;const Fn=Jt$1($);let qn;return Bn?qn=Bn:Fn!==null&&(qn=editLinkPatterns[Fn]),qn?qn.replace(/:repo/,isLinkHttp($)?$:`https://github.com/${$}`).replace(/:branch/,b).replace(/:path/,removeLeadingSlash(`${removeEndingSlash(j)}/${U}`)):null},useEditLink=()=>{const $=useThemeLocaleData(),b=usePageData(),j=usePageFrontmatter();return computed(()=>{const{repo:U,docsRepo:Bn=U,docsBranch:Fn="main",docsDir:qn="",editLink:Wn,editLinkPattern:Gn=""}=$.value;if(!(j.value.editLink??Wn??!0)||!Bn)return null;const Qn=resolveEditLink({docsRepo:Bn,docsBranch:Fn,docsDir:qn,editLinkPattern:Gn,filePathRelative:b.value.filePathRelative});return Qn?{text:$.value.metaLocales.editLink,link:Qn}:null})},useUpdateTime=()=>{const $=useSiteLocaleData(),b=useThemeLocaleData(),j=usePageData(),U=usePageFrontmatter();return computed(()=>{var qn,Wn;return!(U.value.lastUpdated??b.value.lastUpdated??!0)||!((qn=j.value.git)!=null&&qn.updatedTime)?null:new Date((Wn=j.value.git)==null?void 0:Wn.updatedTime).toLocaleString($.value.lang)})},useContributors=()=>{const $=useThemeLocaleData(),b=usePageData(),j=usePageFrontmatter();return computed(()=>{var Bn;return j.value.contributors??$.value.contributors??!0?((Bn=b.value.git)==null?void 0:Bn.contributors)??null:null})},authorInfo="",AuthorInfo=defineComponent({name:"AuthorInfo",inheritAttrs:!1,props:{author:{type:Array,required:!0},pure:Boolean},setup($){const b=useMetaLocale();return()=>$.author.length?h$3("span",{class:"page-author-info","aria-label":`${b.value.author}${$.pure?"":"🖊"}`,...$.pure?{}:{"data-balloon-pos":"down"}},[h$3(AuthorIcon),h$3("span",$.author.map(j=>j.url?h$3("a",{class:"page-author-item",href:j.url,target:"_blank",rel:"noopener noreferrer"},j.name):h$3("span",{class:"page-author-item"},j.name))),h$3("span",{property:"author",content:$.author.map(j=>j.name).join(", ")})]):null}}),categoryInfo="",CategoryInfo=defineComponent({name:"CategoryInfo",inheritAttrs:!1,props:{category:{type:Array,required:!0},pure:Boolean},setup($){const b=useRouter(),j=useRoute(),U=useMetaLocale(),Bn=(Fn,qn="")=>{qn&&j.path!==qn&&(Fn.preventDefault(),b.push(qn))};return()=>$.category.length?h$3("span",{class:"page-category-info","aria-label":`${U.value.category}${$.pure?"":"🌈"}`,...$.pure?{}:{"data-balloon-pos":"down"}},[h$3(CategoryIcon),...$.category.map(({name:Fn,path:qn})=>h$3("span",{class:["page-category-item",{[`category${Gt$1(Fn,9)}`]:!$.pure,clickable:qn}],role:qn?"navigation":"",onClick:Wn=>Bn(Wn,qn)},Fn)),h$3("meta",{property:"articleSection",content:$.category.map(({name:Fn})=>Fn).join(",")})]):null}}),DateInfo=defineComponent({name:"DateInfo",inheritAttrs:!1,props:{date:{type:Object,default:null},localizedDate:{type:String,default:""},pure:Boolean},setup($){const b=usePageLang(),j=useMetaLocale();return()=>{var U,Bn;return $.date?h$3("span",{class:"page-date-info","aria-label":`${j.value.date}${$.pure?"":"📅"}`,...$.pure?{}:{"data-balloon-pos":"down"}},[h$3(CalendarIcon),h$3("span",h$3(ClientOnly,()=>{var Fn;return $.localizedDate||((Fn=$.date.value)==null?void 0:Fn.toLocaleDateString(b.value))})),h$3("meta",{property:"datePublished",content:((Bn=(U=$.date)==null?void 0:U.value)==null?void 0:Bn.toISOString())||""})]):null}}}),PageViewInfo=defineComponent({name:"PageViewInfo",inheritAttrs:!1,props:{pageview:{type:[Boolean,String],default:!1},pure:Boolean},setup($){const b=useRoute(),j=useMetaLocale(),U=ref(0),Bn=()=>{const Fn=document.querySelector(".waline-pageview-count");if(Fn){const qn=Fn.textContent;qn&&!isNaN(Number(qn))?U.value=Number(qn):setTimeout(Bn,500)}};return onMounted(()=>{setTimeout(Bn,1500)}),watch(()=>[b.path,b.query],()=>{setTimeout(Bn,500)}),()=>$.pageview?h$3("span",{class:"page-pageview-info","aria-label":`${j.value.views}${$.pure?"":"🔢"}`,...$.pure?{}:{"data-balloon-pos":"down"}},[h$3(U.value<1e3?EyeIcon:FireIcon),h$3("span",{class:"waline-pageview-count","data-path":isString$1($.pageview)?$.pageview:withBase(b.path)},"...")]):null}}),ReadingTimeInfo=defineComponent({name:"ReadingTimeInfo",inheritAttrs:!1,props:{readingTime:{type:Object,default:()=>null},pure:Boolean},setup($){const b=useMetaLocale(),j=kt$1(readingTimeLocales),U=computed(()=>{if(!$.readingTime)return null;const{minutes:Bn}=$.readingTime;return Bn<1?{text:j.value.less1Minute,time:"PT1M"}:{text:j.value.time.replace("$time",Math.round(Bn).toString()),time:`PT${Math.round(Bn)}M`}});return()=>U.value?h$3("span",{class:"page-reading-time-info","aria-label":`${b.value.readingTime}${$.pure?"":"⌛"}`,...$.pure?{}:{"data-balloon-pos":"down"}},[h$3(TimerIcon),h$3("span",U.value.text),h$3("meta",{property:"timeRequired",content:U.value.time})]):null}}),tagInfo="",TagInfo=defineComponent({name:"TagInfo",inheritAttrs:!1,props:{tag:{type:Array,default:()=>[]},pure:Boolean},setup($){const b=useRouter(),j=useRoute(),U=useMetaLocale(),Bn=(Fn,qn="")=>{qn&&j.path!==qn&&(Fn.preventDefault(),b.push(qn))};return()=>$.tag.length?h$3("span",{class:"page-tag-info","aria-label":`${U.value.tag}${$.pure?"":"🏷"}`,...$.pure?{}:{"data-balloon-pos":"down"}},[h$3(TagIcon),...$.tag.map(({name:Fn,path:qn})=>h$3("span",{class:["page-tag-item",{[`tag${Gt$1(Fn,9)}`]:!$.pure,clickable:qn}],role:qn?"navigation":"",onClick:Wn=>Bn(Wn,qn)},Fn)),h$3("meta",{property:"keywords",content:$.tag.map(({name:Fn})=>Fn).join(",")})]):null}}),originalInfo="",OriginalInfo=defineComponent({name:"OriginalInfo",inheritAttrs:!1,props:{isOriginal:Boolean},setup($){const b=useMetaLocale();return()=>$.isOriginal?h$3("span",{class:"page-original-info"},b.value.origin):null}}),WordInfo=defineComponent({name:"ReadTimeInfo",inheritAttrs:!1,props:{readingTime:{type:Object,default:()=>null},pure:Boolean},setup($){const b=useMetaLocale(),j=kt$1(readingTimeLocales),U=computed(()=>{var Fn;return(Fn=$.readingTime)==null?void 0:Fn.words.toString()}),Bn=computed(()=>j.value.word.replace("$word",U.value||""));return()=>U.value?h$3("span",{class:"page-word-info","aria-label":`${b.value.words}${$.pure?"":"🔠"}`,...$.pure?{}:{"data-balloon-pos":"down"}},[h$3(WordIcon),h$3("span",Bn.value),h$3("meta",{property:"wordCount",content:U.value})]):null}}),pageInfo="",PageInfo=defineComponent({name:"PageInfo",components:{AuthorInfo,CategoryInfo,DateInfo,OriginalInfo,PageViewInfo,ReadingTimeInfo,TagInfo,WordInfo},props:{items:{type:[Array,Boolean],default:()=>["Author","Original","Date","PageView","ReadingTime","Category","Tag"]},info:{type:Object,required:!0}},setup($){const b=usePure();return()=>$.items?h$3("div",{class:"page-info"},$.items.map(j=>h$3(resolveComponent(`${j}Info`),{...$.info,pure:b.value}))):null}}),pageTitle="",PageTitle=defineComponent({name:"PageTitle",setup(){const $=usePageData(),b=usePageFrontmatter(),j=useThemeLocaleData(),{info:U,items:Bn}=usePageInfo();return()=>h$3("div",{class:"page-title"},[h$3("h1",[j.value.titleIcon===!1?null:h$3(Icon,{icon:b.value.icon}),$.value.title]),h$3(PageInfo,{info:U.value,...Bn.value===null?{}:{items:Bn.value}}),h$3("hr")])}}),EditIcon=()=>h$3(P$5,{name:"edit"},()=>[h$3("path",{d:"M430.818 653.65a60.46 60.46 0 0 1-50.96-93.281l71.69-114.012 7.773-10.365L816.038 80.138A60.46 60.46 0 0 1 859.225 62a60.46 60.46 0 0 1 43.186 18.138l43.186 43.186a60.46 60.46 0 0 1 0 86.373L588.879 565.55l-8.637 8.637-117.466 68.234a60.46 60.46 0 0 1-31.958 11.229z"}),h$3("path",{d:"M728.802 962H252.891A190.883 190.883 0 0 1 62.008 771.98V296.934a190.883 190.883 0 0 1 190.883-192.61h267.754a60.46 60.46 0 0 1 0 120.92H252.891a69.962 69.962 0 0 0-69.098 69.099V771.98a69.962 69.962 0 0 0 69.098 69.098h475.911A69.962 69.962 0 0 0 797.9 771.98V503.363a60.46 60.46 0 1 1 120.922 0V771.98A190.883 190.883 0 0 1 728.802 962z"})]);EditIcon.displayName="EditIcon";const NotFoundIcon=()=>h$3("svg",{xmlns:"http://www.w3.org/2000/svg",class:"not-found-icon",viewBox:"0 0 178 130",innerHTML:'<defs><linearGradient id="b" x1=".5" x2=".5" y2="1" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#e9e9e9"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient><linearGradient id="c" x1=".5" x2=".5" y2="1" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#dcdcdc"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient><linearGradient id="d" x1=".5" x2=".5" y2="1" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#f1f1f1"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient><linearGradient id="e" x1=".5" x2=".5" y2="1" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#dedede"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient><linearGradient id="f" x1=".5" x2=".5" y2="1" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#e8e8e8"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient><linearGradient id="g" x1=".213" y1="1.265" x2=".846" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#f5f5f5"/></linearGradient><linearGradient id="h" x1=".5" x2=".5" y2="1" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#c5c5c5"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient><linearGradient id="i" x1=".5" x2=".5" y2="1" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#acacac"/><stop offset="1" stop-color="#f2f2f2" stop-opacity=".388"/></linearGradient><clipPath id="a"><path transform="translate(744 1111)" fill="none" d="M0 0h178v130H0z"/></clipPath></defs><g transform="translate(-744 -1111)" clip-path="url(#a)"><path d="M0 10.795 36.6 0v93.779L0 104.574z" transform="translate(772.466 1122.142)" fill="url(#b)"/><path d="M-8.492 10.642-26.361-.469v93.78l17.868 11.111z" transform="translate(780.958 1122.293)" fill="url(#c)"/><path d="M-8.5 5.55 28.106-5.3 10.228-16.437l-36.6 10.845z" transform="translate(780.963 1127.438)" fill="url(#d)"/><path d="M0 10.539 35.741 0v91.56L0 102.1z" transform="translate(870.158 1123.617)" fill="url(#d)"/><path d="M-8.913 10.38-26.361-.469v91.562l17.448 10.848z" transform="translate(879.071 1123.775)" fill="url(#e)"/><path d="m-8.918 5.032 35.741-10.59L9.366-16.437-26.375-5.848z" transform="translate(879.076 1129.175)" fill="url(#d)"/><path d="M0 9.137 30.839 0v79.381L0 88.519z" transform="translate(799.678 1151.579)" fill="url(#f)"/><path d="m-11.306 8.936-15.054-9.4v79.377l15.054 9.4z" transform="translate(810.985 1151.78)" fill="url(#c)"/><path d="M-11.313 2.087 19.526-7.05 4.464-16.437-26.375-7.3z" transform="translate(810.991 1158.63)" fill="url(#g)"/><path d="M178 53H0a51.361 51.361 0 0 1 10.453-20.952 74.532 74.532 0 0 1 19.742-16.811A103.3 103.3 0 0 1 57.089 4.058a127.515 127.515 0 0 1 63.823 0 103.3 103.3 0 0 1 26.894 11.179 74.532 74.532 0 0 1 19.741 16.811A51.363 51.363 0 0 1 178 53z" transform="translate(744 1187.549)" fill="url(#h)"/><path d="m814.529 1199.586-1.272 1.212h2.3l1.2-1.212zM816.725 1194.909l-1.272 1.212h2.3l1.263-1.212zM863.284 1199.585l-1.272 1.212h2.3l1.2-1.212zM865.519 1194.9l-1.272 1.212h2.3l1.263-1.212z" fill="#cbcbcb"/><path d="m799.527 1191.21 10.182-21.97h4.381l-9.931 21.719h14.876v3.941h-19.508zm13.081-9.493h4.152v17.859h-4.152zm20.728 18.151q-4.256 0-6.457-2.274a8.74 8.74 0 0 1-2.2-6.343v-13.791a8.708 8.708 0 0 1 2.21-6.353q2.212-2.264 6.447-2.264 4.256 0 6.457 2.253a8.726 8.726 0 0 1 2.2 6.363v13.792a8.708 8.708 0 0 1-2.21 6.349q-2.211 2.268-6.447 2.268zm0-4.048a4.29 4.29 0 0 0 3.328-1.178 4.862 4.862 0 0 0 1.074-3.39v-13.792a4.893 4.893 0 0 0-1.064-3.39 4.285 4.285 0 0 0-3.338-1.179 4.285 4.285 0 0 0-3.338 1.179 4.893 4.893 0 0 0-1.064 3.39v13.791a4.862 4.862 0 0 0 1.075 3.391 4.29 4.29 0 0 0 3.327 1.178zm14.928-4.61 10.181-21.97h4.381l-9.931 21.719h14.876v3.941h-19.507zm13.081-9.493h4.152v17.859h-4.152z" fill="#c6c6c6"/><path d="m798.306 1192.431 10.182-21.97h4.381l-9.931 21.719h14.876v3.941h-19.508zm13.081-9.493h4.152v17.859h-4.152zm20.728 18.151q-4.256 0-6.457-2.274a8.74 8.74 0 0 1-2.2-6.343v-13.791a8.708 8.708 0 0 1 2.21-6.353q2.212-2.264 6.447-2.264 4.256 0 6.457 2.253a8.726 8.726 0 0 1 2.2 6.363v13.792a8.708 8.708 0 0 1-2.21 6.349q-2.211 2.268-6.447 2.268zm0-4.048a4.29 4.29 0 0 0 3.328-1.178 4.862 4.862 0 0 0 1.074-3.39v-13.792a4.893 4.893 0 0 0-1.064-3.39 4.285 4.285 0 0 0-3.338-1.179 4.285 4.285 0 0 0-3.338 1.179 4.893 4.893 0 0 0-1.064 3.39v13.791a4.862 4.862 0 0 0 1.075 3.391 4.29 4.29 0 0 0 3.327 1.178zm14.928-4.61 10.181-21.97h4.381l-9.931 21.719h14.876v3.941h-19.507zm13.081-9.493h4.152v17.859h-4.152z" fill="#b2b2b2"/><path d="m-27.694-19.435 10.182 14.517h4.381l-9.931-14.352h14.876v-2.606h-19.508zm13.081 6.273h4.152v-11.8h-4.152zM6.115-25.156q-4.256 0-6.457 1.5a4.8 4.8 0 0 0-2.2 4.191v9.113a4.784 4.784 0 0 0 2.212 4.2 11.511 11.511 0 0 0 6.447 1.5q4.256 0 6.457-1.489a4.786 4.786 0 0 0 2.2-4.2v-9.113a4.784 4.784 0 0 0-2.212-4.2 11.511 11.511 0 0 0-6.447-1.502zm0 2.675a5.705 5.705 0 0 1 3.328.779 2.6 2.6 0 0 1 1.074 2.24v9.113a2.607 2.607 0 0 1-1.064 2.24 5.7 5.7 0 0 1-3.338.779 5.7 5.7 0 0 1-3.338-.779 2.607 2.607 0 0 1-1.064-2.24v-9.113A2.6 2.6 0 0 1 2.788-21.7a5.705 5.705 0 0 1 3.327-.782zm14.927 3.047L31.224-4.918h4.381l-9.931-14.351H40.55v-2.606H21.043zm13.081 6.273h4.152v-11.8h-4.151z" transform="translate(826 1226.245)" opacity=".32" fill="url(#i)"/><g fill="#e6e6e6"><path d="m858.428 1169.23-1.2 1.259h4.388l1.178-1.259zM802.944 1192.187l1.288-1.375h7.143v1.375zm8.415-9.25 1.273-1.234h4.15l-1.235 1.234zm-2.855-12.469 1.198-1.259h4.367l-1.178 1.259zM861.362 1181.678l-1.27 1.3h4.188l1.236-1.3zM865.519 1190.9l-1.27 1.3h2.3l1.162-1.3zM852.838 1190.791l-1.207 1.508h8.447v-1.508z"/></g></g>'}),pageMeta="",PageMeta=defineComponent({name:"PageMeta",setup(){const $=useThemeLocaleData(),b=useEditLink(),j=useUpdateTime(),U=useContributors();return()=>{const{metaLocales:Bn}=$.value;return h$3("footer",{class:"page-meta"},[b.value?h$3("div",{class:"meta-item edit-link"},h$3(AutoLink,{class:"label",config:b.value},{before:()=>h$3(EditIcon)})):null,h$3("div",{class:"meta-item git-info"},[j.value?h$3("div",{class:"update-time"},[h$3("span",{class:"label"},`${Bn.lastUpdated}: `),h$3(ClientOnly,()=>h$3("span",{class:"info"},j.value))]):null,U.value&&U.value.length?h$3("div",{class:"contributors"},[h$3("span",{class:"label"},`${Bn.contributors}: `),U.value.map(({email:Fn,name:qn},Wn)=>[h$3("span",{class:"contributor",title:`email: ${Fn}`},qn),Wn!==U.value.length-1?",":""])]):null])])}}}),toc="",renderHeader=({title:$,level:b,slug:j})=>h$3(RouterLink,{to:`#${j}`,class:["toc-link",`level${b}`]},()=>$),renderChildren=($,b)=>{const j=useRoute();return $.length&&b>0?h$3("ul",{class:"toc-list"},$.map(U=>[h$3("li",{class:["toc-item",{active:Rt$1(j,`#${U.slug}`)}]},renderHeader(U)),renderChildren(U.children,b-1)])):null},TOC=defineComponent({name:"TOC",props:{items:{type:Array,default:()=>[]},headerDepth:{type:Number,default:2}},setup($){const b=useRoute(),j=usePageData(),U=useMetaLocale(),Bn=useThemeData(),Fn=ref(),qn=Wn=>{var Gn;(Gn=Fn.value)==null||Gn.scrollTo({top:Wn,behavior:"smooth"})};return onMounted(()=>{watch(()=>b.hash,Wn=>{if(Fn.value){const Gn=document.querySelector(`#toc a.toc-link[href$="${Wn}"]`);if(!Gn)return;const{top:Yn,height:Qn}=Fn.value.getBoundingClientRect(),{top:Zn,height:Jn}=Gn.getBoundingClientRect();Zn<Yn?qn(Fn.value.scrollTop+Zn-Yn):Zn+Jn>Yn+Qn&&qn(Fn.value.scrollTop+Zn+Jn-Yn-Qn)}})}),()=>{const Wn=$.items.length?renderChildren($.items,$.headerDepth):j.value.headers?renderChildren(j.value.headers,$.headerDepth):null;return Wn?h$3("div",{class:"toc-place-holder"},[h$3("aside",{id:"toc"},[h$3("div",{class:"toc-header"},[U.value.toc,Bn.value.print===!1?null:h$3("button",{class:"print-button",title:"print",onClick:()=>{window.print()}},h$3(PrintIcon))]),h$3("div",{class:"toc-wrapper",ref:Fn},[Wn])])]):null}}}),page="",NormalPage=defineComponent({name:"NormalPage",setup($,{slots:b}){const j=usePageFrontmatter(),{isDarkmode:U}=useDarkmode(),Bn=useThemeLocaleData(),Fn=computed(()=>j.value.toc||j.value.toc!==!1&&Bn.value.toc!==!1);return()=>h$3("main",{class:"page",id:"main-content"},h$3(_t$1("LocalEncrypt")?resolveComponent("LocalEncrypt"):Ct$1,()=>{var qn,Wn,Gn,Yn;return[(qn=b.top)==null?void 0:qn.call(b),h$3(BreadCrumb),h$3(PageTitle),Fn.value?h$3(TOC,{headerDepth:j.value.headerDepth??Bn.value.headerDepth??2}):null,(Wn=b.contentBefore)==null?void 0:Wn.call(b),h$3(MarkdownContent),(Gn=b.contentAfter)==null?void 0:Gn.call(b),h$3(PageMeta),h$3(PageNav),_t$1("CommentService")?h$3(resolveComponent("CommentService"),{darkmode:U.value}):null,(Yn=b.bottom)==null?void 0:Yn.call(b)]}))}}),fadeSlideY="",FadeSlideY=defineComponent({name:"FadeSlideY",setup($,{slots:b}){const j=useScrollPromise(),U=j.resolve,Bn=j.pending;return()=>h$3(Transition,{name:"fade-slide-y",mode:"out-in",onBeforeEnter:U,onBeforeLeave:Bn},()=>{var Fn;return(Fn=b.default)==null?void 0:Fn.call(b)})}}),skipLink="",SkipLink=defineComponent({name:"SkipLink",props:{content:{type:String,default:"main-content"}},setup($){const b=useRoute(),j=useThemeLocaleData(),U=ref(),Bn=({target:Fn})=>{const qn=document.querySelector(Fn.hash);if(qn){const Wn=()=>{qn.removeAttribute("tabindex"),qn.removeEventListener("blur",Wn)};qn.setAttribute("tabindex","-1"),qn.addEventListener("blur",Wn),qn.focus(),window.scrollTo(0,0)}};return onMounted(()=>{watch(()=>b.path,()=>U.value.focus())}),()=>[h$3("span",{ref:U,tabindex:"-1"}),h$3("a",{href:`#${$.content}`,class:"skip-link sr-only",onClick:Bn},j.value.routeLocales.skipToContent)]}}),Layout=defineComponent({name:"Layout",setup(){useThemeLocaleData();const $=usePageData(),b=usePageFrontmatter(),{isMobile:j}=useWindowSize(),U=computed(()=>"none");return()=>[h$3(SkipLink),h$3(CommonWrapper,{},{default:()=>b.value.home?h$3(HomePage):h$3(FadeSlideY,()=>h$3(NormalPage,{key:$.value.path})),...U.value!=="none"?{navScreenBottom:()=>h$3(resolveComponent("BloggerInfo"))}:{},...!j.value&&U.value==="always"?{sidebar:()=>h$3(resolveComponent("BloggerInfo"))}:{}})]}}),notFound="",NotFound=defineComponent({name:"NotFound",setup(){const $=useRouteLocale(),b=useThemeLocaleData(),j=()=>{const Bn=b.value.routeLocales.notFoundMsg;return Bn[Math.floor(Math.random()*Bn.length)]},{navigate:U}=useLink({to:b.value.home??$.value});return()=>[h$3(SkipLink),h$3(CommonWrapper,{noSidebar:!0},()=>h$3("main",{class:"page not-found",id:"main-content"},[h$3(NotFoundIcon),h$3("blockquote",j()),h$3("button",{class:"action-button",onClick:()=>{window.history.go(-1)}},b.value.routeLocales.back),h$3("button",{class:"action-button",onClick:()=>U()},b.value.routeLocales.home)]))]}}),index="",slidePage="",d$1=()=>h$3(P$5,{name:"back"},()=>h$3("path",{d:"M1014.749 449.156v125.688H260.626l345.64 345.64-89.239 89.237L19.307 512l497.72-497.721 89.238 89.238-345.64 345.64h754.124z"})),h=()=>h$3(P$5,{name:"home"},()=>h$3("path",{d:"M780.106 420.978L506.994 147.866 233.882 420.978h.045v455.11H780.06v-455.11h.046zm90.977 90.976V876.09a91.022 91.022 0 01-91.023 91.022H233.927a91.022 91.022 0 01-91.022-91.022V511.954l-67.22 67.175-64.307-64.307 431.309-431.31c35.498-35.498 93.115-35.498 128.614 0l431.309 431.31-64.307 64.307L871.083 512z"}));var f=defineComponent({name:"SlidePage",setup(){const $=useRouter(),b=ref(!1),j=ref(),U=()=>{b.value=!b.value},Bn=()=>{b.value=!1},Fn=()=>{Bn(),window.history.go(-1)},qn=()=>{Bn(),$.push("/")};return onClickOutside(j,Bn),()=>h$3("div",{class:"presentation"},[h$3(Content),h$3("div",{ref:j,class:["menu",{active:b.value}]},[h$3("button",{class:"menu-button",onClick:()=>U()},h$3("span",{class:"icon"})),h$3("button",{class:"back-button",onClick:()=>Fn()},h$3(d$1)),h$3("button",{class:"home-button",onClick:()=>qn()},h$3(h))])])}});const clientConfig12=defineClientConfig({enhance:({app:$,router:b})=>{const{scrollBehavior:j}=b.options;b.options.scrollBehavior=async(...U)=>(await useScrollPromise().wait(),j(...U)),injectDarkMode($)},setup:()=>{setupDarkMode(),setupSidebarItems()},layouts:{Layout,NotFound,Slide:f}}),searchBox="",searchModal="",u=()=>h$3(P$5,{name:"search"},()=>h$3("path",{d:"M192 480a256 256 0 1 1 512 0 256 256 0 0 1-512 0m631.776 362.496-143.2-143.168A318.464 318.464 0 0 0 768 480c0-176.736-143.264-320-320-320S128 303.264 128 480s143.264 320 320 320a318.016 318.016 0 0 0 184.16-58.592l146.336 146.368c12.512 12.48 32.768 12.48 45.28 0 12.48-12.512 12.48-32.768 0-45.28"}));u.displayName="SearchIcon";const d=Symbol.for("search-pro"),S=()=>{const $=ref(!1);provide(d,$)},E=[{key:"k",ctrl:!0}],p={"/en/":{cancel:"Cancel",placeholder:"search",search:"Search",select:"to select",navigate:"to navigate",exit:"to exit",history:"Search History",emptyHistory:"Empty Search History",emptyResult:"No results found",loading:"Loading search indexes..."},"/":{cancel:"取消",placeholder:"点击搜索",search:"搜索",select:"选择",navigate:"切换",exit:"关闭",history:"搜索历史",emptyHistory:"无搜索历史",emptyResult:"没有找到结果",loading:"正在加载搜索索引..."}},L=$=>$ instanceof Element?document.activeElement===$&&(["TEXTAREA","SELECT","INPUT"].includes($.tagName)||$.hasAttribute("contenteditable")):!1,T=$=>E.some(b=>{const{key:j,ctrl:U=!1,shift:Bn=!1,alt:Fn=!1}=b;return j===$.key&&U===$.ctrlKey&&Bn===$.shiftKey&&Fn===$.altKey});var A=defineComponent({name:"SearchBox",setup(){const $=kt$1(p),b=inject(d);return useEventListener("keydown",j=>{!b.value&&T(j)&&!L(j.target)&&(j.preventDefault(),b.value=!0)}),()=>[h$3("button",{class:"search-pro-button",role:"search","aria-label":$.value.search,onClick:()=>{b.value=!0}},h$3(u))]}});const m=()=>h$3("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",preserveAspectRatio:"xMidYMid",viewBox:"0 0 100 100"},[h$3("circle",{cx:"28",cy:"75",r:"11",fill:"currentColor"},h$3("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",keyTimes:"0;0.2;1",repeatCount:"indefinite",values:"0;1;1"})),h$3("path",{fill:"none",stroke:"#88baf0","stroke-width":"10",d:"M28 47a28 28 0 0 1 28 28"},h$3("animate",{attributeName:"stroke-opacity",begin:"0.1s",dur:"1s",keyTimes:"0;0.2;1",repeatCount:"indefinite",values:"0;1;1"})),h$3("path",{fill:"none",stroke:"#88baf0","stroke-width":"10",d:"M28 25a50 50 0 0 1 50 50"},h$3("animate",{attributeName:"stroke-opacity",begin:"0.2s",dur:"1s",keyTimes:"0;0.2;1",repeatCount:"indefinite",values:"0;1;1"}))]);m.displayName="LoadingIcon";const x=defineComponent({name:"SearchLoading",setup(){const $=kt$1(p);return()=>h$3("div",{class:"search-pro-result loading"},[h$3(m),$.value.loading])}}),H=defineAsyncComponent({loader:()=>__vitePreload(()=>import("./SearchResult-0130dae8.js"),["assets/SearchResult-0130dae8.js","assets/framework-2050cf2c.js"]),loadingComponent:x});var I=defineComponent({name:"SearchModal",setup(){const $=inject(d),b=kt$1(p),j=ref(""),U=ref(!1),Bn=ref();return useEventListener("keydown",Fn=>{$.value&&Fn.key==="Escape"&&($.value=!1)}),onMounted(()=>{U.value=Ht$1(navigator.userAgent),watch($,Fn=>{var qn;Fn&&((qn=Bn.value)==null||qn.focus())})}),()=>$.value?h$3("div",{class:"search-pro-modal-wrapper"},[h$3("div",{class:"background",onClick:()=>{$.value=!1,j.value=""}}),h$3("div",{class:"search-pro-modal"},[h$3("div",{class:"search-pro-box"},[h$3(u),h$3("input",{ref:Bn,type:"text",class:"search-pro-input",placeholder:b.value.placeholder,spellcheck:"false",value:j.value,onInput:({target:Fn})=>{j.value=Fn.value}}),h$3("button",{class:"close-button",onClick:()=>{$.value=!1,j.value=""}},b.value.cancel)]),h$3(H,{query:j.value,onClose:()=>{$.value=!1},onUpdateQuery:Fn=>{j.value=Fn}}),U.value?null:h$3("div",{class:"search-pro-hints"},[h$3("span",{class:"search-pro-hint"},[h$3("kbd",{innerHTML:'<svg width="15" height="15" aria-label="Enter key" role="img"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2"><path d="M12 3.53088v3c0 1-1 2-2 2H4M7 11.53088l-3-3 3-3"></path></g></svg>'}),b.value.select]),h$3("span",{class:"search-pro-hint"},[h$3("kbd",{innerHTML:'<svg width="15" height="15" aria-label="Arrow down" role="img"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2"><path d="M7.5 3.5v8M10.5 8.5l-3 3-3-3"></path></g></svg>'}),h$3("kbd",{innerHTML:'<svg width="15" height="15" aria-label="Arrow up" role="img"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2"><path d="M7.5 11.5v-8M10.5 6.5l-3-3-3 3"></path></g></svg>'}),b.value.navigate]),h$3("span",{class:"search-pro-hint"},[h$3("kbd",{innerHTML:'<svg width="15" height="15" aria-label="Escape key" role="img"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2"><path d="M13.6167 8.936c-.1065.3583-.6883.962-1.4875.962-.7993 0-1.653-.9165-1.653-2.1258v-.5678c0-1.2548.7896-2.1016 1.653-2.1016.8634 0 1.3601.4778 1.4875 1.0724M9 6c-.1352-.4735-.7506-.9219-1.46-.8972-.7092.0246-1.344.57-1.344 1.2166s.4198.8812 1.3445.9805C8.465 7.3992 8.968 7.9337 9 8.5c.032.5663-.454 1.398-1.4595 1.398C6.6593 9.898 6 9 5.963 8.4851m-1.4748.5368c-.2635.5941-.8099.876-1.5443.876s-1.7073-.6248-1.7073-2.204v-.4603c0-1.0416.721-2.131 1.7073-2.131.9864 0 1.6425 1.031 1.5443 2.2492h-2.956"></path></g></svg>'}),b.value.exit])])])]):null}}),N=defineClientConfig({enhance({app:$}){$.component("SearchBox",A)},setup(){S()},rootComponents:[I]});const clientConfigs=[clientConfig0,clientConfig1,clientConfig2,a$4,clientConfig4,clientConfig5,clientConfig6,s$1,D$1,clientConfig9,y,clientConfig11,clientConfig12,N],pagesRoutes=[["v-8daa1a0e","/",{y:"h",title:"首页",i:"home"},["/index.html","/README.md"]],["v-67f865c9","/community.html",{y:"a",title:"加入用户社区"},["/community","/community.md"]],["v-c360777a","/markmap.html",{y:"a",title:"胡桃工具箱"},["/markmap","/markmap.md"]],["v-590a42d9","/project.html",{y:"a",title:"项目说明"},["/project","/project.md"]],["v-96f5eae0","/quick-start.html",{y:"a",title:"快速开始"},["/quick-start","/quick-start.md"]],["v-35ed7d28","/star-request.html",{y:"a",title:""},["/star-request","/star-request.md"]],["v-4f87b30d","/FAQ/Gacha-system-and-export-principal.html",{y:"a",title:"祈愿系统与导出原理"},["/FAQ/Gacha-system-and-export-principal","/FAQ/Gacha-system-and-export-principal.md"]],["v-5b94d45f","/FAQ/HttpRequestException.html",{y:"a",title:"HttpRequestException错误"},["/FAQ/HttpRequestException","/FAQ/HttpRequestException.md"]],["v-0288c929","/FAQ/artifact-rating-rules.html",{y:"a",title:"圣遗物评分机制"},["/FAQ/artifact-rating-rules","/FAQ/artifact-rating-rules.md"]],["v-9a0eaba6","/FAQ/get-stoken-cookie-from-the-third-party.html",{y:"a",title:"使用第三方工具获取有 Stoken 的 cookie"},["/FAQ/get-stoken-cookie-from-the-third-party","/FAQ/get-stoken-cookie-from-the-third-party.md"]],["v-179f15e2","/FAQ/how-to.html",{y:"a",title:"如何..."},["/FAQ/how-to","/FAQ/how-to.md"]],["v-401b4afa","/FAQ/mihoyo-risk-tip.html",{y:"a",title:"账号风险及异常提示"},["/FAQ/mihoyo-risk-tip","/FAQ/mihoyo-risk-tip.md"]],["v-289a9e83","/FAQ/why.html",{y:"a",title:"为什么..."},["/FAQ/why","/FAQ/why.md"]],["v-28eb1946","/development-log/symposium1.html",{y:"a",title:"第一期开发组座谈会"},["/development-log/symposium1","/development-log/symposium1.md"]],["v-2a9ff1e5","/development-log/symposium2.html",{y:"a",title:"第二期开发组座谈会"},["/development-log/symposium2","/development-log/symposium2.md"]],["v-2d0a870d","/en/",{y:"h",title:"Home",i:"home"},["/en/index.html","/en/README.md"]],["v-35380e8e","/features/",{y:"a",title:"功能列表"},["/features/index.html","/features/README.md"]],["v-73139ec8","/features/achievements.html",{y:"a",title:"成就管理"},["/features/achievements","/features/achievements.md"]],["v-1c93fc72","/features/character-data.html",{y:"a",title:"属性统计"},["/features/character-data","/features/character-data.md"]],["v-e37f5fa8","/features/character-wiki.html",{y:"a",title:"角色资料"},["/features/character-wiki","/features/character-wiki.md"]],["v-646944b6","/features/daily-notes.html",{y:"a",title:"实时便笺"},["/features/daily-notes","/features/daily-notes.md"]],["v-1ae10847","/features/develop-plan.html",{y:"a",title:"养成计划"},["/features/develop-plan","/features/develop-plan.md"]],["v-923d01d2","/features/game-launcher.html",{y:"a",title:"高级启动器"},["/features/game-launcher","/features/game-launcher.md"]],["v-6de46920","/features/hutao-API.html",{y:"a",title:"胡桃数据库/深渊统计"},["/features/hutao-API","/features/hutao-API.md"]],["v-0c385e36","/features/hutao-settings.html",{y:"a",title:"软件设置"},["/features/hutao-settings","/features/hutao-settings.md"]],["v-3e40bb9d","/features/mhy-account-switch.html",{y:"a",title:"米游社多帐号切换"},["/features/mhy-account-switch","/features/mhy-account-switch.md"]],["v-7070f771","/features/weapon-wiki.html",{y:"a",title:"武器资料"},["/features/weapon-wiki","/features/weapon-wiki.md"]],["v-f4f67790","/features/wish-export.html",{y:"a",title:"祈愿记录"},["/features/wish-export","/features/wish-export.md"]],["v-39f4c4da","/statements/bug-report.html",{y:"a",title:"提交BUG报告"},["/statements/bug-report","/statements/bug-report.md"]],["v-6730cc6c","/statements/privacy-notice.html",{y:"a",title:"用户数据和隐私权益"},["/statements/privacy-notice","/statements/privacy-notice.md"]],["v-d670f89a","/statements/tos.html",{y:"a",title:"用户使用协议和法律声明"},["/statements/tos","/statements/tos.md"]],["v-3706649a","/404.html",{y:"p",title:""},["/404"]],["v-74379e72","/FAQ/",{y:"p",title:"F A Q"},["/FAQ/index.html"]],["v-437b37b6","/development-log/",{y:"p",title:"Development Log"},["/development-log/index.html"]],["v-b573819c","/statements/",{y:"p",title:"Statements"},["/statements/index.html"]]];var Vuepress=defineComponent({name:"Vuepress",setup(){const $=usePageLayout();return()=>h$3($.value)}}),createRoutes=()=>pagesRoutes.reduce(($,[b,j,U,Bn])=>($.push({name:b,path:j,component:Vuepress,meta:U},...Bn.map(Fn=>({path:Fn,redirect:j}))),$),[{name:"404",path:"/:catchAll(.*)",component:Vuepress}]),historyCreator=createWebHistory,createVueRouter=()=>{const $=createRouter({history:historyCreator(removeEndingSlash("/")),routes:createRoutes(),scrollBehavior:(b,j,U)=>U||(b.hash?{el:b.hash}:{top:0})});return $.beforeResolve(async(b,j)=>{var U;(b.path!==j.path||j===START_LOCATION_NORMALIZED)&&([pageData.value]=await Promise.all([resolvers.resolvePageData(b.name),(U=pagesComponents[b.name])==null?void 0:U.__asyncLoader()]))}),$},setupGlobalComponents=$=>{$.component("ClientOnly",ClientOnly),$.component("Content",Content)},setupGlobalComputed=($,b,j)=>{const U=computed(()=>resolvers.resolveLayouts(j)),Bn=computed(()=>resolvers.resolveRouteLocale(siteData.value.locales,b.currentRoute.value.path)),Fn=computed(()=>resolvers.resolveSiteLocaleData(siteData.value,Bn.value)),qn=computed(()=>resolvers.resolvePageFrontmatter(pageData.value)),Wn=computed(()=>resolvers.resolvePageHeadTitle(pageData.value,Fn.value)),Gn=computed(()=>resolvers.resolvePageHead(Wn.value,qn.value,Fn.value)),Yn=computed(()=>resolvers.resolvePageLang(pageData.value)),Qn=computed(()=>resolvers.resolvePageLayout(pageData.value,U.value));return $.provide(layoutsSymbol,U),$.provide(pageFrontmatterSymbol,qn),$.provide(pageHeadTitleSymbol,Wn),$.provide(pageHeadSymbol,Gn),$.provide(pageLangSymbol,Yn),$.provide(pageLayoutSymbol,Qn),$.provide(routeLocaleSymbol,Bn),$.provide(siteLocaleDataSymbol,Fn),Object.defineProperties($.config.globalProperties,{$frontmatter:{get:()=>qn.value},$head:{get:()=>Gn.value},$headTitle:{get:()=>Wn.value},$lang:{get:()=>Yn.value},$page:{get:()=>pageData.value},$routeLocale:{get:()=>Bn.value},$site:{get:()=>siteData.value},$siteLocale:{get:()=>Fn.value},$withBase:{get:()=>withBase}}),{layouts:U,pageData,pageFrontmatter:qn,pageHead:Gn,pageHeadTitle:Wn,pageLang:Yn,pageLayout:Qn,routeLocale:Bn,siteData,siteLocaleData:Fn}},setupUpdateHead=()=>{const $=useRoute(),b=usePageHead(),j=usePageLang(),U=ref([]),Bn=()=>{b.value.forEach(qn=>{const Wn=queryHeadTag(qn);Wn&&U.value.push(Wn)})},Fn=()=>{document.documentElement.lang=j.value,U.value.forEach(qn=>{qn.parentNode===document.head&&document.head.removeChild(qn)}),U.value.splice(0,U.value.length),b.value.forEach(qn=>{const Wn=createHeadTag(qn);Wn!==null&&(document.head.appendChild(Wn),U.value.push(Wn))})};provide(updateHeadSymbol,Fn),onMounted(()=>{Bn(),Fn(),watch(()=>$.path,()=>Fn())})},queryHeadTag=([$,b,j=""])=>{const U=Object.entries(b).map(([Wn,Gn])=>isString$1(Gn)?`[${Wn}=${JSON.stringify(Gn)}]`:Gn===!0?`[${Wn}]`:"").join(""),Bn=`head > ${$}${U}`;return Array.from(document.querySelectorAll(Bn)).find(Wn=>Wn.innerText===j)||null},createHeadTag=([$,b,j])=>{if(!isString$1($))return null;const U=document.createElement($);return isPlainObject(b)&&Object.entries(b).forEach(([Bn,Fn])=>{isString$1(Fn)?U.setAttribute(Bn,Fn):Fn===!0&&U.setAttribute(Bn,"")}),isString$1(j)&&U.appendChild(document.createTextNode(j)),U},appCreator=createSSRApp,createVueApp=async()=>{var j;const $=appCreator({name:"VuepressApp",setup(){var U;setupUpdateHead();for(const Bn of clientConfigs)(U=Bn.setup)==null||U.call(Bn);return()=>[h$3(RouterView),...clientConfigs.flatMap(({rootComponents:Bn=[]})=>Bn.map(Fn=>h$3(Fn)))]}}),b=createVueRouter();setupGlobalComponents($),setupGlobalComputed($,b,clientConfigs);for(const U of clientConfigs)await((j=U.enhance)==null?void 0:j.call(U,{app:$,router:b,siteData}));return $.use(b),{app:$,router:b}};createVueApp().then(({app:$,router:b})=>{b.isReady().then(()=>{$.mount("#app")})});export{Bt$1 as B,P$5 as P,__vitePreload as _,at$1 as a,useRouteLocale as b,useEventListener as c,createVueApp,disableBodyScroll as d,clearAllBodyScrollLocks as e,useDebounceFn as f,kt$1 as k,useLocalStorage as u};