This repository has been archived on 2023-11-14. You can view files and clone it, but cannot push or open issues/pull-requests.
viscord/cordova/www/app.js

49 lines
179 KiB
JavaScript
Raw Permalink Normal View History

2022-07-25 21:23:40 -04:00
const Rf=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerpolicy&&(o.referrerPolicy=l.referrerpolicy),l.crossorigin==="use-credentials"?o.credentials="include":l.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}};Rf();function qs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bs={exports:{}},Ce={},x={exports:{}},M={};/**
2022-07-25 03:33:49 -04:00
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2022-07-25 21:23:40 -04:00
*/var pr=Symbol.for("react.element"),zf=Symbol.for("react.portal"),Mf=Symbol.for("react.fragment"),Df=Symbol.for("react.strict_mode"),Af=Symbol.for("react.profiler"),Of=Symbol.for("react.provider"),Bf=Symbol.for("react.context"),Ff=Symbol.for("react.forward_ref"),Uf=Symbol.for("react.suspense"),jf=Symbol.for("react.memo"),$f=Symbol.for("react.lazy"),Au=Symbol.iterator;function Hf(e){return e===null||typeof e!="object"?null:(e=Au&&e[Au]||e["@@iterator"],typeof e=="function"?e:null)}var ea={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ta=Object.assign,na={};function Sn(e,t,n){this.props=e,this.context=t,this.refs=na,this.updater=n||ea}Sn.prototype.isReactComponent={};Sn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Sn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ra(){}ra.prototype=Sn.prototype;function Mi(e,t,n){this.props=e,this.context=t,this.refs=na,this.updater=n||ea}var Di=Mi.prototype=new ra;Di.constructor=Mi;ta(Di,Sn.prototype);Di.isPureReactComponent=!0;var Ou=Array.isArray,la=Object.prototype.hasOwnProperty,Ai={current:null},oa={key:!0,ref:!0,__self:!0,__source:!0};function ia(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)la.call(t,r)&&!oa.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1<u){for(var s=Array(u),a=0;a<u;a++)s[a]=arguments[a+2];l.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)l[r]===void 0&&(l[r]=u[r]);return{$$typeof:pr,type:e,key:o,ref:i,props:l,_owner:Ai.current}}function Vf(e,t){return{$$typeof:pr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Oi(e){return typeof e=="object"&&e!==null&&e.$$typeof===pr}function Qf(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Bu=/\/+/g;function no(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Qf(""+e.key):t.toString(36)}function Kr(e,t,n,r,l){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case pr:case zf:i=!0}}if(i)return i=e,l=l(i),e=r===""?"."+no(i,0):r,Ou(l)?(n="",e!=null&&(n=e.replace(Bu,"$&/")+"/"),Kr(l,t,n,"",function(a){return a})):l!=null&&(Oi(l)&&(l=Vf(l,n+(!l.key||i&&i.key===l.key?"":(""+l.key).replace(Bu,"$&/")+"/")+e)),t.push(l)),1;if(i=0,r=r===""?".":r+":",Ou(e))for(var u=0;u<e.length;u++){o=e[u];var s=r+no(o,u);i+=Kr(o,t,n,s,l)}else if(s=Hf(e),typeof s=="function")for(e=s.call(e),u=0;!(o=e.next()).done;)o=o.value,s=r+no(o,u++),i+=Kr(o,t,n,s,l);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Cr(e,t,n){if(e==null)return e;var r=[],l=0;return Kr(e,r,"","",function(o){return t.call(n,o,l++)}),r}function Wf(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var de={current:null},Yr={transition:null},Kf={ReactCurrentDispatcher:de,ReactCurrentBatchConfig:Yr,ReactCurrentOwner:Ai};M.Children={map:Cr,forEach:function(e,t,n){Cr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Cr(e,function(){t++}),t},toArray:function(e){return Cr(e,function(t){return t})||[]},only:function(e){if(!Oi(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};M.Component=Sn;M.Fragment=Mf;M.Profiler=Af;M.Pure
2022-07-25 03:33:49 -04:00
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2022-07-25 21:23:40 -04:00
*/(function(e){function t(P,R){var z=P.length;P.push(R);e:for(;0<z;){var W=z-1>>>1,J=P[W];if(0<l(J,R))P[W]=R,P[z]=J,z=W;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var R=P[0],z=P.pop();if(z!==R){P[0]=z;e:for(var W=0,J=P.length,kr=J>>>1;W<kr;){var Nt=2*(W+1)-1,to=P[Nt],Pt=Nt+1,Er=P[Pt];if(0>l(to,z))Pt<J&&0>l(Er,to)?(P[W]=Er,P[Pt]=z,W=Pt):(P[W]=to,P[Nt]=z,W=Nt);else if(Pt<J&&0>l(Er,z))P[W]=Er,P[Pt]=z,W=Pt;else break e}}return R}function l(P,R){var z=P.sortIndex-R.sortIndex;return z!==0?z:P.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],a=[],h=1,g=null,p=3,m=!1,y=!1,w=!1,L=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(P){for(var R=n(a);R!==null;){if(R.callback===null)r(a);else if(R.startTime<=P)r(a),R.sortIndex=R.expirationTime,t(s,R);else break;R=n(a)}}function v(P){if(w=!1,d(P),!y)if(n(s)!==null)y=!0,bl(S);else{var R=n(a);R!==null&&eo(v,R.startTime-P)}}function S(P,R){y=!1,w&&(w=!1,f(_),_=-1),m=!0;var z=p;try{for(d(R),g=n(s);g!==null&&(!(g.expirationTime>R)||P&&!b());){var W=g.callback;if(typeof W=="function"){g.callback=null,p=g.priorityLevel;var J=W(g.expirationTime<=R);R=e.unstable_now(),typeof J=="function"?g.callback=J:g===n(s)&&r(s),d(R)}else r(s);g=n(s)}if(g!==null)var kr=!0;else{var Nt=n(a);Nt!==null&&eo(v,Nt.startTime-R),kr=!1}return kr}finally{g=null,p=z,m=!1}}var E=!1,C=null,_=-1,D=5,I=-1;function b(){return!(e.unstable_now()-I<D)}function Ke(){if(C!==null){var P=e.unstable_now();I=P;var R=!0;try{R=C(!0,P)}finally{R?se():(E=!1,C=null)}}else E=!1}var se;if(typeof c=="function")se=function(){c(Ke)};else if(typeof MessageChannel<"u"){var Du=new MessageChannel,If=Du.port2;Du.port1.onmessage=Ke,se=function(){If.postMessage(null)}}else se=function(){L(Ke,0)};function bl(P){C=P,E||(E=!0,se())}function eo(P,R){_=L(function(){P(e.unstable_now())},R)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_continueExecution=function(){y||m||(y=!0,bl(S))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(P){switch(p){case 1:case 2:case 3:var R=3;break;default:R=p}var z=p;p=R;try{return P()}finally{p=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,R){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var z=p;p=P;try{return R()}finally{p=z}},e.unstable_scheduleCallback=function(P,R,z){var W=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?W+z:W):z=W,P){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=z+J,P={id:h++,callback:R,priorityLevel:P,startTime:z,expirationTime:J,sortIndex:-1},z>W?(P.sortIndex=z,t(a,P),n(s)===null&&P===n(a)&&(w?(f(_),_=-1):w=!0,eo(v,z-W))):(P.sortIndex=J,t(s,P),y||m||(y=!0,bl(S))),P},e.unstable_shouldYield=b,e.unstable_wrapCallback=function(P){var R=p;return function(){var z=p;p=R;try{return P.apply(this,arguments)}finally{p=z}}}})(sa);(function(e){e.exports=sa})(ua);/**
2022-07-25 03:33:49 -04:00
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2022-07-25 21:23:40 -04:00
*/var aa=x.exports,Ee=ua.exports;function k(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ca=new Set,Gn={};function jt(e,t){an(e,t),an(e+"Capture",t)}function an(e,t){for(Gn[e]=t,e=0;e<t.length;e++)ca.add(t[e])}var qe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oo=Object.prototype.hasOwnProperty,Yf=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Fu={},Uu={};function Gf(e){return Oo.call(Uu,e)?!0:Oo.call(Fu,e)?!1:Yf.test(e)?Uu[e]=!0:(Fu[e]=!0,!1)}function Xf(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Jf(e,t,n,r){if(t===null||typeof t>"u"||Xf(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function pe(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){re[e]=new pe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];re[t]=new pe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){re[e]=new pe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){re[e]=new pe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){re[e]=new pe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){re[e]=new pe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){re[e]=new pe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){re[e]=new pe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){re[e]=new pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Bi=/[\-:]([a-z])/g;function Fi(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-ad
`+ro+e}var lo=!1;function oo(e,t){if(!e||lo)return"";lo=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var l=a.stack.split(`
2022-07-25 03:33:49 -04:00
`),o=r.stack.split(`
`),i=l.length-1,u=o.length-1;1<=i&&0<=u&&l[i]!==o[u];)u--;for(;1<=i&&0<=u;i--,u--)if(l[i]!==o[u]){if(i!==1||u!==1)do if(i--,u--,0>u||l[i]!==o[u]){var s=`
2022-07-25 21:23:40 -04:00
`+l[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{lo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zn(e):""}function Zf(e){switch(e.tag){case 5:return zn(e.type);case 16:return zn("Lazy");case 13:return zn("Suspense");case 19:return zn("SuspenseList");case 0:case 2:case 15:return e=oo(e.type,!1),e;case 11:return e=oo(e.type.render,!1),e;case 1:return e=oo(e.type,!0),e;default:return""}}function jo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Qt:return"Fragment";case Vt:return"Portal";case Bo:return"Profiler";case ji:return"StrictMode";case Fo:return"Suspense";case Uo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case da:return(e.displayName||"Context")+".Consumer";case fa:return(e._context.displayName||"Context")+".Provider";case $i:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hi:return t=e.displayName||null,t!==null?t:jo(e.type)||"Memo";case lt:t=e._payload,e=e._init;try{return jo(e(t))}catch{}}return null}function qf(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return jo(t);case 8:return t===ji?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function St(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ha(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bf(e){var t=ha(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _r(e){e._valueTracker||(e._valueTracker=bf(e))}function ga(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ha(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ol(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function $o(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $u(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=St(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ma(e,t){t=t.checked,t!=null&&Ui(e,"checked",t,!1)}function Ho(e,t){ma(e,t);var n=St(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Vo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Vo(e,t.type,St(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Hu(e,t,n){if(t.hasOwnProperty("valu
`).replace(ap,"")}function Mr(e,t,n){if(t=fs(t),fs(e)!==t&&n)throw Error(k(425))}function pl(){}var ri=null,li=null;function oi(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ii=typeof setTimeout=="function"?setTimeout:void 0,cp=typeof clearTimeout=="function"?clearTimeout:void 0,ds=typeof Promise=="function"?Promise:void 0,fp=typeof queueMicrotask=="function"?queueMicrotask:typeof ds<"u"?function(e){return ds.resolve(null).then(e).catch(dp)}:ii;function dp(e){setTimeout(function(){throw e})}function wo(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),bn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);bn(t)}function ht(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function ps(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var En=Math.random().toString(36).slice(2),He="__reactFiber$"+En,lr="__reactProps$"+En,be="__reactContainer$"+En,ui="__reactEvents$"+En,pp="__reactListeners$"+En,hp="__reactHandles$"+En;function It(e){var t=e[He];if(t)return t;for(var n=e.parentNode;n;){if(t=n[be]||n[He]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ps(e);e!==null;){if(n=e[He])return n;e=ps(e)}return t}e=n,n=e.parentNode}return null}function mr(e){return e=e[He]||e[be],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Gt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(k(33))}function Ol(e){return e[lr]||null}var si=[],Xt=-1;function Ct(e){return{current:e}}function U(e){0>Xt||(e.current=si[Xt],si[Xt]=null,Xt--)}function B(e,t){Xt++,si[Xt]=e.current,e.current=t}var kt={},ue=Ct(kt),me=Ct(!1),At=kt;function cn(e,t){var n=e.type.contextTypes;if(!n)return kt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ve(e){return e=e.childContextTypes,e!=null}function hl(){U(me),U(ue)}function hs(e,t,n){if(ue.current!==kt)throw Error(k(168));B(ue,t),B(me,n)}function lc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(k(108,qf(e)||"Unknown",l));return V({},n,r)}function gl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||kt,At=ue.current,B(ue,e),B(me,me.current),!0}function gs(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=lc(e,t,At),r.__reactInternalMemoizedMergedChildContext=e,U(me),U(ue),B(ue,e)):U(me),B(me,n)}var Ge=null,Bl=!1,So=!1;function oc(e){Ge===null?Ge=[e]:Ge.push(e)}function gp(e){Bl=!0,oc(e)}function xt(){if(!So&&Ge!==null){So=!0;var e=0,t=O;try{var n=Ge;for(O=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ge=null,Bl=!1}catch(l){throw Ge!==null&&(Ge=Ge.slice(e+1)),Ia(Qi,xt),l}finally{O=t,So=!1}}return null}var Jt=[],Zt=0,ml=null,vl=0,Ne=[],Pe=0,Ot=null,Xe=1,Je="";function Tt(e,t){Jt[Zt++]=vl,Jt[Zt++]=ml,ml=e,vl=t}function ic(e,t,n){Ne[Pe++]=Xe,Ne[Pe++]=Je,Ne[Pe++]=Ot,Ot=e;var r=Xe;e=Je;var l=32-Be(r)-1;r&=~(1<<l),n+=1;var o=32-Be(t)+l;if(30<o){var i=l-l%5;o=(r&(1<<i)-1).toString(32),r>>=i,l-=i,Xe=1<<32-Be(t)+l|n<<l|r,Je=o+e}else Xe=1<<o|n<<l|r,Je=e}function bi(e){e.return!==null&&(Tt(e,1),ic(e,1,0))}function eu(e){for(;e===ml;)ml=Jt[--Zt],Jt[Zt]=null,vl=Jt[--Zt],Jt[Zt]=null;for(;e===Ot;)Ot=Ne[--Pe],Ne[Pe]=null,Je=Ne[--Pe],Ne[Pe]=null,Xe=Ne[--Pe],Ne[Pe]=null}var ke=null,Se=null,j=!1,Oe=null;function uc(e,t){var n=Te(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.del
2022-07-25 03:33:49 -04:00
Error generating stack: `+o.message+`
2022-07-25 21:23:40 -04:00
`+o.stack}return{value:e,source:t,stack:l,digest:null}}function _o(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function hi(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var xp=typeof WeakMap=="function"?WeakMap:Map;function Ac(e,t,n){n=Ze(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){_l||(_l=!0,xi=r),hi(e,t)},n}function Oc(e,t,n){n=Ze(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){hi(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){hi(e,t),typeof r!="function"&&(mt===null?mt=new Set([this]):mt.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function _s(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new xp;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Fp.bind(null,e,t,n),t.then(e,e))}function Ns(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ps(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ze(-1,1),t.tag=2,gt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var _p=nt.ReactCurrentOwner,ge=!1;function ae(e,t,n,r){t.child=e===null?hc(t,null,n,r):dn(t,e.child,n,r)}function Ts(e,t,n,r,l){n=n.render;var o=t.ref;return on(t,l),r=fu(e,t,n,r,o,l),n=du(),e!==null&&!ge?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,tt(e,t,l)):(j&&n&&bi(t),t.flags|=1,ae(e,t,r,l),t.child)}function Ls(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!Eu(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Bc(e,t,o,r,l)):(e=rl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&l)===0){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:tr,n(i,r)&&e.ref===t.ref)return tt(e,t,l)}return t.flags|=1,e=yt(o,r),e.ref=t.ref,e.return=t,t.child=e}function Bc(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(tr(o,r)&&e.ref===t.ref)if(ge=!1,t.pendingProps=r=o,(e.lanes&l)!==0)(e.flags&131072)!==0&&(ge=!0);else return t.lanes=e.lanes,tt(e,t,l)}return gi(e,t,n,r,l)}function Fc(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},B(en,we),we|=n;else{if((n&1073741824)===0)return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,B(en,we),we|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,B(en,we),we|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,B(en,we),we|=r;return ae(e,t,l,n),t.child}function Uc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function gi(e,t,n,r,l){var o=ve(n)?At:ue.current;return o=cn(t,o),on(t,l),n=fu(e,t,n,r,o,l),r=du(),e!==null&&!ge?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,tt(e,t,l)):(j&&r&&bi(t),t.flags|=1,ae(e,t,n,l),t.child)}function Is(e,t,n,r,l){if(ve(n)){var o=!0;gl(t)}else o=!1;if(on(t,l),t.stateNode===null)el(e,t),dc(t,n,r),pi(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,u=t.memoizedProps;i.props=u;var s=i.context,a=n.contextType;typeof a=="object"&&a!==null?a=Re(a):(a=ve(n)?At:ue.current,a=cn(t,a));var h=n.getDerivedStateFromProps,g=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function";g||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==r||s!==a)&&ks(t,i,r,a),ot=!1;var p=t.memoizedState;i.state=p,Sl(t,r,i,l),s=t.memoizedState,u!==r||p!==s||me.current||ot?(typeof h=="function"&&(di(t,n,h,r),s=t.memoizedState),(u=ot||Ss(t,n,u,r,p,s,a))?(g||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="functio
2022-07-25 03:33:49 -04:00
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2022-07-25 21:23:40 -04:00
*/var t0=x.exports,n0=Symbol.for("react.element"),r0=Symbol.for("react.fragment"),l0=Object.prototype.hasOwnProperty,o0=t0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i0={key:!0,ref:!0,__self:!0,__source:!0};function af(e,t,n){var r,l={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)l0.call(t,r)&&!i0.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:n0,type:e,key:o,ref:i,props:l,_owner:o0.current}}Gl.Fragment=r0;Gl.jsx=af;Gl.jsxs=af;(function(e){e.exports=Gl})(Pu);const T=Pu.exports.jsx,Ie=Pu.exports.jsxs;function u0(){const{clientId:e}=x.exports.useContext(Cn),[t,n]=x.exports.useState(null),[r,l]=x.exports.useState(null),{send:o}=Yl({"client:get"(u){n(u)}},[t,e]),i=x.exports.useCallback(()=>{r!==null&&e!==null&&(o("client:rename",{clientId:e,name:r.value}),n(r.value))},[e,t]);return x.exports.useEffect(()=>{e!==null&&r!==null&&o("client:get",e)},[r,e]),T("input",{ref:l,value:t??"",onChange:i})}var yr={},s0=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},cf={},_e={};let Tu;const a0=[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];_e.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};_e.getSymbolTotalCodewords=function(t){return a0[t]};_e.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};_e.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Tu=t};_e.isKanjiModeEnabled=function(){return typeof Tu<"u"};_e.toSJIS=function(t){return Tu(t)};var Xl={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.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: "+n)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,l){if(e.isValid(r))return r;try{return t(r)}catch{return l}}})(Xl);function ff(){this.buffer=[],this.length=0}ff.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var c0=ff;function wr(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}wr.prototype.set=function(e,t,n,r){const l=e*this.size+t;this.data[l]=n,r&&(this.reservedBit[l]=!0)};wr.prototype.get=function(e,t){return this.data[e*this.size+t]};wr.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};wr.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var f0=wr,df={};(function(e){const t=_e.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const l=Math.floor(r/7)+2,o=t(r),i=o===145?26:Math.ceil((o-13)/(2*l-2))*2,u=[o-7];for(let s=1;s<l-1;s++)u[s]=u[s-1]-i;return u.push(6),u.reverse()},e.getPositions=function(r){const l=[],o=e.getRowColCoords(r),i=o.length;for(let u=0;u<i;u++)for(let s=0;s<i;s++)u===0&&s===0||u===0&&s===i-1||u===i-1&&s===0||l.push([o[u],o[s]]);return l}})(df);var pf={};const d0=_e.getSymbolSize,Vs=7;pf.getPositions=function(t){const n=d0(t);return[[0,0],[n-Vs,0],[0,n-Vs]]};var hf={};(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(l){return l!=null&&l!==""&&!isNaN(l)&&l>=0&&l<=7},e.from=functi
]))+`;We.KANJI=new RegExp(fr,"g");We.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");We.BYTE=new RegExp(g0,"g");We.NUMERIC=new RegExp(yf,"g");We.ALPHANUMERIC=new RegExp(h0,"g");const m0=new RegExp("^"+fr+"$"),v0=new RegExp("^"+yf+"$"),y0=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");We.testKanji=function(t){return m0.test(t)};We.testNumeric=function(t){return v0.test(t)};We.testAlphanumeric=function(t){return y0.test(t)};(function(e){const t=Iu,n=We;e.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(o,i){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!t.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?o.ccBits[0]:i<27?o.ccBits[1]:o.ccBits[2]},e.getBestModeForData=function(o){return n.testNumeric(o)?e.NUMERIC:n.testAlphanumeric(o)?e.ALPHANUMERIC:n.testKanji(o)?e.KANJI:e.BYTE},e.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},e.isValid=function(o){return o&&o.bit&&o.ccBits};function r(l){if(typeof l!="string")throw new Error("Param is not a string");switch(l.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: "+l)}}e.from=function(o,i){if(e.isValid(o))return o;try{return r(o)}catch{return i}}})(_t);(function(e){const t=_e,n=Jl,r=Xl,l=_t,o=Iu,i=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,u=t.getBCHDigit(i);function s(p,m,y){for(let w=1;w<=40;w++)if(m<=e.getCapacity(w,y,p))return w}function a(p,m){return l.getCharCountIndicator(p,m)+4}function h(p,m){let y=0;return p.forEach(function(w){y+=a(w.mode,m)+w.getBitsLength()}),y}function g(p,m){for(let y=1;y<=40;y++)if(h(p,y)<=e.getCapacity(y,m,l.MIXED))return y}e.from=function(m,y){return o.isValid(m)?parseInt(m,10):y},e.getCapacity=function(m,y,w){if(!o.isValid(m))throw new Error("Invalid QR Code version");typeof w>"u"&&(w=l.BYTE);const L=t.getSymbolTotalCodewords(m),f=n.getTotalCodewordsCount(m,y),c=(L-f)*8;if(w===l.MIXED)return c;const d=c-a(w,m);switch(w){case l.NUMERIC:return Math.floor(d/10*3);case l.ALPHANUMERIC:return Math.floor(d/11*2);case l.KANJI:return Math.floor(d/13);case l.BYTE:default:return Math.floor(d/8)}},e.getBestVersionForData=function(m,y){let w;const L=r.from(y,r.M);if(Array.isArray(m)){if(m.length>1)return g(m,L);if(m.length===0)return 1;w=m[0]}else w=m;return s(w.mode,w.getLength(),L)},e.getEncodedBits=function(m){if(!o.isValid(m)||m<7)throw new Error("Invalid QR Code version");let y=m<<12;for(;t.getBCHDigit(y)-u>=0;)y^=i<<t.getBCHDigit(y)-u;return m<<12|y}})(vf);var wf={};const Ti=_e,Sf=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,w0=1<<14|1<<12|1<<10|1<<4|1<<1,Qs=Ti.getBCHDigit(Sf);wf.getEncodedBits=function(t,n){const r=t.bit<<3|n;let l=r<<10;for(;Ti.getBCHDigit(l)-Qs>=0;)l^=Sf<<Ti.getBCHDigit(l)-Qs;return(r<<10|l)^w0};var kf={};const S0=_t;function mn(e){this.mode=S0.NUMERIC,this.data=e.toString()}mn.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};mn.prototype.getLength=function(){return this.data.length};mn.prototype.getBitsLength=function(){return mn.getBitsLength(this.data.length)};mn.prototype.write=function(t){let n,r,l;for(n=0;n+3<=this.data.length;n+=3)r=this.data.substr(n,3),l=parseInt(r,10),t.put(l,10);const o=this.data.length-n;o>0&&(r=this.data.substr(n),l=parseInt(r,10),t.put(l,o*3+1))};var k0=mn;const E0=_t,Lo=["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 vn(e){this.mode=E0.ALPHANUMERIC,this.data=e}vn.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};vn.prototype.getLength=function(){return this.data.length};vn.prototype.getBitsLength=function(){return vn.getBitsLength(this.data.length)};vn.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let r=Lo.indexOf(this.data[n])*45;r+=Lo.inde
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var I0=wn,Ef={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,r,l){var o={},i={};i[r]=0;var u=t.PriorityQueue.make();u.push(r,0);for(var s,a,h,g,p,m,y,w,L;!u.empty();){s=u.pop(),a=s.value,g=s.cost,p=n[a]||{};for(h in p)p.hasOwnProperty(h)&&(m=p[h],y=g+m,w=i[h],L=typeof i[h]>"u",(L||w>y)&&(i[h]=y,u.push(h,y),o[h]=a))}if(typeof l<"u"&&typeof i[l]>"u"){var f=["Could not find a path from ",r," to ",l,"."].join("");throw new Error(f)}return o},extract_shortest_path_from_predecessor_list:function(n,r){for(var l=[],o=r;o;)l.push(o),n[o],o=n[o];return l.reverse(),l},find_path:function(n,r,l){var o=t.single_source_shortest_paths(n,r,l);return t.extract_shortest_path_from_predecessor_list(o,l)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,l={},o;n=n||{};for(o in r)r.hasOwnProperty(o)&&(l[o]=r[o]);return l.queue=[],l.sorter=n.sorter||r.default_sorter,l},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var l={value:n,cost:r};this.queue.push(l),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Ef);(function(e){const t=_t,n=k0,r=C0,l=P0,o=I0,i=We,u=_e,s=Ef.exports;function a(f){return unescape(encodeURIComponent(f)).length}function h(f,c,d){const v=[];let S;for(;(S=f.exec(d))!==null;)v.push({data:S[0],index:S.index,mode:c,length:S[0].length});return v}function g(f){const c=h(i.NUMERIC,t.NUMERIC,f),d=h(i.ALPHANUMERIC,t.ALPHANUMERIC,f);let v,S;return u.isKanjiModeEnabled()?(v=h(i.BYTE,t.BYTE,f),S=h(i.KANJI,t.KANJI,f)):(v=h(i.BYTE_KANJI,t.BYTE,f),S=[]),c.concat(d,v,S).sort(function(C,_){return C.index-_.index}).map(function(C){return{data:C.data,mode:C.mode,length:C.length}})}function p(f,c){switch(c){case t.NUMERIC:return n.getBitsLength(f);case t.ALPHANUMERIC:return r.getBitsLength(f);case t.KANJI:return o.getBitsLength(f);case t.BYTE:return l.getBitsLength(f)}}function m(f){return f.reduce(function(c,d){const v=c.length-1>=0?c[c.length-1]:null;return v&&v.mode===d.mode?(c[c.length-1].data+=d.data,c):(c.push(d),c)},[])}function y(f){const c=[];for(let d=0;d<f.length;d++){const v=f[d];switch(v.mode){case t.NUMERIC:c.push([v,{data:v.data,mode:t.ALPHANUMERIC,length:v.length},{data:v.data,mode:t.BYTE,length:v.length}]);break;case t.ALPHANUMERIC:c.push([v,{data:v.data,mode:t.BYTE,length:v.length}]);break;case t.KANJI:c.push([v,{data:v.data,mode:t.BYTE,length:a(v.data)}]);break;case t.BYTE:c.push([{data:v.data,mode:t.BYTE,length:a(v.data)}])}}return c}function w(f,c){const d={},v={start:{}};let S=["start"];for(let E=0;E<f.length;E++){const C=f[E],_=[];for(let D=0;D<C.length;D++){const I=C[D],b=""+E+D;_.push(b),d[b]={node:I,lastCount:0},v[b]={};for(let Ke=0;Ke<S.length;Ke++){const se=S[Ke];d[se]&&d[se].node.mode===I.mode?(v[se][b]=p(d[se].lastCount+I.length,I.mode)-p(d[se].lastCount,I.mode),d[se].lastCount+=I.length):(d[se]&&(d[se].lastCount=I.length),v[se][b]=p(I.length,I.mode)+4+t.getCharCountIndicator(I.mode,c))}}S=_}for(let E=0;E<S.length;E++)v[S[E]].end=0;return{map:v,table:d}}function L(f,c){let d;const v=t.getBestModeForData(f);if(d=t.from(c,v),d!==t.BYTE&&d.bit<v.bit)throw new Error('"'+f+'" cannot be encoded with mode '+t.toString(d)+`.
Suggested mode is: `+t.toString(v));switch(d===t.KANJI&&!u.isKanjiModeEnabled()&&(d=t.BYTE),d){case t.NUMERIC:return new n(f);case t.ALPHANUMERIC:return new r(f);case t.KANJI:return new o(f);case t.BYTE:return new l(f)}}e.fromArray=function(c){return c.reduce(function(d,v){return typeof v=="string"?d.push(L(v,null)):v.data&&d.push(L(v.data,v.mode)),d},[])},e.fromString=function(c,d){const v=g(c,u.isKanjiModeEnabled()),S=y(v),E=w(S,d),C=s.find_path(E.map,"start","end"),_=[];for(let D=1;D<C.length-1;D++)_.push(E.table[C[D]].node);return e.fromArray(m(_))},e.rawSplit=function(c){return e.fromArray(g(c,u.isKanjiModeEnabled()))}})(kf);const ql=_e,Io=Xl,R0=c0,z0=f0,M0=df,D0=pf,Li=hf,Ii=Jl,A0=p0,Rl=vf,O0=wf,B0=_t,Ro=kf;function F0(e,t){const n=e.size,r=D0.getPositions(t);for(let l=0;l<r.length;l++){const o=r[l][0],i=r[l][1];for(let u=-1;u<=7;u++)if(!(o+u<=-1||n<=o+u))for(let s=-1;s<=7;s++)i+s<=-1||n<=i+s||(u>=0&&u<=6&&(s===0||s===6)||s>=0&&s<=6&&(u===0||u===6)||u>=2&&u<=4&&s>=2&&s<=4?e.set(o+u,i+s,!0,!0):e.set(o+u,i+s,!1,!0))}}function U0(e){const t=e.size;for(let n=8;n<t-8;n++){const r=n%2===0;e.set(n,6,r,!0),e.set(6,n,r,!0)}}function j0(e,t){const n=M0.getPositions(t);for(let r=0;r<n.length;r++){const l=n[r][0],o=n[r][1];for(let i=-2;i<=2;i++)for(let u=-2;u<=2;u++)i===-2||i===2||u===-2||u===2||i===0&&u===0?e.set(l+i,o+u,!0,!0):e.set(l+i,o+u,!1,!0)}}function $0(e,t){const n=e.size,r=Rl.getEncodedBits(t);let l,o,i;for(let u=0;u<18;u++)l=Math.floor(u/3),o=u%3+n-8-3,i=(r>>u&1)===1,e.set(l,o,i,!0),e.set(o,l,i,!0)}function zo(e,t,n){const r=e.size,l=O0.getEncodedBits(t,n);let o,i;for(o=0;o<15;o++)i=(l>>o&1)===1,o<6?e.set(o,8,i,!0):o<8?e.set(o+1,8,i,!0):e.set(r-15+o,8,i,!0),o<8?e.set(8,r-o-1,i,!0):o<9?e.set(8,15-o-1+1,i,!0):e.set(8,15-o-1,i,!0);e.set(r-8,8,1,!0)}function H0(e,t){const n=e.size;let r=-1,l=n-1,o=7,i=0;for(let u=n-1;u>0;u-=2)for(u===6&&u--;;){for(let s=0;s<2;s++)if(!e.isReserved(l,u-s)){let a=!1;i<t.length&&(a=(t[i]>>>o&1)===1),e.set(l,u-s,a),o--,o===-1&&(i++,o=7)}if(l+=r,l<0||n<=l){l-=r,r=-r;break}}}function V0(e,t,n){const r=new R0;n.forEach(function(s){r.put(s.mode.bit,4),r.put(s.getLength(),B0.getCharCountIndicator(s.mode,e)),s.write(r)});const l=ql.getSymbolTotalCodewords(e),o=Ii.getTotalCodewordsCount(e,t),i=(l-o)*8;for(r.getLengthInBits()+4<=i&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const u=(i-r.getLengthInBits())/8;for(let s=0;s<u;s++)r.put(s%2?17:236,8);return Q0(r,e,t)}function Q0(e,t,n){const r=ql.getSymbolTotalCodewords(t),l=Ii.getTotalCodewordsCount(t,n),o=r-l,i=Ii.getBlocksCount(t,n),u=r%i,s=i-u,a=Math.floor(r/i),h=Math.floor(o/i),g=h+1,p=a-h,m=new A0(p);let y=0;const w=new Array(i),L=new Array(i);let f=0;const c=new Uint8Array(e.buffer);for(let C=0;C<i;C++){const _=C<s?h:g;w[C]=c.slice(y,y+_),L[C]=m.encode(w[C]),y+=_,f=Math.max(f,_)}const d=new Uint8Array(r);let v=0,S,E;for(S=0;S<f;S++)for(E=0;E<i;E++)S<w[E].length&&(d[v++]=w[E][S]);for(S=0;S<p;S++)for(E=0;E<i;E++)d[v++]=L[E][S];return d}function W0(e,t,n,r){let l;if(Array.isArray(e))l=Ro.fromArray(e);else if(typeof e=="string"){let a=t;if(!a){const h=Ro.rawSplit(e);a=Rl.getBestVersionForData(h,n)}l=Ro.fromString(e,a||40)}else throw new Error("Invalid data");const o=Rl.getBestVersionForData(l,n);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=o;else if(t<o)throw new Error(`
The chosen QR Code version cannot contain this amount of data.
Minimum version required to store current data is: `+o+`.
`);const i=V0(t,n,l),u=ql.getSymbolSize(t),s=new z0(u);return F0(s,t),U0(s),j0(s,t),zo(s,n,0),t>=7&&$0(s,t),H0(s,i),isNaN(r)&&(r=Li.getBestMask(s,zo.bind(null,s,n))),Li.applyMask(r,s),zo(s,n,r),{modules:s,version:t,errorCorrectionLevel:n,maskPattern:r,segments:l}}cf.create=function(t,n){if(typeof t>"u"||t==="")throw new Error("No input text");let r=Io.M,l,o;return typeof n<"u"&&(r=Io.from(n.errorCorrectionLevel,Io.M),l=Rl.from(n.version),o=Li.from(n.maskPattern),n.toSJISFunc&&ql.setToSJISFunction(n.toSJISFunc)),W0(t,l,r,o)};var Cf={},Ru={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(o){return[o,o]}))),r.length===6&&r.push("F","F");const l=parseInt(r.join(""),16);return{r:l>>24&255,g:l>>16&255,b:l>>8&255,a:l&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const l=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,o=r.width&&r.width>=21?r.width:void 0,i=r.scale||4;return{width:o,scale:o?4:i,margin:l,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,l){return l.width&&l.width>=r+l.margin*2?l.width/(r+l.margin*2):l.scale},e.getImageWidth=function(r,l){const o=e.getScale(r,l);return Math.floor((r+l.margin*2)*o)},e.qrToImageData=function(r,l,o){const i=l.modules.size,u=l.modules.data,s=e.getScale(i,o),a=Math.floor((i+o.margin*2)*s),h=o.margin*s,g=[o.color.light,o.color.dark];for(let p=0;p<a;p++)for(let m=0;m<a;m++){let y=(p*a+m)*4,w=o.color.light;if(p>=h&&m>=h&&p<a-h&&m<a-h){const L=Math.floor((p-h)/s),f=Math.floor((m-h)/s);w=g[u[L*i+f]?1:0]}r[y++]=w.r,r[y++]=w.g,r[y++]=w.b,r[y]=w.a}}})(Ru);(function(e){const t=Ru;function n(l,o,i){l.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=i,o.width=i,o.style.height=i+"px",o.style.width=i+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(o,i,u){let s=u,a=i;typeof s>"u"&&(!i||!i.getContext)&&(s=i,i=void 0),i||(a=r()),s=t.getOptions(s);const h=t.getImageWidth(o.modules.size,s),g=a.getContext("2d"),p=g.createImageData(h,h);return t.qrToImageData(p.data,o,s),n(g,a,h),g.putImageData(p,0,0),a},e.renderToDataURL=function(o,i,u){let s=u;typeof s>"u"&&(!i||!i.getContext)&&(s=i,i=void 0),s||(s={});const a=e.render(o,i,s),h=s.type||"image/png",g=s.rendererOpts||{};return a.toDataURL(h,g.quality)}})(Cf);var xf={};const K0=Ru;function Ws(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function Mo(e,t,n){let r=e+t;return typeof n<"u"&&(r+=" "+n),r}function Y0(e,t,n){let r="",l=0,o=!1,i=0;for(let u=0;u<e.length;u++){const s=Math.floor(u%t),a=Math.floor(u/t);!s&&!o&&(o=!0),e[u]?(i++,u>0&&s>0&&e[u-1]||(r+=o?Mo("M",s+n,.5+a+n):Mo("m",l,0),l=0,o=!1),s+1<t&&e[u+1]||(r+=Mo("h",i),i=0)):l++}return r}xf.render=function(t,n,r){const l=K0.getOptions(n),o=t.modules.size,i=t.modules.data,u=o+l.margin*2,s=l.color.light.a?"<path "+Ws(l.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",a="<path "+Ws(l.color.dark,"stroke")+' d="'+Y0(i,o,l.margin)+'"/>',h='viewBox="0 0 '+u+" "+u+'"',g=l.width?'width="'+l.width+'" height="'+l.width+'" ':"",p='<svg xmlns="http://www.w3.org/2000/svg" '+g+h+' shape-rendering="crispEdges">'+s+a+`</svg>
`;return typeof r=="function"&&r(null,p),p};const G0=s0,Ri=cf,_f=Cf,X0=xf;function zu(e,t,n,r,l){const o=[].slice.call(arguments,1),i=o.length,u=typeof o[i-1]=="function";if(!u&&!G0())throw new Error("Callback required as last argument");if(u){if(i<2)throw new Error("Too few arguments provided");i===2?(l=n,n=t,t=r=void 0):i===3&&(t.getContext&&typeof l>"u"?(l=r,r=void 0):(l=r,r=n,n=t,t=void 0))}else{if(i<1)throw new Error("Too few arguments provided");return i===1?(n=t,t=r=void 0):i===2&&!t.getContext&&(r=n,n=t,t=void 0),new Promise(function(s,a){try{const h=Ri.create(n,r);s(e(h,t,r))}catch(h){a(h)}})}try{const s=Ri.create(n,r);l(null,e(s,t,r))}catch(s){l(s)}}yr.create=Ri.create;yr.toCanvas=zu.bind(null,_f.render);yr.toDataURL=zu.bind(null,_f.renderToDataURL);yr.toString=zu.bind(null,function(e,t,n){return X0.render(e,n)});function J0(){const{homeServer:e}=x.exports.useContext(dr),{clientId:t}=x.exports.useContext(Cn),[n,r]=x.exports.useState(null);return x.exports.useEffect(()=>{(async()=>r(await yr.toDataURL("loginv1|"+e+"|"+t)))()},[t,e]),T("img",{src:n??void 0})}function Ks(){return T("span",{style:{fontWeight:"bold",marginRight:"8px",marginLeft:"8px"},children:"#"})}function Z0(){const[e,t]=x.exports.useState([]),[n,r]=x.exports.useState({}),{channel:l,setChannel:o}=x.exports.useContext(Mu),{clientId:i}=x.exports.useContext(Cn),{setHomeServer:u}=x.exports.useContext(dr),{send:s}=Yl({"channels:list"(g){t(g)},"channel:add"(g){t([...e,g])},"message:message"(g){l!==g.channel&&r({...n,[g.channel]:(n[g.channel]??0)+1})}},[e,n]);x.exports.useEffect(()=>{console.log("unreads",n)},[n]),x.exports.useEffect(()=>{e.length===0&&s("channels:list")},[e]),x.exports.useEffect(()=>{console.log(l,e),e.length!==0&&l===null&&(console.log("this is what setChannel is",o),o(e[0].uid))},[l,e]),x.exports.useEffect(()=>{!l||r({...n,[l]:0})},[l]),x.exports.useEffect(()=>{i!==null&&s("client:get",i)},[i]);const a=x.exports.useRef(null),h=x.exports.useCallback(()=>{if(a.current===null)return;const g=a.current.value;a.current.value="",s("channel:add",{name:g})},[]);return Ie("div",{style:{height:"100%",background:"#21222c"},children:[T("br",{}),e.map(g=>Ie("div",{style:{margin:"8px 0px",color:l===g.uid?"cyan":"inherit",cursor:"pointer"},onClick:()=>{o(g.uid)},children:[T(Ks,{}),g.uid in n&&n[g.uid]>0&&Ie("span",{style:{paddingRight:"8px"},children:["(",n[g.uid],")"]}),T("span",{style:{fontWeight:(n[g.uid]??0)>0?"bold":"300"},children:g.name}),T("a",{style:{color:"rgba(0, 100, 200, 1)",marginLeft:"8px",fontSize:"10px"},href:"#",onClick:()=>{},children:"Delete"})]},g.uid)),T(Ks,{}),T("input",{ref:a,style:{background:"#343746",border:"none",padding:"8px",borderRadius:"8px",outline:"none",color:"white",fontSize:"16px",width:"90px"}}),T("button",{onClick:h,style:{marginLeft:"8px",background:"#bd93f9",border:"none",color:"white",padding:"8px",fontSize:"16px",cursor:"pointer",borderRadius:"8px"},children:"ADD"}),T(u0,{}),T("br",{}),T("button",{onClick:()=>u(null),children:"leave"}),T("br",{}),T(J0,{})]})}var Vr,q0=new Uint8Array(16);function b0(){if(!Vr&&(Vr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Vr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Vr(q0)}const eh=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function th(e){return typeof e=="string"&&eh.test(e)}var ee=[];for(var Do=0;Do<256;++Do)ee.push((Do+256).toString(16).substr(1));function nh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(ee[e[t+0]]+ee[e[t+1]]+ee[e[t+2]]+ee[e[t+3]]+"-"+ee[e[t+4]]+ee[e[t+5]]+"-"+ee[e[t+6]]+ee[e[t+7]]+"-"+ee[e[t+8]]+ee[e[t+9]]+"-"+ee[e[t+10]]+ee[e[t+11]]+ee[e[t+12]]+ee[e[t+13]]+ee[e[t+14]]+ee[e[t+15]]).toLowerCase();if(!th(n))throw TypeError("Stringified UUID is invalid");return n}function rh(e,t,n){e=e||{};var r=e.random||(e.rng||b0)();if(r[6]=r[6
//# sourceMappingURL=index.743265c4.js.map