All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 9s
2 lines
13 KiB
JavaScript
2 lines
13 KiB
JavaScript
(()=>{var I=Object.create;var{getPrototypeOf:Y,defineProperty:W,getOwnPropertyNames:Z}=Object;var H=Object.prototype.hasOwnProperty;function ee(e){return this[e]}var te,ne,re=(e,t,n)=>{var r=e!=null&&typeof e==="object";if(r){var s=t?te??=new WeakMap:ne??=new WeakMap,o=s.get(e);if(o)return o}n=e!=null?I(Y(e)):{};let i=t||!e||!e.__esModule?W(n,"default",{value:e,enumerable:!0}):n;for(let c of Z(e))if(!H.call(i,c))W(i,c,{get:ee.bind(e,c),enumerable:!0});if(r)s.set(e,i);return i};var se=((e)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var _=(e)=>typeof e==="function",L=(e)=>e&&typeof e==="object",w=Array.isArray,y=typeof document<"u"?document:null,q=(e)=>e?._isRuntime?e.container:e instanceof Node?e:y.createTextNode(e==null?"":String(e)),g=null,m=null,k=!1,x=0,G=new Set,j=new WeakMap,ie="http://www.w3.org/2000/svg",J="http://www.w3.org/1999/xlink",oe=new Set("svg,path,circle,rect,line,polyline,polygon,g,defs,text,textPath,tspan,use,symbol,image,marker,ellipse".split(",")),S=(e)=>{if(!e||e._disposed)return;e._disposed=!0;let t=[e];while(t.length){let n=t.pop();if(n._cleanups)n._cleanups.forEach((r)=>r()),n._cleanups.clear();if(n._children)n._children.forEach((r)=>t.push(r)),n._children.clear();if(n._deps)n._deps.forEach((r)=>r.delete(n)),n._deps.clear()}},A=(e)=>{if(m)(m._cleanups||=new Set).add(e)},ce=(e)=>{let t=g;g=null;try{return e()}finally{g=t}},T=(e,t=!1)=>{let n=()=>{if(n._disposed)return;if(n._deps)n._deps.forEach((o)=>o.delete(n));if(n._cleanups)n._cleanups.forEach((o)=>o()),n._cleanups.clear();let r=g,s=m;g=m=n;try{return n._result=e()}catch(o){console.error("[SigPro]",o)}finally{g=r,m=s}};if(n._deps=n._cleanups=n._children=null,n._disposed=!1,n._isComputed=t,n._depth=g?g._depth+1:0,n._mounts=[],n._parent=m,m)(m._children||=new Set).add(n);return n},M=()=>{if(k)return;k=!0;let e=Array.from(G).sort((t,n)=>t._depth-n._depth);G.clear();for(let t of e)if(!t._disposed)t();k=!1},P=(e)=>{x++;try{return e()}finally{if(x--,x===0&&G.size>0&&!k)M()}},p=(e,t=!1)=>{if(!t&&g&&!g._disposed)e.add(g),(g._deps||=new Set).add(e);else if(t&&e.size>0){let n=!1;for(let r of e){if(r===g||r._disposed)continue;if(r._isComputed){if(r._dirty=!0,r._subs)p(r._subs,!0)}else G.add(r),n=!0}if(n&&!k&&x===0)queueMicrotask(M)}},O=(e,t=null)=>{let n=new Set;if(_(e)){let r,s=()=>{if(s._dirty){let o=g;g=s;try{let i=e();if(!Object.is(r,i))r=i,p(n,!0)}finally{g=o}s._dirty=!1}return p(n),r};return s._isComputed=!0,s._subs=n,s._dirty=!0,s._deps=null,s._disposed=!1,s}if(t)try{e=JSON.parse(localStorage.getItem(t))??e}catch(r){}return(...r)=>{if(r.length){let s=_(r[0])?r[0](e):r[0];if(!Object.is(e,s)){if(e=s,t)localStorage.setItem(t,JSON.stringify(e));p(n,!0)}}return p(n),e}},N=(e,t)=>{if(t===void 0){let r=T(e);return r(),()=>S(r)}let n=T(()=>{let r=w(e)?e.map((s)=>s()):e();ce(()=>t(r))});return n(),()=>S(n)},z=(e)=>{if(!e)return;if(e._cleanups)e._cleanups.forEach((t)=>t()),e._cleanups.clear();if(e._ownerEffect)S(e._ownerEffect);if(e.childNodes)e.childNodes.forEach((t)=>z(t))},le=/^\s*(javascript|data|vbscript):/i,fe=new Set(["src","href","formaction","action","background","code","archive"]),ae=(e)=>fe.has(e)||e.startsWith("on"),U=(e,t)=>{if(t==null||t===!1)return null;if(ae(e)){let n=String(t);if(le.test(n))return"#"}return t},C=(e,t={},n=[])=>{if(t instanceof Node||w(t)||!L(t))n=t,t={};if(_(e)){let i=T(()=>{let f=e(t,{children:n,emit:(u,...h)=>t[`on${u[0].toUpperCase()}${u.slice(1)}`]?.(...h)});return i._result=f,f});i();let c=i._result;if(c==null)return null;let l=c instanceof Node||w(c)&&c.every((f)=>f instanceof Node)?c:y.createTextNode(String(c)),a=(f)=>{if(L(f)&&!f._isRuntime)f._mounts=i._mounts||[],f._cleanups=i._cleanups||new Set,f._ownerEffect=i};return w(l)?l.forEach(a):a(l),l}let r=oe.has(e),s=r?y.createElementNS(ie,e):y.createElement(e);s._cleanups=new Set;for(let i of Object.keys(t)){let c=t[i];if(i==="ref"){_(c)?c(s):c.current=s;continue}if(r&&i.startsWith("xlink:")){let l=U(i.slice(6),c);l==null?s.removeAttributeNS(J,i.slice(6)):s.setAttributeNS(J,i.slice(6),l);continue}if(i.startsWith("on")){let l=i.slice(2).toLowerCase();s.addEventListener(l,c);let a=()=>s.removeEventListener(l,c);s._cleanups.add(a),A(a)}else if(_(c)){let l=T(()=>{let a=U(i,c());if(i==="class")s.className=a||"";else if(a==null)s.removeAttribute(i);else if(i==="style"&&typeof a==="string")s.setAttribute("style",a);else if(i in s&&!r)s[i]=a;else s.setAttribute(i,a===!0?"":a)});if(l(),s._cleanups.add(()=>S(l)),A(()=>S(l)),/^(INPUT|TEXTAREA|SELECT)$/.test(s.tagName)&&(i==="value"||i==="checked")){let a=i==="checked"?"change":"input";s.addEventListener(a,(f)=>c(f.target[i]))}}else{let l=U(i,c);if(l!=null)if(i==="style"&&typeof l==="string")s.setAttribute("style",l);else if(i in s&&!r)s[i]=l;else s.setAttribute(i,l===!0?"":l)}}let o=(i)=>{if(w(i))return i.forEach(o);if(_(i)){let c=y.createTextNode("");s.appendChild(c);let l=[],a=T(()=>{let f=i(),u=(w(f)?f:[f]).map(q);l.forEach((d)=>{if(d._isRuntime)d.destroy();else z(d);if(d.parentNode)d.remove()});let h=c;for(let d=u.length-1;d>=0;d--){let v=u[d];if(v.parentNode!==h.parentNode)h.parentNode?.insertBefore(v,h);if(v._mounts)v._mounts.forEach((B)=>B());h=v}l=u});a(),s._cleanups.add(()=>S(a)),A(()=>S(a))}else{let c=q(i);if(s.appendChild(c),c._mounts)c._mounts.forEach((l)=>l())}};return o(n),s},R=(e)=>{let t=new Set,n=m,r=g,s=y.createElement("div");s.style.display="contents",s.setAttribute("role","presentation"),m={_cleanups:t},g=null;let o=(i)=>{if(!i)return;if(i._isRuntime)t.add(i.destroy),s.appendChild(i.container);else if(w(i))i.forEach(o);else s.appendChild(i instanceof Node?i:y.createTextNode(String(i==null?"":i)))};try{o(e({onCleanup:(i)=>t.add(i)}))}finally{m=n,g=r}return{_isRuntime:!0,container:s,destroy:()=>{t.forEach((i)=>i()),z(s),s.remove()}}},$=(e,t,n=null)=>{let r=y.createTextNode(""),s=C("div",{style:"display:contents"},[r]),o=null;return N(()=>!!(_(e)?e():e),(i)=>{if(o)o.destroy(),o=null;let c=i?t:n;if(c)o=R(()=>_(c)?c():c),s.insertBefore(o.container,r)}),A(()=>o?.destroy()),s},F=(e,t,n)=>{let r=y.createTextNode(""),s=C("div",{style:"display:contents"},[r]),o=new Map;return N(()=>(_(e)?e():e)||[],(i)=>{let c=new Map,l=[],a=i||[];for(let u=0;u<a.length;u++){let h=a[u],d=n?h?.[n]??u:h?.id??u,v=o.get(d);if(!v)v=R(()=>t(h,u));else o.delete(d);c.set(d,v),l.push(v)}o.forEach((u)=>u.destroy());let f=r;for(let u=l.length-1;u>=0;u--){let d=l[u].container;if(d.nextSibling!==f)s.insertBefore(d,f);f=d}o=c}),s},Q=(e)=>e.children,X=(e,t)=>{let n=typeof t==="string"?y.querySelector(t):t;if(!n)return;if(j.has(n))j.get(n).destroy();let r=R(_(e)?e:()=>e);return n.replaceChildren(r.container),j.set(n,r),r};if(typeof window<"u")"a abbr article aside audio b blockquote br button canvas caption cite code col colgroup datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 header hr i iframe img input ins kbd label legend li main mark meter nav object ol optgroup option output p picture pre progress section select slot small source span strong sub summary sup svg table tbody td template textarea tfoot th thead time tr u ul video".split(" ").forEach((e)=>{window[e]=(t,n)=>C(e,t,n)});var Ce=(()=>({}));function b(e){if(typeof e!=="string")throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function K(e,t){var n="",r=0,s=-1,o=0,i;for(var c=0;c<=e.length;++c){if(c<e.length)i=e.charCodeAt(c);else if(i===47)break;else i=47;if(i===47){if(s===c-1||o===1);else if(s!==c-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var l=n.lastIndexOf("/");if(l!==n.length-1){if(l===-1)n="",r=0;else n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/");s=c,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,s=c,o=0;continue}}if(t){if(n.length>0)n+="/..";else n="..";r=2}}else{if(n.length>0)n+="/"+e.slice(s+1,c);else n=e.slice(s+1,c);r=c-s-1}s=c,o=0}else if(i===46&&o!==-1)++o;else o=-1}return n}function ue(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");if(!n)return r;if(n===t.root)return n+r;return n+e+r}function D(){var e="",t=!1,n;for(var r=arguments.length-1;r>=-1&&!t;r--){var s;if(r>=0)s=arguments[r];else{if(n===void 0)n=process.cwd();s=n}if(b(s),s.length===0)continue;e=s+"/"+e,t=s.charCodeAt(0)===47}if(e=K(e,!t),t)if(e.length>0)return"/"+e;else return"/";else if(e.length>0)return e;else return"."}function V(e){if(b(e),e.length===0)return".";var t=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;if(e=K(e,!t),e.length===0&&!t)e=".";if(e.length>0&&n)e+="/";if(t)return"/"+e;return e}function de(e){return b(e),e.length>0&&e.charCodeAt(0)===47}function ge(){if(arguments.length===0)return".";var e;for(var t=0;t<arguments.length;++t){var n=arguments[t];if(b(n),n.length>0)if(e===void 0)e=n;else e+="/"+n}if(e===void 0)return".";return V(e)}function he(e,t){if(b(e),b(t),e===t)return"";if(e=D(e),t=D(t),e===t)return"";var n=1;for(;n<e.length;++n)if(e.charCodeAt(n)!==47)break;var r=e.length,s=r-n,o=1;for(;o<t.length;++o)if(t.charCodeAt(o)!==47)break;var i=t.length,c=i-o,l=s<c?s:c,a=-1,f=0;for(;f<=l;++f){if(f===l){if(c>l){if(t.charCodeAt(o+f)===47)return t.slice(o+f+1);else if(f===0)return t.slice(o+f)}else if(s>l){if(e.charCodeAt(n+f)===47)a=f;else if(f===0)a=0}break}var u=e.charCodeAt(n+f),h=t.charCodeAt(o+f);if(u!==h)break;else if(u===47)a=f}var d="";for(f=n+a+1;f<=r;++f)if(f===r||e.charCodeAt(f)===47)if(d.length===0)d+="..";else d+="/..";if(d.length>0)return d+t.slice(o+a);else{if(o+=a,t.charCodeAt(o)===47)++o;return t.slice(o)}}function _e(e){return e}function me(e){if(b(e),e.length===0)return".";var t=e.charCodeAt(0),n=t===47,r=-1,s=!0;for(var o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),t===47){if(!s){r=o;break}}else s=!1;if(r===-1)return n?"/":".";if(n&&r===1)return"//";return e.slice(0,r)}function ve(e,t){if(t!==void 0&&typeof t!=="string")throw TypeError('"ext" argument must be a string');b(e);var n=0,r=-1,s=!0,o;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var i=t.length-1,c=-1;for(o=e.length-1;o>=0;--o){var l=e.charCodeAt(o);if(l===47){if(!s){n=o+1;break}}else{if(c===-1)s=!1,c=o+1;if(i>=0)if(l===t.charCodeAt(i)){if(--i===-1)r=o}else i=-1,r=c}}if(n===r)r=c;else if(r===-1)r=e.length;return e.slice(n,r)}else{for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!s){n=o+1;break}}else if(r===-1)s=!1,r=o+1;if(r===-1)return"";return e.slice(n,r)}}function ye(e){b(e);var t=-1,n=0,r=-1,s=!0,o=0;for(var i=e.length-1;i>=0;--i){var c=e.charCodeAt(i);if(c===47){if(!s){n=i+1;break}continue}if(r===-1)s=!1,r=i+1;if(c===46){if(t===-1)t=i;else if(o!==1)o=1}else if(t!==-1)o=-1}if(t===-1||r===-1||o===0||o===1&&t===r-1&&t===n+1)return"";return e.slice(t,r)}function be(e){if(e===null||typeof e!=="object")throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return ue("/",e)}function we(e){b(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var n=e.charCodeAt(0),r=n===47,s;if(r)t.root="/",s=1;else s=0;var o=-1,i=0,c=-1,l=!0,a=e.length-1,f=0;for(;a>=s;--a){if(n=e.charCodeAt(a),n===47){if(!l){i=a+1;break}continue}if(c===-1)l=!1,c=a+1;if(n===46){if(o===-1)o=a;else if(f!==1)f=1}else if(o!==-1)f=-1}if(o===-1||c===-1||f===0||f===1&&o===c-1&&o===i+1){if(c!==-1)if(i===0&&r)t.base=t.name=e.slice(1,c);else t.base=t.name=e.slice(i,c)}else{if(i===0&&r)t.name=e.slice(1,o),t.base=e.slice(1,c);else t.name=e.slice(i,o),t.base=e.slice(i,c);t.ext=e.slice(o,c)}if(i>0)t.dir=e.slice(0,i-1);else if(r)t.dir="/";return t}var Ae="/",Se=":",pe=((e)=>(e.posix=e,e))({resolve:D,normalize:V,isAbsolute:de,join:ge,relative:he,_makeLong:_e,dirname:me,basename:ve,extname:ye,format:be,parse:we,sep:Ae,delimiter:Se,win32:null,posix:null});var E=(e)=>{let t=()=>window.location.hash.slice(1)||"/",n=O(t()),r=()=>n(t());window.addEventListener("hashchange",r),A(()=>window.removeEventListener("hashchange",r));let s=C("div",{class:"router-hook"}),o=null;return N([n],()=>{let i=n(),c=e.find((l)=>{let a=l.path.split("/").filter(Boolean),f=i.split("/").filter(Boolean);return a.length===f.length&&a.every((u,h)=>u[0]===":"||u===f[h])})||e.find((l)=>l.path==="*");if(c){o?.destroy();let l={};c.path.split("/").filter(Boolean).forEach((a,f)=>{if(a[0]===":")l[a.slice(1)]=i.split("/").filter(Boolean)[f]}),E.params(l),o=R(()=>_(c.component)?c.component(l):c.component),s.replaceChildren(o.container)}}),s};E.params=O({});E.to=(e)=>window.location.hash=e.replace(/^#?\/?/,"#/");E.back=()=>window.history.back();E.path=()=>window.location.hash.replace(/^#/,"")||"/";if(typeof window<"u")Object.assign(window,{$:O,watch:N,h:C,Fragment:Q,when:$,each:F,router:E,mount:X,batch:P,onUnmount:A,isArr:w,isFunc:_,isObj:L});})();
|