mirror of
https://github.com/JessSystemV/zProtect.git
synced 2025-01-08 07:55:38 +00:00
11 lines
131 KiB
JavaScript
11 lines
131 KiB
JavaScript
|
const cr={},_i="modulepreload",Eo={},wi="/",ve=function(t,n){return!n||n.length===0?t():Promise.all(n.map(r=>{if(r=`${wi}${r}`,r in Eo)return;Eo[r]=!0;const o=r.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${s}`))return;const l=document.createElement("link");if(l.rel=o?"stylesheet":_i,o||(l.as="script",l.crossOrigin=""),l.href=r,document.head.appendChild(l),o)return new Promise((i,a)=>{l.addEventListener("load",i),l.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())},Ei={"v-06f9211a":()=>ve(()=>import("./commandline.html.0cdd07e7.js"),[]).then(({data:e})=>e),"v-31071e3e":()=>ve(()=>import("./config.html.24d9df8b.js"),[]).then(({data:e})=>e),"v-8daa1a0e":()=>ve(()=>import("./index.html.9efec093.js"),[]).then(({data:e})=>e),"v-08eb506c":()=>ve(()=>import("./privacy.html.b7d51f10.js"),[]).then(({data:e})=>e),"v-e0bdb92a":()=>ve(()=>import("./terms.html.c69bbe45.js"),[]).then(({data:e})=>e),"v-17d8839a":()=>ve(()=>import("./0.1.html.7d525fed.js"),[]).then(({data:e})=>e),"v-198d5c39":()=>ve(()=>import("./0.2.html.43bc391f.js"),[]).then(({data:e})=>e),"v-d0e1d8bc":()=>ve(()=>import("./commandline.html.15f2e1ec.js"),[]).then(({data:e})=>e),"v-296358af":()=>ve(()=>import("./config.html.533c1ab4.js"),[]).then(({data:e})=>e),"v-2d0ad528":()=>ve(()=>import("./index.html.3175b1e4.js"),[]).then(({data:e})=>e),"v-3706649a":()=>ve(()=>import("./404.html.7d858b3d.js"),[]).then(({data:e})=>e)};function Kr(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const Ci="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",xi=Kr(Ci);function Is(e){return!!e||e===""}function Yn(e){if(G(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=me(r)?Ri(r):Yn(r);if(o)for(const s in o)t[s]=o[s]}return t}else{if(me(e))return e;if(we(e))return e}}const Si=/;(?![^(]*\))/g,Pi=/:(.+)/;function Ri(e){const t={};return e.split(Si).forEach(n=>{if(n){const r=n.split(Pi);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function _n(e){let t="";if(me(e))t=e;else if(G(e))for(let n=0;n<e.length;n++){const r=_n(e[n]);r&&(t+=r+" ")}else if(we(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Ti=e=>me(e)?e:e==null?"":G(e)||we(e)&&(e.toString===Ds||!X(e.toString))?JSON.stringify(e,ks,2):String(e),ks=(e,t)=>t&&t.__v_isRef?ks(e,t.value):jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:Ms(t)?{[`Set(${t.size})`]:[...t.values()]}:we(t)&&!G(t)&&!Fs(t)?String(t):t,pe={},Bt=[],Ye=()=>{},Oi=()=>!1,Li=/^on[^a-z]/,wn=e=>Li.test(e),Wr=e=>e.startsWith("onUpdate:"),Se=Object.assign,qr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ai=Object.prototype.hasOwnProperty,re=(e,t)=>Ai.call(e,t),G=Array.isArray,jt=e=>Gn(e)==="[object Map]",Ms=e=>Gn(e)==="[object Set]",X=e=>typeof e=="function",me=e=>typeof e=="string",Yr=e=>typeof e=="symbol",we=e=>e!==null&&typeof e=="object",Ns=e=>we(e)&&X(e.then)&&X(e.catch),Ds=Object.prototype.toString,Gn=e=>Ds.call(e),Ii=e=>Gn(e).slice(8,-1),Fs=e=>Gn(e)==="[object Object]",Gr=e=>me(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,sn=Kr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Jn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ki=/-(\w)/g,Xe=Jn(e=>e.replace(ki,(t,n)=>n?n.toUpperCase():"")),Mi=/\B([A-Z])/g,Mt=Jn(e=>e.replace(Mi,"-$1").toLowerCase()),Qn=Jn(e=>e.charAt(0).toUpperCase()+e.slice(1)),ur=Jn(e=>e?`on${Qn(e)}`:""),hn=(e,t)=>!Object.is(e,t),fr=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Fn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Hs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Co;const Ni=()=>Co||(Co=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Ne;class Di{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Ne&&(this.parent=Ne,this.index=(Ne.sc
|
||
|
* vue-router v4.1.4
|
||
|
* (c) 2022 Eduardo San Martin Morote
|
||
|
* @license MIT
|
||
|
*/const $t=typeof window!="undefined";function mu(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ce=Object.assign;function yr(e,t){const n={};for(const r in t){const o=t[r];n[r]=Je(o)?o.map(e):e(o)}return n}const fn=()=>{},Je=Array.isArray,gu=/\/$/,vu=e=>e.replace(gu,"");function br(e,t,n="/"){let r,o={},s="",l="";const i=t.indexOf("#");let a=t.indexOf("?");return i<a&&i>=0&&(a=-1),a>-1&&(r=t.slice(0,a),s=t.slice(a+1,i>-1?i:t.length),o=e(s)),i>-1&&(r=r||t.slice(0,i),l=t.slice(i,t.length)),r=wu(r!=null?r:t,n),{fullPath:r+(s&&"?")+s+l,path:r,query:o,hash:l}}function yu(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function rs(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function bu(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&qt(t.matched[r],n.matched[o])&&Gl(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function qt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Gl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!_u(e[n],t[n]))return!1;return!0}function _u(e,t){return Je(e)?os(e,t):Je(t)?os(t,e):e===t}function os(e,t){return Je(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function wu(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let o=n.length-1,s,l;for(s=0;s<r.length;s++)if(l=r[s],l!==".")if(l==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var bn;(function(e){e.pop="pop",e.push="push"})(bn||(bn={}));var dn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(dn||(dn={}));function Eu(e){if(!e)if($t){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),vu(e)}const Cu=/^[^#]+#/;function xu(e,t){return e.replace(Cu,"#")+t}function Su(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const lr=()=>({left:window.pageXOffset,top:window.pageYOffset});function Pu(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Su(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function ss(e,t){return(history.state?history.state.position-t:-1)+e}const $r=new Map;function Ru(e,t){$r.set(e,t)}function Tu(e){const t=$r.get(e);return $r.delete(e),t}let Ou=()=>location.protocol+"//"+location.host;function Jl(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let i=o.includes(e.slice(s))?e.slice(s).length:1,a=o.slice(i);return a[0]!=="/"&&(a="/"+a),rs(a,"")}return rs(n,e)+r+o}function Lu(e,t,n,r){let o=[],s=[],l=null;const i=({state:h})=>{const g=Jl(e,location),_=n.value,L=t.value;let R=0;if(h){if(n.value=g,t.value=h,l&&l===_){l=null;return}R=L?h.position-L.position:0}else r(g);o.forEach(m=>{m(n.value,_,{delta:R,type:bn.pop,direction:R?R>0?dn.forward:dn.back:dn.unknown})})};function a(){l=n.value}function c(h){o.push(h);const g=()=>{const _=o.indexOf(h);_>-1&&o.splice(_,1)};return s.push(g),g}function u(){const{history:h}=window;!h.state||h.replaceState(ce({},h.state,{scroll:lr()}),"")}function d(){for(const h of s)h();s=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",u),{pauseListeners:a,listen:c,destroy:d}}function ls(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?lr():null}}function Au(e){const{history:t,location:n}=window,r={value:Jl(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(a,c,u){cons
|
||
|
Expects a CSS selector, a Node element, a NodeList or an array.
|
||
|
See: https://github.com/francoischalifour/medium-zoom`)}},If=function(t){var n=document.createElement("div");return n.classList.add("medium-zoom-overlay"),n.style.background=t,n},kf=function(t){var n=t.getBoundingClientRect(),r=n.top,o=n.left,s=n.width,l=n.height,i=t.cloneNode(),a=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,c=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return i.removeAttribute("id"),i.style.position="absolute",i.style.top=r+a+"px",i.style.left=o+c+"px",i.style.width=s+"px",i.style.height=l+"px",i.style.transform="",i},Ft=function(t,n){var r=Rt({bubbles:!1,cancelable:!1,detail:void 0},n);if(typeof window.CustomEvent=="function")return new CustomEvent(t,r);var o=document.createEvent("CustomEvent");return o.initCustomEvent(t,r.bubbles,r.cancelable,r.detail),o},Mf=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=window.Promise||function(w){function D(){}w(D,D)},o=function(w){var D=w.target;if(D===Y){_();return}S.indexOf(D)!==-1&&L({target:D})},s=function(){if(!(B||!v.original)){var w=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(z-w)>M.scrollOffset&&setTimeout(_,150)}},l=function(w){var D=w.key||w.keyCode;(D==="Escape"||D==="Esc"||D===27)&&_()},i=function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=w;if(w.background&&(Y.style.background=w.background),w.container&&w.container instanceof Object&&(D.container=Rt({},M.container,w.container)),w.template){var A=Dn(w.template)?w.template:document.querySelector(w.template);D.template=A}return M=Rt({},M,D),S.forEach(function(ne){ne.dispatchEvent(Ft("medium-zoom:update",{detail:{zoom:$}}))}),$},a=function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e(Rt({},M,w))},c=function(){for(var w=arguments.length,D=Array(w),A=0;A<w;A++)D[A]=arguments[A];var ne=D.reduce(function(H,Z){return[].concat(H,Es(Z))},[]);return ne.filter(function(H){return S.indexOf(H)===-1}).forEach(function(H){S.push(H),H.classList.add("medium-zoom-image")}),N.forEach(function(H){var Z=H.type,te=H.listener,_e=H.options;ne.forEach(function(Re){Re.addEventListener(Z,te,_e)})}),$},u=function(){for(var w=arguments.length,D=Array(w),A=0;A<w;A++)D[A]=arguments[A];v.zoomed&&_();var ne=D.length>0?D.reduce(function(H,Z){return[].concat(H,Es(Z))},[]):S;return ne.forEach(function(H){H.classList.remove("medium-zoom-image"),H.dispatchEvent(Ft("medium-zoom:detach",{detail:{zoom:$}}))}),S=S.filter(function(H){return ne.indexOf(H)===-1}),$},d=function(w,D){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return S.forEach(function(ne){ne.addEventListener("medium-zoom:"+w,D,A)}),N.push({type:"medium-zoom:"+w,listener:D,options:A}),$},h=function(w,D){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return S.forEach(function(ne){ne.removeEventListener("medium-zoom:"+w,D,A)}),N=N.filter(function(ne){return!(ne.type==="medium-zoom:"+w&&ne.listener.toString()===D.toString())}),$},g=function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=w.target,A=function(){var H={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},Z=void 0,te=void 0;if(M.container)if(M.container instanceof Object)H=Rt({},H,M.container),Z=H.width-H.left-H.right-M.margin*2,te=H.height-H.top-H.bottom-M.margin*2;else{var _e=Dn(M.container)?M.container:document.querySelector(M.container),Re=_e.getBoundingClientRect(),Ie=Re.width,$e=Re.height,Oe=Re.left,wt=Re.top;H=Rt({},H,{width:Ie,height:$e,left:Oe,top:wt})}Z=Z||H.width-M.margin*2,te=te||H.height-M.margin*2;var E=v.zoomedHd||v.original,j=ws(E)?Z:E.naturalWidth||Z,I=ws(E)?te:E.naturalHeight||te,U=E.getBoundingClientRect(),le=U.top,fe=U.left,ee=U.width,J=U.height,f=Math.min(j,Z)/ee,p=Math.min(I,te)/J,y=Math.min(f,p),x=(-fe+(Z-ee)/2+M.margin+H.left)/y,C=(-le+(te-J)/2+M.margin+H.top)/y,T="scale("+y+") translate3d("+x+"px, "+C+"px, 0)";v.zoomed.style.transform=T,v.zoomedHd&&(v.zoomedHd.style.
|
||
|
* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
||
|
* @license MIT
|
||
|
*/const se={settings:{minimum:.08,easing:"ease",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,barSelector:'[role="bar"]',parent:"body",template:'<div class="bar" role="bar"></div>'},status:null,set:e=>{const t=se.isStarted();e=wr(e,se.settings.minimum,1),se.status=e===1?null:e;const n=se.render(!t),r=n.querySelector(se.settings.barSelector),o=se.settings.speed,s=se.settings.easing;return n.offsetWidth,Uf(l=>{Mn(r,{transform:"translate3d("+Cs(e)+"%,0,0)",transition:"all "+o+"ms "+s}),e===1?(Mn(n,{transition:"none",opacity:"1"}),n.offsetWidth,setTimeout(function(){Mn(n,{transition:"all "+o+"ms linear",opacity:"0"}),setTimeout(function(){se.remove(),l()},o)},o)):setTimeout(()=>l(),o)}),se},isStarted:()=>typeof se.status=="number",start:()=>{se.status||se.set(0);const e=()=>{setTimeout(()=>{!se.status||(se.trickle(),e())},se.settings.trickleSpeed)};return se.settings.trickle&&e(),se},done:e=>!e&&!se.status?se:se.inc(.3+.5*Math.random()).set(1),inc:e=>{let t=se.status;return t?(typeof e!="number"&&(e=(1-t)*wr(Math.random()*t,.1,.95)),t=wr(t+e,0,.994),se.set(t)):se.start()},trickle:()=>se.inc(Math.random()*se.settings.trickleRate),render:e=>{if(se.isRendered())return document.getElementById("nprogress");xs(document.documentElement,"nprogress-busy");const t=document.createElement("div");t.id="nprogress",t.innerHTML=se.settings.template;const n=t.querySelector(se.settings.barSelector),r=e?"-100":Cs(se.status||0),o=document.querySelector(se.settings.parent);return Mn(n,{transition:"all 0 linear",transform:"translate3d("+r+"%,0,0)"}),o!==document.body&&xs(o,"nprogress-custom-parent"),o==null||o.appendChild(t),t},remove:()=>{Ss(document.documentElement,"nprogress-busy"),Ss(document.querySelector(se.settings.parent),"nprogress-custom-parent");const e=document.getElementById("nprogress");e&&Vf(e)},isRendered:()=>!!document.getElementById("nprogress")},wr=(e,t,n)=>e<t?t:e>n?n:e,Cs=e=>(-1+e)*100,Uf=function(){const e=[];function t(){const n=e.shift();n&&n(t)}return function(n){e.push(n),e.length===1&&t()}}(),Mn=function(){const e=["Webkit","O","Moz","ms"],t={};function n(l){return l.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(i,a){return a.toUpperCase()})}function r(l){const i=document.body.style;if(l in i)return l;let a=e.length;const c=l.charAt(0).toUpperCase()+l.slice(1);let u;for(;a--;)if(u=e[a]+c,u in i)return u;return l}function o(l){return l=n(l),t[l]||(t[l]=r(l))}function s(l,i,a){i=o(i),l.style[i]=a}return function(l,i){for(const a in i){const c=i[a];c!==void 0&&Object.prototype.hasOwnProperty.call(i,a)&&s(l,a,c)}}}(),li=(e,t)=>(typeof e=="string"?e:vo(e)).indexOf(" "+t+" ")>=0,xs=(e,t)=>{const n=vo(e),r=n+t;li(n,t)||(e.className=r.substring(1))},Ss=(e,t)=>{const n=vo(e);if(!li(e,t))return;const r=n.replace(" "+t+" "," ");e.className=r.substring(1,r.length-1)},vo=e=>(" "+(e.className||"")+" ").replace(/\s+/gi," "),Vf=e=>{e&&e.parentNode&&e.parentNode.removeChild(e)};const Kf=()=>{it(()=>{const e=ar(),t=new Set;t.add(e.currentRoute.value.path),e.beforeEach(n=>{t.has(n.path)||se.start()}),e.afterEach(n=>{t.add(n.path),se.done()})})};var Wf=at({setup(){Kf()}});const qf=JSON.parse(`{"contributors":false,"docsRepo":"https://github.com/zProtect-Development/Documentation","docsBranch":"main","docsDir":"docs","editLink":true,"editLinkPattern":":repo/edit/:branch/:path","lastUpdated":true,"logo":"/logo.png","locales":{"/":{"sidebar":{"/":[{"text":"Documentation","children":["/index.md","/config.md","/commandline.md"]},{"text":"Changelog","children":["/changelog/0.2.md","/changelog/0.1.md"]},{"text":"Legal","children":["/privacy.md","/terms.md"]}]},"navbar":[{"text":"Return to zProtect.dev","link":"https://zprotect.dev","target":"_self"}],"selectLanguageName":"English"}},"colorMode":"auto","colorModeSwitch":true,"navbar":[],"repo":null,"selectLanguageText":"Languages","selectLanguageAriaLabel":"Select language","sidebar":"auto","sidebarDepth":2,"editLinkText":"Edit this page","lastUpdatedText":"Last Updated","contributorsText":"Contributors","notFound":["There's nothing here.","How did we get here?","That's a Four-O
|