Files
static-php-cli/assets/chunks/framework.DrNIf5Lg.js

3 lines
103 KiB
JavaScript
Raw Normal View History

function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var t={},n=()=>{},r=Object.assign,i=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},a=Object.prototype.hasOwnProperty,o=(e,t)=>a.call(e,t),s=Array.isArray,c=e=>h(e)===`[object Map]`,l=e=>h(e)===`[object Set]`,u=e=>typeof e==`function`,d=e=>typeof e==`string`,f=e=>typeof e==`symbol`,p=e=>typeof e==`object`&&!!e,m=Object.prototype.toString,h=e=>m.call(e),g=e=>h(e).slice(8,-1),_=e=>h(e)===`[object Object]`,v=e=>d(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,y=(e,t)=>!Object.is(e,t),b=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},x,S=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=x,!e&&x&&(this.index=(x.scopes||=[]).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let t=x;try{return x=this,e()}finally{x=t}}}on(){++this._on===1&&(this.prevScope=x,x=this)}off(){this._on>0&&--this._on===0&&(x=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function C(){return x}function w(e,t=!1){x&&x.cleanups.push(e)}var T,E=new WeakSet,D=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,x&&x.active&&x.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,E.has(this)&&(E.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||O(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,he(this),ae(this);let e=T,t=de;T=this,de=!0;try{return this.fn()}finally{oe(this),T=e,de=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)le(e);this.deps=this.depsTail=void 0,he(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?E.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){se(this)&&this.run()}get dirty(){return se(this)}},ee=0,te,ne;function O(e,t=!1){if(e.flags|=8,t){e.next=ne,ne=e;return}e.next=te,te=e}function re(){ee++}function ie(){if(--ee>0)return;if(ne){let e=ne;for(ne=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;te;){let t=te;for(te=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function ae(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function oe(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),le(r),ue(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function se(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ce(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ce(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ge)||(e.globalVersion=ge,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!se(e))))return;e.flags|=2;let t=e.dep,n=T,r=de;T=e,de=!0;try{ae(e);let n=e.fn(e._value);(t.version===0||y(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{T=n,de=r,oe(e),e.flags&=-3}}function le(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(
`&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&(n=n.slice(1)),e.textContent!==n&&(Cr(e,0)||hr(),e.textContent=t.children)}if(l){if(h||!o||u&48){let t=e.tagName.includes(`-`);for(let i in l)(h&&(i.endsWith(`value`)||i===`indeterminate`)||Ht(i)&&!$t(i)||i[0]===`.`||t)&&r(e,i,null,l[i],void 0,n)}else if(l.onClick)r(e,`onClick`,null,l.onClick,void 0,n);else if(u&4&&ft(l.style))for(let e in l.style)l.style[e]}let g;(g=l&&l.onVnodeBeforeMount)&&Ka(g,n,t),f&&Kn(t,null,n,`beforeMount`),((g=l&&l.onVnodeMounted)||f||c)&&ba(()=>{g&&Ka(g,n,t),c&&m.enter(e),f&&Kn(t,null,n,`mounted`)},i)}return e.nextSibling},p=(e,t,r,o,s,l,u)=>{u||=!!t.dynamicChildren;let f=t.children,p=f.length;for(let t=0;t<p;t++){let m=u?f[t]:f[t]=Ha(f[t]),h=m.type===xa;e?(h&&!u&&t+1<p&&Ha(f[t+1]).type===xa&&(c(i(e.data.slice(m.children.length)),r,a(e)),e.data=m.children),e=d(e,m,o,s,l,u)):h&&!m.children?c(m.el=i(``),r):(Cr(r,1)||hr(),n(null,m,r,null,o,s,vr(r),l))}return e},m=(e,t,n,r,i,s)=>{let{slotScopeIds:u}=t;u&&(i=i?i.concat(u):u);let d=o(e),f=p(a(e),t,d,n,r,i,s);return f&&yr(f)&&f.data===`]`?a(t.anchor=f):(hr(),c(t.anchor=l(`]`),d,f),f)},h=(e,t,r,i,c,l)=>{if(Cr(e.parentElement,1)||hr(),t.el=null,l){let t=g(e);for(;;){let n=a(e);if(n&&n!==t)s(n);else break}}let u=a(e),d=o(e);return s(e),n(null,t,d,u,r,i,vr(d),c),r&&(r.vnode.el=t.el,va(r,t.el)),u},g=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&yr(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return a(e);r--}return e},_=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},v=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[u,d]}var xr=`data-allow-mismatch`,Sr={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function Cr(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(xr);)e=e.parentElement;let n=e&&e.getAttribute(xr);if(n==null)return!1;if(n===``)return!0;{let e=n.split(`,`);return t===0&&e.includes(`children`)?!0:e.includes(Sr[t])}}fn().requestIdleCallback,fn().cancelIdleCallback;function wr(e,t){if(yr(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(yr(r))if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++;r=r.nextSibling}}else t(e)}var Tr=e=>!!e.type.__asyncLoader;function Er(e){z(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return ur({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=!1;(t.bu||=[]).push(()=>r=!0);let i=()=>{r||n()},o=a?()=>{let n=a(i,t=>wr(e,t));n&&(t.bum||=[]).push(n)}:i;u?o():p().then(()=>!t.isUnmounted&&o())},get __asyncResolved(){return u},setup(){let e=Z;if(dr(e),u)return()=>Dr(u,e);let t=t=>{l=null,Tn(t,e,13,!r)};if(s&&e.suspense||no)return p().then(t=>()=>Dr(t,e)).catch(e=>(t(e),()=>r?X(r,{error:e}):null));let a=vt(!1),c=vt(),d=vt(!!i);return i&&setTimeout(()=>{d.value=!1},i),o!=null&&setTimeout(()=>{if(!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o),p().then(()=>{a.value=!0,e.parent&&Or(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),c.value=e}),()=>{if(a.value&&u)return Dr(u,e);if(c.value&&r)return X(r,{error:c.value});if(n&&!d.value)return X(n)}}})}function Dr(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=X(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var Or=e=>e.type.__isKeepAlive;function kr(e,t){jr(e,`a`,t)}function Ar(e,t){jr(e,`da`,t)}function jr(e,t,n=Z){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Nr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Or(e.parent.vnode)&&Mr(r,t,n,e),e=e.parent}}function Mr(e,t,n,r){let i=Nr(t,e,r,!0);Br(()=>{Wt(r[t],i)},n)}function Nr(e,t,n=Z,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{pe();let i=$a(n),a=wn(t,n,e,r);retur
`);let a=i.textContent||``;Yl(/language-(\w+)/.exec(t.className)?.[1]||``)&&(a=a.replace(/^ *(\$|>) /gm,``).trim()),Tu(a).then(()=>{n.classList.add(`copied`),clearTimeout(e.get(n));let t=setTimeout(()=>{n.classList.remove(`copied`),n.blur(),e.delete(n)},2e3);e.set(n,t)})}})}}async function Tu(e){try{await navigator.clipboard.writeText(e)}catch{let t=document.createElement(`textarea`),n=document.activeElement;t.value=e,t.setAttribute(`readonly`,``),t.style.contain=`strict`,t.style.position=`absolute`,t.style.left=`-9999px`,t.style.fontSize=`12pt`;let r=document.getSelection(),i=r?r.rangeCount>0&&r.getRangeAt(0):null;document.body.appendChild(t),t.select(),t.selectionStart=0,t.selectionEnd=e.length,document.execCommand(`copy`),document.body.removeChild(t),i&&(r.removeAllRanges(),r.addRange(i)),n&&n.focus()}}function Eu(e,t){let n=!0,r=[],i=e=>{if(n){n=!1,e.forEach(e=>{let t=Du(e);for(let e of document.head.children)if(e.isEqualNode(t)){r.push(e);return}});return}let t=e.map(Du);r.forEach((e,n)=>{let i=t.findIndex(t=>t?.isEqualNode(e??null));i===-1?(e?.remove(),delete r[n]):delete t[i]}),t.forEach(e=>e&&document.head.appendChild(e)),r=[...r,...t].filter(Boolean)};ia(()=>{let n=e.data,r=t.value,a=n&&n.description,o=n&&n.frontmatter.head||[],s=Ll(r,n);s!==document.title&&(document.title=s);let c=a||r.description,l=document.querySelector(`meta[name=description]`);l?l.getAttribute(`content`)!==c&&l.setAttribute(`content`,c):Du([`meta`,{name:`description`,content:c}]),i(zl(r.head,ku(o)))})}function Du([e,t,n]){let r=document.createElement(e);for(let e in t)r.setAttribute(e,t[e]);return n&&(r.innerHTML=n),e===`script`&&t.async==null&&(r.async=!1),r}function Ou(e){return e[0]===`meta`&&e[1]&&e[1].name===`description`}function ku(e){return e.filter(e=>!Ou(e))}var Au=new Set,ju=()=>document.createElement(`link`),Mu=e=>{let t=ju();t.rel=`prefetch`,t.href=e,document.head.appendChild(t)},Nu=e=>{let t=new XMLHttpRequest;t.open(`GET`,e,t.withCredentials=!0),t.send()},Pu,Fu=$&&(Pu=ju())&&Pu.relList&&Pu.relList.supports&&Pu.relList.supports(`prefetch`)?Mu:Nu;function Iu(){if(!$||!window.IntersectionObserver)return;let e;if((e=navigator.connection)&&(e.saveData||/2g/.test(e.effectiveType)))return;let t=window.requestIdleCallback||setTimeout,n=null,r=()=>{n&&n.disconnect(),n=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){let t=e.target;n.unobserve(t);let{pathname:r}=t;if(!Au.has(r)){Au.add(r);let e=nu(r);e&&Fu(e)}}})}),t(()=>{document.querySelectorAll(`#app a`).forEach(e=>{let{hostname:t,pathname:r}=new URL(e.href instanceof SVGAnimatedString?e.href.animVal:e.href,e.baseURI),i=r.match(/\.\w+$/);i&&i[0]!==`.html`||e.target!==`_blank`&&t===location.hostname&&(r===location.pathname?Au.add(r):n.observe(e))})})};Ir(r);let i=uu();K(()=>i.path,r),Br(()=>{n&&n.disconnect()})}export{Ga as $,wl as A,q as B,ql as C,vt as Ct,vl as D,tl as E,xt as Et,ec as F,ka as G,Fa as H,tc as I,X as J,Ba as K,Zs as L,is as M,mc as N,Sl as O,Qs as P,Di as Q,lc as R,Pl as S,lt as St,Qc as T,N as Tt,Aa as U,Q as V,Va as W,ur as X,Er as Y,ho as Z,Zl as _,Wn as _t,bu as a,wa as at,$ as b,pn as bt,au as c,Qr as ct,lu as d,ei as dt,Nn as et,iu as f,ai as ft,Ql as g,aa as gt,Xl as h,ia as ht,xu as i,Rr as it,_c as j,Cl as k,cu as l,Kr as lt,tu as m,K as mt,Eu as n,Ir as nt,yu as o,Ei as ot,nu as p,fr as pt,za as q,wu as r,Br as rt,hu as s,Zr as st,Iu as t,zr as tt,uu as u,Jr as ut,$l as v,Gn as vt,Wl as w,ut as wt,Ml as x,bn as xt,Tl as y,vn as yt,sc as z};