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$4,k as isLinkHttp,l as removeLeadingSlash,m as inject,n as getCurrentInstance,p as camelize,q as capitalize,u as unref,s as isRef,t as toRef$1,v as customRef,w as nextTick,x as watch,y as getCurrentScope,z as onScopeDispose,A as shallowRef,B as watchEffect,T as Transition,C as useRouter,D as onBeforeUnmount,R as RouterLink,E as resolveComponent,F as isPlainObject,G as onUnmounted,H as provide,I as useRoute,J as TransitionGroup,K as isLinkMailto,L as isLinkTel,M as isLinkExternal,N as ensureEndingSlash,O as useLink,P as removeEndingSlash,Q as resolveRoutePathFromUrl,S as createRouter,U as START_LOCATION_NORMALIZED,V as createSSRApp,W as createWebHistory,X as RouterView}from"./framework-fdb90ab2.js";const scriptRel="modulepreload",assetsURL=function(R){return"/"+R},seen={},__vitePreload=function(Z,X,ee){if(!X||X.length===0)return Z();const ne=document.getElementsByTagName("link");return Promise.all(X.map(re=>{if(re=assetsURL(re),re in seen)return;seen[re]=!0;const se=re.endsWith(".css"),ie=se?'[rel="stylesheet"]':"";if(!!ee)for(let nt=ne.length-1;nt>=0;nt--){const at=ne[nt];if(at.href===re&&(!se||at.rel==="stylesheet"))return}else if(document.querySelector(`link[href="proxy.php?url=https%3A%2F%2FTRSS-Script.Vercel.app%2F%24%7Bre%7D"]${ie}`))return;const Ce=document.createElement("link");if(Ce.rel=se?"stylesheet":scriptRel,se||(Ce.as="script",Ce.crossOrigin=""),Ce.href=re,document.head.appendChild(Ce),se)return new Promise((nt,at)=>{Ce.addEventListener("load",nt),Ce.addEventListener("error",()=>at(new Error(`Unable to preload CSS for ${re}`)))})})).then(()=>Z())},pagesData$1={"v-8daa1a0e":()=>__vitePreload(()=>import("./index.html-9f7e81e0.js"),[]).then(({data:R})=>R),"v-00a97f9a":()=>__vitePreload(()=>import("./Command.html-f74cb829.js"),[]).then(({data:R})=>R),"v-4967250c":()=>__vitePreload(()=>import("./index.html-ca8fb3d9.js"),[]).then(({data:R})=>R),"v-3f618712":()=>__vitePreload(()=>import("./Android.html-b976bbf5.js"),[]).then(({data:R})=>R),"v-0312a4ec":()=>__vitePreload(()=>import("./ArchWSL.html-c9b7c4c7.js"),[]).then(({data:R})=>R),"v-06e1f841":()=>__vitePreload(()=>import("./Arch_Linux.html-02588c5b.js"),[]).then(({data:R})=>R),"v-31a54f28":()=>__vitePreload(()=>import("./Docker.html-dc31d963.js"),[]).then(({data:R})=>R),"v-1eec3452":()=>__vitePreload(()=>import("./Linux.html-1fa833cd.js"),[]).then(({data:R})=>R),"v-51d452f4":()=>__vitePreload(()=>import("./MSYS2.html-890261cc.js"),[]).then(({data:R})=>R),"v-0aad422f":()=>__vitePreload(()=>import("./MTArch.html-36e98ccf.js"),[]).then(({data:R})=>R),"v-c1d10fd2":()=>__vitePreload(()=>import("./Mac.html-ca70c5c2.js"),[]).then(({data:R})=>R),"v-08cc47e6":()=>__vitePreload(()=>import("./index.html-96088545.js"),[]).then(({data:R})=>R),"v-362b3abd":()=>__vitePreload(()=>import("./TMOE.html-b69fc4ed.js"),[]).then(({data:R})=>R),"v-0e6c3ce3":()=>__vitePreload(()=>import("./Windows.html-2ec53a85.js"),[]).then(({data:R})=>R),"v-351c6386":()=>__vitePreload(()=>import("./vmConsole.html-9d10292a.js"),[]).then(({data:R})=>R),"v-48155a3b":()=>__vitePreload(()=>import("./index.html-a6e0ac03.js"),[]).then(({data:R})=>R),"v-23966226":()=>__vitePreload(()=>import("./TRSS_AllBot.html-803388e2.js"),[]).then(({data:R})=>R),"v-f5ca770c":()=>__vitePreload(()=>import("./TRSS_Amiya.html-a1418177.js"),[]).then(({data:R})=>R),"v-353b1eeb":()=>__vitePreload(()=>import("./TRSS_Liteyuki.html-1f1ddd0b.js"),[]).then(({data:R})=>R),"v-252b229c":()=>__vitePreload(()=>import("./TRSS_OneBot.html-6f52e923.js"),[]).then(({data:R})=>R),"v-6106920c":()=>__vitePreload(()=>import("./TRSS_Sagiri.html-b452cdb8.js"),[]).then(({data:R})=>R),"v-64a8ad83":()=>__vitePreload(()=>import("./TRSS_Yunzai.html-ffc609c2.js"),[]).then(({data:R})=>R),"v-58bcb045":()=>__vitePreload(()=>import("./TRSS_Zhenxun.html-9988bd22.js"),[]).then(({data:R})=>R),"v-52dcfade":()=>__vitePreload(()=>import("./Adachi.html-426f21be.js"),[]).then(({data:R})=>R),"v-d4128514":()=>__vitePreload(()=>import("./Amiya.html-f6630b34.js"),[]).then(({data:R})=>R),"v-23aeb46f":()=>__vitePreload(()=>import("./Liteyuki.html-a241c50a.js"),[]).then(({data:R})=>R),"v-024c23cd":()=>__vitePreload(()=>import("./LittlePaimon.html-7e5583e6.js"),[]).then(({data:R})=>R),"v-7752199d":()=>__vitePreload(()=>import("./Mirai.html-fdf3f9da.js"),[]).then(({data:R})=>R),"v-54119eb9":()=>__vitePreload(()=>import("./PaimengBot.html-479f0f77.js"),[]).then(({data:R})=>R),"v-6ba9b890":()=>__vitePreload(()=>import("./Sagiri.html-26adb170.js"),[]).then(({data:R})=>R),"v-a932a3c8":()=>__vitePreload(()=>import("./TRSS-Yunzai.html-4ea512dc.js"),[]).then(({data:R})=>R),"v-6f4bd407":()=>__vitePreload(()=>import("./Yunzai.html-c52802bb.js"),[]).then(({data:R})=>R),"v-79b0ae88":()=>__vitePreload(()=>import("./ZeroBot.html-e74f92fe.js"),[]).then(({data:R})=>R),"v-bb034b7e":()=>__vitePreload(()=>import("./Zhenxun.html-8808d589.js"),[]).then(({data:R})=>R),"v-bff9bdc0":()=>__vitePreload(()=>import("./go-cqhttp.html-94af32b6.js"),[]).then(({data:R})=>R),"v-481d3653":()=>__vitePreload(()=>import("./index.html-249095cb.js"),[]).then(({data:R})=>R),"v-ea1d09f6":()=>__vitePreload(()=>import("./TRSS_AllBot.html-fe4084a6.js"),[]).then(({data:R})=>R),"v-ebb1ca6c":()=>__vitePreload(()=>import("./TRSS_OneBot.html-9d5f499d.js"),[]).then(({data:R})=>R),"v-3706649a":()=>__vitePreload(()=>import("./404.html-abe463d5.js"),[]).then(({data:R})=>R),"v-dc0a553c":()=>__vitePreload(()=>import("./index.html-e27a12cd.js"),[]).then(({data:R})=>R)},siteData$1=JSON.parse('{"base":"/","lang":"en-US","title":"","description":"","head":[["link",{"rel":"icon","href":"/苏半夏Q.png"}],["link",{"rel":"icon","href":"/苏半夏Q.png","type":"image/png","sizes":"162x162"}],["link",{"rel":"icon","href":"/苏半夏QD.png","type":"image/png","sizes":"162x162"}],["link",{"rel":"manifest","href":"/manifest.webmanifest","crossorigin":"use-credentials"}],["meta",{"name":"theme-color","content":"#46bd87"}],["link",{"rel":"apple-touch-icon","href":"/苏半夏Q.png"}],["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":"/苏半夏Q.png"}],["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":"TRSS Script","description":"TRSS 脚本 使用文档"}}}'),pagesComponents={"v-8daa1a0e":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-c35866d6.js"),["assets/index.html-c35866d6.js","assets/framework-fdb90ab2.js"])),"v-00a97f9a":defineAsyncComponent(()=>__vitePreload(()=>import("./Command.html-d1a635d4.js"),["assets/Command.html-d1a635d4.js","assets/framework-fdb90ab2.js"])),"v-4967250c":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-c323fa32.js"),["assets/index.html-c323fa32.js","assets/framework-fdb90ab2.js"])),"v-3f618712":defineAsyncComponent(()=>__vitePreload(()=>import("./Android.html-83549e8b.js"),["assets/Android.html-83549e8b.js","assets/framework-fdb90ab2.js"])),"v-0312a4ec":defineAsyncComponent(()=>__vitePreload(()=>import("./ArchWSL.html-a09633e1.js"),["assets/ArchWSL.html-a09633e1.js","assets/framework-fdb90ab2.js"])),"v-06e1f841":defineAsyncComponent(()=>__vitePreload(()=>import("./Arch_Linux.html-e8e8aa47.js"),["assets/Arch_Linux.html-e8e8aa47.js","assets/framework-fdb90ab2.js"])),"v-31a54f28":defineAsyncComponent(()=>__vitePreload(()=>import("./Docker.html-dba1366b.js"),["assets/Docker.html-dba1366b.js","assets/framework-fdb90ab2.js"])),"v-1eec3452":defineAsyncComponent(()=>__vitePreload(()=>import("./Linux.html-8e3393d9.js"),["assets/Linux.html-8e3393d9.js","assets/framework-fdb90ab2.js"])),"v-51d452f4":defineAsyncComponent(()=>__vitePreload(()=>import("./MSYS2.html-f083f134.js"),["assets/MSYS2.html-f083f134.js","assets/framework-fdb90ab2.js"])),"v-0aad422f":defineAsyncComponent(()=>__vitePreload(()=>import("./MTArch.html-b8d8551f.js"),["assets/MTArch.html-b8d8551f.js","assets/framework-fdb90ab2.js"])),"v-c1d10fd2":defineAsyncComponent(()=>__vitePreload(()=>import("./Mac.html-73a0b62a.js"),["assets/Mac.html-73a0b62a.js","assets/framework-fdb90ab2.js"])),"v-08cc47e6":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-0dd94688.js"),["assets/index.html-0dd94688.js","assets/framework-fdb90ab2.js"])),"v-362b3abd":defineAsyncComponent(()=>__vitePreload(()=>import("./TMOE.html-56185fda.js"),["assets/TMOE.html-56185fda.js","assets/framework-fdb90ab2.js"])),"v-0e6c3ce3":defineAsyncComponent(()=>__vitePreload(()=>import("./Windows.html-5d35f131.js"),["assets/Windows.html-5d35f131.js","assets/framework-fdb90ab2.js"])),"v-351c6386":defineAsyncComponent(()=>__vitePreload(()=>import("./vmConsole.html-5ce41d2c.js"),["assets/vmConsole.html-5ce41d2c.js","assets/framework-fdb90ab2.js"])),"v-48155a3b":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-ea92ad16.js"),["assets/index.html-ea92ad16.js","assets/framework-fdb90ab2.js"])),"v-23966226":defineAsyncComponent(()=>__vitePreload(()=>import("./TRSS_AllBot.html-b082668c.js"),["assets/TRSS_AllBot.html-b082668c.js","assets/framework-fdb90ab2.js"])),"v-f5ca770c":defineAsyncComponent(()=>__vitePreload(()=>import("./TRSS_Amiya.html-03e9227c.js"),["assets/TRSS_Amiya.html-03e9227c.js","assets/framework-fdb90ab2.js"])),"v-353b1eeb":defineAsyncComponent(()=>__vitePreload(()=>import("./TRSS_Liteyuki.html-1a3f8608.js"),["assets/TRSS_Liteyuki.html-1a3f8608.js","assets/framework-fdb90ab2.js"])),"v-252b229c":defineAsyncComponent(()=>__vitePreload(()=>import("./TRSS_OneBot.html-2ad06d68.js"),["assets/TRSS_OneBot.html-2ad06d68.js","assets/framework-fdb90ab2.js"])),"v-6106920c":defineAsyncComponent(()=>__vitePreload(()=>import("./TRSS_Sagiri.html-7c40a6ba.js"),["assets/TRSS_Sagiri.html-7c40a6ba.js","assets/framework-fdb90ab2.js"])),"v-64a8ad83":defineAsyncComponent(()=>__vitePreload(()=>import("./TRSS_Yunzai.html-228cc87f.js"),["assets/TRSS_Yunzai.html-228cc87f.js","assets/framework-fdb90ab2.js"])),"v-58bcb045":defineAsyncComponent(()=>__vitePreload(()=>import("./TRSS_Zhenxun.html-8d26ae3f.js"),["assets/TRSS_Zhenxun.html-8d26ae3f.js","assets/framework-fdb90ab2.js"])),"v-52dcfade":defineAsyncComponent(()=>__vitePreload(()=>import("./Adachi.html-de716d69.js"),["assets/Adachi.html-de716d69.js","assets/framework-fdb90ab2.js"])),"v-d4128514":defineAsyncComponent(()=>__vitePreload(()=>import("./Amiya.html-1035af6c.js"),["assets/Amiya.html-1035af6c.js","assets/framework-fdb90ab2.js"])),"v-23aeb46f":defineAsyncComponent(()=>__vitePreload(()=>import("./Liteyuki.html-89bfa152.js"),["assets/Liteyuki.html-89bfa152.js","assets/framework-fdb90ab2.js"])),"v-024c23cd":defineAsyncComponent(()=>__vitePreload(()=>import("./LittlePaimon.html-44bfced5.js"),["assets/LittlePaimon.html-44bfced5.js","assets/framework-fdb90ab2.js"])),"v-7752199d":defineAsyncComponent(()=>__vitePreload(()=>import("./Mirai.html-a1b6bd6d.js"),["assets/Mirai.html-a1b6bd6d.js","assets/framework-fdb90ab2.js"])),"v-54119eb9":defineAsyncComponent(()=>__vitePreload(()=>import("./PaimengBot.html-f100402b.js"),["assets/PaimengBot.html-f100402b.js","assets/framework-fdb90ab2.js"])),"v-6ba9b890":defineAsyncComponent(()=>__vitePreload(()=>import("./Sagiri.html-34da4204.js"),["assets/Sagiri.html-34da4204.js","assets/framework-fdb90ab2.js"])),"v-a932a3c8":defineAsyncComponent(()=>__vitePreload(()=>import("./TRSS-Yunzai.html-71cfdfa4.js"),["assets/TRSS-Yunzai.html-71cfdfa4.js","assets/framework-fdb90ab2.js"])),"v-6f4bd407":defineAsyncComponent(()=>__vitePreload(()=>import("./Yunzai.html-0df344b7.js"),["assets/Yunzai.html-0df344b7.js","assets/framework-fdb90ab2.js"])),"v-79b0ae88":defineAsyncComponent(()=>__vitePreload(()=>import("./ZeroBot.html-6f5cf2ee.js"),["assets/ZeroBot.html-6f5cf2ee.js","assets/framework-fdb90ab2.js"])),"v-bb034b7e":defineAsyncComponent(()=>__vitePreload(()=>import("./Zhenxun.html-69177f49.js"),["assets/Zhenxun.html-69177f49.js","assets/framework-fdb90ab2.js"])),"v-bff9bdc0":defineAsyncComponent(()=>__vitePreload(()=>import("./go-cqhttp.html-6acfb9a1.js"),["assets/go-cqhttp.html-6acfb9a1.js","assets/framework-fdb90ab2.js"])),"v-481d3653":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-a1fa94f8.js"),["assets/index.html-a1fa94f8.js","assets/framework-fdb90ab2.js"])),"v-ea1d09f6":defineAsyncComponent(()=>__vitePreload(()=>import("./TRSS_AllBot.html-47f27d87.js"),["assets/TRSS_AllBot.html-47f27d87.js","assets/framework-fdb90ab2.js"])),"v-ebb1ca6c":defineAsyncComponent(()=>__vitePreload(()=>import("./TRSS_OneBot.html-d434d8c9.js"),["assets/TRSS_OneBot.html-d434d8c9.js","assets/framework-fdb90ab2.js"])),"v-3706649a":defineAsyncComponent(()=>__vitePreload(()=>import("./404.html-ce73bdea.js"),["assets/404.html-ce73bdea.js","assets/framework-fdb90ab2.js"])),"v-dc0a553c":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-91dca759.js"),["assets/index.html-91dca759.js","assets/framework-fdb90ab2.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 R=inject(pageFrontmatterSymbol);if(!R)throw new Error("usePageFrontmatter() is called without provider.");return R},pageHeadSymbol=Symbol(""),usePageHead=()=>{const R=inject(pageHeadSymbol);if(!R)throw new Error("usePageHead() is called without provider.");return R},pageHeadTitleSymbol=Symbol(""),pageLangSymbol=Symbol(""),usePageLang=()=>{const R=inject(pageLangSymbol);if(!R)throw new Error("usePageLang() is called without provider.");return R},pageLayoutSymbol=Symbol(""),usePageLayout=()=>{const R=inject(pageLayoutSymbol);if(!R)throw new Error("usePageLayout() is called without provider.");return R},routeLocaleSymbol=Symbol(""),useRouteLocale=()=>{const R=inject(routeLocaleSymbol);if(!R)throw new Error("useRouteLocale() is called without provider.");return R},siteData=ref(siteData$1),useSiteData=()=>siteData,siteLocaleDataSymbol=Symbol(""),useSiteLocaleData=()=>{const R=inject(siteLocaleDataSymbol);if(!R)throw new Error("useSiteLocaleData() is called without provider.");return R},updateHeadSymbol=Symbol(""),LAYOUT_NAME_DEFAULT="Layout",LAYOUT_NAME_NOT_FOUND="NotFound",resolvers=reactive({resolveLayouts:R=>R.reduce((Z,X)=>({...Z,...X.layouts}),{}),resolvePageData:async R=>{const Z=pagesData.value[R];return await(Z==null?void 0:Z())??pageDataEmpty},resolvePageFrontmatter:R=>R.frontmatter,resolvePageHead:(R,Z,X)=>{const ee=isString$1(Z.description)?Z.description:X.description,ne=[...isArray(Z.head)?Z.head:[],...X.head,["title",{},R],["meta",{name:"description",content:ee}]];return dedupeHead(ne)},resolvePageHeadTitle:(R,Z)=>[R.title,Z.title].filter(X=>!!X).join(" | "),resolvePageLang:R=>R.lang||"en",resolvePageLayout:(R,Z)=>{let X;if(R.path){const ee=R.frontmatter.layout;isString$1(ee)?X=ee:X=LAYOUT_NAME_DEFAULT}else X=LAYOUT_NAME_NOT_FOUND;return Z[X]},resolveRouteLocale:(R,Z)=>resolveLocalePath(R,Z),resolveSiteLocaleData:(R,Z)=>({...R,...R.locales[Z]})}),ClientOnly=defineComponent({name:"ClientOnly",setup(R,Z){const X=ref(!1);return onMounted(()=>{X.value=!0}),()=>{var ee,ne;return X.value?(ne=(ee=Z.slots).default)==null?void 0:ne.call(ee):null}}}),Content=defineComponent({name:"Content",props:{pageKey:{type:String,required:!1,default:""}},setup(R){const Z=usePageData(),X=computed(()=>pagesComponents[R.pageKey||Z.value.key]);return()=>X.value?h$4(X.value):h$4("div","404 Not Found")}}),defineClientConfig=(R={})=>R,withBase=R=>isLinkHttp(R)?R:`/${removeLeadingSlash(R)}`;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(R,Z){for(var X=new u16(31),ee=0;ee<31;++ee)X[ee]=Z+=1<>>1|(i$6&21845)<<1;x$4=(x$4&52428)>>>2|(x$4&13107)<<2,x$4=(x$4&61680)>>>4|(x$4&3855)<<4,rev[i$6]=((x$4&65280)>>>8|(x$4&255)<<8)>>>1}var hMap=function(R,Z,X){for(var ee=R.length,ne=0,re=new u16(Z);ne>>tt]=Ce}else for(ie=new u16(ee),ne=0;ne>>15-R[ne]);return ie},flt=new u8(288);for(var i$6=0;i$6<144;++i$6)flt[i$6]=8;for(var i$6=144;i$6<256;++i$6)flt[i$6]=9;for(var i$6=256;i$6<280;++i$6)flt[i$6]=7;for(var i$6=280;i$6<288;++i$6)flt[i$6]=8;var fdt=new u8(32);for(var i$6=0;i$6<32;++i$6)fdt[i$6]=5;var flrm=hMap(flt,9,1),fdrm=hMap(fdt,5,1),max=function(R){for(var Z=R[0],X=1;XZ&&(Z=R[X]);return Z},bits=function(R,Z,X){var ee=Z/8|0;return(R[ee]|R[ee+1]<<8)>>(Z&7)&X},bits16=function(R,Z){var X=Z/8|0;return(R[X]|R[X+1]<<8|R[X+2]<<16)>>(Z&7)},shft=function(R){return(R+7)/8|0},slc=function(R,Z,X){(Z==null||Z<0)&&(Z=0),(X==null||X>R.length)&&(X=R.length);var ee=new(R.BYTES_PER_ELEMENT==2?u16:R.BYTES_PER_ELEMENT==4?u32:u8)(X-Z);return ee.set(R.subarray(Z,X)),ee},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(R,Z,X){var ee=new Error(Z||ec[R]);if(ee.code=R,Error.captureStackTrace&&Error.captureStackTrace(ee,err),!X)throw ee;return ee},inflt=function(R,Z,X){var ee=R.length;if(!ee||X&&X.f&&!X.l)return Z||new u8(0);var ne=!Z||X,re=!X||X.i;X||(X={}),Z||(Z=new u8(ee*3));var se=function(At){var It=Z.length;if(At>It){var Rt=new u8(Math.max(It*2,At));Rt.set(Z),Z=Rt}},ie=X.f||0,tt=X.p||0,Ce=X.b||0,nt=X.l,at=X.d,ot=X.m,rt=X.n,lt=ee*8;do{if(!nt){ie=bits(R,tt,1);var it=bits(R,tt+1,3);if(tt+=3,it)if(it==1)nt=flrm,at=fdrm,ot=9,rt=5;else if(it==2){var vt=bits(R,tt,31)+257,ft=bits(R,tt+10,15)+4,gt=vt+bits(R,tt+5,31)+1;tt+=14;for(var mt=new u8(gt),ct=new u8(19),ut=0;ut>>4;if(st<16)mt[ut++]=st;else{var yt=0,St=0;for(st==16?(St=3+bits(R,tt,3),tt+=2,yt=mt[ut-1]):st==17?(St=3+bits(R,tt,7),tt+=3):st==18&&(St=11+bits(R,tt,127),tt+=7);St--;)mt[ut++]=yt}}var Et=mt.subarray(0,vt),_t=mt.subarray(vt);ot=max(Et),rt=max(_t),nt=hMap(Et,ot,1),at=hMap(_t,rt,1)}else err(1);else{var st=shft(tt)+4,dt=R[st-4]|R[st-3]<<8,pt=st+dt;if(pt>ee){re&&err(0);break}ne&&se(Ce+dt),Z.set(R.subarray(st,pt),Ce),X.b=Ce+=dt,X.p=tt=pt*8,X.f=ie;continue}if(tt>lt){re&&err(0);break}}ne&&se(Ce+131072);for(var Dt=(1<>>4;if(tt+=yt&15,tt>lt){re&&err(0);break}if(yt||err(2),bt<256)Z[Ce++]=bt;else if(bt==256){Pt=tt,nt=null;break}else{var Ot=bt-254;if(bt>264){var ut=bt-257,wt=fleb[ut];Ot=bits(R,tt,(1<>>4;Ct||err(3),tt+=Ct&15;var _t=fd[Lt];if(Lt>3){var wt=fdeb[Lt];_t+=bits16(R,tt)&(1<lt){re&&err(0);break}ne&&se(Ce+131072);for(var kt=Ce+Ot;Ce>>4>7||(R[0]<<8|R[1])%31)&&err(6,"invalid zlib data"),R[1]&32&&err(6,"invalid zlib data: preset dictionaries not supported")};function unzlibSync(R,Z){return inflt((zlv(R),R.subarray(2,-4)),Z)}var te=typeof TextEncoder<"u"&&new TextEncoder,td=typeof TextDecoder<"u"&&new TextDecoder,tds=0;try{td.decode(et,{stream:!0}),tds=1}catch{}var dutf8=function(R){for(var Z="",X=0;;){var ee=R[X++],ne=(ee>127)+(ee>223)+(ee>239);if(X+ne>R.length)return[Z,slc(R,X-1)];ne?ne==3?(ee=((ee&15)<<18|(R[X++]&63)<<12|(R[X++]&63)<<6|R[X++]&63)-65536,Z+=String.fromCharCode(55296|ee>>10,56320|ee&1023)):ne&1?Z+=String.fromCharCode((ee&31)<<6|R[X++]&63):Z+=String.fromCharCode((ee&15)<<12|(R[X++]&63)<<6|R[X++]&63):Z+=String.fromCharCode(ee)}};function strToU8(R,Z){if(Z){for(var X=new u8(R.length),ee=0;ee>1)),se=0,ie=function(nt){re[se++]=nt},ee=0;eere.length){var tt=new u8(se+8+(ne-ee<<1));tt.set(re),re=tt}var Ce=R.charCodeAt(ee);Ce<128||Z?ie(Ce):Ce<2048?(ie(192|Ce>>6),ie(128|Ce&63)):Ce>55295&&Ce<57344?(Ce=65536+(Ce&1023<<10)|R.charCodeAt(++ee)&1023,ie(240|Ce>>18),ie(128|Ce>>12&63),ie(128|Ce>>6&63),ie(128|Ce&63)):(ie(224|Ce>>12),ie(128|Ce>>6&63),ie(128|Ce&63))}return slc(re,0,se)}function strFromU8(R,Z){if(Z){for(var X="",ee=0;ee{var ee;return h$4("svg",{xmlns:"http://www.w3.org/2000/svg",class:["icon",`${R}-icon`],viewBox:"0 0 1024 1024",fill:Z,"aria-label":`${R} icon`},(ee=X.default)==null?void 0:ee.call(X))};c$3.displayName="IconBase";const k$2=({size:R=48,stroke:Z=4,wrapper:X=!0,height:ee=2*R})=>{const ne=h$4("svg",{xmlns:"http://www.w3.org/2000/svg",width:R,height:R,preserveAspectRatio:"xMidYMid",viewBox:"25 25 50 50"},[h$4("animateTransform",{attributeName:"transform",type:"rotate",dur:"2s",keyTimes:"0;1",repeatCount:"indefinite",values:"0;360"}),h$4("circle",{cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":Z,"stroke-linecap":"round"},[h$4("animate",{attributeName:"stroke-dasharray",dur:"1.5s",keyTimes:"0;0.5;1",repeatCount:"indefinite",values:"1,200;90,200;1,200"}),h$4("animate",{attributeName:"stroke-dashoffset",dur:"1.5s",keyTimes:"0;0.5;1",repeatCount:"indefinite",values:"0;-35px;-125px"})])]);return X?h$4("div",{class:"loading-icon-wrapper",style:`display:flex;align-items:center;justify-content:center;height:${ee}px`},ne):ne};k$2.displayName="LoadingIcon";const F$3=(R,{slots:Z})=>{var X;return((X=Z.default)==null?void 0:X.call(Z))||null},I$2=()=>h$4(c$3,{name:"github"},()=>h$4("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"}));I$2.displayName="GitHubIcon";const x$3=()=>h$4(c$3,{name:"gitlab"},()=>h$4("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"}));x$3.displayName="GitLabIcon";const L$3=()=>h$4(c$3,{name:"gitee"},()=>h$4("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"}));L$3.displayName="GiteeIcon";const C$2=()=>h$4(c$3,{name:"bitbucket"},()=>h$4("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"}));C$2.displayName="BitbucketIcon";const z=()=>h$4(c$3,{name:"source"},()=>h$4("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"}));z.displayName="SourceIcon";const d$2=Array.isArray,q$3=R=>typeof R=="function",Y$2=R=>typeof R=="string";var h$3=R=>/^(https?:)?\/\//.test(R),u$2=R=>Object.prototype.toString.call(R)==="[object Object]";const oe=(R,Z)=>{const X=Z?Z._instance:getCurrentInstance();return u$2(X==null?void 0:X.appContext.components)&&(R in X.appContext.components||camelize(R)in X.appContext.components||capitalize(camelize(R))in X.appContext.components)};function ae(){const R=ref(!1);return getCurrentInstance()&&onMounted(()=>{R.value=!0}),R}function ce$1(R){return ae(),computed(()=>!!R())}const $$3=()=>ce$1(()=>typeof window<"u"&&window.navigator&&"userAgent"in window.navigator),le=()=>{const R=$$3();return computed(()=>R.value&&/\b(?:Android|iPhone)/i.test(navigator.userAgent))},ue=R=>{const Z=useRouteLocale();return computed(()=>R[Z.value])},Ee$2=(R="")=>{if(R){if(typeof R=="number")return new Date(R);const Z=Date.parse(R.toString());if(!Number.isNaN(Z))return new Date(Z)}return null},Se=(R,Z)=>{let X=1;for(let ee=0;ee>6;return X+=X<<3,X^=X>>11,X%Z},a$4=R=>typeof R=="string",N=(R,Z)=>a$4(R)&&R.startsWith(Z),Le$1=(R,Z)=>a$4(R)&&R.endsWith(Z),A$1=Object.entries,g$2=Object.keys,f$2=(R,...Z)=>{if(Z.length===0)return R;const X=Z.shift()||null;return X&&A$1(X).forEach(([ee,ne])=>{ee==="__proto__"||ee==="constructor"||(u$2(R[ee])&&u$2(ne)?f$2(R[ee],ne):d$2(ne)?R[ee]=[...ne]:u$2(ne)?R[ee]={...ne}:R[ee]=X[ee])}),f$2(R,...Z)},_=R=>u$2(R)&&a$4(R.name),Me$1=(R,Z=!1)=>R?d$2(R)?R.map(X=>a$4(X)?{name:X}:_(X)?X:null).filter(X=>X!==null):a$4(R)?[{name:R}]:_(R)?[R]:(console.error(`Expect "author" to be \`AuthorInfo[] | AuthorInfo | string[] | string ${Z?"":"| false"} | undefined\`, but got`,R),[]):[],v$3=(R,Z)=>{if(R){if(d$2(R)&&R.every(a$4))return R;if(a$4(R))return[R];console.error(`Expect ${Z||"value"} to be \`string[] | string | undefined\`, but got`,R)}return[]},$e$1=R=>v$3(R,"category"),Ne$1=R=>v$3(R,"tag"),_e$1=R=>N(R,"/"),j$1=/#.*$/u,T$2=R=>{const Z=j$1.exec(R);return Z?Z[0]:""},b$4=R=>decodeURI(R).replace(j$1,"").replace(/(index)?\.(md|html)$/,""),Te=(R,Z)=>{if(Z===void 0)return!1;const X=b$4(R.path),ee=b$4(Z),ne=T$2(Z);return ne?ne===R.hash&&(!ee||X===ee):X===ee},Re$1=R=>{const Z=atob(R);return strFromU8(unzlibSync(strToU8(Z,!0)))},We$1=R=>h$3(R)?R:`https://github.com/${R}`,Oe$1=R=>!h$3(R)||/github\.com/.test(R)?"GitHub":/bitbucket\.org/.test(R)?"Bitbucket":/gitlab\.com/.test(R)?"GitLab":/gitee\.com/.test(R)?"Gitee":null,B$1=(R,...Z)=>{const X=R.resolve(...Z),ee=X.matched[X.matched.length-1];if(!(ee!=null&&ee.redirect))return X;const{redirect:ne}=ee,re=q$3(ne)?ne(X):ne,se=Y$2(re)?{path:re}:re;return B$1(R,{hash:X.hash,query:X.query,params:X.params,...se})};function tryOnScopeDispose$1(R){return getCurrentScope()?(onScopeDispose(R),!0):!1}function toValue(R){return typeof R=="function"?R():unref(R)}const isClient$1=typeof window<"u",noop$1=()=>{},isIOS=getIsIOS();function getIsIOS(){var R;return isClient$1&&((R=window==null?void 0:window.navigator)==null?void 0:R.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function createFilterWrapper$1(R,Z){function X(...ee){return new Promise((ne,re)=>{Promise.resolve(R(()=>Z.apply(this,ee),{fn:Z,thisArg:this,args:ee})).then(ne).catch(re)})}return X}const bypassFilter$1=R=>R();function debounceFilter$1(R,Z={}){let X,ee,ne=noop$1;const re=ie=>{clearTimeout(ie),ne(),ne=noop$1};return ie=>{const tt=toValue(R),Ce=toValue(Z.maxWait);return X&&re(X),tt<=0||Ce!==void 0&&Ce<=0?(ee&&(re(ee),ee=null),Promise.resolve(ie())):new Promise((nt,at)=>{ne=Z.rejectOnCancel?at:nt,Ce&&!ee&&(ee=setTimeout(()=>{X&&re(X),ee=null,nt(ie())},Ce)),X=setTimeout(()=>{ee&&re(ee),ee=null,nt(ie())},tt)})}}function throttleFilter(R,Z=!0,X=!0,ee=!1){let ne=0,re,se=!0,ie=noop$1,tt;const Ce=()=>{re&&(clearTimeout(re),re=void 0,ie(),ie=noop$1)};return at=>{const ot=toValue(R),rt=Date.now()-ne,lt=()=>tt=at();return Ce(),ot<=0?(ne=Date.now(),lt()):(rt>ot&&(X||!se)?(ne=Date.now(),lt()):Z&&(tt=new Promise((it,st)=>{ie=ee?st:it,re=setTimeout(()=>{ne=Date.now(),se=!0,it(lt()),Ce()},Math.max(0,ot-rt))})),!X&&!re&&(re=setTimeout(()=>se=!0,ot)),se=!1,tt)}}function pausableFilter$1(R=bypassFilter$1){const Z=ref(!0);function X(){Z.value=!1}function ee(){Z.value=!0}const ne=(...re)=>{Z.value&&R(...re)};return{isActive:readonly(Z),pause:X,resume:ee,eventFilter:ne}}function toRef(...R){if(R.length!==1)return toRef$1(...R);const Z=R[0];return typeof Z=="function"?readonly(customRef(()=>({get:Z,set:noop$1}))):ref(Z)}function useDebounceFn$1(R,Z=200,X={}){return createFilterWrapper$1(debounceFilter$1(Z,X),R)}function useThrottleFn(R,Z=200,X=!1,ee=!0,ne=!1){return createFilterWrapper$1(throttleFilter(Z,X,ee,ne),R)}function tryOnMounted$1(R,Z=!0){getCurrentInstance()?onMounted(R):Z?R():nextTick(R)}function useTimeoutFn(R,Z,X={}){const{immediate:ee=!0}=X,ne=ref(!1);let re=null;function se(){re&&(clearTimeout(re),re=null)}function ie(){ne.value=!1,se()}function tt(...Ce){se(),ne.value=!0,re=setTimeout(()=>{ne.value=!1,re=null,R(...Ce)},toValue(Z))}return ee&&(ne.value=!0,isClient$1&&tt()),tryOnScopeDispose$1(ie),{isPending:readonly(ne),start:tt,stop:ie}}function useToggle(R=!1,Z={}){const{truthyValue:X=!0,falsyValue:ee=!1}=Z,ne=isRef(R),re=ref(R);function se(ie){if(arguments.length)return re.value=ie,re.value;{const tt=toValue(X);return re.value=re.value===tt?toValue(ee):tt,re.value}}return ne?se:[re,se]}var __getOwnPropSymbols$8=Object.getOwnPropertySymbols,__hasOwnProp$8=Object.prototype.hasOwnProperty,__propIsEnum$8=Object.prototype.propertyIsEnumerable,__objRest$5$1=(R,Z)=>{var X={};for(var ee in R)__hasOwnProp$8.call(R,ee)&&Z.indexOf(ee)<0&&(X[ee]=R[ee]);if(R!=null&&__getOwnPropSymbols$8)for(var ee of __getOwnPropSymbols$8(R))Z.indexOf(ee)<0&&__propIsEnum$8.call(R,ee)&&(X[ee]=R[ee]);return X};function watchWithFilter$1(R,Z,X={}){const ee=X,{eventFilter:ne=bypassFilter$1}=ee,re=__objRest$5$1(ee,["eventFilter"]);return watch(R,createFilterWrapper$1(ne,Z),re)}var __defProp$2$1=Object.defineProperty,__defProps$2$1=Object.defineProperties,__getOwnPropDescs$2$1=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$2$1=Object.getOwnPropertySymbols,__hasOwnProp$2$1=Object.prototype.hasOwnProperty,__propIsEnum$2$1=Object.prototype.propertyIsEnumerable,__defNormalProp$2$1=(R,Z,X)=>Z in R?__defProp$2$1(R,Z,{enumerable:!0,configurable:!0,writable:!0,value:X}):R[Z]=X,__spreadValues$2$1=(R,Z)=>{for(var X in Z||(Z={}))__hasOwnProp$2$1.call(Z,X)&&__defNormalProp$2$1(R,X,Z[X]);if(__getOwnPropSymbols$2$1)for(var X of __getOwnPropSymbols$2$1(Z))__propIsEnum$2$1.call(Z,X)&&__defNormalProp$2$1(R,X,Z[X]);return R},__spreadProps$2$1=(R,Z)=>__defProps$2$1(R,__getOwnPropDescs$2$1(Z)),__objRest$1$1=(R,Z)=>{var X={};for(var ee in R)__hasOwnProp$2$1.call(R,ee)&&Z.indexOf(ee)<0&&(X[ee]=R[ee]);if(R!=null&&__getOwnPropSymbols$2$1)for(var ee of __getOwnPropSymbols$2$1(R))Z.indexOf(ee)<0&&__propIsEnum$2$1.call(R,ee)&&(X[ee]=R[ee]);return X};function watchPausable$1(R,Z,X={}){const ee=X,{eventFilter:ne}=ee,re=__objRest$1$1(ee,["eventFilter"]),{eventFilter:se,pause:ie,resume:tt,isActive:Ce}=pausableFilter$1(ne);return{stop:watchWithFilter$1(R,Z,__spreadProps$2$1(__spreadValues$2$1({},re),{eventFilter:se})),pause:ie,resume:tt,isActive:Ce}}function unrefElement$1(R){var Z;const X=toValue(R);return(Z=X==null?void 0:X.$el)!=null?Z:X}const defaultWindow$1=isClient$1?window:void 0,defaultDocument$1=isClient$1?window.document:void 0,defaultNavigator=isClient$1?window.navigator:void 0;function useEventListener$1(...R){let Z,X,ee,ne;if(typeof R[0]=="string"||Array.isArray(R[0])?([X,ee,ne]=R,Z=defaultWindow$1):[Z,X,ee,ne]=R,!Z)return noop$1;Array.isArray(X)||(X=[X]),Array.isArray(ee)||(ee=[ee]);const re=[],se=()=>{re.forEach(nt=>nt()),re.length=0},ie=(nt,at,ot,rt)=>(nt.addEventListener(at,ot,rt),()=>nt.removeEventListener(at,ot,rt)),tt=watch(()=>[unrefElement$1(Z),toValue(ne)],([nt,at])=>{se(),nt&&re.push(...X.flatMap(ot=>ee.map(rt=>ie(nt,ot,rt,at))))},{immediate:!0,flush:"post"}),Ce=()=>{tt(),se()};return tryOnScopeDispose$1(Ce),Ce}let _iOSWorkaround=!1;function onClickOutside(R,Z,X={}){const{window:ee=defaultWindow$1,ignore:ne=[],capture:re=!0,detectIframe:se=!1}=X;if(!ee)return;isIOS&&!_iOSWorkaround&&(_iOSWorkaround=!0,Array.from(ee.document.body.children).forEach(ot=>ot.addEventListener("click",noop$1)));let ie=!0;const tt=ot=>ne.some(rt=>{if(typeof rt=="string")return Array.from(ee.document.querySelectorAll(rt)).some(lt=>lt===ot.target||ot.composedPath().includes(lt));{const lt=unrefElement$1(rt);return lt&&(ot.target===lt||ot.composedPath().includes(lt))}}),nt=[useEventListener$1(ee,"click",ot=>{const rt=unrefElement$1(R);if(!(!rt||rt===ot.target||ot.composedPath().includes(rt))){if(ot.detail===0&&(ie=!tt(ot)),!ie){ie=!0;return}Z(ot)}},{passive:!0,capture:re}),useEventListener$1(ee,"pointerdown",ot=>{const rt=unrefElement$1(R);rt&&(ie=!ot.composedPath().includes(rt)&&!tt(ot))},{passive:!0}),se&&useEventListener$1(ee,"blur",ot=>{var rt;const lt=unrefElement$1(R);((rt=ee.document.activeElement)==null?void 0:rt.tagName)==="IFRAME"&&!(lt!=null&<.contains(ee.document.activeElement))&&Z(ot)})].filter(Boolean);return()=>nt.forEach(ot=>ot())}function useMounted(){const R=ref(!1);return getCurrentInstance()&&onMounted(()=>{R.value=!0}),R}function useSupported(R){const Z=useMounted();return computed(()=>(Z.value,Boolean(R())))}function useMediaQuery(R,Z={}){const{window:X=defaultWindow$1}=Z,ee=useSupported(()=>X&&"matchMedia"in X&&typeof X.matchMedia=="function");let ne;const re=ref(!1),se=()=>{ne&&("removeEventListener"in ne?ne.removeEventListener("change",ie):ne.removeListener(ie))},ie=()=>{ee.value&&(se(),ne=X.matchMedia(toRef(R).value),re.value=!!(ne!=null&&ne.matches),ne&&("addEventListener"in ne?ne.addEventListener("change",ie):ne.addListener(ie)))};return watchEffect(ie),tryOnScopeDispose$1(()=>se()),re}function useClipboard(R={}){const{navigator:Z=defaultNavigator,read:X=!1,source:ee,copiedDuring:ne=1500,legacy:re=!1}=R,se=["copy","cut"],ie=useSupported(()=>Z&&"clipboard"in Z),tt=computed(()=>ie.value||re),Ce=ref(""),nt=ref(!1),at=useTimeoutFn(()=>nt.value=!1,ne);function ot(){ie.value?Z.clipboard.readText().then(st=>{Ce.value=st}):Ce.value=it()}if(tt.value&&X)for(const st of se)useEventListener$1(st,ot);async function rt(st=toValue(ee)){tt.value&&st!=null&&(ie.value?await Z.clipboard.writeText(st):lt(st),Ce.value=st,nt.value=!0,at.start())}function lt(st){const dt=document.createElement("textarea");dt.value=st??"",dt.style.position="absolute",dt.style.opacity="0",document.body.appendChild(dt),dt.select(),document.execCommand("copy"),dt.remove()}function it(){var st,dt,pt;return(pt=(dt=(st=document==null?void 0:document.getSelection)==null?void 0:st.call(document))==null?void 0:dt.toString())!=null?pt:""}return{isSupported:tt,text:Ce,copied:nt,copy:rt}}const _global$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey$1="__vueuse_ssr_handlers__",handlers$1=getHandlers();function getHandlers(){return globalKey$1 in _global$1||(_global$1[globalKey$1]=_global$1[globalKey$1]||{}),_global$1[globalKey$1]}function getSSRHandler$1(R,Z){return handlers$1[R]||Z}function guessSerializerType$1(R){return R==null?"any":R instanceof Set?"set":R instanceof Map?"map":R instanceof Date?"date":typeof R=="boolean"?"boolean":typeof R=="string"?"string":typeof R=="object"?"object":Number.isNaN(R)?"any":"number"}var __defProp$k$1=Object.defineProperty,__getOwnPropSymbols$n=Object.getOwnPropertySymbols,__hasOwnProp$n=Object.prototype.hasOwnProperty,__propIsEnum$n=Object.prototype.propertyIsEnumerable,__defNormalProp$k$1=(R,Z,X)=>Z in R?__defProp$k$1(R,Z,{enumerable:!0,configurable:!0,writable:!0,value:X}):R[Z]=X,__spreadValues$k$1=(R,Z)=>{for(var X in Z||(Z={}))__hasOwnProp$n.call(Z,X)&&__defNormalProp$k$1(R,X,Z[X]);if(__getOwnPropSymbols$n)for(var X of __getOwnPropSymbols$n(Z))__propIsEnum$n.call(Z,X)&&__defNormalProp$k$1(R,X,Z[X]);return R};const StorageSerializers$1={boolean:{read:R=>R==="true",write:R=>String(R)},object:{read:R=>JSON.parse(R),write:R=>JSON.stringify(R)},number:{read:R=>Number.parseFloat(R),write:R=>String(R)},any:{read:R=>R,write:R=>String(R)},string:{read:R=>R,write:R=>String(R)},map:{read:R=>new Map(JSON.parse(R)),write:R=>JSON.stringify(Array.from(R.entries()))},set:{read:R=>new Set(JSON.parse(R)),write:R=>JSON.stringify(Array.from(R))},date:{read:R=>new Date(R),write:R=>R.toISOString()}},customStorageEventName$1="vueuse-storage";function useStorage$1(R,Z,X,ee={}){var ne;const{flush:re="pre",deep:se=!0,listenToStorageChanges:ie=!0,writeDefaults:tt=!0,mergeDefaults:Ce=!1,shallow:nt,window:at=defaultWindow$1,eventFilter:ot,onError:rt=ut=>{console.error(ut)}}=ee,lt=(nt?shallowRef:ref)(Z);if(!X)try{X=getSSRHandler$1("getDefaultStorage",()=>{var ut;return(ut=defaultWindow$1)==null?void 0:ut.localStorage})()}catch(ut){rt(ut)}if(!X)return lt;const it=toValue(Z),st=guessSerializerType$1(it),dt=(ne=ee.serializer)!=null?ne:StorageSerializers$1[st],{pause:pt,resume:vt}=watchPausable$1(lt,()=>ft(lt.value),{flush:re,deep:se,eventFilter:ot});return at&&ie&&(useEventListener$1(at,"storage",ct),useEventListener$1(at,customStorageEventName$1,mt)),ct(),lt;function ft(ut){try{if(ut==null)X.removeItem(R);else{const ht=dt.write(ut),$t=X.getItem(R);$t!==ht&&(X.setItem(R,ht),at&&at.dispatchEvent(new CustomEvent(customStorageEventName$1,{detail:{key:R,oldValue:$t,newValue:ht,storageArea:X}})))}}catch(ht){rt(ht)}}function gt(ut){const ht=ut?ut.newValue:X.getItem(R);if(ht==null)return tt&&it!==null&&X.setItem(R,dt.write(it)),it;if(!ut&&Ce){const $t=dt.read(ht);return typeof Ce=="function"?Ce($t,it):st==="object"&&!Array.isArray($t)?__spreadValues$k$1(__spreadValues$k$1({},it),$t):$t}else return typeof ht!="string"?ht:dt.read(ht)}function mt(ut){ct(ut.detail)}function ct(ut){if(!(ut&&ut.storageArea!==X)){if(ut&&ut.key==null){lt.value=it;return}if(!(ut&&ut.key!==R)){pt();try{lt.value=gt(ut)}catch(ht){rt(ht)}finally{ut?nextTick(vt):vt()}}}}}function usePreferredDark(R){return useMediaQuery("(prefers-color-scheme: dark)",R)}var __getOwnPropSymbols$l=Object.getOwnPropertySymbols,__hasOwnProp$l=Object.prototype.hasOwnProperty,__propIsEnum$l=Object.prototype.propertyIsEnumerable,__objRest$3=(R,Z)=>{var X={};for(var ee in R)__hasOwnProp$l.call(R,ee)&&Z.indexOf(ee)<0&&(X[ee]=R[ee]);if(R!=null&&__getOwnPropSymbols$l)for(var ee of __getOwnPropSymbols$l(R))Z.indexOf(ee)<0&&__propIsEnum$l.call(R,ee)&&(X[ee]=R[ee]);return X};function useMutationObserver(R,Z,X={}){const ee=X,{window:ne=defaultWindow$1}=ee,re=__objRest$3(ee,["window"]);let se;const ie=useSupported(()=>ne&&"MutationObserver"in ne),tt=()=>{se&&(se.disconnect(),se=void 0)},Ce=watch(()=>unrefElement$1(R),at=>{tt(),ie.value&&ne&&at&&(se=new MutationObserver(Z),se.observe(at,re))},{immediate:!0}),nt=()=>{tt(),Ce()};return tryOnScopeDispose$1(nt),{isSupported:ie,stop:nt}}var __getOwnPropSymbols$g=Object.getOwnPropertySymbols,__hasOwnProp$g=Object.prototype.hasOwnProperty,__propIsEnum$g=Object.prototype.propertyIsEnumerable,__objRest$2=(R,Z)=>{var X={};for(var ee in R)__hasOwnProp$g.call(R,ee)&&Z.indexOf(ee)<0&&(X[ee]=R[ee]);if(R!=null&&__getOwnPropSymbols$g)for(var ee of __getOwnPropSymbols$g(R))Z.indexOf(ee)<0&&__propIsEnum$g.call(R,ee)&&(X[ee]=R[ee]);return X};function useResizeObserver(R,Z,X={}){const ee=X,{window:ne=defaultWindow$1}=ee,re=__objRest$2(ee,["window"]);let se;const ie=useSupported(()=>ne&&"ResizeObserver"in ne),tt=()=>{se&&(se.disconnect(),se=void 0)},Ce=computed(()=>Array.isArray(R)?R.map(ot=>unrefElement$1(ot)):[unrefElement$1(R)]),nt=watch(Ce,ot=>{if(tt(),ie.value&&ne){se=new ResizeObserver(Z);for(const rt of ot)rt&&se.observe(rt,re)}},{immediate:!0,flush:"post",deep:!0}),at=()=>{tt(),nt()};return tryOnScopeDispose$1(at),{isSupported:ie,stop:at}}function useElementSize(R,Z={width:0,height:0},X={}){const{window:ee=defaultWindow$1,box:ne="content-box"}=X,re=computed(()=>{var tt,Ce;return(Ce=(tt=unrefElement$1(R))==null?void 0:tt.namespaceURI)==null?void 0:Ce.includes("svg")}),se=ref(Z.width),ie=ref(Z.height);return useResizeObserver(R,([tt])=>{const Ce=ne==="border-box"?tt.borderBoxSize:ne==="content-box"?tt.contentBoxSize:tt.devicePixelContentBoxSize;if(ee&&re.value){const nt=unrefElement$1(R);if(nt){const at=ee.getComputedStyle(nt);se.value=parseFloat(at.width),ie.value=parseFloat(at.height)}}else if(Ce){const nt=Array.isArray(Ce)?Ce:[Ce];se.value=nt.reduce((at,{inlineSize:ot})=>at+ot,0),ie.value=nt.reduce((at,{blockSize:ot})=>at+ot,0)}else se.value=tt.contentRect.width,ie.value=tt.contentRect.height},X),watch(()=>unrefElement$1(R),tt=>{se.value=tt?Z.width:0,ie.value=tt?Z.height:0}),{width:se,height:ie}}const eventHandlers=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function useFullscreen(R,Z={}){const{document:X=defaultDocument$1,autoExit:ee=!1}=Z,ne=computed(()=>{var it;return(it=unrefElement$1(R))!=null?it:X==null?void 0:X.querySelector("html")}),re=ref(!1),se=computed(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(it=>X&&it in X||ne.value&&it in ne.value)),ie=computed(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(it=>X&&it in X||ne.value&&it in ne.value)),tt=computed(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(it=>X&&it in X||ne.value&&it in ne.value)),Ce=useSupported(()=>ne.value&&X&&se.value!==void 0&&ie.value!==void 0&&tt.value!==void 0),nt=()=>{if(tt.value){if(X&&X[tt.value]!=null)return X[tt.value];{const it=ne.value;if((it==null?void 0:it[tt.value])!=null)return Boolean(it[tt.value])}}return!1};async function at(){if(Ce.value){if(ie.value)if((X==null?void 0:X[ie.value])!=null)await X[ie.value]();else{const it=ne.value;(it==null?void 0:it[ie.value])!=null&&await it[ie.value]()}re.value=!1}}async function ot(){if(!Ce.value)return;nt()&&await at();const it=ne.value;se.value&&(it==null?void 0:it[se.value])!=null&&(await it[se.value](),re.value=!0)}async function rt(){await(re.value?at():ot())}const lt=()=>{re.value=nt()};return useEventListener$1(X,eventHandlers,lt,!1),useEventListener$1(()=>unrefElement$1(ne),eventHandlers,lt,!1),ee&&tryOnScopeDispose$1(at),{isSupported:Ce,isFullscreen:re,enter:ot,exit:at,toggle:rt}}function checkOverflowScroll(R){const Z=window.getComputedStyle(R);if(Z.overflowX==="scroll"||Z.overflowY==="scroll"||Z.overflowX==="auto"&&R.clientHeight1?!0:(Z.preventDefault&&Z.preventDefault(),!1)}function useScrollLock(R,Z=!1){const X=ref(Z);let ee=null,ne;watch(toRef(R),ie=>{if(ie){const tt=ie;ne=tt.style.overflow,X.value&&(tt.style.overflow="hidden")}},{immediate:!0});const re=()=>{const ie=toValue(R);!ie||X.value||(isIOS&&(ee=useEventListener$1(ie,"touchmove",tt=>{preventDefault(tt)},{passive:!1})),ie.style.overflow="hidden",X.value=!0)},se=()=>{const ie=toValue(R);!ie||!X.value||(isIOS&&(ee==null||ee()),ie.style.overflow=ne,X.value=!1)};return tryOnScopeDispose$1(se),computed({get(){return X.value},set(ie){ie?re():se()}})}let _id$1=0;function useStyleTag$1(R,Z={}){const X=ref(!1),{document:ee=defaultDocument$1,immediate:ne=!0,manual:re=!1,id:se=`vueuse_styletag_${++_id$1}`}=Z,ie=ref(R);let tt=()=>{};const Ce=()=>{if(!ee)return;const at=ee.getElementById(se)||ee.createElement("style");at.isConnected||(at.type="text/css",at.id=se,Z.media&&(at.media=Z.media),ee.head.appendChild(at)),!X.value&&(tt=watch(ie,ot=>{at.textContent=ot},{immediate:!0}),X.value=!0)},nt=()=>{!ee||!X.value||(tt(),ee.head.removeChild(ee.getElementById(se)),X.value=!1)};return ne&&!re&&tryOnMounted$1(Ce),re||tryOnScopeDispose$1(nt),{id:se,css:ie,unload:nt,load:Ce,isLoaded:readonly(X)}}function useWindowScroll({window:R=defaultWindow$1}={}){if(!R)return{x:ref(0),y:ref(0)};const Z=ref(R.scrollX),X=ref(R.scrollY);return useEventListener$1(R,"scroll",()=>{Z.value=R.scrollX,X.value=R.scrollY},{capture:!1,passive:!0}),{x:Z,y:X}}function useWindowSize(R={}){const{window:Z=defaultWindow$1,initialWidth:X=1/0,initialHeight:ee=1/0,listenOrientation:ne=!0,includeScrollbar:re=!0}=R,se=ref(X),ie=ref(ee),tt=()=>{Z&&(re?(se.value=Z.innerWidth,ie.value=Z.innerHeight):(se.value=Z.document.documentElement.clientWidth,ie.value=Z.document.documentElement.clientHeight))};if(tt(),tryOnMounted$1(tt),useEventListener$1("resize",tt,{passive:!0}),ne){const Ce=useMediaQuery("(orientation: portrait)");watch(Ce,()=>tt())}return{width:se,height:ie}}const fontIcon="";var m$5=defineComponent({name:"FontIcon",props:{icon:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""}},setup(R){const Z=computed(()=>{const ee=["font-icon icon"],ne=`iconfont icon-${R.icon}`;return ee.push(ne),ee}),X=computed(()=>{const ee={};return R.color&&(ee.color=R.color),R.size&&(ee["font-size"]=Number.isNaN(Number(R.size))?R.size:`${R.size}px`),g$2(ee).length?ee:null});return()=>R.icon?h$4("span",{key:R.icon,class:Z.value,style:X.value}):null}});const badge="",t$5=({type:R="info",text:Z="",vertical:X="top",color:ee},{slots:ne})=>{var re;return h$4("span",{class:["badge",R,{diy:ee}],style:{verticalAlign:X,...ee?{backgroundColor:ee}:{}}},Z||((re=ne.default)==null?void 0:re.call(ne)))};t$5.displayName="Badge";const biliBili="",e$6="accelerometer; autoplay; clipboard-write; encrypted-media; fullscreen; gyroscope; picture-in-picture",h$2=R=>isString$1(R)?R:`${R}px`,x$2=(R,Z=0)=>{const X=ref(),ee=computed(()=>h$2(unref(R.width)||"100%")),ne=ref("auto"),re=tt=>{if(isString$1(tt)){const[Ce,nt]=tt.split(":"),at=Number(Ce)/Number(nt);if(!Number.isNaN(at))return at}return typeof tt=="number"?tt:16/9},se=tt=>{const Ce=unref(R.height),nt=re(unref(R.ratio));return Ce?h$2(Ce):`${Number(tt)/nt+unref(Z)}px`},ie=()=>{X.value&&(ne.value=se(X.value.clientWidth))};return onMounted(()=>{ie(),isRef(Z)&&watch(Z,()=>ie()),useEventListener$1("orientationchange",()=>ie()),useEventListener$1("resize",()=>ie())}),{el:X,width:ee,height:ne}},p="https://player.bilibili.com/player.html";var c$2=defineComponent({name:"BiliBili",props:{bvid:{type:String,default:""},aid:{type:String,default:""},cid:{type:String,default:""},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},autoplay:Boolean},setup(R){const{el:Z,width:X,height:ee}=x$2(R),ne=computed(()=>{const{aid:re,bvid:se,cid:ie,autoplay:tt,time:Ce,page:nt}=R;return re&&ie?`${p}?aid=${re}&cid=${ie}&t=${Ce}&autoplay=${tt?1:0}&page=${nt}`:se?`${p}?bvid=${se}&t=${Ce}&autoplay=${tt?1:0}`:null});return()=>ne.value?[h$4("div",{class:"bili-desc"},h$4("a",{class:"sr-only",href:ne.value},R.title)),h$4("iframe",{ref:Z,src:ne.value,title:R.title,class:"bili-iframe",allow:e$6,style:{width:X.value,height:ee.value}})]:null}});const l$4=()=>h$4(c$3,{name:"back-to-top"},()=>[h$4("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$4("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"})]);l$4.displayName="BackToTopIcon";const balloon="",backToTop="";var y$1=defineComponent({name:"BackToTop",props:{threshold:{type:Number,default:100},noProgress:Boolean},setup(R){const Z=usePageFrontmatter(),X=ue({"/":{backToTop:"返回顶部"}}),ee=ref(),{height:ne}=useElementSize(ee),{height:re}=useWindowSize(),{y:se}=useWindowScroll(),ie=computed(()=>Z.value.backToTop!==!1&&se.value>R.threshold),tt=computed(()=>se.value/(ne.value-re.value));return onMounted(()=>{ee.value=document.body}),()=>h$4(Transition,{name:"fade"},()=>ie.value?h$4("button",{type:"button",class:"back-to-top","aria-label":X.value.backToTop,"data-balloon-pos":"left",onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})}},[R.noProgress?null:h$4("svg",{class:"scroll-progress"},h$4("circle",{cx:"50%",cy:"50%",r:"48%",style:{"stroke-dasharray":`${Math.PI*tt.value*100}% ${Math.PI*100}%`}})),h$4(l$4)]):null)}});const srOnly="",clientConfig1=defineClientConfig({enhance:({app:R})=>{oe("FontIcon")||R.component("FontIcon",m$5),oe("Badge")||R.component("Badge",t$5),oe("BiliBili")||R.component("BiliBili",c$2)},setup:()=>{useStyleTag$1(` @import url("https://at.alicdn.com/t/c/font_2410206_5vb9zlyghj.css"); `)},rootComponents:[()=>h$4(y$1,{})]});function r$3(R,Z,X){var ee,ne,re;Z===void 0&&(Z=50),X===void 0&&(X={});var se=(ee=X.isImmediate)!=null&&ee,ie=(ne=X.callback)!=null&&ne,tt=X.maxWait,Ce=Date.now(),nt=[];function at(){if(tt!==void 0){var rt=Date.now()-Ce;if(rt+Z>=tt)return tt-rt}return Z}var ot=function(){var rt=[].slice.call(arguments),lt=this;return new Promise(function(it,st){var dt=se&&re===void 0;if(re!==void 0&&clearTimeout(re),re=setTimeout(function(){if(re=void 0,Ce=Date.now(),!se){var vt=R.apply(lt,rt);ie&&ie(vt),nt.forEach(function(ft){return(0,ft.resolve)(vt)}),nt=[]}},at()),dt){var pt=R.apply(lt,rt);return ie&&ie(pt),it(pt)}nt.push({resolve:it,reject:st})})};return ot.cancel=function(rt){re!==void 0&&clearTimeout(re),nt.forEach(function(lt){return(0,lt.reject)(rt)}),nt=[]},ot}const useActiveHeaderLinks=({headerLinkSelector:R,headerAnchorSelector:Z,delay:X,offset:ee=5})=>{const ne=useRouter(),se=r$3(()=>{var it,st;const ie=Math.max(window.scrollY,document.documentElement.scrollTop,document.body.scrollTop);if(Math.abs(ie-0)ot.some(pt=>pt.hash===dt.hash));for(let dt=0;dt=(((it=pt.parentElement)==null?void 0:it.offsetTop)??0)-ee,gt=!vt||ie<(((st=vt.parentElement)==null?void 0:st.offsetTop)??0)-ee;if(!(ft&>))continue;const ct=decodeURIComponent(ne.currentRoute.value.hash),ut=decodeURIComponent(pt.hash);if(ct===ut)return;if(at){for(let ht=dt+1;ht{window.addEventListener("scroll",se)}),onBeforeUnmount(()=>{window.removeEventListener("scroll",se)})},updateHash=async(R,Z)=>{const{scrollBehavior:X}=R.options;R.options.scrollBehavior=void 0,await R.replace({query:R.currentRoute.value.query,hash:Z,force:!0}).finally(()=>R.options.scrollBehavior=X)},headerLinkSelector=".sidebar-link, .toc-link",headerAnchorSelector=".header-anchor",delay=200,offset=5,clientConfig2=defineClientConfig({setup(){useActiveHeaderLinks({headerLinkSelector,headerAnchorSelector,delay,offset})}}),autoCatalog="";var D=defineComponent({name:"AutoCatalog",props:{base:{type:String,default:""},level:{type:Number,default:3},index:Boolean},setup(R,{slots:Z}){const X=ue({"/":{title:"目录"}}),ee=usePageData(),ne=useRouter(),re=useSiteData(),se=Ce=>{const nt=Ce.I;return typeof nt>"u"||nt},ie=()=>{const Ce=R.base||ee.value.path.replace(/\/[^/]+$/,"/"),nt=ne.getRoutes(),at=[];return nt.filter(({meta:ot,path:rt})=>{if(!N(rt,Ce)||rt===Ce)return!1;if(Ce==="/"){const lt=g$2(re.value.locales).filter(it=>it!=="/");if(rt==="/404.html"||lt.some(it=>N(rt,it)))return!1}return(Le$1(rt,".html")&&!Le$1(rt,"/index.html")||Le$1(rt,"/"))&&se(ot)}).map(({path:ot,meta:rt})=>{const lt=ot.substring(Ce.length).split("/").length;return{title:rt.t||"",icon:rt.i,base:ot.replace(/\/[^/]+\/?$/,"/"),order:rt.O||null,level:Le$1(ot,"/")?lt-1:lt,path:ot}}).filter(({title:ot,level:rt})=>typeof ot=="string"&&ot&&rt<=R.level).sort(({title:ot,level:rt,path:lt,order:it},{title:st,level:dt,path:pt,order:vt})=>rt-dt||(Le$1(lt,"/index.html")?-1:Le$1(pt,"/index.html")?1:it===null?vt===null?ot.localeCompare(st):vt:vt===null?it:it>0?vt>0?it-vt:-1:vt<0?it-vt:1)).forEach(ot=>{var rt;const{base:lt,level:it}=ot;switch(it){case 1:at.push(ot);break;case 2:{const st=at.find(dt=>dt.path===lt);st&&(st.children??(st.children=[])).push(ot);break}default:{const st=at.find(dt=>dt.path===lt.replace(/\/[^/]+\/$/,"/"));if(st){const dt=(rt=st.children)==null?void 0:rt.find(pt=>pt.path===lt);dt&&(dt.children??(dt.children=[])).push(ot)}}}}),at},tt=computed(()=>ie());return()=>h$4("div",{class:"auto-catalog-wrapper"},[h$4("h2",{class:"main-title"},X.value.title),tt.value.map(({children:Ce=[],icon:nt,path:at,title:ot},rt)=>[h$4("h3",{id:ot,class:["child-title",{"has-children":Ce.length}]},[h$4("a",{href:`#${ot}`,class:"header-anchor"},"#"),h$4(RouterLink,{class:"catalog-title",to:at},()=>[R.index?`${rt+1}.`:null,nt&&Z.icon?Z.icon({icon:nt}):null,ot||"Unknown"])]),Ce.length?h$4("ul",{class:"child-catalog-wrapper"},Ce.map(({children:lt=[],icon:it,path:st,title:dt},pt)=>h$4("li",{class:"child-catalog-item"},[h$4("div",{class:["sub-title",{"has-children":lt.length}]},[h$4("a",{href:`#${dt}`,class:"header-anchor"},"#"),h$4(RouterLink,{class:"catalog-title",to:st},()=>[R.index?`${rt+1}.${pt+1}`:null,it&&Z.icon?Z.icon({icon:it}):null,dt||"Unknown"])]),lt.length?h$4("div",{class:"sub-catalog-wrapper"},lt.map(({icon:vt,path:ft,title:gt},mt)=>h$4(RouterLink,{class:"sub-catalog-item",to:ft},()=>[R.index?`${rt+1}.${pt+1}.${mt+1}`:null,vt&&Z.icon?Z.icon({icon:vt}):null,gt||"Unknown"]))):null]))):null])])}}),K$1=defineClientConfig({enhance:({app:R})=>{oe("AutoCatalog",R)||R.component("AutoCatalog",Z=>h$4(D,Z,{icon:({icon:X})=>h$4(resolveComponent("HopeIcon"),{icon:X})}))}});const vars$1="",externalLinkIcon="",svg=h$4("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$4("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$4("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(R){const Z=useRouteLocale(),X=computed(()=>R.locales[Z.value]??{openInNewWindow:"open in new window"});return()=>h$4("span",[svg,h$4("span",{class:"external-link-icon-sr-only"},X.value.openInNewWindow)])}}),locales={},clientConfig4=defineClientConfig({enhance({app:R}){R.component("ExternalLinkIcon",h$4(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:'
'},status:null,set:R=>{const Z=nprogress$1.isStarted();R=clamp(R,nprogress$1.settings.minimum,1),nprogress$1.status=R===1?null:R;const X=nprogress$1.render(!Z),ee=X.querySelector(nprogress$1.settings.barSelector),ne=nprogress$1.settings.speed,re=nprogress$1.settings.easing;return X.offsetWidth,queue(se=>{css(ee,{transform:"translate3d("+toBarPerc(R)+"%,0,0)",transition:"all "+ne+"ms "+re}),R===1?(css(X,{transition:"none",opacity:"1"}),X.offsetWidth,setTimeout(function(){css(X,{transition:"all "+ne+"ms linear",opacity:"0"}),setTimeout(function(){nprogress$1.remove(),se()},ne)},ne)):setTimeout(()=>se(),ne)}),nprogress$1},isStarted:()=>typeof nprogress$1.status=="number",start:()=>{nprogress$1.status||nprogress$1.set(0);const R=()=>{setTimeout(()=>{nprogress$1.status&&(nprogress$1.trickle(),R())},nprogress$1.settings.trickleSpeed)};return nprogress$1.settings.trickle&&R(),nprogress$1},done:R=>!R&&!nprogress$1.status?nprogress$1:nprogress$1.inc(.3+.5*Math.random()).set(1),inc:R=>{let Z=nprogress$1.status;return Z?(typeof R!="number"&&(R=(1-Z)*clamp(Math.random()*Z,.1,.95)),Z=clamp(Z+R,0,.994),nprogress$1.set(Z)):nprogress$1.start()},trickle:()=>nprogress$1.inc(Math.random()*nprogress$1.settings.trickleRate),render:R=>{if(nprogress$1.isRendered())return document.getElementById("nprogress");addClass(document.documentElement,"nprogress-busy");const Z=document.createElement("div");Z.id="nprogress",Z.innerHTML=nprogress$1.settings.template;const X=Z.querySelector(nprogress$1.settings.barSelector),ee=R?"-100":toBarPerc(nprogress$1.status||0),ne=document.querySelector(nprogress$1.settings.parent);return css(X,{transition:"all 0 linear",transform:"translate3d("+ee+"%,0,0)"}),ne!==document.body&&addClass(ne,"nprogress-custom-parent"),ne==null||ne.appendChild(Z),Z},remove:()=>{removeClass(document.documentElement,"nprogress-busy"),removeClass(document.querySelector(nprogress$1.settings.parent),"nprogress-custom-parent");const R=document.getElementById("nprogress");R&&removeElement(R)},isRendered:()=>!!document.getElementById("nprogress")},clamp=(R,Z,X)=>RX?X:R,toBarPerc=R=>(-1+R)*100,queue=function(){const R=[];function Z(){const X=R.shift();X&&X(Z)}return function(X){R.push(X),R.length===1&&Z()}}(),css=function(){const R=["Webkit","O","Moz","ms"],Z={};function X(se){return se.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(ie,tt){return tt.toUpperCase()})}function ee(se){const ie=document.body.style;if(se in ie)return se;let tt=R.length;const Ce=se.charAt(0).toUpperCase()+se.slice(1);let nt;for(;tt--;)if(nt=R[tt]+Ce,nt in ie)return nt;return se}function ne(se){return se=X(se),Z[se]||(Z[se]=ee(se))}function re(se,ie,tt){ie=ne(ie),se.style[ie]=tt}return function(se,ie){for(const tt in ie){const Ce=ie[tt];Ce!==void 0&&Object.prototype.hasOwnProperty.call(ie,tt)&&re(se,tt,Ce)}}}(),hasClass=(R,Z)=>(typeof R=="string"?R:classList(R)).indexOf(" "+Z+" ")>=0,addClass=(R,Z)=>{const X=classList(R),ee=X+Z;hasClass(X,Z)||(R.className=ee.substring(1))},removeClass=(R,Z)=>{const X=classList(R);if(!hasClass(R,Z))return;const ee=X.replace(" "+Z+" "," ");R.className=ee.substring(1,ee.length-1)},classList=R=>(" "+(R.className||"")+" ").replace(/\s+/gi," "),removeElement=R=>{R&&R.parentNode&&R.parentNode.removeChild(R)},vars="",nprogress="",useNprogress=()=>{onMounted(()=>{const R=useRouter(),Z=new Set;Z.add(R.currentRoute.value.path),R.beforeEach(X=>{Z.has(X.path)||nprogress$1.start()}),R.afterEach(X=>{Z.add(X.path),nprogress$1.done()})})},clientConfig5=defineClientConfig({setup(){useNprogress()}}),themeData$1=JSON.parse('{"encrypt":{},"author":{"name":"时雨🌌星空","url":"https://github.com/TimeRainStarSky"},"logo":"苏半夏Q.png","logoDark":"苏半夏QD.png","repo":"TimeRainStarSky/TRSS_Script","docsDir":"docs","docsBranch":"","pageInfo":["Author","Original","Date","Category","Tag","ReadingTime","Word","PageView"],"fullscreen":true,"themeColor":{"blue":"#2196f3","red":"#f26d6d","green":"#3eaf7c","orange":"#fb9b5f"},"locales":{"/":{"lang":"zh-CN","navbarLocales":{"langName":"简体中文","selectLangAriaLabel":"选择语言"},"metaLocales":{"author":"作者","date":"写作日期","origin":"原创","views":"访问量","category":"分类","tag":"标签","readingTime":"阅读时间","words":"字数","toc":"此页内容","prev":"上一页","next":"下一页","lastUpdated":"上次编辑于","contributors":"贡献者","editLink":"编辑此页","print":"打印"},"outlookLocales":{"themeColor":"主题色","darkmode":"外观","fullscreen":"全屏"},"encryptLocales":{"iconLabel":"文章已加密","placeholder":"输入密码","remember":"记住密码","errorHint":"请输入正确的密码"},"routeLocales":{"skipToContent":"跳至主要內容","notFoundTitle":"页面不存在","notFoundMsg":["这里什么也没有","我们是怎么来到这儿的?","这 是 四 零 四 !","看起来你访问了一个失效的链接"],"back":"返回上一页","home":"带我回家","openInNewWindow":"Open in new window"},"navbar":["/",{"text":"🌌 TRSS","link":"https://TRSS.me"},{"text":"▲ Vercel","link":"https://TRSS-Script.Vercel.app"},{"text":"GitHub","icon":"github","link":"https://TimeRainStarSky.GitHub.io/TRSS_Script"},{"text":"Gitee","icon":"gitee","link":"https://Gitee.com/TimeRainStarSky/TRSS_Script"}],"sidebar":{"/":["",{"text":"安装教程","icon":"config","link":"Install/","prefix":"Install/","collapsible":true,"children":[{"text":"Windows","icon":"windows","link":"Windows.md","collapsible":true,"children":[{"text":"MSYS2","icon":"page","link":"MSYS2.md"},{"text":"ArchWSL","icon":"page","link":"ArchWSL.md"},{"text":"Docker","icon":"page","link":"Docker.md"}]},{"text":"Mac","icon":"discover","link":"Mac.md","collapsible":true,"children":[{"text":"Docker","icon":"page","link":"Docker.md"}]},{"text":"Linux","icon":"linux","link":"Linux.md","collapsible":true,"children":[{"text":"Docker","icon":"page","link":"Docker.md"},{"text":"TMOE","icon":"page","link":"TMOE.md"}]},{"text":"Android","icon":"android","link":"Android.md","collapsible":true,"children":[{"text":"MT管理器","icon":"page","link":"MTArch.md"},{"text":"TMOE","icon":"page","link":"TMOE.md"},{"text":"vmConsole","icon":"page","link":"vmConsole.md"}]},{"text":"Arch Linux","icon":"page","link":"Arch_Linux.md"}]},{"text":"使用教程","icon":"guide","link":"Guide/","prefix":"Guide/","collapsible":true,"children":[{"text":"脚本功能","icon":"guide","collapsible":true,"children":[{"text":"CLI 使用教程","icon":"shell","prefix":"CLI/","collapsible":true,"children":"structure"},{"text":"TUI 使用教程","icon":"window","prefix":"TUI/","collapsible":true,"children":"structure"},{"text":"常用命令","icon":"command","link":"Command.md"}]},{"text":"项目功能","icon":"creative","prefix":"Project/","collapsible":true,"children":"structure"}]}]},"footer":"TRSS 脚本 使用文档","displayFooter":true}}}'),themeData=ref(themeData$1),useThemeData=()=>themeData,themeLocaleDataSymbol=Symbol(""),useThemeLocaleData=()=>{const R=inject(themeLocaleDataSymbol);if(!R)throw new Error("useThemeLocaleData() is called without provider.");return R},resolveThemeLocaleData=(R,Z)=>{var X;return{...R,...(X=R.locales)==null?void 0:X[Z]}},clientConfig6=defineClientConfig({enhance({app:R}){const Z=useThemeData(),X=R._context.provides[routeLocaleSymbol],ee=computed(()=>resolveThemeLocaleData(Z.value,X.value));R.provide(themeLocaleDataSymbol,ee),Object.defineProperties(R.config.globalProperties,{$theme:{get(){return Z.value}},$themeLocale:{get(){return ee.value}}})}}),t$4={"Content-Type":"application/json"},n$3=({serverURL:R,lang:Z,paths:X,signal:ee})=>(({serverURL:ne,lang:re,paths:se,type:ie,signal:tt})=>fetch(`${ne}/article?path=${encodeURIComponent(se.join(","))}&type=${encodeURIComponent(ie.join(","))}&lang=${re}`,{signal:tt}).then(Ce=>Ce.json()))({serverURL:R,lang:Z,paths:X,type:["time"],signal:ee}).then(ne=>Array.isArray(ne)?ne:[ne]),a$3=R=>(({serverURL:Z,lang:X,path:ee,type:ne,action:re})=>fetch(`${Z}/article?lang=${X}`,{method:"POST",headers:t$4,body:JSON.stringify({path:ee,type:ne,action:re})}).then(se=>se.json()))({...R,type:"time",action:"inc"}),r$2=R=>{const Z=((X="")=>X.replace(/\/$/u,""))(R);return/^(https?:)?\/\//.test(Z)?Z:`https://${Z}`},o$3=R=>{R.name!=="AbortError"&&console.error(R.message)},l$3=R=>R.dataset.path||R.getAttribute("id"),s$3=(R,Z)=>{Z.forEach((X,ee)=>{X.innerText=R[ee].toString()})},i$5=({serverURL:R,path:Z=window.location.pathname,selector:X=".waline-pageview-count",update:ee=!0,lang:ne=navigator.language})=>{const re=new AbortController,se=Array.from(document.querySelectorAll(X)),ie=Ce=>{const nt=l$3(Ce);return nt!==null&&Z!==nt},tt=Ce=>n$3({serverURL:r$2(R),paths:Ce.map(nt=>l$3(nt)||Z),lang:ne,signal:re.signal}).then(nt=>s$3(nt,Ce)).catch(o$3);if(ee){const Ce=se.filter(at=>!ie(at)),nt=se.filter(ie);a$3({serverURL:r$2(R),path:Z,lang:ne}).then(at=>s$3(new Array(Ce.length).fill(at),Ce)),nt.length&&tt(nt)}else tt(se);return re.abort.bind(re)},waline$1="",waline="",e$5={provider:"Waline",dark:'html[data-theme="dark"]',serverURL:"https://Waline.TRSS.me",login:"force",reaction:!0,pageview:!0},I$1={"/":{placeholder:"请留言。(填写邮箱可在被回复时收到邮件提醒)"}};__vitePreload(()=>import("./waline-meta-a31b78ed.js"),[]);var M$1=defineComponent({name:"WalineComment",setup(){const R=usePageData(),Z=usePageFrontmatter(),X=usePageLang(),ee=ue(I$1);let ne;const re=computed(()=>{const Ce=e$5.comment!==!1,nt=Z.value.comment;return!!nt||Ce!==!1&&nt!==!1}),se=computed(()=>{const Ce=e$5.pageview!==!1,nt=Z.value.pageview;return!!nt||Ce!==!1&&nt!==!1}),ie=computed(()=>withBase(R.value.path)),tt=computed(()=>({lang:X.value==="zh-CN"?"zh-CN":"en",locale:ee.value,dark:"html.dark",...e$5,path:ie.value}));return onMounted(()=>{watch(ie,()=>{ne==null||ne(),se.value&&nextTick().then(()=>{setTimeout(()=>{ne=i$5({serverURL:e$5.serverURL,path:ie.value})},e$5.delay||800)})},{immediate:!0})}),()=>re.value?h$4("div",{class:"waline-wrapper",id:"comment"},h$4(defineAsyncComponent({loader:async()=>(await __vitePreload(()=>import("./component-b7c5def6.js"),["assets/component-b7c5def6.js","assets/framework-fdb90ab2.js"])).Waline,loadingComponent:k$2}),tt.value)):null}});const i$4={provider:"Waline",dark:'html[data-theme="dark"]',serverURL:"https://Waline.TRSS.me",login:"force",reaction:!0,pageview:!0}.comment!==!1,d$1=defineComponent({name:"CommentService",props:{darkmode:Boolean},setup(R){const Z=usePageFrontmatter(),X=computed(()=>Z.value.comment||i$4&&Z.value.comment!==!1);return()=>h$4(M$1,{darkmode:R.darkmode,style:{display:X.value?"block":"none"}})}});var l$2=defineClientConfig({enhance:({app:R})=>{R.component("CommentService",d$1)}});const button="",S$3=800,u$1=2e3,M={"/":{copy:"复制代码",copied:"已复制",hint:"复制成功"}},n$2=!1,P$1=['.theme-hope-content div[class*="language-"] pre'],m$4=!0,l$1=new Map,T$1=()=>{const{copy:R}=useClipboard({legacy:!0}),Z=ue(M),X=usePageData(),ee=le(),ne=ie=>{if(!ie.hasAttribute("copy-code-registered")){const tt=document.createElement("button");tt.type="button",tt.classList.add("copy-code-button"),tt.innerHTML='
',tt.setAttribute("aria-label",Z.value.copy),tt.setAttribute("data-copied",Z.value.copied),ie.parentElement&&ie.parentElement.insertBefore(tt,ie),ie.setAttribute("copy-code-registered","")}},re=()=>nextTick().then(()=>new Promise(ie=>{setTimeout(()=>{P$1.forEach(tt=>{document.querySelectorAll(tt).forEach(ne)}),ie()},S$3)})),se=(ie,tt,Ce)=>{let{innerText:nt=""}=tt;/language-(shellscript|shell|bash|sh|zsh)/.test(ie.classList.toString())&&(nt=nt.replace(/^ *(\$|>) /gm,"")),R(nt).then(()=>{Ce.classList.add("copied"),clearTimeout(l$1.get(Ce));const at=setTimeout(()=>{Ce.classList.remove("copied"),Ce.blur(),l$1.delete(Ce)},u$1);l$1.set(Ce,at)})};onMounted(()=>{(!ee.value||m$4)&&re(),useEventListener$1("click",ie=>{const tt=ie.target;if(tt.matches('div[class*="language-"] > button.copy')){const Ce=tt.parentElement,nt=tt.nextElementSibling;nt&&se(Ce,nt,tt)}else if(tt.matches('div[class*="language-"] div.copy-icon')){const Ce=tt.parentElement,nt=Ce.parentElement,at=Ce.nextElementSibling;at&&se(nt,at,Ce)}}),watch(()=>X.value.path,()=>{(!ee.value||m$4)&&re()})})};var Y$1=defineClientConfig({setup:()=>{T$1()}});const chart="",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(R){const Z=ref(),X=ref(),ee=ref(!0);return onMounted(async()=>{const[{default:ne}]=await Promise.all([__vitePreload(()=>import("./auto-ba5ecab5.js"),[]),new Promise(ie=>setTimeout(ie,800))]);ne.defaults.maintainAspectRatio=!1;const re=parseChartConfig(Re$1(R.config),R.type),se=X.value.getContext("2d");new ne(se,re),ee.value=!1}),()=>[R.title?h$4("div",{class:"chart-title"},decodeURIComponent(R.title)):null,ee.value?h$4(k$2,{class:"chart-loading",height:192}):null,h$4("div",{ref:Z,class:"chart-wrapper",id:R.id,style:{display:ee.value?"none":"block"}},h$4("canvas",{ref:X,height:400}))]}});const codeTabs="",o$2=useStorage$1("VUEPRESS_CODE_TAB_STORE",{});var S$2=defineComponent({name:"CodeTabs",props:{active:{type:Number,default:0},data:{type:Array,required:!0},id:{type:String,required:!0},tabId:{type:String,default:""}},setup(R,{slots:Z}){const X=ref(R.active),ee=ref([]),ne=()=>{if(R.tabId){const{title:Ce,id:nt=Ce}=R.data[X.value];o$2.value[R.tabId]=nt}},re=(Ce=X.value)=>{X.value=Ce{X.value=Ce>0?Ce-1:ee.value.length-1,ee.value[X.value].focus()},ie=(Ce,nt)=>{if(Ce.key===" "||Ce.key==="Enter"?(Ce.preventDefault(),X.value=nt):Ce.key==="ArrowRight"?(Ce.preventDefault(),re()):Ce.key==="ArrowLeft"&&(Ce.preventDefault(),se()),R.tabId){const{title:at,id:ot=at}=R.data[X.value];o$2.value[R.tabId]=ot}},tt=()=>{if(R.tabId){const Ce=R.data.findIndex(({title:nt,id:at=nt})=>o$2.value[R.tabId]===at);if(Ce!==-1)return Ce}return R.active};return onMounted(()=>{X.value=tt(),watch(()=>o$2.value[R.tabId],(Ce,nt)=>{if(R.tabId&&Ce!==nt){const at=R.data.findIndex(({title:ot,id:rt=ot})=>rt===Ce);at!==-1&&(X.value=at)}})}),()=>R.data.length?h$4("div",{class:"code-tabs"},[h$4("div",{class:"code-tabs-nav",role:"tablist"},R.data.map(({title:Ce},nt)=>{const at=nt===X.value;return h$4("button",{type:"button",ref:ot=>{ot&&(ee.value[nt]=ot)},class:["code-tabs-nav-tab",{active:at}],role:"tab","aria-controls":`codetab-${R.id}-${nt}`,"aria-selected":at,onClick:()=>{X.value=nt,ne()},onKeydown:ot=>ie(ot,nt)},Ce)})),R.data.map(({title:Ce,id:nt=Ce},at)=>{var ot;const rt=at===X.value;return h$4("div",{class:["code-tab",{active:rt}],id:`codetab-${R.id}-${at}`,role:"tabpanel","aria-expanded":rt},(ot=Z[`tab${at}`])==null?void 0:ot.call(Z,{title:Ce,value:nt,isActive:rt}))})]):null}});const codeGroup="",c$1=({active:R=!1},{slots:Z})=>{var X;return h$4("div",{class:["code-group-item",{active:R}],"aria-selected":R},(X=Z.default)==null?void 0:X.call(Z))};c$1.displayName="CodeGroupItem";const h$1=defineComponent({name:"CodeGroup",setup(R,{slots:Z}){const X=ref(-1),ee=ref([]),ne=(ie=X.value)=>{X.value=ie{X.value=ie>0?ie-1:ee.value.length-1,ee.value[X.value].focus()},se=(ie,tt)=>{ie.key===" "||ie.key==="Enter"?(ie.preventDefault(),X.value=tt):ie.key==="ArrowRight"?(ie.preventDefault(),ne(tt)):ie.key==="ArrowLeft"&&(ie.preventDefault(),re(tt))};return()=>{var ie;const tt=(((ie=Z.default)==null?void 0:ie.call(Z))||[]).filter(Ce=>Ce.type.name==="CodeGroupItem").map(Ce=>(Ce.props===null&&(Ce.props={}),Ce));return tt.length===0?null:(X.value<0||X.value>tt.length-1?(X.value=tt.findIndex(Ce=>"active"in Ce.props),X.value===-1&&(X.value=0)):tt.forEach((Ce,nt)=>{Ce.props.active=nt===X.value}),h$4("div",{class:"code-group"},[h$4("div",{class:"code-group-nav"},tt.map((Ce,nt)=>{const at=nt===X.value;return h$4("button",{type:"button",ref:ot=>{ot&&(ee.value[nt]=ot)},class:["code-group-nav-tab",{active:at}],"aria-pressed":at,"aria-expanded":at,onClick:()=>{X.value=nt},onKeydown:ot=>se(ot,nt)},Ce.props.title)})),tt]))}}}),index$1="",q$2=()=>h$4(c$3,{name:"back"},()=>h$4("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"})),a$2=()=>h$4(c$3,{name:"home"},()=>h$4("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"})),o$1='',v$2='',l='',codeDemo="",L$2={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"},E={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"}}},B=(R,Z,X)=>{const ee=document.createElement(R);return isPlainObject(Z)&&g$2(Z).forEach(ne=>{if(ne.indexOf("data"))ee[ne]=Z[ne];else{const re=ne.replace("data","");ee.dataset[re]=Z[ne]}}),X&&X.forEach(ne=>{ee.appendChild(ne)}),ee},w$1=R=>({...L$2,...R,jsLib:Array.from(new Set([...L$2.jsLib||[],...R.jsLib||[]])),cssLib:Array.from(new Set([...L$2.cssLib||[],...R.cssLib||[]]))}),m$3=(R,Z)=>{if(R[Z]!==void 0)return R[Z];const X=new Promise(ee=>{var ne;const re=document.createElement("script");re.src=Z,(ne=document.querySelector("body"))==null||ne.appendChild(re),re.onload=()=>{ee()}});return R[Z]=X,X},k$1=(R,Z)=>{if(Z.css&&Array.from(R.childNodes).every(X=>X.nodeName!=="STYLE")){const X=B("style",{innerHTML:Z.css});R.appendChild(X)}},V$1=(R,Z,X)=>{const ee=X.getScript();if(ee&&Array.from(Z.childNodes).every(ne=>ne.nodeName!=="SCRIPT")){const ne=document.createElement("script");ne.appendChild(document.createTextNode(`{const document=window.document.querySelector('#${R} .code-demo-container').shadowRoot; ${ee}}`)),Z.appendChild(ne)}},H$1=R=>{const Z=g$2(R),X={html:[],js:[],css:[],isLegal:!1};return["html","js","css"].forEach(ee=>{const ne=Z.filter(re=>E[ee].types.includes(re));if(ne.length){const re=ne[0];X[ee]=[R[re].replace(/^\n|\n$/g,""),E[ee].map[re]||re]}}),X.isLegal=(!X.html.length||X.html[1]==="none")&&(!X.js.length||X.js[1]==="none")&&(!X.css.length||X.css[1]==="none"),X},$$2=R=>R.replace(/
/g,"
").replace(/<((\S+)[^<]*?)\s+\/>/g,"<$1>"),x$1=R=>`
${$$2(R)}
`,I=R=>`${R.replace("export default ","const $reactApp = ").replace(/App\.__style__(\s*)=(\s*)`([\s\S]*)?`/,"")}; ReactDOM.createRoot(document.getElementById("app")).render(React.createElement($reactApp))`,J=R=>R.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(),O$1=R=>`(function(exports){var module={};module.exports=exports;${R};return module.exports.__esModule?module.exports.default:module.exports;})({})`,q$1=(R,Z)=>{const X=w$1(Z),ee=R.js[0]||"";return{...X,html:$$2(R.html[0]||""),js:ee,css:R.css[0]||"",isLegal:R.isLegal,getScript:()=>{var ne;return X.useBabel?((ne=window.Babel.transform(ee,{presets:["es2015"]}))==null?void 0:ne.code)||"":ee}}},F$2=(R,Z)=>{const X=w$1(Z),ee=R.html[0]||"",ne=/