From f1a2ce82127c319055251bba45e9efdfff43ac7f Mon Sep 17 00:00:00 2001 From: izac112 Date: Fri, 8 Mar 2024 02:30:05 +0100 Subject: [PATCH] Update tgui.bundle.js --- tgui/public/tgui.bundle.js | 138 ++++++++++++++++++------------------- 1 file changed, 69 insertions(+), 69 deletions(-) diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 37569555b3a..9c9941000ce 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -6,7 +6,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function e(o,l){return l!=null&&typeof Symbol!="undefined"&&l[Symbol.hasInstance]?!!l[Symbol.hasInstance](o):o instanceof l}function i(o){"@swc/helpers - typeof";return o&&typeof Symbol!="undefined"&&o.constructor===Symbol?"symbol":typeof o}var n=t(44583),r=t(7864);function s(o){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+o,E=1;El}return!1}function j(o,l,E,T,L,W,q){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=T,this.attributeNamespace=L,this.mustUseProperty=E,this.propertyName=o,this.type=l,this.sanitizeURL=W,this.removeEmptyString=q}var O={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){O[o]=new j(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var l=o[0];O[l]=new j(l,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){O[o]=new j(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){O[o]=new j(o,2,!1,o,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(o){O[o]=new j(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){O[o]=new j(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){O[o]=new j(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){O[o]=new j(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){O[o]=new j(o,5,!1,o.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function I(o){return o[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(o){var l=o.replace(b,I);O[l]=new j(l,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var l=o.replace(b,I);O[l]=new j(l,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var l=o.replace(b,I);O[l]=new j(l,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){O[o]=new j(o,1,!1,o.toLowerCase(),null,!1,!1)}),O.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){O[o]=new j(o,1,!1,o.toLowerCase(),null,!0,!0)});function _(o,l,E,T){var L=O.hasOwnProperty(l)?O[l]:null;(L!==null?L.type!==0:T||!(2ie||L[q]!==W[ie]){var fe="\n"+L[q].replace(" at new "," at ");return o.displayName&&fe.includes("")&&(fe=fe.replace("",o.displayName)),fe}while(1<=q&&0<=ie);break}}}finally{ce=!1,Error.prepareStackTrace=E}return(o=o?o.displayName||o.name:"")?ne(o):""}function ve(o){switch(o.tag){case 5:return ne(o.type);case 16:return ne("Lazy");case 13:return ne("Suspense");case 19:return ne("SuspenseList");case 0:case 2:case 15:return o=de(o.type,!1),o;case 11:return o=de(o.type.render,!1),o;case 1:return o=de(o.type,!0),o;default:return""}}function pe(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case R:return"Fragment";case A:return"Portal";case N:return"Profiler";case K:return"StrictMode";case J:return"Suspense";case H:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case X:return(o.displayName||"Context")+".Consumer";case k:return(o._context.displayName||"Context")+".Provider";case F:var l=o.render;return o=o.displayName,o||(o=l.displayName||l.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case Q:return l=o.displayName||null,l!==null?l:pe(o.type)||"Memo";case Z:l=o._payload,o=o._init;try{return pe(o(l))}catch(E){}}return null}function me(o){var l=o.type;switch(o.tag){case 24:return"Cache";case 9:return(l.displayName||"Context")+".Consumer";case 10:return(l._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=l.render,o=o.displayName||o.name||"",l.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return l;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pe(l);case 8:return l===K?"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 l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l}return null}function be(o){switch(typeof o=="undefined"?"undefined":i(o)){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function we(o){var l=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Je(o){var l=we(o)?"checked":"value",E=Object.getOwnPropertyDescriptor(o.constructor.prototype,l),T=""+o[l];if(!o.hasOwnProperty(l)&&typeof E!="undefined"&&typeof E.get=="function"&&typeof E.set=="function"){var L=E.get,W=E.set;return Object.defineProperty(o,l,{configurable:!0,get:function(){return L.call(this)},set:function(ie){T=""+ie,W.call(this,ie)}}),Object.defineProperty(o,l,{enumerable:E.enumerable}),{getValue:function(){return T},setValue:function(ie){T=""+ie},stopTracking:function(){o._valueTracker=null,delete o[l]}}}}function ze(o){o._valueTracker||(o._valueTracker=Je(o))}function Ke(o){if(!o)return!1;var l=o._valueTracker;if(!l)return!0;var E=l.getValue(),T="";return o&&(T=we(o)?o.checked?"true":"false":o.value),o=T,o!==E?(l.setValue(o),!0):!1}function Be(o){if(o=o||(typeof document!="undefined"?document:void 0),typeof o=="undefined")return null;try{return o.activeElement||o.body}catch(l){return o.body}}function ct(o,l){var E=l.checked;return ee({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:E!=null?E:o._wrapperState.initialChecked})}function xt(o,l){var E=l.defaultValue==null?"":l.defaultValue,T=l.checked!=null?l.checked:l.defaultChecked;E=be(l.value!=null?l.value:E),o._wrapperState={initialChecked:T,initialValue:E,controlled:l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null}}function st(o,l){l=l.checked,l!=null&&_(o,"checked",l,!1)}function ot(o,l){st(o,l);var E=be(l.value),T=l.type;if(E!=null)T==="number"?(E===0&&o.value===""||o.value!=E)&&(o.value=""+E):o.value!==""+E&&(o.value=""+E);else if(T==="submit"||T==="reset"){o.removeAttribute("value");return}l.hasOwnProperty("value")?Le(o,l.type,E):l.hasOwnProperty("defaultValue")&&Le(o,l.type,be(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(o.defaultChecked=!!l.defaultChecked)}function Ae(o,l,E){if(l.hasOwnProperty("value")||l.hasOwnProperty("defaultValue")){var T=l.type;if(!(T!=="submit"&&T!=="reset"||l.value!==void 0&&l.value!==null))return;l=""+o._wrapperState.initialValue,E||l===o.value||(o.value=l),o.defaultValue=l}E=o.name,E!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,E!==""&&(o.name=E)}function Le(o,l,E){(l!=="number"||Be(o.ownerDocument)!==o)&&(E==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+E&&(o.defaultValue=""+E))}var Pe=Array.isArray;function ke(o,l,E,T){if(o=o.options,l){l={};for(var L=0;L"+l.valueOf().toString()+"",l=bt.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;l.firstChild;)o.appendChild(l.firstChild)}});function lt(o,l){if(l){var E=o.firstChild;if(E&&E===o.lastChild&&E.nodeType===3){E.nodeValue=l;return}}o.textContent=l}var Ge={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},je=["Webkit","ms","Moz","O"];Object.keys(Ge).forEach(function(o){je.forEach(function(l){l=l+o.charAt(0).toUpperCase()+o.substring(1),Ge[l]=Ge[o]})});function Qe(o,l,E){return l==null||typeof l=="boolean"||l===""?"":E||typeof l!="number"||l===0||Ge.hasOwnProperty(o)&&Ge[o]?(""+l).trim():l+"px"}function mt(o,l){o=o.style;for(var E in l)if(l.hasOwnProperty(E)){var T=E.indexOf("--")===0,L=Qe(E,l[E],T);E==="float"&&(E="cssFloat"),T?o.setProperty(E,L):o[E]=L}}var Pt=ee({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 zt(o,l){if(l){if(Pt[o]&&(l.children!=null||l.dangerouslySetInnerHTML!=null))throw Error(s(137,o));if(l.dangerouslySetInnerHTML!=null){if(l.children!=null)throw Error(s(60));if(typeof l.dangerouslySetInnerHTML!="object"||!("__html"in l.dangerouslySetInnerHTML))throw Error(s(61))}if(l.style!=null&&typeof l.style!="object")throw Error(s(62))}}function en(o,l){if(o.indexOf("-")===-1)return typeof l.is=="string";switch(o){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 Wt=null;function dn(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Bn=null,Gn=null,Hn=null;function Eo(o){if(o=Rr(o)){if(typeof Bn!="function")throw Error(s(280));var l=o.stateNode;l&&(l=Xo(l),Bn(o.stateNode,o.type,l))}}function bo(o){Gn?Hn?Hn.push(o):Hn=[o]:Gn=o}function Oo(){if(Gn){var o=Gn,l=Hn;if(Hn=Gn=null,Eo(o),l)for(o=0;o>>=0,o===0?32:31-(Hi(o)/Yi|0)|0}var sr=64,ha=4194304;function Po(o){switch(o&-o){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 o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function ma(o,l){var E=o.pendingLanes;if(E===0)return 0;var T=0,L=o.suspendedLanes,W=o.pingedLanes,q=E&268435455;if(q!==0){var ie=q&~L;ie!==0?T=Po(ie):(W&=q,W!==0&&(T=Po(W)))}else q=E&~L,q!==0?T=Po(q):W!==0&&(T=Po(W));if(T===0)return 0;if(l!==0&&l!==T&&!(l&L)&&(L=T&-T,W=l&-l,L>=W||L===16&&(W&4194240)!==0))return l;if(T&4&&(T|=E&16),l=o.entangledLanes,l!==0)for(o=o.entanglements,l&=T;0E;E++)l.push(o);return l}function Mo(o,l,E){o.pendingLanes|=l,l!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,l=31-Pn(l),o[l]=E}function el(o,l){var E=o.pendingLanes&~l;o.pendingLanes=l,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=l,o.mutableReadLanes&=l,o.entangledLanes&=l,l=o.entanglements;var T=o.eventTimes;for(o=o.expirationTimes;0=Lo),vi=" ",_a=!1;function ds(o,l){switch(o){case"keyup":return us.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vl(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var _r=!1;function yc(o,l){switch(o){case"compositionend":return vl(l);case"keypress":return l.which!==32?null:(_a=!0,vi);case"textInput":return o=l.data,o===vi&&_a?null:o;default:return null}}function xi(o,l){if(_r)return o==="compositionend"||!Ia&&ds(o,l)?(o=ur(),cr=Ao=kn=null,_r=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1=l)return{node:E,offset:l-o};o=T}e:{for(;E;){if(E.nextSibling){E=E.nextSibling;break e}E=E.parentNode}E=void 0}E=hs(E)}}function Da(o,l){return o&&l?o===l?!0:o&&o.nodeType===3?!1:l&&l.nodeType===3?Da(o,l.parentNode):"contains"in o?o.contains(l):o.compareDocumentPosition?!!(o.compareDocumentPosition(l)&16):!1:!1}function Sa(){for(var o=window,l=Be();e(l,o.HTMLIFrameElement);){try{var E=typeof l.contentWindow.location.href=="string"}catch(T){E=!1}if(E)o=l.contentWindow;else break;l=Be(o.document)}return l}function Ci(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l&&(l==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||l==="textarea"||o.contentEditable==="true")}function yl(o){var l=Sa(),E=o.focusedElem,T=o.selectionRange;if(l!==E&&E&&E.ownerDocument&&Da(E.ownerDocument.documentElement,E)){if(T!==null&&Ci(E)){if(l=T.start,o=T.end,o===void 0&&(o=l),"selectionStart"in E)E.selectionStart=l,E.selectionEnd=Math.min(o,E.value.length);else if(o=(l=E.ownerDocument||document)&&l.defaultView||window,o.getSelection){o=o.getSelection();var L=E.textContent.length,W=Math.min(T.start,L);T=T.end===void 0?W:Math.min(T.end,L),!o.extend&&W>T&&(L=T,T=W,W=L),L=Pr(E,W);var q=Pr(E,T);L&&q&&(o.rangeCount!==1||o.anchorNode!==L.node||o.anchorOffset!==L.offset||o.focusNode!==q.node||o.focusOffset!==q.offset)&&(l=l.createRange(),l.setStart(L.node,L.offset),o.removeAllRanges(),W>T?(o.addRange(l),o.extend(q.node,q.offset)):(l.setEnd(q.node,q.offset),o.addRange(l)))}}for(l=[],o=E;o=o.parentNode;)o.nodeType===1&&l.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E=document.documentMode,Mr=null,ms=null,Ta=null,Uo=!1;function Cl(o,l,E){var T=E.window===E?E.document:E.nodeType===9?E:E.ownerDocument;Uo||Mr==null||Mr!==Be(T)||(T=Mr,"selectionStart"in T&&Ci(T)?T={start:T.selectionStart,end:T.selectionEnd}:(T=(T.ownerDocument&&T.ownerDocument.defaultView||window).getSelection(),T={anchorNode:T.anchorNode,anchorOffset:T.anchorOffset,focusNode:T.focusNode,focusOffset:T.focusOffset}),Ta&&No(Ta,T)||(Ta=T,T=La(ms,"onSelect"),0wr||(o.current=Go[wr],Go[wr]=null,wr--)}function Tt(o,l){wr++,Go[wr]=o.current,o.current=l}var xr={},Zt=Qn(xr),tn=Qn(!1),$n=xr;function so(o,l){var E=o.type.contextTypes;if(!E)return xr;var T=o.stateNode;if(T&&T.__reactInternalMemoizedUnmaskedChildContext===l)return T.__reactInternalMemoizedMaskedChildContext;var L={},W;for(W in E)L[W]=l[W];return T&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=l,o.__reactInternalMemoizedMaskedChildContext=L),L}function Xt(o){return o=o.childContextTypes,o!=null}function za(){At(tn),At(Zt)}function Sl(o,l,E){if(Zt.current!==xr)throw Error(s(168));Tt(Zt,l),Tt(tn,E)}function Ri(o,l,E){var T=o.stateNode;if(l=l.childContextTypes,typeof T.getChildContext!="function")return E;T=T.getChildContext();for(var L in T)if(!(L in l))throw Error(s(108,me(o)||"Unknown",L));return ee({},E,T)}function lo(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||xr,$n=Zt.current,Tt(Zt,o),Tt(tn,tn.current),!0}function Cs(o,l,E){var T=o.stateNode;if(!T)throw Error(s(169));E?(o=Ri(o,l,$n),T.__reactInternalMemoizedMergedChildContext=o,At(tn),At(Zt),Tt(Zt,o)):At(tn),Tt(tn,E)}var Zn=null,co=!1,wi=!1;function Bi(o){Zn===null?Zn=[o]:Zn.push(o)}function Oc(o){co=!0,Bi(o)}function An(){if(!wi&&Zn!==null){wi=!0;var o=0,l=_t;try{var E=Zn;for(_t=1;o>=q,L-=q,qn=1<<32-Pn(l)+L|E<gt?(qt=ht,ht=null):qt=ht.sibling;var It=De(xe,ht,ge[gt],$e);if(It===null){ht===null&&(ht=qt);break}o&&ht&&It.alternate===null&&l(xe,ht),he=W(It,he,gt),ft===null?rt=It:ft.sibling=It,ft=It,ht=qt}if(gt===ge.length)return E(xe,ht),Kt&&fo(xe,gt),rt;if(ht===null){for(;gtgt?(qt=ht,ht=null):qt=ht.sibling;var Co=De(xe,ht,It.value,$e);if(Co===null){ht===null&&(ht=qt);break}o&&ht&&Co.alternate===null&&l(xe,ht),he=W(Co,he,gt),ft===null?rt=Co:ft.sibling=Co,ft=Co,ht=qt}if(It.done)return E(xe,ht),Kt&&fo(xe,gt),rt;if(ht===null){for(;!It.done;gt++,It=ge.next())It=Te(xe,It.value,$e),It!==null&&(he=W(It,he,gt),ft===null?rt=It:ft.sibling=It,ft=It);return Kt&&fo(xe,gt),rt}for(ht=T(xe,ht);!It.done;gt++,It=ge.next())It=Ye(ht,xe,gt,It.value,$e),It!==null&&(o&&It.alternate!==null&&ht.delete(It.key===null?gt:It.key),he=W(It,he,gt),ft===null?rt=It:ft.sibling=It,ft=It);return o&&ht.forEach(function(xd){return l(xe,xd)}),Kt&&fo(xe,gt),rt}function Vt(xe,he,ge,$e){if(typeof ge=="object"&&ge!==null&&ge.type===R&&ge.key===null&&(ge=ge.props.children),typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case P:e:{for(var rt=ge.key,ft=he;ft!==null;){if(ft.key===rt){if(rt=ge.type,rt===R){if(ft.tag===7){E(xe,ft.sibling),he=L(ft,ge.props.children),he.return=xe,xe=he;break e}}else if(ft.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===Z&&Nr(rt)===ft.type){E(xe,ft.sibling),he=L(ft,ge.props),he.ref=er(xe,ft,ge),he.return=xe,xe=he;break e}E(xe,ft);break}else l(xe,ft);ft=ft.sibling}ge.type===R?(he=ra(ge.props.children,xe.mode,$e,ge.key),he.return=xe,xe=he):($e=Us(ge.type,ge.key,ge.props,null,xe.mode,$e),$e.ref=er(xe,he,ge),$e.return=xe,xe=$e)}return q(xe);case A:e:{for(ft=ge.key;he!==null;){if(he.key===ft)if(he.tag===4&&he.stateNode.containerInfo===ge.containerInfo&&he.stateNode.implementation===ge.implementation){E(xe,he.sibling),he=L(he,ge.children||[]),he.return=xe,xe=he;break e}else{E(xe,he);break}else l(xe,he);he=he.sibling}he=dc(ge,xe.mode,$e),he.return=xe,xe=he}return q(xe);case Z:return ft=ge._init,Vt(xe,he,ft(ge._payload),$e)}if(Pe(ge))return qe(xe,he,ge,$e);if(Y(ge))return tt(xe,he,ge,$e);kr(xe,ge)}return typeof ge=="string"&&ge!==""||typeof ge=="number"?(ge=""+ge,he!==null&&he.tag===6?(E(xe,he.sibling),he=L(he,ge),he.return=xe,xe=he):(E(xe,he),he=uc(ge,xe.mode,$e),he.return=xe,xe=he),q(xe)):E(xe,he)}return Vt}var Wn=tr(!0),Qo=tr(!1),Rn={},Cn=Qn(Rn),Zo=Qn(Rn),Ur=Qn(Rn);function $r(o){if(o===Rn)throw Error(s(174));return o}function Va(o,l){switch(Tt(Ur,l),Tt(Zo,o),Tt(Cn,Rn),o=l.nodeType,o){case 9:case 11:l=(l=l.documentElement)?l.namespaceURI:Mt(null,"");break;default:o=o===8?l.parentNode:l,l=o.namespaceURI||null,o=o.tagName,l=Mt(l,o)}At(Cn),Tt(Cn,l)}function ho(){At(Cn),At(Zo),At(Ur)}function Os(o){$r(Ur.current);var l=$r(Cn.current),E=Mt(l,o.type);l!==E&&(Tt(Zo,o),Tt(Cn,E))}function Xa(o){Zo.current===o&&(At(Cn),At(Zo))}var Bt=Qn(0);function Ga(o){for(var l=o;l!==null;){if(l.tag===13){var E=l.memoizedState;if(E!==null&&(E=E.dehydrated,E===null||E.data==="$?"||E.data==="$!"))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if(l.flags&128)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Ki=[];function nr(){for(var o=0;oE?E:4,o(!0);var T=Ha.transition;Ha.transition={};try{o(!1),l()}finally{_t=E,Ha.transition=T}}function zc(){return Fn().memoizedState}function Uu(o,l,E){var T=go(o);if(E={lane:T,action:E,hasEagerState:!1,eagerState:null,next:null},Wc(o))Fc(l,E);else if(E=Xe(o,l,E,T),E!==null){var L=vn();ar(E,o,T,L),Vc(E,l,T)}}function $u(o,l,E){var T=go(o),L={lane:T,action:E,hasEagerState:!1,eagerState:null,next:null};if(Wc(o))Fc(l,L);else{var W=o.alternate;if(o.lanes===0&&(W===null||W.lanes===0)&&(W=l.lastRenderedReducer,W!==null))try{var q=l.lastRenderedState,ie=W(q,E);if(L.hasEagerState=!0,L.eagerState=ie,sn(ie,q)){var fe=l.interleaved;fe===null?(L.next=L,nt(l)):(L.next=fe.next,fe.next=L),l.interleaved=L;return}}catch(ye){}finally{}E=Xe(o,l,L,T),E!==null&&(L=vn(),ar(E,o,T,L),Vc(E,l,T))}}function Wc(o){var l=o.alternate;return o===Rt||l!==null&&l===Rt}function Fc(o,l){mo=Jo=!0;var E=o.pending;E===null?l.next=l:(l.next=E.next,E.next=l),o.pending=l}function Vc(o,l,E){if(E&4194240){var T=l.lanes;T&=o.pendingLanes,E|=T,l.lanes=E,ai(o,E)}}var Ps={readContext:Ne,useCallback:ln,useContext:ln,useEffect:ln,useImperativeHandle:ln,useInsertionEffect:ln,useLayoutEffect:ln,useMemo:ln,useReducer:ln,useRef:ln,useState:ln,useDebugValue:ln,useDeferredValue:ln,useTransition:ln,useMutableSource:ln,useSyncExternalStore:ln,useId:ln,unstable_isNewReconciler:!1},zu={readContext:Ne,useCallback:function(l,E){return jr().memoizedState=[l,E===void 0?null:E],l},useContext:Ne,useEffect:wc,useImperativeHandle:function(l,E,T){return T=T!=null?T.concat([l]):null,Is(4194308,4,Lc.bind(null,E,l),T)},useLayoutEffect:function(l,E){return Is(4194308,4,l,E)},useInsertionEffect:function(l,E){return Is(4,2,l,E)},useMemo:function(l,E){var T=jr();return E=E===void 0?null:E,l=l(),T.memoizedState=[l,E],l},useReducer:function(l,E,T){var L=jr();return E=T!==void 0?T(E):E,L.memoizedState=L.baseState=E,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:E},L.queue=l,l=l.dispatch=Uu.bind(null,Rt,l),[L.memoizedState,l]},useRef:function(l){var E=jr();return l={current:l},E.memoizedState=l},useState:Ac,useDebugValue:Nl,useDeferredValue:function(l){return jr().memoizedState=l},useTransition:function(){var l=Ac(!1),E=l[0];return l=Nu.bind(null,l[1]),jr().memoizedState=l,[E,l]},useMutableSource:function(){},useSyncExternalStore:function(l,E,T){var L=Rt,W=jr();if(Kt){if(T===void 0)throw Error(s(407));T=T()}else{if(T=E(),Jt===null)throw Error(s(349));gr&30||Pc(L,E,T)}W.memoizedState=T;var q={value:T,getSnapshot:E};return W.queue=q,wc(Dc.bind(null,L,q,l),[l]),L.flags|=2048,Ni(9,Mc.bind(null,L,q,T,E),void 0,null),T},useId:function(){var l=jr(),E=Jt.identifierPrefix;if(Kt){var T=pr,L=qn;T=(L&~(1<<32-Pn(L)-1)).toString(32)+T,E=":"+E+"R"+T,T=Li++,0<\/script>",o=o.removeChild(o.firstChild)):typeof T.is=="string"?o=q.createElement(E,{is:T.is}):(o=q.createElement(E),E==="select"&&(q=o,T.multiple?q.multiple=!0:T.size&&(q.size=T.size))):o=q.createElementNS(o,E),o[Un]=l,o[Vo]=T,lu(o,l,!1,!1),l.stateNode=o;e:{switch(q=en(E,T),E){case"dialog":Ot("cancel",o),Ot("close",o),L=T;break;case"iframe":case"object":case"embed":Ot("load",o),L=T;break;case"video":case"audio":for(L=0;LJa&&(l.flags|=128,T=!0,Ui(W,!1),l.lanes=4194304)}else{if(!T)if(o=Ga(q),o!==null){if(l.flags|=128,T=!0,E=o.updateQueue,E!==null&&(l.updateQueue=E,l.flags|=4),Ui(W,!0),W.tail===null&&W.tailMode==="hidden"&&!q.alternate&&!Kt)return cn(l),null}else 2*wt()-W.renderingStartTime>Ja&&E!==1073741824&&(l.flags|=128,T=!0,Ui(W,!1),l.lanes=4194304);W.isBackwards?(q.sibling=l.child,l.child=q):(E=W.last,E!==null?E.sibling=q:l.child=q,W.last=q)}return W.tail!==null?(l=W.tail,W.rendering=l,W.tail=l.sibling,W.renderingStartTime=wt(),l.sibling=null,E=Bt.current,Tt(Bt,T?E&1|2:E&1),l):(cn(l),null);case 22:case 23:return sc(),T=l.memoizedState!==null,o!==null&&o.memoizedState!==null!==T&&(l.flags|=8192),T&&l.mode&1?wn&1073741824&&(cn(l),l.subtreeFlags&6&&(l.flags|=8192)):cn(l),null;case 24:return null;case 25:return null}throw Error(s(156,l.tag))}function Qu(o,l){switch(bs(l),l.tag){case 1:return Xt(l.type)&&za(),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return ho(),At(tn),At(Zt),nr(),o=l.flags,o&65536&&!(o&128)?(l.flags=o&-65537|128,l):null;case 5:return Xa(l),null;case 13:if(At(Bt),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(s(340));G()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return At(Bt),null;case 4:return ho(),null;case 10:return _e(l.type._context),null;case 22:case 23:return sc(),null;case 24:return null;default:return null}}var Ss=!1,un=!1,Zu=typeof WeakSet=="function"?WeakSet:Set,Ze=null;function Qa(o,l){var E=o.ref;if(E!==null)if(typeof E=="function")try{E(null)}catch(T){$t(o,l,T)}else E.current=null}function Yl(o,l,E){try{E()}catch(T){$t(o,l,T)}}var du=!1;function Ju(o,l){if(Pi=pa,o=Sa(),Ci(o)){if("selectionStart"in o)var E={start:o.selectionStart,end:o.selectionEnd};else e:{E=(E=o.ownerDocument)&&E.defaultView||window;var T=E.getSelection&&E.getSelection();if(T&&T.rangeCount!==0){E=T.anchorNode;var L=T.anchorOffset,W=T.focusNode;T=T.focusOffset;try{E.nodeType,W.nodeType}catch($e){E=null;break e}var q=0,ie=-1,fe=-1,ye=0,Oe=0,Te=o,De=null;t:for(;;){for(var Ye;Te!==E||L!==0&&Te.nodeType!==3||(ie=q+L),Te!==W||T!==0&&Te.nodeType!==3||(fe=q+T),Te.nodeType===3&&(q+=Te.nodeValue.length),(Ye=Te.firstChild)!==null;)De=Te,Te=Ye;for(;;){if(Te===o)break t;if(De===E&&++ye===L&&(ie=q),De===W&&++Oe===T&&(fe=q),(Ye=Te.nextSibling)!==null)break;Te=De,De=Te.parentNode}Te=Ye}E=ie===-1||fe===-1?null:{start:ie,end:fe}}else E=null}E=E||{start:0,end:0}}else E=null;for(Mi={focusedElem:o,selectionRange:E},pa=!1,Ze=l;Ze!==null;)if(l=Ze,o=l.child,(l.subtreeFlags&1028)!==0&&o!==null)o.return=l,Ze=o;else for(;Ze!==null;){l=Ze;try{var qe=l.alternate;if(l.flags&1024)switch(l.tag){case 0:case 11:case 15:break;case 1:if(qe!==null){var tt=qe.memoizedProps,Vt=qe.memoizedState,xe=l.stateNode,he=xe.getSnapshotBeforeUpdate(l.elementType===l.type?tt:se(l.type,tt),Vt);xe.__reactInternalSnapshotBeforeUpdate=he}break;case 3:var ge=l.stateNode.containerInfo;ge.nodeType===1?ge.textContent="":ge.nodeType===9&&ge.documentElement&&ge.removeChild(ge.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch($e){$t(l,l.return,$e)}if(o=l.sibling,o!==null){o.return=l.return,Ze=o;break}Ze=l.return}return qe=du,du=!1,qe}function $i(o,l,E){var T=l.updateQueue;if(T=T!==null?T.lastEffect:null,T!==null){var L=T=T.next;do{if((L.tag&o)===o){var W=L.destroy;L.destroy=void 0,W!==void 0&&Yl(l,E,W)}L=L.next}while(L!==T)}}function Ts(o,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var E=l=l.next;do{if((E.tag&o)===o){var T=E.create;E.destroy=T()}E=E.next}while(E!==l)}}function Ql(o){var l=o.ref;if(l!==null){var E=o.stateNode;switch(o.tag){case 5:o=E;break;default:o=E}typeof l=="function"?l(o):l.current=o}}function fu(o){var l=o.alternate;l!==null&&(o.alternate=null,fu(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&(delete l[Un],delete l[Vo],delete l[Ti],delete l[Ai],delete l[Dl])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function hu(o){return o.tag===5||o.tag===3||o.tag===4}function mu(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||hu(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Zl(o,l,E){var T=o.tag;if(T===5||T===6)o=o.stateNode,l?E.nodeType===8?E.parentNode.insertBefore(o,l):E.insertBefore(o,l):(E.nodeType===8?(l=E.parentNode,l.insertBefore(o,E)):(l=E,l.appendChild(o)),E=E._reactRootContainer,E!=null||l.onclick!==null||(l.onclick=ao));else if(T!==4&&(o=o.child,o!==null))for(Zl(o,l,E),o=o.sibling;o!==null;)Zl(o,l,E),o=o.sibling}function Jl(o,l,E){var T=o.tag;if(T===5||T===6)o=o.stateNode,l?E.insertBefore(o,l):E.appendChild(o);else if(T!==4&&(o=o.child,o!==null))for(Jl(o,l,E),o=o.sibling;o!==null;)Jl(o,l,E),o=o.sibling}var nn=null,rr=!1;function vo(o,l,E){for(E=E.child;E!==null;)vu(o,l,E),E=E.sibling}function vu(o,l,E){if(_n&&typeof _n.onCommitFiberUnmount=="function")try{_n.onCommitFiberUnmount(fa,E)}catch(ie){}switch(E.tag){case 5:un||Qa(E,l);case 6:var T=nn,L=rr;nn=null,vo(o,l,E),nn=T,rr=L,nn!==null&&(rr?(o=nn,E=E.stateNode,o.nodeType===8?o.parentNode.removeChild(E):o.removeChild(E)):nn.removeChild(E.stateNode));break;case 18:nn!==null&&(rr?(o=nn,E=E.stateNode,o.nodeType===8?Fo(o.parentNode,E):o.nodeType===1&&Fo(o,E),To(o)):Fo(nn,E.stateNode));break;case 4:T=nn,L=rr,nn=E.stateNode.containerInfo,rr=!0,vo(o,l,E),nn=T,rr=L;break;case 0:case 11:case 14:case 15:if(!un&&(T=E.updateQueue,T!==null&&(T=T.lastEffect,T!==null))){L=T=T.next;do{var W=L,q=W.destroy;W=W.tag,q!==void 0&&(W&2||W&4)&&Yl(E,l,q),L=L.next}while(L!==T)}vo(o,l,E);break;case 1:if(!un&&(Qa(E,l),T=E.stateNode,typeof T.componentWillUnmount=="function"))try{T.props=E.memoizedProps,T.state=E.memoizedState,T.componentWillUnmount()}catch(ie){$t(E,l,ie)}vo(o,l,E);break;case 21:vo(o,l,E);break;case 22:E.mode&1?(un=(T=un)||E.memoizedState!==null,vo(o,l,E),un=T):vo(o,l,E);break;default:vo(o,l,E)}}function xu(o){var l=o.updateQueue;if(l!==null){o.updateQueue=null;var E=o.stateNode;E===null&&(E=o.stateNode=new Zu),l.forEach(function(T){var L=sd.bind(null,o,T);E.has(T)||(E.add(T),T.then(L,L))})}}function or(o,l){var E=l.deletions;if(E!==null)for(var T=0;TL&&(L=q),T&=~W}if(T=L,T=wt()-T,T=(120>T?120:480>T?480:1080>T?1080:1920>T?1920:3e3>T?3e3:4320>T?4320:1960*ed(T/1960))-T,10o?16:o,po===null)var T=!1;else{if(o=po,po=null,Ks=0,Et&6)throw Error(s(331));var L=Et;for(Et|=4,Ze=o.current;Ze!==null;){var W=Ze,q=W.child;if(Ze.flags&16){var ie=W.deletions;if(ie!==null){for(var fe=0;fewt()-tc?ta(o,0):ec|=E),On(o,l)}function Du(o,l){l===0&&(o.mode&1?(l=ha,ha<<=1,!(ha&130023424)&&(ha=4194304)):l=1);var E=vn();o=et(o,l),o!==null&&(Mo(o,l,E),On(o,E))}function id(o){var l=o.memoizedState,E=0;l!==null&&(E=l.retryLane),Du(o,E)}function sd(o,l){var E=0;switch(o.tag){case 13:var T=o.stateNode,L=o.memoizedState;L!==null&&(E=L.retryLane);break;case 19:T=o.stateNode;break;default:throw Error(s(314))}T!==null&&T.delete(l),Du(o,E)}var Su;Su=function(l,E,T){if(l!==null)if(l.memoizedProps!==E.pendingProps||tn.current)En=!0;else{if(!(l.lanes&T)&&!(E.flags&128))return En=!1,Hu(l,E,T);En=!!(l.flags&131072)}else En=!1,Kt&&E.flags&1048576&&Fa(E,uo,E.index);switch(E.lanes=0,E.tag){case 2:var L=E.type;Ds(l,E),l=E.pendingProps;var W=so(E,Zt.current);Ue(E,T),W=wl(null,E,L,l,W,T);var q=Bl();return E.flags|=1,typeof W=="object"&&W!==null&&typeof W.render=="function"&&W.$$typeof===void 0?(E.tag=1,E.memoizedState=null,E.updateQueue=null,Xt(L)?(q=!0,lo(E)):q=!1,E.memoizedState=W.state!==null&&W.state!==void 0?W.state:null,dt(E),W.updater=Gt,E.stateNode=W,W._reactInternals=E,Yo(E,L,l,T),E=Wl(null,E,L,!0,q,T)):(E.tag=0,Kt&&q&&Es(E),mn(null,E,W,T),E=E.child),E;case 16:L=E.elementType;e:{switch(Ds(l,E),l=E.pendingProps,W=L._init,L=W(L._payload),E.type=L,W=E.tag=cd(L),l=se(L,l),W){case 0:E=zl(null,E,L,l,T);break e;case 1:E=nu(null,E,L,l,T);break e;case 11:E=Zc(null,E,L,l,T);break e;case 14:E=Jc(null,E,L,se(L.type,l),T);break e}throw Error(s(306,L,""))}return E;case 0:return L=E.type,W=E.pendingProps,W=E.elementType===L?W:se(L,W),zl(l,E,L,W,T);case 1:return L=E.type,W=E.pendingProps,W=E.elementType===L?W:se(L,W),nu(l,E,L,W,T);case 3:e:{if(ru(E),l===null)throw Error(s(387));L=E.pendingProps,q=E.memoizedState,W=q.element,ut(l,E),St(E,L,null,T);var ie=E.memoizedState;if(L=ie.element,q.isDehydrated)if(q={element:L,isDehydrated:!1,cache:ie.cache,pendingSuspenseBoundaries:ie.pendingSuspenseBoundaries,transitions:ie.transitions},E.updateQueue.baseState=q,E.memoizedState=q,E.flags&256){W=Ya(Error(s(423)),E),E=ou(l,E,L,T,W);break e}else if(L!==W){W=Ya(Error(s(424)),E),E=ou(l,E,L,T,W);break e}else for(yn=hr(E.stateNode.containerInfo.firstChild),jn=E,Kt=!0,hn=null,T=Qo(E,null,L,T),E.child=T;T;)T.flags=T.flags&-3|4096,T=T.sibling;else{if(G(),L===W){E=Wr(l,E,T);break e}mn(l,E,L,T)}E=E.child}return E;case 5:return Os(E),l===null&&w(E),L=E.type,W=E.pendingProps,q=l!==null?l.memoizedProps:null,ie=W.children,Na(L,W)?ie=null:q!==null&&Na(L,q)&&(E.flags|=32),tu(l,E),mn(l,E,ie,T),E.child;case 6:return l===null&&w(E),null;case 13:return au(l,E,T);case 4:return Va(E,E.stateNode.containerInfo),L=E.pendingProps,l===null?E.child=Wn(E,null,L,T):mn(l,E,L,T),E.child;case 11:return L=E.type,W=E.pendingProps,W=E.elementType===L?W:se(L,W),Zc(l,E,L,W,T);case 7:return mn(l,E,E.pendingProps,T),E.child;case 8:return mn(l,E,E.pendingProps.children,T),E.child;case 12:return mn(l,E,E.pendingProps.children,T),E.child;case 10:e:{if(L=E.type._context,W=E.pendingProps,q=E.memoizedProps,ie=W.value,Tt(le,L._currentValue),L._currentValue=ie,q!==null)if(sn(q.value,ie)){if(q.children===W.children&&!tn.current){E=Wr(l,E,T);break e}}else for(q=E.child,q!==null&&(q.return=E);q!==null;){var fe=q.dependencies;if(fe!==null){ie=q.child;for(var ye=fe.firstContext;ye!==null;){if(ye.context===L){if(q.tag===1){ye=pt(-1,T&-T),ye.tag=2;var Oe=q.updateQueue;if(Oe!==null){Oe=Oe.shared;var Te=Oe.pending;Te===null?ye.next=ye:(ye.next=Te.next,Te.next=ye),Oe.pending=ye}}q.lanes|=T,ye=q.alternate,ye!==null&&(ye.lanes|=T),Re(q.return,T,E),fe.lanes|=T;break}ye=ye.next}}else if(q.tag===10)ie=q.type===E.type?null:q.child;else if(q.tag===18){if(ie=q.return,ie===null)throw Error(s(341));ie.lanes|=T,fe=ie.alternate,fe!==null&&(fe.lanes|=T),Re(ie,T,E),ie=q.sibling}else ie=q.child;if(ie!==null)ie.return=q;else for(ie=q;ie!==null;){if(ie===E){ie=null;break}if(q=ie.sibling,q!==null){q.return=ie.return,ie=q;break}ie=ie.return}q=ie}mn(l,E,W.children,T),E=E.child}return E;case 9:return W=E.type,L=E.pendingProps.children,Ue(E,T),W=Ne(W),L=L(W),E.flags|=1,mn(l,E,L,T),E.child;case 14:return L=E.type,W=se(L,E.pendingProps),W=se(L.type,W),Jc(l,E,L,W,T);case 15:return qc(l,E,E.type,E.pendingProps,T);case 17:return L=E.type,W=E.pendingProps,W=E.elementType===L?W:se(L,W),Ds(l,E),E.tag=1,Xt(L)?(l=!0,lo(E)):l=!1,Ue(E,T),zn(E,L,W),Yo(E,L,W,T),Wl(null,E,L,!0,l,T);case 19:return su(l,E,T);case 22:return eu(l,E,T)}throw Error(s(156,E.tag))};function Tu(o,l){return ae(o,l)}function ld(o,l,E,T){this.tag=o,this.key=E,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=T,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xn(o,l,E,T){return new ld(o,l,E,T)}function cc(o){return o=o.prototype,!(!o||!o.isReactComponent)}function cd(o){if(typeof o=="function")return cc(o)?1:0;if(o!=null){if(o=o.$$typeof,o===F)return 11;if(o===Q)return 14}return 2}function yo(o,l){var E=o.alternate;return E===null?(E=Xn(o.tag,l,o.key,o.mode),E.elementType=o.elementType,E.type=o.type,E.stateNode=o.stateNode,E.alternate=o,o.alternate=E):(E.pendingProps=l,E.type=o.type,E.flags=0,E.subtreeFlags=0,E.deletions=null),E.flags=o.flags&14680064,E.childLanes=o.childLanes,E.lanes=o.lanes,E.child=o.child,E.memoizedProps=o.memoizedProps,E.memoizedState=o.memoizedState,E.updateQueue=o.updateQueue,l=o.dependencies,E.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},E.sibling=o.sibling,E.index=o.index,E.ref=o.ref,E}function Us(o,l,E,T,L,W){var q=2;if(T=o,typeof o=="function")cc(o)&&(q=1);else if(typeof o=="string")q=5;else e:switch(o){case R:return ra(E.children,L,W,l);case K:q=8,L|=8;break;case N:return o=Xn(12,E,l,L|2),o.elementType=N,o.lanes=W,o;case J:return o=Xn(13,E,l,L),o.elementType=J,o.lanes=W,o;case H:return o=Xn(19,E,l,L),o.elementType=H,o.lanes=W,o;case V:return $s(E,L,W,l);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case k:q=10;break e;case X:q=9;break e;case F:q=11;break e;case Q:q=14;break e;case Z:q=16,T=null;break e}throw Error(s(130,o==null?o:typeof o=="undefined"?"undefined":i(o),""))}return l=Xn(q,E,l,L),l.elementType=o,l.type=T,l.lanes=W,l}function ra(o,l,E,T){return o=Xn(7,o,T,l),o.lanes=E,o}function $s(o,l,E,T){return o=Xn(22,o,T,l),o.elementType=V,o.lanes=E,o.stateNode={isHidden:!1},o}function uc(o,l,E){return o=Xn(6,o,null,l),o.lanes=E,o}function dc(o,l,E){return l=Xn(4,o.children!==null?o.children:[],o.key,l),l.lanes=E,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}function ud(o,l,E,T,L){this.tag=l,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=oi(0),this.expirationTimes=oi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oi(0),this.identifierPrefix=T,this.onRecoverableError=L,this.mutableSourceEagerHydrationData=null}function fc(o,l,E,T,L,W,q,ie,fe){return o=new ud(o,l,E,ie,fe),l===1?(l=1,W===!0&&(l|=8)):l=0,W=Xn(3,null,null,l),o.current=W,W.stateNode=o,W.memoizedState={element:T,isDehydrated:E,cache:null,transitions:null,pendingSuspenseBoundaries:null},dt(W),o}function dd(o,l,E){var T=3l}return!1}function j(o,l,E,T,L,W,q){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=T,this.attributeNamespace=L,this.mustUseProperty=E,this.propertyName=o,this.type=l,this.sanitizeURL=W,this.removeEmptyString=q}var O={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){O[o]=new j(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var l=o[0];O[l]=new j(l,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){O[o]=new j(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){O[o]=new j(o,2,!1,o,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(o){O[o]=new j(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){O[o]=new j(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){O[o]=new j(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){O[o]=new j(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){O[o]=new j(o,5,!1,o.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function I(o){return o[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(o){var l=o.replace(b,I);O[l]=new j(l,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var l=o.replace(b,I);O[l]=new j(l,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var l=o.replace(b,I);O[l]=new j(l,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){O[o]=new j(o,1,!1,o.toLowerCase(),null,!1,!1)}),O.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){O[o]=new j(o,1,!1,o.toLowerCase(),null,!0,!0)});function _(o,l,E,T){var L=O.hasOwnProperty(l)?O[l]:null;(L!==null?L.type!==0:T||!(2ie||L[q]!==W[ie]){var fe="\n"+L[q].replace(" at new "," at ");return o.displayName&&fe.includes("")&&(fe=fe.replace("",o.displayName)),fe}while(1<=q&&0<=ie);break}}}finally{ce=!1,Error.prepareStackTrace=E}return(o=o?o.displayName||o.name:"")?ne(o):""}function ve(o){switch(o.tag){case 5:return ne(o.type);case 16:return ne("Lazy");case 13:return ne("Suspense");case 19:return ne("SuspenseList");case 0:case 2:case 15:return o=de(o.type,!1),o;case 11:return o=de(o.type.render,!1),o;case 1:return o=de(o.type,!0),o;default:return""}}function pe(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case R:return"Fragment";case A:return"Portal";case N:return"Profiler";case K:return"StrictMode";case J:return"Suspense";case H:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case X:return(o.displayName||"Context")+".Consumer";case k:return(o._context.displayName||"Context")+".Provider";case F:var l=o.render;return o=o.displayName,o||(o=l.displayName||l.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case Z:return l=o.displayName||null,l!==null?l:pe(o.type)||"Memo";case Q:l=o._payload,o=o._init;try{return pe(o(l))}catch(E){}}return null}function me(o){var l=o.type;switch(o.tag){case 24:return"Cache";case 9:return(l.displayName||"Context")+".Consumer";case 10:return(l._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=l.render,o=o.displayName||o.name||"",l.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return l;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pe(l);case 8:return l===K?"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 l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l}return null}function be(o){switch(typeof o=="undefined"?"undefined":s(o)){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function we(o){var l=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Je(o){var l=we(o)?"checked":"value",E=Object.getOwnPropertyDescriptor(o.constructor.prototype,l),T=""+o[l];if(!o.hasOwnProperty(l)&&typeof E!="undefined"&&typeof E.get=="function"&&typeof E.set=="function"){var L=E.get,W=E.set;return Object.defineProperty(o,l,{configurable:!0,get:function(){return L.call(this)},set:function(ie){T=""+ie,W.call(this,ie)}}),Object.defineProperty(o,l,{enumerable:E.enumerable}),{getValue:function(){return T},setValue:function(ie){T=""+ie},stopTracking:function(){o._valueTracker=null,delete o[l]}}}}function ze(o){o._valueTracker||(o._valueTracker=Je(o))}function Ke(o){if(!o)return!1;var l=o._valueTracker;if(!l)return!0;var E=l.getValue(),T="";return o&&(T=we(o)?o.checked?"true":"false":o.value),o=T,o!==E?(l.setValue(o),!0):!1}function Be(o){if(o=o||(typeof document!="undefined"?document:void 0),typeof o=="undefined")return null;try{return o.activeElement||o.body}catch(l){return o.body}}function ct(o,l){var E=l.checked;return ee({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:E!=null?E:o._wrapperState.initialChecked})}function xt(o,l){var E=l.defaultValue==null?"":l.defaultValue,T=l.checked!=null?l.checked:l.defaultChecked;E=be(l.value!=null?l.value:E),o._wrapperState={initialChecked:T,initialValue:E,controlled:l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null}}function st(o,l){l=l.checked,l!=null&&_(o,"checked",l,!1)}function ot(o,l){st(o,l);var E=be(l.value),T=l.type;if(E!=null)T==="number"?(E===0&&o.value===""||o.value!=E)&&(o.value=""+E):o.value!==""+E&&(o.value=""+E);else if(T==="submit"||T==="reset"){o.removeAttribute("value");return}l.hasOwnProperty("value")?Le(o,l.type,E):l.hasOwnProperty("defaultValue")&&Le(o,l.type,be(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(o.defaultChecked=!!l.defaultChecked)}function Ae(o,l,E){if(l.hasOwnProperty("value")||l.hasOwnProperty("defaultValue")){var T=l.type;if(!(T!=="submit"&&T!=="reset"||l.value!==void 0&&l.value!==null))return;l=""+o._wrapperState.initialValue,E||l===o.value||(o.value=l),o.defaultValue=l}E=o.name,E!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,E!==""&&(o.name=E)}function Le(o,l,E){(l!=="number"||Be(o.ownerDocument)!==o)&&(E==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+E&&(o.defaultValue=""+E))}var Pe=Array.isArray;function ke(o,l,E,T){if(o=o.options,l){l={};for(var L=0;L"+l.valueOf().toString()+"",l=bt.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;l.firstChild;)o.appendChild(l.firstChild)}});function lt(o,l){if(l){var E=o.firstChild;if(E&&E===o.lastChild&&E.nodeType===3){E.nodeValue=l;return}}o.textContent=l}var Ge={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},je=["Webkit","ms","Moz","O"];Object.keys(Ge).forEach(function(o){je.forEach(function(l){l=l+o.charAt(0).toUpperCase()+o.substring(1),Ge[l]=Ge[o]})});function Ze(o,l,E){return l==null||typeof l=="boolean"||l===""?"":E||typeof l!="number"||l===0||Ge.hasOwnProperty(o)&&Ge[o]?(""+l).trim():l+"px"}function mt(o,l){o=o.style;for(var E in l)if(l.hasOwnProperty(E)){var T=E.indexOf("--")===0,L=Ze(E,l[E],T);E==="float"&&(E="cssFloat"),T?o.setProperty(E,L):o[E]=L}}var Pt=ee({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 zt(o,l){if(l){if(Pt[o]&&(l.children!=null||l.dangerouslySetInnerHTML!=null))throw Error(i(137,o));if(l.dangerouslySetInnerHTML!=null){if(l.children!=null)throw Error(i(60));if(typeof l.dangerouslySetInnerHTML!="object"||!("__html"in l.dangerouslySetInnerHTML))throw Error(i(61))}if(l.style!=null&&typeof l.style!="object")throw Error(i(62))}}function en(o,l){if(o.indexOf("-")===-1)return typeof l.is=="string";switch(o){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 Wt=null;function dn(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Bn=null,Gn=null,Hn=null;function Eo(o){if(o=Rr(o)){if(typeof Bn!="function")throw Error(i(280));var l=o.stateNode;l&&(l=Xo(l),Bn(o.stateNode,o.type,l))}}function bo(o){Gn?Hn?Hn.push(o):Hn=[o]:Gn=o}function Oo(){if(Gn){var o=Gn,l=Hn;if(Hn=Gn=null,Eo(o),l)for(o=0;o>>=0,o===0?32:31-(Hi(o)/Yi|0)|0}var sr=64,ha=4194304;function Po(o){switch(o&-o){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 o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function ma(o,l){var E=o.pendingLanes;if(E===0)return 0;var T=0,L=o.suspendedLanes,W=o.pingedLanes,q=E&268435455;if(q!==0){var ie=q&~L;ie!==0?T=Po(ie):(W&=q,W!==0&&(T=Po(W)))}else q=E&~L,q!==0?T=Po(q):W!==0&&(T=Po(W));if(T===0)return 0;if(l!==0&&l!==T&&!(l&L)&&(L=T&-T,W=l&-l,L>=W||L===16&&(W&4194240)!==0))return l;if(T&4&&(T|=E&16),l=o.entangledLanes,l!==0)for(o=o.entanglements,l&=T;0E;E++)l.push(o);return l}function Mo(o,l,E){o.pendingLanes|=l,l!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,l=31-Pn(l),o[l]=E}function el(o,l){var E=o.pendingLanes&~l;o.pendingLanes=l,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=l,o.mutableReadLanes&=l,o.entangledLanes&=l,l=o.entanglements;var T=o.eventTimes;for(o=o.expirationTimes;0=Lo),vi=" ",_a=!1;function ds(o,l){switch(o){case"keyup":return us.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vl(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var _r=!1;function yc(o,l){switch(o){case"compositionend":return vl(l);case"keypress":return l.which!==32?null:(_a=!0,vi);case"textInput":return o=l.data,o===vi&&_a?null:o;default:return null}}function xi(o,l){if(_r)return o==="compositionend"||!Ia&&ds(o,l)?(o=ur(),cr=Ao=kn=null,_r=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1=l)return{node:E,offset:l-o};o=T}e:{for(;E;){if(E.nextSibling){E=E.nextSibling;break e}E=E.parentNode}E=void 0}E=hs(E)}}function Da(o,l){return o&&l?o===l?!0:o&&o.nodeType===3?!1:l&&l.nodeType===3?Da(o,l.parentNode):"contains"in o?o.contains(l):o.compareDocumentPosition?!!(o.compareDocumentPosition(l)&16):!1:!1}function Sa(){for(var o=window,l=Be();e(l,o.HTMLIFrameElement);){try{var E=typeof l.contentWindow.location.href=="string"}catch(T){E=!1}if(E)o=l.contentWindow;else break;l=Be(o.document)}return l}function Ci(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l&&(l==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||l==="textarea"||o.contentEditable==="true")}function yl(o){var l=Sa(),E=o.focusedElem,T=o.selectionRange;if(l!==E&&E&&E.ownerDocument&&Da(E.ownerDocument.documentElement,E)){if(T!==null&&Ci(E)){if(l=T.start,o=T.end,o===void 0&&(o=l),"selectionStart"in E)E.selectionStart=l,E.selectionEnd=Math.min(o,E.value.length);else if(o=(l=E.ownerDocument||document)&&l.defaultView||window,o.getSelection){o=o.getSelection();var L=E.textContent.length,W=Math.min(T.start,L);T=T.end===void 0?W:Math.min(T.end,L),!o.extend&&W>T&&(L=T,T=W,W=L),L=Pr(E,W);var q=Pr(E,T);L&&q&&(o.rangeCount!==1||o.anchorNode!==L.node||o.anchorOffset!==L.offset||o.focusNode!==q.node||o.focusOffset!==q.offset)&&(l=l.createRange(),l.setStart(L.node,L.offset),o.removeAllRanges(),W>T?(o.addRange(l),o.extend(q.node,q.offset)):(l.setEnd(q.node,q.offset),o.addRange(l)))}}for(l=[],o=E;o=o.parentNode;)o.nodeType===1&&l.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E=document.documentMode,Mr=null,ms=null,Ta=null,Uo=!1;function Cl(o,l,E){var T=E.window===E?E.document:E.nodeType===9?E:E.ownerDocument;Uo||Mr==null||Mr!==Be(T)||(T=Mr,"selectionStart"in T&&Ci(T)?T={start:T.selectionStart,end:T.selectionEnd}:(T=(T.ownerDocument&&T.ownerDocument.defaultView||window).getSelection(),T={anchorNode:T.anchorNode,anchorOffset:T.anchorOffset,focusNode:T.focusNode,focusOffset:T.focusOffset}),Ta&&No(Ta,T)||(Ta=T,T=La(ms,"onSelect"),0wr||(o.current=Go[wr],Go[wr]=null,wr--)}function Tt(o,l){wr++,Go[wr]=o.current,o.current=l}var xr={},Qt=Zn(xr),tn=Zn(!1),$n=xr;function so(o,l){var E=o.type.contextTypes;if(!E)return xr;var T=o.stateNode;if(T&&T.__reactInternalMemoizedUnmaskedChildContext===l)return T.__reactInternalMemoizedMaskedChildContext;var L={},W;for(W in E)L[W]=l[W];return T&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=l,o.__reactInternalMemoizedMaskedChildContext=L),L}function Xt(o){return o=o.childContextTypes,o!=null}function za(){At(tn),At(Qt)}function Sl(o,l,E){if(Qt.current!==xr)throw Error(i(168));Tt(Qt,l),Tt(tn,E)}function Ri(o,l,E){var T=o.stateNode;if(l=l.childContextTypes,typeof T.getChildContext!="function")return E;T=T.getChildContext();for(var L in T)if(!(L in l))throw Error(i(108,me(o)||"Unknown",L));return ee({},E,T)}function lo(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||xr,$n=Qt.current,Tt(Qt,o),Tt(tn,tn.current),!0}function Cs(o,l,E){var T=o.stateNode;if(!T)throw Error(i(169));E?(o=Ri(o,l,$n),T.__reactInternalMemoizedMergedChildContext=o,At(tn),At(Qt),Tt(Qt,o)):At(tn),Tt(tn,E)}var Qn=null,co=!1,wi=!1;function Bi(o){Qn===null?Qn=[o]:Qn.push(o)}function Oc(o){co=!0,Bi(o)}function An(){if(!wi&&Qn!==null){wi=!0;var o=0,l=_t;try{var E=Qn;for(_t=1;o>=q,L-=q,qn=1<<32-Pn(l)+L|E<gt?(qt=ht,ht=null):qt=ht.sibling;var It=De(xe,ht,ge[gt],$e);if(It===null){ht===null&&(ht=qt);break}o&&ht&&It.alternate===null&&l(xe,ht),he=W(It,he,gt),ft===null?rt=It:ft.sibling=It,ft=It,ht=qt}if(gt===ge.length)return E(xe,ht),Kt&&fo(xe,gt),rt;if(ht===null){for(;gtgt?(qt=ht,ht=null):qt=ht.sibling;var Co=De(xe,ht,It.value,$e);if(Co===null){ht===null&&(ht=qt);break}o&&ht&&Co.alternate===null&&l(xe,ht),he=W(Co,he,gt),ft===null?rt=Co:ft.sibling=Co,ft=Co,ht=qt}if(It.done)return E(xe,ht),Kt&&fo(xe,gt),rt;if(ht===null){for(;!It.done;gt++,It=ge.next())It=Te(xe,It.value,$e),It!==null&&(he=W(It,he,gt),ft===null?rt=It:ft.sibling=It,ft=It);return Kt&&fo(xe,gt),rt}for(ht=T(xe,ht);!It.done;gt++,It=ge.next())It=Ye(ht,xe,gt,It.value,$e),It!==null&&(o&&It.alternate!==null&&ht.delete(It.key===null?gt:It.key),he=W(It,he,gt),ft===null?rt=It:ft.sibling=It,ft=It);return o&&ht.forEach(function(xd){return l(xe,xd)}),Kt&&fo(xe,gt),rt}function Vt(xe,he,ge,$e){if(typeof ge=="object"&&ge!==null&&ge.type===R&&ge.key===null&&(ge=ge.props.children),typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case P:e:{for(var rt=ge.key,ft=he;ft!==null;){if(ft.key===rt){if(rt=ge.type,rt===R){if(ft.tag===7){E(xe,ft.sibling),he=L(ft,ge.props.children),he.return=xe,xe=he;break e}}else if(ft.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===Q&&Nr(rt)===ft.type){E(xe,ft.sibling),he=L(ft,ge.props),he.ref=er(xe,ft,ge),he.return=xe,xe=he;break e}E(xe,ft);break}else l(xe,ft);ft=ft.sibling}ge.type===R?(he=ra(ge.props.children,xe.mode,$e,ge.key),he.return=xe,xe=he):($e=Us(ge.type,ge.key,ge.props,null,xe.mode,$e),$e.ref=er(xe,he,ge),$e.return=xe,xe=$e)}return q(xe);case A:e:{for(ft=ge.key;he!==null;){if(he.key===ft)if(he.tag===4&&he.stateNode.containerInfo===ge.containerInfo&&he.stateNode.implementation===ge.implementation){E(xe,he.sibling),he=L(he,ge.children||[]),he.return=xe,xe=he;break e}else{E(xe,he);break}else l(xe,he);he=he.sibling}he=dc(ge,xe.mode,$e),he.return=xe,xe=he}return q(xe);case Q:return ft=ge._init,Vt(xe,he,ft(ge._payload),$e)}if(Pe(ge))return qe(xe,he,ge,$e);if(Y(ge))return tt(xe,he,ge,$e);kr(xe,ge)}return typeof ge=="string"&&ge!==""||typeof ge=="number"?(ge=""+ge,he!==null&&he.tag===6?(E(xe,he.sibling),he=L(he,ge),he.return=xe,xe=he):(E(xe,he),he=uc(ge,xe.mode,$e),he.return=xe,xe=he),q(xe)):E(xe,he)}return Vt}var Wn=tr(!0),Zo=tr(!1),Rn={},Cn=Zn(Rn),Qo=Zn(Rn),Ur=Zn(Rn);function $r(o){if(o===Rn)throw Error(i(174));return o}function Va(o,l){switch(Tt(Ur,l),Tt(Qo,o),Tt(Cn,Rn),o=l.nodeType,o){case 9:case 11:l=(l=l.documentElement)?l.namespaceURI:Mt(null,"");break;default:o=o===8?l.parentNode:l,l=o.namespaceURI||null,o=o.tagName,l=Mt(l,o)}At(Cn),Tt(Cn,l)}function ho(){At(Cn),At(Qo),At(Ur)}function Os(o){$r(Ur.current);var l=$r(Cn.current),E=Mt(l,o.type);l!==E&&(Tt(Qo,o),Tt(Cn,E))}function Xa(o){Qo.current===o&&(At(Cn),At(Qo))}var Bt=Zn(0);function Ga(o){for(var l=o;l!==null;){if(l.tag===13){var E=l.memoizedState;if(E!==null&&(E=E.dehydrated,E===null||E.data==="$?"||E.data==="$!"))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if(l.flags&128)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Ki=[];function nr(){for(var o=0;oE?E:4,o(!0);var T=Ha.transition;Ha.transition={};try{o(!1),l()}finally{_t=E,Ha.transition=T}}function zc(){return Fn().memoizedState}function Uu(o,l,E){var T=go(o);if(E={lane:T,action:E,hasEagerState:!1,eagerState:null,next:null},Wc(o))Fc(l,E);else if(E=Xe(o,l,E,T),E!==null){var L=vn();ar(E,o,T,L),Vc(E,l,T)}}function $u(o,l,E){var T=go(o),L={lane:T,action:E,hasEagerState:!1,eagerState:null,next:null};if(Wc(o))Fc(l,L);else{var W=o.alternate;if(o.lanes===0&&(W===null||W.lanes===0)&&(W=l.lastRenderedReducer,W!==null))try{var q=l.lastRenderedState,ie=W(q,E);if(L.hasEagerState=!0,L.eagerState=ie,sn(ie,q)){var fe=l.interleaved;fe===null?(L.next=L,nt(l)):(L.next=fe.next,fe.next=L),l.interleaved=L;return}}catch(ye){}finally{}E=Xe(o,l,L,T),E!==null&&(L=vn(),ar(E,o,T,L),Vc(E,l,T))}}function Wc(o){var l=o.alternate;return o===Rt||l!==null&&l===Rt}function Fc(o,l){mo=Jo=!0;var E=o.pending;E===null?l.next=l:(l.next=E.next,E.next=l),o.pending=l}function Vc(o,l,E){if(E&4194240){var T=l.lanes;T&=o.pendingLanes,E|=T,l.lanes=E,ai(o,E)}}var Ps={readContext:Ne,useCallback:ln,useContext:ln,useEffect:ln,useImperativeHandle:ln,useInsertionEffect:ln,useLayoutEffect:ln,useMemo:ln,useReducer:ln,useRef:ln,useState:ln,useDebugValue:ln,useDeferredValue:ln,useTransition:ln,useMutableSource:ln,useSyncExternalStore:ln,useId:ln,unstable_isNewReconciler:!1},zu={readContext:Ne,useCallback:function(l,E){return jr().memoizedState=[l,E===void 0?null:E],l},useContext:Ne,useEffect:wc,useImperativeHandle:function(l,E,T){return T=T!=null?T.concat([l]):null,Is(4194308,4,Lc.bind(null,E,l),T)},useLayoutEffect:function(l,E){return Is(4194308,4,l,E)},useInsertionEffect:function(l,E){return Is(4,2,l,E)},useMemo:function(l,E){var T=jr();return E=E===void 0?null:E,l=l(),T.memoizedState=[l,E],l},useReducer:function(l,E,T){var L=jr();return E=T!==void 0?T(E):E,L.memoizedState=L.baseState=E,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:E},L.queue=l,l=l.dispatch=Uu.bind(null,Rt,l),[L.memoizedState,l]},useRef:function(l){var E=jr();return l={current:l},E.memoizedState=l},useState:Ac,useDebugValue:Nl,useDeferredValue:function(l){return jr().memoizedState=l},useTransition:function(){var l=Ac(!1),E=l[0];return l=Nu.bind(null,l[1]),jr().memoizedState=l,[E,l]},useMutableSource:function(){},useSyncExternalStore:function(l,E,T){var L=Rt,W=jr();if(Kt){if(T===void 0)throw Error(i(407));T=T()}else{if(T=E(),Jt===null)throw Error(i(349));gr&30||Pc(L,E,T)}W.memoizedState=T;var q={value:T,getSnapshot:E};return W.queue=q,wc(Dc.bind(null,L,q,l),[l]),L.flags|=2048,Ni(9,Mc.bind(null,L,q,T,E),void 0,null),T},useId:function(){var l=jr(),E=Jt.identifierPrefix;if(Kt){var T=pr,L=qn;T=(L&~(1<<32-Pn(L)-1)).toString(32)+T,E=":"+E+"R"+T,T=Li++,0<\/script>",o=o.removeChild(o.firstChild)):typeof T.is=="string"?o=q.createElement(E,{is:T.is}):(o=q.createElement(E),E==="select"&&(q=o,T.multiple?q.multiple=!0:T.size&&(q.size=T.size))):o=q.createElementNS(o,E),o[Un]=l,o[Vo]=T,lu(o,l,!1,!1),l.stateNode=o;e:{switch(q=en(E,T),E){case"dialog":Ot("cancel",o),Ot("close",o),L=T;break;case"iframe":case"object":case"embed":Ot("load",o),L=T;break;case"video":case"audio":for(L=0;LJa&&(l.flags|=128,T=!0,Ui(W,!1),l.lanes=4194304)}else{if(!T)if(o=Ga(q),o!==null){if(l.flags|=128,T=!0,E=o.updateQueue,E!==null&&(l.updateQueue=E,l.flags|=4),Ui(W,!0),W.tail===null&&W.tailMode==="hidden"&&!q.alternate&&!Kt)return cn(l),null}else 2*wt()-W.renderingStartTime>Ja&&E!==1073741824&&(l.flags|=128,T=!0,Ui(W,!1),l.lanes=4194304);W.isBackwards?(q.sibling=l.child,l.child=q):(E=W.last,E!==null?E.sibling=q:l.child=q,W.last=q)}return W.tail!==null?(l=W.tail,W.rendering=l,W.tail=l.sibling,W.renderingStartTime=wt(),l.sibling=null,E=Bt.current,Tt(Bt,T?E&1|2:E&1),l):(cn(l),null);case 22:case 23:return sc(),T=l.memoizedState!==null,o!==null&&o.memoizedState!==null!==T&&(l.flags|=8192),T&&l.mode&1?wn&1073741824&&(cn(l),l.subtreeFlags&6&&(l.flags|=8192)):cn(l),null;case 24:return null;case 25:return null}throw Error(i(156,l.tag))}function Zu(o,l){switch(bs(l),l.tag){case 1:return Xt(l.type)&&za(),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return ho(),At(tn),At(Qt),nr(),o=l.flags,o&65536&&!(o&128)?(l.flags=o&-65537|128,l):null;case 5:return Xa(l),null;case 13:if(At(Bt),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(i(340));G()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return At(Bt),null;case 4:return ho(),null;case 10:return _e(l.type._context),null;case 22:case 23:return sc(),null;case 24:return null;default:return null}}var Ss=!1,un=!1,Qu=typeof WeakSet=="function"?WeakSet:Set,Qe=null;function Za(o,l){var E=o.ref;if(E!==null)if(typeof E=="function")try{E(null)}catch(T){$t(o,l,T)}else E.current=null}function Yl(o,l,E){try{E()}catch(T){$t(o,l,T)}}var du=!1;function Ju(o,l){if(Pi=pa,o=Sa(),Ci(o)){if("selectionStart"in o)var E={start:o.selectionStart,end:o.selectionEnd};else e:{E=(E=o.ownerDocument)&&E.defaultView||window;var T=E.getSelection&&E.getSelection();if(T&&T.rangeCount!==0){E=T.anchorNode;var L=T.anchorOffset,W=T.focusNode;T=T.focusOffset;try{E.nodeType,W.nodeType}catch($e){E=null;break e}var q=0,ie=-1,fe=-1,ye=0,Oe=0,Te=o,De=null;t:for(;;){for(var Ye;Te!==E||L!==0&&Te.nodeType!==3||(ie=q+L),Te!==W||T!==0&&Te.nodeType!==3||(fe=q+T),Te.nodeType===3&&(q+=Te.nodeValue.length),(Ye=Te.firstChild)!==null;)De=Te,Te=Ye;for(;;){if(Te===o)break t;if(De===E&&++ye===L&&(ie=q),De===W&&++Oe===T&&(fe=q),(Ye=Te.nextSibling)!==null)break;Te=De,De=Te.parentNode}Te=Ye}E=ie===-1||fe===-1?null:{start:ie,end:fe}}else E=null}E=E||{start:0,end:0}}else E=null;for(Mi={focusedElem:o,selectionRange:E},pa=!1,Qe=l;Qe!==null;)if(l=Qe,o=l.child,(l.subtreeFlags&1028)!==0&&o!==null)o.return=l,Qe=o;else for(;Qe!==null;){l=Qe;try{var qe=l.alternate;if(l.flags&1024)switch(l.tag){case 0:case 11:case 15:break;case 1:if(qe!==null){var tt=qe.memoizedProps,Vt=qe.memoizedState,xe=l.stateNode,he=xe.getSnapshotBeforeUpdate(l.elementType===l.type?tt:se(l.type,tt),Vt);xe.__reactInternalSnapshotBeforeUpdate=he}break;case 3:var ge=l.stateNode.containerInfo;ge.nodeType===1?ge.textContent="":ge.nodeType===9&&ge.documentElement&&ge.removeChild(ge.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch($e){$t(l,l.return,$e)}if(o=l.sibling,o!==null){o.return=l.return,Qe=o;break}Qe=l.return}return qe=du,du=!1,qe}function $i(o,l,E){var T=l.updateQueue;if(T=T!==null?T.lastEffect:null,T!==null){var L=T=T.next;do{if((L.tag&o)===o){var W=L.destroy;L.destroy=void 0,W!==void 0&&Yl(l,E,W)}L=L.next}while(L!==T)}}function Ts(o,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var E=l=l.next;do{if((E.tag&o)===o){var T=E.create;E.destroy=T()}E=E.next}while(E!==l)}}function Zl(o){var l=o.ref;if(l!==null){var E=o.stateNode;switch(o.tag){case 5:o=E;break;default:o=E}typeof l=="function"?l(o):l.current=o}}function fu(o){var l=o.alternate;l!==null&&(o.alternate=null,fu(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&(delete l[Un],delete l[Vo],delete l[Ti],delete l[Ai],delete l[Dl])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function hu(o){return o.tag===5||o.tag===3||o.tag===4}function mu(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||hu(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Ql(o,l,E){var T=o.tag;if(T===5||T===6)o=o.stateNode,l?E.nodeType===8?E.parentNode.insertBefore(o,l):E.insertBefore(o,l):(E.nodeType===8?(l=E.parentNode,l.insertBefore(o,E)):(l=E,l.appendChild(o)),E=E._reactRootContainer,E!=null||l.onclick!==null||(l.onclick=ao));else if(T!==4&&(o=o.child,o!==null))for(Ql(o,l,E),o=o.sibling;o!==null;)Ql(o,l,E),o=o.sibling}function Jl(o,l,E){var T=o.tag;if(T===5||T===6)o=o.stateNode,l?E.insertBefore(o,l):E.appendChild(o);else if(T!==4&&(o=o.child,o!==null))for(Jl(o,l,E),o=o.sibling;o!==null;)Jl(o,l,E),o=o.sibling}var nn=null,rr=!1;function vo(o,l,E){for(E=E.child;E!==null;)vu(o,l,E),E=E.sibling}function vu(o,l,E){if(_n&&typeof _n.onCommitFiberUnmount=="function")try{_n.onCommitFiberUnmount(fa,E)}catch(ie){}switch(E.tag){case 5:un||Za(E,l);case 6:var T=nn,L=rr;nn=null,vo(o,l,E),nn=T,rr=L,nn!==null&&(rr?(o=nn,E=E.stateNode,o.nodeType===8?o.parentNode.removeChild(E):o.removeChild(E)):nn.removeChild(E.stateNode));break;case 18:nn!==null&&(rr?(o=nn,E=E.stateNode,o.nodeType===8?Fo(o.parentNode,E):o.nodeType===1&&Fo(o,E),To(o)):Fo(nn,E.stateNode));break;case 4:T=nn,L=rr,nn=E.stateNode.containerInfo,rr=!0,vo(o,l,E),nn=T,rr=L;break;case 0:case 11:case 14:case 15:if(!un&&(T=E.updateQueue,T!==null&&(T=T.lastEffect,T!==null))){L=T=T.next;do{var W=L,q=W.destroy;W=W.tag,q!==void 0&&(W&2||W&4)&&Yl(E,l,q),L=L.next}while(L!==T)}vo(o,l,E);break;case 1:if(!un&&(Za(E,l),T=E.stateNode,typeof T.componentWillUnmount=="function"))try{T.props=E.memoizedProps,T.state=E.memoizedState,T.componentWillUnmount()}catch(ie){$t(E,l,ie)}vo(o,l,E);break;case 21:vo(o,l,E);break;case 22:E.mode&1?(un=(T=un)||E.memoizedState!==null,vo(o,l,E),un=T):vo(o,l,E);break;default:vo(o,l,E)}}function xu(o){var l=o.updateQueue;if(l!==null){o.updateQueue=null;var E=o.stateNode;E===null&&(E=o.stateNode=new Qu),l.forEach(function(T){var L=sd.bind(null,o,T);E.has(T)||(E.add(T),T.then(L,L))})}}function or(o,l){var E=l.deletions;if(E!==null)for(var T=0;TL&&(L=q),T&=~W}if(T=L,T=wt()-T,T=(120>T?120:480>T?480:1080>T?1080:1920>T?1920:3e3>T?3e3:4320>T?4320:1960*ed(T/1960))-T,10o?16:o,po===null)var T=!1;else{if(o=po,po=null,Ks=0,Et&6)throw Error(i(331));var L=Et;for(Et|=4,Qe=o.current;Qe!==null;){var W=Qe,q=W.child;if(Qe.flags&16){var ie=W.deletions;if(ie!==null){for(var fe=0;fewt()-tc?ta(o,0):ec|=E),On(o,l)}function Du(o,l){l===0&&(o.mode&1?(l=ha,ha<<=1,!(ha&130023424)&&(ha=4194304)):l=1);var E=vn();o=et(o,l),o!==null&&(Mo(o,l,E),On(o,E))}function id(o){var l=o.memoizedState,E=0;l!==null&&(E=l.retryLane),Du(o,E)}function sd(o,l){var E=0;switch(o.tag){case 13:var T=o.stateNode,L=o.memoizedState;L!==null&&(E=L.retryLane);break;case 19:T=o.stateNode;break;default:throw Error(i(314))}T!==null&&T.delete(l),Du(o,E)}var Su;Su=function(l,E,T){if(l!==null)if(l.memoizedProps!==E.pendingProps||tn.current)En=!0;else{if(!(l.lanes&T)&&!(E.flags&128))return En=!1,Hu(l,E,T);En=!!(l.flags&131072)}else En=!1,Kt&&E.flags&1048576&&Fa(E,uo,E.index);switch(E.lanes=0,E.tag){case 2:var L=E.type;Ds(l,E),l=E.pendingProps;var W=so(E,Qt.current);Ue(E,T),W=wl(null,E,L,l,W,T);var q=Bl();return E.flags|=1,typeof W=="object"&&W!==null&&typeof W.render=="function"&&W.$$typeof===void 0?(E.tag=1,E.memoizedState=null,E.updateQueue=null,Xt(L)?(q=!0,lo(E)):q=!1,E.memoizedState=W.state!==null&&W.state!==void 0?W.state:null,dt(E),W.updater=Gt,E.stateNode=W,W._reactInternals=E,Yo(E,L,l,T),E=Wl(null,E,L,!0,q,T)):(E.tag=0,Kt&&q&&Es(E),mn(null,E,W,T),E=E.child),E;case 16:L=E.elementType;e:{switch(Ds(l,E),l=E.pendingProps,W=L._init,L=W(L._payload),E.type=L,W=E.tag=cd(L),l=se(L,l),W){case 0:E=zl(null,E,L,l,T);break e;case 1:E=nu(null,E,L,l,T);break e;case 11:E=Qc(null,E,L,l,T);break e;case 14:E=Jc(null,E,L,se(L.type,l),T);break e}throw Error(i(306,L,""))}return E;case 0:return L=E.type,W=E.pendingProps,W=E.elementType===L?W:se(L,W),zl(l,E,L,W,T);case 1:return L=E.type,W=E.pendingProps,W=E.elementType===L?W:se(L,W),nu(l,E,L,W,T);case 3:e:{if(ru(E),l===null)throw Error(i(387));L=E.pendingProps,q=E.memoizedState,W=q.element,ut(l,E),St(E,L,null,T);var ie=E.memoizedState;if(L=ie.element,q.isDehydrated)if(q={element:L,isDehydrated:!1,cache:ie.cache,pendingSuspenseBoundaries:ie.pendingSuspenseBoundaries,transitions:ie.transitions},E.updateQueue.baseState=q,E.memoizedState=q,E.flags&256){W=Ya(Error(i(423)),E),E=ou(l,E,L,T,W);break e}else if(L!==W){W=Ya(Error(i(424)),E),E=ou(l,E,L,T,W);break e}else for(yn=hr(E.stateNode.containerInfo.firstChild),jn=E,Kt=!0,hn=null,T=Zo(E,null,L,T),E.child=T;T;)T.flags=T.flags&-3|4096,T=T.sibling;else{if(G(),L===W){E=Wr(l,E,T);break e}mn(l,E,L,T)}E=E.child}return E;case 5:return Os(E),l===null&&w(E),L=E.type,W=E.pendingProps,q=l!==null?l.memoizedProps:null,ie=W.children,Na(L,W)?ie=null:q!==null&&Na(L,q)&&(E.flags|=32),tu(l,E),mn(l,E,ie,T),E.child;case 6:return l===null&&w(E),null;case 13:return au(l,E,T);case 4:return Va(E,E.stateNode.containerInfo),L=E.pendingProps,l===null?E.child=Wn(E,null,L,T):mn(l,E,L,T),E.child;case 11:return L=E.type,W=E.pendingProps,W=E.elementType===L?W:se(L,W),Qc(l,E,L,W,T);case 7:return mn(l,E,E.pendingProps,T),E.child;case 8:return mn(l,E,E.pendingProps.children,T),E.child;case 12:return mn(l,E,E.pendingProps.children,T),E.child;case 10:e:{if(L=E.type._context,W=E.pendingProps,q=E.memoizedProps,ie=W.value,Tt(le,L._currentValue),L._currentValue=ie,q!==null)if(sn(q.value,ie)){if(q.children===W.children&&!tn.current){E=Wr(l,E,T);break e}}else for(q=E.child,q!==null&&(q.return=E);q!==null;){var fe=q.dependencies;if(fe!==null){ie=q.child;for(var ye=fe.firstContext;ye!==null;){if(ye.context===L){if(q.tag===1){ye=pt(-1,T&-T),ye.tag=2;var Oe=q.updateQueue;if(Oe!==null){Oe=Oe.shared;var Te=Oe.pending;Te===null?ye.next=ye:(ye.next=Te.next,Te.next=ye),Oe.pending=ye}}q.lanes|=T,ye=q.alternate,ye!==null&&(ye.lanes|=T),Re(q.return,T,E),fe.lanes|=T;break}ye=ye.next}}else if(q.tag===10)ie=q.type===E.type?null:q.child;else if(q.tag===18){if(ie=q.return,ie===null)throw Error(i(341));ie.lanes|=T,fe=ie.alternate,fe!==null&&(fe.lanes|=T),Re(ie,T,E),ie=q.sibling}else ie=q.child;if(ie!==null)ie.return=q;else for(ie=q;ie!==null;){if(ie===E){ie=null;break}if(q=ie.sibling,q!==null){q.return=ie.return,ie=q;break}ie=ie.return}q=ie}mn(l,E,W.children,T),E=E.child}return E;case 9:return W=E.type,L=E.pendingProps.children,Ue(E,T),W=Ne(W),L=L(W),E.flags|=1,mn(l,E,L,T),E.child;case 14:return L=E.type,W=se(L,E.pendingProps),W=se(L.type,W),Jc(l,E,L,W,T);case 15:return qc(l,E,E.type,E.pendingProps,T);case 17:return L=E.type,W=E.pendingProps,W=E.elementType===L?W:se(L,W),Ds(l,E),E.tag=1,Xt(L)?(l=!0,lo(E)):l=!1,Ue(E,T),zn(E,L,W),Yo(E,L,W,T),Wl(null,E,L,!0,l,T);case 19:return su(l,E,T);case 22:return eu(l,E,T)}throw Error(i(156,E.tag))};function Tu(o,l){return ae(o,l)}function ld(o,l,E,T){this.tag=o,this.key=E,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=T,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xn(o,l,E,T){return new ld(o,l,E,T)}function cc(o){return o=o.prototype,!(!o||!o.isReactComponent)}function cd(o){if(typeof o=="function")return cc(o)?1:0;if(o!=null){if(o=o.$$typeof,o===F)return 11;if(o===Z)return 14}return 2}function yo(o,l){var E=o.alternate;return E===null?(E=Xn(o.tag,l,o.key,o.mode),E.elementType=o.elementType,E.type=o.type,E.stateNode=o.stateNode,E.alternate=o,o.alternate=E):(E.pendingProps=l,E.type=o.type,E.flags=0,E.subtreeFlags=0,E.deletions=null),E.flags=o.flags&14680064,E.childLanes=o.childLanes,E.lanes=o.lanes,E.child=o.child,E.memoizedProps=o.memoizedProps,E.memoizedState=o.memoizedState,E.updateQueue=o.updateQueue,l=o.dependencies,E.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},E.sibling=o.sibling,E.index=o.index,E.ref=o.ref,E}function Us(o,l,E,T,L,W){var q=2;if(T=o,typeof o=="function")cc(o)&&(q=1);else if(typeof o=="string")q=5;else e:switch(o){case R:return ra(E.children,L,W,l);case K:q=8,L|=8;break;case N:return o=Xn(12,E,l,L|2),o.elementType=N,o.lanes=W,o;case J:return o=Xn(13,E,l,L),o.elementType=J,o.lanes=W,o;case H:return o=Xn(19,E,l,L),o.elementType=H,o.lanes=W,o;case V:return $s(E,L,W,l);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case k:q=10;break e;case X:q=9;break e;case F:q=11;break e;case Z:q=14;break e;case Q:q=16,T=null;break e}throw Error(i(130,o==null?o:typeof o=="undefined"?"undefined":s(o),""))}return l=Xn(q,E,l,L),l.elementType=o,l.type=T,l.lanes=W,l}function ra(o,l,E,T){return o=Xn(7,o,T,l),o.lanes=E,o}function $s(o,l,E,T){return o=Xn(22,o,T,l),o.elementType=V,o.lanes=E,o.stateNode={isHidden:!1},o}function uc(o,l,E){return o=Xn(6,o,null,l),o.lanes=E,o}function dc(o,l,E){return l=Xn(4,o.children!==null?o.children:[],o.key,l),l.lanes=E,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}function ud(o,l,E,T,L){this.tag=l,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=oi(0),this.expirationTimes=oi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oi(0),this.identifierPrefix=T,this.onRecoverableError=L,this.mutableSourceEagerHydrationData=null}function fc(o,l,E,T,L,W,q,ie,fe){return o=new ud(o,l,E,ie,fe),l===1?(l=1,W===!0&&(l|=8)):l=0,W=Xn(3,null,null,l),o.current=W,W.stateNode=o,W.memoizedState={element:T,isDehydrated:E,cache:null,transitions:null,pendingSuspenseBoundaries:null},dt(W),o}function dd(o,l,E){var T=3=0;--ee){var oe=this.tryEntries[ee],ne=oe.completion;if(oe.tryLoc==="root")return Y("end");if(oe.tryLoc<=this.prev){var ce=r.call(oe,"catchLoc"),de=r.call(oe,"finallyLoc");if(ce&&de){if(this.prev=0;--Y){var ee=this.tryEntries[Y];if(ee.tryLoc<=this.prev&&r.call(ee,"finallyLoc")&&this.prev=0;--z){var Y=this.tryEntries[z];if(Y.finallyLoc===V)return this.complete(Y.completion,Y.afterLoc),F(Y),j}},catch:function(Z){for(var V=this.tryEntries.length-1;V>=0;--V){var z=this.tryEntries[V];if(z.tryLoc===Z){var Y=z.completion;if(Y.type==="throw"){var ee=Y.arg;F(z)}return ee}}throw new Error("illegal catch attempt")},delegateYield:function(V,z,Y){return this.delegate={iterator:H(V),resultName:z,nextLoc:Y},this.method==="next"&&(this.arg=a),j}},i}(M.exports);try{regeneratorRuntime=e}catch(i){typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},95565:function(M,y){"use strict";/** + */function t(z){"@swc/helpers - typeof";return z&&typeof Symbol!="undefined"&&z.constructor===Symbol?"symbol":typeof z}var e=Symbol.for("react.element"),s=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),g=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),u=Symbol.iterator;function m(z){return z===null||typeof z!="object"?null:(z=u&&z[u]||z["@@iterator"],typeof z=="function"?z:null)}var c={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,p={};function C(z,Y,ee){this.props=z,this.context=Y,this.refs=p,this.updater=ee||c}C.prototype.isReactComponent={},C.prototype.setState=function(z,Y){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,Y,"setState")},C.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function j(){}j.prototype=C.prototype;function O(z,Y,ee){this.props=z,this.context=Y,this.refs=p,this.updater=ee||c}var b=O.prototype=new j;b.constructor=O,f(b,C.prototype),b.isPureReactComponent=!0;var I=Array.isArray,_=Object.prototype.hasOwnProperty,S={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function A(z,Y,ee){var oe,ne={},ce=null,de=null;if(Y!=null)for(oe in Y.ref!==void 0&&(de=Y.ref),Y.key!==void 0&&(ce=""+Y.key),Y)_.call(Y,oe)&&!P.hasOwnProperty(oe)&&(ne[oe]=Y[oe]);var ve=arguments.length-2;if(ve===1)ne.children=ee;else if(1=0;--ee){var oe=this.tryEntries[ee],ne=oe.completion;if(oe.tryLoc==="root")return Y("end");if(oe.tryLoc<=this.prev){var ce=r.call(oe,"catchLoc"),de=r.call(oe,"finallyLoc");if(ce&&de){if(this.prev=0;--Y){var ee=this.tryEntries[Y];if(ee.tryLoc<=this.prev&&r.call(ee,"finallyLoc")&&this.prev=0;--z){var Y=this.tryEntries[z];if(Y.finallyLoc===V)return this.complete(Y.completion,Y.afterLoc),F(Y),j}},catch:function(Q){for(var V=this.tryEntries.length-1;V>=0;--V){var z=this.tryEntries[V];if(z.tryLoc===Q){var Y=z.completion;if(Y.type==="throw"){var ee=Y.arg;F(z)}return ee}}throw new Error("illegal catch attempt")},delegateYield:function(V,z,Y){return this.delegate={iterator:H(V),resultName:z,nextLoc:Y},this.method==="next"&&(this.arg=a),j}},s}(M.exports);try{regeneratorRuntime=e}catch(s){typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},95565:function(M,y){"use strict";/** * @license React * scheduler.production.min.js * @@ -30,29 +30,29 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function t(H,Q){var Z=H.length;H.push(Q);e:for(;0>>1,z=H[V];if(0>>1;Vn(oe,Z))nen(ce,oe)?(H[V]=ce,H[ne]=Z,V=ne):(H[V]=oe,H[ee]=Z,V=ee);else if(nen(ce,Z))H[V]=ce,H[ne]=Z,V=ne;else break e}}return Q}function n(H,Q){var Z=H.sortIndex-Q.sortIndex;return Z!==0?Z:H.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;y.unstable_now=function(){return r.now()}}else{var s=Date,a=s.now();y.unstable_now=function(){return s.now()-a}}var g=[],x=[],d=1,h=null,v=3,u=!1,m=!1,c=!1,f=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(H){for(var Q=e(x);Q!==null;){if(Q.callback===null)i(x);else if(Q.startTime<=H)i(x),Q.sortIndex=Q.expirationTime,t(g,Q);else break;Q=e(x)}}function O(H){if(c=!1,j(H),!m)if(e(g)!==null)m=!0,F(b);else{var Q=e(x);Q!==null&&J(O,Q.startTime-H)}}function b(H,Q){m=!1,c&&(c=!1,p(S),S=-1),u=!0;var Z=v;try{for(j(Q),h=e(g);h!==null&&(!(h.expirationTime>Q)||H&&!R());){var V=h.callback;if(typeof V=="function"){h.callback=null,v=h.priorityLevel;var z=V(h.expirationTime<=Q);Q=y.unstable_now(),typeof z=="function"?h.callback=z:h===e(g)&&i(g),j(Q)}else i(g);h=e(g)}if(h!==null)var Y=!0;else{var ee=e(x);ee!==null&&J(O,ee.startTime-Q),Y=!1}return Y}finally{h=null,v=Z,u=!1}}var I=!1,_=null,S=-1,P=5,A=-1;function R(){return!(y.unstable_now()-AH||125V?(H.sortIndex=Z,t(x,H),e(g)===null&&H===e(x)&&(c?(p(S),S=-1):c=!0,J(O,Z-V))):(H.sortIndex=z,t(g,H),m||u||(m=!0,F(b))),H},y.unstable_shouldYield=R,y.unstable_wrapCallback=function(H){var Q=v;return function(){var Z=v;v=Q;try{return H.apply(this,arguments)}finally{v=Z}}}},7864:function(M,y,t){"use strict";M.exports=t(95565)},80408:function(){self.fetch||(self.fetch=function(M,y){return y=y||{},new Promise(function(t,e){var i=new XMLHttpRequest,n=[],r={},s=function g(){return{ok:(i.status/100|0)==2,statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:g,headers:{keys:function(){return n},entries:function(){return n.map(function(d){return[d,i.getResponseHeader(d)]})},get:function(d){return i.getResponseHeader(d)},has:function(d){return i.getResponseHeader(d)!=null}}}};for(var a in i.open(y.method||"get",M,!0),i.onload=function(){i.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(g,x){r[x]||n.push(r[x]=x)}),t(s())},i.onerror=e,i.withCredentials=y.credentials=="include",y.headers)i.setRequestHeader(a,y.headers[a]);i.send(y.body||null)})})},11358:function(M,y,t){"use strict";t.d(y,{OY:function(){return C},TS:function(){return m},Tj:function(){return a},Ul:function(){return d},hS:function(){return c},pb:function(){return s}});/** + */function t(H,Z){var Q=H.length;H.push(Z);e:for(;0>>1,z=H[V];if(0>>1;Vn(oe,Q))nen(ce,oe)?(H[V]=ce,H[ne]=Q,V=ne):(H[V]=oe,H[ee]=Q,V=ee);else if(nen(ce,Q))H[V]=ce,H[ne]=Q,V=ne;else break e}}return Z}function n(H,Z){var Q=H.sortIndex-Z.sortIndex;return Q!==0?Q:H.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;y.unstable_now=function(){return r.now()}}else{var i=Date,a=i.now();y.unstable_now=function(){return i.now()-a}}var g=[],x=[],d=1,h=null,v=3,u=!1,m=!1,c=!1,f=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(H){for(var Z=e(x);Z!==null;){if(Z.callback===null)s(x);else if(Z.startTime<=H)s(x),Z.sortIndex=Z.expirationTime,t(g,Z);else break;Z=e(x)}}function O(H){if(c=!1,j(H),!m)if(e(g)!==null)m=!0,F(b);else{var Z=e(x);Z!==null&&J(O,Z.startTime-H)}}function b(H,Z){m=!1,c&&(c=!1,p(S),S=-1),u=!0;var Q=v;try{for(j(Z),h=e(g);h!==null&&(!(h.expirationTime>Z)||H&&!R());){var V=h.callback;if(typeof V=="function"){h.callback=null,v=h.priorityLevel;var z=V(h.expirationTime<=Z);Z=y.unstable_now(),typeof z=="function"?h.callback=z:h===e(g)&&s(g),j(Z)}else s(g);h=e(g)}if(h!==null)var Y=!0;else{var ee=e(x);ee!==null&&J(O,ee.startTime-Z),Y=!1}return Y}finally{h=null,v=Q,u=!1}}var I=!1,_=null,S=-1,P=5,A=-1;function R(){return!(y.unstable_now()-AH||125V?(H.sortIndex=Q,t(x,H),e(g)===null&&H===e(x)&&(c?(p(S),S=-1):c=!0,J(O,Q-V))):(H.sortIndex=z,t(g,H),m||u||(m=!0,F(b))),H},y.unstable_shouldYield=R,y.unstable_wrapCallback=function(H){var Z=v;return function(){var Q=v;v=Z;try{return H.apply(this,arguments)}finally{v=Q}}}},7864:function(M,y,t){"use strict";M.exports=t(95565)},80408:function(){self.fetch||(self.fetch=function(M,y){return y=y||{},new Promise(function(t,e){var s=new XMLHttpRequest,n=[],r={},i=function g(){return{ok:(s.status/100|0)==2,statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:g,headers:{keys:function(){return n},entries:function(){return n.map(function(d){return[d,s.getResponseHeader(d)]})},get:function(d){return s.getResponseHeader(d)},has:function(d){return s.getResponseHeader(d)!=null}}}};for(var a in s.open(y.method||"get",M,!0),s.onload=function(){s.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(g,x){r[x]||n.push(r[x]=x)}),t(i())},s.onerror=e,s.withCredentials=y.credentials=="include",y.headers)s.setRequestHeader(a,y.headers[a]);s.send(y.body||null)})})},11358:function(M,y,t){"use strict";t.d(y,{OY:function(){return C},TS:function(){return m},Tj:function(){return a},Ul:function(){return d},hS:function(){return c},pb:function(){return i}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function e(S,P){(P==null||P>S.length)&&(P=S.length);for(var A=0,R=new Array(P);A=S.length?{done:!0}:{done:!1,value:S[R++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s=function(S){return function(P){if(P==null)return P;if(Array.isArray(P)){for(var A=[],R=0;RX)return 1}return 0},d=function(){for(var S=arguments.length,P=new Array(S),A=0;A>1,X=S(P[F]),XR?F:F+1},O=function(S){return function(P,A){var R=[].concat(P);return R.splice(j(S,P,A),0,A),R}},b=function(S,P){for(var A=[],R=[],K=P,N=r(S),k;!(k=N()).done;){var X=k.value;R.push(X),K--,K||(K=P,A.push(R),R=[])}return R.length&&A.push(R),A},I=function(S){return typeof S=="object"&&S!==null},_=function(){for(var S=arguments.length,P=new Array(S),A=0;AS.length)&&(P=S.length);for(var A=0,R=new Array(P);A=S.length?{done:!0}:{done:!1,value:S[R++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i=function(S){return function(P){if(P==null)return P;if(Array.isArray(P)){for(var A=[],R=0;RX)return 1}return 0},d=function(){for(var S=arguments.length,P=new Array(S),A=0;A>1,X=S(P[F]),XR?F:F+1},O=function(S){return function(P,A){var R=[].concat(P);return R.splice(j(S,P,A),0,A),R}},b=function(S,P){for(var A=[],R=[],K=P,N=r(S),k;!(k=N()).done;){var X=k.value;R.push(X),K--,K||(K=P,A.push(R),R=[])}return R.length&&A.push(R),A},I=function(S){return typeof S=="object"&&S!==null},_=function(){for(var S=arguments.length,P=new Array(S),A=0;A1?a-1:0),x=1;x1?a-1:0),x=1;xg.length)&&(x=g.length);for(var d=0,h=new Array(x);d=g.length?{done:!0}:{done:!1,value:g[h++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=void 0,s=function(){for(var g=arguments.length,x=new Array(g),d=0;d1?u-1:0),c=1;c1?m-1:0),f=1;fg.length)&&(x=g.length);for(var d=0,h=new Array(x);d=g.length?{done:!0}:{done:!1,value:g[h++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=void 0,i=function(){for(var g=arguments.length,x=new Array(g),d=0;d1?u-1:0),c=1;c1?m-1:0),f=1;fu.length)&&(m=u.length);for(var c=0,f=new Array(m);c=u.length?{done:!0}:{done:!1,value:u[f++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=function(u,m,c){return uc?c:u},s=function(u){return u<0?0:u>1?1:u},a=function(u,m,c){return(u-m)/(c-m)},g=function(u,m){if(!u||isNaN(u))return u;var c,f,p,C;return m|=0,c=Math.pow(10,m),u*=c,C=+(u>0)|-(u<0),p=Math.abs(u%1)>=.4999999999854481,f=Math.floor(u),p&&(u=f+(C>0)),(p?u:Math.round(u))/c},x=function(u,m){return m===void 0&&(m=0),Number(u).toFixed(Math.max(m,0))},d=function(u,m){return m&&u>=m[0]&&u<=m[1]},h=function(u,m){for(var c=n(Object.keys(m)),f;!(f=c()).done;){var p=f.value,C=m[p];if(d(u,C))return p}},v=function(u){return Math.floor(u)!==u&&u.toString().split(".")[1].length||0}},3710:function(M,y,t){"use strict";t.d(y,{k:function(){return h}});/** + */function e(u,m){(m==null||m>u.length)&&(m=u.length);for(var c=0,f=new Array(m);c=u.length?{done:!0}:{done:!1,value:u[f++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=function(u,m,c){return uc?c:u},i=function(u){return u<0?0:u>1?1:u},a=function(u,m,c){return(u-m)/(c-m)},g=function(u,m){if(!u||isNaN(u))return u;var c,f,p,C;return m|=0,c=Math.pow(10,m),u*=c,C=+(u>0)|-(u<0),p=Math.abs(u%1)>=.4999999999854481,f=Math.floor(u),p&&(u=f+(C>0)),(p?u:Math.round(u))/c},x=function(u,m){return m===void 0&&(m=0),Number(u).toFixed(Math.max(m,0))},d=function(u,m){return m&&u>=m[0]&&u<=m[1]},h=function(u,m){for(var c=n(Object.keys(m)),f;!(f=c()).done;){var p=f.value,C=m[p];if(d(u,C))return p}},v=function(u){return Math.floor(u)!==u&&u.toString().split(".")[1].length||0}},3710:function(M,y,t){"use strict";t.d(y,{k:function(){return h}});/** * Ghetto performance measurement tools. * * Uses NODE_ENV to remove itself from production builds. @@ -60,25 +60,25 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e,i=60,n=1e3/i,r=!!((e=window.performance)!=null&&e.now),s={},a={},g=function(v,u){},x=function(v,u){if(0)var m,c,f},d=function(v){var u=v/n;return v.toFixed(v<10?1:0)+"ms ("+u.toFixed(2)+" frames)"},h={mark:g,measure:x}},84352:function(M,y,t){"use strict";t.d(y,{Ly:function(){return e},a_:function(){return n},b5:function(){return r}});/** + */var e,s=60,n=1e3/s,r=!!((e=window.performance)!=null&&e.now),i={},a={},g=function(v,u){},x=function(v,u){if(0)var m,c,f},d=function(v){var u=v/n;return v.toFixed(v<10?1:0)+"ms ("+u.toFixed(2)+" frames)"},h={mark:g,measure:x}},84352:function(M,y,t){"use strict";t.d(y,{Ly:function(){return e},a_:function(){return n},b5:function(){return r}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=function(s){for(var a="",g=0;gd.length)&&(h=d.length);for(var v=0,u=new Array(h);v=d.length?{done:!0}:{done:!1,value:d[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s=function(d,h){if(h)return h(s)(d);var v,u=[],m=function(){return v},c=function(p){u.push(p)},f=function(p){v=d(v,p);for(var C=0;C1?c-1:0),p=1;p1?_-1:0),P=1;P<_;P++)S[P-1]=arguments[P];throw new Error("Dispatching while constructing your middleware is not allowed.")},O={getState:C.getState,dispatch:function(I){for(var _=arguments.length,S=new Array(_>1?_-1:0),P=1;P<_;P++)S[P-1]=arguments[P];return j.apply(void 0,[].concat([I],S))}},b=h.map(function(I){return I(O)});return j=b.reduceRight(function(I,_){return _(I)},C.dispatch),i({},C,{dispatch:j})}}},g=function(d){var h=Object.keys(d);return function(v,u){v===void 0&&(v={});for(var m=i({},v),c=!1,f=r(h),p;!(p=f()).done;){var C=p.value,j=d[C],O=v[C],b=j(O,u);O!==b&&(c=!0,m[C]=b)}return c?m:v}},x=function(d,h){var v=function(){for(var u=arguments.length,m=new Array(u),c=0;cd.length)&&(h=d.length);for(var v=0,u=new Array(h);v=d.length?{done:!0}:{done:!1,value:d[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i=function(d,h){if(h)return h(i)(d);var v,u=[],m=function(){return v},c=function(p){u.push(p)},f=function(p){v=d(v,p);for(var C=0;C1?c-1:0),p=1;p1?_-1:0),P=1;P<_;P++)S[P-1]=arguments[P];throw new Error("Dispatching while constructing your middleware is not allowed.")},O={getState:C.getState,dispatch:function(I){for(var _=arguments.length,S=new Array(_>1?_-1:0),P=1;P<_;P++)S[P-1]=arguments[P];return j.apply(void 0,[].concat([I],S))}},b=h.map(function(I){return I(O)});return j=b.reduceRight(function(I,_){return _(I)},C.dispatch),s({},C,{dispatch:j})}}},g=function(d){var h=Object.keys(d);return function(v,u){v===void 0&&(v={});for(var m=s({},v),c=!1,f=r(h),p;!(p=f()).done;){var C=p.value,j=d[C],O=v[C],b=j(O,u);O!==b&&(c=!0,m[C]=b)}return c?m:v}},x=function(d,h){var v=function(){for(var u=arguments.length,m=new Array(u),c=0;c0&&P[P.length-1])&&(k[0]===6||k[0]===2)){R=0;continue}if(k[0]===3&&(!P||k[1]>P[0]&&k[1]0&&P[P.length-1])&&(k[0]===6||k[0]===2)){R=0;continue}if(k[0]===3&&(!P||k[1]>P[0]&&k[1]m.length)&&(c=m.length);for(var f=0,p=new Array(c);f=m.length?{done:!0}:{done:!1,value:m[p++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=function(m){if(Array.isArray(m))return r(m.join(""));for(var c=m.split("\n"),f,p=n(c),C;!(C=p()).done;)for(var j=C.value,O=0;O",apos:"'"};return m.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(p,C){return f[C]}).replace(/&#?([0-9]+);/gi,function(p,C){var j=parseInt(C,10);return String.fromCharCode(j)}).replace(/&#x?([0-9a-f]+);/gi,function(p,C){var j=parseInt(C,16);return String.fromCharCode(j)})},u=function(m){return Object.keys(m).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(m[c])}).join("&")}},68554:function(M,y,t){"use strict";t.d(y,{CO:function(){return a},Jk:function(){return u},Xd:function(){return h},Z4:function(){return g},tk:function(){return x}});var e=t(11358);/** + */function e(m,c){(c==null||c>m.length)&&(c=m.length);for(var f=0,p=new Array(c);f=m.length?{done:!0}:{done:!1,value:m[p++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=function(m){if(Array.isArray(m))return r(m.join(""));for(var c=m.split("\n"),f,p=n(c),C;!(C=p()).done;)for(var j=C.value,O=0;O",apos:"'"};return m.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(p,C){return f[C]}).replace(/&#?([0-9]+);/gi,function(p,C){var j=parseInt(C,10);return String.fromCharCode(j)}).replace(/&#x?([0-9a-f]+);/gi,function(p,C){var j=parseInt(C,16);return String.fromCharCode(j)})},u=function(m){return Object.keys(m).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(m[c])}).join("&")}},68554:function(M,y,t){"use strict";t.d(y,{CO:function(){return a},Jk:function(){return u},Xd:function(){return h},Z4:function(){return g},tk:function(){return x}});var e=t(11358);/** * N-dimensional vector manipulation functions. * * Vectors are plain number arrays, i.e. [x, y, z]. @@ -86,11 +86,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var i=function(c,f){return c+f},n=function(c,f){return c-f},r=function(c,f){return c*f},s=function(c,f){return c/f},a=function(){for(var c=arguments.length,f=new Array(c),p=0;px.length)&&(d=x.length);for(var h=0,v=new Array(d);h=x.length?{done:!0}:{done:!1,value:x[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=[/v4shim/i],s={},a=function(x){return s[x]||x},g=function(x){return function(d){return function(h){var v=h.type,u=h.payload;if(v==="asset/stylesheet"){Byond.loadCss(u);return}if(v==="asset/mappings"){for(var m=function(){var p=f.value;if(r.some(function(O){return O.test(p)}))return"continue";var C=u[p],j=p.split(".").pop();s[p]=C,j==="css"&&Byond.loadCss(C),j==="js"&&Byond.loadJs(C)},c=n(Object.keys(u)),f;!(f=c()).done;)m();return}d(h)}}}},4413:function(M,y,t){"use strict";t.d(y,{H$:function(){return c},J3:function(){return m},JV:function(){return C},Oc:function(){return P},QY:function(){return R},Ul:function(){return A},jB:function(){return b},pX:function(){return I}});var e=t(3710),i=t(40001),n=t(58463),r=t(80116),s=t(46989),a=t(47868),g=t(17002);/** + */function e(x,d){(d==null||d>x.length)&&(d=x.length);for(var h=0,v=new Array(d);h=x.length?{done:!0}:{done:!1,value:x[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=[/v4shim/i],i={},a=function(x){return i[x]||x},g=function(x){return function(d){return function(h){var v=h.type,u=h.payload;if(v==="asset/stylesheet"){Byond.loadCss(u);return}if(v==="asset/mappings"){for(var m=function(){var p=f.value;if(r.some(function(O){return O.test(p)}))return"continue";var C=u[p],j=p.split(".").pop();i[p]=C,j==="css"&&Byond.loadCss(C),j==="js"&&Byond.loadJs(C)},c=n(Object.keys(u)),f;!(f=c()).done;)m();return}d(h)}}}},4413:function(M,y,t){"use strict";t.d(y,{H$:function(){return c},J3:function(){return m},JV:function(){return C},Oc:function(){return P},QY:function(){return R},Ul:function(){return A},jB:function(){return b},pX:function(){return I}});var e=t(3710),s=t(40001),n=t(58463),r=t(80116),i=t(46989),a=t(47868),g=t(17002);/** * This file provides a clear separation layer between backend updates * and what state our React app sees. * @@ -101,19 +101,19 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function x(k,X){(X==null||X>k.length)&&(X=k.length);for(var F=0,J=new Array(X);F=k.length?{done:!0}:{done:!1,value:k[J++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u=(0,a.h)("backend"),m,c=function(k){m=k},f=(0,i.VP)("backend/update"),p=(0,i.VP)("backend/setSharedState"),C=(0,i.VP)("backend/suspendStart"),j=function(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}},O={config:{},data:{},shared:{},suspended:Date.now(),suspending:!1},b=function(k,X){k===void 0&&(k=O);var F=X.type,J=X.payload;if(F==="backend/update"){var H=d({},k.config,J.config),Q=d({},k.data,J.static_data,J.data),Z=d({},k.shared);if(J.shared)for(var V=v(Object.keys(J.shared)),z;!(z=V()).done;){var Y=z.value,ee=J.shared[Y];ee===""?Z[Y]=void 0:Z[Y]=JSON.parse(ee)}return d({},k,{config:H,data:Q,shared:Z,suspended:!1})}if(F==="backend/setSharedState"){var oe=J.key,ne=J.nextState,ce;return d({},k,{shared:d({},k.shared,(ce={},ce[oe]=ne,ce))})}if(F==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),F==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),F==="backend/suspendStart")return d({},k,{suspending:!0});if(F==="backend/suspendSuccess"){var de=J.timestamp;return d({},k,{data:{},shared:{},config:d({},k.config,{title:"",status:1}),suspending:!1,suspended:de})}return k},I=function(k){var X,F;return function(J){return function(H){var Q=S(k.getState()).suspended,Z=H.type,V=H.payload;if(Z==="update"){k.dispatch(f(V));return}if(Z==="suspend"){k.dispatch(j());return}if(Z==="ping"){Byond.sendMessage("ping/reply");return}if(Z==="byond/mousedown"&&r.Nh.emit("byond/mousedown"),Z==="byond/mouseup"&&r.Nh.emit("byond/mouseup"),Z==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),Z==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),Z==="backend/suspendStart"&&!F){u.log("suspending ("+Byond.windowId+")");var z=function(){return Byond.sendMessage("suspend")};z(),F=setInterval(z,2e3)}if(Z==="backend/suspendSuccess"&&((0,g.Su)(),clearInterval(F),F=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),setImmediate(function(){return(0,s.$)()})),Z==="backend/update"){var Y,ee,oe=(ee=V.config)==null||(Y=ee.window)==null?void 0:Y.fancy;X===void 0?X=oe:X!==oe&&(u.log("changing fancy mode to",oe),X=oe,Byond.winset(Byond.windowId,{titlebar:!oe,"can-resize":!oe}))}return Z==="backend/update"&&Q&&(u.log("backend/update",V),(0,g.P7)(),(0,n.MN)(),setImmediate(function(){e.k.mark("resume/start");var ne=S(k.getState()).suspended;ne||(Byond.winset(Byond.windowId,{"is-visible":!0}),e.k.mark("resume/finish"))})),J(H)}}},_=function(k,X){X===void 0&&(X={});var F=typeof X=="object"&&X!==null&&!Array.isArray(X);if(!F){u.error("Payload for act() must be an object, got this:",X);return}Byond.sendMessage("act/"+k,X)},S=function(k){return k.backend||{}},P=function(){var k,X=m==null||(k=m.getState())==null?void 0:k.backend;return d({},X,{act:_})},A=function(k,X){var F,J=m==null||(F=m.getState())==null?void 0:F.backend,H,Q=(H=J==null?void 0:J.shared)!=null?H:{},Z=k in Q?Q[k]:X;return[Z,function(V){m.dispatch(p({key:k,nextState:typeof V=="function"?V(Z):V}))}]},R=function(k,X){var F,J=m==null||(F=m.getState())==null?void 0:F.backend,H,Q=(H=J==null?void 0:J.shared)!=null?H:{},Z=k in Q?Q[k]:X;return[Z,function(V){Byond.sendMessage({type:"setSharedState",key:k,value:JSON.stringify(typeof V=="function"?V(Z):V)||""})}]},K=function(){return m.dispatch},N=function(k){return k(m==null?void 0:m.getState())}},60001:function(M,y,t){"use strict";t.d(y,{Fl:function(){return I},WP:function(){return _},az:function(){return S},zA:function(){return h}});var e=t(84352),i=t(44583),n=t(1568),r=t(47868);/** + */function x(k,X){(X==null||X>k.length)&&(X=k.length);for(var F=0,J=new Array(X);F=k.length?{done:!0}:{done:!1,value:k[J++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u=(0,a.h)("backend"),m,c=function(k){m=k},f=(0,s.VP)("backend/update"),p=(0,s.VP)("backend/setSharedState"),C=(0,s.VP)("backend/suspendStart"),j=function(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}},O={config:{},data:{},shared:{},suspended:Date.now(),suspending:!1},b=function(k,X){k===void 0&&(k=O);var F=X.type,J=X.payload;if(F==="backend/update"){var H=d({},k.config,J.config),Z=d({},k.data,J.static_data,J.data),Q=d({},k.shared);if(J.shared)for(var V=v(Object.keys(J.shared)),z;!(z=V()).done;){var Y=z.value,ee=J.shared[Y];ee===""?Q[Y]=void 0:Q[Y]=JSON.parse(ee)}return d({},k,{config:H,data:Z,shared:Q,suspended:!1})}if(F==="backend/setSharedState"){var oe=J.key,ne=J.nextState,ce;return d({},k,{shared:d({},k.shared,(ce={},ce[oe]=ne,ce))})}if(F==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),F==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),F==="backend/suspendStart")return d({},k,{suspending:!0});if(F==="backend/suspendSuccess"){var de=J.timestamp;return d({},k,{data:{},shared:{},config:d({},k.config,{title:"",status:1}),suspending:!1,suspended:de})}return k},I=function(k){var X,F;return function(J){return function(H){var Z=S(k.getState()).suspended,Q=H.type,V=H.payload;if(Q==="update"){k.dispatch(f(V));return}if(Q==="suspend"){k.dispatch(j());return}if(Q==="ping"){Byond.sendMessage("ping/reply");return}if(Q==="byond/mousedown"&&r.Nh.emit("byond/mousedown"),Q==="byond/mouseup"&&r.Nh.emit("byond/mouseup"),Q==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),Q==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),Q==="backend/suspendStart"&&!F){u.log("suspending ("+Byond.windowId+")");var z=function(){return Byond.sendMessage("suspend")};z(),F=setInterval(z,2e3)}if(Q==="backend/suspendSuccess"&&((0,g.Su)(),clearInterval(F),F=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),setImmediate(function(){return(0,i.$)()})),Q==="backend/update"){var Y,ee,oe=(ee=V.config)==null||(Y=ee.window)==null?void 0:Y.fancy;X===void 0?X=oe:X!==oe&&(u.log("changing fancy mode to",oe),X=oe,Byond.winset(Byond.windowId,{titlebar:!oe,"can-resize":!oe}))}return Q==="backend/update"&&Z&&(u.log("backend/update",V),(0,g.P7)(),(0,n.MN)(),setImmediate(function(){e.k.mark("resume/start");var ne=S(k.getState()).suspended;ne||(Byond.winset(Byond.windowId,{"is-visible":!0}),e.k.mark("resume/finish"))})),J(H)}}},_=function(k,X){X===void 0&&(X={});var F=typeof X=="object"&&X!==null&&!Array.isArray(X);if(!F){u.error("Payload for act() must be an object, got this:",X);return}Byond.sendMessage("act/"+k,X)},S=function(k){return k.backend||{}},P=function(){var k,X=m==null||(k=m.getState())==null?void 0:k.backend;return d({},X,{act:_})},A=function(k,X){var F,J=m==null||(F=m.getState())==null?void 0:F.backend,H,Z=(H=J==null?void 0:J.shared)!=null?H:{},Q=k in Z?Z[k]:X;return[Q,function(V){m.dispatch(p({key:k,nextState:typeof V=="function"?V(Q):V}))}]},R=function(k,X){var F,J=m==null||(F=m.getState())==null?void 0:F.backend,H,Z=(H=J==null?void 0:J.shared)!=null?H:{},Q=k in Z?Z[k]:X;return[Q,function(V){Byond.sendMessage({type:"setSharedState",key:k,value:JSON.stringify(typeof V=="function"?V(Q):V)||""})}]},K=function(){return m.dispatch},N=function(k){return k(m==null?void 0:m.getState())}},60001:function(M,y,t){"use strict";t.d(y,{Fl:function(){return I},WP:function(){return _},az:function(){return S},zA:function(){return h}});var e=t(84352),s=t(44583),n=t(1568),r=t(47868);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function s(P,A){(A==null||A>P.length)&&(A=P.length);for(var R=0,K=new Array(A);R=0)&&(R[N]=P[N]);return R}function x(P,A){if(P){if(typeof P=="string")return s(P,A);var R=Object.prototype.toString.call(P).slice(8,-1);if(R==="Object"&&P.constructor&&(R=P.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return s(P,A)}}function d(P,A){var R=typeof Symbol!="undefined"&&P[Symbol.iterator]||P["@@iterator"];if(R)return(R=R.call(P)).next.bind(R);if(Array.isArray(P)||(R=x(P))||A&&P&&typeof P.length=="number"){R&&(P=R);var K=0;return function(){return K>=P.length?{done:!0}:{done:!1,value:P[K++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h=function(P){if(typeof P=="string")return P.endsWith("px")?parseFloat(P)/12+"rem":P;if(typeof P=="number")return P+"rem"},v=function(P){if(typeof P=="string")return h(P);if(typeof P=="number")return h(P*.5)},u=function(P){return!m(P)},m=function(P){return typeof P=="string"&&n.NE.includes(P)},c=function(P){return function(A,R){(typeof R=="number"||typeof R=="string")&&(A[P]=R)}},f=function(P,A){return function(R,K){(typeof K=="number"||typeof K=="string")&&(R[P]=A(K))}},p=function(P,A){return function(R,K){K&&(R[P]=A)}},C=function(P,A,R){return function(K,N){if(typeof N=="number"||typeof N=="string")for(var k=0;kP.length)&&(A=P.length);for(var R=0,K=new Array(A);R=0)&&(R[N]=P[N]);return R}function x(P,A){if(P){if(typeof P=="string")return i(P,A);var R=Object.prototype.toString.call(P).slice(8,-1);if(R==="Object"&&P.constructor&&(R=P.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return i(P,A)}}function d(P,A){var R=typeof Symbol!="undefined"&&P[Symbol.iterator]||P["@@iterator"];if(R)return(R=R.call(P)).next.bind(R);if(Array.isArray(P)||(R=x(P))||A&&P&&typeof P.length=="number"){R&&(P=R);var K=0;return function(){return K>=P.length?{done:!0}:{done:!1,value:P[K++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h=function(P){if(typeof P=="string")return P.endsWith("px")?parseFloat(P)/12+"rem":P;if(typeof P=="number")return P+"rem"},v=function(P){if(typeof P=="string")return h(P);if(typeof P=="number")return h(P*.5)},u=function(P){return!m(P)},m=function(P){return typeof P=="string"&&n.NE.includes(P)},c=function(P){return function(A,R){(typeof R=="number"||typeof R=="string")&&(A[P]=R)}},f=function(P,A){return function(R,K){(typeof K=="number"||typeof K=="string")&&(R[P]=A(K))}},p=function(P,A){return function(R,K){K&&(R[P]=A)}},C=function(P,A,R){return function(K,N){if(typeof N=="number"||typeof N=="string")for(var k=0;k=0)&&(v[m]=d[m]);return v}var a=function(d){var h=d.className,v=d.collapsing,u=d.children,m=s(d,["className","collapsing","children"]);return(0,e.jsx)("table",r({className:(0,i.Ly)(["Table",v&&"Table--collapsing",h,(0,n.WP)(m)])},(0,n.Fl)(m),{children:(0,e.jsx)("tbody",{children:u})}))},g=function(d){var h=d.className,v=d.header,u=s(d,["className","header"]);return(0,e.jsx)("tr",r({className:(0,i.Ly)(["Table__row",v&&"Table__row--header",h,(0,n.WP)(d)])},(0,n.Fl)(u)))},x=function(d){var h=d.className,v=d.collapsing,u=d.header,m=s(d,["className","collapsing","header"]);return(0,e.jsx)("td",r({className:(0,i.Ly)(["Table__cell",v&&"Table__cell--collapsing",u&&"Table__cell--header",h,(0,n.WP)(d)])},(0,n.Fl)(m)))};a.Row=g,a.Cell=x},92514:function(M,y,t){"use strict";t.d(y,{zv:function(){return h},y5:function(){return v},Z8:function(){return p},Y0:function(){return I},az:function(){return j.az},$n:function(){return an},D1:function(){return as},t1:function(){return rl},Nt:function(){return di},BK:function(){return il},Rr:function(){return ls},cG:function(){return cs},Hx:function(){return Oa},ms:function(){return ds},so:function(){return Sn},xA:function(){return yi},In:function(){return R},pd:function(){return xs},N6:function(){return Il},Wx:function(){return Oi},Ki:function(){return Ot},aF:function(){return Mi},tx:function(){return Fo},IC:function(){return Vo},Q7:function(){return vr},ND:function(){return vi},z2:function(){return hs},SM:function(){return so},wn:function(){return Zn},Ap:function(){return Bi},BJ:function(){return Sa},XI:function(){return no.XI},tU:function(){return Kr},fs:function(){return qn},m_:function(){return on}});var e=t(88095),i=t(5229),n=t(44583);/** + */function r(){return r=Object.assign||function(d){for(var h=1;h=0)&&(v[m]=d[m]);return v}var a=function(d){var h=d.className,v=d.collapsing,u=d.children,m=i(d,["className","collapsing","children"]);return(0,e.jsx)("table",r({className:(0,s.Ly)(["Table",v&&"Table--collapsing",h,(0,n.WP)(m)])},(0,n.Fl)(m),{children:(0,e.jsx)("tbody",{children:u})}))},g=function(d){var h=d.className,v=d.header,u=i(d,["className","header"]);return(0,e.jsx)("tr",r({className:(0,s.Ly)(["Table__row",v&&"Table__row--header",h,(0,n.WP)(d)])},(0,n.Fl)(u)))},x=function(d){var h=d.className,v=d.collapsing,u=d.header,m=i(d,["className","collapsing","header"]);return(0,e.jsx)("td",r({className:(0,s.Ly)(["Table__cell",v&&"Table__cell--collapsing",u&&"Table__cell--header",h,(0,n.WP)(d)])},(0,n.Fl)(m)))};a.Row=g,a.Cell=x},92514:function(M,y,t){"use strict";t.d(y,{zv:function(){return h},y5:function(){return v},Z8:function(){return p},Y0:function(){return I},az:function(){return j.az},$n:function(){return an},D1:function(){return as},t1:function(){return rl},Nt:function(){return di},BK:function(){return il},Rr:function(){return ls},cG:function(){return cs},Hx:function(){return Oa},ms:function(){return ds},so:function(){return Sn},xA:function(){return yi},In:function(){return R},pd:function(){return xs},N6:function(){return Il},Wx:function(){return Oi},Ki:function(){return Ot},aF:function(){return Mi},tx:function(){return Fo},IC:function(){return Vo},Q7:function(){return vr},ND:function(){return vi},z2:function(){return hs},SM:function(){return so},wn:function(){return Qn},Ap:function(){return Bi},BJ:function(){return Sa},XI:function(){return no.XI},tU:function(){return Kr},fs:function(){return qn},m_:function(){return on}});var e=t(88095),s=t(5229),n=t(44583);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function r(D,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(w&&w.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),w&&s(D,w)}function s(D,w){return s=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},s(D,w)}var a=function(D){return typeof D=="number"&&Number.isFinite(D)&&!Number.isNaN(D)},g=1e3/60,x=.8333,d=.001,h=function(D){"use strict";r(w,D);function w($){var B;B=D.call(this,$)||this,B.ref=(0,n.createRef)(),B.currentValue=0;var G=$.initial,te=$.value;return G!==void 0&&a(G)?B.currentValue=G:a(te)&&(B.currentValue=te),B}var U=w.prototype;return U.componentDidMount=function(){this.currentValue!==this.props.value&&this.startTicking()},U.componentWillUnmount=function(){this.stopTicking()},U.shouldComponentUpdate=function(B){return B.value!==this.props.value&&this.startTicking(),!1},U.startTicking=function(){var B=this;this.interval===void 0&&(this.interval=setInterval(function(){return B.tick()},g))},U.stopTicking=function(){this.interval!==void 0&&(clearInterval(this.interval),this.interval=void 0)},U.tick=function(){var B=this.currentValue,G=this.props.value;a(G)?this.currentValue=B*x+G*(1-x):this.stopTicking(),Math.abs(G-this.currentValue)=0)&&(U[B]=D[B]);return U}var A=/-o$/,R=function(D){var w=D.name,U=D.size,$=D.spin,B=D.className,G=D.rotation,te=P(D,["name","size","spin","className","rotation"]),re=te.style||{};U&&(re.fontSize=U*100+"%"),G&&(re.transform="rotate("+G+"deg)"),te.style=re;var se=(0,j.Fl)(te),le="";if(w.startsWith("tg-"))le=w;else{var ue=A.test(w),Ee=w.replace(A,""),Ie=!Ee.startsWith("fa-");le=ue?"far ":"fas ",Ie&&(le+="fa-"),le+=Ee,$&&(le+=" fa-spin")}return(0,e.jsx)("i",S({className:(0,C.Ly)(["Icon",le,B,(0,j.WP)(te)])},se))},K=function(D){var w=D.className,U=D.children,$=P(D,["className","children"]);return(0,e.jsx)("span",S({className:(0,C.Ly)(["IconStack",w,(0,j.WP)($)])},(0,j.Fl)($),{children:U}))};R.Stack=K;function N(D){if(D==null)return window;if(D.toString()!=="[object Window]"){var w=D.ownerDocument;return w&&w.defaultView||window}return D}function k(D,w){return w!=null&&typeof Symbol!="undefined"&&w[Symbol.hasInstance]?!!w[Symbol.hasInstance](D):D instanceof w}function X(D){var w=N(D).Element;return k(D,w)||k(D,Element)}function F(D){var w=N(D).HTMLElement;return k(D,w)||k(D,HTMLElement)}function J(D){if(typeof ShadowRoot=="undefined")return!1;var w=N(D).ShadowRoot;return k(D,w)||k(D,ShadowRoot)}var H=Math.max,Q=Math.min,Z=Math.round;function V(){var D=navigator.userAgentData;return D!=null&&D.brands&&Array.isArray(D.brands)?D.brands.map(function(w){return w.brand+"/"+w.version}).join(" "):navigator.userAgent}function z(){return!/^((?!chrome|android).)*safari/i.test(V())}function Y(D,w,U){w===void 0&&(w=!1),U===void 0&&(U=!1);var $=D.getBoundingClientRect(),B=1,G=1;w&&F(D)&&(B=D.offsetWidth>0&&Z($.width)/D.offsetWidth||1,G=D.offsetHeight>0&&Z($.height)/D.offsetHeight||1);var te=X(D)?N(D):window,re=te.visualViewport,se=!z()&&U,le=($.left+(se&&re?re.offsetLeft:0))/B,ue=($.top+(se&&re?re.offsetTop:0))/G,Ee=$.width/B,Ie=$.height/G;return{width:Ee,height:Ie,top:ue,right:le+Ee,bottom:ue+Ie,left:le,x:le,y:ue}}function ee(D){var w=N(D),U=w.pageXOffset,$=w.pageYOffset;return{scrollLeft:U,scrollTop:$}}function oe(D){return{scrollLeft:D.scrollLeft,scrollTop:D.scrollTop}}function ne(D){return D===N(D)||!F(D)?ee(D):oe(D)}function ce(D){return D?(D.nodeName||"").toLowerCase():null}function de(D){return((X(D)?D.ownerDocument:D.document)||window.document).documentElement}function ve(D){return Y(de(D)).left+ee(D).scrollLeft}function pe(D){return N(D).getComputedStyle(D)}function me(D){var w=pe(D),U=w.overflow,$=w.overflowX,B=w.overflowY;return/auto|scroll|overlay|hidden/.test(U+B+$)}function be(D){var w=D.getBoundingClientRect(),U=Z(w.width)/D.offsetWidth||1,$=Z(w.height)/D.offsetHeight||1;return U!==1||$!==1}function we(D,w,U){U===void 0&&(U=!1);var $=F(w),B=F(w)&&be(w),G=de(w),te=Y(D,B,U),re={scrollLeft:0,scrollTop:0},se={x:0,y:0};return($||!$&&!U)&&((ce(w)!=="body"||me(G))&&(re=ne(w)),F(w)?(se=Y(w,!0),se.x+=w.clientLeft,se.y+=w.clientTop):G&&(se.x=ve(G))),{x:te.left+re.scrollLeft-se.x,y:te.top+re.scrollTop-se.y,width:te.width,height:te.height}}function Je(D){var w=Y(D),U=D.offsetWidth,$=D.offsetHeight;return Math.abs(w.width-U)<=1&&(U=w.width),Math.abs(w.height-$)<=1&&($=w.height),{x:D.offsetLeft,y:D.offsetTop,width:U,height:$}}function ze(D){return ce(D)==="html"?D:D.assignedSlot||D.parentNode||(J(D)?D.host:null)||de(D)}function Ke(D){return["html","body","#document"].indexOf(ce(D))>=0?D.ownerDocument.body:F(D)&&me(D)?D:Ke(ze(D))}function Be(D,w){var U;w===void 0&&(w=[]);var $=Ke(D),B=$===((U=D.ownerDocument)==null?void 0:U.body),G=N($),te=B?[G].concat(G.visualViewport||[],me($)?$:[]):$,re=w.concat(te);return B?re:re.concat(Be(ze(te)))}function ct(D){return["table","td","th"].indexOf(ce(D))>=0}function xt(D){return!F(D)||pe(D).position==="fixed"?null:D.offsetParent}function st(D){var w=/firefox/i.test(V()),U=/Trident/i.test(V());if(U&&F(D)){var $=pe(D);if($.position==="fixed")return null}var B=ze(D);for(J(B)&&(B=B.host);F(B)&&["html","body"].indexOf(ce(B))<0;){var G=pe(B);if(G.transform!=="none"||G.perspective!=="none"||G.contain==="paint"||["transform","perspective"].indexOf(G.willChange)!==-1||w&&G.willChange==="filter"||w&&G.filter&&G.filter!=="none")return B;B=B.parentNode}return null}function ot(D){for(var w=N(D),U=xt(D);U&&ct(U)&&pe(U).position==="static";)U=xt(U);return U&&(ce(U)==="html"||ce(U)==="body"&&pe(U).position==="static")?w:U||st(D)||w}var Ae="top",Le="bottom",Pe="right",ke="left",Me="auto",Fe=[Ae,Le,Pe,ke],We="start",He="end",jt="clippingParents",Mt="viewport",bt="popper",Dt="reference",lt=Fe.reduce(function(D,w){return D.concat([w+"-"+We,w+"-"+He])},[]),Ge=[].concat(Fe,[Me]).reduce(function(D,w){return D.concat([w,w+"-"+We,w+"-"+He])},[]),je="beforeRead",Qe="read",mt="afterRead",Pt="beforeMain",zt="main",en="afterMain",Wt="beforeWrite",dn="write",Bn="afterWrite",Gn=[je,Qe,mt,Pt,zt,en,Wt,dn,Bn];function Hn(D){var w=new Map,U=new Set,$=[];D.forEach(function(G){w.set(G.name,G)});function B(G){U.add(G.name);var te=[].concat(G.requires||[],G.requiresIfExists||[]);te.forEach(function(re){if(!U.has(re)){var se=w.get(re);se&&B(se)}}),$.push(G)}return D.forEach(function(G){U.has(G.name)||B(G)}),$}function Eo(D){var w=Hn(D);return Gn.reduce(function(U,$){return U.concat(w.filter(function(B){return B.phase===$}))},[])}function bo(D){var w;return function(){return w||(w=new Promise(function(U){Promise.resolve().then(function(){w=void 0,U(D())})})),w}}function Oo(D){var w=D.reduce(function(U,$){var B=U[$.name];return U[$.name]=B?Object.assign({},B,$,{options:Object.assign({},B.options,$.options),data:Object.assign({},B.data,$.data)}):$,U},{});return Object.keys(w).map(function(U){return w[U]})}var Vr={placement:"bottom",modifiers:[],strategy:"absolute"};function Xr(){for(var D=arguments.length,w=new Array(D),U=0;U=0?"x":"y"}function Er(D){var w=D.reference,U=D.element,$=D.placement,B=$?xn($):null,G=$?pn($):null,te=w.x+w.width/2-U.width/2,re=w.y+w.height/2-U.height/2,se;switch(B){case Ae:se={x:te,y:w.y-U.height};break;case Le:se={x:te,y:w.y+w.height};break;case Pe:se={x:w.x+w.width,y:re};break;case ke:se={x:w.x-U.width,y:re};break;default:se={x:w.x,y:w.y}}var le=B?ir(B):null;if(le!=null){var ue=le==="y"?"height":"width";switch(G){case We:se[le]=se[le]-(w[ue]/2-U[ue]/2);break;case He:se[le]=se[le]+(w[ue]/2-U[ue]/2);break;default:}}return se}function _o(D){var w=D.state,U=D.name;w.modifiersData[U]=Er({reference:w.rects.reference,element:w.rects.popper,strategy:"absolute",placement:w.placement})}var ei={name:"popperOffsets",enabled:!0,phase:"read",fn:_o,data:{}},ti={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ni(D,w){var U=D.x,$=D.y,B=w.devicePixelRatio||1;return{x:Z(U*B)/B||0,y:Z($*B)/B||0}}function Kn(D){var w,U=D.popper,$=D.popperRect,B=D.placement,G=D.variation,te=D.offsets,re=D.position,se=D.gpuAcceleration,le=D.adaptive,ue=D.roundOffsets,Ee=D.isFixed,Ie=te.x,Ce=Ie===void 0?0:Ie,_e=te.y,Re=_e===void 0?0:_e,Ue=typeof ue=="function"?ue({x:Ce,y:Re}):{x:Ce,y:Re};Ce=Ue.x,Re=Ue.y;var Ne=te.hasOwnProperty("x"),Ve=te.hasOwnProperty("y"),nt=ke,Xe=Ae,et=window;if(le){var at=ot(U),dt="clientHeight",ut="clientWidth";if(at===N(U)&&(at=de(U),pe(at).position!=="static"&&re==="absolute"&&(dt="scrollHeight",ut="scrollWidth")),at=at,B===Ae||(B===ke||B===Pe)&&G===He){Xe=Le;var pt=Ee&&at===et&&et.visualViewport?et.visualViewport.height:at[dt];Re-=pt-$.height,Re*=se?1:-1}if(B===ke||(B===Ae||B===Le)&&G===He){nt=Pe;var Ct=Ee&&at===et&&et.visualViewport?et.visualViewport.width:at[ut];Ce-=Ct-$.width,Ce*=se?1:-1}}var vt=Object.assign({position:re},le&&ti),it=ue===!0?ni({x:Ce,y:Re},N(U)):{x:Ce,y:Re};if(Ce=it.x,Re=it.y,se){var St;return Object.assign({},vt,(St={},St[Xe]=Ve?"0":"",St[nt]=Ne?"0":"",St.transform=(et.devicePixelRatio||1)<=1?"translate("+Ce+"px, "+Re+"px)":"translate3d("+Ce+"px, "+Re+"px, 0)",St))}return Object.assign({},vt,(w={},w[Xe]=Ve?Re+"px":"",w[nt]=Ne?Ce+"px":"",w.transform="",w))}function aa(D){var w=D.state,U=D.options,$=U.gpuAcceleration,B=$===void 0?!0:$,G=U.adaptive,te=G===void 0?!0:G,re=U.roundOffsets,se=re===void 0?!0:re,le={placement:xn(w.placement),variation:pn(w.placement),popper:w.elements.popper,popperRect:w.rects.popper,gpuAcceleration:B,isFixed:w.options.strategy==="fixed"};w.modifiersData.popperOffsets!=null&&(w.styles.popper=Object.assign({},w.styles.popper,Kn(Object.assign({},le,{offsets:w.modifiersData.popperOffsets,position:w.options.strategy,adaptive:te,roundOffsets:se})))),w.modifiersData.arrow!=null&&(w.styles.arrow=Object.assign({},w.styles.arrow,Kn(Object.assign({},le,{offsets:w.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:se})))),w.attributes.popper=Object.assign({},w.attributes.popper,{"data-popper-placement":w.placement})}var ia={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:aa,data:{}};function ri(D){var w=D.state;Object.keys(w.elements).forEach(function(U){var $=w.styles[U]||{},B=w.attributes[U]||{},G=w.elements[U];!F(G)||!ce(G)||(Object.assign(G.style,$),Object.keys(B).forEach(function(te){var re=B[te];re===!1?G.removeAttribute(te):G.setAttribute(te,re===!0?"":re)}))})}function sa(D){var w=D.state,U={popper:{position:w.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(w.elements.popper.style,U.popper),w.styles=U,w.elements.arrow&&Object.assign(w.elements.arrow.style,U.arrow),function(){Object.keys(w.elements).forEach(function($){var B=w.elements[$],G=w.attributes[$]||{},te=Object.keys(w.styles.hasOwnProperty($)?w.styles[$]:U[$]),re=te.reduce(function(se,le){return se[le]="",se},{});!F(B)||!ce(B)||(Object.assign(B.style,re),Object.keys(G).forEach(function(se){B.removeAttribute(se)}))})}}var la={name:"applyStyles",enabled:!0,phase:"write",fn:ri,effect:sa,requires:["computeStyles"]};function ae(D,w,U){var $=xn(D),B=[ke,Ae].indexOf($)>=0?-1:1,G=typeof U=="function"?U(Object.assign({},w,{placement:D})):U,te=G[0],re=G[1];return te=te||0,re=(re||0)*B,[ke,Pe].indexOf($)>=0?{x:re,y:te}:{x:te,y:re}}function Se(D){var w=D.state,U=D.options,$=D.name,B=U.offset,G=B===void 0?[0,0]:B,te=Ge.reduce(function(ue,Ee){return ue[Ee]=ae(Ee,w.rects,G),ue},{}),re=te[w.placement],se=re.x,le=re.y;w.modifiersData.popperOffsets!=null&&(w.modifiersData.popperOffsets.x+=se,w.modifiersData.popperOffsets.y+=le),w.modifiersData[$]=te}var Hs={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Se},Ys={left:"right",right:"left",bottom:"top",top:"bottom"};function wt(D){return D.replace(/left|right|bottom|top/g,function(w){return Ys[w]})}var Qs={start:"end",end:"start"};function ca(D){return D.replace(/start|end/g,function(w){return Qs[w]})}function Xi(D,w){var U=N(D),$=de(D),B=U.visualViewport,G=$.clientWidth,te=$.clientHeight,re=0,se=0;if(B){G=B.width,te=B.height;var le=z();(le||!le&&w==="fixed")&&(re=B.offsetLeft,se=B.offsetTop)}return{width:G,height:te,x:re+ve(D),y:se}}function ua(D){var w,U=de(D),$=ee(D),B=(w=D.ownerDocument)==null?void 0:w.body,G=H(U.scrollWidth,U.clientWidth,B?B.scrollWidth:0,B?B.clientWidth:0),te=H(U.scrollHeight,U.clientHeight,B?B.scrollHeight:0,B?B.clientHeight:0),re=-$.scrollLeft+ve(D),se=-$.scrollTop;return pe(B||U).direction==="rtl"&&(re+=H(U.clientWidth,B?B.clientWidth:0)-G),{width:G,height:te,x:re,y:se}}function Gi(D,w){var U=w.getRootNode&&w.getRootNode();if(D.contains(w))return!0;if(U&&J(U)){var $=w;do{if($&&D.isSameNode($))return!0;$=$.parentNode||$.host}while($)}return!1}function da(D){return Object.assign({},D,{left:D.x,top:D.y,right:D.x+D.width,bottom:D.y+D.height})}function fa(D,w){var U=Y(D,!1,w==="fixed");return U.top=U.top+D.clientTop,U.left=U.left+D.clientLeft,U.bottom=U.top+D.clientHeight,U.right=U.left+D.clientWidth,U.width=D.clientWidth,U.height=D.clientHeight,U.x=U.left,U.y=U.top,U}function _n(D,w,U){return w===Mt?da(Xi(D,U)):X(w)?fa(w,U):da(ua(de(D)))}function Zs(D){var w=Be(ze(D)),U=["absolute","fixed"].indexOf(pe(D).position)>=0,$=U&&F(D)?ot(D):D;return X($)?w.filter(function(B){return X(B)&&Gi(B,$)&&ce(B)!=="body"}):[]}function Pn(D,w,U,$){var B=w==="clippingParents"?Zs(D):[].concat(w),G=[].concat(B,[U]),te=G[0],re=G.reduce(function(se,le){var ue=_n(D,le,$);return se.top=H(ue.top,se.top),se.right=Q(ue.right,se.right),se.bottom=Q(ue.bottom,se.bottom),se.left=H(ue.left,se.left),se},_n(D,te,$));return re.width=re.right-re.left,re.height=re.bottom-re.top,re.x=re.left,re.y=re.top,re}function Hi(){return{top:0,right:0,bottom:0,left:0}}function Yi(D){return Object.assign({},Hi(),D)}function Qi(D,w){return w.reduce(function(U,$){return U[$]=D,U},{})}function sr(D,w){w===void 0&&(w={});var U=w,$=U.placement,B=$===void 0?D.placement:$,G=U.strategy,te=G===void 0?D.strategy:G,re=U.boundary,se=re===void 0?jt:re,le=U.rootBoundary,ue=le===void 0?Mt:le,Ee=U.elementContext,Ie=Ee===void 0?bt:Ee,Ce=U.altBoundary,_e=Ce===void 0?!1:Ce,Re=U.padding,Ue=Re===void 0?0:Re,Ne=Yi(typeof Ue!="number"?Ue:Qi(Ue,Fe)),Ve=Ie===bt?Dt:bt,nt=D.rects.popper,Xe=D.elements[_e?Ve:Ie],et=Pn(X(Xe)?Xe:Xe.contextElement||de(D.elements.popper),se,ue,te),at=Y(D.elements.reference),dt=Er({reference:at,element:nt,strategy:"absolute",placement:B}),ut=da(Object.assign({},nt,dt)),pt=Ie===bt?ut:at,Ct={top:et.top-pt.top+Ne.top,bottom:pt.bottom-et.bottom+Ne.bottom,left:et.left-pt.left+Ne.left,right:pt.right-et.right+Ne.right},vt=D.modifiersData.offset;if(Ie===bt&&vt){var it=vt[B];Object.keys(Ct).forEach(function(St){var Nt=[Pe,Le].indexOf(St)>=0?1:-1,kt=[Ae,Le].indexOf(St)>=0?"y":"x";Ct[St]+=it[kt]*Nt})}return Ct}function ha(D,w){w===void 0&&(w={});var U=w,$=U.placement,B=U.boundary,G=U.rootBoundary,te=U.padding,re=U.flipVariations,se=U.allowedAutoPlacements,le=se===void 0?Ge:se,ue=pn($),Ee=ue?re?lt:lt.filter(function(_e){return pn(_e)===ue}):Fe,Ie=Ee.filter(function(_e){return le.indexOf(_e)>=0});Ie.length===0&&(Ie=Ee);var Ce=Ie.reduce(function(_e,Re){return _e[Re]=sr(D,{placement:Re,boundary:B,rootBoundary:G,padding:te})[xn(Re)],_e},{});return Object.keys(Ce).sort(function(_e,Re){return Ce[_e]-Ce[Re]})}function Po(D){if(xn(D)===Me)return[];var w=wt(D);return[ca(D),w,ca(w)]}function ma(D){var w=D.state,U=D.options,$=D.name;if(!w.modifiersData[$]._skip){for(var B=U.mainAxis,G=B===void 0?!0:B,te=U.altAxis,re=te===void 0?!0:te,se=U.fallbackPlacements,le=U.padding,ue=U.boundary,Ee=U.rootBoundary,Ie=U.altBoundary,Ce=U.flipVariations,_e=Ce===void 0?!0:Ce,Re=U.allowedAutoPlacements,Ue=w.options.placement,Ne=xn(Ue),Ve=Ne===Ue,nt=se||(Ve||!_e?[wt(Ue)]:Po(Ue)),Xe=[Ue].concat(nt).reduce(function(Nr,tr){return Nr.concat(xn(tr)===Me?ha(w,{placement:tr,boundary:ue,rootBoundary:Ee,padding:le,flipVariations:_e,allowedAutoPlacements:Re}):tr)},[]),et=w.rects.reference,at=w.rects.popper,dt=new Map,ut=!0,pt=Xe[0],Ct=0;Ct=0,kt=Nt?"width":"height",Lt=sr(w,{placement:vt,boundary:ue,rootBoundary:Ee,altBoundary:Ie,padding:le}),Gt=Nt?St?Pe:ke:St?Le:Ae;et[kt]>at[kt]&&(Gt=wt(Gt));var Lr=wt(Gt),zn=[];if(G&&zn.push(Lt[it]<=0),re&&zn.push(Lt[Gt]<=0,Lt[Lr]<=0),zn.every(function(Nr){return Nr})){pt=vt,ut=!1;break}dt.set(vt,zn)}if(ut)for(var Ho=_e?3:1,Yo=function(tr){var Wn=Xe.find(function(Qo){var Rn=dt.get(Qo);if(Rn)return Rn.slice(0,tr).every(function(Cn){return Cn})});if(Wn)return pt=Wn,"break"},er=Ho;er>0;er--){var kr=Yo(er);if(kr==="break")break}w.placement!==pt&&(w.modifiersData[$]._skip=!0,w.placement=pt,w.reset=!0)}}var Js={name:"flip",enabled:!0,phase:"main",fn:ma,requiresIfExists:["offset"],data:{_skip:!1}};function qs(D){return D==="x"?"y":"x"}function br(D,w,U){return H(D,Q(w,U))}function Zi(D,w,U){var $=br(D,w,U);return $>U?U:$}function oi(D){var w=D.state,U=D.options,$=D.name,B=U.mainAxis,G=B===void 0?!0:B,te=U.altAxis,re=te===void 0?!1:te,se=U.boundary,le=U.rootBoundary,ue=U.altBoundary,Ee=U.padding,Ie=U.tether,Ce=Ie===void 0?!0:Ie,_e=U.tetherOffset,Re=_e===void 0?0:_e,Ue=sr(w,{boundary:se,rootBoundary:le,padding:Ee,altBoundary:ue}),Ne=xn(w.placement),Ve=pn(w.placement),nt=!Ve,Xe=ir(Ne),et=qs(Xe),at=w.modifiersData.popperOffsets,dt=w.rects.reference,ut=w.rects.popper,pt=typeof Re=="function"?Re(Object.assign({},w.rects,{placement:w.placement})):Re,Ct=typeof pt=="number"?{mainAxis:pt,altAxis:pt}:Object.assign({mainAxis:0,altAxis:0},pt),vt=w.modifiersData.offset?w.modifiersData.offset[w.placement]:null,it={x:0,y:0};if(at){if(G){var St,Nt=Xe==="y"?Ae:ke,kt=Xe==="y"?Le:Pe,Lt=Xe==="y"?"height":"width",Gt=at[Xe],Lr=Gt+Ue[Nt],zn=Gt-Ue[kt],Ho=Ce?-ut[Lt]/2:0,Yo=Ve===We?dt[Lt]:ut[Lt],er=Ve===We?-ut[Lt]:-dt[Lt],kr=w.elements.arrow,Nr=Ce&&kr?Je(kr):{width:0,height:0},tr=w.modifiersData["arrow#persistent"]?w.modifiersData["arrow#persistent"].padding:Hi(),Wn=tr[Nt],Qo=tr[kt],Rn=br(0,dt[Lt],Nr[Lt]),Cn=nt?dt[Lt]/2-Ho-Rn-Wn-Ct.mainAxis:Yo-Rn-Wn-Ct.mainAxis,Zo=nt?-dt[Lt]/2+Ho+Rn+Qo+Ct.mainAxis:er+Rn+Qo+Ct.mainAxis,Ur=w.elements.arrow&&ot(w.elements.arrow),$r=Ur?Xe==="y"?Ur.clientTop||0:Ur.clientLeft||0:0,Va=(St=vt==null?void 0:vt[Xe])!=null?St:0,ho=Gt+Cn-Va-$r,Os=Gt+Zo-Va,Xa=br(Ce?Q(Lr,ho):Lr,Gt,Ce?H(zn,Os):zn);at[Xe]=Xa,it[Xe]=Xa-Gt}if(re){var Bt,Ga=Xe==="x"?Ae:ke,Ki=Xe==="x"?Le:Pe,nr=at[et],zr=et==="y"?"height":"width",Ha=nr+Ue[Ga],gr=nr-Ue[Ki],Rt=[Ae,ke].indexOf(Ne)!==-1,Ut=(Bt=vt==null?void 0:vt[et])!=null?Bt:0,Ft=Rt?Ha:nr-dt[zr]-ut[zr]-Ut+Ct.altAxis,Jo=Rt?nr+dt[zr]+ut[zr]-Ut-Ct.altAxis:gr,mo=Ce&&Rt?Zi(Ft,nr,Jo):br(Ce?Ft:Ha,nr,Ce?Jo:gr);at[et]=mo,it[et]=mo-nr}w.modifiersData[$]=it}}var Mo={name:"preventOverflow",enabled:!0,phase:"main",fn:oi,requiresIfExists:["offset"]},el=function(w,U){return w=typeof w=="function"?w(Object.assign({},U.rects,{placement:U.placement})):w,Yi(typeof w!="number"?w:Qi(w,Fe))};function ai(D){var w,U=D.state,$=D.name,B=D.options,G=U.elements.arrow,te=U.modifiersData.popperOffsets,re=xn(U.placement),se=ir(re),le=[ke,Pe].indexOf(re)>=0,ue=le?"height":"width";if(!(!G||!te)){var Ee=el(B.padding,U),Ie=Je(G),Ce=se==="y"?Ae:ke,_e=se==="y"?Le:Pe,Re=U.rects.reference[ue]+U.rects.reference[se]-te[se]-U.rects.popper[ue],Ue=te[se]-U.rects.reference[se],Ne=ot(G),Ve=Ne?se==="y"?Ne.clientHeight||0:Ne.clientWidth||0:0,nt=Re/2-Ue/2,Xe=Ee[Ce],et=Ve-Ie[ue]-Ee[_e],at=Ve/2-Ie[ue]/2+nt,dt=br(Xe,at,et),ut=se;U.modifiersData[$]=(w={},w[ut]=dt,w.centerOffset=dt-at,w)}}function _t(D){var w=D.state,U=D.options,$=U.element,B=$===void 0?"[data-popper-arrow]":$;B!=null&&(typeof B=="string"&&(B=w.elements.popper.querySelector(B),!B)||Gi(w.elements.popper,B)&&(w.elements.arrow=B))}var Ji={name:"arrow",enabled:!0,phase:"main",fn:ai,effect:_t,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ii(D,w,U){return U===void 0&&(U={x:0,y:0}),{top:D.top-w.height-U.y,right:D.right-w.width+U.x,bottom:D.bottom-w.height+U.y,left:D.left-w.width-U.x}}function va(D){return[Ae,Pe,Le,ke].some(function(w){return D[w]>=0})}function qi(D){var w=D.state,U=D.name,$=w.rects.reference,B=w.rects.popper,G=w.modifiersData.preventOverflow,te=sr(w,{elementContext:"reference"}),re=sr(w,{altBoundary:!0}),se=ii(te,$),le=ii(re,B,G),ue=va(se),Ee=va(le);w.modifiersData[U]={referenceClippingOffsets:se,popperEscapeOffsets:le,isReferenceHidden:ue,hasPopperEscaped:Ee},w.attributes.popper=Object.assign({},w.attributes.popper,{"data-popper-reference-hidden":ue,"data-popper-escaped":Ee})}var es={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:qi},ts=[Cr,ei,ia,la,Hs,Js,Mo,Ji,es],xa=Gr({defaultModifiers:ts}),Hr=t(16160);function Mn(){return Mn=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}var A=/-o$/,R=function(D){var w=D.name,U=D.size,$=D.spin,B=D.className,G=D.rotation,te=P(D,["name","size","spin","className","rotation"]),re=te.style||{};U&&(re.fontSize=U*100+"%"),G&&(re.transform="rotate("+G+"deg)"),te.style=re;var se=(0,j.Fl)(te),le="";if(w.startsWith("tg-"))le=w;else{var ue=A.test(w),Ee=w.replace(A,""),Ie=!Ee.startsWith("fa-");le=ue?"far ":"fas ",Ie&&(le+="fa-"),le+=Ee,$&&(le+=" fa-spin")}return(0,e.jsx)("i",S({className:(0,C.Ly)(["Icon",le,B,(0,j.WP)(te)])},se))},K=function(D){var w=D.className,U=D.children,$=P(D,["className","children"]);return(0,e.jsx)("span",S({className:(0,C.Ly)(["IconStack",w,(0,j.WP)($)])},(0,j.Fl)($),{children:U}))};R.Stack=K;function N(D){if(D==null)return window;if(D.toString()!=="[object Window]"){var w=D.ownerDocument;return w&&w.defaultView||window}return D}function k(D,w){return w!=null&&typeof Symbol!="undefined"&&w[Symbol.hasInstance]?!!w[Symbol.hasInstance](D):D instanceof w}function X(D){var w=N(D).Element;return k(D,w)||k(D,Element)}function F(D){var w=N(D).HTMLElement;return k(D,w)||k(D,HTMLElement)}function J(D){if(typeof ShadowRoot=="undefined")return!1;var w=N(D).ShadowRoot;return k(D,w)||k(D,ShadowRoot)}var H=Math.max,Z=Math.min,Q=Math.round;function V(){var D=navigator.userAgentData;return D!=null&&D.brands&&Array.isArray(D.brands)?D.brands.map(function(w){return w.brand+"/"+w.version}).join(" "):navigator.userAgent}function z(){return!/^((?!chrome|android).)*safari/i.test(V())}function Y(D,w,U){w===void 0&&(w=!1),U===void 0&&(U=!1);var $=D.getBoundingClientRect(),B=1,G=1;w&&F(D)&&(B=D.offsetWidth>0&&Q($.width)/D.offsetWidth||1,G=D.offsetHeight>0&&Q($.height)/D.offsetHeight||1);var te=X(D)?N(D):window,re=te.visualViewport,se=!z()&&U,le=($.left+(se&&re?re.offsetLeft:0))/B,ue=($.top+(se&&re?re.offsetTop:0))/G,Ee=$.width/B,Ie=$.height/G;return{width:Ee,height:Ie,top:ue,right:le+Ee,bottom:ue+Ie,left:le,x:le,y:ue}}function ee(D){var w=N(D),U=w.pageXOffset,$=w.pageYOffset;return{scrollLeft:U,scrollTop:$}}function oe(D){return{scrollLeft:D.scrollLeft,scrollTop:D.scrollTop}}function ne(D){return D===N(D)||!F(D)?ee(D):oe(D)}function ce(D){return D?(D.nodeName||"").toLowerCase():null}function de(D){return((X(D)?D.ownerDocument:D.document)||window.document).documentElement}function ve(D){return Y(de(D)).left+ee(D).scrollLeft}function pe(D){return N(D).getComputedStyle(D)}function me(D){var w=pe(D),U=w.overflow,$=w.overflowX,B=w.overflowY;return/auto|scroll|overlay|hidden/.test(U+B+$)}function be(D){var w=D.getBoundingClientRect(),U=Q(w.width)/D.offsetWidth||1,$=Q(w.height)/D.offsetHeight||1;return U!==1||$!==1}function we(D,w,U){U===void 0&&(U=!1);var $=F(w),B=F(w)&&be(w),G=de(w),te=Y(D,B,U),re={scrollLeft:0,scrollTop:0},se={x:0,y:0};return($||!$&&!U)&&((ce(w)!=="body"||me(G))&&(re=ne(w)),F(w)?(se=Y(w,!0),se.x+=w.clientLeft,se.y+=w.clientTop):G&&(se.x=ve(G))),{x:te.left+re.scrollLeft-se.x,y:te.top+re.scrollTop-se.y,width:te.width,height:te.height}}function Je(D){var w=Y(D),U=D.offsetWidth,$=D.offsetHeight;return Math.abs(w.width-U)<=1&&(U=w.width),Math.abs(w.height-$)<=1&&($=w.height),{x:D.offsetLeft,y:D.offsetTop,width:U,height:$}}function ze(D){return ce(D)==="html"?D:D.assignedSlot||D.parentNode||(J(D)?D.host:null)||de(D)}function Ke(D){return["html","body","#document"].indexOf(ce(D))>=0?D.ownerDocument.body:F(D)&&me(D)?D:Ke(ze(D))}function Be(D,w){var U;w===void 0&&(w=[]);var $=Ke(D),B=$===((U=D.ownerDocument)==null?void 0:U.body),G=N($),te=B?[G].concat(G.visualViewport||[],me($)?$:[]):$,re=w.concat(te);return B?re:re.concat(Be(ze(te)))}function ct(D){return["table","td","th"].indexOf(ce(D))>=0}function xt(D){return!F(D)||pe(D).position==="fixed"?null:D.offsetParent}function st(D){var w=/firefox/i.test(V()),U=/Trident/i.test(V());if(U&&F(D)){var $=pe(D);if($.position==="fixed")return null}var B=ze(D);for(J(B)&&(B=B.host);F(B)&&["html","body"].indexOf(ce(B))<0;){var G=pe(B);if(G.transform!=="none"||G.perspective!=="none"||G.contain==="paint"||["transform","perspective"].indexOf(G.willChange)!==-1||w&&G.willChange==="filter"||w&&G.filter&&G.filter!=="none")return B;B=B.parentNode}return null}function ot(D){for(var w=N(D),U=xt(D);U&&ct(U)&&pe(U).position==="static";)U=xt(U);return U&&(ce(U)==="html"||ce(U)==="body"&&pe(U).position==="static")?w:U||st(D)||w}var Ae="top",Le="bottom",Pe="right",ke="left",Me="auto",Fe=[Ae,Le,Pe,ke],We="start",He="end",jt="clippingParents",Mt="viewport",bt="popper",Dt="reference",lt=Fe.reduce(function(D,w){return D.concat([w+"-"+We,w+"-"+He])},[]),Ge=[].concat(Fe,[Me]).reduce(function(D,w){return D.concat([w,w+"-"+We,w+"-"+He])},[]),je="beforeRead",Ze="read",mt="afterRead",Pt="beforeMain",zt="main",en="afterMain",Wt="beforeWrite",dn="write",Bn="afterWrite",Gn=[je,Ze,mt,Pt,zt,en,Wt,dn,Bn];function Hn(D){var w=new Map,U=new Set,$=[];D.forEach(function(G){w.set(G.name,G)});function B(G){U.add(G.name);var te=[].concat(G.requires||[],G.requiresIfExists||[]);te.forEach(function(re){if(!U.has(re)){var se=w.get(re);se&&B(se)}}),$.push(G)}return D.forEach(function(G){U.has(G.name)||B(G)}),$}function Eo(D){var w=Hn(D);return Gn.reduce(function(U,$){return U.concat(w.filter(function(B){return B.phase===$}))},[])}function bo(D){var w;return function(){return w||(w=new Promise(function(U){Promise.resolve().then(function(){w=void 0,U(D())})})),w}}function Oo(D){var w=D.reduce(function(U,$){var B=U[$.name];return U[$.name]=B?Object.assign({},B,$,{options:Object.assign({},B.options,$.options),data:Object.assign({},B.data,$.data)}):$,U},{});return Object.keys(w).map(function(U){return w[U]})}var Vr={placement:"bottom",modifiers:[],strategy:"absolute"};function Xr(){for(var D=arguments.length,w=new Array(D),U=0;U=0?"x":"y"}function Er(D){var w=D.reference,U=D.element,$=D.placement,B=$?xn($):null,G=$?pn($):null,te=w.x+w.width/2-U.width/2,re=w.y+w.height/2-U.height/2,se;switch(B){case Ae:se={x:te,y:w.y-U.height};break;case Le:se={x:te,y:w.y+w.height};break;case Pe:se={x:w.x+w.width,y:re};break;case ke:se={x:w.x-U.width,y:re};break;default:se={x:w.x,y:w.y}}var le=B?ir(B):null;if(le!=null){var ue=le==="y"?"height":"width";switch(G){case We:se[le]=se[le]-(w[ue]/2-U[ue]/2);break;case He:se[le]=se[le]+(w[ue]/2-U[ue]/2);break;default:}}return se}function _o(D){var w=D.state,U=D.name;w.modifiersData[U]=Er({reference:w.rects.reference,element:w.rects.popper,strategy:"absolute",placement:w.placement})}var ei={name:"popperOffsets",enabled:!0,phase:"read",fn:_o,data:{}},ti={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ni(D,w){var U=D.x,$=D.y,B=w.devicePixelRatio||1;return{x:Q(U*B)/B||0,y:Q($*B)/B||0}}function Kn(D){var w,U=D.popper,$=D.popperRect,B=D.placement,G=D.variation,te=D.offsets,re=D.position,se=D.gpuAcceleration,le=D.adaptive,ue=D.roundOffsets,Ee=D.isFixed,Ie=te.x,Ce=Ie===void 0?0:Ie,_e=te.y,Re=_e===void 0?0:_e,Ue=typeof ue=="function"?ue({x:Ce,y:Re}):{x:Ce,y:Re};Ce=Ue.x,Re=Ue.y;var Ne=te.hasOwnProperty("x"),Ve=te.hasOwnProperty("y"),nt=ke,Xe=Ae,et=window;if(le){var at=ot(U),dt="clientHeight",ut="clientWidth";if(at===N(U)&&(at=de(U),pe(at).position!=="static"&&re==="absolute"&&(dt="scrollHeight",ut="scrollWidth")),at=at,B===Ae||(B===ke||B===Pe)&&G===He){Xe=Le;var pt=Ee&&at===et&&et.visualViewport?et.visualViewport.height:at[dt];Re-=pt-$.height,Re*=se?1:-1}if(B===ke||(B===Ae||B===Le)&&G===He){nt=Pe;var Ct=Ee&&at===et&&et.visualViewport?et.visualViewport.width:at[ut];Ce-=Ct-$.width,Ce*=se?1:-1}}var vt=Object.assign({position:re},le&&ti),it=ue===!0?ni({x:Ce,y:Re},N(U)):{x:Ce,y:Re};if(Ce=it.x,Re=it.y,se){var St;return Object.assign({},vt,(St={},St[Xe]=Ve?"0":"",St[nt]=Ne?"0":"",St.transform=(et.devicePixelRatio||1)<=1?"translate("+Ce+"px, "+Re+"px)":"translate3d("+Ce+"px, "+Re+"px, 0)",St))}return Object.assign({},vt,(w={},w[Xe]=Ve?Re+"px":"",w[nt]=Ne?Ce+"px":"",w.transform="",w))}function aa(D){var w=D.state,U=D.options,$=U.gpuAcceleration,B=$===void 0?!0:$,G=U.adaptive,te=G===void 0?!0:G,re=U.roundOffsets,se=re===void 0?!0:re,le={placement:xn(w.placement),variation:pn(w.placement),popper:w.elements.popper,popperRect:w.rects.popper,gpuAcceleration:B,isFixed:w.options.strategy==="fixed"};w.modifiersData.popperOffsets!=null&&(w.styles.popper=Object.assign({},w.styles.popper,Kn(Object.assign({},le,{offsets:w.modifiersData.popperOffsets,position:w.options.strategy,adaptive:te,roundOffsets:se})))),w.modifiersData.arrow!=null&&(w.styles.arrow=Object.assign({},w.styles.arrow,Kn(Object.assign({},le,{offsets:w.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:se})))),w.attributes.popper=Object.assign({},w.attributes.popper,{"data-popper-placement":w.placement})}var ia={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:aa,data:{}};function ri(D){var w=D.state;Object.keys(w.elements).forEach(function(U){var $=w.styles[U]||{},B=w.attributes[U]||{},G=w.elements[U];!F(G)||!ce(G)||(Object.assign(G.style,$),Object.keys(B).forEach(function(te){var re=B[te];re===!1?G.removeAttribute(te):G.setAttribute(te,re===!0?"":re)}))})}function sa(D){var w=D.state,U={popper:{position:w.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(w.elements.popper.style,U.popper),w.styles=U,w.elements.arrow&&Object.assign(w.elements.arrow.style,U.arrow),function(){Object.keys(w.elements).forEach(function($){var B=w.elements[$],G=w.attributes[$]||{},te=Object.keys(w.styles.hasOwnProperty($)?w.styles[$]:U[$]),re=te.reduce(function(se,le){return se[le]="",se},{});!F(B)||!ce(B)||(Object.assign(B.style,re),Object.keys(G).forEach(function(se){B.removeAttribute(se)}))})}}var la={name:"applyStyles",enabled:!0,phase:"write",fn:ri,effect:sa,requires:["computeStyles"]};function ae(D,w,U){var $=xn(D),B=[ke,Ae].indexOf($)>=0?-1:1,G=typeof U=="function"?U(Object.assign({},w,{placement:D})):U,te=G[0],re=G[1];return te=te||0,re=(re||0)*B,[ke,Pe].indexOf($)>=0?{x:re,y:te}:{x:te,y:re}}function Se(D){var w=D.state,U=D.options,$=D.name,B=U.offset,G=B===void 0?[0,0]:B,te=Ge.reduce(function(ue,Ee){return ue[Ee]=ae(Ee,w.rects,G),ue},{}),re=te[w.placement],se=re.x,le=re.y;w.modifiersData.popperOffsets!=null&&(w.modifiersData.popperOffsets.x+=se,w.modifiersData.popperOffsets.y+=le),w.modifiersData[$]=te}var Hs={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Se},Ys={left:"right",right:"left",bottom:"top",top:"bottom"};function wt(D){return D.replace(/left|right|bottom|top/g,function(w){return Ys[w]})}var Zs={start:"end",end:"start"};function ca(D){return D.replace(/start|end/g,function(w){return Zs[w]})}function Xi(D,w){var U=N(D),$=de(D),B=U.visualViewport,G=$.clientWidth,te=$.clientHeight,re=0,se=0;if(B){G=B.width,te=B.height;var le=z();(le||!le&&w==="fixed")&&(re=B.offsetLeft,se=B.offsetTop)}return{width:G,height:te,x:re+ve(D),y:se}}function ua(D){var w,U=de(D),$=ee(D),B=(w=D.ownerDocument)==null?void 0:w.body,G=H(U.scrollWidth,U.clientWidth,B?B.scrollWidth:0,B?B.clientWidth:0),te=H(U.scrollHeight,U.clientHeight,B?B.scrollHeight:0,B?B.clientHeight:0),re=-$.scrollLeft+ve(D),se=-$.scrollTop;return pe(B||U).direction==="rtl"&&(re+=H(U.clientWidth,B?B.clientWidth:0)-G),{width:G,height:te,x:re,y:se}}function Gi(D,w){var U=w.getRootNode&&w.getRootNode();if(D.contains(w))return!0;if(U&&J(U)){var $=w;do{if($&&D.isSameNode($))return!0;$=$.parentNode||$.host}while($)}return!1}function da(D){return Object.assign({},D,{left:D.x,top:D.y,right:D.x+D.width,bottom:D.y+D.height})}function fa(D,w){var U=Y(D,!1,w==="fixed");return U.top=U.top+D.clientTop,U.left=U.left+D.clientLeft,U.bottom=U.top+D.clientHeight,U.right=U.left+D.clientWidth,U.width=D.clientWidth,U.height=D.clientHeight,U.x=U.left,U.y=U.top,U}function _n(D,w,U){return w===Mt?da(Xi(D,U)):X(w)?fa(w,U):da(ua(de(D)))}function Qs(D){var w=Be(ze(D)),U=["absolute","fixed"].indexOf(pe(D).position)>=0,$=U&&F(D)?ot(D):D;return X($)?w.filter(function(B){return X(B)&&Gi(B,$)&&ce(B)!=="body"}):[]}function Pn(D,w,U,$){var B=w==="clippingParents"?Qs(D):[].concat(w),G=[].concat(B,[U]),te=G[0],re=G.reduce(function(se,le){var ue=_n(D,le,$);return se.top=H(ue.top,se.top),se.right=Z(ue.right,se.right),se.bottom=Z(ue.bottom,se.bottom),se.left=H(ue.left,se.left),se},_n(D,te,$));return re.width=re.right-re.left,re.height=re.bottom-re.top,re.x=re.left,re.y=re.top,re}function Hi(){return{top:0,right:0,bottom:0,left:0}}function Yi(D){return Object.assign({},Hi(),D)}function Zi(D,w){return w.reduce(function(U,$){return U[$]=D,U},{})}function sr(D,w){w===void 0&&(w={});var U=w,$=U.placement,B=$===void 0?D.placement:$,G=U.strategy,te=G===void 0?D.strategy:G,re=U.boundary,se=re===void 0?jt:re,le=U.rootBoundary,ue=le===void 0?Mt:le,Ee=U.elementContext,Ie=Ee===void 0?bt:Ee,Ce=U.altBoundary,_e=Ce===void 0?!1:Ce,Re=U.padding,Ue=Re===void 0?0:Re,Ne=Yi(typeof Ue!="number"?Ue:Zi(Ue,Fe)),Ve=Ie===bt?Dt:bt,nt=D.rects.popper,Xe=D.elements[_e?Ve:Ie],et=Pn(X(Xe)?Xe:Xe.contextElement||de(D.elements.popper),se,ue,te),at=Y(D.elements.reference),dt=Er({reference:at,element:nt,strategy:"absolute",placement:B}),ut=da(Object.assign({},nt,dt)),pt=Ie===bt?ut:at,Ct={top:et.top-pt.top+Ne.top,bottom:pt.bottom-et.bottom+Ne.bottom,left:et.left-pt.left+Ne.left,right:pt.right-et.right+Ne.right},vt=D.modifiersData.offset;if(Ie===bt&&vt){var it=vt[B];Object.keys(Ct).forEach(function(St){var Nt=[Pe,Le].indexOf(St)>=0?1:-1,kt=[Ae,Le].indexOf(St)>=0?"y":"x";Ct[St]+=it[kt]*Nt})}return Ct}function ha(D,w){w===void 0&&(w={});var U=w,$=U.placement,B=U.boundary,G=U.rootBoundary,te=U.padding,re=U.flipVariations,se=U.allowedAutoPlacements,le=se===void 0?Ge:se,ue=pn($),Ee=ue?re?lt:lt.filter(function(_e){return pn(_e)===ue}):Fe,Ie=Ee.filter(function(_e){return le.indexOf(_e)>=0});Ie.length===0&&(Ie=Ee);var Ce=Ie.reduce(function(_e,Re){return _e[Re]=sr(D,{placement:Re,boundary:B,rootBoundary:G,padding:te})[xn(Re)],_e},{});return Object.keys(Ce).sort(function(_e,Re){return Ce[_e]-Ce[Re]})}function Po(D){if(xn(D)===Me)return[];var w=wt(D);return[ca(D),w,ca(w)]}function ma(D){var w=D.state,U=D.options,$=D.name;if(!w.modifiersData[$]._skip){for(var B=U.mainAxis,G=B===void 0?!0:B,te=U.altAxis,re=te===void 0?!0:te,se=U.fallbackPlacements,le=U.padding,ue=U.boundary,Ee=U.rootBoundary,Ie=U.altBoundary,Ce=U.flipVariations,_e=Ce===void 0?!0:Ce,Re=U.allowedAutoPlacements,Ue=w.options.placement,Ne=xn(Ue),Ve=Ne===Ue,nt=se||(Ve||!_e?[wt(Ue)]:Po(Ue)),Xe=[Ue].concat(nt).reduce(function(Nr,tr){return Nr.concat(xn(tr)===Me?ha(w,{placement:tr,boundary:ue,rootBoundary:Ee,padding:le,flipVariations:_e,allowedAutoPlacements:Re}):tr)},[]),et=w.rects.reference,at=w.rects.popper,dt=new Map,ut=!0,pt=Xe[0],Ct=0;Ct=0,kt=Nt?"width":"height",Lt=sr(w,{placement:vt,boundary:ue,rootBoundary:Ee,altBoundary:Ie,padding:le}),Gt=Nt?St?Pe:ke:St?Le:Ae;et[kt]>at[kt]&&(Gt=wt(Gt));var Lr=wt(Gt),zn=[];if(G&&zn.push(Lt[it]<=0),re&&zn.push(Lt[Gt]<=0,Lt[Lr]<=0),zn.every(function(Nr){return Nr})){pt=vt,ut=!1;break}dt.set(vt,zn)}if(ut)for(var Ho=_e?3:1,Yo=function(tr){var Wn=Xe.find(function(Zo){var Rn=dt.get(Zo);if(Rn)return Rn.slice(0,tr).every(function(Cn){return Cn})});if(Wn)return pt=Wn,"break"},er=Ho;er>0;er--){var kr=Yo(er);if(kr==="break")break}w.placement!==pt&&(w.modifiersData[$]._skip=!0,w.placement=pt,w.reset=!0)}}var Js={name:"flip",enabled:!0,phase:"main",fn:ma,requiresIfExists:["offset"],data:{_skip:!1}};function qs(D){return D==="x"?"y":"x"}function br(D,w,U){return H(D,Z(w,U))}function Qi(D,w,U){var $=br(D,w,U);return $>U?U:$}function oi(D){var w=D.state,U=D.options,$=D.name,B=U.mainAxis,G=B===void 0?!0:B,te=U.altAxis,re=te===void 0?!1:te,se=U.boundary,le=U.rootBoundary,ue=U.altBoundary,Ee=U.padding,Ie=U.tether,Ce=Ie===void 0?!0:Ie,_e=U.tetherOffset,Re=_e===void 0?0:_e,Ue=sr(w,{boundary:se,rootBoundary:le,padding:Ee,altBoundary:ue}),Ne=xn(w.placement),Ve=pn(w.placement),nt=!Ve,Xe=ir(Ne),et=qs(Xe),at=w.modifiersData.popperOffsets,dt=w.rects.reference,ut=w.rects.popper,pt=typeof Re=="function"?Re(Object.assign({},w.rects,{placement:w.placement})):Re,Ct=typeof pt=="number"?{mainAxis:pt,altAxis:pt}:Object.assign({mainAxis:0,altAxis:0},pt),vt=w.modifiersData.offset?w.modifiersData.offset[w.placement]:null,it={x:0,y:0};if(at){if(G){var St,Nt=Xe==="y"?Ae:ke,kt=Xe==="y"?Le:Pe,Lt=Xe==="y"?"height":"width",Gt=at[Xe],Lr=Gt+Ue[Nt],zn=Gt-Ue[kt],Ho=Ce?-ut[Lt]/2:0,Yo=Ve===We?dt[Lt]:ut[Lt],er=Ve===We?-ut[Lt]:-dt[Lt],kr=w.elements.arrow,Nr=Ce&&kr?Je(kr):{width:0,height:0},tr=w.modifiersData["arrow#persistent"]?w.modifiersData["arrow#persistent"].padding:Hi(),Wn=tr[Nt],Zo=tr[kt],Rn=br(0,dt[Lt],Nr[Lt]),Cn=nt?dt[Lt]/2-Ho-Rn-Wn-Ct.mainAxis:Yo-Rn-Wn-Ct.mainAxis,Qo=nt?-dt[Lt]/2+Ho+Rn+Zo+Ct.mainAxis:er+Rn+Zo+Ct.mainAxis,Ur=w.elements.arrow&&ot(w.elements.arrow),$r=Ur?Xe==="y"?Ur.clientTop||0:Ur.clientLeft||0:0,Va=(St=vt==null?void 0:vt[Xe])!=null?St:0,ho=Gt+Cn-Va-$r,Os=Gt+Qo-Va,Xa=br(Ce?Z(Lr,ho):Lr,Gt,Ce?H(zn,Os):zn);at[Xe]=Xa,it[Xe]=Xa-Gt}if(re){var Bt,Ga=Xe==="x"?Ae:ke,Ki=Xe==="x"?Le:Pe,nr=at[et],zr=et==="y"?"height":"width",Ha=nr+Ue[Ga],gr=nr-Ue[Ki],Rt=[Ae,ke].indexOf(Ne)!==-1,Ut=(Bt=vt==null?void 0:vt[et])!=null?Bt:0,Ft=Rt?Ha:nr-dt[zr]-ut[zr]-Ut+Ct.altAxis,Jo=Rt?nr+dt[zr]+ut[zr]-Ut-Ct.altAxis:gr,mo=Ce&&Rt?Qi(Ft,nr,Jo):br(Ce?Ft:Ha,nr,Ce?Jo:gr);at[et]=mo,it[et]=mo-nr}w.modifiersData[$]=it}}var Mo={name:"preventOverflow",enabled:!0,phase:"main",fn:oi,requiresIfExists:["offset"]},el=function(w,U){return w=typeof w=="function"?w(Object.assign({},U.rects,{placement:U.placement})):w,Yi(typeof w!="number"?w:Zi(w,Fe))};function ai(D){var w,U=D.state,$=D.name,B=D.options,G=U.elements.arrow,te=U.modifiersData.popperOffsets,re=xn(U.placement),se=ir(re),le=[ke,Pe].indexOf(re)>=0,ue=le?"height":"width";if(!(!G||!te)){var Ee=el(B.padding,U),Ie=Je(G),Ce=se==="y"?Ae:ke,_e=se==="y"?Le:Pe,Re=U.rects.reference[ue]+U.rects.reference[se]-te[se]-U.rects.popper[ue],Ue=te[se]-U.rects.reference[se],Ne=ot(G),Ve=Ne?se==="y"?Ne.clientHeight||0:Ne.clientWidth||0:0,nt=Re/2-Ue/2,Xe=Ee[Ce],et=Ve-Ie[ue]-Ee[_e],at=Ve/2-Ie[ue]/2+nt,dt=br(Xe,at,et),ut=se;U.modifiersData[$]=(w={},w[ut]=dt,w.centerOffset=dt-at,w)}}function _t(D){var w=D.state,U=D.options,$=U.element,B=$===void 0?"[data-popper-arrow]":$;B!=null&&(typeof B=="string"&&(B=w.elements.popper.querySelector(B),!B)||Gi(w.elements.popper,B)&&(w.elements.arrow=B))}var Ji={name:"arrow",enabled:!0,phase:"main",fn:ai,effect:_t,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ii(D,w,U){return U===void 0&&(U={x:0,y:0}),{top:D.top-w.height-U.y,right:D.right-w.width+U.x,bottom:D.bottom-w.height+U.y,left:D.left-w.width-U.x}}function va(D){return[Ae,Pe,Le,ke].some(function(w){return D[w]>=0})}function qi(D){var w=D.state,U=D.name,$=w.rects.reference,B=w.rects.popper,G=w.modifiersData.preventOverflow,te=sr(w,{elementContext:"reference"}),re=sr(w,{altBoundary:!0}),se=ii(te,$),le=ii(re,B,G),ue=va(se),Ee=va(le);w.modifiersData[U]={referenceClippingOffsets:se,popperEscapeOffsets:le,isReferenceHidden:ue,hasPopperEscaped:Ee},w.attributes.popper=Object.assign({},w.attributes.popper,{"data-popper-reference-hidden":ue,"data-popper-escaped":Ee})}var es={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:qi},ts=[Cr,ei,ia,la,Hs,Js,Mo,Ji,es],xa=Gr({defaultModifiers:ts}),Hr=t(16160);function Mn(){return Mn=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}function Zr(D,w){return Zr=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Zr(D,w)}function ci(D,w){var U,$,B,G,te={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]};return G={next:re(0),throw:re(1),return:re(2)},typeof Symbol=="function"&&(G[Symbol.iterator]=function(){return this}),G;function re(le){return function(ue){return se([le,ue])}}function se(le){if(U)throw new TypeError("Generator is already executing.");for(;te;)try{if(U=1,$&&(B=le[0]&2?$.return:le[0]?$.throw||((B=$.return)&&B.call($),0):$.next)&&!(B=B.call($,le[1])).done)return B;switch($=0,B&&(le=[le[0]&2,B.value]),le[0]){case 0:case 1:B=le;break;case 4:return te.label++,{value:le[1],done:!1};case 5:te.label++,$=le[1],le=[0];continue;case 7:le=te.ops.pop(),te.trys.pop();continue;default:if(B=te.trys,!(B=B.length>0&&B[B.length-1])&&(le[0]===6||le[0]===2)){te=0;continue}if(le[0]===3&&(!B||le[1]>B[0]&&le[1]=0)&&(U[B]=D[B]);return U}function Qr(D,w){return Qr=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Qr(D,w)}function ci(D,w){var U,$,B,G,te={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]};return G={next:re(0),throw:re(1),return:re(2)},typeof Symbol=="function"&&(G[Symbol.iterator]=function(){return this}),G;function re(le){return function(ue){return se([le,ue])}}function se(le){if(U)throw new TypeError("Generator is already executing.");for(;te;)try{if(U=1,$&&(B=le[0]&2?$.return:le[0]?$.throw||((B=$.return)&&B.call($),0):$.next)&&!(B=B.call($,le[1])).done)return B;switch($=0,B&&(le=[le[0]&2,B.value]),le[0]){case 0:case 1:B=le;break;case 4:return te.label++,{value:le[1],done:!1};case 5:te.label++,$=le[1],le=[0];continue;case 7:le=te.ops.pop(),te.trys.pop();continue;default:if(B=te.trys,!(B=B.length>0&&B[B.length-1])&&(le[0]===6||le[0]===2)){te=0;continue}if(le[0]===3&&(!B||le[1]>B[0]&&le[1]=0)&&(U[B]=D[B]);return U}function Ao(D,w){return Ao=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Ao(D,w)}var cr=(0,Or.h)("ByondUi"),ur=[],ga=function(D){var w=ur.length;ur.push(null);var U=D||"byondui_"+w;return cr.log("allocated '"+U+"'"),{render:function($){cr.log("rendering '"+U+"'"),ur[w]=U,Byond.winset(U,$)},unmount:function(){cr.log("unmounting '"+U+"'"),ur[w]=null,Byond.winset(U,{parent:""})}}};window.addEventListener("beforeunload",function(){for(var D=0;D=0)&&(U[B]=D[B]);return U}function Ao(D,w){return Ao=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Ao(D,w)}var cr=(0,Or.h)("ByondUi"),ur=[],ga=function(D){var w=ur.length;ur.push(null);var U=D||"byondui_"+w;return cr.log("allocated '"+U+"'"),{render:function($){cr.log("rendering '"+U+"'"),ur[w]=U,Byond.winset(U,$)},unmount:function(){cr.log("unmounting '"+U+"'"),ur[w]=null,Byond.winset(U,{parent:""})}}};window.addEventListener("beforeunload",function(){for(var D=0;D=0)&&(U[B]=D[B]);return U}function wo(D,w){return wo=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},wo(D,w)}var ya=void 0,Bo=function(D,w,U,$){if(D.length===0)return[];var B=(0,Qt.OY)(Math.min).apply(ya,[].concat(D)),G=(0,Qt.OY)(Math.max).apply(ya,[].concat(D));U!==void 0&&(B[0]=U[0],G[0]=U[1]),$!==void 0&&(B[1]=$[0],G[1]=$[1]);var te=(0,Qt.Tj)(function(re){return(0,Qt.OY)(function(se,le,ue,Ee){return(se-le)/(ue-le)*Ee})(re,B,G,w)})(D);return te},Ca=function(D){for(var w="",U=0;U0){var Ve=Ne[0],nt=Ne[Ne.length-1];Ne.push([Ue[0]+_e,nt[1]]),Ne.push([Ue[0]+_e,-_e]),Ne.push([-_e,-_e]),Ne.push([-_e,Ve[1]])}var Xe=Ca(Ne),et=Ir({},Re,{className:"",ref:this.ref});return(0,e.jsx)(j.az,Ir({position:"relative"},Re,{children:(0,e.jsx)(j.az,Ir({},et,{children:(0,e.jsx)("svg",{viewBox:"0 0 "+Ue[0]+" "+Ue[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"},children:(0,e.jsx)("polyline",{transform:"scale(1, -1) translate(0, -"+Ue[1]+")",fill:ue,stroke:Ie,strokeWidth:_e,points:Xe})})}))}))},w}(n.Component),rl={Line:is};/** + */function eo(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function Ir(){return Ir=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}function wo(D,w){return wo=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},wo(D,w)}var ya=void 0,Bo=function(D,w,U,$){if(D.length===0)return[];var B=(0,Zt.OY)(Math.min).apply(ya,[].concat(D)),G=(0,Zt.OY)(Math.max).apply(ya,[].concat(D));U!==void 0&&(B[0]=U[0],G[0]=U[1]),$!==void 0&&(B[1]=$[0],G[1]=$[1]);var te=(0,Zt.Tj)(function(re){return(0,Zt.OY)(function(se,le,ue,Ee){return(se-le)/(ue-le)*Ee})(re,B,G,w)})(D);return te},Ca=function(D){for(var w="",U=0;U0){var Ve=Ne[0],nt=Ne[Ne.length-1];Ne.push([Ue[0]+_e,nt[1]]),Ne.push([Ue[0]+_e,-_e]),Ne.push([-_e,-_e]),Ne.push([-_e,Ve[1]])}var Xe=Ca(Ne),et=Ir({},Re,{className:"",ref:this.ref});return(0,e.jsx)(j.az,Ir({position:"relative"},Re,{children:(0,e.jsx)(j.az,Ir({},et,{children:(0,e.jsx)("svg",{viewBox:"0 0 "+Ue[0]+" "+Ue[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"},children:(0,e.jsx)("polyline",{transform:"scale(1, -1) translate(0, -"+Ue[1]+")",fill:ue,stroke:Ie,strokeWidth:_e,points:Xe})})}))}))},w}(n.Component),rl={Line:is};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -163,7 +163,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Ko(){return Ko=Object.assign||function(D){for(var w=1;w0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){B.setState({suppressingFlicker:!1})},G))},B.handleDragStart=function(G){var te=B.props,re=te.value,se=te.dragMatrix,le=B.state.editing;le||(document.body.style["pointer-events"]="none",B.ref=G.target,B.setState({dragging:!1,origin:ba(G,se),value:re,internalValue:re}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var ue=B.state,Ee=ue.dragging,Ie=ue.value,Ce=B.props.onDrag;Ee&&Ce&&Ce(G,Ie)},B.props.updateRate||ul),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(G){var te=B.props,re=te.minValue,se=te.maxValue,le=te.step,ue=te.stepPixelSize,Ee=te.dragMatrix;B.setState(function(Ie){var Ce=Ko({},Ie),_e=ba(G,Ee)-Ce.origin;if(Ie.dragging){var Re=Number.isFinite(re)?re%le:0;Ce.internalValue=(0,i.qE)(Ce.internalValue+_e*le/ue,re-le,se+le),Ce.value=(0,i.qE)(Ce.internalValue-Ce.internalValue%le+Re,re,se),Ce.origin=ba(G,Ee)}else Math.abs(_e)>4&&(Ce.dragging=!0);return Ce})},B.handleDragEnd=function(G){var te=B.props,re=te.onChange,se=te.onDrag,le=B.state,ue=le.dragging,Ee=le.value,Ie=le.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!ue,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),ue)B.suppressFlicker(),re&&re(G,Ee),se&&se(G,Ee);else if(B.inputRef){var Ce=B.inputRef.current;Ce.value=Ie;try{Ce.focus(),Ce.select()}catch(_e){}}},B}var U=w.prototype;return U.render=function(){var B=this,G=this.state,te=G.dragging,re=G.editing,se=G.value,le=G.suppressingFlicker,ue=this.props,Ee=ue.animated,Ie=ue.value,Ce=ue.unit,_e=ue.minValue,Re=ue.maxValue,Ue=ue.unclamped,Ne=ue.format,Ve=ue.onChange,nt=ue.onDrag,Xe=ue.children,et=ue.height,at=ue.lineHeight,dt=ue.fontSize,ut=Ie;(te||le)&&(ut=se);var pt=(0,e.jsxs)(e.Fragment,{children:[Ee&&!te&&!le?(0,e.jsx)(h,{value:ut,format:Ne}):Ne?Ne(ut):ut,Ce?" "+Ce:""]}),Ct=(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:re?void 0:"none",height:et,lineHeight:at,fontsize:dt},onBlur:function(vt){if(re){var it;if(Ue?it=parseFloat(vt.target.value):it=(0,i.qE)(parseFloat(vt.target.value),_e,Re),Number.isNaN(it)){B.setState({editing:!1});return}B.setState({editing:!1,value:it}),B.suppressFlicker(),Ve&&Ve(vt,it),nt&&nt(vt,it)}},onKeyDown:function(vt){if(vt.keyCode===13){var it;if(Ue?it=parseFloat(vt.target.value):it=(0,i.qE)(parseFloat(vt.target.value),_e,Re),Number.isNaN(it)){B.setState({editing:!1});return}B.setState({editing:!1,value:it}),B.suppressFlicker(),Ve&&Ve(vt,it),nt&&nt(vt,it);return}if(vt.keyCode===27){B.setState({editing:!1});return}}});return Xe({dragging:te,editing:re,value:Ie,displayValue:ut,displayElement:pt,inputElement:Ct,handleDragStart:this.handleDragStart})},w}(n.Component);Oa.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]};var dl=t(68540),fl=t.n(dl),gc=function(w){return Array.isArray(w)?w[0]:w},hl=function(w){if(typeof w=="function"){for(var U=arguments.length,$=new Array(U>1?U-1:0),B=1;B0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){B.setState({suppressingFlicker:!1})},G))},B.handleDragStart=function(G){var te=B.props,re=te.value,se=te.dragMatrix,le=B.state.editing;le||(document.body.style["pointer-events"]="none",B.ref=G.target,B.setState({dragging:!1,origin:ba(G,se),value:re,internalValue:re}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var ue=B.state,Ee=ue.dragging,Ie=ue.value,Ce=B.props.onDrag;Ee&&Ce&&Ce(G,Ie)},B.props.updateRate||ul),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(G){var te=B.props,re=te.minValue,se=te.maxValue,le=te.step,ue=te.stepPixelSize,Ee=te.dragMatrix;B.setState(function(Ie){var Ce=Ko({},Ie),_e=ba(G,Ee)-Ce.origin;if(Ie.dragging){var Re=Number.isFinite(re)?re%le:0;Ce.internalValue=(0,s.qE)(Ce.internalValue+_e*le/ue,re-le,se+le),Ce.value=(0,s.qE)(Ce.internalValue-Ce.internalValue%le+Re,re,se),Ce.origin=ba(G,Ee)}else Math.abs(_e)>4&&(Ce.dragging=!0);return Ce})},B.handleDragEnd=function(G){var te=B.props,re=te.onChange,se=te.onDrag,le=B.state,ue=le.dragging,Ee=le.value,Ie=le.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!ue,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),ue)B.suppressFlicker(),re&&re(G,Ee),se&&se(G,Ee);else if(B.inputRef){var Ce=B.inputRef.current;Ce.value=Ie;try{Ce.focus(),Ce.select()}catch(_e){}}},B}var U=w.prototype;return U.render=function(){var B=this,G=this.state,te=G.dragging,re=G.editing,se=G.value,le=G.suppressingFlicker,ue=this.props,Ee=ue.animated,Ie=ue.value,Ce=ue.unit,_e=ue.minValue,Re=ue.maxValue,Ue=ue.unclamped,Ne=ue.format,Ve=ue.onChange,nt=ue.onDrag,Xe=ue.children,et=ue.height,at=ue.lineHeight,dt=ue.fontSize,ut=Ie;(te||le)&&(ut=se);var pt=(0,e.jsxs)(e.Fragment,{children:[Ee&&!te&&!le?(0,e.jsx)(h,{value:ut,format:Ne}):Ne?Ne(ut):ut,Ce?" "+Ce:""]}),Ct=(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:re?void 0:"none",height:et,lineHeight:at,fontsize:dt},onBlur:function(vt){if(re){var it;if(Ue?it=parseFloat(vt.target.value):it=(0,s.qE)(parseFloat(vt.target.value),_e,Re),Number.isNaN(it)){B.setState({editing:!1});return}B.setState({editing:!1,value:it}),B.suppressFlicker(),Ve&&Ve(vt,it),nt&&nt(vt,it)}},onKeyDown:function(vt){if(vt.keyCode===13){var it;if(Ue?it=parseFloat(vt.target.value):it=(0,s.qE)(parseFloat(vt.target.value),_e,Re),Number.isNaN(it)){B.setState({editing:!1});return}B.setState({editing:!1,value:it}),B.suppressFlicker(),Ve&&Ve(vt,it),nt&&nt(vt,it);return}if(vt.keyCode===27){B.setState({editing:!1});return}}});return Xe({dragging:te,editing:re,value:Ie,displayValue:ut,displayElement:pt,inputElement:Ct,handleDragStart:this.handleDragStart})},w}(n.Component);Oa.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]};var dl=t(68540),fl=t.n(dl),gc=function(w){return Array.isArray(w)?w[0]:w},hl=function(w){if(typeof w=="function"){for(var U=arguments.length,$=new Array(U>1?U-1:0),B=1;B=0)&&(U[B]=D[B]);return U}var hs=function(D){var w=D.className,U=D.value,$=D.minValue,B=$===void 0?0:$,G=D.maxValue,te=G===void 0?1:G,re=D.color,se=D.ranges,le=se===void 0?{}:se,ue=D.children,Ee=No(D,["className","value","minValue","maxValue","color","ranges","children"]),Ie=(0,i.hs)(U,B,te),Ce=ue!==void 0,_e=re||(0,i.TG)(U,le)||"default",Re=(0,j.Fl)(Ee),Ue=["ProgressBar",w,(0,j.WP)(Ee)],Ne={width:(0,i.J$)(Ie)*100+"%"};return jl.NE.includes(_e)||_e==="default"?Ue.push("ProgressBar--color--"+_e):(Re.style=sn({},Re.style,{borderColor:_e}),Ne.backgroundColor=_e),(0,e.jsxs)("div",sn({className:(0,C.Ly)(Ue)},Re,{children:[(0,e.jsx)("div",{className:"ProgressBar__fill ProgressBar__fill--animated",style:Ne}),(0,e.jsx)("div",{className:"ProgressBar__content",children:Ce?ue:(0,i.Mg)(Ie*100)+"%"})]}))};/** + */function sn(){return sn=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}var hs=function(D){var w=D.className,U=D.value,$=D.minValue,B=$===void 0?0:$,G=D.maxValue,te=G===void 0?1:G,re=D.color,se=D.ranges,le=se===void 0?{}:se,ue=D.children,Ee=No(D,["className","value","minValue","maxValue","color","ranges","children"]),Ie=(0,s.hs)(U,B,te),Ce=ue!==void 0,_e=re||(0,s.TG)(U,le)||"default",Re=(0,j.Fl)(Ee),Ue=["ProgressBar",w,(0,j.WP)(Ee)],Ne={width:(0,s.J$)(Ie)*100+"%"};return jl.NE.includes(_e)||_e==="default"?Ue.push("ProgressBar--color--"+_e):(Re.style=sn({},Re.style,{borderColor:_e}),Ne.backgroundColor=_e),(0,e.jsxs)("div",sn({className:(0,C.Ly)(Ue)},Re,{children:[(0,e.jsx)("div",{className:"ProgressBar__fill ProgressBar__fill--animated",style:Ne}),(0,e.jsx)("div",{className:"ProgressBar__content",children:Ce?ue:(0,s.Mg)(Ie*100)+"%"})]}))};/** * @file * @copyright 2021 Aleksej Komarov * @license MIT @@ -187,7 +187,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Sr(){return Sr=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}var Il=function(D){var w=D.animated,U=D.format,$=D.maxValue,B=D.minValue,G=D.unclamped,te=D.onChange,re=D.onDrag,se=D.step,le=D.stepPixelSize,ue=D.suppressFlicker,Ee=D.unit,Ie=D.value,Ce=D.className,_e=D.style,Re=D.fillValue,Ue=D.color,Ne=D.ranges,Ve=Ne===void 0?{}:Ne,nt=D.size,Xe=nt===void 0?1:nt,et=D.bipolar,at=D.children,dt=Ol(D,["animated","format","maxValue","minValue","unclamped","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children"]);return(0,e.jsx)(Oa,{dragMatrix:[0,-1],animated:w,format:U,maxValue:$,minValue:B,unclamped:G,onChange:te,onDrag:re,step:se,stepPixelSize:le,suppressFlicker:ue,unit:Ee,value:Ie,children:function(ut){var pt=ut.dragging,Ct=ut.editing,vt=ut.value,it=ut.displayValue,St=ut.displayElement,Nt=ut.inputElement,kt=ut.handleDragStart,Lt=(0,i.hs)(Re!=null?Re:it,B,$),Gt=(0,i.hs)(it,B,$),Lr=Ue||(0,i.TG)(Re!=null?Re:vt,Ve)||"default",zn=Math.min((Gt-.5)*270,225);return(0,e.jsxs)("div",Sr({className:(0,C.Ly)(["Knob","Knob--color--"+Lr,et&&"Knob--bipolar",Ce,(0,j.WP)(dt)])},(0,j.Fl)(Sr({style:Sr({fontSize:Xe+"em"},_e)},dt)),{onMouseDown:kt,children:[(0,e.jsx)("div",{className:"Knob__circle",children:(0,e.jsx)("div",{className:"Knob__cursorBox",style:{transform:"rotate("+zn+"deg)"},children:(0,e.jsx)("div",{className:"Knob__cursor"})})}),pt&&(0,e.jsx)("div",{className:"Knob__popupValue",children:St}),(0,e.jsx)("svg",{className:"Knob__ring Knob__ringTrackPivot",viewBox:"0 0 100 100",children:(0,e.jsx)("circle",{className:"Knob__ringTrack",cx:"50",cy:"50",r:"50"})}),(0,e.jsx)("svg",{className:"Knob__ring Knob__ringFillPivot",viewBox:"0 0 100 100",children:(0,e.jsx)("circle",{className:"Knob__ringFill",style:{strokeDashoffset:Math.max(((et?2.75:2)-Lt*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"})}),Nt]}))}})};/** + */function Sr(){return Sr=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}var Il=function(D){var w=D.animated,U=D.format,$=D.maxValue,B=D.minValue,G=D.unclamped,te=D.onChange,re=D.onDrag,se=D.step,le=D.stepPixelSize,ue=D.suppressFlicker,Ee=D.unit,Ie=D.value,Ce=D.className,_e=D.style,Re=D.fillValue,Ue=D.color,Ne=D.ranges,Ve=Ne===void 0?{}:Ne,nt=D.size,Xe=nt===void 0?1:nt,et=D.bipolar,at=D.children,dt=Ol(D,["animated","format","maxValue","minValue","unclamped","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children"]);return(0,e.jsx)(Oa,{dragMatrix:[0,-1],animated:w,format:U,maxValue:$,minValue:B,unclamped:G,onChange:te,onDrag:re,step:se,stepPixelSize:le,suppressFlicker:ue,unit:Ee,value:Ie,children:function(ut){var pt=ut.dragging,Ct=ut.editing,vt=ut.value,it=ut.displayValue,St=ut.displayElement,Nt=ut.inputElement,kt=ut.handleDragStart,Lt=(0,s.hs)(Re!=null?Re:it,B,$),Gt=(0,s.hs)(it,B,$),Lr=Ue||(0,s.TG)(Re!=null?Re:vt,Ve)||"default",zn=Math.min((Gt-.5)*270,225);return(0,e.jsxs)("div",Sr({className:(0,C.Ly)(["Knob","Knob--color--"+Lr,et&&"Knob--bipolar",Ce,(0,j.WP)(dt)])},(0,j.Fl)(Sr({style:Sr({fontSize:Xe+"em"},_e)},dt)),{onMouseDown:kt,children:[(0,e.jsx)("div",{className:"Knob__circle",children:(0,e.jsx)("div",{className:"Knob__cursorBox",style:{transform:"rotate("+zn+"deg)"},children:(0,e.jsx)("div",{className:"Knob__cursor"})})}),pt&&(0,e.jsx)("div",{className:"Knob__popupValue",children:St}),(0,e.jsx)("svg",{className:"Knob__ring Knob__ringTrackPivot",viewBox:"0 0 100 100",children:(0,e.jsx)("circle",{className:"Knob__ringTrack",cx:"50",cy:"50",r:"50"})}),(0,e.jsx)("svg",{className:"Knob__ring Knob__ringFillPivot",viewBox:"0 0 100 100",children:(0,e.jsx)("circle",{className:"Knob__ringFill",style:{strokeDashoffset:Math.max(((et?2.75:2)-Lt*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"})}),Nt]}))}})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -211,7 +211,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Tn(){return Tn=Object.assign||function(D){for(var w=1;w0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){return B.setState({suppressingFlicker:!1})},te))},B.handleDragStart=function(te){var re=B.props.value,se=B.state.editing;se||(document.body.style["pointer-events"]="none",B.ref=te.target,B.setState({dragging:!1,origin:te.screenY,value:re,internalValue:re}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var le=B.state,ue=le.dragging,Ee=le.value,Ie=B.props.onDrag;ue&&Ie&&Ie(te,Ee)},B.props.updateRate||Dl),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(te){var re=B.props,se=re.minValue,le=re.maxValue,ue=re.step,Ee=re.stepPixelSize;B.setState(function(Ie){var Ce=Tn({},Ie),_e=Ce.origin-te.screenY;if(Ie.dragging){var Re=Number.isFinite(se)?se%ue:0;Ce.internalValue=(0,i.qE)(Ce.internalValue+_e*ue/Ee,se-ue,le+ue),Ce.value=(0,i.qE)(Ce.internalValue-Ce.internalValue%ue+Re,se,le),Ce.origin=te.screenY}else Math.abs(_e)>4&&(Ce.dragging=!0);return Ce})},B.handleDragEnd=function(te){var re=B.props,se=re.onChange,le=re.onDrag,ue=B.state,Ee=ue.dragging,Ie=ue.value,Ce=ue.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!Ee,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),Ee)B.suppressFlicker(),se&&se(te,Ie),le&&le(te,Ie);else if(B.inputRef){var _e=B.inputRef.current;_e.value=Ce;try{_e.focus(),_e.select()}catch(Re){}}},B}var U=w.prototype;return U.render=function(){var B=this,G=this.state,te=G.dragging,re=G.editing,se=G.value,le=G.suppressingFlicker,ue=this.props,Ee=ue.className,Ie=ue.fluid,Ce=ue.animated,_e=ue.value,Re=ue.unit,Ue=ue.minValue,Ne=ue.maxValue,Ve=ue.height,nt=ue.width,Xe=ue.lineHeight,et=ue.fontSize,at=ue.format,dt=ue.onChange,ut=ue.onDrag,pt=_e;(te||le)&&(pt=se);var Ct=(0,e.jsxs)("div",{className:"NumberInput__content",children:[Ce&&!te&&!le?(0,e.jsx)(h,{value:pt,format:at}):at?at(pt):pt,Re?" "+Re:""]});return(0,e.jsxs)(j.az,{className:(0,C.Ly)(["NumberInput",Ie&&"NumberInput--fluid",Ee]),minWidth:nt,minHeight:Ve,lineHeight:Xe,fontSize:et,onMouseDown:this.handleDragStart,children:[(0,e.jsx)("div",{className:"NumberInput__barContainer",children:(0,e.jsx)("div",{className:"NumberInput__bar",style:{height:(0,i.qE)((pt-Ue)/(Ne-Ue)*100,0,100)+"%"}})}),Ct,(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:re?void 0:"none",height:Ve,lineHeight:Xe,fontSize:et},onBlur:function(vt){if(re){var it=(0,i.qE)(parseFloat(vt.target.value),Ue,Ne);if(Number.isNaN(it)){B.setState({editing:!1});return}B.setState({editing:!1,value:it}),B.suppressFlicker(),dt&&dt(vt,it),ut&&ut(vt,it)}},onKeyDown:function(vt){if(vt.keyCode===13){var it=(0,i.qE)(parseFloat(vt.target.value),Ue,Ne);if(Number.isNaN(it)){B.setState({editing:!1});return}B.setState({editing:!1,value:it}),B.suppressFlicker(),dt&&dt(vt,it),ut&&ut(vt,it);return}if(vt.keyCode===27){B.setState({editing:!1});return}}})]})},w}(n.Component);vr.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50};function Rr(){return Rr=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}function Go(D,w){return Go=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Go(D,w)}var wr=0,Qn=1e4,At=function(D,w,U,$){var B=w||wr,G=U||U===0?U:Qn,te=$?D.replace(/[^\-\d.]/g,""):D.replace(/[^\-\d]/g,"");return $&&(te=Zt(te,B),te=tn(".",te)),w<0?(te=xr(te),te=tn("-",te)):te=te.replaceAll("-",""),B<=1&&G>=0?Tt(te,B,G,$):te},Tt=function(D,w,U,$){var B=$?parseFloat(D):parseInt(D,10);if(!isNaN(B)&&(D.slice(-1)!=="."||B0?(D=D.replace("-",""),w="-".concat(D)):U===0&&D.indexOf("-",U+1)>0&&(w=D.replaceAll("-","")),w},Zt=function(D,w){var U=D,$=Math.sign(w)*Math.floor(Math.abs(w));return D.indexOf(".")===0?U=String($).concat(D):D.indexOf("-")===0&&D.indexOf(".")===1&&(U=$+".".concat(D.slice(2))),U},tn=function(D,w){var U=w.indexOf(D),$=w.length,B=w;if(U!==-1&&U<$-1){var G=w.slice(U+1,$);G=G.replaceAll(D,""),B=w.slice(0,U+1).concat(G)}return B},$n=function(D,w,U,$){var B=w||wr,G=U||U===0?U:Qn;if(!D||!D.length)return String(B);var te=$?parseFloat(D.replace(/[^\-\d.]/g,"")):parseInt(D.replace(/[^\-\d]/g,""),10);return isNaN(te)?String(B):String((0,i.qE)(te,B,G))},so=function(D){"use strict";io(w,D);function w($){var B;return B=D.call(this,$)||this,B.inputRef=(0,n.createRef)(),B.state={editing:!1},B.handleBlur=function(G){var te=B.props,re=te.maxValue,se=te.minValue,le=te.onBlur,ue=te.allowFloats,Ee=B.state.editing;Ee&&B.setEditing(!1);var Ie=$n(G.target.value,se,re,ue);le&&le(G,+Ie)},B.handleChange=function(G){var te=B.props,re=te.maxValue,se=te.minValue,le=te.onChange,ue=te.allowFloats;G.target.value=At(G.target.value,se,re,ue),le&&le(G,+G.target.value)},B.handleFocus=function(G){var te=B.state.editing;te||B.setEditing(!0)},B.handleInput=function(G){var te=B.state.editing,re=B.props.onInput;te||B.setEditing(!0),re&&re(G,+G.target.value)},B.handleKeyDown=function(G){var te=B.props,re=te.maxValue,se=te.minValue,le=te.onChange,ue=te.onEnter,Ee=te.allowFloats;if(G.keyCode===_.Ri){var Ie=$n(G.target.value,se,re,Ee);B.setEditing(!1),le&&le(G,+Ie),ue&&ue(G,+Ie),G.target.blur();return}if(G.keyCode===_.s6){if(B.props.onEscape){B.props.onEscape(G);return}B.setEditing(!1),G.target.value=B.props.value,G.target.blur();return}},B}var U=w.prototype;return U.componentDidMount=function(){var B=this,G,te=this.props,re=te.maxValue,se=te.minValue,le=te.allowFloats,ue=(G=this.props.value)==null?void 0:G.toString(),Ee=this.inputRef.current;Ee&&(Ee.value=$n(ue,se,re,le)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){Ee.focus(),B.props.autoSelect&&Ee.select()},1)},U.componentDidUpdate=function(B,G){var te,re,se=this.props,le=se.maxValue,ue=se.minValue,Ee=se.allowFloats,Ie=this.state.editing,Ce=(te=B.value)==null?void 0:te.toString(),_e=(re=this.props.value)==null?void 0:re.toString(),Re=this.inputRef.current;Re&&!Ie&&_e!==Ce&&_e!==Re.value&&(Re.value=$n(_e,ue,le,Ee))},U.setEditing=function(B){this.setState({editing:B})},U.render=function(){var B=this.props,G=B.onChange,te=B.onEnter,re=B.onInput,se=B.onBlur,le=B.value,ue=Xo(B,["onChange","onEnter","onInput","onBlur","value"]),Ee=ue.className,Ie=ue.fluid,Ce=ue.monospace,_e=Xo(ue,["className","fluid","monospace"]);return(0,e.jsxs)(j.az,Rr({className:(0,C.Ly)(["Input",Ie&&"Input--fluid",Ce&&"Input--monospace",Ee])},_e,{children:[(0,e.jsx)("div",{className:"Input__baseline",children:"."}),(0,e.jsx)("input",{className:"Input__input",onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:this.inputRef,type:"number | string"})]}))},w}(n.Component);/** + */function Tn(){return Tn=Object.assign||function(D){for(var w=1;w0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){return B.setState({suppressingFlicker:!1})},te))},B.handleDragStart=function(te){var re=B.props.value,se=B.state.editing;se||(document.body.style["pointer-events"]="none",B.ref=te.target,B.setState({dragging:!1,origin:te.screenY,value:re,internalValue:re}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var le=B.state,ue=le.dragging,Ee=le.value,Ie=B.props.onDrag;ue&&Ie&&Ie(te,Ee)},B.props.updateRate||Dl),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(te){var re=B.props,se=re.minValue,le=re.maxValue,ue=re.step,Ee=re.stepPixelSize;B.setState(function(Ie){var Ce=Tn({},Ie),_e=Ce.origin-te.screenY;if(Ie.dragging){var Re=Number.isFinite(se)?se%ue:0;Ce.internalValue=(0,s.qE)(Ce.internalValue+_e*ue/Ee,se-ue,le+ue),Ce.value=(0,s.qE)(Ce.internalValue-Ce.internalValue%ue+Re,se,le),Ce.origin=te.screenY}else Math.abs(_e)>4&&(Ce.dragging=!0);return Ce})},B.handleDragEnd=function(te){var re=B.props,se=re.onChange,le=re.onDrag,ue=B.state,Ee=ue.dragging,Ie=ue.value,Ce=ue.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!Ee,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),Ee)B.suppressFlicker(),se&&se(te,Ie),le&&le(te,Ie);else if(B.inputRef){var _e=B.inputRef.current;_e.value=Ce;try{_e.focus(),_e.select()}catch(Re){}}},B}var U=w.prototype;return U.render=function(){var B=this,G=this.state,te=G.dragging,re=G.editing,se=G.value,le=G.suppressingFlicker,ue=this.props,Ee=ue.className,Ie=ue.fluid,Ce=ue.animated,_e=ue.value,Re=ue.unit,Ue=ue.minValue,Ne=ue.maxValue,Ve=ue.height,nt=ue.width,Xe=ue.lineHeight,et=ue.fontSize,at=ue.format,dt=ue.onChange,ut=ue.onDrag,pt=_e;(te||le)&&(pt=se);var Ct=(0,e.jsxs)("div",{className:"NumberInput__content",children:[Ce&&!te&&!le?(0,e.jsx)(h,{value:pt,format:at}):at?at(pt):pt,Re?" "+Re:""]});return(0,e.jsxs)(j.az,{className:(0,C.Ly)(["NumberInput",Ie&&"NumberInput--fluid",Ee]),minWidth:nt,minHeight:Ve,lineHeight:Xe,fontSize:et,onMouseDown:this.handleDragStart,children:[(0,e.jsx)("div",{className:"NumberInput__barContainer",children:(0,e.jsx)("div",{className:"NumberInput__bar",style:{height:(0,s.qE)((pt-Ue)/(Ne-Ue)*100,0,100)+"%"}})}),Ct,(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:re?void 0:"none",height:Ve,lineHeight:Xe,fontSize:et},onBlur:function(vt){if(re){var it=(0,s.qE)(parseFloat(vt.target.value),Ue,Ne);if(Number.isNaN(it)){B.setState({editing:!1});return}B.setState({editing:!1,value:it}),B.suppressFlicker(),dt&&dt(vt,it),ut&&ut(vt,it)}},onKeyDown:function(vt){if(vt.keyCode===13){var it=(0,s.qE)(parseFloat(vt.target.value),Ue,Ne);if(Number.isNaN(it)){B.setState({editing:!1});return}B.setState({editing:!1,value:it}),B.suppressFlicker(),dt&&dt(vt,it),ut&&ut(vt,it);return}if(vt.keyCode===27){B.setState({editing:!1});return}}})]})},w}(n.Component);vr.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50};function Rr(){return Rr=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}function Go(D,w){return Go=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Go(D,w)}var wr=0,Zn=1e4,At=function(D,w,U,$){var B=w||wr,G=U||U===0?U:Zn,te=$?D.replace(/[^\-\d.]/g,""):D.replace(/[^\-\d]/g,"");return $&&(te=Qt(te,B),te=tn(".",te)),w<0?(te=xr(te),te=tn("-",te)):te=te.replaceAll("-",""),B<=1&&G>=0?Tt(te,B,G,$):te},Tt=function(D,w,U,$){var B=$?parseFloat(D):parseInt(D,10);if(!isNaN(B)&&(D.slice(-1)!=="."||B0?(D=D.replace("-",""),w="-".concat(D)):U===0&&D.indexOf("-",U+1)>0&&(w=D.replaceAll("-","")),w},Qt=function(D,w){var U=D,$=Math.sign(w)*Math.floor(Math.abs(w));return D.indexOf(".")===0?U=String($).concat(D):D.indexOf("-")===0&&D.indexOf(".")===1&&(U=$+".".concat(D.slice(2))),U},tn=function(D,w){var U=w.indexOf(D),$=w.length,B=w;if(U!==-1&&U<$-1){var G=w.slice(U+1,$);G=G.replaceAll(D,""),B=w.slice(0,U+1).concat(G)}return B},$n=function(D,w,U,$){var B=w||wr,G=U||U===0?U:Zn;if(!D||!D.length)return String(B);var te=$?parseFloat(D.replace(/[^\-\d.]/g,"")):parseInt(D.replace(/[^\-\d]/g,""),10);return isNaN(te)?String(B):String((0,s.qE)(te,B,G))},so=function(D){"use strict";io(w,D);function w($){var B;return B=D.call(this,$)||this,B.inputRef=(0,n.createRef)(),B.state={editing:!1},B.handleBlur=function(G){var te=B.props,re=te.maxValue,se=te.minValue,le=te.onBlur,ue=te.allowFloats,Ee=B.state.editing;Ee&&B.setEditing(!1);var Ie=$n(G.target.value,se,re,ue);le&&le(G,+Ie)},B.handleChange=function(G){var te=B.props,re=te.maxValue,se=te.minValue,le=te.onChange,ue=te.allowFloats;G.target.value=At(G.target.value,se,re,ue),le&&le(G,+G.target.value)},B.handleFocus=function(G){var te=B.state.editing;te||B.setEditing(!0)},B.handleInput=function(G){var te=B.state.editing,re=B.props.onInput;te||B.setEditing(!0),re&&re(G,+G.target.value)},B.handleKeyDown=function(G){var te=B.props,re=te.maxValue,se=te.minValue,le=te.onChange,ue=te.onEnter,Ee=te.allowFloats;if(G.keyCode===_.Ri){var Ie=$n(G.target.value,se,re,Ee);B.setEditing(!1),le&&le(G,+Ie),ue&&ue(G,+Ie),G.target.blur();return}if(G.keyCode===_.s6){if(B.props.onEscape){B.props.onEscape(G);return}B.setEditing(!1),G.target.value=B.props.value,G.target.blur();return}},B}var U=w.prototype;return U.componentDidMount=function(){var B=this,G,te=this.props,re=te.maxValue,se=te.minValue,le=te.allowFloats,ue=(G=this.props.value)==null?void 0:G.toString(),Ee=this.inputRef.current;Ee&&(Ee.value=$n(ue,se,re,le)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){Ee.focus(),B.props.autoSelect&&Ee.select()},1)},U.componentDidUpdate=function(B,G){var te,re,se=this.props,le=se.maxValue,ue=se.minValue,Ee=se.allowFloats,Ie=this.state.editing,Ce=(te=B.value)==null?void 0:te.toString(),_e=(re=this.props.value)==null?void 0:re.toString(),Re=this.inputRef.current;Re&&!Ie&&_e!==Ce&&_e!==Re.value&&(Re.value=$n(_e,ue,le,Ee))},U.setEditing=function(B){this.setState({editing:B})},U.render=function(){var B=this.props,G=B.onChange,te=B.onEnter,re=B.onInput,se=B.onBlur,le=B.value,ue=Xo(B,["onChange","onEnter","onInput","onBlur","value"]),Ee=ue.className,Ie=ue.fluid,Ce=ue.monospace,_e=Xo(ue,["className","fluid","monospace"]);return(0,e.jsxs)(j.az,Rr({className:(0,C.Ly)(["Input",Ie&&"Input--fluid",Ce&&"Input--monospace",Ee])},_e,{children:[(0,e.jsx)("div",{className:"Input__baseline",children:"."}),(0,e.jsx)("input",{className:"Input__input",onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:this.inputRef,type:"number | string"})]}))},w}(n.Component);/** * @file * @copyright 2020 bobbahbrown (https://github.com/bobbahbrown) * @license MIT @@ -219,11 +219,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function lo(){return lo=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}var Zn=(0,n.forwardRef)(function(D,w){var U=D.buttons,$=D.children,B=D.className,G=D.fill,te=D.fitted,re=D.onScroll,se=D.scrollable,le=D.scrollableHorizontal,ue=D.title,Ee=D.flexGrow,Ie=D.noTopPadding,Ce=D.stretchContents,_e=Cs(D,["buttons","children","className","fill","fitted","onScroll","scrollable","scrollableHorizontal","title","flexGrow","noTopPadding","stretchContents"]),Re=(0,C.b5)(ue)||(0,C.b5)(U);return(0,n.useEffect)(function(){if(w!=null&&w.current&&!(!se&&!le))return(0,Ri.tk)(w.current),function(){w!=null&&w.current&&(0,Ri.WK)(w.current)}},[]),(0,e.jsxs)("div",lo({className:(0,C.Ly)(["Section",G&&"Section--fill",te&&"Section--fitted",se&&"Section--scrollable",le&&"Section--scrollableHorizontal",Ee&&"Section--flex",B,(0,j.WP)(_e)])},(0,j.Fl)(_e),{children:[Re&&(0,e.jsxs)("div",{className:"Section__title",children:[(0,e.jsx)("span",{className:"Section__titleText",children:ue}),(0,e.jsx)("div",{className:"Section__buttons",children:U})]}),(0,e.jsx)("div",{className:"Section__rest",children:(0,e.jsx)("div",{className:(0,C.Ly)(["Section__content",!!Ce&&"Section__content--stretchContents",!!Ie&&"Section__content--noTopPadding"]),onScroll:re,ref:w,children:$})})]}))});/** + */function lo(){return lo=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}var Qn=(0,n.forwardRef)(function(D,w){var U=D.buttons,$=D.children,B=D.className,G=D.fill,te=D.fitted,re=D.onScroll,se=D.scrollable,le=D.scrollableHorizontal,ue=D.title,Ee=D.flexGrow,Ie=D.noTopPadding,Ce=D.stretchContents,_e=Cs(D,["buttons","children","className","fill","fitted","onScroll","scrollable","scrollableHorizontal","title","flexGrow","noTopPadding","stretchContents"]),Re=(0,C.b5)(ue)||(0,C.b5)(U);return(0,n.useEffect)(function(){if(w!=null&&w.current&&!(!se&&!le))return(0,Ri.tk)(w.current),function(){w!=null&&w.current&&(0,Ri.WK)(w.current)}},[]),(0,e.jsxs)("div",lo({className:(0,C.Ly)(["Section",G&&"Section--fill",te&&"Section--fitted",se&&"Section--scrollable",le&&"Section--scrollableHorizontal",Ee&&"Section--flex",B,(0,j.WP)(_e)])},(0,j.Fl)(_e),{children:[Re&&(0,e.jsxs)("div",{className:"Section__title",children:[(0,e.jsx)("span",{className:"Section__titleText",children:ue}),(0,e.jsx)("div",{className:"Section__buttons",children:U})]}),(0,e.jsx)("div",{className:"Section__rest",children:(0,e.jsx)("div",{className:(0,C.Ly)(["Section__content",!!Ce&&"Section__content--stretchContents",!!Ie&&"Section__content--noTopPadding"]),onScroll:re,ref:w,children:$})})]}))});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function co(){return co=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}var Bi=function(D){var w=D.animated,U=D.format,$=D.maxValue,B=D.minValue,G=D.onChange,te=D.onDrag,re=D.step,se=D.stepPixelSize,le=D.suppressFlicker,ue=D.unit,Ee=D.value,Ie=D.className,Ce=D.fillValue,_e=D.color,Re=D.ranges,Ue=Re===void 0?{}:Re,Ne=D.children,Ve=wi(D,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),nt=Ne!==void 0;return(0,e.jsx)(Oa,{dragMatrix:[1,0],animated:w,format:U,maxValue:$,minValue:B,onChange:G,onDrag:te,step:re,stepPixelSize:se,suppressFlicker:le,unit:ue,value:Ee,children:function(Xe){var et=Xe.dragging,at=Xe.editing,dt=Xe.value,ut=Xe.displayValue,pt=Xe.displayElement,Ct=Xe.inputElement,vt=Xe.handleDragStart,it=Ce!=null,St=(0,i.hs)(dt,B,$),Nt=(0,i.hs)(Ce!=null?Ce:ut,B,$),kt=(0,i.hs)(ut,B,$),Lt=_e||(0,i.TG)(Ce!=null?Ce:dt,Ue)||"default";return(0,e.jsxs)("div",co({className:(0,C.Ly)(["Slider","ProgressBar","ProgressBar--color--"+Lt,Ie,(0,j.WP)(Ve)])},(0,j.Fl)(Ve),{onMouseDown:vt,children:[(0,e.jsx)("div",{className:(0,C.Ly)(["ProgressBar__fill",it&&"ProgressBar__fill--animated"]),style:{width:(0,i.J$)(Nt)*100+"%",opacity:.4}}),(0,e.jsx)("div",{className:"ProgressBar__fill",style:{width:(0,i.J$)(Math.min(Nt,kt))*100+"%"}}),(0,e.jsxs)("div",{className:"Slider__cursorOffset",style:{width:(0,i.J$)(kt)*100+"%"},children:[(0,e.jsx)("div",{className:"Slider__cursor"}),(0,e.jsx)("div",{className:"Slider__pointer"}),et&&(0,e.jsx)("div",{className:"Slider__popupValue",children:pt})]}),(0,e.jsx)("div",{className:"ProgressBar__content",children:nt?Ne:pt}),Ct]}))}})},Oc=function(D){return _jsxs(Box,{style:D.style,children:[_jsxs(Box,{className:"Section__title",style:D.titleStyle,children:[_jsx(Box,{className:"Section__titleText",style:D.textStyle,children:D.title}),_jsx("div",{className:"Section__buttons",children:D.titleSubtext})]}),_jsx(Box,{className:"Section__rest",children:_jsx(Box,{className:"Section__content",children:D.children})})]})};/** + */function co(){return co=Object.assign||function(D){for(var w=1;w=0)&&(U[B]=D[B]);return U}var Bi=function(D){var w=D.animated,U=D.format,$=D.maxValue,B=D.minValue,G=D.onChange,te=D.onDrag,re=D.step,se=D.stepPixelSize,le=D.suppressFlicker,ue=D.unit,Ee=D.value,Ie=D.className,Ce=D.fillValue,_e=D.color,Re=D.ranges,Ue=Re===void 0?{}:Re,Ne=D.children,Ve=wi(D,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),nt=Ne!==void 0;return(0,e.jsx)(Oa,{dragMatrix:[1,0],animated:w,format:U,maxValue:$,minValue:B,onChange:G,onDrag:te,step:re,stepPixelSize:se,suppressFlicker:le,unit:ue,value:Ee,children:function(Xe){var et=Xe.dragging,at=Xe.editing,dt=Xe.value,ut=Xe.displayValue,pt=Xe.displayElement,Ct=Xe.inputElement,vt=Xe.handleDragStart,it=Ce!=null,St=(0,s.hs)(dt,B,$),Nt=(0,s.hs)(Ce!=null?Ce:ut,B,$),kt=(0,s.hs)(ut,B,$),Lt=_e||(0,s.TG)(Ce!=null?Ce:dt,Ue)||"default";return(0,e.jsxs)("div",co({className:(0,C.Ly)(["Slider","ProgressBar","ProgressBar--color--"+Lt,Ie,(0,j.WP)(Ve)])},(0,j.Fl)(Ve),{onMouseDown:vt,children:[(0,e.jsx)("div",{className:(0,C.Ly)(["ProgressBar__fill",it&&"ProgressBar__fill--animated"]),style:{width:(0,s.J$)(Nt)*100+"%",opacity:.4}}),(0,e.jsx)("div",{className:"ProgressBar__fill",style:{width:(0,s.J$)(Math.min(Nt,kt))*100+"%"}}),(0,e.jsxs)("div",{className:"Slider__cursorOffset",style:{width:(0,s.J$)(kt)*100+"%"},children:[(0,e.jsx)("div",{className:"Slider__cursor"}),(0,e.jsx)("div",{className:"Slider__pointer"}),et&&(0,e.jsx)("div",{className:"Slider__popupValue",children:pt})]}),(0,e.jsx)("div",{className:"ProgressBar__content",children:nt?Ne:pt}),Ct]}))}})},Oc=function(D){return _jsxs(Box,{style:D.style,children:[_jsxs(Box,{className:"Section__title",style:D.titleStyle,children:[_jsx(Box,{className:"Section__titleText",style:D.textStyle,children:D.title}),_jsx("div",{className:"Section__buttons",children:D.titleSubtext})]}),_jsx(Box,{className:"Section__rest",children:_jsx(Box,{className:"Section__content",children:D.children})})]})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -236,143 +236,143 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */},1568:function(M,y,t){"use strict";t.d(y,{Ai:function(){return e},Fo:function(){return x},KA:function(){return i},KS:function(){return r},NE:function(){return g},b_:function(){return v},bz:function(){return n},lm:function(){return a},wM:function(){return h}});/** + */},1568:function(M,y,t){"use strict";t.d(y,{Ai:function(){return e},Fo:function(){return x},KA:function(){return s},KS:function(){return r},NE:function(){return g},b_:function(){return v},bz:function(){return n},lm:function(){return a},wM:function(){return h}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=273.15,i=2,n=1,r=0,s=null,a={department:{captain:"#c06616",security:"#e74c3c",medbay:"#3498db",science:"#9b59b6",engineering:"#f1c40f",cargo:"#f39c12",centcom:"#00c100",other:"#c38312"},manifest:{command:"#3333FF",security:"#8e0000",medical:"#006600",engineering:"#b27300",science:"#a65ba6",cargo:"#bb9040",planetside:"#555555",civilian:"#a32800",miscellaneous:"#666666",silicon:"#222222"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"},reagent:{acidicbuffer:"#fbc314",basicbuffer:"#3853a4"}},g=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],x=[{name:"Mercenary",freq:1213,color:"#6D3F40"},{name:"Raider",freq:1277,color:"#6D3F40"},{name:"Special Ops",freq:1341,color:"#5C5C8A"},{name:"AI Private",freq:1343,color:"#FF00FF"},{name:"Response Team",freq:1345,color:"#5C5C8A"},{name:"Supply",freq:1347,color:"#5F4519"},{name:"Service",freq:1349,color:"#6eaa2c"},{name:"Science",freq:1351,color:"#993399"},{name:"Command",freq:1353,color:"#193A7A"},{name:"Medical",freq:1355,color:"#008160"},{name:"Engineering",freq:1357,color:"#A66300"},{name:"Security",freq:1359,color:"#A30000"},{name:"Explorer",freq:1361,color:"#555555"},{name:"Talon",freq:1363,color:"#555555"},{name:"Common",freq:1459,color:"#008000"},{name:"Entertainment",freq:1461,color:"#339966"},{name:"Security(I)",freq:1475,color:"#008000"},{name:"Medical(I)",freq:1485,color:"#008000"}],d=[{id:"oxygen",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"nitrogen",name:"Nitrogen",label:"N\u2082",color:"green"},{id:"carbon_dioxide",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"phoron",name:"Phoron",label:"Phoron",color:"pink"},{id:"volatile_fuel",name:"Volatile Fuel",label:"EXP",color:"teal"},{id:"nitrous_oxide",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"other",name:"Other",label:"Other",color:"white"},{id:"pressure",name:"Pressure",label:"Pressure",color:"average"},{id:"temperature",name:"Temperature",label:"Temperature",color:"yellow"}],h=function(m,c){if(!m)return c||"None";for(var f=m.toLowerCase(),p=m.replace(/(^\w{1})|(\s+\w{1})/g,function(j){return j.toUpperCase()}),C=0;C0&&ne[ne.length-1])&&(me[0]===6||me[0]===2)){de=0;continue}if(me[0]===3&&(!ne||me[1]>ne[0]&&me[1]pe&&(ne[de]=pe-Y[de],ce=!0)}return[ce,ne]},F=function(z){var Y;g.log("drag start"),v=!0,f=(0,i.Z4)([z.screenX,z.screenY],b()),(Y=z.target)==null||Y.focus(),document.addEventListener("mousemove",H),document.addEventListener("mouseup",J),H(z)},J=function(z){g.log("drag end"),H(z),document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",J),v=!1,K()},H=function(z){v&&(z.preventDefault(),_((0,i.Z4)([z.screenX,z.screenY],f)))},Q=function(z,Y){return function(ee){var oe;p=[z,Y],g.log("resize start",p),u=!0,f=(0,i.Z4)([ee.screenX,ee.screenY],b()),C=I(),(oe=ee.target)==null||oe.focus(),document.addEventListener("mousemove",V),document.addEventListener("mouseup",Z),V(ee)}},Z=function(z){g.log("resize end",j),V(z),document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",Z),u=!1,K()},V=function(z){if(u){z.preventDefault();var Y=(0,i.Z4)([z.screenX,z.screenY],b()),ee=(0,i.Z4)(Y,f);j=(0,i.CO)(C,(0,i.tk)(p,ee),[1,1]),j[0]=Math.max(j[0],150*d),j[1]=Math.max(j[1],50*d),S(j)}}},80116:function(M,y,t){"use strict";t.d(y,{Nh:function(){return n},WK:function(){return C},tk:function(){return p},y4:function(){return s}});var e=t(80324),i=t(61652);/** + */function r(z,Y,ee,oe,ne,ce,de){try{var ve=z[ce](de),pe=ve.value}catch(me){ee(me);return}ve.done?Y(pe):Promise.resolve(pe).then(oe,ne)}function i(z){return function(){var Y=this,ee=arguments;return new Promise(function(oe,ne){var ce=z.apply(Y,ee);function de(pe){r(ce,oe,ne,de,ve,"next",pe)}function ve(pe){r(ce,oe,ne,de,ve,"throw",pe)}de(void 0)})}}function a(z,Y){var ee,oe,ne,ce,de={label:0,sent:function(){if(ne[0]&1)throw ne[1];return ne[1]},trys:[],ops:[]};return ce={next:ve(0),throw:ve(1),return:ve(2)},typeof Symbol=="function"&&(ce[Symbol.iterator]=function(){return this}),ce;function ve(me){return function(be){return pe([me,be])}}function pe(me){if(ee)throw new TypeError("Generator is already executing.");for(;de;)try{if(ee=1,oe&&(ne=me[0]&2?oe.return:me[0]?oe.throw||((ne=oe.return)&&ne.call(oe),0):oe.next)&&!(ne=ne.call(oe,me[1])).done)return ne;switch(oe=0,ne&&(me=[me[0]&2,ne.value]),me[0]){case 0:case 1:ne=me;break;case 4:return de.label++,{value:me[1],done:!1};case 5:de.label++,oe=me[1],me=[0];continue;case 7:me=de.ops.pop(),de.trys.pop();continue;default:if(ne=de.trys,!(ne=ne.length>0&&ne[ne.length-1])&&(me[0]===6||me[0]===2)){de=0;continue}if(me[0]===3&&(!ne||me[1]>ne[0]&&me[1]pe&&(ne[de]=pe-Y[de],ce=!0)}return[ce,ne]},F=function(z){var Y;g.log("drag start"),v=!0,f=(0,s.Z4)([z.screenX,z.screenY],b()),(Y=z.target)==null||Y.focus(),document.addEventListener("mousemove",H),document.addEventListener("mouseup",J),H(z)},J=function(z){g.log("drag end"),H(z),document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",J),v=!1,K()},H=function(z){v&&(z.preventDefault(),_((0,s.Z4)([z.screenX,z.screenY],f)))},Z=function(z,Y){return function(ee){var oe;p=[z,Y],g.log("resize start",p),u=!0,f=(0,s.Z4)([ee.screenX,ee.screenY],b()),C=I(),(oe=ee.target)==null||oe.focus(),document.addEventListener("mousemove",V),document.addEventListener("mouseup",Q),V(ee)}},Q=function(z){g.log("resize end",j),V(z),document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",Q),u=!1,K()},V=function(z){if(u){z.preventDefault();var Y=(0,s.Z4)([z.screenX,z.screenY],b()),ee=(0,s.Z4)(Y,f);j=(0,s.CO)(C,(0,s.tk)(p,ee),[1,1]),j[0]=Math.max(j[0],150*d),j[1]=Math.max(j[1],50*d),S(j)}}},80116:function(M,y,t){"use strict";t.d(y,{Nh:function(){return n},WK:function(){return C},tk:function(){return p},y4:function(){return i}});var e=t(80324),s=t(61652);/** * Normalized browser focus events and BYOND-specific focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=new e.b,r=!1,s=function(I){I===void 0&&(I={}),r=!!I.ignoreWindowFocus},a,g=!0,x=function(I,_){if(r){g=!0;return}if(a&&(clearTimeout(a),a=null),_){a=setTimeout(function(){return x(I)});return}g!==I&&(g=I,n.emit(I?"window-focus":"window-blur"),n.emit("window-focus-change",I))},d=null,h=function(I){var _=String(I.tagName).toLowerCase();return _==="input"||_==="textarea"},v=function(I){u(),d=I,d.addEventListener("blur",u)},u=function(){d&&(d.removeEventListener("blur",u),d=null)},m=null,c=null,f=[],p=function(I){f.push(I)},C=function(I){var _=f.indexOf(I);_>=0&&f.splice(_,1)},j=function(I){if(!(d||!g))for(var _=document.body;I&&I!==_;){if(f.includes(I)){if(I.contains(m))return;m=I,I.focus();return}I=I.parentElement}};window.addEventListener("mousemove",function(I){var _=I.target;_!==c&&(c=_,j(_))}),window.addEventListener("focusin",function(I){c=null,m=I.target,x(!0),h(I.target)&&v(I.target)}),window.addEventListener("focusout",function(I){c=null,x(!1,!0)}),window.addEventListener("blur",function(I){c=null,x(!1,!0)}),window.addEventListener("beforeunload",function(I){x(!1)});var O={},b=function(){"use strict";function I(S,P,A){this.event=S,this.type=P,this.code=S.keyCode,this.ctrl=S.ctrlKey,this.shift=S.shiftKey,this.alt=S.altKey,this.repeat=!!A}var _=I.prototype;return _.hasModifierKeys=function(){return this.ctrl||this.alt||this.shift},_.isModifierKey=function(){return this.code===i.Ss||this.code===i.re||this.code===i.cH},_.isDown=function(){return this.type==="keydown"},_.isUp=function(){return this.type==="keyup"},_.toString=function(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=i.sV&&this.code<=i.Yw?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)},I}();document.addEventListener("keydown",function(I){if(!h(I.target)){var _=I.keyCode,S=new b(I,"keydown",O[_]);n.emit("keydown",S),n.emit("key",S),O[_]=!0}}),document.addEventListener("keyup",function(I){if(!h(I.target)){var _=I.keyCode,S=new b(I,"keyup");n.emit("keyup",S),n.emit("key",S),O[_]=!1}})},46989:function(M,y,t){"use strict";t.d(y,{$:function(){return e}});/** + */var n=new e.b,r=!1,i=function(I){I===void 0&&(I={}),r=!!I.ignoreWindowFocus},a,g=!0,x=function(I,_){if(r){g=!0;return}if(a&&(clearTimeout(a),a=null),_){a=setTimeout(function(){return x(I)});return}g!==I&&(g=I,n.emit(I?"window-focus":"window-blur"),n.emit("window-focus-change",I))},d=null,h=function(I){var _=String(I.tagName).toLowerCase();return _==="input"||_==="textarea"},v=function(I){u(),d=I,d.addEventListener("blur",u)},u=function(){d&&(d.removeEventListener("blur",u),d=null)},m=null,c=null,f=[],p=function(I){f.push(I)},C=function(I){var _=f.indexOf(I);_>=0&&f.splice(_,1)},j=function(I){if(!(d||!g))for(var _=document.body;I&&I!==_;){if(f.includes(I)){if(I.contains(m))return;m=I,I.focus();return}I=I.parentElement}};window.addEventListener("mousemove",function(I){var _=I.target;_!==c&&(c=_,j(_))}),window.addEventListener("focusin",function(I){c=null,m=I.target,x(!0),h(I.target)&&v(I.target)}),window.addEventListener("focusout",function(I){c=null,x(!1,!0)}),window.addEventListener("blur",function(I){c=null,x(!1,!0)}),window.addEventListener("beforeunload",function(I){x(!1)});var O={},b=function(){"use strict";function I(S,P,A){this.event=S,this.type=P,this.code=S.keyCode,this.ctrl=S.ctrlKey,this.shift=S.shiftKey,this.alt=S.altKey,this.repeat=!!A}var _=I.prototype;return _.hasModifierKeys=function(){return this.ctrl||this.alt||this.shift},_.isModifierKey=function(){return this.code===s.Ss||this.code===s.re||this.code===s.cH},_.isDown=function(){return this.type==="keydown"},_.isUp=function(){return this.type==="keyup"},_.toString=function(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=s.sV&&this.code<=s.Yw?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)},I}();document.addEventListener("keydown",function(I){if(!h(I.target)){var _=I.keyCode,S=new b(I,"keydown",O[_]);n.emit("keydown",S),n.emit("key",S),O[_]=!0}}),document.addEventListener("keyup",function(I){if(!h(I.target)){var _=I.keyCode,S=new b(I,"keyup");n.emit("keyup",S),n.emit("key",S),O[_]=!1}})},46989:function(M,y,t){"use strict";t.d(y,{$:function(){return e}});/** * Various focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=function(){Byond.winset("mapwindow.map",{focus:!0})},i=function(){Byond.winset(Byond.windowId,{focus:!0})}},24158:function(M,y,t){"use strict";t.d(y,{QL:function(){return n},d5:function(){return r},fU:function(){return d},qQ:function(){return h},up:function(){return s}});/** + */var e=function(){Byond.winset("mapwindow.map",{focus:!0})},s=function(){Byond.winset(Byond.windowId,{focus:!0})}},24158:function(M,y,t){"use strict";t.d(y,{QL:function(){return n},d5:function(){return r},fU:function(){return d},qQ:function(){return h},up:function(){return i}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y","R","Q","F","N","H"],i=e.indexOf(" "),n=function(v,u,m){if(u===void 0&&(u=-i),m===void 0&&(m=""),!isFinite(v))return v.toString();var c=Math.floor(Math.log10(Math.abs(v))),f=Math.max(u*3,c),p=Math.floor(f/3),C=e[Math.min(p+i,e.length-1)],j=v/Math.pow(1e3,p),O=j.toFixed(2);return O.endsWith(".00")?O=O.slice(0,-3):O.endsWith(".0")&&(O=O.slice(0,-2)),(O+" "+C.trim()+m).trim()},r=function(v,u){return u===void 0&&(u=0),n(v,u,"W")},s=function(v,u){if(u===void 0&&(u=0),!Number.isFinite(v))return String(v);var m=Number(v.toFixed(u)),c=m<0,f=Math.abs(m),p=f.toString().split(".");p[0]=p[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var C=p.join(".");return c?"-"+C:C},a=function(v){var u=20*Math.log10(v),m=u>=0?"+":"-",c=Math.abs(u);return c===1/0?c="Inf":c=c.toFixed(2),""+m+c+" dB"},g=null,x=function(v,u,m){if(u===void 0&&(u=0),m===void 0&&(m=""),!isFinite(v))return"NaN";var c=Math.floor(Math.log10(v)),f=Math.max(u*3,c),p=Math.floor(f/3),C=g[p],j=v/Math.pow(1e3,p),O=Math.max(0,2-f%3),b=j.toFixed(O);return(b+" "+C+" "+m).trim()},d=function(v,u){u===void 0&&(u="default");var m=Math.floor(v/10),c=Math.floor(m/3600),f=Math.floor(m%3600/60),p=m%60;if(u==="short"){var C=c>0?""+c+"h":"",j=f>0?""+f+"m":"",O=p>0?""+p+"s":"";return""+C+j+O}var b=String(c).padStart(2,"0"),I=String(f).padStart(2,"0"),_=String(p).padStart(2,"0");return b+":"+I+":"+_},h=function(v){if(!Number.isFinite(v))return v;var u=v.toString().split(".");return u[0]=u[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),u.join(".")}},5030:function(M,y,t){"use strict";t.d(y,{Bm:function(){return C}});var e=t(61652),i=t(80116),n=t(47868);/** + */var e=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y","R","Q","F","N","H"],s=e.indexOf(" "),n=function(v,u,m){if(u===void 0&&(u=-s),m===void 0&&(m=""),!isFinite(v))return v.toString();var c=Math.floor(Math.log10(Math.abs(v))),f=Math.max(u*3,c),p=Math.floor(f/3),C=e[Math.min(p+s,e.length-1)],j=v/Math.pow(1e3,p),O=j.toFixed(2);return O.endsWith(".00")?O=O.slice(0,-3):O.endsWith(".0")&&(O=O.slice(0,-2)),(O+" "+C.trim()+m).trim()},r=function(v,u){return u===void 0&&(u=0),n(v,u,"W")},i=function(v,u){if(u===void 0&&(u=0),!Number.isFinite(v))return String(v);var m=Number(v.toFixed(u)),c=m<0,f=Math.abs(m),p=f.toString().split(".");p[0]=p[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var C=p.join(".");return c?"-"+C:C},a=function(v){var u=20*Math.log10(v),m=u>=0?"+":"-",c=Math.abs(u);return c===1/0?c="Inf":c=c.toFixed(2),""+m+c+" dB"},g=null,x=function(v,u,m){if(u===void 0&&(u=0),m===void 0&&(m=""),!isFinite(v))return"NaN";var c=Math.floor(Math.log10(v)),f=Math.max(u*3,c),p=Math.floor(f/3),C=g[p],j=v/Math.pow(1e3,p),O=Math.max(0,2-f%3),b=j.toFixed(O);return(b+" "+C+" "+m).trim()},d=function(v,u){u===void 0&&(u="default");var m=Math.floor(v/10),c=Math.floor(m/3600),f=Math.floor(m%3600/60),p=m%60;if(u==="short"){var C=c>0?""+c+"h":"",j=f>0?""+f+"m":"",O=p>0?""+p+"s":"";return""+C+j+O}var b=String(c).padStart(2,"0"),I=String(f).padStart(2,"0"),_=String(p).padStart(2,"0");return b+":"+I+":"+_},h=function(v){if(!Number.isFinite(v))return v;var u=v.toString().split(".");return u[0]=u[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),u.join(".")}},5030:function(M,y,t){"use strict";t.d(y,{Bm:function(){return C}});var e=t(61652),s=t(80116),n=t(47868);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function r(O,b){(b==null||b>O.length)&&(b=O.length);for(var I=0,_=new Array(b);I=O.length?{done:!0}:{done:!1,value:O[_++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var g=(0,n.h)("hotkeys"),x={},d=[e.s6,e.Ri,e.iy,e.aW,e.Ss,e.re,e.gf,e.R,e.iU,e.zh,e.sP],h={},v=[],u=function(O){if(O===16)return"Shift";if(O===17)return"Ctrl";if(O===18)return"Alt";if(O===33)return"Northeast";if(O===34)return"Southeast";if(O===35)return"Southwest";if(O===36)return"Northwest";if(O===37)return"West";if(O===38)return"North";if(O===39)return"East";if(O===40)return"South";if(O===45)return"Insert";if(O===46)return"Delete";if(O>=48&&O<=57||O>=65&&O<=90)return String.fromCharCode(O);if(O>=96&&O<=105)return"Numpad"+(O-96);if(O>=112&&O<=123)return"F"+(O-111);if(O===188)return",";if(O===189)return"-";if(O===190)return"."},m=function(O){var b=String(O);if(b==="Ctrl+F5"||b==="Ctrl+R"){location.reload();return}if(b!=="Ctrl+F"&&!(O.event.defaultPrevented||O.isModifierKey()||d.includes(O.code))){var I=u(O.code);if(I){var _=x[I];if(_)return g.debug("macro",_),Byond.command(_);if(O.isDown()&&!h[I]){h[I]=!0;var S='TguiKeyDown "'+I+'"';return g.debug(S),Byond.command(S)}if(O.isUp()&&h[I]){h[I]=!1;var P='TguiKeyUp "'+I+'"';return g.debug(P),Byond.command(P)}}}},c=function(O){d.push(O)},f=function(O){var b=d.indexOf(O);b>=0&&d.splice(b,1)},p=function(){for(var O=a(Object.keys(h)),b;!(b=O()).done;){var I=b.value;h[I]&&(h[I]=!1,g.log('releasing key "'+I+'"'),Byond.command('TguiKeyUp "'+I+'"'))}},C=function(){Byond.winget("default.*").then(function(O){for(var b={},I=a(Object.keys(O)),_;!(_=I()).done;){var S=_.value,P=S.split("."),A=P[1],R=P[2];A&&R&&(b[A]||(b[A]={}),b[A][R]=O[S])}for(var K=/\\"/g,N=function(Q){return Q.substring(1,Q.length-1).replace(K,'"')},k=a(Object.keys(b)),X;!(X=k()).done;){var F=X.value,J=b[F],H=N(J.name);x[H]=N(J.command)}g.debug("loaded macros",x)}),i.Nh.on("window-blur",function(){p()}),i.Nh.on("key",function(O){for(var b=a(v),I;!(I=b()).done;){var _=I.value;_(O)}m(O)})},j=function(O){v.push(O);var b=!1;return function(){b||(b=!0,v.splice(v.indexOf(O),1))}}},15454:function(M,y,t){"use strict";t.r(y),t.d(y,{AICard:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.has_ai,v=d.integrity,u=d.backup_capacitor,m=d.flushing,c=d.has_laws,f=d.laws,p=d.wireless,C=d.radio;if(h===0)return(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Stored AI",children:(0,e.jsx)(n.az,{children:(0,e.jsx)("h3",{children:"No AI detected."})})})})});var j=null;v>=75?j="green":v>=25?j="yellow":j="red";var O=null;return u>=75&&(O="green"),u>=25?O="yellow":O="red",(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.wn,{title:"Stored AI",children:[(0,e.jsx)(n.az,{bold:!0,display:"inline-block",children:(0,e.jsx)("h3",{children:name})}),(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{color:j,value:v/100})}),(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.z2,{color:O,value:u/100})})]})}),(0,e.jsx)(n.az,{color:"red",children:(0,e.jsx)("h2",{children:m===1?"Wipe of AI in progress...":""})})]}),(0,e.jsx)(n.wn,{title:"Laws",children:!!c&&(0,e.jsx)(n.az,{children:f.map(function(b,I){return(0,e.jsx)(n.az,{display:"inline-block",children:b},I)})})||(0,e.jsx)(n.az,{color:"red",children:(0,e.jsx)("h3",{children:"No laws detected."})})}),(0,e.jsx)(n.wn,{title:"Actions",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Wireless Activity",children:(0,e.jsx)(n.$n,{icon:p?"check":"times",content:p?"Enabled":"Disabled",color:p?"green":"red",onClick:function(){return x("wireless")}})}),(0,e.jsx)(n.Ki.Item,{label:"Subspace Transceiver",children:(0,e.jsx)(n.$n,{icon:C?"check":"times",content:C?"Enabled":"Disabled",color:C?"green":"red",onClick:function(){return x("radio")}})}),(0,e.jsx)(n.Ki.Item,{label:"AI Power",children:(0,e.jsx)(n.$n.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:m||v===0,confirmColor:"red",content:"Shutdown",onClick:function(){return x("wipe")}})})]})})]})})}},85866:function(M,y,t){"use strict";t.r(y),t.d(y,{APC:function(){return g}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=t(13221),a=t(15665),g=function(m){var c=(0,i.Oc)(),f=c.act,p=c.data,C=(0,e.jsx)(h,{});return p.gridCheck?C=(0,e.jsx)(v,{}):p.failTime&&(C=(0,e.jsx)(u,{})),(0,e.jsx)(r.p8,{width:450,height:475,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:C})})},x={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},d={1:{icon:"terminal",content:"Override Programming",action:"hack"}},h=function(m){var c=(0,i.Oc)(),f=c.act,p=c.data,C=p.locked&&!p.siliconUser,j=p.normallyLocked,O=x[p.externalPower]||x[0],b=x[p.chargingStatus]||x[0],I=p.powerChannels||[],_=p.powerCellStatus/100;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.InterfaceLockNoticeBox,{deny:p.emagged,denialMessage:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{color:"bad",fontSize:"1.5rem",children:"Fault in ID authenticator."}),(0,e.jsx)(n.az,{color:"bad",children:"Please contact maintenance for service."})]})}),(0,e.jsx)(n.wn,{title:"Power Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Main Breaker",color:O.color,buttons:(0,e.jsx)(n.$n,{icon:p.isOperating?"power-off":"times",content:p.isOperating?"On":"Off",selected:p.isOperating&&!C,color:p.isOperating?"":"bad",disabled:C,onClick:function(){return f("breaker")}}),children:["[ ",O.externalPowerText," ]"]}),(0,e.jsx)(n.Ki.Item,{label:"Power Cell",children:(0,e.jsx)(n.z2,{color:"good",value:_})}),(0,e.jsxs)(n.Ki.Item,{label:"Charge Mode",color:b.color,buttons:(0,e.jsx)(n.$n,{icon:p.chargeMode?"sync":"times",content:p.chargeMode?"Auto":"Off",selected:p.chargeMode,disabled:C,onClick:function(){return f("charge")}}),children:["[ ",b.chargingText," ]"]})]})}),(0,e.jsx)(n.wn,{title:"Power Channels",children:(0,e.jsxs)(n.Ki,{children:[I.map(function(S){var P=S.topicParams;return(0,e.jsxs)(n.Ki.Item,{label:S.title,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{inline:!0,mx:2,color:S.status>=2?"good":"bad",children:S.status>=2?"On":"Off"}),(0,e.jsx)(n.$n,{icon:"sync",content:"Auto",selected:!C&&(S.status===1||S.status===3),disabled:C,onClick:function(){return f("channel",P.auto)}}),(0,e.jsx)(n.$n,{icon:"power-off",content:"On",selected:!C&&S.status===2,disabled:C,onClick:function(){return f("channel",P.on)}}),(0,e.jsx)(n.$n,{icon:"times",content:"Off",selected:!C&&S.status===0,disabled:C,onClick:function(){return f("channel",P.off)}})]}),children:[S.powerLoad," W"]},S.title)}),(0,e.jsx)(n.Ki.Item,{label:"Total Load",children:p.totalCharging?(0,e.jsxs)("b",{children:[p.totalLoad," W (+ ",p.totalCharging," W charging)"]}):(0,e.jsxs)("b",{children:[p.totalLoad," W"]})})]})}),(0,e.jsx)(n.wn,{title:"Misc",buttons:!!p.siliconUser&&(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:"Overload",onClick:function(){return f("overload")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Cover Lock",buttons:(0,e.jsx)(n.$n,{icon:p.coverLocked?"lock":"unlock",content:p.coverLocked?"Engaged":"Disengaged",selected:p.coverLocked,disabled:C,onClick:function(){return f("cover")}})}),(0,e.jsx)(n.Ki.Item,{label:"Night Shift Lighting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:"Disabled",selected:p.nightshiftSetting===2,onClick:function(){return f("nightshift",{nightshift:2})}}),(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:"Automatic",selected:p.nightshiftSetting===1,onClick:function(){return f("nightshift",{nightshift:1})}}),(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:"Enabled",selected:p.nightshiftSetting===3,onClick:function(){return f("nightshift",{nightshift:3})}})]})}),(0,e.jsx)(n.Ki.Item,{label:"Emergency Lighting",buttons:(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:p.emergencyLights?"Enabled":"Disabled",selected:p.emergencyLights,onClick:function(){return f("emergency_lighting")}})})]})})]})},v=function(m){return(0,e.jsxs)(s.FullscreenNotice,{title:"System Failure",children:[(0,e.jsx)(n.az,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(n.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(n.az,{fontSize:"1.5rem",bold:!0,children:"Power surge detected, grid check in effect..."})]})},u=function(m){var c=(0,i.Oc)(),f=c.data,p=c.act,C=(0,e.jsx)(n.$n,{icon:"repeat",content:"Restart Now",color:"good",onClick:function(){return p("reboot")}});return f.locked&&!f.siliconUser&&(C=(0,e.jsx)(n.az,{color:"bad",children:"Swipe an ID card for manual reboot."})),(0,e.jsxs)(n.Rr,{textAlign:"center",children:[(0,e.jsx)(n.az,{color:"bad",children:(0,e.jsx)("h1",{children:"SYSTEM FAILURE"})}),(0,e.jsx)(n.az,{color:"average",children:(0,e.jsx)("h2",{children:"I/O regulators malfunction detected! Waiting for system reboot..."})}),(0,e.jsxs)(n.az,{color:"good",children:["Automatic reboot in ",f.failTime," seconds..."]}),(0,e.jsx)(n.az,{mt:4,children:C})]})}},95054:function(M,y,t){"use strict";t.r(y),t.d(y,{AccountsTerminal:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(h){var v=(0,i.Oc)(),u=v.act,m=v.data,c=m.id_inserted,f=m.id_card,p=m.access_level,C=m.machine_id;return(0,e.jsx)(r.p8,{width:400,height:640,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Machine",color:"average",children:C}),(0,e.jsx)(n.Ki.Item,{label:"ID",children:(0,e.jsx)(n.$n,{icon:c?"eject":"sign-in-alt",fluid:!0,content:f,onClick:function(){return u("insert_card")}})})]})}),p>0&&(0,e.jsx)(a,{})]})})},a=function(h){var v=(0,i.Oc)(),u=v.act,m=v.data,c=m.creating_new_account,f=m.detailed_account_view;return(0,e.jsxs)(n.wn,{title:"Menu",children:[(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:!c&&!f,icon:"home",onClick:function(){return u("view_accounts_list")},children:"Home"}),(0,e.jsx)(n.tU.Tab,{selected:c,icon:"cog",onClick:function(){return u("create_account")},children:"New Account"}),c?"":(0,e.jsx)(n.tU.Tab,{disabled:c,icon:"print",onClick:function(){return u("print")},children:"Print"})]}),c&&(0,e.jsx)(g,{})||f&&(0,e.jsx)(x,{})||(0,e.jsx)(d,{})]})},g=function(h){var v=(0,i.Oc)().act,u=(0,i.QY)("holder",""),m=u[0],c=u[1],f=(0,i.QY)("money",""),p=f[0],C=f[1];return(0,e.jsxs)(n.wn,{title:"Create Account",level:2,children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Account Holder",children:(0,e.jsx)(n.pd,{value:m,fluid:!0,onInput:function(j,O){return c(O)}})}),(0,e.jsx)(n.Ki.Item,{label:"Initial Deposit",children:(0,e.jsx)(n.pd,{value:p,fluid:!0,onInput:function(j,O){return C(O)}})})]}),(0,e.jsx)(n.$n,{disabled:!m||!p,mt:1,fluid:!0,icon:"plus",onClick:function(){return v("finalise_create_account",{holder_name:m,starting_funds:p})},content:"Create"})]})},x=function(h){var v=(0,i.Oc)(),u=v.act,m=v.data,c=m.access_level,f=m.station_account_number,p=m.account_number,C=m.owner_name,j=m.money,O=m.suspended,b=m.transactions;return(0,e.jsxs)(n.wn,{title:"Account Details",level:2,buttons:(0,e.jsx)(n.$n,{icon:"ban",selected:O,content:"Suspend",onClick:function(){return u("toggle_suspension")}}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Account Number",children:["#",p]}),(0,e.jsx)(n.Ki.Item,{label:"Holder",children:C}),(0,e.jsxs)(n.Ki.Item,{label:"Balance",children:[j,"\u20AE"]}),(0,e.jsx)(n.Ki.Item,{label:"Status",color:O?"bad":"good",children:O?"SUSPENDED":"Active"})]}),(0,e.jsx)(n.wn,{title:"CentCom Administrator",level:2,mt:1,children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Payroll",children:(0,e.jsx)(n.$n.Confirm,{color:"bad",fluid:!0,icon:"ban",confirmIcon:"ban",content:"Revoke",confirmContent:"This cannot be undone.",disabled:p===f,onClick:function(){return u("revoke_payroll")}})})})}),c>=2&&(0,e.jsxs)(n.wn,{title:"Silent Funds Transfer",level:2,children:[(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return u("add_funds")},content:"Add Funds"}),(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return u("remove_funds")},content:"Remove Funds"})]}),(0,e.jsx)(n.wn,{title:"Transactions",level:2,mt:1,children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Timestamp"}),(0,e.jsx)(n.XI.Cell,{children:"Target"}),(0,e.jsx)(n.XI.Cell,{children:"Reason"}),(0,e.jsx)(n.XI.Cell,{children:"Value"}),(0,e.jsx)(n.XI.Cell,{children:"Terminal"})]}),b.map(function(I,_){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{children:[I.date," ",I.time]}),(0,e.jsx)(n.XI.Cell,{children:I.target_name}),(0,e.jsx)(n.XI.Cell,{children:I.purpose}),(0,e.jsxs)(n.XI.Cell,{children:[I.amount,"\u20AE"]}),(0,e.jsx)(n.XI.Cell,{children:I.source_terminal})]},_)})]})})]})},d=function(h){var v=(0,i.Oc)(),u=v.act,m=v.data,c=m.accounts;return(0,e.jsx)(n.wn,{title:"NanoTrasen Accounts",level:2,children:c.length&&(0,e.jsx)(n.Ki,{children:c.map(function(f){return(0,e.jsx)(n.Ki.Item,{label:f.owner_name+f.suspended,color:f.suspended?"bad":null,children:(0,e.jsx)(n.$n,{fluid:!0,content:"#"+f.account_number,onClick:function(){return u("view_account_detail",{account_index:f.account_index})}})},f.account_index)})})||(0,e.jsx)(n.az,{color:"bad",children:"There are no accounts available."})})}},12704:function(M,y,t){"use strict";t.r(y),t.d(y,{AdminShuttleController:function(){return a},ShuttleList:function(){return g}});var e=t(88095),i=t(11358),n=t(4413),r=t(92514),s=t(84905),a=function(){return(0,e.jsx)(s.p8,{width:600,height:600,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(g,{})})})},g=function(d){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.shuttles,c=u.overmap_ships;return(0,e.jsxs)(r.wn,{noTopPadding:!0,children:[(0,e.jsx)(r.wn,{title:"Classic Shuttles",children:(0,e.jsx)(r.XI,{children:(0,i.Ul)(function(f){return f.name})(m).map(function(f){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,content:"JMP",onClick:function(){return v("adminobserve",{ref:f.ref})}})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,content:"Fly",onClick:function(){return v("classicmove",{ref:f.ref})}})}),(0,e.jsx)(r.XI.Cell,{children:f.name}),(0,e.jsx)(r.XI.Cell,{children:f.current_location}),(0,e.jsx)(r.XI.Cell,{children:x(f.status)})]},f.ref)})})}),(0,e.jsx)(r.wn,{title:"Overmap Ships",children:(0,e.jsx)(r.XI,{children:(0,i.Ul)(function(f){var p;return((p=f.name)==null?void 0:p.toLowerCase())||f.name||f.ref})(c).map(function(f){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{content:"JMP",onClick:function(){return v("adminobserve",{ref:f.ref})}})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{content:"Control",onClick:function(){return v("overmap_control",{ref:f.ref})}})}),(0,e.jsx)(r.XI.Cell,{children:f.name})]},f.ref)})})})]})},x=function(d){switch(d){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},61633:function(M,y,t){"use strict";t.r(y),t.d(y,{AdminTicketPanel:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},a=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=h.id,u=h.title,m=h.name,c=h.state,f=h.opened_at,p=h.closed_at,C=h.opened_at_date,j=h.closed_at_date,O=h.actions,b=h.log;return(0,e.jsx)(r.p8,{width:900,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Ticket #"+v,buttons:(0,e.jsxs)(n.az,{nowrap:!0,children:[(0,e.jsx)(n.$n,{icon:"pen",content:"Rename Ticket",onClick:function(){return d("retitle")}})," ",(0,e.jsx)(n.$n,{content:"Legacy UI",onClick:function(){return d("legacy")}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Admin Help Ticket",children:["#",v,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:m}})]}),(0,e.jsx)(n.Ki.Item,{label:"State",children:s[c]}),s[c]===s.open?(0,e.jsxs)(n.Ki.Item,{label:"Opened At",children:[C," (",Math.round(f/600*10)/10," ","minutes ago.)"]}):(0,e.jsxs)(n.Ki.Item,{label:"Closed At",children:[j," (",Math.round(p/600*10)/10," ","minutes ago.)"," ",(0,e.jsx)(n.$n,{content:"Reopen",onClick:function(){return d("reopen")}})]}),(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:O}})}),(0,e.jsx)(n.Ki.Item,{label:"Log",children:Object.keys(b).map(function(I,_){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:b[I]}},_)})})]})})})})}},43587:function(M,y,t){"use strict";t.r(y),t.d(y,{AgentCard:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.entries,v=d.electronic_warfare;return(0,e.jsx)(r.p8,{width:550,height:400,theme:"syndicate",children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Info",children:(0,e.jsx)(n.XI,{children:h.map(function(u){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{onClick:function(){return x(u.name.toLowerCase().replace(/ /g,""))},icon:"cog"})}),(0,e.jsx)(n.XI.Cell,{children:u.name}),(0,e.jsx)(n.XI.Cell,{children:u.value})]},u.name)})})}),(0,e.jsx)(n.wn,{title:"Electronic Warfare",children:(0,e.jsx)(n.$n.Checkbox,{checked:v,content:v?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled.",onClick:function(){return x("electronic_warfare")}})})]})})}},56307:function(M,y,t){"use strict";t.r(y),t.d(y,{AiAirlock:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}},a=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=s[h.power.main]||s[0],u=s[h.power.backup]||s[0],m=s[h.shock]||s[0];return(0,e.jsx)(r.p8,{width:500,height:390,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Power Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Main",color:v.color,buttons:(0,e.jsx)(n.$n,{icon:"lightbulb-o",disabled:!h.power.main,content:"Disrupt",onClick:function(){return d("disrupt-main")}}),children:[h.power.main?"Online":"Offline"," ",(!h.wires.main_1||!h.wires.main_2)&&"[Wires have been cut!]"||h.power.main_timeleft>0&&"["+h.power.main_timeleft+"s]"]}),(0,e.jsxs)(n.Ki.Item,{label:"Backup",color:u.color,buttons:(0,e.jsx)(n.$n,{icon:"lightbulb-o",disabled:!h.power.backup,content:"Disrupt",onClick:function(){return d("disrupt-backup")}}),children:[h.power.backup?"Online":"Offline"," ",(!h.wires.backup_1||!h.wires.backup_2)&&"[Wires have been cut!]"||h.power.backup_timeleft>0&&"["+h.power.backup_timeleft+"s]"]}),(0,e.jsxs)(n.Ki.Item,{label:"Electrify",color:m.color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"wrench",disabled:!(h.wires.shock&&h.shock===0),content:"Restore",onClick:function(){return d("shock-restore")}}),(0,e.jsx)(n.$n,{icon:"bolt",disabled:!h.wires.shock,content:"Temporary",onClick:function(){return d("shock-temp")}}),(0,e.jsx)(n.$n,{icon:"bolt",disabled:!h.wires.shock,content:"Permanent",onClick:function(){return d("shock-perm")}})]}),children:[h.shock===2?"Safe":"Electrified"," ",!h.wires.shock&&"[Wires have been cut!]"||h.shock_timeleft>0&&"["+h.shock_timeleft+"s]"||h.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.jsx)(n.wn,{title:"Access and Door Control",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"ID Scan",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:h.id_scanner?"power-off":"times",content:h.id_scanner?"Enabled":"Disabled",selected:h.id_scanner,disabled:!h.wires.id_scanner,onClick:function(){return d("idscan-toggle")}}),children:!h.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Divider,{}),(0,e.jsx)(n.Ki.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:h.locked?"lock":"unlock",content:h.locked?"Lowered":"Raised",selected:h.locked,disabled:!h.wires.bolts,onClick:function(){return d("bolt-toggle")}}),children:!h.wires.bolts&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:h.lights?"power-off":"times",content:h.lights?"Enabled":"Disabled",selected:h.lights,disabled:!h.wires.lights,onClick:function(){return d("light-toggle")}}),children:!h.wires.lights&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:h.safe?"power-off":"times",content:h.safe?"Enabled":"Disabled",selected:h.safe,disabled:!h.wires.safe,onClick:function(){return d("safe-toggle")}}),children:!h.wires.safe&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:h.speed?"power-off":"times",content:h.speed?"Enabled":"Disabled",selected:h.speed,disabled:!h.wires.timing,onClick:function(){return d("speed-toggle")}}),children:!h.wires.timing&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Divider,{}),(0,e.jsx)(n.Ki.Item,{label:"Door Control",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:h.opened?"sign-out-alt":"sign-in-alt",content:h.opened?"Open":"Closed",selected:h.opened,disabled:h.locked||h.welded,onClick:function(){return d("open-close")}}),children:!!(h.locked||h.welded)&&(0,e.jsxs)("span",{children:["[Door is ",h.locked?"bolted":"",h.locked&&h.welded?" and ":"",h.welded?"welded":"","!]"]})})]})})]})})}},43108:function(M,y,t){"use strict";t.r(y),t.d(y,{AiRestorer:function(){return s},AiRestorerContent:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(){return(0,e.jsx)(r.p8,{width:370,height:360,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=h.AI_present,u=h.error,m=h.name,c=h.laws,f=h.isDead,p=h.restoring,C=h.health,j=h.ejectable;return(0,e.jsxs)(e.Fragment,{children:[u&&(0,e.jsx)(n.IC,{textAlign:"center",children:u}),!!j&&(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",content:v?m:"----------",disabled:!v,onClick:function(){return d("PRG_eject")}}),!!v&&(0,e.jsxs)(n.wn,{title:j?"System Status":m,buttons:(0,e.jsx)(n.az,{inline:!0,bold:!0,color:f?"bad":"good",children:f?"Nonfunctional":"Functional"}),children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{value:C,minValue:0,maxValue:100,ranges:{good:[70,1/0],average:[50,70],bad:[-1/0,50]}})})}),!!p&&(0,e.jsx)(n.az,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"plus",content:"Begin Reconstruction",disabled:p,mt:1,onClick:function(){return d("PRG_beginReconstruction")}}),(0,e.jsx)(n.wn,{title:"Laws",level:2,children:c.map(function(O){return(0,e.jsx)(n.az,{className:"candystripe",children:O},O)})})]})]})}},75160:function(M,y,t){"use strict";t.r(y),t.d(y,{AiSupermatter:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=t(13221),a=function(d){var h=(0,i.Oc)().data,v=h.integrity_percentage,u=h.ambient_temp,m=h.ambient_pressure,c=h.detonating,f=(0,e.jsx)(x,{});return c&&(f=(0,e.jsx)(g,{})),(0,e.jsx)(r.p8,{width:500,height:300,children:(0,e.jsx)(r.p8.Content,{children:f})})},g=function(d){return(0,e.jsx)(s.FullscreenNotice,{title:"DETONATION IMMINENT",children:(0,e.jsxs)(n.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(n.In,{color:"bad",name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)(n.az,{color:"bad",children:"CRYSTAL DELAMINATING"}),(0,e.jsx)(n.az,{color:"bad",children:"Evacuate area immediately"})]})})},x=function(d){var h=(0,i.Oc)().data,v=h.integrity_percentage,u=h.ambient_temp,m=h.ambient_pressure;return(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Crystal Integrity",children:(0,e.jsx)(n.z2,{value:v,maxValue:100,ranges:{good:[90,1/0],average:[25,90],bad:[-1/0,25]}})}),(0,e.jsx)(n.Ki.Item,{label:"Environment Temperature",children:(0,e.jsxs)(n.z2,{value:u,maxValue:1e4,ranges:{bad:[5e3,1/0],average:[4e3,5e3],good:[-1/0,4e3]},children:[u," K"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Environment Pressure",children:[m," kPa"]})]})})}},42537:function(M,y,t){"use strict";t.r(y),t.d(y,{AirAlarm:function(){return h}});var e=t(88095),i=t(5229),n=t(44583),r=t(4413),s=t(92514),a=t(1568),g=t(84905),x=t(10652),d=t(15665),h=function(b){var I=function(X){K(X)},_=(0,r.Oc)(),S=_.act,P=_.data,A=(0,n.useState)(""),R=A[0],K=A[1],N=P.locked&&!P.siliconUser&&!P.remoteUser;return(0,e.jsx)(g.p8,{width:440,height:650,children:(0,e.jsxs)(g.p8.Content,{scrollable:!0,children:[(0,e.jsx)(d.InterfaceLockNoticeBox,{}),(0,e.jsx)(v,{}),(0,e.jsx)(u,{}),!N&&(0,e.jsx)(c,{screen:R,onScreen:I})]})})},v=function(b){var I=(0,r.Oc)().data,_=(I.environment_data||[]).filter(function(A){return A.value>=.01}),S={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},P=S[I.danger_level]||S[0];return(0,e.jsx)(s.wn,{title:"Air Status",children:(0,e.jsxs)(s.Ki,{children:[_.length>0&&(0,e.jsxs)(e.Fragment,{children:[_.map(function(A){var R=S[A.danger_level]||S[0];return(0,e.jsxs)(s.Ki.Item,{label:(0,a.wM)(A.name),color:R.color,children:[(0,i.Mg)(A.value,2),A.unit]},A.name)}),(0,e.jsx)(s.Ki.Item,{label:"Local status",color:P.color,children:P.localStatusText}),(0,e.jsx)(s.Ki.Item,{label:"Area status",color:I.atmos_alarm||I.fire_alarm?"bad":"good",children:I.atmos_alarm&&"Atmosphere Alarm"||I.fire_alarm&&"Fire Alarm"||"Nominal"})]})||(0,e.jsx)(s.Ki.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!I.emagged&&(0,e.jsx)(s.Ki.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},u=function(b){var I=(0,r.Oc)(),_=I.act,S=I.data,P=S.target_temperature,A=S.rcon;return(0,e.jsx)(s.wn,{title:"Comfort Settings",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"Remote Control",children:[(0,e.jsx)(s.$n,{selected:A===1,content:"Off",onClick:function(){return _("rcon",{rcon:1})}}),(0,e.jsx)(s.$n,{selected:A===2,content:"Auto",onClick:function(){return _("rcon",{rcon:2})}}),(0,e.jsx)(s.$n,{selected:A===3,content:"On",onClick:function(){return _("rcon",{rcon:3})}})]}),(0,e.jsx)(s.Ki.Item,{label:"Thermostat",children:(0,e.jsx)(s.$n,{content:P,onClick:function(){return _("temperature")}})})]})})},m={home:{title:"Air Controls",component:function(){return f}},vents:{title:"Vent Controls",component:function(){return p}},scrubbers:{title:"Scrubber Controls",component:function(){return C}},modes:{title:"Operating Mode",component:function(){return j}},thresholds:{title:"Alarm Thresholds",component:function(){return O}}},c=function(b){var I=m[b.screen]||m.home,_=I.component();return(0,e.jsx)(s.wn,{title:I.title,buttons:b.screen&&(0,e.jsx)(s.$n,{icon:"arrow-left",content:"Back",onClick:function(){return b.onScreen()}}),children:(0,e.jsx)(_,{onScreen:b.onScreen})})},f=function(b){var I=(0,r.Oc)(),_=I.act,S=I.data,P=S.mode,A=S.atmos_alarm;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.$n,{icon:A?"exclamation-triangle":"exclamation",color:A&&"caution",content:"Area Atmosphere Alarm",onClick:function(){return _(A?"reset":"alarm")}}),(0,e.jsx)(s.az,{mt:1}),(0,e.jsx)(s.$n,{icon:P===3?"exclamation-triangle":"exclamation",color:P===3&&"danger",content:"Panic Siphon",onClick:function(){return _("mode",{mode:P===3?1:3})}}),(0,e.jsx)(s.az,{mt:2}),(0,e.jsx)(s.$n,{icon:"sign-out-alt",content:"Vent Controls",onClick:function(){return b.onScreen("vents")}}),(0,e.jsx)(s.az,{mt:1}),(0,e.jsx)(s.$n,{icon:"filter",content:"Scrubber Controls",onClick:function(){return b.onScreen("scrubbers")}}),(0,e.jsx)(s.az,{mt:1}),(0,e.jsx)(s.$n,{icon:"cog",content:"Operating Mode",onClick:function(){return b.onScreen("modes")}}),(0,e.jsx)(s.az,{mt:1}),(0,e.jsx)(s.$n,{icon:"chart-bar",content:"Alarm Thresholds",onClick:function(){return b.onScreen("thresholds")}})]})},p=function(b){var I=(0,r.Oc)().data,_=I.vents;return!_||_.length===0?"Nothing to show":_.map(function(S){return(0,e.jsx)(x.Vent,{vent:S},S.id_tag)})},C=function(b){var I=(0,r.Oc)().data,_=I.scrubbers;return!_||_.length===0?"Nothing to show":_.map(function(S){return(0,e.jsx)(x.Scrubber,{scrubber:S},S.id_tag)})},j=function(b){var I=(0,r.Oc)(),_=I.act,S=I.data,P=S.modes;return!P||P.length===0?"Nothing to show":P.map(function(A){return(0,e.jsxs)(n.Fragment,{children:[(0,e.jsx)(s.$n,{icon:A.selected?"check-square-o":"square-o",selected:A.selected,color:A.selected&&A.danger&&"danger",content:A.name,onClick:function(){return _("mode",{mode:A.mode})}}),(0,e.jsx)(s.az,{mt:1})]},A.mode)})},O=function(b){var I=(0,r.Oc)(),_=I.act,S=I.data,P=S.thresholds;return(0,e.jsxs)("table",{className:"LabeledList",style:{width:"100%"},children:[(0,e.jsx)("thead",{children:(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{}),(0,e.jsx)("td",{className:"color-bad",children:"min2"}),(0,e.jsx)("td",{className:"color-average",children:"min1"}),(0,e.jsx)("td",{className:"color-average",children:"max1"}),(0,e.jsx)("td",{className:"color-bad",children:"max2"})]})}),(0,e.jsx)("tbody",{children:P.map(function(A){return(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{className:"LabeledList__label",children:(0,e.jsx)("span",{className:"color-"+(0,a.b_)(A.name),children:(0,a.wM)(A.name)})}),A.settings.map(function(R){return(0,e.jsx)("td",{children:(0,e.jsx)(s.$n,{content:(0,i.Mg)(R.selected,2),onClick:function(){return _("threshold",{env:R.env,var:R.val})}})},R.val)})]},A.name)})})]})}},63397:function(M,y,t){"use strict";t.r(y),t.d(y,{AlertModal:function(){return h}});var e=t(88095),i=t(44583),n=t(61652),r=t(4413),s=t(92514),a=t(84905),g=t(18513),x=-1,d=1,h=function(m){var c=(0,r.Oc)(),f=c.act,p=c.data,C=p.autofocus,j=p.buttons,O=j===void 0?[]:j,b=p.large_buttons,I=p.message,_=I===void 0?"":I,S=p.timeout,P=p.title,A=(0,i.useState)(0),R=A[0],K=A[1],N=115+(_.length>30?Math.ceil(_.length/4):0)+(_.length&&b?5:0),k=325+(O.length>2?55:0),X=function(F){R===0&&F===x?K(O.length-1):R===O.length-1&&F===d?K(0):K(R+F)};return(0,e.jsxs)(a.p8,{height:N,title:P,width:k,children:[!!S&&(0,e.jsx)(g.Loader,{value:S}),(0,e.jsx)(a.p8.Content,{onKeyDown:function(F){var J=window.event?F.which:F.keyCode;J===n.iy||J===n.Ri?f("choose",{choice:O[R]}):J===n.s6?f("cancel"):J===n.iU?(F.preventDefault(),X(x)):(J===n.aW||J===n.zh)&&(F.preventDefault(),X(d))},children:(0,e.jsx)(s.wn,{fill:!0,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,m:1,children:(0,e.jsx)(s.az,{color:"label",overflow:"hidden",children:_})}),(0,e.jsxs)(s.BJ.Item,{children:[!!C&&(0,e.jsx)(s.y5,{}),(0,e.jsx)(v,{selected:R})]})]})})})]})},v=function(m){var c=(0,r.Oc)().data,f=c.buttons,p=f===void 0?[]:f,C=c.large_buttons,j=c.swapped_buttons,O=m.selected;return(0,e.jsx)(s.so,{align:"center",direction:j?"row":"row-reverse",fill:!0,justify:"space-around",wrap:!0,children:p==null?void 0:p.map(function(b,I){return C&&p.length<3?(0,e.jsx)(s.so.Item,{grow:!0,children:(0,e.jsx)(u,{button:b,id:I.toString(),selected:O===I})},I):(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(u,{button:b,id:I.toString(),selected:O===I})},I)})})},u=function(m){var c=(0,r.Oc)(),f=c.act,p=c.data,C=p.large_buttons,j=m.button,O=m.selected,b=j.length>7?j.length:7;return(0,e.jsx)(s.$n,{fluid:!!C,height:!!C&&2,onClick:function(){return f("choose",{choice:j})},m:.5,pl:2,pr:2,pt:C?.33:0,selected:O,textAlign:"center",width:!C&&b,children:C?j.toUpperCase():j})}},140:function(M,y,t){"use strict";t.r(y),t.d(y,{AlgaeFarm:function(){return a}});var e=t(88095),i=t(33854),n=t(4413),r=t(92514),s=t(84905),a=function(g){var x=(0,n.Oc)(),d=x.act,h=x.data,v=h.usePower,u=h.materials,m=h.last_flow_rate,c=h.last_power_draw,f=h.inputDir,p=h.outputDir,C=h.input,j=h.output,O=h.errorText;return(0,e.jsx)(s.p8,{width:500,height:300,children:(0,e.jsxs)(s.p8.Content,{children:[O&&(0,e.jsx)(r.IC,{warning:!0,children:(0,e.jsx)(r.az,{display:"inline-block",verticalAlign:"middle",children:O})}),(0,e.jsxs)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",content:"Processing",selected:v===2,onClick:function(){return d("toggle")}}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Flow Rate",children:[m," L/s"]}),(0,e.jsxs)(r.Ki.Item,{label:"Power Draw",children:[c," W"]}),(0,e.jsx)(r.Ki.Divider,{size:1}),u.map(function(b){return(0,e.jsxs)(r.Ki.Item,{label:(0,i.ZH)(b.display),children:[(0,e.jsxs)(r.z2,{width:"80%",value:b.qty,maxValue:b.max,children:[b.qty,"/",b.max]}),(0,e.jsx)(r.$n,{ml:1,content:"Eject",onClick:function(){return d("ejectMaterial",{mat:b.name})}})]},b.name)})]}),(0,e.jsx)(r.XI,{mt:1,children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.wn,{title:"Gas Input ("+f+")",children:C?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[C.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:C.name,children:[C.percent,"% (",C.moles," moles)"]})]}):(0,e.jsx)(r.az,{color:"bad",children:"No connection detected."})})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.wn,{title:"Gas Output ("+p+")",children:j?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[j.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:j.name,children:[j.percent,"% (",j.moles," moles)"]})]}):(0,e.jsx)(r.az,{color:"bad",children:"No connection detected."})})})]})})]})]})})}},14600:function(M,y,t){"use strict";t.r(y),t.d(y,{AppearanceChanger:function(){return x}});var e=t(88095),i=t(11358),n=t(33854),r=t(44583),s=t(4413),a=t(92514),g=t(84905),x=function(j){var O=(0,s.Oc)(),b=O.act,I=O.config,_=O.data,S=_.name,P=_.specimen,A=_.gender,R=_.gender_id,K=_.hair_style,N=_.facial_hair_style,k=_.ear_style,X=_.tail_style,F=_.wing_style,J=_.markings,H=_.change_race,Q=_.change_gender,Z=_.change_eye_color,V=_.change_skin_tone,z=_.change_skin_color,Y=_.change_hair_color,ee=_.change_facial_hair_color,oe=_.change_hair,ne=_.change_facial_hair,ce=_.mapRef,de=I.title,ve=Z||V||z||Y||ee,pe=-1;H?pe=0:Q?pe=1:ve?pe=2:oe?pe=4:ne&&(pe=5);var me=(0,r.useState)(pe),be=me[0],we=me[1];return(0,e.jsx)(g.p8,{width:700,height:650,title:(0,n.jT)(de),children:(0,e.jsxs)(g.p8.Content,{children:[(0,e.jsx)(a.wn,{title:"Reflection",children:(0,e.jsxs)(a.so,{children:[(0,e.jsx)(a.so.Item,{grow:1,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Name",children:S}),(0,e.jsx)(a.Ki.Item,{label:"Species",color:H?null:"grey",children:P}),(0,e.jsx)(a.Ki.Item,{label:"Biological Sex",color:Q?null:"grey",children:A?(0,n.ZH)(A):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Gender Identity",color:ve?null:"grey",children:R?(0,n.ZH)(R):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Hair Style",color:oe?null:"grey",children:K?(0,n.ZH)(K):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Facial Hair Style",color:ne?null:"grey",children:N?(0,n.ZH)(N):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Ear Style",color:oe?null:"grey",children:k?(0,n.ZH)(k):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Tail Style",color:oe?null:"grey",children:X?(0,n.ZH)(X):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Wing Style",color:oe?null:"grey",children:F?(0,n.ZH)(F):"Not Set"})]})}),(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.D1,{style:{width:"256px",height:"256px"},params:{id:ce,type:"map"}})})]})}),(0,e.jsxs)(a.tU,{children:[H?(0,e.jsx)(a.tU.Tab,{selected:be===0,onClick:function(){return we(0)},children:"Race"}):null,Q?(0,e.jsx)(a.tU.Tab,{selected:be===1,onClick:function(){return we(1)},children:"Gender & Sex"}):null,ve?(0,e.jsx)(a.tU.Tab,{selected:be===2,onClick:function(){return we(2)},children:"Colors"}):null,oe?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.tU.Tab,{selected:be===3,onClick:function(){return we(3)},children:"Hair"}),(0,e.jsx)(a.tU.Tab,{selected:be===5,onClick:function(){return we(5)},children:"Ear"}),(0,e.jsx)(a.tU.Tab,{selected:be===6,onClick:function(){return we(6)},children:"Tail"}),(0,e.jsx)(a.tU.Tab,{selected:be===7,onClick:function(){return we(7)},children:"Wing"}),(0,e.jsx)(a.tU.Tab,{selected:be===8,onClick:function(){return we(8)},children:"Markings"})]}):null,ne?(0,e.jsx)(a.tU.Tab,{selected:be===4,onClick:function(){return we(4)},children:"Facial Hair"}):null]}),(0,e.jsxs)(a.az,{height:"43%",children:[H&&be===0?(0,e.jsx)(d,{}):null,Q&&be===1?(0,e.jsx)(h,{}):null,ve&&be===2?(0,e.jsx)(v,{}):null,oe&&be===3?(0,e.jsx)(u,{}):null,ne&&be===4?(0,e.jsx)(m,{}):null,oe&&be===5?(0,e.jsx)(c,{}):null,oe&&be===6?(0,e.jsx)(f,{}):null,oe&&be===7?(0,e.jsx)(p,{}):null,oe&&be===8?(0,e.jsx)(C,{}):null]})]})})},d=function(j){var O=(0,s.Oc)(),b=O.act,I=O.data,_=I.species,S=I.specimen,P=(0,i.Ul)(function(A){return A.specimen})(_||[]);return(0,e.jsx)(a.wn,{title:"Species",fill:!0,scrollable:!0,children:P.map(function(A){return(0,e.jsx)(a.$n,{content:A.specimen,selected:S===A.specimen,onClick:function(){return b("race",{race:A.specimen})}},A.specimen)})})},h=function(j){var O=(0,s.Oc)(),b=O.act,I=O.data,_=I.gender,S=I.gender_id,P=I.genders,A=I.id_genders;return(0,e.jsx)(a.wn,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Biological Sex",children:P.map(function(R){return(0,e.jsx)(a.$n,{selected:R.gender_key===_,content:R.gender_name,onClick:function(){return b("gender",{gender:R.gender_key})}},R.gender_key)})}),(0,e.jsx)(a.Ki.Item,{label:"Gender Identity",children:A.map(function(R){return(0,e.jsx)(a.$n,{selected:R.gender_key===S,content:R.gender_name,onClick:function(){return b("gender_id",{gender_id:R.gender_key})}},R.gender_key)})})]})})},v=function(j){var O=(0,s.Oc)(),b=O.act,I=O.data,_=I.change_eye_color,S=I.change_skin_tone,P=I.change_skin_color,A=I.change_hair_color,R=I.change_facial_hair_color,K=I.eye_color,N=I.skin_color,k=I.hair_color,X=I.facial_hair_color,F=I.ears_color,J=I.ears2_color,H=I.tail_color,Q=I.tail2_color,Z=I.wing_color,V=I.wing2_color;return(0,e.jsxs)(a.wn,{title:"Colors",fill:!0,scrollable:!0,children:[_?(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:K,mr:1}),(0,e.jsx)(a.$n,{content:"Change Eye Color",onClick:function(){return b("eye_color")}})]}):null,S?(0,e.jsx)(a.az,{children:(0,e.jsx)(a.$n,{content:"Change Skin Tone",onClick:function(){return b("skin_tone")}})}):null,P?(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:N,mr:1}),(0,e.jsx)(a.$n,{content:"Change Skin Color",onClick:function(){return b("skin_color")}})]}):null,A?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:k,mr:1}),(0,e.jsx)(a.$n,{content:"Change Hair Color",onClick:function(){return b("hair_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:F,mr:1}),(0,e.jsx)(a.$n,{content:"Change Ears Color",onClick:function(){return b("ears_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:J,mr:1}),(0,e.jsx)(a.$n,{content:"Change Secondary Ears Color",onClick:function(){return b("ears2_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:H,mr:1}),(0,e.jsx)(a.$n,{content:"Change Tail Color",onClick:function(){return b("tail_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:Q,mr:1}),(0,e.jsx)(a.$n,{content:"Change Secondary Tail Color",onClick:function(){return b("tail2_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:Z,mr:1}),(0,e.jsx)(a.$n,{content:"Change Wing Color",onClick:function(){return b("wing_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:V,mr:1}),(0,e.jsx)(a.$n,{content:"Change Secondary Wing Color",onClick:function(){return b("wing2_color")}})]})]}):null,R?(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:X,mr:1}),(0,e.jsx)(a.$n,{content:"Change Facial Hair Color",onClick:function(){return b("facial_hair_color")}})]}):null]})},u=function(j){var O=(0,s.Oc)(),b=O.act,I=O.data,_=I.hair_style,S=I.hair_styles;return(0,e.jsx)(a.wn,{title:"Hair",fill:!0,scrollable:!0,children:S.map(function(P){return(0,e.jsx)(a.$n,{onClick:function(){return b("hair",{hair:P.hairstyle})},selected:P.hairstyle===_,content:P.hairstyle},P.hairstyle)})})},m=function(j){var O=(0,s.Oc)(),b=O.act,I=O.data,_=I.facial_hair_style,S=I.facial_hair_styles;return(0,e.jsx)(a.wn,{title:"Facial Hair",fill:!0,scrollable:!0,children:S.map(function(P){return(0,e.jsx)(a.$n,{onClick:function(){return b("facial_hair",{facial_hair:P.facialhairstyle})},selected:P.facialhairstyle===_,content:P.facialhairstyle},P.facialhairstyle)})})},c=function(j){var O=(0,s.Oc)(),b=O.act,I=O.data,_=I.ear_style,S=I.ear_styles;return(0,e.jsxs)(a.wn,{title:"Ears",fill:!0,scrollable:!0,children:[(0,e.jsx)(a.$n,{onClick:function(){return b("ear",{clear:!0})},selected:_===null,content:"-- Not Set --"}),(0,i.Ul)(function(P){return P.name.toLowerCase()})(S).map(function(P){return(0,e.jsx)(a.$n,{onClick:function(){return b("ear",{ref:P.instance})},selected:P.name===_,content:P.name},P.instance)})]})},f=function(j){var O=(0,s.Oc)(),b=O.act,I=O.data,_=I.tail_style,S=I.tail_styles;return(0,e.jsxs)(a.wn,{title:"Tails",fill:!0,scrollable:!0,children:[(0,e.jsx)(a.$n,{onClick:function(){return b("tail",{clear:!0})},selected:_===null,content:"-- Not Set --"}),(0,i.Ul)(function(P){return P.name.toLowerCase()})(S).map(function(P){return(0,e.jsx)(a.$n,{onClick:function(){return b("tail",{ref:P.instance})},selected:P.name===_,content:P.name},P.instance)})]})},p=function(j){var O=(0,s.Oc)(),b=O.act,I=O.data,_=I.wing_style,S=I.wing_styles;return(0,e.jsxs)(a.wn,{title:"Wings",fill:!0,scrollable:!0,children:[(0,e.jsx)(a.$n,{onClick:function(){return b("wing",{clear:!0})},selected:_===null,content:"-- Not Set --"}),(0,i.Ul)(function(P){return P.name.toLowerCase()})(S).map(function(P){return(0,e.jsx)(a.$n,{onClick:function(){return b("wing",{ref:P.instance})},selected:P.name===_,content:P.name},P.instance)})]})},C=function(j){var O=(0,s.Oc)(),b=O.act,I=O.data,_=I.markings;return(0,e.jsxs)(a.wn,{title:"Markings",fill:!0,scrollable:!0,children:[(0,e.jsx)(a.az,{children:(0,e.jsx)(a.$n,{content:"Add Marking",onClick:function(){return b("marking",{todo:1,name:"na"})}})}),(0,e.jsx)(a.Ki,{children:_.map(function(S){return(0,e.jsxs)(a.Ki.Item,{label:S.marking_name,children:[(0,e.jsx)(a.BK,{color:S.marking_color,mr:1}),(0,e.jsx)(a.$n,{content:"Change Color",onClick:function(){return b("marking",{todo:4,name:S.marking_name})}}),(0,e.jsx)(a.$n,{content:"-",onClick:function(){return b("marking",{todo:0,name:S.marking_name})}}),(0,e.jsx)(a.$n,{content:"Move down",onClick:function(){return b("marking",{todo:3,name:S.marking_name})}}),(0,e.jsx)(a.$n,{content:"Move up",onClick:function(){return b("marking",{todo:2,name:S.marking_name})}})]},S.marking_name)})})]})}},8536:function(M,y,t){"use strict";t.r(y),t.d(y,{ArcadeBattle:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.name,v=d.temp,u=d.enemyAction,m=d.enemyName,c=d.playerHP,f=d.playerMP,p=d.enemyHP,C=d.enemyMP,j=d.gameOver;return(0,e.jsx)(r.p8,{width:400,height:240,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{title:m,textAlign:"center",children:[(0,e.jsxs)(n.wn,{color:"label",children:[(0,e.jsx)(n.az,{children:v}),(0,e.jsx)(n.az,{children:!j&&u})]}),(0,e.jsxs)(n.so,{spacing:1,children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Player Health",children:(0,e.jsxs)(n.z2,{value:c,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[c,"HP"]})}),(0,e.jsx)(n.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(n.z2,{value:f,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[f,"MP"]})})]})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Enemy HP",children:(0,e.jsxs)(n.z2,{value:p,minValue:0,maxValue:45,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[p,"HP"]})})})})]}),j&&(0,e.jsx)(n.$n,{fluid:!0,mt:1,color:"green",content:"New Game",onClick:function(){return x("newgame")}})||(0,e.jsxs)(n.so,{mt:2,justify:"space-between",spacing:1,children:[(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",onClick:function(){return x("attack")},content:"Attack!"})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",onClick:function(){return x("heal")},content:"Heal!"})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",onClick:function(){return x("charge")},content:"Recharge!"})})]})]})})})}},59854:function(M,y,t){"use strict";t.r(y),t.d(y,{AreaScrubberControl:function(){return g}});var e=t(88095),i=t(33854),n=t(44583),r=t(4413),s=t(92514),a=t(84905),g=function(d){var h=(0,r.Oc)(),v=h.act,u=h.data,m=(0,n.useState)(!1),c=m[0],f=m[1],p=u.scrubbers;return p?(0,e.jsx)(a.p8,{width:600,height:400,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsxs)(s.wn,{children:[(0,e.jsxs)(s.so,{wrap:"wrap",children:[(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(s.$n,{textAlign:"center",fluid:!0,icon:"search",content:"Scan",onClick:function(){return v("scan")}})}),(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(s.$n,{textAlign:"center",fluid:!0,icon:"layer-group",content:"Show Areas",selected:c,onClick:function(){return f(!c)}})}),(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(s.$n,{textAlign:"center",fluid:!0,icon:"toggle-on",content:"All On",onClick:function(){return v("allon")}})}),(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(s.$n,{textAlign:"center",fluid:!0,icon:"toggle-off",content:"All Off",onClick:function(){return v("alloff")}})})]}),(0,e.jsx)(s.so,{wrap:"wrap",children:p.map(function(C){return(0,e.jsx)(s.so.Item,{m:"2px",basis:"32%",children:(0,e.jsx)(x,{scrubber:C,showArea:c})},C.id)})})]})})}):(0,e.jsxs)(s.wn,{title:"Error",children:[(0,e.jsx)(s.az,{color:"bad",children:"No Scrubbers Detected."}),(0,e.jsx)(s.$n,{fluid:!0,icon:"search",content:"Scan",onClick:function(){return v("scan")}})]})},x=function(d){var h=(0,r.Oc)().act,v=d.scrubber,u=d.showArea;return(0,e.jsxs)(s.wn,{title:v.name,children:[(0,e.jsx)(s.$n,{fluid:!0,icon:"power-off",content:v.on?"Enabled":"Disabled",selected:v.on,onClick:function(){return h("toggle",{id:v.id})}}),(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"Pressure",children:[v.pressure," kPa"]}),(0,e.jsxs)(s.Ki.Item,{label:"Flow Rate",children:[v.flow_rate," L/s"]}),(0,e.jsxs)(s.Ki.Item,{label:"Load",children:[v.load," W"]}),u&&(0,e.jsx)(s.Ki.Item,{label:"Area",children:(0,i.Sn)(v.area)})]})]})}},20251:function(M,y,t){"use strict";t.r(y),t.d(y,{AssemblyInfrared:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.on,v=d.visible;return(0,e.jsx)(r.p8,{children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Infrared Unit",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Laser",children:(0,e.jsx)(n.$n,{icon:"power-off",fluid:!0,selected:h,onClick:function(){return x("state")},children:h?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Visibility",children:(0,e.jsx)(n.$n,{icon:"eye",fluid:!0,selected:v,onClick:function(){return x("visible")},children:v?"Able to be seen":"Invisible"})})]})})})})}},54349:function(M,y,t){"use strict";t.r(y),t.d(y,{AssemblyProx:function(){return g}});var e=t(88095),i=t(5229),n=t(4413),r=t(92514),s=t(24158),a=t(84905),g=function(x){var d=(0,n.Oc)(),h=d.act,v=d.data,u=v.timing,m=v.time,c=v.range,f=v.maxRange,p=v.scanning;return(0,e.jsx)(a.p8,{children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Timing Unit",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Timer",buttons:(0,e.jsx)(r.$n,{icon:"stopwatch",selected:u,onClick:function(){return h("timing")},children:u?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:m/10,minValue:0,maxValue:600,format:function(C){return(0,s.fU)((0,i.LI)(C))},onDrag:function(C,j){return h("set_time",{time:j})}})})})}),(0,e.jsx)(r.wn,{title:"Prox Unit",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Range",children:(0,e.jsx)(r.Q7,{minValue:1,value:c,maxValue:f,onDrag:function(C,j){return h("range",{range:j})}})}),(0,e.jsxs)(r.Ki.Item,{label:"Armed",children:[(0,e.jsx)(r.$n,{mr:1,icon:p?"lock":"lock-open",selected:p,onClick:function(){return h("scanning")},children:p?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}},8327:function(M,y,t){"use strict";t.r(y),t.d(y,{AssemblyTimer:function(){return g}});var e=t(88095),i=t(5229),n=t(4413),r=t(92514),s=t(24158),a=t(84905),g=function(x){var d=(0,n.Oc)(),h=d.act,v=d.data,u=v.timing,m=v.time;return(0,e.jsx)(a.p8,{children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Timing Unit",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Timer",buttons:(0,e.jsx)(r.$n,{icon:"stopwatch",selected:u,onClick:function(){return h("timing")},children:u?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:m/10,minValue:0,maxValue:600,format:function(c){return(0,s.fU)((0,i.LI)(c))},onDrag:function(c,f){return h("set_time",{time:f})}})})})})})})}},49775:function(M,y,t){"use strict";t.r(y),t.d(y,{AtmosAlertConsole:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.priority_alarms||[],v=d.minor_alarms||[];return(0,e.jsx)(r.p8,{width:350,height:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Alarms",children:(0,e.jsxs)("ul",{children:[h.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Priority Alerts"}),h.map(function(u){return(0,e.jsx)("li",{children:(0,e.jsx)(n.$n,{icon:"times",content:u.name,color:"bad",onClick:function(){return x("clear",{ref:u.ref})}})},u.name)}),v.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Minor Alerts"}),v.map(function(u){return(0,e.jsx)("li",{children:(0,e.jsx)(n.$n,{icon:"times",content:u.name,color:"average",onClick:function(){return x("clear",{ref:u.ref})}})},u.name)})]})})})})}},42623:function(M,y,t){"use strict";t.r(y),t.d(y,{AtmosControl:function(){return d},AtmosControlContent:function(){return h}});var e=t(88095),i=t(11358),n=t(44583),r=t(4413),s=t(92514),a=t(84905),g=t(47868),x=(0,g.h)("fuck"),d=function(v){return(0,e.jsx)(a.p8,{width:600,height:440,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(h,{})})})},h=function(v){var u=(0,r.Oc)(),m=u.act,c=u.data,f=u.config,p=(0,i.Ul)(function(P){return P.name})(c.alarms||[]),C=(0,n.useState)(0),j=C[0],O=C[1],b=(0,n.useState)(1),I=b[0],_=b[1],S;return j===0?S=(0,e.jsx)(s.wn,{title:"Alarms",children:p.map(function(P){return(0,e.jsx)(s.$n,{content:P.name,color:P.danger===2?"bad":P.danger===1?"average":"",onClick:function(){return m("alarm",{alarm:P.ref})}},P.name)})}):j===1&&(S=(0,e.jsx)(s.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(s.tx,{onZoom:function(P){return _(P)},children:p.filter(function(P){return~~P.z===~~f.mapZLevel}).map(function(P){return(0,e.jsx)(s.tx.Marker,{x:P.x,y:P.y,zoom:I,icon:"bell",tooltip:P.name,color:P.danger?"red":"green",onClick:function(){return m("alarm",{alarm:P.ref})}},P.ref)})})})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(s.tU,{children:[(0,e.jsxs)(s.tU.Tab,{selected:j===0,onClick:function(){return O(0)},children:[(0,e.jsx)(s.In,{name:"table"})," Alarm View"]},"AlarmView"),(0,e.jsxs)(s.tU.Tab,{selected:j===1,onClick:function(){return O(1)},children:[(0,e.jsx)(s.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(s.az,{m:2,children:S})]})}},45440:function(M,y,t){"use strict";t.r(y),t.d(y,{AtmosFilter:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.filter_types||[];return(0,e.jsx)(r.p8,{width:390,height:187,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.$n,{icon:d.on?"power-off":"times",content:d.on?"On":"Off",selected:d.on,onClick:function(){return x("power")}})}),(0,e.jsxs)(n.Ki.Item,{label:"Transfer Rate",children:[(0,e.jsx)(n.az,{inline:!0,mr:1,children:(0,e.jsx)(n.zv,{value:d.last_flow_rate,format:function(v){return v+" L/s"}})}),(0,e.jsx)(n.Q7,{animated:!0,value:parseFloat(d.rate),width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(v,u){return x("rate",{rate:u})}}),(0,e.jsx)(n.$n,{ml:1,icon:"plus",content:"Max",disabled:d.rate===d.max_rate,onClick:function(){return x("rate",{rate:"max"})}})]}),(0,e.jsx)(n.Ki.Item,{label:"Filter",children:h.map(function(v){return(0,e.jsx)(n.$n,{selected:v.selected,content:v.name,onClick:function(){return x("filter",{filterset:v.f_type})}},v.name)})})]})})})})}},15147:function(M,y,t){"use strict";t.r(y),t.d(y,{AtmosMixer:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data;return(0,e.jsx)(r.p8,{width:370,height:195,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.$n,{icon:d.on?"power-off":"times",content:d.on?"On":"Off",selected:d.on,onClick:function(){return x("power")}})}),(0,e.jsxs)(n.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(n.Q7,{animated:!0,value:parseFloat(d.set_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:d.max_pressure,step:10,onChange:function(h,v){return x("pressure",{pressure:v})}}),(0,e.jsx)(n.$n,{ml:1,icon:"plus",content:"Max",disabled:d.set_pressure===d.max_pressure,onClick:function(){return x("pressure",{pressure:"max"})}})]}),(0,e.jsx)(n.Ki.Divider,{size:1}),(0,e.jsx)(n.Ki.Item,{color:"label",children:(0,e.jsx)("u",{children:"Concentrations"})}),(0,e.jsx)(n.Ki.Item,{label:"Node 1 ("+d.node1_dir+")",children:(0,e.jsx)(n.Q7,{animated:!0,value:d.node1_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(h,v){return x("node1",{concentration:v})}})}),(0,e.jsx)(n.Ki.Item,{label:"Node 2 ("+d.node2_dir+")",children:(0,e.jsx)(n.Q7,{animated:!0,value:d.node2_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(h,v){return x("node2",{concentration:v})}})})]})})})})}},80281:function(M,y,t){"use strict";t.r(y),t.d(y,{Autolathe:function(){return c}});var e=t(88095),i=t(11358),n=t(28763),r=t(33854),s=t(4413),a=t(92514),g=t(84905),x=t(47926);function d(f,p){(p==null||p>f.length)&&(p=f.length);for(var C=0,j=new Array(p);C=f.length?{done:!0}:{done:!1,value:f[j++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var m=function(f,p,C){var j=function(){var S=I.value,P=p.find(function(A){return A.name===S});if(!P)return"continue";if(P.amount=0)&&(C[O]=f[O]);return C}var d={Alphabetical:function(f,p){return f.name>p.name},"By availability":function(f,p){return-(f.affordable-p.affordable)},"By price":function(f,p){return f.price-p.price}},h=function(f){var p=function(J){P(J)},C=function(J){K(J)},j=function(J){X(J)},O=(0,r.Oc)(),b=O.act,I=O.data,_=(0,n.useState)(""),S=_[0],P=_[1],A=(0,n.useState)("Alphabetical"),R=A[0],K=A[1],N=(0,n.useState)(!1),k=N[0],X=N[1];return(0,e.jsx)(a.p8,{width:400,height:450,children:(0,e.jsx)(a.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:I.processing&&(0,e.jsx)(s.wn,{title:"Processing",children:"The biogenerator is processing reagents!"})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(s.wn,{children:[I.points," points available.",(0,e.jsx)(s.$n,{ml:1,icon:"blender",onClick:function(){return b("activate")},children:"Activate"}),(0,e.jsx)(s.$n,{ml:1,icon:"eject",disabled:!I.beaker,onClick:function(){return b("detach")},children:"Eject Beaker"})]}),(0,e.jsx)(u,{searchText:S,sortOrder:R,descending:k,onSearchText:p,onSortOrder:C,onDescending:j}),(0,e.jsx)(v,{searchText:S,sortOrder:R,descending:k,onSearchText:p,onSortOrder:C,onDescending:j})]})})})},v=function(f){var p=(0,r.Oc)(),C=p.act,j=p.data,O=j.points,b=j.items,I=(0,i.XZ)(f.searchText,function(P){return P[0]}),_=!1,S=Object.entries(b).map(function(P,A){var R=Object.entries(P[1]).filter(I).map(function(K){return K[1].affordable=O>=K[1].price/j.build_eff,K[1]}).sort(d[f.sortOrder]);if(R.length!==0)return f.descending&&(R=R.reverse()),_=!0,(0,e.jsx)(c,{title:P[0],items:R},P[0])});return(0,e.jsx)(s.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(s.wn,{children:_?S:(0,e.jsx)(s.az,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(f){return(0,e.jsx)(s.az,{mb:"0.5rem",children:(0,e.jsxs)(s.so,{width:"100%",children:[(0,e.jsx)(s.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(s.pd,{placeholder:"Search by item name..",value:f.searchText,width:"100%",onInput:function(p,C){return f.onSearchText(C)}})}),(0,e.jsx)(s.so.Item,{basis:"30%",children:(0,e.jsx)(s.ms,{selected:f.sortOrder,options:Object.keys(d),width:"100%",lineHeight:"19px",onSelected:function(p){return f.onSortOrder(p)}})}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.$n,{icon:f.descending?"arrow-down":"arrow-up",height:"19px",tooltip:f.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return f.onDescending(!f.descending)}})})]})})},m=function(f,p){return!(!f.affordable||f.reagent&&!p.beaker)},c=function(f){var p=(0,r.Oc)(),C=p.act,j=p.data,O=f.title,b=f.items,I=x(f,["title","items"]);return(0,e.jsx)(s.Nt,g({open:!0,title:O},I,{children:b.map(function(_){return(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.az,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:_.name}),(0,e.jsx)(s.$n,{disabled:!m(_,j),content:(_.price/j.build_eff).toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return C("purchase",{cat:O,name:_.name})}}),(0,e.jsx)(s.az,{style:{clear:"both"}})]},_.name)})}))}},90233:function(M,y,t){"use strict";t.r(y),t.d(y,{BodyDesigner:function(){return a}});var e=t(88095),i=t(33854),n=t(4413),r=t(92514),s=t(84905),a=function(m){var c=(0,n.Oc)(),f=c.act,p=c.data,C=p.menu,j=p.disk,O=p.diskStored,b=p.activeBodyRecord,I=u[C];return(0,e.jsx)(s.p8,{width:400,height:650,children:(0,e.jsxs)(s.p8.Content,{children:[j?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"save",content:"Save To Disk",onClick:function(){return f("savetodisk")},disabled:!b}),(0,e.jsx)(r.$n,{icon:"save",content:"Load From Disk",onClick:function(){return f("loadfromdisk")},disabled:!O}),(0,e.jsx)(r.$n,{icon:"eject",content:"Eject",onClick:function(){return f("ejectdisk")}})]}):null,I]})})},g=function(m){var c=(0,n.Oc)(),f=c.act,p=c.data;return(0,e.jsxs)(r.wn,{title:"Database Functions",children:[(0,e.jsx)(r.$n,{icon:"eye",content:"View Individual Body Records",onClick:function(){return f("menu",{menu:"Body Records"})}}),(0,e.jsx)(r.$n,{icon:"eye",content:"View Stock Body Records",onClick:function(){return f("menu",{menu:"Stock Records"})}})]})},x=function(m){var c=(0,n.Oc)(),f=c.act,p=c.data,C=p.bodyrecords;return(0,e.jsx)(r.wn,{title:"Body Records",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return f("menu",{menu:"Main"})}}),children:C.map(function(j){return(0,e.jsx)(r.$n,{icon:"eye",content:j.name,onClick:function(){return f("view_brec",{view_brec:j.recref})}},j.name)})})},d=function(m){var c=(0,n.Oc)(),f=c.act,p=c.data,C=p.stock_bodyrecords;return(0,e.jsx)(r.wn,{title:"Stock Records",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return f("menu",{menu:"Main"})}}),children:C.map(function(j){return(0,e.jsx)(r.$n,{icon:"eye",content:j,onClick:function(){return f("view_stock_brec",{view_stock_brec:j})}},j)})})},h=function(m){var c=(0,n.Oc)(),f=c.act,p=c.data,C=p.activeBodyRecord,j=p.mapRef;return C?(0,e.jsxs)(r.so,{direction:"column",children:[(0,e.jsx)(r.so.Item,{basis:"165px",children:(0,e.jsx)(r.wn,{title:"Specific Record",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return f("menu",{menu:"Main"})}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:C.real_name}),(0,e.jsx)(r.Ki.Item,{label:"Species",children:C.speciesname}),(0,e.jsx)(r.Ki.Item,{label:"Bio. Sex",children:(0,e.jsx)(r.$n,{icon:"pen",content:(0,i.ZH)(C.gender),onClick:function(){return f("href_conversion",{target_href:"bio_gender",target_value:1})}})}),(0,e.jsx)(r.Ki.Item,{label:"Synthetic",children:C.synthetic}),(0,e.jsxs)(r.Ki.Item,{label:"Mind Compat",children:[C.locked,(0,e.jsx)(r.$n,{ml:1,icon:"eye",content:"View OOC Notes",disabled:!C.booc,onClick:function(){return f("boocnotes")}})]})]})})}),(0,e.jsx)(r.so.Item,{basis:"130px",children:(0,e.jsx)(r.D1,{style:{width:"100%",height:"128px"},params:{id:j,type:"map"}})}),(0,e.jsx)(r.so.Item,{basis:"300px",children:(0,e.jsx)(r.wn,{title:"Customize",height:"300px",style:{overflow:"auto"},children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Scale",children:(0,e.jsx)(r.$n,{icon:"pen",content:C.scale,onClick:function(){return f("href_conversion",{target_href:"size_multiplier",target_value:1})}})}),Object.keys(C.styles).map(function(O){var b=C.styles[O];return(0,e.jsxs)(r.Ki.Item,{label:O,children:[b.styleHref?(0,e.jsx)(r.$n,{icon:"pen",content:b.style,onClick:function(){return f("href_conversion",{target_href:b.styleHref,target_value:1})}}):null,b.colorHref?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",content:b.color,onClick:function(){return f("href_conversion",{target_href:b.colorHref,target_value:1})}}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:b.color,style:{border:"1px solid #fff"}})]}):null,b.colorHref2?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",content:b.color2,onClick:function(){return f("href_conversion",{target_href:b.colorHref2,target_value:1})}}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:b.color2,style:{border:"1px solid #fff"}})]}):null]},O)}),(0,e.jsxs)(r.Ki.Item,{label:"Body Markings",children:[(0,e.jsx)(r.$n,{icon:"plus",content:"Add Marking",onClick:function(){return f("href_conversion",{target_href:"marking_style",target_value:1})}}),(0,e.jsx)(r.so,{wrap:"wrap",justify:"center",align:"center",children:Object.keys(C.markings).map(function(O){var b=C.markings[O];return(0,e.jsx)(r.so.Item,{basis:"100%",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{mr:.2,fluid:!0,icon:"times",color:"red",onClick:function(){return f("href_conversion",{target_href:"marking_remove",target_value:O})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,backgroundColor:b,content:O,onClick:function(){return f("href_conversion",{target_href:"marking_color",target_value:O})}})})]})},O)})})]})]})})})]}):(0,e.jsx)(r.az,{color:"bad",children:"ERROR: Record Not Found!"})},v=function(m){var c=(0,n.Oc)(),f=c.act,p=c.data,C=p.activeBodyRecord;return(0,e.jsx)(r.wn,{title:"Body OOC Notes (This is OOC!)",height:"100%",scrollable:!0,buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return f("menu",{menu:"Specific Record"})}}),style:{"word-break":"break-all"},children:C&&C.booc||"ERROR: Body record not found!"})},u={Main:(0,e.jsx)(g,{}),"Body Records":(0,e.jsx)(x,{}),"Stock Records":(0,e.jsx)(d,{}),"Specific Record":(0,e.jsx)(h,{}),"OOC Notes":(0,e.jsx)(v,{})}},45922:function(M,y,t){"use strict";t.r(y),t.d(y,{BodyScanner:function(){return m}});var e=t(88095),i=t(5229),n=t(4413),r=t(92514),s=t(84905),a=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],g=[["hasBorer","bad",function(S){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(S){return"Viral pathogen detected in blood stream."}],["blind","average",function(S){return"Cataracts detected."}],["colourblind","average",function(S){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(S){return"Retinal misalignment detected."}],["humanPrey","average",function(S){return"Foreign Humanoid(s) detected: "+S.humanPrey}],["livingPrey","average",function(S){return"Foreign Creature(s) detected: "+S.livingPrey}],["objectPrey","average",function(S){return"Foreign Object(s) detected: "+S.objectPrey}]],x=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],d={average:[.25,.5],bad:[.5,1/0]},h=function(S,P){for(var A=[],R=0;R0?S.reduce(function(P,A){return P===null?A:(0,e.jsxs)(e.Fragment,{children:[P,!!A&&(0,e.jsx)(r.az,{children:A})]})}):null},u=function(S){if(S>100){if(S<300)return"mild infection";if(S<400)return"mild infection+";if(S<500)return"mild infection++";if(S<700)return"acute infection";if(S<800)return"acute infection+";if(S<900)return"acute infection++";if(S>=900)return"septic"}return""},m=function(S){var P=(0,n.Oc)().data,A=P.occupied,R=P.occupant,K=R===void 0?{}:R,N=A?(0,e.jsx)(c,{occupant:K}):(0,e.jsx)(_,{});return(0,e.jsx)(s.p8,{width:690,height:600,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:N})})},c=function(S){var P=S.occupant;return(0,e.jsxs)(r.az,{children:[(0,e.jsx)(f,{occupant:P}),(0,e.jsx)(p,{occupant:P}),(0,e.jsx)(C,{occupant:P}),(0,e.jsx)(j,{occupant:P}),(0,e.jsx)(b,{organs:P.extOrgan}),(0,e.jsx)(I,{organs:P.intOrgan})]})},f=function(S){var P=(0,n.Oc)(),A=P.act,R=P.data,K=R.occupant;return(0,e.jsx)(r.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"user-slash",onClick:function(){return A("ejectify")},children:"Eject"}),(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return A("print_p")},children:"Print Report"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:K.name}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{min:"0",max:K.maxHealth,value:K.health/K.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:a[K.stat][0],children:a[K.stat][1]}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",children:[(0,e.jsx)(r.zv,{value:(0,i.LI)(K.bodyTempC,0)}),"\xB0C,\xA0",(0,e.jsx)(r.zv,{value:(0,i.LI)(K.bodyTempF,0)}),"\xB0F"]}),(0,e.jsxs)(r.Ki.Item,{label:"Blood Volume",children:[(0,e.jsx)(r.zv,{value:(0,i.LI)(K.blood.volume,0)})," ","units\xA0(",(0,e.jsx)(r.zv,{value:(0,i.LI)(K.blood.percent,0)}),"%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Weight",children:(0,i.LI)(R.occupant.weight)+"lbs, "+(0,i.LI)(R.occupant.weight/2.20463)+"kgs"})]})})},p=function(S){var P=S.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Blood Reagents",children:P.reagents?(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Reagent"}),(0,e.jsx)(r.XI.Cell,{textAlign:"right",children:"Amount"})]}),P.reagents.map(function(A){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:A.name}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",children:[A.amount," Units"," ",A.overdose?(0,e.jsx)(r.az,{color:"bad",children:"OVERDOSING"}):null]})]},A.name)})]}):(0,e.jsx)(r.az,{color:"good",children:"No Blood Reagents Detected"})}),(0,e.jsx)(r.wn,{title:"Stomach Reagents",children:P.ingested?(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Reagent"}),(0,e.jsx)(r.XI.Cell,{textAlign:"right",children:"Amount"})]}),P.ingested.map(function(A){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:A.name}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",children:[A.amount," Units"," ",A.overdose?(0,e.jsx)(r.az,{color:"bad",children:"OVERDOSING"}):null]})]},A.name)})]}):(0,e.jsx)(r.az,{color:"good",children:"No Stomach Reagents Detected"})})]})},C=function(S){var P=S.occupant,A=P.hasBorer||P.blind||P.colourblind||P.nearsighted||P.hasVirus;return A=A||P.humanPrey||P.livingPrey||P.objectPrey,A?(0,e.jsx)(r.wn,{title:"Abnormalities",children:g.map(function(R,K){if(P[R[0]])return(0,e.jsx)(r.az,{color:R[1],bold:R[1]==="bad",children:R[2](P)},K)})}):(0,e.jsx)(r.wn,{title:"Abnormalities",children:(0,e.jsx)(r.az,{color:"label",children:"No abnormalities found."})})},j=function(S){var P=S.occupant;return(0,e.jsx)(r.wn,{title:"Damage",children:(0,e.jsx)(r.XI,{children:h(x,function(A,R,K){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.XI.Row,{color:"label",children:[(0,e.jsxs)(r.XI.Cell,{children:[A[0],":"]}),(0,e.jsx)(r.XI.Cell,{children:!!R&&R[0]+":"})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(O,{value:P[A[1]],marginBottom:K0&&"0.5rem",value:P.totalLoss/100,ranges:d,children:[(0,e.jsxs)(r.az,{float:"left",inline:!0,children:[!!P.bruteLoss&&(0,e.jsxs)(r.az,{inline:!0,position:"relative",children:[(0,e.jsx)(r.In,{name:"bone"}),(0,i.LI)(P.bruteLoss,0),"\xA0",(0,e.jsx)(r.m_,{position:"top",content:"Brute damage"})]}),!!P.fireLoss&&(0,e.jsxs)(r.az,{inline:!0,position:"relative",children:[(0,e.jsx)(r.In,{name:"fire"}),(0,i.LI)(P.fireLoss,0),(0,e.jsx)(r.m_,{position:"top",content:"Burn damage"})]})]}),(0,e.jsx)(r.az,{inline:!0,children:(0,i.LI)(P.totalLoss,0)})]})}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(r.az,{color:"average",inline:!0,children:v([P.internalBleeding&&"Internal bleeding",!!P.status.bleeding&&"External bleeding",P.lungRuptured&&"Ruptured lung",P.destroyed&&"Destroyed",!!P.status.broken&&P.status.broken,u(P.germ_level),!!P.open&&"Open incision"])}),(0,e.jsxs)(r.az,{inline:!0,children:[v([!!P.status.splinted&&"Splinted",!!P.status.robotic&&"Robotic",!!P.status.dead&&(0,e.jsx)(r.az,{color:"bad",children:"DEAD"})]),v(P.implants.map(function(R){return R.known?R.name:"Unknown object"}))]})]})]},A)})]})})},I=function(S){return S.organs.length===0?(0,e.jsx)(r.wn,{title:"Internal Organs",children:(0,e.jsx)(r.az,{color:"label",children:"N/A"})}):(0,e.jsx)(r.wn,{title:"Internal Organs",children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Name"}),(0,e.jsx)(r.XI.Cell,{textAlign:"center",children:"Damage"}),(0,e.jsx)(r.XI.Cell,{textAlign:"right",children:"Injuries"})]}),S.organs.map(function(P,A){return(0,e.jsxs)(r.XI.Row,{style:{textTransform:"capitalize"},children:[(0,e.jsx)(r.XI.Cell,{width:"33%",children:P.name}),(0,e.jsx)(r.XI.Cell,{textAlign:"center",children:(0,e.jsx)(r.z2,{min:"0",max:P.maxHealth,value:P.damage/100,mt:A>0&&"0.5rem",ranges:d,children:(0,i.LI)(P.damage,0)})}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(r.az,{color:"average",inline:!0,children:v([u(P.germ_level),!!P.inflamed&&"Appendicitis detected."])}),(0,e.jsx)(r.az,{inline:!0,children:v([P.robotic===1&&"Robotic",P.robotic===2&&"Assisted",!!P.dead&&(0,e.jsx)(r.az,{color:"bad",children:"DEAD"})])})]})]},A)})]})})},_=function(){return(0,e.jsx)(r.wn,{textAlign:"center",flexGrow:"1",children:(0,e.jsx)(r.so,{height:"100%",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected."]})})})}},57199:function(M,y,t){"use strict";t.r(y),t.d(y,{BombTester:function(){return d}});var e=t(88095),i=t(44583),n=t(4413),r=t(92514),s=t(84905);function a(){return a=Object.assign||function(v){for(var u=1;u.5,b=Math.random()>.5;return f.state={x:O?p:0,y:b?C:0,reverseX:!1,reverseY:!1},f.process=setInterval(function(){f.setState(function(I){var _=a({},I);return _.reverseX?_.x-j<-5?(_.reverseX=!1,_.x+=j):_.x-=j:_.x+j>p?(_.reverseX=!0,_.x-=j):_.x+=j,_.reverseY?_.y-j<-20?(_.reverseY=!1,_.y+=j):_.y-=j:_.y+j>C?(_.reverseY=!0,_.y-=j):_.y+=j,_})},1),f}var m=u.prototype;return m.componentWillUnmount=function(){clearInterval(this.process)},m.render=function(){var f=this.state,p=f.x,C=f.y,j={position:"relative",left:p+"px",top:C+"px"};return(0,e.jsx)(r.wn,{title:"Simulation in progress!",fill:!0,children:(0,e.jsx)(r.az,{position:"absolute",style:{overflow:"hidden",width:"100%",height:"100%"},children:(0,e.jsx)(r.In,{style:j,name:"bomb",size:10,color:"red"})})})},u}(i.Component)},95678:function(M,y,t){"use strict";t.r(y),t.d(y,{BotanyEditor:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.activity,v=d.degradation,u=d.disk,m=d.sourceName,c=d.locus,f=d.loaded;return h?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.IC,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Buffered Genetic Data",children:u&&(0,e.jsxs)(n.az,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Source",children:m}),(0,e.jsxs)(n.Ki.Item,{label:"Gene Decay",children:[v,"%"]}),(0,e.jsx)(n.Ki.Item,{label:"Locus",children:c})]}),(0,e.jsx)(n.$n,{mt:1,icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"})]})||(0,e.jsx)(n.IC,{warning:!0,children:"No disk loaded."})}),(0,e.jsx)(n.wn,{title:"Loaded Material",children:f&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Target",children:f})}),(0,e.jsx)(n.$n,{mt:1,icon:"cog",onClick:function(){return x("apply_gene")},children:"Apply Gene Mods"}),(0,e.jsx)(n.$n,{mt:1,icon:"eject",onClick:function(){return x("eject_packet")},children:"Eject Target"})]})||(0,e.jsx)(n.IC,{warning:!0,children:"No target seed packet loaded."})})]})})}},72384:function(M,y,t){"use strict";t.r(y),t.d(y,{BotanyIsolator:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.geneMasks,v=d.activity,u=d.degradation,m=d.disk,c=d.loaded,f=d.hasGenetics,p=d.sourceName;return v?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.IC,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Buffered Genetic Data",children:f&&(0,e.jsxs)(n.az,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Source",children:p}),(0,e.jsxs)(n.Ki.Item,{label:"Gene decay",children:[u,"%"]}),m&&h.length&&h.map(function(C){return(0,e.jsx)(n.Ki.Item,{label:C.mask,children:(0,e.jsx)(n.$n,{mb:-1,icon:"download",onClick:function(){return x("get_gene",{get_gene:C.tag})},children:"Extract"})},C.mask)})||null]}),m&&(0,e.jsxs)(n.az,{mt:1,children:[(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"}),(0,e.jsx)(n.$n,{icon:"trash",onClick:function(){return x("clear_buffer")},children:"Clear Genetic Buffer"})]})||(0,e.jsx)(n.IC,{mt:1,warning:!0,children:"No disk inserted."})]})||(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.IC,{warning:!0,children:"No Data Buffered."}),m&&(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"})||(0,e.jsx)(n.IC,{mt:1,warning:!0,children:"No disk inserted."})]})}),(0,e.jsx)(n.wn,{title:"Loaded Material",children:c&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Packet Loaded",children:c})}),(0,e.jsx)(n.$n,{mt:1,icon:"cog",onClick:function(){return x("scan_genome")},children:"Process Genome"}),(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return x("eject_packet")},children:"Eject Packet"})]})||(0,e.jsx)(n.IC,{warning:!0,children:"No packet loaded."})})]})})}},11515:function(M,y,t){"use strict";t.r(y),t.d(y,{BrigTimer:function(){return g}});var e=t(88095),i=t(5229),n=t(4413),r=t(92514),s=t(24158),a=t(84905),g=function(x){var d=(0,n.Oc)(),h=d.act,v=d.data;return(0,e.jsx)(a.p8,{width:300,height:138,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsxs)(r.wn,{title:"Cell Timer",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"clock-o",content:v.timing?"Stop":"Start",selected:v.timing,onClick:function(){return h(v.timing?"stop":"start")}}),v.flash_found&&(0,e.jsx)(r.$n,{icon:"lightbulb-o",content:v.flash_charging?"Recharging":"Flash",disabled:v.flash_charging,onClick:function(){return h("flash")}})||null]}),children:[(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:v.time_left/10,minValue:0,maxValue:v.max_time_left/10,format:function(u){return(0,s.fU)((0,i.LI)(u))},onDrag:function(u,m){return h("time",{time:m})}}),(0,e.jsxs)(r.so,{mt:1,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,s.fU)(v.preset_short/10),onClick:function(){return h("preset",{preset:"short"})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,s.fU)(v.preset_medium/10),onClick:function(){return h("preset",{preset:"medium"})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,s.fU)(v.preset_long/10),onClick:function(){return h("preset",{preset:"long"})}})})]})]})})})}},96524:function(M,y,t){"use strict";t.r(y),t.d(y,{CameraConsole:function(){return u},CameraConsoleContent:function(){return m},prevNextCamera:function(){return h},selectCameras:function(){return v}});var e=t(88095),i=t(11358),n=t(28763),r=t(84352),s=t(33854),a=t(44583),g=t(4413),x=t(92514),d=t(84905),h=function(c,f){var p,C;if(!f)return[];var j=c.findIndex(function(O){return O.name===f.name});return[(p=c[j-1])==null?void 0:p.name,(C=c[j+1])==null?void 0:C.name]},v=function(c,f,p){f===void 0&&(f=""),p===void 0&&(p="");var C=(0,s.XZ)(f,function(j){return j.name});return(0,n.L)([(0,i.pb)(function(j){return j==null?void 0:j.name}),f&&(0,i.pb)(C),p&&(0,i.pb)(function(j){return j.networks.includes(p)}),(0,i.Ul)(function(j){return j.name})])(c)},u=function(c){var f=(0,g.Oc)(),p=f.act,C=f.data,j=C.mapRef,O=C.activeCamera,b=v(C.cameras),I=h(b,O),_=I[0],S=I[1];return(0,e.jsxs)(d.p8,{width:870,height:708,children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(d.p8.Content,{scrollable:!0,children:(0,e.jsx)(m,{})})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),O&&O.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(x.$n,{icon:"chevron-left",disabled:!_,onClick:function(){return p("switch_camera",{name:_})}}),(0,e.jsx)(x.$n,{icon:"chevron-right",disabled:!S,onClick:function(){return p("switch_camera",{name:S})}}),"| PAN:",(0,e.jsx)(x.$n,{icon:"chevron-left",onClick:function(){return p("pan",{dir:8})}}),(0,e.jsx)(x.$n,{icon:"chevron-up",onClick:function(){return p("pan",{dir:1})}}),(0,e.jsx)(x.$n,{icon:"chevron-right",onClick:function(){return p("pan",{dir:4})}}),(0,e.jsx)(x.$n,{icon:"chevron-down",onClick:function(){return p("pan",{dir:2})}})]}),(0,e.jsx)(x.D1,{className:"CameraConsole__map",params:{id:j,type:"map"}})]})]})},m=function(c){var f=(0,g.Oc)(),p=f.act,C=f.data,j=(0,a.useState)(""),O=j[0],b=j[1],I=(0,a.useState)(""),_=I[0],S=I[1],P=C.activeCamera,A=C.allNetworks;A.sort();var R=v(C.cameras,O,_);return(0,e.jsxs)(x.so,{direction:"column",height:"100%",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.pd,{autoFocus:!0,fluid:!0,mt:1,placeholder:"Search for a camera",onInput:function(K,N){return b(N)}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.ms,{mb:1,width:_?"155px":"177px",displayText:_||"No Filter",options:A,onSelected:function(K){return S(K)}})}),_?(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{width:"22px",icon:"undo",color:"red",onClick:function(){S("")}})}):""]})}),(0,e.jsx)(x.so.Item,{height:"100%",children:(0,e.jsx)(x.wn,{fill:!0,scrollable:!0,children:R.map(function(K){return(0,e.jsx)("div",{title:K.name,className:(0,r.Ly)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",P&&K.name===P.name&&"Button--selected"]),onClick:function(){return p("switch_camera",{name:K.name})},children:K.name},K.name)})})})]})}},60997:function(M,y,t){"use strict";t.r(y),t.d(y,{Canister:function(){return g}});var e=t(88095),i=t(5229),n=t(4413),r=t(92514),s=t(24158),a=t(84905),g=function(x){var d=(0,n.Oc)(),h=d.act,v=d.data,u=v.connected,m=v.can_relabel,c=v.pressure,f=v.releasePressure,p=v.defaultReleasePressure,C=v.minReleasePressure,j=v.maxReleasePressure,O=v.valveOpen,b=v.holding;return(0,e.jsx)(a.p8,{width:360,height:242,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Canister",buttons:(0,e.jsx)(r.$n,{icon:"pencil-alt",disabled:!m,content:"Relabel",onClick:function(){return h("relabel")}}),children:(0,e.jsxs)(r.Wx,{children:[(0,e.jsx)(r.Wx.Item,{minWidth:"66px",label:"Tank Pressure",children:(0,e.jsx)(r.zv,{value:c,format:function(I){return I<1e4?(0,i.Mg)(I)+" kPa":(0,s.QL)(I*1e3,1,"Pa")}})}),(0,e.jsx)(r.Wx.Item,{label:"Regulator",children:(0,e.jsxs)(r.az,{position:"relative",left:"-8px",children:[(0,e.jsx)(r.N6,{forcedInputWidth:"60px",size:1.25,color:!!O&&"yellow",value:f,unit:"kPa",minValue:C,maxValue:j,stepPixelSize:1,onDrag:function(I,_){return h("pressure",{pressure:_})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){return h("pressure",{pressure:j})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){return h("pressure",{pressure:p})}})]})}),(0,e.jsx)(r.Wx.Item,{label:"Valve",children:(0,e.jsx)(r.$n,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:O?b?"caution":"danger":null,content:O?"Open":"Closed",onClick:function(){return h("valve")}})}),(0,e.jsx)(r.Wx.Item,{mr:1,label:"Port",children:(0,e.jsxs)(r.az,{position:"relative",children:[(0,e.jsx)(r.In,{size:1.25,name:u?"plug":"times",color:u?"good":"bad"}),(0,e.jsx)(r.m_,{content:u?"Connected":"Disconnected",position:"top"})]})})]})}),(0,e.jsxs)(r.wn,{title:"Holding Tank",buttons:!!b&&(0,e.jsx)(r.$n,{icon:"eject",color:O&&"danger",content:"Eject",onClick:function(){return h("eject")}}),children:[!!b&&(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Label",children:b.name}),(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[(0,e.jsx)(r.zv,{value:b.pressure})," kPa"]})]}),!b&&(0,e.jsx)(r.az,{color:"average",children:"No Holding Tank"})]})]})})}},9550:function(M,y,t){"use strict";t.r(y),t.d(y,{Canvas:function(){return m}});var e=t(88095),i=t(44583),n=t(4413),r=t(92514),s=t(84905);function a(){return a=Object.assign||function(c){for(var f=1;f=0)&&(p[j]=c[j]);return p}function d(c,f){return d=Object.setPrototypeOf||function(C,j){return C.__proto__=j,C},d(c,f)}var h=24,v=function(c){"use strict";g(f,c);function f(C){var j;return j=c.call(this,C)||this,j.canvasRef=(0,i.createRef)(),j.onCVClick=C.onCanvasClick,j}var p=f.prototype;return p.componentDidMount=function(){this.drawCanvas(this.props)},p.componentDidUpdate=function(){this.drawCanvas(this.props)},p.drawCanvas=function(j){var O=this.canvasRef.current.getContext("2d"),b=j.value,I=b.length;if(I){var _=b[0].length,S=Math.round(this.canvasRef.current.width/I),P=Math.round(this.canvasRef.current.height/_);O.save(),O.scale(S,P);for(var A=0;A=0)&&(p[j]=c[j]);return p}var d={Alphabetical:function(c,f){return c.name>f.name},"By availability":function(c,f){return-(c.affordable-f.affordable)},"By price":function(c,f){return c.price-f.price}},h=function(){var c=function(K){O(K)},f=function(K){_(K)},p=function(K){A(K)},C=(0,n.useState)(""),j=C[0],O=C[1],b=(0,n.useState)("Alphabetical"),I=b[0],_=b[1],S=(0,n.useState)(!1),P=S[0],A=S[1];return(0,e.jsx)(a.p8,{width:400,height:450,children:(0,e.jsx)(a.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{searchText:j,sortOrder:I,descending:P,onSearchText:c,onSortOrder:f,onDescending:p}),(0,e.jsx)(u,{searchText:j,sortOrder:I,descending:P,onSearchText:c,onSortOrder:f,onDescending:p})]})})})},v=function(c){return(0,e.jsx)(s.az,{mb:"0.5rem",children:(0,e.jsxs)(s.so,{width:"100%",children:[(0,e.jsx)(s.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(s.pd,{placeholder:"Search by item name..",width:"100%",onInput:function(f,p){return c.onSearchText(p)}})}),(0,e.jsx)(s.so.Item,{basis:"30%",children:(0,e.jsx)(s.ms,{selected:c.sortOrder,options:Object.keys(d),width:"100%",lineHeight:"19px",onSelected:function(f){return c.onSortOrder(f)}})}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.$n,{icon:c.descending?"arrow-down":"arrow-up",height:"19px",tooltip:c.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return c.onDescending(!c.descending)}})})]})})},u=function(c){var f=(0,r.Oc)(),p=f.act,C=f.data,j=C.points,O=C.items,b=(0,i.XZ)(c.searchText,function(S){return S[0]}),I=!1,_=Object.entries(O).map(function(S,P){var A=Object.entries(S[1]).filter(b).map(function(R){return R[1].affordable=j>=R[1].price,R[1]}).sort(d[c.sortOrder]);if(A.length!==0)return c.descending&&(A=A.reverse()),I=!0,(0,e.jsx)(m,{title:S[0],items:A},S[0])});return(0,e.jsx)(s.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(s.wn,{children:I?_:(0,e.jsx)(s.az,{color:"label",children:"No items matching your criteria was found!"})})})},m=function(c){var f=(0,r.Oc)(),p=f.act,C=f.data,j=c.title,O=c.items,b=x(c,["title","items"]);return(0,e.jsx)(s.Nt,g({open:!0,title:j},b,{children:O.map(function(I){return(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.az,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:I.name}),(0,e.jsx)(s.$n,{content:I.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return p("purchase",{cat:j,name:I.name,price:I.price,restriction:I.restriction})}}),(0,e.jsx)(s.az,{style:{clear:"both"}})]},I.name)})}))}},36136:function(M,y,t){"use strict";t.r(y),t.d(y,{CharacterDirectory:function(){return g}});var e=t(88095),i=t(44583),n=t(4413),r=t(92514),s=t(84905),a=function(v){switch(v){case"Unset":return"label";case"Pred":return"red";case"Pred-Pref":return"orange";case"Prey":return"blue";case"Prey-Pref":return"green";case"Switch":return"yellow";case"Non-Vore":return"black"}},g=function(v){var u=function(R){I(R)},m=(0,n.Oc)(),c=m.act,f=m.data,p=f.personalVisibility,C=f.personalTag,j=f.personalErpTag,O=(0,i.useState)(null),b=O[0],I=O[1],_=(0,i.useState)(!1),S=_[0],P=_[1];return(0,e.jsx)(s.p8,{width:640,height:480,resizeable:!0,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:b&&(0,e.jsx)(x,{overlay:b,onOverlay:u})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:"Save to current preferences slot:\xA0"}),(0,e.jsx)(r.$n,{icon:S?"toggle-on":"toggle-off",selected:S,content:S?"On":"Off",onClick:function(){return P(!S)}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Visibility",children:(0,e.jsx)(r.$n,{fluid:!0,content:p?"Shown":"Not Shown",onClick:function(){return c("setVisible",{overwrite_prefs:S})}})}),(0,e.jsx)(r.Ki.Item,{label:"Vore Tag",children:(0,e.jsx)(r.$n,{fluid:!0,content:C,onClick:function(){return c("setTag",{overwrite_prefs:S})}})}),(0,e.jsx)(r.Ki.Item,{label:"ERP Tag",children:(0,e.jsx)(r.$n,{fluid:!0,content:j,onClick:function(){return c("setErpTag",{overwrite_prefs:S})}})}),(0,e.jsx)(r.Ki.Item,{label:"Advertisement",children:(0,e.jsx)(r.$n,{fluid:!0,content:"Edit Ad",onClick:function(){return c("editAd",{overwrite_prefs:S})}})})]})}),(0,e.jsx)(d,{onOverlay:u})]})})})},x=function(v){return(0,e.jsxs)(r.wn,{title:v.overlay.name,buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return v.onOverlay(null)}}),children:[(0,e.jsx)(r.wn,{level:2,title:"Species",children:(0,e.jsx)(r.az,{children:v.overlay.species})}),(0,e.jsx)(r.wn,{level:2,title:"Vore Tag",children:(0,e.jsx)(r.az,{p:1,backgroundColor:a(v.overlay.tag),children:v.overlay.tag})}),(0,e.jsx)(r.wn,{level:2,title:"ERP Tag",children:(0,e.jsx)(r.az,{children:v.overlay.erptag})}),(0,e.jsx)(r.wn,{level:2,title:"Character Ad",children:(0,e.jsx)(r.az,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:v.overlay.character_ad||"Unset."})}),(0,e.jsx)(r.wn,{level:2,title:"OOC Notes",children:(0,e.jsx)(r.az,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:v.overlay.ooc_notes||"Unset."})}),(0,e.jsx)(r.wn,{level:2,title:"Flavor Text",children:(0,e.jsx)(r.az,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:v.overlay.flavor_text||"Unset."})})]})},d=function(v){var u=function(A){b(A)},m=function(A){S(A)},c=(0,n.Oc)(),f=c.act,p=c.data,C=p.directory,j=(0,i.useState)("name"),O=j[0],b=j[1],I=(0,i.useState)("name"),_=I[0],S=I[1];return(0,e.jsx)(r.wn,{title:"Directory",buttons:(0,e.jsx)(r.$n,{icon:"sync",content:"Refresh",onClick:function(){return f("refresh")}}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{bold:!0,children:[(0,e.jsx)(h,{id:"name",sortId:O,sortOrder:_,onSortId:u,onSortOrder:m,children:"Name"}),(0,e.jsx)(h,{id:"species",sortId:O,sortOrder:_,onSortId:u,onSortOrder:m,children:"Species"}),(0,e.jsx)(h,{id:"tag",sortId:O,sortOrder:_,onSortId:u,onSortOrder:m,children:"Vore Tag"}),(0,e.jsx)(h,{id:"erptag",sortId:O,sortOrder:_,onSortId:u,onSortOrder:m,children:"ERP Tag"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),C.sort(function(P,A){var R=_?1:-1;return P[O].localeCompare(A[O])*R}).map(function(P,A){return(0,e.jsxs)(r.XI.Row,{backgroundColor:a(P.tag),children:[(0,e.jsx)(r.XI.Cell,{p:1,children:P.name}),(0,e.jsx)(r.XI.Cell,{children:P.species}),(0,e.jsx)(r.XI.Cell,{children:P.tag}),(0,e.jsx)(r.XI.Cell,{children:P.erptag}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(r.$n,{onClick:function(){return v.onOverlay(P)},color:"transparent",icon:"sticky-note",mr:1,content:"View"})})]},A)})]})})},h=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,f=v.id,p=v.children;return(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsxs)(r.$n,{width:"100%",color:v.sortId!==f&&"transparent",onClick:function(){v.sortId===f?v.onSortOrder(!v.sortOrder):(v.onSortId(f),v.onSortOrder(!0))},children:[p,v.sortId===f&&(0,e.jsx)(r.In,{name:v.sortOrder?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},98875:function(M,y,t){"use strict";t.r(y),t.d(y,{CheckboxInput:function(){return h}});var e=t(88095),i=t(33854),n=t(44583),r=t(4413),s=t(92514),a=t(86808),g=t(84905),x=t(12035),d=t(18513),h=function(v){var u=(0,r.Oc)().data,m=u.items,c=m===void 0?[]:m,f=u.min_checked,p=u.max_checked,C=u.message,j=u.timeout,O=u.title,b=(0,n.useState)([]),I=b[0],_=b[1],S=(0,n.useState)(""),P=S[0],A=S[1],R=(0,i.XZ)(P,function(k){return k}),K=c.filter(R),N=function(k){var X=I.includes(k)?I.filter(function(F){return F!==k}):[].concat(I,[k]);_(X)};return(0,e.jsxs)(g.p8,{title:O,width:425,height:300,children:[!!j&&(0,e.jsx)(d.Loader,{value:j}),(0,e.jsx)(g.p8.Content,{children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsxs)(s.IC,{info:!0,textAlign:"center",children:[(0,i.jT)(C)," ",f>0&&" (Min: "+f+")",p<50&&" (Max: "+p+")"]})}),(0,e.jsx)(s.BJ.Item,{grow:!0,mt:0,children:(0,e.jsx)(s.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(s.XI,{children:K.map(function(k,X){return(0,e.jsx)(a.Hj,{className:"candystripe",children:(0,e.jsx)(a.nA,{children:(0,e.jsx)(s.$n.Checkbox,{checked:I.includes(k),disabled:I.length>=p&&!I.includes(k),fluid:!0,onClick:function(){return N(k)},children:k})})},X)})})})}),(0,e.jsxs)(s.BJ,{m:1,mb:0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.m_,{content:"Search",position:"bottom",children:(0,e.jsx)(s.In,{name:"search",mt:.5})})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(s.pd,{fluid:!0,value:P,onInput:function(k,X){return A(X)}})})]}),(0,e.jsx)(s.BJ.Item,{mt:.7,children:(0,e.jsx)(s.wn,{children:(0,e.jsx)(x.InputButtons,{input:I})})})]})})]})}},6908:function(M,y,t){"use strict";t.r(y),t.d(y,{ChemDispenser:function(){return x}});var e=t(88095),i=t(4413),n=t(92514),r=t(62386),s=t(84905),a=[5,10,20,30,40,60],g=[1,5,10],x=function(u){return(0,e.jsx)(s.p8,{width:390,height:655,children:(0,e.jsxs)(s.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(d,{}),(0,e.jsx)(h,{}),(0,e.jsx)(v,{})]})})},d=function(u){var m=(0,i.Oc)(),c=m.act,f=m.data,p=f.amount;return(0,e.jsx)(n.wn,{title:"Settings",flex:"content",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Dispense",verticalAlign:"middle",children:a.map(function(C,j){return(0,e.jsx)(n.$n,{textAlign:"center",selected:p===C,content:C+"u",m:"0",onClick:function(){return c("amount",{amount:C})}},j)})}),(0,e.jsx)(n.Ki.Item,{label:"Custom Amount",children:(0,e.jsx)(n.Ap,{step:1,stepPixelSize:5,value:p,minValue:1,maxValue:120,onDrag:function(C,j){return c("amount",{amount:j})}})})]})})},h=function(u){for(var m=(0,i.Oc)(),c=m.act,f=m.data,p=f.chemicals,C=p===void 0?[]:p,j=[],O=0;O<(C.length+1)%3;O++)j.push(!0);return(0,e.jsx)(n.wn,{title:f.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:"1",children:(0,e.jsxs)(n.so,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[C.map(function(b,I){return(0,e.jsx)(n.so.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,e.jsx)(n.$n,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",content:b.title+" ("+b.amount+")",onClick:function(){return c("dispense",{reagent:b.id})}})},I)}),j.map(function(b,I){return(0,e.jsx)(n.so.Item,{grow:"1",basis:"25%",height:"20px"},I)})]})})},v=function(u){var m=(0,i.Oc)(),c=m.act,f=m.data,p=f.isBeakerLoaded,C=f.beakerCurrentVolume,j=f.beakerMaxVolume,O=f.beakerContents,b=O===void 0?[]:O;return(0,e.jsx)(n.wn,{title:"Beaker",flex:"content",minHeight:"25%",buttons:(0,e.jsxs)(n.az,{children:[!!p&&(0,e.jsxs)(n.az,{inline:!0,color:"label",mr:2,children:[C," / ",j," units"]}),(0,e.jsx)(n.$n,{icon:"eject",content:"Eject",disabled:!p,onClick:function(){return c("ejectBeaker")}})]}),children:(0,e.jsx)(r.BeakerContents,{beakerLoaded:p,beakerContents:b,buttons:function(I){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){return c("remove",{reagent:I.id,amount:-1})}}),g.map(function(_,S){return(0,e.jsx)(n.$n,{content:_,onClick:function(){return c("remove",{reagent:I.id,amount:_})}},S)}),(0,e.jsx)(n.$n,{content:"ALL",onClick:function(){return c("remove",{reagent:I.id,amount:I.volume})}})]})}})})}},75191:function(M,y,t){"use strict";t.r(y),t.d(y,{ChemMaster:function(){return h}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=t(62386),a=t(5425),g=[1,5,10,30,60],x=null,d=function(p){var C=(0,i.Oc)(),j=C.act,O=C.data,b=p.args.analysis;return(0,e.jsx)(n.wn,{level:2,m:"-1rem",pb:"1rem",title:O.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.jsx)(n.az,{mx:"0.5rem",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:b.name}),(0,e.jsx)(n.Ki.Item,{label:"Description",children:(b.desc||"").length>0?b.desc:"N/A"}),b.blood_type&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Blood type",children:b.blood_type}),(0,e.jsx)(n.Ki.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:b.blood_dna})]}),!O.condi&&(0,e.jsx)(n.$n,{icon:O.printing?"spinner":"print",disabled:O.printing,iconSpin:!!O.printing,ml:"0.5rem",content:"Print",onClick:function(){return j("print",{idx:b.idx,beaker:p.args.beaker})}})]})})})},h=function(p){var C=(0,i.Oc)().data,j=C.condi,O=C.beaker,b=C.beaker_reagents,I=b===void 0?[]:b,_=C.buffer_reagents,S=_===void 0?[]:_,P=C.mode;return(0,e.jsxs)(r.p8,{width:575,height:500,children:[(0,e.jsx)(a.ComplexModal,{}),(0,e.jsxs)(r.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,e.jsx)(v,{beaker:O,beakerReagents:I,bufferNonEmpty:S.length>0}),(0,e.jsx)(u,{mode:P,bufferReagents:S}),(0,e.jsx)(m,{isCondiment:j,bufferNonEmpty:S.length>0})]})]})},v=function(p){var C=(0,i.Oc)(),j=C.act,O=C.data,b=p.beaker,I=p.beakerReagents,_=p.bufferNonEmpty,S=_?(0,e.jsx)(n.$n.Confirm,{icon:"eject",disabled:!b,content:"Eject and Clear Buffer",onClick:function(){return j("eject")}}):(0,e.jsx)(n.$n,{icon:"eject",disabled:!b,content:"Eject and Clear Buffer",onClick:function(){return j("eject")}});return(0,e.jsx)(n.wn,{title:"Beaker",buttons:S,children:b?(0,e.jsx)(s.BeakerContents,{beakerLoaded:!0,beakerContents:I,buttons:function(P,A){return(0,e.jsxs)(n.az,{mb:A0?(0,e.jsx)(s.BeakerContents,{beakerLoaded:!0,beakerContents:b,buttons:function(I,_){return(0,e.jsxs)(n.az,{mb:_1?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:s.lm.damageType.oxy,inline:!0,children:K[0]}),"\xA0|\xA0",(0,e.jsx)(r.az,{color:s.lm.damageType.toxin,inline:!0,children:K[2]}),"\xA0|\xA0",(0,e.jsx)(r.az,{color:s.lm.damageType.brute,inline:!0,children:K[3]}),"\xA0|\xA0",(0,e.jsx)(r.az,{color:s.lm.damageType.burn,inline:!0,children:K[1]})]}):(0,e.jsx)(r.az,{color:"bad",children:"Unknown"})}),(0,e.jsx)(r.Ki.Item,{label:"UI",className:"LabeledList__breakContents",children:A}),(0,e.jsx)(r.Ki.Item,{label:"SE",className:"LabeledList__breakContents",children:R}),(0,e.jsxs)(r.Ki.Item,{label:"Disk",children:[(0,e.jsx)(r.$n.Confirm,{disabled:!b.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){return O("disk",{option:"load"})}}),(0,e.jsx)(r.$n,{disabled:!b.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){return O("disk",{option:"save",savetype:"ui"})}}),(0,e.jsx)(r.$n,{disabled:!b.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){return O("disk",{option:"save",savetype:"ue"})}}),(0,e.jsx)(r.$n,{disabled:!b.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){return O("disk",{option:"save",savetype:"se"})}})]}),(0,e.jsxs)(r.Ki.Item,{label:"Actions",children:[(0,e.jsx)(r.$n,{disabled:!b.podready,icon:"user-plus",content:"Clone",onClick:function(){return O("clone",{ref:_})}}),(0,e.jsx)(r.$n,{icon:"trash",content:"Delete",onClick:function(){return O("del_rec")}})]})]})})},h=function(C){var j=(0,n.Oc)(),O=j.act,b=j.data,I=b.menu;return(0,a.modalRegisterBodyOverride)("view_rec",d),(0,e.jsxs)(g.p8,{children:[(0,e.jsx)(a.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.jsxs)(g.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(f,{}),(0,e.jsx)(p,{}),(0,e.jsx)(v,{}),(0,e.jsx)(r.wn,{noTopPadding:!0,flexGrow:"1",children:(0,e.jsx)(u,{})})]})]})},v=function(C){var j=(0,n.Oc)(),O=j.act,b=j.data,I=b.menu;return(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:I===1,icon:"home",onClick:function(){return O("menu",{num:1})},children:"Main"}),(0,e.jsx)(r.tU.Tab,{selected:I===2,icon:"folder",onClick:function(){return O("menu",{num:2})},children:"Records"})]})},u=function(C){var j=(0,n.Oc)().data,O=j.menu,b;return O===1?b=(0,e.jsx)(m,{}):O===2&&(b=(0,e.jsx)(c,{})),b},m=function(C){var j=(0,n.Oc)(),O=j.act,b=j.data,I=b.loading,_=b.scantemp,S=b.occupant,P=b.locked,A=b.can_brainscan,R=b.scan_mode,K=b.numberofpods,N=b.pods,k=b.selected_pod,X=P&&!!S;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Scanner",level:"2",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Scanner Lock:\xA0"}),(0,e.jsx)(r.$n,{disabled:!S,selected:X,icon:X?"toggle-on":"toggle-off",content:X?"Engaged":"Disengaged",onClick:function(){return O("lock")}}),(0,e.jsx)(r.$n,{disabled:X||!S,icon:"user-slash",content:"Eject Occupant",onClick:function(){return O("eject")}})]}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Status",children:I?(0,e.jsxs)(r.az,{color:"average",children:[(0,e.jsx)(r.In,{name:"spinner",spin:!0}),"\xA0 Scanning..."]}):(0,e.jsx)(r.az,{color:_.color,children:_.text})}),!!A&&(0,e.jsx)(r.Ki.Item,{label:"Scan Mode",children:(0,e.jsx)(r.$n,{icon:R?"brain":"male",content:R?"Brain":"Body",onClick:function(){return O("toggle_mode")}})})]}),(0,e.jsx)(r.$n,{disabled:!S||I,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){return O("scan")}})]}),(0,e.jsx)(r.wn,{title:"Pods",level:"2",children:K?N.map(function(F,J){var H;return F.status==="cloning"?H=(0,e.jsx)(r.z2,{min:"0",max:"100",value:F.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(r.az,{textAlign:"center",children:(0,i.LI)(F.progress,0)+"%"})}):F.status==="mess"?H=(0,e.jsx)(r.az,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):H=(0,e.jsx)(r.$n,{selected:k===F.pod,icon:k===F.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return O("selectpod",{ref:F.pod})}}),(0,e.jsxs)(r.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"pod_"+F.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsxs)(r.az,{color:"label",children:["Pod #",J+1]}),(0,e.jsxs)(r.az,{bold:!0,color:F.biomass>=150?"good":"bad",inline:!0,children:[(0,e.jsx)(r.In,{name:F.biomass>=150?"circle":"circle-o"}),"\xA0",F.biomass]}),H]},J)}):(0,e.jsx)(r.az,{color:"bad",children:"No pods detected. Unable to clone."})})]})},c=function(C){var j=(0,n.Oc)(),O=j.act,b=j.data,I=b.records;return I.length?(0,e.jsx)(r.az,{mt:"0.5rem",children:I.map(function(_,S){return(0,e.jsx)(r.$n,{icon:"user",mb:"0.5rem",content:_.realname,onClick:function(){return O("view_rec",{ref:_.record})}},S)})}):(0,e.jsx)(r.so,{height:"100%",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No records found."]})})},f=function(C){var j=(0,n.Oc)(),O=j.act,b=j.data,I=b.temp;if(!(!I||!I.text||I.text.length<=0)){var _,S=(_={},_[I.style]=!0,_);return(0,e.jsxs)(r.IC,x({},S,{children:[(0,e.jsx)(r.az,{display:"inline-block",verticalAlign:"middle",children:I.text}),(0,e.jsx)(r.$n,{icon:"times-circle",float:"right",onClick:function(){return O("cleartemp")}}),(0,e.jsx)(r.az,{clear:"both"})]}))}},p=function(C){var j=(0,n.Oc)(),O=j.act,b=j.data,I=b.scanner,_=b.numberofpods,S=b.autoallowed,P=b.autoprocess,A=b.disk;return(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[!!S&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Auto-processing:\xA0"}),(0,e.jsx)(r.$n,{selected:P,icon:P?"toggle-on":"toggle-off",content:P?"Enabled":"Disabled",onClick:function(){return O("autoprocess",{on:P?0:1})}})]}),(0,e.jsx)(r.$n,{disabled:!A,icon:"eject",content:"Eject Disk",onClick:function(){return O("disk",{option:"eject"})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Scanner",children:I?(0,e.jsx)(r.az,{color:"good",children:"Connected"}):(0,e.jsx)(r.az,{color:"bad",children:"Not connected!"})}),(0,e.jsx)(r.Ki.Item,{label:"Pods",children:_?(0,e.jsxs)(r.az,{color:"good",children:[_," connected"]}):(0,e.jsx)(r.az,{color:"bad",children:"None connected!"})})]})})}},40200:function(M,y,t){"use strict";t.r(y),t.d(y,{ColorMate:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.items,v=d.activecolor,u=Math.min(270+h.length*15,600);return(0,e.jsx)(r.p8,{width:300,height:u,children:(0,e.jsx)(r.p8.Content,{children:h.length&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Paint",children:(0,e.jsxs)(n.so,{justify:"center",align:"center",children:[(0,e.jsx)(n.so.Item,{basis:"50%",children:(0,e.jsx)(n.az,{backgroundColor:v,width:"120px",height:"120px"})}),(0,e.jsxs)(n.so.Item,{basis:"50% ",children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"eye-dropper",onClick:function(){return x("select")},children:"Select Color"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"fill-drip",onClick:function(){return x("paint")},children:"Paint Items"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"tint-slash",onClick:function(){return x("clear")},children:"Remove Paintjob"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",onClick:function(){return x("eject")},children:"Eject Items"})]})]})}),(0,e.jsx)(n.wn,{title:"Items",children:h.map(function(m,c){return(0,e.jsxs)(n.az,{children:["#",c+1,": ",m]},c)})})]})||(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.az,{color:"bad",children:"No items inserted."})})})})}},48022:function(M,y,t){"use strict";t.r(y),t.d(y,{CommunicationsConsole:function(){return s},CommunicationsConsoleContent:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(v){return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(a,{})})})},a=function(v){var u=(0,i.Oc)(),m=u.act,c=u.data,f=c.menu_state,p=(0,e.jsxs)(n.az,{color:"bad",children:["ERRROR. Unknown menu_state: ",f,"Please report this to NT Technical Support."]});return f===1?p=(0,e.jsx)(g,{}):f===2?p=(0,e.jsx)(h,{}):f===3&&(p=(0,e.jsx)(d,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x,{}),p]})},g=function(v){var u=(0,i.Oc)(),m=u.act,c=u.data,f=c.messages,p=c.msg_cooldown,C=c.emagged,j=c.cc_cooldown,O=c.str_security_level,b=c.levels,I=c.authmax,_=c.security_level,S=c.security_level_color,P=c.authenticated,A=c.atcsquelch,R=c.boss_short,K="View ("+f.length+")",N="Make Priority Announcement";p>0&&(N+=" ("+p+"s)");var k=C?"Message [UNKNOWN]":"Message "+R;j>0&&(k+=" ("+j+"s)");var X=O,F=b.map(function(J){return(0,e.jsx)(n.$n,{icon:J.icon,content:J.name,disabled:!P,selected:J.id===_,onClick:function(){return m("newalertlevel",{level:J.id})}},J.name)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Site Manager-Only Actions",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Announcement",children:(0,e.jsx)(n.$n,{icon:"bullhorn",content:N,disabled:!I||p>0,onClick:function(){return m("announce")}})}),!!C&&(0,e.jsxs)(n.Ki.Item,{label:"Transmit",children:[(0,e.jsx)(n.$n,{icon:"broadcast-tower",color:"red",content:k,disabled:!I||j>0,onClick:function(){return m("MessageSyndicate")}}),(0,e.jsx)(n.$n,{icon:"sync-alt",content:"Reset Relays",disabled:!I,onClick:function(){return m("RestoreBackup")}})]})||(0,e.jsx)(n.Ki.Item,{label:"Transmit",children:(0,e.jsx)(n.$n,{icon:"broadcast-tower",content:k,disabled:!I||j>0,onClick:function(){return m("MessageCentCom")}})})]})}),(0,e.jsx)(n.wn,{title:"Command Staff Actions",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Current Alert",color:S,children:X}),(0,e.jsx)(n.Ki.Item,{label:"Change Alert",children:F}),(0,e.jsx)(n.Ki.Item,{label:"Displays",children:(0,e.jsx)(n.$n,{icon:"tv",content:"Change Status Displays",disabled:!P,onClick:function(){return m("status")}})}),(0,e.jsx)(n.Ki.Item,{label:"Incoming Messages",children:(0,e.jsx)(n.$n,{icon:"folder-open",content:K,disabled:!P,onClick:function(){return m("messagelist")}})}),(0,e.jsx)(n.Ki.Item,{label:"Misc",children:(0,e.jsx)(n.$n,{icon:"microphone",content:A?"ATC Relay Disabled":"ATC Relay Enabled",disabled:!P,selected:A,onClick:function(){return m("toggleatc")}})})]})})]})},x=function(v){var u=(0,i.Oc)(),m=u.act,c=u.data,f=c.authenticated,p=c.is_ai,C=c.esc_status,j=c.esc_callable,O=c.esc_recallable,b;return f?p?b="AI":f===1?b="Command":f===2?b="Site Director":b="ERROR: Report This Bug!":b="Not Logged In",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Authentication",children:(0,e.jsx)(n.Ki,{children:p&&(0,e.jsx)(n.Ki.Item,{label:"Access Level",children:"AI"})||(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)(n.$n,{icon:f?"sign-out-alt":"id-card",selected:f,content:f?"Log Out ("+b+")":"Log In",onClick:function(){return m("auth")}})})})}),(0,e.jsx)(n.wn,{title:"Escape Shuttle",children:(0,e.jsxs)(n.Ki,{children:[!!C&&(0,e.jsx)(n.Ki.Item,{label:"Status",children:C}),!!j&&(0,e.jsx)(n.Ki.Item,{label:"Options",children:(0,e.jsx)(n.$n,{icon:"rocket",content:"Call Shuttle",disabled:!f,onClick:function(){return m("callshuttle")}})}),!!O&&(0,e.jsx)(n.Ki.Item,{label:"Options",children:(0,e.jsx)(n.$n,{icon:"times",content:"Recall Shuttle",disabled:!f||p,onClick:function(){return m("cancelshuttle")}})})]})})]})},d=function(v){var u=(0,i.Oc)(),m=u.act,c=u.data,f=c.message_current,p=c.message_deletion_allowed,C=c.authenticated,j=c.messages;if(f)return(0,e.jsx)(n.wn,{title:f.title,buttons:(0,e.jsx)(n.$n,{icon:"times",content:"Return To Message List",disabled:!C,onClick:function(){return m("messagelist")}}),children:(0,e.jsx)(n.az,{children:f.contents})});var O=j.map(function(b){return(0,e.jsxs)(n.Ki.Item,{label:b.title,children:[(0,e.jsx)(n.$n,{icon:"eye",content:"View",disabled:!C||f&&f.title===b.title,onClick:function(){return m("messagelist",{msgid:b.id})}}),(0,e.jsx)(n.$n,{icon:"times",content:"Delete",disabled:!C||!p,onClick:function(){return m("delmessage",{msgid:b.id})}})]},b.id)});return(0,e.jsx)(n.wn,{title:"Messages Received",buttons:(0,e.jsx)(n.$n,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return m("main")}}),children:(0,e.jsx)(n.Ki,{children:j.length&&O||(0,e.jsx)(n.Ki.Item,{label:"404",color:"bad",children:"No messages."})})})},h=function(v){var u=(0,i.Oc)(),m=u.act,c=u.data,f=c.stat_display,p=c.authenticated,C=f.presets.map(function(j){return(0,e.jsx)(n.$n,{content:j.label,selected:j.name===f.type,disabled:!p,onClick:function(){return m("setstat",{statdisp:j.name})}},j.name)});return(0,e.jsx)(n.wn,{title:"Modify Status Screens",buttons:(0,e.jsx)(n.$n,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return m("main")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Presets",children:C}),(0,e.jsx)(n.Ki.Item,{label:"Message Line 1",children:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:f.line_1,disabled:!p,onClick:function(){return m("setmsg1")}})}),(0,e.jsx)(n.Ki.Item,{label:"Message Line 2",children:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:f.line_2,disabled:!p,onClick:function(){return m("setmsg2")}})})]})})}},80273:function(M,y,t){"use strict";t.r(y),t.d(y,{Communicator:function(){return _}});var e=t(88095),i=t(11358),n=t(33854),r=t(44583),s=t(4413),a=t(92514),g=t(84905),x=t(41608),d=1,h=2,v=3,u=4,m=40,c=5,f=6,p=7,C=8,j=9,O=[d,h,v,u,m,c,f,p,C,j],b={};function I(Q){return O.includes(Q)}var _=function(Q){for(var Z=(0,s.Oc)(),V=Z.act,z=Z.data,Y=z.currentTab,ee=z.video_comm,oe=z.owner,ne=z.occupation,ce=z.connectionStatus,de=z.address,ve=z.visible,pe=z.ring,me=z.selfie_mode,be=z.homeScreen,we=z.targetAddress,Je=z.voice_mobs,ze=z.phone_video_comm,Ke=z.communicating,Be=z.requestsReceived,ct=z.invitesSent,xt=z.imContacts,st=z.targetAddressName,ot=z.imList,Ae=z.feeds,Le=z.target_feed,Pe=z.latest_news,ke=z.note,Me=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],Fe=Me.map(function(je){return(0,e.jsx)(a.$n,{content:je,fontSize:2,fluid:!0,onClick:function(){return V("add_hex",{add_hex:je})}},je)}),We=[],He=0;HeV?Z.length>V?Z.slice(0,V)+"...":Z:Q+Z},F=function(Q,Z,V,z){if(V<0||V>z.length)return k(Q,Z)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var Y=k(Q,Z),ee=k(z[V],Z);return Y&&ee?"TinderMessage_Subsequent_Sent":!Y&&!ee?"TinderMessage_Subsequent_Received":Y?"TinderMessage_First_Sent":"TinderMessage_First_Received"},J=function(Q,Z,V,z,Y){return Qz?"average":Q>Y?"bad":"good"},H=function(Q){var Z=(0,s.Oc)(),V=Z.act,z=Z.data,Y=z.aircontents,ee=z.weather,oe="\xB0";return(0,e.jsxs)(a.wn,{title:"Weather",children:[(0,e.jsx)(a.wn,{title:"Current Conditions",children:(0,e.jsx)(a.Ki,{children:(0,i.pb)(function(ne){return ne.val!=="0"||ne.entry==="Pressure"||ne.entry==="Temperature"})(Y).map(function(ne){return(0,e.jsxs)(a.Ki.Item,{label:ne.entry,color:J(ne.val,ne.bad_low,ne.poor_low,ne.poor_high,ne.bad_high),children:[ne.val,(0,n.jT)(ne.units)]},ne.entry)})})}),(0,e.jsx)(a.wn,{title:"Weather Reports",children:!!ee.length&&(0,e.jsx)(a.Ki,{children:ee.map(function(ne){return(0,e.jsx)(a.Ki.Item,{label:ne.Planet,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Time",children:ne.Time}),(0,e.jsx)(a.Ki.Item,{label:"Weather",children:(0,n.Sn)(ne.Weather)}),(0,e.jsxs)(a.Ki.Item,{label:"Temperature",children:["Current: ",ne.Temperature.toFixed()," ",oe,"C | High:"," ",ne.High.toFixed()," ",oe,"C | Low: ",ne.Low.toFixed()," ",oe,"C"]}),(0,e.jsx)(a.Ki.Item,{label:"Wind Direction",children:ne.WindDir}),(0,e.jsx)(a.Ki.Item,{label:"Wind Speed",children:ne.WindSpeed}),(0,e.jsx)(a.Ki.Item,{label:"Forecast",children:(0,n.jT)(ne.Forecast)})]})},ne.Planet)})})||(0,e.jsx)(a.az,{color:"bad",children:"No weather reports available. Please check back later."})})]})}},90734:function(M,y,t){"use strict";t.r(y),t.d(y,{ComputerFabricator:function(){return c}});var e=t(88095),i=t(33854),n=t(4413),r=t(92514),s=t(84905);function a(O,b){return b||(b=O.slice(0)),O.raw=b,O}function g(){var O=a(["\n Allows your device to operate without external utility power\n source. Advanced batteries increase battery life.\n "]);return g=function(){return O},O}function x(){var O=a(["\n Stores file on your device. Advanced drives can store more\n files, but use more power, shortening battery life.\n "]);return x=function(){return O},O}function d(){var O=a(["\n Allows your device to wirelessly connect to stationwide NTNet\n network. Basic cards are limited to on-station use, while\n advanced cards can operate anywhere near the station, which\n includes asteroid outposts\n "]);return d=function(){return O},O}function h(){var O=a(["\n A device that allows for various paperwork manipulations,\n such as, scanning of documents or printing new ones.\n This device was certified EcoFriendlyPlus and is capable of\n recycling existing paper for printing purposes.\n "]);return h=function(){return O},O}function v(){var O=a(["\n Adds a secondary RFID card reader, for manipulating or\n reading from a second standard RFID card.\n Please note that a primary card reader is necessary to\n allow the device to read your identification, but one\n is included in the base price.\n "]);return v=function(){return O},O}function u(){var O=a(["\n A component critical for your device's functionality.\n It allows you to run programs from your hard drive.\n Advanced CPUs use more power, but allow you to run\n more programs on background at once.\n "]);return u=function(){return O},O}function m(){var O=a(["\n An advanced wireless power relay that allows your device\n to connect to nearby area power controller to provide\n alternative power source. This component is currently\n unavailable on tablet computers due to size restrictions.\n "]);return m=function(){return O},O}var c=function(O){var b=(0,n.Oc)(),I=b.act,_=b.data;return(0,e.jsx)(s.p8,{title:"Personal Computer Vendor",width:500,height:420,children:(0,e.jsxs)(s.p8.Content,{children:[(0,e.jsx)(r.wn,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),_.state!==0&&(0,e.jsx)(r.$n,{fluid:!0,mb:1,icon:"circle",content:"Clear Order",onClick:function(){return I("clean_order")}}),_.state===0&&(0,e.jsx)(f,{}),_.state===1&&(0,e.jsx)(p,{}),_.state===2&&(0,e.jsx)(C,{}),_.state===3&&(0,e.jsx)(j,{})]})})},f=function(O){var b=(0,n.Oc)(),I=b.act,_=b.data;return(0,e.jsxs)(r.wn,{title:"Step 1",minHeight:"306px",children:[(0,e.jsx)(r.az,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,e.jsx)(r.az,{mt:3,children:(0,e.jsxs)(r.xA,{width:"100%",children:[(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{fluid:!0,icon:"laptop",content:"Laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return I("pick_device",{pick:"1"})}})}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{fluid:!0,icon:"tablet-alt",content:"Tablet",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return I("pick_device",{pick:"2"})}})})]})})]})},p=function(O){var b=(0,n.Oc)(),I=b.act,_=b.data;return(0,e.jsxs)(r.wn,{title:"Step 2: Customize your device",minHeight:"282px",buttons:(0,e.jsxs)(r.az,{bold:!0,color:"good",children:[_.totalprice,"\u20AE"]}),children:[(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Battery:",(0,e.jsx)(r.m_,{content:(0,i.c1)(g()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_battery===1,onClick:function(){return I("hw_battery",{battery:"1"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Upgraded",selected:_.hw_battery===2,onClick:function(){return I("hw_battery",{battery:"2"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Advanced",selected:_.hw_battery===3,onClick:function(){return I("hw_battery",{battery:"3"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,e.jsx)(r.m_,{content:(0,i.c1)(x()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_disk===1,onClick:function(){return I("hw_disk",{disk:"1"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Upgraded",selected:_.hw_disk===2,onClick:function(){return I("hw_disk",{disk:"2"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Advanced",selected:_.hw_disk===3,onClick:function(){return I("hw_disk",{disk:"3"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,e.jsx)(r.m_,{content:(0,i.c1)(d()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"None",selected:_.hw_netcard===0,onClick:function(){return I("hw_netcard",{netcard:"0"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_netcard===1,onClick:function(){return I("hw_netcard",{netcard:"1"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Advanced",selected:_.hw_netcard===2,onClick:function(){return I("hw_netcard",{netcard:"2"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,e.jsx)(r.m_,{content:(0,i.c1)(h()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"None",selected:_.hw_nanoprint===0,onClick:function(){return I("hw_nanoprint",{print:"0"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_nanoprint===1,onClick:function(){return I("hw_nanoprint",{print:"1"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Secondary Card Reader:",(0,e.jsx)(r.m_,{content:(0,i.c1)(v()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"None",selected:_.hw_card===0,onClick:function(){return I("hw_card",{card:"0"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_card===1,onClick:function(){return I("hw_card",{card:"1"})}})})]}),_.devtype!==2&&(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,e.jsx)(r.m_,{content:(0,i.c1)(u()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_cpu===1,onClick:function(){return I("hw_cpu",{cpu:"1"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Advanced",selected:_.hw_cpu===2,onClick:function(){return I("hw_cpu",{cpu:"2"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,e.jsx)(r.m_,{content:(0,i.c1)(m()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"None",selected:_.hw_tesla===0,onClick:function(){return I("hw_tesla",{tesla:"0"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_tesla===1,onClick:function(){return I("hw_tesla",{tesla:"1"})}})})]})]}),(0,e.jsx)(r.$n,{fluid:!0,mt:3,content:"Confirm Order",color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){return I("confirm_order")}})]})},C=function(O){var b=(0,n.Oc)(),I=b.act,_=b.data;return(0,e.jsxs)(r.wn,{title:"Step 3: Payment",minHeight:"282px",children:[(0,e.jsx)(r.az,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,e.jsxs)(r.az,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,e.jsx)(r.az,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xA0",(0,e.jsxs)(r.az,{inline:!0,color:"good",children:[_.totalprice,"\u20AE"]})]})]})},j=function(O){return(0,e.jsxs)(r.wn,{minHeight:"282px",children:[(0,e.jsx)(r.az,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,e.jsx)(r.az,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},79415:function(M,y,t){"use strict";t.r(y),t.d(y,{CookingAppliance:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.temperature,v=d.optimalTemp,u=d.temperatureEnough,m=d.efficiency,c=d.containersRemovable,f=d.our_contents;return(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(n.z2,{color:u?"good":"blue",value:h,maxValue:v,children:[(0,e.jsx)(n.zv,{value:h}),"\xB0C / ",v,"\xB0C"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Efficiency",children:[(0,e.jsx)(n.zv,{value:m}),"%"]})]})}),(0,e.jsx)(n.wn,{title:"Containers",children:(0,e.jsx)(n.Ki,{children:f.map(function(p,C){return p.empty?(0,e.jsx)(n.Ki.Item,{label:"Slot #"+(C+1),children:(0,e.jsx)(n.$n,{onClick:function(){return x("slot",{slot:C+1})},children:"Empty"})},C):(0,e.jsx)(n.Ki.Item,{label:"Slot #"+(C+1),verticalAlign:"middle",children:(0,e.jsxs)(n.so,{spacing:1,children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{disabled:!c,onClick:function(){return x("slot",{slot:C+1})},children:p.container||"No Container"})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.z2,{color:p.progressText[0],value:p.progress,maxValue:1,children:p.progressText[1]})})]})},C)})})})]})})}},41608:function(M,y,t){"use strict";t.r(y),t.d(y,{CrewManifest:function(){return g},CrewManifestContent:function(){return x}});var e=t(88095),i=t(33854),n=t(4413),r=t(92514),s=t(1568),a=t(84905),g=function(){return(0,e.jsx)(a.p8,{width:400,height:600,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(d){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.manifest;return(0,e.jsx)(r.wn,{title:"Crew Manifest",noTopPadding:!0,children:m.map(function(c){return!!c.elems.length&&(0,e.jsx)(r.wn,{title:(0,e.jsx)(r.az,{backgroundColor:s.lm.manifest[c.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,e.jsx)(r.az,{ml:1,textAlign:"center",fontSize:1.4,children:c.cat})}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,color:"white",children:[(0,e.jsx)(r.XI.Cell,{children:"Name"}),(0,e.jsx)(r.XI.Cell,{children:"Rank"}),(0,e.jsx)(r.XI.Cell,{children:"Active"})]}),c.elems.map(function(f){return(0,e.jsxs)(r.XI.Row,{color:"average",children:[(0,e.jsx)(r.XI.Cell,{children:(0,i.jT)(f.name)}),(0,e.jsx)(r.XI.Cell,{children:f.rank}),(0,e.jsx)(r.XI.Cell,{children:f.active})]},f.name+f.rank)})]})},c.cat)})})}},93643:function(M,y,t){"use strict";t.r(y),t.d(y,{CrewMonitor:function(){return h},CrewMonitorContent:function(){return v}});var e=t(88095),i=t(11358),n=t(28763),r=t(44583),s=t(4413),a=t(92514),g=t(84905),x=function(m){return m.dead?"Deceased":parseInt(m.stat,10)===1?"Unconscious":"Living"},d=function(m){return m.dead?"red":parseInt(m.stat,10)===1?"orange":"green"},h=function(){var m=function(_){C(_)},c=function(_){b(_)},f=(0,r.useState)(0),p=f[0],C=f[1],j=(0,r.useState)(1),O=j[0],b=j[1];return(0,e.jsx)(g.p8,{width:800,height:600,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(v,{tabIndex:p,zoom:O,onTabIndex:m,onZoom:c})})})},v=function(m){var c=(0,s.Oc)(),f=c.act,p=c.data,C=c.config,j=(0,n.L)([(0,i.Ul)(function(b){return b.name}),(0,i.Ul)(function(b){return b==null?void 0:b.x}),(0,i.Ul)(function(b){return b==null?void 0:b.y}),(0,i.Ul)(function(b){return b==null?void 0:b.realZ})])(p.crewmembers||[]),O;return m.tabIndex===0?O=(0,e.jsxs)(a.XI,{children:[(0,e.jsxs)(a.XI.Row,{header:!0,children:[(0,e.jsx)(a.XI.Cell,{children:"Name"}),(0,e.jsx)(a.XI.Cell,{children:"Status"}),(0,e.jsx)(a.XI.Cell,{children:"Location"})]}),j.map(function(b){return(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsxs)(a.XI.Cell,{children:[b.name," (",b.assignment,")"]}),(0,e.jsxs)(a.XI.Cell,{children:[(0,e.jsx)(a.az,{inline:!0,color:d(b),children:x(b)}),b.sensor_type>=2?(0,e.jsxs)(a.az,{inline:!0,children:["(",(0,e.jsx)(a.az,{inline:!0,color:"red",children:b.brute}),"|",(0,e.jsx)(a.az,{inline:!0,color:"orange",children:b.fire}),"|",(0,e.jsx)(a.az,{inline:!0,color:"green",children:b.tox}),"|",(0,e.jsx)(a.az,{inline:!0,color:"blue",children:b.oxy}),")"]}):null]}),(0,e.jsx)(a.XI.Cell,{children:b.sensor_type===3?p.isAI?(0,e.jsx)(a.$n,{fluid:!0,icon:"location-arrow",content:b.area+" ("+b.x+", "+b.y+")",onClick:function(){return f("track",{track:b.ref})}}):b.area+" ("+b.x+", "+b.y+", "+b.z+")":"Not Available"})]},b.ref)})]}):m.tabIndex===1?O=(0,e.jsx)(u,{zoom:m.zoom,onZoom:m.onZoom}):O="ERROR",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.tU,{children:[(0,e.jsxs)(a.tU.Tab,{selected:m.tabIndex===0,onClick:function(){return m.onTabIndex(0)},children:[(0,e.jsx)(a.In,{name:"table"})," Data View"]},"DataView"),(0,e.jsxs)(a.tU.Tab,{selected:m.tabIndex===1,onClick:function(){return m.onTabIndex(1)},children:[(0,e.jsx)(a.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(a.az,{m:2,children:O})]})},u=function(m){var c=(0,s.Oc)(),f=c.act,p=c.config,C=c.data;return(0,e.jsx)(a.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(a.tx,{onZoom:function(j){return m.onZoom(j)},children:C.crewmembers.filter(function(j){return j.sensor_type===3&&~~j.realZ===~~p.mapZLevel}).map(function(j){return(0,e.jsx)(a.tx.Marker,{x:j.x,y:j.y,zoom:m.zoom,icon:"circle",tooltip:j.name+" ("+j.assignment+")",color:d(j)},j.ref)})})})}},84097:function(M,y,t){"use strict";t.r(y),t.d(y,{Cryo:function(){return g}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],a=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],g=function(h){return(0,e.jsx)(r.p8,{width:520,height:470,resizeable:!0,children:(0,e.jsx)(r.p8.Content,{className:"Layout__content--flexColumn",children:(0,e.jsx)(x,{})})})},x=function(h){var v=(0,i.Oc)(),u=v.act,m=v.data,c=m.isOperating,f=m.hasOccupant,p=m.occupant,C=p===void 0?[]:p,j=m.cellTemperature,O=m.cellTemperatureStatus,b=m.isBeakerLoaded;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Occupant",flexGrow:"1",buttons:(0,e.jsx)(n.$n,{icon:"user-slash",onClick:function(){return u("ejectOccupant")},disabled:!f,children:"Eject"}),children:f?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Occupant",children:C.name||"Unknown"}),(0,e.jsx)(n.Ki.Item,{label:"Health",children:(0,e.jsx)(n.z2,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,e.jsx)(n.zv,{value:Math.round(C.health)})})}),(0,e.jsx)(n.Ki.Item,{label:"Status",color:a[C.stat][0],children:a[C.stat][1]}),(0,e.jsxs)(n.Ki.Item,{label:"Temperature",children:[(0,e.jsx)(n.zv,{value:Math.round(C.bodyTemperature)})," K"]}),(0,e.jsx)(n.Ki.Divider,{}),s.map(function(I){return(0,e.jsx)(n.Ki.Item,{label:I.label,children:(0,e.jsx)(n.z2,{value:C[I.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.jsx)(n.zv,{value:Math.round(C[I.type])})})},I.id)})]}):(0,e.jsx)(n.so,{height:"100%",textAlign:"center",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(n.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected."]})})}),(0,e.jsx)(n.wn,{title:"Cell",buttons:(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return u("ejectBeaker")},disabled:!b,children:"Eject Beaker"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return u(c?"switchOff":"switchOn")},selected:c,children:c?"On":"Off"})}),(0,e.jsxs)(n.Ki.Item,{label:"Temperature",color:O,children:[(0,e.jsx)(n.zv,{value:j})," K"]}),(0,e.jsx)(n.Ki.Item,{label:"Beaker",children:(0,e.jsx)(d,{})})]})})]})},d=function(h){var v=(0,i.Oc)(),u=v.act,m=v.data,c=m.isBeakerLoaded,f=m.beakerLabel,p=m.beakerVolume;return c?(0,e.jsxs)(e.Fragment,{children:[f||(0,e.jsx)(n.az,{color:"average",children:"No label"}),(0,e.jsx)(n.az,{color:!p&&"bad",children:p?(0,e.jsx)(n.zv,{value:p,format:function(C){return Math.round(C)+" units remaining"}}):"Beaker is empty"})]}):(0,e.jsx)(n.az,{color:"average",children:"No beaker loaded"})}},38210:function(M,y,t){"use strict";t.r(y),t.d(y,{CryoStorage:function(){return a},CryoStorageCrew:function(){return g},CryoStorageItems:function(){return x}});var e=t(88095),i=t(44583),n=t(4413),r=t(92514),s=t(84905),a=function(d){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.real_name,c=u.allow_items,f=(0,i.useState)(0),p=f[0],C=f[1];return(0,e.jsx)(s.p8,{width:400,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:p===0,onClick:function(){return C(0)},children:"Crew"}),!!c&&(0,e.jsx)(r.tU.Tab,{selected:p===1,onClick:function(){return C(1)},children:"Items"})]}),(0,e.jsxs)(r.IC,{info:!0,children:["Welcome, ",m,"."]}),p===0&&(0,e.jsx)(g,{}),!!c&&p===1&&(0,e.jsx)(x,{})]})})},g=function(d){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.crew;return(0,e.jsx)(r.wn,{title:"Stored Crew",children:m.length&&m.map(function(c){return(0,e.jsx)(r.az,{color:"label",children:c},c)})||(0,e.jsx)(r.az,{color:"good",children:"No crew currently stored."})})},x=function(d){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.items;return(0,e.jsx)(r.wn,{title:"Stored Items",buttons:(0,e.jsx)(r.$n,{icon:"hand-rock",onClick:function(){return v("allitems")},children:"Claim All"}),children:m.length&&m.map(function(c){return(0,e.jsx)(r.$n,{icon:"hand-rock",onClick:function(){return v("item",{ref:c.ref})},children:c.name},c.ref)})||(0,e.jsx)(r.az,{color:"average",children:"No items stored."})})}},52102:function(M,y,t){"use strict";t.r(y),t.d(y,{CryoStorageItemsVr:function(){return x},CryoStorageVr:function(){return g}});var e=t(88095),i=t(44583),n=t(4413),r=t(92514),s=t(84905),a=t(38210),g=function(d){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.real_name,c=u.allow_items,f=(0,i.useState)(0),p=f[0],C=f[1];return(0,e.jsx)(s.p8,{width:400,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:p===0,onClick:function(){return C(0)},children:"Crew"}),!!c&&(0,e.jsx)(r.tU.Tab,{selected:p===1,onClick:function(){return C(1)},children:"Items"})]}),(0,e.jsxs)(r.IC,{info:!0,children:["Welcome, ",m,"."]}),p===0&&(0,e.jsx)(a.CryoStorageCrew,{}),!!c&&p===1&&(0,e.jsx)(x,{})]})})},x=function(d){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.items;return(0,e.jsx)(r.wn,{title:"Stored Items",children:m.length&&m.map(function(c){return(0,e.jsx)(r.az,{color:"label",children:c},c)})||(0,e.jsx)(r.az,{color:"average",children:"No items stored."})})}},84909:function(M,y,t){"use strict";t.r(y),t.d(y,{DNAForensics:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.scan_progress,v=d.scanning,u=d.bloodsamp,m=d.bloodsamp_desc;return(0,e.jsx)(r.p8,{width:540,height:326,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{selected:v,disabled:!u,icon:"power-off",onClick:function(){return x("scanItem")},children:v?"Halt Scan":"Begin Scan"}),(0,e.jsx)(n.$n,{disabled:!u,icon:"eject",onClick:function(){return x("ejectItem")},children:"Eject Bloodsample"})]}),children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Scan Progress",children:(0,e.jsx)(n.z2,{ranges:{good:[99,1/0],violet:[-1/0,99]},value:h,maxValue:100})})})}),(0,e.jsx)(n.wn,{title:"Blood Sample",children:u&&(0,e.jsxs)(n.az,{children:[u,(0,e.jsx)(n.az,{color:"label",children:m})]})||(0,e.jsx)(n.az,{color:"bad",children:"No blood sample inserted."})})]})})}},13732:function(M,y,t){"use strict";t.r(y),t.d(y,{DNAModifier:function(){return d}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=t(5425),a=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],g=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],x=[5,10,20,30,50],d=function(I){var _=(0,i.Oc)(),S=_.act,P=_.data,A=P.irradiating,R=P.dnaBlockSize,K=P.occupant,N=!K.isViableSubject||!K.uniqueIdentity||!K.structuralEnzymes,k;return A&&(k=(0,e.jsx)(O,{duration:A})),(0,e.jsxs)(r.p8,{width:660,height:870,children:[(0,e.jsx)(s.ComplexModal,{}),k,(0,e.jsxs)(r.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(h,{isDNAInvalid:N}),(0,e.jsx)(v,{isDNAInvalid:N})]})]})},h=function(I){var _=(0,i.Oc)(),S=_.act,P=_.data,A=P.locked,R=P.hasOccupant,K=P.occupant;return(0,e.jsx)(n.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.jsx)(n.$n,{disabled:!R,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Engaged":"Disengaged",onClick:function(){return S("toggleLock")}}),(0,e.jsx)(n.$n,{disabled:!R||A,icon:"user-slash",content:"Eject",onClick:function(){return S("ejectOccupant")}})]}),children:R?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:K.name}),(0,e.jsx)(n.Ki.Item,{label:"Health",children:(0,e.jsx)(n.z2,{min:K.minHealth,max:K.maxHealth,value:K.health/K.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(n.Ki.Item,{label:"Status",color:a[K.stat][0],children:a[K.stat][1]}),(0,e.jsx)(n.Ki.Divider,{})]})}),I.isDNAInvalid?(0,e.jsxs)(n.az,{color:"bad",children:[(0,e.jsx)(n.In,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Radiation",children:(0,e.jsx)(n.z2,{min:"0",max:"100",value:K.radiationLevel/100,color:"average"})}),(0,e.jsx)(n.Ki.Item,{label:"Unique Enzymes",children:P.occupant.uniqueEnzymes?P.occupant.uniqueEnzymes:(0,e.jsxs)(n.az,{color:"bad",children:[(0,e.jsx)(n.In,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})]}):(0,e.jsx)(n.az,{color:"label",children:"Cell unoccupied."})})},v=function(I){var _=(0,i.Oc)(),S=_.act,P=_.data,A=P.selectedMenuKey,R=P.hasOccupant,K=P.occupant;if(R){if(I.isDNAInvalid)return(0,e.jsx)(n.wn,{flexGrow:"1",children:(0,e.jsx)(n.so,{height:"100%",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(n.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No operation possible on this subject."]})})})}else return(0,e.jsx)(n.wn,{flexGrow:"1",children:(0,e.jsx)(n.so,{height:"100%",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(n.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant in DNA modifier."]})})});var N;return A==="ui"?N=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(u,{}),(0,e.jsx)(c,{})]}):A==="se"?N=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(m,{}),(0,e.jsx)(c,{})]}):A==="buffer"?N=(0,e.jsx)(f,{}):A==="rejuvenators"&&(N=(0,e.jsx)(j,{})),(0,e.jsxs)(n.wn,{flexGrow:"1",children:[(0,e.jsx)(n.tU,{children:g.map(function(k,X){return(0,e.jsxs)(n.tU.Tab,{selected:A===k[0],onClick:function(){return S("selectMenuKey",{key:k[0]})},children:[(0,e.jsx)(n.In,{name:k[2]}),k[1]]},X)})}),N]})},u=function(I){var _=(0,i.Oc)(),S=_.act,P=_.data,A=P.selectedUIBlock,R=P.selectedUISubBlock,K=P.selectedUITarget,N=P.dnaBlockSize,k=P.occupant;return(0,e.jsxs)(n.wn,{title:"Modify Unique Identifier",level:"2",children:[(0,e.jsx)(b,{dnaString:k.uniqueIdentity,selectedBlock:A,selectedSubblock:R,blockSize:N,action:"selectUIBlock"}),(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Target",children:(0,e.jsx)(n.N6,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:K,format:function(X){return X.toString(16).toUpperCase()},ml:"0",onChange:function(X,F){return S("changeUITarget",{value:F})}})})}),(0,e.jsx)(n.$n,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){return S("pulseUIRadiation")}})]})},m=function(I){var _=(0,i.Oc)(),S=_.act,P=_.data,A=P.selectedSEBlock,R=P.selectedSESubBlock,K=P.dnaBlockSize,N=P.occupant;return(0,e.jsxs)(n.wn,{title:"Modify Structural Enzymes",level:"2",children:[(0,e.jsx)(b,{dnaString:N.structuralEnzymes,selectedBlock:A,selectedSubblock:R,blockSize:K,action:"selectSEBlock"}),(0,e.jsx)(n.$n,{icon:"radiation",content:"Irradiate Block",onClick:function(){return S("pulseSERadiation")}})]})},c=function(I){var _=(0,i.Oc)(),S=_.act,P=_.data,A=P.radiationIntensity,R=P.radiationDuration;return(0,e.jsxs)(n.wn,{title:"Radiation Emitter",level:"2",children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Intensity",children:(0,e.jsx)(n.N6,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:A,popUpPosition:"right",ml:"0",onChange:function(K,N){return S("radiationIntensity",{value:N})}})}),(0,e.jsx)(n.Ki.Item,{label:"Duration",children:(0,e.jsx)(n.N6,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:R,popUpPosition:"right",ml:"0",onChange:function(K,N){return S("radiationDuration",{value:N})}})})]}),(0,e.jsx)(n.$n,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top",mt:"0.5rem",onClick:function(){return S("pulseRadiation")}})]})},f=function(I){var _=(0,i.Oc)(),S=_.act,P=_.data,A=P.buffers,R=A.map(function(K,N){return(0,e.jsx)(p,{id:N+1,name:"Buffer "+(N+1),buffer:K},N)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Buffers",level:"2",children:R}),(0,e.jsx)(C,{})]})},p=function(I){var _=(0,i.Oc)(),S=_.act,P=_.data,A=I.id,R=I.name,K=I.buffer,N=P.isInjectorReady,k=R+(K.data?" - "+K.label:"");return(0,e.jsx)(n.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsxs)(n.wn,{title:k,level:"3",mx:"0",lineHeight:"18px",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Confirm,{disabled:!K.data,icon:"trash",content:"Clear",onClick:function(){return S("bufferOption",{option:"clear",id:A})}}),(0,e.jsx)(n.$n,{disabled:!K.data,icon:"pen",content:"Rename",onClick:function(){return S("bufferOption",{option:"changeLabel",id:A})}}),(0,e.jsx)(n.$n,{disabled:!K.data||!P.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return S("bufferOption",{option:"saveDisk",id:A})}})]}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Write",children:[(0,e.jsx)(n.$n,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){return S("bufferOption",{option:"saveUI",id:A})}}),(0,e.jsx)(n.$n,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){return S("bufferOption",{option:"saveUIAndUE",id:A})}}),(0,e.jsx)(n.$n,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){return S("bufferOption",{option:"saveSE",id:A})}}),(0,e.jsx)(n.$n,{disabled:!P.hasDisk||!P.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){return S("bufferOption",{option:"loadDisk",id:A})}})]}),!!K.data&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Subject",children:K.owner||(0,e.jsx)(n.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(n.Ki.Item,{label:"Data Type",children:[K.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!K.ue&&" and Unique Enzymes"]}),(0,e.jsxs)(n.Ki.Item,{label:"Transfer to",children:[(0,e.jsx)(n.$n,{disabled:!N,icon:N?"syringe":"spinner",iconSpin:!N,content:"Injector",mb:"0",onClick:function(){return S("bufferOption",{option:"createInjector",id:A})}}),(0,e.jsx)(n.$n,{disabled:!N,icon:N?"syringe":"spinner",iconSpin:!N,content:"Block Injector",mb:"0",onClick:function(){return S("bufferOption",{option:"createInjector",id:A,block:1})}}),(0,e.jsx)(n.$n,{icon:"user",content:"Subject",mb:"0",onClick:function(){return S("bufferOption",{option:"transfer",id:A})}})]})]})]}),!K.data&&(0,e.jsx)(n.az,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},C=function(I){var _=(0,i.Oc)(),S=_.act,P=_.data,A=P.hasDisk,R=P.disk;return(0,e.jsx)(n.wn,{title:"Data Disk",level:"2",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Confirm,{disabled:!A||!R.data,icon:"trash",content:"Wipe",onClick:function(){return S("wipeDisk")}}),(0,e.jsx)(n.$n,{disabled:!A,icon:"eject",content:"Eject",onClick:function(){return S("ejectDisk")}})]}),children:A?R.data?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Label",children:R.label?R.label:"No label"}),(0,e.jsx)(n.Ki.Item,{label:"Subject",children:R.owner?R.owner:(0,e.jsx)(n.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(n.Ki.Item,{label:"Data Type",children:[R.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!R.ue&&" and Unique Enzymes"]})]}):(0,e.jsx)(n.az,{color:"label",children:"Disk is blank."}):(0,e.jsxs)(n.az,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.jsx)(n.In,{name:"save-o",size:"4"}),(0,e.jsx)("br",{}),"No disk inserted."]})})},j=function(I){var _=(0,i.Oc)(),S=_.act,P=_.data,A=P.isBeakerLoaded,R=P.beakerVolume,K=P.beakerLabel;return(0,e.jsx)(n.wn,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,e.jsx)(n.$n,{disabled:!A,icon:"eject",content:"Eject",onClick:function(){return S("ejectBeaker")}}),children:A?(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Inject",children:[x.map(function(N,k){return(0,e.jsx)(n.$n,{disabled:N>R,icon:"syringe",content:N,onClick:function(){return S("injectRejuvenators",{amount:N})}},k)}),(0,e.jsx)(n.$n,{disabled:R<=0,icon:"syringe",content:"All",onClick:function(){return S("injectRejuvenators",{amount:R})}})]}),(0,e.jsxs)(n.Ki.Item,{label:"Beaker",children:[(0,e.jsx)(n.az,{mb:"0.5rem",children:K||"No label"}),R?(0,e.jsxs)(n.az,{color:"good",children:[R," unit",R===1?"":"s"," remaining"]}):(0,e.jsx)(n.az,{color:"bad",children:"Empty"})]})]}):(0,e.jsxs)(n.az,{color:"label",textAlign:"center",my:"25%",children:[(0,e.jsx)(n.In,{name:"exclamation-triangle",size:"4"}),(0,e.jsx)("br",{}),"No beaker loaded."]})})},O=function(I){return(0,e.jsxs)(n.Rr,{textAlign:"center",children:[(0,e.jsx)(n.In,{name:"spinner",size:"5",spin:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(n.az,{color:"average",children:(0,e.jsxs)("h1",{children:[(0,e.jsx)(n.In,{name:"radiation"}),"\xA0Irradiating occupant\xA0",(0,e.jsx)(n.In,{name:"radiation"})]})}),(0,e.jsx)(n.az,{color:"label",children:(0,e.jsxs)("h3",{children:["For ",I.duration," second",I.duration===1?"":"s"]})})]})},b=function(I){for(var _=function(Z){for(var V=function(oe){var ne=oe+1;Y.push((0,e.jsx)(n.$n,{selected:K===z&&N===ne,content:F[Z+oe],mb:"0",onClick:function(){return P(X,{block:z,subblock:ne})}}))},z=Z/k+1,Y=[],ee=0;ee1?"Dangerous!":null]},C.stage)})||(0,e.jsx)(n.az,{children:"No virus sample loaded."})}),(0,e.jsxs)(n.wn,{level:2,title:"Affected Species",color:"label",children:[!p||!p.length?"None":null,p.sort().join(", ")]}),(0,e.jsxs)(n.wn,{level:2,title:"Reverse Engineering",children:[(0,e.jsx)(n.az,{color:"bad",mb:1,children:(0,e.jsx)("i",{children:"CAUTION: Reverse engineering will destroy the viral sample."})}),m.map(function(C){return(0,e.jsx)(n.$n,{content:C.stage,icon:"exchange-alt",onClick:function(){return h("grab",{grab:C.reference})}},C.stage)}),(0,e.jsx)(n.$n,{content:"Species",icon:"exchange-alt",onClick:function(){return h("affected_species")}})]})]})]})},g=function(x){var d=(0,i.Oc)(),h=d.act,v=d.data,u=v.dish_inserted,m=v.buffer,c=v.species_buffer,f=v.effects,p=v.info,C=v.growth,j=v.affected_species,O=v.busy;return(0,e.jsxs)(n.wn,{title:"Storage",children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Memory Buffer",children:m?(0,e.jsxs)(n.az,{children:[m.name," (",m.stage,")"]}):c?(0,e.jsx)(n.az,{children:c}):"Empty"})}),(0,e.jsx)(n.$n,{mt:1,icon:"save",content:"Save To Disk",disabled:!m&&!c,onClick:function(){return h("disk")}}),m?(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"pen",content:"Splice #1",disabled:m.stage>1,onClick:function(){return h("splice",{splice:1})}}),(0,e.jsx)(n.$n,{icon:"pen",content:"Splice #2",disabled:m.stage>2,onClick:function(){return h("splice",{splice:2})}}),(0,e.jsx)(n.$n,{icon:"pen",content:"Splice #3",disabled:m.stage>3,onClick:function(){return h("splice",{splice:3})}}),(0,e.jsx)(n.$n,{icon:"pen",content:"Splice #4",disabled:m.stage>4,onClick:function(){return h("splice",{splice:4})}})]}):c?(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"pen",content:"Splice Species",disabled:!c||p,onClick:function(){return h("splice",{splice:5})}})}):null]})}},44421:function(M,y,t){"use strict";t.r(y),t.d(y,{DishIncubator:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(24158),s=t(84905),a=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=h.on,u=h.system_in_use,m=h.food_supply,c=h.radiation,f=h.growth,p=h.toxins,C=h.chemicals_inserted,j=h.can_breed_virus,O=h.chemical_volume,b=h.max_chemical_volume,I=h.dish_inserted,_=h.blood_already_infected,S=h.virus,P=h.analysed,A=h.infection_rate;return(0,e.jsx)(s.p8,{width:400,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.wn,{title:"Environmental Conditions",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:v,content:v?"On":"Off",onClick:function(){return d("power")}}),children:[(0,e.jsxs)(n.so,{spacing:1,mb:1,children:[(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"radiation",content:"Add Radiation",onClick:function(){return d("rad")}})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",content:"Flush System",disabled:!u,onClick:function(){return d("flush")}})})]}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Virus Food",children:(0,e.jsx)(n.z2,{minValue:0,maxValue:100,ranges:{good:[40,1/0],average:[20,40],bad:[-1/0,20]},value:m})}),(0,e.jsx)(n.Ki.Item,{label:"Radiation Level",children:(0,e.jsxs)(n.z2,{minValue:0,maxValue:100,color:c>=50?"bad":f>=25?"average":"good",value:c,children:[(0,r.qQ)(c*1e4)," \xB5Sv"]})}),(0,e.jsx)(n.Ki.Item,{label:"Toxicity",children:(0,e.jsx)(n.z2,{minValue:0,maxValue:100,ranges:{bad:[50,1/0],average:[25,50],good:[-1/0,25]},value:p})})]})]}),(0,e.jsx)(n.wn,{title:j?"Vial":"Chemicals",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"eject",content:"Eject "+(j?"Vial":"Chemicals"),disabled:!C,onClick:function(){return d("ejectchem")}}),(0,e.jsx)(n.$n,{icon:"virus",content:"Breed Virus",disabled:!j,onClick:function(){return d("virus")}})]}),children:C&&(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Volume",children:(0,e.jsxs)(n.z2,{minValue:0,maxValue:b,value:O,children:[O,"/",b]})}),(0,e.jsxs)(n.Ki.Item,{label:"Breeding Environment",color:j?"good":"average",children:[I?j?"Suitable":"No hemolytic samples detected":"N/A",_?(0,e.jsx)(n.az,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,e.jsx)(n.az,{color:"average",children:"No chemicals inserted."})}),(0,e.jsx)(n.wn,{title:"Virus Dish",buttons:(0,e.jsx)(n.$n,{icon:"eject",content:"Eject Dish",disabled:!I,onClick:function(){return d("ejectdish")}}),children:I?S?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Growth Density",children:(0,e.jsx)(n.z2,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:f})}),(0,e.jsx)(n.Ki.Item,{label:"Infection Rate",children:P?A:"Unknown."})]}):(0,e.jsx)(n.az,{color:"bad",children:"No virus detected."}):(0,e.jsx)(n.az,{color:"average",children:"No dish loaded."})})]})})}},26598:function(M,y,t){"use strict";t.r(y),t.d(y,{DisposalBin:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.mode,v=d.pressure,u=d.isAI,m=d.panel_open,c=d.flushing,f,p;return h===2?(f="good",p="Ready"):h<=0?(f="bad",p="N/A"):h===1?(f="average",p="Pressurizing"):(f="average",p="Idle"),(0,e.jsx)(r.p8,{width:300,height:250,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.az,{bold:!0,m:1,children:"Status"}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"State",color:f,children:p}),(0,e.jsx)(n.Ki.Item,{label:"Pressure",children:(0,e.jsx)(n.z2,{ranges:{bad:[-1/0,0],average:[0,99],good:[99,1/0]},value:v,minValue:0,maxValue:100})})]}),(0,e.jsx)(n.az,{bold:!0,m:1,children:"Controls"}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Handle",children:[(0,e.jsx)(n.$n,{icon:"toggle-off",disabled:u||m,content:"Disengaged",selected:c?null:"selected",onClick:function(){return x("disengageHandle")}}),(0,e.jsx)(n.$n,{icon:"toggle-on",disabled:u||m,content:"Engaged",selected:c?"selected":null,onClick:function(){return x("engageHandle")}})]}),(0,e.jsxs)(n.Ki.Item,{label:"Power",children:[(0,e.jsx)(n.$n,{icon:"toggle-off",disabled:h===-1,content:"Off",selected:h?null:"selected",onClick:function(){return x("pumpOff")}}),(0,e.jsx)(n.$n,{icon:"toggle-on",disabled:h===-1,content:"On",selected:h?"selected":null,onClick:function(){return x("pumpOn")}})]}),(0,e.jsx)(n.Ki.Item,{label:"Eject",children:(0,e.jsx)(n.$n,{icon:"sign-out-alt",disabled:u,content:"Eject Contents",onClick:function(){return x("eject")}})})]})]})})})}},26763:function(M,y,t){"use strict";t.r(y),t.d(y,{DroneConsole:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.drones,v=d.areas,u=d.selected_area,m=d.fabricator,c=d.fabPower;return(0,e.jsx)(r.p8,{width:600,height:350,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Drone Fabricator",buttons:(0,e.jsx)(n.$n,{disabled:!m,selected:c,icon:"power-off",content:c?"Enabled":"Disabled",onClick:function(){return x("toggle_fab")}}),children:m?(0,e.jsx)(n.az,{color:"good",children:"Linked."}):(0,e.jsxs)(n.az,{color:"bad",children:["Fabricator not detected.",(0,e.jsx)(n.$n,{icon:"sync",content:"Search for Fabricator",onClick:function(){return x("search_fab")}})]})}),(0,e.jsxs)(n.wn,{title:"Request Drone",children:[(0,e.jsx)(n.ms,{options:v?v.sort():null,selected:u,width:"100%",onSelected:function(f){return x("set_dcall_area",{area:f})}}),(0,e.jsx)(n.$n,{icon:"share-square",content:"Send Ping",onClick:function(){return x("ping")}})]}),(0,e.jsx)(n.wn,{title:"Maintenance Units",children:h&&h.length?(0,e.jsx)(n.Ki,{children:h.map(function(f){return(0,e.jsx)(n.Ki.Item,{label:f.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"sync",content:"Resync",onClick:function(){return x("resync",{ref:f.ref})}}),(0,e.jsx)(n.$n.Confirm,{icon:"exclamation-triangle",color:"red",content:"Shutdown",onClick:function(){return x("shutdown",{ref:f.ref})}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Location",children:f.loc}),(0,e.jsxs)(n.Ki.Item,{label:"Charge",children:[f.charge," / ",f.maxCharge]}),(0,e.jsx)(n.Ki.Item,{label:"Active",children:f.active?"Yes":"No"})]})},f.name)})}):(0,e.jsx)(n.az,{color:"bad",children:"No drones detected."})})]})})}},74680:function(M,y,t){"use strict";t.r(y),t.d(y,{EmbeddedController:function(){return x}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=t(47868),a=(0,s.h)("fuck"),g={},x=function(P){var A=(0,i.Oc)(),R=A.act,K=A.data,N=K.internalTemplateName,k=g[N];if(!k)throw Error("Unable to find Component for template name: "+N);return(0,e.jsx)(r.p8,{width:450,height:340,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(k,{})})})},d=function(P){var A=P.bars;return(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsx)(n.Ki,{children:A.map(function(R){return(0,e.jsx)(n.Ki.Item,{label:R.label,children:(0,e.jsx)(n.z2,{color:R.color(R.value),minValue:R.minValue,maxValue:R.maxValue,value:R.value,children:R.textValue})},R.label)})})})},h=function(P){var A=(0,i.Oc)(),R=A.data,K=A.act,N=!0;R.interior_status&&R.interior_status.state==="open"?N=!1:R.external_pressure&&R.chamber_pressure&&(N=!(Math.abs(R.external_pressure-R.chamber_pressure)>5));var k=!0;return R.exterior_status&&R.exterior_status.state==="open"?k=!1:R.internal_pressure&&R.chamber_pressure&&(k=!(Math.abs(R.internal_pressure-R.chamber_pressure)>5)),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{disabled:R.airlock_disabled,icon:"arrow-left",content:"Cycle to Exterior",onClick:function(){return K("cycle_ext")}}),(0,e.jsx)(n.$n,{disabled:R.airlock_disabled,icon:"arrow-right",content:"Cycle to Interior",onClick:function(){return K("cycle_int")}})]}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n.Confirm,{disabled:R.airlock_disabled,color:N?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Exterior Door",onClick:function(){return K("force_ext")}}),(0,e.jsx)(n.$n.Confirm,{disabled:R.airlock_disabled,color:k?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Interior Door",onClick:function(){return K("force_int")}})]})]})},v=function(P){var A=(0,i.Oc)(),R=A.data,K=A.act,N={docked:(0,e.jsx)(u,{}),undocking:(0,e.jsx)(n.az,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,e.jsx)(n.az,{color:"grey",children:"POD EJECTED"}),docking:(0,e.jsx)(n.az,{color:"good",children:"INITIALIZING..."})},k=(0,e.jsx)(n.az,{color:"bad",children:"ERROR"});return R.exterior_status.state==="open"?k=(0,e.jsx)(n.az,{color:"average",children:"OPEN"}):R.exterior_status.lock==="unlocked"?k=(0,e.jsx)(n.az,{color:"average",children:"UNSECURED"}):R.exterior_status.lock==="locked"&&(k=(0,e.jsx)(n.az,{color:"good",children:"SECURED"})),(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Escape Pod Status",children:N[R.docking_status]}),(0,e.jsx)(n.Ki.Item,{label:"Docking Hatch",children:k})]})})},u=function(P){var A=(0,i.Oc)(),R=A.data,K=A.act;return R.armed?(0,e.jsx)(n.az,{color:"average",children:"ARMED"}):(0,e.jsx)(n.az,{color:"good",children:"SYSTEMS OK"})},m=function(P){var A=(0,i.Oc)(),R=A.data,K=A.act;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{disabled:!R.override_enabled,icon:"exclamation-triangle",content:"Force Exterior Door",color:R.docking_status!=="docked"?"bad":"",onClick:function(){return K("force_door")}}),(0,e.jsx)(n.$n,{selected:R.override_enabled,color:R.docking_status!=="docked"?"bad":"average",icon:"exclamation-triangle",content:"Override",onClick:function(){return K("toggle_override")}})]})},c=function(P){var A=(0,i.Oc)(),R=A.data,K=A.act,N={docked:(0,e.jsx)(n.az,{color:"good",children:"DOCKED"}),docking:(0,e.jsx)(n.az,{color:"average",children:"DOCKING"}),undocking:(0,e.jsx)(n.az,{color:"average",children:"UNDOCKING"}),undocked:(0,e.jsx)(n.az,{color:"grey",children:"NOT IN USE"})},k=N[R.docking_status];return R.override_enabled&&(k=(0,e.jsxs)(n.az,{color:"bad",children:[R.docking_status.toUpperCase(),"-OVERRIDE ENABLED"]})),k},f=function(P){var A=(0,i.Oc)(),R=A.act,K=A.data,N=function(X){return X<80||X>120?"bad":X<95||X>110?"average":"good"},k=[{minValue:0,maxValue:202,value:K.external_pressure,label:"External Pressure",textValue:K.external_pressure+" kPa",color:N},{minValue:0,maxValue:202,value:K.chamber_pressure,label:"Chamber Pressure",textValue:K.chamber_pressure+" kPa",color:N},{minValue:0,maxValue:202,value:K.internal_pressure,label:"Internal Pressure",textValue:K.internal_pressure+" kPa",color:N}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{bars:k}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(h,{}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"sync",content:"Purge",onClick:function(){return R("purge")}}),(0,e.jsx)(n.$n,{icon:"lock-open",content:"Secure",onClick:function(){return R("secure")}})]}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!K.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return R("abort")}})})]})]})};g.AirlockConsoleAdvanced=f;var p=function(P){var A=(0,i.Oc)(),R=A.act,K=A.data,N=[{minValue:0,maxValue:202,value:K.chamber_pressure,label:"Chamber Pressure",textValue:K.chamber_pressure+" kPa",color:function(k){return k<80||k>120?"bad":k<95||k>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{bars:N}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(h,{}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!K.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return R("abort")}})})]})]})};g.AirlockConsoleSimple=p;var C=function(P){var A=(0,i.Oc)(),R=A.act,K=A.data,N=[{minValue:0,maxValue:202,value:K.chamber_pressure,label:"Chamber Pressure",textValue:K.chamber_pressure+" kPa",color:function(k){return k<80||k>120?"bad":k<95||k>110?"average":"good"}},{minValue:0,maxValue:100,value:K.chamber_phoron,label:"Chamber Phoron",textValue:K.chamber_phoron+" mol",color:function(k){return k>5?"bad":k>.5?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{bars:N}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(h,{}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!K.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return R("abort")}})})]})]})};g.AirlockConsolePhoron=C;var j=function(P){var A=(0,i.Oc)(),R=A.act,K=A.data,N=[{minValue:0,maxValue:202,value:K.chamber_pressure,label:"Chamber Pressure",textValue:K.chamber_pressure+" kPa",color:function(k){return k<80||k>120?"bad":k<95||k>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Dock",buttons:K.airlock_disabled||K.override_enabled?(0,e.jsx)(n.$n,{icon:"exclamation-triangle",color:K.override_enabled?"red":"",content:"Override",onClick:function(){return R("toggle_override")}}):null,children:(0,e.jsx)(c,{})}),(0,e.jsx)(d,{bars:N}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(h,{}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!K.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return R("abort")}})})]})]})};g.AirlockConsoleDocking=j;var O=function(P){var A=(0,i.Oc)(),R=A.act,K=A.data,N=(0,e.jsx)(n.az,{color:"bad",children:"ERROR"});return K.exterior_status.state==="open"?N=(0,e.jsx)(n.az,{color:"average",children:"OPEN"}):K.exterior_status.lock==="unlocked"?N=(0,e.jsx)(n.az,{color:"average",children:"UNSECURED"}):K.exterior_status.lock==="locked"&&(N=(0,e.jsx)(n.az,{color:"good",children:"SECURED"})),(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"exclamation-triangle",disabled:!K.override_enabled,content:"Force exterior door",onClick:function(){return R("force_door")}}),(0,e.jsx)(n.$n,{icon:"exclamation-triangle",color:K.override_enabled?"red":"",content:"Override",onClick:function(){return R("toggle_override")}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Dock Status",children:(0,e.jsx)(c,{})}),(0,e.jsx)(n.Ki.Item,{label:"Docking Hatch",children:N})]})})};g.DockingConsoleSimple=O;var b=function(P){var A=(0,i.Oc)().data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Docking Status",children:(0,e.jsx)(c,{})}),(0,e.jsx)(n.wn,{title:"Airlocks",children:A.airlocks.length?(0,e.jsx)(n.Ki,{children:A.airlocks.map(function(R){return(0,e.jsx)(n.Ki.Item,{color:R.override_enabled?"bad":"good",label:R.name,children:R.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},R.name)})}):(0,e.jsx)(n.so,{height:"100%",mt:"0.5em",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,e.jsx)(n.In,{name:"door-closed",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No airlocks found."]})})})]})};g.DockingConsoleMulti=b;var I=function(P){var A=(0,i.Oc)(),R=A.act,K=A.data,N=K.interior_status.state==="open"||K.exterior_status.state==="closed",k=K.exterior_status.state==="open"||K.interior_status.state==="closed";return(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:N?"arrow-left":"exclamation-triangle",content:N?"Cycle To Exterior":"Lock Exterior Door",onClick:function(){R(N?"cycle_ext_door":"force_ext")}}),(0,e.jsx)(n.$n,{icon:k?"arrow-right":"exclamation-triangle",content:k?"Cycle To Interior":"Lock Interior Door",onClick:function(){R(k?"cycle_int_door":"force_int")}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Exterior Door Status",children:K.exterior_status.state==="closed"?"Locked":"Open"}),(0,e.jsx)(n.Ki.Item,{label:"Interior Door Status",children:K.interior_status.state==="closed"?"Locked":"Open"})]})})};g.DoorAccessConsole=I;var _=function(P){var A=(0,i.Oc)(),R=A.act,K=A.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(m,{}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"exclamation-triangle",disabled:K.armed,color:K.armed?"bad":"average",content:"ARM",onClick:function(){return R("manual_arm")}}),(0,e.jsx)(n.$n,{icon:"exclamation-triangle",disabled:!K.can_force,color:"bad",content:"MANUAL EJECT",onClick:function(){return R("force_launch")}})]})]})]})};g.EscapePodConsole=_;var S=function(P){var A=(0,i.Oc)().data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsx)(m,{})})]})};g.EscapePodBerthConsole=S},37624:function(M,y,t){"use strict";t.r(y),t.d(y,{DisplayDetails:function(){return x},EntityNarrate:function(){return a},EntitySelection:function(){return g},ModeSelector:function(){return d},NarrationInput:function(){return h}});var e=t(88095),i=t(44583),n=t(4413),r=t(92514),s=t(84905),a=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data;return(0,e.jsx)(s.p8,{width:800,height:470,theme:"abstract",children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{scrollable:!0,grow:2,fill:!0,children:(0,e.jsx)(r.wn,{scrollable:!0,children:(0,e.jsx)(g,{})})}),(0,e.jsx)(r.so.Item,{grow:.25,fill:!0,children:(0,e.jsx)(r.cG,{vertical:!0})}),(0,e.jsx)(r.so.Item,{grow:6.75,fill:!0,children:(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{direction:"column",justify:"space-between",children:[(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(r.wn,{title:"Details",children:(0,e.jsx)(x,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(r.wn,{title:"Select Behaviour",children:(0,e.jsx)(d,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(h,{})})]})})})]})})})})},g=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,f=c.selection_mode,p=c.multi_id_selection,C=c.entity_names;return(0,e.jsx)(r.so,{direction:"column",grow:!0,children:(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.wn,{title:"Choose!",buttons:(0,e.jsx)(r.$n,{selected:f,fill:!0,content:"Multi-Selection",onClick:function(){return m("change_mode_multi")}}),children:(0,e.jsx)(r.tU,{vertical:!0,children:C.map(function(j){return(0,e.jsx)(r.tU.Tab,{selected:p.includes(j),onClick:function(){return m("select_entity",{id_selected:j})},children:(0,e.jsx)(r.az,{inline:!0,children:j})},j)})})})})})},x=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,f=c.selection_mode,p=c.number_mob_selected,C=c.selected_id,j=c.selected_name,O=c.selected_type;return f?(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Number of entities selected:"})," ",p]}):(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Selected ID:"})," ",C," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Name:"})," ",j," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Type:"})," ",O," ",(0,e.jsx)("br",{})]})},d=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,f=c.privacy_select,p=c.mode_select;return(0,e.jsxs)(r.so,{direction:"row",children:[(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return m("change_mode_privacy")},selected:f,fluid:!0,tooltip:"This button changes whether your narration is loud (any who see/hear) or subtle (range of 1 tile) "+(f?"Click here to disable subtle mode":"Click here to enable subtle mode"),content:f?"Currently: Subtle":"Currently: Loud"})}),(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return m("change_mode_narration")},selected:p,fluid:!0,tooltip:"This button sets your narration to talk audiably or emote visibly "+(p?"Click here to emote visibly.":"Click here to talk audiably."),content:p?"Currently: Emoting":"Currently: Talking"})})]})},h=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,f=(0,i.useState)(""),p=f[0],C=f[1];return(0,e.jsx)(r.wn,{title:"Narration Text",buttons:(0,e.jsx)(r.$n,{onClick:function(){return m("narrate",{message:p})},content:"Send Narration"}),children:(0,e.jsx)(r.so,{children:(0,e.jsx)(r.so.Item,{width:"85%",children:(0,e.jsx)(r.fs,{height:"18rem",onChange:function(j,O){return C(O)},value:p||""})})})})}},36907:function(M,y,t){"use strict";t.r(y),t.d(y,{ExonetNode:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.on,v=d.allowPDAs,u=d.allowCommunicators,m=d.allowNewscasters,c=d.logs;return(0,e.jsx)(r.p8,{width:400,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:h,content:"Power "+(h?"On":"Off"),onClick:function(){return x("toggle_power")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Incoming PDA Messages",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:v,content:v?"Open":"Closed",onClick:function(){return x("toggle_PDA_port")}})}),(0,e.jsx)(n.Ki.Item,{label:"Incoming Communicators",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:u,content:u?"Open":"Closed",onClick:function(){return x("toggle_communicator_port")}})}),(0,e.jsx)(n.Ki.Item,{label:"Incoming Newscaster Content",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:m,content:m?"Open":"Closed",onClick:function(){return x("toggle_newscaster_port")}})})]})}),(0,e.jsx)(n.wn,{title:"Logging",children:(0,e.jsxs)(n.so,{wrap:"wrap",children:[c.map(function(f,p){return(0,e.jsx)(n.so.Item,{m:"2px",basis:"49%",grow:p%2,children:f},p)}),!c||c.length===0?(0,e.jsx)(n.az,{color:"average",children:"No logs found."}):null]})})]})})}},47926:function(M,y,t){"use strict";t.r(y),t.d(y,{ExosuitFabricator:function(){return A},Materials:function(){return K}});var e=t(88095),i=t(11358),n=t(5229),r=t(84352),s=t(33854),a=t(44583),g=t(4413),x=t(92514),d=t(24158),h=t(84905);function v(V,z){(z==null||z>V.length)&&(z=V.length);for(var Y=0,ee=new Array(z);Y=V.length?{done:!0}:{done:!1,value:V[ee++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c={steel:"sheet-metal_3",glass:"sheet-glass_3",silver:"sheet-silver_3",graphite:"sheet-puck_3",plasteel:"sheet-plasteel_3",durasteel:"sheet-durasteel_3",verdantium:"sheet-wavy_3",morphium:"sheet-wavy_3",mhydrogen:"sheet-mythril_3",gold:"sheet-gold_3",diamond:"sheet-diamond",supermatter:"sheet-super_3",osmium:"sheet-silver_3",phoron:"sheet-phoron_3",uranium:"sheet-uranium_3",titanium:"sheet-titanium_3",lead:"sheet-adamantine_3",platinum:"sheet-adamantine_3",plastic:"sheet-plastic_3"},f=0,p=1,C=2,j,O=(j={},j[f]=!1,j[p]="average",j[C]="bad",j),b=function(V){var z={};return V.forEach(function(Y){z[Y.name]=Y.amount}),z},I=function(V,z,Y){return V>Y?{color:C,deficit:V-Y}:z>Y?{color:p,deficit:V}:V+z>Y?{color:p,deficit:V+z-Y}:{color:f,deficit:0}},_=function(V,z,Y){var ee={textColor:f};return Object.keys(Y.cost).forEach(function(oe){ee[oe]=I(Y.cost[oe],z[oe],V[oe]),ee[oe].color>ee.textColor&&(ee.textColor=ee[oe].color)}),ee},S=function(V,z){var Y={},ee={},oe={},ne={};return z.forEach(function(ce,de){ne[de]=f,Object.keys(ce.cost).forEach(function(ve){Y[ve]=Y[ve]||0,oe[ve]=oe[ve]||0,ee[ve]=I(ce.cost[ve],Y[ve],V[ve]),ee[ve].color!==f?ne[de]1&&ne0});return ce.length===0?(0,e.jsxs)(x.az,{textAlign:"center",children:[(0,e.jsx)(x.In,{textAlign:"center",size:5,name:"inbox"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"No Materials Loaded."})]}):(0,e.jsx)(x.so,{wrap:"wrap",children:ce.map(function(de){return(0,e.jsxs)(x.so.Item,{width:"80px",children:[(0,e.jsx)(N,{name:de.name,amount:de.amount,formatsi:!0}),!oe&&(0,e.jsx)(x.az,{mt:1,style:{"text-align":"center"},children:(0,e.jsx)(R,{material:de})})]},de.name)||null})})},N=function(V){var z=V.name,Y=V.amount,ee=V.formatsi,oe=V.formatmoney,ne=V.color,ce=V.style,de="0";return Y<1&&Y>0?de=(0,n.Mg)(Y,2):ee?de=(0,d.QL)(Y,0):oe?de=(0,d.up)(Y):de=Y,(0,e.jsxs)(x.so,{direction:"column",align:"center",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.m_,{position:"bottom",content:(0,s.Sn)(z),children:(0,e.jsx)(x.az,{className:(0,r.Ly)(["sheetmaterials32x32",c[z]]),position:"relative",style:ce})})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{textColor:ne,style:{"text-align":"center"},children:de})})]})},k=function(V){var z=(0,g.Oc)().data,Y=z.partSets||[],ee=z.buildableParts||{},oe=(0,g.QY)("part_tab",Y.length?ee[0]:""),ne=oe[0],ce=oe[1];return(0,e.jsx)(x.tU,{vertical:!0,children:Y.map(function(de){return!!ee[de]&&(0,e.jsx)(x.tU.Tab,{selected:de===ne,disabled:!ee[de],onClick:function(){return ce(de)},children:de},de)})})},X=function(V){var z=(0,g.Oc)().data,Y=function(Ke){for(var Be=m(Ke),ct;!(ct=Be()).done;){var xt=ct.value;if(oe[xt])return xt}return null},ee=z.partSets||[],oe=z.buildableParts||[],ne=V.queueMaterials,ce=V.materials,de=(0,g.QY)("part_tab",Y(ee)),ve=de[0],pe=de[1],me=(0,g.QY)("search_text",""),be=me[0],we=me[1];if(!ve||!oe[ve]){var Je=Y(ee);if(Je)pe(Je);else return}var ze;return be?(ze=[],P(be,oe).forEach(function(Ke){Ke.format=_(ce,ne,Ke),ze.push(Ke)})):(ze={Parts:[]},oe[ve].forEach(function(Ke){if(Ke.format=_(ce,ne,Ke),!Ke.subCategory){ze.Parts.push(Ke);return}Ke.subCategory in ze||(ze[Ke.subCategory]=[]),ze[Ke.subCategory].push(Ke)})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.wn,{children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{mr:1,children:(0,e.jsx)(x.In,{name:"search"})}),(0,e.jsx)(x.so.Item,{grow:1,children:(0,e.jsx)(x.pd,{fluid:!0,placeholder:"Search for...",value:be,onInput:function(Ke,Be){return we(Be)}})})]})}),!!be&&(0,e.jsx)(F,{name:"Search Results",parts:ze,forceShow:!0,placeholder:"No matching results..."})||Object.keys(ze).map(function(Ke){return(0,e.jsx)(F,{name:Ke,parts:ze[Ke]},Ke)})]})},F=function(V){var z=(0,g.Oc)(),Y=z.act,ee=z.data,oe=ee.buildingPart,ne=V.parts,ce=V.name,de=V.forceShow,ve=V.placeholder,pe=(0,g.QY)("display_mats",!1),me=pe[0];return(!!ne.length||de)&&(0,e.jsxs)(x.wn,{title:ce,buttons:(0,e.jsx)(x.$n,{disabled:!ne.length,color:"good",content:"Queue All",icon:"plus-circle",onClick:function(){return Y("add_queue_set",{part_list:ne.map(function(be){return be.id})})}}),children:[!ne.length&&ve,ne.map(function(be){return(0,e.jsxs)(a.Fragment,{children:[(0,e.jsxs)(x.so,{align:"center",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{disabled:oe||be.format.textColor===C,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return Y("build_part",{id:be.id})}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){return Y("add_queue_part",{id:be.id})}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{inline:!0,textColor:O[be.format.textColor],children:be.name})}),(0,e.jsx)(x.so.Item,{grow:1}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{icon:"question-circle",transparent:!0,height:"20px",tooltip:"Build Time: "+be.printTime+"s. "+(be.desc||""),tooltipPosition:"left"})})]}),me&&(0,e.jsx)(x.so,{mb:2,children:Object.keys(be.cost).map(function(we){return(0,e.jsx)(x.so.Item,{width:"50px",color:O[be.format[we].color],children:(0,e.jsx)(N,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:we,amount:be.cost[we]})},we)})})]},be.name)})]})},J=function(V){var z=(0,g.Oc)(),Y=z.act,ee=z.data,oe=ee.isProcessingQueue,ne=ee.queue||[],ce=V.queueMaterials,de=V.missingMaterials,ve=V.textColors;return(0,e.jsxs)(x.so,{height:"100%",width:"100%",direction:"column",children:[(0,e.jsx)(x.so.Item,{height:0,grow:1,children:(0,e.jsx)(x.wn,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.$n.Confirm,{disabled:!ne.length,color:"bad",icon:"minus-circle",content:"Clear Queue",onClick:function(){return Y("clear_queue")}}),!!oe&&(0,e.jsx)(x.$n,{disabled:!ne.length,content:"Stop",icon:"stop",onClick:function(){return Y("stop_queue")}})||(0,e.jsx)(x.$n,{disabled:!ne.length,content:"Build Queue",icon:"play",onClick:function(){return Y("build_queue")}})]}),children:(0,e.jsxs)(x.so,{direction:"column",height:"100%",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(Z,{})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(Q,{textColors:ve})})]})})}),!!ne.length&&(0,e.jsx)(x.so.Item,{mt:1,children:(0,e.jsx)(x.wn,{title:"Material Cost",children:(0,e.jsx)(H,{queueMaterials:ce,missingMaterials:de})})})]})},H=function(V){var z=V.queueMaterials,Y=V.missingMaterials;return(0,e.jsx)(x.so,{wrap:"wrap",children:Object.keys(z).map(function(ee){return(0,e.jsxs)(x.so.Item,{width:"12%",children:[(0,e.jsx)(N,{formatmoney:!0,name:ee,amount:z[ee]}),!!Y[ee]&&(0,e.jsx)(x.az,{textColor:"bad",style:{"text-align":"center"},children:(0,d.up)(Y[ee])})]},ee)})})},Q=function(V){var z=(0,g.Oc)(),Y=z.act,ee=z.data,oe=V.textColors,ne=ee.queue||[];return ne.length?ne.map(function(ce,de){return(0,e.jsx)(x.az,{children:(0,e.jsxs)(x.so,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,e.jsx)(x.so.Item,{basis:"content",children:(0,e.jsx)(x.$n,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){return Y("del_queue_part",{index:de+1})}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{inline:!0,textColor:O[oe[de]],children:ce.name})})]})},ce.name)}):(0,e.jsx)(e.Fragment,{children:"No parts in queue."})},Z=function(V){var z=(0,g.Oc)().data,Y=z.buildingPart,ee=z.storedPart;if(ee){var oe=ee.name;return(0,e.jsx)(x.az,{children:(0,e.jsx)(x.z2,{minValue:0,maxValue:1,value:1,color:"average",children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{children:oe}),(0,e.jsx)(x.so.Item,{grow:1}),(0,e.jsx)(x.so.Item,{children:"Fabricator outlet obstructed..."})]})})})}if(Y){var ne=Y.name,ce=Y.duration,de=Y.printTime,ve=Math.ceil(ce/10);return(0,e.jsx)(x.az,{children:(0,e.jsx)(x.z2,{minValue:0,maxValue:de,value:ce,children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{children:ne}),(0,e.jsx)(x.so.Item,{grow:1}),(0,e.jsx)(x.so.Item,{children:ve>=0&&ve+"s"||"Dispensing..."})]})})})}}},83151:function(M,y,t){"use strict";t.r(y),t.d(y,{Farmbot:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.on,v=d.locked,u=d.tank,m=d.tankVolume,c=d.tankMaxVolume,f=d.waters_trays,p=d.refills_water,C=d.uproots_weeds,j=d.replaces_nutriment,O=d.collects_produce,b=d.removes_dead;return(0,e.jsx)(r.p8,{width:450,height:540,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Hydroponic Assistance Unit v2.0",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:h,onClick:function(){return x("power")},children:h?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Water Tank",children:u&&(0,e.jsxs)(n.z2,{value:m,maxValue:c,children:[m," / ",c]})||(0,e.jsx)(n.az,{color:"average",children:"No water tank detected."})}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:v?"good":"bad",children:v?"Locked":"Unlocked"})]})}),!v&&(0,e.jsxs)(n.wn,{title:"Behavior Controls",children:[(0,e.jsx)(n.wn,{level:2,title:"Watering Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Water plants",children:(0,e.jsx)(n.$n,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){return x("water")},children:f?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Refill watertank",children:(0,e.jsx)(n.$n,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("refill")},children:p?"Yes":"No"})})]})}),(0,e.jsx)(n.wn,{level:2,title:"Weeding controls",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Weed plants",children:(0,e.jsx)(n.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("weed")},children:C?"Yes":"No"})})})}),(0,e.jsx)(n.wn,{level:2,title:"Nutriment controls",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Replace fertilizer",children:(0,e.jsx)(n.$n,{icon:j?"toggle-on":"toggle-off",selected:j,onClick:function(){return x("replacenutri")},children:j?"Yes":"No"})})})})]})||null]})})}},60381:function(M,y,t){"use strict";t.r(y),t.d(y,{Fax:function(){return g},FaxContent:function(){return x}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=t(71451),a=t(1887),g=function(v){var u=(0,i.Oc)().data,m=u.authenticated,c=u.copyItem,f=340;return c&&(f=358),m?(0,e.jsx)(r.p8,{width:600,height:f,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(d,{}),(0,e.jsx)(s.LoginInfo,{}),(0,e.jsx)(x,{})]})}):(0,e.jsx)(r.p8,{width:600,height:250,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(d,{}),(0,e.jsx)(a.LoginScreen,{machineType:"Fax"})]})})},x=function(v){var u=(0,i.Oc)(),m=u.act,c=u.data,f=c.bossName,p=c.copyItem,C=c.cooldown,j=c.destination,O=c.adminDepartments,b=new Set(O);return(0,e.jsxs)(n.wn,{children:[!!C&&(0,e.jsx)(n.IC,{info:!0,children:"Transmitter arrays realigning. Please stand by."}),(0,e.jsx)(n.Ki,{children:(0,e.jsxs)(n.Ki.Item,{label:"Network",children:[f," Quantum Entanglement Network"]})}),p&&(0,e.jsxs)(n.az,{mt:1,children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Currently Sending",children:[p," ",(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return m("rename")},tooltip:"Renames the paper. This changes its preview in staff chat when sending to centcom/job board/supply (admin departments). It is advisable to name your faxes something self-explanatory for quick response."})]}),(0,e.jsx)(n.Ki.Item,{label:"Sending To",children:(0,e.jsx)(n.$n,{icon:"map-marker-alt",content:j,onClick:function(){return m("dept")}})})]}),(0,e.jsx)(n.$n,{icon:"share-square",onClick:function(){return m("send")},content:"Send",fluid:!0})]})||(0,e.jsx)(n.az,{mt:1,children:"Please insert item to transmit."}),(0,e.jsx)(h,{})]})},d=function(v){var u=(0,i.Oc)(),m=u.act,c=u.data,f=c.copyItem;return f?(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",onClick:function(){return m("remove")},content:"Remove Item"})}):null},h=function(v){var u=(0,i.Oc)(),m=u.act,c=u.data,f=c.adminDepartments,p=c.destination,C=c.copyItem,j=new Set(f),O="1rem";return C&&(O="1.5rem"),!C||C&&j.has(p)?(0,e.jsxs)(n.az,{mt:"1.5rem",children:[(0,e.jsx)("b",{children:"Or submit an automated staff request."})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsxs)("i",{children:["The automated staff request form automatically populates the company job board ((sends to discord, but does not ping.)) without requiring intervention from central command clerks and officers. ",(0,e.jsx)("br",{}),"It also works without requiring a written request to be composed."]}),(0,e.jsx)("br",{}),(0,e.jsx)(n.az,{mt:"1.5rem",children:(0,e.jsx)(n.$n,{icon:"share-square",onClick:function(){return m("send_automated_staff_request")},content:"Send Automated Staff Request",fluid:!0})})]}):null}},90646:function(M,y,t){"use strict";t.r(y),t.d(y,{FileCabinet:function(){return a}});var e=t(88095),i=t(11358),n=t(4413),r=t(92514),s=t(84905),a=function(g){var x=(0,n.Oc)(),d=x.act,h=x.data,v=h.contents,u=(0,i.Ul)(function(m){return m.name})(v||[]);return(0,e.jsx)(s.p8,{width:350,height:300,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{children:u.map(function(m){return(0,e.jsx)(r.$n,{fluid:!0,icon:"file",content:m.name,onClick:function(){return d("retrieve",{ref:m.ref})}},m.ref)})})})})}},67747:function(M,y,t){"use strict";t.r(y),t.d(y,{Floorbot:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.on,v=d.open,u=d.locked,m=d.vocal,c=d.amount,f=d.possible_bmode,p=d.improvefloors,C=d.eattiles,j=d.maketiles,O=d.bmode;return(0,e.jsx)(r.p8,{width:390,height:310,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Station Floor Repairer v2.0",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:h,onClick:function(){return x("start")},children:h?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Tiles Left",children:(0,e.jsx)(n.zv,{value:c})}),(0,e.jsx)(n.Ki.Item,{label:"Maintenance Panel",color:v?"bad":"good",children:v?"Open":"Closed"}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,e.jsx)(n.wn,{title:"Behavior Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Speaker",children:(0,e.jsx)(n.$n,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return x("vocal")},children:m?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Improves Floors",children:(0,e.jsx)(n.$n,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("improve")},children:p?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Finds Tiles",children:(0,e.jsx)(n.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("tiles")},children:C?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Makes Metal Sheets into Tiles",children:(0,e.jsx)(n.$n,{icon:j?"toggle-on":"toggle-off",selected:j,onClick:function(){return x("make")},children:j?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Bridge Mode",children:(0,e.jsx)(n.ms,{over:!0,width:"100%",placeholder:"Disabled",selected:O,options:f,onSelected:function(b){return x("bridgemode",{dir:b})}})})]})})||null]})})}},79697:function(M,y,t){"use strict";t.r(y),t.d(y,{GasPump:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.on,v=d.pressure_set,u=d.last_flow_rate,m=d.last_power_draw,c=d.max_power_draw;return(0,e.jsx)(r.p8,{width:470,height:290,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Flow Rate",children:[(0,e.jsx)(n.zv,{value:u/10})," L/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Load",children:(0,e.jsx)(n.z2,{value:m,minValue:0,maxValue:c,color:m=100?f="Running":!h&&v>0&&(f="DISCHARGING"),(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",content:"Toggle Breaker",confirmContent:h?"This will disable gravity!":"This will enable gravity!",onClick:function(){return x("gentoggle")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Breaker Setting",children:h?"Generator Enabled":"Generator Disabled"}),(0,e.jsxs)(n.Ki.Item,{label:"Charge Mode",children:["Generator ",f]}),(0,e.jsxs)(n.Ki.Item,{label:"Charge Status",children:[v,"%"]})]})})})})}},4171:function(M,y,t){"use strict";t.r(y),t.d(y,{GuestPass:function(){return a}});var e=t(88095),i=t(11358),n=t(4413),r=t(92514),s=t(84905),a=function(g){var x=(0,n.Oc)(),d=x.act,h=x.data,v=h.access,u=h.area,m=h.giver,c=h.giveName,f=h.reason,p=h.duration,C=h.mode,j=h.log,O=h.uid;return(0,e.jsx)(s.p8,{width:500,height:520,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:C===1&&(0,e.jsxs)(r.wn,{title:"Activity Log",buttons:(0,e.jsx)(r.$n,{icon:"scroll",content:"Activity Log",selected:!0,onClick:function(){return d("mode",{mode:0})}}),children:[(0,e.jsx)(r.$n,{icon:"print",content:"Print",onClick:function(){return d("print")},fluid:!0,mb:1}),(0,e.jsx)(r.wn,{level:2,title:"Logs",children:j.length&&j.map(function(b){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:b}},b)})||(0,e.jsx)(r.az,{children:"No logs."})})]})||(0,e.jsxs)(r.wn,{title:"Guest pass terminal #"+O,buttons:(0,e.jsx)(r.$n,{icon:"scroll",content:"Activity Log",onClick:function(){return d("mode",{mode:1})}}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Issuing ID",children:(0,e.jsx)(r.$n,{content:m||"Insert ID",onClick:function(){return d("id")}})}),(0,e.jsx)(r.Ki.Item,{label:"Issued To",children:(0,e.jsx)(r.$n,{content:c,onClick:function(){return d("giv_name")}})}),(0,e.jsx)(r.Ki.Item,{label:"Reason",children:(0,e.jsx)(r.$n,{content:f,onClick:function(){return d("reason")}})}),(0,e.jsx)(r.Ki.Item,{label:"Duration (minutes)",children:(0,e.jsx)(r.$n,{content:p,onClick:function(){return d("duration")}})})]}),(0,e.jsx)(r.$n.Confirm,{icon:"check",fluid:!0,content:"Issue Pass",onClick:function(){return d("issue")}}),(0,e.jsx)(r.wn,{title:"Access",level:2,children:(0,i.Ul)(function(b){return b.area_name})(u).map(function(b){return(0,e.jsx)(r.$n.Checkbox,{checked:b.on,content:b.area_name,onClick:function(){return d("access",{access:b.area})}},b.area)})})]})})})}},92753:function(M,y,t){"use strict";t.r(y),t.d(y,{GyrotronControl:function(){return s},GyrotronControlContent:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=h.gyros;return(0,e.jsx)(n.wn,{title:"Gyrotrons",buttons:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return d("set_tag")}}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Position"}),(0,e.jsx)(n.XI.Cell,{children:"Status"}),(0,e.jsx)(n.XI.Cell,{children:"Fire Delay"}),(0,e.jsx)(n.XI.Cell,{children:"Strength"})]}),v.map(function(u){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:u.name}),(0,e.jsxs)(n.XI.Cell,{children:[u.x,", ",u.y,", ",u.z]}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"power-off",content:u.active?"Online":"Offline",selected:u.active,disabled:!u.deployed,onClick:function(){return d("toggle_active",{gyro:u.ref})}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.N6,{forcedInputWidth:"60px",size:1.25,color:!!u.active&&"yellow",value:u.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(m,c){return d("set_rate",{gyro:u.ref,rate:c})}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.N6,{forcedInputWidth:"60px",size:1.25,color:!!u.active&&"yellow",value:u.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(m,c){return d("set_str",{gyro:u.ref,str:c})}})})]},u.name)})]})})}},75825:function(M,y,t){"use strict";t.r(y),t.d(y,{Holodeck:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.supportedPrograms,v=d.restrictedPrograms,u=d.currentProgram,m=d.isSilicon,c=d.safetyDisabled,f=d.emagged,p=d.gravity,C=h;return c&&(C=C.concat(v)),(0,e.jsx)(r.p8,{width:400,height:610,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Programs",children:C.map(function(j){return(0,e.jsx)(n.$n,{color:v.indexOf(j)!==-1?"bad":null,icon:"eye",content:j,selected:u===j,fluid:!0,onClick:function(){return x("program",{program:j})}},j)})}),!!m&&(0,e.jsx)(n.wn,{title:"Override",children:(0,e.jsxs)(n.$n,{icon:"exclamation-triangle",fluid:!0,disabled:f,color:c?"good":"bad",onClick:function(){return x("AIoverride")},children:[!!f&&"Error, unable to control. ",c?"Enable Safeties":"Disable Safeties"]})}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Safeties",children:c?(0,e.jsx)(n.az,{color:"bad",children:"DISABLED"}):(0,e.jsx)(n.az,{color:"good",children:"ENABLED"})}),(0,e.jsx)(n.Ki.Item,{label:"Gravity",children:(0,e.jsx)(n.$n,{icon:"user-astronaut",selected:p,onClick:function(){return x("gravity")},children:p?"Enabled":"Disabled"})})]})})]})})}},79258:function(M,y,t){"use strict";t.r(y),t.d(y,{ICAssembly:function(){return g}});var e=t(88095),i=t(5229),n=t(4413),r=t(92514),s=t(24158),a=t(84905),g=function(d){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.total_parts,c=u.max_components,f=u.total_complexity,p=u.max_complexity,C=u.battery_charge,j=u.battery_max,O=u.net_power,b=u.unremovable_circuits,I=u.removable_circuits;return(0,e.jsx)(a.p8,{width:600,height:380,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Space in Assembly",children:(0,e.jsxs)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:m/c,maxValue:1,children:[m," / ",c," (",(0,i.LI)(m/c*100,1),"%)"]})}),(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:(0,e.jsxs)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:f/p,maxValue:1,children:[f," / ",p," (",(0,i.LI)(f/p*100,1),"%)"]})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:C&&(0,e.jsxs)(r.z2,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:C/j,maxValue:1,children:[C," / ",j," (",(0,i.LI)(C/j*100,1),"%)"]})||(0,e.jsx)(r.az,{color:"bad",children:"No cell detected."})}),(0,e.jsx)(r.Ki.Item,{label:"Net Energy",children:O===0&&"0 W/s"||(0,e.jsx)(r.zv,{value:O,format:function(_){return"-"+(0,s.d5)(Math.abs(_))+"/s"}})})]})}),b.length&&(0,e.jsx)(x,{title:"Built-in Components",circuits:b})||null,I.length&&(0,e.jsx)(x,{title:"Removable Components",circuits:I})||null]})})},x=function(d){var h=(0,n.Oc)().act,v=d.title,u=d.circuits;return(0,e.jsx)(r.wn,{title:v,children:(0,e.jsx)(r.Ki,{children:u.map(function(m){return(0,e.jsxs)(r.Ki.Item,{label:m.name,children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return h("open_circuit",{ref:m.ref})},children:"View"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return h("rename_circuit",{ref:m.ref})},children:"Rename"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return h("scan_circuit",{ref:m.ref})},children:"Debugger Scan"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return h("remove_circuit",{ref:m.ref})},children:"Remove"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return h("bottom_circuit",{ref:m.ref})},children:"Move to Bottom"})]},m.ref)})})})}},36585:function(M,y,t){"use strict";t.r(y),t.d(y,{ICCircuit:function(){return g}});var e=t(88095),i=t(33854),n=t(4413),r=t(92514),s=t(24158),a=t(84905),g=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=m.name,f=m.desc,p=m.displayed_name,C=m.removable,j=m.complexity,O=m.power_draw_idle,b=m.power_draw_per_use,I=m.extended_desc,_=m.inputs,S=m.outputs,P=m.activators;return(0,e.jsx)(a.p8,{width:600,height:400,resizable:!0,title:p,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"Stats",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{onClick:function(){return u("rename")},children:"Rename"}),(0,e.jsx)(r.$n,{onClick:function(){return u("scan")},children:"Scan with Device"}),(0,e.jsx)(r.$n,{onClick:function(){return u("remove")},children:"Remove"})]}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:j}),O&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Idle)",children:(0,s.d5)(O)})||null,b&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Active)",children:(0,s.d5)(b)})||null]}),I]}),(0,e.jsxs)(r.wn,{title:"Circuit",children:[(0,e.jsxs)(r.so,{textAlign:"center",spacing:1,children:[_.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Inputs",children:(0,e.jsx)(x,{list:_})})})||null,(0,e.jsx)(r.so.Item,{basis:_.length&&S.length?"33%":_.length||S.length?"45%":"100%",children:(0,e.jsx)(r.wn,{title:p,mb:1,children:(0,e.jsx)(r.az,{children:f})})}),S.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Outputs",children:(0,e.jsx)(x,{list:S})})})||null]}),(0,e.jsx)(r.wn,{title:"Triggers",children:P.map(function(A){return(0,e.jsxs)(r.Ki.Item,{label:A.name,children:[(0,e.jsx)(r.$n,{onClick:function(){return u("pin_name",{pin:A.ref})},children:A.pulse_out?"":""}),(0,e.jsx)(d,{pin:A})]},A.name)})})]})]})})},x=function(h){var v=(0,n.Oc)().act,u=h.list;return u.map(function(m){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.$n,{onClick:function(){return v("pin_name",{pin:m.ref})},children:[(0,i.jT)(m.type),": ",m.name]}),(0,e.jsx)(r.$n,{onClick:function(){return v("pin_data",{pin:m.ref})},children:m.data}),(0,e.jsx)(d,{pin:m})]},m.ref)})},d=function(h){var v=(0,n.Oc)().act,u=h.pin;return u.linked.map(function(m){return(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return v("pin_unwire",{pin:u.ref,link:m.ref})},children:m.name}),"@\xA0",(0,e.jsx)(r.$n,{onClick:function(){return v("examine",{ref:m.holder_ref})},children:m.holder_name})]},m.ref)})}},43040:function(M,y,t){"use strict";t.r(y),t.d(y,{ICDetailer:function(){return a}});var e=t(88095),i=t(33854),n=t(4413),r=t(92514),s=t(84905),a=function(g){var x=(0,n.Oc)(),d=x.act,h=x.data,v=h.detail_color,u=h.color_list;return(0,e.jsx)(s.p8,{width:420,height:254,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(r.wn,{children:Object.keys(u).map(function(m,c){return(0,e.jsx)(r.$n,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,i.Sn)(m),tooltipPosition:c%6===5?"left":"right",height:"64px",width:"64px",onClick:function(){return d("change_color",{color:m})},style:u[m]===v?{border:"4px solid black","border-radius":0}:{"border-radius":0},backgroundColor:u[m]},m)})})})})}},93204:function(M,y,t){"use strict";t.r(y),t.d(y,{ICPrinter:function(){return a}});var e=t(88095),i=t(11358),n=t(4413),r=t(92514),s=t(84905),a=function(d){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.metal,c=u.max_metal,f=u.metal_per_sheet,p=u.debug,C=u.upgraded,j=u.can_clone,O=u.assembly_to_clone,b=u.categories;return(0,e.jsx)(s.p8,{width:600,height:630,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"Status",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Metal",children:(0,e.jsxs)(r.z2,{value:m,maxValue:c,children:[m/f," / ",c/f," sheets"]})}),(0,e.jsx)(r.Ki.Item,{label:"Circuits Available",children:C?"Advanced":"Regular"}),(0,e.jsx)(r.Ki.Item,{label:"Assembly Cloning",children:j?"Available":"Unavailable"})]}),(0,e.jsx)(r.az,{mt:1,children:"Note: A red component name means that the printer must be upgraded to create that component."})]}),(0,e.jsx)(x,{})]})})},g=function(d,h){return!(!d.can_build||d.cost>h.metal)},x=function(d){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.categories,c=u.debug,f=(0,n.QY)("categoryTarget",null),p=f[0],C=f[1],j=(0,i.pb)(function(O){return O.name===p})(m)[0];return(0,e.jsx)(r.wn,{title:"Circuits",children:(0,e.jsxs)(r.BJ,{fill:!0,children:[(0,e.jsx)(r.BJ.Item,{mr:2,children:(0,e.jsx)(r.tU,{vertical:!0,children:(0,i.Ul)(function(O){return O.name})(m).map(function(O){return(0,e.jsx)(r.tU.Tab,{selected:p===O.name,onClick:function(){return C(O.name)},children:O.name},O.name)})})}),(0,e.jsx)(r.BJ.Item,{children:j&&(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,i.Ul)(function(O){return O.name})(j.items).map(function(O){return(0,e.jsx)(r.Ki.Item,{label:O.name,labelColor:O.can_build?"good":"bad",buttons:(0,e.jsx)(r.$n,{disabled:!g(O,u),icon:"print",onClick:function(){return v("build",{build:O.path})},children:"Print"}),children:O.desc},O.name)})})})||"No category selected."})]})})}},7627:function(M,y,t){"use strict";t.r(y),t.d(y,{IDCard:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=t(89863),a=function(g){var x=(0,i.Oc)().data,d=x.registered_name,h=x.sex,v=x.species,u=x.age,m=x.assignment,c=x.fingerprint_hash,f=x.blood_type,p=x.dna_hash,C=x.photo_front,j=[{name:"Sex",val:h},{name:"Species",val:v},{name:"Age",val:u},{name:"Blood Type",val:f},{name:"Fingerprint",val:c},{name:"DNA Hash",val:p}];return(0,e.jsx)(r.p8,{width:470,height:250,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{basis:"25%",textAlign:"left",children:(0,e.jsx)(n.az,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:C&&(0,e.jsx)("img",{src:C.substr(1,C.length-1),style:{width:"300px","margin-left":"-94px","-ms-interpolation-mode":"nearest-neighbor"}})||(0,e.jsx)(n.In,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,e.jsx)(n.so.Item,{basis:0,grow:1,children:(0,e.jsx)(n.Ki,{children:j.map(function(O){return(0,e.jsx)(n.Ki.Item,{label:O.name,children:O.val},O.name)})})})]}),(0,e.jsxs)(n.so,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.az,{textAlign:"center",children:d})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.az,{textAlign:"center",children:(0,e.jsx)(s.RankIcon,{rank:m})})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.az,{textAlign:"center",children:m})})]})]})})})}},17575:function(M,y,t){"use strict";t.r(y),t.d(y,{IdentificationComputer:function(){return d},IdentificationComputerAccessModification:function(){return u},IdentificationComputerContent:function(){return h},IdentificationComputerPrinting:function(){return v},IdentificationComputerRegions:function(){return m}});var e=t(88095),i=t(11358),n=t(33854),r=t(44583),s=t(4413),a=t(92514),g=t(84905),x=t(41608),d=function(){return(0,e.jsx)(g.p8,{width:600,height:700,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(h,{})})})},h=function(c){var f=(0,s.Oc)(),p=f.act,C=f.data,j=c.ntos,O=C.mode,b=C.has_modify,I=C.printing,_=(0,e.jsx)(u,{ntos:j});return j&&!C.have_id_slot?_=(0,e.jsx)(x.CrewManifestContent,{}):I?_=(0,e.jsx)(v,{}):O===1&&(_=(0,e.jsx)(x.CrewManifestContent,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.tU,{children:[(!j||!!C.have_id_slot)&&(0,e.jsx)(a.tU.Tab,{icon:"home",selected:O===0,onClick:function(){return p("mode",{mode_target:0})},children:"Access Modification"}),(0,e.jsx)(a.tU.Tab,{icon:"home",selected:O===1,onClick:function(){return p("mode",{mode_target:1})},children:"Crew Manifest"}),!j||!!C.have_printer&&(0,e.jsx)(a.tU.Tab,{float:"right",icon:"print",onClick:function(){return p("print")},disabled:!O&&!b,color:"",children:"Print"})]}),_]})},v=function(c){return(0,e.jsx)(a.wn,{title:"Printing",children:"Please wait..."})},u=function(c){var f=(0,s.Oc)(),p=f.act,C=f.data,j=c.ntos,O=C.station_name,b=C.target_name,I=C.target_owner,_=C.scan_name,S=C.authenticated,P=C.has_modify,A=C.account_number,R=C.centcom_access,K=C.all_centcom_access,N=C.regions,k=C.id_rank,X=C.departments;return(0,e.jsxs)(a.wn,{title:"Access Modification",children:[!S&&(0,e.jsx)(a.az,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Target Identitity",children:(0,e.jsx)(a.$n,{icon:"eject",fluid:!0,content:b,onClick:function(){return p("modify")}})}),!j&&(0,e.jsx)(a.Ki.Item,{label:"Authorized Identitity",children:(0,e.jsx)(a.$n,{icon:"eject",fluid:!0,content:_,onClick:function(){return p("scan")}})})]}),!!S&&!!P&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.wn,{title:"Details",level:2,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Registered Name",children:(0,e.jsx)(a.pd,{value:I,fluid:!0,onInput:function(F,J){return p("reg",{reg:J})}})}),(0,e.jsx)(a.Ki.Item,{label:"Account Number",children:(0,e.jsx)(a.pd,{value:A,fluid:!0,onInput:function(F,J){return p("account",{account:J})}})}),(0,e.jsx)(a.Ki.Item,{label:"Dismissals",children:(0,e.jsx)(a.$n.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,content:"Dismiss "+I,confirmContent:"You are dismissing "+I+", confirm?",onClick:function(){return p("terminate")}})})]})}),(0,e.jsx)(a.wn,{title:"Assignment",level:2,children:(0,e.jsxs)(a.XI,{children:[X.map(function(F){return(0,e.jsxs)(r.Fragment,{children:[(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsx)(a.XI.Cell,{header:!0,verticalAlign:"middle",children:F.department_name}),(0,e.jsx)(a.XI.Cell,{children:F.jobs.map(function(J){return(0,e.jsx)(a.$n,{selected:J.job===k,onClick:function(){return p("assign",{assign_target:J.job})},children:(0,n.jT)(J.display_name)},J.job)})})]}),(0,e.jsx)(a.az,{mt:-1,children:"\xA0"})," "]},F.department_name)}),(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsx)(a.XI.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,e.jsx)(a.XI.Cell,{children:(0,e.jsx)(a.$n,{onClick:function(){return p("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!R&&(0,e.jsx)(a.wn,{title:"Central Command",level:2,children:K.map(function(F){return(0,e.jsx)(a.az,{children:(0,e.jsx)(a.$n,{fluid:!0,selected:F.allowed,onClick:function(){return p("access",{access_target:F.ref,allowed:F.allowed})},children:(0,n.jT)(F.desc)})},F.ref)})})||(0,e.jsx)(a.wn,{title:O,level:2,children:(0,e.jsx)(m,{actName:"access"})})]})]})},m=function(c){var f=(0,s.Oc)(),p=f.act,C=f.data,j=c.actName,O=C.regions;return(0,e.jsx)(a.so,{wrap:"wrap",spacing:1,children:(0,i.Ul)(function(b){return b.name})(O).map(function(b){return(0,e.jsx)(a.so.Item,{mb:1,basis:"content",grow:1,children:(0,e.jsx)(a.wn,{title:b.name,height:"100%",children:(0,i.Ul)(function(I){return I.desc})(b.accesses).map(function(I){return(0,e.jsx)(a.az,{children:(0,e.jsx)(a.$n,{fluid:!0,selected:I.allowed,onClick:function(){return p(j,{access_target:I.ref,allowed:I.allowed})},children:(0,n.jT)(I.desc)})},I.ref)})})},b.name)})})}},15654:function(M,y,t){"use strict";t.r(y),t.d(y,{InventoryPanel:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.slots,v=d.internalsValid;return(0,e.jsx)(r.p8,{width:400,height:200,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.Ki,{children:h&&h.length&&h.map(function(u){return(0,e.jsx)(n.Ki.Item,{label:u.name,children:(0,e.jsx)(n.$n,{mb:-1,icon:u.item?"hand-paper":"gift",onClick:function(){return x(u.act)},children:u.item||"Nothing"})},u.name)})})}),v&&(0,e.jsx)(n.wn,{title:"Actions",children:v&&(0,e.jsx)(n.$n,{fluid:!0,icon:"lungs",onClick:function(){return x("internals")},children:"Set Internals"})||null})||null]})})}},54577:function(M,y,t){"use strict";t.r(y),t.d(y,{InventoryPanelHuman:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.slots,v=d.specialSlots,u=d.internals,m=d.internalsValid,c=d.sensors,f=d.handcuffed,p=d.handcuffedParams,C=d.legcuffed,j=d.legcuffedParams,O=d.accessory;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[h&&h.length&&h.map(function(b){return(0,e.jsx)(n.Ki.Item,{label:b.name,children:(0,e.jsx)(n.$n,{mb:-1,icon:b.item?"hand-paper":"gift",onClick:function(){return x(b.act,b.params)},children:b.item||"Nothing"})},b.name)}),(0,e.jsx)(n.Ki.Divider,{}),v&&v.length&&v.map(function(b){return(0,e.jsx)(n.Ki.Item,{label:b.name,children:(0,e.jsx)(n.$n,{mb:-1,icon:b.item?"hand-paper":"gift",onClick:function(){return x(b.act,b.params)},children:b.item||"Nothing"})},b.name)})]})}),(0,e.jsxs)(n.wn,{title:"Actions",children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"running",onClick:function(){return x("targetSlot",{slot:"splints"})},children:"Remove Splints"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"hand-paper",onClick:function(){return x("targetSlot",{slot:"pockets"})},children:"Empty Pockets"}),m&&(0,e.jsx)(n.$n,{fluid:!0,icon:"lungs",onClick:function(){return x("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,c&&(0,e.jsx)(n.$n,{fluid:!0,icon:"book-medical",onClick:function(){return x("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,f&&(0,e.jsx)(n.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",p)},children:"Handcuffed"})||null,C&&(0,e.jsx)(n.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",j)},children:"Legcuffed"})||null,O&&(0,e.jsx)(n.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",{slot:"tie"})},children:"Remove Accessory"})||null]})]})})}},46382:function(M,y,t){"use strict";t.r(y),t.d(y,{IsolationCentrifuge:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.busy,v=d.antibodies,u=d.pathogens,m=d.is_antibody_sample,c=d.sample_inserted,f=(0,e.jsx)(n.az,{color:"average",children:"No vial detected."});return c&&(!v&&!u?f=(0,e.jsx)(n.az,{color:"average",children:"No antibodies or viral strains detected."}):f=(0,e.jsxs)(e.Fragment,{children:[v?(0,e.jsx)(n.wn,{title:"Antibodies",children:v}):null,u.length?(0,e.jsx)(n.wn,{title:"Pathogens",children:(0,e.jsx)(n.Ki,{children:u.map(function(p){return(0,e.jsx)(n.Ki.Item,{label:p.name,children:p.spread_type},p.name)})})}):null]})),(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:h?(0,e.jsx)(n.wn,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,e.jsx)("center",{children:(0,e.jsx)(n.az,{color:"bad",children:h})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.wn,{title:m?"Antibody Sample":"Blood Sample",children:[(0,e.jsxs)(n.so,{spacing:1,mb:1,children:[(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"print",content:"Print",disabled:!v&&!u.length,onClick:function(){return x("print")}})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",content:"Eject Vial",disabled:!c,onClick:function(){return x("sample")}})})]}),f]}),v&&!m||u.length?(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Ki,{children:[v&&!m?(0,e.jsx)(n.Ki.Item,{label:"Isolate Antibodies",children:(0,e.jsx)(n.$n,{icon:"pen",content:v,onClick:function(){return x("antibody")}})}):null,u.length?(0,e.jsx)(n.Ki.Item,{label:"Isolate Strain",children:u.map(function(p){return(0,e.jsx)(n.$n,{icon:"pen",content:p.name,onClick:function(){return x("isolate",{isolate:p.reference})}},p.name)})}):null]})}):null]})})})}},58189:function(M,y,t){"use strict";t.r(y),t.d(y,{JanitorCart:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(x){var d=(0,i.Oc)(),h=d.act,v=d.data,u=v.mybag,m=v.mybucket,c=v.mymop,f=v.myspray,p=v.myreplacer,C=v.signs,j=v.icons;return(0,e.jsx)(r.p8,{width:210,height:180,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:u||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:u?"grey":"transparent",style:{border:u?null:"2px solid grey"},onClick:function(){return h("bag")},children:(0,e.jsx)(g,{iconkey:"mybag"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:m||"Bucket Slot",tooltipPosition:"bottom",color:m?"grey":"transparent",style:{border:m?null:"2px solid grey"},onClick:function(){return h("bucket")},children:(0,e.jsx)(g,{iconkey:"mybucket"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:c||"Mop Slot",tooltipPosition:"bottom-end",color:c?"grey":"transparent",style:{border:c?null:"2px solid grey"},onClick:function(){return h("mop")},children:(0,e.jsx)(g,{iconkey:"mymop"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:f||"Spray Slot",tooltipPosition:"top-end",color:f?"grey":"transparent",style:{border:f?null:"2px solid grey"},onClick:function(){return h("spray")},children:(0,e.jsx)(g,{iconkey:"myspray"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:p||"Light Replacer Slot",tooltipPosition:"top",color:p?"grey":"transparent",style:{border:p?null:"2px solid grey"},onClick:function(){return h("replacer")},children:(0,e.jsx)(g,{iconkey:"myreplacer"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:C||"Signs Slot",tooltipPosition:"top-start",color:C?"grey":"transparent",style:{border:C?null:"2px solid grey"},onClick:function(){return h("sign")},children:(0,e.jsx)(g,{iconkey:"signs"})})]})})},a={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},g=function(x){var d=(0,i.Oc)().data,h=x.iconkey,v=d.icons;return h in v?(0,e.jsx)("img",{src:v[h].substr(1,v[h].length-1),style:{position:"absolute",left:0,right:0,top:0,bottom:0,width:"64px",height:"64px","-ms-interpolation-mode":"nearest-neighbor"}}):(0,e.jsx)(n.In,{style:{position:"absolute",left:"4px",right:0,top:"20px",bottom:0,width:"64px",height:"64px"},fontSize:2,name:a[h]})}},11434:function(M,y,t){"use strict";t.r(y),t.d(y,{Jukebox:function(){return a}});var e=t(88095),i=t(5229),n=t(4413),r=t(92514),s=t(84905),a=function(g){var x=(0,n.Oc)(),d=x.act,h=x.data,v=h.playing,u=h.loop_mode,m=h.volume,c=h.current_track_ref,f=h.current_track,p=h.current_genre,C=h.percent,j=h.tracks,O=j.length&&j.reduce(function(I,_){var S=_.genre||"Uncategorized";return I[S]||(I[S]=[]),I[S].push(_),I},{}),b=v&&(p||"Uncategorized");return(0,e.jsx)(s.p8,{width:450,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsx)(r.wn,{title:"Currently Playing",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Title",children:v&&f&&(0,e.jsxs)(r.az,{children:[f.title," by ",f.artist||"Unkown"]})||(0,e.jsx)(r.az,{children:"Stopped"})}),(0,e.jsxs)(r.Ki.Item,{label:"Controls",children:[(0,e.jsx)(r.$n,{icon:"play",disabled:v,onClick:function(){return d("play")},children:"Play"}),(0,e.jsx)(r.$n,{icon:"stop",disabled:!v,onClick:function(){return d("stop")},children:"Stop"})]}),(0,e.jsxs)(r.Ki.Item,{label:"Loop Mode",children:[(0,e.jsx)(r.$n,{icon:"play",onClick:function(){return d("loopmode",{loopmode:1})},selected:u===1,children:"Next"}),(0,e.jsx)(r.$n,{icon:"random",onClick:function(){return d("loopmode",{loopmode:2})},selected:u===2,children:"Shuffle"}),(0,e.jsx)(r.$n,{icon:"redo",onClick:function(){return d("loopmode",{loopmode:3})},selected:u===3,children:"Repeat"}),(0,e.jsx)(r.$n,{icon:"step-forward",onClick:function(){return d("loopmode",{loopmode:4})},selected:u===4,children:"Once"})]}),(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsx)(r.z2,{value:C,maxValue:1,color:"good"})}),(0,e.jsx)(r.Ki.Item,{label:"Volume",children:(0,e.jsx)(r.Ap,{minValue:0,step:1,value:m*100,maxValue:100,ranges:{good:[75,1/0],average:[25,75],bad:[0,25]},format:function(I){return(0,i.LI)(I,1)+"%"},onChange:function(I,_){return d("volume",{val:(0,i.LI)(_/100,2)})}})})]})}),(0,e.jsx)(r.wn,{title:"Available Tracks",children:j.length&&Object.keys(O).sort().map(function(I){return(0,e.jsx)(r.Nt,{title:I,color:b===I?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{"margin-left":"1em"},children:O[I].map(function(_){return(0,e.jsx)(r.$n,{fluid:!0,icon:"play",selected:c===_.ref,onClick:function(){return d("change_track",{change_track:_.ref})},children:_.title},_.ref)})})},I)})||(0,e.jsx)(r.az,{color:"bad",children:"Error: No songs loaded."})})]})})}},58503:function(M,y,t){"use strict";t.r(y),t.d(y,{LawManager:function(){return g}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905);function s(){return s=Object.assign||function(u){for(var m=1;m=0)&&(c[p]=u[p]);return c}var g=function(u){var m=(0,i.Oc)(),c=m.act,f=m.data,p=f.isSlaved;return(0,e.jsx)(r.p8,{width:800,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[p&&(0,e.jsxs)(n.IC,{info:!0,children:["Law-synced to ",p]})||null,(0,e.jsx)(x,{})]})})},x=function(u){var m=(0,i.QY)("lawsTabIndex",0),c=m[0],f=m[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:c===0,onClick:function(){return f(0)},children:"Law Management"}),(0,e.jsx)(n.tU.Tab,{selected:c===1,onClick:function(){return f(1)},children:"Law Sets"})]}),c===0&&(0,e.jsx)(d,{})||null,c===1&&(0,e.jsx)(v,{})||null]})},d=function(u){var m=(0,i.Oc)(),c=m.act,f=m.data,p=f.ion_law_nr,C=f.ion_law,j=f.zeroth_law,O=f.inherent_law,b=f.supplied_law,I=f.supplied_law_position,_=f.zeroth_laws,S=f.has_zeroth_laws,P=f.ion_laws,A=f.has_ion_laws,R=f.inherent_laws,K=f.has_inherent_laws,N=f.supplied_laws,k=f.has_supplied_laws,X=f.isAI,F=f.isMalf,J=f.isAdmin,H=f.channel,Q=f.channels,Z=_.map(function(V){return V.zero=!0,V}).concat(R);return(0,e.jsxs)(n.wn,{children:[A&&(0,e.jsx)(h,{laws:P,title:p+" Laws:",mt:-2})||null,(S||K)&&(0,e.jsx)(h,{laws:Z,title:"Inherent Laws",mt:-2})||null,k&&(0,e.jsx)(h,{laws:N,title:"Supplied Laws",mt:-2})||null,(0,e.jsx)(n.wn,{level:2,title:"Controls",mt:-2,children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Statement Channel",children:Q.map(function(V){return(0,e.jsx)(n.$n,{content:V.channel,selected:H===V.channel,onClick:function(){return c("law_channel",{law_channel:V.channel})}},V.channel)})}),(0,e.jsx)(n.Ki.Item,{label:"State Laws",children:(0,e.jsx)(n.$n,{icon:"volume-up",onClick:function(){return c("state_laws")},children:"State Laws"})}),X&&(0,e.jsx)(n.Ki.Item,{label:"Law Notification",children:(0,e.jsx)(n.$n,{icon:"exclamation",onClick:function(){return c("notify_laws")},children:"Notify"})})||null]})}),F&&(0,e.jsx)(n.wn,{level:2,title:"Add Laws",mt:-2,children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(n.XI.Cell,{children:"Law"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Add"})]}),J&&!S&&(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Zero"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.pd,{value:j,fluid:!0,onChange:function(V,z){return c("change_zeroth_law",{val:z})}})}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return c("add_zeroth_law")},children:"Add"})})]})||null,(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Ion"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.pd,{value:C,fluid:!0,onChange:function(V,z){return c("change_ion_law",{val:z})}})}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return c("add_ion_law")},children:"Add"})})]}),(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:"Inherent"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.pd,{value:O,fluid:!0,onChange:function(V,z){return c("change_inherent_law",{val:z})}})}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return c("add_inherent_law")},children:"Add"})})]}),(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:"Supplied"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.pd,{value:b,fluid:!0,onChange:function(V,z){return c("change_supplied_law",{val:z})}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return c("change_supplied_law_position")},children:I})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return c("add_supplied_law")},children:"Add"})})]})]})})||null]})},h=function(u){var m=(0,i.Oc)(),c=m.act,f=m.data,p=f.isMalf,C=f.isAdmin,j=u.laws,O=u.title,b=u.noButtons,I=a(u,["laws","title","noButtons"]);return(0,e.jsx)(n.wn,s({level:2,title:O},I,{children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(n.XI.Cell,{children:"Law"}),!b&&(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"State"})||null,p&&!b&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Edit"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Delete"})]})||null]}),j.map(function(_){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{collapsing:!0,children:[_.index,"."]}),(0,e.jsx)(n.XI.Cell,{color:_.zero?"bad":null,children:_.law}),!b&&(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"volume-up",selected:_.state,onClick:function(){return c("state_law",{ref:_.ref,state_law:!_.state})},children:_.state?"Yes":"No"})})||null,p&&!b&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{disabled:_.zero&&!C,icon:"pen",onClick:function(){return c("edit_law",{edit_law:_.ref})},children:"Edit"})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{disabled:_.zero&&!C,color:"bad",icon:"trash",onClick:function(){return c("delete_law",{delete_law:_.ref})},children:"Delete"})})]})||null]},_.index)})]})}))},v=function(u){var m=(0,i.Oc)(),c=m.act,f=m.data,p=f.isMalf,C=f.law_sets;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.IC,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),C.length&&C.map(function(j){return(0,e.jsxs)(n.wn,{title:j.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{disabled:!p,icon:"sync",onClick:function(){return c("transfer_laws",{transfer_laws:j.ref})},children:"Load Laws"}),(0,e.jsx)(n.$n,{icon:"volume-up",onClick:function(){return c("state_law_set",{state_law_set:j.ref})},children:"State Laws"})]}),children:[j.laws.has_ion_laws&&(0,e.jsx)(h,{noButtons:!0,laws:j.laws.ion_laws,title:j.laws.ion_law_nr+" Laws:"})||null,(j.laws.has_zeroth_laws||j.laws.has_inherent_laws)&&(0,e.jsx)(h,{noButtons:!0,laws:j.laws.zeroth_laws.concat(j.laws.inherent_laws),title:j.header})||null,j.laws.has_supplied_laws&&(0,e.jsx)(h,{noButtons:!0,laws:j.laws.supplied_laws,title:"Supplied Laws"})||null]},j.name)})||null]})}},93455:function(M,y,t){"use strict";t.r(y),t.d(y,{ListInputModal:function(){return d}});var e=t(88095),i=t(44583),n=t(61652),r=t(4413),s=t(92514),a=t(84905),g=t(12035),x=t(18513),d=function(u){var m=(0,r.Oc)(),c=m.act,f=m.data,p=f.items,C=p===void 0?[]:p,j=f.message,O=j===void 0?"":j,b=f.init_value,I=f.large_buttons,_=f.timeout,S=f.title,P=(0,i.useState)(C.indexOf(b)),A=P[0],R=P[1],K=(0,i.useState)(C.length>9),N=K[0],k=K[1],X=(0,i.useState)(""),F=X[0],J=X[1],H=function(ne){var ce=ee.length-1;if(ne===n.R)if(A===null||A===ce){var de;R(0),(de=document.getElementById("0"))==null||de.scrollIntoView()}else{var ve;R(A+1),(ve=document.getElementById((A+1).toString()))==null||ve.scrollIntoView()}else if(ne===n.gf)if(A===null||A===0){var pe;R(ce),(pe=document.getElementById(ce.toString()))==null||pe.scrollIntoView()}else{var me;R(A-1),(me=document.getElementById((A-1).toString()))==null||me.scrollIntoView()}},Q=function(ne){ne!==A&&R(ne)},Z=function(){k(!1),k(!0)},V=function(ne){var ce=String.fromCharCode(ne),de=C.find(function(me){return me==null?void 0:me.toLowerCase().startsWith(ce==null?void 0:ce.toLowerCase())});if(de){var ve,pe=C.indexOf(de);R(pe),(ve=document.getElementById(pe.toString()))==null||ve.scrollIntoView()}},z=function(ne){var ce;ne!==F&&(J(ne),R(0),(ce=document.getElementById("0"))==null||ce.scrollIntoView())},Y=function(){k(!N),J("")},ee=C.filter(function(ne){return ne==null?void 0:ne.toLowerCase().includes(F.toLowerCase())}),oe=325+Math.ceil(O.length/3)+(I?5:0);return N||setTimeout(function(){var ne;return(ne=document.getElementById(A.toString()))==null?void 0:ne.focus()},1),(0,e.jsxs)(a.p8,{title:S,width:325,height:oe,children:[_&&(0,e.jsx)(x.Loader,{value:_}),(0,e.jsx)(a.p8.Content,{onKeyDown:function(ne){var ce=window.event?ne.which:ne.keyCode;(ce===n.R||ce===n.gf)&&(ne.preventDefault(),H(ce)),ce===n.Ri&&(ne.preventDefault(),c("submit",{entry:ee[A]})),!N&&ce>=n.W8&&ce<=n.bh&&(ne.preventDefault(),V(ce)),ce===n.s6&&(ne.preventDefault(),c("cancel"))},children:(0,e.jsx)(s.wn,{buttons:(0,e.jsx)(s.$n,{compact:!0,icon:N?"search":"font",selected:!0,tooltip:N?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){return Y()}}),className:"ListInput__Section",fill:!0,title:O,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(h,{filteredItems:ee,onClick:Q,onFocusSearch:Z,searchBarVisible:N,selected:A})}),N&&(0,e.jsx)(v,{filteredItems:ee,onSearch:z,searchQuery:F,selected:A}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:ee[A]})})]})})})]})},h=function(u){var m=(0,r.Oc)().act,c=u.filteredItems,f=u.onClick,p=u.onFocusSearch,C=u.searchBarVisible,j=u.selected;return(0,e.jsxs)(s.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(s.y5,{}),c.map(function(O,b){return(0,e.jsx)(s.$n,{color:"transparent",fluid:!0,onClick:function(){return f(b)},onDoubleClick:function(I){I.preventDefault(),m("submit",{entry:c[j]})},onKeyDown:function(I){var _=window.event?I.which:I.keyCode;C&&_>=n.W8&&_<=n.bh&&(I.preventDefault(),p())},selected:b===j,style:{animation:"none",transition:"none"},children:O.replace(/^\w/,function(I){return I.toUpperCase()})},b)})]})},v=function(u){var m=(0,r.Oc)().act,c=u.filteredItems,f=u.onSearch,p=u.searchQuery,C=u.selected;return(0,e.jsx)(s.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(j){j.preventDefault(),m("submit",{entry:c[C]})},onInput:function(j,O){return f(O)},placeholder:"Search...",value:p})}},4515:function(M,y,t){"use strict";t.r(y),t.d(y,{LookingGlass:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.supportedPrograms,v=d.currentProgram,u=d.immersion,m=d.gravity,c=Math.min(180+h.length*23,600);return(0,e.jsx)(r.p8,{width:300,height:c,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Programs",children:h.map(function(f){return(0,e.jsx)(n.$n,{fluid:!0,icon:"eye",selected:f===v,onClick:function(){return x("program",{program:f})},children:f},f)})}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Gravity",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"user-astronaut",selected:m,onClick:function(){return x("gravity")},children:m?"Enabled":"Disabled"})}),(0,e.jsx)(n.Ki.Item,{label:"Full Immersion",children:(0,e.jsx)(n.$n,{mt:-1,fluid:!0,icon:"eye",selected:u,onClick:function(){return x("immersion")},children:u?"Enabled":"Disabled"})})]})})]})})}},17542:function(M,y,t){"use strict";t.r(y),t.d(y,{MechaControlConsole:function(){return a}});var e=t(88095),i=t(33854),n=t(4413),r=t(92514),s=t(84905),a=function(g){var x=(0,n.Oc)(),d=x.act,h=x.data,v=h.beacons,u=h.stored_data;return(0,e.jsx)(s.p8,{width:600,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[u.length&&(0,e.jsx)(r.aF,{children:(0,e.jsx)(r.wn,{height:"400px",style:{"overflow-y":"auto"},title:"Log",buttons:(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return d("clear_log")}}),children:u.map(function(m){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.az,{color:"label",children:["(",m.time,") (",m.year,")"]}),(0,e.jsx)(r.az,{children:(0,i.jT)(m.message)})]},m.time)})})})||null,v.length&&v.map(function(m){return(0,e.jsx)(r.wn,{title:m.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return d("send_message",{mt:m.ref})},children:"Message"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return d("get_log",{mt:m.ref})},children:"View Log"}),(0,e.jsx)(r.$n.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){return d("shock",{mt:m.ref})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{ranges:{good:[m.maxHealth*.75,1/0],average:[m.maxHealth*.5,m.maxHealth*.75],bad:[-1/0,m.maxHealth*.5]},value:m.health,maxValue:m.maxHealth})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:m.cell&&(0,e.jsx)(r.z2,{ranges:{good:[m.cellMaxCharge*.75,1/0],average:[m.cellMaxCharge*.5,m.cellMaxCharge*.75],bad:[-1/0,m.cellMaxCharge*.5]},value:m.cellCharge,maxValue:m.cellMaxCharge})||(0,e.jsx)(r.IC,{children:"No Cell Installed"})}),(0,e.jsxs)(r.Ki.Item,{label:"Air Tank",children:[m.airtank,"kPa"]}),(0,e.jsx)(r.Ki.Item,{label:"Pilot",children:m.pilot||"Unoccupied"}),(0,e.jsx)(r.Ki.Item,{label:"Location",children:(0,i.Sn)(m.location)||"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Active Equipment",children:m.active||"None"}),m.cargoMax&&(0,e.jsx)(r.Ki.Item,{label:"Cargo Space",children:(0,e.jsx)(r.z2,{ranges:{bad:[m.cargoMax*.75,1/0],average:[m.cargoMax*.5,m.cargoMax*.75],good:[-1/0,m.cargoMax*.5]},value:m.cargoUsed,maxValue:m.cargoMax})})||null]})},m.name)})||(0,e.jsx)(r.IC,{children:"No mecha beacons found."})]})})}},97311:function(M,y,t){"use strict";t.r(y),t.d(y,{Medbot:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.on,v=d.open,u=d.beaker,m=d.beaker_total,c=d.beaker_max,f=d.locked,p=d.heal_threshold,C=d.heal_threshold_max,j=d.injection_amount_min,O=d.injection_amount,b=d.injection_amount_max,I=d.use_beaker,_=d.declare_treatment,S=d.vocal;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Medical Unit v2.0",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:h,onClick:function(){return x("power")},children:h?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Maintenance Panel",color:v?"bad":"good",children:v?"Open":"Closed"}),(0,e.jsx)(n.Ki.Item,{label:"Beaker",buttons:(0,e.jsx)(n.$n,{disabled:!u,icon:"eject",onClick:function(){return x("eject")},children:"Eject"}),children:u&&(0,e.jsxs)(n.z2,{value:m,maxValue:c,children:[m," / ",c]})||(0,e.jsx)(n.az,{color:"average",children:"No beaker loaded."})}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:f?"good":"bad",children:f?"Locked":"Unlocked"})]})}),!f&&(0,e.jsx)(n.wn,{title:"Behavioral Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Healing Threshold",children:(0,e.jsx)(n.Q7,{fluid:!0,minValue:0,maxValue:C,value:p,onDrag:function(P,A){return x("adj_threshold",{val:A})}})}),(0,e.jsx)(n.Ki.Item,{label:"Injection Amount",children:(0,e.jsx)(n.Q7,{fluid:!0,minValue:j,maxValue:b,value:O,onDrag:function(P,A){return x("adj_inject",{val:A})}})}),(0,e.jsx)(n.Ki.Item,{label:"Reagent Source",children:(0,e.jsx)(n.$n,{fluid:!0,icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){return x("use_beaker")},children:I?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,e.jsx)(n.Ki.Item,{label:"Treatment Report",children:(0,e.jsx)(n.$n,{fluid:!0,icon:_?"toggle-on":"toggle-off",selected:_,onClick:function(){return x("declaretreatment")},children:_?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Speaker",children:(0,e.jsx)(n.$n,{fluid:!0,icon:S?"toggle-on":"toggle-off",selected:S,onClick:function(){return x("togglevoice")},children:S?"On":"Off"})})]})})||null]})})}},98659:function(M,y,t){"use strict";t.r(y),t.d(y,{MedicalRecords:function(){return m}});var e=t(88095),i=t(44583),n=t(4413),r=t(92514),s=t(5425),a=t(84905),g=t(71451),x=t(1887),d=t(82489),h={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"},v=function(_){(0,s.modalOpen)("edit",{field:_.edit,value:_.value})},u=function(_){var S=(0,n.Oc)().act,P=_.args;return(0,e.jsx)(r.wn,{level:2,m:"-1rem",title:P.name||"Virus",buttons:(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return S("modal_close")}}),children:(0,e.jsx)(r.az,{mx:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Spread",children:[P.spread_text," Transmission"]}),(0,e.jsx)(r.Ki.Item,{label:"Possible cure",children:P.antigen}),(0,e.jsx)(r.Ki.Item,{label:"Rate of Progression",children:P.rate}),(0,e.jsxs)(r.Ki.Item,{label:"Antibiotic Resistance",children:[P.resistance,"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Species Affected",children:P.species}),(0,e.jsx)(r.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ki,{children:P.symptoms.map(function(A){return(0,e.jsxs)(r.Ki.Item,{label:A.stage+". "+A.name,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Strength:"})," ",A.strength,"\xA0",(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",A.aggressiveness]},A.stage)})})})]})})})},m=function(_){var S=(0,n.Oc)().data,P=S.authenticated,A=S.screen;if(!P)return(0,e.jsx)(a.p8,{width:800,height:380,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(x.LoginScreen,{})})});var R;return A===2?R=(0,e.jsx)(c,{}):A===3?R=(0,e.jsx)(f,{}):A===4?R=(0,e.jsx)(p,{}):A===5?R=(0,e.jsx)(O,{}):A===6&&(R=(0,e.jsx)(b,{})),(0,e.jsxs)(a.p8,{width:800,height:380,children:[(0,e.jsx)(s.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,e.jsxs)(a.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(g.LoginInfo,{}),(0,e.jsx)(d.TemporaryNotice,{}),(0,e.jsx)(I,{}),(0,e.jsx)(r.wn,{height:"calc(100% - 5rem)",flexGrow:"1",children:R})]})]})},c=function(_){var S=(0,n.Oc)(),P=S.act,A=S.data,R=A.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(K,N){return P("search",{t1:N})}}),(0,e.jsx)(r.az,{mt:"0.5rem",children:R.map(function(K,N){return(0,e.jsx)(r.$n,{icon:"user",mb:"0.5rem",content:K.id+": "+K.name,onClick:function(){return P("d_rec",{d_rec:K.ref})}},N)})})]})},f=function(_){var S=(0,n.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(r.$n,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," ",(0,e.jsx)("br",{}),(0,e.jsx)(r.$n.Confirm,{icon:"trash",content:"Delete All Medical Records",onClick:function(){return S("del_all")}})]})},p=function(_){var S=(0,n.Oc)(),P=S.act,A=S.data,R=A.medical,K=A.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"General Data",level:2,mt:"-6px",children:(0,e.jsx)(C,{})}),(0,e.jsx)(r.wn,{title:"Medical Data",level:2,children:(0,e.jsx)(j,{})}),(0,e.jsxs)(r.wn,{title:"Actions",level:2,children:[(0,e.jsx)(r.$n.Confirm,{icon:"trash",disabled:!!R.empty,content:"Delete Medical Record",color:"bad",onClick:function(){return P("del_r")}}),(0,e.jsx)(r.$n,{icon:K?"spinner":"print",disabled:K,iconSpin:!!K,content:"Print Entry",ml:"0.5rem",onClick:function(){return P("print_p")}}),(0,e.jsx)("br",{}),(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return P("screen",{screen:2})}})]})]})},C=function(_){var S=(0,n.Oc)().data,P=S.general;return!P||!P.fields?(0,e.jsx)(r.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{width:"50%",float:"left",children:(0,e.jsx)(r.Ki,{children:P.fields.map(function(A,R){return(0,e.jsxs)(r.Ki.Item,{label:A.field,children:[(0,e.jsx)(r.az,{height:"20px",display:"inline-block",preserveWhitespace:!0,children:A.value}),!!A.edit&&(0,e.jsx)(r.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return v(A)}})]},R)})})}),(0,e.jsx)(r.az,{width:"50%",float:"right",textAlign:"right",children:!!P.has_photos&&P.photos.map(function(A,R){return(0,e.jsxs)(r.az,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.jsx)("img",{src:A.substr(1,A.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)("br",{}),"Photo #",R+1]},R)})})]})},j=function(_){var S=(0,n.Oc)(),P=S.act,A=S.data,R=A.medical;return!R||!R.fields?(0,e.jsxs)(r.az,{color:"bad",children:["Medical records lost!",(0,e.jsx)(r.$n,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return P("new")}})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki,{children:R.fields.map(function(K,N){return(0,e.jsx)(r.Ki.Item,{label:K.field,children:(0,e.jsxs)(r.az,{preserveWhitespace:!0,children:[K.value,(0,e.jsx)(r.$n,{icon:"pen",ml:"0.5rem",mb:K.line_break?"1rem":"initial",onClick:function(){return v(K)}})]})},N)})}),(0,e.jsxs)(r.wn,{title:"Comments/Log",level:2,children:[R.comments.length===0?(0,e.jsx)(r.az,{color:"label",children:"No comments found."}):R.comments.map(function(K,N){return(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:K.header}),(0,e.jsx)("br",{}),K.text,(0,e.jsx)(r.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return P("del_c",{del_c:N+1})}})]},N)}),(0,e.jsx)(r.$n,{icon:"comment-medical",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,s.modalOpen)("add_c")}})]})]})},O=function(_){var S=(0,n.Oc)(),P=S.act,A=S.data,R=A.virus;return R.sort(function(K,N){return K.name>N.name?1:-1}),R.map(function(K,N){return(0,e.jsxs)(i.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"flask",content:K.name,mb:"0.5rem",onClick:function(){return P("vir",{vir:K.D})}}),(0,e.jsx)("br",{})]},N)})},b=function(_){var S=(0,n.Oc)().data,P=S.medbots;return P.length===0?(0,e.jsx)(r.az,{color:"label",children:"There are no Medbots."}):P.map(function(A,R){return(0,e.jsx)(r.Nt,{open:!0,title:A.name,children:(0,e.jsx)(r.az,{px:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Location",children:[A.area||"Unknown"," (",A.x,", ",A.y,")"]}),(0,e.jsx)(r.Ki.Item,{label:"Status",children:A.on?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"good",children:"Online"}),(0,e.jsx)(r.az,{mt:"0.5rem",children:A.use_beaker?"Reservoir: "+A.total_volume+"/"+A.maximum_volume:"Using internal synthesizer."})]}):(0,e.jsx)(r.az,{color:"average",children:"Offline"})})]})})},R)})},I=function(_){var S=(0,n.Oc)(),P=S.act,A=S.data,R=A.screen;return(0,e.jsxs)(r.tU,{children:[(0,e.jsxs)(r.tU.Tab,{selected:R===2,onClick:function(){return P("screen",{screen:2})},children:[(0,e.jsx)(r.In,{name:"list"}),"List Records"]}),(0,e.jsxs)(r.tU.Tab,{selected:R===5,onClick:function(){return P("screen",{screen:5})},children:[(0,e.jsx)(r.In,{name:"database"}),"Virus Database"]}),(0,e.jsxs)(r.tU.Tab,{selected:R===6,onClick:function(){return P("screen",{screen:6})},children:[(0,e.jsx)(r.In,{name:"plus-square"}),"Medbot Tracking"]}),(0,e.jsxs)(r.tU.Tab,{selected:R===3,onClick:function(){return P("screen",{screen:3})},children:[(0,e.jsx)(r.In,{name:"wrench"}),"Record Maintenance"]})]})};(0,s.modalRegisterBodyOverride)("virus",u)},31825:function(M,y,t){"use strict";t.r(y),t.d(y,{MentorTicketPanel:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s={open:"Open",resolved:"Resolved",unknown:"Unknown"},a=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=h.id,u=h.title,m=h.name,c=h.state,f=h.opened_at,p=h.closed_at,C=h.opened_at_date,j=h.closed_at_date,O=h.actions,b=h.log;return(0,e.jsx)(r.p8,{width:900,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Ticket #"+v,buttons:(0,e.jsxs)(n.az,{nowrap:!0,children:[(0,e.jsx)(n.$n,{icon:"arrow-up",content:"Escalate",onClick:function(){return d("escalate")}})," ",(0,e.jsx)(n.$n,{content:"Legacy UI",onClick:function(){return d("legacy")}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Mentor Help Ticket",children:["#",v,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:m}})]}),(0,e.jsx)(n.Ki.Item,{label:"State",children:s[c]}),s[c]===s.open?(0,e.jsxs)(n.Ki.Item,{label:"Opened At",children:[C," (",Math.round(f/600*10)/10," ","minutes ago.)"]}):(0,e.jsxs)(n.Ki.Item,{label:"Closed At",children:[j," (",Math.round(p/600*10)/10," ","minutes ago.)"," ",(0,e.jsx)(n.$n,{content:"Reopen",onClick:function(){return d("reopen")}})]}),(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:O}})}),(0,e.jsx)(n.Ki.Item,{label:"Log",children:Object.keys(b).map(function(I,_){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:b[I]}},_)})})]})})})})}},68607:function(M,y,t){"use strict";t.r(y),t.d(y,{MessageMonitor:function(){return d}});var e=t(88095),i=t(33854),n=t(44583),r=t(4413),s=t(92514),a=t(84905),g=t(13221),x=t(82489),d=function(C){var j=(0,r.Oc)(),O=j.act,b=j.data,I=b.auth,_=b.linkedServer,S=b.message,P=b.hacking,A=b.emag,R;return P||A?R=(0,e.jsx)(h,{}):I?_?R=(0,e.jsx)(u,{}):R=(0,e.jsx)(s.az,{color:"bad",children:"ERROR"}):R=(0,e.jsx)(v,{}),(0,e.jsx)(a.p8,{width:670,height:450,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(x.TemporaryNotice,{}),R]})})},h=function(C){var j=(0,r.Oc)(),O=j.act,b=j.data,I=b.isMalfAI;return(0,e.jsx)(g.FullscreenNotice,{title:"ERROR",children:I?(0,e.jsx)(s.az,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,e.jsxs)(s.az,{children:["01000010011100100111010101110100011001010010110",(0,e.jsx)("br",{}),"10110011001101111011100100110001101101001011011100110011",(0,e.jsx)("br",{}),"10010000001100110011011110111001000100000011100110110010",(0,e.jsx)("br",{}),"10111001001110110011001010111001000100000011010110110010",(0,e.jsx)("br",{}),"10111100100101110001000000100100101110100001000000111011",(0,e.jsx)("br",{}),"10110100101101100011011000010000001110100011000010110101",(0,e.jsx)("br",{}),"10110010100100000001100100011000000100000011100110110010",(0,e.jsx)("br",{}),"10110001101101111011011100110010001110011001000000110011",(0,e.jsx)("br",{}),"00110111101110010001000000110010101110110011001010111001",(0,e.jsx)("br",{}),"00111100100100000011000110110100001100001011100100110000",(0,e.jsx)("br",{}),"10110001101110100011001010111001000100000011101000110100",(0,e.jsx)("br",{}),"00110000101110100001000000111010001101000011001010010000",(0,e.jsx)("br",{}),"00111000001100001011100110111001101110111011011110111001",(0,e.jsx)("br",{}),"00110010000100000011010000110000101110011001011100010000",(0,e.jsx)("br",{}),"00100100101101110001000000111010001101000011001010010000",(0,e.jsx)("br",{}),"00110110101100101011000010110111001110100011010010110110",(0,e.jsx)("br",{}),"10110010100101100001000000111010001101000011010010111001",(0,e.jsx)("br",{}),"10010000001100011011011110110111001110011011011110110110",(0,e.jsx)("br",{}),"00110010100100000011000110110000101101110001000000111001",(0,e.jsx)("br",{}),"00110010101110110011001010110000101101100001000000111100",(0,e.jsx)("br",{}),"10110111101110101011100100010000001110100011100100111010",(0,e.jsx)("br",{}),"10110010100100000011010010110111001110100011001010110111",(0,e.jsx)("br",{}),"00111010001101001011011110110111001110011001000000110100",(0,e.jsx)("br",{}),"10110011000100000011110010110111101110101001000000110110",(0,e.jsx)("br",{}),"00110010101110100001000000111001101101111011011010110010",(0,e.jsx)("br",{}),"10110111101101110011001010010000001100001011000110110001",(0,e.jsx)("br",{}),"10110010101110011011100110010000001101001011101000010111",(0,e.jsx)("br",{}),"00010000001001101011000010110101101100101001000000111001",(0,e.jsx)("br",{}),"10111010101110010011001010010000001101110011011110010000",(0,e.jsx)("br",{}),"00110100001110101011011010110000101101110011100110010000",(0,e.jsx)("br",{}),"00110010101101110011101000110010101110010001000000111010",(0,e.jsx)("br",{}),"00110100001100101001000000111001001101111011011110110110",(0,e.jsx)("br",{}),"10010000001100100011101010111001001101001011011100110011",(0,e.jsx)("br",{}),"10010000001110100011010000110000101110100001000000111010",(0,e.jsx)("br",{}),"001101001011011010110010100101110"]})})},v=function(C){var j=(0,r.Oc)(),O=j.act,b=j.data,I=b.isMalfAI;return(0,e.jsxs)(g.FullscreenNotice,{title:"Welcome",children:[(0,e.jsxs)(s.az,{fontSize:"1.5rem",bold:!0,children:[(0,e.jsx)(s.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,e.jsxs)(s.az,{color:"label",my:"1rem",children:["Decryption Key:",(0,e.jsx)(s.pd,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(_,S){return O("auth",{key:S})}})]}),!!I&&(0,e.jsx)(s.$n,{icon:"terminal",content:"Hack",onClick:function(){return O("hack")}}),(0,e.jsx)(s.az,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})},u=function(C){var j=(0,r.Oc)(),O=j.act,b=j.data,I=b.linkedServer,_=(0,n.useState)(0),S=_[0],P=_[1],A;return S===0?A=(0,e.jsx)(m,{}):S===1?A=(0,e.jsx)(c,{logs:I.pda_msgs,pda:!0}):S===2?A=(0,e.jsx)(c,{logs:I.rc_msgs,rc:!0}):S===3?A=(0,e.jsx)(f,{}):S===4&&(A=(0,e.jsx)(p,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(s.tU,{children:[(0,e.jsxs)(s.tU.Tab,{selected:S===0,onClick:function(){return P(0)},children:[(0,e.jsx)(s.In,{name:"bars"})," Main Menu"]},"Main"),(0,e.jsxs)(s.tU.Tab,{selected:S===1,onClick:function(){return P(1)},children:[(0,e.jsx)(s.In,{name:"font"})," Message Logs"]},"MessageLogs"),(0,e.jsxs)(s.tU.Tab,{selected:S===2,onClick:function(){return P(2)},children:[(0,e.jsx)(s.In,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,e.jsxs)(s.tU.Tab,{selected:S===3,onClick:function(){return P(3)},children:[(0,e.jsx)(s.In,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,e.jsxs)(s.tU.Tab,{selected:S===4,onClick:function(){return P(4)},children:[(0,e.jsx)(s.In,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,e.jsxs)(s.tU.Tab,{color:"red",onClick:function(){return O("deauth")},children:[(0,e.jsx)(s.In,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,e.jsx)(s.az,{m:2,children:A})]})},m=function(C){var j=(0,r.Oc)(),O=j.act,b=j.data,I=b.linkedServer;return(0,e.jsxs)(s.wn,{title:"Main Menu",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.$n,{icon:"link",content:"Server Link",onClick:function(){return O("find")}}),(0,e.jsx)(s.$n,{icon:"power-off",content:"Server "+(I.active?"Enabled":"Disabled"),selected:I.active,onClick:function(){return O("active")}})]}),children:[(0,e.jsx)(s.Ki,{children:(0,e.jsx)(s.Ki.Item,{label:"Server Status",children:(0,e.jsx)(s.az,{color:"good",children:"Good"})})}),(0,e.jsx)(s.$n,{mt:1,icon:"key",content:"Set Custom Key",onClick:function(){return O("pass")}}),(0,e.jsx)(s.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Message Logs"}),(0,e.jsx)(s.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Request Logs"})]})},c=function(C){var j=(0,r.Oc)(),O=j.act,b=j.data,I=C.logs,_=C.pda,S=C.rc;return(0,e.jsx)(s.wn,{title:_?"PDA Logs":S?"Request Logs":"Logs",buttons:(0,e.jsx)(s.$n.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){return O(_?"del_pda":"del_rc")}}),children:(0,e.jsx)(s.so,{wrap:"wrap",children:I.map(function(P,A){return(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",grow:A%2,children:(0,e.jsx)(s.wn,{title:P.sender+" -> "+P.recipient,buttons:(0,e.jsx)(s.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return O("delete",{id:P.ref,type:S?"rc":"pda"})}}),children:S?(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(s.Ki.Item,{label:"Message",children:P.message}),(0,e.jsx)(s.Ki.Item,{label:"Verification",color:P.id_auth==="Unauthenticated"?"bad":"good",children:(0,i.jT)(P.id_auth)}),(0,e.jsx)(s.Ki.Item,{label:"Stamp",children:P.stamp})]}):P.message})},P.ref)})})})},f=function(C){var j=(0,r.Oc)(),O=j.act,b=j.data,I=b.possibleRecipients,_=b.customsender,S=b.customrecepient,P=b.customjob,A=b.custommessage,R=Object.keys(I);return(0,e.jsxs)(s.wn,{title:"Admin Messaging",children:[(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(s.Ki.Item,{label:"Sender",children:(0,e.jsx)(s.pd,{fluid:!0,value:_,onChange:function(K,N){return O("set_sender",{val:N})}})}),(0,e.jsx)(s.Ki.Item,{label:"Sender's Job",children:(0,e.jsx)(s.pd,{fluid:!0,value:P,onChange:function(K,N){return O("set_sender_job",{val:N})}})}),(0,e.jsx)(s.Ki.Item,{label:"Recipient",children:(0,e.jsx)(s.ms,{selected:S,options:R,width:"100%",mb:-.7,onSelected:function(K){return O("set_recipient",{val:I[K]})}})}),(0,e.jsx)(s.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(s.pd,{fluid:!0,mb:.5,value:A,onChange:function(K,N){return O("set_message",{val:N})}})})]}),(0,e.jsx)(s.$n,{fluid:!0,icon:"comment",content:"Send Message",onClick:function(){return O("send_message")}})]})},p=function(C){var j=(0,r.Oc)(),O=j.act,b=j.data,I=b.linkedServer;return(0,e.jsxs)(s.wn,{title:"Spam Filtering",children:[(0,e.jsx)(s.Ki,{children:I.spamFilter.map(function(_){return(0,e.jsx)(s.Ki.Item,{label:_.index,buttons:(0,e.jsx)(s.$n,{icon:"trash",color:"bad",content:"Delete",onClick:function(){return O("deltoken",{deltoken:_.index})}}),children:_.token},_.index)})}),(0,e.jsx)(s.$n,{icon:"plus",content:"Add New Entry",onClick:function(){return O("addtoken")}})]})}},91015:function(M,y,t){"use strict";t.r(y),t.d(y,{Microwave:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.config,h=g.data,v=h.broken,u=h.operating,m=h.dirty,c=h.items;return(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:v&&(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.az,{color:"bad",children:"Bzzzzttttt!!"})})||u&&(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.az,{color:"good",children:["Microwaving in progress!",(0,e.jsx)("br",{}),"Please wait...!"]})})||m&&(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.az,{color:"bad",children:["This microwave is dirty!",(0,e.jsx)("br",{}),"Please clean it before use!"]})})||c.length&&(0,e.jsx)(n.wn,{level:1,title:"Ingredients",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"radiation",onClick:function(){return x("cook")},children:"Microwave"}),(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return x("dispose")},children:"Eject"})]}),children:(0,e.jsx)(n.Ki,{children:c.map(function(f){return(0,e.jsxs)(n.Ki.Item,{label:f.name,children:[f.amt," ",f.extra]},f.name)})})})||(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.az,{color:"bad",children:[d.title," is empty."]})})})})}},46258:function(M,y,t){"use strict";t.r(y),t.d(y,{MiningOreProcessingConsole:function(){return g}});var e=t(88095),i=t(33854),n=t(4413),r=t(92514),s=t(84905),a=t(4418),g=function(u){var m=(0,n.Oc)(),c=m.act,f=m.data,p=f.unclaimedPoints,C=f.ores,j=f.showAllOres,O=f.power,b=f.speed;return(0,e.jsx)(s.p8,{width:400,height:500,children:(0,e.jsxs)(s.p8.Content,{children:[(0,e.jsx)(a.MiningUser,{insertIdText:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"arrow-right",mr:1,onClick:function(){return c("insert")},children:"Insert ID"}),"in order to claim points."]})}),(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"bolt",selected:b,onClick:function(){return c("speed_toggle")},children:b?"High-Speed Active":"High-Speed Inactive"}),(0,e.jsx)(r.$n,{icon:"power-off",selected:O,onClick:function(){return c("power")},children:O?"Smelting":"Not Smelting"})]}),children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Current unclaimed points",buttons:(0,e.jsx)(r.$n,{disabled:p<1,icon:"download",onClick:function(){return c("claim")},children:"Claim"}),children:(0,e.jsx)(r.zv,{value:p})})})}),(0,e.jsx)(v,{})]})})},x=["Not Processing","Smelting","Compressing","Alloying"],d=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],h=function(u,m){return d.indexOf(u.ore)===-1||d.indexOf(m.ore)===-1?u.ore-m.ore:d.indexOf(m.ore)-d.indexOf(u.ore)},v=function(u){var m=(0,n.Oc)(),c=m.act,f=m.data,p=f.ores,C=f.showAllOres,j=f.power;return(0,e.jsx)(r.wn,{title:"Ore Processing Controls",buttons:(0,e.jsx)(r.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return c("showAllOres")},children:C?"All Ores":"Ores in Machine"}),children:(0,e.jsx)(r.Ki,{children:p.length&&p.sort(h).map(function(O){return(0,e.jsx)(r.Ki.Item,{label:(0,i.Sn)(O.name),buttons:(0,e.jsx)(r.ms,{width:"120px",color:O.processing===0&&"red"||O.processing===1&&"green"||O.processing===2&&"blue"||O.processing===3&&"yellow",options:x,selected:x[O.processing],onSelected:function(b){return c("toggleSmelting",{ore:O.ore,set:x.indexOf(b)})}}),children:(0,e.jsx)(r.az,{inline:!0,children:(0,e.jsx)(r.zv,{value:O.amount})})},O.ore)})||(0,e.jsx)(r.az,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},1703:function(M,y,t){"use strict";t.r(y),t.d(y,{MiningStackingConsole:function(){return a}});var e=t(88095),i=t(33854),n=t(4413),r=t(92514),s=t(84905),a=function(g){var x=(0,n.Oc)(),d=x.act,h=x.data,v=h.stacktypes,u=h.stackingAmt;return(0,e.jsx)(s.p8,{width:400,height:500,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Stacker Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Stacking",children:(0,e.jsx)(r.Q7,{fluid:!0,value:u,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(m,c){return d("change_stack",{amt:c})}})}),(0,e.jsx)(r.Ki.Divider,{}),v.length&&v.sort().map(function(m){return(0,e.jsx)(r.Ki.Item,{label:(0,i.Sn)(m.type),buttons:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return d("release_stack",{stack:m.type})},children:"Eject"}),children:(0,e.jsx)(r.zv,{value:m.amt})},m.type)})||(0,e.jsx)(r.Ki.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}},25620:function(M,y,t){"use strict";t.r(y),t.d(y,{MiningVendor:function(){return v}});var e=t(88095),i=t(33854),n=t(44583),r=t(4413),s=t(92514),a=t(84905),g=t(4418);function x(){return x=Object.assign||function(f){for(var p=1;p=0)&&(C[O]=f[O]);return C}var h={Alphabetical:function(f,p){return f.name>p.name},"By availability":function(f,p){return-(f.affordable-p.affordable)},"By price":function(f,p){return f.price-p.price}},v=function(f){var p=function(k){I(k)},C=function(k){P(k)},j=function(k){K(k)},O=(0,n.useState)(""),b=O[0],I=O[1],_=(0,n.useState)("Alphabetical"),S=_[0],P=_[1],A=(0,n.useState)(!1),R=A[0],K=A[1];return(0,e.jsx)(a.p8,{width:400,height:450,children:(0,e.jsxs)(a.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(g.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,e.jsx)(m,{searchText:b,sortOrder:S,descending:R,onSearchText:p,onSortOrder:C,onDescending:j}),(0,e.jsx)(u,{searchText:b,sortOrder:S,descending:R,onSearchText:p,onSortOrder:C,onDescending:j})]})})},u=function(f){var p=(0,r.Oc)(),C=p.act,j=p.data,O=j.has_id,b=j.id,I=j.items,_=(0,i.XZ)(f.searchText,function(A){return A[0]}),S=!1,P=Object.entries(I).map(function(A,R){var K=Object.entries(A[1]).filter(_).map(function(N){return N[1].affordable=O&&b.points>=N[1].price,N[1]}).sort(h[f.sortOrder]);if(K.length!==0)return f.descending&&(K=K.reverse()),S=!0,(0,e.jsx)(c,{title:A[0],items:K},A[0])});return(0,e.jsx)(s.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(s.wn,{children:S?P:(0,e.jsx)(s.az,{color:"label",children:"No items matching your criteria was found!"})})})},m=function(f){return(0,e.jsx)(s.az,{mb:"0.5rem",children:(0,e.jsxs)(s.so,{width:"100%",children:[(0,e.jsx)(s.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(s.pd,{placeholder:"Search by item name..",width:"100%",onInput:function(p,C){return f.onSearchText(C)}})}),(0,e.jsx)(s.so.Item,{basis:"30%",children:(0,e.jsx)(s.ms,{selected:"Alphabetical",options:Object.keys(h),width:"100%",lineHeight:"19px",onSelected:function(p){return f.onSortOrder(p)}})}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.$n,{icon:f.descending?"arrow-down":"arrow-up",height:"19px",tooltip:f.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return f.onDescending(!f.descending)}})})]})})},c=function(f){var p=(0,r.Oc)(),C=p.act,j=p.data,O=f.title,b=f.items,I=d(f,["title","items"]);return(0,e.jsx)(s.Nt,x({open:!0,title:O},I,{children:b.map(function(_){return(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.az,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:_.name}),(0,e.jsx)(s.$n,{disabled:!j.has_id||j.id.points<_.price,content:_.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return C("purchase",{cat:O,name:_.name})}}),(0,e.jsx)(s.az,{style:{clear:"both"}})]},_.name)})}))}},83326:function(M,y,t){"use strict";t.r(y),t.d(y,{MobSpawner:function(){return a}});var e=t(88095),i=t(44583),n=t(4413),r=t(92514),s=t(84905),a=function(d){var h=function(Be){A.health=Be,Q(Be)},v=function(Be){A.max_health=Be,Q(Be)},u=function(Be){A.melee_damage_lower=Be,Q(Be)},m=function(Be){A.melee_damage_upper=Be,Q(Be)},c=function(Be){A.path_name=Be,Q(Be)},f=function(Be){A.desc=Be,Q(Be)},p=function(Be){A.flavor_text=Be,Q(Be)},C=function(Be){F(Be)},j=function(Be){z(Be)},O=function(Be){oe(Be)},b=function(Be){de(Be)},I=function(Be){me(Be)},_=function(Be){Je(Be)},S=(0,n.Oc)(),P=S.act,A=S.data,R=(0,i.useState)(0),K=R[0],N=R[1],k=(0,i.useState)(0),X=k[0],F=k[1],J=(0,i.useState)(),H=J[0],Q=J[1],Z=(0,i.useState)(A.initial_x),V=Z[0],z=Z[1],Y=(0,i.useState)(A.initial_y),ee=Y[0],oe=Y[1],ne=(0,i.useState)(A.initial_z),ce=ne[0],de=ne[1],ve=(0,i.useState)(100),pe=ve[0],me=ve[1],be=(0,i.useState)(1),we=be[0],Je=be[1],ze=[];return ze[0]=(0,e.jsx)(g,{radius:X,x:V,y:ee,z:ce,sizeMultiplier:pe,amount:we,onRadius:C,onHealth:h,onMaxHealth:v,onMeleeDamageLower:u,onMeleeDamageupper:m,onName:c,onDesc:f,onFlavor:p,onX:j,onY:O,onZ:b,onSizeMultiplier:I,onAmount:_}),ze[1]=(0,e.jsx)(x,{}),(0,e.jsx)(s.p8,{width:890,height:880,theme:"abstract",children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:K===0,onClick:function(){return N(0)},children:"General Settings"}),(0,e.jsx)(r.tU.Tab,{selected:K===1,onClick:function(){return N(1)},children:"Vore Settings [WIP]"})]}),ze[K]||"Error"]})})},g=function(d){var h=(0,n.Oc)(),v=h.act,u=h.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"General",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Mob Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:u.path_name,onChange:function(m,c){return d.onName(c)}})}),(0,e.jsx)(r.Ki.Item,{label:"Mob Path",children:(0,e.jsx)(r.$n,{fluid:!0,content:u.path||"Select Path",onClick:function(m){return v("select_path")}})}),(0,e.jsx)(r.Ki.Item,{label:"Spawn Amount",children:(0,e.jsx)(r.Q7,{value:d.amount,minValue:0,maxValue:256,onChange:function(m,c){return d.onAmount(c)}})}),(0,e.jsx)(r.Ki.Item,{label:"Size ("+d.sizeMultiplier+"%)",children:(0,e.jsx)(r.N6,{value:d.sizeMultiplier,minValue:50,maxValue:200,unit:"%",onChange:function(m,c){return d.onSizeMultiplier(c)}})})]})}),(0,e.jsx)(r.wn,{title:"General Settings",children:(0,e.jsxs)(r.so,{horizontal:!0,children:[(0,e.jsx)(r.so.Item,{FlexGrow:!0,children:(0,e.jsx)(r.wn,{title:"Positional Settings",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Spawn (X/Y/Z) Coords",children:[(0,e.jsx)(r.Q7,{value:u.loc_lock?u.loc_x:d.x,minValue:0,maxValue:256,onChange:function(m,c){return d.onX(c)}}),(0,e.jsx)(r.Q7,{value:u.loc_lock?u.loc_y:d.y,minValue:0,maxValue:256,onChange:function(m,c){return d.onY(c)}}),(0,e.jsx)(r.Q7,{value:u.loc_lock?u.loc_z:d.z,minValue:0,maxValue:256,onChange:function(m,c){return d.onZ(c)}}),(0,e.jsx)(r.$n.Checkbox,{content:"Lock coords to self",checked:u.loc_lock,onClick:function(){return v("loc_lock")}})]}),(0,e.jsx)(r.Ki.Item,{label:"Spawn Radius (WIP)",children:(0,e.jsx)(r.Q7,{value:d.radius,disabled:!0,minValue:0,maxValue:256,onChange:function(m,c){return d.onRadius(c)}})})]})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.cG,{vertical:!0})}),(0,e.jsxs)(r.so.Item,{FlexGrow:!0,children:[(0,e.jsx)(r.wn,{title:"AI settings",buttons:(0,e.jsx)(r.$n,{selected:u.use_custom_ai,fill:!0,content:"Use Custom AI",onClick:function(){return v("toggle_custom_ai")}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{children:(0,e.jsx)(r.$n,{fluid:!0,content:u.ai_type||"Choose AI Type",onClick:function(m){return v("set_ai_path")}})}),(0,e.jsx)(r.Ki.Item,{children:(0,e.jsx)(r.$n,{fluid:!0,content:u.faction||"Set Faction",onClick:function(m){return v("set_faction")}})}),(0,e.jsx)(r.Ki.Item,{children:(0,e.jsx)(r.$n,{fluid:!0,content:u.intent||"Set Intent",onClick:function(m){return v("set_intent")}})})]})}),(0,e.jsx)(r.wn,{title:"Health & Damage",children:(0,e.jsxs)(r.Ki,{children:[u.max_health&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Max Health",children:(0,e.jsx)(r.Q7,{value:u.max_health,onChange:function(m,c){return d.onMaxHealth(c)}})}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.Q7,{value:u.health,onChange:function(m,c){return d.onHealth(c)}})}),(0,e.jsx)("br",{})]})||"Note: Only available for '/mob/living'",u.melee_damage_lower&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Melee Damage (Lower)",children:(0,e.jsx)(r.Q7,{value:u.melee_damage_lower,onChange:function(m,c){return d.onMeleeDamageLower(c)}})}),(0,e.jsx)(r.Ki.Item,{label:"Melee Damage (Upper)",children:(0,e.jsx)(r.Q7,{value:u.melee_damage_upper,onChange:function(m,c){return d.onMeleeDamageUpper(c)}})})]})||"Note: Only available for '/mob/living/simple_mob'"]})})]})]})}),(0,e.jsx)(r.wn,{title:"Descriptions",children:(0,e.jsxs)(r.so,{children:[(0,e.jsxs)(r.so.Item,{width:"50%",children:["Description:",(0,e.jsx)("br",{}),(0,e.jsx)(r.fs,{height:"18rem",onChange:function(m,c){return d.onDesc(c)},value:u.desc})]}),(0,e.jsxs)(r.so.Item,{width:"50%",children:["Flavor Text:",(0,e.jsx)("br",{}),(0,e.jsx)(r.fs,{height:"18rem",value:u.flavor_text,onChange:function(m,c){return d.onFlavor(c)}})]})]})}),(0,e.jsx)(r.$n,{fill:!0,content:"Spawn",color:"teal",onClick:function(){return v("start_spawn",{amount:d.amount,name:u.path_name,desc:u.desc,max_health:u.max_health,health:u.health,melee_damage_lower:u.melee_damage_lower,melee_damage_upper:u.melee_damage_upper,flavor_text:u.flavor_text,size_multiplier:d.sizeMultiplier*.01,x:u.loc_lock?u.loc_x:d.x,y:u.loc_lock?u.loc_y:d.y,z:u.loc_lock?u.loc_z:d.z,radius:d.radius})}})]})},x=function(d){var h=(0,n.Oc)(),v=h.act,u=h.data;return(0,e.jsxs)(r.wn,{title:"WIP",children:["This Tab is still under construction!",(0,e.jsx)("br",{}),"Functionality will be added in later updates."]})}},44372:function(M,y,t){"use strict";t.r(y),t.d(y,{MuleBot:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(x){var d=(0,i.Oc)(),h=d.act,v=d.data,u=v.suffix,m=v.load,c=v.hatch;return(0,e.jsx)(r.p8,{width:350,height:500,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{title:"Multiple Utility Load Effector Mk. III",children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"ID",children:u}),(0,e.jsx)(n.Ki.Item,{label:"Current Load",buttons:(0,e.jsx)(n.$n,{icon:"eject",content:"Unload Now",disabled:!m,onClick:function(){return h("unload")}}),children:m||"None."})]}),c?(0,e.jsx)(g,{}):(0,e.jsx)(a,{})]})})})},a=function(x){var d=(0,i.Oc)(),h=d.act,v=d.data,u=v.power,m=v.locked,c=v.issilicon,f=v.auto_return,p=v.crates_only;return(0,e.jsx)(n.wn,{title:"Controls",buttons:(0,e.jsx)(n.$n,{icon:"power-off",content:u?"On":"Off",selected:u,disabled:m&&!c,onClick:function(){return h("power")}}),children:m&&!c?(0,e.jsx)(n.az,{color:"bad",children:"This interface is currently locked."}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"stop",content:"Stop",onClick:function(){return h("stop")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"truck-monster",content:"Proceed",onClick:function(){return h("go")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"home",content:"Return Home",onClick:function(){return h("home")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"map-marker-alt",content:"Set Destination",onClick:function(){return h("destination")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"cog",content:"Set Home",onClick:function(){return h("sethome")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"home",selected:f,content:"Auto Return Home: "+(f?"Enabled":"Disabled"),onClick:function(){return h("autoret")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"biking",selected:!p,content:"Non-standard Cargo: "+(p?"Disabled":"Enabled"),onClick:function(){return h("cargotypes")}})]})})},g=function(x){var d=(0,i.Oc)(),h=d.act,v=d.data,u=v.safety;return(0,e.jsx)(n.wn,{title:"Maintenance Panel",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"skull-crossbones",color:u?"green":"red",content:"Safety: "+(u?"Engaged":"Disengaged (DANGER)"),onClick:function(){return h("safety")}})})}},72207:function(M,y,t){"use strict";t.r(y),t.d(y,{NIF:function(){return v}});var e=t(88095),i=t(44583),n=t(4413),r=t(92514),s=t(84905),a=0,g=1,x=2,d=3,h=4,v=function(p){var C=(0,n.Oc)(),j=C.act,O=C.config,b=C.data,I=b.theme,_=b.last_notification,S=(0,i.useState)(!1),P=S[0],A=S[1],R=(0,i.useState)(null),K=R[0],N=R[1];return(0,e.jsx)(s.p8,{theme:I,width:500,height:400,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!!_&&(0,e.jsx)(r.IC,{info:!0,children:(0,e.jsx)(r.XI,{verticalAlign:"middle",children:(0,e.jsxs)(r.XI.Row,{verticalAlign:"middle",children:[(0,e.jsx)(r.XI.Cell,{verticalAlign:"middle",children:_}),(0,e.jsx)(r.XI.Cell,{verticalAlign:"middle",collapsing:!0,children:(0,e.jsx)(r.$n,{color:"red",icon:"times",tooltip:"Dismiss",tooltipPosition:"left",onClick:function(){return j("dismissNotification")}})})]})})}),!!K&&(0,e.jsx)(r.aF,{m:1,p:0,color:"label",children:(0,e.jsxs)(r.wn,{m:0,title:K.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{icon:"ban",color:"bad",content:"Uninstall",confirmIcon:"ban",confirmContent:"Uninstall "+K.name+"?",onClick:function(){j("uninstall",{module:K.ref}),N(null)}}),(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return N(null)}})]}),children:[(0,e.jsx)(r.az,{children:K.desc}),(0,e.jsxs)(r.az,{children:["It consumes",(0,e.jsx)(r.az,{color:"good",inline:!0,children:K.p_drain}),"energy units while installed, and",(0,e.jsx)(r.az,{color:"average",inline:!0,children:K.a_drain}),"additionally while active."]}),(0,e.jsxs)(r.az,{color:K.illegal?"bad":"good",children:["It is ",K.illegal?"NOT ":"","a legal software package."]}),(0,e.jsxs)(r.az,{children:["The MSRP of the package is",(0,e.jsxs)(r.az,{color:"good",inline:!0,children:[K.cost,"\u20AE."]})]}),(0,e.jsxs)(r.az,{children:["The difficulty to construct the associated implant is\xA0",(0,e.jsxs)(r.az,{color:"good",inline:!0,children:["Rating ",K.wear]}),"."]})]})}),(0,e.jsx)(r.wn,{title:"Welcome to your NIF, "+O.user.name,buttons:(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Settings",tooltipPosition:"bottom-end",selected:P,onClick:function(){return A(!P)}}),children:P&&(0,e.jsx)(f,{})||(0,e.jsx)(c,{setViewing:N})})]})})},u=function(p,C){switch(p){case a:return C<25?"Service Needed Soon":"Operating Normally";case g:return"Insufficient Energy!";case x:return"System Failure!";case d:return"Adapting To User"}return"Unknown"},m=function(p,C){return C?p>=450?"Overcharged":p>=250?"Good Charge":"Low Charge":p>=250?"NIF Power Requirement met.":p>=150?"Fluctuations in available power.":"Power failure imminent."},c=function(p){var C=(0,n.Oc)(),j=C.act,O=C.config,b=C.data,I=b.nif_percent,_=b.nif_stat,S=b.nutrition,P=b.isSynthetic,A=b.modules,R=p.setViewing;return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"NIF Condition",children:(0,e.jsxs)(r.z2,{value:I,minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,0]},children:[u(_,I)," (",(0,e.jsx)(r.zv,{value:I}),"%)"]})}),(0,e.jsx)(r.Ki.Item,{label:"NIF Power",children:(0,e.jsx)(r.z2,{value:S,minValue:0,maxValue:700,ranges:{good:[250,1/0],average:[150,250],bad:[0,150]},children:m(S,P)})})]}),(0,e.jsx)(r.wn,{level:2,title:"NIFSoft Modules",mt:1,children:(0,e.jsx)(r.Ki,{children:A.map(function(K){return(0,e.jsx)(r.Ki.Item,{label:K.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{icon:"trash",color:"bad",confirmContent:"UNINSTALL?",confirmIcon:"trash",tooltip:"Uninstall Module",tooltipPosition:"left",onClick:function(){return j("uninstall",{module:K.ref})}}),(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return R(K)},tooltip:"View Information",tooltipPosition:"left"})]}),children:K.activates&&(0,e.jsx)(r.$n,{fluid:!0,selected:K.active,content:K.stat_text,onClick:function(){return j("toggle_module",{module:K.ref})}})||(0,e.jsx)(r.az,{children:K.stat_text})},K.ref)})})})]})},f=function(p){var C=(0,n.Oc)(),j=C.act,O=C.data,b=O.valid_themes,I=O.theme;return(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"NIF Theme",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.ms,{grow:1,selected:I||"default",options:b,onSelected:function(_){return j("setTheme",{theme:_})}})}),I?(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{width:"22px",icon:"undo",color:"red",onClick:function(){j("setTheme",{theme:null})}})}):""]})})})}},96576:function(M,y,t){"use strict";t.r(y),t.d(y,{NTNetRelay:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=t(13221),a=function(d){var h=(0,i.Oc)(),v=h.act,u=h.data,m=u.dos_crashed,c=u.enabled,f=u.dos_overload,p=u.dos_capacity,C=(0,e.jsx)(g,{});return m&&(C=(0,e.jsx)(x,{})),(0,e.jsx)(r.p8,{width:m?700:500,height:m?600:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:C})})},g=function(d){var h=(0,i.Oc)(),v=h.act,u=h.data,m=u.dos_crashed,c=u.enabled,f=u.dos_overload,p=u.dos_capacity;return(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:c,content:"Relay "+(c?"On":"Off"),onClick:function(){return v("toggle")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Network Buffer Status",children:[f," / ",p," GQ"]}),(0,e.jsx)(n.Ki.Item,{label:"Options",children:(0,e.jsx)(n.$n,{icon:"exclamation-triangle",content:"Purge network blacklist",onClick:function(){return v("purge")}})})]})})},x=function(d){var h=(0,i.Oc)(),v=h.act,u=h.data;return(0,e.jsxs)(s.FullscreenNotice,{title:"ERROR",children:[(0,e.jsxs)(n.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(n.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)("h2",{children:"NETWORK BUFFERS OVERLOADED"}),(0,e.jsx)("h3",{children:"Overload Recovery Mode"}),(0,e.jsx)("i",{children:"This system is suffering temporary outage due to overflow of traffic buffers. Until buffered traffic is processed, all further requests will be dropped. Frequent occurences of this error may indicate insufficient hardware capacity of your network. Please contact your network planning department for instructions on how to resolve this issue."}),(0,e.jsx)("h3",{children:"ADMINISTRATIVE OVERRIDE"}),(0,e.jsx)("b",{children:" CAUTION - Data loss may occur "})]}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"exclamation-triangle",content:"Purge buffered traffic",onClick:function(){return v("restart")}})})]})}},80707:function(M,y,t){"use strict";t.r(y),t.d(y,{Newscaster:function(){return f}});var e=t(88095),i=t(33854),n=t(4413),r=t(92514),s=t(84905),a=t(82489),g="Main Menu",x="New Channel",d="View List",h="New Story",v="Print",u="New Wanted",m="View Wanted",c="View Selected Channel",f=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,X=k.screen,F=k.user;return(0,e.jsx)(s.p8,{width:600,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsx)(a.TemporaryNotice,{decode:!0}),(0,e.jsx)(p,{})]})})},p=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,X=k.user,F=(0,n.QY)("screen",g),J=F[0],H=F[1],Q=A[J];return(0,e.jsx)(r.az,{children:(0,e.jsx)(Q,{setScreen:H})})},C=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,X=k.securityCaster,F=k.wanted_issue,J=R.setScreen;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Main Menu",children:[F&&(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",onClick:function(){return J(m)},color:"bad",children:"Read WANTED Issue"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",onClick:function(){return J(d)},children:"View Feed Channels"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"plus",onClick:function(){return J(x)},children:"Create Feed Channel"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"plus",onClick:function(){return J(h)},children:"Create Feed Message"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"print",onClick:function(){return J(v)},children:"Print Newspaper"})]}),!!X&&(0,e.jsx)(r.wn,{title:"Feed Security Functions",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"plus",onClick:function(){return J(u)},children:'Manage "Wanted" Issue'})})]})},j=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,X=k.channel_name,F=k.c_locked,J=k.user,H=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Creating new Feed Channel",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return H(g)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Channel Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,i.jT)(X),onInput:function(Q,Z){return N("set_channel_name",{val:Z})}})}),(0,e.jsx)(r.Ki.Item,{label:"Channel Author",color:"good",children:J}),(0,e.jsx)(r.Ki.Item,{label:"Accept Public Feeds",children:(0,e.jsx)(r.$n,{icon:F?"lock":"lock-open",selected:!F,onClick:function(){return N("set_channel_lock")},children:F?"No":"Yes"})})]}),(0,e.jsx)(r.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return N("submit_new_channel")},children:"Submit Channel"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return H(g)},children:"Cancel"})]})},O=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,X=k.channels,F=R.setScreen;return(0,e.jsx)(r.wn,{title:"Station Feed Channels",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return F(g)},children:"Back"}),children:X.map(function(J){return(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",color:J.admin?"good":J.censored?"bad":"",onClick:function(){N("show_channel",{show_channel:J.ref}),F(c)},children:(0,i.jT)(J.name)},J.name)})})},b=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,X=k.channel_name,F=k.user,J=k.title,H=k.msg,Q=k.photo_data,Z=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Creating new Feed Message...",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return Z(g)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Receiving Channel",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return N("set_channel_receiving")},children:X||"Unset"})}),(0,e.jsx)(r.Ki.Item,{label:"Message Author",color:"good",children:F}),(0,e.jsx)(r.Ki.Item,{label:"Message Title",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{width:"99%",inline:!0,children:J||"(no title yet)"})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return N("set_new_title")},icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Message Body",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{width:"99%",inline:!0,children:H||"(no message yet)"})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return N("set_new_message")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"image",onClick:function(){return N("set_attachment")},children:Q?"Photo Attached":"No Photo"})})]}),(0,e.jsx)(r.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return N("submit_new_message")},children:"Submit Message"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return Z(g)},children:"Cancel"})]})},I=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,X=k.total_num,F=k.active_num,J=k.message_num,H=k.paper_remaining,Q=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Printing",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return Q(g)},children:"Back"}),children:[(0,e.jsxs)(r.az,{color:"label",mb:1,children:["Newscaster currently serves a total of ",X," Feed channels,"," ",F," of which are active, and a total of ",J," Feed stories."]}),(0,e.jsx)(r.Ki,{children:(0,e.jsxs)(r.Ki.Item,{label:"Liquid Paper remaining",children:[H*100," cm\xB3"]})}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return N("print_paper")},children:"Print Paper"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return Q(g)},children:"Cancel"})]})},_=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,X=k.channel_name,F=k.msg,J=k.photo_data,H=k.user,Q=k.wanted_issue,Z=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Wanted Issue Handler",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return Z(g)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[!!Q&&(0,e.jsx)(r.Ki.Item,{label:"Already In Circulation",children:"A wanted issue is already in circulation. You can edit or cancel it below."}),(0,e.jsx)(r.Ki.Item,{label:"Criminal Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,i.jT)(X),onInput:function(V,z){return N("set_channel_name",{val:z})}})}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,i.jT)(F),onInput:function(V,z){return N("set_wanted_desc",{val:z})}})}),(0,e.jsx)(r.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"image",onClick:function(){return N("set_attachment")},children:J?"Photo Attached":"No Photo"})}),(0,e.jsx)(r.Ki.Item,{label:"Prosecutor",color:"good",children:H})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return N("submit_wanted")},children:"Submit Wanted Issue"}),!!Q&&(0,e.jsx)(r.$n,{fluid:!0,color:"average",icon:"minus",onClick:function(){return N("cancel_wanted")},children:"Take Down Issue"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return Z(g)},children:"Cancel"})]})},S=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,X=k.wanted_issue,F=R.setScreen;return X?(0,e.jsx)(r.wn,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return F(g)},children:"Back"}),children:(0,e.jsx)(r.az,{color:"white",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Submitted by",color:"good",children:(0,i.jT)(X.author)}),(0,e.jsx)(r.Ki.Divider,{}),(0,e.jsx)(r.Ki.Item,{label:"Criminal",children:(0,i.jT)(X.criminal)}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,i.jT)(X.desc)}),(0,e.jsx)(r.Ki.Item,{label:"Photo",children:X.img&&(0,e.jsx)("img",{src:X.img})||"None"})]})})}):(0,e.jsx)(r.wn,{title:"No Outstanding Wanted Issues",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return F(g)},children:"Back"}),children:"There are no wanted issues currently outstanding."})},P=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,X=k.viewing_channel,F=k.securityCaster,J=k.company,H=R.setScreen;return X?(0,e.jsxs)(r.wn,{title:(0,i.jT)(X.name),buttons:(0,e.jsxs)(e.Fragment,{children:[!!F&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",content:"Issue D-Notice",onClick:function(){return N("toggle_d_notice",{ref:X.ref})}}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return H(d)},children:"Back"})]}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Channel Created By",children:F&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:(0,i.jT)(X.author),tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){return N("censor_channel_author",{ref:X.ref})}})||(0,e.jsx)(r.az,{children:(0,i.jT)(X.author)})})}),!!X.censored&&(0,e.jsxs)(r.az,{color:"bad",children:["ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a ",J," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!X.messages.length&&X.messages.map(function(Q){return(0,e.jsxs)(r.wn,{children:["- ",(0,i.jT)(Q.body),!!Q.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)("img",{src:"data:image/png;base64,"+Q.img}),(0,i.jT)(Q.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[Story by ",(0,i.jT)(Q.author)," -"," ",Q.timestamp,"]"]}),!!F&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Story",onClick:function(){return N("censor_channel_story_body",{ref:Q.ref})}}),(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Author",onClick:function(){return N("censor_channel_story_author",{ref:Q.ref})}})]})]},Q.ref)})||!X.censored&&(0,e.jsx)(r.az,{color:"average",children:"No feed messages found in channel."})]}):(0,e.jsx)(r.wn,{title:"Channel Not Found",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return H(d)},children:"Back"}),children:"The channel you were looking for no longer exists."})},A={};A[g]=C,A[x]=j,A[d]=O,A[h]=b,A[v]=I,A[u]=_,A[m]=S,A[c]=P},58942:function(M,y,t){"use strict";t.r(y),t.d(y,{NoticeBoard:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.notices;return(0,e.jsx)(r.p8,{width:330,height:300,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:h.length?(0,e.jsx)(n.Ki,{children:h.map(function(v,u){return(0,e.jsxs)(n.Ki.Item,{label:v.name,children:[v.isphoto&&(0,e.jsx)(n.$n,{icon:"image",content:"Look",onClick:function(){return x("look",{ref:v.ref})}})||v.ispaper&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"sticky-note",content:"Read",onClick:function(){return x("read",{ref:v.ref})}}),(0,e.jsx)(n.$n,{icon:"pen",content:"Write",onClick:function(){return x("write",{ref:v.ref})}})]})||"Unknown Entity",(0,e.jsx)(n.$n,{icon:"minus-circle",content:"Remove",onClick:function(){return x("remove",{ref:v.ref})}})]},u)})}):(0,e.jsx)(n.az,{color:"average",children:"No notices posted here."})})})})}},90782:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosAccessDecrypter:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=t(17575),a=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=h.message,u=h.running,m=h.rate,c=h.factor,f=h.regions,p=function(j){for(var O="";O.lengthc?O+="0":O+="1";return O},C=45;return(0,e.jsx)(r.Zm,{width:600,height:600,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:v&&(0,e.jsx)(n.IC,{children:v})||u&&(0,e.jsxs)(n.wn,{children:["Attempting to decrypt network access codes. Please wait. Rate:"," ",m," PHash/s",(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.$n,{fluid:!0,icon:"ban",onClick:function(){return d("PRG_reset")},children:"Abort"})]})||(0,e.jsx)(n.wn,{title:"Pick access code to decrypt",children:f.length&&(0,e.jsx)(s.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,e.jsx)(n.az,{children:"Please insert ID card."})})})})}},26042:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosArcade:function(){return a}});var e=t(88095),i=t(80676),n=t(4413),r=t(92514),s=t(84905),a=function(g){var x=(0,n.Oc)(),d=x.act,h=x.data;return(0,e.jsx)(s.Zm,{width:450,height:350,children:(0,e.jsx)(s.Zm.Content,{children:(0,e.jsxs)(r.wn,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.xA,{children:[(0,e.jsxs)(r.xA.Column,{size:2,children:[(0,e.jsx)(r.az,{m:1}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Player Health",children:(0,e.jsxs)(r.z2,{value:h.PlayerHitpoints,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[h.PlayerHitpoints,"HP"]})}),(0,e.jsx)(r.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(r.z2,{value:h.PlayerMP,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[h.PlayerMP,"MP"]})})]}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.wn,{backgroundColor:h.PauseState===1?"#1b3622":"#471915",children:h.Status})]}),(0,e.jsxs)(r.xA.Column,{children:[(0,e.jsxs)(r.z2,{value:h.Hitpoints,minValue:0,maxValue:45,ranges:{good:[30,1/0],average:[5,30],bad:[-1/0,5]},children:[(0,e.jsx)(r.zv,{value:h.Hitpoints}),"HP"]}),(0,e.jsx)(r.az,{m:1}),(0,e.jsx)(r.wn,{inline:!0,width:"156px",textAlign:"center",children:(0,e.jsx)("img",{src:(0,i.l)(h.BossID)})})]})]}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.$n,{icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",disabled:h.GameActive===0||h.PauseState===1,onClick:function(){return d("Attack")},content:"Attack!"}),(0,e.jsx)(r.$n,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:h.GameActive===0||h.PauseState===1,onClick:function(){return d("Heal")},content:"Heal!"}),(0,e.jsx)(r.$n,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:h.GameActive===0||h.PauseState===1,onClick:function(){return d("Recharge_Power")},content:"Recharge!"})]}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:h.GameActive===1,onClick:function(){return d("Start_Game")},content:"Begin Game"}),(0,e.jsx)(r.$n,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:h.GameActive===1,onClick:function(){return d("Dispense_Tickets")},content:"Claim Tickets"})]}),(0,e.jsxs)(r.az,{color:h.TicketCount>=1?"good":"normal",children:["Earned Tickets: ",h.TicketCount]})]})})})}},30873:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosAtmosControl:function(){return r}});var e=t(88095),i=t(84905),n=t(42623),r=function(){return(0,e.jsx)(i.Zm,{width:870,height:708,children:(0,e.jsx)(i.Zm.Content,{children:(0,e.jsx)(n.AtmosControlContent,{})})})}},44072:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosCameraConsole:function(){return v},prevNextCamera:function(){return d},selectCameras:function(){return h}});var e=t(88095),i=t(11358),n=t(28763),r=t(33854),s=t(4413),a=t(92514),g=t(84905),x=t(96524),d=function(u,m){var c,f;if(!m)return[];var p=u.findIndex(function(C){return C.name===m.name});return[(c=u[p-1])==null?void 0:c.name,(f=u[p+1])==null?void 0:f.name]},h=function(u,m,c){m===void 0&&(m=""),c===void 0&&(c="");var f=(0,r.XZ)(m,function(p){return p.name});return(0,n.L)([(0,i.pb)(function(p){return p==null?void 0:p.name}),m&&(0,i.pb)(f),c&&(0,i.pb)(function(p){return p.networks.includes(c)}),(0,i.Ul)(function(p){return p.name})])(u)},v=function(u){var m=(0,s.Oc)(),c=m.act,f=m.data,p=f.mapRef,C=f.activeCamera,j=h(f.cameras),O=d(j,C),b=O[0],I=O[1];return(0,e.jsx)(g.Zm,{width:870,height:708,children:(0,e.jsxs)(g.Zm.Content,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(x.CameraConsoleContent,{})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),C&&C.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(a.$n,{icon:"chevron-left",disabled:!b,onClick:function(){return c("switch_camera",{name:b})}}),(0,e.jsx)(a.$n,{icon:"chevron-right",disabled:!I,onClick:function(){return c("switch_camera",{name:I})}}),"| PAN:",(0,e.jsx)(a.$n,{icon:"chevron-left",onClick:function(){return c("pan",{dir:8})}}),(0,e.jsx)(a.$n,{icon:"chevron-up",onClick:function(){return c("pan",{dir:1})}}),(0,e.jsx)(a.$n,{icon:"chevron-right",onClick:function(){return c("pan",{dir:4})}}),(0,e.jsx)(a.$n,{icon:"chevron-down",onClick:function(){return c("pan",{dir:2})}})]}),(0,e.jsx)(a.D1,{className:"CameraConsole__map",params:{id:p,type:"map"}})]})]})})}},70568:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosCommunicationsConsole:function(){return r}});var e=t(88095),i=t(84905),n=t(48022),r=function(){return(0,e.jsx)(i.Zm,{width:400,height:600,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.CommunicationsConsoleContent,{})})})}},78162:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosConfiguration:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.PC_device_theme,v=d.power_usage,u=d.battery_exists,m=d.battery,c=m===void 0?{}:m,f=d.disk_size,p=d.disk_used,C=d.hardware,j=C===void 0?[]:C;return(0,e.jsx)(r.Zm,{theme:h,width:520,height:630,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Power Supply",buttons:(0,e.jsxs)(n.az,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",v,"W"]}),children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Battery Status",color:!u&&"average",children:u?(0,e.jsxs)(n.z2,{value:c.charge,minValue:0,maxValue:c.max,ranges:{good:[c.max/2,1/0],average:[c.max/4,c.max/2],bad:[-1/0,c.max/4]},children:[c.charge," / ",c.max]}):"Not Available"})})}),(0,e.jsx)(n.wn,{title:"File System",children:(0,e.jsxs)(n.z2,{value:p,minValue:0,maxValue:f,color:"good",children:[p," GQ / ",f," GQ"]})}),(0,e.jsx)(n.wn,{title:"Hardware Components",children:j.map(function(O){return(0,e.jsx)(n.wn,{title:O.name,level:2,buttons:(0,e.jsxs)(e.Fragment,{children:[!O.critical&&(0,e.jsx)(n.$n.Checkbox,{content:"Enabled",checked:O.enabled,mr:1,onClick:function(){return x("PC_toggle_component",{name:O.name})}}),(0,e.jsxs)(n.az,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",O.powerusage,"W"]})]}),children:O.desc},O.name)})})]})})}},62260:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosCrewManifest:function(){return r}});var e=t(88095),i=t(84905),n=t(41608),r=function(){return(0,e.jsx)(i.Zm,{width:800,height:600,children:(0,e.jsx)(i.Zm.Content,{children:(0,e.jsx)(n.CrewManifestContent,{})})})}},12941:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosCrewMonitor:function(){return s}});var e=t(88095),i=t(44583),n=t(84905),r=t(93643),s=function(){var a=function(f){h(f)},g=function(f){m(f)},x=(0,i.useState)(0),d=x[0],h=x[1],v=(0,i.useState)(1),u=v[0],m=v[1];return(0,e.jsx)(n.Zm,{width:800,height:600,children:(0,e.jsx)(n.Zm.Content,{children:(0,e.jsx)(r.CrewMonitorContent,{tabIndex:d,zoom:u,onTabIndex:a,onZoom:g})})})}},657:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosDigitalWarrant:function(){return a}});var e=t(88095),i=t(11358),n=t(4413),r=t(92514),s=t(84905),a=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=m.warrantname,f=m.warrantcharges,p=m.warrantauth,C=m.type,j=m.allwarrants,O=(0,e.jsx)(g,{});return p&&(O=(0,e.jsx)(d,{})),(0,e.jsx)(s.Zm,{width:500,height:350,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:O})})},g=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=m.allwarrants;return(0,e.jsxs)(r.wn,{title:"Warrants",children:[(0,e.jsx)(r.$n,{icon:"plus",fluid:!0,onClick:function(){return u("addwarrant")},children:"Create New Warrant"}),(0,e.jsx)(r.wn,{level:2,title:"Arrest Warrants",children:(0,e.jsx)(x,{type:"arrest"})}),(0,e.jsx)(r.wn,{level:2,title:"Search Warrants",children:(0,e.jsx)(x,{type:"search"})})]})},x=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=h.type,f=m.allwarrants,p=(0,i.pb)(function(C){return C.arrestsearch===c})(f);return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:c==="arrest"?"Name":"Location"}),(0,e.jsx)(r.XI.Cell,{children:c==="arrest"?"Charges":"Reason"}),(0,e.jsx)(r.XI.Cell,{children:"Authorized By"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Edit"})]}),p.length&&p.map(function(C){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:C.warrantname}),(0,e.jsx)(r.XI.Cell,{children:C.charges}),(0,e.jsx)(r.XI.Cell,{children:C.auth}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return u("editwarrant",{id:C.id})}})})]},C.id)})||(0,e.jsx)(r.XI.Row,{children:(0,e.jsxs)(r.XI.Cell,{colspan:"3",color:"bad",children:["No ",c," warrants found."]})})]})},d=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=m.warrantname,f=m.warrantcharges,p=m.warrantauth,C=m.type,j=C==="arrest",O=C==="arrest"?"Name":"Location",b=C==="arrest"?"Charges":"Reason";return(0,e.jsx)(r.wn,{title:j?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return u("savewarrant")},children:"Save"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return u("deletewarrant")},children:"Delete"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return u("back")},children:"Back"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:O,buttons:j&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return u("editwarrantname")}}),(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return u("editwarrantnamecustom")}})]})||(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return u("editwarrantnamecustom")}}),children:c}),(0,e.jsx)(r.Ki.Item,{label:b,buttons:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return u("editwarrantcharges")}}),children:f}),(0,e.jsx)(r.Ki.Item,{label:"Authorized By",buttons:(0,e.jsx)(r.$n,{icon:"balance-scale",onClick:function(){return u("editwarrantauth")}}),children:p})]})})}},5070:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosEmailAdministration:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=t(23969),a=function(v){var u=(0,i.Oc)(),m=u.act,c=u.data,f=c.error,p=c.cur_title,C=c.current_account,j=(0,e.jsx)(g,{});return f?j=(0,e.jsx)(x,{}):p?j=(0,e.jsx)(d,{}):C&&(j=(0,e.jsx)(h,{})),(0,e.jsx)(r.Zm,{width:600,height:450,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:j})})},g=function(v){var u=(0,i.Oc)(),m=u.act,c=u.data,f=c.accounts;return(0,e.jsxs)(n.wn,{title:"Welcome to the NTNet Email Administration System",children:[(0,e.jsx)(n.az,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"plus",onClick:function(){return m("newaccount")},children:"Create New Account"}),(0,e.jsx)(n.az,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),f.map(function(p){return(0,e.jsx)(n.$n,{fluid:!0,icon:"eye",onClick:function(){return m("viewaccount",{viewaccount:p.uid})},children:p.login},p.uid)})]})},x=function(v){var u=(0,i.Oc)(),m=u.act,c=u.data,f=c.error;return(0,e.jsx)(n.wn,{title:"Message",buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return m("back")},children:"Back"}),children:f})},d=function(v){var u=(0,i.Oc)(),m=u.act,c=u.data;return(0,e.jsx)(n.wn,{children:(0,e.jsx)(s.NtosEmailClientViewMessage,{administrator:!0})})},h=function(v){var u=(0,i.Oc)(),m=u.act,c=u.data,f=c.error,p=c.msg_title,C=c.msg_body,j=c.msg_timestamp,O=c.msg_source,b=c.current_account,I=c.cur_suspended,_=c.messages,S=c.accounts;return(0,e.jsxs)(n.wn,{title:"Viewing "+b+" in admin mode",buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return m("back")},children:"Back"}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Account Status",children:(0,e.jsx)(n.$n,{color:I?"bad":"",icon:"ban",tooltip:(I?"Uns":"S")+"uspend Account?",onClick:function(){return m("ban")},children:I?"Suspended":"Normal"})}),(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)(n.$n,{icon:"key",onClick:function(){return m("changepass")},children:"Change Password"})})]}),(0,e.jsx)(n.wn,{level:2,title:"Messages",children:_.length&&(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Source"}),(0,e.jsx)(n.XI.Cell,{children:"Title"}),(0,e.jsx)(n.XI.Cell,{children:"Received at"}),(0,e.jsx)(n.XI.Cell,{children:"Actions"})]}),_.map(function(P){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:P.source}),(0,e.jsx)(n.XI.Cell,{children:P.title}),(0,e.jsx)(n.XI.Cell,{children:P.timestamp}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"eye",onClick:function(){return m("viewmail",{viewmail:P.uid})},children:"View"})})]},P.uid)})]})||(0,e.jsx)(n.az,{color:"average",children:"No messages found in selected account."})})]})}},23969:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosEmailClient:function(){return a},NtosEmailClientViewMessage:function(){return h}});var e=t(88095),i=t(5229),n=t(4413),r=t(92514),s=t(84905),a=function(f){var p=(0,n.Oc)(),C=p.act,j=p.data,O=j.PC_device_theme,b=j.error,I=j.downloading,_=j.current_account,S=(0,e.jsx)(c,{});return b?S=(0,e.jsx)(m,{error:b}):I?S=(0,e.jsx)(g,{}):_&&(S=(0,e.jsx)(x,{})),(0,e.jsx)(s.Zm,{resizable:!0,theme:O,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:S})})},g=function(f){var p=(0,n.Oc)(),C=p.act,j=p.data,O=j.down_filename,b=j.down_progress,I=j.down_size,_=j.down_speed;return(0,e.jsx)(r.wn,{title:"Downloading...",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"File",children:[O," (",I," GQ)"]}),(0,e.jsxs)(r.Ki.Item,{label:"Speed",children:[(0,e.jsx)(r.zv,{value:_})," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsxs)(r.z2,{color:"good",value:b,maxValue:I,children:[b,"/",I," (",(0,i.LI)(b/I*100,1),"%)"]})})]})})},x=function(f){var p=(0,n.Oc)(),C=p.act,j=p.data,O=j.current_account,b=j.addressbook,I=j.new_message,_=j.cur_title,S=(0,e.jsx)(d,{});return b?S=(0,e.jsx)(v,{}):I?S=(0,e.jsx)(u,{}):_&&(S=(0,e.jsx)(h,{})),(0,e.jsx)(r.wn,{title:"Logged in as: "+O,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){return C("new_message")}}),(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){return C("changepassword")}}),(0,e.jsx)(r.$n,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){return C("logout")}})]}),children:S})},d=function(f){var p=(0,n.Oc)(),C=p.act,j=p.data,O=j.current_account,b=j.folder,I=j.messagecount,_=j.messages;return(0,e.jsxs)(r.wn,{level:2,noTopPadding:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:b==="Inbox",onClick:function(){return C("set_folder",{set_folder:"Inbox"})},children:"Inbox"}),(0,e.jsx)(r.tU.Tab,{selected:b==="Spam",onClick:function(){return C("set_folder",{set_folder:"Spam"})},children:"Spam"}),(0,e.jsx)(r.tU.Tab,{selected:b==="Deleted",onClick:function(){return C("set_folder",{set_folder:"Deleted"})},children:"Deleted"})]}),I&&(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Source"}),(0,e.jsx)(r.XI.Cell,{children:"Title"}),(0,e.jsx)(r.XI.Cell,{children:"Received At"}),(0,e.jsx)(r.XI.Cell,{children:"Actions"})]}),_.map(function(S){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:S.source}),(0,e.jsx)(r.XI.Cell,{children:S.title}),(0,e.jsx)(r.XI.Cell,{children:S.timestamp}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return C("view",{view:S.uid})},tooltip:"View"}),(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return C("reply",{reply:S.uid})},tooltip:"Reply"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return C("delete",{delete:S.uid})},tooltip:"Delete"})]})]},S.timestamp+S.title)})]})})||(0,e.jsxs)(r.az,{color:"bad",children:["No emails found in ",b,"."]})]})},h=function(f){var p=(0,n.Oc)(),C=p.act,j=p.data,O=f.administrator,b=j.cur_title,I=j.cur_source,_=j.cur_timestamp,S=j.cur_body,P=j.cur_hasattachment,A=j.cur_attachment_filename,R=j.cur_attachment_size,K=j.cur_uid;return(0,e.jsx)(r.wn,{title:b,buttons:O?(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return C("back")}}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){return C("reply",{reply:K})}}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){return C("delete",{delete:K})}}),(0,e.jsx)(r.$n,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){return C("save",{save:K})}}),P&&(0,e.jsx)(r.$n,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){return C("downloadattachment")}})||null,(0,e.jsx)(r.$n,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){return C("cancel",{cancel:K})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"From",children:I}),(0,e.jsx)(r.Ki.Item,{label:"At",children:_}),P&&!O&&(0,e.jsxs)(r.Ki.Item,{label:"Attachment",color:"average",children:[A," (",R,"GQ)"]})||null,(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(r.wn,{children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:S}})})})]})})},v=function(f){var p=(0,n.Oc)(),C=p.act,j=p.data,O=j.accounts;return(0,e.jsx)(r.wn,{title:"Address Book",level:2,buttons:(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return C("set_recipient",{set_recipient:null})}}),children:O.map(function(b){return(0,e.jsx)(r.$n,{content:b.login,fluid:!0,onClick:function(){return C("set_recipient",{set_recipient:b.login})}},b.login)})})},u=function(f){var p=(0,n.Oc)(),C=p.act,j=p.data,O=j.current_account,b=j.msg_title,I=j.msg_recipient,_=j.msg_body,S=j.msg_hasattachment,P=j.msg_attachment_filename,A=j.msg_attachment_size;return(0,e.jsx)(r.wn,{title:"New Message",level:2,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return C("send")},children:"Send Message"}),(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return C("cancel")}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Title",children:(0,e.jsx)(r.pd,{fluid:!0,value:b,onInput:function(R,K){return C("edit_title",{val:K})}})}),(0,e.jsx)(r.Ki.Item,{label:"Recipient",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.pd,{fluid:!0,value:I,onInput:function(R,K){return C("edit_recipient",{val:K})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"address-book",onClick:function(){return C("addressbook")},tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Attachments",buttons:S&&(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return C("remove_attachment")},children:"Remove Attachment"})||(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return C("addattachment")},children:"Add Attachment"}),children:S&&(0,e.jsxs)(r.az,{inline:!0,children:[P," (",A,"GQ)"]})||null}),(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{width:"99%",inline:!0,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:_}})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return C("edit_body")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},m=function(f){var p=(0,n.Oc)().act,C=f.error;return(0,e.jsx)(r.wn,{title:"Notification",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Return",onClick:function(){return p("reset")}}),children:(0,e.jsx)(r.az,{color:"bad",children:C})})},c=function(f){var p=(0,n.Oc)(),C=p.act,j=p.data,O=j.stored_login,b=j.stored_password;return(0,e.jsxs)(r.wn,{title:"Please Log In",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Email address",children:(0,e.jsx)(r.pd,{fluid:!0,value:O,onInput:function(I,_){return C("edit_login",{val:_})}})}),(0,e.jsx)(r.Ki.Item,{label:"Password",children:(0,e.jsx)(r.pd,{fluid:!0,value:b,onInput:function(I,_){return C("edit_password",{val:_})}})})]}),(0,e.jsx)(r.$n,{icon:"sign-in-alt",onClick:function(){return C("login")},children:"Log In"})]})}},86411:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosFileManager:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=h.PC_device_theme,u=h.usbconnected,m=h.filename,c=h.filedata,f=h.error,p=h.files,C=p===void 0?[]:p,j=h.usbfiles,O=j===void 0?[]:j;return(0,e.jsx)(r.Zm,{resizable:!0,theme:v,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[m&&(0,e.jsx)(n.wn,{title:"Viewing File "+m,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"pen",content:"Edit",onClick:function(){return d("PRG_edit")}}),(0,e.jsx)(n.$n,{icon:"print",content:"Print",onClick:function(){return d("PRG_printfile")}}),(0,e.jsx)(n.$n,{icon:"times",content:"Close",onClick:function(){return d("PRG_closefile")}})]}),children:c&&(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:c}})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{children:(0,e.jsx)(a,{files:C,usbconnected:u,onUpload:function(b){return d("PRG_copytousb",{uid:b})},onDelete:function(b){return d("PRG_deletefile",{uid:b})},onOpen:function(b){return d("PRG_openfile",{uid:b})},onRename:function(b,I){return d("PRG_rename",{uid:b,new_name:I})},onDuplicate:function(b){return d("PRG_clone",{uid:b})}})}),u&&(0,e.jsx)(n.wn,{title:"Data Disk",children:(0,e.jsx)(a,{usbmode:!0,files:O,usbconnected:u,onUpload:function(b){return d("PRG_copyfromusb",{uid:b})},onDelete:function(b){return d("PRG_deletefile",{uid:b})},onOpen:function(b){return d("PRG_openfile",{uid:b})},onRename:function(b,I){return d("PRG_rename",{uid:b,new_name:I})},onDuplicate:function(b){return d("PRG_clone",{uid:b})}})})||null,(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return d("PRG_newtextfile")},children:"New Text File"})})]}),f&&(0,e.jsxs)(n.so,{wrap:"wrap",position:"fixed",bottom:"5px",children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.$n,{bottom:"0",left:"0",icon:"ban",onClick:function(){return d("PRG_clearerror")}})})}),(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.so.Item,{grow:!0,children:f})})]})]})})},a=function(g){var x=g.files,d=x===void 0?[]:x,h=g.usbconnected,v=g.usbmode,u=g.onUpload,m=g.onDelete,c=g.onRename,f=g.onOpen;return(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"File"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Size"})]}),d.map(function(p){return(0,e.jsxs)(n.XI.Row,{className:"candystripe",children:[(0,e.jsx)(n.XI.Cell,{children:p.undeletable?p.name:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Input,{width:"80%",content:p.name,currentValue:p.name,tooltip:"Rename",onCommit:function(C,j){return c(p.uid,j)}}),(0,e.jsx)(n.$n,{content:"Open",onClick:function(){return f(p.uid)}})]})}),(0,e.jsx)(n.XI.Cell,{children:p.type}),(0,e.jsx)(n.XI.Cell,{children:p.size}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:!p.undeletable&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){return m(p.uid)}}),!!h&&(v?(0,e.jsx)(n.$n,{icon:"download",tooltip:"Download",onClick:function(){return u(p.uid)}}):(0,e.jsx)(n.$n,{icon:"upload",tooltip:"Upload",onClick:function(){return u(p.uid)}}))]})})]},p.name)})]})}},96665:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosIdentificationComputer:function(){return r}});var e=t(88095),i=t(84905),n=t(17575),r=function(){return(0,e.jsx)(i.Zm,{width:600,height:700,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.IdentificationComputerContent,{ntos:!0})})})}},44801:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosMain:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s={compconfig:"cog",ntndownloader:"download",filemanager:"folder",smmonitor:"radiation",alarmmonitor:"bell",cardmod:"id-card",arcade:"gamepad",ntnrc_client:"comment-alt",nttransfer:"exchange-alt",powermonitor:"plug",job_manage:"address-book",crewmani:"clipboard-list",robocontrol:"robot",atmosscan:"thermometer-half",shipping:"tags"},a=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=h.device_theme,u=h.programs,m=u===void 0?[]:u,c=h.has_light,f=h.light_on,p=h.comp_light_color,C=h.removable_media,j=C===void 0?[]:C,O=h.login,b=O===void 0?[]:O;return(0,e.jsx)(r.Zm,{title:v==="syndicate"&&"Syndix Main Menu"||"NtOS Main Menu",theme:v,width:400,height:500,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[!!c&&(0,e.jsxs)(n.wn,{children:[(0,e.jsxs)(n.$n,{width:"144px",icon:"lightbulb",selected:f,onClick:function(){return d("PC_toggle_light")},children:["Flashlight: ",f?"ON":"OFF"]}),(0,e.jsxs)(n.$n,{ml:1,onClick:function(){return d("PC_light_color")},children:["Color:",(0,e.jsx)(n.BK,{ml:1,color:p})]})]}),(0,e.jsx)(n.wn,{title:"User Login",buttons:(0,e.jsx)(n.$n,{icon:"eject",content:"Eject ID",disabled:!b.IDName,onClick:function(){return d("PC_Eject_Disk",{name:"ID"})}}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{children:["ID Name: ",b.IDName]}),(0,e.jsxs)(n.XI.Row,{children:["Assignment: ",b.IDJob]})]})}),!!j.length&&(0,e.jsx)(n.wn,{title:"Media Eject",children:(0,e.jsx)(n.XI,{children:j.map(function(I){return(0,e.jsx)(n.XI.Row,{children:(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"transparent",icon:"eject",content:I,onClick:function(){return d("PC_Eject_Disk",{name:I})}})})},I)})})}),(0,e.jsx)(n.wn,{title:"Programs",children:(0,e.jsx)(n.XI,{children:m.map(function(I){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"transparent",icon:s[I.name]||"window-maximize-o",content:I.desc,onClick:function(){return d("PC_runprogram",{name:I.name})}})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,width:"18px",children:!!I.running&&(0,e.jsx)(n.$n,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return d("PC_killprogram",{name:I.name})}})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,width:"18px",children:(0,e.jsx)(n.$n,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:I.autorun,onClick:function(){return d("PC_setautorun",{name:I.name})},children:"AR"})})]},I.name)})})})]})})}},59895:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosNetChat:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.can_admin,v=d.adminmode,u=d.authed,m=d.username,c=d.active_channel,f=d.is_operator,p=d.all_channels,C=p===void 0?[]:p,j=d.clients,O=j===void 0?[]:j,b=d.messages,I=b===void 0?[]:b,_=c!==null,S=u||v;return(0,e.jsx)(r.Zm,{width:900,height:675,children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(n.wn,{height:"600px",children:(0,e.jsx)(n.XI,{height:"580px",children:(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,e.jsxs)(n.az,{height:"560px",overflowY:"scroll",children:[(0,e.jsx)(n.$n.Input,{fluid:!0,content:"New Channel...",onCommit:function(P,A){return x("PRG_newchannel",{new_channel_name:A})}}),C.map(function(P){return(0,e.jsx)(n.$n,{fluid:!0,content:P.chan,selected:P.id===c,color:"transparent",onClick:function(){return x("PRG_joinchannel",{id:P.id})}},P.chan)})]}),(0,e.jsx)(n.$n.Input,{fluid:!0,mt:1,content:m+"...",currentValue:m,onCommit:function(P,A){return x("PRG_changename",{new_name:A})}}),!!h&&(0,e.jsx)(n.$n,{fluid:!0,bold:!0,content:"ADMIN MODE: "+(v?"ON":"OFF"),color:v?"bad":"good",onClick:function(){return x("PRG_toggleadmin")}})]}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.az,{height:"560px",overflowY:"scroll",children:_&&(S?I.map(function(P){return(0,e.jsx)(n.az,{children:P.msg},P.msg)}):(0,e.jsxs)(n.az,{textAlign:"center",children:[(0,e.jsx)(n.In,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,e.jsx)(n.az,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,e.jsx)(n.az,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,e.jsx)(n.pd,{fluid:!0,selfClear:!0,mt:1,onEnter:function(P,A){return x("PRG_speak",{message:A})}})]}),(0,e.jsxs)(n.XI.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,e.jsx)(n.az,{height:"465px",overflowY:"scroll",children:O.map(function(P){return(0,e.jsx)(n.az,{children:P.name},P.name)})}),_&&S&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Input,{fluid:!0,content:"Save log...",defaultValue:"new_log",onCommit:function(P,A){return x("PRG_savelog",{log_name:A})}}),(0,e.jsx)(n.$n.Confirm,{fluid:!0,content:"Leave Channel",onClick:function(){return x("PRG_leavechannel")}})]}),!!f&&u&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Confirm,{fluid:!0,content:"Delete Channel",onClick:function(){return x("PRG_deletechannel")}}),(0,e.jsx)(n.$n.Input,{fluid:!0,content:"Rename Channel...",onCommit:function(P,A){return x("PRG_renamechannel",{new_name:A})}}),(0,e.jsx)(n.$n.Input,{fluid:!0,content:"Set Password...",onCommit:function(P,A){return x("PRG_setpassword",{new_password:A})}})]})]})]})})})})})}},62607:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosNetDos:function(){return s},NtosNetDosContent:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(){return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=h.relays,u=v===void 0?[]:v,m=h.focus,c=h.target,f=h.speed,p=h.overload,C=h.capacity,j=h.error;if(j)return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.IC,{children:j}),(0,e.jsx)(n.$n,{fluid:!0,content:"Reset",textAlign:"center",onClick:function(){return d("PRG_reset")}})]});var O=function(I){for(var _="",S=p/C;_.lengthS?_+="0":_+="1";return _},b=45;return c?(0,e.jsxs)(n.wn,{fontFamily:"monospace",textAlign:"center",children:[(0,e.jsxs)(n.az,{children:["CURRENT SPEED: ",f," GQ/s"]}),(0,e.jsx)(n.az,{children:O(b)}),(0,e.jsx)(n.az,{children:O(b)}),(0,e.jsx)(n.az,{children:O(b)}),(0,e.jsx)(n.az,{children:O(b)}),(0,e.jsx)(n.az,{children:O(b)})]}):(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Target",children:u.map(function(I){return(0,e.jsx)(n.$n,{content:I.id,selected:m===I.id,onClick:function(){return d("PRG_target_relay",{targid:I.id})}},I.id)})})}),(0,e.jsx)(n.$n,{fluid:!0,bold:!0,content:"EXECUTE",color:"bad",textAlign:"center",disabled:!m,mt:1,onClick:function(){return d("PRG_execute")}})]})}},10864:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosNetDownloader:function(){return a}});var e=t(88095),i=t(5229),n=t(4413),r=t(92514),s=t(84905),a=function(x){var d=(0,n.Oc)(),h=d.act,v=d.data,u=v.PC_device_theme,m=v.disk_size,c=v.disk_used,f=v.downloadable_programs,p=f===void 0?[]:f,C=v.error,j=v.hacked_programs,O=j===void 0?[]:j,b=v.hackedavailable;return(0,e.jsx)(s.Zm,{theme:u,width:480,height:735,children:(0,e.jsxs)(s.Zm.Content,{scrollable:!0,children:[!!C&&(0,e.jsxs)(r.IC,{children:[(0,e.jsx)(r.az,{mb:1,children:C}),(0,e.jsx)(r.$n,{content:"Reset",onClick:function(){return h("PRG_reseterror")}})]}),(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Disk usage",children:(0,e.jsx)(r.z2,{value:c,minValue:0,maxValue:m,children:c+" GQ / "+m+" GQ"})})})}),(0,e.jsx)(r.wn,{children:p.map(function(I){return(0,e.jsx)(g,{program:I},I.filename)})}),!!b&&(0,e.jsxs)(r.wn,{title:"UNKNOWN Software Repository",children:[(0,e.jsx)(r.IC,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),O.map(function(I){return(0,e.jsx)(g,{program:I},I.filename)})]})]})})},g=function(x){var d=x.program,h=(0,n.Oc)(),v=h.act,u=h.data,m=u.disk_size,c=u.disk_used,f=u.downloadcompletion,p=u.downloading,C=u.downloadname,j=u.downloadsize,O=u.downloadspeed,b=u.downloads_queue,I=m-c;return(0,e.jsxs)(r.az,{mb:3,children:[(0,e.jsxs)(r.so,{align:"baseline",children:[(0,e.jsx)(r.so.Item,{bold:!0,grow:1,children:d.filedesc}),(0,e.jsxs)(r.so.Item,{color:"label",nowrap:!0,children:[d.size," GQ"]}),(0,e.jsx)(r.so.Item,{ml:2,width:"110px",textAlign:"center",children:d.filename===C&&(0,e.jsxs)(r.z2,{color:"green",minValue:0,maxValue:j,value:f,children:[(0,i.LI)(f/j*100,1),"%\xA0(",O,"GQ/s)"]})||b.indexOf(d.filename)!==-1&&(0,e.jsx)(r.$n,{icon:"ban",color:"bad",onClick:function(){return v("PRG_removequeued",{filename:d.filename})},children:"Queued..."})||(0,e.jsx)(r.$n,{fluid:!0,icon:"download",content:"Download",disabled:d.size>I,onClick:function(){return v("PRG_downloadfile",{filename:d.filename})}})})]}),d.compatibility!=="Compatible"&&(0,e.jsxs)(r.az,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.In,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),d.size>I&&(0,e.jsxs)(r.az,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.In,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,e.jsx)(r.az,{mt:1,italic:!0,color:"label",fontSize:"12px",children:d.fileinfo})]})}},26055:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosNetMonitor:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.ntnetrelays,v=d.ntnetstatus,u=d.config_softwaredownload,m=d.config_peertopeer,c=d.config_communication,f=d.config_systemcontrol,p=d.idsalarm,C=d.idsstatus,j=d.ntnetmaxlogs,O=d.maxlogs,b=d.minlogs,I=d.banned_nids,_=d.ntnetlogs,S=_===void 0?[]:_;return(0,e.jsx)(r.Zm,{children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(n.IC,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,e.jsx)(n.wn,{title:"Wireless Connectivity",buttons:(0,e.jsx)(n.$n.Confirm,{icon:v?"power-off":"times",content:v?"ENABLED":"DISABLED",selected:v,onClick:function(){return x("toggleWireless")}}),children:h?(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Active NTNet Relays",children:h})}):"No Relays Connected"}),(0,e.jsx)(n.wn,{title:"Firewall Configuration",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Software Downloads",buttons:(0,e.jsx)(n.$n,{icon:u?"power-off":"times",content:u?"ENABLED":"DISABLED",selected:u,onClick:function(){return x("toggle_function",{id:"1"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Peer to Peer Traffic",buttons:(0,e.jsx)(n.$n,{icon:m?"power-off":"times",content:m?"ENABLED":"DISABLED",selected:m,onClick:function(){return x("toggle_function",{id:"2"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Communication Systems",buttons:(0,e.jsx)(n.$n,{icon:c?"power-off":"times",content:c?"ENABLED":"DISABLED",selected:c,onClick:function(){return x("toggle_function",{id:"3"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Remote System Control",buttons:(0,e.jsx)(n.$n,{icon:f?"power-off":"times",content:f?"ENABLED":"DISABLED",selected:f,onClick:function(){return x("toggle_function",{id:"4"})}})})]})}),(0,e.jsxs)(n.wn,{title:"Security Systems",children:[!!p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.IC,{children:"NETWORK INCURSION DETECTED"}),(0,e.jsx)(n.az,{italics:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})]}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Banned NIDs",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"ban",onClick:function(){return x("ban_nid")},children:"Ban NID"}),(0,e.jsx)(n.$n,{icon:"balance-scale",onClick:function(){return x("unban_nid")},children:"Unban NID"})]}),children:I.join(", ")||"None"}),(0,e.jsx)(n.Ki.Item,{label:"IDS Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:C?"power-off":"times",content:C?"ENABLED":"DISABLED",selected:C,onClick:function(){return x("toggleIDS")}}),(0,e.jsx)(n.$n,{icon:"sync",content:"Reset",color:"bad",onClick:function(){return x("resetIDS")}})]})}),(0,e.jsx)(n.Ki.Item,{label:"Max Log Count",buttons:(0,e.jsx)(n.Q7,{value:j,minValue:b,maxValue:O,width:"39px",onChange:function(P,A){return x("updatemaxlogs",{new_number:A})}})})]}),(0,e.jsx)(n.wn,{title:"System Log",level:2,buttons:(0,e.jsx)(n.$n.Confirm,{icon:"trash",content:"Clear Logs",onClick:function(){return x("purgelogs")}}),children:S.map(function(P){return(0,e.jsx)(n.az,{className:"candystripe",children:P.entry},P.entry)})})]})]})})}},10124:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosNetTransfer:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(v){var u=(0,i.Oc)(),m=u.act,c=u.data,f=c.error,p=c.downloading,C=c.uploading,j=c.upload_filelist,O=(0,e.jsx)(h,{});return f?O=(0,e.jsx)(a,{}):p?O=(0,e.jsx)(g,{}):C?O=(0,e.jsx)(x,{}):j.length&&(O=(0,e.jsx)(d,{})),(0,e.jsx)(r.Zm,{width:575,height:700,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:O})})},a=function(v){var u=(0,i.Oc)(),m=u.act,c=u.data,f=c.error;return(0,e.jsxs)(n.wn,{title:"An error has occured during operation.",buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return m("PRG_reset")},children:"Reset"}),children:["Additional Information: ",f]})},g=function(v){var u=(0,i.Oc)(),m=u.act,c=u.data,f=c.download_name,p=c.download_progress,C=c.download_size,j=c.download_netspeed;return(0,e.jsx)(n.wn,{title:"Download in progress",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Downloaded File",children:f}),(0,e.jsx)(n.Ki.Item,{label:"Progress",children:(0,e.jsxs)(n.z2,{value:p,maxValue:C,children:[p," / ",C," GQ"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Transfer Speed",children:[j," GQ/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Controls",children:(0,e.jsx)(n.$n,{icon:"ban",onClick:function(){return m("PRG_reset")},children:"Cancel Download"})})]})})},x=function(v){var u=(0,i.Oc)(),m=u.act,c=u.data,f=c.upload_clients,p=c.upload_filename,C=c.upload_haspassword;return(0,e.jsx)(n.wn,{title:"Server enabled",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Clients Connected",children:f}),(0,e.jsx)(n.Ki.Item,{label:"Provided file",children:p}),(0,e.jsx)(n.Ki.Item,{label:"Server Password",children:C?"Enabled":"Disabled"}),(0,e.jsxs)(n.Ki.Item,{label:"Commands",children:[(0,e.jsx)(n.$n,{icon:"lock",onClick:function(){return m("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(n.$n,{icon:"ban",onClick:function(){return m("PRG_reset")},children:"Cancel Upload"})]})]})})},d=function(v){var u=(0,i.Oc)(),m=u.act,c=u.data,f=c.upload_filelist;return(0,e.jsxs)(n.wn,{title:"File transfer server ready.",buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return m("PRG_reset")},children:"Cancel"}),children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"lock",onClick:function(){return m("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(n.wn,{title:"Pick file to serve.",level:2,children:f.map(function(p){return(0,e.jsxs)(n.$n,{fluid:!0,icon:"upload",onClick:function(){return m("PRG_uploadfile",{uid:p.uid})},children:[p.filename," (",p.size,"GQ)"]},p.uid)})})]})},h=function(v){var u=(0,i.Oc)(),m=u.act,c=u.data,f=c.servers;return(0,e.jsx)(n.wn,{title:"Available Files",buttons:(0,e.jsx)(n.$n,{icon:"upload",onClick:function(){return m("PRG_uploadmenu")},children:"Send File"}),children:f.length&&(0,e.jsx)(n.Ki,{children:f.map(function(p){return(0,e.jsxs)(n.Ki.Item,{label:p.uid,children:[!!p.haspassword&&(0,e.jsx)(n.In,{name:"lock",mr:1}),p.filename,"\xA0 (",p.size,"GQ)\xA0",(0,e.jsx)(n.$n,{icon:"download",onClick:function(){return m("PRG_downloadfile",{uid:p.uid})},children:"Download"})]},p.uid)})})||(0,e.jsx)(n.az,{children:"No upload servers found."})})}},90227:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosNewsBrowser:function(){return a}});var e=t(88095),i=t(80676),n=t(4413),r=t(92514),s=t(84905),a=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=m.article,f=m.download,p=m.message,C=(0,e.jsx)(x,{});return c?C=(0,e.jsx)(g,{}):f&&(C=(0,e.jsx)(d,{})),(0,e.jsx)(s.Zm,{width:575,height:750,children:(0,e.jsxs)(s.Zm.Content,{scrollable:!0,children:[!!p&&(0,e.jsxs)(r.IC,{children:[p," ",(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return u("PRG_clearmessage")}})]}),C]})})},g=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=m.article;if(!c)return(0,e.jsx)(r.wn,{children:"Error: Article not found."});var f=c.title,p=c.cover,C=c.content;return(0,e.jsxs)(r.wn,{title:"Viewing: "+f,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return u("PRG_savearticle")},children:"Save"}),(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return u("PRG_reset")},children:"Close"})]}),children:[!!p&&(0,e.jsx)("img",{src:(0,i.l)(p)}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:C}})]})},x=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=m.showing_archived,f=m.all_articles;return(0,e.jsx)(r.wn,{title:"Articles List",buttons:(0,e.jsx)(r.$n.Checkbox,{onClick:function(){return u("PRG_toggle_archived")},checked:c,children:"Show Archived"}),children:(0,e.jsx)(r.Ki,{children:f.length&&f.map(function(p){return(0,e.jsxs)(r.Ki.Item,{label:p.name,buttons:(0,e.jsx)(r.$n,{icon:"download",onClick:function(){return u("PRG_openarticle",{uid:p.uid})}}),children:[p.size," GQ"]},p.uid)})||(0,e.jsx)(r.Ki.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},d=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=m.download,f=c.download_progress,p=c.download_maxprogress,C=c.download_rate;return(0,e.jsx)(r.wn,{title:"Downloading...",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsxs)(r.z2,{color:"good",minValue:0,value:f,maxValue:p,children:[f," / ",p," GQ"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Download Speed",children:[C," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Controls",children:(0,e.jsx)(r.$n,{icon:"ban",fluid:!0,onClick:function(){return u("PRG_reset")},children:"Abort Download"})})]})})}},39360:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosOvermapNavigation:function(){return r}});var e=t(88095),i=t(84905),n=t(15156),r=function(){return(0,e.jsx)(i.Zm,{width:380,height:530,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.OvermapNavigationContent,{})})})}},62243:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosPowerMonitor:function(){return r}});var e=t(88095),i=t(84905),n=t(16421),r=function(){return(0,e.jsx)(i.Zm,{width:550,height:700,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.PowerMonitorContent,{})})})}},12638:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosRCON:function(){return r}});var e=t(88095),i=t(84905),n=t(72128),r=function(){return(0,e.jsx)(i.Zm,{width:630,height:440,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.RCONContent,{})})})}},88475:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosRevelation:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.armed;return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.$n.Input,{fluid:!0,content:"Obfuscate Name...",onCommit:function(v,u){return x("PRG_obfuscate",{new_name:u})},mb:1}),(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Payload Status",buttons:(0,e.jsx)(n.$n,{content:h?"ARMED":"DISARMED",color:h?"bad":"average",onClick:function(){return x("PRG_arm")}})})}),(0,e.jsx)(n.$n,{fluid:!0,bold:!0,content:"ACTIVATE",textAlign:"center",color:"bad",disabled:!h})]})})})}},17609:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosShutoffMonitor:function(){return r}});var e=t(88095),i=t(84905),n=t(52735),r=function(){return(0,e.jsx)(i.Zm,{width:627,height:700,children:(0,e.jsx)(i.Zm.Content,{children:(0,e.jsx)(n.ShutoffMonitorContent,{})})})}},86431:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosStationAlertConsole:function(){return r}});var e=t(88095),i=t(84905),n=t(47441),r=function(){return(0,e.jsx)(i.Zm,{width:315,height:500,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.StationAlertConsoleContent,{})})})}},21396:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosSupermatterMonitor:function(){return r}});var e=t(88095),i=t(84905),n=t(67186),r=function(){return(0,e.jsx)(i.Zm,{width:600,height:400,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.SupermatterMonitorContent,{})})})}},77248:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosUAV:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.current_uav,v=d.signal_strength,u=d.in_use,m=d.paired_uavs;return(0,e.jsx)(r.Zm,{width:600,height:500,children:(0,e.jsxs)(r.Zm.Content,{children:[(0,e.jsx)(n.wn,{title:"Selected UAV",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"UAV",children:h&&h.status||"[Not Connected]"}),(0,e.jsx)(n.Ki.Item,{label:"Signal",children:h&&v||"[Not Connected]"}),(0,e.jsx)(n.Ki.Item,{label:"Power",children:h&&(0,e.jsx)(n.$n,{icon:"power-off",selected:h.power,onClick:function(){return x("power_uav")},children:h.power?"Online":"Offline"})||"[Not Connected]"}),(0,e.jsx)(n.Ki.Item,{label:"Camera",children:h&&(0,e.jsx)(n.$n,{icon:"power-off",selected:u,disabled:!h.power,onClick:function(){return x("view_uav")},children:h.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,e.jsx)(n.wn,{title:"Paired UAVs",children:m.length&&m.map(function(c){return(0,e.jsxs)(n.so,{spacing:1,children:[(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"quidditch",onClick:function(){return x("switch_uav",{switch_uav:c.uavref})},children:c.name})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{color:"bad",icon:"times",onClick:function(){return x("del_uav",{del_uav:c.uavref})}})})]},c.uavref)})||(0,e.jsx)(n.az,{color:"average",children:"No UAVs Paired."})})]})})}},61728:function(M,y,t){"use strict";t.r(y),t.d(y,{NtosWordProcessor:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.PC_device_theme,v=d.error,u=d.browsing,m=d.files,c=d.usbconnected,f=d.usbfiles,p=d.filename,C=d.filedata;return(0,e.jsx)(r.Zm,{resizable:!0,theme:h,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:v&&(0,e.jsxs)(n.az,{color:"bad",children:[(0,e.jsx)("h2",{children:"An Error has occured:"}),"Additional Information: ",v,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,e.jsx)(n.$n,{icon:"arrow-left",content:"Back to menu",onClick:function(){return x("PRG_backtomenu")}})]})||u&&(0,e.jsx)(n.wn,{title:"File Browser",buttons:(0,e.jsx)(n.$n,{icon:"arrow-left",content:"Back to editor",onClick:function(){return x("PRG_closebrowser")}}),children:(0,e.jsx)(n.wn,{title:"Available documents (local)",level:2,children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Size (GQ)"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0})]}),m.map(function(j,O){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:j.name}),(0,e.jsx)(n.XI.Cell,{children:j.size}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{icon:"file-word",onClick:function(){return x("PRG_openfile",{PRG_openfile:j.name})},children:"Open"})})]},O)})]})})})||(0,e.jsxs)(n.wn,{title:"Document: "+p,children:[(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_newfile")},children:"New"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_loadmenu")},children:"Load"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_savefile")},children:"Save"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_saveasfile")},children:"Save As"})]}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_editfile")},children:"Edit"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_txtrpeview")},children:"Preview"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_taghelp")},children:"Formatting Help"}),(0,e.jsx)(n.$n,{disabled:!C,onClick:function(){return x("PRG_printfile")},children:"Print"})]}),(0,e.jsx)(n.wn,{mt:1,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:C}})})]})})})}},8544:function(M,y,t){"use strict";t.r(y),t.d(y,{NumberInputModal:function(){return d}});var e=t(88095),i=t(72147),n=t(44583),r=t(4413),s=t(92514),a=t(84905),g=t(12035),x=t(18513),d=function(v){var u=(0,r.Oc)(),m=u.act,c=u.data,f=c.init_value,p=c.large_buttons,C=c.message,j=C===void 0?"":C,O=c.timeout,b=c.title,I=(0,n.useState)(f),_=I[0],S=I[1],P=function(R){R!==_&&S(R)},A=140+(j.length>30?Math.ceil(j.length/3):0)+(j.length&&p?5:0);return(0,e.jsxs)(a.p8,{title:b,width:270,height:A,children:[O&&(0,e.jsx)(x.Loader,{value:O}),(0,e.jsx)(a.p8.Content,{onKeyDown:function(R){R.key===i._.Enter&&m("submit",{entry:_}),R.key===i._.Escape&&m("cancel")},children:(0,e.jsx)(s.wn,{fill:!0,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(s.az,{color:"label",children:j})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(h,{input:_,onClick:P,onChange:P,onBlur:P})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:_})})]})})})]})},h=function(v){var u=(0,r.Oc)(),m=u.act,c=u.data,f=c.min_value,p=c.max_value,C=c.init_value,j=c.round_value,O=v.input,b=v.onClick,I=v.onChange,_=v.onBlur;return(0,e.jsxs)(s.BJ,{fill:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{disabled:O===f,icon:"angle-double-left",onClick:function(){return b(f)},tooltip:f?"Min ("+f+")":"Min"})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(s.SM,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!j,minValue:f,maxValue:p,onChange:function(S,P){return I(P)},onBlur:function(S,P){return _(P)},onEnter:function(S,P){return m("submit",{entry:P})},value:O})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{disabled:O===p,icon:"angle-double-right",onClick:function(){return b(p)},tooltip:p?"Max ("+p+")":"Max"})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{disabled:O===C,icon:"redo",onClick:function(){return b(C)},tooltip:C?"Reset ("+C+")":"Reset"})})]})}},953:function(M,y,t){"use strict";t.r(y),t.d(y,{OmniFilter:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(g){return g.input?"Input":g.output?"Output":g.f_type?g.f_type:"Disabled"},a=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=h.power,u=h.config,m=h.ports,c=h.set_flow_rate,f=h.last_flow_rate;return(0,e.jsx)(r.p8,{width:360,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:u?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"power-off",content:v?"On":"Off",selected:v,disabled:u,onClick:function(){return d("power")}}),(0,e.jsx)(n.$n,{icon:"wrench",selected:u,onClick:function(){return d("configure")}})]}),children:(0,e.jsx)(n.Ki,{children:m?m.map(function(p){return(0,e.jsx)(n.Ki.Item,{label:p.dir+" Port",children:u?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{content:"IN",selected:p.input,icon:"compress-arrows-alt",onClick:function(){return d("switch_mode",{mode:"in",dir:p.dir})}}),(0,e.jsx)(n.$n,{content:"OUT",selected:p.output,icon:"expand-arrows-alt",onClick:function(){return d("switch_mode",{mode:"out",dir:p.dir})}}),(0,e.jsx)(n.$n,{icon:"wrench",disabled:p.input||p.output,content:p.f_type||"None",onClick:function(){return d("switch_filter",{mode:p.f_type,dir:p.dir})}})]}):s(p)},p.dir)}):(0,e.jsx)(n.az,{color:"bad",children:"No Ports Detected"})})}),(0,e.jsx)(n.wn,{title:"Flow Rate",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Current Flow Rate",children:[f," L/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Flow Rate Limit",children:u?(0,e.jsx)(n.$n,{icon:"wrench",content:c/10+" L/s",onClick:function(){return d("set_flow_rate")}}):c/10+" L/s"})]})})]})})}},75520:function(M,y,t){"use strict";t.r(y),t.d(y,{OmniMixer:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(x){return x.input?"Input":x.output?"Output":x.f_type?x.f_type:"Disabled"},a=function(x){var d=(0,i.Oc)(),h=d.act,v=d.data,u=v.power,m=v.config,c=v.ports,f=v.set_flow_rate,p=v.last_flow_rate;return(0,e.jsx)(r.p8,{width:390,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:m?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"power-off",content:u?"On":"Off",selected:u,disabled:m,onClick:function(){return h("power")}}),(0,e.jsx)(n.$n,{icon:"wrench",selected:m,onClick:function(){return h("configure")}})]}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Port"}),m?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Input"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Output"})]}):(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Mode"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Concentration"}),m?(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Lock"}):null]}),c?c.map(function(C){return(0,e.jsx)(g,{port:C,config:m},C.dir)}):(0,e.jsx)(n.az,{color:"bad",children:"No Ports Detected"})]})}),(0,e.jsx)(n.wn,{title:"Flow Rate",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Current Flow Rate",children:[p," L/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Flow Rate Limit",children:m?(0,e.jsx)(n.$n,{icon:"wrench",content:f/10+" L/s",onClick:function(){return h("set_flow_rate")}}):f/10+" L/s"})]})})]})})},g=function(x){var d=(0,i.Oc)().act,h=x.port,v=x.config;return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:h.dir+" Port"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:v?(0,e.jsx)(n.$n,{content:"IN",selected:h.input,disabled:h.output,icon:"compress-arrows-alt",onClick:function(){return d("switch_mode",{mode:h.input?"none":"in",dir:h.dir})}}):s(h)}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:v?(0,e.jsx)(n.$n,{content:"OUT",selected:h.output,icon:"expand-arrows-alt",onClick:function(){return d("switch_mode",{mode:"out",dir:h.dir})}}):h.concentration*100+"%"}),v?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",width:"20%",children:(0,e.jsx)(n.$n,{width:"100%",icon:"wrench",disabled:!h.input,content:h.input?h.concentration*100+" %":"-",onClick:function(){return d("switch_con",{dir:h.dir})}})}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:(0,e.jsx)(n.$n,{icon:h.con_lock?"lock":"lock-open",disabled:!h.input,selected:h.con_lock,content:h.f_type||"None",onClick:function(){return d("switch_conlock",{dir:h.dir})}})})]}):null]})}},37534:function(M,y,t){"use strict";t.r(y),t.d(y,{OperatingComputer:function(){return h}});var e=t(88095),i=t(5229),n=t(4413),r=t(92514),s=t(84905),a=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],g=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],x={average:[.25,.5],bad:[.5,1/0]},d=["bad","average","average","good","average","average","bad"],h=function(c){var f=(0,n.Oc)(),p=f.act,C=f.data,j=C.hasOccupant,O=C.choice,b;return O?b=(0,e.jsx)(m,{}):b=j?(0,e.jsx)(v,{}):(0,e.jsx)(u,{}),(0,e.jsx)(s.p8,{width:650,height:455,children:(0,e.jsxs)(s.p8.Content,{children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:!O,icon:"user",onClick:function(){return p("choiceOff")},children:"Patient"}),(0,e.jsx)(r.tU.Tab,{selected:!!O,icon:"cog",onClick:function(){return p("choiceOn")},children:"Options"})]}),(0,e.jsx)(r.wn,{flexGrow:"1",children:b})]})})},v=function(c){var f=(0,n.Oc)().data,p=f.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Patient",level:"2",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:p.name}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:a[p.stat][0],children:a[p.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{min:"0",max:p.maxHealth,value:p.health/p.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),g.map(function(C,j){return(0,e.jsx)(r.Ki.Item,{label:C[0]+" Damage",children:(0,e.jsx)(r.z2,{min:"0",max:"100",value:p[C[1]]/100,ranges:x,children:(0,i.LI)(p[C[1]])},j)},j)}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{min:"0",max:p.maxTemp,value:p.bodyTemperature/p.maxTemp,color:d[p.temperatureSuitability+3],children:[(0,i.LI)(p.btCelsius),"\xB0C, ",(0,i.LI)(p.btFaren),"\xB0F"]})}),!!p.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Blood Level",children:(0,e.jsxs)(r.z2,{min:"0",max:p.bloodMax,value:p.bloodLevel/p.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[p.bloodPercent,"%, ",p.bloodLevel,"cl"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Pulse",children:[p.pulse," BPM"]})]})]})}),(0,e.jsx)(r.wn,{title:"Current Procedure",level:"2",children:p.surgery&&p.surgery.length?(0,e.jsx)(r.Ki,{children:p.surgery.map(function(C){return(0,e.jsx)(r.Ki.Item,{label:C.name,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current State",children:C.currentStage}),(0,e.jsx)(r.Ki.Item,{label:"Possible Next Steps",children:C.nextSteps.map(function(j){return(0,e.jsx)("div",{children:j},j)})})]})},C.name)})}):(0,e.jsx)(r.az,{color:"label",children:"No procedure ongoing."})})]})},u=function(){return(0,e.jsx)(r.so,{textAlign:"center",height:"100%",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No patient detected."]})})},m=function(c){var f=(0,n.Oc)(),p=f.act,C=f.data,j=C.verbose,O=C.health,b=C.healthAlarm,I=C.oxy,_=C.oxyAlarm,S=C.crit;return(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Loudspeaker",children:(0,e.jsx)(r.$n,{selected:j,icon:j?"toggle-on":"toggle-off",content:j?"On":"Off",onClick:function(){return p(j?"verboseOff":"verboseOn")}})}),(0,e.jsx)(r.Ki.Item,{label:"Health Announcer",children:(0,e.jsx)(r.$n,{selected:O,icon:O?"toggle-on":"toggle-off",content:O?"On":"Off",onClick:function(){return p(O?"healthOff":"healthOn")}})}),(0,e.jsx)(r.Ki.Item,{label:"Health Announcer Threshold",children:(0,e.jsx)(r.N6,{bipolar:!0,minValue:"-100",maxValue:"100",value:b,stepPixelSize:"5",ml:"0",format:function(P){return P+"%"},onChange:function(P,A){return p("health_adj",{new:A})}})}),(0,e.jsx)(r.Ki.Item,{label:"Oxygen Alarm",children:(0,e.jsx)(r.$n,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"On":"Off",onClick:function(){return p(I?"oxyOff":"oxyOn")}})}),(0,e.jsx)(r.Ki.Item,{label:"Oxygen Alarm Threshold",children:(0,e.jsx)(r.N6,{bipolar:!0,minValue:"-100",maxValue:"100",value:_,stepPixelSize:"5",ml:"0",onChange:function(P,A){return p("oxy_adj",{new:A})}})}),(0,e.jsx)(r.Ki.Item,{label:"Critical Alert",children:(0,e.jsx)(r.$n,{selected:S,icon:S?"toggle-on":"toggle-off",content:S?"On":"Off",onClick:function(){return p(S?"critOff":"critOn")}})})]})}},17511:function(M,y,t){"use strict";t.r(y),t.d(y,{OvermapDisperser:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=t(7240),a=function(x){return(0,e.jsx)(r.p8,{width:400,height:550,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var d=(0,i.Oc)(),h=d.act,v=d.data,u=v.faillink,m=v.calibration,c=v.overmapdir,f=v.cal_accuracy,p=v.strength,C=v.range,j=v.next_shot,O=v.nopower,b=v.skill,I=v.chargeload;return u?(0,e.jsx)(n.wn,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,e.jsxs)(n.so,{wrap:"wrap",spacing:1,children:[(0,e.jsx)(n.so.Item,{basis:"22%",children:(0,e.jsx)(n.wn,{title:"Targeting",textAlign:"center",children:(0,e.jsx)(s.OvermapPanControls,{actToDo:"choose",selected:function(_){return _===c}})})}),(0,e.jsx)(n.so.Item,{basis:"74%",grow:1,children:(0,e.jsx)(n.wn,{title:"Charge",children:(0,e.jsxs)(n.Ki,{children:[O&&(0,e.jsx)(n.Ki.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||null,(0,e.jsx)(n.Ki.Item,{label:"Charge Load Type",children:I}),(0,e.jsx)(n.Ki.Item,{label:"Cooldown",children:j===0&&(0,e.jsx)(n.az,{color:"good",children:"Ready"})||j>1&&(0,e.jsxs)(n.az,{color:"average",children:[(0,e.jsx)(n.zv,{value:j})," Seconds",(0,e.jsx)(n.az,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||null})]})})}),(0,e.jsx)(n.so.Item,{basis:"50%",mt:1,children:(0,e.jsxs)(n.wn,{title:"Calibration",children:[(0,e.jsx)(n.zv,{value:f}),"%",(0,e.jsx)(n.$n,{ml:1,icon:"exchange-alt",onClick:function(){return h("skill_calibration")},children:"Pre-Calibration"}),(0,e.jsx)(n.az,{mt:1,children:m.map(function(_,S){return(0,e.jsxs)(n.az,{children:["Cal #",S,":",(0,e.jsx)(n.$n,{ml:1,icon:"random",onClick:function(){return h("calibration",{calibration:S})},children:_.toString()})]},S)})})]})}),(0,e.jsx)(n.so.Item,{basis:"45%",grow:1,mt:1,children:(0,e.jsx)(n.wn,{title:"Setup",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Strength",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"fist-raised",onClick:function(){return h("strength")},children:p})}),(0,e.jsx)(n.Ki.Item,{label:"Radius",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){return h("range")},children:C})})]})})}),(0,e.jsx)(n.so.Item,{grow:1,mt:1,children:(0,e.jsx)(n.$n,{fluid:!0,color:"red",icon:"bomb",onClick:function(){return h("fire")},children:"Fire ORB"})})]})}},98203:function(M,y,t){"use strict";t.r(y),t.d(y,{OvermapEngines:function(){return s},OvermapEnginesContent:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(g){return(0,e.jsx)(r.p8,{width:390,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=h.global_state,u=h.global_limit,m=h.engines_info,c=h.total_thrust;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Engines",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:v,onClick:function(){return d("global_toggle")},children:v?"Shut All Engines Down":"Start All Engines"})}),(0,e.jsxs)(n.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(n.$n,{onClick:function(){return d("global_limit",{global_limit:-.1})},icon:"minus"}),(0,e.jsxs)(n.$n,{onClick:function(){return d("set_global_limit")},children:[u,"%"]}),(0,e.jsx)(n.$n,{onClick:function(){return d("global_limit",{global_limit:.1})},icon:"plus"})]}),(0,e.jsx)(n.Ki.Item,{label:"Total Thrust",children:(0,e.jsx)(n.zv,{value:c})})]})}),(0,e.jsx)(n.wn,{title:"Engines",height:"340px",style:{"overflow-y":"auto"},children:m.map(function(f,p){return(0,e.jsxs)(n.so,{spacing:1,mt:p!==0&&-1,children:[(0,e.jsx)(n.so.Item,{basis:"80%",children:(0,e.jsx)(n.Nt,{title:(0,e.jsxs)(n.az,{inline:!0,children:["Engine #",p+1," | Thrust:"," ",(0,e.jsx)(n.zv,{value:f.eng_thrust})," | Limit:"," ",(0,e.jsx)(n.zv,{value:f.eng_thrust_limiter,format:function(C){return C+"%"}})]}),children:(0,e.jsx)(n.wn,{width:"127%",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Type",children:f.eng_type}),(0,e.jsxs)(n.Ki.Item,{label:"Status",children:[(0,e.jsx)(n.az,{color:f.eng_on?f.eng_on===1?"good":"average":"bad",children:f.eng_on?f.eng_on===1?"Online":"Booting":"Offline"}),f.eng_status.map(function(C,j){return Array.isArray(C)?(0,e.jsx)(n.az,{color:C[1],children:C[0]},j):(0,e.jsx)(n.az,{children:C},j)})]}),(0,e.jsx)(n.Ki.Item,{label:"Current Thrust",children:f.eng_thrust}),(0,e.jsxs)(n.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(n.$n,{onClick:function(){return d("limit",{limit:-.1,engine:f.eng_reference})},icon:"minus"}),(0,e.jsxs)(n.$n,{onClick:function(){return d("set_limit",{engine:f.eng_reference})},children:[f.eng_thrust_limiter,"%"]}),(0,e.jsx)(n.$n,{onClick:function(){return d("limit",{limit:.1,engine:f.eng_reference})},icon:"plus"})]})]})})})}),(0,e.jsx)(n.so.Item,{basis:"20%",children:(0,e.jsx)(n.$n,{fluid:!0,iconSpin:f.eng_on===-1,color:f.eng_on===-1?"purple":null,selected:f.eng_on===1,icon:"power-off",onClick:function(){return d("toggle_engine",{engine:f.eng_reference})},children:f.eng_on?f.eng_on===1?"Shutoff":"Booting":"Startup"})})]},p)})})]})}},79061:function(M,y,t){"use strict";t.r(y),t.d(y,{OvermapFull:function(){return x}});var e=t(88095),i=t(44583),n=t(92514),r=t(84905),s=t(98203),a=t(60224),g=t(89501),x=function(d){var h=(0,i.useState)(0),v=h[0],u=h[1];return(0,e.jsx)(r.p8,{width:800,height:800,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:v===0,onClick:function(){return u(0)},children:"Engines"}),(0,e.jsx)(n.tU.Tab,{selected:v===1,onClick:function(){return u(1)},children:"Helm"}),(0,e.jsx)(n.tU.Tab,{selected:v===2,onClick:function(){return u(2)},children:"Sensors"})]}),v===0&&(0,e.jsx)(s.OvermapEnginesContent,{}),v===1&&(0,e.jsx)(a.OvermapHelmContent,{}),v===2&&(0,e.jsx)(g.OvermapShipSensorsContent,{})]})})}},60224:function(M,y,t){"use strict";t.r(y),t.d(y,{OvermapFlightDataWrap:function(){return x},OvermapHelm:function(){return a},OvermapHelmContent:function(){return g}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=t(7240),a=function(u){return(0,e.jsx)(r.p8,{width:565,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(u){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{basis:"40%",height:"180px",children:(0,e.jsx)(x,{})}),(0,e.jsx)(n.so.Item,{basis:"25%",height:"180px",children:(0,e.jsx)(d,{})}),(0,e.jsx)(n.so.Item,{basis:"35%",height:"180px",children:(0,e.jsx)(h,{})})]}),(0,e.jsx)(v,{})]})},x=function(u){var m=(0,i.Oc)(),c=m.act,f=m.data;return(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1",margin:"none"},className:"Section",children:[(0,e.jsx)("legend",{children:"Flight Data"}),(0,e.jsx)(s.OvermapFlightData,{})]})},d=function(u){var m=(0,i.Oc)(),c=m.act,f=m.data,p=f.canburn,C=f.manual_control;return(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Manual Control"}),(0,e.jsx)(n.so,{align:"center",justify:"center",children:(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(s.OvermapPanControls,{disabled:!p,actToDo:"move"})})}),(0,e.jsxs)(n.az,{textAlign:"center",mt:1,children:[(0,e.jsx)(n.az,{bold:!0,underline:!0,children:"Direct Control"}),(0,e.jsx)(n.$n,{selected:C,onClick:function(){return c("manual")},icon:"compass",children:C?"Enabled":"Disabled"})]})]})},h=function(u){var m=(0,i.Oc)(),c=m.act,f=m.data,p=f.dest,C=f.d_x,j=f.d_y,O=f.speedlimit,b=f.autopilot,I=f.autopilot_disabled;return I?(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsx)(n.az,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,e.jsx)(n.az,{textAlign:"center",color:"average",children:"Warning: This vessel is equipped with a class I autopilot. Class I autopilots are unable to do anything but fly in a straight line directly towards the target, and may result in collisions."}),(0,e.jsx)(n.az,{textAlign:"center",children:(0,e.jsx)(n.$n.Confirm,{mt:1,color:"bad",content:"Unlock Autopilot",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return c("apilot_lock")}})})]}):(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Target",children:p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{onClick:function(){return c("setcoord",{setx:!0})},children:C}),(0,e.jsx)(n.$n,{onClick:function(){return c("setcoord",{sety:!0})},children:j})]})||(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return c("setcoord",{setx:!0,sety:!0})},children:"None"})}),(0,e.jsx)(n.Ki.Item,{label:"Speed Limit",children:(0,e.jsxs)(n.$n,{icon:"tachometer-alt",onClick:function(){return c("speedlimit")},children:[O," Gm/h"]})})]}),(0,e.jsx)(n.$n,{mt:1,fluid:!0,selected:b,disabled:!p,icon:"robot",onClick:function(){return c("apilot")},children:b?"Engaged":"Disengaged"}),(0,e.jsx)(n.$n,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return c("apilot_lock")},children:"Lock Autopilot"})]})},v=function(u){var m=(0,i.Oc)(),c=m.act,f=m.data,p=f.sector,C=f.s_x,j=f.s_y,O=f.sector_info,b=f.landed,I=f.locations;return(0,e.jsxs)(n.wn,{title:"Navigation Data",m:.3,mt:1,children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Location",children:p}),(0,e.jsxs)(n.Ki.Item,{label:"Coordinates",children:[C," : ",j]}),(0,e.jsx)(n.Ki.Item,{label:"Scan Data",children:O}),(0,e.jsx)(n.Ki.Item,{label:"Status",children:b})]}),(0,e.jsxs)(n.so,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,e.jsx)(n.so.Item,{basis:"50%",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"save",onClick:function(){return c("add",{add:"current"})},children:"Save Current Position"})}),(0,e.jsx)(n.so.Item,{basis:"50%",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"sticky-note",onClick:function(){return c("add",{add:"new"})},children:"Add New Entry"})})]}),(0,e.jsx)(n.wn,{mt:1,scrollable:!0,height:"130px",children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Coordinates"}),(0,e.jsx)(n.XI.Cell,{children:"Actions"})]}),I.map(function(_){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:_.name}),(0,e.jsxs)(n.XI.Cell,{children:[_.x," : ",_.y]}),(0,e.jsxs)(n.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(n.$n,{icon:"rocket",onClick:function(){return c("setds",{x:_.x,y:_.y})},children:"Plot Course"}),(0,e.jsx)(n.$n,{icon:"trash",onClick:function(){return c("remove",{remove:_.reference})},children:"Remove"})]})]},_.name)})]})})]})}},15156:function(M,y,t){"use strict";t.r(y),t.d(y,{OvermapNavigation:function(){return a},OvermapNavigationContent:function(){return g}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=t(7240),a=function(){return(0,e.jsx)(r.p8,{width:380,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var d=(0,i.Oc)(),h=d.act,v=d.data,u=v.sector,m=v.s_x,c=v.s_y,f=v.sector_info,p=v.viewing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Current Location",buttons:(0,e.jsx)(n.$n,{icon:"eye",selected:p,onClick:function(){return h("viewing")},children:"Map View"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Current Location",children:u}),(0,e.jsxs)(n.Ki.Item,{label:"Coordinates",children:[m," : ",c]}),(0,e.jsx)(n.Ki.Item,{label:"Additional Information",children:f})]})}),(0,e.jsx)(n.wn,{title:"Flight Data",children:(0,e.jsx)(s.OvermapFlightData,{disableLimiterControls:!0})})]})}},20576:function(M,y,t){"use strict";t.r(y),t.d(y,{OvermapShieldGenerator:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(d){return(0,e.jsx)(r.p8,{width:500,height:760,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(a,{})})})},a=function(d){var h=(0,i.Oc)(),v=h.act,u=h.data,m=u.modes,c=u.offline_for;return c?(0,e.jsxs)(n.wn,{title:"EMERGENCY SHUTDOWN",color:"bad",children:["An emergency shutdown has been initiated - generator cooling down. Please wait until the generator cools down before resuming operation. Estimated time left: ",c," seconds."]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(x,{}),(0,e.jsx)(n.wn,{title:"Field Calibration",children:m.map(function(f){return(0,e.jsxs)(n.wn,{title:f.name,level:2,buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:f.status,onClick:function(){return v("toggle_mode",{toggle_mode:f.flag})},children:f.status?"Enabled":"Disabled"}),children:[(0,e.jsx)(n.az,{color:"label",children:f.desc}),(0,e.jsxs)(n.az,{mt:.5,children:["Multiplier: ",f.multiplier]})]},f.name)})})]})},g=function(d){var h=(0,i.Oc)(),v=h.act,u=h.data,m=u.running,c=u.overloaded,f=u.mitigation_max,p=u.mitigation_physical,C=u.mitigation_em,j=u.mitigation_heat,O=u.field_integrity,b=u.max_energy,I=u.current_energy,_=u.percentage_energy,S=u.total_segments,P=u.functional_segments,A=u.field_radius,R=u.target_radius,K=u.input_cap_kw,N=u.upkeep_power_usage,k=u.power_usage,X=u.spinup_counter;return(0,e.jsx)(n.wn,{title:"System Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Generator is",children:m===1&&(0,e.jsx)(n.az,{color:"average",children:"Shutting Down"})||m===2&&(c&&(0,e.jsx)(n.az,{color:"bad",children:"Overloaded"})||(0,e.jsx)(n.az,{color:"good",children:"Running"}))||m===3&&(0,e.jsx)(n.az,{color:"average",children:"Inactive"})||m===4&&(0,e.jsxs)(n.az,{color:"blue",children:["Spinning Up\xA0",R!==A&&(0,e.jsx)(n.az,{inline:!0,children:"(Adjusting Radius)"})||(0,e.jsxs)(n.az,{inline:!0,children:[X*2,"s"]})]})||(0,e.jsx)(n.az,{color:"bad",children:"Offline"})}),(0,e.jsx)(n.Ki.Item,{label:"Energy Storage",children:(0,e.jsxs)(n.z2,{value:I,maxValue:b,children:[I," / ",b," MJ (",_,"%)"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Shield Integrity",children:[(0,e.jsx)(n.zv,{value:O}),"%"]}),(0,e.jsxs)(n.Ki.Item,{label:"Mitigation",children:[C,"% EM / ",p,"% PH / ",j,"% HE / ",f,"% MAX"]}),(0,e.jsxs)(n.Ki.Item,{label:"Upkeep Energy Use",children:[(0,e.jsx)(n.zv,{value:N})," kW"]}),(0,e.jsx)(n.Ki.Item,{label:"Total Energy Use",children:K&&(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.z2,{value:k,maxValue:K,children:[k," / ",K," kW"]})})||(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.zv,{value:k})," kW (No Limit)"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Field Size",children:[(0,e.jsx)(n.zv,{value:P}),"\xA0/\xA0",(0,e.jsx)(n.zv,{value:S})," m\xB2 (radius"," ",(0,e.jsx)(n.zv,{value:A}),", target"," ",(0,e.jsx)(n.zv,{value:R}),")"]})]})})},x=function(d){var h=(0,i.Oc)(),v=h.act,u=h.data,m=u.running,c=u.hacked,f=u.idle_multiplier,p=u.idle_valid_values;return(0,e.jsxs)(n.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[m>=2&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return v("begin_shutdown")},selected:!0,children:"Turn off"}),m===3&&(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return v("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return v("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return v("start_generator")},children:"Turn on"}),m&&c&&(0,e.jsx)(n.$n,{icon:"exclamation-triangle",onClick:function(){return v("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||null]}),children:[(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",onClick:function(){return v("set_range")},children:"Set Field Range"}),(0,e.jsx)(n.$n,{icon:"bolt",onClick:function(){return v("set_input_cap")},children:"Set Input Cap"}),(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Set inactive power use intensity",children:p.map(function(C){return(0,e.jsx)(n.$n,{selected:C===f,disabled:m===4,onClick:function(){return v("switch_idle",{switch_idle:C})},children:C},C)})})})]})}},89501:function(M,y,t){"use strict";t.r(y),t.d(y,{OvermapShipSensors:function(){return s},OvermapShipSensorsContent:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(g){return(0,e.jsx)(r.p8,{width:375,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=h.viewing,u=h.on,m=h.range,c=h.health,f=h.max_health,p=h.heat,C=h.critical_heat,j=h.status,O=h.contacts;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"eye",selected:v,onClick:function(){return d("viewing")},children:"Map View"}),(0,e.jsx)(n.$n,{icon:"power-off",selected:u,onClick:function(){return d("toggle_sensor")},children:u?"Sensors Enabled":"Sensors Disabled"})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:j}),(0,e.jsx)(n.Ki.Item,{label:"Range",children:(0,e.jsx)(n.$n,{icon:"signal",onClick:function(){return d("range")},children:m})}),(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsxs)(n.z2,{ranges:{good:[f*.75,1/0],average:[f*.25,f*.75],bad:[-1/0,f*.25]},value:c,maxValue:f,children:[c," / ",f]})}),(0,e.jsx)(n.Ki.Item,{label:"Temperature",children:(0,e.jsx)(n.z2,{ranges:{bad:[C*.75,1/0],average:[C*.5,C*.75],good:[-1/0,C*.5]},value:p,maxValue:C,children:p0||!p)&&(0,e.jsx)(r.$n,{ml:1,icon:"times",onClick:function(){return h("cancel",{cancel:I+1})},children:"Cancel"})||null]},b)})||(0,e.jsx)(r.IC,{info:!0,children:"Queue Empty"})}),(0,e.jsx)(r.wn,{title:"Recipes",children:O.length&&O.map(function(b){return(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"wrench",onClick:function(){return h("queue",{queue:b.type})},children:(0,i.Sn)(b.name)})},b.name)})})]})})}},55725:function(M,y,t){"use strict";t.r(y),t.d(y,{PathogenicIsolator:function(){return x}});var e=t(88095),i=t(44583),n=t(4413),r=t(92514),s=t(5425),a=t(84905),g=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,f=c.can_print,p=v.args;return(0,e.jsx)(r.wn,{level:2,m:"-1rem",title:p.name||"Virus",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{disabled:!f,icon:"print",content:"Print",onClick:function(){return m("print",{type:"virus_record",vir:p.record})}}),(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return m("modal_close")}})]}),children:(0,e.jsx)(r.az,{mx:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Spread",children:[p.spread_text," Transmission"]}),(0,e.jsx)(r.Ki.Item,{label:"Possible cure",children:p.antigen}),(0,e.jsx)(r.Ki.Item,{label:"Rate of Progression",children:p.rate}),(0,e.jsxs)(r.Ki.Item,{label:"Antibiotic Resistance",children:[p.resistance,"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Species Affected",children:p.species}),(0,e.jsx)(r.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ki,{children:p.symptoms.map(function(C){return(0,e.jsxs)(r.Ki.Item,{label:C.stage+". "+C.name,children:[(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Strength:"})," ",C.strength,"\xA0"]}),(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",C.aggressiveness]})]},C.stage)})})})]})})})},x=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,f=c.isolating,p=(0,i.useState)(0),C=p[0],j=p[1],O=null;return C===0?O=(0,e.jsx)(d,{}):C===1&&(O=(0,e.jsx)(h,{})),(0,s.modalRegisterBodyOverride)("virus",g),(0,e.jsxs)(a.p8,{height:500,width:520,children:[(0,e.jsx)(s.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[f&&(0,e.jsx)(r.IC,{warning:!0,children:"The Isolator is currently isolating..."})||null,(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:C===0,onClick:function(){return j(0)},children:"Home"}),(0,e.jsx)(r.tU.Tab,{selected:C===1,onClick:function(){return j(1)},children:"Database"})]}),O]})]})},d=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,f=c.syringe_inserted,p=c.pathogen_pool,C=c.can_print;return(0,e.jsx)(r.wn,{title:"Pathogens",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"print",content:"Print",disabled:!C,onClick:function(){return m("print",{type:"patient_diagnosis"})}}),(0,e.jsx)(r.$n,{icon:"eject",content:"Eject Syringe",disabled:!f,onClick:function(){return m("eject")}})]}),children:p.length&&p.map(function(j){return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{color:"label",children:(0,e.jsxs)(r.so,{align:"center",children:[(0,e.jsxs)(r.so.Item,{grow:1,children:[(0,e.jsxs)("u",{children:["Stamm #",j.unique_id]}),j.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"virus",content:"Isolate",onClick:function(){return m("isolate",{isolate:j.reference})}}),(0,e.jsx)(r.$n,{icon:"search",content:"Database",disabled:!j.is_in_database,onClick:function(){return m("view_entry",{vir:j.record})}})]})]})}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{color:"average",mb:1,children:j.name}),j.dna]})]},j.unique_id)})||(f?(0,e.jsx)(r.az,{color:"average",children:"No samples detected."}):(0,e.jsx)(r.az,{color:"average",children:"No syringe inserted."}))})},h=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,f=c.database,p=c.can_print;return(0,e.jsx)(r.wn,{title:"Database",buttons:(0,e.jsx)(r.$n,{icon:"print",content:"Print",disabled:!p,onClick:function(){return m("print",{type:"virus_list"})}}),children:f.length&&f.map(function(C){return(0,e.jsx)(r.$n,{fluid:!0,icon:"search",onClick:function(){return m("view_entry",{vir:C.record})},children:C.name},C.name)})||(0,e.jsx)(r.az,{color:"average",children:"The viral database is empty."})})}},34557:function(M,y,t){"use strict";t.r(y),t.d(y,{Pda:function(){return d}});var e=t(88095),i=t(44583),n=t(4413),r=t(92514),s=t(84905),a=t(82989),g=t(7339),x=function(m){var c;try{c=g("./"+m+".jsx")}catch(p){if(p.code==="MODULE_NOT_FOUND")return(0,a.z)("notFound",m);throw p}var f=c[m];return f||(0,a.z)("missingExport",m)},d=function(m){var c=function(R){P(R)},f=(0,n.Oc)(),p=f.act,C=f.data,j=C.app,O=C.owner,b=C.useRetro;if(!O)return(0,e.jsx)(s.p8,{children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(r.wn,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var I=x(j.template),_=(0,i.useState)(!1),S=_[0],P=_[1];return(0,e.jsx)(s.p8,{width:580,height:670,theme:b?"pda-retro":null,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsx)(h,{settingsMode:S,onSettingsMode:c}),S&&(0,e.jsx)(v,{})||(0,e.jsx)(r.wn,{title:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.In,{name:j.icon,mr:1}),j.name]}),p:1,children:(0,e.jsx)(I,{})}),(0,e.jsx)(r.az,{mb:8}),(0,e.jsx)(u,{onSettingsMode:c})]})})},h=function(m){var c=(0,n.Oc)(),f=c.act,p=c.data,C=p.idInserted,j=p.idLink,O=p.cartridge_name,b=p.stationTime;return(0,e.jsx)(r.az,{mb:1,children:(0,e.jsxs)(r.so,{align:"center",justify:"space-between",children:[!!C&&(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"eject",color:"transparent",onClick:function(){return f("Authenticate")},content:j})}),(0,e.jsx)(r.so.Item,{grow:1,textAlign:"center",bold:!0,children:b}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{selected:m.settingsMode,onClick:function(){return m.onSettingsMode(!m.settingsMode)},icon:"cog"}),(0,e.jsx)(r.$n,{onClick:function(){return f("Retro")},icon:"adjust"})]})]})})},v=function(m){var c=(0,n.Oc)(),f=c.act,p=c.data,C=p.idInserted,j=p.idLink,O=p.cartridge_name,b=p.touch_silent;return(0,e.jsx)(r.wn,{title:"Settings",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"R.E.T.R.O Mode",children:(0,e.jsx)(r.$n,{icon:"cog",content:"Retro Theme",onClick:function(){return f("Retro")}})}),(0,e.jsx)(r.Ki.Item,{label:"Touch Sounds",children:(0,e.jsx)(r.$n,{icon:"cog",selected:!b,content:b?"Disabled":"Enabled",onClick:function(){return f("TouchSounds")}})}),!!O&&(0,e.jsx)(r.Ki.Item,{label:"Cartridge",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return f("Eject")},content:O})}),!!C&&(0,e.jsx)(r.Ki.Item,{label:"ID Card",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return f("Authenticate")},content:j})})]})})},u=function(m){var c=(0,n.Oc)(),f=c.act,p=c.data,C=p.app,j=p.useRetro;return(0,e.jsx)(r.az,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:j?"#6f7961":"#1b1b1b",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:C.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){return f("Back")}})}),(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:C.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){m.onSettingsMode(!1),f("Home")}})})]})})}},47676:function(M,y,t){"use strict";t.r(y),t.d(y,{PersonalCrafting:function(){return h}});var e=t(88095),i=t(44583),n=t(4413),r=t(92514),s=t(84905);function a(u,m){(m==null||m>u.length)&&(m=u.length);for(var c=0,f=new Array(m);c=u.length?{done:!0}:{done:!1,value:u[f++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h=function(u){for(var m,c=(0,n.Oc)(),f=c.act,p=c.data,C=p.busy,j=p.display_craftable_only,O=p.display_compact,b=p.crafting_recipes||{},I=[],_=[],S=d(Object.keys(b)),P;!(P=S()).done;){var A=P.value,R=b[A];if("has_subcats"in R){for(var K=d(Object.keys(R)),N;!(N=K()).done;){var k=N.value;if(k!=="has_subcats"){I.push({name:k,category:A,subcategory:k});for(var X=R[k],F=d(X),J;!(J=F()).done;){var H=J.value;_.push(g({},H,{category:k}))}}}continue}I.push({name:A,category:A});for(var Q=b[A],Z=d(Q),V;!(V=Z()).done;){var z=V.value;_.push(g({},z,{category:A}))}}var Y=(0,i.useState)((m=I[0])==null?void 0:m.name),ee=Y[0],oe=Y[1],ne=_.filter(function(ce){return ce.category===ee});return(0,e.jsx)(s.p8,{title:"Crafting Menu",width:700,height:800,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!!C&&(0,e.jsxs)(r.Rr,{fontSize:"32px",children:[(0,e.jsx)(r.In,{name:"cog",spin:1})," Crafting..."]}),(0,e.jsx)(r.wn,{title:"Personal Crafting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Checkbox,{content:"Compact",checked:O,onClick:function(){return f("toggle_compact")}}),(0,e.jsx)(r.$n.Checkbox,{content:"Craftable Only",checked:j,onClick:function(){return f("toggle_recipes")}})]}),children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.tU,{vertical:!0,children:I.map(function(ce){return(0,e.jsx)(r.tU.Tab,{selected:ce.name===ee,onClick:function(){oe(ce.name),f("set_category",{category:ce.category,subcategory:ce.subcategory})},children:ce.name},ce.name)})})}),(0,e.jsx)(r.so.Item,{grow:1,basis:0,children:(0,e.jsx)(v,{craftables:ne})})]})})]})})},v=function(u){var m=u.craftables,c=m===void 0?[]:m,f=(0,n.Oc)(),p=f.act,C=f.data,j=C.craftability,O=j===void 0?{}:j,b=C.display_compact,I=C.display_craftable_only;return c.map(function(_){return I&&!O[_.ref]?null:b?(0,e.jsx)(r.Ki.Item,{label:_.name,className:"candystripe",buttons:(0,e.jsx)(r.$n,{icon:"cog",content:"Craft",disabled:!O[_.ref],tooltip:_.tool_text&&"Tools needed: "+_.tool_text,tooltipPosition:"left",onClick:function(){return p("make",{recipe:_.ref})}}),children:_.req_text},_.name):(0,e.jsx)(r.wn,{title:_.name,level:2,buttons:(0,e.jsx)(r.$n,{icon:"cog",content:"Craft",disabled:!O[_.ref],onClick:function(){return p("make",{recipe:_.ref})}}),children:(0,e.jsxs)(r.Ki,{children:[!!_.req_text&&(0,e.jsx)(r.Ki.Item,{label:"Required",children:_.req_text}),!!_.catalyst_text&&(0,e.jsx)(r.Ki.Item,{label:"Catalyst",children:_.catalyst_text}),!!_.tool_text&&(0,e.jsx)(r.Ki.Item,{label:"Tools",children:_.tool_text})]})},_.name)})}},24837:function(M,y,t){"use strict";t.r(y),t.d(y,{Phorochem:function(){return s}});var e=t(88095),i=t(92514),n=t(4413),r=t(84905),s=function(a){var g=(0,n.Oc)(),x=g.act,d=g.data,h=d.intensity,v=d.phoron,u=d.message,m=d.timeLeft,c=d.timeLeftMax;return(0,e.jsx)(r.p8,{width:425,height:270,resizable:!0,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(i.wn,{title:"Phorochemistry Control",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Commands",children:[(0,e.jsx)(i.$n,{content:"Recalibrate",onClick:function(){return x("recalibrate")}}),(0,e.jsx)(i.$n,{content:"Begin Test",onClick:function(){return x("beginTest")}}),(0,e.jsx)(i.$n,{content:"Abort Test",onClick:function(){return x("abortTest")}})]}),(0,e.jsxs)(i.Ki.Item,{label:"Intensity",children:[(0,e.jsx)(i.$n,{icon:"backward",onClick:function(){return x("remove_intensity")}}),(0,e.jsx)(i.$n,{content:"1",disabled:h!==1,selected:h===1}),(0,e.jsx)(i.$n,{content:"2",disabled:h!==2,selected:h===2}),(0,e.jsx)(i.$n,{content:"3",disabled:h!==3,selected:h===3}),(0,e.jsx)(i.$n,{content:"4",disabled:h!==4,selected:h===4}),(0,e.jsx)(i.$n,{content:"5",disabled:h!==5,selected:h===5}),(0,e.jsx)(i.$n,{icon:"forward",onClick:function(){return x("add_intensity")}})]})]})}),(0,e.jsxs)(i.wn,{title:"Information",children:[(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Phoron",children:(0,e.jsx)(i.z2,{value:v,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:v+" Moles"})}),(0,e.jsx)(i.Ki.Item,{label:"Progress",children:(0,e.jsx)(i.z2,{value:m,maxValue:c,ranges:{},children:m+"/"+c+" Seconds"})})]}),(0,e.jsx)(i.wn,{children:u})]})]})})}},75226:function(M,y,t){"use strict";t.r(y),t.d(y,{Photocopier:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(d){var h=(0,i.Oc)().data,v=h.isAI,u=h.has_toner,m=h.has_item;return(0,e.jsx)(r.p8,{title:"Photocopier",width:240,height:v?309:234,children:(0,e.jsxs)(r.p8.Content,{children:[u?(0,e.jsx)(a,{}):(0,e.jsx)(n.wn,{title:"Toner",children:(0,e.jsx)(n.az,{color:"average",children:"No inserted toner cartridge."})}),m?(0,e.jsx)(g,{}):(0,e.jsx)(n.wn,{title:"Options",children:(0,e.jsx)(n.az,{color:"average",children:"No inserted item."})}),!!v&&(0,e.jsx)(x,{})]})})},a=function(d){var h=(0,i.Oc)(),v=h.act,u=h.data,m=u.max_toner,c=u.current_toner,f=m*.66,p=m*.33;return(0,e.jsx)(n.wn,{title:"Toner",children:(0,e.jsx)(n.z2,{ranges:{good:[f,m],average:[p,f],bad:[0,p]},value:c,minValue:0,maxValue:m})})},g=function(d){var h=(0,i.Oc)(),v=h.act,u=h.data,m=u.num_copies,c=u.has_enough_toner;return(0,e.jsxs)(n.wn,{title:"Options",children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{mt:.4,width:11,color:"label",children:"Make copies:"}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.Q7,{animate:!0,width:2.6,height:1.65,step:1,stepPixelSize:8,minValue:1,maxValue:10,value:m,onDrag:function(f,p){return v("set_copies",{num_copies:p})}})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{ml:.2,icon:"copy",textAlign:"center",onClick:function(){return v("make_copy")},children:"Copy"})})]}),(0,e.jsx)(n.$n,{mt:.5,textAlign:"center",icon:"reply",fluid:!0,onClick:function(){return v("remove")},children:"Remove item"})]})},x=function(d){var h=(0,i.Oc)(),v=h.act,u=h.data,m=u.can_AI_print;return(0,e.jsx)(n.wn,{title:"AI Options",children:(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{fluid:!0,icon:"images",textAlign:"center",disabled:!m,onClick:function(){return v("ai_photo")},children:"Print photo from database"})})})}},23393:function(M,y,t){"use strict";t.r(y),t.d(y,{PipeDispenser:function(){return g}});var e=t(88095),i=t(44583),n=t(4413),r=t(92514),s=t(84905),a=t(62133),g=function(x){var d=(0,n.Oc)(),h=d.act,v=d.data,u=v.disposals,m=v.p_layer,c=v.pipe_layers,f=v.categories,p=f===void 0?[]:f,C=(0,i.useState)("categoryName"),j=C[0],O=C[1],b=p.find(function(I){return I.cat_name===j})||p[0];return(0,e.jsx)(s.p8,{width:425,height:515,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!u&&(0,e.jsx)(r.wn,{title:"Layer",children:(0,e.jsx)(r.az,{children:Object.keys(c).map(function(I){return(0,e.jsx)(r.$n.Checkbox,{fluid:!0,checked:c[I]===m,content:I,onClick:function(){return h("p_layer",{p_layer:c[I]})}},I)})})}),(0,e.jsxs)(r.wn,{title:"Pipes",children:[(0,e.jsx)(r.tU,{children:p.map(function(I,_){return(0,e.jsx)(r.tU.Tab,{fluid:!0,icon:a.ICON_BY_CATEGORY_NAME[I.cat_name],selected:I.cat_name===b.cat_name,onClick:function(){return O(I.cat_name)},children:I.cat_name},I.cat_name)})}),b==null?void 0:b.recipes.map(function(I){return(0,e.jsx)(r.$n,{fluid:!0,ellipsis:!0,content:I.pipe_name,title:I.pipe_name,onClick:function(){return h("dispense_pipe",{ref:I.ref,bent:I.bent,category:b.cat_name})}},I.pipe_name)})]})]})})}},28165:function(M,y,t){"use strict";t.r(y),t.d(y,{PlantAnalyzer:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(g){var x=(0,i.Oc)().data,d=250;return x.seed&&(d+=18*x.seed.trait_info.length),x.reagents&&x.reagents.length&&(d+=55,d+=20*x.reagents.length),(0,e.jsx)(r.p8,{width:400,height:d,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=h.no_seed,u=h.seed,m=h.reagents;return v?(0,e.jsx)(n.wn,{title:"Analyzer Unused",children:"You should go scan a plant! There is no data currently loaded."}):(0,e.jsxs)(n.wn,{title:"Plant Information",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"print",onClick:function(){return d("print")},children:"Print Report"}),(0,e.jsx)(n.$n,{icon:"window-close",color:"red",onClick:function(){return d("close")}})]}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Plant Name",children:[u.name,"#",u.uid]}),(0,e.jsx)(n.Ki.Item,{label:"Endurance",children:u.endurance}),(0,e.jsx)(n.Ki.Item,{label:"Yield",children:u.yield}),(0,e.jsx)(n.Ki.Item,{label:"Maturation Time",children:u.maturation_time}),(0,e.jsx)(n.Ki.Item,{label:"Production Time",children:u.production_time}),(0,e.jsx)(n.Ki.Item,{label:"Potency",children:u.potency})]}),m.length&&(0,e.jsx)(n.wn,{level:2,title:"Plant Reagents",children:(0,e.jsx)(n.Ki,{children:m.map(function(c){return(0,e.jsxs)(n.Ki.Item,{label:c.name,children:[c.volume," unit(s)."]},c.name)})})})||null,(0,e.jsx)(n.wn,{level:2,title:"Other Data",children:u.trait_info.map(function(c){return(0,e.jsx)(n.az,{color:"label",mb:.4,children:c},c)})})]})}},73304:function(M,y,t){"use strict";t.r(y),t.d(y,{PlayerNotes:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.device_theme,v=d.filter,u=d.pages,m=d.ckeys,c=function(f){return f()};return(0,e.jsx)(r.p8,{title:"Player Notes",theme:h,width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.wn,{title:"Player notes",children:[(0,e.jsx)(n.$n,{icon:"filter",onClick:function(){return x("filter_player_notes")},children:"Apply Filter"}),(0,e.jsx)(n.$n,{icon:"sidebar",onClick:function(){return x("open_legacy_ui")},children:"Open Legacy UI"}),(0,e.jsx)(n.cG,{}),(0,e.jsx)(n.$n.Input,{content:"CKEY to Open",onCommit:function(f,p){return x("show_player_info",{name:p})}}),(0,e.jsx)(n.cG,{vertical:!0}),(0,e.jsx)(n.$n,{color:"green",content:v,onClick:function(){return x("clear_player_info_filter")}}),(0,e.jsx)(n.cG,{}),(0,e.jsx)(n.XI,{children:m.map(function(f){return(0,e.jsx)(n.XI.Row,{children:(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"transparent",icon:"user",content:f.desc,onClick:function(){return x("show_player_info",{name:f.name})},children:f.name})})},f.name)})}),(0,e.jsx)(n.cG,{}),c(function(){for(var f=function(j){p.push((0,e.jsx)(n.$n,{onClick:function(){return x("set_page",{index:j})},children:j},j))},p=[],C=1;C=.5&&"good"||v>.15&&"average"||"bad";return(0,e.jsx)(s.p8,{width:450,height:340,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!h.anchored&&(0,e.jsx)(r.IC,{children:"Generator not anchored."}),(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power switch",children:(0,e.jsx)(r.$n,{icon:h.active?"power-off":"times",onClick:function(){return d("toggle_power")},selected:h.active,disabled:!h.ready_to_boot,children:h.active?"On":"Off"})}),(0,e.jsx)(r.Ki.Item,{label:"Fuel Type",buttons:h.fuel_stored>=1&&(0,e.jsx)(r.$n,{ml:1,icon:"eject",disabled:h.active,onClick:function(){return d("eject")},children:"Eject"}),children:(0,e.jsxs)(r.az,{color:u,children:[h.fuel_stored,"cm\xB3 ",h.sheet_name]})}),(0,e.jsx)(r.Ki.Item,{label:"Current fuel level",children:(0,e.jsxs)(r.z2,{value:h.fuel_stored/h.fuel_capacity,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[h.fuel_stored,"cm\xB3 / ",h.fuel_capacity,"cm\xB3"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Fuel Usage",children:[h.fuel_usage," cm\xB3/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{value:h.temperature_current,maxValue:h.temperature_max+30,color:h.temperature_overheat?"bad":"good",children:[(0,i.LI)(h.temperature_current),"\xB0C"]})})]})}),(0,e.jsx)(r.wn,{title:"Output",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current output",color:h.unsafe_output?"bad":null,children:h.power_output}),(0,e.jsxs)(r.Ki.Item,{label:"Adjust output",children:[(0,e.jsx)(r.$n,{icon:"minus",onClick:function(){return d("lower_power")},children:h.power_generated}),(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return d("higher_power")},children:h.power_generated})]}),(0,e.jsx)(r.Ki.Item,{label:"Power available",children:(0,e.jsx)(r.az,{inline:!0,color:!h.connected&&"bad",children:h.connected?h.power_available:"Unconnected"})})]})})]})})}},60185:function(M,y,t){"use strict";t.r(y),t.d(y,{PortablePump:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=t(62681),a=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=h.direction,u=h.target_pressure,m=h.default_pressure,c=h.min_pressure,f=h.max_pressure;return(0,e.jsx)(r.p8,{width:330,height:375,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(s.PortableBasicInfo,{}),(0,e.jsx)(n.wn,{title:"Pump",buttons:(0,e.jsx)(n.$n,{icon:v?"sign-in-alt":"sign-out-alt",content:v?"In":"Out",selected:v,onClick:function(){return d("direction")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Output",children:(0,e.jsx)(n.Ap,{mt:"0.4em",animated:!0,minValue:c,maxValue:f,value:u,unit:"kPa",stepPixelSize:.3,onChange:function(p,C){return d("pressure",{pressure:C})}})}),(0,e.jsxs)(n.Ki.Item,{label:"Presets",children:[(0,e.jsx)(n.$n,{icon:"minus",disabled:u===c,onClick:function(){return d("pressure",{pressure:"min"})}}),(0,e.jsx)(n.$n,{icon:"sync",disabled:u===m,onClick:function(){return d("pressure",{pressure:"reset"})}}),(0,e.jsx)(n.$n,{icon:"plus",disabled:u===f,onClick:function(){return d("pressure",{pressure:"max"})}})]})]})})]})})}},38605:function(M,y,t){"use strict";t.r(y),t.d(y,{PortableScrubber:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=t(62681),a=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=h.rate,u=h.minrate,m=h.maxrate;return(0,e.jsx)(r.p8,{width:320,height:350,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(s.PortableBasicInfo,{}),(0,e.jsx)(n.wn,{title:"Power Regulator",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Volume Rate",children:(0,e.jsx)(n.Ap,{mt:"0.4em",animated:!0,minValue:u,maxValue:m,value:v,unit:"L/s",onChange:function(c,f){return d("volume_adj",{vol:f})}})})})})]})})}},81537:function(M,y,t){"use strict";t.r(y),t.d(y,{PortableTurret:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.locked,v=d.on,u=d.lethal,m=d.lethal_is_configurable,c=d.targetting_is_configurable,f=d.check_weapons,p=d.neutralize_noaccess,C=d.neutralize_norecord,j=d.neutralize_criminals,O=d.neutralize_all,b=d.neutralize_nonsynth,I=d.neutralize_unidentified,_=d.neutralize_down;return(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.IC,{children:["Swipe an ID card to ",h?"unlock":"lock"," this interface."]}),(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:(0,e.jsx)(n.$n,{icon:v?"power-off":"times",content:v?"On":"Off",selected:v,disabled:h,onClick:function(){return x("power")}})}),!!m&&(0,e.jsx)(n.Ki.Item,{label:"Lethals",children:(0,e.jsx)(n.$n,{icon:u?"exclamation-triangle":"times",content:u?"On":"Off",color:u?"bad":"",disabled:h,onClick:function(){return x("lethal")}})})]})}),!!c&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.wn,{title:"Humanoid Targets",children:[(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:j,content:"Wanted Criminals",disabled:h,onClick:function(){return x("autharrest")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:C,content:"No Sec Record",disabled:h,onClick:function(){return x("authnorecord")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:f,content:"Unauthorized Weapons",disabled:h,onClick:function(){return x("authweapon")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:p,content:"Unauthorized Access",disabled:h,onClick:function(){return x("authaccess")}})]}),(0,e.jsxs)(n.wn,{title:"Other Targets",children:[(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:I,content:"Unidentified Lifesigns (Xenos, Animals, Etc)",disabled:h,onClick:function(){return x("authxeno")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:b,content:"All Non-Synthetics",disabled:h,onClick:function(){return x("authsynth")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:_,content:"Downed Targets",disabled:h,onClick:function(){return x("authdown")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:O,content:"All Entities",disabled:h,onClick:function(){return x("authall")}})]})]})]})})}},16421:function(M,y,t){"use strict";t.r(y),t.d(y,{AreaCharge:function(){return f},PowerMonitor:function(){return u},PowerMonitorContent:function(){return m},PowerMonitorFocus:function(){return c},powerRank:function(){return v}});var e=t(88095),i=t(11358),n=t(28763),r=t(5229),s=t(44583),a=t(4413),g=t(92514),x=t(84905);function d(){return d=Object.assign||function(C){for(var j=1;j50?"battery-half":"battery-quarter")||j===1&&"bolt"||j===2&&"battery-full",color:j===0&&(O>50?"yellow":"red")||j===1&&"yellow"||j===2&&"green"}),(0,e.jsx)(g.az,{inline:!0,width:"36px",textAlign:"right",children:(0,r.Mg)(O)+"%"})]})},p=function(C){var j=C.status,O=!!(j&2),b=!!(j&1),I=(O?"On":"Off")+(" ["+(b?"auto":"manual")+"]");return(0,e.jsx)(g.BK,{color:O?"good":"bad",content:b?void 0:"M",title:I})}},98071:function(M,y,t){"use strict";t.r(y),t.d(y,{PrecisionEditor:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(d){var h=(0,i.Oc)(),v=h.act,u=h.data,m=u.screenstate;return(0,e.jsx)(r.p8,{resizable:!0,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.wn,{title:"Seed status",children:[m==="main"&&(0,e.jsx)(a,{}),m==="colors"&&(0,e.jsx)(g,{}),m==="reagents"&&(0,e.jsx)(x,{})]})})})},a=function(d){var h=(0,i.Oc)(),v=h.act,u=h.data,m=u.health,c=u.plantcolor,f=u.fruitcolor,p=u.chems,C=u.seedname;return(0,e.jsx)(n.Ki,{children:p?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:C}),m<100?(0,e.jsx)(n.Ki.Item,{label:"Genetic Integrity",children:100-m+"%"}):(0,e.jsx)(n.Ki.Item,{label:"Genetic Integrity",children:"UNVIABLE"}),(0,e.jsx)(n.Ki.Item,{label:"Plant Color",children:c}),(0,e.jsx)(n.Ki.Item,{label:"Fruit Color",children:f}),(0,e.jsx)(n.Ki.Divider,{size:2}),(0,e.jsx)(n.Ki.Item,{label:"Chems produced in fruit (click to splice out)",children:p.map(function(j){return(0,e.jsx)(n.$n,{fluid:!0,content:j.displayname,onClick:function(){return v("prune",{gene_name:j.name})}},j.displayname)})}),(0,e.jsx)(n.$n,{content:"Edit Colors",onClick:function(){return v("change_focus",{window:"colors"})}}),(0,e.jsx)(n.$n,{content:"Add Reagents",onClick:function(){return v("change_focus",{window:"reagents"})}}),(0,e.jsx)(n.Ki.Divider,{size:2}),(0,e.jsx)(n.$n,{content:"Eject Seed",onClick:function(){return v("eject")}})]}):(0,e.jsx)(n.Ki.Item,{label:"Waiting",children:"There is currently no seed loaded."})})},g=function(d){var h=(0,i.Oc)(),v=h.act,u=h.data,m=u.plantcolor,c=u.fruitcolor;return(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Plant Color",children:m}),(0,e.jsx)(n.BK,{color:m}),(0,e.jsx)(n.Ki.Item,{label:"Fruit Color",children:c}),(0,e.jsx)(n.BK,{color:c}),(0,e.jsx)(n.$n,{content:"Change plant color",onClick:function(){return v("change_color",{option:0})}}),(0,e.jsx)(n.$n,{content:"Change fruit color",onClick:function(){return v("change_color",{option:1})}}),(0,e.jsx)(n.Ki.Divider,{size:2}),(0,e.jsx)(n.$n,{content:"Return",onClick:function(){return v("change_focus",{window:"main"})}})]})},x=function(d){var h=(0,i.Oc)(),v=h.act,u=h.data,m=u.beakerchems,c=u.health;return(0,e.jsxs)(n.Ki,{children:[c<100?(0,e.jsx)(n.Ki.Item,{label:"Genetic Integrity",children:100-c+"%"}):(0,e.jsx)(n.Ki.Item,{label:"Genetic Integrity",children:"UNVIABLE"}),(0,e.jsxs)(n.IC,{info:1,width:19,height:9,ml:1,children:["Available chems to choose are based on the reagents stored in the beaker. "," A minimum of 100 units of reagent is required to generate a viable sequence. ","The chosen reagent will be consumed in the process.",(0,e.jsx)(n.az,{bold:1,mt:1,children:"This process severely damages genetic integrity."})]}),(0,e.jsxs)(n.az,{width:20,opacity:.5,ml:1,mt:6,mb:2,children:["Plant will produce 1 additional unit for every 25 units beyond 100"," (modified by potency)"]}),m?(0,e.jsxs)(e.Fragment,{children:[c<100?(0,e.jsx)(n.Ki.Item,{label:"Available reagents",children:m.map(function(f){return(0,e.jsx)(n.$n,{fluid:!0,content:f.name,onClick:function(){return v("add_chem",{target_chem:f.id})}},f.name)})}):(0,e.jsx)(n.IC,{warning:1,children:"WARNING: Genetic integrity of seed is too poor to proceed."}),(0,e.jsx)(n.$n,{content:"Eject Beaker",onClick:function(){return v("eject_beaker")}})]}):(0,e.jsx)(n.Ki.Item,{label:"Waiting",children:"There is currently no beaker loaded."}),(0,e.jsx)(n.$n,{content:"Return",onClick:function(){return v("change_focus",{window:"main"})}})]})}},63054:function(M,y,t){"use strict";t.r(y),t.d(y,{PressureRegulator:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.on,v=d.pressure_set,u=d.max_pressure,m=d.input_pressure,c=d.output_pressure,f=d.regulate_mode,p=d.set_flow_rate,C=d.last_flow_rate;return(0,e.jsx)(r.p8,{width:470,height:370,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Input Pressure",children:[(0,e.jsx)(n.zv,{value:m/100})," kPa"]}),(0,e.jsxs)(n.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(n.zv,{value:c/100})," kPa"]}),(0,e.jsxs)(n.Ki.Item,{label:"Flow Rate",children:[(0,e.jsx)(n.zv,{value:C/10})," L/s"]})]})}),(0,e.jsx)(n.wn,{title:"Controls",buttons:(0,e.jsx)(n.$n,{icon:"power-off",content:h?"Unlocked":"Closed",selected:h,onClick:function(){return x("toggle_valve")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Pressure Regulation",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"power-off",content:"Off",selected:f===0,onClick:function(){return x("regulate_mode",{mode:"off"})}}),(0,e.jsx)(n.$n,{icon:"compress-arrows-alt",content:"Input",selected:f===1,onClick:function(){return x("regulate_mode",{mode:"input"})}}),(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",content:"Output",selected:f===2,onClick:function(){return x("regulate_mode",{mode:"output"})}})]})}),(0,e.jsxs)(n.Ki.Item,{label:"Desired Output Pressure",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return x("set_press",{press:"min"})}}),(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return x("set_press",{press:"max"})}}),(0,e.jsx)(n.$n,{icon:"wrench",content:"SET",onClick:function(){return x("set_press",{press:"set"})}})]}),children:[v/100," kPa"]}),(0,e.jsxs)(n.Ki.Item,{label:"Flow Rate Limit",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return x("set_flow_rate",{press:"min"})}}),(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return x("set_flow_rate",{press:"max"})}}),(0,e.jsx)(n.$n,{icon:"wrench",content:"SET",onClick:function(){return x("set_flow_rate",{press:"set"})}})]}),children:[p/10," L/s"]})]})})]})})}},21143:function(M,y,t){"use strict";t.r(y),t.d(y,{PrisonerManagement:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.locked,v=d.chemImplants,u=d.trackImplants;return(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:h&&(0,e.jsxs)(n.wn,{title:"Locked",textAlign:"center",children:["This interface is currently locked.",(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"unlock",onClick:function(){return x("lock")},children:"Unlock"})})]})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Interface Lock",buttons:(0,e.jsx)(n.$n,{icon:"lock",onClick:function(){return x("lock")},children:"Lock Interface"})}),(0,e.jsx)(n.wn,{title:"Chemical Implants",children:v.length&&(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Units Remaining"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Inject"})]}),v.map(function(m){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:m.host}),(0,e.jsxs)(n.XI.Cell,{textAlign:"center",children:[m.units,"u remaining"]}),(0,e.jsxs)(n.XI.Cell,{textAlign:"center",children:[(0,e.jsx)(n.$n,{onClick:function(){return x("inject",{imp:m.ref,val:1})},children:"(1)"}),(0,e.jsx)(n.$n,{onClick:function(){return x("inject",{imp:m.ref,val:5})},children:"(5)"}),(0,e.jsx)(n.$n,{onClick:function(){return x("inject",{imp:m.ref,val:10})},children:"(10)"})]})]},m.ref)})]})||(0,e.jsx)(n.az,{color:"average",children:"No chemical implants found."})}),(0,e.jsx)(n.wn,{title:"Tracking Implants",children:u.length&&(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Location"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Message"})]}),u.map(function(m){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{textAlign:"center",children:[m.host," (",m.id,")"]}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:m.loc}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:(0,e.jsx)(n.$n,{onClick:function(){return x("warn",{imp:m.ref})},children:"Message"})})]},m.ref)})]})||(0,e.jsx)(n.az,{color:"average",children:"No chemical implants found."})})]})})})}},72128:function(M,y,t){"use strict";t.r(y),t.d(y,{RCON:function(){return h},RCONContent:function(){return v}});var e=t(88095),i=t(5229),n=t(33854),r=t(44583),s=t(4413),a=t(92514),g=t(24158),x=t(84905),d=1e3,h=function(p){return(0,e.jsx)(x.p8,{width:630,height:540,children:(0,e.jsx)(x.p8.Content,{scrollable:!0,children:(0,e.jsx)(v,{})})})},v=function(p){var C=(0,r.useState)(0),j=C[0],O=C[1],b;return j===0?b=(0,e.jsx)(u,{}):j===1&&(b=(0,e.jsx)(f,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.tU,{children:[(0,e.jsxs)(a.tU.Tab,{selected:j===0,onClick:function(){return O(0)},children:[(0,e.jsx)(a.In,{name:"power-off"})," SMESs"]},"SMESs"),(0,e.jsxs)(a.tU.Tab,{selected:j===1,onClick:function(){return O(1)},children:[(0,e.jsx)(a.In,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,e.jsx)(a.az,{m:2,children:b})]})},u=function(p){var C=(0,s.Oc)(),j=C.act,O=C.data,b=O.smes_info,I=O.pages,_=O.current_page,S=function(P){return P()};return(0,e.jsxs)(a.wn,{title:"SMESs (Page "+_+")",children:[(0,e.jsx)(a.BJ,{vertical:!0,children:b.map(function(P){return(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(m,{smes:P})},P.RCON_tag)})}),"Page Selection:",(0,e.jsx)("br",{}),S(function(){for(var P=function(K){A.push((0,e.jsx)(a.$n,{selected:_===K,onClick:function(){return j("set_smes_page",{index:K})},children:K},K))},A=[],R=1;R=2?(0,e.jsx)(r.az,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsxs)(r.so.Item,{grow:1,children:[(0,e.jsxs)(r.az,{color:"average",children:["Engage: ",j.engagecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Active: ",j.activecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Passive: ",j.passivecost]})]}),(0,e.jsx)(r.so.Item,{grow:1,children:j.desc})]}),j.charges?(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.wn,{title:"Module Charges",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Selected",children:(0,i.ZH)(j.chargetype)}),j.charges.map(function(b,I){return(0,e.jsx)(r.Ki.Item,{label:(0,i.ZH)(b.caption),children:(0,e.jsx)(r.$n,{selected:j.realchargetype===b.index,icon:"arrow-right",onClick:function(){return u("interact_module",{module:j.index,module_mode:"select_charge_type",charge_type:b.index})}})},b.caption)})]})})}):null]},j.name)})]})}},51065:function(M,y,t){"use strict";t.r(y),t.d(y,{Radio:function(){return g}});var e=t(88095),i=t(5229),n=t(4413),r=t(92514),s=t(1568),a=t(84905),g=function(x){var d=(0,n.Oc)(),h=d.act,v=d.data,u=v.rawfreq,m=v.minFrequency,c=v.maxFrequency,f=v.listening,p=v.broadcasting,C=v.subspace,j=v.subspaceSwitchable,O=v.chan_list,b=v.loudspeaker,I=v.mic_cut,_=v.spk_cut,S=v.useSyndMode,P=s.Fo.find(function(R){return R.freq===Number(u)}),A=156;return O&&O.length>0?A+=O.length*28+6:A+=24,j&&(A+=38),(0,e.jsx)(a.p8,{width:310,height:A,resizable:!0,theme:S?"syndicate":"",children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Frequency",children:[(0,e.jsx)(r.Q7,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:m/10,maxValue:c/10,value:u/10,format:function(R){return(0,i.Mg)(R,1)},onDrag:function(R,K){return h("setFrequency",{freq:(0,i.LI)(K*10)})}}),P&&(0,e.jsxs)(r.az,{inline:!0,color:P.color,ml:2,children:["[",P.name,"]"]})]}),(0,e.jsxs)(r.Ki.Item,{label:"Audio",children:[(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:f?"volume-up":"volume-mute",selected:f,disabled:_,onClick:function(){return h("listen")}}),(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:p?"microphone":"microphone-slash",selected:p,disabled:I,onClick:function(){return h("broadcast")}}),!!j&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"bullhorn",selected:C,content:"Subspace Tx "+(C?"ON":"OFF"),onClick:function(){return h("subspace")}})}),!!j&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:b?"volume-up":"volume-mute",selected:b,content:"Loudspeaker",onClick:function(){return h("toggleLoudspeaker")}})})]})]})}),(0,e.jsxs)(r.wn,{title:"Channels",children:[(!O||O.length===0)&&(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"No channels detected."}),(0,e.jsx)(r.Ki,{children:O?O.map(function(R){var K=s.Fo.find(function(k){return k.freq===Number(R.freq)}),N="default";return K&&(N=K.color),(0,e.jsx)(r.Ki.Item,{label:R.display_name,labelColor:N,textAlign:"right",children:R.secure_channel&&C?(0,e.jsx)(r.$n,{icon:R.sec_channel_listen?"square-o":"check-square-o",selected:!R.sec_channel_listen,content:R.sec_channel_listen?"Off":"On",onClick:function(){return h("channel",{channel:R.chan})}}):(0,e.jsx)(r.$n,{content:"Switch",selected:R.chan===u,onClick:function(){return h("specFreq",{channel:R.chan})}})},R.chan)}):null})]})]})})}},62133:function(M,y,t){"use strict";t.r(y),t.d(y,{ICON_BY_CATEGORY_NAME:function(){return d},RapidPipeDispenser:function(){return c}});var e=t(88095),i=t(84352),n=t(33854),r=t(44583),s=t(4413),a=t(92514),g=t(84905),x=["Atmospherics","Disposals"],d={Atmospherics:"wrench",Disposals:"trash-alt","Transit Tubes":"bus",Pipes:"grip-lines","Disposal Pipes":"grip-lines",Devices:"microchip","Heat Exchange":"thermometer-half","Insulated pipes":"snowflake","Station Equipment":"microchip"},h=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}],v=function(f){var p=(0,s.Oc)(),C=p.act,j=p.data,O=j.category,b=j.selected_color,I=j.mode;return(0,e.jsx)(a.wn,{children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Category",children:x.map(function(_,S){return(0,e.jsx)(a.$n,{selected:O===S,icon:d[_],color:"transparent",onClick:function(){return C("category",{category:S})},children:_},_)})}),(0,e.jsx)(a.Ki.Item,{label:"Modes",children:(0,e.jsx)(a.BJ,{fill:!0,children:h.map(function(_){return(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.$n.Checkbox,{checked:I&_.bitmask,fluid:!0,content:_.name,onClick:function(){return C("mode",{mode:_.bitmask})}})},_.bitmask)})})}),(0,e.jsxs)(a.Ki.Item,{label:"Color",children:[(0,e.jsx)(a.az,{inline:!0,width:"64px",color:j.paint_colors[b],children:(0,n.ZH)(b)}),Object.keys(j.paint_colors).map(function(_){return(0,e.jsx)(a.BK,{ml:1,color:j.paint_colors[_],onClick:function(){return C("color",{paint_color:_})}},_)})]})]})})},u=function(f){var p=(0,s.Oc)(),C=p.act,j=p.data,O=j.category,b=j.piping_layer,I=j.pipe_layers,_=j.preview_rows.flatMap(function(S){return S.previews});return(0,e.jsxs)(a.wn,{fill:!0,width:7.5,children:[O===0&&(0,e.jsx)(a.BJ,{vertical:!0,mb:1,children:Object.keys(I).map(function(S){return(0,e.jsx)(a.BJ.Item,{my:0,children:(0,e.jsx)(a.$n.Checkbox,{checked:I[S]===b,content:S,onClick:function(){return C("piping_layer",{piping_layer:I[S]})}})},S)})}),(0,e.jsx)(a.az,{width:"120px",children:_.map(function(S){return(0,e.jsx)(a.$n,{ml:0,title:S.dir_name,selected:S.selected,style:{width:"40px",height:"40px",padding:0},onClick:function(){return C("setdir",{dir:S.dir,flipped:S.flipped})},children:(0,e.jsx)(a.az,{className:(0,i.Ly)(["pipes32x32",S.dir+"-"+S.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},S.dir)})})]})},m=function(f){var p=(0,s.Oc)(),C=p.act,j=p.data,O=j.categories,b=O===void 0?[]:O,I=(0,r.useState)("categoryName"),_=I[0],S=I[1],P=b.find(function(A){return A.cat_name===_})||b[0];return(0,e.jsxs)(a.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(a.tU,{children:b.map(function(A,R){return(0,e.jsx)(a.tU.Tab,{fluid:!0,icon:d[A.cat_name],selected:A.cat_name===P.cat_name,onClick:function(){return S(A.cat_name)},children:A.cat_name},A.cat_name)})}),P==null?void 0:P.recipes.map(function(A){return(0,e.jsx)(a.$n.Checkbox,{fluid:!0,ellipsis:!0,checked:A.selected,content:A.pipe_name,title:A.pipe_name,onClick:function(){return C("pipe_type",{pipe_type:A.pipe_index,category:P.cat_name})}},A.pipe_index)})]})},c=function(f){var p=(0,s.Oc)(),C=p.act,j=p.data,O=j.category;return(0,e.jsx)(g.p8,{width:550,height:570,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(v,{})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsxs)(a.BJ,{fill:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.BJ,{vertical:!0,fill:!0,children:(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(u,{})})})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(m,{})})]})})]})})})}},53112:function(M,y,t){"use strict";t.r(y),t.d(y,{RequestConsole:function(){return R}});var e=t(88095),i=t(33854),n=t(4413),r=t(92514),s=t(84905),a=0,g=1,x=2,d=3,h=4,v=5,u=6,m=7,c=8,f=function(K){var N=(0,n.Oc)(),k=N.act,X=N.data,F=X.silent;return(0,e.jsx)(r.wn,{title:"Settings",children:(0,e.jsxs)(r.$n,{selected:!F,icon:F?"volume-mute":"volume-up",onClick:function(){return k("toggleSilent")},children:["Speaker ",F?"OFF":"ON"]})})},p=function(K){var N=(0,n.Oc)(),k=N.act,X=N.data,F=X.department,J=X.supply_dept;return(0,e.jsx)(r.wn,{title:"Supplies",children:(0,e.jsx)(O,{dept_list:J,department:F})})},C=function(K){var N=(0,n.Oc)(),k=N.act,X=N.data,F=X.department,J=X.assist_dept;return(0,e.jsx)(r.wn,{title:"Request assistance from another department",children:(0,e.jsx)(O,{dept_list:J,department:F})})},j=function(K){var N=(0,n.Oc)(),k=N.act,X=N.data,F=X.department,J=X.info_dept;return(0,e.jsx)(r.wn,{title:"Report Anonymous Information",children:(0,e.jsx)(O,{dept_list:J,department:F})})},O=function(K){var N=(0,n.Oc)().act,k=K.dept_list,X=K.department;return(0,e.jsx)(r.Ki,{children:k.sort().map(function(F){return F!==X&&(0,e.jsx)(r.Ki.Item,{label:F,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"envelope-open-text",onClick:function(){return N("write",{write:F,priority:1})},children:"Message"}),(0,e.jsx)(r.$n,{icon:"exclamation-triangle",onClick:function(){return N("write",{write:F,priority:2})},children:"High Priority"})]})})||null})})},b=function(K){var N=(0,n.Oc)(),k=N.act,X=N.data;return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"arrow-right",onClick:function(){return k("setScreen",{setScreen:a})},children:"Continue"})})]})},I=function(K){var N=(0,n.Oc)(),k=N.act,X=N.data;return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"arrow-right",onClick:function(){return k("setScreen",{setScreen:a})},children:"Continue"})})]})},_=function(K){var N=(0,n.Oc)(),k=N.act,X=N.data,F=X.message_log;return(0,e.jsx)(r.wn,{title:"Messages",children:F.length&&F.map(function(J,H){return(0,e.jsx)(r.Ki.Item,{label:(0,i.jT)(J[0]),buttons:(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return k("print",{print:H+1})},children:"Print"}),children:(0,i.jT)(J[1])},H)})||(0,e.jsx)(r.az,{children:"No messages."})})},S=function(K){var N=(0,n.Oc)(),k=N.act,X=N.data,F=X.message,J=X.recipient,H=X.priority,Q=X.msgStamped,Z=X.msgVerified;return(0,e.jsxs)(r.wn,{title:"Message Authentication",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Message for "+J,children:F}),(0,e.jsx)(r.Ki.Item,{label:"Priority",children:H===2?"High Priority":H===1?"Normal Priority":"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Validated By",color:Z?"good":"bad",children:(0,i.jT)(Z)||"No Validation"}),(0,e.jsx)(r.Ki.Item,{label:"Stamped By",color:Q?"good":"bad",children:(0,i.jT)(Q)||"No Stamp"})]}),(0,e.jsx)(r.$n,{mt:1,icon:"share",onClick:function(){return k("department",{department:J})},children:"Send Message"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return k("setScreen",{setScreen:a})},children:"Back"})]})},P=function(K){var N=(0,n.Oc)(),k=N.act,X=N.data,F=X.department,J=X.screen,H=X.message_log,Q=X.newmessagepriority,Z=X.silent,V=X.announcementConsole,z=X.assist_dept,Y=X.supply_dept,ee=X.info_dept,oe=X.message,ne=X.recipient,ce=X.priority,de=X.msgStamped,ve=X.msgVerified,pe=X.announceAuth;return(0,e.jsxs)(r.wn,{title:"Send Station-Wide Announcement",children:[pe&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{bold:!0,color:"good",mb:1,children:"ID Verified. Authentication Accepted."}),(0,e.jsx)(r.wn,{title:"Message",mt:1,maxHeight:"200px",scrollable:!0,buttons:(0,e.jsx)(r.$n,{ml:1,icon:"pen",onClick:function(){return k("writeAnnouncement")},children:"Edit"}),children:oe||"No Message"})]})||(0,e.jsx)(r.az,{bold:!0,color:"bad",mb:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.jsx)(r.$n,{disabled:!oe||!pe,icon:"share",onClick:function(){return k("sendAnnouncement")},children:"Announce"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return k("setScreen",{setScreen:a})},children:"Back"})]})},A={};A[a]=f,A[g]=C,A[x]=p,A[d]=j,A[h]=b,A[v]=I,A[u]=_,A[m]=S,A[c]=P;var R=function(K){var N=(0,n.Oc)(),k=N.act,X=N.data,F=X.screen,J=X.newmessagepriority,H=X.announcementConsole,Q=A[F];return(0,e.jsx)(s.p8,{width:520,height:410,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:F===u,onClick:function(){return k("setScreen",{setScreen:u})},icon:"envelope-open-text",children:"Messages"}),(0,e.jsx)(r.tU.Tab,{selected:F===g,onClick:function(){return k("setScreen",{setScreen:g})},icon:"share-square",children:"Assistance"}),(0,e.jsx)(r.tU.Tab,{selected:F===x,onClick:function(){return k("setScreen",{setScreen:x})},icon:"share-square",children:"Supplies"}),(0,e.jsx)(r.tU.Tab,{selected:F===d,onClick:function(){return k("setScreen",{setScreen:d})},icon:"share-square-o",children:"Report"}),H&&(0,e.jsx)(r.tU.Tab,{selected:F===c,onClick:function(){return k("setScreen",{setScreen:c})},icon:"volume-up",children:"Announce"})||null,(0,e.jsx)(r.tU.Tab,{selected:F===a,onClick:function(){return k("setScreen",{setScreen:a})},icon:"cog"})]}),J&&(0,e.jsx)(r.wn,{title:J>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:J>1?"bad":"average",bold:J>1})||null,(0,e.jsx)(Q,{})]})})}},51634:function(M,y,t){"use strict";t.r(y),t.d(y,{ResearchConsole:function(){return O}});var e=t(88095),i=t(33854),n=t(44583),r=t(4413),s=t(92514),a=t(84905),g=function(b){var I=(0,r.Oc)(),_=I.act,S=I.data,P=S.tech;return(0,e.jsx)(s.wn,{title:"Current Research Levels",buttons:(0,e.jsx)(s.$n,{icon:"print",onClick:function(){return _("print",{print:1})},children:"Print This Page"}),children:(0,e.jsx)(s.XI,{children:P.map(function(A){return(0,e.jsxs)(s.XI.Row,{children:[(0,e.jsxs)(s.XI.Cell,{children:[(0,e.jsx)(s.az,{color:"label",children:A.name}),(0,e.jsxs)(s.az,{children:[" - Level ",A.level]})]}),(0,e.jsx)(s.XI.Cell,{children:(0,e.jsx)(s.az,{color:"label",children:A.desc})})]},A.name)})})})},x=function(b){var I=(0,r.Oc)().data,_=b.title,S=b.target,P=I[S];return typeof P=="number"?_+" - Page "+(P+1):_},d=function(b){var I=(0,r.Oc)().act,_=b.target;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.$n,{icon:"undo",onClick:function(){return I(_,{reset:!0})}}),(0,e.jsx)(s.$n,{icon:"chevron-left",onClick:function(){return I(_,{reverse:-1})}}),(0,e.jsx)(s.$n,{icon:"chevron-right",onClick:function(){return I(_,{reverse:1})}})]})},h=function(b){var I=(0,r.Oc)(),_=I.act,S=I.data,P=S.designs;return(0,e.jsxs)(s.wn,{title:(0,e.jsx)(x,{title:"Researched Technologies & Designs",target:"design_page"}),buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.$n,{icon:"print",onClick:function(){return _("print",{print:2})},children:"Print This Page"}),(0,e.jsx)(d,{target:"design_page"})||null]}),children:[(0,e.jsx)(s.pd,{fluid:!0,placeholder:"Search for...",value:S.search,onInput:function(A,R){return _("search",{search:R})},mb:1}),P&&P.length&&(0,e.jsx)(s.Ki,{children:P.map(function(A){return(0,e.jsx)(s.Ki.Item,{label:A.name,children:A.desc},A.name)})})||(0,e.jsx)(s.az,{color:"warning",children:"No designs found."})]})},v=function(b){var I=(0,r.Oc)(),_=I.act,S=I.data,P=S.tech,A=b.disk;return!A||!A.present?null:b.saveDialog?(0,e.jsx)(s.wn,{title:"Load Technology to Disk",buttons:(0,e.jsx)(s.$n,{icon:"arrow-left",content:"Back",onClick:function(){return b.onSaveDialog(!1)}}),children:(0,e.jsx)(s.Ki,{children:P.map(function(R){return(0,e.jsx)(s.Ki.Item,{label:R.name,children:(0,e.jsx)(s.$n,{icon:"save",onClick:function(){b.onSaveDialog(!1),_("copy_tech",{copy_tech_ID:R.id})},children:"Copy To Disk"})},R.name)})})}):(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.Ki,{children:(0,e.jsx)(s.Ki.Item,{label:"Disk Contents",children:"(Technology Data Disk)"})}),A.stored&&(0,e.jsxs)(s.az,{mt:2,children:[(0,e.jsx)(s.az,{children:A.name}),(0,e.jsxs)(s.az,{children:["Level: ",A.level]}),(0,e.jsxs)(s.az,{children:["Description: ",A.desc]}),(0,e.jsxs)(s.az,{mt:1,children:[(0,e.jsx)(s.$n,{icon:"save",onClick:function(){return _("updt_tech")},children:"Upload to Database"}),(0,e.jsx)(s.$n,{icon:"trash",onClick:function(){return _("clear_tech")},children:"Clear Disk"}),(0,e.jsx)(s.$n,{icon:"eject",onClick:function(){return _("eject_tech")},children:"Eject Disk"})]})]})||(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.az,{children:"This disk has no data stored on it."}),(0,e.jsx)(s.$n,{icon:"save",onClick:function(){return b.onSaveDialog(!0)},children:"Load Tech To Disk"}),(0,e.jsx)(s.$n,{icon:"eject",onClick:function(){return _("eject_tech")},children:"Eject Disk"})]})]})},u=function(b){var I=(0,r.Oc)(),_=I.act,S=I.data,P=S.designs,A=b.disk;return!A||!A.present?null:b.saveDialog?(0,e.jsxs)(s.wn,{title:(0,e.jsx)(x,{title:"Load Design to Disk",target:"design_page"}),buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.$n,{icon:"arrow-left",content:"Back",onClick:function(){return b.onSaveDialog(!1)}}),(0,e.jsx)(d,{target:"design_page"})||null]}),children:[(0,e.jsx)(s.pd,{fluid:!0,placeholder:"Search for...",value:S.search,onInput:function(R,K){return _("search",{search:K})},mb:1}),P&&P.length&&(0,e.jsx)(s.Ki,{children:P.map(function(R){return(0,e.jsx)(s.Ki.Item,{label:R.name,children:(0,e.jsx)(s.$n,{icon:"save",onClick:function(){b.onSaveDialog(!1),_("copy_design",{copy_design_ID:R.id})},children:"Copy To Disk"})},R.name)})})||(0,e.jsx)(s.az,{color:"warning",children:"No designs found."})]}):(0,e.jsx)(s.az,{children:A.stored&&(0,e.jsxs)(s.az,{children:[(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(s.Ki.Item,{label:"Name",children:A.name}),(0,e.jsx)(s.Ki.Item,{label:"Lathe Type",children:A.build_type}),(0,e.jsx)(s.Ki.Item,{label:"Required Materials",children:Object.keys(A.materials).map(function(R){return(0,e.jsxs)(s.az,{children:[R," x ",A.materials[R]]},R)})})]}),(0,e.jsxs)(s.az,{mt:1,children:[(0,e.jsx)(s.$n,{icon:"save",onClick:function(){return _("updt_design")},children:"Upload to Database"}),(0,e.jsx)(s.$n,{icon:"trash",onClick:function(){return _("clear_design")},children:"Clear Disk"}),(0,e.jsx)(s.$n,{icon:"eject",onClick:function(){return _("eject_design")},children:"Eject Disk"})]})]})||(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.az,{mb:.5,children:"This disk has no data stored on it."}),(0,e.jsx)(s.$n,{icon:"save",onClick:function(){return b.onSaveDialog(!0)},children:"Load Design To Disk"}),(0,e.jsx)(s.$n,{icon:"eject",onClick:function(){return _("eject_design")},children:"Eject Disk"})]})})},m=function(b){var I=(0,r.Oc)(),_=I.act,S=I.data,P=S.info,A=P.d_disk,R=P.t_disk;return!A.present&&!R.present?(0,e.jsx)(s.wn,{title:"Disk Operations",children:"No disk inserted."}):(0,e.jsxs)(s.wn,{title:"Disk Operations",children:[(0,e.jsx)(v,{disk:R,saveDialog:b.saveDialogTech,onSaveDialog:b.onSaveDialogTech}),(0,e.jsx)(u,{disk:A,saveDialog:SaveDialogDesign,onSaveDialog:onSaveDialogDesign})]})},c=function(b){var I=(0,r.Oc)(),_=I.act,S=I.data,P=S.info.linked_destroy;if(!P.present)return(0,e.jsx)(s.wn,{title:"Destructive Analyzer",children:"No destructive analyzer found."});var A=P.loaded_item,R=P.origin_tech;return(0,e.jsx)(s.wn,{title:"Destructive Analyzer",children:A&&(0,e.jsxs)(s.az,{children:[(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(s.Ki.Item,{label:"Name",children:A}),(0,e.jsx)(s.Ki.Item,{label:"Origin Tech",children:(0,e.jsx)(s.Ki,{children:R.length&&R.map(function(K){return(0,e.jsxs)(s.Ki.Item,{label:K.name,children:[K.level,"\xA0\xA0",K.current&&"(Current: "+K.current+")"]},K.name)})||(0,e.jsx)(s.Ki.Item,{label:"Error",children:"No origin tech found."})})})]}),(0,e.jsx)(s.$n,{mt:1,color:"red",icon:"eraser",onClick:function(){return _("deconstruct")},children:"Deconstruct Item"}),(0,e.jsx)(s.$n,{icon:"eject",onClick:function(){return _("eject_item")},children:"Eject Item"})]})||(0,e.jsx)(s.az,{children:"No Item Loaded. Standing-by..."})})},f=function(b){var I=(0,r.Oc)(),_=I.act,S=I.data,P=b.target,A=b.designs,R=b.buildName,K=b.buildFiveName;return P?(0,e.jsxs)(s.wn,{title:(0,e.jsx)(x,{target:"builder_page",title:"Designs"}),buttons:(0,e.jsx)(d,{target:"builder_page"}),children:[(0,e.jsx)(s.pd,{fluid:!0,placeholder:"Search for...",value:S.search,onInput:function(N,k){return _("search",{search:k})},mb:1}),A&&A.length?A.map(function(N){return(0,e.jsxs)(n.Fragment,{children:[(0,e.jsxs)(s.so,{width:"100%",justify:"space-between",children:[(0,e.jsx)(s.so.Item,{width:"40%",style:{"word-wrap":"break-all"},children:N.name}),(0,e.jsxs)(s.so.Item,{width:"15%",textAlign:"center",children:[(0,e.jsx)(s.$n,{mb:-1,icon:"wrench",onClick:function(){return _(R,{build:N.id,imprint:N.id})},children:"Build"}),K&&(0,e.jsx)(s.$n,{mb:-1,onClick:function(){return _(K,{build:N.id,imprint:N.id})},children:"x5"})]}),(0,e.jsxs)(s.so.Item,{width:"45%",style:{"word-wrap":"break-all"},children:[(0,e.jsx)(s.az,{inline:!0,color:"label",children:N.mat_list.join(" ")}),(0,e.jsx)(s.az,{inline:!0,color:"average",ml:1,children:N.chem_list.join(" ")})]})]}),(0,e.jsx)(s.cG,{})]},N.id)}):(0,e.jsx)(s.az,{children:"No items could be found matching the parameters (page or search)."})]}):(0,e.jsx)(s.az,{color:"bad",children:"Error"})},p=function(b){var I=(0,r.Oc)(),_=I.act,S=I.data,P=b.name,A=null,R=null;if(P==="Protolathe"?(A=S.info.linked_lathe,R=S.lathe_designs):(A=S.info.linked_imprinter,R=S.imprinter_designs),!A||!A.present)return(0,e.jsxs)(s.wn,{title:P,children:["No ",P," found."]});var K=A.total_materials,N=A.max_materials,k=A.total_volume,X=A.max_volume,F=A.busy,J=A.mats,H=A.reagents,Q=A.queue,Z="transparent",V=!1,z="layer-group";F?(z="hammer",Z="average",V=!0):Q&&Q.length&&(z="sync",Z="green",V=!0);var Y=P==="Protolathe"?"removeP":"removeI",ee=P==="Protolathe"?"lathe_ejectsheet":"imprinter_ejectsheet",oe=P==="Protolathe"?"disposeP":"disposeI",ne=P==="Protolathe"?"disposeallP":"disposeallI";return(0,e.jsxs)(s.wn,{title:P,buttons:F&&(0,e.jsx)(s.In,{name:"sync",spin:!0})||null,children:[(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(s.Ki.Item,{label:"Materials",children:(0,e.jsxs)(s.z2,{value:K,maxValue:N,children:[K," cm\xB3 / ",N," cm\xB3"]})}),(0,e.jsx)(s.Ki.Item,{label:"Chemicals",children:(0,e.jsxs)(s.z2,{value:k,maxValue:X,children:[k,"u / ",X,"u"]})})]}),(0,e.jsxs)(s.tU,{mt:1,children:[(0,e.jsx)(s.tU.Tab,{icon:"wrench",selected:b.protoTab===0,onClick:function(){return b.onProtoTab(0)},children:"Build"}),(0,e.jsx)(s.tU.Tab,{icon:z,iconSpin:V,color:Z,selected:b.protoTab===1,onClick:function(){return b.onProtoTab(1)},children:"Queue"}),(0,e.jsx)(s.tU.Tab,{icon:"cookie-bite",selected:b.protoTab===2,onClick:function(){return b.onProtoTab(2)},children:"Mat Storage"}),(0,e.jsx)(s.tU.Tab,{icon:"flask",selected:b.protoTab===3,onClick:function(){return b.onProtoTab(3)},children:"Chem Storage"})]}),b.protoTab===0&&(0,e.jsx)(f,{target:A,designs:R,buildName:P==="Protolathe"?"build":"imprint",buildFiveName:P==="Protolathe"?"buildfive":null})||b.protoTab===1&&(0,e.jsx)(s.Ki,{children:Q.length&&Q.map(function(ce,de){return ce.index===1?(0,e.jsx)(s.Ki.Item,{label:ce.name,labelColor:"bad",children:F?(0,e.jsx)(s.$n,{disabled:!0,icon:"trash",children:"Remove"}):(0,e.jsxs)(s.az,{children:["(Awaiting Materials)",(0,e.jsx)(s.$n,{ml:1,icon:"trash",onClick:function(){var ve;return _(Y,(ve={},ve[Y]=ce.index,ve))},children:"Remove"})]})},de):(0,e.jsx)(s.Ki.Item,{label:ce.name,children:(0,e.jsx)(s.$n,{icon:"trash",onClick:function(){var ve;return _(Y,(ve={},ve[Y]=ce.index,ve))},children:"Remove"})},ce.name)})||(0,e.jsx)(s.az,{m:1,children:"Queue Empty."})})||b.protoTab===2&&(0,e.jsx)(s.Ki,{children:J.map(function(ce){var de=(0,n.useState)(0),ve=de[0],pe=de[1];return(0,e.jsxs)(s.Ki.Item,{label:(0,i.Sn)(ce.name),buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.Q7,{minValue:0,width:"100px",value:ve,maxValue:ce.sheets,onDrag:function(me,be){return pe(be)}}),(0,e.jsx)(s.$n,{icon:"eject",disabled:!ce.removable,onClick:function(){pe(0);var me;_(ee,(me={},me[ee]=ce.name,me.amount=ve,me))},children:"Num"}),(0,e.jsx)(s.$n,{icon:"eject",disabled:!ce.removable,onClick:function(){var me;return _(ee,(me={},me[ee]=ce.name,me.amount=50,me))},children:"All"})]}),children:[ce.amount," cm\xB3"]},ce.name)})})||b.protoTab===3&&(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.Ki,{children:H.length&&H.map(function(ce){return(0,e.jsxs)(s.Ki.Item,{label:ce.name,children:[ce.volume,"u",(0,e.jsx)(s.$n,{ml:1,icon:"eject",onClick:function(){return _(oe,{dispose:ce.id})},children:"Purge"})]},ce.name)})||(0,e.jsx)(s.Ki.Item,{label:"Empty",children:"No chems detected"})}),(0,e.jsx)(s.$n,{mt:1,icon:"trash",onClick:function(){return _(ne)},children:"Disposal All Chemicals In Storage"})]})||(0,e.jsx)(s.az,{children:"Error"})]})},C=function(b){var I=(0,r.Oc)(),_=I.act,S=I.data,P=S.info,A=P.sync,R=P.linked_destroy,K=P.linked_imprinter,N=P.linked_lathe;return(0,e.jsxs)(s.wn,{title:"Settings",children:[(0,e.jsxs)(s.tU,{children:[(0,e.jsx)(s.tU.Tab,{icon:"cogs",onClick:function(){return b.onSettingsTab(0)},selected:b.settingsTab===0,children:"General"}),(0,e.jsx)(s.tU.Tab,{icon:"link",onClick:function(){return b.onSettingsTab(1)},selected:b.settingsTab===1,children:"Device Linkages"})]}),b.settingsTab===0&&(0,e.jsxs)(s.az,{children:[A&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.$n,{fluid:!0,icon:"sync",onClick:function(){return _("sync")},children:"Sync Database with Network"}),(0,e.jsx)(s.$n,{fluid:!0,icon:"unlink",onClick:function(){return _("togglesync")},children:"Disconnect from Research Network"})]})||(0,e.jsx)(s.$n,{fluid:!0,icon:"link",onClick:function(){return _("togglesync")},children:"Connect to Research Network"}),(0,e.jsx)(s.$n,{fluid:!0,icon:"lock",onClick:function(){return _("lock")},children:"Lock Console"}),(0,e.jsx)(s.$n,{fluid:!0,color:"red",icon:"trash",onClick:function(){return _("reset")},children:"Reset R&D Database"})]})||b.settingsTab===1&&(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.$n,{fluid:!0,icon:"sync",mb:1,onClick:function(){return _("find_device")},children:"Re-sync with Nearby Devices"}),(0,e.jsxs)(s.Ki,{children:[R.present&&(0,e.jsx)(s.Ki.Item,{label:"Destructive Analyzer",children:(0,e.jsx)(s.$n,{icon:"unlink",onClick:function(){return _("disconnect",{disconnect:"destroy"})},children:"Disconnect"})})||null,N.present&&(0,e.jsx)(s.Ki.Item,{label:"Protolathe",children:(0,e.jsx)(s.$n,{icon:"unlink",onClick:function(){return _("disconnect",{disconnect:"lathe"})},children:"Disconnect"})})||null,K.present&&(0,e.jsx)(s.Ki.Item,{label:"Circuit Imprinter",children:(0,e.jsx)(s.$n,{icon:"unlink",onClick:function(){return _("disconnect",{disconnect:"imprinter"})},children:"Disconnect"})})||null]})]})||(0,e.jsx)(s.az,{children:"Error"})]})},j=[{name:"Protolathe",icon:"wrench"},{name:"Circuit Imprinter",icon:"digital-tachograph"},{name:"Destructive Analyzer",icon:"eraser"},{name:"Settings",icon:"cog"},{name:"Research List",icon:"flask"},{name:"Design List",icon:"file"},{name:"Disk Operations",icon:"save"}],O=function(b){var I=(0,r.Oc)(),_=I.act,S=I.data,P=S.busy_msg,A=S.locked,R=(0,r.QY)("rdmenu",0),K=R[0],N=R[1],k=(0,r.QY)("protoTab",0),X=k[0],F=k[1],J=(0,r.QY)("settingsTab",0),H=J[0],Q=J[1],Z=(0,r.QY)("saveDialogTech",!1),V=Z[0],z=Z[1],Y=(0,r.QY)("saveDialogData",!1),ee=Y[0],oe=Y[1],ne=!1;return(P||A)&&(ne=!0),(0,e.jsx)(a.p8,{width:850,height:630,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(s.tU,{children:j.map(function(ce,de){return(0,e.jsx)(s.tU.Tab,{icon:ce.icon,selected:K===de,settingsTab:H,onClick:function(){return N(de)},children:ce.name},de)})}),P&&(0,e.jsx)(s.wn,{title:"Processing...",children:P})||A&&(0,e.jsx)(s.wn,{title:"Console Locked",children:(0,e.jsx)(s.$n,{onClick:function(){return _("lock")},icon:"lock-open",children:"Unlock"})})||(K===0?(0,e.jsx)(p,{name:"Protolathe",protoTab:X,onProtoTab:F}):"")||K===1&&(0,e.jsx)(p,{name:"Circuit Imprinter",protoTab:X,onProtoTab:F})||K===2&&(0,e.jsx)(c,{name:"Circuit Imprinter"})||K===3&&(0,e.jsx)(C,{settingsTab:H,onSettingsTab:Q})||K===4&&(0,e.jsx)(g,{})||K===5&&(0,e.jsx)(h,{})||K===6&&(0,e.jsx)(m,{saveDialogTech:V,saveDialogDesign:ee,onSaveDialogTech:z,onSaveDialogDesign:oe})]})})}},98296:function(M,y,t){"use strict";t.r(y),t.d(y,{ResearchServerController:function(){return a}});var e=t(88095),i=t(11358),n=t(4413),r=t(92514),s=t(84905),a=function(u){var m=(0,n.Oc)(),c=m.act,f=m.data;return(0,e.jsx)(s.p8,{width:575,height:430,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(g,{})})})},g=function(u){var m=(0,n.Oc)(),c=m.act,f=m.data,p=f.badmin,C=f.servers,j=f.consoles,O=(0,n.QY)("selectedServer",null),b=O[0],I=O[1],_=C.find(function(S){return S.id===b});return _?(0,e.jsx)(x,{setSelectedServer:I,server:_}):(0,e.jsx)(r.wn,{title:"Server Selection",children:C.map(function(S){return(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return I(S.id)},children:S.name})},S.name)})})},x=function(u){var m=(0,n.Oc)(),c=m.act,f=m.data,p=f.badmin,C=u.server,j=u.setSelectedServer,O=(0,n.QY)("tab",0),b=O[0],I=O[1];return(0,e.jsxs)(r.wn,{title:C.name,buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return j(null)},children:"Back"}),children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:b===0,onClick:function(){return I(0)},children:"Access Rights"}),(0,e.jsx)(r.tU.Tab,{selected:b===1,onClick:function(){return I(1)},children:"Data Management"}),p&&(0,e.jsx)(r.tU.Tab,{selected:b===2,onClick:function(){return I(2)},color:"red",children:"Server-to-Server Transfer"})||null]}),b===0&&(0,e.jsx)(d,{server:C})||null,b===1&&(0,e.jsx)(h,{server:C})||null,b===2&&p&&(0,e.jsx)(v,{server:C})||null]})},d=function(u){var m=(0,n.Oc)(),c=m.act,f=m.data,p=u.server,C=f.consoles,j=function(b,I){return b.id_with_upload.indexOf(I.id)!==-1},O=function(b,I){return b.id_with_download.indexOf(I.id)!==-1};return(0,e.jsx)(r.wn,{level:2,title:"Consoles",children:(0,e.jsx)(r.Ki,{children:C.length&&C.map(function(b){return(0,e.jsxs)(r.Ki.Item,{label:b.name+" ("+b.loc+")",children:[(0,e.jsx)(r.$n,{icon:j(p,b)?"lock-open":"lock",selected:j(p,b),onClick:function(){return c("toggle_upload",{server:p.ref,console:b.ref})},children:j(p,b)?"Upload On":"Upload Off"}),(0,e.jsx)(r.$n,{icon:O(p,b)?"lock-open":"lock",selected:O(p,b),onClick:function(){return c("toggle_download",{server:p.ref,console:b.ref})},children:O(p,b)?"Download On":"Download Off"})]},b.name)})})})},h=function(u){var m=(0,n.Oc)(),c=m.act,f=m.data,p=u.server;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{level:2,title:"Research Levels",children:p.tech.map(function(C){return(0,e.jsx)(r.Ki.Item,{label:C.name,buttons:(0,e.jsx)(r.$n.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Reset",onClick:function(){return c("reset_tech",{server:p.ref,tech:C.id})}})},C.name)})}),(0,e.jsx)(r.wn,{level:2,title:"Designs",children:(0,i.pb)(function(C){return!!C.name})(p.designs).map(function(C){return(0,e.jsx)(r.Ki.Item,{label:C.name,buttons:(0,e.jsx)(r.$n.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Delete",onClick:function(){return c("reset_design",{server:p.ref,design:C.id})}})},C.name)})})]})},v=function(u){var m=(0,n.Oc)(),c=m.act,f=m.data,p=u.server,C=f.badmin,j=f.servers;return C?(0,e.jsx)(r.wn,{level:2,title:"Server Data Transfer",children:j.map(function(O){return(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n.Confirm,{fluid:!0,color:"bad",content:(0,e.jsxs)(r.az,{children:["Transfer from ",p.name," To ",O.name]}),onClick:function(){return c("transfer_data",{server:p.ref,target:O.ref})}})},O.name)})}):null}},65477:function(M,y,t){"use strict";t.r(y),t.d(y,{ResleevingConsole:function(){return m}});var e=t(88095),i=t(5229),n=t(4413),r=t(92514),s=t(5425),a=t(84905);function g(){return g=Object.assign||function(A){for(var R=1;R=150?"good":"bad",inline:!0,children:[(0,e.jsx)(r.In,{name:J.biomass>=150?"circle":"circle-o"}),"\xA0",J.biomass]}),Q]},H)}):null},b=function(A){var R=(0,n.Oc)(),K=R.act,N=R.data,k=N.sleevers,X=N.spods,F=N.selected_sleever;return k&&k.length?k.map(function(J,H){return(0,e.jsxs)(r.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"sleeve_"+(J.occupied?"occupied":"empty")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)(r.az,{color:J.occupied?"label":"bad",children:J.name}),(0,e.jsx)(r.$n,{selected:F===J.sleever,icon:F===J.sleever&&"check",content:"Select",mt:X&&X.length?"3rem":"1.5rem",onClick:function(){return K("selectsleever",{ref:J.sleever})}})]},H)}):null},I=function(A){var R=(0,n.Oc)(),K=R.act,N=R.data,k=N.spods,X=N.selected_printer;return k&&k.length?k.map(function(F,J){var H;return F.status==="cloning"?H=(0,e.jsx)(r.z2,{min:"0",max:"100",value:F.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(r.az,{textAlign:"center",children:(0,i.LI)(F.progress,0)+"%"})}):F.status==="mess"?H=(0,e.jsx)(r.az,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):H=(0,e.jsx)(r.$n,{selected:X===F.spod,icon:X===F.spod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return K("selectprinter",{ref:F.spod})}}),(0,e.jsxs)(r.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"synthprinter"+(F.busy?"_working":"")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)(r.az,{color:"label",children:F.name}),(0,e.jsxs)(r.az,{bold:!0,color:F.steel>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(r.In,{name:F.steel>=15e3?"circle":"circle-o"}),"\xA0",F.steel]}),(0,e.jsxs)(r.az,{bold:!0,color:F.glass>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(r.In,{name:F.glass>=15e3?"circle":"circle-o"}),"\xA0",F.glass]}),H]},J)}):null},_=function(A){var R=(0,n.Oc)().act,K=A.records,N=A.actToDo;return K.length?(0,e.jsx)(r.az,{mt:"0.5rem",children:K.map(function(k,X){return(0,e.jsx)(r.$n,{icon:"user",mb:"0.5rem",content:k.name,onClick:function(){return R(N,{ref:k.recref})}},X)})}):(0,e.jsx)(r.so,{height:"100%",mt:"0.5rem",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No records found."]})})},S=function(A){var R=(0,n.Oc)(),K=R.act,N=R.data,k=N.temp;if(!(!k||!k.text||k.text.length<=0)){var X,F=(X={},X[k.style]=!0,X);return(0,e.jsxs)(r.IC,g({},F,{children:[(0,e.jsx)(r.az,{display:"inline-block",verticalAlign:"middle",children:k.text}),(0,e.jsx)(r.$n,{icon:"times-circle",float:"right",onClick:function(){return K("cleartemp")}}),(0,e.jsx)(r.az,{clear:"both"})]}))}},P=function(A){var R=(0,n.Oc)(),K=R.act,N=R.data,k=N.pods,X=N.spods,F=N.sleevers,J=N.autoallowed,H=N.autoprocess,Q=N.disk;return(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Pods",children:k&&k.length?(0,e.jsxs)(r.az,{color:"good",children:[k.length," connected"]}):(0,e.jsx)(r.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(r.Ki.Item,{label:"SynthFabs",children:X&&X.length?(0,e.jsxs)(r.az,{color:"good",children:[X.length," connected"]}):(0,e.jsx)(r.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(r.Ki.Item,{label:"Sleevers",children:F&&F.length?(0,e.jsxs)(r.az,{color:"good",children:[F.length," Connected"]}):(0,e.jsx)(r.az,{color:"bad",children:"None connected!"})})]})})}},26967:function(M,y,t){"use strict";t.r(y),t.d(y,{ResleevingPod:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)().data,x=g.occupied,d=g.name,h=g.health,v=g.maxHealth,u=g.stat,m=g.mindStatus,c=g.mindName,f=g.resleeveSick,p=g.initialSick;return(0,e.jsx)(r.p8,{width:300,height:350,resizeable:!0,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Occupant",children:x?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:d}),(0,e.jsx)(n.Ki.Item,{label:"Health",children:u===2?(0,e.jsx)(n.az,{color:"bad",children:"DEAD"}):u===1?(0,e.jsx)(n.az,{color:"average",children:"Unconscious"}):(0,e.jsxs)(n.z2,{ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},value:h/v,children:[h,"%"]})}),(0,e.jsx)(n.Ki.Item,{label:"Mind Status",children:m?"Present":"Missing"}),m?(0,e.jsx)(n.Ki.Item,{label:"Mind Occupying",children:c}):""]}),f?(0,e.jsxs)(n.az,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",p?(0,e.jsxs)(e.Fragment,{children:[" ","Motion Sickness also detected. Please allow the newly resleeved person a moment to get their bearings. This warning will disappear when Motion Sickness is no longer detected."]}):""]}):""]}):(0,e.jsx)(n.az,{bold:!0,m:1,children:"Unoccupied."})})})})}},74367:function(M,y,t){"use strict";t.r(y),t.d(y,{RoboticsControlConsole:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=h.can_hack,u=h.safety,m=h.show_detonate_all,c=h.cyborgs,f=c===void 0?[]:c;return(0,e.jsx)(r.p8,{width:500,height:460,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[!!m&&(0,e.jsxs)(n.wn,{title:"Emergency Self Destruct",children:[(0,e.jsx)(n.$n,{icon:u?"lock":"unlock",content:u?"Disable Safety":"Enable Safety",selected:u,onClick:function(){return d("arm",{})}}),(0,e.jsx)(n.$n,{icon:"bomb",disabled:u,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){return d("nuke",{})}})]}),(0,e.jsx)(a,{cyborgs:f,can_hack:v})]})})},a=function(g){var x=g.cyborgs,d=g.can_hack,h=(0,i.Oc)(),v=h.act,u=h.data;return x.length?x.map(function(m){return(0,e.jsx)(n.wn,{title:m.name,buttons:(0,e.jsxs)(e.Fragment,{children:[!!m.hackable&&!m.emagged&&(0,e.jsx)(n.$n,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){return v("hackbot",{ref:m.ref})}}),(0,e.jsx)(n.$n.Confirm,{icon:m.locked_down?"unlock":"lock",color:m.locked_down?"good":"default",content:m.locked_down?"Release":"Lockdown",disabled:!u.auth,onClick:function(){return v("stopbot",{ref:m.ref})}}),(0,e.jsx)(n.$n.Confirm,{icon:"bomb",content:"Detonate",disabled:!u.auth,color:"bad",onClick:function(){return v("killbot",{ref:m.ref})}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:(0,e.jsx)(n.az,{color:m.status?"bad":m.locked_down?"average":"good",children:m.status?"Not Responding":m.locked_down?"Locked Down":"Nominal"})}),(0,e.jsx)(n.Ki.Item,{label:"Location",children:(0,e.jsx)(n.az,{children:m.locstring})}),(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{color:m.health>50?"good":"bad",value:m.health/100})}),typeof m.charge=="number"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Cell Charge",children:(0,e.jsx)(n.z2,{color:m.charge>30?"good":"bad",value:m.charge/100})}),(0,e.jsx)(n.Ki.Item,{label:"Cell Capacity",children:(0,e.jsx)(n.az,{color:m.cell_capacity<3e4?"average":"good",children:m.cell_capacity})})]})||(0,e.jsx)(n.Ki.Item,{label:"Cell",children:(0,e.jsx)(n.az,{color:"bad",children:"No Power Cell"})}),!!m.is_hacked&&(0,e.jsx)(n.Ki.Item,{label:"Safeties",children:(0,e.jsx)(n.az,{color:"bad",children:"DISABLED"})}),(0,e.jsx)(n.Ki.Item,{label:"Module",children:m.module}),(0,e.jsx)(n.Ki.Item,{label:"Master AI",children:(0,e.jsx)(n.az,{color:m.synchronization?"default":"average",children:m.synchronization||"None"})})]})},m.ref)}):(0,e.jsx)(n.IC,{children:"No cyborg units detected within access parameters."})}},35401:function(M,y,t){"use strict";t.r(y),t.d(y,{RogueZones:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.timeout_percent,v=d.diffstep,u=d.difficulty,m=d.occupied,c=d.scanning,f=d.updated,p=d.debug,C=d.shuttle_location,j=d.shuttle_at_station,O=d.scan_ready,b=d.can_recall_shuttle;return(0,e.jsx)(r.p8,{width:360,height:250,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Current Area",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Mineral Content",children:u}),(0,e.jsx)(n.Ki.Item,{label:"Shuttle Location",buttons:b&&(0,e.jsx)(n.$n,{color:"bad",icon:"rocket",onClick:function(){return x("recall_shuttle")},children:"Recall Shuttle"})||null,children:C}),m&&(0,e.jsxs)(n.Ki.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",m," personnel!"]})||(0,e.jsx)(n.Ki.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,e.jsx)(n.wn,{title:"Scanner",buttons:(0,e.jsx)(n.$n,{disabled:!O,fluid:!0,icon:"search",onClick:function(){return x("scan_for_new")},children:"Scan For Asteroids"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Scn Ramestat Core",children:(0,e.jsx)(n.z2,{value:h,maxValue:100,ranges:{good:[100,1/0],average:[75,100],bad:[-1/0,75]}})}),c&&(0,e.jsx)(n.Ki.Item,{label:"Scanning",children:"In progress."})||null,f&&!c&&(0,e.jsx)(n.Ki.Item,{label:"Info",children:"Updated shuttle destination!"})||null,p&&(0,e.jsxs)(n.Ki.Item,{label:"Debug",labelColor:"bad",children:[(0,e.jsxs)(n.az,{children:["Timeout Percent: ",h]}),(0,e.jsxs)(n.az,{children:["Diffstep: ",v]}),(0,e.jsxs)(n.az,{children:["Difficulty: ",u]}),(0,e.jsxs)(n.az,{children:["Occupied: ",m]}),(0,e.jsxs)(n.az,{children:["Debug: ",p]}),(0,e.jsxs)(n.az,{children:["Shuttle Location: ",C]}),(0,e.jsxs)(n.az,{children:["Shuttle at station: ",j]}),(0,e.jsxs)(n.az,{children:["Scan Ready: ",O]})]})||null]})})]})})}},45653:function(M,y,t){"use strict";t.r(y),t.d(y,{RustCoreMonitor:function(){return s},RustCoreMonitorContent:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=h.cores;return(0,e.jsx)(n.wn,{title:"Cores",buttons:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return d("set_tag")}}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Position"}),(0,e.jsx)(n.XI.Cell,{children:"Field Status"}),(0,e.jsx)(n.XI.Cell,{children:"Reactant Mode"}),(0,e.jsx)(n.XI.Cell,{children:"Field Instability"}),(0,e.jsx)(n.XI.Cell,{children:"Field Temperature"}),(0,e.jsx)(n.XI.Cell,{children:"Field Strength"}),(0,e.jsx)(n.XI.Cell,{children:"Plasma Content"})]}),v.map(function(u){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:u.name}),(0,e.jsxs)(n.XI.Cell,{children:[u.x,", ",u.y,", ",u.z]}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"power-off",content:u.has_field?"Online":"Offline",selected:u.has_field,disabled:!u.core_operational,onClick:function(){return d("toggle_active",{core:u.ref})}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"power-off",content:u.reactant_dump?"Dump":"Maintain",selected:u.has_field,disabled:!u.core_operational,onClick:function(){return d("toggle_reactantdump",{core:u.ref})}})}),(0,e.jsx)(n.XI.Cell,{children:u.field_instability}),(0,e.jsx)(n.XI.Cell,{children:u.field_temperature}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.N6,{forcedInputWidth:"60px",size:1.25,color:!!u.has_field&&"yellow",value:u.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(m,c){return d("set_fieldstr",{core:u.ref,fieldstr:c})}})}),(0,e.jsx)(n.XI.Cell,{})]},u.name)})]})})}},39899:function(M,y,t){"use strict";t.r(y),t.d(y,{RustFuelContent:function(){return a},RustFuelControl:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=h.fuels;return(0,e.jsx)(n.wn,{title:"Fuel Injectors",buttons:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return d("set_tag")}}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Position"}),(0,e.jsx)(n.XI.Cell,{children:"Status"}),(0,e.jsx)(n.XI.Cell,{children:"Remaining Fuel"}),(0,e.jsx)(n.XI.Cell,{children:"Fuel Rod Composition"})]}),v.map(function(u){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:u.name}),(0,e.jsxs)(n.XI.Cell,{children:[u.x,", ",u.y,", ",u.z]}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"power-off",content:u.active?"Online":"Offline",selected:u.active,disabled:!u.deployed,onClick:function(){return d("toggle_active",{fuel:u.ref})}})}),(0,e.jsx)(n.XI.Cell,{children:u.fuel_amt}),(0,e.jsx)(n.XI.Cell,{children:u.fuel_type})]},u.name)})]})})}},19208:function(M,y,t){"use strict";t.r(y),t.d(y,{Secbot:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.on,v=d.open,u=d.locked,m=d.idcheck,c=d.check_records,f=d.check_arrest,p=d.arrest_type,C=d.declare_arrests,j=d.bot_patrolling,O=d.patrol;return(0,e.jsx)(r.p8,{width:390,height:320,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Security Unit v2.0",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:h,onClick:function(){return x("power")},children:h?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Maintenance Panel",color:v?"bad":"good",children:v?"Open":"Closed"}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,e.jsx)(n.wn,{title:"Behavior Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Check for Weapon Authorization",children:(0,e.jsx)(n.$n,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return x("idcheck")},children:m?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Check Security Records",children:(0,e.jsx)(n.$n,{icon:c?"toggle-on":"toggle-off",selected:c,onClick:function(){return x("ignorerec")},children:c?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Check Arrest Status",children:(0,e.jsx)(n.$n,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){return x("ignorearr")},children:f?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Operating Mode",children:(0,e.jsx)(n.$n,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("switchmode")},children:p?"Detain":"Arrest"})}),(0,e.jsx)(n.Ki.Item,{label:"Report Arrests",children:(0,e.jsx)(n.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("declarearrests")},children:C?"Yes":"No"})}),!!j&&(0,e.jsx)(n.Ki.Item,{label:"Auto Patrol",children:(0,e.jsx)(n.$n,{icon:O?"toggle-on":"toggle-off",selected:O,onClick:function(){return x("patrol")},children:O?"Yes":"No"})})]})})||null]})})}},46226:function(M,y,t){"use strict";t.r(y),t.d(y,{SecureSafe:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]],u=h.locked,m=h.l_setshort,c=h.code,f=h.emagged;return(0,e.jsx)(n.az,{width:"185px",children:(0,e.jsx)(n.XI,{width:"1px",children:v.map(function(p){return(0,e.jsx)(n.XI.Cell,{children:p.map(function(C){return(0,e.jsx)(n.$n,{fluid:!0,bold:!0,mb:"6px",content:C,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!f||!!m&&1||C!=="R"&&!u||c==="ERROR"&&C!=="R"&&1,onClick:function(){return d("type",{digit:C})}},C)})},p[0])})})})},a=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=h.code,u=h.l_setshort,m=h.l_set,c=h.emagged,f=h.locked,p=!(m||u);return(0,e.jsx)(r.p8,{width:250,height:380,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.az,{m:"6px",children:[p&&(0,e.jsx)(n.IC,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!c&&(0,e.jsx)(n.IC,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!u&&(0,e.jsx)(n.IC,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,e.jsx)(n.wn,{height:"60px",children:(0,e.jsx)(n.az,{textAlign:"center",position:"center",fontSize:"35px",children:v&&v||(0,e.jsx)(n.az,{textColor:f?"red":"green",children:f?"LOCKED":"UNLOCKED"})})}),(0,e.jsxs)(n.so,{ml:"3px",children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(s,{})}),(0,e.jsx)(n.so.Item,{ml:"6px",width:"129px"})]})]})})})}},34200:function(M,y,t){"use strict";t.r(y),t.d(y,{SecurityRecords:function(){return h}});var e=t(88095),i=t(4413),n=t(92514),r=t(5425),s=t(84905),a=t(71451),g=t(1887),x=t(82489),d=function(C){(0,r.modalOpen)("edit",{field:C.edit,value:C.value})},h=function(C){var j=(0,i.Oc)().data,O=j.authenticated,b=j.screen;if(!O)return(0,e.jsx)(s.p8,{width:700,height:680,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(g.LoginScreen,{})})});var I;return b===2?I=(0,e.jsx)(v,{}):b===3?I=(0,e.jsx)(u,{}):b===4&&(I=(0,e.jsx)(m,{})),(0,e.jsxs)(s.p8,{width:700,height:680,children:[(0,e.jsx)(r.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsx)(a.LoginInfo,{}),(0,e.jsx)(x.TemporaryNotice,{}),(0,e.jsx)(p,{}),(0,e.jsx)(n.wn,{flexGrow:!0,children:I})]})]})},v=function(C){var j=(0,i.Oc)(),O=j.act,b=j.data,I=b.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(_,S){return O("search",{t1:S})}}),(0,e.jsx)(n.az,{mt:"0.5rem",children:I.map(function(_,S){return(0,e.jsx)(n.$n,{icon:"user",mb:"0.5rem",color:_.color,content:_.id+": "+_.name+" (Criminal Status: "+_.criminal+")",onClick:function(){return O("d_rec",{d_rec:_.ref})}},S)})})]})},u=function(C){var j=(0,i.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," ",(0,e.jsx)("br",{}),(0,e.jsx)(n.$n.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){return j("del_all")}})]})},m=function(C){var j=(0,i.Oc)(),O=j.act,b=j.data,I=b.security,_=b.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"General Data",mt:"-6px",children:(0,e.jsx)(c,{})}),(0,e.jsx)(n.wn,{title:"Security Data",children:(0,e.jsx)(f,{})}),(0,e.jsxs)(n.wn,{title:"Actions",children:[(0,e.jsx)(n.$n.Confirm,{icon:"trash",disabled:!!I.empty,content:"Delete Security Record",color:"bad",onClick:function(){return O("del_r")}}),(0,e.jsx)(n.$n.Confirm,{icon:"trash",disabled:!!I.empty,content:"Delete Record (All)",color:"bad",onClick:function(){return O("del_r_2")}}),(0,e.jsx)(n.$n,{icon:_?"spinner":"print",disabled:_,iconSpin:!!_,content:"Print Entry",ml:"0.5rem",onClick:function(){return O("print_p")}}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return O("screen",{screen:2})}})]})]})},c=function(C){var j=(0,i.Oc)(),O=j.act,b=j.data,I=b.general;return!I||!I.fields?(0,e.jsx)(n.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.Ki,{children:I.fields.map(function(_,S){return(0,e.jsxs)(n.Ki.Item,{label:_.field,children:[(0,e.jsx)(n.az,{height:"20px",inline:!0,preserveWhitespace:!0,children:_.value}),!!_.edit&&(0,e.jsx)(n.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return d(_)}})]},S)})})}),(0,e.jsxs)(n.so.Item,{textAlign:"right",children:[!!I.has_photos&&I.photos.map(function(_,S){return(0,e.jsxs)(n.az,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.jsx)("img",{src:_.substr(1,_.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)("br",{}),"Photo #",S+1]},S)}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{onClick:function(){return O("photo_front")},children:"Update Front Photo"}),(0,e.jsx)(n.$n,{onClick:function(){return O("photo_side")},children:"Update Side Photo"})]})]})]})},f=function(C){var j=(0,i.Oc)(),O=j.act,b=j.data,I=b.security;return!I||!I.fields?(0,e.jsxs)(n.az,{color:"bad",children:["Security records lost!",(0,e.jsx)(n.$n,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return O("new")}})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki,{children:I.fields.map(function(_,S){return(0,e.jsx)(n.Ki.Item,{label:_.field,children:(0,e.jsxs)(n.az,{preserveWhitespace:!0,children:[_.value,(0,e.jsx)(n.$n,{icon:"pen",ml:"0.5rem",mb:_.line_break?"1rem":"initial",onClick:function(){return d(_)}})]})},S)})}),(0,e.jsxs)(n.wn,{title:"Comments/Log",children:[I.comments.length===0?(0,e.jsx)(n.az,{color:"label",children:"No comments found."}):I.comments.map(function(_,S){return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.az,{color:"label",inline:!0,children:_.header}),(0,e.jsx)("br",{}),_.text,(0,e.jsx)(n.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return O("del_c",{del_c:S+1})}})]},S)}),(0,e.jsx)(n.$n,{icon:"comment",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,r.modalOpen)("add_c")}})]})]})},p=function(C){var j=(0,i.Oc)(),O=j.act,b=j.data,I=b.screen;return(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:I===2,icon:"list",onClick:function(){return O("screen",{screen:2})},children:"List Records"}),(0,e.jsx)(n.tU.Tab,{icon:"wrench",selected:I===3,onClick:function(){return O("screen",{screen:3})},children:"Record Maintenance"})]})}},2930:function(M,y,t){"use strict";t.r(y),t.d(y,{SeedStorage:function(){return g}});var e=t(88095),i=t(11358),n=t(33854),r=t(4413),s=t(92514),a=t(84905),g=function(x){var d=(0,r.Oc)(),h=d.act,v=d.data,u=v.scanner,m=v.seeds,c=(0,i.Ul)(function(f){return f.name.toLowerCase()})(m);return(0,e.jsx)(a.p8,{width:600,height:760,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(s.wn,{title:"Seeds",children:c.map(function(f){return(0,e.jsxs)(s.so,{spacing:1,mt:-1,children:[(0,e.jsx)(s.so.Item,{basis:"60%",children:(0,e.jsx)(s.Nt,{title:(0,n.Sn)(f.name)+" #"+f.uid,children:(0,e.jsx)(s.wn,{width:"165%",title:"Traits",children:(0,e.jsx)(s.Ki,{children:Object.keys(f.traits).map(function(p){return(0,e.jsx)(s.Ki.Item,{label:(0,n.Sn)(p),children:f.traits[p]},p)})})})})}),(0,e.jsxs)(s.so.Item,{mt:.4,children:[f.amount," Remaining"]}),(0,e.jsx)(s.so.Item,{grow:1,children:(0,e.jsx)(s.$n,{fluid:!0,icon:"download",onClick:function(){return h("vend",{id:f.id})},children:"Vend"})}),(0,e.jsx)(s.so.Item,{grow:1,children:(0,e.jsx)(s.$n,{fluid:!0,icon:"trash",onClick:function(){return h("purge",{id:f.id})},children:"Purge"})})]},f.name+f.uid)})})})})}},7249:function(M,y,t){"use strict";t.r(y),t.d(y,{ShieldCapacitor:function(){return g}});var e=t(88095),i=t(5229),n=t(4413),r=t(92514),s=t(24158),a=t(84905),g=function(x){var d=(0,n.Oc)(),h=d.act,v=d.data,u=v.active,m=v.time_since_fail,c=v.stored_charge,f=v.max_charge,p=v.charge_rate,C=v.max_charge_rate;return(0,e.jsx)(a.p8,{width:500,height:400,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:u,content:u?"Online":"Offline",onClick:function(){return h("toggle")}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Capacitor Status",children:m>2?(0,e.jsx)(r.az,{color:"good",children:"OK."}):(0,e.jsx)(r.az,{color:"bad",children:"Discharging!"})}),(0,e.jsxs)(r.Ki.Item,{label:"Stored Energy",children:[(0,e.jsx)(r.zv,{value:c,format:function(j){return(0,s.QL)(j,0,"J")}})," ","(",(0,e.jsx)(r.zv,{value:100*(0,i.LI)(c/f,1)}),"%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Q7,{value:p,step:100,stepPixelSize:.2,minValue:1e4,maxValue:C,format:function(j){return(0,s.d5)(j)},onDrag:function(j,O){return h("charge_rate",{rate:O})}})})]})})})})}},28010:function(M,y,t){"use strict";t.r(y),t.d(y,{ShieldGenerator:function(){return x}});var e=t(88095),i=t(5229),n=t(4413),r=t(92514),s=t(24158),a=t(84905),g=t(13221),x=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,f=c.locked;return(0,e.jsx)(a.p8,{width:500,height:400,children:(0,e.jsx)(a.p8.Content,{children:f?(0,e.jsx)(d,{}):(0,e.jsx)(h,{})})})},d=function(v){return(0,e.jsxs)(g.FullscreenNotice,{title:"Locked",children:[(0,e.jsx)(r.az,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(r.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(r.az,{color:"label",my:"1rem",children:"Swipe your ID to begin."})]})},h=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,f=c.lockedData,p=f.capacitors,C=f.active,j=f.failing,O=f.radius,b=f.max_radius,I=f.z_range,_=f.max_z_range,S=f.average_field_strength,P=f.target_field_strength,A=f.max_field_strength,R=f.shields,K=f.upkeep,N=f.strengthen_rate,k=f.max_strengthen_rate,X=f.gen_power,F=(p||[]).length;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Field Status",children:j?(0,e.jsx)(r.az,{color:"bad",children:"Unstable"}):(0,e.jsx)(r.az,{color:"good",children:"Stable"})}),(0,e.jsxs)(r.Ki.Item,{label:"Overall Field Strength",children:[(0,i.LI)(S,2)," Renwick (",P&&(0,i.LI)(100*S/P,1)||"NA","%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Upkeep Power",children:(0,s.d5)(K)}),(0,e.jsx)(r.Ki.Item,{label:"Shield Generation Power",children:(0,s.d5)(X)}),(0,e.jsxs)(r.Ki.Item,{label:"Currently Shielded",children:[R," m\xB2"]}),(0,e.jsx)(r.Ki.Item,{label:"Capacitors",children:(0,e.jsx)(r.Ki,{children:F?p.map(function(J,H){return(0,e.jsxs)(r.Ki.Item,{label:"Capacitor #"+H,children:[J.active?(0,e.jsx)(r.az,{color:"good",children:"Online"}):(0,e.jsx)(r.az,{color:"bad",children:"Offline"}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Charge",children:[(0,s.QL)(J.stored_charge,0,"J")," (",100*(0,i.LI)(J.stored_charge/J.max_charge,2),"%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Status",children:J.failing?(0,e.jsx)(r.az,{color:"bad",children:"Discharging"}):(0,e.jsx)(r.az,{color:"good",children:"OK."})})]})]},H)}):(0,e.jsx)(r.Ki.Item,{color:"bad",children:"No Capacitors Connected"})})})]})}),(0,e.jsx)(r.wn,{title:"Controls",buttons:(0,e.jsx)(r.$n,{icon:"power-off",content:C?"Online":"Offline",selected:C,onClick:function(){return m("toggle")}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Coverage Radius",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:6,minValue:0,maxValue:b,value:O,unit:"m",onDrag:function(J,H){return m("change_radius",{val:H})}})}),(0,e.jsx)(r.Ki.Item,{label:"Vertical Shielding",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:0,maxValue:_,value:I,unit:"vertical range",onDrag:function(J,H){return m("z_range",{val:H})}})}),(0,e.jsx)(r.Ki.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:k,value:N,format:function(J){return(0,i.LI)(J,1)},unit:"Renwick/s",onDrag:function(J,H){return m("strengthen_rate",{val:H})}})}),(0,e.jsx)(r.Ki.Item,{label:"Maximum Field Strength",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:1,maxValue:A,value:P,unit:"Renwick",onDrag:function(J,H){return m("target_field_strength",{val:H})}})})]})})]})}},52735:function(M,y,t){"use strict";t.r(y),t.d(y,{ShutoffMonitor:function(){return s},ShutoffMonitorContent:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(g){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=h.valves;return(0,e.jsx)(n.wn,{title:"Valves",children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Position"}),(0,e.jsx)(n.XI.Cell,{children:"Open"}),(0,e.jsx)(n.XI.Cell,{children:"Mode"}),(0,e.jsx)(n.XI.Cell,{children:"Actions"})]}),v.map(function(u){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:u.name}),(0,e.jsxs)(n.XI.Cell,{children:[u.x,", ",u.y,", ",u.z]}),(0,e.jsx)(n.XI.Cell,{children:u.open?"Yes":"No"}),(0,e.jsx)(n.XI.Cell,{children:u.enabled?"Auto":"Manual"}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.$n,{icon:"power-off",content:u.open?"Opened":"Closed",selected:u.open,disabled:!u.enabled,onClick:function(){return d("toggle_open",{valve:u.ref})}}),(0,e.jsx)(n.$n,{icon:"power-off",content:u.enabled?"Auto":"Manual",selected:u.enabled,onClick:function(){return d("toggle_enable",{valve:u.ref})}})]})]},u.name)})]})})}},72736:function(M,y,t){"use strict";t.r(y),t.d(y,{ShuttleControl:function(){return c}});var e=t(88095),i=t(33854),n=t(4413),r=t(92514),s=t(84905),a=function(f,p){var C="ERROR",j="bad",O=!1;return f==="docked"?(C="DOCKED",j="good"):f==="docking"?(C="DOCKING",j="average",O=!0):f==="undocking"?(C="UNDOCKING",j="average",O=!0):f==="undocked"&&(C="UNDOCKED",j="#676767"),O&&p&&(C=C+"-MANUAL"),(0,e.jsx)(r.az,{color:j,children:C})},g=function(f){var p=(0,n.Oc)(),C=p.act,j=p.data,O=f.engineName,b=O===void 0?"Bluespace Drive":O,I=j.shuttle_status,_=j.shuttle_state,S=j.has_docking,P=j.docking_status,A=j.docking_override,R=j.docking_codes;return(0,e.jsxs)(r.wn,{title:"Shuttle Status",children:[(0,e.jsx)(r.az,{color:"label",mb:1,children:I}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:b,children:_==="idle"&&(0,e.jsx)(r.az,{color:"#676767",bold:!0,children:"IDLE"})||_==="warmup"&&(0,e.jsx)(r.az,{color:"#336699",children:"SPINNING UP"})||_==="in_transit"&&(0,e.jsx)(r.az,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(r.az,{color:"bad",children:"ERROR"})}),S&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Docking Status",children:a(P,A)}),(0,e.jsx)(r.Ki.Item,{label:"Docking Codes",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return C("set_codes")},children:R||"Not Set"})})]})||null]})]})},x=function(f){var p=(0,n.Oc)(),C=p.act,j=p.data,O=j.can_launch,b=j.can_cancel,I=j.can_force;return(0,e.jsx)(r.wn,{title:"Controls",children:(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{onClick:function(){return C("move")},disabled:!O,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{onClick:function(){return C("cancel")},disabled:!b,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{onClick:function(){return C("force")},color:"bad",disabled:!I,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})},d=function(f){var p=(0,n.Oc)(),C=p.act,j=p.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(x,{})]})},h=function(f){var p=(0,n.Oc)(),C=p.act,j=p.data,O=j.can_cloak,b=j.can_pick,I=j.legit,_=j.cloaked,S=j.destination_name;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(r.wn,{title:"Multishuttle Controls",children:(0,e.jsxs)(r.Ki,{children:[O&&(0,e.jsx)(r.Ki.Item,{label:I?"ATC Inhibitor":"Cloaking",children:(0,e.jsx)(r.$n,{selected:_,icon:_?"eye":"eye-o",onClick:function(){return C("toggle_cloaked")},children:_?"Enabled":"Disabled"})})||null,(0,e.jsx)(r.Ki.Item,{label:"Current Destination",children:(0,e.jsx)(r.$n,{icon:"taxi",disabled:!b,onClick:function(){return C("pick")},children:S})})]})}),(0,e.jsx)(x,{})]})},v=function(f){var p=(0,n.Oc)(),C=p.act,j=p.data,O=j.can_pick,b=j.destination_name,I=j.fuel_usage,_=j.fuel_span,S=j.remaining_fuel;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{engineName:"Engines"}),(0,e.jsx)(r.wn,{title:"Jump Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current Destination",children:(0,e.jsx)(r.$n,{icon:"taxi",disabled:!O,onClick:function(){return C("pick")},children:b})}),I&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Est. Delta-V Budget",color:_,children:[S," m/s"]}),(0,e.jsxs)(r.Ki.Item,{label:"Avg. Delta-V Per Maneuver",children:[I," m/s"]})]})||null]})}),(0,e.jsx)(x,{})]})},u=function(f){var p=(0,n.Oc)(),C=p.act,j=p.data,O=j.autopilot,b=j.can_rename,I=j.shuttle_state,_=j.is_moving,S=j.skip_docking,P=j.docking_status,A=j.docking_override,R=j.shuttle_location,K=j.can_cloak,N=j.cloaked,k=j.can_autopilot,X=j.routes,F=j.is_in_transit,J=j.travel_progress,H=j.time_left,Q=j.doors,Z=j.sensors;return(0,e.jsxs)(e.Fragment,{children:[O&&(0,e.jsx)(r.wn,{title:"AI PILOT (CLASS D) ACTIVE",children:(0,e.jsx)(r.az,{inline:!0,italic:!0,children:"This vessel will start and stop automatically. Ensure that all non-cycling capable hatches and doors are closed, as the automated system may not be able to control them. Docking and flight controls are locked. To unlock, disable the automated flight system."})})||null,(0,e.jsxs)(r.wn,{title:"Shuttle Status",buttons:b&&(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return C("rename_command")},children:"Rename"})||null,children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Engines",children:I==="idle"&&(0,e.jsx)(r.az,{color:"#676767",bold:!0,children:"IDLE"})||I==="warmup"&&(0,e.jsx)(r.az,{color:"#336699",children:"SPINNING UP"})||I==="in_transit"&&(0,e.jsx)(r.az,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(r.az,{color:"bad",children:"ERROR"})}),!_&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current Location",children:(0,i.Sn)(R)}),!S&&(0,e.jsx)(r.Ki.Item,{label:"Docking Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{selected:P==="docked",disabled:P!=="undocked"&&P!=="docked",onClick:function(){return C("dock_command")},children:"Dock"}),(0,e.jsx)(r.$n,{selected:P==="undocked",disabled:P!=="docked"&&P!=="undocked",onClick:function(){return C("undock_command")},children:"Undock"})]}),children:(0,e.jsx)(r.az,{bold:!0,inline:!0,children:a(P,A)})})||null,K&&(0,e.jsx)(r.Ki.Item,{label:"Cloaking",children:(0,e.jsx)(r.$n,{selected:N,icon:N?"eye":"eye-o",onClick:function(){return C("toggle_cloaked")},children:N?"Enabled":"Disabled"})})||null,k&&(0,e.jsx)(r.Ki.Item,{label:"Autopilot",children:(0,e.jsx)(r.$n,{selected:O,icon:O?"eye":"eye-o",onClick:function(){return C("toggle_autopilot")},children:O?"Enabled":"Disabled"})})||null]})||null]}),!_&&(0,e.jsx)(r.wn,{level:2,title:"Available Destinations",children:(0,e.jsx)(r.Ki,{children:X.length&&X.map(function(V){return(0,e.jsx)(r.Ki.Item,{label:V.name,children:(0,e.jsx)(r.$n,{icon:"rocket",onClick:function(){return C("traverse",{traverse:V.index})},children:V.travel_time})},V.name)})||(0,e.jsx)(r.Ki.Item,{label:"Error",color:"bad",children:"No routes found."})})})||null]}),F&&(0,e.jsx)(r.wn,{title:"Transit ETA",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Distance from target",children:(0,e.jsxs)(r.z2,{color:"good",minValue:0,maxValue:100,value:J,children:[H,"s"]})})})})||null,Object.keys(Q).length&&(0,e.jsx)(r.wn,{title:"Hatch Status",children:(0,e.jsx)(r.Ki,{children:Object.keys(Q).map(function(V){var z=Q[V];return(0,e.jsxs)(r.Ki.Item,{label:V,children:[z.open&&(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"Open"})||(0,e.jsx)(r.az,{inline:!0,color:"good",children:"Closed"}),"\xA0-\xA0",z.bolted&&(0,e.jsx)(r.az,{inline:!0,color:"good",children:"Bolted"})||(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"Unbolted"})]},V)})})})||null,Object.keys(Z).length&&(0,e.jsx)(r.wn,{title:"Sensors",children:(0,e.jsx)(r.Ki,{children:Object.keys(Z).map(function(V,z){var Y=Z[V];return Y.reading!==-1?(0,e.jsx)(r.Ki.Item,{label:V,color:"bad",children:"Unable to get sensor air reading."},z):(0,e.jsx)(r.Ki.Item,{label:V,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[Y.pressure,"kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",children:[Y.temp,"\xB0C"]}),(0,e.jsxs)(r.Ki.Item,{label:"Oxygen",children:[Y.oxygen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Nitrogen",children:[Y.nitrogen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Carbon Dioxide",children:[Y.carbon_dioxide,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Phoron",children:[Y.phoron,"%"]}),Y.other&&(0,e.jsxs)(r.Ki.Item,{label:"Other",children:[Y.other,"%"]})||null]})},V)})})})||null]})},m={ShuttleControlConsoleDefault:(0,e.jsx)(d,{}),ShuttleControlConsoleMulti:(0,e.jsx)(h,{}),ShuttleControlConsoleExploration:(0,e.jsx)(v,{}),ShuttleControlConsoleWeb:(0,e.jsx)(u,{})},c=function(f){var p=(0,n.Oc)(),C=p.act,j=p.data,O=j.subtemplate;return(0,e.jsx)(s.p8,{width:470,height:O==="ShuttleControlConsoleWeb"?560:370,children:(0,e.jsx)(s.p8.Content,{children:m[O]})})}},42053:function(M,y,t){"use strict";t.r(y),t.d(y,{Signaler:function(){return a},SignalerContent:function(){return g}});var e=t(88095),i=t(5229),n=t(4413),r=t(92514),s=t(84905),a=function(){return(0,e.jsx)(s.p8,{width:280,height:132,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var d=(0,n.Oc)(),h=d.act,v=d.data,u=v.code,m=v.frequency,c=v.minFrequency,f=v.maxFrequency;return(0,e.jsxs)(r.wn,{children:[(0,e.jsxs)(r.xA,{children:[(0,e.jsx)(r.xA.Column,{size:1.4,color:"label",children:"Frequency:"}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.Q7,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:c/10,maxValue:f/10,value:m/10,format:function(p){return(0,i.Mg)(p,1)},width:"80px",onDrag:function(p,C){return h("freq",{freq:C})}})}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return h("reset",{reset:"freq"})}})})]}),(0,e.jsxs)(r.xA,{mt:.6,children:[(0,e.jsx)(r.xA.Column,{size:1.4,color:"label",children:"Code:"}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.Q7,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:u,width:"80px",onDrag:function(p,C){return h("code",{code:C})}})}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return h("reset",{reset:"code"})}})})]}),(0,e.jsx)(r.xA,{mt:.8,children:(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{mb:-.1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){return h("signal")}})})})]})}},30636:function(M,y,t){"use strict";t.r(y),t.d(y,{Sleeper:function(){return h}});var e=t(88095),i=t(5229),n=t(4413),r=t(92514),s=t(84905),a=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],g=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],x={average:[.25,.5],bad:[.5,1/0]},d=["bad","average","average","good","average","average","bad"],h=function(C){var j=(0,n.Oc)(),O=j.act,b=j.data,I=b.hasOccupant,_=I?(0,e.jsx)(v,{}):(0,e.jsx)(p,{});return(0,e.jsx)(s.p8,{width:550,height:760,children:(0,e.jsx)(s.p8.Content,{className:"Layout__content--flexColumn",children:_})})},v=function(C){var j=(0,n.Oc)(),O=j.act,b=j.data,I=b.occupant,_=b.dialysis,S=b.stomachpumping;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(u,{}),(0,e.jsx)(m,{}),(0,e.jsx)(c,{title:"Dialysis",active:_,actToDo:"togglefilter"}),(0,e.jsx)(c,{title:"Stomach Pump",active:S,actToDo:"togglepump"}),(0,e.jsx)(f,{})]})},u=function(C){var j=(0,n.Oc)(),O=j.act,b=j.data,I=b.occupant,_=b.auto_eject_dead,S=b.stasis;return(0,e.jsx)(r.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.jsx)(r.$n,{icon:_?"toggle-on":"toggle-off",selected:_,content:_?"On":"Off",onClick:function(){return O("auto_eject_dead_"+(_?"off":"on"))}}),(0,e.jsx)(r.$n,{icon:"user-slash",content:"Eject",onClick:function(){return O("ejectify")}}),(0,e.jsx)(r.$n,{content:S,onClick:function(){return O("changestasis")}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:I.name}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{min:0,max:I.maxHealth,value:I.health/I.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,i.LI)(I.health,0)})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:a[I.stat][0],children:a[I.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{min:"0",max:I.maxTemp,value:I.bodyTemperature/I.maxTemp,color:d[I.temperatureSuitability+3],children:[(0,i.LI)(I.btCelsius,0),"\xB0C,",(0,i.LI)(I.btFaren,0),"\xB0F"]})}),!!I.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Blood Level",children:(0,e.jsxs)(r.z2,{min:"0",max:I.bloodMax,value:I.bloodLevel/I.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[I.bloodPercent,"%, ",I.bloodLevel,"cl"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Pulse",verticalAlign:"middle",children:[I.pulse," BPM"]})]})]})})},m=function(C){var j=(0,n.Oc)().data,O=j.occupant;return(0,e.jsx)(r.wn,{title:"Damage",children:(0,e.jsx)(r.Ki,{children:g.map(function(b,I){return(0,e.jsx)(r.Ki.Item,{label:b[0],children:(0,e.jsx)(r.z2,{min:"0",max:"100",value:O[b[1]]/100,ranges:x,children:(0,i.LI)(O[b[1]],0)},I)},I)})})})},c=function(C){var j=(0,n.Oc)(),O=j.act,b=j.data,I=b.isBeakerLoaded,_=b.beakerMaxSpace,S=b.beakerFreeSpace,P=C.active,A=C.actToDo,R=C.title,K=P&&S>0;return(0,e.jsx)(r.wn,{title:R,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{disabled:!I||S<=0,selected:K,icon:K?"toggle-on":"toggle-off",content:K?"Active":"Inactive",onClick:function(){return O(A)}}),(0,e.jsx)(r.$n,{disabled:!I,icon:"eject",content:"Eject",onClick:function(){return O("removebeaker")}})]}),children:I?(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Remaining Space",children:(0,e.jsxs)(r.z2,{min:"0",max:_,value:S/_,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[S,"u"]})})}):(0,e.jsx)(r.az,{color:"label",children:"No beaker loaded."})})},f=function(C){var j=(0,n.Oc)(),O=j.act,b=j.data,I=b.occupant,_=b.chemicals,S=b.maxchem,P=b.amounts;return(0,e.jsx)(r.wn,{title:"Chemicals",flexGrow:"1",children:_.map(function(A,R){var K="",N;return A.overdosing?(K="bad",N=(0,e.jsxs)(r.az,{color:"bad",children:[(0,e.jsx)(r.In,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):A.od_warning&&(K="average",N=(0,e.jsxs)(r.az,{color:"average",children:[(0,e.jsx)(r.In,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.jsx)(r.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsx)(r.wn,{title:A.title,level:"3",mx:"0",lineHeight:"18px",buttons:N,children:(0,e.jsxs)(r.so,{align:"flex-start",children:[(0,e.jsxs)(r.z2,{min:"0",max:S,value:A.occ_amount/S,color:K,mr:"0.5rem",children:[A.pretty_amount,"/",S,"u"]}),P.map(function(k,X){return(0,e.jsx)(r.$n,{disabled:!A.injectable||A.occ_amount+k>S||I.stat===2,icon:"syringe",content:k,mb:"0",height:"19px",onClick:function(){return O("chemical",{chemid:A.id,amount:k})}},X)})]})})},R)})})},p=function(C){var j=(0,n.Oc)(),O=j.act,b=j.data,I=b.isBeakerLoaded;return(0,e.jsx)(r.wn,{textAlign:"center",flexGrow:"1",children:(0,e.jsx)(r.so,{height:"100%",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected.",I&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"eject",content:"Remove Beaker",onClick:function(){return O("removebeaker")}})})||null]})})})}},438:function(M,y,t){"use strict";t.r(y),t.d(y,{SmartVend:function(){return a}});var e=t(88095),i=t(11358),n=t(4413),r=t(92514),s=t(84905),a=function(g){var x=(0,n.Oc)(),d=x.act,h=x.config,v=x.data;return(0,e.jsx)(s.p8,{width:500,height:550,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsxs)(r.wn,{title:"Storage",children:[v.secure&&(0,e.jsx)(r.IC,{danger:v.locked===-1,info:v.locked!==-1,children:v.locked===-1?(0,e.jsx)(r.az,{children:"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($..."}):(0,e.jsx)(r.az,{children:"Secure Access: Please have your identification ready."})})||null,v.contents.length===0&&(0,e.jsxs)(r.IC,{children:["Unfortunately, this ",h.title," is empty."]})||(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Item"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:"Amount"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:"Dispense"})]}),(0,i.Tj)(function(u,m){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:u.name}),(0,e.jsxs)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:[u.amount," in stock"]}),(0,e.jsxs)(r.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(r.$n,{content:"1",disabled:u.amount<1,onClick:function(){return d("Release",{index:u.index,amount:1})}}),(0,e.jsx)(r.$n,{content:"5",disabled:u.amount<5,onClick:function(){return d("Release",{index:u.index,amount:5})}}),(0,e.jsx)(r.$n,{content:"25",disabled:u.amount<25,onClick:function(){return d("Release",{index:u.index,amount:25})}}),(0,e.jsx)(r.$n,{content:"50",disabled:u.amount<50,onClick:function(){return d("Release",{index:u.index,amount:50})}}),(0,e.jsx)(r.$n,{content:"Custom",disabled:u.amount<1,onClick:function(){return d("Release",{index:u.index})}}),(0,e.jsx)(r.$n,{content:"All",disabled:u.amount<1,onClick:function(){return d("Release",{index:u.index,amount:u.amount})}})]})]},m)})(v.contents)]})]})})})}},99278:function(M,y,t){"use strict";t.r(y),t.d(y,{Smes:function(){return x}});var e=t(88095),i=t(5229),n=t(4413),r=t(92514),s=t(24158),a=t(84905),g=1e3,x=function(d){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.capacityPercent,c=u.capacity,f=u.charge,p=u.inputAttempt,C=u.inputting,j=u.inputLevel,O=u.inputLevelMax,b=u.inputAvailable,I=u.outputAttempt,_=u.outputting,S=u.outputLevel,P=u.outputLevelMax,A=u.outputUsed,R=m>=100&&"good"||C&&"average"||"bad",K=_&&"good"||f>0&&"average"||"bad";return(0,e.jsx)(a.p8,{width:340,height:350,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Stored Energy",children:(0,e.jsxs)(r.z2,{value:m*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[(0,i.LI)(f/(1e3*60),1)," kWh /"," ",(0,i.LI)(c/(1e3*60))," kWh (",m,"%)"]})}),(0,e.jsx)(r.wn,{title:"Input",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Charge Mode",buttons:(0,e.jsx)(r.$n,{icon:p?"sync-alt":"times",selected:p,onClick:function(){return v("tryinput")},children:p?"On":"Off"}),children:(0,e.jsx)(r.az,{color:R,children:m>=100&&"Fully Charged"||C&&"Charging"||"Not Charging"})}),(0,e.jsx)(r.Ki.Item,{label:"Target Input",children:(0,e.jsxs)(r.so,{inline:!0,width:"100%",children:[(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"fast-backward",disabled:j===0,onClick:function(){return v("input",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:j===0,onClick:function(){return v("input",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:j/g,fillValue:b/g,minValue:0,maxValue:O/g,step:5,stepPixelSize:4,format:function(N){return(0,s.d5)(N*g,1)},onDrag:function(N,k){return v("input",{target:k*g})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:j===O,onClick:function(){return v("input",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:j===O,onClick:function(){return v("input",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Available",children:(0,s.d5)(b)})]})}),(0,e.jsx)(r.wn,{title:"Output",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Output Mode",buttons:(0,e.jsx)(r.$n,{icon:I?"power-off":"times",selected:I,onClick:function(){return v("tryoutput")},children:I?"On":"Off"}),children:(0,e.jsx)(r.az,{color:K,children:_?"Sending":f>0?"Not Sending":"No Charge"})}),(0,e.jsx)(r.Ki.Item,{label:"Target Output",children:(0,e.jsxs)(r.so,{inline:!0,width:"100%",children:[(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"fast-backward",disabled:S===0,onClick:function(){return v("output",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:S===0,onClick:function(){return v("output",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:S/g,minValue:0,maxValue:P/g,step:5,stepPixelSize:4,format:function(N){return(0,s.d5)(N*g,1)},onDrag:function(N,k){return v("output",{target:k*g})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:S===P,onClick:function(){return v("output",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:S===P,onClick:function(){return v("output",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Outputting",children:(0,s.d5)(A)})]})})]})})}},42456:function(M,y,t){"use strict";t.r(y),t.d(y,{SolarControl:function(){return a}});var e=t(88095),i=t(5229),n=t(4413),r=t(92514),s=t(84905),a=function(g){var x=(0,n.Oc)(),d=x.act,h=x.data,v=h.generated,u=h.generated_ratio,m=h.sun_angle,c=h.array_angle,f=h.rotation_rate,p=h.max_rotation_rate,C=h.tracking_state,j=h.connected_panels,O=h.connected_tracker;return(0,e.jsx)(s.p8,{width:380,height:230,children:(0,e.jsxs)(s.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"sync",content:"Scan for new hardware",onClick:function(){return d("refresh")}}),children:(0,e.jsxs)(r.xA,{children:[(0,e.jsx)(r.xA.Column,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Solar tracker",color:O?"good":"bad",children:O?"OK":"N/A"}),(0,e.jsx)(r.Ki.Item,{label:"Solar panels",color:j>0?"good":"bad",children:j})]})}),(0,e.jsx)(r.xA.Column,{size:1.5,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power output",children:(0,e.jsx)(r.z2,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:u,children:v+" W"})}),(0,e.jsxs)(r.Ki.Item,{label:"Star orientation",children:[m,"\xB0"]})]})})]})}),(0,e.jsx)(r.wn,{title:"Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Tracking",children:[(0,e.jsx)(r.$n,{icon:"times",content:"Off",selected:C===0,onClick:function(){return d("tracking",{mode:0})}}),(0,e.jsx)(r.$n,{icon:"clock-o",content:"Timed",selected:C===1,onClick:function(){return d("tracking",{mode:1})}}),(0,e.jsx)(r.$n,{icon:"sync",content:"Auto",selected:C===2,disabled:!O,onClick:function(){return d("tracking",{mode:2})}})]}),(0,e.jsxs)(r.Ki.Item,{label:"Azimuth",children:[(C===0||C===1)&&(0,e.jsx)(r.Q7,{width:"52px",unit:"\xB0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:c,format:function(b){var I=Math.sign(b)>0?" (CW)":" (CCW)";return Math.abs((0,i.LI)(b))+I},onDrag:function(b,I){return d("azimuth",{value:I})}}),C===1&&(0,e.jsx)(r.Q7,{width:"80px",unit:"deg/h",step:1,minValue:-p-.01,maxValue:p+.01,value:f,format:function(b){var I=Math.sign(b)>0?" (CW)":" (CCW)";return Math.abs((0,i.LI)(b))+I},onDrag:function(b,I){return d("azimuth_rate",{value:I})}}),C===2&&(0,e.jsxs)(r.az,{inline:!0,color:"label",mt:"3px",children:[c+"\xB0"," (auto)"]})]})]})})]})})}},96031:function(M,y,t){"use strict";t.r(y),t.d(y,{SpaceHeater:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(1568),s=t(84905),a=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=h.temp,u=h.minTemp,m=h.maxTemp,c=h.cell,f=h.power;return(0,e.jsx)(s.p8,{width:300,height:250,children:(0,e.jsxs)(s.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Target Temperature",children:[v," K (",v-r.Ai,"\xB0 C)"]}),(0,e.jsxs)(n.Ki.Item,{label:"Current Charge",children:[f,"% ",!c&&"(No Cell Inserted)"]})]})}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Wx,{children:[(0,e.jsx)(n.Wx.Item,{label:"Thermostat",children:(0,e.jsx)(n.N6,{animated:!0,value:v-r.Ai,minValue:u-r.Ai,maxValue:m-r.Ai,unit:"C",onChange:function(p,C){return d("temp",{newtemp:C+r.Ai})}})}),(0,e.jsx)(n.Wx.Item,{label:"Cell",children:c?(0,e.jsx)(n.$n,{icon:"eject",content:"Eject Cell",onClick:function(){return d("cellremove")}}):(0,e.jsx)(n.$n,{icon:"car-battery",content:"Insert Cell",onClick:function(){return d("cellinstall")}})})]})})]})})}},98932:function(M,y,t){"use strict";t.r(y),t.d(y,{Stack:function(){return x}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905);function s(m,c){(c==null||c>m.length)&&(c=m.length);for(var f=0,p=new Array(c);f=m.length?{done:!0}:{done:!1,value:m[p++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var x=function(m){var c=(0,i.Oc)(),f=c.act,p=c.data,C=p.amount,j=p.recipes;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Amount: "+C,children:(0,e.jsx)(d,{recipes:j})})})})},d=function(m){var c=(0,i.Oc)(),f=c.act,p=c.data,C=m.recipes,j=Object.keys(C).sort();return j.map(function(O,b){var I=C[O];return I.ref===void 0?(0,e.jsx)(n.Nt,{ml:1,mb:-.7,color:"label",title:O,children:(0,e.jsx)(n.az,{ml:1,children:(0,e.jsx)(d,{recipes:I})})},b):(0,e.jsx)(u,{title:O,recipe:I},b)})},h=function(m,c){return m.req_amount>c?0:Math.floor(c/m.req_amount)},v=function(m){for(var c=function(){var A=P.value;b>=A&&_.push((0,e.jsx)(n.$n,{content:A*j.res_amount+"x",onClick:function(){return p("make",{ref:j.ref,multiplier:A})}}))},f=(0,i.Oc)(),p=f.act,C=f.data,j=m.recipe,O=m.maxMultiplier,b=Math.min(O,Math.floor(j.max_res_amount/j.res_amount)),I=[5,10,25],_=[],S=g(I),P;!(P=S()).done;)c();return I.indexOf(b)===-1&&_.push((0,e.jsx)(n.$n,{content:b*j.res_amount+"x",onClick:function(){return p("make",{ref:j.ref,multiplier:b})}})),_},u=function(m){var c=(0,i.Oc)(),f=c.act,p=c.data,C=p.amount,j=m.recipe,O=m.title,b=j.res_amount,I=j.max_res_amount,_=j.req_amount,S=j.ref,P=O;P+=" (",P+=_+" ",P+="sheet"+(_>1?"s":""),P+=")",b>1&&(P=b+"x "+P);var A=h(j,C);return(0,e.jsx)(n.az,{children:(0,e.jsx)(n.XI,{children:(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{fluid:!0,disabled:!A,icon:"wrench",content:P,onClick:function(){return f("make",{ref:j.ref,multiplier:1})}})}),I>1&&A>1&&(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(v,{recipe:j,maxMultiplier:A})})]})})})}},47441:function(M,y,t){"use strict";t.r(y),t.d(y,{StationAlertConsole:function(){return s},StationAlertConsoleContent:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(){return(0,e.jsx)(r.p8,{width:425,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=h.categories,u=v===void 0?[]:v;return u.map(function(m){return(0,e.jsx)(n.wn,{title:m.category,children:(0,e.jsxs)("ul",{children:[m.alarms.length===0&&(0,e.jsx)("li",{className:"color-good",children:"Systems Nominal"}),m.alarms.map(function(c){var f="";return c.has_cameras?f=(0,e.jsx)(n.wn,{children:c.cameras.map(function(p){return(0,e.jsx)(n.$n,{disabled:p.deact,content:p.name+(p.deact?" (deactived)":""),icon:"video",onClick:function(){return d("switchTo",{camera:p.camera})}},p.name)})}):c.lost_sources&&(f=(0,e.jsxs)(n.az,{color:"bad",children:["Lost Alarm Sources: ",c.lost_sources]})),(0,e.jsxs)("li",{children:[c.name,c.origin_lost?(0,e.jsx)(n.az,{color:"bad",children:"Alarm Origin Lost."}):"",f]},c.name)})]})},m.category)})}},89052:function(M,y,t){"use strict";t.r(y),t.d(y,{StationBlueprints:function(){return s},StationBlueprintsContent:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(g){return(0,e.jsx)(r.p8,{width:870,height:708,children:(0,e.jsx)(a,{})})},a=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=x.config,u=h.mapRef,m=h.areas,c=h.turfs;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:"Honk!"})}),(0,e.jsx)("div",{className:"CameraConsole__right",children:(0,e.jsx)(n.D1,{className:"CameraConsole__map",params:{id:u,type:"map"}})})]})}},38501:function(M,y,t){"use strict";t.r(y),t.d(y,{StockExchange:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(u){var m=(0,i.Oc)(),c=m.act,f=m.data,p=f.screen,C=f.stationName,j;return p==="stocks"?j=(0,e.jsx)(a,{}):p==="logs"?j=(0,e.jsx)(d,{}):p==="archive"?j=(0,e.jsx)(h,{}):p==="graph"&&(j=(0,e.jsx)(v,{})),(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:""+C+" Stock Exchange",children:j})})})},a=function(u){var m=(0,i.Oc)(),c=m.act,f=m.data,p=f.balance,C=f.stationName,j=f.viewMode,O=(0,e.jsx)(g,{});return j==="Full"?O=(0,e.jsx)(g,{}):j==="Compressed"&&(O=(0,e.jsx)(x,{})),(0,e.jsxs)(n.az,{children:[(0,e.jsxs)("span",{children:["Welcome, ",(0,e.jsxs)("b",{children:[C," Cargo Department"]})," |"," "]}),(0,e.jsxs)("span",{children:[(0,e.jsx)("b",{children:"Credits:"})," ",p]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"View mode: "}),(0,e.jsx)(n.$n,{content:j,onClick:function(){return c("stocks_cycle_view")}}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Stock Transaction Log: "}),(0,e.jsx)(n.$n,{icon:"list",content:"Check",onClick:function(){return c("stocks_check")}}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"This is a work in progress. Certain features may not be available."}),(0,e.jsx)(n.wn,{title:"Listed Stocks",children:O})]})},g=function(u){var m=(0,i.Oc)(),c=m.act,f=m.data,p=f.stocks,C=p===void 0?[]:p;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)("b",{children:"Actions:"})," + Buy, - Sell, (A)rchives, (H)istory",(0,e.jsx)(n.cG,{}),(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(n.XI.Cell,{children:"ID"}),(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Value"}),(0,e.jsx)(n.XI.Cell,{children:"Owned"}),(0,e.jsx)(n.XI.Cell,{children:"Avail"}),(0,e.jsx)(n.XI.Cell,{children:"Actions"})]}),(0,e.jsx)(n.cG,{}),C.map(function(j){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(n.XI.Cell,{color:"label",children:j.ID}),(0,e.jsx)(n.XI.Cell,{color:"label",children:j.Name}),(0,e.jsx)(n.XI.Cell,{color:"label",children:j.Value}),(0,e.jsx)(n.XI.Cell,{color:"label",children:j.Owned}),(0,e.jsx)(n.XI.Cell,{color:"label",children:j.Avail}),(0,e.jsxs)(n.XI.Cell,{color:"label",children:[(0,e.jsx)(n.$n,{icon:"plus",disabled:!1,onClick:function(){return c("stocks_buy",{share:j.REF})}}),(0,e.jsx)(n.$n,{icon:"minus",disabled:!1,onClick:function(){return c("stocks_sell",{share:j.REF})}}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{content:"A",onClick:function(){return c("stocks_archive",{share:j.REF})}}),(0,e.jsx)(n.$n,{content:"H",onClick:function(){return c("stocks_history",{share:j.REF})}}),(0,e.jsx)("br",{})]})]},j.ID)})]})]})},x=function(u){var m=(0,i.Oc)(),c=m.act,f=m.data,p=f.stocks,C=p===void 0?[]:p;return(0,e.jsx)(n.az,{children:C.map(function(j){return(0,e.jsxs)(n.az,{children:[(0,e.jsx)("span",{children:j.name})," ",(0,e.jsx)("span",{children:j.ID}),j.bankrupt===1&&(0,e.jsx)("b",{color:"red",children:"BANKRUPT"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Unified shares"})," ",j.Unification," ago.",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Current value per share:"})," ",j.Value," |"," ",(0,e.jsx)(n.$n,{content:"View history",onClick:function(){return c("stocks_history",{share:j.REF})}}),(0,e.jsx)("br",{}),"You currently own ",(0,e.jsx)("b",{children:j.Owned})," shares in this company.",(0,e.jsx)("br",{}),"There are ",j.Avail," purchasable shares on the market currently.",(0,e.jsx)("br",{}),j.bankrupt===1?(0,e.jsx)("span",{children:"You cannot buy or sell shares in a bankrupt company!"}):(0,e.jsxs)("span",{children:[(0,e.jsx)(n.$n,{content:"Buy shares",onClick:function(){return c("stocks_buy",{share:j.REF})}})," ","|"," ",(0,e.jsx)(n.$n,{content:"Sell shares",onClick:function(){return c("stocks_sell",{share:j.REF})}})]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Prominent products:"}),(0,e.jsx)("br",{}),(0,e.jsx)("i",{children:j.Products}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{content:"View news archives",onClick:function(){return c("stocks_archive",{share:j.REF})}})," ",(0,e.jsx)(n.cG,{})]},j.ID)})})},d=function(u){var m=(0,i.Oc)(),c=m.act,f=m.data,p=f.logs,C=p===void 0?[]:p;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)("h2",{children:"Stock Transaction Logs"}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{content:"Go back",onClick:function(){return c("stocks_backbutton")}}),(0,e.jsx)(n.cG,{}),(0,e.jsx)("div",{children:C.map(function(j){return(0,e.jsxs)(n.az,{children:[j.type!=="borrow"?(0,e.jsxs)("div",{children:[j.time," | ",(0,e.jsx)("b",{children:j.user_name})," ",j.type==="transaction_bought"?(0,e.jsx)("span",{children:"bought"}):(0,e.jsx)("span",{children:"sold"})," ",(0,e.jsx)("b",{children:j.stocks})," stocks at ",j.shareprice," a share for"," ",(0,e.jsx)("b",{children:j.money})," total credits"," ",j.type==="transaction_bought"?(0,e.jsx)("span",{children:"in"}):(0,e.jsx)("span",{children:"from"})," ",(0,e.jsx)("b",{children:j.company_name}),".",(0,e.jsx)("br",{})]}):(0,e.jsxs)("div",{children:[j.time," | ",(0,e.jsx)("b",{children:j.user_name})," borrowed ",(0,e.jsx)("b",{children:j.stocks})," ","stocks with a deposit of ",(0,e.jsx)("b",{children:j.money})," credits in"," ",(0,e.jsx)("b",{children:j.company_name}),".",(0,e.jsx)("br",{})]}),(0,e.jsx)(n.cG,{})]},j.time)})})]})},h=function(u){var m=(0,i.Oc)(),c=m.act,f=m.data,p=f.name,C=f.events,j=C===void 0?[]:C,O=f.articles,b=O===void 0?[]:O;return(0,e.jsxs)(n.az,{children:[(0,e.jsxs)("h2",{children:["News feed for ",p]}),(0,e.jsx)(n.$n,{content:"Go back",onClick:function(){return c("stocks_backbutton")}}),(0,e.jsx)("h3",{children:"Events"}),(0,e.jsx)(n.cG,{}),(0,e.jsx)("div",{children:j.map(function(I){return(0,e.jsxs)(n.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:I.current_title}),(0,e.jsx)("br",{}),I.current_desc]}),(0,e.jsx)(n.cG,{})]},I.current_title)})}),(0,e.jsx)("br",{}),(0,e.jsx)("h3",{children:"Articles"}),(0,e.jsx)(n.cG,{}),(0,e.jsx)("div",{children:b.map(function(I){return(0,e.jsxs)(n.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:I.headline}),(0,e.jsx)("i",{children:I.subtitle}),(0,e.jsx)("br",{}),I.article,(0,e.jsx)("br",{}),"- ",I.author,", ",I.spacetime," (via"," ",(0,e.jsx)("i",{children:I.outlet}),")"]}),(0,e.jsx)(n.cG,{})]},I.headline)})})]})},v=function(u){var m=(0,i.Oc)(),c=m.act,f=m.data,p=f.name,C=f.maxValue,j=f.values,O=j===void 0?[]:j;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{content:"Go back",onClick:function(){return c("stocks_backbutton")}}),(0,e.jsx)(n.cG,{}),(0,e.jsx)(n.wn,{position:"relative",height:"100%",children:(0,e.jsx)(n.t1.Line,{fillPositionedParent:!0,data:O,rangeX:[0,O.length-1],rangeY:[0,C],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"})}),(0,e.jsx)(n.cG,{}),(0,e.jsxs)("p",{children:[p," share value per share"]})]})}},21665:function(M,y,t){"use strict";t.r(y),t.d(y,{SuitCycler:function(){return a}});var e=t(88095),i=t(44583),n=t(4413),r=t(92514),s=t(84905),a=function(v){var u=function(X){P(X)},m=function(X){K(X)},c=(0,n.Oc)(),f=c.act,p=c.data,C=p.active,j=p.locked,O=p.uv_active,b=p.species,I=p.departments,_=(0,i.useState)(!!I&&I[0]||null),S=_[0],P=_[1],A=(0,i.useState)(!!b&&b[0]||null),R=A[0],K=A[1],N=(0,e.jsx)(g,{selectedDepartment:S,selectedSpecies:R,onSelectedDepartment:u,onSelectedSpecies:m});return O?N=(0,e.jsx)(x,{}):j?N=(0,e.jsx)(d,{}):C&&(N=(0,e.jsx)(h,{})),(0,e.jsx)(s.p8,{width:320,height:400,children:(0,e.jsx)(s.p8.Content,{children:N})})},g=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,f=c.safeties,p=c.occupied,C=c.suit,j=c.helmet,O=c.departments,b=c.species,I=c.uv_level,_=c.max_uv_level,S=c.can_repair,P=c.damage;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Storage",buttons:(0,e.jsx)(r.$n,{icon:"lock",content:"Lock",onClick:function(){return m("lock")}}),children:[!!(p&&f)&&(0,e.jsxs)(r.IC,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(r.$n,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return m("eject_guy")}})]}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Helmet",children:(0,e.jsx)(r.$n,{icon:j?"square":"square-o",content:j||"Empty",disabled:!j,onClick:function(){return m("dispense",{item:"helmet"})}})}),(0,e.jsx)(r.Ki.Item,{label:"Suit",children:(0,e.jsx)(r.$n,{icon:C?"square":"square-o",content:C||"Empty",disabled:!C,onClick:function(){return m("dispense",{item:"suit"})}})}),S&&P?(0,e.jsxs)(r.Ki.Item,{label:"Suit Damage",children:[P,(0,e.jsx)(r.$n,{icon:"wrench",content:"Repair",onClick:function(){return m("repair_suit")}})]}):null]})]}),(0,e.jsxs)(r.wn,{title:"Customization",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Target Paintjob",children:(0,e.jsx)(r.ms,{noscroll:!0,width:"150px",options:O,selected:v.selectedDepartment,onSelected:function(A){v.onSelectedDepartment(A),m("department",{department:A})}})}),(0,e.jsx)(r.Ki.Item,{label:"Target Species",children:(0,e.jsx)(r.ms,{width:"150px",maxHeight:"160px",options:b,selected:v.selectedSpecies,onSelected:function(A){v.onSelectedSpecies(A),m("species",{species:A})}})})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,content:"Customize",onClick:function(){return m("apply_paintjob")}})]}),(0,e.jsx)(r.wn,{title:"UV Decontamination",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Radiation Level",children:(0,e.jsx)(r.Q7,{width:"50px",value:I,minValue:1,maxValue:_,stepPixelSize:30,onChange:function(A,R){return m("radlevel",{radlevel:R})}})}),(0,e.jsx)(r.Ki.Item,{label:"Decontaminate",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"recycle",disabled:p&&f,textAlign:"center",onClick:function(){return m("uv")}})})]})})]})},x=function(v){return(0,e.jsx)(r.IC,{children:"Contents are currently being decontaminated. Please wait."})},d=function(v){var u=(0,n.Oc)(),m=u.act,c=u.data,f=c.model_text,p=c.userHasAccess;return(0,e.jsxs)(r.wn,{title:"Locked",textAlign:"center",children:[(0,e.jsxs)(r.az,{color:"bad",bold:!0,children:["The ",f," suit cycler is currently locked. Please contact your system administrator."]}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"unlock",content:"[Unlock]",disabled:!p,onClick:function(){return m("lock")}})})]})},h=function(v){return(0,e.jsx)(r.IC,{children:"Contents are currently being painted. Please wait."})}},42688:function(M,y,t){"use strict";t.r(y),t.d(y,{SuitStorageUnit:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(h){var v=(0,i.Oc)(),u=v.act,m=v.data,c=m.panelopen,f=m.uv_active,p=m.broken,C=(0,e.jsx)(a,{});return c?C=(0,e.jsx)(g,{}):f?C=(0,e.jsx)(x,{}):p&&(C=(0,e.jsx)(d,{})),(0,e.jsx)(r.p8,{width:400,height:365,children:(0,e.jsx)(r.p8.Content,{children:C})})},a=function(h){var v=(0,i.Oc)(),u=v.act,m=v.data,c=m.locked,f=m.open,p=m.safeties,C=m.occupied,j=m.suit,O=m.helmet,b=m.mask;return(0,e.jsxs)(n.wn,{title:"Storage",minHeight:"260px",buttons:(0,e.jsxs)(e.Fragment,{children:[!f&&(0,e.jsx)(n.$n,{icon:c?"unlock":"lock",content:c?"Unlock":"Lock",onClick:function(){return u("lock")}}),!c&&(0,e.jsx)(n.$n,{icon:f?"sign-out-alt":"sign-in-alt",content:f?"Close":"Open",onClick:function(){return u("door")}})]}),children:[!!(C&&p)&&(0,e.jsxs)(n.IC,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return u("eject_guy")}})]}),c&&(0,e.jsxs)(n.az,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,e.jsx)(n.az,{children:"Unit Locked"}),(0,e.jsx)(n.In,{name:"lock"})]})||f&&(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Helmet",children:(0,e.jsx)(n.$n,{icon:O?"square":"square-o",content:O||"Empty",disabled:!O,onClick:function(){return u("dispense",{item:"helmet"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Suit",children:(0,e.jsx)(n.$n,{icon:j?"square":"square-o",content:j||"Empty",disabled:!j,onClick:function(){return u("dispense",{item:"suit"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Mask",children:(0,e.jsx)(n.$n,{icon:b?"square":"square-o",content:b||"Empty",disabled:!b,onClick:function(){return u("dispense",{item:"mask"})}})})]})||(0,e.jsx)(n.$n,{fluid:!0,icon:"recycle",content:"Decontaminate",disabled:C&&p,textAlign:"center",onClick:function(){return u("uv")}})]})},g=function(h){var v=(0,i.Oc)(),u=v.act,m=v.data,c=m.safeties,f=m.uv_super;return(0,e.jsxs)(n.wn,{title:"Maintenance Panel",children:[(0,e.jsx)(n.az,{color:"grey",children:"The panel is ridden with controls, button and meters, labeled in strange signs and symbols that you cannot understand. Probably the manufactoring world's language. Among other things, a few controls catch your eye."}),(0,e.jsx)("br",{}),(0,e.jsxs)(n.az,{children:["A small dial with a biohazard symbol next to it. It's pointing towards a gauge that reads ",f?"15nm":"185nm",".",(0,e.jsxs)(n.so,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(n.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(n.N6,{size:2,inline:!0,value:f,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:f?"red":"green",format:function(p){return p?"15nm":"185nm"},onChange:function(p,C){return u("toggleUV")}})}),(0,e.jsx)(n.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(n.In,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,e.jsx)("br",{}),(0,e.jsxs)(n.az,{children:["A thick old-style button, with 2 grimy LED lights next to it. The"," ",c?(0,e.jsx)("font",{color:"green",children:"GREEN"}):(0,e.jsx)("font",{color:"red",children:"RED"})," ","LED is on.",(0,e.jsxs)(n.so,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(n.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(n.$n,{fontSize:"2rem",color:"grey",inline:!0,icon:"caret-square-right",style:{border:"4px solid #777","border-style":"outset"},onClick:function(){return u("togglesafeties")}})}),(0,e.jsxs)(n.so.Item,{basis:"50%",textAlign:"center",children:[(0,e.jsx)(n.In,{name:"circle",color:c?"black":"red",mr:2}),(0,e.jsx)(n.In,{name:"circle",color:c?"green":"black"})]})]})]})]})},x=function(h){return(0,e.jsx)(n.IC,{children:"Contents are currently being decontaminated. Please wait."})},d=function(h){return(0,e.jsx)(n.IC,{danger:!0,children:"Unit chamber is too contaminated to continue usage. Please call for a qualified individual to perform maintenance."})}},67186:function(M,y,t){"use strict";t.r(y),t.d(y,{SupermatterMonitor:function(){return g},SupermatterMonitorContent:function(){return x}});var e=t(88095),i=t(5229),n=t(33854),r=t(4413),s=t(92514),a=t(84905),g=function(v){return(0,e.jsx)(a.p8,{width:600,height:400,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(v){var u=(0,r.Oc)(),m=u.act,c=u.data,f=c.active;return f?(0,e.jsx)(h,{}):(0,e.jsx)(d,{})},d=function(v){var u=(0,r.Oc)(),m=u.act,c=u.data,f=c.supermatters;return(0,e.jsx)(s.wn,{title:"Supermatters Detected",buttons:(0,e.jsx)(s.$n,{content:"Refresh",icon:"sync",onClick:function(){return m("refresh")}}),children:(0,e.jsx)(s.so,{wrap:"wrap",children:f.map(function(p,C){return(0,e.jsx)(s.so.Item,{basis:"49%",grow:C%2,children:(0,e.jsx)(s.wn,{title:p.area_name+" (#"+p.uid+")",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"Integrity",children:[p.integrity," %"]}),(0,e.jsx)(s.Ki.Item,{label:"Options",children:(0,e.jsx)(s.$n,{icon:"eye",content:"View Details",onClick:function(){return m("set",{set:p.uid})}})})]})})},C)})})})},h=function(v){var u=(0,r.Oc)(),m=u.act,c=u.data,f=c.SM_area,p=c.SM_integrity,C=c.SM_power,j=c.SM_ambienttemp,O=c.SM_ambientpressure,b=c.SM_EPR,I=c.SM_gas_O2,_=c.SM_gas_CO2,S=c.SM_gas_N2,P=c.SM_gas_PH,A=c.SM_gas_N2O;return(0,e.jsx)(s.wn,{title:(0,n.Sn)(f),buttons:(0,e.jsx)(s.$n,{icon:"arrow-left",content:"Return to Menu",onClick:function(){return m("clear")}}),children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(s.Ki.Item,{label:"Core Integrity",children:(0,e.jsx)(s.z2,{animated:!0,value:p,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-1/0,50]}})}),(0,e.jsx)(s.Ki.Item,{label:"Relative EER",children:(0,e.jsx)(s.az,{color:C>300&&"bad"||C>150&&"average"||"good",children:(0,e.jsx)(s.zv,{format:function(R){return(0,i.LI)(R,2)+" MeV/cm\xB3"},value:C})})}),(0,e.jsx)(s.Ki.Item,{label:"Temperature",children:(0,e.jsx)(s.az,{color:j>5e3&&"bad"||j>4e3&&"average"||"good",children:(0,e.jsx)(s.zv,{format:function(R){return(0,i.LI)(R,2)+" K"},value:j})})}),(0,e.jsx)(s.Ki.Item,{label:"Pressure",children:(0,e.jsx)(s.az,{color:O>1e4&&"bad"||O>5e3&&"average"||"good",children:(0,e.jsx)(s.zv,{format:function(R){return(0,i.LI)(R,2)+" kPa"},value:O})})}),(0,e.jsx)(s.Ki.Item,{label:"Chamber EPR",children:(0,e.jsx)(s.az,{color:b>4&&"bad"||b>1&&"average"||"good",children:(0,e.jsx)(s.zv,{format:function(R){return(0,i.LI)(R,2)},value:b})})}),(0,e.jsx)(s.Ki.Item,{label:"Gas Composition",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"O\xB2",children:[(0,e.jsx)(s.zv,{value:I}),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"CO\xB2",children:[(0,e.jsx)(s.zv,{value:_}),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"N\xB2",children:[(0,e.jsx)(s.zv,{value:S}),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"PH",children:[(0,e.jsx)(s.zv,{value:P}),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"N\xB2O",children:[(0,e.jsx)(s.zv,{value:A}),"%"]})]})})]})})}},85308:function(M,y,t){"use strict";t.r(y),t.d(y,{SupplyConsole:function(){return v}});var e=t(88095),i=t(11358),n=t(28763),r=t(44583),s=t(4413),a=t(92514),g=t(24158),x=t(5425),d=t(84905),h=function(C){var j=(0,s.Oc)(),O=j.act,b=j.data,I=b.supply_points,_=C.args,S=_.name,P=_.cost,A=_.manifest,R=_.ref,K=_.random;return(0,e.jsx)(a.wn,{width:"400px",level:2,m:"-1rem",pb:"1rem",title:S,buttons:(0,e.jsx)(a.$n,{icon:"shopping-cart",content:"Buy - "+P+" points",disabled:P>I,onClick:function(){return O("request_crate",{ref:R})}}),children:(0,e.jsx)(a.wn,{title:"Contains"+(K?" any "+K+" of:":""),scrollable:!0,height:"200px",children:A.map(function(N){return(0,e.jsx)(a.az,{children:N},N)})})})},v=function(C){var j=(0,s.Oc)(),O=j.act,b=j.data;return(0,x.modalRegisterBodyOverride)("view_crate",h),(0,e.jsx)(d.p8,{width:700,height:620,children:(0,e.jsxs)(d.p8.Content,{children:[(0,e.jsx)(x.ComplexModal,{maxWidth:"100%"}),(0,e.jsxs)(a.wn,{title:"Supply Records",children:[(0,e.jsx)(u,{}),(0,e.jsx)(m,{})]})]})})},u=function(C){var j=(0,s.Oc)(),O=j.act,b=j.data,I=b.supply_points,_=b.shuttle,S=b.shuttle_auth,P=null,A=!1;return S&&(_.launch===1&&_.mode===0?P=(0,e.jsx)(a.$n,{icon:"rocket",content:"Send Away",onClick:function(){return O("send_shuttle",{mode:"send_away"})}}):_.launch===2&&(_.mode===3||_.mode===1)?P=(0,e.jsx)(a.$n,{icon:"ban",content:"Cancel Launch",onClick:function(){return O("send_shuttle",{mode:"cancel_shuttle"})}}):_.launch===1&&_.mode===5&&(P=(0,e.jsx)(a.$n,{icon:"rocket",content:"Send Shuttle",onClick:function(){return O("send_shuttle",{mode:"send_to_station"})}})),_.force&&(A=!0)),(0,e.jsxs)(a.wn,{children:[(0,e.jsx)(a.Ki,{children:(0,e.jsx)(a.Ki.Item,{label:"Supply Points",children:(0,e.jsx)(a.zv,{value:I})})}),(0,e.jsx)(a.wn,{level:2,title:"Supply Shuttle",mt:2,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Location",buttons:(0,e.jsxs)(e.Fragment,{children:[P,A?(0,e.jsx)(a.$n,{icon:"exclamation-triangle",content:"Force Launch",onClick:function(){return O("send_shuttle",{mode:"force_shuttle"})}}):null]}),children:_.location}),(0,e.jsx)(a.Ki.Item,{label:"Engine",children:_.engine}),_.mode===4?(0,e.jsx)(a.Ki.Item,{label:"ETA",children:_.time>1?(0,g.fU)(_.time):"LATE"}):null]})})]})},m=function(C){var j=(0,s.Oc)(),O=j.act,b=j.data,I=b.order_auth,_=(0,r.useState)(0),S=_[0],P=_[1];return(0,e.jsxs)(a.wn,{title:"Menu",children:[(0,e.jsxs)(a.tU,{children:[(0,e.jsx)(a.tU.Tab,{icon:"box",selected:S===0,onClick:function(){return P(0)},children:"Request"}),(0,e.jsx)(a.tU.Tab,{icon:"check-circle-o",selected:S===1,onClick:function(){return P(1)},children:"Accepted"}),(0,e.jsx)(a.tU.Tab,{icon:"circle-o",selected:S===2,onClick:function(){return P(2)},children:"Requests"}),(0,e.jsx)(a.tU.Tab,{icon:"book",selected:S===3,onClick:function(){return P(3)},children:"Order history"}),(0,e.jsx)(a.tU.Tab,{icon:"book",selected:S===4,onClick:function(){return P(4)},children:"Export history"})]}),S===0?(0,e.jsx)(c,{}):null,S===1?(0,e.jsx)(f,{mode:"Approved"}):null,S===2?(0,e.jsx)(f,{mode:"Requested"}):null,S===3?(0,e.jsx)(f,{mode:"All"}):null,S===4?(0,e.jsx)(p,{}):null]})},c=function(C){var j=(0,s.Oc)(),O=j.act,b=j.data,I=b.categories,_=b.supply_packs,S=b.contraband,P=b.supply_points,A=(0,r.useState)(null),R=A[0],K=A[1],N=(0,n.L)([(0,i.pb)(function(k){return k.group===R}),(0,i.pb)(function(k){return!k.contraband||S}),(0,i.Ul)(function(k){return k.name}),(0,i.Ul)(function(k){return k.cost>P})])(_);return(0,e.jsx)(a.wn,{level:2,children:(0,e.jsxs)(a.BJ,{children:[(0,e.jsx)(a.BJ.Item,{basis:"25%",children:(0,e.jsx)(a.wn,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:I.map(function(k){return(0,e.jsx)(a.$n,{fluid:!0,content:k,selected:k===R,onClick:function(){return K(k)}},k)})})}),(0,e.jsx)(a.BJ.Item,{grow:1,ml:2,children:(0,e.jsx)(a.wn,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:N.map(function(k){return(0,e.jsx)(a.az,{children:(0,e.jsxs)(a.BJ,{align:"center",justify:"flex-start",children:[(0,e.jsx)(a.BJ.Item,{basis:"70%",children:(0,e.jsx)(a.$n,{fluid:!0,icon:"shopping-cart",ellipsis:!0,content:k.name,color:k.cost>P?"red":null,onClick:function(){return O("request_crate",{ref:k.ref})}})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{content:"#",color:k.cost>P?"red":null,onClick:function(){return O("request_crate_multi",{ref:k.ref})}})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{content:"C",color:k.cost>P?"red":null,onClick:function(){return O("view_crate",{crate:k.ref})}})}),(0,e.jsxs)(a.BJ.Item,{grow:1,children:[k.cost," points"]})]})},k.name)})})})]})})},f=function(C){var j=(0,s.Oc)(),O=j.act,b=j.data,I=C.mode,_=b.orders,S=b.order_auth,P=b.supply_points,A=_.filter(function(R){return R.status===I||I==="All"});return A.length?(0,e.jsxs)(a.wn,{level:2,children:[I==="Requested"&&S?(0,e.jsx)(a.$n,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",content:"Clear all requests",onClick:function(){return O("clear_all_requests")}}):null,A.map(function(R,K){return(0,e.jsxs)(a.wn,{title:"Order "+(K+1),buttons:I==="All"&&S?(0,e.jsx)(a.$n,{color:"red",icon:"trash",content:"Delete Record",onClick:function(){return O("delete_order",{ref:R.ref})}}):null,children:[(0,e.jsxs)(a.Ki,{children:[R.entries.map(function(N,k){return N.entry?(0,e.jsx)(a.Ki.Item,{label:N.field,buttons:S?(0,e.jsx)(a.$n,{icon:"pen",content:"Edit",onClick:function(){O("edit_order_value",{ref:R.ref,edit:N.field,default:N.entry})}}):null,children:N.entry},k):null}),I==="All"?(0,e.jsx)(a.Ki.Item,{label:"Status",children:R.status}):null]}),S&&I==="Requested"?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{icon:"check",content:"Approve",disabled:R.cost>P,onClick:function(){return O("approve_order",{ref:R.ref})}}),(0,e.jsx)(a.$n,{icon:"times",content:"Deny",onClick:function(){return O("deny_order",{ref:R.ref})}})]}):null]},K)})]}):(0,e.jsx)(a.wn,{level:2,children:"No orders found."})},p=function(C){var j=(0,s.Oc)(),O=j.act,b=j.data,I=b.receipts,_=b.order_auth;return I.length?(0,e.jsx)(a.wn,{level:2,children:I.map(function(S,P){return(0,e.jsxs)(a.wn,{children:[(0,e.jsxs)(a.Ki,{children:[S.title.map(function(A){return(0,e.jsx)(a.Ki.Item,{label:A.field,buttons:_?(0,e.jsx)(a.$n,{icon:"pen",content:"Edit",onClick:function(){return O("export_edit",{ref:S.ref,edit:A.field,default:A.entry})}}):null,children:A.entry},A.field)}),S.error?(0,e.jsx)(a.Ki.Item,{labelColor:"red",label:"Error",children:S.error}):S.contents.map(function(A,R){return(0,e.jsxs)(a.Ki.Item,{label:A.object,buttons:_?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{icon:"pen",content:"Edit",onClick:function(){return O("export_edit_field",{ref:S.ref,index:R+1,edit:"meow",default:A.object})}}),(0,e.jsx)(a.$n,{icon:"trash",color:"red",content:"Delete",onClick:function(){return O("export_delete_field",{ref:S.ref,index:R+1})}})]}):null,children:[A.quantity,"x -> ",A.value," points"]},R)})]}),_?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{mt:1,icon:"plus",content:"Add Item To Record",onClick:function(){return O("export_add_field",{ref:S.ref})}}),(0,e.jsx)(a.$n,{icon:"trash",content:"Delete Record",onClick:function(){return O("export_delete",{ref:S.ref})}})]}):null]},P)})}):(0,e.jsx)(a.wn,{level:2,children:"No receipts found."})}},64460:function(M,y,t){"use strict";t.r(y),t.d(y,{TEGenerator:function(){return g}});var e=t(88095),i=t(5229),n=t(4413),r=t(92514),s=t(24158),a=t(84905),g=function(d){var h=(0,n.Oc)().data,v=h.totalOutput,u=h.maxTotalOutput,m=h.thermalOutput,c=h.primary,f=h.secondary;return(0,e.jsx)(a.p8,{width:550,height:310,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Total Output",children:(0,e.jsx)(r.z2,{value:v,maxValue:u,children:(0,s.d5)(v)})}),(0,e.jsx)(r.Ki.Item,{label:"Thermal Output",children:(0,s.d5)(m)})]})}),c&&f?(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsx)(r.so.Item,{shrink:1,grow:1,children:(0,e.jsx)(x,{name:"Primary Circulator",values:c})}),(0,e.jsx)(r.so.Item,{shrink:1,grow:1,children:(0,e.jsx)(x,{name:"Secondary Circulator",values:f})})]}):(0,e.jsx)(r.az,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})},x=function(d){var h=d.name,v=d.values,u=v.dir,m=v.output,c=v.flowCapacity,f=v.inletPressure,p=v.inletTemperature,C=v.outletPressure,j=v.outletTemperature;return(0,e.jsx)(r.wn,{title:h+" ("+u+")",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Turbine Output",children:(0,s.d5)(m)}),(0,e.jsxs)(r.Ki.Item,{label:"Flow Capacity",children:[(0,i.LI)(c,2),"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Inlet Pressure",children:(0,s.QL)(f*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Inlet Temperature",children:[(0,i.LI)(p,2)," K"]}),(0,e.jsx)(r.Ki.Item,{label:"Outlet Pressure",children:(0,s.QL)(C*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Outlet Temperature",children:[(0,i.LI)(j,2)," K"]})]})})}},62646:function(M,y,t){"use strict";t.r(y),t.d(y,{Tank:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.connected,v=d.showToggle,u=v===void 0?!0:v,m=d.maskConnected,c=d.tankPressure,f=d.releasePressure,p=d.defaultReleasePressure,C=d.minReleasePressure,j=d.maxReleasePressure;return(0,e.jsx)(r.p8,{width:400,height:320,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:!!u&&(0,e.jsx)(n.$n,{icon:h?"air-freshener":"lock-open",selected:h,disabled:!m,content:"Mask Release Valve",onClick:function(){return x("toggle")}}),children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Mask Connected",children:m?"Yes":"No"})})}),(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Pressure",children:(0,e.jsx)(n.z2,{value:c/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:d.tankPressure+" kPa"})}),(0,e.jsxs)(n.Ki.Item,{label:"Pressure Regulator",children:[(0,e.jsx)(n.$n,{icon:"fast-backward",disabled:f===C,onClick:function(){return x("pressure",{pressure:"min"})}}),(0,e.jsx)(n.Q7,{animated:!0,value:parseFloat(f),width:"65px",unit:"kPa",minValue:C,maxValue:j,onChange:function(O,b){return x("pressure",{pressure:b})}}),(0,e.jsx)(n.$n,{icon:"fast-forward",disabled:f===j,onClick:function(){return x("pressure",{pressure:"max"})}}),(0,e.jsx)(n.$n,{icon:"undo",content:"",disabled:f===p,onClick:function(){return x("pressure",{pressure:"reset"})}})]})]})})]})})}},87867:function(M,y,t){"use strict";t.r(y),t.d(y,{TankDispenser:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.plasma,v=d.oxygen;return(0,e.jsx)(r.p8,{width:275,height:103,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Phoron",buttons:(0,e.jsx)(n.$n,{icon:h?"square":"square-o",content:"Dispense",disabled:!h,onClick:function(){return x("plasma")}}),children:h}),(0,e.jsx)(n.Ki.Item,{label:"Oxygen",buttons:(0,e.jsx)(n.$n,{icon:v?"square":"square-o",content:"Dispense",disabled:!v,onClick:function(){return x("oxygen")}}),children:v})]})})})})}},32481:function(M,y,t){"use strict";t.r(y),t.d(y,{TelecommsLogBrowser:function(){return a}});var e=t(88095),i=t(5229),n=t(4413),r=t(92514),s=t(84905),a=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=m.universal_translate,f=m.network,p=m.temp,C=m.servers,j=m.selectedServer;return(0,e.jsx)(s.p8,{width:575,height:450,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[p?(0,e.jsxs)(r.IC,{danger:p.color==="bad",warning:p.color!=="bad",children:[(0,e.jsx)(r.az,{display:"inline-box",verticalAlign:"middle",children:p.text}),(0,e.jsx)(r.$n,{icon:"times-circle",float:"right",onClick:function(){return u("cleartemp")}}),(0,e.jsx)(r.az,{clear:"both"})]}):null,(0,e.jsx)(r.wn,{title:"Network Control",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",content:"Refresh",onClick:function(){return u("scan")}}),(0,e.jsx)(r.$n,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:C.length===0,onClick:function(){return u("release")}})]}),children:(0,e.jsx)(r.$n,{content:f,icon:"pen",onClick:function(){return u("network")}})})})}),j?(0,e.jsx)(x,{network:f,server:j,universal_translate:c}):(0,e.jsx)(g,{network:f,servers:C})]})})},g=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=h.network,f=h.servers;return!f||!f.length?(0,e.jsxs)(r.wn,{title:"Detected Telecommunications Servers",children:[(0,e.jsx)(r.az,{color:"bad",children:"No servers detected."}),(0,e.jsx)(r.$n,{fluid:!0,content:"Scan",icon:"search",onClick:function(){return u("scan")}})]}):(0,e.jsx)(r.wn,{title:"Detected Telecommunications Servers",children:(0,e.jsx)(r.Ki,{children:f.map(function(p){return(0,e.jsx)(r.Ki.Item,{label:p.name+" ("+p.id+")",children:(0,e.jsx)(r.$n,{content:"View",icon:"eye",onClick:function(){return u("view",{id:p.id})}})},p.id)})})})},x=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=h.network,f=h.server,p=h.universal_translate;return(0,e.jsxs)(r.wn,{title:"Server ("+f.id+")",buttons:(0,e.jsx)(r.$n,{content:"Return",icon:"undo",onClick:function(){return u("mainmenu")}}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Total Recorded Traffic",children:f.totalTraffic>=1024?(0,i.LI)(f.totalTraffic/1024)+" Terrabytes":f.totalTraffic+" Gigabytes"})}),(0,e.jsx)(r.wn,{title:"Stored Logs",mt:"4px",children:(0,e.jsx)(r.so,{wrap:"wrap",children:!f.logs||!f.logs.length?"No Logs Detected.":f.logs.map(function(C){return(0,e.jsx)(r.so.Item,{m:"2px",basis:"49%",grow:C.id%2,children:(0,e.jsx)(r.wn,{title:p||C.parameters.uspeech||C.parameters.intelligible||C.input_type==="Execution Error"?C.input_type:"Audio File",buttons:(0,e.jsx)(r.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return u("delete",{id:C.id})}}),children:C.input_type==="Execution Error"?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Data type",children:"Error"}),(0,e.jsx)(r.Ki.Item,{label:"Output",children:C.parameters.message}),(0,e.jsx)(r.Ki.Item,{label:"Delete",children:(0,e.jsx)(r.$n,{icon:"trash",onClick:function(){return u("delete",{id:C.id})}})})]}):p||C.parameters.uspeech||C.parameters.intelligible?(0,e.jsx)(d,{log:C}):(0,e.jsx)(d,{error:!0})})},C.id)})})})]})},d=function(h){var v=(0,n.Oc)(),u=v.act,m=v.data,c=h.log,f=h.error,p=c&&c.parameters||{none:"none"},C=p.timecode,j=p.name,O=p.race,b=p.job,I=p.message;return f?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Time Recieved",children:C}),(0,e.jsx)(r.Ki.Item,{label:"Source",children:"Unidentifiable"}),(0,e.jsx)(r.Ki.Item,{label:"Class",children:O}),(0,e.jsx)(r.Ki.Item,{label:"Contents",children:"Unintelligible"})]}):(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Time Recieved",children:C}),(0,e.jsxs)(r.Ki.Item,{label:"Source",children:[j," (Job: ",b,")"]}),(0,e.jsx)(r.Ki.Item,{label:"Class",children:O}),(0,e.jsx)(r.Ki.Item,{label:"Contents",className:"LabeledList__breakContents",children:I})]})}},25058:function(M,y,t){"use strict";t.r(y),t.d(y,{TelecommsMachineBrowser:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=h.network,u=h.temp,m=h.machinelist,c=h.selectedMachine;return(0,e.jsx)(r.p8,{width:575,height:450,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[u?(0,e.jsxs)(n.IC,{danger:u.color==="bad",warning:u.color!=="bad",children:[(0,e.jsx)(n.az,{display:"inline-box",verticalAlign:"middle",children:u.text}),(0,e.jsx)(n.$n,{icon:"times-circle",float:"right",onClick:function(){return d("cleartemp")}}),(0,e.jsx)(n.az,{clear:"both"})]}):null,(0,e.jsx)(n.wn,{title:"Network Control",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"search",content:"Probe Network",onClick:function(){return d("scan")}}),(0,e.jsx)(n.$n,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:m.length===0,onClick:function(){return d("release")}})]}),children:(0,e.jsx)(n.$n,{content:v,icon:"pen",onClick:function(){return d("network")}})})})}),m&&m.length?(0,e.jsx)(a,{title:c?c.name+" ("+c.id+")":"Detected Network Entities",list:c?c.links:m,showBack:c}):(0,e.jsx)(n.wn,{title:"No Devices Found",children:(0,e.jsx)(n.$n,{icon:"search",content:"Probe Network",onClick:function(){return d("scan")}})})]})})},a=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=g.list,u=g.title,m=g.showBack;return(0,e.jsxs)(n.wn,{title:u,buttons:m&&(0,e.jsx)(n.$n,{icon:"undo",content:"Back to Main Menu",onClick:function(){return d("mainmenu")}}),children:[(0,e.jsx)(n.az,{color:"label",children:(0,e.jsx)("u",{children:"Linked entities"})}),(0,e.jsx)(n.Ki,{children:v.length?v.map(function(c){return(0,e.jsx)(n.Ki.Item,{label:c.name+" ("+c.id+")",children:(0,e.jsx)(n.$n,{content:"View",icon:"eye",onClick:function(){return d("view",{id:c.id})}})},c.id)}):(0,e.jsx)(n.Ki.Item,{color:"bad",children:"No links detected."})})]})}},45760:function(M,y,t){"use strict";t.r(y),t.d(y,{TelecommsMultitoolMenu:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=t(82489),a=function(d){var h=(0,i.Oc)(),v=h.act,u=h.data,m=u.temp,c=u.on,f=u.id,p=u.network,C=u.autolinkers,j=u.shadowlink,O=u.options,b=u.linked,I=u.filter,_=u.multitool,S=u.multitool_buffer;return(0,e.jsx)(r.p8,{width:520,height:540,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(s.TemporaryNotice,{}),(0,e.jsx)(g,{}),(0,e.jsx)(x,{options:O})]})})},g=function(d){var h=(0,i.Oc)(),v=h.act,u=h.data,m=u.temp,c=u.on,f=u.id,p=u.network,C=u.autolinkers,j=u.shadowlink,O=u.options,b=u.linked,I=u.filter,_=u.multitool,S=u.multitool_buffer;return(0,e.jsxs)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:c,content:c?"On":"Off",onClick:function(){return v("toggle")}}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Identification String",children:(0,e.jsx)(n.$n,{icon:"pen",content:f,onClick:function(){return v("id")}})}),(0,e.jsx)(n.Ki.Item,{label:"Network",children:(0,e.jsx)(n.$n,{icon:"pen",content:p,onClick:function(){return v("network")}})}),(0,e.jsx)(n.Ki.Item,{label:"Prefabrication",children:C?"TRUE":"FALSE"}),j?(0,e.jsx)(n.Ki.Item,{label:"Shadow Link",children:"Active."}):null,_?(0,e.jsxs)(n.Ki.Item,{label:"Multitool Buffer",children:[S?(0,e.jsxs)(e.Fragment,{children:[S.name," (",S.id,")"]}):null,(0,e.jsx)(n.$n,{color:S?"green":null,content:S?"Link ("+S.id+")":"Add Machine",icon:S?"link":"plus",onClick:S?function(){return v("link")}:function(){return v("buffer")}}),S?(0,e.jsx)(n.$n,{color:"red",content:"Flush",icon:"trash",onClick:function(){return v("flush")}}):null]}):null]}),(0,e.jsx)(n.wn,{title:"Linked network Entities",mt:1,children:(0,e.jsx)(n.Ki,{children:b.map(function(P){return(0,e.jsx)(n.Ki.Item,{label:P.ref+" "+P.name+" ("+P.id+")",buttons:(0,e.jsx)(n.$n.Confirm,{color:"red",icon:"trash",onClick:function(){return v("unlink",{unlink:P.index})}})},P.ref)})})}),(0,e.jsxs)(n.wn,{title:"Filtering Frequencies",mt:1,children:[I.map(function(P){return(0,e.jsx)(n.$n.Confirm,{content:P.name+" GHz",confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){return v("delete",{delete:P.freq})}},P.index)}),!I||I.length===0?(0,e.jsx)(n.az,{color:"label",children:"No filters."}):null]})]})},x=function(d){var h=(0,i.Oc)(),v=h.act,u=h.data,m=d.options,c=m.use_listening_level,f=m.use_broadcasting,p=m.use_receiving,C=m.listening_level,j=m.broadcasting,O=m.receiving,b=m.use_change_freq,I=m.change_freq,_=m.use_broadcast_range,S=m.use_receive_range,P=m.range,A=m.minRange,R=m.maxRange;return!c&&!f&&!p&&!b&&!_&&!S?(0,e.jsx)(n.wn,{title:"No Options Found"}):(0,e.jsx)(n.wn,{title:"Options",children:(0,e.jsxs)(n.Ki,{children:[c?(0,e.jsx)(n.Ki.Item,{label:"Signal Locked to Station",children:(0,e.jsx)(n.$n,{icon:C?"lock-closed":"lock-open",content:C?"Yes":"No",onClick:function(){return v("change_listening")}})}):null,f?(0,e.jsx)(n.Ki.Item,{label:"Broadcasting",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:j,content:j?"Yes":"No",onClick:function(){return v("broadcast")}})}):null,p?(0,e.jsx)(n.Ki.Item,{label:"Receving",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:O,content:O?"Yes":"No",onClick:function(){return v("receive")}})}):null,b?(0,e.jsx)(n.Ki.Item,{label:"Change Signal Frequency",children:(0,e.jsx)(n.$n,{icon:"wave-square",selected:!!I,content:I?"Yes ("+I+")":"No",onClick:function(){return v("change_freq")}})}):null,_||S?(0,e.jsx)(n.Ki.Item,{label:(_?"Broadcast":"Receive")+" Range",children:(0,e.jsx)(n.Q7,{value:P,minValue:A,maxValue:R,unit:"gigameters",stepPixelSize:4,format:function(K){return K+1},onDrag:function(K,N){return v("range",{range:N})}})}):null]})})}},2268:function(M,y,t){"use strict";t.r(y),t.d(y,{Teleporter:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.locked_name,v=d.station_connected,u=d.hub_connected,m=d.calibrated,c=d.teleporter_on;return(0,e.jsx)(r.p8,{width:300,height:200,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Target",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"bullseye",onClick:function(){return x("select_target")},content:h})}),(0,e.jsx)(n.Ki.Item,{label:"Calibrated",children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:m,color:m?"good":"bad",onClick:function(){return x("test_fire")},content:m?"Accurate":"Test Fire"})}),(0,e.jsx)(n.Ki.Item,{label:"Teleporter",children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:c,color:c?"good":"bad",onClick:function(){return x("toggle_on")},content:c?"Online":"OFFLINE"})}),(0,e.jsx)(n.Ki.Item,{label:"Station",children:v?"Connected":"Not Connected"}),(0,e.jsx)(n.Ki.Item,{label:"Hub",children:u?"Connected":"Not Connected"})]})})})})}},33756:function(M,y,t){"use strict";t.r(y),t.d(y,{TelesciConsole:function(){return a},TelesciConsoleContent:function(){return x}});var e=t(88095),i=t(11358),n=t(4413),r=t(92514),s=t(84905),a=function(d){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.noTelepad;return(0,e.jsx)(s.p8,{width:400,height:450,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:m&&(0,e.jsx)(g,{})||(0,e.jsx)(x,{})})})},g=function(d){return(0,e.jsxs)(r.wn,{title:"Error",color:"bad",children:["No telepad located.",(0,e.jsx)("br",{}),"Please add telepad data."]})},x=function(d){var h=(0,n.Oc)(),v=h.act,u=h.data,m=u.insertedGps,c=u.rotation,f=u.currentZ,p=u.cooldown,C=u.crystalCount,j=u.maxCrystals,O=u.maxPossibleDistance,b=u.maxAllowedDistance,I=u.distance,_=u.tempMsg,S=u.sectorOptions,P=u.lastTeleData;return(0,e.jsxs)(r.wn,{title:"Telepad Controls",buttons:(0,e.jsx)(r.$n,{icon:"eject",disabled:!m,onClick:function(){return v("ejectGPS")},content:"Eject GPS"}),children:[(0,e.jsx)(r.IC,{info:!0,children:p&&(0,e.jsxs)(r.az,{children:["Telepad is recharging. Please wait"," ",(0,e.jsx)(r.zv,{value:p})," seconds."]})||(0,e.jsx)(r.az,{children:_})}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Bearing",children:(0,e.jsx)(r.Q7,{fluid:!0,value:c,format:function(A){return A+"\xB0"},step:1,minValue:-900,maxValue:900,onDrag:function(A,R){return v("setrotation",{val:R})}})}),(0,e.jsx)(r.Ki.Item,{label:"Distance",children:(0,e.jsx)(r.Q7,{fluid:!0,value:I,format:function(A){return A+"/"+b+" m"},minValue:0,maxValue:b,step:1,stepPixelSize:4,onDrag:function(A,R){return v("setdistance",{val:R})}})}),(0,e.jsx)(r.Ki.Item,{label:"Sector",children:(0,i.Ul)(function(A){return Number(A)})(S).map(function(A){return(0,e.jsx)(r.$n,{icon:"check-circle",content:A,selected:f===A,onClick:function(){return v("setz",{setz:A})}},A)})}),(0,e.jsxs)(r.Ki.Item,{label:"Controls",children:[(0,e.jsx)(r.$n,{icon:"share",iconRotation:-90,onClick:function(){return v("send")},content:"Send"}),(0,e.jsx)(r.$n,{icon:"share",iconRotation:90,onClick:function(){return v("receive")},content:"Receive"}),(0,e.jsx)(r.$n,{icon:"sync",iconRotation:90,onClick:function(){return v("recal")},content:"Recalibrate"})]})]}),P&&(0,e.jsx)(r.wn,{mt:1,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Telepad Location",children:[P.src_x,", ",P.src_y]}),(0,e.jsxs)(r.Ki.Item,{label:"Distance",children:[P.distance,"m"]}),(0,e.jsxs)(r.Ki.Item,{label:"Transit Time",children:[P.time," secs"]})]})})||(0,e.jsx)(r.wn,{mt:1,children:"No teleport data found."}),(0,e.jsxs)(r.wn,{children:["Crystals: ",C," / ",j]})]})}},27418:function(M,y,t){"use strict";t.r(y),t.d(y,{TextInputModal:function(){return v},removeAllSkiplines:function(){return h},sanitizeMultiline:function(){return d}});var e=t(88095),i=t(72147),n=t(44583),r=t(4413),s=t(92514),a=t(84905),g=t(12035),x=t(18513),d=function(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")},h=function(m){return m.replace(/[\r\n]+/,"")},v=function(m){var c=(0,r.Oc)(),f=c.act,p=c.data,C=p.large_buttons,j=p.max_length,O=p.message,b=O===void 0?"":O,I=p.multiline,_=p.placeholder,S=_===void 0?"":_,P=p.timeout,A=p.title,R=(0,n.useState)(S||""),K=R[0],N=R[1],k=function(J){if(J!==K){var H=I?d(J):h(J);N(H)}},X=I||K.length>=30,F=135+(b.length>30?Math.ceil(b.length/4):0)+(X?75:0)+(b.length&&C?5:0);return(0,e.jsxs)(a.p8,{title:A,width:325,height:F,children:[P&&(0,e.jsx)(x.Loader,{value:P}),(0,e.jsx)(a.p8.Content,{onKeyDown:function(J){J.key===i._.Enter&&(!X||!J.shiftKey)&&f("submit",{entry:K}),J.key===i._.Escape&&f("cancel")},children:(0,e.jsx)(s.wn,{fill:!0,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.az,{color:"label",children:b})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(u,{input:K,onType:k})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:K,message:K.length+"/"+j})})]})})})]})},u=function(m){var c=(0,r.Oc)(),f=c.act,p=c.data,C=p.max_length,j=p.multiline,O=m.input,b=m.onType,I=j||O.length>=30;return(0,e.jsx)(s.fs,{autoFocus:!0,autoSelect:!0,height:j||O.length>=30?"100%":"1.8rem",maxLength:C,onEscape:function(){return f("cancel")},onEnter:function(_){I&&_.shiftKey||(_.preventDefault(),f("submit",{entry:O}))},onChange:function(_,S){return b(S)},onInput:function(_,S){return b(S)},placeholder:"Type something...",value:O})}},98143:function(M,y,t){"use strict";t.r(y),t.d(y,{TimeClock:function(){return g}});var e=t(88095),i=t(5229),n=t(4413),r=t(92514),s=t(84905),a=t(89863),g=function(x){var d=(0,n.Oc)(),h=d.act,v=d.data,u=v.department_hours,m=v.user_name,c=v.card,f=v.assignment,p=v.job_datum,C=v.allow_change_job,j=v.job_choices;return(0,e.jsx)(s.p8,{width:500,height:520,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"OOC",children:[(0,e.jsx)(r.IC,{children:"OOC Note: PTO acquired is account-wide and shared across all characters. Info listed below is not IC information."}),(0,e.jsx)(r.wn,{level:2,title:"Time Off Balance for "+m,children:(0,e.jsx)(r.Ki,{children:Object.keys(u).map(function(O){return(0,e.jsxs)(r.Ki.Item,{label:O,color:u[O]>6?"good":u[O]>1?"average":"bad",children:[(0,i.Mg)(u[O],1)," ",u[O]===1?"hour":"hours"]},O)})})})]}),(0,e.jsx)(r.wn,{title:"Employee Info",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Employee ID",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"user",onClick:function(){return h("id")},children:c||"Insert ID"})}),!!p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Rank",children:(0,e.jsx)(r.az,{backgroundColor:p.selection_color,p:.8,children:(0,e.jsxs)(r.so,{justify:"space-between",align:"center",children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{ml:1,children:(0,e.jsx)(a.RankIcon,{color:"white",rank:p.title})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{fontSize:1.5,inline:!0,mr:1,children:p.title})})]})})}),(0,e.jsx)(r.Ki.Item,{label:"Departments",children:p.departments}),(0,e.jsx)(r.Ki.Item,{label:"Pay Scale",children:p.economic_modifier}),(0,e.jsx)(r.Ki.Item,{label:"PTO Elegibility",children:p.timeoff_factor>0&&(0,e.jsxs)(r.az,{children:["Earns PTO - ",p.pto_department]})||p.timeoff_factor<0&&(0,e.jsxs)(r.az,{children:["Requires PTO - ",p.pto_department]})||(0,e.jsx)(r.az,{children:"Neutral"})})]})]})}),!!(C&&p&&p.timeoff_factor!==0&&f!=="Dismissed")&&(0,e.jsx)(r.wn,{title:"Employment Actions",children:p.timeoff_factor>0&&(u[p.pto_department]>0&&(0,e.jsx)(r.$n,{fluid:!0,icon:"exclamation-triangle",onClick:function(){return h("switch-to-offduty")},children:"Go Off-Duty"})||(0,e.jsx)(r.az,{color:"bad",children:"Warning: You do not have enough accrued time off to go off-duty."}))||Object.keys(j).length&&Object.keys(j).map(function(O){var b=j[O];return b.map(function(I){return(0,e.jsx)(r.$n,{icon:"suitcase",onClick:function(){return h("switch-to-onduty-rank",{"switch-to-onduty-rank":O,"switch-to-onduty-assignment":I})},children:I},I)})})||(0,e.jsx)(r.az,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}},6048:function(M,y,t){"use strict";t.r(y),t.d(y,{TraitDescription:function(){return g},TraitSelection:function(){return a},TraitTutorial:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(x){var d=(0,i.Oc)(),h=d.act,v=d.data;return(0,e.jsx)(r.p8,{width:804,height:426,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Guide to Custom Traits",children:(0,e.jsx)(a,{})})})})},a=function(x){var d=(0,i.Oc)(),h=d.act,v=d.data,u=v.names,m=v.selection;return(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{shrink:!0,children:(0,e.jsx)(n.wn,{title:"Trait Selection",children:(0,e.jsx)(n.tU,{vertical:!0,children:u.map(function(c){return(0,e.jsx)(n.tU.Tab,{selected:c===m,onClick:function(){return h("select_trait",{name:c})},children:(0,e.jsx)(n.az,{inline:!0,children:c})},c)})})})}),(0,e.jsx)(n.BJ.Item,{grow:8,children:m&&(0,e.jsx)(n.wn,{title:m,children:(0,e.jsx)(g,{name:m})})})]})},g=function(x){var d=(0,i.Oc)(),h=d.act,v=d.data,u=x.name,m=v.descriptions,c=v.categories,f=v.tutorials;return(0,e.jsxs)(n.wn,{children:[(0,e.jsx)("b",{children:"Name:"})," ",u,(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Category:"})," ",c[u],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Description:"})," ",m[u],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Details & How to Use:"}),(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:f[u]}})]})}},81267:function(M,y,t){"use strict";t.r(y),t.d(y,{TransferValve:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.tank_one,v=d.tank_two,u=d.attached_device,m=d.valve;return(0,e.jsx)(r.p8,{children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Valve Status",children:(0,e.jsx)(n.$n,{icon:m?"unlock":"lock",content:m?"Open":"Closed",disabled:!h||!v,onClick:function(){return x("toggle")}})})})}),(0,e.jsx)(n.wn,{title:"Assembly",buttons:(0,e.jsx)(n.$n,{textAlign:"center",width:"150px",icon:"cog",content:"Configure Assembly",disabled:!u,onClick:function(){return x("device")}}),children:(0,e.jsx)(n.Ki,{children:u?(0,e.jsx)(n.Ki.Item,{label:"Attachment",children:(0,e.jsx)(n.$n,{icon:"eject",content:u,disabled:!u,onClick:function(){return x("remove_device")}})}):(0,e.jsx)(n.IC,{textAlign:"center",children:"Attach Assembly"})})}),(0,e.jsx)(n.wn,{title:"Attachment One",children:(0,e.jsx)(n.Ki,{children:h?(0,e.jsx)(n.Ki.Item,{label:"Attachment",children:(0,e.jsx)(n.$n,{icon:"eject",content:h,disabled:!h,onClick:function(){return x("tankone")}})}):(0,e.jsx)(n.IC,{textAlign:"center",children:"Attach Tank"})})}),(0,e.jsx)(n.wn,{title:"Attachment Two",children:(0,e.jsx)(n.Ki,{children:v?(0,e.jsx)(n.Ki.Item,{label:"Attachment",children:(0,e.jsx)(n.$n,{icon:"eject",content:v,disabled:!v,onClick:function(){return x("tanktwo")}})}):(0,e.jsx)(n.IC,{textAlign:"center",children:"Attach Tank"})})})]})})}},96734:function(M,y,t){"use strict";t.r(y),t.d(y,{TurbineControl:function(){return a}});var e=t(88095),i=t(4413),n=t(92514),r=t(24158),s=t(84905),a=function(g){var x=(0,i.Oc)(),d=x.act,h=x.data,v=h.connected,u=h.compressor_broke,m=h.turbine_broke,c=h.broken,f=h.door_status,p=h.online,C=h.power,j=h.rpm,O=h.temp;return(0,e.jsx)(s.p8,{width:520,height:440,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Turbine Controller",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:c&&(0,e.jsxs)(n.az,{color:"bad",children:["Setup is broken",(0,e.jsx)(n.$n,{icon:"sync",onClick:function(){return d("reconnect")},content:"Reconnect"})]})||(0,e.jsx)(n.az,{color:p?"good":"bad",children:p&&!u&&!m?"Online":"Offline"})}),(0,e.jsx)(n.Ki.Item,{label:"Compressor",children:u&&(0,e.jsx)(n.az,{color:"bad",children:"Compressor is inoperable."})||m&&(0,e.jsx)(n.az,{color:"bad",children:"Turbine is inoperable."})||(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n.Checkbox,{checked:p,content:"Compressor Power",onClick:function(){return d(p?"power-off":"power-on")}})})}),(0,e.jsx)(n.Ki.Item,{label:"Vent Doors",children:(0,e.jsx)(n.$n.Checkbox,{checked:f,onClick:function(){return d("doors")},content:f?"Closed":"Open"})})]})}),(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Turbine Speed",children:[c?"--":(0,e.jsx)(n.zv,{value:j})," RPM"]}),(0,e.jsxs)(n.Ki.Item,{label:"Internal Temperature",children:[c?"--":(0,e.jsx)(n.zv,{value:O})," K"]}),(0,e.jsx)(n.Ki.Item,{label:"Generated Power",children:c?"--":(0,e.jsx)(n.zv,{format:function(b){return(0,r.d5)(b)},value:Number(C)})})]})})]})})}},44027:function(M,y,t){"use strict";t.r(y),t.d(y,{Turbolift:function(){return s}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s=function(a){var g=(0,i.Oc)(),x=g.act,d=g.data,h=d.floors,v=d.doors_open,u=d.fire_mode;return(0,e.jsx)(r.p8,{width:480,height:260+u*25,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{title:"Floor Selection",className:u?"Section--elevator--fire":null,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:v?"door-open":"door-closed",content:v?u?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed",selected:v&&!u,color:u?"red":null,onClick:function(){return x("toggle_doors")}}),(0,e.jsx)(n.$n,{icon:"exclamation-triangle",color:"bad",content:"Emergency Stop",onClick:function(){return x("emergency_stop")}})]}),children:[!u||(0,e.jsx)(n.wn,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,e.jsx)(n.so,{wrap:"wrap",children:h.map(function(m){return(0,e.jsx)(n.so.Item,{basis:"100%",children:(0,e.jsxs)(n.so,{align:"center",justify:"space-around",children:[(0,e.jsx)(n.so.Item,{basis:"22%",textAlign:"right",mr:"3px",children:m.label||"Floor #"+m.id}),(0,e.jsx)(n.so.Item,{basis:"8%",textAlign:"left",children:(0,e.jsx)(n.$n,{icon:"circle",color:m.current?"red":m.target?"green":m.queued?"yellow":null,onClick:function(){return x("move_to_floor",{ref:m.ref})}})}),(0,e.jsx)(n.so.Item,{basis:"50%",grow:1,children:m.name})]})},m.id)})})]})})})}},7829:function(M,y,t){"use strict";t.r(y),t.d(y,{GenericUplink:function(){return m},Uplink:function(){return h}});var e=t(88095),i=t(33854),n=t(44583),r=t(4413),s=t(92514),a=t(24158),g=t(84905);function x(){return x=Object.assign||function(f){for(var p=1;p").map(function(I){return(0,e.jsx)(s.az,{children:I},I)})})]})})||b.map(function(I){return(0,e.jsx)(s.$n,{icon:"eye",fluid:!0,content:I.name,onClick:function(){return C("view_exploits",{id:I.id})}},I.id)})})},m=function(f){var p,C,j=f.currencyAmount,O=j===void 0?0:j,b=f.currencySymbol,I=b===void 0?"\u20AE":b,_=(0,r.Oc)(),S=_.act,P=_.data,A=P.compactMode,R=P.lockable,K=P.categories,N=K===void 0?[]:K,k=(0,n.useState)(""),X=k[0],F=k[1],J=(0,n.useState)((p=N[0])==null?void 0:p.name),H=J[0],Q=J[1],Z=(0,i.XZ)(X,function(z){return z.name+z.desc}),V=X.length>0&&N.flatMap(function(z){return z.items||[]}).filter(Z).filter(function(z,Y){return Y0?"good":"bad",children:[(0,a.up)(O)," ",I]}),buttons:(0,e.jsxs)(e.Fragment,{children:["Search",(0,e.jsx)(s.pd,{autoFocus:!0,value:X,onInput:function(z,Y){return F(Y)},mx:1}),(0,e.jsx)(s.$n,{icon:A?"list":"info",content:A?"Compact":"Detailed",onClick:function(){return S("compact_toggle")}}),!!R&&(0,e.jsx)(s.$n,{icon:"lock",content:"Lock",onClick:function(){return S("lock")}})]}),children:(0,e.jsxs)(s.so,{children:[X.length===0&&(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.tU,{vertical:!0,children:N.map(function(z){var Y;return(0,e.jsxs)(s.tU.Tab,{selected:z.name===H,onClick:function(){return Q(z.name)},children:[z.name," (",((Y=z.items)==null?void 0:Y.length)||0,")"]},z.name)})})}),(0,e.jsxs)(s.so.Item,{grow:1,basis:0,children:[V.length===0&&(0,e.jsx)(s.IC,{children:X.length===0?"No items in this category.":"No results found."}),(0,e.jsx)(c,{compactMode:X.length>0||A,currencyAmount:O,currencySymbol:I,items:V})]})]})})},c=function(f){var p=f.compactMode,C=f.currencyAmount,j=f.currencySymbol,O=(0,r.Oc)().act,b=(0,n.useState)({}),I=b[0],_=b[1],S=I&&I.cost||0,P=f.items.map(function(A){var R=I&&I.name!==A.name,K=C-S=0)&&(k[F]=K[F]);return k}var h=[null,"average","bad"],v={Hold:null,Digest:"red",Absorb:"purple",Unabsorb:"purple",Drain:"orange",Selective:"orange",Shrink:"teal",Grow:"teal","Size Steal":"teal",Heal:"green","Encase In Egg":"blue"},u={Hold:"being held.",Digest:"being digested.",Absorb:"being absorbed.",Unabsorb:"being unabsorbed.",Drain:"being drained.",Selective:"being processed.",Shrink:"being shrunken.",Grow:"being grown.","Size Steal":"having your size stolen.",Heal:"being healed.","Encase In Egg":"being encased in an egg."},m=function(K){var N=(0,s.Oc)(),k=N.act,X=N.data,F=(0,r.useState)(0),J=F[0],H=F[1],Q=[];return Q[0]=(0,e.jsx)(f,{}),Q[1]=(0,e.jsx)(A,{}),(0,e.jsx)(g.p8,{width:890,height:660,theme:"abstract",children:(0,e.jsxs)(g.p8.Content,{scrollable:!0,children:[X.unsaved_changes&&(0,e.jsx)(a.IC,{danger:!0,children:(0,e.jsxs)(a.so,{children:[(0,e.jsx)(a.so.Item,{basis:"90%",children:"Warning: Unsaved Changes!"}),(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.$n,{content:"Save Prefs",icon:"save",onClick:function(){return k("saveprefs")}})}),(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.$n,{content:"Save Prefs & Export Selected Belly",icon:"download",onClick:function(){k("saveprefs"),k("exportpanel")}})})]})})||null,(0,e.jsx)(c,{}),(0,e.jsxs)(a.tU,{children:[(0,e.jsxs)(a.tU.Tab,{selected:J===0,onClick:function(){return H(0)},children:["Bellies",(0,e.jsx)(a.In,{name:"list",ml:.5})]}),(0,e.jsxs)(a.tU.Tab,{selected:J===1,onClick:function(){return H(1)},children:["Preferences",(0,e.jsx)(a.In,{name:"user-cog",ml:.5})]})]}),Q[J]||"Error"]})})},c=function(K){var N=(0,s.Oc)(),k=N.act,X=N.data,F=X.inside,J=F.absorbed,H=F.belly_name,Q=F.belly_mode,Z=F.desc,V=F.pred,z=F.contents,Y=F.ref;return H?(0,e.jsxs)(a.wn,{title:"Inside",children:[(0,e.jsxs)(a.az,{color:"green",inline:!0,children:["You are currently ",J?"absorbed into":"inside"]}),"\xA0",(0,e.jsxs)(a.az,{color:"yellow",inline:!0,children:[V,"'s"]}),"\xA0",(0,e.jsx)(a.az,{color:"red",inline:!0,children:H}),"\xA0",(0,e.jsx)(a.az,{color:"yellow",inline:!0,children:"and you are"}),"\xA0",(0,e.jsx)(a.az,{color:v[Q],inline:!0,children:u[Q]}),"\xA0",(0,e.jsx)(a.az,{color:"label",children:Z}),z.length&&(0,e.jsx)(a.Nt,{title:"Belly Contents",children:(0,e.jsx)(P,{contents:z,belly:Y})})||"There is nothing else around you."]}):(0,e.jsx)(a.wn,{title:"Inside",children:"You aren't inside anyone."})},f=function(K){var N=(0,s.Oc)(),k=N.act,X=N.data,F=X.our_bellies,J=X.selected;return(0,e.jsxs)(a.so,{children:[(0,e.jsx)(a.so.Item,{shrink:!0,children:(0,e.jsx)(a.wn,{title:"My Bellies",scollable:!0,children:(0,e.jsxs)(a.tU,{vertical:!0,children:[(0,e.jsxs)(a.tU.Tab,{onClick:function(){return k("newbelly")},children:["New",(0,e.jsx)(a.In,{name:"plus",ml:.5})]}),(0,e.jsxs)(a.tU.Tab,{onClick:function(){return k("exportpanel")},children:["Export",(0,e.jsx)(a.In,{name:"file-export",ml:.5})]}),(0,e.jsx)(a.cG,{}),F.map(function(H){return(0,e.jsx)(a.tU.Tab,{selected:H.selected,textColor:v[H.digest_mode],onClick:function(){return k("bellypick",{bellypick:H.ref})},children:(0,e.jsxs)(a.az,{inline:!0,textColor:H.selected&&v[H.digest_mode]||null,children:[H.name," (",H.contents,")"]})},H.name)})]})})}),(0,e.jsx)(a.so.Item,{grow:!0,children:J&&(0,e.jsx)(a.wn,{title:J.belly_name,children:(0,e.jsx)(p,{belly:J})})})]})},p=function(K){var N=(0,s.Oc)().act,k=K.belly,X=k.contents,F=(0,r.useState)(0),J=F[0],H=F[1],Q=[];return Q[0]=(0,e.jsx)(C,{belly:k}),Q[1]=(0,e.jsx)(j,{belly:k}),Q[2]=(0,e.jsx)(O,{belly:k}),Q[3]=(0,e.jsx)(I,{belly:k}),Q[4]=(0,e.jsx)(_,{belly:k}),Q[5]=(0,e.jsx)(S,{belly:k}),Q[6]=(0,e.jsx)(P,{outside:!0,contents:X}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.tU,{children:[(0,e.jsx)(a.tU.Tab,{selected:J===0,onClick:function(){return H(0)},children:"Controls"}),(0,e.jsx)(a.tU.Tab,{selected:J===1,onClick:function(){return H(1)},children:"Descriptions"}),(0,e.jsx)(a.tU.Tab,{selected:J===2,onClick:function(){return H(2)},children:"Options"}),(0,e.jsx)(a.tU.Tab,{selected:J===3,onClick:function(){return H(3)},children:"Sounds"}),(0,e.jsx)(a.tU.Tab,{selected:J===4,onClick:function(){return H(4)},children:"Visuals"}),(0,e.jsx)(a.tU.Tab,{selected:J===5,onClick:function(){return H(5)},children:"Interactions"}),(0,e.jsxs)(a.tU.Tab,{selected:J===6,onClick:function(){return H(6)},children:["Contents (",X.length,")"]})]}),Q[J]||"Error"]})},C=function(K){var N=(0,s.Oc)().act,k=K.belly,X=k.belly_name,F=k.mode,J=k.item_mode,H=k.addons;return(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Name",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{icon:"arrow-up",tooltipPosition:"left",tooltip:"Move this belly tab up.",onClick:function(){return N("move_belly",{dir:-1})}}),(0,e.jsx)(a.$n,{icon:"arrow-down",tooltipPosition:"left",tooltip:"Move this belly tab down.",onClick:function(){return N("move_belly",{dir:1})}})]}),children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_name"})},content:X})}),(0,e.jsx)(a.Ki.Item,{label:"Mode",children:(0,e.jsx)(a.$n,{color:v[F],onClick:function(){return N("set_attribute",{attribute:"b_mode"})},content:F})}),(0,e.jsxs)(a.Ki.Item,{label:"Mode Addons",children:[H.length&&H.join(", ")||"None",(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_addons"})},ml:1,icon:"plus"})]}),(0,e.jsx)(a.Ki.Item,{label:"Item Mode",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_item_mode"})},content:J})}),(0,e.jsx)(a.Ki.Item,{basis:"100%",mt:1,children:(0,e.jsx)(a.$n.Confirm,{fluid:!0,icon:"exclamation-triangle",confirmIcon:"trash",color:"red",content:"Delete Belly",confirmContent:"This is irreversable!",onClick:function(){return N("set_attribute",{attribute:"b_del"})}})})]})},j=function(K){var N=(0,s.Oc)().act,k=K.belly,X=k.verb,F=k.release_verb,J=k.desc,H=k.absorbed_desc;return(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Description",buttons:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_desc"})},icon:"pen"}),children:J}),(0,e.jsx)(a.Ki.Item,{label:"Description (Absorbed)",buttons:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_absorbed_desc"})},icon:"pen"}),children:H}),(0,e.jsx)(a.Ki.Item,{label:"Vore Verb",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_verb"})},content:X})}),(0,e.jsx)(a.Ki.Item,{label:"Release Verb",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_release_verb"})},content:F})}),(0,e.jsxs)(a.Ki.Item,{label:"Examine Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"em"})},content:"Examine Message (when full)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"ema"})},content:"Examine Message (with absorbed victims)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Struggle Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"smo"})},content:"Struggle Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"smi"})},content:"Struggle Message (inside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"asmo"})},content:"Absorbed Struggle Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"asmi"})},content:"Absorbed Struggle Message (inside)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Escape Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escap"})},content:"Escape Attempt Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escao"})},content:"Escape Attempt Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escp"})},content:"Escape Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"esco"})},content:"Escape Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escout"})},content:"Escape Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escip"})},content:"Escape Item Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escio"})},content:"Escape Item Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"esciout"})},content:"Escape Item Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escfp"})},content:"Escape Fail Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escfo"})},content:"Escape Fail Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescap"})},content:"Absorbed Escape Attempt Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescao"})},content:"Absorbed Escape Attempt Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescp"})},content:"Absorbed Escape Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aesco"})},content:"Absorbed Escape Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescout"})},content:"Absorbed Escape Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescfp"})},content:"Absorbed Escape Fail Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescfo"})},content:"Absorbed Escape Fail Message (to you)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Transfer Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnspp"})},content:"Primary Transfer Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnspo"})},content:"Primary Transfer Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnssp"})},content:"Secondary Transfer Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnsso"})},content:"Secondary Transfer Message (to you)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Interaction Chance Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmodp"})},content:"Interaction Chance Digest Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmodo"})},content:"Interaction Chance Digest Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmoap"})},content:"Interaction Chance Absorb Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmoao"})},content:"Interaction Chance Absorb Message (to you)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Bellymode Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"dmp"})},content:"Digest Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"dmo"})},content:"Digest Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"amp"})},content:"Absorb Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"amo"})},content:"Absorb Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"uamp"})},content:"Unabsorb Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"uamo"})},content:"Unabsorb Message (to you)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Idle Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_hold"})},content:"Idle Messages (Hold)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_holdabsorbed"})},content:"Idle Messages (Hold Absorbed)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_digest"})},content:"Idle Messages (Digest)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_absorb"})},content:"Idle Messages (Absorb)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_unabsorb"})},content:"Idle Messages (Unabsorb)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_drain"})},content:"Idle Messages (Drain)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_heal"})},content:"Idle Messages (Heal)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_steal"})},content:"Idle Messages (Size Steal)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_shrink"})},content:"Idle Messages (Shrink)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_grow"})},content:"Idle Messages (Grow)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_egg"})},content:"Idle Messages (Encase In Egg)"})]}),(0,e.jsx)(a.Ki.Item,{label:"Reset Messages",children:(0,e.jsx)(a.$n,{color:"red",onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"reset"})},content:"Reset Messages"})})]})},O=function(K){var N=(0,s.Oc)(),k=N.act,X=N.data,F=X.host_mobtype,J=F.is_cyborg,H=F.is_vore_simple_mob,Q=K.belly,Z=Q.can_taste,V=Q.nutrition_percent,z=Q.digest_brute,Y=Q.digest_burn,ee=Q.digest_oxy,oe=Q.digest_tox,ne=Q.digest_clone,ce=Q.bulge_size,de=Q.display_absorbed_examine,ve=Q.shrink_grow_size,pe=Q.emote_time,me=Q.emote_active,be=Q.contaminates,we=Q.contaminate_flavor,Je=Q.contaminate_color,ze=Q.egg_type,Ke=Q.selective_preference,Be=Q.save_digest_mode,ct=Q.eating_privacy_local,xt=Q.silicon_belly_overlay_preference,st=Q.belly_mob_mult,ot=Q.belly_item_mult,Ae=Q.belly_overall_mult;return(0,e.jsxs)(a.so,{wrap:"wrap",children:[(0,e.jsxs)(a.so.Item,{basis:"49%",grow:1,children:[(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Can Taste",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_tastes"})},icon:Z?"toggle-on":"toggle-off",selected:Z,content:Z?"Yes":"No"})}),(0,e.jsx)(a.Ki.Item,{label:"Contaminates",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_contaminate"})},icon:be?"toggle-on":"toggle-off",selected:be,content:be?"Yes":"No"})}),be&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.Ki.Item,{label:"Contamination Flavor",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_contamination_flavor"})},icon:"pen",content:we})}),(0,e.jsx)(a.Ki.Item,{label:"Contamination Color",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_contamination_color"})},icon:"pen",content:(0,n.ZH)(Je)})})]})||null,(0,e.jsx)(a.Ki.Item,{label:"Nutritional Gain",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_nutritionpercent"})},content:V+"%"})}),(0,e.jsx)(a.Ki.Item,{label:"Required Examine Size",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_bulge_size"})},content:ce*100+"%"})}),(0,e.jsx)(a.Ki.Item,{label:"Display Absorbed Examines",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_display_absorbed_examine"})},icon:de?"toggle-on":"toggle-off",selected:de,content:de?"True":"False"})}),(0,e.jsx)(a.Ki.Item,{label:"Toggle Vore Privacy",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_eating_privacy"})},content:(0,n.ZH)(ct)})}),(0,e.jsx)(a.Ki.Item,{label:"Save Digest Mode",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_save_digest_mode"})},icon:Be?"toggle-on":"toggle-off",selected:Be,content:Be?"True":"False"})})]}),(0,e.jsx)(b,{belly:Q})]}),(0,e.jsx)(a.so.Item,{basis:"49%",grow:1,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Idle Emotes",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_emoteactive"})},icon:me?"toggle-on":"toggle-off",selected:me,content:me?"Active":"Inactive"})}),(0,e.jsx)(a.Ki.Item,{label:"Idle Emote Delay",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_emotetime"})},content:pe+" seconds"})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Brute Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_brute_dmg"})},content:z})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Burn Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_burn_dmg"})},content:Y})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Suffocation Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_oxy_dmg"})},content:ee})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Toxins Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_tox_dmg"})},content:oe})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Clone Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_clone_dmg"})},content:ne})}),(0,e.jsx)(a.Ki.Item,{label:"Shrink/Grow Size",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_grow_shrink"})},content:ve*100+"%"})}),(0,e.jsx)(a.Ki.Item,{label:"Egg Type",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_egg_type"})},icon:"pen",content:(0,n.ZH)(ze)})}),(0,e.jsx)(a.Ki.Item,{label:"Selective Mode Preference",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_selective_mode_pref_toggle"})},content:(0,n.ZH)(Ke)})})]})})]})},b=function(K){var N=(0,s.Oc)(),k=N.act,X=N.data,F=X.host_mobtype,J=F.is_cyborg,H=F.is_vore_simple_mob,Q=K.belly,Z=Q.silicon_belly_overlay_preference,V=Q.belly_mob_mult,z=Q.belly_item_mult,Y=Q.belly_overall_mult;return J?(0,e.jsx)(a.wn,{title:"Cyborg Controls",width:"80%",children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Toggle Belly Overlay Mode",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_silicon_belly"})},content:(0,n.ZH)(Z)})}),(0,e.jsx)(a.Ki.Item,{label:"Mob Vorebelly Size Mult",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_belly_mob_mult"})},content:V})}),(0,e.jsx)(a.Ki.Item,{label:"Item Vorebelly Size Mult",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_belly_item_mult"})},content:z})}),(0,e.jsx)(a.Ki.Item,{label:"Belly Size Multiplier",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_belly_overall_mult"})},content:Y})})]})}):H?(0,e.jsx)(a.Ki,{children:(0,e.jsx)(a.Ki.Item,{})}):(0,e.jsx)(a.Ki,{children:(0,e.jsx)(a.Ki.Item,{})})},I=function(K){var N=(0,s.Oc)().act,k=K.belly,X=k.is_wet,F=k.wet_loop,J=k.fancy,H=k.sound,Q=k.release_sound;return(0,e.jsx)(a.so,{wrap:"wrap",children:(0,e.jsx)(a.so.Item,{basis:"49%",grow:1,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Fleshy Belly",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_wetness"})},icon:X?"toggle-on":"toggle-off",selected:X,content:X?"Yes":"No"})}),(0,e.jsx)(a.Ki.Item,{label:"Internal Loop",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_wetloop"})},icon:F?"toggle-on":"toggle-off",selected:F,content:F?"Yes":"No"})}),(0,e.jsx)(a.Ki.Item,{label:"Use Fancy Sounds",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_fancy_sound"})},icon:J?"toggle-on":"toggle-off",selected:J,content:J?"Yes":"No"})}),(0,e.jsxs)(a.Ki.Item,{label:"Vore Sound",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_sound"})},content:H}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_soundtest"})},icon:"volume-up"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Release Sound",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_release"})},content:Q}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_releasesoundtest"})},icon:"volume-up"})]})]})})})},_=function(K){var N=(0,s.Oc)().act,k=K.belly,X=k.belly_fullscreen,F=k.possible_fullscreens,J=k.disable_hud,H=k.belly_fullscreen_color,Q=k.belly_fullscreen_color_secondary,Z=k.belly_fullscreen_color_trinary,V=k.mapRef,z=k.colorization_enabled;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.wn,{title:"Belly Fullscreens Preview and Coloring",children:(0,e.jsxs)(a.so,{direction:"row",children:[(0,e.jsx)(a.az,{backgroundColor:H,width:"20px",height:"20px"}),(0,e.jsx)(a.$n,{icon:"eye-dropper",onClick:function(){return N("set_attribute",{attribute:"b_fullscreen_color",val:null})},children:"Select Primary Color"}),(0,e.jsx)(a.az,{backgroundColor:Q,width:"20px",height:"20px"}),(0,e.jsx)(a.$n,{icon:"eye-dropper",onClick:function(){return N("set_attribute",{attribute:"b_fullscreen_color_secondary",val:null})},children:"Select Secondary Color"}),(0,e.jsx)(a.az,{backgroundColor:Z,width:"20px",height:"20px"}),(0,e.jsx)(a.$n,{icon:"eye-dropper",onClick:function(){return N("set_attribute",{attribute:"b_fullscreen_color_trinary",val:null})},children:"Select Trinary Color"}),(0,e.jsx)(a.Ki.Item,{label:"Enable Coloration",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_colorization_enabled"})},icon:z?"toggle-on":"toggle-off",selected:z,content:z?"Yes":"No"})}),(0,e.jsx)(a.Ki.Item,{label:"Preview Belly",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_preview_belly"})},content:"Preview"})}),(0,e.jsx)(a.Ki.Item,{label:"Clear Preview",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_clear_preview"})},content:"Clear"})})]})}),(0,e.jsxs)(a.wn,{children:[(0,e.jsx)(a.wn,{title:"Vore FX",children:(0,e.jsx)(a.Ki,{children:(0,e.jsx)(a.Ki.Item,{label:"Disable Prey HUD",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_disable_hud"})},icon:J?"toggle-on":"toggle-off",selected:J,content:J?"Yes":"No"})})})}),(0,e.jsxs)(a.wn,{title:"Belly Fullscreens Styles",width:"800px",children:["Belly styles:",(0,e.jsx)(a.$n,{fluid:!0,selected:X===""||X===null,onClick:function(){return N("set_attribute",{attribute:"b_fullscreen",val:null})},children:"Disabled"}),Object.keys(F).map(function(Y,ee){return(0,e.jsx)("span",{style:{width:"256px"},children:(0,e.jsx)(a.$n,{width:"256px",height:"256px",selected:Y===X,onClick:function(){return N("set_attribute",{attribute:"b_fullscreen",val:Y})},children:(0,e.jsx)(a.az,{className:(0,i.Ly)(["vore240x240",Y]),style:{transform:"translate(0%, 4%)"}})},Y)},ee)})]})]})]})},S=function(K){var N=(0,s.Oc)().act,k=K.belly,X=k.escapable,F=k.interacts;return(0,e.jsx)(a.wn,{title:"Belly Interactions",buttons:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_escapable"})},icon:X?"toggle-on":"toggle-off",selected:X,content:X?"Interactions On":"Interactions Off"}),children:X?(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Escape Chance",children:(0,e.jsx)(a.$n,{content:F.escapechance+"%",onClick:function(){return N("set_attribute",{attribute:"b_escapechance"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Absorbed Escape Chance",children:(0,e.jsx)(a.$n,{content:F.escapechance_absorbed+"%",onClick:function(){return N("set_attribute",{attribute:"b_escapechance_absorbed"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Escape Time",children:(0,e.jsx)(a.$n,{content:F.escapetime/10+"s",onClick:function(){return N("set_attribute",{attribute:"b_escapetime"})}})}),(0,e.jsx)(a.Ki.Divider,{}),(0,e.jsx)(a.Ki.Item,{label:"Transfer Chance",children:(0,e.jsx)(a.$n,{content:F.transferchance+"%",onClick:function(){return N("set_attribute",{attribute:"b_transferchance"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Transfer Location",children:(0,e.jsx)(a.$n,{content:F.transferlocation?F.transferlocation:"Disabled",onClick:function(){return N("set_attribute",{attribute:"b_transferlocation"})}})}),(0,e.jsx)(a.Ki.Divider,{}),(0,e.jsx)(a.Ki.Item,{label:"Secondary Transfer Chance",children:(0,e.jsx)(a.$n,{content:F.transferchance_secondary+"%",onClick:function(){return N("set_attribute",{attribute:"b_transferchance_secondary"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Secondary Transfer Location",children:(0,e.jsx)(a.$n,{content:F.transferlocation_secondary?F.transferlocation_secondary:"Disabled",onClick:function(){return N("set_attribute",{attribute:"b_transferlocation_secondary"})}})}),(0,e.jsx)(a.Ki.Divider,{}),(0,e.jsx)(a.Ki.Item,{label:"Absorb Chance",children:(0,e.jsx)(a.$n,{content:F.absorbchance+"%",onClick:function(){return N("set_attribute",{attribute:"b_absorbchance"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Chance",children:(0,e.jsx)(a.$n,{content:F.digestchance+"%",onClick:function(){return N("set_attribute",{attribute:"b_digestchance"})}})})]}):"These options only display while interactions are turned on."})},P=function(K){var N=(0,s.Oc)(),k=N.act,X=N.data,F=X.show_pictures,J=K.contents,H=K.belly,Q=K.outside,Z=Q===void 0?!1:Q;return(0,e.jsxs)(e.Fragment,{children:[Z&&(0,e.jsx)(a.$n,{textAlign:"center",fluid:!0,mb:1,onClick:function(){return k("pick_from_outside",{pickall:!0})},children:"All"})||null,F&&(0,e.jsx)(a.so,{wrap:"wrap",justify:"center",align:"center",children:J.map(function(V){return(0,e.jsxs)(a.so.Item,{basis:"33%",children:[(0,e.jsx)(a.$n,{width:"64px",color:V.absorbed?"purple":h[V.stat],style:{"vertical-align":"middle","margin-right":"5px","border-radius":"20px"},onClick:function(){return k(V.outside?"pick_from_outside":"pick_from_inside",{pick:V.ref,belly:H})},children:(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+V.icon,width:"64px",height:"64px",style:{"-ms-interpolation-mode":"nearest-neighbor","margin-left":"-5px"}})}),V.name]},V.name)})})||(0,e.jsx)(a.Ki,{children:J.map(function(V){return(0,e.jsx)(a.Ki.Item,{label:V.name,children:(0,e.jsx)(a.$n,{fluid:!0,mt:-1,mb:-1,color:V.absorbed?"purple":h[V.stat],onClick:function(){return k(V.outside?"pick_from_outside":"pick_from_inside",{pick:V.ref,belly:H})},children:"Interact"})},V.ref)})})]})},A=function(K){var N=(0,s.Oc)(),k=N.act,X=N.data,F=X.prefs,J=F.digestable,H=F.devourable,Q=F.resizable,Z=F.feeding,V=F.absorbable,z=F.digest_leave_remains,Y=F.allowmobvore,ee=F.permit_healbelly,oe=F.show_vore_fx,ne=F.can_be_drop_prey,ce=F.can_be_drop_pred,de=F.allow_inbelly_spawning,ve=F.allow_spontaneous_tf,pe=F.step_mechanics_active,me=F.pickup_mechanics_active,be=F.noisy,we=F.drop_vore,Je=F.stumble_vore,ze=F.slip_vore,Ke=F.throw_vore,Be=F.food_vore,ct=F.nutrition_message_visible,xt=F.weight_message_visible,st=F.eating_privacy_global,ot=X.show_pictures,Ae={digestion:{action:"toggle_digest",test:J,tooltip:{main:"This button is for those who don't like being digested. It can make you undigestable.",enable:"Click here to allow digestion.",disable:"Click here to prevent digestion."},content:{enabled:"Digestion Allowed",disabled:"No Digestion"}},absorbable:{action:"toggle_absorbable",test:V,tooltip:{main:"This button allows preds to know whether you prefer or don't prefer to be absorbed.",enable:"Click here to allow being absorbed.",disable:"Click here to disallow being absorbed."},content:{enabled:"Absorption Allowed",disabled:"No Absorption"}},devour:{action:"toggle_devour",test:H,tooltip:{main:"This button is to toggle your ability to be devoured by others.",enable:"Click here to allow being devoured.",disable:"Click here to prevent being devoured."},content:{enabled:"Devouring Allowed",disabled:"No Devouring"}},mobvore:{action:"toggle_mobvore",test:Y,tooltip:{main:"This button is for those who don't like being eaten by mobs.",enable:"Click here to allow being eaten by mobs.",disable:"Click here to prevent being eaten by mobs."},content:{enabled:"Mobs eating you allowed",disabled:"No Mobs eating you"}},feed:{action:"toggle_feed",test:Z,tooltip:{main:"This button is to toggle your ability to be fed to or by others vorishly.",enable:"Click here to allow being fed to/by other people.",disable:"Click here to prevent being fed to/by other people."},content:{enabled:"Feeding Allowed",disabled:"No Feeding"}},healbelly:{action:"toggle_healbelly",test:ee,tooltip:{main:"This button is for those who don't like healbelly used on them as a mechanic. It does not affect anything, but is displayed under mechanical prefs for ease of quick checks.",enable:"Click here to allow being heal-bellied.",disable:"Click here to prevent being heal-bellied."},content:{enabled:"Heal-bellies Allowed",disabled:"No Heal-bellies"}},dropnom_prey:{action:"toggle_dropnom_prey",test:ne,tooltip:{main:"This toggle is for spontaneous, environment related vore as prey, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous prey.",disable:"Click here to prevent being spontaneous prey."},content:{enabled:"Spontaneous Prey Enabled",disabled:"Spontaneous Prey Disabled"}},dropnom_pred:{action:"toggle_dropnom_pred",test:ce,tooltip:{main:"This toggle is for spontaneous, environment related vore as a predator, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous pred.",disable:"Click here to prevent being spontaneous pred."},content:{enabled:"Spontaneous Pred Enabled",disabled:"Spontaneous Pred Disabled"}},toggle_drop_vore:{action:"toggle_drop_vore",test:we,tooltip:{main:"Allows for dropnom spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for dropnoms.",disable:"Click here to disable dropnoms."},content:{enabled:"Drop Noms Enabled",disabled:"Drop Noms Disabled"}},toggle_slip_vore:{action:"toggle_slip_vore",test:ze,tooltip:{main:"Allows for slip related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for slip vore.",disable:"Click here to disable slip vore."},content:{enabled:"Slip Vore Enabled",disabled:"Slip Vore Disabled"}},toggle_stumble_vore:{action:"toggle_stumble_vore",test:Je,tooltip:{main:"Allows for stumble related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for stumble vore.",disable:"Click here to disable stumble vore."},content:{enabled:"Stumble Vore Enabled",disabled:"Stumble Vore Disabled"}},toggle_throw_vore:{action:"toggle_throw_vore",test:Ke,tooltip:{main:"Allows for throw related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for throw vore.",disable:"Click here to disable throw vore."},content:{enabled:"Throw Vore Enabled",disabled:"Throw Vore Disabled"}},toggle_food_vore:{action:"toggle_food_vore",test:Be,tooltip:{main:"Allows for food related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for food vore.",disable:"Click here to disable food vore."},content:{enabled:"Food Vore Enabled",disabled:"Food Vore Disabled"}},inbelly_spawning:{action:"toggle_allow_inbelly_spawning",test:de,tooltip:{main:"This toggle is ghosts being able to spawn in one of your bellies. You will have to confirm again when they attempt to.",enable:"Click here to allow prey to spawn in you.",disable:"Click here to prevent prey from spawning in you."},content:{enabled:"Inbelly Spawning Allowed",disabled:"Inbelly Spawning Forbidden"}},noisy:{action:"toggle_noisy",test:be,tooltip:{main:"Toggle audible hunger noises.",enable:"Click here to turn on hunger noises.",disable:"Click here to turn off hunger noises."},content:{enabled:"Hunger Noises Enabled",disabled:"Hunger Noises Disabled"}},resize:{action:"toggle_resize",test:Q,tooltip:{main:"This button is to toggle your ability to be resized by others.",enable:"Click here to allow being resized.",disable:"Click here to prevent being resized."},content:{enabled:"Resizing Allowed",disabled:"No Resizing"}},steppref:{action:"toggle_steppref",test:pe,tooltip:{main:"",enable:"You will not participate in step mechanics. Click to enable step mechanics.",disable:"This setting controls whether or not you participate in size-based step mechanics. Includes both stepping on others, as well as getting stepped on. Click to disable step mechanics."},content:{enabled:"Step Mechanics Enabled",disabled:"Step Mechanics Disabled"}},vore_fx:{action:"toggle_fx",test:oe,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not see their FX settings. Click this to enable showing FX.",disable:"This setting controls whether or not a pred is allowed to mess with your HUD and fullscreen overlays. Click to disable all FX."},content:{enabled:"Show Vore FX",disabled:"Do Not Show Vore FX"}},remains:{action:"toggle_leaveremains",test:z,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not leave remains behind. Click this to allow leaving remains.",disable:"Your Predator must have this setting enabled in their belly modes to allow remains to show up, if they do not, they will not leave your remains behind, even with this on. Click to disable remains."},content:{enabled:"Allow Leaving Remains",disabled:"Do Not Allow Leaving Remains"}},pickuppref:{action:"toggle_pickuppref",test:me,tooltip:{main:"",enable:"You will not participate in pick-up mechanics. Click this to allow picking up/being picked up.",disable:"Allows macros to pick you up into their hands, and you to pick up micros. Click to disable pick-up mechanics."},content:{enabled:"Pick-up Mechanics Enabled",disabled:"Pick-up Mechanics Disabled"}},spontaneous_tf:{action:"toggle_allow_spontaneous_tf",test:ve,tooltip:{main:"This toggle is for spontaneous or environment related transformation as a victim, such as via chemicals.",enable:"Click here to allow being spontaneously transformed.",disable:"Click here to disable being spontaneously transformed."},content:{enabled:"Spontaneous TF Enabled",disabled:"Spontaneous TF Disabled"}},examine_nutrition:{action:"toggle_nutrition_ex",test:ct,tooltip:{main:"",enable:"Click here to enable nutrition messages.",disable:"Click here to disable nutrition messages."},content:{enabled:"Examine Nutrition Messages Active",disabled:"Examine Nutrition Messages Inactive"}},examine_weight:{action:"toggle_weight_ex",test:xt,tooltip:{main:"",enable:"Click here to enable weight messages.",disable:"Click here to disable weight messages."},content:{enabled:"Examine Weight Messages Active",disabled:"Examine Weight Messages Inactive"}},eating_privacy_global:{action:"toggle_global_privacy",test:st,tooltip:{main:"Sets default belly behaviour for vorebellies for announcing ingesting or expelling prey Overwritten by belly-specific preferences if set.",enable:" Click here to turn your messages subtle",disable:" Click here to turn your messages loud"},content:{enabled:"Global Vore Privacy: Subtle",disabled:"Global Vore Privacy: Loud"}}};return(0,e.jsxs)(a.wn,{title:"Mechanical Preferences",buttons:(0,e.jsxs)(a.$n,{icon:"eye",selected:ot,onClick:function(){return k("show_pictures")},children:["Contents Preference: ",ot?"Show Pictures":"Show List"]}),children:[(0,e.jsxs)(a.so,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.digestion})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Ae.absorbable})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.devour})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.mobvore})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Ae.feed})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.healbelly,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.dropnom_prey})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Ae.dropnom_pred})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.toggle_drop_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.toggle_slip_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Ae.toggle_stumble_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.toggle_throw_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.toggle_food_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Ae.inbelly_spawning})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.noisy})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.resize})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Ae.steppref,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.vore_fx,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.remains,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Ae.pickuppref,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.spontaneous_tf})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(a.$n,{fluid:!0,content:"Selective Mode Preference",onClick:function(){return k("switch_selective_mode_pref")}})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:3,children:(0,e.jsx)(R,{spec:Ae.eating_privacy_global})})]}),(0,e.jsx)(a.wn,{title:"Aesthetic Preferences",children:(0,e.jsxs)(a.so,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(a.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(a.$n,{fluid:!0,content:"Set Taste",icon:"grin-tongue",onClick:function(){return k("setflavor")}})}),(0,e.jsx)(a.so.Item,{basis:"50%",children:(0,e.jsx)(a.$n,{fluid:!0,content:"Set Smell",icon:"wind",onClick:function(){return k("setsmell")}})}),(0,e.jsx)(a.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_msgs",msgtype:"en"})},content:"Set Nutrition Examine Message",icon:"flask",fluid:!0})}),(0,e.jsx)(a.so.Item,{basis:"50%",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_msgs",msgtype:"ew"})},content:"Set Weight Examine Message",icon:"weight-hanging",fluid:!0})}),(0,e.jsx)(a.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(R,{spec:Ae.examine_nutrition})}),(0,e.jsx)(a.so.Item,{basis:"50%",children:(0,e.jsx)(R,{spec:Ae.examine_weight})})]})}),(0,e.jsx)(a.cG,{}),(0,e.jsx)(a.wn,{children:(0,e.jsxs)(a.so,{spacing:1,children:[(0,e.jsx)(a.so.Item,{basis:"49%",children:(0,e.jsx)(a.$n,{fluid:!0,content:"Save Prefs",icon:"save",onClick:function(){return k("saveprefs")}})}),(0,e.jsx)(a.so.Item,{basis:"49%",grow:1,children:(0,e.jsx)(a.$n,{fluid:!0,content:"Reload Prefs",icon:"undo",onClick:function(){return k("reloadprefs")}})})]})})]})},R=function(K){var N=(0,s.Oc)().act,k=K.spec,X=d(K,["spec"]),F=k.action,J=k.test,H=k.tooltip,Q=k.content;return(0,e.jsx)(a.$n,x({onClick:function(){return N(F)},icon:J?"toggle-on":"toggle-off",selected:J,fluid:!0,tooltip:H.main+" "+(J?H.disable:H.enable),content:J?Q.enabled:Q.disabled},X))}},85688:function(M,y,t){"use strict";t.r(y),t.d(y,{VorePanelExport:function(){return u}});var e=t(88095),i=t(4413),n=t(92514),r=t(84905),s={Hold:'Hold',Digest:'Digest',Absorb:'Absorb',Drain:'Drain',Selective:'Selective',Unabsorb:'Unabsorb',Heal:'Heal',Shrink:'Shrink',Grow:'Grow',"Size Steal":'Size Steal',"Encase In Egg":'Encase In Egg'},a={Hold:'Item: Hold',"Digest (Food Only)":'Item: Digest (Food Only)',Digest:'Item: Digest'},g={Numbing:"",Stripping:"","Leave Remains":"",Muffles:"bi-volume-mute","Affect Worn Items":"","Jams Sensors":"bi-wifi-off","Complete Absorb":""},x=function(c){var f=[];return c==null||c.forEach(function(p){f.push(''+p+"")}),f.length===0&&f.push("No Addons Set"),f},d=function(c,f){var p=c.name,C=c.desc,j=c.absorbed_desc,O=c.vore_verb,b=c.release_verb,I=c.mode,_=c.addons,S=c.item_mode,P=c.digest_brute,A=c.digest_burn,R=c.digest_oxy,K=c.digest_tox,N=c.digest_clone,k=c.can_taste,X=c.contaminates,F=c.contamination_flavor,J=c.contamination_color,H=c.nutrition_percent,Q=c.bulge_size,Z=c.display_absorbed_examine,V=c.save_digest_mode,z=c.emote_active,Y=c.emote_time,ee=c.shrink_grow_size,oe=c.egg_type,ne=c.selective_preference,ce=c.struggle_messages_outside,de=c.struggle_messages_inside,ve=c.absorbed_struggle_messages_outside,pe=c.absorbed_struggle_messages_inside,me=c.escape_attempt_messages_owner,be=c.escape_attempt_messages_prey,we=c.escape_messages_owner,Je=c.escape_messages_prey,ze=c.escape_messages_outside,Ke=c.escape_item_messages_owner,Be=c.escape_item_messages_prey,ct=c.escape_item_messages_outside,xt=c.escape_fail_messages_owner,st=c.escape_fail_messages_prey,ot=c.escape_attempt_absorbed_messages_owner,Ae=c.escape_attempt_absorbed_messages_prey,Le=c.escape_absorbed_messages_owner,Pe=c.escape_absorbed_messages_prey,ke=c.escape_absorbed_messages_outside,Me=c.escape_fail_absorbed_messages_owner,Fe=c.escape_fail_absorbed_messages_prey,We=c.primary_transfer_messages_owner,He=c.primary_transfer_messages_prey,jt=c.secondary_transfer_messages_owner,Mt=c.secondary_transfer_messages_prey,bt=c.digest_chance_messages_owner,Dt=c.digest_chance_messages_prey,lt=c.absorb_chance_messages_owner,Ge=c.absorb_chance_messages_prey,je=c.digest_messages_owner,Qe=c.digest_messages_prey,mt=c.absorb_messages_owner,Pt=c.absorb_messages_prey,zt=c.unabsorb_messages_owner,en=c.unabsorb_messages_prey,Wt=c.examine_messages,dn=c.examine_messages_absorbed,Bn=c.emotes_digest,Gn=c.emotes_hold,Hn=c.emotes_holdabsorbed,Eo=c.emotes_absorb,bo=c.emotes_heal,Oo=c.emotes_drain,Vr=c.emotes_steal,Xr=c.emotes_egg,Gr=c.emotes_shrink,oa=c.emotes_grow,In=c.emotes_unabsorb,Io=c.is_wet,Cr=c.wet_loop,xn=c.fancy_vore,pn=c.vore_sound,ir=c.release_sound,Er=c.disable_hud,_o=c.escapable,ei=c.escapechance,ti=c.escapechance_absorbed,ni=c.escapetime,Kn=c.transferchance,aa=c.transferlocation,ia=c.transferchance_secondary,ri=c.transferlocation_secondary,sa=c.absorbchance,la=c.digestchance,ae="";return ae+='

',ae+='

",ae+='
',ae+='
',ae+="Addons:
"+x(_)+"

",ae+="== Descriptions ==
",ae+="Vore Verb:
"+O+"

",ae+="Release Verb:
"+b+"

",ae+='Description:
"'+C+'"

',ae+='Absorbed Description:
"'+j+'"

',ae+="
",ae+="== Messages ==
",ae+='
',ae+='
",ae+='
',ae+='
',ae+='
',me==null||me.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',be==null||be.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',we==null||we.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Je==null||Je.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ze==null||ze.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Ke==null||Ke.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Be==null||Be.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ct==null||ct.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',xt==null||xt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',st==null||st.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ot==null||ot.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Ae==null||Ae.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Le==null||Le.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Pe==null||Pe.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ke==null||ke.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Me==null||Me.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Fe==null||Fe.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',We==null||We.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',He==null||He.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',jt==null||jt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Mt==null||Mt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',bt==null||bt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Dt==null||Dt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',lt==null||lt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Ge==null||Ge.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ce==null||ce.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',de==null||de.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ve==null||ve.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',pe==null||pe.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',je==null||je.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Qe==null||Qe.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',mt==null||mt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Pt==null||Pt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',zt==null||zt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',en==null||en.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Wt==null||Wt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',dn==null||dn.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="
",ae+="
",ae+="
",ae+="
= Idle Messages =

",ae+="

Idle Messages (Hold):

",Gn==null||Gn.forEach(function(Se){ae+=Se+"
"}),ae+="


",ae+="
Idle Messages (Hold Absorbed):

",Hn==null||Hn.forEach(function(Se){ae+=Se+"
"}),ae+="


",ae+="
Idle Messages (Digest):

",Bn==null||Bn.forEach(function(Se){ae+=Se+"
"}),ae+="


",ae+="
Idle Messages (Absorb):

",Eo==null||Eo.forEach(function(Se){ae+=Se+"
"}),ae+="


",ae+="
Idle Messages (Unabsorb):

",In==null||In.forEach(function(Se){ae+=Se+"
"}),ae+="


",ae+="
Idle Messages (Drain):

",Oo==null||Oo.forEach(function(Se){ae+=Se+"
"}),ae+="


",ae+="
Idle Messages (Heal):

",bo==null||bo.forEach(function(Se){ae+=Se+"
"}),ae+="


",ae+="
Idle Messages (Size Steal):

",Vr==null||Vr.forEach(function(Se){ae+=Se+"
"}),ae+="


",ae+="
Idle Messages (Shrink):

",Gr==null||Gr.forEach(function(Se){ae+=Se+"
"}),ae+="


",ae+="
Idle Messages (Grow):

",oa==null||oa.forEach(function(Se){ae+=Se+"
"}),ae+="


",ae+="
Idle Messages (Encase In Egg):

",Xr==null||Xr.forEach(function(Se){ae+=Se+"
"}),ae+="


",ae+="


",ae+="
",ae+='
',ae+='
',ae+='

',ae+='

",ae+='
',ae+='
',ae+='
    ',ae+='
  • Can Taste: '+(k?'Yes':'No')+"
  • ",ae+='
  • Contaminates: '+(X?'Yes':'No')+"
  • ",ae+='
  • Contamination Flavor: '+F+"
  • ",ae+='
  • Contamination Color: '+J+"
  • ",ae+='
  • Nutritional Gain: '+H+"%
  • ",ae+='
  • Required Examine Size: '+Q*100+"%
  • ",ae+='
  • Display Absorbed Examines: '+(Z?'True':'False')+"
  • ",ae+='
  • Save Digest Mode: '+(V?'True':'False')+"
  • ",ae+='
  • Idle Emotes: '+(z?'Active':'Inactive')+"
  • ",ae+='
  • Idle Emote Delay: '+Y+" seconds
  • ",ae+='
  • Shrink/Grow Size: '+ee*100+"%
  • ",ae+='
  • Egg Type: '+oe+"
  • ",ae+='
  • Selective Mode Preference: '+ne+"
  • ",ae+="
",ae+="
",ae+='
',ae+='

',ae+='

",ae+='
',ae+='
',ae+='
    ',ae+='
  • Fleshy Belly: '+(Io?'Yes':'No')+"
  • ",ae+='
  • Internal Loop: '+(Cr?'Yes':'No')+"
  • ",ae+='
  • Use Fancy Sounds: '+(xn?'Yes':'No')+"
  • ",ae+='
  • Vore Sound: '+pn+"
  • ",ae+='
  • Release Sound: '+ir+"
  • ",ae+="
",ae+="
",ae+='
',ae+='

',ae+='

",ae+='
",ae+='
',ae+="Vore FX",ae+='
    ',ae+='
  • Disable Prey HUD: '+(Er?'Yes':'No')+"
  • ",ae+="
",ae+="
",ae+='
',ae+='

',ae+='

",ae+='
',ae+='
',ae+="Belly Interactions ("+(_o?'Enabled':'Disabled')+")",ae+='
    ',ae+='
  • Escape Chance: '+ei+"%
  • ",ae+='
  • Escape Chance: '+ti+"%
  • ",ae+='
  • Escape Time: '+ni/10+"s
  • ",ae+='
  • Transfer Chance: '+Kn+"%
  • ",ae+='
  • Transfer Location: '+aa+"
  • ",ae+='
  • Secondary Transfer Chance: '+ia+"%
  • ",ae+='
  • Secondary Transfer Location: '+ri+"
  • ",ae+='
  • Absorb Chance: '+sa+"%
  • ",ae+='
  • Digest Chance: '+la+"%
  • ",ae+="
",ae+="
",ae+="
",ae},h=function(){var c=new Date,f=String(c.getHours());f.length<2&&(f="0"+f);var p=String(c.getMinutes());p.length<2&&(p="0"+p);var C=String(c.getDate());C.length<2&&(C="0"+C);var j=String(c.getMonth()+1);j.length<2&&(j="0"+j);var O=String(c.getFullYear());return" "+O+"-"+j+"-"+C+" ("+f+" "+p+")"},v=function(c){var f=(0,i.Oc)(),p=f.act,C=f.data,j=C.db_version,O=C.db_repo,b=C.mob_name,I=C.bellies,_=h(),S=b+_+c,P;if(c===".html"){var A="";P=new Blob([''+I.length+" Exported Bellies (DB_VER: "+O+"-"+j+')'+A+'

Bellies of '+b+'

Generated on: '+_+'

'],{type:"text/html;charset=utf8"}),I.forEach(function(R,K){P=new Blob([P,d(R,K)],{type:"text/html;charset=utf8"})}),P=new Blob([P,"
",'