1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/echarts-B_n_1RBn.js","assets/rolldown-runtime-DK3Fl9T5.js","assets/vendor~index-Ch5s2avm.js","assets/SearchBox-sMIWopwL.js","assets/vendor~app~SearchBox~404.html~03~02~01~ext_idl~ext_cmake~README~README~joinus~faq~win~linux~msr1ortc-DmIgdF7g.js","assets/vendor~app-DCq8HB0F.js","assets/vendor~SearchBox-CLN43PXv.js"])))=>i.map(i=>d[i]); 2import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{A as t,B as n,C as r,D as i,Dt as a,E as o,Et as s,F as c,G as l,J as u,K as d,M as f,N as p,O as m,P as h,R as g,T as _,Tt as v,U as y,V as b,W as x,Z as S,_ as C,b as w,c as T,ct as E,d as D,g as O,h as k,it as A,j as ee,l as j,m as M,o as te,ot as ne,q as N,r as P,s as F,st as re,tt as I,u as L,w as R,wt as z,x as B,z as ie}from"./vendor~app~SearchBox~404.html~03~02~01~ext_idl~ext_cmake~README~README~joinus~faq~win~linux~msr1ortc-DmIgdF7g.js";import{$ as ae,$t as oe,A as se,An as ce,At as le,B as ue,Bn as de,Bt as fe,C as pe,Cn as me,Ct as he,D as ge,Dn as _e,Dt as ve,E as ye,En as be,Et as xe,F as Se,Fn as V,G as Ce,Gt as we,H as Te,Ht as Ee,I as De,In as Oe,It as ke,J as Ae,K as H,Kt as je,L as Me,Ln as Ne,Lt as Pe,M as Fe,Mn as Ie,N as Le,Nn as Re,Nt as ze,O as Be,On as Ve,Ot as He,P as Ue,Pn as We,Pt as Ge,Q as Ke,R as qe,Rn as Je,Rt as Ye,S as Xe,Sn as Ze,St as Qe,T as $e,Tn as et,Tt as tt,U as nt,Ut as rt,V as it,Vt as at,W as ot,X as st,Y as ct,Z as lt,Zt as ut,_ as dt,_n as ft,_t as pt,a as mt,an as ht,at as gt,b as _t,bn as vt,bt as yt,c as bt,cn as U,ct as xt,d as St,dn as Ct,dt as wt,en as Tt,et as Et,f as Dt,fn as Ot,ft as W,g as kt,gn as At,gt as jt,h as Mt,hn as Nt,ht as Pt,i as Ft,in as It,it as Lt,j as Rt,jn as zt,jt as Bt,k as Vt,kn as Ht,kt as Ut,l as Wt,ln as Gt,lt as Kt,m as qt,mn as Jt,mt as Yt,n as Xt,nn as Zt,nt as Qt,o as $t,on as en,ot as tn,p as nn,pn as rn,pt as an,q as on,qt as sn,r as cn,rn as ln,rt as un,s as dn,sn as fn,st as pn,t as mn,tn as hn,tt as gn,u as _n,un as vn,ut as yn,v as bn,vn as xn,vt as Sn,w as Cn,wn as G,wt as wn,x as Tn,xn as En,xt as Dn,y as K,yn as On,yt as kn,z as An,zn as jn,zt as Mn}from"./vendor~app-DCq8HB0F.js";var Nn=e({default:()=>Pn}),Pn={},Fn=/language-(?:shellscript|shell|bash|sh|zsh)/u,In=({selector:e,ignoreSelector:t,inlineSelector:n,duration:r=2e3,locales:i,showInMobile:a,transform:o})=>{let s=at(`(max-width: 419px)`),c=F(()=>!s.value||a),l=Ut(i),u=e=>{if(e.hasAttribute(`copy-code`))return;let t=document.createElement(`button`);t.type=`button`,t.classList.add(`vp-copy-code-button`),t.setAttribute(`aria-label`,l.value.copy),t.dataset.copied=l.value.copied,e.parentElement?.insertBefore(t,e),e.setAttribute(`copy-code`,``)},d=()=>{document.body.classList.toggle(`no-copy-code`,!c.value),c.value&&document.querySelectorAll(e).forEach(e=>{u(e)})};oe(c,()=>_(d),{flush:`post`}),Gt(e=>{e!==`beforeUnmount`&&d()});let{copy:f}=ke({legacy:!0}),p=new WeakMap,m=null,h=async(e,n,i)=>{let a=n.cloneNode(!0);t&&a.querySelectorAll(t).forEach(e=>{e.remove()}),o&&o(a);let s=a.textContent||``;if(Fn.test(e.className)&&(s=s.replaceAll(/^ *(?:\$|>) /gmu,``)),await f(s),r<=0)return;i.classList.add(`copied`),clearTimeout(p.get(i));let c=setTimeout(()=>{i.classList.remove(`copied`),i.blur(),p.delete(i)},r);p.set(i,c)};Mn(`click`,e=>{let t=e.target;if(c.value&&t.matches(`div[class*="language-"] > button.vp-copy-code-button`)){let e=t.parentElement,n=t.nextElementSibling;if(!e||!n)return;h(e,n,t)}},{passive:!0}),n&&Mn(`dblclick`,e=>{let t=e.target;if(c.value&&t.matches(n)){let e=window.getSelection();e&&(t.contains(e.anchorNode)||t.contains(e.focusNode))&&e.removeAllRanges(),f(t.textContent||``),(m??=new tt).pop(`<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><span>${l.value.copied} </span>`,r)}},{passive:!0})},Ln=e({default:()=>Rn}),Rn=U({setup:()=>{In({selector:`[vp-content] div[class*="language-"] pre`,ignoreSelector:`.vp-copy-ignore,.diff.remove`,inlineSelector:``,locales:{"/":{copy:`å¤å¶ä»£ç `,copied:`å·²å¤å¶`}},duration:2e3,showInMobile:!1})}}),zn=({selector:e=`div[class*="language-"].has-collapsed-lines > .collapsed-lines`}={})=>{Mn(`click`,t=>{let n=t.target;if(n.matches(e)){let e=n.parentElement;e?.classList.toggle(`collapsed`)&&e.scrollIntoView({block:`center`,behavior:`instant`})}},{passive:!0})},Bn=e({default:()=>Vn}),Vn={setup(){zn()}},Hn=C({__name:`VPCopyButton`,props:{text:{},encode:{type:Boolean,default:!1}},setup(e){let n=F(()=>e.encode?xe(e.text):e.text),{copied:r,copy:i}=ke();return(e,a)=>(t(),D(`button`,{type:`button`,class:z([`vp-copy-code-button`,{copied:E(r)}]),"aria-label":`Copy`,"data-copied":`Copied`,onClick:a[0]||=e=>E(i)(n.value)},null,2))}}),Un={key:0,class:`vp-tabs`},Wn={class:`vp-tabs-nav`,role:`tablist`},Gn=[`aria-controls`,`aria-selected`,`onClick`,`onKeydown`],Kn=[`id`,`aria-expanded`],qn={class:`vp-tab-title`},Jn=`VUEPRESS_TAB_STORE`,Yn=C({__name:`Tabs`,props:{id:{},tabId:{default:``},active:{default:0},data:{}},setup(e){let n=we(Jn,{}),r=I(e.active),a=A([]);function o(){e.tabId&&(n.value[e.tabId]=e.data[r.value]?.id)}function s(e=r.value){r.value=e<a.value.length-1?e+1:0,a.value[r.value].focus()}function c(e=r.value){r.value=e>0?e-1:a.value.length-1,a.value[r.value].focus()}function l(e,t){e.key===` `||e.key===`Enter`?(e.preventDefault(),r.value=t):e.key===`ArrowRight`?(e.preventDefault(),s()):e.key===`ArrowLeft`&&(e.preventDefault(),c()),o()}function u(){if(e.tabId){let t=e.data.findIndex(({id:t})=>n.value[e.tabId]===t);if(t!==-1)return t}return e.active}i(()=>{r.value=u(),y(()=>n.value[e.tabId],(t,n)=>{if(e.tabId&&t!==n){let n=e.data.findIndex(({id:e})=>e===t);n!==-1&&(r.value=n)}})});function d(e){r.value=e,o()}return(n,i)=>e.data.length?(t(),D(`div`,Un,[T(`div`,Wn,[(t(!0),D(P,null,f(e.data,(i,o)=>(t(),D(`button`,{key:o,ref_for:!0,ref:e=>e&&(a.value[o]=e),class:z([`vp-tab-nav`,{active:o===r.value}]),type:`button`,role:`tab`,"aria-controls":`tab-${e.id}-${o}`,"aria-selected":o===r.value,onClick:()=>d(o),onKeydown:e=>l(e,o)},[p(n.$slots,`title${o}`,{value:i.id,isActive:o===r.value})],42,Gn))),128))]),(t(!0),D(P,null,f(e.data,(i,a)=>(t(),D(`div`,{id:`tab-${e.id}-${a}`,key:a,class:z([`vp-tab`,{active:a===r.value}]),role:`tabpanel`,"aria-expanded":a===r.value},[T(`div`,qn,[p(n.$slots,`title${a}`,{value:i.id,isActive:a===r.value})]),p(n.$slots,`tab${a}`,{value:i.id,isActive:a===r.value})],10,Kn))),128))])):L(``,!0)}}),Xn={key:0,class:`vp-code-tabs`},Zn={class:`vp-code-tabs-nav`,role:`tablist`},Qn=[`aria-controls`,`aria-selected`,`onClick`,`onKeydown`],$n=[`id`,`aria-expanded`],er={class:`vp-code-tab-title`},tr=`VUEPRESS_CODE_TAB_STORE`,nr=C({__name:`CodeTabs`,props:{id:{},tabId:{default:``},active:{default:0},data:{}},setup(e){let n=e,r=we(tr,{}),a=I(n.active),o=A([]);
2function s(){n.tabId&&(r.value[n.tabId]=n.data[a.value].id)}function c(e=a.value){a.value=e<o.value.length-1?e+1:0,o.value[a.value].focus()}function l(e=a.value){a.value=e>0?e-1:o.value.length-1,o.value[a.value].focus()}function u(e,t){e.key===` `||e.key===`Enter`?(e.preventDefault(),a.value=t):e.key===`ArrowRight`?(e.preventDefault(),c()):e.key===`ArrowLeft`&&(e.preventDefault(),l()),n.tabId&&(r.value[n.tabId]=n.data[a.value].id)}function d(){if(n.tabId){let e=n.data.findIndex(({id:e})=>r.value[n.tabId]===e);if(e!==-1)return e}return n.active}i(()=>{a.value=d(),y(()=>r.value[n.tabId],(e,t)=>{if(n.tabId&&e!==t){let t=n.data.findIndex(({id:t})=>t===e);t!==-1&&(a.value=t)}})});function m(e){a.value=e,s()}return(n,r)=>e.data.length?(t(),D(`div`,Xn,[T(`div`,Zn,[(t(!0),D(P,null,f(e.data,(r,i)=>(t(),D(`button`,{key:i,ref_for:!0,ref:e=>e&&(o.value[i]=e),class:z([`vp-code-tab-nav`,{active:i===a.value}]),type:`button`,role:`tab`,"aria-controls":`codetab-${e.id}-${i}`,"aria-selected":i===a.value,onClick:()=>m(i),onKeydown:e=>u(e,i)},[p(n.$slots,`title${i}`,{value:r.id,isActive:i===a.value})],42,Qn))),128))]),(t(!0),D(P,null,f(e.data,(r,i)=>(t(),D(`div`,{id:`codetab-${e.id}-${i}`,key:i,class:z([`vp-code-tab`,{active:i===a.value}]),role:`tabpanel`,"aria-expanded":i===a.value},[T(`div`,er,[p(n.$slots,`title${i}`,{value:r.id,isActive:i===a.value})]),p(n.$slots,`tab${i}`,{value:r.id,isActive:i===a.value})],10,$n))),128))])):L(``,!0)}}),rr={plot:!0},ir={dashjs:!1,hlsjs:!1,mpegtsjs:!1},ar=[`mp4`,`mp3`,`webm`,`ogg`];ir.dashjs&&ar.push(`mpd`,`dash`),ir.hlsjs&&ar.push(`m3u8`,`hls`),ir.mpegtsjs&&ar.push(`ts`,`flv`);var or=C({__name:`Plot`,props:{trigger:{},effect:{}},setup(e){let n=e,r=xn(),a=at(`(max-width: 768px)`),o=F(()=>{let e=typeof rr.plot==`object`?rr.plot:{},t=typeof r.value.plot==`object`?r.value.plot:{};return{trigger:a.value?`click`:n.trigger??t.trigger??e.trigger??`hover`,effect:n.effect??t.effect??e.effect??`mask`}}),s=I(!1),c=b(`el`),l=I([]);i(()=>{if(!c.value)return;let e=c.value.classList;!e.contains(`hover`)&&!e.contains(`click`)&&l.value.push(o.value.trigger),!e.contains(`mask`)&&!e.contains(`blur`)&&l.value.push(o.value.effect)}),ze(c,()=>{(o.value.trigger===`click`||c.value?.classList.contains(`click`))&&(s.value=!1)});function u(){(o.value.trigger===`click`||c.value?.classList.contains(`click`))&&(s.value=!s.value)}return(e,n)=>(t(),D(`span`,{ref_key:`el`,ref:c,class:z([`vp-plot`,[{active:s.value},...l.value]]),onClick:u},[p(e.$slots,`default`)],2))}}),sr={class:`vp-file-tree-node`},cr={key:0,class:`comment`},lr={key:0,class:`group`},ur=C({__name:`FileTreeNode`,props:{type:{},filename:{},level:{},diff:{},expanded:{type:Boolean},focus:{type:Boolean},filepath:{}},setup(e){let n=r(`active-file-tree-node`,I(``)),i=r(`on-file-tree-node-click`,()=>{}),o=I(e.expanded);function c(){e.filename===`â¦`||e.filename===`...`||i(e.filepath||e.filename,e.type)}function l(t){e.type===`folder`?t.target.matches(`.comment, .comment *`)||(o.value=!o.value,c()):c()}return(r,i)=>(t(),D(`div`,sr,[T(`p`,{class:z([`vp-file-tree-info`,{[e.type]:!0,focus:e.focus,expanded:e.type===`folder`&&o.value,active:e.type===`file`&&E(n)===e.filepath,diff:e.diff,add:e.diff===`add`,remove:e.diff===`remove`}]),style:s({"--file-tree-level":-e.level}),onClick:l},[p(r.$slots,`icon`),T(`span`,{class:z([`name`,[e.type]])},a(e.filename),3),r.$slots.comment?(t(),D(`span`,cr,[p(r.$slots,`comment`)])):L(``,!0)],6),e.type===`folder`?N((t(),D(`div`,lr,[p(r.$slots,`default`)],512)),[[Je,o.value]]):L(``,!0)]))}}),dr=`data-mark-mode`,fr=`lazy`,pr=`vp-mark-visible`,mr=`data-vp-mark-bound`,hr=`mark`,gr=`${hr}[${mr}="1"]`;function _r(e){if(typeof window>`u`)return;let t=document.documentElement;if(e!==fr){t.removeAttribute(dr);return}t.setAttribute(dr,fr);let n=null,r=null,i=()=>(n||=new IntersectionObserver((e,t)=>{for(let n of e){if(!n.isIntersecting&&n.intersectionRatio<=0)continue;let e=n.target;e.classList.add(pr),e.removeAttribute(mr),t.unobserve(e)}},{threshold:[0,.1,.25,.5],rootMargin:`8% 0px -8% 0px`}),n),a=()=>{let e=Array.from(document.querySelectorAll(hr)).filter(e=>e instanceof HTMLElement&&!e.classList.contains(pr)&&e.getAttribute(mr)!==`1`);if(e.length===0)return;let t=i();for(let n of e)n.setAttribute(mr,`1`),t.observe(n)},o=()=>{r!==null&&cancelAnimationFrame(r),r=requestAnimationFrame(()=>{r=null,a()})},s=()=>{n&&(n.disconnect(),n=null,Array.from(document.querySelectorAll(gr)||[]).forEac
2h(e=>{e.classList.contains(pr)||e.removeAttribute(mr)}))};Gt(()=>{s(),o()})}var vr=e({default:()=>yr}),yr=U({enhance({router:e,app:t}){t.component(`VPCopyButton`,Hn),t.component(`Tabs`,Yn),t.component(`CodeTabs`,nr),t.component(`Plot`,or),t.component(`FileTreeNode`,ur)},setup(){_r(`eager`)}}),br={},xr=()=>br,Sr=(async()=>{}).constructor,Cr=(e,t,n,r)=>t===`js`?Sr(`echarts`,`myChart`,`\ 3let width,height,option,__echarts_config__; 4{ 5${e} 6__echarts_config__={width,height,option}; 7} 8return __echarts_config__; 9`)(n,r):Promise.resolve({option:JSON.parse(e)}),wr=C({name:`ECharts`,props:{config:{type:String,required:!0},title:String,type:{type:String,default:`json`}},setup(e){let t=xr(),n=A(),r=I(!1),a=null;Mn(`resize`,ut(()=>{a?.resize()},100));let o=()=>{a?.dispose(),a=null},s=async()=>{let r=await et(()=>import(`./echarts-B_n_1RBn.js`),__vite__mapDeps([0,1,2]));t.isSetup||=(await t.setup?.(),!0),a=r.init(n.value);let{option:i,...o}=await Cr(xe(e.config),e.type,r,a);a.resize(o),a.setOption({...t.option,...i})};return Gt(async e=>{e===`mounted`&&(await s(),r.value=!0)}),i(()=>{}),m(o),()=>[e.title?B(`div`,{class:`echarts-title`},decodeURIComponent(e.title)):null,B(`div`,{class:`echarts-wrapper`},[B(`div`,{ref:n,class:`echarts-container`}),r.value?null:B(He,{class:`echarts-loading`,height:360})])]}}),Tr=e({default:()=>Er}),Er=U({enhance:({app:e})=>{e.component(`ECharts`,wr)}}),Dr=e({}),Or=(e,t)=>{e.classList.add(t)},kr=(e,t)=>{e.classList.remove(t)},Ar=e=>{e?.remove()},jr=(e,t,n)=>e<t?t:e>n?n:e,Mr=e=>(-1+e)*100,Nr=(()=>{let e=[],t=()=>{let n=e.shift();n&&n(t)};return n=>{e.push(n),e.length===1&&t()}})(),Pr=e=>e.replace(/^-ms-/u,`ms-`).replaceAll(/-(?<letter>[\da-z])/giu,(e,t)=>t.toUpperCase()),Fr=(()=>{let e=[`Webkit`,`O`,`Moz`,`ms`],t={},n=t=>{let{style:n}=document.body;if(t in n)return t;let r=t.charAt(0).toUpperCase()+t.slice(1),i=e.length;for(;i--;){let t=`${e[i]}${r}`;if(t in n)return t}return t},r=e=>{let r=Pr(e);return t[r]??=n(r)},i=(e,t,n)=>{e.style[r(t)]=n};return(e,t)=>{for(let[n,r]of hn(t))ln(r)&&i(e,n,r)}})(),q={minimum:.08,easing:`ease`,speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,barSelector:`[role="bar"]`,parent:`body`,template:`<div class="bar" role="bar"></div>`},J={percent:null,isRendered:()=>!!document.querySelector(`#nprogress`),set:e=>{let{speed:t,easing:n}=q,r=J.isStarted(),i=jr(e,q.minimum,1);J.percent=i===1?null:i;let a=J.render(!r),o=a.querySelector(q.barSelector);return a.offsetWidth,Nr(e=>{Fr(o,{transform:`translate3d(${Mr(i)}%,0,0)`,transition:`all ${t}ms ${n}`}),i===1?(Fr(a,{transition:`none`,opacity:`1`}),a.offsetWidth,setTimeout(()=>{Fr(a,{transition:`all ${t}ms linear`,opacity:`0`}),setTimeout(()=>{J.remove(),e()},t)},t)):setTimeout(()=>{e()},t)}),J},isStarted:()=>typeof J.percent==`number`,start:()=>{J.percent||J.set(0);let e=()=>{setTimeout(()=>{J.percent&&(J.trickle(),e())},q.trickleSpeed)};return q.trickle&&e(),J},done:e=>!e&&!J.percent?J:J.increase(.3+.5*Math.random()).set(1),increase:e=>{let{percent:t}=J;return t?(t=jr(t+(typeof e==`number`?e:(1-t)*jr(Math.random()*t,.1,.95)),0,.994),J.set(t)):J.start()},trickle:()=>J.increase(Math.random()*q.trickleRate),render:e=>{if(J.isRendered())return document.querySelector(`#nprogress`);Or(document.documentElement,`nprogress-busy`);let t=document.createElement(`div`);t.id=`nprogress`,t.innerHTML=q.template;let n=t.querySelector(q.barSelector),r=document.querySelector(q.parent);return Fr(n,{transition:`all 0 linear`,transform:`translate3d(${e?`-100`:Mr(J.percent??0)}%,0,0)`}),r&&(r!==document.body&&Or(r,`nprogress-custom-parent`),r.append(t)),t},remove:()=>{kr(document.documentElement,`nprogress-busy`),kr(document.querySelector(q.parent),`nprogress-custom-parent`),Ar(document.querySelector(`#nprogress`))}},Ir=()=>{i(()=>{let e=ce(),t=new Set;t.add(e.currentRoute.value.path),e.beforeEach(e=>{t.has(e.path)||J.start()}),e.afterEach(e=>{t.add(e.path),J.done()})})},Lr=e({default:()=>Rr}),Rr=U({setup(){Ir()}}),zr=I({}),Br=Symbol(``),Vr=()=>r(Br),Hr=e=>{e.provide(Br,zr)},Ur=async e=>{try{await e.decode()}catch{throw Error(`Image decoding failed: ${e.src}`)}
9return{type:`image`,element:e,src:e.src,width:e.naturalWidth,height:e.naturalHeight,alt:e.alt,msrc:e.src}},Wr=`<div class="photo-swipe-loading"><svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" preserveAspectRatio="xMidYMid" viewBox="25 25 50 50"><animateTransform attributeName="transform" type="rotate" dur="2s" keyTimes="0;1" repeatCount="indefinite" values="0;360"></animateTransform><circle cx="50" cy="50" r="20" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round"><animate attributeName="stroke-dasharray" dur="1.5s" keyTimes="0;0.5;1" repeatCount="indefinite" values="1,200;90,200;1,200"></animate><animate attributeName="stroke-dashoffset" dur="1.5s" keyTimes="0;0.5;1" repeatCount="indefinite" values="0;-35px;-125px"></animate></circle></svg></div>`,Gr=(e,{download:t=!0,fullscreen:n=!0}={})=>{e.on(`uiRegister`,()=>{if(e.ui.registerElement({name:`bulletsIndicator`,className:`photo-swipe-bullets-indicator`,appendTo:`wrapper`,onInit:t=>{let n=[],r=-1;for(let r=0;r<e.getNumItems();r++){let r=document.createElement(`div`);r.className=`photo-swipe-bullet`,r.addEventListener(`click`,t=>{e.goTo(n.indexOf(t.target))}),n.push(r),t.append(r)}e.on(`change`,()=>{r>=0&&n[r].classList.remove(`active`),n[e.currIndex].classList.add(`active`),r=e.currIndex})}}),n){let{isSupported:t,toggle:n}=fe();t.value&&e.ui.registerElement({name:`fullscreen`,order:7,isButton:!0,html:`<svg class="pswp__icn" viewB
9ox="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:()=>{n()}})}t&&e.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:t=>{t.setAttribute(`download`,``),t.setAttribute(`target`,`_blank`),t.setAttribute(`rel`,`noopener`),e.on(`change`,()=>{t.setAttribute(`href`,e.currSlide.data.src)})}})})},Kr=({selector:e,locales:t,download:n=!0,fullscreen:r=!0,scrollToClose:a=!0})=>{let o=Vr(),s=Ut(t),c=At(),l=F(()=>{let{photoSwipe:t}=c.value;return t===!1?null:Re(t)?t:Zt(e)?e.join(`, `):e}),u=F(()=>({...o.value,...s.value,download:n,fullscreen:r,scrollToClose:a})),d=null,f=0,p=null;Mn(`click`,async e=>{let t=e.target;if(!l.value||!d||!t.matches(l.value))return;f!==0&&p.destroy();let i=Date.now(),o=await d,s=[...document.querySelectorAll(l.value)],c=s.map(e=>({html:Wr,element:e,msrc:e.src}));p=new o({preloaderDelay:0,showHideAnimationType:`zoom`,...u.value,dataSource:c,index:s.indexOf(t),...a?{closeOnVerticalDrag:!0,wheelToZoom:!1}:{}}),f=i,Gr(p,{download:n,fullscreen:r}),p.init(),p.on(`destroy`,()=>{p=null,f=0}),s.map((e,t)=>Ur(e).then(e=>{f===i&&(c.splice(t,1,e),p?.refreshSlideContent(t))}))},{passive:!0}),Mn(`wheel`,()=>{u.value.scrollToClose&&p?.close()}),i(()=>{(`requestIdleCallback`in window?window.requestIdleCallback:setTimeout)(()=>{d=et(async()=>{let{default:e}=await import(`./photoswipe.esm-Cs2GTI41.js`);return{default:e}},[]).then(({default:e})=>e)})}),m(()=>{p?.destroy()})},qr=e({default:()=>$r}),Jr=`.vp-doc :not(a) > img:not([no-view],.no-view,.ignore)`,Yr={"/":{closeTitle:`å
³é`,downloadTitle:`ä¸è½½å¾ç`,fullscreenTitle:`忢å
¨å±`,zoomTitle:`缩æ¾`,arrowPrevTitle:`ä¸ä¸ä¸ª (å·¦ç®å¤´)`,arrowNextTitle:`ä¸ä¸ä¸ª (å³ç®å¤´)`}},Xr=!0,Zr=!0,Qr=!0,$r=U({enhance:({app:e})=>{Hr(e)},setup:()=>{Kr({selector:Jr,locales:Yr,download:Xr,fullscreen:Zr,scrollToClose:Qr})}}),ei={"/":()=>et(()=>import(`./searchBox-default-DX5ieo7O.js`),[])},ti={"/":{placeholder:`Search`,resetButtonTitle:`Reset search`,backButtonTitle:`Close search`,noResultsText:`No results for`,footer:{selectText:`to select`,selectKeyAriaLabel:`enter`,navigateText:`to navigate`,navigateUpKeyAriaLabel:`up arrow`,navigateDownKeyAriaLabel:`down arrow`,closeText:`to close`,closeKeyAriaLabel:`escape`}}};function ni(e){let t=ne(e),n=Ze();return F(()=>t.value[n.value]??ti[n.value]??ti[`/`])}var ri=A(ei);function ii(){return ri}var ai=[`aria-label`],oi={class:`mini-search-button-container`},si={class:`mini-search-button-placeholder`},ci=C({__name:`SearchButton`,props:{locales:{}},setup(e){let n=ni(ne(()=>e.locales));return(e,r)=>(t(),D(`button`,{type:`button`,class:`mini-search mini-search-button`,"aria-label":E(n).placeholder},[T(`span`,oi,[r[0]||=T(`span`,{class:`mini-search-search-icon vpi-mini-search`,"aria-label":`search icon`},null,-1),T(`span`,si,a(E(n).placeholder),1)]),r[1]||=T(`span`,{class:`mini-search-button-keys`},[T(`kbd`,{class:`mini-search-button-key`}),T(`kbd`,{class:`mini-search-button-key`},`K`)],-1)],8,ai))}}),li={class:`search-wrapper`},ui={id:`local-search`},di=C({__name:`Search`,props:{locales:{},options:{}},setup(e){let n=O(()=>et(()=>import(`./SearchBox-sMIWopwL.js`),__vite__mapDeps([3,4,5,6]))),r=I(!1);Ge(`k`,e=>{(e.ctrlKey||e.metaKey)&&(e.preventDefault(),r.value=!0)}),Ge(`/`,e=>{i(e)||(e.preventDefault(),r.value=!0)});function i(e){let t=e.target,n=t.tagName;return t.isContentEditable||n===`INPUT`||n===`SELECT`||n===`TEXTAREA`}return(i,a)=>(t(),D(`div`,li,[r.value?(t(),j(E(n),{key:0,locales:e.locales,options:e.options,onClose:a[0]||=e=>r.value=!1},null,8,[`locales`,`options`])):L(``,!0),T(`div`,ui,[k(ci,{locales:e.locales,onClick:a[1]||=e=>r.value=!0},null,8,[`locales`])])]))}}),Y=(e,t)=>
9{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},fi=Y(di,[[`__scopeId`,`data-v-b5995d65`]]),pi=e({default:()=>gi}),mi={"/":{placeholder:`æç´¢ææ¡£`,resetButtonTitle:`éç½®æç´¢`,backButtonTitle:`å
³é`,noResultsText:`æ æç´¢ç»æï¼`,footer:{selectText:`éæ©`,selectKeyAriaLabel:`è¾å
¥`,navigateText:`忢`,navigateUpKeyAriaLabel:`åä¸`,navigateDownKeyAriaLabel:`åä¸`,closeText:`å
³é`,closeKeyAriaLabel:`éåº`}}},hi={},gi=U({enhance({app:e}){e.component(`SearchBox`,e=>B(fi,{locales:mi,options:hi,...e}))}}),_i=e({default:()=>vi}),vi={enhance:({app:e})=>{e.component(`GitContributors`,wn)}},X=C({__name:`VPBadge`,props:{text:{},type:{default:`tip`},color:{},bgColor:{},borderColor:{default:`transparent`}},setup(e){let n=F(()=>e.color||e.bgColor?{color:e.color,backgroundColor:e.bgColor,borderColor:e.borderColor}:{});return(r,i)=>(t(),D(`span`,{class:z([`vp-badge`,e.type]),style:s(n.value)},[p(r.$slots,`default`,{},()=>[M(a(e.text),1)])],6))}}),yi=C({__name:`VPIconFa`,props:{name:{},size:{},color:{},prefix:{},extra:{}},setup(e){let n={solid:[`fas`,`s`],regular:[`far`,`r`],light:[`fal`,`l`],thin:[`fat`,`t`],"duotone solid":[`fads`,`ds`],"sharp solid":[`fass`,`ss`],"sharp regular":[`fasr`,`sr`],"sharp light":[`fasl`,`sl`],"sharp thin":[`fast`,`st`],"sharp-duotone solid":[`fasds`,`sds`],brands:[`fab`,`b`]},r=F(()=>{let[t,r]=(e.name.includes(`:`)?e.name:`${e.prefix||`fas`}:${e.name}`).split(`:`),i=`solid`;for(let[e,r]of Object.entries(n))if(r.includes(t)){i=e;break}return`${i.split(` `).map(e=>`fa-${e.trim()}`).join(` `)} fa-${r}`}),i=F(()=>e.extra?e.extra.split(` `).map(e=>e.trim().startsWith(`fa-`)?e:`fa-${e}`):[]);return(n,a)=>(t(),D(`i`,{class:z([`vp-icon fontawesome`,[r.value,...i.value]]),"data-provider":`fontawesome`,"aria-hidden":``,style:s({color:e.color,...e.size})},null,6))}}),bi=C({__name:`VPIconfont`,props:{name:{},size:{},color:{},prefix:{}},setup(e){return(n,r)=>(t(),D(`i`,{class:z([`vp-icon`,`${e.prefix||`iconfont icon-`}${e.name}`]),style:s({color:e.color,"font-size":e.size?.height||`1em`}),"data-provider":`iconfont`,"aria-hidden":``},null,6))}}),xi=Object.freeze({left:0,top:0,width:16,height:16}),Si=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ci=Object.freeze({...xi,...Si});Object.freeze({...Ci,body:``,hidden:!1}),{...xi};var wi=Object.freeze({width:null,height:null}),Ti=Object.freeze({...wi,...Si});function Ei(e,t){let n={...e};for(let e in t){let r=t[e],i=typeof r;e in wi?(r===null||r&&(i===`string`||i===`number`))&&(n[e]=r):i===typeof n[e]&&(n[e]=e===`rotate`?r%4:r)}return n}var Di=/[\s,]+/;function Oi(e,t){t.split(Di).forEach(t=>{switch(t.trim()){case`horizontal`:e.hFlip=!0;break;case`vertical`:e.vFlip=!0;break}})}function ki(e,t=0){let n=e.replace(/^-?[0-9.]*/,``);function r(e){for(;e<0;)e+=4;return e%4}if(n===``){let t=parseInt(e);return isNaN(t)?0:r(t)}else if(n!==e){let t=0;switch(n){case`%`:t=25;break;case`deg`:t=90}if(t){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i/=t,i%1==0?r(i):0)}}return t}var Ai=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ji=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Mi(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(Ai);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=ji.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function Ni(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function Pi(e,t){return e?`<defs>`+e+`</defs>`+t:t}function Fi(e,t,n){let r=Ni(e);return Pi(r.defs,t+r.content+n)}var Ii=e=>e===`unset`||e===`undefined`||e===`none`;function Li(e,t){let n={...Ci,...e},r={...Ti,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`);break}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=Fi(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,c=i.width,l=i.height,u,d;o===null?(d=s===null?`1em`:s===`auto`?l:s,u=Mi(d,c/l)):(u=o===`auto`?c:o,d=s===null?Mi(u,l/c):s===`auto`?l:s);let f={},p=(e,t)=>{Ii(t)||(f[e]=t.toString())};p(`width`,u),p(`height`,d);let m=[i.left,i.top,c,l];return f.viewBox=m.join(` `),{attributes:f,viewBox:m,body:a}}var Ri=/\sid="(\S+)"/g,zi=new Map;function Bi(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=zi.get(e)||0;return zi.set(e,t+1),t?`${e}${t}`:e}function Vi(e){let t=[],n;for(;n=Ri.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=Bi(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}function Hi(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}function Ui(e){return e.replace(/"/g,`'`).replace(/%/g,`%25`).replace(/#/g,`%23`).replace(/</g,`%3C`).replace(/>/g,`%3E`).replace(/\s+/g,` `)}function Wi(e){return`data:image/svg+xml,`+Ui(e)}function Gi(e){return`url("`+Wi(e)+`")`}var Ki={...Ti,inline:!1},qi={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":!0,role:`img`},Ji={display:`inline-block`},Yi={backgroundColor:`currentColor`},Xi={backgroundColor:`transparent`},Zi={Image:`var(--svg)`,Repeat:`no-repeat`,Size:`100% 100%`},Qi={webkitMask:Yi,mask:Yi,background:Xi};for(let e in Qi){let t=Qi[e];for(let n in Zi)t[e+n]=Zi[n]}var $i={};
9[`horizontal`,`vertical`].forEach(e=>{let t=e.slice(0,1)+`Flip`;$i[e+`-flip`]=t,$i[e.slice(0,1)+`-flip`]=t,$i[e+`Flip`]=t});function ea(e){return e+(e.match(/^[-0-9.]+$/)?`px`:``)}var ta=(e,t)=>{let n=Ei(Ki,t),r={...qi},i=t.mode||`svg`,a={},o=t.style,s=typeof o==`object`&&!(o instanceof Array)?o:{};for(let e in t){let i=t[e];if(i!==void 0)switch(e){case`icon`:case`style`:case`onLoad`:case`mode`:case`ssr`:case`customise`:break;case`inline`:case`hFlip`:case`vFlip`:n[e]=i===!0||i===`true`||i===1;break;case`flip`:typeof i==`string`&&Oi(n,i);break;case`color`:a.color=i;break;case`rotate`:typeof i==`string`?n[e]=ki(i):typeof i==`number`&&(n[e]=i);break;case`ariaHidden`:case`aria-hidden`:i!==!0&&i!==`true`&&delete r[`aria-hidden`];break;default:{let t=$i[e];t?(i===!0||i===`true`||i===1)&&(n[t]=!0):Ki[e]===void 0&&(r[e]=i)}}}let c=Li(e,n),l=c.attributes;if(n.inline&&(a.verticalAlign=`-0.125em`),i===`svg`)return r.style={...a,...s},Object.assign(r,l),r.innerHTML=Vi(c.body),B(`svg`,r);let{body:u,width:d,height:f}=e,p=i===`mask`||i!==`bg`&&u.indexOf(`currentColor`)!==-1,m=Hi(u,{...l,width:d+``,height:f+``});return r.style={...a,"--svg":Gi(m),width:ea(l.width),height:ea(l.height),...Ji,...p?Yi:Xi,...s},B(`span`,r)},na=Object.create(null),ra=C((e,t)=>()=>{let n=e.icon,r=typeof n==`string`?na[n]:typeof n==`object`?n:null;return typeof r!=`object`||!r||typeof r.body!=`string`?p(t.slots,`default`):ta({...Ci,...r},e)},{props:[`icon`,`mode`,`ssr`,`width`,`height`,`style`,`color`,`inline`,`rotate`,`hFlip`,`horizontalFlip`,`vFlip`,`verticalFlip`,`flip`,`id`,`ariaHidden`,`customise`,`title`]}),ia=C({inheritAttrs:!1,__name:`VPIconify`,props:{name:{},size:{},color:{},prefix:{},extra:{}},setup(e){let n=I(null),r=I(!1),i=F(()=>e.name.includes(`:`)?e.name:e.prefix?`${e.prefix}:${e.name}`:e.name),a=F(()=>Vt(i.value));async function o(){a.value||n.value||(r.value=!1,n.value=await $e(e.name),r.value=!0)}return y(()=>e.name,o,{immediate:!0}),(i,o)=>{let c=h(`ClientOnly`);return a.value?(t(),D(`span`,R({key:0,class:[`vp-icon`,[a.value,e.extra]],style:{color:e.color,...e.size},"aria-hidden":``,"data-provider":`iconify`},i.$attrs),null,16)):(t(),j(c,{key:1},{default:d(()=>[r.value?n.value?(t(),j(E(ra),{key:1,class:z([`vp-icon iconify`,[e.extra]]),icon:n.value,style:s({color:e.color,...e.size}),"aria-hidden":``,"data-provider":`iconify`},null,8,[`class`,`icon`,`style`])):L(``,!0):(t(),D(`span`,R({key:0,class:`vp-icon iconify`,style:{color:e.color,...e.size}},i.$attrs),null,16))]),_:1}))}}}),aa={key:0,class:`vp-icon-img`,"aria-hidden":``},oa=[`src`],sa=[`innerHTML`],ca=Y(C({inheritAttrs:!1,__name:`VPIconImage`,props:{type:{},name:{},color:{},size:{}},setup(e){let n=F(()=>e.type===`svg`&&typeof e.name==`object`&&`svg`in e.name?e.name.svg:``),r=F(()=>{if(e.type===`link`){let t=e.name;return zt(t)?t:G(t)}return``});return(i,a)=>e.type===`link`?(t(),D(`span`,aa,[T(`img`,{src:r.value,alt:``,style:s({height:e.size?.height})},null,12,oa)])):e.type===`svg`?(t(),D(`span`,{key:1,class:`vp-icon is-svg`,style:s({color:e.color,...e.size}),"aria-hidden":``,innerHTML:n.value},null,12,sa)):L(``,!0)}}),[[`__scopeId`,`data-v-76993a92`]]),Z=C({__name:`VPIcon`,props:{provider:{},name:{},size:{},color:{},extra:{}},setup(e){let n=F(()=>{if(typeof e.name==`string`&&(zt(e.name)||e.name[0]===`/`))return`link`;if(typeof e.name==`object`&&e.name.svg)return`svg`;if(typeof e.name==`string`){if(e.name.startsWith(`iconify`))return`iconify`;if(e.name.startsWith(`iconfont`))return`iconfont`;if(e.name.startsWith(`fontawesome`))return`fontawesome`}let t=e.provider||`iconify`;return t===`iconfont`||t===`fontawesome`?t:`iconify`});function r(e){return String(Number(e))===String(e)?`${e}px`:String(e)}let i=F(()=>{if(!e.size)return;let[t,n]=String(e.size).replaceAll(`px`,`[UNIT]`).split(`x`).map(e=>r(e.replaceAll(`[UNIT]`,`px`).trim()));return{width:t,height:n||t}}),a=F(()=>({name:typeof e.name==`string`?e.name.replace(/^(iconify|iconfont|fontawesome)\s+/,``):e.name,color:e.color,size:i.value,prefix:``}));return(r,i)=>n.value===`link`||n.value===`svg`?(t(),j(ca,R({key:0,type:n.value},a.value),null,16,[`type`])):n.value===`iconfont`?(t(),j(bi,v(R({ke
9y:1},a.value)),null,16)):n.value===`fontawesome`?(t(),j(yi,R({key:2,extra:e.extra},{...a.value,...r.$attrs}),null,16,[`extra`])):n.value===`iconify`?(t(),j(ia,R({key:3,extra:e.extra},a.value),null,16,[`extra`])):L(``,!0)}}),la={class:`vp-card-wrapper`},ua={key:0,class:`title`},da=[`innerHTML`],fa={class:`body`},pa=Y(C({__name:`VPCard`,props:{title:{},icon:{default:``}},setup(e){let n=F(()=>{if(typeof e.icon==`string`&&e.icon?.[0]===`{`)try{return JSON.parse(e.icon)}catch{}return e.icon});return(r,i)=>(t(),D(`article`,la,[p(r.$slots,`title`,{},()=>[e.title||e.icon?(t(),D(`header`,ua,[e.icon?(t(),j(Z,{key:0,name:n.value},null,8,[`name`])):L(``,!0),e.title?(t(),D(`span`,{key:1,class:`text`,innerHTML:e.title},null,8,da)):L(``,!0)])):L(``,!0)],!0),T(`section`,fa,[p(r.$slots,`default`,{},void 0,!0)])]))}}),[[`__scopeId`,`data-v-cd8d44fc`]]),ma=Y(C({__name:`VPCardGrid`,props:{cols:{}},setup(e){let n=at(`(min-width: 768px)`),r=at(`(min-width: 960px)`),a=I(1);function o(){let t={sm:1,md:2,lg:2};if(!e.cols)return t;if(typeof e.cols==`number`||typeof e.cols==`string`){let t=Number(e.cols);return{sm:t,md:t,lg:t}}return{...t,...re(e.cols)}}function c(){let e=o();return r.value?e.lg:n.value?e.md:e.sm}return y([n,r,()=>e.cols],()=>{a.value=c()}),i(()=>{a.value=c()}),(e,n)=>(t(),D(`div`,{class:z([`vp-card-grid`,[`cols-${a.value}`]]),style:s({gridTemplateColumns:`repeat(${a.value}, 1fr)`})},[p(e.$slots,`default`,{},void 0,!0)],6))}}),[[`__scopeId`,`data-v-1b45db1c`]]),ha=C({__name:`VPCardMasonry`,props:{cols:{default:()=>({sm:2,md:2,lg:3})},gap:{default:16}},setup(e){let r=n(),a=ie(),o=I(3),l=at(`(min-width: 640px)`),u=at(`(min-width: 960px)`),p=F(()=>{let e=r.default?.();return(Array.isArray(e)?e:[e]).map((e,t)=>S(te(e,R(e.props??{},{class:`masonry-${a}-${t}`}))))});function m(){let t=1;typeof e.cols==`number`?t=e.cols:typeof e.cols==`object`&&(t=u.value?e.cols.lg||3:l.value?e.cols.md||2:e.cols.sm||2),o.value=Number(t)}let g=A([]),v=A();async function b(){if(await _(),!v.value)return;let t=Array.from({length:o.value},()=>[]),n=Array.from({length:o.value},()=>0);for(let r=0;r<p.value.length;r++){let i=p.value[r],o=v.value.querySelector(`.masonry-${a}-${r}`)?.offsetHeight??0,s=n.indexOf(Math.min(...n));t[s].push(i),n[s]+=o+e.gap}g.value=t}return i(()=>{y([l,u,()=>e.cols],m,{immediate:!0}),b();let t=ut(b);y([p,o],t,{flush:`post`}),Ee(v,t)}),(n,r)=>{let i=h(`ClientOnly`);return t(),D(`div`,{ref_key:`masonry`,ref:v,class:z([`vp-card-masonry`,[`cols-${o.value}`]]),style:s({"grid-gap":`${e.gap}px`,"--card-masonry-cols":o.value}),"data-allow-mismatch":``},[k(i,null,{default:d(()=>[(t(!0),D(P,null,f(g.value,(n,r)=>(t(),D(`div`,{key:`${E(a)}-${r}`,class:`card-masonry-item`,style:s({gap:`${e.gap}
9px`})},[(t(!0),D(P,null,f(n,e=>(t(),j(c(e),{key:e.props.class}))),128))],4))),128))]),_:1})],6)}}}),ga={class:`image-container`},_a=[`src`,`alt`],va={key:0,class:`image-info`},ya={key:0,class:`title`},ba=[`href`],xa={key:1},Sa={key:1,class:`copyright`},Ca={key:0},wa={key:1},Ta={key:2},Ea={key:2,class:`description`},Da=Y(C({__name:`VPImageCard`,props:{image:{},title:{},description:{},href:{},author:{},date:{},width:{},center:{type:Boolean}},setup(e){let n=vt(),r=F(()=>{if(!e.date)return``;let t=e.date instanceof Date?e.date:new Date(e.date);return new Intl.DateTimeFormat(n.value,{year:`numeric`,month:`short`,day:`numeric`}).format(t)}),i=F(()=>({width:e.width?String(Number(e.width))===String(e.width)?`${e.width}px`:e.width:void 0}));return(n,o)=>(t(),D(`div`,{class:z([`vp-image-card`,{center:e.center}]),style:s(i.value)},[T(`div`,ga,[T(`img`,{src:E(G)(e.image),alt:e.title,loading:`lazy`},null,8,_a),e.title||e.author||r.value||e.description?(t(),D(`div`,va,[e.title?(t(),D(`h3`,ya,[e.href?(t(),D(`a`,{key:0,href:e.href,target:`_blank`,rel:`noopener noreferrer`,class:`no-icon`},a(e.title),9,ba)):(t(),D(`span`,xa,a(e.title),1))])):L(``,!0),e.author||e.date?(t(),D(`p`,Sa,[e.author?(t(),D(`span`,Ca,a(e.author),1)):L(``,!0),e.author&&r.value?(t(),D(`span`,wa,` | `)):L(``,!0),r.value?(t(),D(`span`,Ta,a(r.value),1)):L(``,!0)])):L(``,!0),e.description?(t(),D(`p`,Ea,a(e.description),1)):L(``,!0)])):L(``,!0)])],6))}}),[[`__scopeId`,`data-v-434c527b`]]),Oa={key:0,class:`visually-hidden`},Q=C({__name:`VPLink`,props:{tag:{},href:{},text:{},noIcon:{type:Boolean},target:{},rel:{}},setup(e){let n=e,r=ce(),{theme:i}=H(),o=F(()=>n.tag??(n.href?`a`:`span`)),{link:s,isExternal:l,isExternalProtocol:u}=Qt(ne(n,`href`),ne(n,`target`)),f=F(()=>{if(n.text||l.value||!s.value)return n.text;let{text:e}=he(s.value);return e});function m(e){!l.value&&s.value&&(e.preventDefault(),r.push(s.value))}return(n,r)=>(t(),j(c(o.value),{class:z([`vp-link`,{link:E(s),"no-icon":e.noIcon,"vp-external-link-icon":E(l)}]),href:E(s)?E(u)||E(l)?E(s):E(G)(E(s)):void 0,target:e.target??(E(l)?`_blank`:void 0),rel:e.rel??(E(l)?`noopener noreferrer`:void 0),onClick:r[0]||=e=>m(e)},{default:d(()=>[p(n.$slots,`default`,{},()=>[M(a(f.value||e.href),1)]),p(n.$slots,`after-text`),E(l)&&!e.noIcon?(t(),D(`span`,Oa,a(E(i).openNewWindowText||`(Open in new window)`),1)):L(``,!0)]),_:3},8,[`class`,`href`,`target`,`rel`]))}}),ka={class:`vp-link-card`},Aa={class:`body`},ja=[`innerHTML`],Ma=[`innerHTML`],Na=C({__name:`VPLinkCard`,props:{href:{},title:{},icon:{},description:{},target:{},rel:{}},setup(e){return(n,r)=>(t(),D(`div`,ka,[T(`span`,Aa,[k(Q,R({href:e.href,"no-icon":``,class:`link no-icon`},{target:e.target,rel:e.rel}),{default:d(()=>[p(n.$slots,`title`,{},()=>[e.icon?(t(),j(Z,{key:0,name:e.icon},null,8,[`name`])):L(``,!0),e.title?(t(),D(`span`,{key:1,class:`text`,innerHTML:e.title},null,8,ja)):L(``,!0)])]),_:3},16,[`href`]),p(n.$slots,`default`,{},()=>[e.description?(t(),D(`p`,{key:0,innerHTML:e.description},null,8,Ma)):L(``,!0)])]),r[0]||=T(`span`,{class:`vpi-arrow-right`},null,-1)]))}}),Pa=C({__name:`VPHomeBox`,props:{type:{},full:{type:Boolean},backgroundImage:{},backgroundAttachment:{},onlyOnce:{type:Boolean},index:{},containerClass:{}},setup(e){let n=Ce(),r=F(()=>{if(!e.backgroundImage)return null;let t=typeof e.backgroundImage==`string`?e.backgroundImage:e.backgroundImage[n.value?`dark`:`light`]??e.backgroundImage.light;return t?{"background-image":`url(${zt(t)?e.backgroundImage:G(t)})`,"background-size":`cover`,"background-position":`center`,"background-repeat":`no-repeat`,"background-attachment":e.backgroundAttachment||``}:null}),i=F(()=>z(e.containerClass||``));return(n,a)=>(t(),D(`div`,{class:z([`vp-home-box`,{full:e.full}]),style:s(r.value)},[p(n.$slots,`before`),T(`div`,{class:z([`container`,i.value])},[p(n.$slots,`default`)],2),p(n.$slots,`after`)],6))}}),Fa={class:`button-content`},Ia={key:1,class:`visually-hidden`},La=Y(C({__name:`VPButton`,props:{tag:{},size:{default:`medium`},theme:{default:`brand`},text:{default:``},href:{},target:{},rel:{},icon:{},suffixIcon:{}},setup(e){let n=e,r=ce(),{theme:i}=H(),o=F(()=>n.tag||n.href?`a`:`button`),{link:s,isExternal:l,isExternalProtocol:u}=Qt(ne(n,`href`),ne(n,`target`));function f(e){!l.value&&s.value?.[0]!==`#`&&(e.preventDefault(),s.value&&r.push(s.value))}return(n,r)=>(t(),j(c(o.value),{class:z([`vp-button`,[e.size,e.theme]]),href:E(s)?E(s)[0]===`#`||E(u)?E(s):E(G)(E(s)):void 0,target:e.target??(E(l)?`_blank`:void 0),rel:e.rel??(E(l)?`noopener noreferrer`:void 0),onClick:r[0]||=e=>f(e)},{default:d(()=>[T(`span`,Fa,[e.icon?(t(),j(Z,{key:0,name:e.icon},null,8,[`name`])):L(``,!0),p(n.$slots,`default`,{},()=>[T(`span`,null,a(e.text),1)],!0),E(l)?(t(),D(`span`,Ia,a(E(i).openNewWindowText||`(Open in new window)`),1)):L(``,!0),e.suffixIcon?(t(),j(Z,{key:2,name:e.suffixIcon},null,8,[`name`])):L(``,!0)])]),_:3},8,[`class`,`href`,`target`,`rel`]))}}),[[`__scopeId`,`data-v-55409fc9`]]),Ra=[`aria-checked`],za={class:`check`},Ba={key:0,class:`icon`},Va=Y(C({__name:`VPSwitch`,props:{ariaChecked:{type:Boolean}},setup(e){return(n,r)=>(t(),D(`button`,{class:`vp-switch`,type:`button`,role:`switch`,"aria-checked":e.ariaChecked??!1},[T(`span`,za,[n.$slots.default?(t(),D(`span`,Ba,[p(n.$slots,`default`,{},void 0,!0)])):L(``,!0)])],8,Ra))}}),[[`__scopeId`,`data-v-3f1aef1f`]]),Ha=Y(C({__name:`VPSwitchAppearance`,setup(e){let n=I(!1),{theme:i,isDark:a}=H();l(()=>{n.value=a.value});let o=F(()=>{let e=i.value.transition,t=typeof e==`object`?e:{};return e===!1||t.appearance===!1?!1:typeof t.appearance==`string`?t.appearance:`fade`});function s(){return window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}let c=r(`toggle-appearance`,async({clientX:e,clientY:t})=>{if(!ye()||o.value===!1||s()){a.value=!a.value;return}await document.startViewTransition(async()=>{a.value=!a.value,await _()}).ready;let{keyframes:n,duration:r}=Rt(e,t,o.value,a.value);document.documentElement.animate(n,{duration:r,easing:`ease-in`,fill:`forwards`,pseudoElement:`::view-transition-${a.value?`old`:`new`}(root)`})}),u=I(``);return l(()=>{u.value=a.value?i.value.lightModeSwitchTitle||`Switch to light theme`:i.value.darkModeSwitchTitle||`Switch to dark theme`}),(e,r)=>(t(),j(Va,{class:`vp-switch-appearance`,title:u.value,"aria-checked":n.value,onClick:E(c)},{default:d(()=>[...r[0]||=[T(`span`,{class:`vpi-sun sun`},null,-1),T(`span`,{class:`vpi-moon moon`},null,-1)]]),_:1},8,[`title`,`aria-checked`,`onClick`]))}}),[[`__scopeId`,`data-v-d94f2ed0`]]),Ua={key:0,class:`vp-navbar-appearance`},Wa=Y(C({__name:`VPNavBarAppearance`,setup(e){let{theme:n}=H();return(e,r)=>E(n).appearance&&E(n).appearance!==`force-dark`?(t(),D(`div`,Ua,[k(Ha)])):L(``,!0)}}),[[`__scopeId`,`data-v-c093b093`]]),Ga={class:`vp-menu-link`},Ka=Y(C({__name:`VPMenuLink`,props:{item:{},rel:{}},setup(e){let{page:n}=H(),r=F(()=>kn(n.value.path,e.item.activeMatch||Ot(e.item.link),!!e.item.activeMatch));return(n,i)=>(t(),D(`div`,Ga,[k(Q,{class:z({active:r.value}),href:e.item.link,target:e.item.target,rel:e.rel||e.item.rel},{default:d(()=>[e.item.icon?(t(),j(Z,{key:0,name:e.item.icon},null,8,[`name`])):L(``,!0),M(` `+a(e.item.text)+` `,1),e.item.badge?(t(),j(X,R({key:1,class:`vp-menu-badge`},typeof e.item.badge==`string`?{text:e.item.badge}:e.item.badge),null,16)):L(``,!0)]),_:1},8,[`class`,`href`,`target`,`rel`])]))}}),[[`__scopeId`,`data-v-ecbec66e`]]),qa={class:`vp-menu-group`},Ja={key:0,class:`title`},Ya=[`textContent`],Xa=Y(C({__name:`VPMenuGroup`,props:{text:{},icon:{},items:{}},setup(e){return(n,r)=>(t(),D(`div`,qa,[e.text?(t(),D(`p`,Ja,[e.icon?(t(),j(Z,{key:0,name:e.icon},null,8,[`name`])):L(``,!0),T(`span`,{textContent:a(e.text)}
9,null,8,Ya)])):L(``,!0),(t(!0),D(P,null,f(e.items,e=>(t(),D(P,null,[`link`in e?(t(),j(Ka,{key:e?.link,item:e},null,8,[`item`])):L(``,!0)],64))),256))]))}}),[[`__scopeId`,`data-v-cdeb8ed6`]]),Za={class:`vp-menu`},Qa={key:0,class:`items`},$a=Y(C({__name:`VPMenu`,props:{items:{}},setup(e){return(n,r)=>(t(),D(`div`,Za,[e.items?(t(),D(`div`,Qa,[(t(!0),D(P,null,f(e.items,e=>(t(),D(P,{key:e.text},[`link`in e?(t(),j(Ka,{key:0,item:e},null,8,[`item`])):(t(),j(Xa,{key:1,text:e.text,items:e.items,icon:e.icon},null,8,[`text`,`items`,`icon`]))],64))),128))])):L(``,!0),p(n.$slots,`default`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-ea51c110`]]),eo=[`aria-expanded`,`aria-label`],to={key:0,class:`text`},no=[`innerHTML`],ro={key:1,class:`vpi-more-horizontal icon`},io={class:`menu`},ao=Y(C({__name:`VPFlyout`,props:{prefixIcon:{},icon:{},button:{},label:{},items:{},badge:{}},setup(e){let n=I(!1),r=I();st({el:r,onBlur:i});function i(){n.value=!1}return(i,a)=>(t(),D(`div`,{ref_key:`el`,ref:r,class:`vp-flyout`,onMouseenter:a[1]||=e=>n.value=!0,onMouseleave:a[2]||=e=>n.value=!1,onFocus:a[3]||=e=>n.value=!0,onBlur:a[4]||=e=>n.value=!1},[T(`button`,{type:`button`,class:`button`,"aria-haspopup":`true`,"aria-expanded":n.value,"aria-label":e.label,onClick:a[0]||=e=>n.value=!n.value},[e.button||e.icon?(t(),D(`span`,to,[e.prefixIcon?(t(),j(Z,{key:0,name:e.prefixIcon},null,8,[`name`])):L(``,!0),e.icon?(t(),D(`span`,{key:1,class:z([`option-icon`,[e.icon]])},null,2)):L(``,!0),e.button?(t(),D(`span`,{key:2,innerHTML:e.button},null,8,no)):L(``,!0),e.badge?(t(),j(X,R({key:3,class:`vp-menu-badge`},typeof e.badge==`string`?{text:e.badge}:e.badge),null,16)):L(``,!0),a[5]||=T(`span`,{class:`vpi-chevron-down text-icon`},null,-1)])):(t(),D(`span`,ro))],8,eo),T(`div`,io,[k($a,{items:e.items},{default:d(()=>[p(i.$slots,`default`,{},void 0,!0)]),_:3},8,[`items`])])],544))}}),[[`__scopeId`,`data-v-c4e1f601`]]),oo=[`href`,`aria-label`,`title`],so=Y(C({__name:`VPSocialLink`,props:{icon:{},link:{},ariaLabel:{}},setup(e){let n=F(()=>{if(typeof e.icon==`string`){let t=An[e.icon]||e.icon;return t.includes(`:`)?t:`simple-icons:${t}`}return e.icon}),r=F(()=>e.ariaLabel?e.ariaLabel:typeof e.icon==`string`?e.icon.includes(`:`)?e.icon.split(`:`)[1]:e.icon:e.icon.name);return(i,a)=>(t(),D(`a`,{class:`vp-social-link no-icon`,href:e.link,"aria-label":r.value,title:r.value,target:`_blank`,rel:`noopener`},[k(Z,{name:n.value},null,8,[`name`])],8,oo))}}),[[`__scopeId`,`data-v-3d982772`]]),co={class:`vp-social-links`},lo=Y(C({__name:`VPSocialLinks`,props:{links:{}},setup(e){return(n,r)=>(t(),D(`div`,co,[(t(!0),D(P,null,f(e.links,({link:e,icon:n})=>(t(),j(so,{key:e,icon:n,link:e},null,8,[`icon`,`link`]))),128))]))}}),[[`__scopeId`,`data-v-8a517c03`]]),uo={key:0,class:`group translations`},fo={class:`trans-title`},po={key:1,class:`group appearance`},mo={class:`item appearance`},ho={class:`label`},go={class:`appearance-action`},_o={key:2,class:`group social`},vo={class:`item social-links`},yo=Y(C({__name:`VPNavBarExtra`,setup(e){let{theme:n}=H(),{localeLinks:r,currentLang:i}=ae(),o=F(()=>{let e=n.value.navbarSocialInclude??[];return e.length?n.value.social?.filter(({icon:t})=>typeof t==`string`?e.includes(t):t.name?e.includes(t.name):!1):n.value.social}),s=F(()=>r.value.length&&i.value.text||n.value.appearance||o.value?.length);return(e,c)=>s.value?(t(),j(ao,{key:0,class:`vp-navbar-extra`,label:`extra navigation`},{default:d(()=>[E(r).length&&E(i).text?(t(),D(`div`,uo,[T(`p`,fo,a(E(i).text),1),(t(!0),D(P,null,f(E(r),e=>(t(),j(Ka,{key:e.link,item:e,lang:e.text,hreflang:e.text,rel:`alternate`},null,8,[`item`,`lang`,`hreflang`]))),128))])):L(``,!0),E(n).appearance&&E(n).appearance!==`force-dark`?(t(),D(`div`,po,[T(`div`,mo,[T(`p`,ho,a(E(n).appearanceText||`Appearance`),1),T(`div`,go,[k(Ha)])])])):L(``,!0),o.value?(t(),D(`div`,_o,[T(`div`,vo,[k(lo,{class:`social-links-list`,links:o.value},null,8,[`links`])])])):L(``,!0)]),_:1})):L(``,!0)}}),[[`__scopeId`,`data-v-4e8b1724`]]),bo=[`aria-expanded`],xo=Y(C({__name:`VPNavBarHamburger`,props:{active:{type:Boolean}},emits:[`click`],setup(e){return(n,r)=>(t(),D(`button`,{type:`button`,class:z([`vp-navbar-hamburger`,{active:e.active}]),"aria-label":`mobile navigation`,"aria-expanded":e.active,"aria-controls":`nav-screen`,onClick:r[0]||=e=>n.$emit(`click`)},[...r[1]||=[T(`span`,{class:`container`},[T(`span`,{class:`top`}),T(`span`,{class:`middle`}),T(`span`,{class:`bottom`})],-1)]],10,bo))}}),[[`__scopeId`,`data-v-38d99421`]]),So=C({__name:`VPNavBarMenuGroup`,props:{item:{}},setup(e){let{page:n}=H(),r=F(()=>e.item.activeMatch?kn(n.value.path,e.item.activeMatch,!!e.item.activeMatch):i(e.item));function i(t){return`link`in t?kn(n.value.path,Ot(t.link),!!e.item.activeMatch):t.items.some(i)}return(n,i)=>(t(),j(ao,{class:z([`vp-navbar-menu-group`,{active:r.value}]),button:e.item.text,items:e.item.items,"prefix-icon":e.item.icon,badge:e.item.badge},null,8,[`class`,`button`,`items`,`prefix-icon`,`badge`]))}}),Co=[`innerHTML`],wo=Y(C({__name:`VPNavBarMenuLink`,props:{item:{}},setup(e){let{page:n}=H(),r=F(()=>kn(n.value.path,e.item.activeMatch||Ot(e.item.link),!!e.item.activeMatch));return(n,i)=>(t(),j(Q,{class:z([`navbar-menu-link`,{active:r.value}]),href:e.item.link,"no-icon":e.item.noIcon,target:e.item.target,rel:e.item.rel,tabindex:`0`},{default:d(()=>[e.item.icon?(t(),j(Z,{key:0,name:e.item.icon},null,8,[`name`])):L(``,!0),T(`span`,{innerHTML:e.item.text},null,8,Co),e.item.badge?(t(),j(X,R({key:1,class:`vp-menu-badge`},typeof e.item.badge==`string`?{text:e.item.badge}:e.item.badge),null,16)):L(``,!0)]),_:1},8,[`class`,`href`,`no-icon`,`target`,`rel`]))}}),[[`__scopeId`,`data-v-62f50559`]]),To={key:0,"aria-labelledby":`main-nav-aria-label`,class:`vp-navbar-menu`},Eo=Y(C({__name:`VPNavBarMenu`,setup(e){let n=Lt();return(e,r)=>E(n).length?(t(),D(`nav`,To,[r[0]||=T(`span`,{id:`main-nav-aria-label`,class:`visually-hidden`},`Main Navigation`,-1),(t(!0),D(P,null,f(E(n),e=>(t(),D(P,{key:e.text},[`link`in e?(t(),j(wo,{key:0,item:e},null,8,[`item`])):(t(),j(So,{key:1,item:e},null,8,[`item`]))],64))),128))])):L(``,!0)}}),[[`__scopeId`,`data-v-e8025a68`]]),Do={},Oo={class:`vp-navbar-search`};function ko(e,n){let r=h(`SearchBox`);return t(),D(`div`,Oo,[k(r)])}var Ao=Y(Do,[[`render`,ko]]),jo=Y(C({__name:`VPNavBarSocialLinks`,setup(e){let{theme:n}=H(),r=F(()=>{let e=n.value.navbarSocialInclude??[];return e.length?n.value.social?.filter(({icon:t})=>typeof t==`string`?e.includes(t):t.name?e.includes(t.name):!1):n.value.social});return(e,n)=>r.value?(t(),j(lo,{key:0,class:`vp-navbar-social-links`,links:r.value},null,8,[`links`])):L(``,!0)}}),[[`__scopeId`,`data-v-c63ce839`]]),Mo=[`src`,`alt`],No=Y(C({inheritAttrs:!1,__name:`VPImage`,props:{image:{},alt:{}},setup(e){let n=F(()=>!e.image||typeof e.image==`string`||!e.image.width||!e.image.height?``:{width:Qe(e.image.width),height:Qe(e.image.height)});return(r,i)=>{let a=h(`VPImage`,!0);return e.image?(t(),D(P,{key:0},[typeof e.image==`string`||`src`in e.image?(t(),D(`img`,R({key:0,class:`vp-image`,style:n.value},typeof e.image==`string`?r.$attrs:{...e.image,...r.$attrs},{src:E(G)(typeof e.image==`string`?e.image:e.image.src),alt:e.alt??(typeof e.image==`string`?``:e.image.alt||``)}),null,16,Mo)):(t(),D(P,{key:1},[k(a,R({class:`dark`,image:e.image.dark,alt:e.image.alt},r.$attrs),null,16,[`image`,`alt`]),k(a,R({class:`light`,image:e.image.light,alt:e.image.alt},r.$attrs),null,16,[`image`,`alt`])],64))],64)):L(``,!0)}}}),[[`__scopeId`,`data-v-555587b2`]]),Po=Y(C({__name:`VPNavBarTitle`,setup(e){let{theme:n,site:r}=H(),{hasSidebar:i}=gn(),o=Ze(),{isSidebarCollapsed:s}=W();return(e,c)=>(t(),D(`div`,{class:z([`vp-navbar-title`,{"has-sidebar":E(i)&&!E(s)}])},[k(Q,{class:`title`,href:E(n).home??E(o),"no-icon":``},{default:d(()=>[p(e.$slots,`nav-bar-title-before`,{},void 0,!0),E(n).logo?(t(),j(No,{key:0,class:`logo`,image:{light:E(n).logo,dark:E(n).logoDark||E(n).logo}},null,8,[`image`])):L(``,!0),T(`span`,null,a(E(r).title),1),p(e.$slots,`nav-bar-title-after`,{},void 0,!0)]),_:3},8,[`href`])],2))}}),[[`__scopeId`,`data-v-164d314b`]]),Fo={class:`items`},Io={class:`title`},Lo=Y(C({__name:`VPNavBarTranslations`,setup(e){let{theme:n}=H(),{currentLang:r,localeLinks:i}=ae();return(e,o)=>E(i).length&&E(r).text?(t(),j(ao,{key:0,class:`vp-navbar-translations`,icon:`vpi-languages`,label:E(n).selectLanguageText||`Change Language`},{default:d(()=>[T(`div`,Fo,[T(`p`,Io,a(E(r).text),1),(t(!0),D(P,null,f(E(i),e=>(t(),j(Ka,{key:e.link,item:e},null,8,[`item`]))),128))])]),_:1},8,[`label`])):L(``,!0)}}),[[`__scopeId`,`data-v-31f2c506`]]),Ro={class:`wrapper`},zo={class:`container`},Bo={class:`title`},Vo={class:`content`},Ho={class:`content-body`},Uo=Y(C({__name:`VPNavBar`,props:{isScreenOpen:{type:Boolean}},emits:[`toggleScreen`],setup(e){let{y:n}=je(),{hasSidebar:r,isHome:i}=gn(),{isSidebarCollapsed:a}=W(),o=I({});return l(()=>{o.value={"has-sidebar":r.value&&!a.value,home:i.value,top:n.value===0,"screen-open":e.isScreenOpen}}),(n,r)=>(t(),D(`div`,{class:z([`vp-navbar`,o.value]),"vp-navbar":``},[T(`div`,Ro,[T(`div`,zo,[T(`div`,Bo,[k(Po,null,{"nav-bar-title-before":d(()=>[p(n.$slots,`nav-bar-title-before`,{},void 0,!0)]),"nav-bar-title-after":d(()=>[p(n.$slots,`nav-bar-title-after`,{},void 0,!0)]),_:3})]),T(`div`,Vo,[T(`div`,Ho,[p(n.$slots,`nav-bar-content-before`,{},void 0,!0),k(Ao,{class:`search`}),p(n.$slots,`nav-bar-menu-before`,{},void 0,!0),k(Eo,{class:`menu`}),p(n.$slots,`nav-bar-menu-after`,{},void 0,!0),k(Lo,{class:`translations`}),k(Wa,{class:`appearance`}),k(jo,{class:`social-links`}),k(yo,{class:`extra`}),p(n.$slots,`nav-bar-content-after`,{}
9,void 0,!0),k(xo,{class:`hamburger`,active:e.isScreenOpen,onClick:r[0]||=e=>n.$emit(`toggleScreen`)},null,8,[`active`])])])])]),r[1]||=T(`div`,{class:`divider`},[T(`div`,{class:`divider-line`})],-1)],2))}}),[[`__scopeId`,`data-v-bae60fb2`]]),Wo={key:0,class:`vp-nav-screen-appearance`},Go={class:`text`},Ko=Y(C({__name:`VPNavScreenAppearance`,setup(e){let{theme:n}=H();return(e,r)=>E(n).appearance&&E(n).appearance!==`force-dark`?(t(),D(`div`,Wo,[T(`p`,Go,a(E(n).appearanceText??`Appearance`),1),k(Ha)])):L(``,!0)}}),[[`__scopeId`,`data-v-e3872ec8`]]),qo=[`innerHTML`],Jo=Y(C({__name:`VPNavScreenMenuGroupLink`,props:{item:{}},setup(e){let{page:n}=H(),i=F(()=>kn(n.value.path,e.item.activeMatch||e.item.link,!!e.item.activeMatch)),a=r(`close-screen`);return(n,r)=>(t(),j(Q,{class:z([`vp-nav-screen-menu-group-link`,{active:i.value}]),href:e.item.link,target:e.item.target,rel:e.item.rel,"no-icon":e.item.noIcon,onClick:E(a)},{default:d(()=>[e.item.icon?(t(),j(Z,{key:0,name:e.item.icon},null,8,[`name`])):L(``,!0),T(`span`,{innerHTML:e.item.text},null,8,qo),e.item.badge?(t(),j(X,R({key:1,class:`vp-menu-badge`},typeof e.item.badge==`string`?{text:e.item.badge}:e.item.badge),null,16)):L(``,!0)]),_:1},8,[`class`,`href`,`target`,`rel`,`no-icon`,`onClick`]))}}),[[`__scopeId`,`data-v-2f0db1af`]]),Yo={class:`vp-nav-screen-menu-group-section`},Xo={key:0,class:`title`},Zo=Y(C({__name:`VPNavScreenMenuGroupSection`,props:{icon:{},text:{},items:{}},setup(e){return(n,r)=>(t(),D(`div`,Yo,[e.text?(t(),D(`p`,Xo,[e.icon?(t(),j(Z,{key:0,name:e.icon},null,8,[`name`])):L(``,!0),M(` `+a(e.text),1)])):L(``,!0),(t(!0),D(P,null,f(e.items,e=>(t(),j(Jo,{key:e.text,item:e},null,8,[`item`]))),128))]))}}),[[`__scopeId`,`data-v-9d6272a5`]]),Qo=[`aria-controls`,`aria-expanded`],$o={class:`button-text`},es=[`innerHTML`],ts=[`id`],ns={class:`items`},rs={key:1,class:`group`},is=Y(C({__name:`VPNavScreenMenuGroup`,props:{text:{},icon:{},badge:{},items:{}},setup(e){let n=I(!1),r=F(()=>`nav-screen-menu-group-${e.text.replace(` `,`-`).toLowerCase()}`);function i(){n.value=!n.value}return(a,o)=>(t(),D(`div`,{class:z([`vp-nav-screen-menu-group`,{open:n.value}])},[T(`button`,{class:`button`,"aria-controls":r.value,"aria-expanded":n.value,onClick:i},[T(`span`,$o,[e.icon?(t(),j(Z,{key:0,name:e.icon},null,8,[`name`])):L(``,!0),T(`span`,{innerHTML:e.text},null,8,es),e.badge?(t(),j(X,R({key:1,class:`vp-menu-badge`},typeof e.badge==`string`?{text:e.badge}:e.badge),null,16)):L(``,!0)]),o[0]||=T(`span`,{class:`vpi-plus button-icon`},null,-1)],8,Qo),k(E(le),null,{default:d(()=>[N(T(`div`,{id:r.value,class:`vp-nav-screen-menu-group-container`},[T(`div`,ns,[(t(!0),D(P,null,f(e.items,e=>(t(),D(P,{key:e.text},[`link`in e?(t(),D(`div`,{key:e.text,class:`item`},[k(Jo,{item:e},null,8,[`item`])])):(t(),D(`div`,rs,[k(Zo,{text:e.text,items:e.items,icon:e.icon},null,8,[`text`,`items`,`icon`])]))],64))),128))])],8,ts),[[Je,n.value]])]),_:1})],2))}}),[[`__scopeId`,`data-v-9aea9070`]]),as=[`innerHTML`],os=Y(C({__name:`VPNavScreenMenuLink`,props:{item:{}},setup(e){let{page:n}=H(),i=F(()=>kn(n.value.path,e.item.activeMatch||e.item.link,!!e.item.activeMatch)),a=r(`close-screen`);return(n,r)=>(t(),j(Q,{class:z([`vp-nav-screen-menu-link`,{active:i.value}]),href:e.item.link,target:e.item.target,rel:e.item.rel,"no-icon":e.item.noIcon,onClick:E(a)},{default:d(()=>[e.item.icon?(t(),j(Z,{key:0,name:e.item.icon},null,8,[`name`])):L(``,!0),T(`span`,{innerHTML:e.item.text},null,8,as),e.item.badge?(t(),j(X,R({key:1,class:`vp-menu-badge`},typeof e.item.badge==`string`?{text:e.item.badge}:e.item.badge),null,16)):L(``,!0)]),_:1},8,[`class`,`href`,`target`,`rel`,`no-icon`,`onClick`]))}}),[[`__scopeId`,`data-v-57e040a5`]]),ss={key:0,class:`vp-nav-screen-menu`},cs=C({__name:`VPNavScreenMenu`,setup(e){let n=Lt();return(e,r)=>E(n).length?(t(),D(`nav`,ss,[(t(!0),D(P,null,f(E(n),e=>(t(),D(P,{key:e.text},[`link`in e?(t(),j(os,{key:0,item:e},null,8,[`item`])):(t(),j(is,{key:1,text:e.text||``,items:e.items,icon:e.icon,badge:e.badge},null,8,[`text`,`items`,`icon`,`badge`]))],64))),128))])):L(``,!0)}}),ls=C({__name:`VPNavScreenSocialLinks`,setup(e){let{theme:n}=H();return(e,r)=>E(n).social?(t(),j(lo,{key:0,class:`vp-nav-screen-social-links`,links:E(n).social},null,8,[`links`])):L(``,!0)}}),us={class:`vp-nav-screen-translations-container`},ds={class:`list`},fs=Y(C({__name:`VPNavScreenTranslations`,setup(e){let{localeLinks:n,currentLang:r}=ae(),i=I(!1);function o(){i.value=!i.value}
9return(e,s)=>E(n).length&&E(r).text?(t(),D(`div`,{key:0,class:z([`vp-nav-screen-translations`,{open:i.value}])},[T(`button`,{class:`title`,onClick:o},[s[0]||=T(`span`,{class:`vpi-languages icon lang`},null,-1),M(` `+a(E(r).text)+` `,1),s[1]||=T(`span`,{class:`vpi-chevron-down icon chevron`},null,-1)]),k(E(le),null,{default:d(()=>[N(T(`div`,us,[T(`ul`,ds,[(t(!0),D(P,null,f(E(n),e=>(t(),D(`li`,{key:e.link,class:`item`},[k(Q,{class:`link`,href:e.link},{default:d(()=>[M(a(e.text),1)]),_:2},1032,[`href`])]))),128))])],512),[[Je,i.value]])]),_:1})],2)):L(``,!0)}}),[[`__scopeId`,`data-v-16267d2e`]]),ps={key:0,id:`navScreen`,class:`vp-nav-screen`},ms={class:`container`},hs=Y(C({__name:`VPNavScreen`,props:{open:{type:Boolean}},setup(e){let n=rt(Sn?document.body:null);return(r,i)=>(t(),j(V,{name:`fade-in`,onEnter:i[0]||=e=>n.value=!0,onAfterLeave:i[1]||=e=>n.value=!1},{default:d(()=>[e.open?(t(),D(`div`,ps,[T(`div`,ms,[p(r.$slots,`nav-screen-content-before`,{},void 0,!0),p(r.$slots,`nav-screen-menu-before`,{},void 0,!0),k(cs,{class:`menu`}),p(r.$slots,`nav-screen-menu-after`,{},void 0,!0),k(fs,{class:`translations`}),k(Ko,{class:`appearance`}),k(ls,{class:`social-links`}),p(r.$slots,`nav-screen-content-after`,{},void 0,!0)])])):L(``,!0)]),_:3}))}}),[[`__scopeId`,`data-v-50b47842`]]),gs=Y(C({__name:`VPNav`,setup(e){let{page:n,frontmatter:r}=H(),{isScreenOpen:i,closeScreen:a,toggleScreen:o}=un(),s=[`posts`,`friends`,`posts-archives`,`posts-tags`,`posts-categories`],c=F(()=>s.includes(n.value.type)),l=F(()=>r.value.navbar!==!1);return ee(`close-screen`,a),x(()=>{Sn&&document.documentElement.classList.toggle(`hide-nav`,!l.value)}),(e,n)=>l.value?(t(),D(`header`,{key:0,class:z([`vp-nav`,{fixed:c.value}])},[k(Uo,{"is-screen-open":E(i),onToggleScreen:E(o)},{"nav-bar-title-before":d(()=>[p(e.$slots,`nav-bar-title-before`,{},void 0,!0)]),"nav-bar-title-after":d(()=>[p(e.$slots,`nav-bar-title-after`,{},void 0,!0)]),"nav-bar-content-before":d(()=>[p(e.$slots,`nav-bar-content-before`,{},void 0,!0)]),"nav-bar-content-after":d(()=>[p(e.$slots,`nav-bar-content-after`,{},void 0,!0)]),"nav-bar-menu-before":d(()=>[p(e.$slots,`nav-bar-menu-before`,{},void 0,!0)]),"nav-bar-menu-after":d(()=>[p(e.$slots,`nav-bar-menu-after`,{},void 0,!0)]),_:3},8,[`is-screen-open`,`onToggleScreen`]),k(hs,{open:E(i)},{"nav-screen-content-before":d(()=>[p(e.$slots,`nav-screen-content-before`,{},void 0,!0)]),"nav-screen-content-after":d(()=>[p(e.$slots,`nav-screen-content-after`,{},void 0,!0)]),"nav-screen-menu-before":d(()=>[p(e.$slots,`nav-screen-menu-before`,{},void 0,!0)]),"nav-screen-menu-after":d(()=>[p(e.$slots,`nav-screen-menu-after`,{},void 0,!0)]),_:3},8,[`open`])],2)):L(``,!0)}}),[[`__scopeId`,`data-v-ec8be089`]]),_s={key:0,class:`vp-backdrop`},vs=Y(C({__name:`VPBackdrop`,props:{show:{type:Boolean}},setup(e){return(n,r)=>(t(),j(V,{name:`fade-in`},{default:d(()=>[e.show?(t(),D(`div`,_s)):L(``,!0)]),_:1}))}}),[[`__scopeId`,`data-v-bf7e2cb2`]]),ys={"aria-hidden":`true`},bs=Y(C({__name:`VPBackToTop`,setup(e){let n=A(),{height:r}=Ye(n),{height:o}=sn();i(()=>{n.value=document.body});let{page:c}=H(),{y:l}=je(),u=I(!1),f=F(()=>l.value/(r.value-o.value)*100),p=F(()=>`${Math.min(Math.round(f.value),100)||0}%`),m=F(()=>`calc(${Math.PI*f.value}% - ${4*Math.PI}px) calc(${Math.PI*100}% - ${4*Math.PI}px)`),h=F(()=>c.value.frontmatter.backToTop===!1||c.value.frontmatter.pageLayout===`home`&&c.value.frontmatter.config&&c.value.frontmatter.config.length<=1),g=F(()=>r.value<o.value?!1:l.value>o.value/2),_=null;function v(){_&&clearTimeout(_),_=setTimeout(()=>{u.value=!1},1e3)}y(l,()=>{u.value=!0,v()});function b(){window.scrollTo({top:0,behavior:`smooth`})}return(e,n)=>(t(),j(V,{name:`fade-in`},{default:d(()=>[N(T(`button`,{type:`button`,class:`vp-back-to-top`,"aria-label":`back to top`,onClick:b},[T(`span`,{class:z([`percent`,{show:u.value}]),"data-allow-mismatch":``},a(p.value),3),T(`span`,{class:z([`icon vpi-back-to-top`,{show:!u.value}])},null,2),(t(),D(`svg`,ys,[T(`circle`,{cx:`50%`,cy:`50%`,"data-allow-mismatch":``,style:s({"stroke-dasharray":m.value})},null,4)]))],512),[[Je,!h.value&&(g.value||u.value)]])]),_:1}))}}),[[`__scopeId`,`data-v-985d6d7e`]]),xs=[`innerHTML`],Ss={class:`container`},Cs=[`innerHTML`],ws=C({__name:`VPBulletin`,setup(e){let n=ve(`Bulletin`)?h(`Bulletin`):null,r=ve(`BulletinContent`)?h(`BulletinContent`):null,{bulletin:i,showBulletin:a,enableBulletin:o,close:s}=Te();return(e,l)=>(t(),j(V,{name:`fade-in-scale-up`},{default:d(()=>[E(n)&&E(o)&&E(a)?(t(),j(c(E(n)),{key:0,class:`vp-bulletin`})):E(i)&&E(o)&&E(a)?(t(),D(`div`,{key:1,class:z([`vp-bulletin preset`,{border:E(i).border??!0,[E(i).layout??`top-right`]:!0}])},[T(`button`,{type:`button`,class:`close`,onClick:l[0]||=(...e)=>E(s)&&E(s)(...e)},[...l[1]||=[T(`span`,{class:`vpi-close`},null,-1)]]),p(e.$slots,`bulletin-content`,{},()=>[E(i).title?(t(),D(`h2`,{key:0,innerHTML:E(i).title},null,8,xs)):L(``,!0),T(`div`,Ss,[E(r)?(t(),j(c(E(r)),{key:0,class:`content vp-doc`})):E(i).content?(t(),D(`div`,{key:1,class:`content vp-doc`,innerHTML:E(i).content},null,8,Cs)):L(``,!0)])])],2)):L(``,!0)]),_:3}))}}),Ts={class:`container`},Es={class:`content`},Ds={key:0,class:`hero-name`},Os={key:1,class:`hero-tagline`},ks={key:2,class:`hero-text`},As={key:3,class:`actions`},js=`https://api.pengzhanbo.cn/wallpaper/bing`,Ms=Y(C({__name:`VPHomeBanner`,props:{type:{},banner:{},bannerMask:{},hero:{},onlyOnce:{type:Boolean},full:{type:Boolean}},setup(e){let{isDark:n,frontmatter:r}=H(),i=F(()=>{let t=e.bannerMask??r.value.bannerMask;return typeof t==`object`?(n.value?t.dark:t.light)||0:t||0}),o=F(()=>{let t=e.banner??r.value.banner;return{"background-image":`url(${t?zt(t)?t:G(t):js})`}}),c=F(()=>e.hero?.name??r.value.hero?.name??`Plume`),l=F(()=>e.hero?.tagline??r.value.hero?.tagline??`A VuePress Theme`),u=F(()=>e.hero?.text??r.value.hero?.text),d=F(()=>e.hero?.actions??r.value.hero?.actions??[]);return(e,n)=>(t(),D(`div`,{class:`vp-home-banner`,style:s(o.value)},[T(`div`,{class:`banner-mask`,style:s({opacity:i.value})},null,4),T(`div`,Ts,[T(`div`,Es,[c.value?(t(),D(`h2`,Ds,a(c.value),1)):L(``,!0),l.value?(t(),D(`p`,Os,[n[0]||=T(`span`,{class:`line`},null,-1),n[1]||=M(),T(`span`,null,a(l.value),1)])):L(``,!0),u.value?(t(),D(`p`,ks,a(u.value),1)):L(``,!0),d.value.length?(t(),D(`div`,As,[(t(!0),D(P,null,f(d.value,e=>
9(t(),D(`div`,{key:e.link,class:`action`},[k(La,{tag:`a`,size:`medium`,theme:e.theme,text:e.text,href:e.link},null,8,[`theme`,`text`,`href`])]))),128))])):L(``,!0)])])],4))}}),[[`__scopeId`,`data-v-2c8720ab`]]),Ns=C({__name:`VPHomeCustom`,props:{type:{},full:{type:Boolean},backgroundImage:{},backgroundAttachment:{},onlyOnce:{type:Boolean},index:{}},setup(e){let n=e;return(e,r)=>(t(),j(Pa,R({class:`vp-home-custom`},n),{default:d(()=>[k(E(ht),{class:`vp-doc`,"vp-content":``})]),_:1},16))}}),Ps={class:`doc-hero-container`},Fs={class:`doc-hero-main`},Is={class:`heading`},Ls=[`innerHTML`],Rs=[`innerHTML`],zs=[`innerHTML`],Bs={key:1,class:`actions`},Vs={class:`action`},Hs={key:0,class:`image`},Us={class:`image-container`},Ws=Y(C({__name:`VPHomeDocHero`,props:{type:{},hero:{},full:{type:Boolean},backgroundImage:{},backgroundAttachment:{},onlyOnce:{type:Boolean},index:{}},setup(e){let n=e,r=F(()=>n.hero??{}),i=F(()=>r.value.actions??[]);return(e,n)=>(t(),D(`div`,{class:z([`vp-home-doc-hero`,{"has-image":r.value.image}])},[T(`div`,Ps,[T(`div`,Fs,[T(`h1`,Is,[r.value.name?(t(),D(`span`,{key:0,class:`name clip`,innerHTML:r.value.name},null,8,Ls)):L(``,!0),r.value.text?(t(),D(`span`,{key:1,class:`text`,innerHTML:r.value.text},null,8,Rs)):L(``,!0)]),r.value.tagline?(t(),D(`p`,{key:0,class:`tagline`,innerHTML:r.value.tagline},null,8,zs)):L(``,!0),i.value.length?(t(),D(`div`,Bs,[T(`div`,Vs,[(t(!0),D(P,null,f(i.value,e=>
9(t(),j(La,{key:e.link,tag:`a`,size:`medium`,theme:e.theme,text:e.text,href:e.link,target:e.target,rel:e.rel,icon:e.icon,"suffix-icon":e.suffixIcon},null,8,[`theme`,`text`,`href`,`target`,`rel`,`icon`,`suffix-icon`]))),128))])])):L(``,!0)]),r.value.image?(t(),D(`div`,Hs,[T(`div`,Us,[n[0]||=T(`div`,{class:`image-bg`},null,-1),p(e.$slots,`home-doc-hero-image`,{},()=>[r.value.image?(t(),j(No,{key:0,class:`image-src`,image:r.value.image},null,8,[`image`])):L(``,!0)],!0)])])):L(``,!0)])],2))}}),[[`__scopeId`,`data-v-b327b40c`]]),Gs={class:`box`},Ks={key:0,class:`icon`},qs={key:2,class:`icon`},Js=[`innerHTML`],Ys=[`innerHTML`],Xs={key:4,class:`details`},Zs=[`innerHTML`],Qs=[`innerHTML`],$s={key:6,class:`link-text`},ec={class:`link-text-value`},tc=Y(C({__name:`VPHomeFeature`,props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(e){let n=/^[\w-]+:[\w-]+$/,r=F(()=>typeof e.icon!=`string`||Tt(e.icon)||zt(e.icon)?!1:n.test(e.icon));return(n,i)=>(t(),j(Q,{class:`vp-home-feature`,href:e.link,rel:e.rel,target:e.target,"no-icon":``,tag:e.link?`a`:`div`},{default:d(()=>[T(`article`,Gs,[typeof e.icon==`object`&&e.icon.wrap?(t(),D(`div`,Ks,[k(No,{image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,[`image`,`alt`,`height`,`width`])])):typeof e.icon==`object`?(t(),j(No,{key:1,image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,[`image`,`alt`,`height`,`width`])):e.icon&&r.value?(t(),D(`div`,qs,[k(Z,{name:e.icon},null,8,[`name`])])):e.icon?(t(),D(`div`,{key:3,class:`icon`,innerHTML:e.icon},null,8,Js)):L(``,!0),T(`h2`,{class:`title`,innerHTML:e.title},null,8,Ys),Array.isArray(e.details)?(t(),D(`ul`,Xs,[(t(!0),D(P,null,f(e.details,e=>(t(),D(`li`,{key:e,innerHTML:e},null,8,Zs))),128))])):e.details?(t(),D(`p`,{key:5,class:`details`,innerHTML:e.details},null,8,Qs)):L(``,!0),e.linkText?(t(),D(`div`,$s,[T(`p`,ec,[M(a(e.linkText)+` `,1),i[0]||=T(`span`,{class:`vpi-arrow-right link-text-icon`},null,-1)])])):L(``,!0)])]),_:1},8,[`href`,`rel`,`target`,`tag`]))}}),[[`__scopeId`,`data-v-47b11640`]]),nc=[`innerHTML`],rc=[`innerHTML`],ic={class:`items`},ac=Y(C({__name:`VPHomeFeatures`,props:{type:{},title:{},description:{},features:{},full:{type:Boolean},backgroundImage:{},backgroundAttachment:{},onlyOnce:{type:Boolean},index:{}},setup(e){let n=F(()=>{let t=e.features?.length;if(t){if(t===2)return`grid-2`;if(t===3)return`grid-3`;if(t%3==0)return`grid-6`;if(t>3)return`grid-4`}});return(r,i)=>e.features?(t(),j(Pa,R({key:0,class:`vp-home-features`},{type:e.type,backgroundAttachment:e.backgroundAttachment,backgroundImage:e.backgroundImage,full:e.full,index:e.index}),{default:d(()=>[e.title?(t(),D(`h2`,{key:0,class:`title`,innerHTML:e.title},null,8,nc)):L(``,!0),e.description?(t(),D(`p`,{key:1,class:`description`,innerHTML:e.description},null,8,rc)):L(``,!0),T(`div`,ic,[(t(!0),D(P,null,f(e.features,e=>(t(),D(`div`,{key:e.title,class:z([`item`,[n.value]])},[k(tc,R({ref_for:!0},e),null,16)],2))),128))])]),_:1},16)):L(``,!0)}}),[[`__scopeId`,`data-v-f500689a`]]);function oc(e){let t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function sc(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function cc(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function lc(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function uc(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function dc(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function fc(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function pc(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function mc(e,t){let n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)}function hc(e,t){let n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i}function gc(e){let t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function _c(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function vc(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function yc(e,t){let n=t[0],r=t[1],i=t[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a)),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a,e}function bc(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function xc(e,t,n){let r=t[0],i=t[1],a=t[2],o=n[0],s=n[1],c=n[2];return e[0]=i*c-a*s,e[1]=a*o-r*c,e[2]=r*s-i*o,e}function Sc(e,t,n,r){let i=t[0],a=t[1],o=t[2];return e[0]=i+r*(n[0]-i),e[1]=a+r*(n[1]-a),e[2]=o+r*(n[2]-o),e}function Cc(e,t,n,r,i){let a=Math.exp(-r*i),o=t[0],s=t[1],c=t[2];return e[0]=n[0]+(o-n[0])*a,e[1]=n[1]+(s-n[1])*a,e[2]=n[2]+(c-n[2])*a,e}function wc(e,t,n){let r=t[0],i=t[1],a=t[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o||=1,e[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,e[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,e[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,e}function Tc(e,t,n){let r=t[0],i=t[1],a=t[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o||=1,e[0]=(n[0]*r+n[4]*i+n[8]*a)/o,e[1]=(n[1]*r+n[5]*i+n[9]*a)/o,e[2]=(n[2]*r+n[6]*i+n[10]*a)/o,e}function Ec(e,t,n){let r=t[0],i=t[1],a=t[2];return e[0]=r*n[0]+i*n[3]+a*n[6],e[1]=r*n[1]+i*n[4]+a*n[7],e[2]=r*n[2]+i*n[5]+a*n[8],e}function Dc(e,t,n){let r=t[0],i=t[1],a=t[2],o=n[0],s=n[1],c=n[2],l=n[3],u=s*a-c*i,d=c*r-o*a,f=o*i-s*r,p=s*f-c*d,m=c*u-o*f,h=o*
9d-s*u,g=l*2;return u*=g,d*=g,f*=g,p*=2,m*=2,h*=2,e[0]=r+u+p,e[1]=i+d+m,e[2]=a+f+h,e}var Oc=(function(){let e=[0,0,0],t=[0,0,0];return function(n,r){sc(e,n),sc(t,r),yc(e,e),yc(t,t);let i=bc(e,t);return i>1?0:i<-1?Math.PI:Math.acos(i)}})();function kc(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}var $=class e extends Array{constructor(e=0,t=e,n=e){return super(e,t,n),this}get x(){return this[0]}get y(){return this[1]}get z(){return this[2]}set x(e){this[0]=e}set y(e){this[1]=e}set z(e){this[2]=e}set(e,t=e,n=e){return e.length?this.copy(e):(cc(this,e,t,n),this)}copy(e){return sc(this,e),this}add(e,t){return t?lc(this,e,t):lc(this,this,e),this}sub(e,t){return t?uc(this,e,t):uc(this,this,e),this}multiply(e){return e.length?dc(this,this,e):pc(this,this,e),this}divide(e){return e.length?fc(this,this,e):pc(this,this,1/e),this}inverse(e=this){return vc(this,e),this}len(){return oc(this)}distance(e){return e?mc(this,e):oc(this)}squaredLen(){return gc(this)}squaredDistance(e){return e?hc(this,e):gc(this)}negate(e=this){return _c(this,e),this}cross(e,t){return t?xc(this,e,t):xc(this,this,e),this}scale(e){return pc(this,this,e),this}normalize(){return yc(this,this),this}dot(e){return bc(this,e)}equals(e){return kc(this,e)}applyMatrix3(e){return Ec(this,this,e),this}applyMatrix4(e){return wc(this,this,e),this}scaleRotateMatrix4(e){return Tc(this,this,e),this}applyQuaternion(e){return Dc(this,this,e),this}angle(e){return Oc(this,e)}lerp(e,t){return Sc(this,this,e,t),this}smoothLerp(e,t,n){return Cc(this,this,e,t,n),this}clone(){return new e(this[0],this[1],this[2])}fromArray(e,t=0){return this[0]=e[t],this[1]=e[t+1],this[2]=e[t+2],this}toArray(e=[],t=0){return e[t]=this[0],e[t+1]=this[1],e[t+2]=this[2],e}transformDirection(e){let t=this[0],n=this[1],r=this[2];return this[0]=e[0]*t+e[4]*n+e[8]*r,this[1]=e[1]*t+e[5]*n+e[9]*r,this[2]=e[2]*t+e[6]*n+e[10]*r,this.normalize()}},Ac=new $,jc=1,Mc=1,Nc=!1,Pc=class{constructor(e,t={}){e.canvas||console.error(`gl not passed as first argument to Geometry`),this.gl=e,this.attributes=t,this.id=jc++,this.VAOs={},this.drawRange={start:0,count:0},this.instancedCount=0,this.gl.renderer.bindVertexArray(null),this.gl.renderer.currentGeometry=null,this.glState=this.gl.renderer.state;for(let e in t)this.addAttribute(e,t[e])}addAttribute(e,t){if(this.attributes[e]=t,t.id=Mc++,t.size=t.size||1,t.type=t.type||(t.data.constructor===Float32Array?this.gl.FLOAT:t.data.constructor===Uint16Array?this.gl.UNSIGNED_SHORT:this.gl.UNSIGNED_INT),t.target=e===`index`?this.gl.ELEMENT_ARRAY_BUFFER:this.gl.ARRAY_BUFFER,t.normalized=t.normalized||!1,t.stride=t.stride||0,t.offset=t.offset||0,t.count=t.count||(t.stride?t.data.byteLength/t.stride:t.data.length/t.size),t.divisor=t.instanced||0,t.needsUpdate=!1,t.usage=t.usage||this.gl.STATIC_DRAW,t.buffer||this.updateAttribute(t),t.divisor){if(this.isInstanced=!0,this.instancedCount&&this.instancedCount!==t.count*t.divisor)return console.warn(`geometry has multiple instanced buffers of different length`),this.instancedCount=Math.min(this.instancedCount,t.count*t.divisor);this.instancedCount=t.count*t.divisor}else e===`index`?this.drawRange.count=t.count:this.attributes.index||(this.drawRange.count=Math.max(this.drawRange.count,t.count))}updateAttribute(e){let t=!e.buffer;t&&(e.buffer=this.gl.createBuffer()),this.glState.boundBuffer!==e.buffer&&(this.gl.bindBuffer(e.target,e.buffer),this.glState.boundBuffer=e.buffer),t?this.gl.bufferData(e.target,e.data,e.usage):this.gl.bufferSubData(e.target,0,e.data),e.needsUpdate=!1}setIndex(e){this.addAttribute(`index`,e)}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}setInstancedCount(e){this.instancedCount=e}createVAO(e){this.VAOs[e.attributeOrder]=this.gl.renderer.createVertexArray(),this.gl.renderer.bindVertexArray(this.VAOs[e.attributeOrder]),this.bindAttributes(e)}bindAttributes(e){e.attributeLocations.forEach((e,{name:t,type:n})=>{if(!this.attributes[t]){console.warn(`active attribute ${t} not being supplied`);return}let r=this.attributes[t];this.gl.bindBuffer(r.target,r.buffer),this.glState.boundBuffer=r.buffer;let i=1;n===35674&&(i=2),n===35675&&(i=3),n===35676&&(i=4);
9let a=r.size/i,o=i===1?0:i*i*4,s=i===1?0:i*4;for(let t=0;t<i;t++)this.gl.vertexAttribPointer(e+t,a,r.type,r.normalized,r.stride+o,r.offset+t*s),this.gl.enableVertexAttribArray(e+t),this.gl.renderer.vertexAttribDivisor(e+t,r.divisor)}),this.attributes.index&&this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER,this.attributes.index.buffer)}draw({program:e,mode:t=this.gl.TRIANGLES}){this.gl.renderer.currentGeometry!==`${this.id}_${e.attributeOrder}`&&(this.VAOs[e.attributeOrder]||this.createVAO(e),this.gl.renderer.bindVertexArray(this.VAOs[e.attributeOrder]),this.gl.renderer.currentGeometry=`${this.id}_${e.attributeOrder}`),e.attributeLocations.forEach((e,{name:t})=>{let n=this.attributes[t];n.needsUpdate&&this.updateAttribute(n)});let n=2;this.attributes.index?.type===this.gl.UNSIGNED_INT&&(n=4),this.isInstanced?this.attributes.index?this.gl.renderer.drawElementsInstanced(t,this.drawRange.count,this.attributes.index.type,this.attributes.index.offset+this.drawRange.start*n,this.instancedCount):this.gl.renderer.drawArraysInstanced(t,this.drawRange.start,this.drawRange.count,this.instancedCount):this.attributes.index?this.gl.drawElements(t,this.drawRange.count,this.attributes.index.type,this.attributes.index.offset+this.drawRange.start*n):this.gl.drawArrays(t,this.drawRange.start,this.drawRange.count)}getPosition(){let e=this.attributes.position;if(e.data)return e;if(!Nc)return console.warn(`No position buffer data found to compute bounds`),Nc=!0}computeBoundingBox(e){e||=this.getPosition();let t=e.data,n=e.size;this.bounds||={min:new $,max:new $,center:new $,scale:new $,radius:1/0};let r=this.bounds.min,i=this.bounds.max,a=this.bounds.center,o=this.bounds.scale;r.set(1/0),i.set(-1/0);for(let e=0,a=t.length;e<a;e+=n){let n=t[e],a=t[e+1],o=t[e+2];r.x=Math.min(n,r.x),r.y=Math.min(a,r.y),r.z=Math.min(o,r.z),i.x=Math.max(n,i.x),i.y=Math.max(a,i.y),i.z=Math.max(o,i.z)}o.sub(i,r),a.add(r,i).divide(2)}computeBoundingSphere(e){e||=this.getPosition();let t=e.data,n=e.size;this.bounds||this.computeBoundingBox(e);let r=0;for(let e=0,i=t.length;e<i;e+=n)Ac.fromArray(t,e),r=Math.max(r,this.bounds.center.squaredDistance(Ac));this.bounds.radius=Math.sqrt(r)}remove(){for(let e in this.VAOs)this.gl.renderer.deleteVertexArray(this.VAOs[e]),delete this.VAOs[e];for(let e in this.attributes)this.gl.deleteBuffer(this.attributes[e].buffer),delete this.attributes[e]}},Fc=1,Ic={},Lc=class{constructor(e,{vertex:t,fragment:n,uniforms:r={},transparent:i=!1,cullFace:a=e.BACK,frontFace:o=e.CCW,depthTest:s=!0,depthWrite:c=!0,depthFunc:l=e.LEQUAL}={}){e.canvas||console.error(`gl not passed as first argument to Program`),this.gl=e,this.uniforms=r,this.id=Fc++,t||console.warn(`vertex shader not supplied`),n||console.warn(`fragment shader not supplied`),this.transparent=i,this.cullFace=a,this.frontFace=o,this.depthTest=s,this.depthWrite=c,this.depthFunc=l,this.blendFunc={},this.blendEquation={},this.stencilFunc={},this.stencilOp={},this.transparent&&!this.blendFunc.src&&(this.gl.renderer.premultipliedAlpha?this.setBlendFunc(this.gl.ONE,this.gl.ONE_MINUS_SRC_ALPHA):this.setBlendFunc(this.gl.SRC_ALPHA,this.gl.ONE_MINUS_SRC_ALPHA)),this.vertexShader=e.createShader(e.VERTEX_SHADER),this.fragmentShader=e.createShader(e.FRAGMENT_SHADER),this.program=e.createProgram(),e.attachShader(this.program,this.vertexShader),e.attachShader(this.program,this.fragmentShader),this.setShaders({vertex:t,fragment:n})}setShaders({vertex:e,fragment:t}){if(e&&(this.gl.shaderSource(this.vertexShader,e),this.gl.compileShader(this.vertexShader),this.gl.getShaderInfoLog(this.vertexShader)!==``&&console.warn(`${this.gl.getShaderInfoLog(this.vertexShader)}\nVertex Shader\n${zc(e)}`)),t&&(this.gl.shaderSource(this.fragmentShader,t),this.gl.compileShader(this.fragmentShader),this.gl.getShaderInfoLog(this.fragmentShader)!==``&&console.warn(`${this.gl.getShaderInfoLog(this.fragmentShader)}\nFragment Shader\n${zc(t)}`)),this.gl.linkProgram(this.program),!this.gl.getProgramParameter(this.program,this.gl.LINK_STATUS))return console.warn(this.gl.getProgramInfoLog(this.program));this.uniformLocations=new Map;let n=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_UNIFORMS);for(let e=0;e<n;e++){let t=this.gl.getActiveUniform(this.program,e);this.uniformLocations.set(t,this.gl.getUniformLocation(this.program,t.name));let n=t.name.match(/(\w+)/g);t.uniformName=n[0],t.nameComponents=n.slice(1)}this.attributeLocations=new Map;let r=[],i=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES);for(let e=0;e<i;e++){let t=this.gl.getActiveAttrib(this.program,e),n=this.gl.getAttribLocation(this.program,t.name);n!==-1&&(r[n]=t.name,this.attributeLocations.set(t,n))}this.attributeOrder=r.join(``)}setBlendFunc(e,t,n,r){this.blendFunc.src=e,this.blendFunc.dst=t,this.blendFunc.srcAlpha=n,this.blendFunc.dstAlpha=r,e&&(this.transparent=!0)}setBlendEquation(e,t){this.blendEquation.modeRGB=e,this.blendEquation.modeAlpha=t}setStencilFunc(e,t,n){this.stencilRef=t,this.stencilFunc.func=e,this.stencilFunc.ref=t,this.stencilFunc.mask=n}setStencilOp(e,t,n){this.stencilOp.stencilFail=e,this.stencilOp.depthFail=t,this.stencilOp.depthPass=n}applyState(){this.depthTest?this.gl.renderer.enable(this.gl.DEPTH_TEST):this.gl.renderer.disable(this.gl.DEPTH_TEST),this.cullFace?this.gl.renderer.enable(this.gl.CULL_FACE):this.gl.renderer.disable(this.gl.CULL_FACE),this.blendFunc.src?this.gl.renderer.enable(this.gl.BLEND):this.gl.renderer.disable(this.gl.BLEND),this.cullFace&&this.gl.renderer.setCullFace(this.cullFace),this.gl.renderer.setFrontFace(this.frontFace),this.gl.renderer.setDepthMask(this.depthWrite),this.gl.renderer.setDepthFunc(this.depthFunc),this.blendFunc.src&&this.gl.renderer.setBlendFunc(this.blendFunc.src,this.blendFunc.dst,this.blendFunc.srcAlpha,this.blendFunc.dstAlpha),this.gl.renderer.setBlendEquation(this.blendEquation.modeRGB,this.blendEquation.modeAlpha),this.stencilFunc.func||this.stencilOp.stencilFail?this.gl.renderer.enable(this.gl.STENCIL_TEST):this.gl.renderer.disable(this.gl.STENCIL_TEST),this.gl.renderer.setStencilFunc(this.stencilFunc.func,this.stencilFunc.ref,this.stencilFunc.mask),this.gl.renderer.setStencilOp(this.stencilOp.stencilFail,this.stencilOp.depthFail,this.stencilOp.depthPass)}use({flipFaces:e=!1}={}){let t=-1;this.gl.renderer.state.currentProgram!==this.id&&(this.gl.useProgram(this.program),this.gl.renderer.state.currentProgram=this.id
9),this.uniformLocations.forEach((e,n)=>{let r=this.uniforms[n.uniformName];for(let e of n.nameComponents){if(!r)break;if(e in r)r=r[e];else if(Array.isArray(r.value))break;else{r=void 0;break}}if(!r)return Wc(`Active uniform ${n.name} has not been supplied`);if(r&&r.value===void 0)return Wc(`${n.name} uniform is missing a value parameter`);if(r.value.texture)return t+=1,r.value.update(t),Rc(this.gl,n.type,e,t);if(r.value.length&&r.value[0].texture){let i=[];return r.value.forEach(e=>{t+=1,e.update(t),i.push(t)}),Rc(this.gl,n.type,e,i)}Rc(this.gl,n.type,e,r.value)}),this.applyState(),e&&this.gl.renderer.setFrontFace(this.frontFace===this.gl.CCW?this.gl.CW:this.gl.CCW)}remove(){this.gl.deleteProgram(this.program)}};function Rc(e,t,n,r){r=r.length?Bc(r):r;let i=e.renderer.state.uniformLocations.get(n);if(r.length)if(i===void 0||i.length!==r.length)e.renderer.state.uniformLocations.set(n,r.slice(0));else{if(Vc(i,r))return;i.set?i.set(r):Hc(i,r),e.renderer.state.uniformLocations.set(n,i)}else{if(i===r)return;e.renderer.state.uniformLocations.set(n,r)}switch(t){case 5126:return r.length?e.uniform1fv(n,r):e.uniform1f(n,r);case 35664:return e.uniform2fv(n,r);case 35665:return e.uniform3fv(n,r);case 35666:return e.uniform4fv(n,r);case 35670:case 5124:case 35678:case 36306:case 35680:case 36289:return r.length?e.uniform1iv(n,r):e.uniform1i(n,r);case 35671:case 35667:return e.uniform2iv(n,r);case 35672:case 35668:return e.uniform3iv(n,r);case 35673:case 35669:return e.uniform4iv(n,r);case 35674:return e.uniformMatrix2fv(n,!1,r);case 35675:return e.uniformMatrix3fv(n,!1,r);case 35676:return e.uniformMatrix4fv(n,!1,r)}}function zc(e){let t=e.split(` 10`);for(let e=0;e<t.length;e++)t[e]=e+1+`: `+t[e];return t.join(` 11`)}function Bc(e){let t=e.length,n=e[0].length;if(n===void 0)return e;let r=t*n,i=Ic[r];i||(Ic[r]=i=new Float32Array(r));for(let r=0;r<t;r++)i.set(e[r],r*n);return i}function Vc(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}function Hc(e,t){for(let n=0,r=e.length;n<r;n++)e[n]=t[n]}var Uc=0;function Wc(e){Uc>100||(console.warn(e),Uc++,Uc>100&&console.warn(`More than 100 program warnings - stopping logs.`))}var Gc=new $,Kc=1,qc=class{constructor({canvas:e=document.createElement(`canvas`),width:t=300,height:n=150,dpr:r=1,alpha:i=!1,depth:a=!0,stencil:o=!1,antialias:s=!1,premultipliedAlpha:c=!1,preserveDrawingBuffer:l=!1,powerPreference:u=`default`,autoClear:d=!0,webgl:f=2}={}){let p={alpha:i,depth:a,stencil:o,antialias:s,premultipliedAlpha:c,preserveDrawingBuffer:l,powerPreference:u};this.dpr=r,this.alpha=i,this.color=!0,this.depth=a,this.stencil=o,this.premultipliedAlpha=c,this.autoClear=d,this.id=Kc++,f===2&&(this.gl=e.getContext(`webgl2`,p)),this.isWebgl2=!!this.gl,this.gl||=e.getContext(`webgl`,p),this.gl||console.error(`unable to create webgl context`),this.gl.renderer=this,this.setSize(t,n),this.state={},this.state.blendFunc={src:this.gl.ONE,dst:this.gl.ZERO},this.state.blendEquation={modeRGB:this.gl.FUNC_ADD},this.state.cullFace=!1,this.state.frontFace=this.gl.CCW,this.state.depthMask=!0,this.state.depthFunc=this.gl.LEQUAL,this.state.premultiplyAlpha=!1,this.state.flipY=!1,this.state.unpackAlignment=4,this.state.framebuffer=null,this.state.viewport={x:0,y:0,width:null,height:null},this.state.textureUnits=[],this.state.activeTextureUnit=0,this.state.boundBuffer=null,this.state.uniformLocations=new Map,this.state.currentProgram=null,this.extensions={},this.isWebgl2?(this.getExtension(`EXT_color_buffer_float`),this.getExtension(`OES_texture_float_linear`)):(this.getExtension(`OES_texture_float`),this.getExtension(`OES_texture_float_linear`),this.getExtension(`OES_texture_half_float`),this.getExtension(`OES_texture_half_float_linear`),this.getExtension(`OES_element_index_uint`),this.getExtension(`OES_standard_derivatives`),this.getExtension(`EXT_sRGB`),this.getExtension(`WEBGL_depth_texture`),this.getExtension(`WEBGL_draw_buffers`)),this.getExtension(`WEBGL_compressed_texture_astc`),this.getExtension(`EXT_texture_compression_bptc`),this.getExtension(`WEBGL_compressed_texture_s3tc`),this.getExtension(`WEBGL_compressed_texture_etc1`),this.getExtension(`WEBGL_compressed_texture_pvrtc`),this.getExtension(`WEBKIT_WEBGL_compressed_texture_pvrtc`),this.vertexAttribDivisor=this.getExtension(`ANGLE_
11instanced_arrays`,`vertexAttribDivisor`,`vertexAttribDivisorANGLE`),this.drawArraysInstanced=this.getExtension(`ANGLE_instanced_arrays`,`drawArraysInstanced`,`drawArraysInstancedANGLE`),this.drawElementsInstanced=this.getExtension(`ANGLE_instanced_arrays`,`drawElementsInstanced`,`drawElementsInstancedANGLE`),this.createVertexArray=this.getExtension(`OES_vertex_array_object`,`createVertexArray`,`createVertexArrayOES`),this.bindVertexArray=this.getExtension(`OES_vertex_array_object`,`bindVertexArray`,`bindVertexArrayOES`),this.deleteVertexArray=this.getExtension(`OES_vertex_array_object`,`deleteVertexArray`,`deleteVertexArrayOES`),this.drawBuffers=this.getExtension(`WEBGL_draw_buffers`,`drawBuffers`,`drawBuffersWEBGL`),this.parameters={},this.parameters.maxTextureUnits=this.gl.getParameter(this.gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS),this.parameters.maxAnisotropy=this.getExtension(`EXT_texture_filter_anisotropic`)?this.gl.getParameter(this.getExtension(`EXT_texture_filter_anisotropic`).MAX_TEXTURE_MAX_ANISOTROPY_EXT):0}setSize(e,t){this.width=e,this.height=t,this.gl.canvas.width=e*this.dpr,this.gl.canvas.height=t*this.dpr,this.gl.canvas.style&&Object.assign(this.gl.canvas.style,{width:e+`px`,height:t+`px`})}setViewport(e,t,n=0,r=0){this.state.viewport.width===e&&this.state.viewport.height===t||(this.state.viewport.width=e,this.state.viewport.height=t,this.state.viewport.x=n,this.state.viewport.y=r,this.gl.viewport(n,r,e,t))}setScissor(e,t,n=0,r=0){this.gl.scissor(n,r,e,t)}enable(e){this.state[e]!==!0&&(this.gl.enable(e),this.state[e]=!0)}disable(e){this.state[e]!==!1&&(this.gl.disable(e),this.state[e]=!1)}setBlendFunc(e,t,n,r){this.state.blendFunc.src===e&&this.state.blendFunc.dst===t&&this.state.blendFunc.srcAlpha===n&&this.state.blendFunc.dstAlpha===r||(this.state.blendFunc.src=e,this.state.blendFunc.dst=t,this.state.blendFunc.srcAlpha=n,this.state.blendFunc.dstAlpha=r,n===void 0?this.gl.blendFunc(e,t):this.gl.blendFuncSeparate(e,t,n,r))}setBlendEquation(e,t){e||=this.gl.FUNC_ADD,!(this.state.blendEquation.modeRGB===e&&this.state.blendEquation.modeAlpha===t)&&(this.state.blendEquation.modeRGB=e,this.state.blendEquation.modeAlpha=t,t===void 0?this.gl.blendEquation(e):this.gl.blendEquationSeparate(e,t))}setCullFace(e){this.state.cullFace!==e&&(this.state.cullFace=e,this.gl.cullFace(e))}setFrontFace(e){this.state.frontFace!==e&&(this.state.frontFace=e,this.gl.frontFace(e))}setDepthMask(e){this.state.depthMask!==e&&(this.state.depthMask=e,this.gl.depthMask(e))}setDepthFunc(e){this.state.depthFunc!==e&&(this.state.depthFunc=e,this.gl.depthFunc(e))}setStencilMask(e){this.state.stencilMask!==e&&(this.state.stencilMask=e,this.gl.stencilMask(e))}setStencilFunc(e,t,n){this.state.stencilFunc===e&&this.state.stencilRef===t&&this.state.stencilFuncMask===n||(this.state.stencilFunc=e||this.gl.ALWAYS,this.state.stencilRef=t||0,this.state.stencilFuncMask=n||0,this.gl.stencilFunc(e||this.gl.ALWAYS,t||0,n||0))}setStencilOp(e,t,n){this.state.stencilFail===e&&this.state.stencilDepthFail===t&&this.state.stencilDepthPass===n||(this.state.stencilFail=e,this.state.stencilDepthFail=t,this.state.stencilDepthPass=n,this.gl.stencilOp(e,t,n))}activeTexture(e){this.state.activeTextureUnit!==e&&(this.state.activeTextureUnit=e,this.gl.activeTexture(this.gl.TEXTURE0+e))}bindFramebuffer({target:e=this.gl.FRAMEBUFFER,buffer:t=null}={}){this.state.framebuffer!==t&&(this.state.framebuffer=t,this.gl.bindFramebuffer(e,t))}getExtension(e,t,n){return t&&this.gl[t]?this.gl[t].bind(this.gl):(this.extensions[e]||(this.extensions[e]=this.gl.getExtension(e)),t?this.extensions[e]?this.extensions[e][n].bind(this.extensions[e]):null:this.extensions[e])}sortOpaque(e,t){return e.renderOrder===t.renderOrder?e.program.id===t.program.id?e.zDepth===t.zDepth?t.id-e.id:e.zDepth-t.zDepth:e.program.id-t.program.id:e.renderOrder-t.renderOrder}
11sortTransparent(e,t){return e.renderOrder===t.renderOrder?e.zDepth===t.zDepth?t.id-e.id:t.zDepth-e.zDepth:e.renderOrder-t.renderOrder}sortUI(e,t){return e.renderOrder===t.renderOrder?e.program.id===t.program.id?t.id-e.id:e.program.id-t.program.id:e.renderOrder-t.renderOrder}getRenderList({scene:e,camera:t,frustumCull:n,sort:r}){let i=[];if(t&&n&&t.updateFrustum(),e.traverse(e=>{if(!e.visible)return!0;e.draw&&(n&&e.frustumCulled&&t&&!t.frustumIntersectsMesh(e)||i.push(e))}),r){let e=[],n=[],r=[];i.forEach(i=>{i.program.transparent?i.program.depthTest?n.push(i):r.push(i):e.push(i),i.zDepth=0,!(i.renderOrder!==0||!i.program.depthTest||!t)&&(i.worldMatrix.getTranslation(Gc),Gc.applyMatrix4(t.projectionViewMatrix),i.zDepth=Gc.z)}),e.sort(this.sortOpaque),n.sort(this.sortTransparent),r.sort(this.sortUI),i=e.concat(n,r)}return i}render({scene:e,camera:t,target:n=null,update:r=!0,sort:i=!0,frustumCull:a=!0,clear:o}){n===null?(this.bindFramebuffer(),this.setViewport(this.width*this.dpr,this.height*this.dpr)):(this.bindFramebuffer(n),this.setViewport(n.width,n.height)),(o||this.autoClear&&o!==!1)&&(this.depth&&(!n||n.depth)&&(this.enable(this.gl.DEPTH_TEST),this.setDepthMask(!0)),(this.stencil||!n||n.stencil)&&(this.enable(this.gl.STENCIL_TEST),this.setStencilMask(255)),this.gl.clear((this.color?this.gl.COLOR_BUFFER_BIT:0)|(this.depth?this.gl.DEPTH_BUFFER_BIT:0)|(this.stencil?this.gl.STENCIL_BUFFER_BIT:0))),r&&e.updateMatrixWorld(),t&&t.updateMatrixWorld(),this.getRenderList({scene:e,camera:t,frustumCull:a,sort:i}).forEach(e=>{e.draw({camera:t})})}};function Jc(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function Yc(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Xc(e,t){let n=t[0],r=t[1],i=t[2],a=t[3],o=n*n+r*r+i*i+a*a;return o>0&&(o=1/Math.sqrt(o)),e[0]=n*o,e[1]=r*o,e[2]=i*o,e[3]=a*o,e}function Zc(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function Qc(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e}function $c(e,t,n){n*=.5;let r=Math.sin(n);return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=Math.cos(n),e}function el(e,t,n){let r=t[0],i=t[1],a=t[2],o=t[3],s=n[0],c=n[1],l=n[2],u=n[3];return e[0]=r*u+o*s+i*l-a*c,e[1]=i*u+o*c+a*s-r*l,e[2]=a*u+o*l+r*c-i*s,e[3]=o*u-r*s-i*c-a*l,e}function tl(e,t,n){n*=.5;let r=t[0],i=t[1],a=t[2],o=t[3],s=Math.sin(n),c=Math.cos(n);return e[0]=r*c+o*s,e[1]=i*c+a*s,e[2]=a*c-i*s,e[3]=o*c-r*s,e}function nl(e,t,n){n*=.5;let r=t[0],i=t[1],a=t[2],o=t[3],s=Math.sin(n),c=Math.cos(n);return e[0]=r*c-a*s,e[1]=i*c+o*s,e[2]=a*c+r*s,e[3]=o*c-i*s,e}function rl(e,t,n){n*=.5;let r=t[0],i=t[1],a=t[2],o=t[3],s=Math.sin(n),c=Math.cos(n);return e[0]=r*c+i*s,e[1]=i*c-r*s,e[2]=a*c+o*s,e[3]=o*c-a*s,e}function il(e,t,n,r){let i=t[0],a=t[1],o=t[2],s=t[3],c=n[0],l=n[1],u=n[2],d=n[3],f,p,m,h,g;return p=i*c+a*l+o*u+s*d,p<0&&(p=-p,c=-c,l=-l,u=-u,d=-d),1-p>1e-6?(f=Math.acos(p),m=Math.sin(f),h=Math.sin((1-r)*f)/m,g=Math.sin(r*f)/m):(h=1-r,g=r),e[0]=h*i+g*c,e[1]=h*a+g*l,e[2]=h*o+g*u,e[3]=h*s+g*d,e}function al(e,t){let n=t[0],r=t[1],i=t[2],a=t[3],o=n*n+r*r+i*i+a*a,s=o?1/o:0;return e[0]=-n*s,e[1]=-r*s,e[2]=-i*s,e[3]=a*s,e}function ol(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function sl(e,t){let n=t[0]+t[4]+t[8],r;if(n>0)r=Math.sqrt(n+1),e[3]=.5*r,r=.5/r,e[0]=(t[5]-t[7])*r,e[1]=(t[6]-t[2])*r,e[2]=(t[1]-t[3])*r;else{let n=0;t[4]>t[0]&&(n=1),t[8]>t[n*3+n]&&(n=2);let i=(n+1)%3,a=(n+2)%3;r=Math.sqrt(t[n*3+n]-t[i*3+i]-t[a*3+a]+1),e[n]=.5*r,r=.5/r,e[3]=(t[i*3+a]-t[a*3+i])*r,e[i]=(t[i*3+n]+t[n*3+i])*r,e[a]=(t[a*3+n]+t[n*3+a])*r}return e}function cl(e,t,n=`YXZ`){let r=Math.sin(t[0]*.5),i=Math.cos(t[0]*.5),a=Math.sin(t[1]*.5),o=Math.cos(t[1]*.5),s=Math.sin(t[2]*.5),c=Math.cos(t[2]*.5);return n===`XYZ`?(e[0]=r*o*c+i*a*s,e[1]=i*a*c-r*o*s,e[2]=i*o*s+r*a*c,e[3]=i*o*c-r*a*s):n===`YXZ`?(e[0]=r*o*c+i*a*s,e[1]=i*a*c-r*o*s,e[2]=i*o*s-r*a*c,e[3]=i*o*c+r*a*s):n===`ZXY`?(e[0]=r*o*c-i*a*s,e[1]=i*a*c+r*o*s,e[2]=i*o*s+r*a*c,e[3]=i*o*c-r*a*s):n===`ZYX`?(e[0]=r*o*c-i*a*s,e[1]=i*a*c+r*o*s,e[2]=i*o*s-r*a*c,e[3]=i*o*c+r*a*s):n===`YZX`?(e[0]=r*o*c+i*a*s,e[1]=i*a*c+r*o*s,e[2]=i*o*s-r*a*c,e[3]=i*o*c-r*a*s):n===`XZY`&&(e[0]=r*o*c-i*a*s,e[1]=i*a*c-r*o*s,e[2]=i*o*s+r*a*c,e[3]=i*o*c+r*a*s),e}var ll=Jc,ul=Yc,dl=Zc,fl=Xc,pl=class extends Array{constructor(e=0,t=0,n=0,r=1){super(e,t,n,r),this.onChange=()=>{},this._target=this;let i=[`0`,`1`,`2`,`3`];return new Proxy(this,{set(e,t){let n=Reflect.set(...arguments);return n&&i.includes(t)&&e.onChange(),n}})}get x(){return this[0]}get y(){return this[1]}get z(){return this[2]}get w(){return this[3]}set x(e){this._target[0]=e,this.onChange()}set y(e){this._target[1]=e,this.onChange()}set z(e){this._target[2]=e,this.onChange()}set w(e){this._target[3]=e,this.onChange()}identity(){return Qc(this._target),this.onChange(),this}set(e,t,n,r){return e.length?this.copy(e):(ul(this._target,e,t,n,r),this.onChange(),this)}rotateX(e){return tl(this._target,this._target,e),this.onChange(),this}rotateY(e){return nl(this._target,this._target,e),this.onChange(),this}rotateZ(e){return rl(this._target,this._target,e),this.onChange(),this}inverse(e=this._target){return al(this._target,e),this.onChange(),this}conjugate(e=this._target){return ol(this._target,e),this.onChange(),this}copy(e){return ll(this._target,e),this.onChange(),this}normalize(e=this._target){return fl(this._target,e),this.onChange(),this}multiply(e,t){return t?el(this._target,e,t):el(this._target,this._target,e),this.onChange(),this}dot(e){return dl(this._target,e)}fromMatrix3(e){return sl(this._target,e),this.onChange(),this}fromEuler(e,t){return cl(this._target,e,e.order),t||this.onChange(),this}fromAxisAngle(e,t){return $c(this._target,e,t),this.onChange(),this}slerp(e,t){return il(this._target,this._target,e,t),this.onChange(),this}fromArray(e,t=0){return this._target[0]=e[t],this._target[1]=e[t+1],this._target[2]=e[t+2],this._target[3]=e[t+3],this.onChange(),this}toArray(e=[],t=0){return e[t]=this[0],e[t+1]=this[1],e[t+2]=this[2],e[t+3]=this[3],e}},ml=1e-6;function hl(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function gl(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=a,e[5]=o,e[6]=s,e[7]=c,e[8]=l,e[9]=u,e[10]=d,e[11]=f,e[12]=p,e[13]=m,e[14]=h,e[15]=g,e}function _l(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10
11]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function vl(e,t){let n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],d=t[9],f=t[10],p=t[11],m=t[12],h=t[13],g=t[14],_=t[15],v=n*s-r*o,y=n*c-i*o,b=n*l-a*o,x=r*c-i*s,S=r*l-a*s,C=i*l-a*c,w=u*h-d*m,T=u*g-f*m,E=u*_-p*m,D=d*g-f*h,O=d*_-p*h,k=f*_-p*g,A=v*k-y*O+b*D+x*E-S*T+C*w;return A?(A=1/A,e[0]=(s*k-c*O+l*D)*A,e[1]=(i*O-r*k-a*D)*A,e[2]=(h*C-g*S+_*x)*A,e[3]=(f*S-d*C-p*x)*A,e[4]=(c*E-o*k-l*T)*A,e[5]=(n*k-i*E+a*T)*A,e[6]=(g*b-m*C-_*y)*A,e[7]=(u*C-f*b+p*y)*A,e[8]=(o*O-s*E+l*w)*A,e[9]=(r*E-n*O-a*w)*A,e[10]=(m*S-h*b+_*v)*A,e[11]=(d*b-u*S-p*v)*A,e[12]=(s*T-o*D-c*w)*A,e[13]=(n*D-r*T+i*w)*A,e[14]=(h*y-m*x-g*v)*A,e[15]=(u*x-d*y+f*v)*A,e):null}function yl(e){let t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=e[9],d=e[10],f=e[11],p=e[12],m=e[13],h=e[14],g=e[15],_=t*o-n*a,v=t*s-r*a,y=t*c-i*a,b=n*s-r*o,x=n*c-i*o,S=r*c-i*s,C=l*m-u*p,w=l*h-d*p,T=l*g-f*p,E=u*h-d*m,D=u*g-f*m;return _*(d*g-f*h)-v*D+y*E+b*T-x*w+S*C}function bl(e,t,n){let r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],d=t[8],f=t[9],p=t[10],m=t[11],h=t[12],g=t[13],_=t[14],v=t[15],y=n[0],b=n[1],x=n[2],S=n[3];return e[0]=y*r+b*s+x*d+S*h,e[1]=y*i+b*c+x*f+S*g,e[2]=y*a+b*l+x*p+S*_,e[3]=y*o+b*u+x*m+S*v,y=n[4],b=n[5],x=n[6],S=n[7],e[4]=y*r+b*s+x*d+S*h,e[5]=y*i+b*c+x*f+S*g,e[6]=y*a+b*l+x*p+S*_,e[7]=y*o+b*u+x*m+S*v,y=n[8],b=n[9],x=n[10],S=n[11],e[8]=y*r+b*s+x*d+S*h,e[9]=y*i+b*c+x*f+S*g,e[10]=y*a+b*l+x*p+S*_,e[11]=y*o+b*u+x*m+S*v,y=n[12],b=n[13],x=n[14],S=n[15],e[12]=y*r+b*s+x*d+S*h,e[13]=y*i+b*c+x*f+S*g,e[14]=y*a+b*l+x*p+S*_,e[15]=y*o+b*u+x*m+S*v,e}function xl(e,t,n){let r=n[0],i=n[1],a=n[2],o,s,c,l,u,d,f,p,m,h,g,_;return t===e?(e[12]=t[0]*r+t[4]*i+t[8]*a+t[12],e[13]=t[1]*r+t[5]*i+t[9]*a+t[13],e[14]=t[2]*r+t[6]*i+t[10]*a+t[14],e[15]=t[3]*r+t[7]*i+t[11]*a+t[15]):(o=t[0],s=t[1],c=t[2],l=t[3],u=t[4],d=t[5],f=t[6],p=t[7],m=t[8],h=t[9],g=t[10],_=t[11],e[0]=o,e[1]=s,e[2]=c,e[3]=l,e[4]=u,e[5]=d,e[6]=f,e[7]=p,e[8]=m,e[9]=h,e[10]=g,e[11]=_,e[12]=o*r+u*i+m*a+t[12],e[13]=s*r+d*i+h*a+t[13],e[14]=c*r+f*i+g*a+t[14],e[15]=l*r+p*i+_*a+t[15]),e}function Sl(e,t,n){let r=n[0],i=n[1],a=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function Cl(e,t,n,r){let i=r[0],a=r[1],o=r[2],s=Math.hypot(i,a,o),c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,ee;return Math.abs(s)<ml?null:(s=1/s,i*=s,a*=s,o*=s,c=Math.sin(n),l=Math.cos(n),u=1-l,d=t[0],f=t[1],p=t[2],m=t[3],h=t[4],g=t[5],_=t[6],v=t[7],y=t[8],b=t[9],x=t[10],S=t[11],C=i*i*u+l,w=a*i*u+o*c,T=o*i*u-a*c,E=i*a*u-o*c,D=a*a*u+l,O=o*a*u+i*c,k=i*o*u+a*c,A=a*o*u-i*c,ee=o*o*u+l,e[0]=d*C+h*w+y*T,e[1]=f*C+g*w+b*T,e[2]=p*C+_*w+x*T,e[3]=m*C+v*w+S*T,e[4]=d*E+h*D+y*O,e[5]=f*E+g*D+b*O,e[6]=p*E+_*D+x*O,e[7]=m*E+v*D+S*O,e[8]=d*k+h*A+y*ee,e[9]=f*k+g*A+b*ee,e[10]=p*k+_*A+x*ee,e[11]=m*k+v*A+S*ee,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}function wl(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function Tl(e,t){let n=t[0],r=t[1],i=t[2],a=t[4],o=t[5],s=t[6],c=t[8],l=t[9],u=t[10];return e[0]=Math.hypot(n,r,i),e[1]=Math.hypot(a,o,s),e[2]=Math.hypot(c,l,u),e}function El(e){let t=e[0],n=e[1],r=e[2],i=e[4],a=e[5],o=e[6],s=e[8],c=e[9],l=e[10],u=t*t+n*n+r*r,d=i*i+a*a+o*o,f=s*s+c*c+l*l;return Math.sqrt(Math.max(u,d,f))}var Dl=(function(){let e=[1,1,1];return function(t,n){let r=e;Tl(r,n);let i=1/r[0],a=1/r[1],o=1/r[2],s=n[0]*i,c=n[1]*a,l=n[2]*o,u=n[4]*i,d=n[5]*a,f=n[6]*o,p=n[8]*i,m=n[9]*a,h=n[10]*o,g=s+d+h,_=0;return g>0?(_=Math.sqrt(g+1)*2,t[3]=.25*_,t[0]=(f-m)/_,t[1]=(p-l)/_,t[2]=(c-u)/_):s>d&&s>h?(_=Math.sqrt(1+s-d-h)*2,t[3]=(f-m)/_,t[0]=.25*_,t[1]=(c+u)/_,t[2]=(p+l)/_):d>h?(_=Math.sqrt(1+d-s-h)*2,t[3]=(p-l)/_,t[0]=(c+u)/_,t[1]=.25*_,t[2]=(f+m)/_):(_=Math.sqrt(1+h-s-d)*2,t[3]=(c-u)/_,t[0]=(p+l)/_,t[1]=(f+m)/_,t[2]=.25*_),t}})();function Ol(e,t,n,r){let i=oc([e[0],e[1],e[2]]),a=oc([e[4],e[5],e[6]]),o=oc([e[8],e[9],e[10]]);yl(e)<0&&(i=-i),n[0]=e[12],n[1]=e[13],n[2]=e[14];let s=e.slice(),c=1/i,l=1/a,u=1/o;s[0]*=c,s[1]*=c,s[2]*=c,s[4]*=l,s[5]*=l,s[6]*=l,s[8]*=u,s[9]*=u,s[
1110]*=u,Dl(t,s),r[0]=i,r[1]=a,r[2]=o}function kl(e,t,n,r){let i=e,a=t[0],o=t[1],s=t[2],c=t[3],l=a+a,u=o+o,d=s+s,f=a*l,p=a*u,m=a*d,h=o*u,g=o*d,_=s*d,v=c*l,y=c*u,b=c*d,x=r[0],S=r[1],C=r[2];return i[0]=(1-(h+_))*x,i[1]=(p+b)*x,i[2]=(m-y)*x,i[3]=0,i[4]=(p-b)*S,i[5]=(1-(f+_))*S,i[6]=(g+v)*S,i[7]=0,i[8]=(m+y)*C,i[9]=(g-v)*C,i[10]=(1-(f+h))*C,i[11]=0,i[12]=n[0],i[13]=n[1],i[14]=n[2],i[15]=1,i}function Al(e,t){let n=t[0],r=t[1],i=t[2],a=t[3],o=n+n,s=r+r,c=i+i,l=n*o,u=r*o,d=r*s,f=i*o,p=i*s,m=i*c,h=a*o,g=a*s,_=a*c;return e[0]=1-d-m,e[1]=u+_,e[2]=f-g,e[3]=0,e[4]=u-_,e[5]=1-l-m,e[6]=p+h,e[7]=0,e[8]=f+g,e[9]=p-h,e[10]=1-l-d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function jl(e,t,n,r,i){let a=1/Math.tan(t/2),o=1/(r-i);return e[0]=a/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+r)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*r*o,e[15]=0,e}function Ml(e,t,n,r,i,a,o){let s=1/(t-n),c=1/(r-i),l=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*c,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*l,e[11]=0,e[12]=(t+n)*s,e[13]=(i+r)*c,e[14]=(o+a)*l,e[15]=1,e}function Nl(e,t,n,r){let i=t[0],a=t[1],o=t[2],s=r[0],c=r[1],l=r[2],u=i-n[0],d=a-n[1],f=o-n[2],p=u*u+d*d+f*f;p===0?f=1:(p=1/Math.sqrt(p),u*=p,d*=p,f*=p);let m=c*f-l*d,h=l*u-s*f,g=s*d-c*u;return p=m*m+h*h+g*g,p===0&&(l?s+=1e-6:c?l+=1e-6:c+=1e-6,m=c*f-l*d,h=l*u-s*f,g=s*d-c*u,p=m*m+h*h+g*g),p=1/Math.sqrt(p),m*=p,h*=p,g*=p,e[0]=m,e[1]=h,e[2]=g,e[3]=0,e[4]=d*g-f*h,e[5]=f*m-u*g,e[6]=u*h-d*m,e[7]=0,e[8]=u,e[9]=d,e[10]=f,e[11]=0,e[12]=i,e[13]=a,e[14]=o,e[15]=1,e}function Pl(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e[9]=t[9]+n[9],e[10]=t[10]+n[10],e[11]=t[11]+n[11],e[12]=t[12]+n[12],e[13]=t[13]+n[13],e[14]=t[14]+n[14],e[15]=t[15]+n[15],e}function Fl(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e[6]=t[6]-n[6],e[7]=t[7]-n[7],e[8]=t[8]-n[8],e[9]=t[9]-n[9],e[10]=t[10]-n[10],e[11]=t[11]-n[11],e[12]=t[12]-n[12],e[13]=t[13]-n[13],e[14]=t[14]-n[14],e[15]=t[15]-n[15],e}function Il(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*n,e[9]=t[9]*n,e[10]=t[10]*n,e[11]=t[11]*n,e[12]=t[12]*n,e[13]=t[13]*n,e[14]=t[14]*n,e[15]=t[15]*n,e}var Ll=class extends Array{constructor(e=1,t=0,n=0,r=0,i=0,a=1,o=0,s=0,c=0,l=0,u=1,d=0,f=0,p=0,m=0,h=1){return super(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h),this}get x(){return this[12]}get y(){return this[13]}get z(){return this[14]}get w(){return this[15]}set x(e){this[12]=e}set y(e){this[13]=e}set z(e){this[14]=e}set w(e){this[15]=e}set(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){return e.length?this.copy(e):(gl(this,e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h),this)}translate(e,t=this){return xl(this,t,e),this}rotate(e,t,n=this){return Cl(this,n,e,t),this}scale(e,t=this){return Sl(this,t,typeof e==`number`?[e,e,e]:e),this}add(e,t){return t?Pl(this,e,t):Pl(this,this,e),this}sub(e,t){return t?Fl(this,e,t):Fl(this,this,e),this}multiply(e,t){return e.length?t?bl(this,e,t):bl(this,this,e):Il(this,this,e),this}identity(){return _l(this),this}copy(e){return hl(this,e),this}fromPerspective({fov:e,aspect:t,near:n,far:r}={}){return jl(this,e,t,n,r),this}fromOrthogonal({left:e,right:t,bottom:n,top:r,near:i,far:a}){return Ml(this,e,t,n,r,i,a),this}fromQuaternion(e){return Al(this,e),this}setPosition(e){return this.x=e[0],this.y=e[1],this.z=e[2],this}inverse(e=this){return vl(this,e),this}compose(e,t,n){return kl(this,e,t,n),this}decompose(e,t,n){return Ol(this,e,t,n),this}getRotation(e){return Dl(e,this),this}getTranslation(e){return wl(e,this),this}getScaling(e){return Tl(e,this),this}getMaxScaleOnAxis(){return El(this)}lookAt(e,t,n){return Nl(this,e,t,n),this}determinant(){return yl(this)}fromArray(e,t=0){return this[0]=e[t],this[1]=e[t+1],this[2]=e[t+2],this[3]=e[t+3],this[4]=e[t+4],this[5]=e[t+5],this[6]=e[t+6],this[7]=e[t+7],this[8]=e[t+8],this[9]=e[t+9],this[10]=e[t+10],this[11]=e[t+11],this[12]=e[t+12],this[13]=e[t+13],this[14]=e[t+14],this[15]=e[t+15],this}toArray(e=[],t=0){return e[t]=this[0],e[t+1]=this[1],e[t+2]=this[2],e[t+3]=this[3],e[t+4]=this[4],e[t+5]=this[5],e[t+6]=this[6],e[t+7]=this[7],e[t+8]=this[8],e[t+9]=this[9],e[t+10]=this[10],e[t+11]=this[11],e[t+12]=this[12],e[t+13]=this[13],e[t+14]=this[14],e[t+15]=this[15],e}};function Rl(e,t,n=`YXZ`){return n===`XYZ`?(e[1]=Math.asin(Math.min(Math.max(t[8],-1),1)),Math.abs(t[8])<.99999?(e[0]=Math.atan2(-t[9],t[10]),e[2]=Math.atan2(-t[4],t[0])):(e[0]=Math.atan2(t[6],t[5]),e[2]=0)):n===`YXZ`?(e[0]=Math.asin(-Math.min(Math.max(t[9],-1),1)),Math.abs(t[9])<.99999?(e[1]=Math.atan2(t[8],t[10]),e[2]=Math.atan2(t[1],t[5])):(e[1]=Math.atan2(-t[2],t[0]),e[2]=0)):n===`ZXY`?(e[0]=Math.asin(Math.min(Math.max(t[6],-1),1)),Math.abs(t[6])<.99999?(e[1]=Math.atan2(-t[2],t[10]),e[2]=Math.atan2(-t[4],t[5])):(e[1]=0,e[2]=Math.atan2(t[1],t[0]))):n===`ZYX`?(e[1]=Math.asin(-Math.min(Math.max(t[2],-1),1)),Math.abs(t[2])<.99999?(e[0]=Math.atan2(t[6],t[10]),e[2]=Math.atan2(t[1],t[0])):(e[0]=0,e[2]=Math.atan2(-t[4],t[5]))):n===`YZX`?(e[2]=Math.asin(Math.min(Math.max(t[1],-1),1)),Math.abs(t[1])<.99999?(e[0]=Math.atan2(-t[9],t[5]),e[1]=Math.atan2(-t[2],t[0])):(e[0]=0,e[1]=Math.atan2(t[8],t[10]))):n===`XZY`&&(e[2]=Math.asin(-Math.min(Math.max(t[4],-1),1)),Math.abs(t[4])<.99999?(e[0]=Math.atan2(t[6],t[5]),e[1]=Math.atan2(t[8],t[0])):(e[0]=Math.atan2(-t[9],t[10]),e[1]=0)),e}var zl=new Ll,Bl=class extends Array{constructor(e=0,t=e,n=e,r=`YXZ`){super(e,t,n),this.order=r,this.onChange=()=>{},this._target=this;let i=[`0`,`1`,`2`];return new Proxy(this,{set(e,t){let n=Reflect.set(...arguments);return n&&i.includes(t)&&e.onChange(),n}})}get x(){return this[0]}get y(){return this[1]}get z(){return this[2]}set x(e){this._target[0]=e,this.onChange()}set y(e){this._target[1]=e,this.onChange()}set z(e){this._target[2]=e,this.onChange()}set(e,t=e,n=e){return e.length?this.copy(e):(this._target[0]=e,this._target[1]=t,this._target[2]=n,this.onChange(),this)}copy(e){return this._target[0]=e[0],this._target[1]=e[1],this._target[2]=e[2],this.onChange(),this}reorder(e){return this._target.order=e,this.onChange(),this}fromRotationMatrix(e,t=this.order){return Rl(this._target,e,t),this.onChange(),this}fromQuaternion(e,t=this.order,n){return zl.fromQuaternion(e),this._target.fromRotationMatrix(zl,t),n||this.onChange(),this}fromArray(e,t=0){return this._target[0]=e[t],this._target[1]=e[t+1],this._target[2]=e[t+2],this}toArray(e=[],t=0){return e[t]=this[0],e[t+1]=this[1],e[t+2]=this[2],e}},Vl=class{constructor(){this.parent=null,this.children=[],this.visible=!0,this.matrix=new Ll,this.worldMatrix=new Ll,this.matrixAutoUpdate=!0,this.worldMatrixNeedsUpdate=!1,this.position=new $,this.quaternion=new pl,this.scale=new $(1),this.rotation=new Bl,this.up=new $(0,1,0),this.rotation._target.onChange=()=>this.quaternion.fromEuler(this.rotation,!0),this.quaternion._target.onChange=()=>this.rotation.fromQuaternion(this.quaternion,void 0,!0)}
11setParent(e,t=!0){this.parent&&e!==this.parent&&this.parent.removeChild(this,!1),this.parent=e,t&&e&&e.addChild(this,!1)}addChild(e,t=!0){~this.children.indexOf(e)||this.children.push(e),t&&e.setParent(this,!1)}removeChild(e,t=!0){~this.children.indexOf(e)&&this.children.splice(this.children.indexOf(e),1),t&&e.setParent(null,!1)}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.worldMatrixNeedsUpdate||e)&&(this.parent===null?this.worldMatrix.copy(this.matrix):this.worldMatrix.multiply(this.parent.worldMatrix,this.matrix),this.worldMatrixNeedsUpdate=!1,e=!0);for(let t=0,n=this.children.length;t<n;t++)this.children[t].updateMatrixWorld(e)}updateMatrix(){this.matrix.compose(this.quaternion,this.position,this.scale),this.worldMatrixNeedsUpdate=!0}traverse(e){if(!e(this))for(let t=0,n=this.children.length;t<n;t++)this.children[t].traverse(e)}decompose(){this.matrix.decompose(this.quaternion._target,this.position,this.scale),this.rotation.fromQuaternion(this.quaternion)}lookAt(e,t=!1){t?this.matrix.lookAt(this.position,e,this.up):this.matrix.lookAt(e,this.position,this.up),this.matrix.getRotation(this.quaternion._target),this.rotation.fromQuaternion(this.quaternion)}};function Hl(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e}function Ul(e,t){let n=t[0],r=t[1],i=t[2],a=t[3],o=n+n,s=r+r,c=i+i,l=n*o,u=r*o,d=r*s,f=i*o,p=i*s,m=i*c,h=a*o,g=a*s,_=a*c;return e[0]=1-d-m,e[3]=u-_,e[6]=f+g,e[1]=u+_,e[4]=1-l-m,e[7]=p-h,e[2]=f-g,e[5]=p+h,e[8]=1-l-d,e}function Wl(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function Gl(e,t,n,r,i,a,o,s,c,l){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=a,e[5]=o,e[6]=s,e[7]=c,e[8]=l,e}function Kl(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function ql(e,t){let n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],d=u*o-s*l,f=-u*a+s*c,p=l*a-o*c,m=n*d+r*f+i*p;return m?(m=1/m,e[0]=d*m,e[1]=(-u*r+i*l)*m,e[2]=(s*r-i*o)*m,e[3]=f*m,e[4]=(u*n-i*c)*m,e[5]=(-s*n+i*a)*m,e[6]=p*m,e[7]=(-l*n+r*c)*m,e[8]=(o*n-r*a)*m,e):null}function Jl(e,t,n){let r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],d=t[8],f=n[0],p=n[1],m=n[2],h=n[3],g=n[4],_=n[5],v=n[6],y=n[7],b=n[8];return e[0]=f*r+p*o+m*l,e[1]=f*i+p*s+m*u,e[2]=f*a+p*c+m*d,e[3]=h*r+g*o+_*l,e[4]=h*i+g*s+_*u,e[5]=h*a+g*c+_*d,e[6]=v*r+y*o+b*l,e[7]=v*i+y*s+b*u,e[8]=v*a+y*c+b*d,e}function Yl(e,t,n){let r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],d=t[8],f=n[0],p=n[1];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e[6]=f*r+p*o+l,e[7]=f*i+p*s+u,e[8]=f*a+p*c+d,e}function Xl(e,t,n){let r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],d=t[8],f=Math.sin(n),p=Math.cos(n);return e[0]=p*r+f*o,e[1]=p*i+f*s,e[2]=p*a+f*c,e[3]=p*o-f*r,e[4]=p*s-f*i,e[5]=p*c-f*a,e[6]=l,e[7]=u,e[8]=d,e}function Zl(e,t,n){let r=n[0],i=n[1];return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=i*t[3],e[4]=i*t[4],e[5]=i*t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function Ql(e,t){let n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],d=t[9],f=t[10],p=t[11],m=t[12],h=t[13],g=t[14],_=t[15],v=n*s-r*o,y=n*c-i*o,b=n*l-a*o,x=r*c-i*s,S=r*l-a*s,C=i*l-a*c,w=u*h-d*m,T=u*g-f*m,E=u*_-p*m,D=d*g-f*h,O=d*_-p*h,k=f*_-p*g,A=v*k-y*O+b*D+x*E-S*T+C*w;return A?(A=1/A,e[0]=(s*k-c*O+l*D)*A,e[1]=(c*E-o*k-l*T)*A,e[2]=(o*O-s*E+l*w)*A,e[3]=(i*O-r*k-a*D)*A,e[4]=(n*k-i*E+a*T)*A,e[5]=(r*E-n*O-a*w)*A,e[6]=(h*C-g*S+_*x)*A,e[7]=(g*b-m*C-_*y)*A,e[8]=(m*S-h*b+_*v)*A,e):null}var $l=class extends Array{constructor(e=1,t=0,n=0,r=0,i=1,a=0,o=0,s=0,c=1){return super(e,t,n,r,i,a,o,s,c),this}set(e,t,n,r,i,a,o,s,c){return e.length?this.copy(e):(Gl(this,e,t,n,r,i,a,o,s,c),this)}translate(e,t=this){return Yl(this,t,e),this}rotate(e,t=this){return Xl(this,t,e),this}scale(e,t=this){return Zl(this,t,e),this}multiply(e,t){return t?Jl(this,e,t):Jl(this,this,e),this}identity(){return Kl(this),this}copy(e){return Wl(this,e),this}fromMatrix4(e){return Hl(this,e),this}fromQuaternion(e){return Ul(this,e),this}fromBasis(e,t,n){return this.set(e[0],e[1],e[2],t[0],t[1],t[2],n[0],n[1],n[2]),this}inverse(e=this){return ql(this,e),this}getNormalMatrix(e){return Ql(this,e),this}},eu=0,tu=class extends Vl{constructor(e,{geometry:t,program:n,mode:r=e.TRIANGLES,frustumCulled:i=!0,renderOrder:a=0}={}){super(),e.canvas||console.error(`gl not passed as first argument to Mesh`),this.gl=e,this.id=eu++,this.geometry=t,this.program=n,this.mode=r,this.frustumCulled=i,this.renderOrder=a,this.modelViewMatrix=new Ll,this.normalMatrix=new $l,this.beforeRenderCallbacks=[],this.afterRenderCallbacks=[]}onBeforeRender(e){return this.beforeRenderCallbacks.push(e),this}onAfterRender(e){return this.afterRenderCallbacks.push(e),this}draw({camera:e}={}){e&&(this.program.uniforms.modelMatrix||Object.assign(this.program.uniforms,{modelMatrix:{value:null},viewMatrix:{value:null},modelViewMatrix:{value:null},normalMatrix:{value:null},projectionMatrix:{value:null},cameraPosition:{value:null}}),this.program.uniforms.projectionMatrix.value=e.projectionMatrix,this.program.uniforms.cameraPosition.value=e.worldPosition,this.program.uniforms.viewMatrix.value=e.viewMatrix,this.modelViewMatrix.multiply(e.viewMatrix,this.worldMatrix),this.normalMatrix.getNormalMatrix(this.modelViewMatrix),this.program.uniforms.modelMatrix.value=this.worldMatrix,this.program.uniforms.modelViewMatrix.value=this.modelViewMatrix,this.program.uniforms.normalMatrix.value=this.normalMatrix),this.beforeRenderCallbacks.forEach(t=>t&&t({mesh:this,camera:e}));let t=this.program.cullFace&&this.worldMatrix.determinant()<0;this.program.use({flipFaces:t}),this.geometry.draw({mode:this.mode,program:this.program}),this.afterRenderCallbacks.forEach(t=>t&&t({mesh:this,camera:e}))}},nu=class extends Pc{constructor(e,{attributes:t={}}={}){Object.assign(t,{position:{size:2,data:new Float32Array([-1,-1,3,-1,-1,3])},uv:{size:2,data:new Float32Array([0,0,2,0,0,2])}}),super(e,t)}},ru=` 12 precision highp float; 13 attribute vec2 position; 14 attribute vec2 uv; 15 varying vec2 vUv; 16 void main() { 17 vUv = uv; 18 gl_Position = vec4(position, 0.0, 1.0); 19 } 20 `,iu=` 21 precision highp float; 22 23 uniform float iTime; 24 uniform vec3 iResolution; 25 uniform float hue; 26 uniform float hover; 27 uniform float rot; 28 uniform float hoverIntensity; 29 varying vec2 vUv; 30 31 vec3 rgb2yiq(vec3 c) {
32 float y = dot(c, vec3(0.299, 0.587, 0.114)); 33 float i = dot(c, vec3(0.596, -0.274, -0.322)); 34 float q = dot(c, vec3(0.211, -0.523, 0.312)); 35 return vec3(y, i, q); 36 } 37 38 vec3 yiq2rgb(vec3 c) { 39 float r = c.x + 0.956 * c.y + 0.621 * c.z; 40 float g = c.x - 0.272 * c.y - 0.647 * c.z; 41 float b = c.x - 1.106 * c.y + 1.703 * c.z; 42 return vec3(r, g, b); 43 } 44 45 vec3 adjustHue(vec3 color, float hueDeg) { 46 float hueRad = hueDeg * 3.14159265 / 180.0; 47 vec3 yiq = rgb2yiq(color); 48 float cosA = cos(hueRad); 49 float sinA = sin(hueRad); 50 float i = yiq.y * cosA - yiq.z * sinA; 51 float q = yiq.y * sinA + yiq.z * cosA; 52 yiq.y = i; 53 yiq.z = q; 54 return yiq2rgb(yiq); 55 } 56 57 vec3 hash33(vec3 p3) { 58 p3 = fract(p3 * vec3(0.1031, 0.11369, 0.13787)); 59 p3 += dot(p3, p3.yxz + 19.19); 60 return -1.0 + 2.0 * fract(vec3( 61 p3.x + p3.y, 62 p3.x + p3.z, 63 p3.y + p3.z 64 ) * p3.zyx); 65 } 66 67 float snoise3(vec3 p) { 68 const float K1 = 0.333333333; 69 const float K2 = 0.166666667; 70 vec3 i = floor(p + (p.x + p.y + p.z) * K1); 71 vec3 d0 = p - (i - (i.x + i.y + i.z) * K2); 72 vec3 e = step(vec3(0.0), d0 - d0.yzx); 73 vec3 i1 = e * (1.0 - e.zxy); 74 vec3 i2 = 1.0 - e.zxy * (1.0 - e); 75 vec3 d1 = d0 - (i1 - K2); 76 vec3 d2 = d0 - (i2 - K1); 77 vec3 d3 = d0 - 0.5; 78 vec4 h = max(0.6 - vec4( 79 dot(d0, d0), 80 dot(d1, d1), 81 dot(d2, d2), 82 dot(d3, d3) 83 ), 0.0); 84 vec4 n = h * h * h * h * vec4( 85 dot(d0, hash33(i)), 86 dot(d1, hash33(i + i1)), 87 dot(d2, hash33(i + i2)), 88 dot(d3, hash33(i + 1.0)) 89 ); 90 return dot(vec4(31.316), n); 91 } 92 93 vec4 extractAlpha(vec3 colorIn) { 94 float a = max(max(colorIn.r, colorIn.g), colorIn.b); 95 return vec4(colorIn.rgb / (a + 1e-5), a); 96 } 97 98 const vec3 baseColor1 = vec3(0.611765, 0.262745, 0.996078); 99 const vec3 baseColor2 = vec3(0.298039, 0.760784, 0.913725); 100 const vec3 baseColor3 = vec3(0.062745, 0.078431, 0.600000); 101 const float innerRadius = 0.6; 102 const float noiseScale = 0.65; 103 104 float light1(float intensity, float attenuation, float dist) { 105 return intensity / (1.0 + dist * attenuation); 106 } 107 108 float light2(float intensity, float attenuation, float dist) { 109 return intensity / (1.0 + dist * dist * attenuation); 110 } 111 112 vec4 draw(vec2 uv) { 113 vec3 color1 = adjustHue(baseColor1, hue); 114 vec3 color2 = adjustHue(baseColor2, hue); 115 vec3 color3 = adjustHue(baseColor3, hue); 116 117 float ang = atan(uv.y, uv.x); 118 float len = length(uv); 119 float invLen = len > 0.0 ? 1.0 / len : 0.0; 120 121 float n0 = snoise3(vec3(uv * noiseScale, iTime * 0.5)) * 0.5 + 0.5; 122 float r0 = mix(mix(innerRadius, 1.0, 0.4), mix(innerRadius, 1.0, 0.6), n0); 123 float d0 = distance(uv, (r0 * invLen) * uv); 124 float v0 = light1(1.0, 10.0, d0); 125 v0 *= smoothstep(r0 * 1.05, r0, len); 126 float cl = cos(ang + iTime * 2.0) * 0.5 + 0.5; 127 128 float a = iTime * -1.0; 129 vec2 pos = vec2(cos(a), sin(a)) * r0; 130 float d = distance(uv, pos); 131 float v1 = light2(1.5, 5.0, d); 132 v1 *= light1(1.0, 50.0, d0); 133 134 float v2 = smoothstep(1.0, mix(innerRadius, 1.0, n0 * 0.5), len); 135 float v3 = smoothstep(innerRadius, mix(innerRadius, 1.0, 0.5), len); 136 137 vec3 col = mix(color1, color2, cl); 138 col = mix(color3, col, v0); 139 col = (col + v1) * v2 * v3; 140 col = clamp(col, 0.0, 1.0); 141 142 return extractAlpha(col); 143 } 144 145 vec4 mainImage(vec2 fragCoord) { 146 vec2 center = iResolution.xy * 0.5; 147 float size = min(iResolution.x, iResolution.y); 148 vec2 uv = (fragCoord - center) / size * 2.0; 149 150 float angle = rot; 151 float s = sin(angle); 152 float c = cos(angle); 153 uv = vec2(c * uv.x - s * uv.y, s * uv.x + c * uv.y); 154 155 uv.x += hover * hoverIntensity * 0.1 * sin(uv.y * 10.0 + iTime); 156 uv.y += hover * hoverIntensity * 0.1 * sin(uv.x * 10.0 + iTime); 157 158 return draw(uv); 159 } 160 161 void main() { 162 vec2 fragCoord = vUv * iResolution.xy; 163 vec4 col = mainImage(fragCoord); 164 gl_FragColor = vec4(col.rgb * col.a, col.a); 165 } 166 `,au={orb:Y(C({__name:`Orb`,props:{hue:{default:0},hoverIntensity:{default:.2},rotateOnHover:{type:Boolean,default:!0},forceHoverState:{type:Boolean,default:!1},className:{default:``}},setup(e){let n=e,r=b(`ctnDom`),a=null;function o(){let e=r.value;if(!e)return;let t=new qc({alpha:!0,premultipliedAlpha:!1}),i=t.gl;i.clearColor(0,0,0,0),e.appendChild(i.canvas);let o=new nu(i),s=new Lc(i,{vertex:ru,fragment:iu,uniforms:{iTime:{value:0},iResolution:{value:new $(i.canvas.width,i.canvas.height,i.canvas.width/i.canvas.height)},hue:{value:n.hue},hover:{value:0},rot:{value:0},hoverIntensity:{value:n.hoverIntensity}}}),c=new tu(i,{geometry:o,program:s});function l(){if(!e)return;let n=window.devicePixelRatio||1,r=e.clientWidth,a=e.clientHeight;t.setSize(r*n,a*n),i.canvas.style.width=`${r}px`,i.canvas.style.height=`${a}px`,s.uniforms.iResolution.value.set(i.canvas.width,i.canvas.height,i.canvas.width/i.canvas.height)}window.addEventListener(`resize`,l),l();let u=0,d=0,f=0,p=t=>{let n=e.getBoundingClientRect(),r=t.clientX-n.left,i=t.clientY-n.top,a=n.width,o=n.height,s=Math.min(a,o),c=a/2,l=o/2,d=(r-c)/s*2,f=(i-l)/s*2;u=+(Math.sqrt(d*d+f*f)<.8)},m=()=>{u=0};e.addEventListener(`mousemove`,p),e.addEventListener(`mouseleave`,m);let h,g=e=>{h=requestAnimationFrame(g);let r=(e-d)*.001;d=e,s.uniforms.iTime.value=e*.001,s.uniforms.hue.value=n.hue,s.uniforms.hoverIntensity.value=n.hoverIntensity;let i=n.forceHoverState?1:u;s.uniforms.hover.value+=(i-s.uniforms.hover.value)*.1,n.rotateOnHover&&i>.5&&(f+=r*.3),s.uniforms.rot.value=f,t.render({scene:c})};h=requestAnimationFrame(g),a=()=>{cancelAnimationFrame(h),window.removeEventListener(`resize`,l),e.removeEventListener(`mousemove`,p),e.removeEventListener(`mouseleave`,m),e.removeChild(i.canvas),i.getExtension(`WEBGL_lose_context`)?.loseContext()}}return i(()=>{o()}),m(()=>{a&&=(a(),null)}),y(()=>n,()=>{a&&=(a(),null),o()},{deep:!0}),(n,i)=>(t(),D(`div`,{ref_key:`ctnDom`,ref:r,class:z(`home-hero-effect-orb ${e.className}`)},null,2))}}),[[`__scopeId`,`data-v-ff537fe2`]])},ou=Object.keys(au),su=Y(C({__name:`ImageBg`,props:{type:{},hero:{},full:{type:Boolean},background:{},tintPlate:{},effect:{},effectConfig:{},filter:{},forceDark:{type:Boolean},backgroundImage:{},backgroundAttachment:{},onlyOnce:{type:Boolean},index:{}},setup(e){let n=e,{isDark:r}=H(),i=F(()=>{let e=((n.backgroundImage?typeof n.backgroundImage==`string`?n.backgroundImage:n.backgroundImage[r.value?`dark`:`light`]??n.backgroundImage.light:``)||n.background)?.trim();if(!e)return null;let t=yt(e),i=zt(e)||t?e:G(e);return{"background-image":t?e:`url(${i})`,"background-attachment":n.backgroundAttachment,"--vp-hero-bg-filter":n.filter}});return(e,n)=>i.value?(t(),D(`div`,{key:0,class:`home-hero-bg`,style:s(i.value)},null,4)):L(``,!0)}}),[[`__scopeId`,`data-v-37142801`]]),cu={class:`hero-container`},lu={class:`hero-content`},uu=[`innerHTML`],du=[`innerHTML`],fu=[`innerHTML`],pu={key:3,class:`actions`},mu={class:`action`},hu=Y(C({__name:`VPHomeHero`,props:{type:{},hero:{},full:{type:Boolean},background:{},tintPlate:{},effect:{},effectConfig:{},filter:{},forceDark:{type:Boolean},backgroundImage:{},backgroundAttachment:{},onlyOnce:{type:Boolean},index:{}},setup(e){let n=e,{frontmatter:r,isDark:a}=H(),o=F(()=>n.hero??r.value.hero??{}),s=F(()=>o.value.actions??[]),l=F(()=>n.effect?n.effect:n.background&&ou.includes(n.background)?n.background:null),u=F(()=>
166{if(l.value===`tint-plate`){let e=n.tintPlate??n.effectConfig;return typeof e==`number`||typeof e==`string`?{rgb:e}:e}return Ie(n.effectConfig)?n.effectConfig:null}),d=F(()=>l.value?au[l.value]?S(au[l.value]):ve(l.value)?h(l.value):null:null);function p(){document.documentElement.classList.add(`no-transition`),setTimeout(()=>{document.documentElement.classList.remove(`no-transition`)},300)}let g;y(()=>n.forceDark,()=>{Sn&&(n.forceDark&&(g??=document.documentElement.dataset.theme,document.documentElement.dataset.theme=`dark`,document.documentElement.classList.add(`force-dark`),_(()=>a.value=!0),p()),document.documentElement.classList.add(`effect-${l.value}`))},{immediate:!0,flush:`post`});function b(){a.value=g===`dark`}return i(()=>{n.forceDark&&window.addEventListener(`unload`,b)}),m(()=>{n.forceDark&&(b(),document.documentElement.classList.remove(`force-dark`,`effect-${l.value}`),p(),window.removeEventListener(`unload`,b))}),(r,i)=>(t(),D(`div`,{class:z([`vp-home-hero`,{full:e.full,once:e.onlyOnce,first:n.index===0,[l.value??``]:!!l.value}])}
166,[d.value?(t(),j(c(d.value),v(R({key:0},u.value)),null,16)):(t(),j(su,v(R({key:1},n)),null,16)),T(`div`,cu,[T(`div`,lu,[o.value.name?(t(),D(`h1`,{key:0,class:`hero-name`,innerHTML:o.value.name},null,8,uu)):L(``,!0),o.value.tagline?(t(),D(`p`,{key:1,class:`hero-tagline`,innerHTML:o.value.tagline},null,8,du)):L(``,!0),o.value.text?(t(),D(`p`,{key:2,class:`hero-text`,innerHTML:o.value.text},null,8,fu)):L(``,!0),s.value.length?(t(),D(`div`,pu,[T(`div`,mu,[(t(!0),D(P,null,f(s.value,e=>(t(),j(La,{key:e.link,tag:`a`,size:`medium`,theme:e.theme,text:e.text,href:e.link,target:e.target,rel:e.rel,icon:e.icon,"suffix-icon":e.suffixIcon},null,8,[`theme`,`text`,`href`,`target`,`rel`,`icon`,`suffix-icon`]))),128))])])):L(``,!0)])])],2))}}),[[`__scopeId`,`data-v-6684355a`]]),gu=[`innerHTML`],_u=[`innerHTML`],vu=Y(C({__name:`VPHomeProfile`,props:{type:{},name:{},description:{},avatar:{},circle:{type:Boolean},full:{type:Boolean},backgroundImage:{},backgroundAttachment:{},onlyOnce:{type:Boolean},index:{}},setup(e){let{theme:n}=H(),r=F(()=>n.value.profile),i=F(()=>({name:e.name||r.value?.name,description:e.description||r.value?.description,avatar:e.avatar||r.value?.avatar||r.value?.url,circle:e.circle||r.value?.circle}));return(n,r)=>(t(),j(Pa,R({class:`vp-home-profile`},{type:e.type,backgroundAttachment:e.backgroundAttachment,backgroundImage:e.backgroundImage,full:e.full,index:e.index}),{default:d(()=>[i.value.avatar?(t(),j(No,{key:0,image:i.value.avatar,class:z({circle:i.value.circle})},null,8,[`image`,`class`])):L(``,!0),i.value.name?(t(),D(`h3`,{key:1,innerHTML:i.value.name},null,8,gu)):L(``,!0),i.value.description?(t(),D(`p`,{key:2,innerHTML:i.value.description},null,8,_u)):L(``,!0)]),_:1},16))}}),[[`__scopeId`,`data-v-0d9ff09b`]]),yu={class:`content-image`},bu={class:`content-text vp-doc`},xu={key:0,class:`title`},Su=[`innerHTML`],Cu={key:2,class:`list`},wu=[`innerHTML`],Tu=[`innerHTML`],Eu=[`innerHTML`],Du=Y(C({__name:`VPHomeTextImage`,props:{type:{},image:{},width:{},title:{},description:{},list:{},full:{type:Boolean},backgroundImage:{},backgroundAttachment:{},onlyOnce:{type:Boolean},index:{}},setup(e){let n=F(()=>typeof e.width==`number`?`${e.width}px`:e.width);return(r,i)=>(t(),j(Pa,R({class:`vp-home-text-image`,"container-class":{reverse:e.type===`text-image`}},{type:e.type,backgroundAttachment:e.backgroundAttachment,backgroundImage:e.backgroundImage,full:e.full,index:e.index}),{default:d(()=>[T(`div`,yu,[k(No,{image:e.image,style:s({maxWidth:n.value})},null,8,[`image`,`style`])]),T(`div`,bu,[T(`section`,null,[e.title?(t(),D(`h2`,xu,a(e.title),1)):L(``,!0),e.description?(t(),D(`p`,{key:1,class:`description`,innerHTML:e.description},null,8,Su)):L(``,!0),e.list&&e.list.length?(t(),D(`ul`,Cu,[(t(!0),D(P,null,f(e.list,(e,n)=>(t(),D(`li`,{key:n},[typeof e==`object`?(t(),D(P,{key:0},[e.title?(t(),D(`h3`,{key:0,innerHTML:e.title},null,8,wu)):L(``,!0),e.description?(t(),D(`p`,{key:1,innerHTML:e.description},null,8,Tu)):L(``,!0)],64)):(t(),D(`p`,{key:1,innerHTML:e},null,8,Eu))]))),128))])):L(``,!0)])])]),_:1},16,[`container-class`]))}}),[[`__scopeId`,`data-v-ba0f4e61`]]),Ou={class:`vp-pagination`},ku=[`disabled`],Au={class:`page-range`},ju=[`disabled`,`onClick`],Mu=[`disabled`],Nu=Y(C({__name:`VPPagination`,props:{page:{},totalPage:{},isFirstPage:{type:Boolean},isLastPage:{type:Boolean},pageRange:{}},emits:[`change`],setup(e,{emit:n}){let r=n,{theme:i}=H();return(n,o)=>(t(),D(`div`,Ou,[T(`button`,{type:`button`,class:`btn prev`,disabled:e.isFirstPage,onClick:o[0]||=()=>r(`change`,e.page-1)},a(E(i).prevPageLabel||`Prev`),9,ku),T(`div`,Au,[(t(!0),D(P,null,f(e.pageRange,({value:n,more:i})=>(t(),D(`button`,{key:n,class:z([`btn`,{more:i,active:n===e.page}]),disabled:i,type:`button`,onClick:()=>!i&&r(`change`,n)},a(i?`...`:n),11,ju))),128))]),T(`button`,{type:`button`,class:`btn next`,disabled:e.isLastPage,onClick:o[1]||=()=>r(`change`,e.page+1)},a(E(i).nextPageLabel||`Next`),9,Mu)]))}}),[[`__scopeId`,`data-v-4ef10930`]]),Pu=()=>{let e=ft();return F(()=>e.value.readingTime??null)},Fu=(e,t)=>{let{minutes:n,words:r}=e,{less1Minute:i,word:a,time:o}=t;return{time:n<1?i:o.replace(`$time`,Math.round(n).toString()),words:a.replace(`$word`,r.toString())}},Iu={words:``,time:``},Lu={"/":{word:`约 $word å`,less1Minute:`å°äº 1 åé`,time:`大约 $time åé`}},Ru=()=>Lu?Ut(Lu):F(()=>null),zu=()=>{if(Lu==null)return F(()=>Iu);let e=Pu(),t=Ru();return F(()=>e.value&&t.value?Fu(e.value,t.value):Iu)},Bu=[`src`,`alt`],Vu={class:`post-item-content`},Hu={key:0,class:`sticky`},Uu={key:1,class:`draft`},Wu={key:2,class:`icon-lock vpi-lock`},Gu={class:`post-meta`},Ku={key:0,class:`category-list`},qu={key:0},Ju={key:1,class:`reading-time`},Yu={key:0},Xu={key:1},Zu={key:2,class:`tag-list`},Qu={key:3,class:`create-time`},$u=[`innerHTML`],ed=Y(C({__name:`VPPostItem`,props:{post:{},index:{}},setup(e){let n=I(!1);
166function r(){n.value=Bt()}i(()=>{r(),window.addEventListener(`resize`,r)}),o(()=>{window.removeEventListener(`resize`,r)});let{collection:c}=H(),l=Pt(),{categories:u,tags:p}=Ke(),m=F(()=>c.value?.meta??{}),h=F(()=>!e.post.createTime||m.value.createTime===!1?``:((m.value.createTime===!0?`short`:m.value.createTime??`short`)===`short`?e.post.createTime?.split(/\s|T/)[0]:e.post.createTime).replace(/\//g,`-`)),g=F(()=>e.post.categoryList??[]),_=Ru(),v=F(()=>{let t={time:``,words:``};if(!e.post.readingTime)return t;let n=_.value?Fu(e.post.readingTime,_.value):t;return n.time=n.time.replace(/^\D+/,``),n}),y=F(()=>typeof e.post.sticky==`boolean`?e.post.sticky:typeof e.post.sticky==`number`&&e.post.sticky>=0),b=F(()=>{let t=c.value?.tagsTheme??`colored`;return(e.post.tags??[]).slice(0,4).map(e=>({name:e,className:l.value[e]?`vp-tag-${l.value[e]}`:`tag-${t}`}))}),x=F(()=>{if(!e.post.cover)return null;let t=c.value?.postCover??`right`;return{layout:`right`,ratio:`4/3`,...typeof t==`string`?{layout:t}:t,...e.post.coverStyle}}),S=F(()=>{if(n.value)return`top`;let t=x.value?.layout??`right`,r=(e.index+1)%2==1;return t===`odd-left`?r?`left`:`right`:t===`odd-right`?r?`right`:`left`:t}),C=F(()=>e.post.excerpt||S.value===`top`?!1:x.value?.compact??!1),w=F(()=>{if(!x.value)return null;let e;if(typeof x.value.ratio==`number`)e=x.value.ratio;else{let[t,n]=x.value.ratio.split(/[:/]/).map(Number);e=n/t}if(S.value===`left`||S.value===`right`){let t=x.value.width??240;return{width:`${t}px`,height:`${t*e}px`}}return{height:0,paddingBottom:`${e*100}%`}});return(n,r)=>(t(),D(`div`,{class:z([`vp-post-item`,{"has-cover":e.post.cover,[S.value]:x.value,draft:e.post.draft}]),"data-allow-mismatch":``},[e.post.cover?(t(),D(`div`,{key:0,class:z([`post-cover`,{compact:C.value}]),"data-allow-mismatch":``,style:s(w.value)},[k(Q,{href:e.post.path},{default:d(()=>[T(`img`,{src:E(G)(e.post.cover),alt:e.post.title,loading:`lazy`},null,8,Bu)]),_:1},8,[`href`])],6)):L(``,!0),T(`div`,Vu,[T(`h3`,null,[y.value?(t(),D(`span`,Hu,`TOP`)):L(``,!0),e.post.draft?(t(),D(`span`,Uu,`DRAFT`)):L(``,!0),e.post.encrypt?(t(),D(`span`,Wu)):L(``,!0),k(Q,{href:e.post.path,text:e.post.title},null,8,[`href`,`text`])]),T(`div`,Gu,[g.value.length?(t(),D(`div`,Ku,[r[0]||=T(`span`,{class:`icon vpi-folder`},null,-1),(t(!0),D(P,null,f(g.value,(e,n)=>(t(),D(P,{key:n},[k(Q,{href:E(u)?`${E(u).link}?id=${e.id}`:void 0,"no-icon":``},{default:d(()=>[M(a(e.name),1)]),_:2},1032,[`href`]),n===g.value.length-1?L(``,!0):(t(),D(`span`,qu,`/`))],64))),128))])):L(``,!0),v.value.time&&(m.value.readingTime!==!1||m.value.wordCount!==!1)?(t(),D(`div`,Ju,[r[1]||=T(`span`,{class:`vpi-books icon`},null,-1),m.value.wordCount===!1?L(``,!0):(t(),D(`span`,Yu,a(v.value.words),1)),m.value.readingTime===!1?L(``,!0):(t(),D(`span`,Xu,a(v.value.time),1))])):L(``,!0),b.value.length?(t(),D(`div`,Zu,[r[2]||=T(`span`,{class:`icon vpi-tag`},null,-1),(t(!0),D(P,null,f(b.value,e=>
166(t(),j(Q,{key:e.name,class:z([`tag`,e.className]),href:E(p)?`${E(p).link}?tag=${e.name}`:void 0},{default:d(()=>[M(a(e.name),1)]),_:2},1032,[`class`,`href`]))),128))])):L(``,!0),h.value?(t(),D(`div`,Qu,[r[3]||=T(`span`,{class:`icon vpi-clock`},null,-1),T(`span`,null,a(h.value),1)])):L(``,!0)]),e.post.excerpt?(t(),D(`div`,{key:0,class:`vp-doc excerpt`,innerHTML:e.post.excerpt},null,8,$u)):L(``,!0)])],2))}}),[[`__scopeId`,`data-v-25ddbb7a`]]),td=C({__name:`VPTransitionDrop`,props:{delay:{default:0},duration:{default:.25},appear:{type:Boolean}},setup(e){let{theme:n}=H(),r=F(()=>{let e=n.value.transition;return typeof e==`object`?e.postList!==!1:e!==!1}),i=``;function a(e){let t=e;t.style.transform=`translateY(-20px)`,t.style.opacity=`0`}function o(t){let n=t;if(!i){let e=typeof window<`u`?window.getComputedStyle?.(n).transition:``;i=e&&!e.includes(`all`)?`${e||``}, `:` `}n.style.transition=`${i}transform ${e.duration}s ease-in-out ${e.delay}s, opacity ${e.duration}s ease-in-out ${e.delay}s`}function s(e){let t=e;t.style.transform=`translateY(0)`,t.style.opacity=`1`,t.style.transition=i}return(n,i)=>r.value?(t(),j(V,{key:0,name:`drop`,mode:`out-in`,appear:e.appear,onAppear:o,onBeforeAppear:a,onAfterAppear:s,onEnter:o,onAfterEnter:s,onBeforeLeave:o},{default:d(()=>[p(n.$slots,`default`)]),_:3},8,[`appear`])):p(n.$slots,`default`,{},void 0,void 0,1)}}),nd={class:`vp-post-list`},rd=Y(C({__name:`VPPostList`,props:{homePosts:{type:Boolean}},setup(e){let{postList:n,page:r,totalPage:i,pageRange:a,isLastPage:o,isFirstPage:s,isPaginationEnabled:c,changePage:l}=gt(F(()=>!!e.homePosts));return(e,u)=>(t(),D(`div`,nd,[p(e.$slots,`posts-post-list-before`,{},void 0,!0),(t(!0),D(P,null,f(E(n),(e,n)=>(t(),j(td,{key:e.path,appear:``,delay:n*.025},{default:d(()=>[(t(),j(ed,{key:e.path,post:e,index:n},null,8,[`post`,`index`]))]),_:2},1032,[`delay`]))),128)),p(e.$slots,`posts-post-list-after`,{},void 0,!0),E(c)?(t(),j(Nu,{key:0,page:E(r),"total-page":E(i),"page-range":E(a),"is-last-page":E(o),"is-first-page":E(s),onChange:E(l)},null,8,[`page`,`total-page`,`page-range`,`is-last-page`,`is-first-page`,`onChange`])):L(``,!0),p(e.$slots,`posts-post-list-pagination-after`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-2d444f89`]]),id={class:`vp-short-post-list`},ad={class:`post-title`},od={class:`post-time`},sd=Y(C({__name:`VPShortPostList`,props:{postList:{}},setup(e){return(n,r)=>(t(),D(`ul`,id,[(t(!0),D(P,null,f(e.postList,e=>
166(t(),D(`li`,{key:e.path},[T(`p`,ad,[k(Q,{class:`post-link`,href:e.path},{default:d(()=>[M(a(e.title),1)]),_:2},1032,[`href`])]),T(`span`,od,a(e.createTime),1)]))),128))]))}}),[[`__scopeId`,`data-v-b3d6cc18`]]),cd={class:`vp-archives`},ld={class:`archives-title`},ud={key:0,class:`archives`},dd={class:`archive-title`},fd={class:`total`},pd=Y(C({__name:`VPPostsArchives`,setup(e){let{archive:n}=Ke(),{archives:r}=it();return(e,i)=>(t(),D(`div`,cd,[p(e.$slots,`posts-archives-before`,{},void 0,!0),T(`h2`,ld,[i[0]||=T(`span`,{class:`vpi-archive icon`},null,-1),T(`span`,null,a(E(n)?.text??`Archives`),1)]),E(r).length?(t(),D(`div`,ud,[(t(!0),D(P,null,f(E(r),e=>(t(),D(`div`,{key:e.label,class:`archive`},[T(`h3`,dd,[M(a(e.title)+` `,1),T(`span`,fd,a(e.label),1)]),k(sd,{"post-list":e.list},null,8,[`post-list`])]))),128))])):L(``,!0),p(e.$slots,`posts-archives-after`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-d4a958b7`]]),md={class:`text`},hd={class:`total`},gd={class:`text`},_d={class:`total`},vd={class:`text`},yd={class:`total`},bd=Y(C({__name:`VPPostsNav`,props:{isLocal:{type:Boolean}},setup(e){let n=Ht(),{hasPostsExtract:r,tags:i,archives:o,categories:s}=pn();return(c,l)=>E(r)?(t(),D(`div`,{key:0,class:z([`vp-posts-nav`,{local:e.isLocal}])},[E(i).link?(t(),j(Q,{key:0,class:z([`nav-link`,{active:E(n).path===E(i).link}]),href:E(i).link},{default:d(()=>[l[0]||=T(`span`,{class:`icon icon-logo vpi-tag`},null,-1),T(`span`,md,a(E(i).text),1),T(`span`,hd,a(E(i).total),1),l[1]||=T(`span`,{class:`icon vpi-chevron-right`},null,-1)]),_:1},8,[`class`,`href`])):L(``,!0),E(s).link?(t(),j(Q,{key:1,class:z([`nav-link`,{active:E(n).path===E(s).link}]),href:E(s).link},{default:d(()=>[l[2]||=T(`span`,{class:`icon icon-logo vpi-category`},null,-1),T(`span`,gd,a(E(s).text),1),T(`span`,_d,a(E(s).total),1),l[3]||=T(`span`,{class:`icon vpi-chevron-right`},null,-1)]),_:1},8,[`class`,`href`])):L(``,!0),E(o).link?(t(),j(Q,{key:2,class:z([`nav-link`,{active:E(n).path===E(o).link}]),href:E(o).link},{default:d(()=>[l[4]||=T(`span`,{class:`icon icon-logo vpi-archive`},null,-1),T(`span`,vd,a(E(o).text),1),T(`span`,yd,a(E(o).total),1),l[5]||=T(`span`,{class:`icon vpi-chevron-right`},null,-1)]),_:1},8,[`class`,`href`])):L(``,!0)],2)):L(``,!0)}}),[[`__scopeId`,`data-v-7a31687c`]]),xd={key:0,class:`vp-profile`},Sd=[`src`,`alt`,`width`,`height`],Cd={class:`profile-info`},wd=[`innerHTML`],Td={key:1,class:`profile-location`},Ed=[`innerHTML`],Dd={key:2,class:`profile-organization`},Od=[`innerHTML`],kd={key:1,class:`profile-social`},Ad=Y(C({__name:`VPPostsProfile`,setup(e){let{theme:n,collection:r}=H(),i=F(()=>(r.value?.type===`post`?r.value.profile:void 0)??n.value.profile),o=F(()=>{if(!i.value)return``;let e=i.value?.avatar??i.value?.url;return e?zt(e)||e.startsWith(`data:image/`)?e:G(e):``}),s=F(()=>(r.value?.type===`post`?r.value.social:void 0)??n.value.social);return(e,n)=>i.value?(t(),D(`div`,xd,[o.value?(t(),D(`p`,{key:0,class:z({circle:!!i.value.circle})},[T(`img`,{src:o.value,alt:i.value.name,width:i.value.originalWidth,height:i.value.originalHeight},null,8,Sd)],2)):L(``,!0),T(`div`,Cd,[T(`h3`,null,a(i.value.name),1),i.value.description?(t(),D(`p`,{key:0,innerHTML:i.value.description},null,8,wd)):L(``,!0),i.value.location?(t(),D(`div`,Td,[n[0]||=T(`span`,{class:`vpi-location`},null,-1),i.value.location?(t(),D(`p`,{key:0,innerHTML:i.value.location},null,8,Ed)):L(``,!0)])):L(``,!0),i.value.organization?(t(),D(`div`,Dd,[n[1]||=T(`span`,{class:`vpi-organization`},null,-1),i.value.organization?(t(),D(`p`,{key:0,innerHTML:i.value.organization},null,8,Od)):L(``,!0)])):L(``,!0)]),s.value?(t(),D(`div`,kd,[k(lo,{links:s.value},null,8,[`links`])])):L(``,!0)])):L(``,!0)}}),[[`__scopeId`,`data-v-4ce49160`]]),jd={key:0,class:`vp-posts-aside`},Md=Y(C({__name:`VPPostsAside`,setup(e){let{theme:n}=H();return(e,r)=>E(n).profile?(t(),D(`div`,jd,[p(e.$slots,`posts-aside-top`,{},void 0,!0),k(Ad),k(bd),p(e.$slots,`posts-aside-bottom`,{},void 0,!0)])):L(``,!0)}}),[[`__scopeId`,`data-v-bdd69415`]]),Nd=Y(C({__name:`VPCategoriesGroup`,props:{item:{},depth:{default:0}},setup(e){let{collection:n}=H(),r=Ht(),o=I(null),s=I(!0),c=I(!1),l=F(()=>{let e=n.value?.categoriesExpand??`deep`;if(e===`deep`)return 1/0;let t=Number(e);return Number.isNaN(t)?1/0:t});y(()=>
166[r.query,e.item,l.value],()=>{let t=r.query.id;t?s.value=u(e.item,t):s.value=e.depth<=l.value,c.value=t?e.item.id===t:!1},{immediate:!0});function u(e,t){return e.id===t||e.items.filter(e=>e.type===`category`).some(e=>u(e,t))}function d(){s.value=!s.value}return i(()=>{o.value&&c.value&&o.value.scrollIntoView({block:`center`})}),(n,r)=>(t(),D(`div`,{ref_key:`el`,ref:o,class:z([`vp-category-group`,{expand:s.value}])},[T(`p`,{class:`folder`,onClick:d},[T(`span`,{class:z([`icon`,[s.value?`vpi-folder-open`:`vpi-folder`]])},null,2),T(`span`,null,a(e.item.title),1)]),e.item.items.length?(t(),j(Id,{key:0,class:`group`,items:e.item.items,depth:e.depth},null,8,[`items`,`depth`])):L(``,!0)],2))}}),[[`__scopeId`,`data-v-89dc1de2`]]),Pd={class:`vp-categories`},Fd={key:0,class:`post`},Id=Y(C({__name:`VPCategories`,props:{items:{},depth:{default:0}},setup(e){return(n,r)=>(t(),D(`ul`,Pd,[(t(!0),D(P,null,f(e.items,n=>(t(),D(`li`,{key:n.path||n.id,class:`vp-categories-item`},[n.type===`post`?(t(),D(`p`,Fd,[r[0]||=T(`span`,{class:`vpi-post`},null,-1),k(Q,{href:n.path,text:n.title},null,8,[`href`,`text`])])):(t(),j(Nd,{key:1,item:n,depth:e.depth+1},null,8,[`item`,`depth`]))]))),128))]))}}),[[`__scopeId`,`data-v-44c9d5f4`]]),Ld={class:`vp-post-categories`},Rd={class:`categories-title`},zd={class:`content`},Bd=Y(C({__name:`VPPostsCategories`,setup(e){let{categories:n}=Ke(),{categories:r}=tn();return(e,i)=>(t(),D(`div`,Ld,[p(e.$slots,`posts-categories-before`,{},void 0,!0),T(`h2`,Rd,[i[0]||=T(`span`,{class:`vpi-category icon`},null,-1),T(`span`,null,a(E(n)?.text??`Categories`),1)]),p(e.$slots,`posts-categories-content-before`,{},void 0,!0),T(`div`,zd,[k(Id,{items:E(r),depth:0},null,8,[`items`])]),p(e.$slots,`posts-categories-after`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-dd889bf9`]]),Vd={key:0,class:`profile`},Hd={key:0,class:`avatar`},Ud=[`src`,`alt`],Wd={class:`desc`},Gd={class:`profile-info`},Kd={key:0,class:`profile-location`},qd=[`innerHTML`],Jd={key:1,class:`profile-organization`},Yd=[`innerHTML`],Xd=Y(C({__name:`VPPostsExtract`,setup(e){let{theme:n,collection:r}=H(),i=Ht(),o=F(()=>(r.value?.type===`post`?r.value.profile:void 0)??n.value.profile),s=F(()=>{if(!o.value)return``;let e=o.value?.avatar??o.value?.url;return e?zt(e)?e:G(e):``}),{hasPostsExtract:c,tags:l,archives:u,categories:f}=pn(),m=I(!1),h=I(!1),g=rt(Sn?document.body:null);y(()=>i.path,()=>{m.value=!1}),y(m,async()=>{m.value?setTimeout(()=>{h.value=!0},200):h.value=!1}),y([()=>m.value],()=>{m.value?g.value=!0:g.value=!1},{immediate:!0,flush:`post`});let _=F(()=>o.value||c.value);return(e,n)=>_.value?(t(),D(P,{key:0},[T(`div`,{class:`vp-posts-extract`,onClick:n[0]||=e=>m.value=!m.value},[...n[2]||=[T(`span`,{class:`vpi-posts-ext icon`},null,-1)]]),k(V,{name:`fade-in`},{default:d(()=>[N(T(`div`,{class:`posts-modal`,onClick:n[1]||=de(e=>m.value=!1,[`self`])},[T(`div`,{class:z([`posts-modal-container`,{open:h.value}])},[p(e.$slots,`posts-extract-before`,{},void 0,!0),o.value?(t(),D(`div`,Vd,[s.value?(t(),D(`p`,Hd,[T(`img`,{src:s.value,alt:o.value.name},null,8,Ud)])):L(``,!0),T(`div`,null,[T(`h3`,null,a(o.value.name),1),T(`p`,Wd,a(o.value.description),1),T(`div`,Gd,[o.value.location?(t(),D(`div`,Kd,[n[3]||=T(`span`,{class:`vpi-location`},null,-1),o.value.location?(t(),D(`p`,{key:0,innerHTML:o.value.location},null,8,qd)):L(``,!0)])):L(``,!0),o.value.organization?(t(),D(`div`,Jd,[n[4]||=T(`span`,{class:`vpi-organization`},null,-1),o.value.organization?(t(),D(`p`,{key:0,innerHTML:o.value.organization},null,8,Yd)):L(``,!0)])):L(``,!0)])])])):L(``,!0),_.value?(t(),D(`div`,{key:1,class:z([`posts-nav`,{"no-profile":!o.value}])},[E(l).link?(t(),j(Q,{key:0,class:`nav-link`,href:E(l).link,"no-icon":``},{default:d(()=>[n[5]||=T(`span`,{class:`vpi-tag icon`},null,-1),T(`span`,null,a(E(l).text),1)]),_:1},8,[`href`])):L(``,!0),E(f).link?(t(),j(Q,{key:1,class:`nav-link`,href:E(f).link,"no-icon":``},{default:d(()=>[n[6]||=T(`span`,{class:`vpi-category icon`},null,-1),T(`span`,null,a(E(f).text),1)]),_:1},8,[`href`])):L(``,!0),E(u).link?(t(),j(Q,{key:2,class:`nav-link`,href:E(u).link,"no-icon":``},{default:d(()=>[n[7]||=T(`span`,{class:`vpi-archive icon`},null,-1),T(`span`,null,a(E(u).text),1)]),_:1},8,[`href`])):L(``,!0)],2)):L(``,!0),p(e.$slots,`posts-extract-after`,{},void 0,!0)],2)],512),[[Je,m.value]])]),_:3})],64)):L(``,!0)}}),[[`__scopeId`,`data-v-32963188`]]),Zd={class:`tags-nav`},Qd={class:`tags-title`},$d={class:`tags`},ef=[`onClick`],tf={class:`tag-name`},nf={class:`tag-count`},rf={key:0,class:`tags-container`},af={class:`tag-title`},of=Y(C({__name:`VPPostsTags`,setup(e){let{tags:n}
166=Ke(),{tags:r,currentTag:i,postList:o,handleTagClick:s}=jt();return(e,c)=>(t(),D(`div`,{class:z([`vp-tags`,{"has-list":E(o).length>0}])},[p(e.$slots,`posts-tags-before`,{},void 0,!0),T(`div`,Zd,[T(`h2`,Qd,[c[0]||=T(`span`,{class:`vpi-tag icon`},null,-1),T(`span`,null,a(E(n)?.text??`Tags`),1)]),p(e.$slots,`posts-tags-title-after`,{},void 0,!0),T(`div`,$d,[(t(!0),D(P,null,f(E(r),e=>(t(),D(`p`,{key:e.name,class:z([`tag`,{active:e.name===E(i),[e.className]:!0}]),onClick:t=>E(s)(e.name)},[T(`span`,tf,a(e.name),1),T(`span`,nf,a(e.count),1)],10,ef))),128))])]),p(e.$slots,`posts-tags-content-before`,{},void 0,!0),E(i)?(t(),D(`div`,rf,[T(`h3`,af,a(E(i)),1),E(o).length?(t(),j(sd,{key:0,"post-list":E(o)},null,8,[`post-list`])):L(``,!0)])):L(``,!0),p(e.$slots,`posts-tags-after`,{},void 0,!0)],2))}}),[[`__scopeId`,`data-v-4dfea357`]]),sf={class:`vp-encrypt-form`},cf=[`innerHTML`],lf={class:`encrypt-input-wrapper`},uf={for:`encrypt-input`},df=[`placeholder`,`aria-invalid`,`aria-describedby`],ff={key:0},pf={key:1,class:`vpi-loading`},mf=Y(C({__name:`VPEncryptForm`,props:{global:{type:Boolean},info:{}},emits:[`validate`],setup(e,{emit:n}){let r=n,{theme:i}=H(),{compareGlobal:o,comparePage:s}=ct(),c=I(``),l=I(0),u=I(!1);async function d(){if(u.value)return;let t=e.global?o:s;u.value=!0;let n=await t(c.value);u.value=!1,n?(l.value=0,c.value=``):l.value=1,r(`validate`,l.value===0)}return(n,r)=>(t(),D(`div`,sf,[T(`p`,{class:`encrypt-text`,innerHTML:e.info??`Only Password can access this site`},null,8,cf),T(`p`,lf,[T(`label`,uf,[r[3]||=T(`span`,{class:`vpi-lock icon-lock`},null,-1),N(T(`input`,{id:`encrypt-input`,"onUpdate:modelValue":r[0]||=e=>c.value=e,class:z([`encrypt-input`,{error:l.value===1}]),type:`password`,autocomplete:`off`,placeholder:E(i).encryptPlaceholder??`Enter Password`,"aria-invalid":l.value===1,"aria-describedby":l.value===1?`encrypt-error`:void 0,onKeyup:jn(d,[`enter`]),onFocus:r[1]||=e=>!c.value&&(l.value=0),onInput:r[2]||=e=>c.value&&(l.value=0)},null,42,df),[[Ne,c.value]])])]),T(`button`,{class:z([`encrypt-button`,{unlocking:u.value}]),onClick:d},[u.value?(t(),D(`span`,pf)):(t(),D(`span`,ff,a(E(i).encryptButtonText??`Confirm`),1))],2)]))}}),[[`__scopeId`,`data-v-dd91a04b`]]),hf=Y(C({inheritAttrs:!1,__name:`VPEncrypt`,setup(e){let{isPageDecrypted:n}=Ae(),{theme:r,frontmatter:i}=H(),a=b(`el`);function o(e){e||(a.value?.classList.add(`animation`),setTimeout(()=>{a.value?.classList.remove(`animation`)},800))}return(e,s)=>{let c=h(`ClientOnly`);return E(n)?p(e.$slots,`default`,{},void 0,!0,1):(t(),j(c,{key:0},{default:d(()=>[T(`div`,R({ref_key:`el`,ref:a,class:`vp-page-encrypt`},e.$attrs),[s[0]||=T(`div`,{class:`logo`},[T(`span`,{class:`vpi-lock icon-lock-head`})],-1),k(mf,{info:E(i).passwordHint||E(r).encryptPageText,onValidate:o},null,8,[`info`])],16)]),_:1}))}}}),[[`__scopeId`,`data-v-a4082f0f`]]),gf=C({__name:`VPTransitionFadeSlideY`,setup(e){let{theme:n}=H(),{resolve:r,pending:i}=yn(),a=F(()=>{let e=n.value.transition;return typeof e==`object`?e.page!==!1:e!==!1});return(e,n)=>a.value?(t(),j(V,{key:0,name:`fade-slide-y`,mode:`out-in`,onAfterEnter:E(r),onBeforeLeave:E(i)},{default:d(()=>[p(e.$slots,`default`)]),_:3},8,[`onAfterEnter`,`onBeforeLeave`])):p(e.$slots,`default`,{},void 0,void 0,1)}}),_f=Y(C({__name:`VPPosts`,props:{homePosts:{type:Boolean},type:{},onlyOnce:{type:Boolean},collection:{}},setup(e){let{theme:n,page:r}=H();return y(()=>[e.homePosts,e.collection],()=>Be(e.homePosts?e.collection||!0:void 0),{immediate:!0}),o(()=>Be(void 0)),(i,a)=>(t(),D(`div`,{class:z([`vp-posts`,{"home-posts":e.homePosts}]),"vp-posts":``},[k(hf,null,{default:d(()=>[p(i.$slots,`posts-top`,{},void 0,!0),T(`div`,{class:z([`posts-container`,{"no-profile":!E(n).profile,left:E(n).profile?.layout===`left`}])},[E(n).profile?L(``,!0):(t(),j(bd,{key:0,"is-local":``})),k(gf,null,{default:d(()=>[E(r).type===`posts-archives`?(t(),j(pd,{key:0},{"posts-archives-before":d(()=>[p(i.$slots,`posts-archives-before`,{},void 0,!0)]),"posts-archives-after":d(()=>[p(i.$slots,`posts-archives-after`,{},void 0,!0)]),_:3})):E(r).type===`posts-tags`?(t(),j(of,{key:1},{"posts-tags-before":d(()=>[p(i.$slots,`posts-tags-before`,{},void 0,!0)]),"posts-tags-after":d(()=>[p(i.$slots,`posts-tags-after`,{},void 0,!0)]),"posts-tags-title-after":d(()=>[p(i.$slots,`posts-tags-title-after`,{},void 0,!0)]),"posts-tags-content-before":d(()=>[p(i.$slots,`posts-tags-content-before`,{},void 0,!0)]),_:3})):E(r).type===`posts-categories`?(t(),j(Bd,{key:2},{"posts-categories-before":d(()=>[p(i.$slots,`posts-categories-before`,{},void 0,!0)]),"posts-categories-after":d(()=>[p(i.$slots,`posts-categories-after`,{},void 0,!0)]),"posts-categories-content-before":d(()=>[p(i.$slots,`posts-categories-content-before`,{},void 0,!0)]),_:3})):(t(),j(rd,{key:3,"home-posts":e.homePosts},{"posts-post-list-before":d(()=>[p(i.$slots,`posts-post-list-before`,{},void 0,!0)]),"posts-post-list-after":d(()=>[p(i.$slots,`posts-post-list-after`,{},void 0,!0)]),"posts-post-list-pagination-after":d(()=>[p(i.$slots,`posts-post-list-pagination-after`,{},void 0,!0)]),_:3},8,[`home-posts`]))]),_:3}),k(Md,null,{"posts-aside-top":d(()=>[p(i.$slots,`posts-aside-top`,{},void 0,!0)]),"posts-aside-bottom":d(()=>[p(i.$slots,`posts-aside-bottom`,{},void 0,!0)]),_:3}),k(Xd,null,{"posts-extract-before":d(()=>[p(i.$slots,`posts-extract-before`,{},void 0,!0)]),"posts-extract-after":d(()=>[p(i.$slots,`posts-extract-after`,{},void 0,!0)]),_:3})],2),p(i.$slots,`posts-bottom`,{},void 0,!0)]),_:3})],2))}}),[[`__scopeId`,`data-v-dd1c787f`]]),vf={class:`vp-home`}
166,yf=Y(C({__name:`VPHome`,setup(e){let r=n();function i(e={}){return B(_f,{homePosts:!0,...e},{"posts-top":()=>r[`posts-top`]?.(),"posts-bottom":()=>r[`posts-bottom`]?.(),"posts-post-list-before":()=>r[`posts-post-list-before`]?.(),"posts-post-list-after":()=>r[`posts-post-list-after`]?.(),"posts-post-list-pagination-after":()=>r[`posts-post-list-pagination-after`]?.()})}let a={banner:Ms,hero:hu,"doc-hero":Ws,features:ac,"text-image":Du,"image-text":Du,profile:vu,blog:i,posts:i,custom:Ns},o={name:`Theme Plume`,tagline:`VuePress Next Theme`,text:`ä¸ä¸ªç®çº¦çï¼åè½ä¸°å¯ç vuepress ææ¡£&å客 主é¢`},{frontmatter:s}=H(),l=F(()=>{let e=s.value.config;return e&&e.length?e:s.value.banner?[{type:`banner`,banner:s.value.banner,bannerMask:s.value.bannerMask,hero:s.value.hero??o}]:[{type:`hero`,full:!0,background:`tint-plate`,hero:s.value.hero??o}]}),u=F(()=>l.value.length===1);function p(e){return a[e]??h(e)}let g=null;return y(()=>u.value,e=>_(()=>{typeof document<`u`&&(g??=document.querySelector(`.vp-layout`),g?.classList.toggle(`footer-no-border`,e))}),{immediate:!0}),m(()=>{g?.classList.remove(`footer-no-border`)}),(e,n)=>(t(),D(`div`,vf,[k(hf,null,{default:d(()=>[(t(!0),D(P,null,f(l.value,(e,n)=>(t(),D(`div`,{key:e.type+n,class:z({layout:n>0&&e.type!==`features`&&e.type!==`custom`})},[(t(),j(c(p(e.type)),R({ref_for:!0},e,{index:n,"only-once":u.value}),null,16,[`index`,`only-once`]))],2))),128))]),_:1})]))}}),[[`__scopeId`,`data-v-4ea64e2f`]]),bf=C({__name:`VPComment`,setup(e){let{frontmatter:n,isDark:r}=H(),{isPageDecrypted:i}=Ae(),a=F(()=>n.value.comments!==!1&&i.value);return(e,n)=>{let i=h(`DocComment`);return a.value?(t(),j(i,{key:0,darkmode:E(r),"vp-comment":``},null,8,[`darkmode`])):L(``,!0)}}}),xf=[`href`],Sf=Y(C({__name:`VPDocOutlineItem`,props:{headers:{},root:{type:Boolean}},setup(e){function n({target:e}){let t=`#${e.href.split(`#`)[1]}`;document.querySelector(decodeURIComponent(t))?.focus({preventScroll:!0})}return(r,i)=>{let o=h(`VPDocOutlineItem`,!0);return t(),D(`ul`,{class:z(e.root?`root`:`nested`)},[(t(!0),D(P,null,f(e.headers,({children:e,link:r,title:i})=>(t(),D(`li`,{key:r},[T(`a`,{class:`outline-link`,href:r,onClick:n},a(i),9,xf),e?.length?(t(),j(o,{key:0,headers:e},null,8,[`headers`])):L(``,!0)]))),128))],2)}}}),[[`__scopeId`,`data-v-f19316aa`]]),Cf={class:`content`},wf={id:`doc-outline-aria-label`,"aria-level":`2`,class:`outline-title`,role:`heading`},Tf=Y(C({__name:`VPDocAsideOutline`,setup(e){let{theme:n}=H(),r=lt(),i=F(()=>r.value.length>0),o=I(),s=I();ue(o,s);function c(){window.print()}return(e,l)=>(t(),D(`nav`,{ref_key:`container`,ref:o,"aria-labelledby":`doc-outline-aria-label`,class:z([`vp-doc-aside-outline`,{"has-outline":i.value}]),role:`navigation`},[T(`div`,Cf,[T(`div`,{ref_key:`marker`,ref:s,class:`outline-marker`},null,512),T(`div`,wf,[T(`span`,null,a(E(n).outlineLabel||`On this page`),1),T(`span`,{class:`vpi-print icon`,onClick:c})]),k(Sf,{headers:E(r),root:!0},null,8,[`headers`])])],2))}}),[[`__scopeId`,`data-v-d19ea3b0`]]),Ef={class:`vp-doc-aside`},Df=Y(C({__name:`VPDocAside`,setup(e){return(e,n)=>(t(),D(`div`,Ef,[p(e.$slots,`aside-top`,{},void 0,!0),p(e.$slots,`aside-outline-before`,{},void 0,!0),k(Tf),p(e.$slots,`aside-outline-after`,{},void 0,!0),n[0]||=T(`div`,{class:`spacer`},null,-1),p(e.$slots,`aside-bottom`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-099f2712`]]),Of={key:0,class:`vp-breadcrumb`},kf={vocab:`https://schema.org/`,typeof:`BreadcrumbList`},Af={key:0,class:`vpi-chevron-right`},jf=[`content`],Mf=[`content`],Nf=Y(C({__name:`VPDocBreadcrumbs`,setup(e){let{page:n,collection:r}=H(),{isPosts:i}=xt(),{home:a,posts:o,categories:s}=Ke(),c=an(),l=Ze(),u=F(()=>i.value&&n.value.categoryList?n.value.categoryList.length>0:c.value.length>0),d=F(()=>{if(!u.value)return[];let e=[{text:a.value.text,link:a.value.link}];if(i.value){(r.value?.postList??!0)&&o.value&&e.push({text:o.value.text,link:o.value.link});let t=n.value.categoryList??[];for(let n of t)e.push({text:n.name,link:s.value?`${s.value.link}?id=${n.id}`:void 0})}else{if(r.value){let{notFound:t,meta:i,path:a}=Ct(Dn(l.value,r.value.linkPrefix||r.value.dir));a!==n.value.path&&e.push({link:t?void 0:a,text:i.title||r.value.title||We(r.value.dir).split(`/`).pop()||``})}c.value.length>0&&e.push(...p(c.value)||[])}return e.push({text:n.value.frontmatter.title||n.value.title,link:n.value.path,current:!0}
166),e.reduce((e,t,n)=>{let r=e[n-1];return r&&(r.link===t.link||r.text===t.text)?e:[...e,t]},[])});function p(e,t=[]){for(let r of e)if((r.link?Ot(r.link):void 0)===n.value.path)return t;else if(r.items){let e=p(r.items,[...t,{text:r.text,link:r.link}]);if(e)return e}return null}return(e,n)=>u.value?(t(),D(`nav`,Of,[T(`ol`,kf,[(t(!0),D(P,null,f(d.value,({text:e,link:n,current:r},i)=>(t(),D(`li`,{key:n,property:`itemListElement`,typeof:`ListItem`},[k(Q,{href:n,class:z([`breadcrumb`,{current:r}]),property:`item`,typeof:`WebPage`,text:e,"no-icon":``},null,8,[`href`,`class`,`text`]),i===d.value.length-1?L(``,!0):(t(),D(`span`,Af)),T(`meta`,{property:`name`,content:e},null,8,jf),T(`meta`,{property:`position`,content:`${i+1}`},null,8,Mf)]))),128))])])):L(``,!0)}}),[[`__scopeId`,`data-v-3450601b`]]),Pf={class:`vp-copyright`},Ff={key:0},If={key:1,"data-allow-mismatch":``},Lf={class:`source`},Rf={key:2},zf=Y(C({__name:`VPCopyright`,props:{author:{},creation:{},source:{},license:{}},setup(e){let n=e,{theme:r}=H(),{author:i,creation:o,creationText:s,license:c,sourceUrl:l}=ot(F(()=>n));return(e,n)=>(t(),D(`div`,Pf,[n[0]||=T(`span`,{class:`copyright-mask`},null,-1),E(i)?(t(),D(`p`,Ff,[T(`span`,null,a(E(r).copyrightAuthorText||`Copyright Ownership:`),1),k(Q,{href:E(i).url,"no-icon":``},{default:d(()=>[M(a(E(i).name),1)]),_:1},8,[`href`])])):L(``,!0),E(l)?(t(),D(`p`,If,[T(`span`,null,a(E(s)),1),T(`span`,Lf,[k(Q,{href:E(l),"no-icon":E(o)===`original`,"data-allow-mismatch":``},{default:d(()=>[M(a(decodeURIComponent(E(l))),1)]),_:1},8,[`href`,`no-icon`])])])):L(``,!0),E(c)?(t(),D(`p`,Rf,[T(`span`,null,a(E(r).copyrightLicenseText||`License under`),1),k(Q,{href:E(c).url,"no-icon":``},{default:d(()=>[M(a(E(c).name),1)]),_:1},8,[`href`]),E(c).icons?(t(!0),D(P,{key:0},f(E(c).icons,e=>(t(),D(`span`,{key:e,class:z(`vpi-license-${e}`)},null,2))),128)):L(``,!0)])):L(``,!0)]))}}),[[`__scopeId`,`data-v-47e32fcf`]]),Bf=[`href`],Vf=Y(C({__name:`VPDocHeader`,props:{title:{},anchor:{}},setup(e){let{theme:n,frontmatter:r}=H(),i=F(()=>{let e=r.value.outline??n.value.outline;return`h${Array.isArray(e)?e[0]:e===`deep`?2:e||2}`});return(n,r)=>(t(),j(c(i.value),{id:e.anchor,tabindex:`-1`,class:`vp-doc-header`},{default:d(()=>[T(`a`,{href:`#${e.anchor}`,class:`header-anchor`},[T(`span`,null,[p(n.$slots,`default`,{},()=>[M(a(e.title),1)],!0)])],8,Bf)]),_:3},8,[`id`]))}}),[[`__scopeId`,`data-v-26ebdc1d`]]),Hf={key:0,class:`vp-doc-copyright`},Uf=C({__name:`VPDocCopyright`,setup(e){let{theme:n,frontmatter:r}=H(),i=F(()=>{if((r.value.copyright??n.value.copyright??!1)===!1)return null;let e=Ie(r.value.copyright)?r.value.copyright:{license:r.value.copyright===!0?``:r.value.copyright};if(!n.value.copyright)return e;let t=Ie(n.value.copyright)?n.value.copyright:{license:n.value.copyright===!0?void 0:n.value.copyright};return e.license??=t.license,e.author??=t.author,e.creation??=t.creation,e});return(e,r)=>i.value?(t(),D(`div`,Hf,[k(Vf,{anchor:`doc-copyright`},{default:d(()=>[M(a(E(n).copyrightText||`Copyright`),1)]),_:1}),k(zf,v(w(i.value)),null,16)])):L(``,!0)}}),Wf={key:0,class:`vp-doc-footer`},Gf={key:0,class:`edit-info`},Kf={key:0,class:`edit-link`},qf={key:1,class:`last-updated`,"aria-label":`Last updated`},Jf={class:`last-updated-text`},Yf=[`datetime`],Xf={class:`contributors-label`},Zf={class:`contributors-info`},Qf={class:`contributor`},$f={key:2,class:`prev-next`},ep={class:`pager`},tp=[`innerHTML`],np={class:`title`},rp=[`innerHTML`],ip={class:`pager`},ap=[`innerHTML`],op={class:`title`},sp=[`innerHTML`],cp=Y(C({__name:`VPDocFooter`,setup(e){let{theme:n,frontmatter:i,page:o}=H(),s=pt(),c=on(),{datetime:l,isoDatetime:u,lastUpdatedText:m}=Et(),{contributors:g,mode:_}=nt(),{prev:v,next:y}=Kt(),b=F(()=>o.value.git?.changelog?.length&&(i.value.changelog??!!s.value.changelog)),x=F(()=>!!(s.value.editLink&&i.value.editLink!==!1&&c.value)),S=F(()=>!!(s.value.lastUpdated!==!1&&i.value.lastUpdated!==!1&&l.value)&&!b.value),C=F(()=>!!g.value.length&&_.value===`inline`),w=r(`doc-footer-slot-exists`,I(!1)),O=F(()=>x.value||S.value||C.value||v.value?.link||y.value?.link||re(w));return(e,r)=>{let i=h(`VPIcon`);return O.value?(t(),D(`footer`,Wf,[p(e.$slots,`doc-footer-before`,{},void 0,!0),x.value||S.value?(t(),D(`div`,Gf,[x.value&&E(c)?(t(),D(`div`,Kf,[k(Q,{class:`edit-link-button`,href:E(c).link,"no-icon":``},{default:d(()=>[r[0]||=T(`span`,{class:`vpi-square-pen edit-link-icon`,"aria-label":`edit icon`},null,-1),M(` `+a(E(c).text),1)]),_:1},8,[`href`])])):L(``,!0),S.value?(t(),D(`div`,qf,[T(`p`,Jf,[M(a(E(m))+`: `,1),T(`time`,{datetime:E(u),class:`last-updated-time`},a(E(l)),9,Yf)])])):L(``,!0)])):L(``,!0),C.value&&E(g)?.length?(t(),D(`div`,{key:1,class:z([`c
166ontributors`,{right:S.value}]),"aria-label":`Contributors`},[T(`span`,Xf,a(E(n).contributorsText||`Contributors`)+`: `,1),T(`span`,Zf,[(t(!0),D(P,null,f(E(g),(e,n)=>(t(),D(P,{key:e.name+n},[T(`span`,Qf,a(e.name),1),n===E(g).length-1?L(``,!0):(t(),D(P,{key:0},[M(`, `)],64))],64))),128))])],2)):L(``,!0),E(v)?.link||E(y)?.link?(t(),D(`nav`,$f,[T(`div`,ep,[E(v)?.link?(t(),j(Q,{key:0,class:`pager-link prev`,href:E(v).link},{default:d(()=>[T(`span`,{class:`desc`,innerHTML:E(n).prevPageLabel||`Previous page`},null,8,tp),T(`span`,np,[E(v).icon?(t(),j(i,{key:0,name:E(v).icon},null,8,[`name`])):L(``,!0),T(`span`,{innerHTML:E(v).text},null,8,rp)])]),_:1},8,[`href`])):L(``,!0)]),T(`div`,ip,[E(y)?.link?(t(),j(Q,{key:0,class:`pager-link next`,href:E(y).link},{default:d(()=>[T(`span`,{class:`desc`,innerHTML:E(n).nextPageLabel||`Next page`},null,8,ap),T(`span`,op,[E(y).icon?(t(),j(i,{key:0,name:E(y).icon},null,8,[`name`])):L(``,!0),T(`span`,{innerHTML:E(y).text},null,8,sp)])]),_:1},8,[`href`])):L(``,!0)])])):L(``,!0)])):L(``,!0)}}}),[[`__scopeId`,`data-v-97fe164c`]]),lp={class:`vp-doc-title`},up={key:0,class:`vp-doc-meta`},dp={key:0,class:`reading-time`},fp={key:0},pp={key:1},mp={key:1},hp={key:2,class:`create-time`},gp=Y(C({__name:`VPDocMeta`,setup(e){let{page:n,frontmatter:i,theme:o,collection:s}=H(),c=Pt(),l=zu(),{tags:u}=Ke(),{isPosts:m}=xt(),h=F(()=>s.value?.meta??{}),g=F(()=>{if(i.value.createTime===!1||h.value.createTime===!1)return``;let e=h.value.createTime===!0?`short`:h.value.createTime??`short`,t=o.value.createTime??!0;if(!t||t===`only-posts`&&!m.value)return``;let n=i.value.createTime;return n?(e===`short`?n.split(/\s|T/)[0]:n).replace(/\//g,`-`):``}),_=F(()=>{if(h.value.tags===!1)return[];let e=s.value?.tagsTheme??`colored`;return i.value.tags?i.value.tags.slice(0,4).map(t=>({name:t,className:c.value[t]?`vp-tag-${c.value[t]}`:`tag-${e}`})):[]}),v=F(()=>i.value.badge?typeof i.value.badge==`string`?{text:i.value.badge}:i.value.badge:!1),y=r(`doc-meta-slot-exists`,I(!1)),b=F(()=>l.value.time&&(h.value.readingTime!==!1||h.value.wordCount!==!1)||_.value.length||g.value||y.value);return(e,r)=>(t(),D(P,null,[T(`div`,lp,[p(e.$slots,`doc-title-before`,{},void 0,!0),T(`h1`,{class:z([`page-title`,{padding:!b.value}])},[E(i).draft?(t(),j(X,{key:0,type:`warning`,text:`DRAFT`})):L(``,!0),M(` `+a(E(i).title||E(n).title)+` `,1),v.value?(t(),j(X,{key:1,type:v.value.type||`tip`,text:v.value.text},null,8,[`type`,`text`])):L(``,!0)],2),p(e.$slots,`doc-title-after`,{},void 0,!0)]),b.value?(t(),D(`div`,up,[p(e.$slots,`doc-meta-before`,{},void 0,!0),E(l).time&&E(i).readingTime!==!1&&(h.value.readingTime!==!1||h.value.wordCount!==!1)?(t(),D(`p`,dp,[r[0]||=T(`span`,{class:`vpi-books icon`},null,-1),h.value.wordCount===!1?L(``,!0):(t(),D(`span`,fp,a(E(l).words),1)),h.value.readingTime===!1?L(``,!0):(t(),D(`span`,pp,a(E(l).time),1))])):L(``,!0),_.value.length>0?(t(),D(`p`,mp,[r[1]||=T(`span`,{class:`vpi-tag icon`},null,-1),(t(!0),D(P,null,f(_.value,e=>
166(t(),j(Q,{key:e.name,class:z([`tag`,e.className]),href:E(u)?.link&&E(m)?`${E(u).link}?tag=${e.name}`:void 0},{default:d(()=>[M(a(e.name),1)]),_:2},1032,[`class`,`href`]))),128))])):L(``,!0),p(e.$slots,`doc-meta-after`,{},void 0,!0),g.value?(t(),D(`p`,hp,[r[2]||=T(`span`,{class:`vpi-clock icon`},null,-1),T(`span`,null,a(g.value),1)])):L(``,!0)])):L(``,!0)],64))}}),[[`__scopeId`,`data-v-1e23a00a`]]),_p={class:`container`},vp={class:`aside-content`},yp={class:`content-container`},bp={class:`main`},xp=Y(C({__name:`VPDoc`,setup(e){let{page:n,theme:r,frontmatter:i}=H(),a=Ht(),{hasSidebar:o,hasAside:s,leftAside:c}=gn(),{isSidebarCollapsed:l}=W(),{isPosts:u}=xt(),f=lt(),{isPageDecrypted:m}=Ae(),{mode:g}=nt(),v=F(()=>s.value?!u.value||f.value.length>0:!1),b=F(()=>a.path.replace(/[./]+/g,`_`).replace(/_html$/,``)),x=F(()=>r.value.externalLinkIcon&&i.value.externalLinkIcon!==!1),S=I();return y(()=>a.hash,e=>_(()=>{if(!S.value)return;let t=S.value.querySelector(`.outline-link[href="${e}"]`);if(!t||!e){S.value.scrollTop=0;return}let{top:n,height:r}=S.value.getBoundingClientRect(),{top:i,height:a}=t.getBoundingClientRect();(i<n||i+a>n+r)&&t.scrollIntoView({block:`center`})}),{immediate:!0}),(e,r)=>{let i=h(`Content`),a=h(`DocGitContributors`),s=h(`DocGitChangelog`);return t(),D(`div`,{class:z([`vp-doc-container`,{"has-sidebar":E(o)&&!E(l),"has-aside":v.value,"is-posts":E(u),"with-encrypt":!E(m)}])},[p(e.$slots,`doc-top`,{},void 0,!0),T(`div`,_p,[v.value?(t(),D(`div`,{key:0,class:z([`aside`,{"left-aside":E(c)}]),"vp-outline":``},[r[0]||=T(`div`,{class:`aside-curtain`},null,-1),k(gf,null,{default:d(()=>[(t(),D(`div`,{ref_key:`asideEl`,ref:S,key:E(n).path,class:`aside-container`},[T(`div`,vp,[k(Df,null,{"aside-top":d(()=>[p(e.$slots,`aside-top`,{},void 0,!0)]),"aside-bottom":d(()=>[p(e.$slots,`aside-bottom`,{},void 0,!0)]),"aside-outline-before":d(()=>[p(e.$slots,`aside-outline-before`,{},void 0,!0)]),"aside-outline-after":d(()=>[p(e.$slots,`aside-outline-after`,{},void 0,!0)]),"aside-ads-before":d(()=>[p(e.$slots,`aside-ads-before`,{},void 0,!0)]),"aside-ads-after":d(()=>[p(e.$slots,`aside-ads-after`,{},void 0,!0)]),_:3})])]))]),_:3})],2)):L(``,!0),k(gf,null,{default:d(()=>[(t(),D(`div`,{key:E(n).path,class:`content`},[T(`div`,yp,[p(e.$slots,`doc-before`,{},void 0,!0),T(`main`,bp,[k(Nf),p(e.$slots,`doc-meta-top`,{},void 0,!0),k(gp,null,{"doc-title-before":d(()=>[p(e.$slots,`doc-title-before`,{},void 0,!0)]),"doc-title-after":d(()=>[p(e.$slots,`doc-title-after`,{},void 0,!0)]),"doc-meta-before":d(()=>[p(e.$slots,`doc-meta-before`,{},void 0,!0)]),"doc-meta-after":d(()=>[p(e.$slots,`doc-meta-after`,{},void 0,!0)]),_:3}),p(e.$slots,`doc-meta-bottom`,{},void 0,!0),k(hf,null,{default:d(()=>[T(`div`,{class:z([`vp-doc plume-content`,[b.value,x.value&&`external-link-icon-enabled`]]),"vp-content":``},[p(e.$slots,`doc-content-before`,{},void 0,!0),k(i),E(g)===`block`?(t(),j(a,{key:0})):L(``,!0),k(s),k(Uf),k(cp,null,{"doc-footer-before":d(()=>[p(e.$slots,`doc-footer-before`,{},void 0,!0)]),_:3})],2)]),_:3})]),k(bf),p(e.$slots,`doc-after`,{},void 0,!0)])]))]),_:3})]),p(e.$slots,`doc-bottom`,{},void 0,!0)],2)}}}),[[`__scopeId`,`data-v-2f65bec9`]]),Sp={class:`avatar`},Cp=[`src`,`alt`],wp={class:`content`},Tp={key:0,class:`location`},Ep={key:1,class:`organization`},Dp=Y(C({__name:`VPFriendsItem`,props:{friend:{}},setup(e){let n=Ce();function r(e,t){if(!t)return{};let r=Ie(t)?n.value?t.dark:t.light:t;return r?{[e]:r}:{}}let i=F(()=>({...r(`--vp-friends-text-color`,e.friend.color),...r(`--vp-friends-bg-color`,e.friend.backgroundColor),...r(`--vp-friends-name-color`,e.friend.nameColor)}));return(n,r)=>(t(),D(`div`,{class:z([`vp-friend`,{"only-title":!e.friend.desc&&!e.friend.socials?.length&&!e.friend.location&&!e.friend.organization,"no-desc":!e.friend.desc}]),style:s(i.value)},[T(`div`,Sp,[T(`img`,{src:e.friend.avatar,alt:e.friend.name},null,8,Cp)]),T(`div`,wp,[k(Q,{class:`title`,href:e.friend.link,"no-icon":``,text:e.friend.name},null,8,[`href`,`text`]),e.friend.location?(t(),D(`p`,Tp,[r[0]||=T(`span`,{class:`vpi-location`},null,-1),T(`span`,null,a(e.friend.location),1)])):L(``,!0),e.friend.organization?(t(),D(`p`,Ep,[r[1]||=T(`span`,{class:`vpi-organization`},null,-1),T(`span`,null,a(e.friend.organization),1)])):L(``,!0),e.friend.desc?(t(),D(`p`,{key:2,class:z([`desc`,{offset:e.friend.location&&e.friend.organization}])},a(e.friend.desc),3)):L(``,!0),e.friend.socials?(t(),j(lo,{key:3,links:e.friend.socials},null,8,[`links`])):L(``,!0)])],6))}}),[[`__scopeId`,`data-v-d0c4a7c7`]]),Op={class:`vp-friends-group`},kp={class:`title`},Ap={key:0,class:`description`},jp={key:1,class:`friends-list`},Mp=Y(C({__name:`VPFriendsGroup`,props:{group:{}},setup(e){return(n,r)=>(t(),D(`div`,Op,[T(`h3`,kp,a(e.group.title||`My Friends`),1),e.group.desc?(t(),D(`p`,Ap,a(e.group.desc),1)):L(``,!0),e.group.list?.length?(t(),D(`section`,jp,[(t(!0),D(P,null,f(e.group.list,(e,n)=>(t(),j(Dp,{key:e.name+n,friend:e},null,8,[`friend`]))),128))])):L(``,!0)]))}}),[[`__scopeId`,`data-v-ebf0f648`]]),Np={class:`title`},Pp={key:1,class:`description`},Fp={key:2,class:`friends-list`},Ip={key:4,class:`edit-link`},Lp=Y(C({__name:`VPFriends`,setup(e){let n=on(),{frontmatter:r,page:i}=H(),o=F(()=>r.value.list||[]),c=F(()=>r.value.groups||[]),l=F(()=>{let e=r.value.cols||2;return e<1?1:e});return(e,u)=>{let p=h(`Content`);return t(),D(`div`,{class:z([`vp-friends`,{"cols-large":l.value>=3}]),style:s({"--vp-friends-cols":l.value})},[k(hf,null,{default:d(()=>[E(r).contentPosition===`before`?(t(),j(p,{key:0,class:`vp-doc plume-content before`,"vp-content":``})):L(``,!0),T(`h2`,Np,a(E(r).title||`My Friends`),1),E(r).description&&!E(i).autoDesc?(t(),D(`p`,Pp,a(E(r).description),1)):L(``,!0),o.value.length?(t(),D(`section`,Fp,[(t(!0),D(P,null,f(o.value,(e,n)=>(t(),j(Dp,{key:e.name+n,friend:e},null,8,[`friend`]))),128))])):L(``,!0),(t(!0),D(P,null,f(c.value,(e,n)=>(t(),j(Mp,{key:n,group:e},null,8,[`group`]))),128)),E(r).contentPosition===`before`?L(``,!0):(t(),j(p,{key:3,class:`vp-doc plume-content after`,"vp-content":``})),E(n)?(t(),D(`div`,Ip,[k(Q,{class:`edit-link-button`,href:E(n).link,"no-icon":``},{default:d(()=>[u[0]||=T(`span`,{class:`vpi-square-pen edit-link-icon`,"aria-label":`edit icon`},null,-1),M(` `+a(E(n).text),1)]),_:1},8,[`href`])])):L(``,!0)]),_:1}),k(bf)],6)}}}),[[`__scopeId`,`data-v-09260fa8`]]),Rp={class:`vp-page`},zp=C({__name:`VPPage`,setup(e){return(e,n)=>{let r=h(`Content`);return t(),D(`div`,Rp,[k(hf,null,{default:d(()=>[p(e.$slots,`page-top`),k(r,{class:`vp-doc plume-content`,"vp-content":``}),p(e.$slots,`page-bottom`)]),_:3})])}}}),Bp=Y(C({__name:`VPContent`,props:{isNotFound:{type:Boolean}},setup(e){let{hasSidebar:n,isHome:r}=gn(),{isSidebarCollapsed:i}=W(),{frontmatter:a,collection:o}=H(),{isPostsLayout:s}=xt(),l=Ht();return y([s,()=>a.value.pageLayout,()=>
166l.path],()=>_(()=>{if(Sn){document.documentElement.classList.toggle(`bg-gray`,s.value);let e=document.documentElement.className.match(/(?:^|\s)(layout-\S+)(?:$|\s)/)?.[1];if(e&&document.documentElement.classList.remove(e),document.documentElement.classList.add(`layout-${s.value?`posts`:a.value.pageLayout||`doc`}`),o.value){let e=document.documentElement.className.match(/(?:^|\s)(collection-\S+)(?:$|\s)/)?.[1];e&&document.documentElement.classList.remove(e),document.documentElement.classList.add(`collection-${o.value.type}-${o.value.linkPrefix?.replace(/^\/|\/$/g,``).replace(/\//g,`_`)||`default`}`)}}}),{immediate:!0}),(o,l)=>(t(),D(`div`,{id:`VPContent`,"vp-content":``,class:z([`vp-content`,{"has-sidebar":E(n)&&!E(i)&&!e.isNotFound,"is-home":E(r)}])},[E(s)||E(a).pageLayout===`posts`?(t(),j(_f,{key:0,"home-posts":E(a).pageLayout===`posts`,collection:E(a).collection},{"posts-top":d(()=>[p(o.$slots,`posts-top`,{},void 0,!0)]),"posts-bottom":d(()=>[p(o.$slots,`posts-bottom`,{},void 0,!0)]),"posts-archives-before":d(()=>[p(o.$slots,`posts-archives-before`,{},void 0,!0)]),"posts-archives-after":d(()=>[p(o.$slots,`posts-archives-after`,{},void 0,!0)]),"posts-tags-before":d(()=>[p(o.$slots,`posts-tags-before`,{},void 0,!0)]),"posts-tags-after":d(()=>[p(o.$slots,`posts-tags-after`,{},void 0,!0)]),"posts-tags-title-after":d(()=>[p(o.$slots,`posts-tags-title-after`,{},void 0,!0)]),"posts-tags-content-before":d(()=>[p(o.$slots,`posts-tags-content-before`,{},void 0,!0)]),"posts-categories-before":d(()=>[p(o.$slots,`posts-categories-before`,{},void 0,!0)]),"posts-categories-after":d(()=>[p(o.$slots,`posts-categories-after`,{},void 0,!0)]),"posts-categories-content-before":d(()=>[p(o.$slots,`posts-categories-content-before`,{},void 0,!0)]),"posts-post-list-before":d(()=>[p(o.$slots,`posts-post-list-before`,{},void 0,!0)]),"posts-post-list-after":d(()=>[p(o.$slots,`posts-post-list-after`,{},void 0,!0)]),"posts-post-list-pagination-after":d(()=>[p(o.$slots,`posts-post-list-pagination-after`,{},void 0,!0)]),"posts-aside-top":d(()=>[p(o.$slots,`posts-aside-top`,{},void 0,!0)]),"posts-aside-bottom":d(()=>[p(o.$slots,`posts-aside-bottom`,{},void 0,!0)]),"posts-extract-before":d(()=>[p(o.$slots,`posts-extract-before`,{},void 0,!0)]),"posts-extract-after":d(()=>[p(o.$slots,`posts-extract-after`,{},void 0,!0)]),_:3},8,[`home-posts`,`collection`])):E(a).pageLayout===`page`?(t(),j(zp,{key:1},{"page-top":d(()=>[p(o.$slots,`page-top`,{},void 0,!0)]),"page-bottom":d(()=>[p(o.$slots,`page-bottom`,{},void 0,!0)]),_:3})):E(a).pageLayout===`friends`?(t(),j(Lp,{key:2})):E(a).pageLayout===`home`?(t(),j(yf,{key:3},{"posts-top":d(()=>[p(o.$slots,`posts-top`,{},void 0,!0)]),"posts-bottom":d(()=>[p(o.$slots,`posts-bottom`,{},void 0,!0)]),"posts-post-list-before":d(()=>[p(o.$slots,`posts-post-list-before`,{},void 0,!0)]),"posts-post-list-after":d(()=>[p(o.$slots,`posts-post-list-after`,{},void 0,!0)]),"posts-post-list-pagination-after":d(()=>[p(o.$slots,`posts-post-list-pagination-after`,{},void 0,!0)]),_:3})):E(a).pageLayout&&E(a).pageLayout!==`doc`?(t(),j(c(E(a).pageLayout),{key:4})):(t(),j(xp,{key:5},{"doc-top":d(()=>[p(o.$slots,`doc-top`,{},void 0,!0)]),"doc-bottom":d(()=>[p(o.$slots,`doc-bottom`,{},void 0,!0)]),"doc-title-before":d(()=>[p(o.$slots,`doc-title-before`,{},void 0,!0)]),"doc-title-after":d(()=>[p(o.$slots,`doc-title-after`,{},void 0,!0)]),"doc-meta-before":d(()=>[p(o.$slots,`doc-meta-before`,{},void 0,!0)]),"doc-meta-after":d(()=>[p(o.$slots,`doc-meta-after`,{},void 0,!0)]),"doc-meta-top":d(()=>[p(o.$slots,`doc-meta-top`,{},void 0,!0)]),"doc-meta-bottom":d(()=>[p(o.$slots,`doc-meta-bottom`,{},void 0,!0)]),"doc-content-before":d(()=>[p(o.$slots,`doc-content-before`,{},void 0,!0)]),"doc-footer-before":d(()=>[p(o.$slots,`doc-footer-before`,{},void 0,!0)]),"doc-before":d(()=>[p(o.$slots,`doc-before`,{},void 0,!0)]),"doc-after":d(()=>[p(o.$slots,`doc-after`,{},void 0,!0)]),"aside-top":d(()=>[p(o.$slots,`aside-top`,{},void 0,!0)]),"aside-outline-before":d(()=>[p(o.$slots,`aside-outline-before`,{},void 0,!0)]),"aside-outline-after":d(()=>[p(o.$slots,`aside-outline-after`,{},void 0,!0)]),"aside-ads-before":d(()=>[p(o.$slots,`aside-ads-before`,{},void 0,!0)]),"aside-ads-after":d(()=>[p(o.$slots,`aside-ads-after`,{},void 0,!0)]),"aside-bottom":d(()=>[p(o.$slots,`aside-bottom`,{},void 0,!0)]),_:3}))],2))}}),[[`__scopeId`,`data-v-55f9cfb3`]]),Vp={class:`container`},Hp=[`innerHTML`],Up=[`innerHTML`],Wp=Y(C({__name:`VPFooter`,setup(e){let{theme:n,frontmatter:r}=H(),{hasSidebar:a}=gn(),{isSidebarCollapsed:o}=W(),s=Pe(`--vp-footer-height`,Sn?document.body:null),c=I(null);return i(()=>{n.value.footer&&r.value.footer!==!1&&c.value&&(s.value=`${c.value.offsetHeight}px`)}),(e,i)=>E(n).footer&&E(r).footer!==!1?(t(),D(`footer`,{key:0,ref_key:`footer`,ref:c,class:z([`vp-footer`,{"has-sidebar":E(a)&&!E(o)}]),"vp-footer":``},[p(e.$slots,`footer-content`,{},()=>[T(`div`,Vp,[E(n).footer.message?(t(),D(`div`,{key:0,class:`message`,innerHTML:E(n).footer.message},null,8,Hp)):L(``,!0),E(n).footer.copyright?(t(),D(`div`,{key:1,class:`copyright`,innerHTML:E(n).footer.copyright},null,8,Up)):L(``,!0)])],!0)],2)):L(``,!0)}}),[[`__scopeId`,`data-v-506259cc`]]),Gp={class:`global-encrypt-container`},Kp={key:0,class:`profile`},qp=[`src`,`alt`],Jp={key:1},Yp=Y(C({inheritAttrs:!1,__name:`VPEncryptGlobal`,setup(e){let{theme:n,site:r}=H(),i=F(()=>n.value.profile),o=F(()=>i.value?.name||r.value.title);return(e,r)=>{let s=h(`ClientOnly`);return t(),D(P,null,[k(s,null,{default:d(()=>[T(`div`,R({class:`vp-global-encrypt`},e.$attrs),[T(`div`,Gp,[i.value||o.value?(t(),D(`div`,Kp,[i.value?(t(),D(`p`,{key:0,class:z([`avatar`,{circle:i.value.circle}])},[T(`img`,{src:i.value.avatar??i.value.url,alt:i.value.name},null,8,qp)],2)):L(``,!0),o.value?(t(),D(`h3`,Jp,a(o.value),1)):L(``,!0)])):L(``,!0),k(mf,{global:``,info:E(n).encryptGlobalText},null,8,[`info`])])],16)]),_:1}),k(Wp)],64)}}}),[[`__scopeId`,`data-v-b4bb01bc`]]),Xp={key:0,class:`outline-mask`},Zp={class:`outline`},Qp=Y(C({__name:`VPLocalNavOutlineDropdown`,props:{headers:{}
166,navHeight:{}},setup(e){let{theme:n}=H(),r=I(!1),i=I(0),o=I(),c=I();y(()=>e.headers,()=>{r.value=!1}),ze(o,()=>{r.value=!1},{ignore:[c]}),Ge(`Escape`,()=>{r.value=!1}),Gt(()=>{r.value=!1});function l(){r.value=!r.value,i.value=window.innerHeight+Math.min(window.scrollY-e.navHeight,0)}function u(e){e.target.classList.contains(`outline-link`)&&(o.value&&(o.value.style.transition=`none`),_(()=>{r.value=!1}))}return(f,p)=>(t(),D(`div`,{class:`vp-local-nav-outline-dropdown`,style:s({"--vp-vh":`${i.value}px`})},[e.headers.length>0?(t(),D(`button`,{key:0,ref_key:`btn`,ref:c,class:z({open:r.value}),onClick:l},[M(a(E(n).outlineLabel||`On this page`)+` `,1),p[0]||=T(`span`,{class:`vpi-chevron-right icon`},null,-1)],2)):L(``,!0),k(V,{name:`fade-in`},{default:d(()=>[r.value?(t(),D(`div`,Xp)):L(``,!0)]),_:1}),k(V,{name:`fade-in-scale-up`},{default:d(()=>[r.value?(t(),D(`div`,{key:0,ref_key:`items`,ref:o,class:`items`,onClick:u},[T(`div`,Zp,[k(Sf,{headers:e.headers},null,8,[`headers`])])],512)):L(``,!0)]),_:1})],4))}}),[[`__scopeId`,`data-v-174f01b3`]]),$p=[`disabled`,`aria-expanded`],em={class:`menu-text`},tm=Y(C({__name:`VPLocalNav`,props:{open:{type:Boolean},showOutline:{type:Boolean}},emits:[`openMenu`],setup(e){let{theme:n}=H(),{isPosts:r,isPostsLayout:o}=xt(),{hasSidebar:s,hasLocalNav:c}=gn(),{isSidebarCollapsed:l}=W(),{y:u}=je(),d=I(0),f=lt(),p=F(()=>!c.value&&!s.value);i(()=>{d.value=Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue(`--vp-nav-height`))});let m=F(()=>({"vp-local-nav":!0,fixed:p.value,"reached-top":u.value>=d.value,"is-posts":r.value&&!o.value,"with-outline":!e.showOutline,"has-sidebar":s.value&&!l.value})),h=F(()=>(s.value||r.value&&!o.value)&&!p.value);return(i,o)=>h.value?(t(),D(`div`,{key:0,class:z(m.value)},[T(`button`,{class:z([`menu`,{hidden:E(r)}]),disabled:E(r),"aria-expanded":e.open,"aria-controls":`SidebarNav`,onClick:o[0]||=e=>i.$emit(`openMenu`)},[o[1]||=T(`span`,{class:`vpi-align-left menu-icon`},null,-1),T(`span`,em,a(E(n).sidebarMenuLabel||`Menu`),1)],10,$p),e.showOutline?(t(),j(Qp,{key:0,headers:E(f),"nav-height":d.value},null,8,[`headers`,`nav-height`])):L(``,!0)],2)):L(``,!0)}}),[[`__scopeId`,`data-v-d06ac2fc`]]),nm=[`role`,`tabindex`],rm=[`innerHTML`],im=[`innerHTML`],am=[`aria-label`,`aria-expanded`],om={class:`items`},sm=Y(C({__name:`VPSidebarItem`,props:{item:{},depth:{}},setup(e){let{collapsed:n,collapsible:r,isLink:i,isActiveLink:a,hasActiveLink:o,hasChildren:s,toggle:l}=Yt(F(()=>e.item)),u=F(()=>s.value?`section`:`div`),p=F(()=>i.value?`a`:`div`),m=F(()=>s.value?e.depth+2===7?`p`:`h${e.depth+2}`:`p`),_=F(()=>i.value?void 0:`button`),v=/^-{3,}$/,y=F(()=>e.item.link&&v.test(e.item.link)),b=F(()=>[[`level-${e.depth}`],{collapsible:r.value},{collapsed:n.value},{"is-link":i.value},{"is-active":a.value},{"has-active":o.value}]);function x(t){`key`in t&&t.key!==`Enter`||e.item.link||l()}return(r,i)=>{let a=h(`VPSidebarItem`,!0);return t(),j(c(u.value),{class:z([`vp-sidebar-item sidebar-item`,b.value])},{default:d(()=>[e.item.text?(t(),D(`div`,R({key:0,class:`item`,role:_.value,tabindex:e.item.items&&0},g(e.item.items?{click:x,keydown:x}:{},!0)),[i[2]||=T(`div`,{class:`indicator`},null,-1),e.item.icon?(t(),j(Z,{key:0,name:e.item.icon,class:z({separator:y.value})},null,8,[`name`,`class`])):L(``,!0),e.item.link&&!y.value?(t(),j(Q,{key:1,tag:p.value,class:`link`,href:e.item.link},{default:d(()=>[(t(),j(c(m.value),{class:`text`},{default:d(()=>[T(`span`,{innerHTML:e.item.text},null,8,rm),e.item.badge?(t(),j(X,R({key:0,class:`vp-menu-badge`},typeof e.item.badge==`string`?{text:e.item.badge}:e.item.badge),null,16)):L(``,!0)]),_:1}))]),_:1},8,[`tag`,`href`])):(t(),j(c(m.value),{key:2,class:z([`text`,{separator:y.value}])},{default:d(()=>[T(`span`,{innerHTML:e.item.text},null,8,im),e.item.badge?(t(),j(X,R({key:0,class:`vp-menu-badge`},typeof e.item.badge==`string`?{text:e.item.badge}:e.item.badge),null,16)):L(``,!0)]),_:1},8,[`class`])),e.item.collapsed==null?L(``,!0):(t(),D(`button`,{key:3,type:`button`,class:`caret`,"aria-label":`${E(n)?`Expand`:`Collapse`} ${e.item.text}`,"aria-expanded":!E(n),tabindex:`-1`,onClickCapture:i[0]||=t=>e.item.link&&E(l)()},[...i[1]||=[T(`span`,{class:`vpi-chevron-right caret-icon`},null,-1)]],40,am))],16,nm)):L(``,!0),e.item.items&&e.item.items.length&&e.depth<5?(t(),j(E(le),{key:1},{default:d(()=>[N(T(`div`,null,[T(`div`,om,[(t(!0),D(P,null,f(e.item.items,n=>(t(),j(a,{key:n.text,item:n,depth:e.depth+1},null,8,[`item`,`depth`]))),128))])],512),[[Je,!E(n)]])]),_:1})):L(``,!0)]),_:1},8,[`class`])}}}),[[`__scopeId`,`data-v-3b3b0d9a`]]),cm=Y(C({__name:`VPSidebarGroup`,props:{items:{}},setup(e){let n=I(!0),r=null;return i(()=>{r=setTimeout(()=>{r=null,n.value=!1},300)}),o(()=>{r!=null&&(clearTimeout(r),r=null)}),(r,i)=>(t(!0),D(P,null,f(e.items,e=>(t(),D(`div`,{key:e.text,class:z([`group`,{"no-transition":n.value}])},[k(sm,{item:e,depth:0},null,8,[`item`])],2))),128))}}),[[`__scopeId`,`data-v-4a91acb4`]]),lm=Y(C({__name:`VPSidebar`,props:{open:{type:Boolean}},setup(e){let{theme:n}=H(),{hasSidebar:r}=gn(),{sidebarGroups:a,sidebarKey:o}=wt(),{isSidebarCollapsed:s,toggleSidebarCollapse:c}=W(),l=me(),u=I(null),f=rt(Sn?document.body:null);return y([()=>e.open,u],()=>{e.open?(f.value=!0,u.value?.focus()):f.value=!1},{immediate:!0,flush:`post`}),i(()=>{y(o,async()=>{await _();let e=document.querySelector(`.vp-sidebar .vp-link[href*="${l.value}"]`);if(!u.value)return;if(!e){setTimeout(()=>u.value?.scrollTo(0,0),200);return}let{top:t,height:n}=u.value.getBoundingClientRect(),{top:r,height:i}=e.getBoundingClientRect();(r<t||r+i>t+n)&&e.scrollIntoView({block:`center`})},{immediate:!0,flush:`post`})}),(i,l)=>(t(),D(P,null,[k(V,{name:`fade-slide-x`,mode:`out-in`},{default:d(()=>[E(r)?(t(),D(`aside`,{key:0,ref_key:`navEl`,ref:u,class:z([`vp-sidebar`,{open:e.open,"hide-scrollbar":!(E(n).sidebarScrollbar??!0),collapsed:E(s)}]),"vp-sidebar":``,onClick:l[0]||=de(()=>{},[`stop`])},[l[3]||=T(`div`,{class:`curtain`},null,-1),k(gf,null,{default:d(()=>[(t(),D(`nav`,{id:`SidebarNav`,key:E(o),class:`nav`,"aria-labelledby":`sidebar-aria-label`,tabindex:`-1`},[l[2]||=T(`span`,{id:`sidebar-aria-label`,class:`visually-hidden`},` Sidebar Navigation `,-1),p(i.$slots,`sidebar-nav-before`,{},void 0,!0),k(cm,{items:E(a)},null,8,[`items`]),p(i.$slots,`sidebar-nav-after`,{},void 0,!0)]))]),_:3})],2)):L(``,!0)]),_:3}),E(r)?(t(),D(`div`,{key:0,class:z([`vp-sidebar-control`,{collapsed:E(s)}])},[T(`button`,{type:`button`,class:`toggle-sidebar-btn`,"aria-label":`Toggle sidebar`,onClick:l[1]||=e=>E(c)()},[T(`span`,{class:z(`vpi-sidebar-${E(s)?`open`:`close`}`)},null,2)])],2)):L(``,!0)],64))}}),[[`__scopeId`,`data-v-ddfa1bcf`]]),um=Y(C({__name:`VPSignDown`,setup(e){let n=A(),{height:r}=Ye(n),{height:a}=sn();i(()=>
166{n.value=document.body});let{page:o}=H(),s=F(()=>{if(o.value.frontmatter.signDown!==!0||o.value.frontmatter.pageLayout!==`home`||!o.value.frontmatter.config)return!0;let e=o.value.frontmatter.config;return e.length<=1||e[0].full!==!0}),c=F(()=>!(r.value<a.value)),{is960:l}=gn();function u(){document.documentElement.scrollTo({top:document.documentElement.clientHeight-(l.value?64:0),behavior:`smooth`})}return(e,n)=>N((t(),D(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,"aria-label":`sign down`,class:`vp-sign-down`,"aria-hidden":`true`,onClick:u},[...n[0]||=[T(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2.5`},[T(`path`,{d:`m19 11l-7 6l-7-6`}),T(`path`,{d:`m19 5l-7 6l-7-6`,opacity:`0.6`})],-1)]],512)),[[Je,!s.value&&c.value]])}}),[[`__scopeId`,`data-v-f20a5246`]]),dm=Y(C({__name:`VPSkipLink`,setup(e){let n=Ht(),r=I();y(()=>n.path,()=>r.value.focus());function i({target:e}){let t=document.getElementById(decodeURIComponent(e.hash).slice(1));if(t){let e=()=>{t.removeAttribute(`tabindex`),t.removeEventListener(`blur`,e)};t.setAttribute(`tabindex`,`-1`),t.addEventListener(`blur`,e),t.focu
166s(),window.scrollTo(0,0)}}return(e,n)=>(t(),D(P,null,[T(`span`,{ref_key:`backToTop`,ref:r,tabindex:`-1`},null,512),T(`a`,{href:`#VPContent`,class:`vp-skip-link visually-hidden`,onClick:i},` Skip to content `)],64))}}),[[`__scopeId`,`data-v-cc55649f`]]),fm=Y(C({__name:`Layout`,setup(e){let{isSidebarEnabled:n,enableSidebar:r,disableSidebar:i}=W(),{frontmatter:a}=H(),{isGlobalDecrypted:o,isPageDecrypted:s}=Ae();return se(),(e,c)=>{let l=h(`Content`);return t(),D(P,null,[E(a).pageLayout!==!1&&E(a).pageLayout!==`custom`?(t(),D(`div`,{key:0,class:z([`theme-plume vp-layout`,E(a).pageClass]),"vp-container":``},[E(o)?(t(),D(P,{key:1},[p(e.$slots,`layout-top`,{},void 0,!0),k(dm),k(vs,{show:E(n),onClick:E(i)},null,8,[`show`,`onClick`]),k(gs,null,{"nav-bar-title-before":d(()=>[p(e.$slots,`nav-bar-title-before`,{},void 0,!0)]),"nav-bar-title-after":d(()=>[p(e.$slots,`nav-bar-title-after`,{},void 0,!0)]),"nav-bar-content-before":d(()=>[p(e.$slots,`nav-bar-content-before`,{},void 0,!0)]),"nav-bar-content-after":d(()=>[p(e.$slots,`nav-bar-content-after`,{},void 0,!0)]),"nav-bar-menu-before":d(()=>[p(e.$slots,`nav-bar-menu-before`,{},void 0,!0)]),"nav-bar-menu-after":d(()=>[p(e.$slots,`nav-bar-menu-after`,{},void 0,!0)]),"nav-screen-content-before":d(()=>[p(e.$slots,`nav-screen-content-before`,{},void 0,!0)]),"nav-screen-content-after":d(()=>[p(e.$slots,`nav-screen-content-after`,{},void 0,!0)]),"nav-screen-menu-before":d(()=>[p(e.$slots,`nav-screen-menu-before`,{},void 0,!0)]),"nav-screen-menu-after":d(()=>[p(e.$slots,`nav-screen-menu-after`,{},void 0,!0)]),_:3}),k(tm,{open:E(n),"show-outline":E(s),onOpenMenu:E(r)},null,8,[`open`,`show-outline`,`onOpenMenu`]),k(lm,{open:E(n)},{"sidebar-nav-before":d(()=>[p(e.$slots,`sidebar-nav-before`,{},void 0,!0)]),"sidebar-nav-after":d(()=>[p(e.$slots,`sidebar-nav-after`,{},void 0,!0)]),_:3},8,[`open`]),p(e.$slots,`custom-content`,{},()=>[k(Bp,null,{"page-top":d(()=>[p(e.$slots,`page-top`,{},void 0,!0)]),"page-bottom":d(()=>[p(e.$slots,`page-bottom`,{},void 0,!0)]),"doc-title-before":d(()=>[p(e.$slots,`doc-title-before`,{},void 0,!0)]),"doc-title-after":d(()=>[p(e.$slots,`doc-title-after`,{},void 0,!0)]),"doc-meta-before":d(()=>[p(e.$slots,`doc-meta-before`,{},void 0,!0)]),"doc-meta-after":d(()=>[p(e.$slots,`doc-meta-after`,{},void 0,!0)]),"doc-meta-top":d(()=>[p(e.$slots,`doc-meta-top`,{},void 0,!0)]),"doc-meta-bottom":d(()=>[p(e.$slots,`doc-meta-bottom`,{},void 0,!0)]),"doc-content-before":d(()=>[p(e.$slots,`doc-content-before`,{},void 0,!0)]),"doc-footer-before":d(()=>[p(e.$slots,`doc-footer-before`,{},void 0,!0)]),"doc-before":d(()=>[p(e.$slots,`doc-before`,{},void 0,!0)]),"doc-after":d(()=>[p(e.$slots,`doc-after`,{},void 0,!0)]),"doc-top":d(()=>[p(e.$slots,`doc-top`,{},void 0,!0)]),"doc-bottom":d(()=>[p(e.$slots,`doc-bottom`,{},void 0,!0)]),"aside-top":d(()=>[p(e.$slots,`aside-top`,{},void 0,!0)]),"aside-bottom":d(()=>[p(e.$slots,`aside-bottom`,{},void 0,!0)]),"aside-outline-before":d(()=>[p(e.$slots,`aside-outline-before`,{},void 0,!0)]),"aside-outline-after":d(()=>[p(e.$slots,`aside-outline-after`,{},void 0,!0)]),"posts-top":d(()=>[p(e.$slots,`posts-top`,{},void 0,!0)]),"posts-bottom":d(()=>[p(e.$slots,`posts-bottom`,{},void 0,!0)]),"posts-archives-before":d(()=>[p(e.$slots,`posts-archives-before`,{},void 0,!0)]),"posts-archives-after":d(()=>[p(e.$slots,`posts-archives-after`,{},void 0,!0)]),"posts-tags-before":d(()=>[p(e.$slots,`posts-tags-before`,{},void 0,!0)]),"posts-tags-after":d(()=>[p(e.$slots,`posts-tags-after`,{},void 0,!0)]),"posts-tags-title-after":d(()=>[p(e.$slots,`posts-tags-title-after`,{},void 0,!0)]),"posts-tags-content-before":d(()=>[p(e.$slots,`posts-tags-content-before`,{},void 0,!0)]),"posts-categories-before":d(()=>[p(e.$slots,`posts-categories-before`,{},void 0,!0)]),"posts-categories-after":d(()=>[p(e.$slots,`posts-categories-after`,{},void 0,!0)]),"posts-categories-content-before":d(()=>[p(e.$slots,`posts-categories-content-before`,{},void 0,!0)]),"posts-post-list-before":d(()=>[p(e.$slots,`posts-post-list-before`,{},void 0,!0)]),"posts-post-list-after":d(()=>[p(e.$slots,`posts-post-list-after`,{},void 0,!0)]),"posts-post-list-pagination-after":d(()=>[p(e.$slots,`posts-post-list-pagination-after`,{},void 0,!0)]),"posts-aside-top":d(()=>[p(e.$slots,`posts-aside-top`,{},void 0,!0)]),"posts-aside-bottom":d(()=>[p(e.$slots,`posts-aside-bottom`,{},void 0,!0)]),"posts-extract-before":d(()=>[p(e.$slots,`posts-extract-before`,{},void 0,!0)]),"posts-extract-after":d(()=>[p(e.$slots,`posts-extract-after`,{},void 0,!0)]),_:3}
166)],!0),k(bs),k(um),k(Wp,null,{"footer-content":d(()=>[p(e.$slots,`footer-content`,{},void 0,!0)]),_:3}),p(e.$slots,`layout-bottom`,{},void 0,!0)],64)):(t(),j(Yp,{key:0}))],2)):(t(),j(l,{key:1,"vp-container":``,"vp-content":``})),k(ws,null,{"bulletin-content":d(()=>[p(e.$slots,`bulletin-content`,{},void 0,!0)]),_:3})],64)}}}),[[`__scopeId`,`data-v-38e7c908`]]),pm={"vp-not-found":``,class:`theme-plume vp-layout`},mm={id:`VPContent`,class:`vp-content`},hm={class:`vp-not-found`},gm={class:`code`},_m={class:`title`},vm={class:`quote`},ym={class:`action`},bm=[`href`,`aria-label`],xm=Y(C({__name:`NotFound`,setup(e){let n=Ze(),{theme:r}=H();return(e,i)=>(t(),D(P,null,[T(`div`,pm,[p(e.$slots,`layout-top`,{},void 0,!0),k(dm),k(gs,null,{"nav-bar-title-before":d(()=>[p(e.$slots,`nav-bar-title-before`,{},void 0,!0)]),"nav-bar-title-after":d(()=>[p(e.$slots,`nav-bar-title-after`,{},void 0,!0)]),"nav-bar-content-before":d(()=>[p(e.$slots,`nav-bar-content-before`,{},void 0,!0)]),"nav-bar-content-after":d(()=>[p(e.$slots,`nav-bar-content-after`,{},void 0,!0)]),"nav-bar-menu-before":d(()=>[p(e.$slots,`nav-bar-menu-before`,{},void 0,!0)]),"nav-bar-menu-after":d(()=>[p(e.$slots,`nav-bar-menu-after`,{},void 0,!0)]),"nav-screen-content-before":d(()=>[p(e.$slots,`nav-screen-content-before`,{},void 0,!0)]),"nav-screen-content-after":d(()=>[p(e.$slots,`nav-screen-content-after`,{},void 0,!0)]),"nav-screen-menu-before":d(()=>[p(e.$slots,`nav-screen-menu-before`,{},void 0,!0)]),"nav-screen-menu-after":d(()=>[p(e.$slots,`nav-screen-menu-after`,{},void 0,!0)]),_:3}),T(`div`,mm,[p(e.$slots,`not-found`,{},()=>[T(`div`,hm,[T(`p`,gm,a(E(r).notFound?.code??`404`),1),T(`h1`,_m,a(E(r).notFound?.title??`PAGE NOT FOUND`),1),i[0]||=T(`div`,{class:`divider`},null,-1),T(`blockquote`,vm,a(E(r).notFound?.quote??`But if you don't change your direction, and if you keep looking, you may end up where you are heading.`),1),T(`div`,ym,[T(`a`,{class:`link`,href:E(G)(E(n)),"aria-label":E(r).notFound?.linkLabel??`go to home`},a(E(r).notFound?.linkText??`Take me home`),9,bm)])])],!0)]),k(Wp,null,{"footer-content":d(()=>[p(e.$slots,`footer-content`,{},void 0,!0)]),_:3}),p(e.$slots,`layout-bottom`,{},void 0,!0)]),k(ws,null,{"bulletin-content":d(()=>[p(e.$slots,`bulletin-content`,{},void 0,!0)]),_:3})],64))}}),[[`__scopeId`,`data-v-601cb732`]]),Sm=e({default:()=>wm});function Cm(e){e.component(`Badge`,X),e.component(`VPBadge`,X),e.component(`VPCard`,pa),e.component(`Card`,pa),e.component(`VPCardGrid`,ma),e.component(`CardGrid`,ma),e.component(`VPLinkCard`,Na),e.component(`LinkCard`,Na),e.component(`VPImageCard`,Da),e.component(`ImageCard`,Da),e.component(`VPCardMasonry`,ha),e.component(`CardMasonry`,ha),e.component(`VPLink`,Q),e.component(`Icon`,Z),e.component(`VPIcon`,Z),e.component(`VPButton`,La),e.component(`HomeBox`,Pa),e.component(`VPHomeBox`,Pa),e.component(`DocComment`,e=>ve(`CommentService`)?B(h(`CommentService`),e):null),e.component(`DocGitContributors`,()=>ve(`GitContributors`)?B(h(`GitContributors`)):null),e.component(`DocGitChangelog`,()=>ve(`GitChangelog`)?B(h(`GitChangelog`)):null)}var wm=U({enhance({app:e,router:t}){Me(e),Le(e),ge(t),Cm(e)},setup(){Fe(),De(),Se(),Ue(),qe()},layouts:{Layout:fm,NotFound:xm}}),Tm=[`viewBox`,`width`,`height`],Em=[`d`],Dm=[`viewBox`,`width`,`height`],Om=[`d`],km=Y({__name:`IconText`,props:{name:{type:String,required:!0},size:{type:String,default:`1em`},text:{type:String,default:``}},setup(e){let n=e,r=F(()=>{let e={success:{viewBox:`64 64 896 896`,paths:[`M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z`,`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`]},failed:{viewBox:`64 64 896 896`,paths:[`M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z`,`M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`]},running:{viewBox:`64 64 896 896`,paths:[`M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z`]},canceled:{viewBox:`64 64 896 896`,paths:[`M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z`,`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`]}};return e[n.name]||e.question}),i=F(()=>{let e={success:`#52c41a`,failed:`#ff4d4f`,canceled:`#888888`,running:`#1890ff`};return e[n.name]||e.question}),o=F(()=>{let e={success:`#52c41a`,failed:`#ff4d4f`,canceled:`#888888`,running:`#1890ff`};return e[n.name]||e.question});return(n,c)=>e.name===`success`||e.name===`failed`||e.name===`canceled`?(t(),D(`div`,{key:0,class:`icontxt`,style:s({"--icon-color":i.value,"--text-color":o.value})}
166,[(t(),D(`svg`,{viewBox:r.value.viewBox,width:e.size,height:e.size,fill:`currentColor`,focusable:`false`,"aria-hidden":`true`},[(t(!0),D(P,null,f(r.value.paths,(e,n)=>(t(),D(`path`,{key:n,d:e},null,8,Em))),128))],8,Tm)),T(`span`,null,a(e.text),1)],4)):e.name===`running`?(t(),D(`div`,{key:1,class:`icontxt running-icon`,style:s({"--icon-color":i.value,"--text-color":o.value})},[(t(),D(`svg`,{viewBox:r.value.viewBox,width:e.size,height:e.size,fill:`currentColor`,focusable:`false`,"aria-hidden":`true`},[(t(!0),D(P,null,f(r.value.paths,(e,n)=>(t(),D(`path`,{key:n,d:e},null,8,Om))),128))],8,Dm)),T(`span`,null,a(e.text),1)],4)):L(``,!0)}},[[`__scopeId`,`data-v-fbad865d`]]),Am=dn.define({name:`cpp`,parser:mn.configure({props:[kt.add({IfStatement:_n({except:/^\s*({|else\b)/}),TryStatement:_n({except:/^\s*({|catch)\b/}),LabeledStatement:nn,CaseStatement:e=>e.baseIndent+e.unit,BlockComment:()=>null,CompoundStatement:Dt({closing:`}`}),Statement:_n({except:/^{/})}),Mt.add({"DeclarationList CompoundStatement EnumeratorList FieldDeclarationList InitializerList":qt,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{commentTokens:{line:`//`,block:{open:`/*`,close:`*/`}},indentOnInput:/^\s*(?:case |default:|\{|\})$/,closeBrackets:{stringPrefixes:[`L`,`u`,`U`,`u8`,`LR`,`UR`,`uR`,`u8R`,`R`]}}});function jm(){return new bt(Am)}var Mm=`#e5c07b`,Nm=`#e06c75`,Pm=`#56b6c2`,Fm=`#ffffff`,Im=`#abb2bf`,Lm=`#7d8799`,Rm=`#61afef`,zm=`#98c379`,Bm=`#d19a66`,Vm=`#c678dd`,Hm=`#21252b`,Um=`#2c313a`,Wm=`#282c34`,Gm=`#353a42`,Km=`#3E4451`,qm=`#528bff`,Jm=[_t.theme({"&":{color:Im,backgroundColor:Wm},".cm-content":{caretColor:qm},".cm-cursor, .cm-dropCursor":{borderLeftColor:qm},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:Km},".cm-panels":{backgroundColor:Hm,color:Im},".cm-panels.cm-panels-top":{borderBottom:`2px solid black`},".cm-panels.cm-panels-bottom":{borderTop:`2px solid black`},".cm-searchMatch":{backgroundColor:`#72a1ff59`,outline:`1px solid #457dff`},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:`#6199ff2f`},".cm-activeLine":{backgroundColor:`#6699ff0b`},".cm-selectionMatch":{backgroundColor:`#aafe661a`},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:`#bad0f847`},".cm-gutters":{backgroundColor:Wm,color:Lm,border:`none`},".cm-activeLineGutter":{backgroundColor:Um},".cm-foldPlaceholder":{backgroundColor:`transparent`,border:`none`,color:`#ddd`},".cm-tooltip":{border:`none`,backgroundColor:Gm},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:`transparent`,borderBottomColor:`transparent`},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Gm,borderBottomColor:Gm},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Um,color:Im}}},{dark:!0}),bn($t.define([{tag:K.keyword,color:Vm},{tag:[K.name,K.deleted,K.character,K.propertyName,K.macroName],color:Nm},{tag:[K.function(K.variableName),K.labelName],color:Rm},{tag:[K.color,K.constant(K.name),K.standard(K.name)],color:Bm},{tag:[K.definition(K.name),K.separator],color:Im},{tag:[K.typeName,K.className,K.number,K.changed,K.annotation,K.modifier,K.self,K.namespace],color:Mm},{tag:[K.operator,K.operatorKeyword,K.url,K.escape,K.regexp,K.link,K.special(K.string)],color:Pm},{tag:[K.meta,K.comment],color:Lm},{tag:K.strong,fontWeight:`bold`},{tag:K.emphasis,fontStyle:`italic`},{tag:K.strikethrough,textDecoration:`line-through`},{tag:K.link,color:Lm,textDecoration:`underline`},{tag:K.heading,fontWeight:`bold`,color:Nm},{tag:[K.atom,K.bool,K.special(K.variableName)],color:Bm},{tag:[K.processingInstruction,K.string,K.inserted],color:zm},{tag:K.invalid,color:Fm}]))],Ym={class:`code-editor-container`},Xm=[`onClick`],Zm={id:`float`},Qm={class:`output-container`},$m=`#include <cstdio> 167 168int main() { 169 printf("%s\\n", "Hello World!"); 170}`,eh=Y({__name:`CodeEditor`,props:{addr:{type:String,default:`localhost:8080`},examples:{type:Array,default:()=>[{name:`ç¤ºä¾ 1`,code:$m},{name:`ç¤ºä¾ 2`,code:$m}]}},setup(e){let n=e,r=I(``),s=I({name:`canceled`,text:`æªæ§è¡`}),c=I(!1),l=I(null),u=A(null),d=null,p=e=>{u.value&&u.value.dispatch({changes:{from:0,to:u.value.state.doc.length,insert:e}}),s.value={name:`canceled`,text:`æªæ§è¡`},r.value=``},m=async()=>
170{if(!u.value)return;let e=u.value.state.doc.toString();r.value=``,s.value={name:`running`,text:`æ£å¨ç¼è¯å¹¶æ§è¡ä»£ç `};try{let t=await fetch(n.addr,{method:`POST`,headers:{"Content-Type":`text/plain`},body:e});if(!t.ok)throw Error(`ç½ç»é误`);let i=await t.json();if(i.status!==`success`){s.value={name:`failed`,text:i.message},r.value=i.output;return}else s.value={name:`success`,text:i.message},r.value=i.output}catch(e){s.value={name:`failed`,text:`å¼å¸¸`},r.value=e.message}},h=()=>{let e=document.documentElement,t=e.classList.contains(`dark`)||e.getAttribute(`data-theme`)===`dark`;t!==c.value&&u.value&&(c.value=t,g()),c.value=t},g=()=>{if(u.value&&u.value.destroy(),!l.value)return;let e=[cn(),pe(),Tn(),Wt(),dt.of(` `),Xe.of([{key:`Tab`,run:e=>e.state.selection.ranges.some(e=>!e.empty)?mt(e):(e.dispatch(e.state.update(e.state.replaceSelection(` `))),!0)},{key:`Shift-Tab`,run:Ft},...Xt]),jm()];c.value?e.push(Jm):e.push(bn(St,{fallback:!0}));let t=Cn.create({doc:u.value?.state.doc.toString()??(n.examples.length>0?n.examples[0].code:``),extensions:e});u.value=new _t({state:t,parent:l.value})};return i(()=>{h(),g(),_(()=>{let e=document.documentElement;d=new MutationObserver(h),d.observe(e,{attributes:!0,attributeFilter:[`class`,`data-theme`]})})}),o(()=>{d&&d.disconnect(),u.value&&u.value.destroy()}),(e,i)=>(t(),D(P,null,[T(`div`,Ym,[T(`div`,{ref_key:`editorRef`,ref:l,class:`code-editor`},null,512),T(`div`,{class:z([`editor-buttons`,{"theme-dark":c.value}])},[(t(!0),D(P,null,f(n.examples,(e,n)=>(t(),D(`button`,{key:n,onClick:t=>p(e.code),class:`example-button`},a(e.name),9,Xm))),128)),T(`button`,{onClick:m,class:`run-button`},`æ§è¡`)],2)]),T(`div`,Zm,[T(`div`,Qm,[k(km,{class:`output-icon`,name:s.value.name,text:s.value.text},null,8,[`name`,`text`]),N(T(`textarea`,{class:z([`output-area`,{"theme-dark":c.value,"theme-light":!c.value}]),"onUpdate:modelValue":i[0]||=e=>r.value=e,readonly:``},` `,2),[[Ne,r.value]])])])],64))}},[[`__scopeId`,`data-v-a54f744a`]]),th=e({default:()=>nh}),nh=U({enhance({app:e}){e.component(`CodeEditor`,eh)}}),rh=[Nn,Ln,Bn,vr,Tr,Dr,Lr,qr,pi,_i,Sm,th].map(e=>e.default).filter(Boolean),ih=A(JSON.parse(`{"base":"/","lang":"zh-CN","title":"RMVL ç¨æ·æå","description":"叮婿¨æ´å¥½å°ä½¿ç¨æºå¨äººè§è§ä¸æ§å¶åº","head":[["link",{"rel":"icon","href":"/images/favicon.png"}]],"locales":{"/":{"lang":"zh-CN","title":"RMVL ç¨æ·æå","description":"叮婿¨æ´å¥½å°ä½¿ç¨æºå¨äººè§è§ä¸æ§å¶åº"}}}`)),ah=_e,oh=()=>{let e=be({history:ah(We(`/`)),routes:[{name:`vuepress-route`,path:`/:catchAll(.*)`,components:{}}],scrollBehavior:(e,t,n)=>n||(e.hash?{el:e.hash}:{top:0})});return e.beforeResolve(async(e,t)=>{if(e.path!==t.path||t===Ve){let t=Ct(e.fullPath);if(t.path!==e.fullPath)return t.path;let n=await t.loader();e.meta={...t.meta,_pageChunk:n}}else e.path===t.path&&(e.meta=t.meta)}),e},sh=e=>{e.component(`ClientOnly`,It),e.component(`Content`,ht),e.component(`RouteLink`,en)},ch=(e,t,n)=>{let r=F(()=>t.currentRoute.value.path),i=u((e,n)=>({get(){return e(),t.currentRoute.value.meta._pageChunk},set(e){t.currentRoute.value.meta._pageChunk=e,n()}})),a=F(()=>rn.resolveLayouts(n)),o=F(()=>rn.resolveRouteLocale(ih.value.locales,r.value)),s=F(()=>rn.resolveSiteLocaleData(ih.value,o.value)),c=F(()=>i.value.default),l=F(()=>i.value._pageData),d=F(()=>l.value.frontmatter),f=F(()=>rn.resolvePageHeadTitle(l.value,s.value)),p=F(()=>rn.resolvePageHead(f.value,d.value,s.value)),m=F(()=>rn.resolvePageLang(l.value,s.value)),h={layouts:a,pageData:l,pageComponent:c,pageFrontmatter:d,pageHead:p,pageHeadTitle:f,pageLang:m,pageLayout:F(()=>rn.resolvePageLayout(l.value,a.value)),redirects:vn,routeLocale:o,routePath:r,routes:Jt,siteData:ih,siteLocaleData:s,frontmatter:d,head:p,headTitle:f,lang:m,page:l,site:ih,siteLocale:s};return e.provide(fn,h),Object.defineProperties(e.config.globalProperties,{$pageFrontmatter:{get:()=>d.value},$pageHead:{get:()=>p.value},$pageHeadTitle:{get:()=>f.value},$pageLang:{get:()=>m.value},$pageData:{get:()=>l.value},$routeLocale:{get:()=>o.value},$withBase:{get:()=>G},$frontmatter:{get:()=>d.value},$head:{get:()=>p.value},$headTitle:{get:()=>f.value},$lang:{get:()=>m.value},$page:{get:()=>l.value},$site:{get:()=>ih.value},$siteLocale:{get:()=>s.value}}),h},lh=([e,t,n=``])=>{let r=`head > ${e}${Object.entries(t).map(([e,t])=>Re(t)?`[${e}=${JSON.stringify(t)}]`:t?`[${e}
170]`:``).join(``)}`;return Array.from(document.querySelectorAll(r)).find(e=>e.innerText===n)??null},uh=([e,t,n])=>{if(!Re(e))return null;let r=document.createElement(e);return Ie(t)&&Object.entries(t).forEach(([e,t])=>{Re(t)?r.setAttribute(e,t):t&&r.setAttribute(e,``)}),Re(n)&&r.appendChild(document.createTextNode(n)),r},dh=()=>{let e=On(),t=vt(),n=[],r=()=>{e.value.forEach(e=>{let t=lh(e);t&&n.push(t)})},a=()=>{let t=[];return e.value.forEach(e=>{let n=uh(e);n&&t.push(n)}),t},o=()=>{document.documentElement.lang=t.value;let e=a();n.forEach((t,r)=>{let i=e.findIndex(e=>t.isEqualNode(e));i===-1?(t.remove(),delete n[r]):e.splice(i,1)}),e.forEach(e=>document.head.appendChild(e)),n=[...n.filter(e=>!!e),...e]};ee(Nt,o),i(()=>{r(),y(e,o,{immediate:!1})})},fh=Oe,ph=async()=>{let e=fh({name:`Vuepress`,setup(){dh();for(let e of rh)e.setup?.();let e=rh.flatMap(({rootComponents:e=[]})=>e.map(e=>B(e))),t=En();return()=>[B(t.value),e]}}),t=oh();sh(e),ch(e,t,rh);for(let n of rh)await n.enhance?.({app:e,router:t,siteData:ih});return e.use(t),{app:e,router:t}};ph().then(({app:e,router:t})=>{t.isReady().then(()=>{e.mount(`#app`)})});export{ph as createVueApp,ni as n,ii as r,Y as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.