From c67a20e889680173bec1c8b7d976d0fa6f4dfe88 Mon Sep 17 00:00:00 2001 From: Solareon <769465+solareon@users.noreply.github.com> Date: Tue, 25 Jun 2024 23:56:50 +0200 Subject: [PATCH] refactor(types): remove unused variables --- web/.gitignore | 2 + web/dist/assets/index-BmNeMFzf.js | 818 ++++++++++++++++++++++++++ web/dist/assets/index-Bw_vSpTC.css | 1 + web/dist/assets/index-b237b9f1.css | 1 - web/dist/assets/index-d0b56479.js | 40 -- web/dist/index.html | 9 +- web/src/components/GroupDashboard.tsx | 5 +- web/src/storage/GroupStore.ts | 23 +- web/src/types/Group.ts | 1 - web/src/utils/fetchReactNui.ts | 39 ++ 10 files changed, 887 insertions(+), 52 deletions(-) create mode 100644 web/dist/assets/index-BmNeMFzf.js create mode 100644 web/dist/assets/index-Bw_vSpTC.css delete mode 100644 web/dist/assets/index-b237b9f1.css delete mode 100644 web/dist/assets/index-d0b56479.js create mode 100644 web/src/utils/fetchReactNui.ts diff --git a/web/.gitignore b/web/.gitignore index fa6be17..2a994f0 100644 --- a/web/.gitignore +++ b/web/.gitignore @@ -19,3 +19,5 @@ npm-debug.log* yarn-debug.log* yarn-error.log* pnpm-lock.yaml + +./dist/** \ No newline at end of file diff --git a/web/dist/assets/index-BmNeMFzf.js b/web/dist/assets/index-BmNeMFzf.js new file mode 100644 index 0000000..476f90e --- /dev/null +++ b/web/dist/assets/index-BmNeMFzf.js @@ -0,0 +1,818 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function hl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vc={exports:{}},aa={},hc={exports:{}},I={};/** + * @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. + */var jr=Symbol.for("react.element"),gp=Symbol.for("react.portal"),yp=Symbol.for("react.fragment"),wp=Symbol.for("react.strict_mode"),kp=Symbol.for("react.profiler"),xp=Symbol.for("react.provider"),Sp=Symbol.for("react.context"),Ep=Symbol.for("react.forward_ref"),Cp=Symbol.for("react.suspense"),Np=Symbol.for("react.memo"),Pp=Symbol.for("react.lazy"),Ps=Symbol.iterator;function _p(e){return e===null||typeof e!="object"?null:(e=Ps&&e[Ps]||e["@@iterator"],typeof e=="function"?e:null)}var gc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yc=Object.assign,wc={};function Rn(e,t,n){this.props=e,this.context=t,this.refs=wc,this.updater=n||gc}Rn.prototype.isReactComponent={};Rn.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")};Rn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function kc(){}kc.prototype=Rn.prototype;function gl(e,t,n){this.props=e,this.context=t,this.refs=wc,this.updater=n||gc}var yl=gl.prototype=new kc;yl.constructor=gl;yc(yl,Rn.prototype);yl.isPureReactComponent=!0;var _s=Array.isArray,xc=Object.prototype.hasOwnProperty,wl={current:null},Sc={key:!0,ref:!0,__self:!0,__source:!0};function Ec(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)xc.call(t,r)&&!Sc.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1>>1,ie=_[Z];if(0>>1;Zi(ba,A))Dti(Wr,ba)?(_[Z]=Wr,_[Dt]=A,Z=Dt):(_[Z]=ba,_[Mt]=A,Z=Mt);else if(Dti(Wr,A))_[Z]=Wr,_[Dt]=A,Z=Dt;else break e}}return z}function i(_,z){var A=_.sortIndex-z.sortIndex;return A!==0?A:_.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var s=[],u=[],f=1,d=null,v=3,h=!1,g=!1,w=!1,T=typeof setTimeout=="function"?setTimeout:null,p=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 m(_){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=_)r(u),z.sortIndex=z.expirationTime,t(s,z);else break;z=n(u)}}function y(_){if(w=!1,m(_),!g)if(n(s)!==null)g=!0,_a(S);else{var z=n(u);z!==null&&Oa(y,z.startTime-_)}}function S(_,z){g=!1,w&&(w=!1,p(b),b=-1),h=!0;var A=v;try{for(m(z),d=n(s);d!==null&&(!(d.expirationTime>z)||_&&!Me());){var Z=d.callback;if(typeof Z=="function"){d.callback=null,v=d.priorityLevel;var ie=Z(d.expirationTime<=z);z=e.unstable_now(),typeof ie=="function"?d.callback=ie:d===n(s)&&r(s),m(z)}else r(s);d=n(s)}if(d!==null)var Hr=!0;else{var Mt=n(u);Mt!==null&&Oa(y,Mt.startTime-z),Hr=!1}return Hr}finally{d=null,v=A,h=!1}}var N=!1,P=null,b=-1,M=5,L=-1;function Me(){return!(e.unstable_now()-L_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(_){switch(v){case 1:case 2:case 3:var z=3;break;default:z=v}var A=v;v=z;try{return _()}finally{v=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,z){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var A=v;v=_;try{return z()}finally{v=A}},e.unstable_scheduleCallback=function(_,z,A){var Z=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0Z?(_.sortIndex=A,t(u,_),n(s)===null&&_===n(u)&&(w?(p(b),b=-1):w=!0,Oa(y,A-Z))):(_.sortIndex=ie,t(s,_),g||h||(g=!0,_a(S))),_},e.unstable_shouldYield=Me,e.unstable_wrapCallback=function(_){var z=v;return function(){var A=v;v=z;try{return _.apply(this,arguments)}finally{v=A}}}})(Oc);_c.exports=Oc;var Dp=_c.exports;/** + * @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. + */var Fp=W,Pe=Dp;function x(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uo=Object.prototype.hasOwnProperty,$p=/^[: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]*$/,bs={},Ts={};function Up(e){return uo.call(Ts,e)?!0:uo.call(bs,e)?!1:$p.test(e)?Ts[e]=!0:(bs[e]=!0,!1)}function Hp(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 Wp(e,t,n,r){if(t===null||typeof t>"u"||Hp(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 ge(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ue[e]=new ge(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ue[t]=new ge(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ue[e]=new ge(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ue[e]=new ge(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){ue[e]=new ge(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ue[e]=new ge(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ue[e]=new ge(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ue[e]=new ge(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ue[e]=new ge(e,5,!1,e.toLowerCase(),null,!1,!1)});var xl=/[\-:]([a-z])/g;function Sl(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-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(xl,Sl);ue[t]=new ge(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(xl,Sl);ue[t]=new ge(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(xl,Sl);ue[t]=new ge(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ue[e]=new ge(e,1,!1,e.toLowerCase(),null,!1,!1)});ue.xlinkHref=new ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ue[e]=new ge(e,1,!1,e.toLowerCase(),null,!0,!0)});function El(e,t,n,r){var i=ue.hasOwnProperty(t)?ue[t]:null;(i!==null?i.type!==0:r||!(2l||i[o]!==a[l]){var s=` +`+i[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=l);break}}}finally{Aa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Xn(e):""}function Vp(e){switch(e.tag){case 5:return Xn(e.type);case 16:return Xn("Lazy");case 13:return Xn("Suspense");case 19:return Xn("SuspenseList");case 0:case 2:case 15:return e=La(e.type,!1),e;case 11:return e=La(e.type.render,!1),e;case 1:return e=La(e.type,!0),e;default:return""}}function mo(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 on:return"Fragment";case an:return"Portal";case co:return"Profiler";case Cl:return"StrictMode";case fo:return"Suspense";case po:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case zc:return(e.displayName||"Context")+".Consumer";case Tc:return(e._context.displayName||"Context")+".Provider";case Nl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Pl:return t=e.displayName||null,t!==null?t:mo(e.type)||"Memo";case vt:t=e._payload,e=e._init;try{return mo(e(t))}catch{}}return null}function Bp(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 mo(t);case 8:return t===Cl?"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 bt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Lc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Yp(e){var t=Lc(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 i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Yr(e){e._valueTracker||(e._valueTracker=Yp(e))}function jc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Lc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zi(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 vo(e,t){var n=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function As(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=bt(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 Ic(e,t){t=t.checked,t!=null&&El(e,"checked",t,!1)}function ho(e,t){Ic(e,t);var n=bt(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")?go(e,t.type,n):t.hasOwnProperty("defaultValue")&&go(e,t.type,bt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ls(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function go(e,t,n){(t!=="number"||zi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Jn=Array.isArray;function kn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Gr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var tr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Gp=["Webkit","ms","Moz","O"];Object.keys(tr).forEach(function(e){Gp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),tr[t]=tr[e]})});function Fc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||tr.hasOwnProperty(e)&&tr[e]?(""+t).trim():t+"px"}function $c(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Fc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Qp=K({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ko(e,t){if(t){if(Qp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(x(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(x(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(x(61))}if(t.style!=null&&typeof t.style!="object")throw Error(x(62))}}function xo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var So=null;function _l(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Eo=null,xn=null,Sn=null;function Rs(e){if(e=Mr(e)){if(typeof Eo!="function")throw Error(x(280));var t=e.stateNode;t&&(t=fa(t),Eo(e.stateNode,e.type,t))}}function Uc(e){xn?Sn?Sn.push(e):Sn=[e]:xn=e}function Hc(){if(xn){var e=xn,t=Sn;if(Sn=xn=null,Rs(e),t)for(e=0;e>>=0,e===0?32:31-(am(e)/om|0)|0}var Qr=64,Kr=4194304;function Zn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ii(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=Zn(l):(a&=o,a!==0&&(r=Zn(a)))}else o=n&~i,o!==0?r=Zn(o):a!==0&&(r=Zn(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ir(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-We(t),e[t]=n}function cm(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=rr),Bs=" ",Ys=!1;function uf(e,t){switch(e){case"keyup":return Dm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ln=!1;function $m(e,t){switch(e){case"compositionend":return cf(t);case"keypress":return t.which!==32?null:(Ys=!0,Bs);case"textInput":return e=t.data,e===Bs&&Ys?null:e;default:return null}}function Um(e,t){if(ln)return e==="compositionend"||!Il&&uf(e,t)?(e=lf(),wi=Al=wt=null,ln=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xs(n)}}function mf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vf(){for(var e=window,t=zi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zi(e.document)}return t}function Rl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Xm(e){var t=vf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&mf(n.ownerDocument.documentElement,n)){if(r!==null&&Rl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Js(n,a);var o=Js(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,sn=null,bo=null,ar=null,To=!1;function Zs(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;To||sn==null||sn!==zi(r)||(r=sn,"selectionStart"in r&&Rl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ar&&wr(ar,r)||(ar=r,r=Di(bo,"onSelect"),0fn||(e.current=Ro[fn],Ro[fn]=null,fn--)}function F(e,t){fn++,Ro[fn]=e.current,e.current=t}var Tt={},pe=It(Tt),ke=It(!1),Qt=Tt;function On(e,t){var n=e.type.contextTypes;if(!n)return Tt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function xe(e){return e=e.childContextTypes,e!=null}function $i(){V(ke),V(pe)}function au(e,t,n){if(pe.current!==Tt)throw Error(x(168));F(pe,t),F(ke,n)}function Cf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(x(108,Bp(e)||"Unknown",i));return K({},n,r)}function Ui(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Tt,Qt=pe.current,F(pe,e),F(ke,ke.current),!0}function ou(e,t,n){var r=e.stateNode;if(!r)throw Error(x(169));n?(e=Cf(e,t,Qt),r.__reactInternalMemoizedMergedChildContext=e,V(ke),V(pe),F(pe,e)):V(ke),F(ke,n)}var et=null,da=!1,Ga=!1;function Nf(e){et===null?et=[e]:et.push(e)}function sv(e){da=!0,Nf(e)}function Rt(){if(!Ga&&et!==null){Ga=!0;var e=0,t=D;try{var n=et;for(D=1;e>=o,i-=o,tt=1<<32-We(t)+i|n<b?(M=P,P=null):M=P.sibling;var L=v(p,P,m[b],y);if(L===null){P===null&&(P=M);break}e&&P&&L.alternate===null&&t(p,P),c=a(L,c,b),N===null?S=L:N.sibling=L,N=L,P=M}if(b===m.length)return n(p,P),Y&&Ft(p,b),S;if(P===null){for(;bb?(M=P,P=null):M=P.sibling;var Me=v(p,P,L.value,y);if(Me===null){P===null&&(P=M);break}e&&P&&Me.alternate===null&&t(p,P),c=a(Me,c,b),N===null?S=Me:N.sibling=Me,N=Me,P=M}if(L.done)return n(p,P),Y&&Ft(p,b),S;if(P===null){for(;!L.done;b++,L=m.next())L=d(p,L.value,y),L!==null&&(c=a(L,c,b),N===null?S=L:N.sibling=L,N=L);return Y&&Ft(p,b),S}for(P=r(p,P);!L.done;b++,L=m.next())L=h(P,p,b,L.value,y),L!==null&&(e&&L.alternate!==null&&P.delete(L.key===null?b:L.key),c=a(L,c,b),N===null?S=L:N.sibling=L,N=L);return e&&P.forEach(function($n){return t(p,$n)}),Y&&Ft(p,b),S}function T(p,c,m,y){if(typeof m=="object"&&m!==null&&m.type===on&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Br:e:{for(var S=m.key,N=c;N!==null;){if(N.key===S){if(S=m.type,S===on){if(N.tag===7){n(p,N.sibling),c=i(N,m.props.children),c.return=p,p=c;break e}}else if(N.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===vt&&uu(S)===N.type){n(p,N.sibling),c=i(N,m.props),c.ref=Gn(p,N,m),c.return=p,p=c;break e}n(p,N);break}else t(p,N);N=N.sibling}m.type===on?(c=Gt(m.props.children,p.mode,y,m.key),c.return=p,p=c):(y=_i(m.type,m.key,m.props,null,p.mode,y),y.ref=Gn(p,c,m),y.return=p,p=y)}return o(p);case an:e:{for(N=m.key;c!==null;){if(c.key===N)if(c.tag===4&&c.stateNode.containerInfo===m.containerInfo&&c.stateNode.implementation===m.implementation){n(p,c.sibling),c=i(c,m.children||[]),c.return=p,p=c;break e}else{n(p,c);break}else t(p,c);c=c.sibling}c=to(m,p.mode,y),c.return=p,p=c}return o(p);case vt:return N=m._init,T(p,c,N(m._payload),y)}if(Jn(m))return g(p,c,m,y);if(Hn(m))return w(p,c,m,y);ni(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,c!==null&&c.tag===6?(n(p,c.sibling),c=i(c,m),c.return=p,p=c):(n(p,c),c=eo(m,p.mode,y),c.return=p,p=c),o(p)):n(p,c)}return T}var Tn=bf(!0),Tf=bf(!1),Vi=It(null),Bi=null,mn=null,$l=null;function Ul(){$l=mn=Bi=null}function Hl(e){var t=Vi.current;V(Vi),e._currentValue=t}function Fo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Cn(e,t){Bi=e,$l=mn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(we=!0),e.firstContext=null)}function Ie(e){var t=e._currentValue;if($l!==e)if(e={context:e,memoizedValue:t,next:null},mn===null){if(Bi===null)throw Error(x(308));mn=e,Bi.dependencies={lanes:0,firstContext:e}}else mn=mn.next=e;return t}var Ht=null;function Wl(e){Ht===null?Ht=[e]:Ht.push(e)}function zf(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Wl(t)):(n.next=i.next,i.next=n),t.interleaved=n,ot(e,r)}function ot(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ht=!1;function Vl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Af(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function rt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Nt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,R&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ot(e,n)}return i=r.interleaved,i===null?(t.next=t,Wl(r)):(t.next=i.next,i.next=t),r.interleaved=t,ot(e,n)}function xi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bl(e,n)}}function cu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Yi(e,t,n,r){var i=e.updateQueue;ht=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var s=l,u=s.next;s.next=null,o===null?a=u:o.next=u,o=s;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==o&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=s))}if(a!==null){var d=i.baseState;o=0,f=u=s=null,l=a;do{var v=l.lane,h=l.eventTime;if((r&v)===v){f!==null&&(f=f.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,w=l;switch(v=t,h=n,w.tag){case 1:if(g=w.payload,typeof g=="function"){d=g.call(h,d,v);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=w.payload,v=typeof g=="function"?g.call(h,d,v):g,v==null)break e;d=K({},d,v);break e;case 2:ht=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,v=i.effects,v===null?i.effects=[l]:v.push(l))}else h={eventTime:h,lane:v,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=h,s=d):f=f.next=h,o|=v;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;v=l,l=v.next,v.next=null,i.lastBaseUpdate=v,i.shared.pending=null}}while(!0);if(f===null&&(s=d),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Jt|=o,e.lanes=o,e.memoizedState=d}}function fu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ka.transition;Ka.transition={};try{e(!1),t()}finally{D=n,Ka.transition=r}}function Kf(){return Re().memoizedState}function dv(e,t,n){var r=_t(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xf(e))Jf(t,n);else if(n=zf(e,t,n,r),n!==null){var i=ve();Ve(n,e,r,i),Zf(n,t,r)}}function pv(e,t,n){var r=_t(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xf(e))Jf(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,l=a(o,n);if(i.hasEagerState=!0,i.eagerState=l,Be(l,o)){var s=t.interleaved;s===null?(i.next=i,Wl(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=zf(e,t,i,r),n!==null&&(i=ve(),Ve(n,e,r,i),Zf(n,t,r))}}function Xf(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function Jf(e,t){or=Qi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Zf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bl(e,n)}}var Ki={readContext:Ie,useCallback:ce,useContext:ce,useEffect:ce,useImperativeHandle:ce,useInsertionEffect:ce,useLayoutEffect:ce,useMemo:ce,useReducer:ce,useRef:ce,useState:ce,useDebugValue:ce,useDeferredValue:ce,useTransition:ce,useMutableSource:ce,useSyncExternalStore:ce,useId:ce,unstable_isNewReconciler:!1},mv={readContext:Ie,useCallback:function(e,t){return Ge().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:pu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ei(4194308,4,Vf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ei(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ei(4,2,e,t)},useMemo:function(e,t){var n=Ge();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ge();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=dv.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var t=Ge();return e={current:e},t.memoizedState=e},useState:du,useDebugValue:Zl,useDeferredValue:function(e){return Ge().memoizedState=e},useTransition:function(){var e=du(!1),t=e[0];return e=fv.bind(null,e[1]),Ge().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Q,i=Ge();if(Y){if(n===void 0)throw Error(x(407));n=n()}else{if(n=t(),oe===null)throw Error(x(349));Xt&30||Rf(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,pu(Df.bind(null,r,a,e),[e]),r.flags|=2048,_r(9,Mf.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Ge(),t=oe.identifierPrefix;if(Y){var n=nt,r=tt;n=(r&~(1<<32-We(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Nr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ke]=t,e[Sr]=r,sd(e,t,!1,!1),t.stateNode=e;e:{switch(o=xo(n,r),n){case"dialog":U("cancel",e),U("close",e),i=r;break;case"iframe":case"object":case"embed":U("load",e),i=r;break;case"video":case"audio":for(i=0;iLn&&(t.flags|=128,r=!0,Qn(a,!1),t.lanes=4194304)}else{if(!r)if(e=Gi(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Qn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Y)return fe(t),null}else 2*q()-a.renderingStartTime>Ln&&n!==1073741824&&(t.flags|=128,r=!0,Qn(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=q(),t.sibling=null,n=G.current,F(G,r?n&1|2:n&1),t):(fe(t),null);case 22:case 23:return is(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ee&1073741824&&(fe(t),t.subtreeFlags&6&&(t.flags|=8192)):fe(t),null;case 24:return null;case 25:return null}throw Error(x(156,t.tag))}function Sv(e,t){switch(Dl(t),t.tag){case 1:return xe(t.type)&&$i(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zn(),V(ke),V(pe),Gl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Yl(t),null;case 13:if(V(G),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));bn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(G),null;case 4:return zn(),null;case 10:return Hl(t.type._context),null;case 22:case 23:return is(),null;case 24:return null;default:return null}}var ii=!1,de=!1,Ev=typeof WeakSet=="function"?WeakSet:Set,C=null;function vn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){X(e,t,r)}else n.current=null}function Qo(e,t,n){try{n()}catch(r){X(e,t,r)}}var Cu=!1;function Cv(e,t){if(zo=Ri,e=vf(),Rl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,l=-1,s=-1,u=0,f=0,d=e,v=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(l=o+i),d!==a||r!==0&&d.nodeType!==3||(s=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)v=d,d=h;for(;;){if(d===e)break t;if(v===n&&++u===i&&(l=o),v===a&&++f===r&&(s=o),(h=d.nextSibling)!==null)break;d=v,v=d.parentNode}d=h}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ao={focusedElem:e,selectionRange:n},Ri=!1,C=t;C!==null;)if(t=C,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,C=e;else for(;C!==null;){t=C;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var w=g.memoizedProps,T=g.memoizedState,p=t.stateNode,c=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:Fe(t.type,w),T);p.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(y){X(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,C=e;break}C=t.return}return g=Cu,Cu=!1,g}function lr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Qo(t,n,a)}i=i.next}while(i!==r)}}function va(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ko(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function fd(e){var t=e.alternate;t!==null&&(e.alternate=null,fd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ke],delete t[Sr],delete t[Io],delete t[ov],delete t[lv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function dd(e){return e.tag===5||e.tag===3||e.tag===4}function Nu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Fi));else if(r!==4&&(e=e.child,e!==null))for(Xo(e,t,n),e=e.sibling;e!==null;)Xo(e,t,n),e=e.sibling}function Jo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Jo(e,t,n),e=e.sibling;e!==null;)Jo(e,t,n),e=e.sibling}var le=null,$e=!1;function pt(e,t,n){for(n=n.child;n!==null;)pd(e,t,n),n=n.sibling}function pd(e,t,n){if(Je&&typeof Je.onCommitFiberUnmount=="function")try{Je.onCommitFiberUnmount(la,n)}catch{}switch(n.tag){case 5:de||vn(n,t);case 6:var r=le,i=$e;le=null,pt(e,t,n),le=r,$e=i,le!==null&&($e?(e=le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):le.removeChild(n.stateNode));break;case 18:le!==null&&($e?(e=le,n=n.stateNode,e.nodeType===8?Ya(e.parentNode,n):e.nodeType===1&&Ya(e,n),gr(e)):Ya(le,n.stateNode));break;case 4:r=le,i=$e,le=n.stateNode.containerInfo,$e=!0,pt(e,t,n),le=r,$e=i;break;case 0:case 11:case 14:case 15:if(!de&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Qo(n,t,o),i=i.next}while(i!==r)}pt(e,t,n);break;case 1:if(!de&&(vn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){X(n,t,l)}pt(e,t,n);break;case 21:pt(e,t,n);break;case 22:n.mode&1?(de=(r=de)||n.memoizedState!==null,pt(e,t,n),de=r):pt(e,t,n);break;default:pt(e,t,n)}}function Pu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ev),t.forEach(function(r){var i=Lv.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function De(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Pv(r/1960))-r,10e?16:e,kt===null)var r=!1;else{if(e=kt,kt=null,Zi=0,R&6)throw Error(x(331));var i=R;for(R|=4,C=e.current;C!==null;){var a=C,o=a.child;if(C.flags&16){var l=a.deletions;if(l!==null){for(var s=0;sq()-ns?Yt(e,0):ts|=n),Se(e,t)}function xd(e,t){t===0&&(e.mode&1?(t=Kr,Kr<<=1,!(Kr&130023424)&&(Kr=4194304)):t=1);var n=ve();e=ot(e,t),e!==null&&(Ir(e,t,n),Se(e,n))}function Av(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xd(e,n)}function Lv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(x(314))}r!==null&&r.delete(t),xd(e,n)}var Sd;Sd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ke.current)we=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return we=!1,kv(e,t,n);we=!!(e.flags&131072)}else we=!1,Y&&t.flags&1048576&&Pf(t,Wi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ci(e,t),e=t.pendingProps;var i=On(t,pe.current);Cn(t,n),i=Kl(null,t,r,e,i,n);var a=Xl();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xe(r)?(a=!0,Ui(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Vl(t),i.updater=ma,t.stateNode=i,i._reactInternals=t,Uo(t,r,e,n),t=Vo(null,t,r,!0,a,n)):(t.tag=0,Y&&a&&Ml(t),me(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ci(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Iv(r),e=Fe(r,e),i){case 0:t=Wo(null,t,r,e,n);break e;case 1:t=xu(null,t,r,e,n);break e;case 11:t=wu(null,t,r,e,n);break e;case 14:t=ku(null,t,r,Fe(r.type,e),n);break e}throw Error(x(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fe(r,i),Wo(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fe(r,i),xu(e,t,r,i,n);case 3:e:{if(ad(t),e===null)throw Error(x(387));r=t.pendingProps,a=t.memoizedState,i=a.element,Af(e,t),Yi(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=An(Error(x(423)),t),t=Su(e,t,r,n,i);break e}else if(r!==i){i=An(Error(x(424)),t),t=Su(e,t,r,n,i);break e}else for(Ce=Ct(t.stateNode.containerInfo.firstChild),Ne=t,Y=!0,Ue=null,n=Tf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(bn(),r===i){t=lt(e,t,n);break e}me(e,t,r,n)}t=t.child}return t;case 5:return Lf(t),e===null&&Do(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Lo(r,i)?o=null:a!==null&&Lo(r,a)&&(t.flags|=32),id(e,t),me(e,t,o,n),t.child;case 6:return e===null&&Do(t),null;case 13:return od(e,t,n);case 4:return Bl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Tn(t,null,r,n):me(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fe(r,i),wu(e,t,r,i,n);case 7:return me(e,t,t.pendingProps,n),t.child;case 8:return me(e,t,t.pendingProps.children,n),t.child;case 12:return me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,F(Vi,r._currentValue),r._currentValue=o,a!==null)if(Be(a.value,o)){if(a.children===i.children&&!ke.current){t=lt(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){o=a.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(a.tag===1){s=rt(-1,n&-n),s.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?s.next=s:(s.next=f.next,f.next=s),u.pending=s}}a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Fo(a.return,n,t),l.lanes|=n;break}s=s.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(x(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Fo(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}me(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Cn(t,n),i=Ie(i),r=r(i),t.flags|=1,me(e,t,r,n),t.child;case 14:return r=t.type,i=Fe(r,t.pendingProps),i=Fe(r.type,i),ku(e,t,r,i,n);case 15:return nd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Fe(r,i),Ci(e,t),t.tag=1,xe(r)?(e=!0,Ui(t)):e=!1,Cn(t,n),qf(t,r,i),Uo(t,r,i,n),Vo(null,t,r,!0,e,n);case 19:return ld(e,t,n);case 22:return rd(e,t,n)}throw Error(x(156,t.tag))};function Ed(e,t){return Kc(e,t)}function jv(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Le(e,t,n,r){return new jv(e,t,n,r)}function os(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Iv(e){if(typeof e=="function")return os(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Nl)return 11;if(e===Pl)return 14}return 2}function Ot(e,t){var n=e.alternate;return n===null?(n=Le(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _i(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")os(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case on:return Gt(n.children,i,a,t);case Cl:o=8,i|=8;break;case co:return e=Le(12,n,t,i|2),e.elementType=co,e.lanes=a,e;case fo:return e=Le(13,n,t,i),e.elementType=fo,e.lanes=a,e;case po:return e=Le(19,n,t,i),e.elementType=po,e.lanes=a,e;case Ac:return ga(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Tc:o=10;break e;case zc:o=9;break e;case Nl:o=11;break e;case Pl:o=14;break e;case vt:o=16,r=null;break e}throw Error(x(130,e==null?e:typeof e,""))}return t=Le(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Gt(e,t,n,r){return e=Le(7,e,r,t),e.lanes=n,e}function ga(e,t,n,r){return e=Le(22,e,r,t),e.elementType=Ac,e.lanes=n,e.stateNode={isHidden:!1},e}function eo(e,t,n){return e=Le(6,e,null,t),e.lanes=n,e}function to(e,t,n){return t=Le(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rv(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ia(0),this.expirationTimes=Ia(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ia(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ls(e,t,n,r,i,a,o,l,s){return e=new Rv(e,t,n,l,s),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Le(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vl(a),e}function Mv(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_d)}catch(e){console.error(e)}}_d(),Pc.exports=_e;var Hv=Pc.exports,ju=Hv;so.createRoot=ju.createRoot,so.hydrateRoot=ju.hydrateRoot;const Wv=({onSelect:e,onClose:t})=>{const[n,r]=W.useState(""),[i,a]=W.useState(""),[o,l]=W.useState(""),[s,u]=W.useState(""),[f,d]=W.useState(!0);W.useEffect(()=>{let h="";n===""?h="Group name is required":o===""?h="Password is required":o!==s&&(h="Passwords do not match"),a(h),d(h!=="")},[o,s,n]);const v=h=>{h.preventDefault(),e({groupName:n,password:o})};return k.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-75 flex justify-center items-center",children:k.jsxs("div",{className:"bg-gray-800 p-6 rounded-lg shadow-md w-full max-w-md",children:[k.jsxs("div",{className:"flex justify-between items-center mb-4",children:[k.jsx("h2",{className:"text-white text-2xl",children:"Create Group"}),k.jsx("button",{onClick:t,className:"text-white text-lg",children:"×"})]}),k.jsxs("form",{onSubmit:v,children:[k.jsxs("div",{className:"mb-4",children:[k.jsx("label",{htmlFor:"groupName",className:"block text-white mb-2",children:"Group Name"}),k.jsx("input",{type:"text",id:"groupName",value:n,onChange:h=>r(h.target.value),className:"w-full p-2 rounded bg-gray-700 text-white"})]}),k.jsxs("div",{className:"mb-4",children:[k.jsx("label",{htmlFor:"password",className:"block text-white mb-2",children:"Password"}),k.jsx("input",{type:"password",id:"password",value:o,onChange:h=>l(h.target.value),className:"w-full p-2 rounded bg-gray-700 text-white"})]}),k.jsxs("div",{className:"mb-4",children:[k.jsx("label",{htmlFor:"verifyPassword",className:"block text-white mb-2",children:"Verify Password"}),k.jsx("input",{type:"password",id:"verifyPassword",value:s,onChange:h=>u(h.target.value),className:"w-full p-2 rounded bg-gray-700 text-white"})]}),k.jsxs("div",{className:"flex justify-end",children:[k.jsx("button",{type:"button",onClick:t,className:"mr-2 px-4 py-2 rounded bg-gray-700 text-white hover:bg-gray-600",children:"Cancel"}),k.jsx("button",{type:"submit",className:`px-4 py-2 rounded text-white ${f?"bg-gray-700 cursor-not-allowed":"bg-green-500 hover:bg-green-400"}`,disabled:f,children:"Submit"})]}),i?k.jsx("div",{className:"mt-4 text-red-500",children:i}):k.jsx("div",{className:"mt-4",children:" "})]})]})})},Vv=({groupId:e,groupName:t,onSelect:n,onClose:r})=>{const[i,a]=W.useState(""),[o,l]=W.useState(""),[s,u]=W.useState(!0);W.useEffect(()=>{let d="";i===""&&(d="Password is required"),l(d),u(d!=="")},[i]);const f=d=>{d.preventDefault(),n({groupId:e,password:i})};return k.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-75 flex justify-center items-center",children:k.jsxs("div",{className:"bg-gray-800 p-6 rounded-lg shadow-md w-full max-w-md",children:[k.jsxs("div",{className:"flex justify-between items-center mb-4",children:[k.jsx("h2",{className:"text-white text-2xl",children:"Join Group"}),k.jsx("button",{onClick:r,className:"text-white text-lg",children:"×"})]}),k.jsxs("form",{onSubmit:f,children:[k.jsxs("div",{className:"mb-4",children:[k.jsx("label",{htmlFor:"groupName",className:"block text-white mb-2",children:"Group Name"}),k.jsx("div",{className:"w-full p-2 rounded bg-gray-700 text-white",children:t})]}),k.jsxs("div",{className:"mb-4",children:[k.jsx("label",{htmlFor:"password",className:"block text-white mb-2",children:"Password"}),k.jsx("input",{type:"password",id:"password",value:i,onChange:d=>a(d.target.value),className:"w-full p-2 rounded bg-gray-700 text-white"})]}),k.jsxs("div",{className:"flex justify-end",children:[k.jsx("button",{type:"button",onClick:r,className:"mr-2 px-4 py-2 rounded bg-gray-700 text-white hover:bg-gray-600",children:"Cancel"}),k.jsx("button",{type:"submit",className:`px-4 py-2 rounded text-white ${s?"bg-gray-700 cursor-not-allowed":"bg-green-500 hover:bg-green-400"}`,disabled:s,children:"Submit"})]}),o?k.jsx("div",{className:"mt-4 text-red-500",children:o}):k.jsx("div",{className:"mt-4",children:" "})]})]})})};var Bv={BASE_URL:"/ui/dist",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Iu=e=>{let t;const n=new Set,r=(f,d)=>{const v=typeof f=="function"?f(t):f;if(!Object.is(v,t)){const h=t;t=d??(typeof v!="object"||v===null)?v:Object.assign({},t,v),n.forEach(g=>g(t,h))}},i=()=>t,s={setState:r,getState:i,getInitialState:()=>u,subscribe:f=>(n.add(f),()=>n.delete(f)),destroy:()=>{(Bv?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,i,s);return s},Yv=e=>e?Iu(e):Iu;var Od={exports:{}},bd={},Td={exports:{}},zd={};/** + * @license React + * use-sync-external-store-shim.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. + */var jn=W;function Gv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qv=typeof Object.is=="function"?Object.is:Gv,Kv=jn.useState,Xv=jn.useEffect,Jv=jn.useLayoutEffect,Zv=jn.useDebugValue;function qv(e,t){var n=t(),r=Kv({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return Jv(function(){i.value=n,i.getSnapshot=t,no(i)&&a({inst:i})},[e,n,t]),Xv(function(){return no(i)&&a({inst:i}),e(function(){no(i)&&a({inst:i})})},[e]),Zv(n),n}function no(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qv(e,n)}catch{return!0}}function e0(e,t){return t()}var t0=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?e0:qv;zd.useSyncExternalStore=jn.useSyncExternalStore!==void 0?jn.useSyncExternalStore:t0;Td.exports=zd;var n0=Td.exports;/** + * @license React + * use-sync-external-store-shim/with-selector.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. + */var Sa=W,r0=n0;function i0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var a0=typeof Object.is=="function"?Object.is:i0,o0=r0.useSyncExternalStore,l0=Sa.useRef,s0=Sa.useEffect,u0=Sa.useMemo,c0=Sa.useDebugValue;bd.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=l0(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=u0(function(){function s(h){if(!u){if(u=!0,f=h,h=r(h),i!==void 0&&o.hasValue){var g=o.value;if(i(g,h))return d=g}return d=h}if(g=d,a0(f,h))return g;var w=r(h);return i!==void 0&&i(g,w)?g:(f=h,d=w)}var u=!1,f,d,v=n===void 0?null:n;return[function(){return s(t())},v===null?void 0:function(){return s(v())}]},[t,n,r,i]);var l=o0(e,a[0],a[1]);return s0(function(){o.hasValue=!0,o.value=l},[l]),c0(l),l};Od.exports=bd;var f0=Od.exports;const d0=hl(f0);var Ad={BASE_URL:"/ui/dist",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:p0}=oa,{useSyncExternalStoreWithSelector:m0}=d0;let Ru=!1;const v0=e=>e;function h0(e,t=v0,n){(Ad?"production":void 0)!=="production"&&n&&!Ru&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Ru=!0);const r=m0(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return p0(r),r}const Mu=e=>{(Ad?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?Yv(e):e,n=(r,i)=>h0(t,r,i);return Object.assign(n,t),n},fs=e=>e?Mu(e):Mu,Ld=fs(e=>({playerData:{source:1,citizenId:"ABCD1234",name:"Testicle"},setPlayerData:t=>e({playerData:t})})),Du=[{id:1,name:"Step 1",isDone:!1},{id:2,name:"Step 2",isDone:!1},{id:3,name:"Step 3",isDone:!1}],jd=fs(e=>({groups:[{id:1,status:"open",GName:"Larrys Group",GPass:"password",Users:3,leader:1,members:[{name:"Larry",CID:"ABCD1234",Player:1},{name:"Barry",CID:"EFGH5678",Player:2},{name:"Harry",CID:"IJKL9101",Player:3}],stage:Du,ScriptCreated:!1},{id:2,status:"open",GName:"Group 2",GPass:"password",Users:2,leader:2,members:[{name:"Larry",CID:"ABCD1234",Player:3}],stage:Du,ScriptCreated:!1}],setGroups:t=>e({groups:t})}));function Fu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function E(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1;i--){var a=n[i],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=a)}return B.head.insertBefore(t,r),e}}var H0="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Lr(){for(var e=12,t="";e-- >0;)t+=H0[Math.random()*62|0];return t}function Fn(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function gs(e){return e.classList?Fn(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function Yd(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function W0(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(Yd(e[n]),'" ')},"").trim()}function Ea(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function ys(e){return e.size!==Xe.size||e.x!==Xe.x||e.y!==Xe.y||e.rotate!==Xe.rotate||e.flipX||e.flipY}function V0(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)"),s={transform:"".concat(a," ").concat(o," ").concat(l)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:s,path:u}}function B0(e){var t=e.transform,n=e.width,r=n===void 0?rl:n,i=e.height,a=i===void 0?rl:i,o=e.startCentered,l=o===void 0?!1:o,s="";return l&&Fd?s+="translate(".concat(t.x/mt-r/2,"em, ").concat(t.y/mt-a/2,"em) "):l?s+="translate(calc(-50% + ".concat(t.x/mt,"em), calc(-50% + ").concat(t.y/mt,"em)) "):s+="translate(".concat(t.x/mt,"em, ").concat(t.y/mt,"em) "),s+="scale(".concat(t.size/mt*(t.flipX?-1:1),", ").concat(t.size/mt*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var Y0=`:root, :host { + --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; + --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; + --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; + --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; + --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; + --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp"; + --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; +} + +svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { + overflow: visible; + box-sizing: content-box; +} + +.svg-inline--fa { + display: var(--fa-display, inline-block); + height: 1em; + overflow: visible; + vertical-align: -0.125em; +} +.svg-inline--fa.fa-2xs { + vertical-align: 0.1em; +} +.svg-inline--fa.fa-xs { + vertical-align: 0em; +} +.svg-inline--fa.fa-sm { + vertical-align: -0.0714285705em; +} +.svg-inline--fa.fa-lg { + vertical-align: -0.2em; +} +.svg-inline--fa.fa-xl { + vertical-align: -0.25em; +} +.svg-inline--fa.fa-2xl { + vertical-align: -0.3125em; +} +.svg-inline--fa.fa-pull-left { + margin-right: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-pull-right { + margin-left: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-li { + width: var(--fa-li-width, 2em); + top: 0.25em; +} +.svg-inline--fa.fa-fw { + width: var(--fa-fw-width, 1.25em); +} + +.fa-layers svg.svg-inline--fa { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; +} + +.fa-layers-counter, .fa-layers-text { + display: inline-block; + position: absolute; + text-align: center; +} + +.fa-layers { + display: inline-block; + height: 1em; + position: relative; + text-align: center; + vertical-align: -0.125em; + width: 1em; +} +.fa-layers svg.svg-inline--fa { + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-text { + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-counter { + background-color: var(--fa-counter-background-color, #ff253a); + border-radius: var(--fa-counter-border-radius, 1em); + box-sizing: border-box; + color: var(--fa-inverse, #fff); + line-height: var(--fa-counter-line-height, 1); + max-width: var(--fa-counter-max-width, 5em); + min-width: var(--fa-counter-min-width, 1.5em); + overflow: hidden; + padding: var(--fa-counter-padding, 0.25em 0.5em); + right: var(--fa-right, 0); + text-overflow: ellipsis; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-counter-scale, 0.25)); + transform: scale(var(--fa-counter-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-bottom-right { + bottom: var(--fa-bottom, 0); + right: var(--fa-right, 0); + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom right; + transform-origin: bottom right; +} + +.fa-layers-bottom-left { + bottom: var(--fa-bottom, 0); + left: var(--fa-left, 0); + right: auto; + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom left; + transform-origin: bottom left; +} + +.fa-layers-top-right { + top: var(--fa-top, 0); + right: var(--fa-right, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-top-left { + left: var(--fa-left, 0); + right: auto; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top left; + transform-origin: top left; +} + +.fa-1x { + font-size: 1em; +} + +.fa-2x { + font-size: 2em; +} + +.fa-3x { + font-size: 3em; +} + +.fa-4x { + font-size: 4em; +} + +.fa-5x { + font-size: 5em; +} + +.fa-6x { + font-size: 6em; +} + +.fa-7x { + font-size: 7em; +} + +.fa-8x { + font-size: 8em; +} + +.fa-9x { + font-size: 9em; +} + +.fa-10x { + font-size: 10em; +} + +.fa-2xs { + font-size: 0.625em; + line-height: 0.1em; + vertical-align: 0.225em; +} + +.fa-xs { + font-size: 0.75em; + line-height: 0.0833333337em; + vertical-align: 0.125em; +} + +.fa-sm { + font-size: 0.875em; + line-height: 0.0714285718em; + vertical-align: 0.0535714295em; +} + +.fa-lg { + font-size: 1.25em; + line-height: 0.05em; + vertical-align: -0.075em; +} + +.fa-xl { + font-size: 1.5em; + line-height: 0.0416666682em; + vertical-align: -0.125em; +} + +.fa-2xl { + font-size: 2em; + line-height: 0.03125em; + vertical-align: -0.1875em; +} + +.fa-fw { + text-align: center; + width: 1.25em; +} + +.fa-ul { + list-style-type: none; + margin-left: var(--fa-li-margin, 2.5em); + padding-left: 0; +} +.fa-ul > li { + position: relative; +} + +.fa-li { + left: calc(var(--fa-li-width, 2em) * -1); + position: absolute; + text-align: center; + width: var(--fa-li-width, 2em); + line-height: inherit; +} + +.fa-border { + border-color: var(--fa-border-color, #eee); + border-radius: var(--fa-border-radius, 0.1em); + border-style: var(--fa-border-style, solid); + border-width: var(--fa-border-width, 0.08em); + padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); +} + +.fa-pull-left { + float: left; + margin-right: var(--fa-pull-margin, 0.3em); +} + +.fa-pull-right { + float: right; + margin-left: var(--fa-pull-margin, 0.3em); +} + +.fa-beat { + -webkit-animation-name: fa-beat; + animation-name: fa-beat; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-bounce { + -webkit-animation-name: fa-bounce; + animation-name: fa-bounce; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); +} + +.fa-fade { + -webkit-animation-name: fa-fade; + animation-name: fa-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-beat-fade { + -webkit-animation-name: fa-beat-fade; + animation-name: fa-beat-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-flip { + -webkit-animation-name: fa-flip; + animation-name: fa-flip; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-shake { + -webkit-animation-name: fa-shake; + animation-name: fa-shake; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 2s); + animation-duration: var(--fa-animation-duration, 2s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin-reverse { + --fa-animation-direction: reverse; +} + +.fa-pulse, +.fa-spin-pulse { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); + animation-timing-function: var(--fa-animation-timing, steps(8)); +} + +@media (prefers-reduced-motion: reduce) { + .fa-beat, +.fa-bounce, +.fa-fade, +.fa-beat-fade, +.fa-flip, +.fa-pulse, +.fa-shake, +.fa-spin, +.fa-spin-pulse { + -webkit-animation-delay: -1ms; + animation-delay: -1ms; + -webkit-animation-duration: 1ms; + animation-duration: 1ms; + -webkit-animation-iteration-count: 1; + animation-iteration-count: 1; + -webkit-transition-delay: 0s; + transition-delay: 0s; + -webkit-transition-duration: 0s; + transition-duration: 0s; + } +} +@-webkit-keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@-webkit-keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@-webkit-keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@-webkit-keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@-webkit-keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@-webkit-keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@-webkit-keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +@keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +.fa-rotate-90 { + -webkit-transform: rotate(90deg); + transform: rotate(90deg); +} + +.fa-rotate-180 { + -webkit-transform: rotate(180deg); + transform: rotate(180deg); +} + +.fa-rotate-270 { + -webkit-transform: rotate(270deg); + transform: rotate(270deg); +} + +.fa-flip-horizontal { + -webkit-transform: scale(-1, 1); + transform: scale(-1, 1); +} + +.fa-flip-vertical { + -webkit-transform: scale(1, -1); + transform: scale(1, -1); +} + +.fa-flip-both, +.fa-flip-horizontal.fa-flip-vertical { + -webkit-transform: scale(-1, -1); + transform: scale(-1, -1); +} + +.fa-rotate-by { + -webkit-transform: rotate(var(--fa-rotate-angle, 0)); + transform: rotate(var(--fa-rotate-angle, 0)); +} + +.fa-stack { + display: inline-block; + vertical-align: middle; + height: 2em; + position: relative; + width: 2.5em; +} + +.fa-stack-1x, +.fa-stack-2x { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; + z-index: var(--fa-stack-z-index, auto); +} + +.svg-inline--fa.fa-stack-1x { + height: 1em; + width: 1.25em; +} +.svg-inline--fa.fa-stack-2x { + height: 2em; + width: 2.5em; +} + +.fa-inverse { + color: var(--fa-inverse, #fff); +} + +.sr-only, +.fa-sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.sr-only-focusable:not(:focus), +.fa-sr-only-focusable:not(:focus) { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.svg-inline--fa .fa-primary { + fill: var(--fa-primary-color, currentColor); + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa .fa-secondary { + fill: var(--fa-secondary-color, currentColor); + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-primary { + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-secondary { + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa mask .fa-primary, +.svg-inline--fa mask .fa-secondary { + fill: black; +} + +.fad.fa-inverse, +.fa-duotone.fa-inverse { + color: var(--fa-inverse, #fff); +}`;function Gd(){var e=$d,t=Ud,n=O.cssPrefix,r=O.replacementClass,i=Y0;if(n!==e||r!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(l,".".concat(r))}return i}var Bu=!1;function ro(){O.autoAddCss&&!Bu&&(U0(Gd()),Bu=!0)}var G0={mixout:function(){return{dom:{css:Gd,insertCss:ro}}},hooks:function(){return{beforeDOMElementCreation:function(){ro()},beforeI2svg:function(){ro()}}}},ut=zt||{};ut[st]||(ut[st]={});ut[st].styles||(ut[st].styles={});ut[st].hooks||(ut[st].hooks={});ut[st].shims||(ut[st].shims=[]);var He=ut[st],Qd=[],Q0=function e(){B.removeEventListener("DOMContentLoaded",e),na=1,Qd.map(function(t){return t()})},na=!1;dt&&(na=(B.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(B.readyState),na||B.addEventListener("DOMContentLoaded",Q0));function K0(e){dt&&(na?setTimeout(e,0):Qd.push(e))}function Ur(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,a=i===void 0?[]:i;return typeof e=="string"?Yd(e):"<".concat(t," ").concat(W0(r),">").concat(a.map(Ur).join(""),"")}function Yu(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var io=function(t,n,r,i){var a=Object.keys(t),o=a.length,l=n,s,u,f;for(r===void 0?(s=1,f=t[a[0]]):(s=0,f=r);s=55296&&i<=56319&&n=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function Gu(e){return Object.keys(e).reduce(function(t,n){var r=e[n],i=!!r.icon;return i?t[r.iconName]=r.icon:t[n]=r,t},{})}function ol(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,a=Gu(t);typeof He.hooks.addPack=="function"&&!i?He.hooks.addPack(e,Gu(t)):He.styles[e]=E(E({},He.styles[e]||{}),a),e==="fas"&&ol("fa",t)}var pi,mi,vi,gn=He.styles,Z0=He.shims,q0=(pi={},re(pi,H,Object.values(zr[H])),re(pi,J,Object.values(zr[J])),pi),ws=null,Kd={},Xd={},Jd={},Zd={},qd={},e1=(mi={},re(mi,H,Object.keys(br[H])),re(mi,J,Object.keys(br[J])),mi);function t1(e){return~R0.indexOf(e)}function n1(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!t1(i)?i:null}var ep=function(){var t=function(a){return io(gn,function(o,l,s){return o[s]=io(l,a,{}),o},{})};Kd=t(function(i,a,o){if(a[3]&&(i[a[3]]=o),a[2]){var l=a[2].filter(function(s){return typeof s=="number"});l.forEach(function(s){i[s.toString(16)]=o})}return i}),Xd=t(function(i,a,o){if(i[o]=o,a[2]){var l=a[2].filter(function(s){return typeof s=="string"});l.forEach(function(s){i[s]=o})}return i}),qd=t(function(i,a,o){var l=a[2];return i[o]=o,l.forEach(function(s){i[s]=o}),i});var n="far"in gn||O.autoFetchSvg,r=io(Z0,function(i,a){var o=a[0],l=a[1],s=a[2];return l==="far"&&!n&&(l="fas"),typeof o=="string"&&(i.names[o]={prefix:l,iconName:s}),typeof o=="number"&&(i.unicodes[o.toString(16)]={prefix:l,iconName:s}),i},{names:{},unicodes:{}});Jd=r.names,Zd=r.unicodes,ws=Ca(O.styleDefault,{family:O.familyDefault})};$0(function(e){ws=Ca(e.styleDefault,{family:O.familyDefault})});ep();function ks(e,t){return(Kd[e]||{})[t]}function r1(e,t){return(Xd[e]||{})[t]}function Bt(e,t){return(qd[e]||{})[t]}function tp(e){return Jd[e]||{prefix:null,iconName:null}}function i1(e){var t=Zd[e],n=ks("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function At(){return ws}var xs=function(){return{prefix:null,iconName:null,rest:[]}};function Ca(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?H:n,i=br[r][e],a=Tr[r][e]||Tr[r][i],o=e in He.styles?e:null;return a||o||null}var Qu=(vi={},re(vi,H,Object.keys(zr[H])),re(vi,J,Object.keys(zr[J])),vi);function Na(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,i=r===void 0?!1:r,a=(t={},re(t,H,"".concat(O.cssPrefix,"-").concat(H)),re(t,J,"".concat(O.cssPrefix,"-").concat(J)),t),o=null,l=H;(e.includes(a[H])||e.some(function(u){return Qu[H].includes(u)}))&&(l=H),(e.includes(a[J])||e.some(function(u){return Qu[J].includes(u)}))&&(l=J);var s=e.reduce(function(u,f){var d=n1(O.cssPrefix,f);if(gn[f]?(f=q0[l].includes(f)?T0[l][f]:f,o=f,u.prefix=f):e1[l].indexOf(f)>-1?(o=f,u.prefix=Ca(f,{family:l})):d?u.iconName=d:f!==O.replacementClass&&f!==a[H]&&f!==a[J]&&u.rest.push(f),!i&&u.prefix&&u.iconName){var v=o==="fa"?tp(u.iconName):{},h=Bt(u.prefix,u.iconName);v.prefix&&(o=null),u.iconName=v.iconName||h||u.iconName,u.prefix=v.prefix||u.prefix,u.prefix==="far"&&!gn.far&&gn.fas&&!O.autoFetchSvg&&(u.prefix="fas")}return u},xs());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&l===J&&(gn.fass||O.autoFetchSvg)&&(s.prefix="fass",s.iconName=Bt(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||o==="fa")&&(s.prefix=At()||"fas"),s}var a1=function(){function e(){g0(this,e),this.definitions={}}return w0(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),a=0;a0&&f.forEach(function(d){typeof d=="string"&&(n[l][d]=u)}),n[l][s]=u}),n}}]),e}(),Ku=[],yn={},Pn={},o1=Object.keys(Pn);function l1(e,t){var n=t.mixoutsTo;return Ku=e,yn={},Object.keys(Pn).forEach(function(r){o1.indexOf(r)===-1&&delete Pn[r]}),Ku.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(o){typeof i[o]=="function"&&(n[o]=i[o]),ta(i[o])==="object"&&Object.keys(i[o]).forEach(function(l){n[o]||(n[o]={}),n[o][l]=i[o][l]})}),r.hooks){var a=r.hooks();Object.keys(a).forEach(function(o){yn[o]||(yn[o]=[]),yn[o].push(a[o])})}r.provides&&r.provides(Pn)}),n}function ll(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return dt?(en("beforeI2svg",t),ct("pseudoElements2svg",t),ct("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;O.autoReplaceSvg===!1&&(O.autoReplaceSvg=!0),O.observeMutations=!0,K0(function(){f1({autoReplaceSvgRoot:n}),en("watch",t)})}},c1={icon:function(t){if(t===null)return null;if(ta(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Bt(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=Ca(t[0]);return{prefix:r,iconName:Bt(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(O.cssPrefix,"-"))>-1||t.match(z0))){var i=Na(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||At(),iconName:Bt(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var a=At();return{prefix:a,iconName:Bt(a,t)||t}}}},be={noAuto:s1,config:O,dom:u1,parse:c1,library:np,findIconDefinition:sl,toHtml:Ur},f1=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?B:n;(Object.keys(He.styles).length>0||O.autoFetchSvg)&&dt&&O.autoReplaceSvg&&be.dom.i2svg({node:r})};function Pa(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Ur(r)})}}),Object.defineProperty(e,"node",{get:function(){if(dt){var r=B.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function d1(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(ys(o)&&n.found&&!r.found){var l=n.width,s=n.height,u={x:l/s/2,y:.5};i.style=Ea(E(E({},a),{},{"transform-origin":"".concat(u.x+o.x/16,"em ").concat(u.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function p1(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,a=e.symbol,o=a===!0?"".concat(t,"-").concat(O.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:E(E({},i),{},{id:o}),children:r}]}]}function Ss(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,a=e.iconName,o=e.transform,l=e.symbol,s=e.title,u=e.maskId,f=e.titleId,d=e.extra,v=e.watchable,h=v===void 0?!1:v,g=r.found?r:n,w=g.width,T=g.height,p=i==="fak",c=[O.replacementClass,a?"".concat(O.cssPrefix,"-").concat(a):""].filter(function(M){return d.classes.indexOf(M)===-1}).filter(function(M){return M!==""||!!M}).concat(d.classes).join(" "),m={children:[],attributes:E(E({},d.attributes),{},{"data-prefix":i,"data-icon":a,class:c,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(w," ").concat(T)})},y=p&&!~d.classes.indexOf("fa-fw")?{width:"".concat(w/T*16*.0625,"em")}:{};h&&(m.attributes[qt]=""),s&&(m.children.push({tag:"title",attributes:{id:m.attributes["aria-labelledby"]||"title-".concat(f||Lr())},children:[s]}),delete m.attributes.title);var S=E(E({},m),{},{prefix:i,iconName:a,main:n,mask:r,maskId:u,transform:o,symbol:l,styles:E(E({},y),d.styles)}),N=r.found&&n.found?ct("generateAbstractMask",S)||{children:[],attributes:{}}:ct("generateAbstractIcon",S)||{children:[],attributes:{}},P=N.children,b=N.attributes;return S.children=P,S.attributes=b,l?p1(S):d1(S)}function Xu(e){var t=e.content,n=e.width,r=e.height,i=e.transform,a=e.title,o=e.extra,l=e.watchable,s=l===void 0?!1:l,u=E(E(E({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});s&&(u[qt]="");var f=E({},o.styles);ys(i)&&(f.transform=B0({transform:i,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);var d=Ea(f);d.length>0&&(u.style=d);var v=[];return v.push({tag:"span",attributes:u,children:[t]}),a&&v.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),v}function m1(e){var t=e.content,n=e.title,r=e.extra,i=E(E(E({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),a=Ea(r.styles);a.length>0&&(i.style=a);var o=[];return o.push({tag:"span",attributes:i,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var ao=He.styles;function ul(e){var t=e[0],n=e[1],r=e.slice(4),i=ds(r,1),a=i[0],o=null;return Array.isArray(a)?o={tag:"g",attributes:{class:"".concat(O.cssPrefix,"-").concat(Vt.GROUP)},children:[{tag:"path",attributes:{class:"".concat(O.cssPrefix,"-").concat(Vt.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(O.cssPrefix,"-").concat(Vt.PRIMARY),fill:"currentColor",d:a[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:t,height:n,icon:o}}var v1={found:!1,width:512,height:512};function h1(e,t){!Hd&&!O.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function cl(e,t){var n=t;return t==="fa"&&O.styleDefault!==null&&(t=At()),new Promise(function(r,i){if(ct("missingIconAbstract"),n==="fa"){var a=tp(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&ao[t]&&ao[t][e]){var o=ao[t][e];return r(ul(o))}h1(e,t),r(E(E({},v1),{},{icon:O.showMissingIcons&&e?ct("missingIconAbstract")||{}:{}}))})}var Ju=function(){},fl=O.measurePerformance&&li&&li.mark&&li.measure?li:{mark:Ju,measure:Ju},er='FA "6.5.2"',g1=function(t){return fl.mark("".concat(er," ").concat(t," begins")),function(){return rp(t)}},rp=function(t){fl.mark("".concat(er," ").concat(t," ends")),fl.measure("".concat(er," ").concat(t),"".concat(er," ").concat(t," begins"),"".concat(er," ").concat(t," ends"))},Es={begin:g1,end:rp},Oi=function(){};function Zu(e){var t=e.getAttribute?e.getAttribute(qt):null;return typeof t=="string"}function y1(e){var t=e.getAttribute?e.getAttribute(ms):null,n=e.getAttribute?e.getAttribute(vs):null;return t&&n}function w1(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(O.replacementClass)}function k1(){if(O.autoReplaceSvg===!0)return bi.replace;var e=bi[O.autoReplaceSvg];return e||bi.replace}function x1(e){return B.createElementNS("http://www.w3.org/2000/svg",e)}function S1(e){return B.createElement(e)}function ip(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?x1:S1:n;if(typeof e=="string")return B.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(o){i.setAttribute(o,e.attributes[o])});var a=e.children||[];return a.forEach(function(o){i.appendChild(ip(o,{ceFn:r}))}),i}function E1(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var bi={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(ip(i),n)}),n.getAttribute(qt)===null&&O.keepOriginalSource){var r=B.createComment(E1(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~gs(n).indexOf(O.replacementClass))return bi.replace(t);var i=new RegExp("".concat(O.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var a=r[0].attributes.class.split(" ").reduce(function(l,s){return s===O.replacementClass||s.match(i)?l.toSvg.push(s):l.toNode.push(s),l},{toNode:[],toSvg:[]});r[0].attributes.class=a.toSvg.join(" "),a.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",a.toNode.join(" "))}var o=r.map(function(l){return Ur(l)}).join(` +`);n.setAttribute(qt,""),n.innerHTML=o}};function qu(e){e()}function ap(e,t){var n=typeof t=="function"?t:Oi;if(e.length===0)n();else{var r=qu;O.mutateApproach===O0&&(r=zt.requestAnimationFrame||qu),r(function(){var i=k1(),a=Es.begin("mutate");e.map(i),a(),n()})}}var Cs=!1;function op(){Cs=!0}function dl(){Cs=!1}var ra=null;function ec(e){if(Wu&&O.observeMutations){var t=e.treeCallback,n=t===void 0?Oi:t,r=e.nodeCallback,i=r===void 0?Oi:r,a=e.pseudoElementsCallback,o=a===void 0?Oi:a,l=e.observeMutationsRoot,s=l===void 0?B:l;ra=new Wu(function(u){if(!Cs){var f=At();Fn(u).forEach(function(d){if(d.type==="childList"&&d.addedNodes.length>0&&!Zu(d.addedNodes[0])&&(O.searchPseudoElements&&o(d.target),n(d.target)),d.type==="attributes"&&d.target.parentNode&&O.searchPseudoElements&&o(d.target.parentNode),d.type==="attributes"&&Zu(d.target)&&~I0.indexOf(d.attributeName))if(d.attributeName==="class"&&y1(d.target)){var v=Na(gs(d.target)),h=v.prefix,g=v.iconName;d.target.setAttribute(ms,h||f),g&&d.target.setAttribute(vs,g)}else w1(d.target)&&i(d.target)})}}),dt&&ra.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function C1(){ra&&ra.disconnect()}function N1(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var a=i.split(":"),o=a[0],l=a.slice(1);return o&&l.length>0&&(r[o]=l.join(":").trim()),r},{})),n}function P1(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=Na(gs(e));return i.prefix||(i.prefix=At()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=r1(i.prefix,e.innerText)||ks(i.prefix,al(e.innerText))),!i.iconName&&O.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function _1(e){var t=Fn(e.attributes).reduce(function(i,a){return i.name!=="class"&&i.name!=="style"&&(i[a.name]=a.value),i},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return O.autoA11y&&(n?t["aria-labelledby"]="".concat(O.replacementClass,"-title-").concat(r||Lr()):(t["aria-hidden"]="true",t.focusable="false")),t}function O1(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Xe,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function tc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=P1(e),r=n.iconName,i=n.prefix,a=n.rest,o=_1(e),l=ll("parseNodeAttributes",{},e),s=t.styleParser?N1(e):[];return E({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:Xe,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:s,attributes:o}},l)}var b1=He.styles;function lp(e){var t=O.autoReplaceSvg==="nest"?tc(e,{styleParser:!1}):tc(e);return~t.extra.classes.indexOf(Wd)?ct("generateLayersText",e,t):ct("generateSvgReplacementMutation",e,t)}var Lt=new Set;hs.map(function(e){Lt.add("fa-".concat(e))});Object.keys(br[H]).map(Lt.add.bind(Lt));Object.keys(br[J]).map(Lt.add.bind(Lt));Lt=Fr(Lt);function nc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!dt)return Promise.resolve();var n=B.documentElement.classList,r=function(d){return n.add("".concat(Vu,"-").concat(d))},i=function(d){return n.remove("".concat(Vu,"-").concat(d))},a=O.autoFetchSvg?Lt:hs.map(function(f){return"fa-".concat(f)}).concat(Object.keys(b1));a.includes("fa")||a.push("fa");var o=[".".concat(Wd,":not([").concat(qt,"])")].concat(a.map(function(f){return".".concat(f,":not([").concat(qt,"])")})).join(", ");if(o.length===0)return Promise.resolve();var l=[];try{l=Fn(e.querySelectorAll(o))}catch{}if(l.length>0)r("pending"),i("complete");else return Promise.resolve();var s=Es.begin("onTree"),u=l.reduce(function(f,d){try{var v=lp(d);v&&f.push(v)}catch(h){Hd||h.name==="MissingIcon"&&console.error(h)}return f},[]);return new Promise(function(f,d){Promise.all(u).then(function(v){ap(v,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),s(),f()})}).catch(function(v){s(),d(v)})})}function T1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;lp(e).then(function(n){n&&ap([n],t)})}function z1(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:sl(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:sl(i||{})),e(r,E(E({},n),{},{mask:i}))}}var A1=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?Xe:r,a=n.symbol,o=a===void 0?!1:a,l=n.mask,s=l===void 0?null:l,u=n.maskId,f=u===void 0?null:u,d=n.title,v=d===void 0?null:d,h=n.titleId,g=h===void 0?null:h,w=n.classes,T=w===void 0?[]:w,p=n.attributes,c=p===void 0?{}:p,m=n.styles,y=m===void 0?{}:m;if(t){var S=t.prefix,N=t.iconName,P=t.icon;return Pa(E({type:"icon"},t),function(){return en("beforeDOMElementCreation",{iconDefinition:t,params:n}),O.autoA11y&&(v?c["aria-labelledby"]="".concat(O.replacementClass,"-title-").concat(g||Lr()):(c["aria-hidden"]="true",c.focusable="false")),Ss({icons:{main:ul(P),mask:s?ul(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:S,iconName:N,transform:E(E({},Xe),i),symbol:o,title:v,maskId:f,titleId:g,extra:{attributes:c,styles:y,classes:T}})})}},L1={mixout:function(){return{icon:z1(A1)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=nc,n.nodeCallback=T1,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?B:r,a=n.callback,o=a===void 0?function(){}:a;return nc(i,o)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,a=r.title,o=r.titleId,l=r.prefix,s=r.transform,u=r.symbol,f=r.mask,d=r.maskId,v=r.extra;return new Promise(function(h,g){Promise.all([cl(i,l),f.iconName?cl(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(w){var T=ds(w,2),p=T[0],c=T[1];h([n,Ss({icons:{main:p,mask:c},prefix:l,iconName:i,transform:s,symbol:u,maskId:d,title:a,titleId:o,extra:v,watchable:!0})])}).catch(g)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,a=n.main,o=n.transform,l=n.styles,s=Ea(l);s.length>0&&(i.style=s);var u;return ys(o)&&(u=ct("generateAbstractTransformGrouping",{main:a,transform:o,containerWidth:a.width,iconWidth:a.width})),r.push(u||a.icon),{children:r,attributes:i}}}},j1={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,a=i===void 0?[]:i;return Pa({type:"layer"},function(){en("beforeDOMElementCreation",{assembler:n,params:r});var o=[];return n(function(l){Array.isArray(l)?l.map(function(s){o=o.concat(s.abstract)}):o=o.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(O.cssPrefix,"-layers")].concat(Fr(a)).join(" ")},children:o}]})}}}},I1={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.title,a=i===void 0?null:i,o=r.classes,l=o===void 0?[]:o,s=r.attributes,u=s===void 0?{}:s,f=r.styles,d=f===void 0?{}:f;return Pa({type:"counter",content:n},function(){return en("beforeDOMElementCreation",{content:n,params:r}),m1({content:n.toString(),title:a,extra:{attributes:u,styles:d,classes:["".concat(O.cssPrefix,"-layers-counter")].concat(Fr(l))}})})}}}},R1={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,a=i===void 0?Xe:i,o=r.title,l=o===void 0?null:o,s=r.classes,u=s===void 0?[]:s,f=r.attributes,d=f===void 0?{}:f,v=r.styles,h=v===void 0?{}:v;return Pa({type:"text",content:n},function(){return en("beforeDOMElementCreation",{content:n,params:r}),Xu({content:n,transform:E(E({},Xe),a),title:l,extra:{attributes:d,styles:h,classes:["".concat(O.cssPrefix,"-layers-text")].concat(Fr(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.title,a=r.transform,o=r.extra,l=null,s=null;if(Fd){var u=parseInt(getComputedStyle(n).fontSize,10),f=n.getBoundingClientRect();l=f.width/u,s=f.height/u}return O.autoA11y&&!i&&(o.attributes["aria-hidden"]="true"),Promise.resolve([n,Xu({content:n.innerHTML,width:l,height:s,transform:a,title:i,extra:o,watchable:!0})])}}},M1=new RegExp('"',"ug"),rc=[1105920,1112319];function D1(e){var t=e.replace(M1,""),n=J0(t,0),r=n>=rc[0]&&n<=rc[1],i=t.length===2?t[0]===t[1]:!1;return{value:al(i?t[0]:t),isSecondary:r||i}}function ic(e,t){var n="".concat(_0).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var a=Fn(e.children),o=a.filter(function(P){return P.getAttribute(il)===t})[0],l=zt.getComputedStyle(e,t),s=l.getPropertyValue("font-family").match(A0),u=l.getPropertyValue("font-weight"),f=l.getPropertyValue("content");if(o&&!s)return e.removeChild(o),r();if(s&&f!=="none"&&f!==""){var d=l.getPropertyValue("content"),v=~["Sharp"].indexOf(s[2])?J:H,h=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?Tr[v][s[2].toLowerCase()]:L0[v][u],g=D1(d),w=g.value,T=g.isSecondary,p=s[0].startsWith("FontAwesome"),c=ks(h,w),m=c;if(p){var y=i1(w);y.iconName&&y.prefix&&(c=y.iconName,h=y.prefix)}if(c&&!T&&(!o||o.getAttribute(ms)!==h||o.getAttribute(vs)!==m)){e.setAttribute(n,m),o&&e.removeChild(o);var S=O1(),N=S.extra;N.attributes[il]=t,cl(c,h).then(function(P){var b=Ss(E(E({},S),{},{icons:{main:P,mask:xs()},prefix:h,iconName:m,extra:N,watchable:!0})),M=B.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(M,e.firstChild):e.appendChild(M),M.outerHTML=b.map(function(L){return Ur(L)}).join(` +`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function F1(e){return Promise.all([ic(e,"::before"),ic(e,"::after")])}function $1(e){return e.parentNode!==document.head&&!~b0.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(il)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function ac(e){if(dt)return new Promise(function(t,n){var r=Fn(e.querySelectorAll("*")).filter($1).map(F1),i=Es.begin("searchPseudoElements");op(),Promise.all(r).then(function(){i(),dl(),t()}).catch(function(){i(),dl(),n()})})}var U1={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=ac,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?B:r;O.searchPseudoElements&&ac(i)}}},oc=!1,H1={mixout:function(){return{dom:{unwatch:function(){op(),oc=!0}}}},hooks:function(){return{bootstrap:function(){ec(ll("mutationObserverCallbacks",{}))},noAuto:function(){C1()},watch:function(n){var r=n.observeMutationsRoot;oc?dl():ec(ll("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},lc=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var a=i.toLowerCase().split("-"),o=a[0],l=a.slice(1).join("-");if(o&&l==="h")return r.flipX=!0,r;if(o&&l==="v")return r.flipY=!0,r;if(l=parseFloat(l),isNaN(l))return r;switch(o){case"grow":r.size=r.size+l;break;case"shrink":r.size=r.size-l;break;case"left":r.x=r.x-l;break;case"right":r.x=r.x+l;break;case"up":r.y=r.y-l;break;case"down":r.y=r.y+l;break;case"rotate":r.rotate=r.rotate+l;break}return r},n)},W1={mixout:function(){return{parse:{transform:function(n){return lc(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=lc(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,a=n.containerWidth,o=n.iconWidth,l={transform:"translate(".concat(a/2," 256)")},s="translate(".concat(i.x*32,", ").concat(i.y*32,") "),u="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),f="rotate(".concat(i.rotate," 0 0)"),d={transform:"".concat(s," ").concat(u," ").concat(f)},v={transform:"translate(".concat(o/2*-1," -256)")},h={outer:l,inner:d,path:v};return{tag:"g",attributes:E({},h.outer),children:[{tag:"g",attributes:E({},h.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:E(E({},r.icon.attributes),h.path)}]}]}}}},oo={x:0,y:0,width:"100%",height:"100%"};function sc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function V1(e){return e.tag==="g"?e.children:[e]}var B1={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),a=i?Na(i.split(" ").map(function(o){return o.trim()})):xs();return a.prefix||(a.prefix=At()),n.mask=a,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,a=n.main,o=n.mask,l=n.maskId,s=n.transform,u=a.width,f=a.icon,d=o.width,v=o.icon,h=V0({transform:s,containerWidth:d,iconWidth:u}),g={tag:"rect",attributes:E(E({},oo),{},{fill:"white"})},w=f.children?{children:f.children.map(sc)}:{},T={tag:"g",attributes:E({},h.inner),children:[sc(E({tag:f.tag,attributes:E(E({},f.attributes),h.path)},w))]},p={tag:"g",attributes:E({},h.outer),children:[T]},c="mask-".concat(l||Lr()),m="clip-".concat(l||Lr()),y={tag:"mask",attributes:E(E({},oo),{},{id:c,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[g,p]},S={tag:"defs",children:[{tag:"clipPath",attributes:{id:m},children:V1(v)},y]};return r.push(S,{tag:"rect",attributes:E({fill:"currentColor","clip-path":"url(#".concat(m,")"),mask:"url(#".concat(c,")")},oo)}),{children:r,attributes:i}}}},Y1={provides:function(t){var n=!1;zt.matchMedia&&(n=zt.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:E(E({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=E(E({},a),{},{attributeName:"opacity"}),l={tag:"circle",attributes:E(E({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||l.children.push({tag:"animate",attributes:E(E({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:E(E({},o),{},{values:"1;0;1;1;0;1;"})}),r.push(l),r.push({tag:"path",attributes:E(E({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:E(E({},o),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:E(E({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:E(E({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},G1={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),a=i===null?!1:i===""?!0:i;return n.symbol=a,n}}}},Q1=[G0,L1,j1,I1,R1,U1,H1,W1,B1,Y1,G1];l1(Q1,{mixoutsTo:be});be.noAuto;be.config;be.library;be.dom;var pl=be.parse;be.findIconDefinition;be.toHtml;var K1=be.icon;be.layer;be.text;be.counter;var sp={exports:{}},X1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",J1=X1,Z1=J1;function up(){}function cp(){}cp.resetWarningCache=up;var q1=function(){function e(r,i,a,o,l,s){if(s!==Z1){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:cp,resetWarningCache:up};return n.PropTypes=n,n};sp.exports=q1();var eh=sp.exports;const j=hl(eh);function uc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function nh(e,t){if(e==null)return{};var n=th(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ml(e){return rh(e)||ih(e)||ah(e)||oh()}function rh(e){if(Array.isArray(e))return vl(e)}function ih(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ah(e,t){if(e){if(typeof e=="string")return vl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vl(e,t)}}function vl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(s){return dp(e,s)}),i=Object.keys(t.attributes||{}).reduce(function(s,u){var f=t.attributes[u];switch(u){case"class":s.attrs.className=f,delete t.attributes.class;break;case"style":s.attrs.style=fh(f);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?s.attrs[u.toLowerCase()]=f:s.attrs[fp(u)]=f}return s},{attrs:{}}),a=n.style,o=a===void 0?{}:a,l=nh(n,uh);return i.attrs.style=Qe(Qe({},i.attrs.style),o),e.apply(void 0,[t.tag,Qe(Qe({},i.attrs),l)].concat(ml(r)))}var pp=!1;try{pp=!0}catch{}function dh(){if(!pp&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function cc(e){if(e&&ia(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(pl.icon)return pl.icon(e);if(e===null)return null;if(e&&ia(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function lo(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?wn({},e,t):{}}var fc={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Ae=oa.forwardRef(function(e,t){var n=Qe(Qe({},fc),e),r=n.icon,i=n.mask,a=n.symbol,o=n.className,l=n.title,s=n.titleId,u=n.maskId,f=cc(r),d=lo("classes",[].concat(ml(lh(n)),ml((o||"").split(" ")))),v=lo("transform",typeof n.transform=="string"?pl.transform(n.transform):n.transform),h=lo("mask",cc(i)),g=K1(f,Qe(Qe(Qe(Qe({},d),v),h),{},{symbol:a,title:l,titleId:s,maskId:u}));if(!g)return dh("Could not find icon",f),null;var w=g.abstract,T={ref:t};return Object.keys(n).forEach(function(p){fc.hasOwnProperty(p)||(T[p]=n[p])}),ph(w[0],T)});Ae.displayName="FontAwesomeIcon";Ae.propTypes={beat:j.bool,border:j.bool,beatFade:j.bool,bounce:j.bool,className:j.string,fade:j.bool,flash:j.bool,mask:j.oneOfType([j.object,j.array,j.string]),maskId:j.string,fixedWidth:j.bool,inverse:j.bool,flip:j.oneOf([!0,!1,"horizontal","vertical","both"]),icon:j.oneOfType([j.object,j.array,j.string]),listItem:j.bool,pull:j.oneOf(["right","left"]),pulse:j.bool,rotation:j.oneOf([0,90,180,270]),shake:j.bool,size:j.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:j.bool,spinPulse:j.bool,spinReverse:j.bool,symbol:j.oneOfType([j.bool,j.string]),title:j.string,titleId:j.string,transform:j.oneOfType([j.string,j.object]),swapOpacity:j.bool};var ph=dp.bind(null,oa.createElement),mh={prefix:"fas",iconName:"right-from-bracket",icon:[512,512,["sign-out-alt"],"f2f5","M377.9 105.9L500.7 228.7c7.2 7.2 11.3 17.1 11.3 27.3s-4.1 20.1-11.3 27.3L377.9 406.1c-6.4 6.4-15 9.9-24 9.9c-18.7 0-33.9-15.2-33.9-33.9l0-62.1-128 0c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l128 0 0-62.1c0-18.7 15.2-33.9 33.9-33.9c9 0 17.6 3.6 24 9.9zM160 96L96 96c-17.7 0-32 14.3-32 32l0 256c0 17.7 14.3 32 32 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-53 0-96-43-96-96L0 128C0 75 43 32 96 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32z"]},vh={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V72c0-13.3-10.7-24-24-24H40zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zM16 232v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V232c0-13.3-10.7-24-24-24H40c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V392c0-13.3-10.7-24-24-24H40z"]},hh={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M144 0a80 80 0 1 1 0 160A80 80 0 1 1 144 0zM512 0a80 80 0 1 1 0 160A80 80 0 1 1 512 0zM0 298.7C0 239.8 47.8 192 106.7 192h42.7c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0H21.3C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7h42.7C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3H405.3zM224 224a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM128 485.3C128 411.7 187.7 352 261.3 352H378.7C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7H154.7c-14.7 0-26.7-11.9-26.7-26.7z"]},dc={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z"]},pc={prefix:"fas",iconName:"user-group",icon:[640,512,[128101,"user-friends"],"f500","M96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3zM609.3 512H471.4c5.4-9.4 8.6-20.3 8.6-32v-8c0-60.7-27.1-115.2-69.8-151.8c2.4-.1 4.7-.2 7.1-.2h61.4C567.8 320 640 392.2 640 481.3c0 17-13.8 30.7-30.7 30.7zM432 256c-31 0-59-12.6-79.3-32.9C372.4 196.5 384 163.6 384 128c0-26.8-6.6-52.1-18.3-74.3C384.3 40.1 407.2 32 432 32c61.9 0 112 50.1 112 112s-50.1 112-112 112z"]},gh={prefix:"fas",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z"]},mp={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"]};const yh=({setCurrentPage:e})=>{const{groups:t,setGroups:n}=jd(),{playerData:r}=Ld(),[i,a]=W.useState(!1),[o,l]=W.useState(null),s=t.some(g=>g.members.some(w=>w.Player===r.source)),u=g=>{console.log(g);const w={id:t.length+1,status:"open",GName:g.groupName,GPass:g.password,Users:1,leader:r.source,members:[{name:r.name,CID:r.citizenId,Player:r.source}],stage:[],ScriptCreated:!1};console.log(w),n([...t,w])},f=g=>{console.log(g)},d=g=>{console.log(g)},v=g=>{console.log(g)},h=(g,w,T)=>k.jsxs(k.Fragment,{children:[k.jsx(Ae,{icon:vh,className:"text-white mx-1 hover:text-green-500",onClick:()=>e("PlayerList")}),g&&k.jsx(Ae,{icon:mp,className:"text-white mx-1 hover:text-red-500",onClick:()=>v(element)}),w&&!g&&k.jsx(Ae,{icon:mh,className:"text-white mx-1 hover:text-red-500",onClick:()=>d(element)}),k.jsx(Ae,{icon:pc,className:"text-white mx-1"}),k.jsx("span",{children:T})]});return k.jsx("div",{className:"flex self-start items-center h-screen bg-gray-200 dark:bg-gray-900",children:k.jsxs("div",{className:"w-full bg-gray-400 dark:bg-gray-700 text-white rounded-lg shadow-md p-6",children:[!s&&k.jsxs("div",{className:"mb-4",children:[k.jsx("div",{className:"text-md font-bold text-text-primary-light dark:text-text-primary-dark mb-4",children:"Create a group or join an existing group"}),k.jsx("button",{onClick:()=>a(!0),className:"px-4 py-2 bg-blue-200 dark:bg-blue-900 text-black dark:text-white rounded hover:bg-blue-600",children:"Create Group"})]}),k.jsx("div",{className:"bg-gray-200 dark:bg-gray-900 p-4 rounded-lg shadow-inner",children:Object.keys(t).map(g=>{const w=t[g];let T=w.leader===r.source,p=w.members.some(c=>c.Player===r.source);return k.jsxs("div",{className:"flex justify-between items-center text-black dark:text-white bg-gray-400 dark:bg-gray-700 rounded-md hover:bg-gray-500 p-3 mb-2",onClick:()=>{s||l(w)},children:[k.jsxs("div",{className:"flex items-center",children:[k.jsx(Ae,{icon:hh,className:"text-white mr-2"}),k.jsx("span",{children:w.GName})]}),k.jsx("div",{className:"flex items-center",children:k.jsx(k.Fragment,{children:T||p?k.jsx("div",{className:"flex items-center",children:h(T,p,w.Users)}):k.jsxs(k.Fragment,{children:[k.jsx(Ae,{icon:pc,className:"text-white mx-1"}),k.jsx("span",{children:w.Users})]})})})]},w.id)})}),i&&k.jsx(Wv,{onSelect:g=>{u(g),a(!1)},onClose:()=>a(!1)}),o&&k.jsx(Vv,{groupId:o.id,groupName:o.GName,onSelect:g=>{f(g),l(null)},onClose:()=>{l(null)}})]})})},wh=({setCurrentPage:e})=>{const{playerData:t}=Ld(),{groups:n,setGroups:r}=jd(),i=n.find(l=>l.members.some(s=>s.Player===t.source)),a=i.leader===t.source,o=l=>{console.log("Remove Member",l)};return k.jsx("div",{className:"flex justify-center items-center h-screen bg-gray-200 dark:bg-gray-900",children:k.jsxs("div",{className:"w-full bg-gray-400 dark:bg-gray-700 text-white w-80 rounded-lg shadow-md",children:[k.jsx("div",{className:"p-4 border-b bg-gray-300 dark:bg-gray-600 border-gray-600",children:k.jsx("h2",{className:"text-lg text-black dark:text-white font-semibold",children:"Group Members"})}),k.jsx("div",{className:"p-2",children:i.members.map((l,s)=>a&&l.Player!==t.source?k.jsxs("div",{className:"flex items-center p-2 bg-gray-200 dark:bg-gray-500 rounded-lg my-2",children:[k.jsxs("div",{children:[k.jsx(Ae,{icon:mp,className:"self-right text-black dark:text-white mr-2",onClick:()=>o(l)}),k.jsx(Ae,{icon:dc,className:"text-black dark:text-white mr-3"})]}),k.jsx("span",{className:"text-black dark:text-white",children:l.name})]},s):k.jsxs("div",{className:"flex items-center p-2 bg-gray-200 dark:bg-gray-500 rounded-lg my-2",children:[k.jsx(Ae,{icon:dc,className:"text-black dark:text-white mr-3"}),k.jsx("span",{className:"text-black dark:text-white",children:l.name})]},s))}),k.jsx("div",{className:"pb-4 px-4",children:k.jsx("button",{className:"w-full py-2 bg-green-500 hover:bg-green-400 text-black dark:text-white rounded-lg",onClick:()=>e("GroupDashboard"),children:"RETURN"})})]})})},kh=()=>{},Ti=(e,t)=>{const n=W.useRef(kh);W.useEffect(()=>{n.current=t},[t]),W.useEffect(()=>{const r=i=>{const{action:a,data:o}=i.data;n.current&&a===e&&n.current(o)};return window.addEventListener("message",r),()=>window.removeEventListener("message",r)},[e])},xh=fs(e=>({groupJobSteps:[{id:1,name:"Step 1",isDone:!1},{id:2,name:"Step 2",isDone:!1},{id:3,name:"Step 3",isDone:!1}],setGroupJobSteps:t=>e({groupJobSteps:t})})),Sh=()=>{const{groupJobSteps:e}=xh(),[t,n]=W.useState(e);return Ti("updateGroupJobStep",r=>{if(!r||!r.id){console.error("Invalid updateGroupJobStep data",r);return}n(i=>i.map(a=>a.id===r.id?{...a,isDone:r.isDone}:a))}),k.jsx("div",{className:"flex justify-center items-center h-screen bg-gray-900",children:k.jsx("div",{className:"w-full max-w-md bg-gray-800 text-white rounded-lg shadow-md p-6",children:k.jsx("div",{className:"relative border-l border-gray-700 ml-4 pl-4",children:t.map(r=>k.jsxs("div",{className:"mb-6 flex items-center",children:[k.jsx("span",{className:"absolute left-0 transform -translate-x-1/2 bg-gray-900 border border-gray-700 w-6 h-6 rounded-full flex items-center justify-center",children:k.jsx(Ae,{icon:gh,className:r.isDone?"text-green-500":"text-gray-500"})}),k.jsxs("div",{className:"ml-8",children:[k.jsx("div",{className:"text-sm text-gray-400",children:r.isDone?"1 / 1":"0 / 1"}),k.jsx("div",{children:r.name})]})]},r.id))})})})},vp=!(window!=null&&window.invokeNative),Eh=()=>{const[e,t]=W.useState("light"),n=W.useRef(null),{setPopUp:r,fetchNui:i,sendNotification:a,getSettings:o,onSettingsChange:l}=window,[s,u]=W.useState("GroupDashboard");W.useEffect(()=>{if(vp){document.getElementsByTagName("html")[0].style.visibility="visible",document.getElementsByTagName("body")[0].style.visibility="visible";return}else o().then(d=>t(d.display.theme)),l(d=>t(d.display.theme))},[e]),Ti("startJob",()=>{u("GroupJob")}),Ti("sendNotification",d=>{a(d)}),Ti("phoneNotification",d=>{r({title:d.PhoneNotify.title,description:d.PhoneNotify.text,buttons:[{title:d.PhoneNotify.deny,color:"red",cb:()=>{$.post("https://slrn_groups/AnsweredNotify",JSON.stringify({type:"failure"}))}},{title:d.PhoneNotify.accept,color:"blue",cb:()=>{$.post("https://slrn_groups/AnsweredNotify",JSON.stringify({type:"success"}))}}]})});const f=()=>{t(e==="dark"?"light":"dark"),console.log(e)};return k.jsxs(Ch,{children:[k.jsx("button",{onClick:f,className:"w-56 h-13 bg-background-highlight-light dark:bg-background-highlight-dark text-text-primary-light dark:text-text-primary-dark rounded-m",children:"Toggle Theme"}),k.jsxs("div",{className:"grid grid-cols-1 size-full bg-background-primary-light dark:bg-background-primary-dark font-poppins text-center gap-4",ref:n,"data-mode":e,children:[s==="GroupDashboard"&&k.jsx(yh,{setCurrentPage:u}),s==="PlayerList"&&k.jsx(wh,{setCurrentPage:u}),s==="GroupJob"&&k.jsx(Sh,{setCurrentPage:u})]})]})},Ch=({children:e})=>vp?k.jsx("div",{className:"absolute bottom-0 top-0 left-0 right-0 m-auto w-[29rem] h-[58.5rem]",children:e}):e,mc=!(window!=null&&window.invokeNative),Nh=so.createRoot(document.getElementById("root"));if(window.name===""||mc){const e=()=>{Nh.render(k.jsx(oa.StrictMode,{children:k.jsx(Eh,{})}))};mc?e():window.addEventListener("message",t=>{t.data==="componentsLoaded"&&e()})} diff --git a/web/dist/assets/index-Bw_vSpTC.css b/web/dist/assets/index-Bw_vSpTC.css new file mode 100644 index 0000000..c49db4e --- /dev/null +++ b/web/dist/assets/index-Bw_vSpTC.css @@ -0,0 +1 @@ +*,: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]{display:none}*,: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: }.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.m-auto{margin:auto}.mx-1{margin-left:.25rem;margin-right:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-4{margin-left:1rem}.ml-8{margin-left:2rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mt-4{margin-top:1rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.size-full{width:100%;height:100%}.h-6{height:1.5rem}.h-\[58\.5rem\]{height:58.5rem}.h-screen{height:100vh}.w-56{width:14rem}.w-6{width:1.5rem}.w-80{width:20rem}.w-\[29rem\]{width:29rem}.w-full{width:100%}.max-w-md{max-width:28rem}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-not-allowed{cursor:not-allowed}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.self-start{align-self:flex-start}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.bg-background-highlight-light{--tw-bg-opacity: 1;background-color:rgb(220 220 220 / var(--tw-bg-opacity))}.bg-background-primary-light{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-4{padding-left:1rem}.text-center{text-align:center}.font-poppins{font-family:Poppins,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-text-primary-light{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.opacity-0{opacity:0}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.dev-wrapper{position:absolute;bottom:0;top:0;left:0;right:0;margin:auto;width:29rem;height:58.5rem}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.hover\:bg-gray-500:hover{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.hover\:bg-green-400:hover{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity))}.hover\:text-green-500:hover{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.hover\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.dark\:bg-background-highlight-dark:where([data-mode=dark],[data-mode=dark] *){--tw-bg-opacity: 1;background-color:rgb(20 20 20 / var(--tw-bg-opacity))}.dark\:bg-background-primary-dark:where([data-mode=dark],[data-mode=dark] *){--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.dark\:bg-blue-900:where([data-mode=dark],[data-mode=dark] *){--tw-bg-opacity: 1;background-color:rgb(30 58 138 / var(--tw-bg-opacity))}.dark\:bg-gray-500:where([data-mode=dark],[data-mode=dark] *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.dark\:bg-gray-600:where([data-mode=dark],[data-mode=dark] *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.dark\:bg-gray-700:where([data-mode=dark],[data-mode=dark] *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:bg-gray-900:where([data-mode=dark],[data-mode=dark] *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.dark\:text-text-primary-dark:where([data-mode=dark],[data-mode=dark] *){--tw-text-opacity: 1;color:rgb(242 242 247 / var(--tw-text-opacity))}.dark\:text-white:where([data-mode=dark],[data-mode=dark] *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}html,body{margin:0;padding:0;box-sizing:border-box;visibility:hidden} diff --git a/web/dist/assets/index-b237b9f1.css b/web/dist/assets/index-b237b9f1.css deleted file mode 100644 index efbd77e..0000000 --- a/web/dist/assets/index-b237b9f1.css +++ /dev/null @@ -1 +0,0 @@ -*{margin:0;padding:0;box-sizing:border-box}.app{height:100vh;width:100%;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;background-color:var(--background-primary);font-family:Poppins,sans-serif}.app-wrapper{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3rem}.header,.button-wrapper{display:flex;flex-direction:column;text-align:center;gap:.2rem}.button-wrapper{gap:1rem}.title{font-size:1.4rem;font-weight:700;color:var(--text-primary)}.subtitle{font-size:1rem;font-weight:400;color:var(--text-secondary)}button{width:14rem;height:3.25rem;background-color:var(--background-highlight);color:var(--text-primary);border:none;border-radius:.3rem;font-size:.8rem;font-weight:600;text-transform:uppercase;cursor:pointer;transition:all .25s ease-in-out;user-select:none}button:hover{filter:brightness(.8)}input{width:14rem;height:3.25rem;background-color:var(--background-highlight);color:var(--text-primary);border:none;border-radius:.3rem;padding:0 1rem;font-size:.8rem;font-weight:600;transition:all .25s ease-in-out;outline:none}.dev-wrapper{position:absolute;bottom:0;top:0;left:0;right:0;margin:auto;width:29rem;height:58.5rem}:root{--background-primary: #f5f5f5;--background-highlight: rgb(220, 220, 220);--text-primary: #000000;--text-secondary: #8e8e93}[data-theme=dark]{--background-primary: #000000;--background-highlight: rgb(20, 20, 20);--text-primary: #f2f2f7;--text-secondary: #6f6f6f}html,body{margin:0;padding:0;box-sizing:border-box;visibility:hidden} diff --git a/web/dist/assets/index-d0b56479.js b/web/dist/assets/index-d0b56479.js deleted file mode 100644 index cc3b826..0000000 --- a/web/dist/assets/index-d0b56479.js +++ /dev/null @@ -1,40 +0,0 @@ -(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)}})();function lc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lr={},oc={get exports(){return Lr},set exports(e){Lr=e}},tl={},Le={},ic={get exports(){return Le},set exports(e){Le=e}},T={};/** - * @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. - */var Gn=Symbol.for("react.element"),uc=Symbol.for("react.portal"),sc=Symbol.for("react.fragment"),ac=Symbol.for("react.strict_mode"),cc=Symbol.for("react.profiler"),fc=Symbol.for("react.provider"),dc=Symbol.for("react.context"),pc=Symbol.for("react.forward_ref"),mc=Symbol.for("react.suspense"),vc=Symbol.for("react.memo"),hc=Symbol.for("react.lazy"),Ui=Symbol.iterator;function yc(e){return e===null||typeof e!="object"?null:(e=Ui&&e[Ui]||e["@@iterator"],typeof e=="function"?e:null)}var Gu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Xu=Object.assign,Zu={};function ln(e,t,n){this.props=e,this.context=t,this.refs=Zu,this.updater=n||Gu}ln.prototype.isReactComponent={};ln.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")};ln.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ju(){}Ju.prototype=ln.prototype;function Ho(e,t,n){this.props=e,this.context=t,this.refs=Zu,this.updater=n||Gu}var Wo=Ho.prototype=new Ju;Wo.constructor=Ho;Xu(Wo,ln.prototype);Wo.isPureReactComponent=!0;var $i=Array.isArray,qu=Object.prototype.hasOwnProperty,Qo={current:null},bu={key:!0,ref:!0,__self:!0,__source:!0};function es(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)qu.call(t,r)&&!bu.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,G=C[H];if(0>>1;Hl(wl,z))ytl(er,wl)?(C[H]=er,C[yt]=z,H=yt):(C[H]=wl,C[ht]=z,H=ht);else if(ytl(er,z))C[H]=er,C[yt]=z,H=yt;else break e}}return P}function l(C,P){var z=C.sortIndex-P.sortIndex;return z!==0?z:C.id-P.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=[],c=[],v=1,m=null,p=3,g=!1,w=!1,S=!1,M=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,a=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(C){for(var P=n(c);P!==null;){if(P.callback===null)r(c);else if(P.startTime<=C)r(c),P.sortIndex=P.expirationTime,t(s,P);else break;P=n(c)}}function h(C){if(S=!1,d(C),!w)if(n(s)!==null)w=!0,yl(E);else{var P=n(c);P!==null&&gl(h,P.startTime-C)}}function E(C,P){w=!1,S&&(S=!1,f(N),N=-1),g=!0;var z=p;try{for(d(P),m=n(s);m!==null&&(!(m.expirationTime>P)||C&&!Ne());){var H=m.callback;if(typeof H=="function"){m.callback=null,p=m.priorityLevel;var G=H(m.expirationTime<=P);P=e.unstable_now(),typeof G=="function"?m.callback=G:m===n(s)&&r(s),d(P)}else r(s);m=n(s)}if(m!==null)var bn=!0;else{var ht=n(c);ht!==null&&gl(h,ht.startTime-P),bn=!1}return bn}finally{m=null,p=z,g=!1}}var _=!1,x=null,N=-1,B=5,L=-1;function Ne(){return!(e.unstable_now()-LC||125H?(C.sortIndex=z,t(c,C),n(s)===null&&C===n(c)&&(S?(f(N),N=-1):S=!0,gl(h,z-H))):(C.sortIndex=G,t(s,C),w||g||(w=!0,yl(E))),C},e.unstable_shouldYield=Ne,e.unstable_wrapCallback=function(C){var P=p;return function(){var z=p;p=P;try{return C.apply(this,arguments)}finally{p=z}}}})(ns);(function(e){e.exports=ns})(Lc);/** - * @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. - */var rs=Le,ye=Xl;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zl=Object.prototype.hasOwnProperty,Rc=/^[: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]*$/,Vi={},Bi={};function Oc(e){return Zl.call(Bi,e)?!0:Zl.call(Vi,e)?!1:Rc.test(e)?Bi[e]=!0:(Vi[e]=!0,!1)}function Mc(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 Dc(e,t,n,r){if(t===null||typeof t>"u"||Mc(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 se(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 b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){b[e]=new se(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];b[t]=new se(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){b[e]=new se(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){b[e]=new se(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){b[e]=new se(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){b[e]=new se(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){b[e]=new se(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){b[e]=new se(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){b[e]=new se(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yo=/[\-:]([a-z])/g;function Go(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-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Yo,Go);b[t]=new se(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Yo,Go);b[t]=new se(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Yo,Go);b[t]=new se(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){b[e]=new se(e,1,!1,e.toLowerCase(),null,!1,!1)});b.xlinkHref=new se("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){b[e]=new se(e,1,!1,e.toLowerCase(),null,!0,!0)});function Xo(e,t,n,r){var l=b.hasOwnProperty(t)?b[t]:null;(l!==null?l.type!==0:r||!(2u||l[i]!==o[u]){var s=` -`+l[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{Cl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?gn(e):""}function Ic(e){switch(e.tag){case 5:return gn(e.type);case 16:return gn("Lazy");case 13:return gn("Suspense");case 19:return gn("SuspenseList");case 0:case 2:case 15:return e=_l(e.type,!1),e;case 11:return e=_l(e.type.render,!1),e;case 1:return e=_l(e.type,!0),e;default:return""}}function eo(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 Dt:return"Fragment";case Mt:return"Portal";case Jl:return"Profiler";case Zo:return"StrictMode";case ql:return"Suspense";case bl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case is:return(e.displayName||"Context")+".Consumer";case os:return(e._context.displayName||"Context")+".Provider";case Jo:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qo:return t=e.displayName||null,t!==null?t:eo(e.type)||"Memo";case Je:t=e._payload,e=e._init;try{return eo(e(t))}catch{}}return null}function Fc(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 eo(t);case 8:return t===Zo?"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 ft(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ss(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function jc(e){var t=ss(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 rr(e){e._valueTracker||(e._valueTracker=jc(e))}function as(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ss(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Rr(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 to(e,t){var n=t.checked;return A({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Wi(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ft(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 cs(e,t){t=t.checked,t!=null&&Xo(e,"checked",t,!1)}function no(e,t){cs(e,t);var n=ft(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")?ro(e,t.type,n):t.hasOwnProperty("defaultValue")&&ro(e,t.type,ft(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qi(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ro(e,t,n){(t!=="number"||Rr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wn=Array.isArray;function Qt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=lr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function On(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var En={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Uc=["Webkit","ms","Moz","O"];Object.keys(En).forEach(function(e){Uc.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),En[t]=En[e]})});function ms(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||En.hasOwnProperty(e)&&En[e]?(""+t).trim():t+"px"}function vs(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=ms(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var $c=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function io(e,t){if(t){if($c[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(y(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(y(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(y(61))}if(t.style!=null&&typeof t.style!="object")throw Error(y(62))}}function uo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var so=null;function bo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ao=null,Kt=null,Yt=null;function Gi(e){if(e=Jn(e)){if(typeof ao!="function")throw Error(y(280));var t=e.stateNode;t&&(t=il(t),ao(e.stateNode,e.type,t))}}function hs(e){Kt?Yt?Yt.push(e):Yt=[e]:Kt=e}function ys(){if(Kt){var e=Kt,t=Yt;if(Yt=Kt=null,Gi(e),t)for(e=0;e>>=0,e===0?32:31-(Zc(e)/Jc|0)|0}var or=64,ir=4194304;function Sn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ir(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~l;u!==0?r=Sn(u):(o&=i,o!==0&&(r=Sn(o)))}else i=n&~l,i!==0?r=Sn(i):o!==0&&(r=Sn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Xn(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Oe(t),e[t]=n}function tf(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=_n),ru=String.fromCharCode(32),lu=!1;function js(e,t){switch(e){case"keyup":return Lf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Us(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var It=!1;function Of(e,t){switch(e){case"compositionend":return Us(t);case"keypress":return t.which!==32?null:(lu=!0,ru);case"textInput":return e=t.data,e===ru&&lu?null:e;default:return null}}function Mf(e,t){if(It)return e==="compositionend"||!ui&&js(e,t)?(e=Is(),kr=li=tt=null,It=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=su(n)}}function Bs(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bs(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hs(){for(var e=window,t=Rr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rr(e.document)}return t}function si(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Bf(e){var t=Hs(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Bs(n.ownerDocument.documentElement,n)){if(r!==null&&si(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=au(n,o);var i=au(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ft=null,ho=null,Nn=null,yo=!1;function cu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;yo||Ft==null||Ft!==Rr(r)||(r=Ft,"selectionStart"in r&&si(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Nn&&Un(Nn,r)||(Nn=r,r=Ur(ho,"onSelect"),0$t||(e.current=Co[$t],Co[$t]=null,$t--)}function D(e,t){$t++,Co[$t]=e.current,e.current=t}var dt={},le=mt(dt),fe=mt(!1),xt=dt;function qt(e,t){var n=e.type.contextTypes;if(!n)return dt;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 de(e){return e=e.childContextTypes,e!=null}function Ar(){F(fe),F(le)}function yu(e,t,n){if(le.current!==dt)throw Error(y(168));D(le,t),D(fe,n)}function qs(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(y(108,Fc(e)||"Unknown",l));return A({},n,r)}function Vr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dt,xt=le.current,D(le,e),D(fe,fe.current),!0}function gu(e,t,n){var r=e.stateNode;if(!r)throw Error(y(169));n?(e=qs(e,t,xt),r.__reactInternalMemoizedMergedChildContext=e,F(fe),F(le),D(le,e)):F(fe),D(fe,n)}var Ve=null,ul=!1,Ul=!1;function bs(e){Ve===null?Ve=[e]:Ve.push(e)}function ed(e){ul=!0,bs(e)}function vt(){if(!Ul&&Ve!==null){Ul=!0;var e=0,t=O;try{var n=Ve;for(O=1;e>=i,l-=i,Be=1<<32-Oe(t)+l|n<N?(B=x,x=null):B=x.sibling;var L=p(f,x,d[N],h);if(L===null){x===null&&(x=B);break}e&&x&&L.alternate===null&&t(f,x),a=o(L,a,N),_===null?E=L:_.sibling=L,_=L,x=B}if(N===d.length)return n(f,x),j&>(f,N),E;if(x===null){for(;NN?(B=x,x=null):B=x.sibling;var Ne=p(f,x,L.value,h);if(Ne===null){x===null&&(x=B);break}e&&x&&Ne.alternate===null&&t(f,x),a=o(Ne,a,N),_===null?E=Ne:_.sibling=Ne,_=Ne,x=B}if(L.done)return n(f,x),j&>(f,N),E;if(x===null){for(;!L.done;N++,L=d.next())L=m(f,L.value,h),L!==null&&(a=o(L,a,N),_===null?E=L:_.sibling=L,_=L);return j&>(f,N),E}for(x=r(f,x);!L.done;N++,L=d.next())L=g(x,f,N,L.value,h),L!==null&&(e&&L.alternate!==null&&x.delete(L.key===null?N:L.key),a=o(L,a,N),_===null?E=L:_.sibling=L,_=L);return e&&x.forEach(function(sn){return t(f,sn)}),j&>(f,N),E}function M(f,a,d,h){if(typeof d=="object"&&d!==null&&d.type===Dt&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case nr:e:{for(var E=d.key,_=a;_!==null;){if(_.key===E){if(E=d.type,E===Dt){if(_.tag===7){n(f,_.sibling),a=l(_,d.props.children),a.return=f,f=a;break e}}else if(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Je&&xu(E)===_.type){n(f,_.sibling),a=l(_,d.props),a.ref=vn(f,_,d),a.return=f,f=a;break e}n(f,_);break}else t(f,_);_=_.sibling}d.type===Dt?(a=_t(d.props.children,f.mode,h,d.key),a.return=f,f=a):(h=Tr(d.type,d.key,d.props,null,f.mode,h),h.ref=vn(f,a,d),h.return=f,f=h)}return i(f);case Mt:e:{for(_=d.key;a!==null;){if(a.key===_)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){n(f,a.sibling),a=l(a,d.children||[]),a.return=f,f=a;break e}else{n(f,a);break}else t(f,a);a=a.sibling}a=Kl(d,f.mode,h),a.return=f,f=a}return i(f);case Je:return _=d._init,M(f,a,_(d._payload),h)}if(wn(d))return w(f,a,d,h);if(cn(d))return S(f,a,d,h);pr(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(n(f,a.sibling),a=l(a,d),a.return=f,f=a):(n(f,a),a=Ql(d,f.mode,h),a.return=f,f=a),i(f)):n(f,a)}return M}var en=ua(!0),sa=ua(!1),qn={},$e=mt(qn),Bn=mt(qn),Hn=mt(qn);function Et(e){if(e===qn)throw Error(y(174));return e}function yi(e,t){switch(D(Hn,t),D(Bn,e),D($e,qn),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:oo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=oo(t,e)}F($e),D($e,t)}function tn(){F($e),F(Bn),F(Hn)}function aa(e){Et(Hn.current);var t=Et($e.current),n=oo(t,e.type);t!==n&&(D(Bn,e),D($e,n))}function gi(e){Bn.current===e&&(F($e),F(Bn))}var U=mt(0);function Yr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $l=[];function wi(){for(var e=0;e<$l.length;e++)$l[e]._workInProgressVersionPrimary=null;$l.length=0}var _r=Xe.ReactCurrentDispatcher,Al=Xe.ReactCurrentBatchConfig,Pt=0,$=null,K=null,X=null,Gr=!1,Pn=!1,Wn=0,nd=0;function ee(){throw Error(y(321))}function Si(e,t){if(t===null)return!1;for(var n=0;nn?n:4,e(!0);var r=Al.transition;Al.transition={};try{e(!1),t()}finally{O=n,Al.transition=r}}function xa(){return xe().memoizedState}function ld(e,t,n){var r=at(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Na(e))Pa(t,n);else if(n=ra(e,t,n,r),n!==null){var l=ie();Me(n,e,r,l),za(n,t,r)}}function od(e,t,n){var r=at(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Na(e))Pa(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,u=o(i,n);if(l.hasEagerState=!0,l.eagerState=u,De(u,i)){var s=t.interleaved;s===null?(l.next=l,vi(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=ra(e,t,l,r),n!==null&&(l=ie(),Me(n,e,r,l),za(n,t,r))}}function Na(e){var t=e.alternate;return e===$||t!==null&&t===$}function Pa(e,t){Pn=Gr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function za(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ti(e,n)}}var Xr={readContext:_e,useCallback:ee,useContext:ee,useEffect:ee,useImperativeHandle:ee,useInsertionEffect:ee,useLayoutEffect:ee,useMemo:ee,useReducer:ee,useRef:ee,useState:ee,useDebugValue:ee,useDeferredValue:ee,useTransition:ee,useMutableSource:ee,useSyncExternalStore:ee,useId:ee,unstable_isNewReconciler:!1},id={readContext:_e,useCallback:function(e,t){return Fe().memoizedState=[e,t===void 0?null:t],e},useContext:_e,useEffect:Pu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,xr(4194308,4,Sa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xr(4194308,4,e,t)},useInsertionEffect:function(e,t){return xr(4,2,e,t)},useMemo:function(e,t){var n=Fe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Fe();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ld.bind(null,$,e),[r.memoizedState,e]},useRef:function(e){var t=Fe();return e={current:e},t.memoizedState=e},useState:Nu,useDebugValue:_i,useDeferredValue:function(e){return Fe().memoizedState=e},useTransition:function(){var e=Nu(!1),t=e[0];return e=rd.bind(null,e[1]),Fe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=$,l=Fe();if(j){if(n===void 0)throw Error(y(407));n=n()}else{if(n=t(),Z===null)throw Error(y(349));Pt&30||da(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Pu(ma.bind(null,r,o,e),[e]),r.flags|=2048,Kn(9,pa.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Fe(),t=Z.identifierPrefix;if(j){var n=He,r=Be;n=(r&~(1<<32-Oe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Wn++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[je]=t,e[Vn]=r,ja(e,t,!1,!1),t.stateNode=e;e:{switch(i=uo(n,r),n){case"dialog":I("cancel",e),I("close",e),l=r;break;case"iframe":case"object":case"embed":I("load",e),l=r;break;case"video":case"audio":for(l=0;lrn&&(t.flags|=128,r=!0,hn(o,!1),t.lanes=4194304)}else{if(!r)if(e=Yr(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),hn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!j)return te(t),null}else 2*W()-o.renderingStartTime>rn&&n!==1073741824&&(t.flags|=128,r=!0,hn(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=W(),t.sibling=null,n=U.current,D(U,r?n&1|2:n&1),t):(te(t),null);case 22:case 23:return Li(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?me&1073741824&&(te(t),t.subtreeFlags&6&&(t.flags|=8192)):te(t),null;case 24:return null;case 25:return null}throw Error(y(156,t.tag))}function md(e,t){switch(ci(t),t.tag){case 1:return de(t.type)&&Ar(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return tn(),F(fe),F(le),wi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return gi(t),null;case 13:if(F(U),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(y(340));bt()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(U),null;case 4:return tn(),null;case 10:return mi(t.type._context),null;case 22:case 23:return Li(),null;case 24:return null;default:return null}}var vr=!1,re=!1,vd=typeof WeakSet=="function"?WeakSet:Set,k=null;function Ht(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){V(e,t,r)}else n.current=null}function Io(e,t,n){try{n()}catch(r){V(e,t,r)}}var Fu=!1;function hd(e,t){if(go=Fr,e=Hs(),si(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,u=-1,s=-1,c=0,v=0,m=e,p=null;t:for(;;){for(var g;m!==n||l!==0&&m.nodeType!==3||(u=i+l),m!==o||r!==0&&m.nodeType!==3||(s=i+r),m.nodeType===3&&(i+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break t;if(p===n&&++c===l&&(u=i),p===o&&++v===r&&(s=i),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(wo={focusedElem:e,selectionRange:n},Fr=!1,k=t;k!==null;)if(t=k,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,k=e;else for(;k!==null;){t=k;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var S=w.memoizedProps,M=w.memoizedState,f=t.stateNode,a=f.getSnapshotBeforeUpdate(t.elementType===t.type?S:ze(t.type,S),M);f.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(h){V(t,t.return,h)}if(e=t.sibling,e!==null){e.return=t.return,k=e;break}k=t.return}return w=Fu,Fu=!1,w}function zn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Io(t,n,o)}l=l.next}while(l!==r)}}function cl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Fo(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Aa(e){var t=e.alternate;t!==null&&(e.alternate=null,Aa(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[je],delete t[Vn],delete t[Eo],delete t[qf],delete t[bf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Va(e){return e.tag===5||e.tag===3||e.tag===4}function ju(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Va(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=$r));else if(r!==4&&(e=e.child,e!==null))for(jo(e,t,n),e=e.sibling;e!==null;)jo(e,t,n),e=e.sibling}function Uo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Uo(e,t,n),e=e.sibling;e!==null;)Uo(e,t,n),e=e.sibling}var J=null,Te=!1;function Ze(e,t,n){for(n=n.child;n!==null;)Ba(e,t,n),n=n.sibling}function Ba(e,t,n){if(Ue&&typeof Ue.onCommitFiberUnmount=="function")try{Ue.onCommitFiberUnmount(nl,n)}catch{}switch(n.tag){case 5:re||Ht(n,t);case 6:var r=J,l=Te;J=null,Ze(e,t,n),J=r,Te=l,J!==null&&(Te?(e=J,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):J.removeChild(n.stateNode));break;case 18:J!==null&&(Te?(e=J,n=n.stateNode,e.nodeType===8?jl(e.parentNode,n):e.nodeType===1&&jl(e,n),Fn(e)):jl(J,n.stateNode));break;case 4:r=J,l=Te,J=n.stateNode.containerInfo,Te=!0,Ze(e,t,n),J=r,Te=l;break;case 0:case 11:case 14:case 15:if(!re&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Io(n,t,i),l=l.next}while(l!==r)}Ze(e,t,n);break;case 1:if(!re&&(Ht(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){V(n,t,u)}Ze(e,t,n);break;case 21:Ze(e,t,n);break;case 22:n.mode&1?(re=(r=re)||n.memoizedState!==null,Ze(e,t,n),re=r):Ze(e,t,n);break;default:Ze(e,t,n)}}function Uu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vd),t.forEach(function(r){var l=xd.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Pe(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=W()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*gd(r/1960))-r,10e?16:e,nt===null)var r=!1;else{if(e=nt,nt=null,qr=0,R&6)throw Error(y(331));var l=R;for(R|=4,k=e.current;k!==null;){var o=k,i=o.child;if(k.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sW()-zi?Ct(e,0):Pi|=n),pe(e,t)}function Za(e,t){t===0&&(e.mode&1?(t=ir,ir<<=1,!(ir&130023424)&&(ir=4194304)):t=1);var n=ie();e=Ye(e,t),e!==null&&(Xn(e,t,n),pe(e,n))}function _d(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Za(e,n)}function xd(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(y(314))}r!==null&&r.delete(t),Za(e,n)}var Ja;Ja=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||fe.current)ce=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ce=!1,dd(e,t,n);ce=!!(e.flags&131072)}else ce=!1,j&&t.flags&1048576&&ea(t,Hr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Nr(e,t),e=t.pendingProps;var l=qt(t,le.current);Xt(t,n),l=ki(null,t,r,e,l,n);var o=Ei();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,de(r)?(o=!0,Vr(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,hi(t),l.updater=sl,t.stateNode=l,l._reactInternals=t,zo(t,r,e,n),t=Ro(null,t,r,!0,o,n)):(t.tag=0,j&&o&&ai(t),oe(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Nr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Pd(r),e=ze(r,e),l){case 0:t=Lo(null,t,r,e,n);break e;case 1:t=Mu(null,t,r,e,n);break e;case 11:t=Ru(null,t,r,e,n);break e;case 14:t=Ou(null,t,r,ze(r.type,e),n);break e}throw Error(y(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),Lo(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),Mu(e,t,r,l,n);case 3:e:{if(Da(t),e===null)throw Error(y(387));r=t.pendingProps,o=t.memoizedState,l=o.element,la(e,t),Kr(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=nn(Error(y(423)),t),t=Du(e,t,r,n,l);break e}else if(r!==l){l=nn(Error(y(424)),t),t=Du(e,t,r,n,l);break e}else for(ve=it(t.stateNode.containerInfo.firstChild),he=t,j=!0,Re=null,n=sa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(bt(),r===l){t=Ge(e,t,n);break e}oe(e,t,r,n)}t=t.child}return t;case 5:return aa(t),e===null&&xo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,So(r,l)?i=null:o!==null&&So(r,o)&&(t.flags|=32),Ma(e,t),oe(e,t,i,n),t.child;case 6:return e===null&&xo(t),null;case 13:return Ia(e,t,n);case 4:return yi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=en(t,null,r,n):oe(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),Ru(e,t,r,l,n);case 7:return oe(e,t,t.pendingProps,n),t.child;case 8:return oe(e,t,t.pendingProps.children,n),t.child;case 12:return oe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,D(Wr,r._currentValue),r._currentValue=i,o!==null)if(De(o.value,i)){if(o.children===l.children&&!fe.current){t=Ge(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=We(-1,n&-n),s.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var v=c.pending;v===null?s.next=s:(s.next=v.next,v.next=s),c.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),No(o.return,n,t),u.lanes|=n;break}s=s.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(y(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),No(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}oe(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Xt(t,n),l=_e(l),r=r(l),t.flags|=1,oe(e,t,r,n),t.child;case 14:return r=t.type,l=ze(r,t.pendingProps),l=ze(r.type,l),Ou(e,t,r,l,n);case 15:return Ra(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),Nr(e,t),t.tag=1,de(r)?(e=!0,Vr(t)):e=!1,Xt(t,n),ia(t,r,l),zo(t,r,l,n),Ro(null,t,r,!0,e,n);case 19:return Fa(e,t,n);case 22:return Oa(e,t,n)}throw Error(y(156,t.tag))};function qa(e,t){return _s(e,t)}function Nd(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ee(e,t,n,r){return new Nd(e,t,n,r)}function Oi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pd(e){if(typeof e=="function")return Oi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Jo)return 11;if(e===qo)return 14}return 2}function ct(e,t){var n=e.alternate;return n===null?(n=Ee(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Tr(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Oi(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Dt:return _t(n.children,l,o,t);case Zo:i=8,l|=8;break;case Jl:return e=Ee(12,n,t,l|2),e.elementType=Jl,e.lanes=o,e;case ql:return e=Ee(13,n,t,l),e.elementType=ql,e.lanes=o,e;case bl:return e=Ee(19,n,t,l),e.elementType=bl,e.lanes=o,e;case us:return dl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case os:i=10;break e;case is:i=9;break e;case Jo:i=11;break e;case qo:i=14;break e;case Je:i=16,r=null;break e}throw Error(y(130,e==null?e:typeof e,""))}return t=Ee(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function _t(e,t,n,r){return e=Ee(7,e,r,t),e.lanes=n,e}function dl(e,t,n,r){return e=Ee(22,e,r,t),e.elementType=us,e.lanes=n,e.stateNode={isHidden:!1},e}function Ql(e,t,n){return e=Ee(6,e,null,t),e.lanes=n,e}function Kl(e,t,n){return t=Ee(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zd(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Nl(0),this.expirationTimes=Nl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Mi(e,t,n,r,l,o,i,u,s){return e=new zd(e,t,n,u,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ee(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},hi(o),e}function Td(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=ge})(Tc);var Ku=Gl;Yl.createRoot=Ku.createRoot,Yl.hydrateRoot=Ku.hydrateRoot;const nc=!(window!=null&&window.invokeNative),Dd=()=>{const[e,t]=Le.useState("light"),[n,r]=Le.useState("N"),[l,o]=Le.useState("Notification text"),i=Le.useRef(null),{setPopUp:u,setContextMenu:s,selectGIF:c,selectGallery:v,selectEmoji:m,fetchNui:p,sendNotification:g,getSettings:w,onSettingsChange:S,colorPicker:M,useCamera:f}=window;return Le.useEffect(()=>{if(nc){document.getElementsByTagName("html")[0].style.visibility="visible",document.getElementsByTagName("body")[0].style.visibility="visible";return}else w().then(a=>t(a.display.theme)),S(a=>t(a.display.theme));p("getDirection").then(a=>r(a)),window.addEventListener("message",a=>{var d;((d=a.data)==null?void 0:d.type)==="updateDirection"&&r(a.data.direction)})},[]),Le.useEffect(()=>{l===""&&o("Notification text")},[l]),ne(Id,{children:ne("div",{className:"app",ref:i,"data-theme":e,children:kl("div",{className:"app-wrapper",children:[kl("div",{className:"header",children:[ne("div",{className:"title",children:"Custom App Template"}),ne("div",{className:"subtitle",children:"React TS"}),ne("a",{className:"subtitle",children:n})]}),kl("div",{className:"button-wrapper",children:[ne("button",{id:"button",onClick:()=>{u({title:"Popup Menu",description:"Confirm your choice",buttons:[{title:"Cancel",color:"red",cb:()=>{console.log("Cancel")}},{title:"Confirm",color:"blue",cb:()=>{console.log("Confirm")}}]})},children:"Popup Menu"}),ne("button",{id:"context",onClick:()=>{s({title:"Context menu",buttons:[{title:"Phone Notification",color:"blue",cb:()=>{g({title:l})}},{title:"GTA Notification",color:"red",cb:()=>{p("drawNotification",{message:l})}}]})},children:"Context menu"}),ne("button",{id:"gif",onClick:()=>{c(a=>{u({title:"Selected GIF",attachment:{src:a},buttons:[{title:"OK"}]})})},children:"Gif Selector"}),ne("button",{id:"gallery",onClick:()=>{v({includeVideos:!0,includeImages:!0,cb:a=>{u({title:"Selected media",attachment:a,buttons:[{title:"OK"}]})}})},children:"Gallery Selector"}),ne("button",{id:"emoji",onClick:()=>{m(a=>{u({title:"Selected emoji",description:a,buttons:[{title:"OK"}]})})},children:"Emoji Selector"}),ne("button",{id:"colorpicker",onClick:()=>{M(a=>{u({title:"Selected color",description:a,buttons:[{title:"OK"}]})})},children:"Color Picker"}),ne("button",{id:"camreacomponent",onClick:()=>{f(a=>{u({title:"Media taken",attachment:{src:a},buttons:[{title:"OK"}]})},{default:{type:"Photo",flash:!1,camera:"rear"},permissions:{toggleFlash:!0,flipCamera:!0,takePhoto:!0,takeVideo:!0,takeLandscapePhoto:!0}})},children:"Camera Component"}),ne("input",{placeholder:"Notification text",onChange:a=>o(a.target.value)})]})]})})})},Id=({children:e})=>nc?ne("div",{className:"dev-wrapper",children:e}):e;const Yu=!(window!=null&&window.invokeNative),Fd=Yl.createRoot(document.getElementById("root"));if(window.name===""||Yu){const e=()=>{Fd.render(ne(Ec.StrictMode,{children:ne(Dd,{})}))};Yu?e():window.addEventListener("message",t=>{t.data==="componentsLoaded"&&e()})} diff --git a/web/dist/index.html b/web/dist/index.html index 27a3ca6..4f63473 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -4,18 +4,17 @@ - - LB Phone | App Template - React TS + + SLRN Groups - - + +
- diff --git a/web/src/components/GroupDashboard.tsx b/web/src/components/GroupDashboard.tsx index 0f476af..a0f74ba 100644 --- a/web/src/components/GroupDashboard.tsx +++ b/web/src/components/GroupDashboard.tsx @@ -29,7 +29,6 @@ const GroupDashboard = ({ setCurrentPage }) => { status: "open", GName: groupData.groupName, GPass: groupData.password, - Users: 1, leader: playerData.source, members: [ { @@ -126,14 +125,14 @@ const GroupDashboard = ({ setCurrentPage }) => {
<> {isLeader || isMember ? ( -
{renderIcons(isLeader, isMember, element.Users)}
+
{renderIcons(isLeader, isMember, element.members.length)}
) : ( <> - {element.Users} + {element.members.length} )} diff --git a/web/src/storage/GroupStore.ts b/web/src/storage/GroupStore.ts index 28ab2e5..b9bdc13 100644 --- a/web/src/storage/GroupStore.ts +++ b/web/src/storage/GroupStore.ts @@ -20,7 +20,6 @@ export const useGroupStore = create((set) => ({ status: 'open', GName: 'Larrys Group', GPass: 'password', - Users: 3, leader: 1, members: [{ name: 'Larry', CID: 'ABCD1234', Player: 1 }, { name: 'Barry', CID: 'EFGH5678', Player: 2 }, @@ -33,12 +32,32 @@ export const useGroupStore = create((set) => ({ status: 'open', GName: 'Group 2', GPass: 'password', - Users: 2, leader: 2, members: [{ name: 'Larry', CID: 'ABCD1234', Player: 3 }], stage: initialSteps, ScriptCreated: false, }, + { + id: 3, + status: 'open', + GName: 'Group 3', + GPass: 'password', + leader: 3, + members: [{ name: 'Larry', CID: 'ABCD1234', Player: 1 }, + { name: 'Barry', CID: 'EFGH5678', Player: 3 }], + stage: initialSteps, + ScriptCreated: false, + }, + { + id: 4, + status: 'open', + GName: 'Group 4', + GPass: 'password', + leader: 4, + members: [{ name: 'Larry', CID: 'ABCD1234', Player: 4 }], + stage: initialSteps, + ScriptCreated: false, + } ], setGroups: (groups) => set({ groups }), })); diff --git a/web/src/types/Group.ts b/web/src/types/Group.ts index 98c8bbf..8102528 100644 --- a/web/src/types/Group.ts +++ b/web/src/types/Group.ts @@ -3,7 +3,6 @@ export type Group = { status: string; GName: string; GPass: string; - Users: number; leader: number; members: Member[]; stage: GroupJobStep[]; diff --git a/web/src/utils/fetchReactNui.ts b/web/src/utils/fetchReactNui.ts new file mode 100644 index 0000000..4b81eee --- /dev/null +++ b/web/src/utils/fetchReactNui.ts @@ -0,0 +1,39 @@ +import { isEnvBrowser } from "./misc"; + +/** + * Simple wrapper around fetch API tailored for CEF/NUI use. This abstraction + * can be extended to include AbortController if needed or if the response isn't + * JSON. Tailor it to your needs. + * + * @param eventName - The endpoint eventname to target + * @param data - Data you wish to send in the NUI Callback + * @param mockData - Mock data to be returned if in the browser + * + * @return returnData - A promise for the data sent back by the NuiCallbacks CB argument + */ + +export async function fetchReactNui( + eventName: string, + data?: unknown, + mockData?: T, +): Promise { + const options = { + method: "post", + headers: { + "Content-Type": "application/json; charset=UTF-8", + }, + body: JSON.stringify(data), + }; + + if (isEnvBrowser() && mockData) return mockData; + + const resourceName = (window as any).GetParentResourceName + ? (window as any).GetParentResourceName() + : "nui-frame-app"; + + const resp = await fetch(`https://${resourceName}/${eventName}`, options); + + const respFormatted = await resp.json(); + + return respFormatted; +}