9remote 0.1.53 → 0.1.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/index.js +379 -198
- package/cli/utils/apiKey.js +13 -8
- package/cli/utils/permissions.js +45 -0
- package/cli/utils/state.js +23 -0
- package/cli/utils/tui.js +251 -0
- package/cli/utils/updateChecker.js +22 -0
- package/dist/cli.cjs +44 -95
- package/dist/server.cjs +48 -45
- package/dist/ui/assets/index-CMD-4YxV.js +8 -0
- package/dist/ui/assets/index-D4GJ1wNn.css +1 -0
- package/dist/ui/index.html +2 -2
- package/index.js +200 -8
- package/package.json +1 -1
- package/dist/ui/assets/index-BIuRs677.js +0 -8
- package/dist/ui/assets/index-DhKgENYK.css +0 -1
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const n of r)if(n.type==="childList")for(const s of n.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&o(s)}).observe(document,{childList:!0,subtree:!0});function i(r){const n={};return r.integrity&&(n.integrity=r.integrity),r.referrerPolicy&&(n.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?n.credentials="include":r.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function o(r){if(r.ep)return;r.ep=!0;const n=i(r);fetch(r.href,n)}})();var ce,A,jt,z,et,Kt,Vt,Jt,Ve,Oe,ze,oe={},ie=[],fn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ue=Array.isArray;function F(e,t){for(var i in t)e[i]=t[i];return e}function Je(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function dn(e,t,i){var o,r,n,s={};for(n in t)n=="key"?o=t[n]:n=="ref"?r=t[n]:s[n]=t[n];if(arguments.length>2&&(s.children=arguments.length>3?ce.call(arguments,2):i),typeof e=="function"&&e.defaultProps!=null)for(n in e.defaultProps)s[n]===void 0&&(s[n]=e.defaultProps[n]);return te(e,s,o,r,null)}function te(e,t,i,o,r){var n={type:e,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:r??++jt,__i:-1,__u:0};return r==null&&A.vnode!=null&&A.vnode(n),n}function j(e){return e.children}function ne(e,t){this.props=e,this.context=t}function G(e,t){if(t==null)return e.__?G(e.__,e.__i+1):null;for(var i;t<e.__k.length;t++)if((i=e.__k[t])!=null&&i.__e!=null)return i.__e;return typeof e.type=="function"?G(e):null}function hn(e){if(e.__P&&e.__d){var t=e.__v,i=t.__e,o=[],r=[],n=F({},t);n.__v=t.__v+1,A.vnode&&A.vnode(n),Ye(e.__P,n,t,e.__n,e.__P.namespaceURI,32&t.__u?[i]:null,o,i??G(t),!!(32&t.__u),r),n.__v=t.__v,n.__.__k[n.__i]=n,Wt(o,n,r),t.__e=t.__=null,n.__e!=i&&Yt(n)}}function Yt(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),Yt(e)}function tt(e){(!e.__d&&(e.__d=!0)&&z.push(e)&&!se.__r++||et!=A.debounceRendering)&&((et=A.debounceRendering)||Kt)(se)}function se(){try{for(var e,t=1;z.length;)z.length>t&&z.sort(Vt),e=z.shift(),t=z.length,hn(e)}finally{z.length=se.__r=0}}function Gt(e,t,i,o,r,n,s,l,a,u,h){var c,g,d,v,p,b,_,w=o&&o.__k||ie,x=t.length;for(a=_n(i,t,w,a,x),c=0;c<x;c++)(d=i.__k[c])!=null&&(g=d.__i!=-1&&w[d.__i]||oe,d.__i=c,b=Ye(e,d,g,r,n,s,l,a,u,h),v=d.__e,d.ref&&g.ref!=d.ref&&(g.ref&&Ge(g.ref,null,d),h.push(d.ref,d.__c||v,d)),p==null&&v!=null&&(p=v),(_=!!(4&d.__u))||g.__k===d.__k?a=Qt(d,a,e,_):typeof d.type=="function"&&b!==void 0?a=b:v&&(a=v.nextSibling),d.__u&=-7);return i.__e=p,a}function _n(e,t,i,o,r){var n,s,l,a,u,h=i.length,c=h,g=0;for(e.__k=new Array(r),n=0;n<r;n++)(s=t[n])!=null&&typeof s!="boolean"&&typeof s!="function"?(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?s=e.__k[n]=te(null,s,null,null,null):ue(s)?s=e.__k[n]=te(j,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?s=e.__k[n]=te(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):e.__k[n]=s,a=n+g,s.__=e,s.__b=e.__b+1,l=null,(u=s.__i=gn(s,i,a,c))!=-1&&(c--,(l=i[u])&&(l.__u|=2)),l==null||l.__v==null?(u==-1&&(r>h?g--:r<h&&g++),typeof s.type!="function"&&(s.__u|=4)):u!=a&&(u==a-1?g--:u==a+1?g++:(u>a?g--:g++,s.__u|=4))):e.__k[n]=null;if(c)for(n=0;n<h;n++)(l=i[n])!=null&&(2&l.__u)==0&&(l.__e==o&&(o=G(l)),Zt(l,l));return o}function Qt(e,t,i,o){var r,n;if(typeof e.type=="function"){for(r=e.__k,n=0;r&&n<r.length;n++)r[n]&&(r[n].__=e,t=Qt(r[n],t,i,o));return t}e.__e!=t&&(o&&(t&&e.type&&!t.parentNode&&(t=G(e)),i.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function gn(e,t,i,o){var r,n,s,l=e.key,a=e.type,u=t[i],h=u!=null&&(2&u.__u)==0;if(u===null&&l==null||h&&l==u.key&&a==u.type)return i;if(o>(h?1:0)){for(r=i-1,n=i+1;r>=0||n<t.length;)if((u=t[s=r>=0?r--:n++])!=null&&(2&u.__u)==0&&l==u.key&&a==u.type)return s}return-1}function nt(e,t,i){t[0]=="-"?e.setProperty(t,i??""):e[t]=i==null?"":typeof i!="number"||fn.test(t)?i:i+"px"}function $(e,t,i,o,r){var n,s;e:if(t=="style")if(typeof i=="string")e.style.cssText=i;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)i&&t in i||nt(e.style,t,"");if(i)for(t in i)o&&i[t]==o[t]||nt(e.style,t,i[t])}else if(t[0]=="o"&&t[1]=="n")n=t!=(t=t.replace(Jt,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+n]=i,i?o?i.u=o.u:(i.u=Ve,e.addEventListener(t,n?ze:Oe,n)):e.removeEventListener(t,n?ze:Oe,n);else{if(r=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=i??"";break e}catch{}typeof i=="function"||(i==null||i===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&i==1?"":i))}}function rt(e){return function(t){if(this.l){var i=this.l[t.type+e];if(t.t==null)t.t=Ve++;else if(t.t<i.u)return;return i(A.event?A.event(t):t)}}}function Ye(e,t,i,o,r,n,s,l,a,u){var h,c,g,d,v,p,b,_,w,x,C,R,m,N,E,y=t.type;if(t.constructor!==void 0)return null;128&i.__u&&(a=!!(32&i.__u),n=[l=t.__e=i.__e]),(h=A.__b)&&h(t);e:if(typeof y=="function")try{if(_=t.props,w=y.prototype&&y.prototype.render,x=(h=y.contextType)&&o[h.__c],C=h?x?x.props.value:h.__:o,i.__c?b=(c=t.__c=i.__c).__=c.__E:(w?t.__c=c=new y(_,C):(t.__c=c=new ne(_,C),c.constructor=y,c.render=pn),x&&x.sub(c),c.state||(c.state={}),c.__n=o,g=c.__d=!0,c.__h=[],c._sb=[]),w&&c.__s==null&&(c.__s=c.state),w&&y.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=F({},c.__s)),F(c.__s,y.getDerivedStateFromProps(_,c.__s))),d=c.props,v=c.state,c.__v=t,g)w&&y.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),w&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(w&&y.getDerivedStateFromProps==null&&_!==d&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(_,C),t.__v==i.__v||!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(_,c.__s,C)===!1){t.__v!=i.__v&&(c.props=_,c.state=c.__s,c.__d=!1),t.__e=i.__e,t.__k=i.__k,t.__k.some(function(S){S&&(S.__=t)}),ie.push.apply(c.__h,c._sb),c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(_,c.__s,C),w&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(d,v,p)})}if(c.context=C,c.props=_,c.__P=e,c.__e=!1,R=A.__r,m=0,w)c.state=c.__s,c.__d=!1,R&&R(t),h=c.render(c.props,c.state,c.context),ie.push.apply(c.__h,c._sb),c._sb=[];else do c.__d=!1,R&&R(t),h=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++m<25);c.state=c.__s,c.getChildContext!=null&&(o=F(F({},o),c.getChildContext())),w&&!g&&c.getSnapshotBeforeUpdate!=null&&(p=c.getSnapshotBeforeUpdate(d,v)),N=h!=null&&h.type===j&&h.key==null?Xt(h.props.children):h,l=Gt(e,ue(N)?N:[N],t,i,o,r,n,s,l,a,u),c.base=t.__e,t.__u&=-161,c.__h.length&&s.push(c),b&&(c.__E=c.__=null)}catch(S){if(t.__v=null,a||n!=null)if(S.then){for(t.__u|=a?160:128;l&&l.nodeType==8&&l.nextSibling;)l=l.nextSibling;n[n.indexOf(l)]=null,t.__e=l}else{for(E=n.length;E--;)Je(n[E]);je(t)}else t.__e=i.__e,t.__k=i.__k,S.then||je(t);A.__e(S,t,i)}else n==null&&t.__v==i.__v?(t.__k=i.__k,t.__e=i.__e):l=t.__e=mn(i.__e,t,i,o,r,n,s,a,u);return(h=A.diffed)&&h(t),128&t.__u?void 0:l}function je(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(je))}function Wt(e,t,i){for(var o=0;o<i.length;o++)Ge(i[o],i[++o],i[++o]);A.__c&&A.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(n){n.call(r)})}catch(n){A.__e(n,r.__v)}})}function Xt(e){return typeof e!="object"||e==null||e.__b>0?e:ue(e)?e.map(Xt):F({},e)}function mn(e,t,i,o,r,n,s,l,a){var u,h,c,g,d,v,p,b=i.props||oe,_=t.props,w=t.type;if(w=="svg"?r="http://www.w3.org/2000/svg":w=="math"?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),n!=null){for(u=0;u<n.length;u++)if((d=n[u])&&"setAttribute"in d==!!w&&(w?d.localName==w:d.nodeType==3)){e=d,n[u]=null;break}}if(e==null){if(w==null)return document.createTextNode(_);e=document.createElementNS(r,w,_.is&&_),l&&(A.__m&&A.__m(t,n),l=!1),n=null}if(w==null)b===_||l&&e.data==_||(e.data=_);else{if(n=n&&ce.call(e.childNodes),!l&&n!=null)for(b={},u=0;u<e.attributes.length;u++)b[(d=e.attributes[u]).name]=d.value;for(u in b)d=b[u],u=="dangerouslySetInnerHTML"?c=d:u=="children"||u in _||u=="value"&&"defaultValue"in _||u=="checked"&&"defaultChecked"in _||$(e,u,null,d,r);for(u in _)d=_[u],u=="children"?g=d:u=="dangerouslySetInnerHTML"?h=d:u=="value"?v=d:u=="checked"?p=d:l&&typeof d!="function"||b[u]===d||$(e,u,d,b[u],r);if(h)l||c&&(h.__html==c.__html||h.__html==e.innerHTML)||(e.innerHTML=h.__html),t.__k=[];else if(c&&(e.innerHTML=""),Gt(t.type=="template"?e.content:e,ue(g)?g:[g],t,i,o,w=="foreignObject"?"http://www.w3.org/1999/xhtml":r,n,s,n?n[0]:i.__k&&G(i,0),l,a),n!=null)for(u=n.length;u--;)Je(n[u]);l||(u="value",w=="progress"&&v==null?e.removeAttribute("value"):v!=null&&(v!==e[u]||w=="progress"&&!v||w=="option"&&v!=b[u])&&$(e,u,v,b[u],r),u="checked",p!=null&&p!=e[u]&&$(e,u,p,b[u],r))}return e}function Ge(e,t,i){try{if(typeof e=="function"){var o=typeof e.__u=="function";o&&e.__u(),o&&t==null||(e.__u=e(t))}else e.current=t}catch(r){A.__e(r,i)}}function Zt(e,t,i){var o,r;if(A.unmount&&A.unmount(e),(o=e.ref)&&(o.current&&o.current!=e.__e||Ge(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(n){A.__e(n,t)}o.base=o.__P=null}if(o=e.__k)for(r=0;r<o.length;r++)o[r]&&Zt(o[r],t,i||typeof e.type!="function");i||Je(e.__e),e.__c=e.__=e.__e=void 0}function pn(e,t,i){return this.constructor(e,i)}function yn(e,t,i){var o,r,n,s;t==document&&(t=document.documentElement),A.__&&A.__(e,t),r=(o=!1)?null:t.__k,n=[],s=[],Ye(t,e=t.__k=dn(j,null,[e]),r||oe,oe,t.namespaceURI,r?null:t.firstChild?ce.call(t.childNodes):null,n,r?r.__e:t.firstChild,o,s),Wt(n,e,s)}ce=ie.slice,A={__e:function(e,t,i,o){for(var r,n,s;t=t.__;)if((r=t.__c)&&!r.__)try{if((n=r.constructor)&&n.getDerivedStateFromError!=null&&(r.setState(n.getDerivedStateFromError(e)),s=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(e,o||{}),s=r.__d),s)return r.__E=r}catch(l){e=l}throw e}},jt=0,ne.prototype.setState=function(e,t){var i;i=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=F({},this.state),typeof e=="function"&&(e=e(F({},i),this.props)),e&&F(i,e),e!=null&&this.__v&&(t&&this._sb.push(t),tt(this))},ne.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),tt(this))},ne.prototype.render=j,z=[],Kt=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Vt=function(e,t){return e.__v.__b-t.__v.__b},se.__r=0,Jt=/(PointerCapture)$|Capture$/i,Ve=0,Oe=rt(!1),ze=rt(!0);var wn=0;function f(e,t,i,o,r,n){t||(t={});var s,l,a=t;if("ref"in a)for(l in a={},t)l=="ref"?s=t[l]:a[l]=t[l];var u={type:e,props:a,key:i,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--wn,__i:-1,__u:0,__source:r,__self:n};if(typeof e=="function"&&(s=e.defaultProps))for(l in s)a[l]===void 0&&(a[l]=s[l]);return A.vnode&&A.vnode(u),u}var X,M,ge,ot,le=0,$t=[],I=A,it=I.__b,st=I.__r,lt=I.diffed,at=I.__c,ct=I.unmount,ut=I.__;function Qe(e,t){I.__h&&I.__h(M,e,le||t),le=0;var i=M.__H||(M.__H={__:[],__h:[]});return e>=i.__.length&&i.__.push({}),i.__[e]}function q(e){return le=1,vn(nn,e)}function vn(e,t,i){var o=Qe(X++,2);if(o.t=e,!o.__c&&(o.__=[nn(void 0,t),function(l){var a=o.__N?o.__N[0]:o.__[0],u=o.t(a,l);a!==u&&(o.__N=[u,o.__[1]],o.__c.setState({}))}],o.__c=M,!M.__f)){var r=function(l,a,u){if(!o.__c.__H)return!0;var h=o.__c.__H.__.filter(function(g){return g.__c});if(h.every(function(g){return!g.__N}))return!n||n.call(this,l,a,u);var c=o.__c.props!==l;return h.some(function(g){if(g.__N){var d=g.__[0];g.__=g.__N,g.__N=void 0,d!==g.__[0]&&(c=!0)}}),n&&n.call(this,l,a,u)||c};M.__f=!0;var n=M.shouldComponentUpdate,s=M.componentWillUpdate;M.componentWillUpdate=function(l,a,u){if(this.__e){var h=n;n=void 0,r(l,a,u),n=h}s&&s.call(this,l,a,u)},M.shouldComponentUpdate=r}return o.__N||o.__}function ae(e,t){var i=Qe(X++,3);!I.__s&&tn(i.__H,t)&&(i.__=e,i.u=t,M.__H.__h.push(i))}function en(e){return le=5,bn(function(){return{current:e}},[])}function bn(e,t){var i=Qe(X++,7);return tn(i.__H,t)&&(i.__=e(),i.__H=t,i.__h=e),i.__}function xn(){for(var e;e=$t.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(re),t.__h.some(Ke),t.__h=[]}catch(i){t.__h=[],I.__e(i,e.__v)}}}I.__b=function(e){M=null,it&&it(e)},I.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ut&&ut(e,t)},I.__r=function(e){st&&st(e),X=0;var t=(M=e.__c).__H;t&&(ge===M?(t.__h=[],M.__h=[],t.__.some(function(i){i.__N&&(i.__=i.__N),i.u=i.__N=void 0})):(t.__h.some(re),t.__h.some(Ke),t.__h=[],X=0)),ge=M},I.diffed=function(e){lt&<(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&($t.push(t)!==1&&ot===I.requestAnimationFrame||((ot=I.requestAnimationFrame)||Nn)(xn)),t.__H.__.some(function(i){i.u&&(i.__H=i.u),i.u=void 0})),ge=M=null},I.__c=function(e,t){t.some(function(i){try{i.__h.some(re),i.__h=i.__h.filter(function(o){return!o.__||Ke(o)})}catch(o){t.some(function(r){r.__h&&(r.__h=[])}),t=[],I.__e(o,i.__v)}}),at&&at(e,t)},I.unmount=function(e){ct&&ct(e);var t,i=e.__c;i&&i.__H&&(i.__H.__.some(function(o){try{re(o)}catch(r){t=r}}),i.__H=void 0,t&&I.__e(t,i.__v))};var ft=typeof requestAnimationFrame=="function";function Nn(e){var t,i=function(){clearTimeout(o),ft&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(i,35);ft&&(t=requestAnimationFrame(i))}function re(e){var t=M,i=e.__c;typeof i=="function"&&(e.__c=void 0,i()),M=t}function Ke(e){var t=M;e.__c=e.__(),M=t}function tn(e,t){return!e||e.length!==t.length||t.some(function(i,o){return i!==e[o]})}function nn(e,t){return typeof t=="function"?t(e):t}const Cn=["play_arrow","lan","verified_user","check_circle"];function En({currentStep:e,steps:t}){return f("div",{className:"glass-card p-4 flex flex-col gap-3",children:[f("span",{className:"text-xs text-white/50 font-medium uppercase tracking-wider",children:"Progress"}),f("div",{className:"flex flex-col gap-2",children:t.map((i,o)=>{const r=o<e,n=o===e;return f("div",{className:"flex items-center gap-3",children:[f("div",{className:`w-7 h-7 rounded-full flex items-center justify-center flex-shrink-0 relative ${r||n?"":"bg-white/10"}`,style:r||n?{background:"var(--brand-500)"}:{},children:[n&&f("div",{className:"absolute inset-0 rounded-full pulse-ring",style:{background:"rgba(255,87,10,0.3)"}}),f("span",{className:`material-symbols-outlined text-sm ${n?"spin":""} ${r||n?"text-white":"text-white/30"}`,children:r?"check":Cn[o]})]}),f("span",{className:`text-sm font-medium ${n?"text-white":r?"":"text-white/30"}`,style:r?{color:"var(--brand-400)"}:{},children:i}),n&&f("span",{className:"ml-auto text-xs px-2 py-0.5 rounded-full",style:{background:"rgba(255,87,10,0.15)",color:"var(--brand-400)"},children:"Running"}),r&&f("span",{className:"ml-auto text-xs text-white/30",children:"Done"})]},o)})})]})}function Sn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Y={},me,dt;function Tn(){return dt||(dt=1,me=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),me}var pe={},O={},ht;function K(){if(ht)return O;ht=1;let e;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return O.getSymbolSize=function(o){if(!o)throw new Error('"version" cannot be null or undefined');if(o<1||o>40)throw new Error('"version" should be in range from 1 to 40');return o*4+17},O.getSymbolTotalCodewords=function(o){return t[o]},O.getBCHDigit=function(i){let o=0;for(;i!==0;)o++,i>>>=1;return o},O.setToSJISFunction=function(o){if(typeof o!="function")throw new Error('"toSJISFunc" is not a valid function.');e=o},O.isKanjiModeEnabled=function(){return typeof e<"u"},O.toSJIS=function(o){return e(o)},O}var ye={},_t;function We(){return _t||(_t=1,(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+i)}}e.isValid=function(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4},e.from=function(o,r){if(e.isValid(o))return o;try{return t(o)}catch{return r}}})(ye)),ye}var we,gt;function Pn(){if(gt)return we;gt=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(t){const i=Math.floor(t/8);return(this.buffer[i]>>>7-t%8&1)===1},put:function(t,i){for(let o=0;o<i;o++)this.putBit((t>>>i-o-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),t&&(this.buffer[i]|=128>>>this.length%8),this.length++}},we=e,we}var ve,mt;function kn(){if(mt)return ve;mt=1;function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return e.prototype.set=function(t,i,o,r){const n=t*this.size+i;this.data[n]=o,r&&(this.reservedBit[n]=!0)},e.prototype.get=function(t,i){return this.data[t*this.size+i]},e.prototype.xor=function(t,i,o){this.data[t*this.size+i]^=o},e.prototype.isReserved=function(t,i){return this.reservedBit[t*this.size+i]},ve=e,ve}var be={},pt;function Bn(){return pt||(pt=1,(function(e){const t=K().getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const r=Math.floor(o/7)+2,n=t(o),s=n===145?26:Math.ceil((n-13)/(2*r-2))*2,l=[n-7];for(let a=1;a<r-1;a++)l[a]=l[a-1]-s;return l.push(6),l.reverse()},e.getPositions=function(o){const r=[],n=e.getRowColCoords(o),s=n.length;for(let l=0;l<s;l++)for(let a=0;a<s;a++)l===0&&a===0||l===0&&a===s-1||l===s-1&&a===0||r.push([n[l],n[a]]);return r}})(be)),be}var xe={},yt;function An(){if(yt)return xe;yt=1;const e=K().getSymbolSize,t=7;return xe.getPositions=function(o){const r=e(o);return[[0,0],[r-t,0],[0,r-t]]},xe}var Ne={},wt;function Rn(){return wt||(wt=1,(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(r){return r!=null&&r!==""&&!isNaN(r)&&r>=0&&r<=7},e.from=function(r){return e.isValid(r)?parseInt(r,10):void 0},e.getPenaltyN1=function(r){const n=r.size;let s=0,l=0,a=0,u=null,h=null;for(let c=0;c<n;c++){l=a=0,u=h=null;for(let g=0;g<n;g++){let d=r.get(c,g);d===u?l++:(l>=5&&(s+=t.N1+(l-5)),u=d,l=1),d=r.get(g,c),d===h?a++:(a>=5&&(s+=t.N1+(a-5)),h=d,a=1)}l>=5&&(s+=t.N1+(l-5)),a>=5&&(s+=t.N1+(a-5))}return s},e.getPenaltyN2=function(r){const n=r.size;let s=0;for(let l=0;l<n-1;l++)for(let a=0;a<n-1;a++){const u=r.get(l,a)+r.get(l,a+1)+r.get(l+1,a)+r.get(l+1,a+1);(u===4||u===0)&&s++}return s*t.N2},e.getPenaltyN3=function(r){const n=r.size;let s=0,l=0,a=0;for(let u=0;u<n;u++){l=a=0;for(let h=0;h<n;h++)l=l<<1&2047|r.get(u,h),h>=10&&(l===1488||l===93)&&s++,a=a<<1&2047|r.get(h,u),h>=10&&(a===1488||a===93)&&s++}return s*t.N3},e.getPenaltyN4=function(r){let n=0;const s=r.data.length;for(let a=0;a<s;a++)n+=r.data[a];return Math.abs(Math.ceil(n*100/s/5)-10)*t.N4};function i(o,r,n){switch(o){case e.Patterns.PATTERN000:return(r+n)%2===0;case e.Patterns.PATTERN001:return r%2===0;case e.Patterns.PATTERN010:return n%3===0;case e.Patterns.PATTERN011:return(r+n)%3===0;case e.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2===0;case e.Patterns.PATTERN101:return r*n%2+r*n%3===0;case e.Patterns.PATTERN110:return(r*n%2+r*n%3)%2===0;case e.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}e.applyMask=function(r,n){const s=n.size;for(let l=0;l<s;l++)for(let a=0;a<s;a++)n.isReserved(a,l)||n.xor(a,l,i(r,a,l))},e.getBestMask=function(r,n){const s=Object.keys(e.Patterns).length;let l=0,a=1/0;for(let u=0;u<s;u++){n(u),e.applyMask(u,r);const h=e.getPenaltyN1(r)+e.getPenaltyN2(r)+e.getPenaltyN3(r)+e.getPenaltyN4(r);e.applyMask(u,r),h<a&&(a=h,l=u)}return l}})(Ne)),Ne}var ee={},vt;function rn(){if(vt)return ee;vt=1;const e=We(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return ee.getBlocksCount=function(r,n){switch(n){case e.L:return t[(r-1)*4+0];case e.M:return t[(r-1)*4+1];case e.Q:return t[(r-1)*4+2];case e.H:return t[(r-1)*4+3];default:return}},ee.getTotalCodewordsCount=function(r,n){switch(n){case e.L:return i[(r-1)*4+0];case e.M:return i[(r-1)*4+1];case e.Q:return i[(r-1)*4+2];case e.H:return i[(r-1)*4+3];default:return}},ee}var Ce={},W={},bt;function Mn(){if(bt)return W;bt=1;const e=new Uint8Array(512),t=new Uint8Array(256);return(function(){let o=1;for(let r=0;r<255;r++)e[r]=o,t[o]=r,o<<=1,o&256&&(o^=285);for(let r=255;r<512;r++)e[r]=e[r-255]})(),W.log=function(o){if(o<1)throw new Error("log("+o+")");return t[o]},W.exp=function(o){return e[o]},W.mul=function(o,r){return o===0||r===0?0:e[t[o]+t[r]]},W}var xt;function In(){return xt||(xt=1,(function(e){const t=Mn();e.mul=function(o,r){const n=new Uint8Array(o.length+r.length-1);for(let s=0;s<o.length;s++)for(let l=0;l<r.length;l++)n[s+l]^=t.mul(o[s],r[l]);return n},e.mod=function(o,r){let n=new Uint8Array(o);for(;n.length-r.length>=0;){const s=n[0];for(let a=0;a<r.length;a++)n[a]^=t.mul(r[a],s);let l=0;for(;l<n.length&&n[l]===0;)l++;n=n.slice(l)}return n},e.generateECPolynomial=function(o){let r=new Uint8Array([1]);for(let n=0;n<o;n++)r=e.mul(r,new Uint8Array([1,t.exp(n)]));return r}})(Ce)),Ce}var Ee,Nt;function Ln(){if(Nt)return Ee;Nt=1;const e=In();function t(i){this.genPoly=void 0,this.degree=i,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(o){this.degree=o,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(o){if(!this.genPoly)throw new Error("Encoder not initialized");const r=new Uint8Array(o.length+this.degree);r.set(o);const n=e.mod(r,this.genPoly),s=this.degree-n.length;if(s>0){const l=new Uint8Array(this.degree);return l.set(n,s),l}return n},Ee=t,Ee}var Se={},Te={},Pe={},Ct;function on(){return Ct||(Ct=1,Pe.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),Pe}var L={},Et;function sn(){if(Et)return L;Et=1;const e="[0-9]+",t="[A-Z $%*+\\-./:]+";let i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";i=i.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+`)(?:.|[\r
|
|
2
|
-
]))+`;L.KANJI=new RegExp(i,"g"),L.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),L.BYTE=new RegExp(o,"g"),L.NUMERIC=new RegExp(e,"g"),L.ALPHANUMERIC=new RegExp(t,"g");const r=new RegExp("^"+i+"$"),n=new RegExp("^"+e+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return L.testKanji=function(a){return r.test(a)},L.testNumeric=function(a){return n.test(a)},L.testAlphanumeric=function(a){return s.test(a)},L}var St;function V(){return St||(St=1,(function(e){const t=on(),i=sn();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(n,s){if(!n.ccBits)throw new Error("Invalid mode: "+n);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?n.ccBits[0]:s<27?n.ccBits[1]:n.ccBits[2]},e.getBestModeForData=function(n){return i.testNumeric(n)?e.NUMERIC:i.testAlphanumeric(n)?e.ALPHANUMERIC:i.testKanji(n)?e.KANJI:e.BYTE},e.toString=function(n){if(n&&n.id)return n.id;throw new Error("Invalid mode")},e.isValid=function(n){return n&&n.bit&&n.ccBits};function o(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+r)}}e.from=function(n,s){if(e.isValid(n))return n;try{return o(n)}catch{return s}}})(Te)),Te}var Tt;function Un(){return Tt||(Tt=1,(function(e){const t=K(),i=rn(),o=We(),r=V(),n=on(),s=7973,l=t.getBCHDigit(s);function a(g,d,v){for(let p=1;p<=40;p++)if(d<=e.getCapacity(p,v,g))return p}function u(g,d){return r.getCharCountIndicator(g,d)+4}function h(g,d){let v=0;return g.forEach(function(p){const b=u(p.mode,d);v+=b+p.getBitsLength()}),v}function c(g,d){for(let v=1;v<=40;v++)if(h(g,v)<=e.getCapacity(v,d,r.MIXED))return v}e.from=function(d,v){return n.isValid(d)?parseInt(d,10):v},e.getCapacity=function(d,v,p){if(!n.isValid(d))throw new Error("Invalid QR Code version");typeof p>"u"&&(p=r.BYTE);const b=t.getSymbolTotalCodewords(d),_=i.getTotalCodewordsCount(d,v),w=(b-_)*8;if(p===r.MIXED)return w;const x=w-u(p,d);switch(p){case r.NUMERIC:return Math.floor(x/10*3);case r.ALPHANUMERIC:return Math.floor(x/11*2);case r.KANJI:return Math.floor(x/13);case r.BYTE:default:return Math.floor(x/8)}},e.getBestVersionForData=function(d,v){let p;const b=o.from(v,o.M);if(Array.isArray(d)){if(d.length>1)return c(d,b);if(d.length===0)return 1;p=d[0]}else p=d;return a(p.mode,p.getLength(),b)},e.getEncodedBits=function(d){if(!n.isValid(d)||d<7)throw new Error("Invalid QR Code version");let v=d<<12;for(;t.getBCHDigit(v)-l>=0;)v^=s<<t.getBCHDigit(v)-l;return d<<12|v}})(Se)),Se}var ke={},Pt;function Dn(){if(Pt)return ke;Pt=1;const e=K(),t=1335,i=21522,o=e.getBCHDigit(t);return ke.getEncodedBits=function(n,s){const l=n.bit<<3|s;let a=l<<10;for(;e.getBCHDigit(a)-o>=0;)a^=t<<e.getBCHDigit(a)-o;return(l<<10|a)^i},ke}var Be={},Ae,kt;function qn(){if(kt)return Ae;kt=1;const e=V();function t(i){this.mode=e.NUMERIC,this.data=i.toString()}return t.getBitsLength=function(o){return 10*Math.floor(o/3)+(o%3?o%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(o){let r,n,s;for(r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),s=parseInt(n,10),o.put(s,10);const l=this.data.length-r;l>0&&(n=this.data.substr(r),s=parseInt(n,10),o.put(s,l*3+1))},Ae=t,Ae}var Re,Bt;function Fn(){if(Bt)return Re;Bt=1;const e=V(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(o){this.mode=e.ALPHANUMERIC,this.data=o}return i.getBitsLength=function(r){return 11*Math.floor(r/2)+6*(r%2)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(r){let n;for(n=0;n+2<=this.data.length;n+=2){let s=t.indexOf(this.data[n])*45;s+=t.indexOf(this.data[n+1]),r.put(s,11)}this.data.length%2&&r.put(t.indexOf(this.data[n]),6)},Re=i,Re}var Me,At;function Hn(){if(At)return Me;At=1;const e=V();function t(i){this.mode=e.BYTE,typeof i=="string"?this.data=new TextEncoder().encode(i):this.data=new Uint8Array(i)}return t.getBitsLength=function(o){return o*8},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(i){for(let o=0,r=this.data.length;o<r;o++)i.put(this.data[o],8)},Me=t,Me}var Ie,Rt;function On(){if(Rt)return Ie;Rt=1;const e=V(),t=K();function i(o){this.mode=e.KANJI,this.data=o}return i.getBitsLength=function(r){return r*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(o){let r;for(r=0;r<this.data.length;r++){let n=t.toSJIS(this.data[r]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[r]+`
|
|
3
|
-
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),o.put(n,13)}},Ie=i,Ie}var Le={exports:{}},Mt;function zn(){return Mt||(Mt=1,(function(e){var t={single_source_shortest_paths:function(i,o,r){var n={},s={};s[o]=0;var l=t.PriorityQueue.make();l.push(o,0);for(var a,u,h,c,g,d,v,p,b;!l.empty();){a=l.pop(),u=a.value,c=a.cost,g=i[u]||{};for(h in g)g.hasOwnProperty(h)&&(d=g[h],v=c+d,p=s[h],b=typeof s[h]>"u",(b||p>v)&&(s[h]=v,l.push(h,v),n[h]=u))}if(typeof r<"u"&&typeof s[r]>"u"){var _=["Could not find a path from ",o," to ",r,"."].join("");throw new Error(_)}return n},extract_shortest_path_from_predecessor_list:function(i,o){for(var r=[],n=o;n;)r.push(n),i[n],n=i[n];return r.reverse(),r},find_path:function(i,o,r){var n=t.single_source_shortest_paths(i,o,r);return t.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(i){var o=t.PriorityQueue,r={},n;i=i||{};for(n in o)o.hasOwnProperty(n)&&(r[n]=o[n]);return r.queue=[],r.sorter=i.sorter||o.default_sorter,r},default_sorter:function(i,o){return i.cost-o.cost},push:function(i,o){var r={value:i,cost:o};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Le)),Le.exports}var It;function jn(){return It||(It=1,(function(e){const t=V(),i=qn(),o=Fn(),r=Hn(),n=On(),s=sn(),l=K(),a=zn();function u(_){return unescape(encodeURIComponent(_)).length}function h(_,w,x){const C=[];let R;for(;(R=_.exec(x))!==null;)C.push({data:R[0],index:R.index,mode:w,length:R[0].length});return C}function c(_){const w=h(s.NUMERIC,t.NUMERIC,_),x=h(s.ALPHANUMERIC,t.ALPHANUMERIC,_);let C,R;return l.isKanjiModeEnabled()?(C=h(s.BYTE,t.BYTE,_),R=h(s.KANJI,t.KANJI,_)):(C=h(s.BYTE_KANJI,t.BYTE,_),R=[]),w.concat(x,C,R).sort(function(N,E){return N.index-E.index}).map(function(N){return{data:N.data,mode:N.mode,length:N.length}})}function g(_,w){switch(w){case t.NUMERIC:return i.getBitsLength(_);case t.ALPHANUMERIC:return o.getBitsLength(_);case t.KANJI:return n.getBitsLength(_);case t.BYTE:return r.getBitsLength(_)}}function d(_){return _.reduce(function(w,x){const C=w.length-1>=0?w[w.length-1]:null;return C&&C.mode===x.mode?(w[w.length-1].data+=x.data,w):(w.push(x),w)},[])}function v(_){const w=[];for(let x=0;x<_.length;x++){const C=_[x];switch(C.mode){case t.NUMERIC:w.push([C,{data:C.data,mode:t.ALPHANUMERIC,length:C.length},{data:C.data,mode:t.BYTE,length:C.length}]);break;case t.ALPHANUMERIC:w.push([C,{data:C.data,mode:t.BYTE,length:C.length}]);break;case t.KANJI:w.push([C,{data:C.data,mode:t.BYTE,length:u(C.data)}]);break;case t.BYTE:w.push([{data:C.data,mode:t.BYTE,length:u(C.data)}])}}return w}function p(_,w){const x={},C={start:{}};let R=["start"];for(let m=0;m<_.length;m++){const N=_[m],E=[];for(let y=0;y<N.length;y++){const S=N[y],T=""+m+y;E.push(T),x[T]={node:S,lastCount:0},C[T]={};for(let k=0;k<R.length;k++){const P=R[k];x[P]&&x[P].node.mode===S.mode?(C[P][T]=g(x[P].lastCount+S.length,S.mode)-g(x[P].lastCount,S.mode),x[P].lastCount+=S.length):(x[P]&&(x[P].lastCount=S.length),C[P][T]=g(S.length,S.mode)+4+t.getCharCountIndicator(S.mode,w))}}R=E}for(let m=0;m<R.length;m++)C[R[m]].end=0;return{map:C,table:x}}function b(_,w){let x;const C=t.getBestModeForData(_);if(x=t.from(w,C),x!==t.BYTE&&x.bit<C.bit)throw new Error('"'+_+'" cannot be encoded with mode '+t.toString(x)+`.
|
|
4
|
-
Suggested mode is: `+t.toString(C));switch(x===t.KANJI&&!l.isKanjiModeEnabled()&&(x=t.BYTE),x){case t.NUMERIC:return new i(_);case t.ALPHANUMERIC:return new o(_);case t.KANJI:return new n(_);case t.BYTE:return new r(_)}}e.fromArray=function(w){return w.reduce(function(x,C){return typeof C=="string"?x.push(b(C,null)):C.data&&x.push(b(C.data,C.mode)),x},[])},e.fromString=function(w,x){const C=c(w,l.isKanjiModeEnabled()),R=v(C),m=p(R,x),N=a.find_path(m.map,"start","end"),E=[];for(let y=1;y<N.length-1;y++)E.push(m.table[N[y]].node);return e.fromArray(d(E))},e.rawSplit=function(w){return e.fromArray(c(w,l.isKanjiModeEnabled()))}})(Be)),Be}var Lt;function Kn(){if(Lt)return pe;Lt=1;const e=K(),t=We(),i=Pn(),o=kn(),r=Bn(),n=An(),s=Rn(),l=rn(),a=Ln(),u=Un(),h=Dn(),c=V(),g=jn();function d(m,N){const E=m.size,y=n.getPositions(N);for(let S=0;S<y.length;S++){const T=y[S][0],k=y[S][1];for(let P=-1;P<=7;P++)if(!(T+P<=-1||E<=T+P))for(let B=-1;B<=7;B++)k+B<=-1||E<=k+B||(P>=0&&P<=6&&(B===0||B===6)||B>=0&&B<=6&&(P===0||P===6)||P>=2&&P<=4&&B>=2&&B<=4?m.set(T+P,k+B,!0,!0):m.set(T+P,k+B,!1,!0))}}function v(m){const N=m.size;for(let E=8;E<N-8;E++){const y=E%2===0;m.set(E,6,y,!0),m.set(6,E,y,!0)}}function p(m,N){const E=r.getPositions(N);for(let y=0;y<E.length;y++){const S=E[y][0],T=E[y][1];for(let k=-2;k<=2;k++)for(let P=-2;P<=2;P++)k===-2||k===2||P===-2||P===2||k===0&&P===0?m.set(S+k,T+P,!0,!0):m.set(S+k,T+P,!1,!0)}}function b(m,N){const E=m.size,y=u.getEncodedBits(N);let S,T,k;for(let P=0;P<18;P++)S=Math.floor(P/3),T=P%3+E-8-3,k=(y>>P&1)===1,m.set(S,T,k,!0),m.set(T,S,k,!0)}function _(m,N,E){const y=m.size,S=h.getEncodedBits(N,E);let T,k;for(T=0;T<15;T++)k=(S>>T&1)===1,T<6?m.set(T,8,k,!0):T<8?m.set(T+1,8,k,!0):m.set(y-15+T,8,k,!0),T<8?m.set(8,y-T-1,k,!0):T<9?m.set(8,15-T-1+1,k,!0):m.set(8,15-T-1,k,!0);m.set(y-8,8,1,!0)}function w(m,N){const E=m.size;let y=-1,S=E-1,T=7,k=0;for(let P=E-1;P>0;P-=2)for(P===6&&P--;;){for(let B=0;B<2;B++)if(!m.isReserved(S,P-B)){let H=!1;k<N.length&&(H=(N[k]>>>T&1)===1),m.set(S,P-B,H),T--,T===-1&&(k++,T=7)}if(S+=y,S<0||E<=S){S-=y,y=-y;break}}}function x(m,N,E){const y=new i;E.forEach(function(B){y.put(B.mode.bit,4),y.put(B.getLength(),c.getCharCountIndicator(B.mode,m)),B.write(y)});const S=e.getSymbolTotalCodewords(m),T=l.getTotalCodewordsCount(m,N),k=(S-T)*8;for(y.getLengthInBits()+4<=k&&y.put(0,4);y.getLengthInBits()%8!==0;)y.putBit(0);const P=(k-y.getLengthInBits())/8;for(let B=0;B<P;B++)y.put(B%2?17:236,8);return C(y,m,N)}function C(m,N,E){const y=e.getSymbolTotalCodewords(N),S=l.getTotalCodewordsCount(N,E),T=y-S,k=l.getBlocksCount(N,E),P=y%k,B=k-P,H=Math.floor(y/k),Q=Math.floor(T/k),an=Q+1,Xe=H-Q,cn=new a(Xe);let fe=0;const Z=new Array(k),Ze=new Array(k);let de=0;const un=new Uint8Array(m.buffer);for(let J=0;J<k;J++){const _e=J<B?Q:an;Z[J]=un.slice(fe,fe+_e),Ze[J]=cn.encode(Z[J]),fe+=_e,de=Math.max(de,_e)}const he=new Uint8Array(y);let $e=0,U,D;for(U=0;U<de;U++)for(D=0;D<k;D++)U<Z[D].length&&(he[$e++]=Z[D][U]);for(U=0;U<Xe;U++)for(D=0;D<k;D++)he[$e++]=Ze[D][U];return he}function R(m,N,E,y){let S;if(Array.isArray(m))S=g.fromArray(m);else if(typeof m=="string"){let H=N;if(!H){const Q=g.rawSplit(m);H=u.getBestVersionForData(Q,E)}S=g.fromString(m,H||40)}else throw new Error("Invalid data");const T=u.getBestVersionForData(S,E);if(!T)throw new Error("The amount of data is too big to be stored in a QR Code");if(!N)N=T;else if(N<T)throw new Error(`
|
|
5
|
-
The chosen QR Code version cannot contain this amount of data.
|
|
6
|
-
Minimum version required to store current data is: `+T+`.
|
|
7
|
-
`);const k=x(N,E,S),P=e.getSymbolSize(N),B=new o(P);return d(B,N),v(B),p(B,N),_(B,E,0),N>=7&&b(B,N),w(B,k),isNaN(y)&&(y=s.getBestMask(B,_.bind(null,B,E))),s.applyMask(y,B),_(B,E,y),{modules:B,version:N,errorCorrectionLevel:E,maskPattern:y,segments:S}}return pe.create=function(N,E){if(typeof N>"u"||N==="")throw new Error("No input text");let y=t.M,S,T;return typeof E<"u"&&(y=t.from(E.errorCorrectionLevel,t.M),S=u.from(E.version),T=s.from(E.maskPattern),E.toSJISFunc&&e.setToSJISFunction(E.toSJISFunc)),R(N,S,y,T)},pe}var Ue={},De={},Ut;function ln(){return Ut||(Ut=1,(function(e){function t(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let o=i.slice().replace("#","").split("");if(o.length<3||o.length===5||o.length>8)throw new Error("Invalid hex color: "+i);(o.length===3||o.length===4)&&(o=Array.prototype.concat.apply([],o.map(function(n){return[n,n]}))),o.length===6&&o.push("F","F");const r=parseInt(o.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+o.slice(0,6).join("")}}e.getOptions=function(o){o||(o={}),o.color||(o.color={});const r=typeof o.margin>"u"||o.margin===null||o.margin<0?4:o.margin,n=o.width&&o.width>=21?o.width:void 0,s=o.scale||4;return{width:n,scale:n?4:s,margin:r,color:{dark:t(o.color.dark||"#000000ff"),light:t(o.color.light||"#ffffffff")},type:o.type,rendererOpts:o.rendererOpts||{}}},e.getScale=function(o,r){return r.width&&r.width>=o+r.margin*2?r.width/(o+r.margin*2):r.scale},e.getImageWidth=function(o,r){const n=e.getScale(o,r);return Math.floor((o+r.margin*2)*n)},e.qrToImageData=function(o,r,n){const s=r.modules.size,l=r.modules.data,a=e.getScale(s,n),u=Math.floor((s+n.margin*2)*a),h=n.margin*a,c=[n.color.light,n.color.dark];for(let g=0;g<u;g++)for(let d=0;d<u;d++){let v=(g*u+d)*4,p=n.color.light;if(g>=h&&d>=h&&g<u-h&&d<u-h){const b=Math.floor((g-h)/a),_=Math.floor((d-h)/a);p=c[l[b*s+_]?1:0]}o[v++]=p.r,o[v++]=p.g,o[v++]=p.b,o[v]=p.a}}})(De)),De}var Dt;function Vn(){return Dt||(Dt=1,(function(e){const t=ln();function i(r,n,s){r.clearRect(0,0,n.width,n.height),n.style||(n.style={}),n.height=s,n.width=s,n.style.height=s+"px",n.style.width=s+"px"}function o(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(n,s,l){let a=l,u=s;typeof a>"u"&&(!s||!s.getContext)&&(a=s,s=void 0),s||(u=o()),a=t.getOptions(a);const h=t.getImageWidth(n.modules.size,a),c=u.getContext("2d"),g=c.createImageData(h,h);return t.qrToImageData(g.data,n,a),i(c,u,h),c.putImageData(g,0,0),u},e.renderToDataURL=function(n,s,l){let a=l;typeof a>"u"&&(!s||!s.getContext)&&(a=s,s=void 0),a||(a={});const u=e.render(n,s,a),h=a.type||"image/png",c=a.rendererOpts||{};return u.toDataURL(h,c.quality)}})(Ue)),Ue}var qe={},qt;function Jn(){if(qt)return qe;qt=1;const e=ln();function t(r,n){const s=r.a/255,l=n+'="'+r.hex+'"';return s<1?l+" "+n+'-opacity="'+s.toFixed(2).slice(1)+'"':l}function i(r,n,s){let l=r+n;return typeof s<"u"&&(l+=" "+s),l}function o(r,n,s){let l="",a=0,u=!1,h=0;for(let c=0;c<r.length;c++){const g=Math.floor(c%n),d=Math.floor(c/n);!g&&!u&&(u=!0),r[c]?(h++,c>0&&g>0&&r[c-1]||(l+=u?i("M",g+s,.5+d+s):i("m",a,0),a=0,u=!1),g+1<n&&r[c+1]||(l+=i("h",h),h=0)):a++}return l}return qe.render=function(n,s,l){const a=e.getOptions(s),u=n.modules.size,h=n.modules.data,c=u+a.margin*2,g=a.color.light.a?"<path "+t(a.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+t(a.color.dark,"stroke")+' d="'+o(h,u,a.margin)+'"/>',v='viewBox="0 0 '+c+" "+c+'"',b='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+v+' shape-rendering="crispEdges">'+g+d+`</svg>
|
|
8
|
-
`;return typeof l=="function"&&l(null,b),b},qe}var Ft;function Yn(){if(Ft)return Y;Ft=1;const e=Tn(),t=Kn(),i=Vn(),o=Jn();function r(n,s,l,a,u){const h=[].slice.call(arguments,1),c=h.length,g=typeof h[c-1]=="function";if(!g&&!e())throw new Error("Callback required as last argument");if(g){if(c<2)throw new Error("Too few arguments provided");c===2?(u=l,l=s,s=a=void 0):c===3&&(s.getContext&&typeof u>"u"?(u=a,a=void 0):(u=a,a=l,l=s,s=void 0))}else{if(c<1)throw new Error("Too few arguments provided");return c===1?(l=s,s=a=void 0):c===2&&!s.getContext&&(a=l,l=s,s=void 0),new Promise(function(d,v){try{const p=t.create(l,a);d(n(p,s,a))}catch(p){v(p)}})}try{const d=t.create(l,a);u(null,n(d,s,a))}catch(d){u(d)}}return Y.create=t.create,Y.toCanvas=r.bind(null,i.render),Y.toDataURL=r.bind(null,i.renderToDataURL),Y.toString=r.bind(null,function(n,s,l){return o.render(n,l)}),Y}var Gn=Yn();const Qn=Sn(Gn),Wn="9remote.cc";function Xn(e){if(e<=0)return"Expired";const t=Math.floor(e/1e3),i=Math.floor(t/60),o=t%60;return`${String(i).padStart(2,"0")}:${String(o).padStart(2,"0")}`}function Ht({text:e,size:t="sm"}){const[i,o]=q(!1);return f("button",{onClick:()=>{navigator.clipboard.writeText(e).catch(()=>{}),o(!0),setTimeout(()=>o(!1),2e3)},className:"glass-btn flex items-center gap-1 text-white/60 hover:text-white flex-shrink-0",style:{padding:t==="lg"?"6px 12px":"4px 8px",fontSize:12},children:[f("span",{className:"material-symbols-outlined",style:{fontSize:14},children:i?"check":"content_copy"}),i?"Copied":"Copy"]})}function Ot({message:e,onConfirm:t,onCancel:i}){return f("div",{className:"fixed inset-0 z-50 flex items-center justify-center",style:{background:"rgba(0,0,0,0.6)"},children:f("div",{className:"glass-card p-5 flex flex-col gap-4 w-72",children:[f("p",{className:"text-sm text-white text-center",children:e}),f("div",{className:"flex gap-2",children:[f("button",{onClick:i,className:"glass-btn flex-1 py-2 text-sm text-white/60 hover:text-white",children:"Cancel"}),f("button",{onClick:t,className:"flex-1 py-2 text-sm font-semibold rounded-xl",style:{background:"var(--brand-500)",color:"#fff"},children:"Confirm"})]})]})})}function Zn({qrUrl:e,oneTimeKey:t,oneTimeKeyExpiresAt:i,permanentKey:o,onGenerateOneTimeKey:r,onRegenerateKey:n}){const s=en(null),[l,a]=q(null),[u,h]=q(null);return ae(()=>{!e||!s.current||Qn.toCanvas(s.current,e,{width:144,margin:1,color:{dark:"#0f1923",light:"#ffffff"}}).catch(()=>{})},[e]),ae(()=>{if(!i){a(null);return}const d=()=>a(i-Date.now());d();const v=setInterval(d,1e3);return()=>clearInterval(v)},[i]),f(j,{children:[u==="oneTime"&&f(Ot,{message:"Generate a new one-time key? The current one will expire immediately.",onConfirm:()=>{h(null),r==null||r()},onCancel:()=>h(null)}),u==="regen"&&f(Ot,{message:"Regenerate permanent key? All existing sessions will be disconnected.",onConfirm:()=>{h(null),n==null||n()},onCancel:()=>h(null)}),f("div",{className:"glass-card p-5 flex flex-col items-center gap-5",children:[f("div",{className:"flex flex-col items-center gap-2 w-full",children:[f("div",{className:"w-40 h-40 rounded-xl overflow-hidden bg-white p-2 flex items-center justify-center",children:e?f("canvas",{ref:s}):f("span",{className:"material-symbols-outlined text-gray-300 text-6xl",children:"qr_code_2"})}),f("div",{className:"flex items-center gap-1.5 px-3 py-1 rounded-full",style:{background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.1)"},children:[f("span",{className:"material-symbols-outlined text-white/40",style:{fontSize:13},children:"language"}),f("span",{className:"text-xs text-white/50 font-medium",children:Wn})]})]}),f("div",{className:"w-full h-px bg-white/5"}),f("div",{className:"w-full flex flex-col gap-2",children:[f("div",{className:"flex items-center justify-between",children:[f("span",{className:"text-xs text-white/40 uppercase tracking-wider font-medium",children:"One-Time Key"}),l!==null&&f("span",{className:`text-xs font-mono ${l<=0?"text-red-400":"text-white/30"}`,children:Xn(l)})]}),f("div",{className:"w-full dark-card px-4 py-3 flex items-center justify-center min-h-[48px]",children:t?f("p",{className:"font-mono text-xl font-bold tracking-[0.2em]",style:{color:"var(--brand-500)"},children:t}):f("p",{className:"font-mono text-xl font-bold tracking-[0.2em] text-white/15",children:"• • • • • •"})}),f("div",{className:"flex gap-2",children:[t&&f(Ht,{text:t,size:"lg"}),f("button",{onClick:()=>h("oneTime"),className:"glass-btn flex-1 py-1.5 flex items-center justify-center gap-1.5 text-xs text-white/60 hover:text-white",children:[f("span",{className:"material-symbols-outlined",style:{fontSize:14},children:"refresh"}),"New key"]})]})]}),f("div",{className:"w-full h-px bg-white/5"}),f("div",{className:"w-full flex flex-col gap-2",children:[f("span",{className:"text-xs text-white/40 uppercase tracking-wider font-medium",children:"Permanent Key"}),f("div",{className:"w-full dark-card px-3 py-2",children:o?f("p",{className:"font-mono text-xs text-white/50 truncate",children:o}):f("p",{className:"font-mono text-xs text-white/20",children:"— not set —"})}),f("div",{className:"flex gap-2",children:[o&&f(Ht,{text:o,size:"lg"}),f("button",{onClick:()=>h("regen"),className:"glass-btn flex-1 py-1.5 flex items-center justify-center gap-1.5 text-xs text-white/60 hover:text-white",children:[f("span",{className:"material-symbols-outlined",style:{fontSize:14},children:"key"}),"Regenerate"]})]})]})]})]})}const $n=["Starting","Tunneling","Authenticating","Ready"],er="https://9remote.cc/help",tr={screenRecording:"Screen Recording",accessibility:"Accessibility"};function Fe({icon:e,label:t,value:i,accent:o}){return f("div",{className:"dark-card px-3 py-2.5 flex flex-col items-center gap-1 flex-1",children:[f("span",{className:`material-symbols-outlined text-base ${o||"text-white/40"}`,children:e}),f("p",{className:"text-xs text-white/40",children:t}),f("p",{className:"text-sm font-semibold text-white",children:i||"—"})]})}function nr({permissions:e,onRequestPermission:t}){const i=Object.entries(e||{}).filter(([,o])=>!o);return i.length===0?null:f("div",{className:"px-5 py-2 flex gap-2 bg-amber-500/10 border-b border-amber-500/20",children:i.map(([o])=>f("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[f("span",{className:"material-symbols-outlined text-amber-400 text-sm flex-shrink-0",children:"warning"}),f("span",{className:"text-xs text-amber-300 truncate",children:tr[o]}),f("button",{onClick:()=>t(o),className:"ml-auto flex-shrink-0 text-xs px-2 py-0.5 rounded bg-amber-500/20 text-amber-300 hover:bg-amber-500/30",children:"Grant"})]},o))})}function rr({version:e}){return e?f("div",{className:"px-5 py-2 flex items-center gap-2 border-b",style:{background:"rgba(255,87,10,0.08)",borderColor:"rgba(255,87,10,0.2)"},children:[f("span",{className:"material-symbols-outlined text-sm flex-shrink-0",style:{color:"var(--brand-400)"},children:"system_update"}),f("span",{className:"text-xs flex-1",style:{color:"var(--brand-400)"},children:["Version ",e," available"]}),f("button",{onClick:()=>fetch("/api/update",{method:"POST"}).catch(()=>{}),className:"flex-shrink-0 text-xs px-2 py-0.5 rounded font-medium",style:{background:"rgba(255,87,10,0.15)",color:"var(--brand-400)"},children:"Update"})]}):null}function or({conn:e}){return f("div",{className:"flex items-center gap-3 py-2 border-b border-white/5 last:border-0",children:[f("div",{className:"w-2 h-2 rounded-full bg-green-400 flex-shrink-0"}),f("div",{className:"flex-1 min-w-0",children:[f("p",{className:"text-xs text-white font-medium truncate",children:e.ip||"Unknown"}),f("p",{className:"text-xs text-white/30",children:e.connectedAt?new Date(e.connectedAt).toLocaleTimeString():""})]}),f("span",{className:"text-xs text-white/30",children:e.type||"ws"})]})}function ir({step:e,tunnelUrl:t,oneTimeKey:i,oneTimeKeyExpiresAt:o,permanentKey:r,qrUrl:n,latency:s,uptime:l,permissions:a,updateVersion:u,connections:h=[],onRequestPermission:c,onRefresh:g,onStop:d,onGenerateOneTimeKey:v,onRegenerateKey:p,logs:b=[]}){const[_,w]=q("connect"),x=en(null),C=e===3;ae(()=>{var m;_==="log"&&((m=x.current)==null||m.scrollIntoView({behavior:"smooth"}))},[b,_]);const R=C?"text-green-400":e>=1?"text-orange-400":"text-white/40";return f("div",{className:"h-full flex flex-col dot-grid-bg relative overflow-hidden",children:f("div",{className:"flex-1 flex flex-col w-full max-w-sm mx-auto min-h-0",children:[f("div",{className:"flex items-center justify-between px-5 py-4 border-b border-white/5",children:[f("div",{className:"flex items-center gap-3",children:[f("div",{className:"w-7 h-7 rounded-lg flex items-center justify-center",style:{background:"var(--brand-500)"},children:f("span",{className:"material-symbols-outlined text-white text-base",children:"terminal"})}),f("span",{className:"brand-text text-xs",children:"9Remote"})]}),f("button",{onClick:()=>window.open(er,"_blank"),className:"glass-btn w-7 h-7 flex items-center justify-center text-white/40 hover:text-white",children:f("span",{className:"material-symbols-outlined text-sm",children:"help_outline"})})]}),f(rr,{version:u}),f(nr,{permissions:a,onRequestPermission:c}),C?f(j,{children:[f("div",{className:"flex px-5 pt-3 gap-3 border-b border-white/5",children:[{id:"connect",label:"Connection"},{id:"clients",label:`Clients${h.length>0?` (${h.length})`:""}`},{id:"log",label:"Logs"}].map(m=>f("button",{onClick:()=>w(m.id),className:"pb-2 text-xs font-medium border-b-2 transition-colors",style:_===m.id?{borderColor:"var(--brand-500)",color:"var(--brand-500)"}:{borderColor:"transparent",color:"rgba(255,255,255,0.4)"},children:m.label},m.id))}),f("div",{className:"flex-1 overflow-y-auto px-5 py-4 flex flex-col gap-4",children:[_==="connect"&&f(j,{children:[f(Zn,{qrUrl:n,oneTimeKey:i,oneTimeKeyExpiresAt:o,permanentKey:r,tunnelUrl:t,onGenerateOneTimeKey:v,onRegenerateKey:p}),f("div",{className:"flex gap-2",children:[f(Fe,{icon:"wifi",label:"Tunnel",value:"Online",accent:R}),f(Fe,{icon:"network_ping",label:"Latency",value:s?`${s}ms`:null,accent:"text-orange-400"}),f(Fe,{icon:"timer",label:"Uptime",value:l,accent:"text-purple-400"})]})]}),_==="clients"&&f("div",{className:"glass-card p-4 flex flex-col gap-1",children:[f("p",{className:"text-xs text-white/50 font-medium uppercase tracking-wider mb-2",children:"Active Connections"}),h.length===0?f("p",{className:"text-xs text-white/30 text-center py-4",children:"No active connections"}):h.map((m,N)=>f(or,{conn:m},N))]}),_==="log"&&f("div",{className:"flex-1 flex flex-col",children:b.length===0?f("p",{className:"text-xs text-white/30 text-center mt-8",children:"No logs yet"}):f("div",{className:"flex flex-col gap-0.5",children:[b.map((m,N)=>f("p",{className:"text-xs font-mono text-white/50 leading-5 break-all",children:m},N)),f("div",{ref:x})]})})]})]}):f("div",{className:"flex-1 overflow-y-auto px-5 py-4 flex flex-col gap-4",children:f(En,{currentStep:e,steps:$n})}),f("div",{className:"px-5 pb-5 pt-4 flex gap-2 border-t border-white/5",children:[f("button",{onClick:g,className:"glass-btn flex-1 py-2.5 flex items-center justify-center gap-1.5 text-sm font-medium text-white/70 hover:text-white",children:[f("span",{className:"material-symbols-outlined text-base",children:"refresh"}),"Refresh"]}),f("button",{onClick:d,className:"btn-danger flex-1 py-2.5 flex items-center justify-center gap-1.5 text-sm font-medium",children:[f("span",{className:"material-symbols-outlined text-base",children:"stop_circle"}),"Disconnect"]})]})]})})}const He={step:0,tunnelUrl:"",oneTimeKey:"",oneTimeKeyExpiresAt:null,permanentKey:"",qrUrl:"",latency:null,uptime:null},sr={screenRecording:!1,accessibility:!1},zt=200;function lr(){const[e,t]=q(He),[i,o]=q(sr),[r,n]=q([]),[s,l]=q(null),[a,u]=q([]);ae(()=>{fetch("/api/permissions").then(b=>b.json()).then(b=>o(b)).catch(()=>{});const p=new EventSource("/api/ui/events");return p.onmessage=b=>{try{const _=JSON.parse(b.data);_.type==="state"?t({step:_.step??0,tunnelUrl:_.tunnelUrl??"",oneTimeKey:_.oneTimeKey??"",oneTimeKeyExpiresAt:_.oneTimeKeyExpiresAt??null,permanentKey:_.permanentKey??"",qrUrl:_.qrUrl??"",latency:_.latency??null,uptime:_.uptime??null}):_.type==="log"?n(w=>{const x=[...w,_.message];return x.length>zt?x.slice(-zt):x}):_.type==="updateAvailable"?l(_.version):_.type==="permissions"?o(_):_.type==="connections"&&u(_.connections??[])}catch{}},p.onerror=()=>{},()=>p.close()},[]);const h=async p=>{await fetch("/api/permissions/request",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:p})}).catch(()=>{})},c=()=>{fetch("/api/ui/restart",{method:"POST"}).catch(()=>{}),t(He)},g=()=>{fetch("/api/ui/stop",{method:"POST"}).catch(()=>{}),t(He)},d=async()=>{const p=await fetch("/api/key/one-time",{method:"POST"}).catch(()=>null);if(!(p!=null&&p.ok))return;const b=await p.json().catch(()=>null);b!=null&&b.oneTimeKey&&t(_=>({..._,oneTimeKey:b.oneTimeKey,oneTimeKeyExpiresAt:b.expiresAt,qrUrl:b.qrUrl??_.qrUrl}))},v=async()=>{const p=await fetch("/api/key/regenerate",{method:"POST"}).catch(()=>null);if(!(p!=null&&p.ok))return;const b=await p.json().catch(()=>null);b!=null&&b.permanentKey&&t(_=>({..._,permanentKey:b.permanentKey}))};return f(ir,{step:e.step,tunnelUrl:e.tunnelUrl,oneTimeKey:e.oneTimeKey,oneTimeKeyExpiresAt:e.oneTimeKeyExpiresAt,permanentKey:e.permanentKey,qrUrl:e.qrUrl,latency:e.latency,uptime:e.uptime,permissions:i,updateVersion:s,connections:a,onRequestPermission:h,onRefresh:c,onStop:g,onGenerateOneTimeKey:d,onRegenerateKey:v,logs:r})}yn(f(lr,{}),document.getElementById("root"));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap";@import"https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap";@import"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%;width:100%;overflow:hidden}body{font-family:Inter,sans-serif;background-color:var(--dark-800);color:#fff;-webkit-font-smoothing:antialiased;-webkit-user-select:none;-moz-user-select:none;user-select:none}input,textarea{accent-color:var(--brand-500)}button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.dot-grid-bg{background-color:var(--dark-800);background-image:radial-gradient(circle at 15% 20%,rgba(255,87,10,.2) 0%,transparent 45%),radial-gradient(circle at 85% 80%,rgba(255,87,10,.12) 0%,transparent 45%),linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:100% 100%,100% 100%,40px 40px,40px 40px}.dark-card,.glass-card{background:var(--dark-600);border:1px solid var(--dark-400);border-radius:var(--radius-brand)}.glass-btn{background:#ffffff0f;border:1px solid rgba(255,255,255,.1);border-radius:8px;transition:all .2s ease}.glass-btn:hover{background:#ffffff1a;border-color:#ffffff2e}.btn-danger{background:#dc35451f;border:1px solid rgba(220,53,69,.25);border-radius:var(--radius-brand);color:#ff6b7a;font-weight:600;transition:all .2s ease}.btn-danger:hover{background:#dc354538;border-color:#dc354566}.brand-text{font-family:"Press Start 2P",monospace;color:var(--brand-500);letter-spacing:.05em}.material-symbols-outlined{font-variation-settings:"FILL" 0,"wght" 400,"GRAD" 0,"opsz" 24}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-2{margin-bottom:.5rem}.ml-auto{margin-left:auto}.mt-8{margin-top:2rem}.flex{display:flex}.h-2{height:.5rem}.h-40{height:10rem}.h-7{height:1.75rem}.h-full{height:100%}.h-px{height:1px}.min-h-0{min-height:0px}.min-h-\[48px\]{min-height:48px}.w-2{width:.5rem}.w-40{width:10rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-t{border-top-width:1px}.border-amber-500\/20{border-color:#f59e0b33}.border-white\/5{border-color:#ffffff0d}.bg-amber-500\/10{background-color:#f59e0b1a}.bg-amber-500\/20{background-color:#f59e0b33}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\/10{background-color:#ffffff1a}.bg-white\/5{background-color:#ffffff0d}.p-2{padding:.5rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pb-5{padding-bottom:1.25rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-6xl{font-size:3.75rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-5{line-height:1.25rem}.tracking-\[0\.2em\]{letter-spacing:.2em}.tracking-wider{letter-spacing:.05em}.text-amber-300{--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.text-orange-400{--tw-text-opacity: 1;color:rgb(251 146 60 / var(--tw-text-opacity, 1))}.text-purple-400{--tw-text-opacity: 1;color:rgb(192 132 252 / var(--tw-text-opacity, 1))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\/15{color:#ffffff26}.text-white\/20{color:#fff3}.text-white\/30{color:#ffffff4d}.text-white\/40{color:#fff6}.text-white\/50{color:#ffffff80}.text-white\/60{color:#fff9}.text-white\/70{color:#ffffffb3}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:root{--brand-500: #FF570A;--brand-600: #e04400;--brand-400: #ff6e33;--dark-400: #404040;--dark-500: #252525;--dark-600: #1a1a1a;--dark-700: #121212;--dark-800: #0d0d0d;--dark-100: #a0a0a0;--radius-brand: 12px;--radius-brand-lg: 16px}@keyframes pulse-ring{0%{transform:scale(.8);opacity:1}to{transform:scale(1.6);opacity:0}}.pulse-ring{animation:pulse-ring 1.4s ease-out infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spin{animation:spin 1s linear infinite}.last\:border-0:last-child{border-width:0px}.hover\:bg-amber-500\/30:hover{background-color:#f59e0b4d}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}
|