(function(){(function(){var Lu={55852:function(S,y,n){"use strict";/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */function e(o,s){return s!=null&&typeof Symbol!="undefined"&&s[Symbol.hasInstance]?!!s[Symbol.hasInstance](o):o instanceof s}function a(o){"@swc/helpers - typeof";return o&&typeof Symbol!="undefined"&&o.constructor===Symbol?"symbol":typeof o}var t=n(69344),r=n(96336);function i(o){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+o,b=1;bs}return!1}function g(o,s,b,A,W,J,te){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=A,this.attributeNamespace=W,this.mustUseProperty=b,this.propertyName=o,this.type=s,this.sanitizeURL=J,this.removeEmptyString=te}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){_[o]=new g(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var s=o[0];_[s]=new g(s,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){_[o]=new g(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){_[o]=new g(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]=new g(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){_[o]=new g(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){_[o]=new g(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){_[o]=new g(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){_[o]=new g(o,5,!1,o.toLowerCase(),null,!1,!1)});var E=/[\-:]([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 s=o.replace(E,I);_[s]=new g(s,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var s=o.replace(E,I);_[s]=new g(s,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var s=o.replace(E,I);_[s]=new g(s,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){_[o]=new g(o,1,!1,o.toLowerCase(),null,!1,!1)}),_.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){_[o]=new g(o,1,!1,o.toLowerCase(),null,!0,!0)});function M(o,s,b,A){var W=_.hasOwnProperty(s)?_[s]:null;(W!==null?W.type!==0:A||!(2me||W[te]!==J[me]){var _e="\n"+W[te].replace(" at new "," at ");return o.displayName&&_e.includes("")&&(_e=_e.replace("",o.displayName)),_e}while(1<=te&&0<=me);break}}}finally{fe=!1,Error.prepareStackTrace=b}return(o=o?o.displayName||o.name:"")?ie(o):""}function ge(o){switch(o.tag){case 5:return ie(o.type);case 16:return ie("Lazy");case 13:return ie("Suspense");case 19:return ie("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 ye(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 L:return"Fragment";case k:return"Portal";case w:return"Profiler";case F:return"StrictMode";case K:return"Suspense";case U:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case $:return(o.displayName||"Context")+".Consumer";case N:return(o._context.displayName||"Context")+".Provider";case H:var s=o.render;return o=o.displayName,o||(o=s.displayName||s.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case q:return s=o.displayName||null,s!==null?s:ye(o.type)||"Memo";case Y:s=o._payload,o=o._init;try{return ye(o(s))}catch(b){}}return null}function ve(o){var s=o.type;switch(o.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=s.render,o=o.displayName||o.name||"",s.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ye(s);case 8:return s===F?"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 s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function Ie(o){switch(typeof o=="undefined"?"undefined":a(o)){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Te(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Ve(o){var s=Te(o)?"checked":"value",b=Object.getOwnPropertyDescriptor(o.constructor.prototype,s),A=""+o[s];if(!o.hasOwnProperty(s)&&typeof b!="undefined"&&typeof b.get=="function"&&typeof b.set=="function"){var W=b.get,J=b.set;return Object.defineProperty(o,s,{configurable:!0,get:function(){return W.call(this)},set:function(me){A=""+me,J.call(this,me)}}),Object.defineProperty(o,s,{enumerable:b.enumerable}),{getValue:function(){return A},setValue:function(me){A=""+me},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function Ue(o){o._valueTracker||(o._valueTracker=Ve(o))}function Ge(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var b=s.getValue(),A="";return o&&(A=Te(o)?o.checked?"true":"false":o.value),o=A,o!==b?(s.setValue(o),!0):!1}function ze(o){if(o=o||(typeof document!="undefined"?document:void 0),typeof o=="undefined")return null;try{return o.activeElement||o.body}catch(s){return o.body}}function ut(o,s){var b=s.checked;return oe({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:b!=null?b:o._wrapperState.initialChecked})}function gt(o,s){var b=s.defaultValue==null?"":s.defaultValue,A=s.checked!=null?s.checked:s.defaultChecked;b=Ie(s.value!=null?s.value:b),o._wrapperState={initialChecked:A,initialValue:b,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function vt(o,s){s=s.checked,s!=null&&M(o,"checked",s,!1)}function ft(o,s){vt(o,s);var b=Ie(s.value),A=s.type;if(b!=null)A==="number"?(b===0&&o.value===""||o.value!=b)&&(o.value=""+b):o.value!==""+b&&(o.value=""+b);else if(A==="submit"||A==="reset"){o.removeAttribute("value");return}s.hasOwnProperty("value")?Je(o,s.type,b):s.hasOwnProperty("defaultValue")&&Je(o,s.type,Ie(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(o.defaultChecked=!!s.defaultChecked)}function tt(o,s,b){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var A=s.type;if(!(A!=="submit"&&A!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+o._wrapperState.initialValue,b||s===o.value||(o.value=s),o.defaultValue=s}b=o.name,b!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,b!==""&&(o.name=b)}function Je(o,s,b){(s!=="number"||ze(o.ownerDocument)!==o)&&(b==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+b&&(o.defaultValue=""+b))}var ke=Array.isArray;function Re(o,s,b,A){if(o=o.options,s){s={};for(var W=0;W"+s.valueOf().toString()+"",s=Ft.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;s.firstChild;)o.appendChild(s.firstChild)}});function Ct(o,s){if(s){var b=o.firstChild;if(b&&b===o.lastChild&&b.nodeType===3){b.nodeValue=s;return}}o.textContent=s}var it={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},nt=["Webkit","ms","Moz","O"];Object.keys(it).forEach(function(o){nt.forEach(function(s){s=s+o.charAt(0).toUpperCase()+o.substring(1),it[s]=it[o]})});function pt(o,s,b){return s==null||typeof s=="boolean"||s===""?"":b||typeof s!="number"||s===0||it.hasOwnProperty(o)&&it[o]?(""+s).trim():s+"px"}function St(o,s){o=o.style;for(var b in s)if(s.hasOwnProperty(b)){var A=b.indexOf("--")===0,W=pt(b,s[b],A);b==="float"&&(b="cssFloat"),A?o.setProperty(b,W):o[b]=W}}var Kt=oe({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 Yt(o,s){if(s){if(Kt[o]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(i(137,o));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(i(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(i(61))}if(s.style!=null&&typeof s.style!="object")throw Error(i(62))}}function cn(o,s){if(o.indexOf("-")===-1)return typeof s.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 rn=null;function yn(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var kn=null,At=null,Tn=null;function Qn(o){if(o=Oa(o)){if(typeof kn!="function")throw Error(i(280));var s=o.stateNode;s&&(s=$i(s),kn(o.stateNode,o.type,s))}}function Gr(o){At?Tn?Tn.push(o):Tn=[o]:At=o}function Mr(){if(At){var o=At,s=Tn;if(Tn=At=null,Qn(o),s)for(o=0;o>>=0,o===0?32:31-(Fn(o)/Zr|0)|0}var Ln=64,tn=4194304;function er(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 jr(o,s){var b=o.pendingLanes;if(b===0)return 0;var A=0,W=o.suspendedLanes,J=o.pingedLanes,te=b&268435455;if(te!==0){var me=te&~W;me!==0?A=er(me):(J&=te,J!==0&&(A=er(J)))}else te=b&~W,te!==0?A=er(te):J!==0&&(A=er(J));if(A===0)return 0;if(s!==0&&s!==A&&!(s&W)&&(W=A&-A,J=s&-s,W>=J||W===16&&(J&4194240)!==0))return s;if(A&4&&(A|=b&16),s=o.entangledLanes,s!==0)for(o=o.entanglements,s&=A;0b;b++)s.push(o);return s}function fr(o,s,b){o.pendingLanes|=s,s!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,s=31-On(s),o[s]=b}function ci(o,s){var b=o.pendingLanes&~s;o.pendingLanes=s,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=s,o.mutableReadLanes&=s,o.entangledLanes&=s,s=o.entanglements;var A=o.eventTimes;for(o=o.expirationTimes;0=Jo),Za=" ",mi=!1;function ja(o,s){switch(o){case"keyup":return xa.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ni(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Yo=!1;function el(o,s){switch(o){case"compositionend":return Ni(s);case"keypress":return s.which!==32?null:(mi=!0,Za);case"textInput":return o=s.data,o===Za&&mi?null:o;default:return null}}function Qa(o,s){if(Yo)return o==="compositionend"||!Ya&&ja(o,s)?(o=vr(),Cr=ro=mr=null,Yo=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1=s)return{node:b,offset:s-o};o=A}e:{for(;b;){if(b.nextSibling){b=b.nextSibling;break e}b=b.parentNode}b=void 0}b=es(b)}}function ee(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?ee(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function se(){for(var o=window,s=ze();e(s,o.HTMLIFrameElement);){try{var b=typeof s.contentWindow.location.href=="string"}catch(A){b=!1}if(b)o=s.contentWindow;else break;s=ze(o.document)}return s}function he(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s&&(s==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||s==="textarea"||o.contentEditable==="true")}function ae(o){var s=se(),b=o.focusedElem,A=o.selectionRange;if(s!==b&&b&&b.ownerDocument&&ee(b.ownerDocument.documentElement,b)){if(A!==null&&he(b)){if(s=A.start,o=A.end,o===void 0&&(o=s),"selectionStart"in b)b.selectionStart=s,b.selectionEnd=Math.min(o,b.value.length);else if(o=(s=b.ownerDocument||document)&&s.defaultView||window,o.getSelection){o=o.getSelection();var W=b.textContent.length,J=Math.min(A.start,W);A=A.end===void 0?J:Math.min(A.end,W),!o.extend&&J>A&&(W=A,A=J,J=W),W=O(b,J);var te=O(b,A);W&&te&&(o.rangeCount!==1||o.anchorNode!==W.node||o.anchorOffset!==W.offset||o.focusNode!==te.node||o.focusOffset!==te.offset)&&(s=s.createRange(),s.setStart(W.node,W.offset),o.removeAllRanges(),J>A?(o.addRange(s),o.extend(te.node,te.offset)):(s.setEnd(te.node,te.offset),o.addRange(s)))}}for(s=[],o=b;o=o.parentNode;)o.nodeType===1&&s.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b=document.documentMode,pe=null,Oe=null,Se=null,Ne=!1;function ht(o,s,b){var A=b.window===b?b.document:b.nodeType===9?b:b.ownerDocument;Ne||pe==null||pe!==ze(A)||(A=pe,"selectionStart"in A&&he(A)?A={start:A.selectionStart,end:A.selectionEnd}:(A=(A.ownerDocument&&A.ownerDocument.defaultView||window).getSelection(),A={anchorNode:A.anchorNode,anchorOffset:A.anchorOffset,focusNode:A.focusNode,focusOffset:A.focusOffset}),Se&&Er(Se,A)||(Se=A,A=os(Oe,"onSelect"),0Zi||(o.current=ws[Zi],ws[Zi]=null,Zi--)}function qt(o,s){Zi++,ws[Zi]=o.current,o.current=s}var Qo={},Jn=Ur(Qo),Yn=Ur(!1),Mo=Qo;function Qi(o,s){var b=o.type.contextTypes;if(!b)return Qo;var A=o.stateNode;if(A&&A.__reactInternalMemoizedUnmaskedChildContext===s)return A.__reactInternalMemoizedMaskedChildContext;var W={},J;for(J in b)W[J]=s[J];return A&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=s,o.__reactInternalMemoizedMaskedChildContext=W),W}function or(o){return o=o.childContextTypes,o!=null}function Xi(){sn(Yn),sn(Jn)}function sl(o,s,b){if(Jn.current!==Qo)throw Error(i(168));qt(Jn,s),qt(Yn,b)}function Bs(o,s,b){var A=o.stateNode;if(s=s.childContextTypes,typeof A.getChildContext!="function")return b;A=A.getChildContext();for(var W in A)if(!(W in s))throw Error(i(108,ve(o)||"Unknown",W));return oe({},b,A)}function Ls(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||Qo,Mo=Jn.current,qt(Jn,o),qt(Yn,Yn.current),!0}function Pa(o,s,b){var A=o.stateNode;if(!A)throw Error(i(169));b?(o=Bs(o,s,Mo),A.__reactInternalMemoizedMergedChildContext=o,sn(Yn),sn(Jn),qt(Jn,o)):sn(Yn),qt(Yn,b)}var io=null,Ma=!1,Ns=!1;function ls(o){io===null?io=[o]:io.push(o)}function Ul(o){Ma=!0,ls(o)}function So(){if(!Ns&&io!==null){Ns=!0;var o=0,s=Gt;try{var b=io;for(Gt=1;o>=te,W-=te,qo=1<<32-On(s)+W|b<Bt?(Wn=Tt,Tt=null):Wn=Tt.sibling;var en=$e(Pe,Tt,Me[Bt],et);if(en===null){Tt===null&&(Tt=Wn);break}o&&Tt&&en.alternate===null&&s(Pe,Tt),Ee=J(en,Ee,Bt),kt===null?Pt=en:kt.sibling=en,kt=en,Tt=Wn}if(Bt===Me.length)return b(Pe,Tt),G&&ta(Pe,Bt),Pt;if(Tt===null){for(;BtBt?(Wn=Tt,Tt=null):Wn=Tt.sibling;var fa=$e(Pe,Tt,en.value,et);if(fa===null){Tt===null&&(Tt=Wn);break}o&&Tt&&fa.alternate===null&&s(Pe,Tt),Ee=J(fa,Ee,Bt),kt===null?Pt=fa:kt.sibling=fa,kt=fa,Tt=Wn}if(en.done)return b(Pe,Tt),G&&ta(Pe,Bt),Pt;if(Tt===null){for(;!en.done;Bt++,en=Me.next())en=Ze(Pe,en.value,et),en!==null&&(Ee=J(en,Ee,Bt),kt===null?Pt=en:kt.sibling=en,kt=en);return G&&ta(Pe,Bt),Pt}for(Tt=A(Pe,Tt);!en.done;Bt++,en=Me.next())en=mt(Tt,Pe,Bt,en.value,et),en!==null&&(o&&en.alternate!==null&&Tt.delete(en.key===null?Bt:en.key),Ee=J(en,Ee,Bt),kt===null?Pt=en:kt.sibling=en,kt=en);return o&&Tt.forEach(function(gd){return s(Pe,gd)}),G&&ta(Pe,Bt),Pt}function Cn(Pe,Ee,Me,et){if(typeof Me=="object"&&Me!==null&&Me.type===L&&Me.key===null&&(Me=Me.props.children),typeof Me=="object"&&Me!==null){switch(Me.$$typeof){case D:e:{for(var Pt=Me.key,kt=Ee;kt!==null;){if(kt.key===Pt){if(Pt=Me.type,Pt===L){if(kt.tag===7){b(Pe,kt.sibling),Ee=W(kt,Me.props.children),Ee.return=Pe,Pe=Ee;break e}}else if(kt.elementType===Pt||typeof Pt=="object"&&Pt!==null&&Pt.$$typeof===Y&&fs(Pt)===kt.type){b(Pe,kt.sibling),Ee=W(kt,Me.props),Ee.ref=bi(Pe,kt,Me),Ee.return=Pe,Pe=Ee;break e}b(Pe,kt);break}else s(Pe,kt);kt=kt.sibling}Me.type===L?(Ee=Ua(Me.props.children,Pe.mode,et,Me.key),Ee.return=Pe,Pe=Ee):(et=Pl(Me.type,Me.key,Me.props,null,Pe.mode,et),et.ref=bi(Pe,Ee,Me),et.return=Pe,Pe=et)}return te(Pe);case k:e:{for(kt=Me.key;Ee!==null;){if(Ee.key===kt)if(Ee.tag===4&&Ee.stateNode.containerInfo===Me.containerInfo&&Ee.stateNode.implementation===Me.implementation){b(Pe,Ee.sibling),Ee=W(Ee,Me.children||[]),Ee.return=Pe,Pe=Ee;break e}else{b(Pe,Ee);break}else s(Pe,Ee);Ee=Ee.sibling}Ee=jc(Me,Pe.mode,et),Ee.return=Pe,Pe=Ee}return te(Pe);case Y:return kt=Me._init,Cn(Pe,Ee,kt(Me._payload),et)}if(ke(Me))return yt(Pe,Ee,Me,et);if(Q(Me))return _t(Pe,Ee,Me,et);ds(Pe,Me)}return typeof Me=="string"&&Me!==""||typeof Me=="number"?(Me=""+Me,Ee!==null&&Ee.tag===6?(b(Pe,Ee.sibling),Ee=W(Ee,Me),Ee.return=Pe,Pe=Ee):(b(Pe,Ee),Ee=xc(Me,Pe.mode,et),Ee.return=Pe,Pe=Ee),te(Pe)):b(Pe,Ee)}return Cn}var _i=cl(!0),ul=cl(!1),Da={},Fr=Ur(Da),ia=Ur(Da),Aa=Ur(Da);function Ei(o){if(o===Da)throw Error(i(174));return o}function Ro(o,s){switch(qt(Aa,s),qt(ia,o),qt(Fr,Da),o=s.nodeType,o){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:Jt(null,"");break;default:o=o===8?s.parentNode:s,s=o.namespaceURI||null,o=o.tagName,s=Jt(s,o)}sn(Fr),qt(Fr,s)}function wo(){sn(Fr),sn(ia),sn(Aa)}function Fs(o){Ei(Aa.current);var s=Ei(Fr.current),b=Jt(s,o.type);s!==b&&(qt(ia,o),qt(Fr,b))}function hs(o){ia.current===o&&(sn(Fr),sn(ia))}var ln=Ur(0);function ka(o){for(var s=o;s!==null;){if(s.tag===13){var b=s.memoizedState;if(b!==null&&(b=b.dehydrated,b===null||b.data==="$?"||b.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if(s.flags&128)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var ms=[];function vs(){for(var o=0;ob?b:4,o(!0);var A=Wl.transition;Wl.transition={};try{o(!1),s()}finally{Gt=b,Wl.transition=A}}function Kc(){return so().memoizedState}function Wu(o,s,b){var A=ca(o);if(b={lane:A,action:b,hasEagerState:!1,eagerState:null,next:null},Gc(o))Vc(s,b);else if(b=wt(o,s,b,A),b!==null){var W=pr();No(b,o,A,W),zc(b,s,A)}}function Fu(o,s,b){var A=ca(o),W={lane:A,action:b,hasEagerState:!1,eagerState:null,next:null};if(Gc(o))Vc(s,W);else{var J=o.alternate;if(o.lanes===0&&(J===null||J.lanes===0)&&(J=s.lastRenderedReducer,J!==null))try{var te=s.lastRenderedState,me=J(te,b);if(W.hasEagerState=!0,W.eagerState=me,zn(me,te)){var _e=s.interleaved;_e===null?(W.next=W,$t(s)):(W.next=_e.next,_e.next=W),s.interleaved=W;return}}catch(Ae){}finally{}b=wt(o,s,W,A),b!==null&&(W=pr(),No(b,o,A,W),zc(b,s,A))}}function Gc(o){var s=o.alternate;return o===xn||s!==null&&s===xn}function Vc(o,s){Ks=dl=!0;var b=o.pending;b===null?s.next=s:(s.next=b.next,b.next=s),o.pending=s}function zc(o,s,b){if(b&4194240){var A=s.lanes;A&=o.pendingLanes,b|=A,s.lanes=b,vo(o,b)}}var ml={readContext:jt,useCallback:ar,useContext:ar,useEffect:ar,useImperativeHandle:ar,useInsertionEffect:ar,useLayoutEffect:ar,useMemo:ar,useReducer:ar,useRef:ar,useState:ar,useDebugValue:ar,useDeferredValue:ar,useTransition:ar,useMutableSource:ar,useSyncExternalStore:ar,useId:ar,unstable_isNewReconciler:!1},Ku={readContext:jt,useCallback:function(s,b){return ti().memoizedState=[s,b===void 0?null:b],s},useContext:jt,useEffect:Rc,useImperativeHandle:function(s,b,A){return A=A!=null?A.concat([s]):null,fl(4194308,4,Lc.bind(null,b,s),A)},useLayoutEffect:function(s,b){return fl(4194308,4,s,b)},useInsertionEffect:function(s,b){return fl(4,2,s,b)},useMemo:function(s,b){var A=ti();return b=b===void 0?null:b,s=s(),A.memoizedState=[s,b],s},useReducer:function(s,b,A){var W=ti();return b=A!==void 0?A(b):b,W.memoizedState=W.baseState=b,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:b},W.queue=s,s=s.dispatch=Wu.bind(null,xn,s),[W.memoizedState,s]},useRef:function(s){var b=ti();return s={current:s},b.memoizedState=s},useState:kc,useDebugValue:Jl,useDeferredValue:function(s){return ti().memoizedState=s},useTransition:function(){var s=kc(!1),b=s[0];return s=Uu.bind(null,s[1]),ti().memoizedState=s,[b,s]},useMutableSource:function(){},useSyncExternalStore:function(s,b,A){var W=xn,J=ti();if(G){if(A===void 0)throw Error(i(407));A=A()}else{if(A=b(),Un===null)throw Error(i(349));Ra&30||Pc(W,b,A)}J.memoizedState=A;var te={value:A,getSnapshot:b};return J.queue=te,Rc(Sc.bind(null,W,te,s),[s]),W.flags|=2048,zs(9,Mc.bind(null,W,te,A,b),void 0,null),A},useId:function(){var s=ti(),b=Un.identifierPrefix;if(G){var A=ei,W=qo;A=(W&~(1<<32-On(W)-1)).toString(32)+A,b=":"+b+"R"+A,A=Gs++,0<\/script>",o=o.removeChild(o.firstChild)):typeof A.is=="string"?o=te.createElement(b,{is:A.is}):(o=te.createElement(b),b==="select"&&(te=o,A.multiple?te.multiple=!0:A.size&&(te.size=A.size))):o=te.createElementNS(o,b),o[oo]=s,o[ji]=A,lu(o,s,!1,!1),s.stateNode=o;e:{switch(te=cn(b,A),b){case"dialog":an("cancel",o),an("close",o),W=A;break;case"iframe":case"object":case"embed":an("load",o),W=A;break;case"video":case"audio":for(W=0;Wjs&&(s.flags|=128,A=!0,Hs(J,!1),s.lanes=4194304)}else{if(!A)if(o=ka(te),o!==null){if(s.flags|=128,A=!0,b=o.updateQueue,b!==null&&(s.updateQueue=b,s.flags|=4),Hs(J,!0),J.tail===null&&J.tailMode==="hidden"&&!te.alternate&&!G)return sr(s),null}else 2*Xt()-J.renderingStartTime>js&&b!==1073741824&&(s.flags|=128,A=!0,Hs(J,!1),s.lanes=4194304);J.isBackwards?(te.sibling=s.child,s.child=te):(b=J.last,b!==null?b.sibling=te:s.child=te,J.last=te)}return J.tail!==null?(s=J.tail,J.rendering=s,J.tail=s.sibling,J.renderingStartTime=Xt(),s.sibling=null,b=ln.current,qt(ln,A?b&1|2:b&1),s):(sr(s),null);case 22:case 23:return vc(),A=s.memoizedState!==null,o!==null&&o.memoizedState!==null!==A&&(s.flags|=8192),A&&s.mode&1?Kr&1073741824&&(sr(s),s.subtreeFlags&6&&(s.flags|=8192)):sr(s),null;case 24:return null;case 25:return null}throw Error(i(156,s.tag))}function Zu(o,s){switch(T(s),s.tag){case 1:return or(s.type)&&Xi(),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return wo(),sn(Yn),sn(Jn),vs(),o=s.flags,o&65536&&!(o&128)?(s.flags=o&-65537|128,s):null;case 5:return hs(s),null;case 13:if(sn(ln),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(i(340));Le()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return sn(ln),null;case 4:return wo(),null;case 10:return Mt(s.type._context),null;case 22:case 23:return vc(),null;case 24:return null;default:return null}}var pl=!1,lr=!1,Qu=typeof WeakSet=="function"?WeakSet:Set,xt=null;function ps(o,s){var b=o.ref;if(b!==null)if(typeof b=="function")try{b(null)}catch(A){jn(o,s,A)}else b.current=null}function rc(o,s,b){try{b()}catch(A){jn(o,s,A)}}var du=!1;function Xu(o,s){if(Ss=eo,o=se(),he(o)){if("selectionStart"in o)var b={start:o.selectionStart,end:o.selectionEnd};else e:{b=(b=o.ownerDocument)&&b.defaultView||window;var A=b.getSelection&&b.getSelection();if(A&&A.rangeCount!==0){b=A.anchorNode;var W=A.anchorOffset,J=A.focusNode;A=A.focusOffset;try{b.nodeType,J.nodeType}catch(et){b=null;break e}var te=0,me=-1,_e=-1,Ae=0,Be=0,Ze=o,$e=null;t:for(;;){for(var mt;Ze!==b||W!==0&&Ze.nodeType!==3||(me=te+W),Ze!==J||A!==0&&Ze.nodeType!==3||(_e=te+A),Ze.nodeType===3&&(te+=Ze.nodeValue.length),(mt=Ze.firstChild)!==null;)$e=Ze,Ze=mt;for(;;){if(Ze===o)break t;if($e===b&&++Ae===W&&(me=te),$e===J&&++Be===A&&(_e=te),(mt=Ze.nextSibling)!==null)break;Ze=$e,$e=Ze.parentNode}Ze=mt}b=me===-1||_e===-1?null:{start:me,end:_e}}else b=null}b=b||{start:0,end:0}}else b=null;for(as={focusedElem:o,selectionRange:b},eo=!1,xt=s;xt!==null;)if(s=xt,o=s.child,(s.subtreeFlags&1028)!==0&&o!==null)o.return=s,xt=o;else for(;xt!==null;){s=xt;try{var yt=s.alternate;if(s.flags&1024)switch(s.tag){case 0:case 11:case 15:break;case 1:if(yt!==null){var _t=yt.memoizedProps,Cn=yt.memoizedState,Pe=s.stateNode,Ee=Pe.getSnapshotBeforeUpdate(s.elementType===s.type?_t:Ye(s.type,_t),Cn);Pe.__reactInternalSnapshotBeforeUpdate=Ee}break;case 3:var Me=s.stateNode.containerInfo;Me.nodeType===1?Me.textContent="":Me.nodeType===9&&Me.documentElement&&Me.removeChild(Me.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(et){jn(s,s.return,et)}if(o=s.sibling,o!==null){o.return=s.return,xt=o;break}xt=s.return}return yt=du,du=!1,yt}function Js(o,s,b){var A=s.updateQueue;if(A=A!==null?A.lastEffect:null,A!==null){var W=A=A.next;do{if((W.tag&o)===o){var J=W.destroy;W.destroy=void 0,J!==void 0&&rc(s,b,J)}W=W.next}while(W!==A)}}function xl(o,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var b=s=s.next;do{if((b.tag&o)===o){var A=b.create;b.destroy=A()}b=b.next}while(b!==s)}}function oc(o){var s=o.ref;if(s!==null){var b=o.stateNode;switch(o.tag){case 5:o=b;break;default:o=b}typeof s=="function"?s(o):s.current=o}}function fu(o){var s=o.alternate;s!==null&&(o.alternate=null,fu(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&(delete s[oo],delete s[ji],delete s[Ia],delete s[Nl],delete s[al])),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 ic(o,s,b){var A=o.tag;if(A===5||A===6)o=o.stateNode,s?b.nodeType===8?b.parentNode.insertBefore(o,s):b.insertBefore(o,s):(b.nodeType===8?(s=b.parentNode,s.insertBefore(o,b)):(s=b,s.appendChild(o)),b=b._reactRootContainer,b!=null||s.onclick!==null||(s.onclick=is));else if(A!==4&&(o=o.child,o!==null))for(ic(o,s,b),o=o.sibling;o!==null;)ic(o,s,b),o=o.sibling}function ac(o,s,b){var A=o.tag;if(A===5||A===6)o=o.stateNode,s?b.insertBefore(o,s):b.appendChild(o);else if(A!==4&&(o=o.child,o!==null))for(ac(o,s,b),o=o.sibling;o!==null;)ac(o,s,b),o=o.sibling}var $n=null,Bo=!1;function aa(o,s,b){for(b=b.child;b!==null;)vu(o,s,b),b=b.sibling}function vu(o,s,b){if(dt&&typeof dt.onCommitFiberUnmount=="function")try{dt.onCommitFiberUnmount(Yr,b)}catch(me){}switch(b.tag){case 5:lr||ps(b,s);case 6:var A=$n,W=Bo;$n=null,aa(o,s,b),$n=A,Bo=W,$n!==null&&(Bo?(o=$n,b=b.stateNode,o.nodeType===8?o.parentNode.removeChild(b):o.removeChild(b)):$n.removeChild(b.stateNode));break;case 18:$n!==null&&(Bo?(o=$n,b=b.stateNode,o.nodeType===8?Rs(o.parentNode,b):o.nodeType===1&&Rs(o,b),jo(o)):Rs($n,b.stateNode));break;case 4:A=$n,W=Bo,$n=b.stateNode.containerInfo,Bo=!0,aa(o,s,b),$n=A,Bo=W;break;case 0:case 11:case 14:case 15:if(!lr&&(A=b.updateQueue,A!==null&&(A=A.lastEffect,A!==null))){W=A=A.next;do{var J=W,te=J.destroy;J=J.tag,te!==void 0&&(J&2||J&4)&&rc(b,s,te),W=W.next}while(W!==A)}aa(o,s,b);break;case 1:if(!lr&&(ps(b,s),A=b.stateNode,typeof A.componentWillUnmount=="function"))try{A.props=b.memoizedProps,A.state=b.memoizedState,A.componentWillUnmount()}catch(me){jn(b,s,me)}aa(o,s,b);break;case 21:aa(o,s,b);break;case 22:b.mode&1?(lr=(A=lr)||b.memoizedState!==null,aa(o,s,b),lr=A):aa(o,s,b);break;default:aa(o,s,b)}}function gu(o){var s=o.updateQueue;if(s!==null){o.updateQueue=null;var b=o.stateNode;b===null&&(b=o.stateNode=new Qu),s.forEach(function(A){var W=sd.bind(null,o,A);b.has(A)||(b.add(A),A.then(W,W))})}}function Lo(o,s){var b=s.deletions;if(b!==null)for(var A=0;AW&&(W=te),A&=~J}if(A=W,A=Xt()-A,A=(120>A?120:480>A?480:1080>A?1080:1920>A?1920:3e3>A?3e3:4320>A?4320:1960*ed(A/1960))-A,10o?16:o,la===null)var A=!1;else{if(o=la,la=null,_l=0,Qt&6)throw Error(i(331));var W=Qt;for(Qt|=4,xt=o.current;xt!==null;){var J=xt,te=J.child;if(xt.flags&16){var me=J.deletions;if(me!==null){for(var _e=0;_eXt()-cc?La(o,0):lc|=b),Pr(o,s)}function Su(o,s){s===0&&(o.mode&1?(s=tn,tn<<=1,!(tn&130023424)&&(tn=4194304)):s=1);var b=pr();o=bt(o,s),o!==null&&(fr(o,s,b),Pr(o,b))}function ad(o){var s=o.memoizedState,b=0;s!==null&&(b=s.retryLane),Su(o,b)}function sd(o,s){var b=0;switch(o.tag){case 13:var A=o.stateNode,W=o.memoizedState;W!==null&&(b=W.retryLane);break;case 19:A=o.stateNode;break;default:throw Error(i(314))}A!==null&&A.delete(s),Su(o,b)}var Du;Du=function(s,b,A){if(s!==null)if(s.memoizedProps!==b.pendingProps||Yn.current)Ir=!0;else{if(!(s.lanes&A)&&!(b.flags&128))return Ir=!1,Yu(s,b,A);Ir=!!(s.flags&131072)}else Ir=!1,G&&b.flags&1048576&&cs(b,Ws,b.index);switch(b.lanes=0,b.tag){case 2:var W=b.type;gl(s,b),s=b.pendingProps;var J=Qi(b,Jn.current);Dt(b,A),J=Kl(null,b,W,s,J,A);var te=Gl();return b.flags|=1,typeof J=="object"&&J!==null&&typeof J.render=="function"&&J.$$typeof===void 0?(b.tag=1,b.memoizedState=null,b.updateQueue=null,or(W)?(te=!0,Ls(b)):te=!1,b.memoizedState=J.state!==null&&J.state!==void 0?J.state:null,gn(b),J.updater=Ao,b.stateNode=J,J._reactInternals=b,To(b,W,s,A),b=Ql(null,b,W,!0,te,A)):(b.tag=0,G&&te&&ll(b),gr(null,b,J,A),b=b.child),b;case 16:W=b.elementType;e:{switch(gl(s,b),s=b.pendingProps,J=W._init,W=J(W._payload),b.type=W,J=b.tag=cd(W),s=Ye(W,s),J){case 0:b=Zl(null,b,W,s,A);break e;case 1:b=nu(null,b,W,s,A);break e;case 11:b=Qc(null,b,W,s,A);break e;case 14:b=Xc(null,b,W,Ye(W.type,s),A);break e}throw Error(i(306,W,""))}return b;case 0:return W=b.type,J=b.pendingProps,J=b.elementType===W?J:Ye(W,J),Zl(s,b,W,J,A);case 1:return W=b.type,J=b.pendingProps,J=b.elementType===W?J:Ye(W,J),nu(s,b,W,J,A);case 3:e:{if(ru(b),s===null)throw Error(i(387));W=b.pendingProps,te=b.memoizedState,J=te.element,pn(s,b),Ci(b,W,null,A);var me=b.memoizedState;if(W=me.element,te.isDehydrated)if(te={element:W,isDehydrated:!1,cache:me.cache,pendingSuspenseBoundaries:me.pendingSuspenseBoundaries,transitions:me.transitions},b.updateQueue.baseState=te,b.memoizedState=te,b.flags&256){J=gs(Error(i(423)),b),b=ou(s,b,W,A,J);break e}else if(W!==J){J=gs(Error(i(424)),b),b=ou(s,b,W,A,J);break e}else for(V=Io(b.stateNode.containerInfo.firstChild),R=b,G=!0,B=null,A=ul(b,null,W,A),b.child=A;A;)A.flags=A.flags&-3|4096,A=A.sibling;else{if(Le(),W===J){b=Ii(s,b,A);break e}gr(s,b,W,A)}b=b.child}return b;case 5:return Fs(b),s===null&&xe(b),W=b.type,J=b.pendingProps,te=s!==null?s.memoizedProps:null,me=J.children,_a(W,J)?me=null:te!==null&&_a(W,te)&&(b.flags|=32),tu(s,b),gr(s,b,me,A),b.child;case 6:return s===null&&xe(b),null;case 13:return iu(s,b,A);case 4:return Ro(b,b.stateNode.containerInfo),W=b.pendingProps,s===null?b.child=_i(b,null,W,A):gr(s,b,W,A),b.child;case 11:return W=b.type,J=b.pendingProps,J=b.elementType===W?J:Ye(W,J),Qc(s,b,W,J,A);case 7:return gr(s,b,b.pendingProps,A),b.child;case 8:return gr(s,b,b.pendingProps.children,A),b.child;case 12:return gr(s,b,b.pendingProps.children,A),b.child;case 10:e:{if(W=b.type._context,J=b.pendingProps,te=b.memoizedProps,me=J.value,qt(rt,W._currentValue),W._currentValue=me,te!==null)if(zn(te.value,me)){if(te.children===J.children&&!Yn.current){b=Ii(s,b,A);break e}}else for(te=b.child,te!==null&&(te.return=b);te!==null;){var _e=te.dependencies;if(_e!==null){me=te.child;for(var Ae=_e.firstContext;Ae!==null;){if(Ae.context===W){if(te.tag===1){Ae=nn(-1,A&-A),Ae.tag=2;var Be=te.updateQueue;if(Be!==null){Be=Be.shared;var Ze=Be.pending;Ze===null?Ae.next=Ae:(Ae.next=Ze.next,Ze.next=Ae),Be.pending=Ae}}te.lanes|=A,Ae=te.alternate,Ae!==null&&(Ae.lanes|=A),Rt(te.return,A,b),_e.lanes|=A;break}Ae=Ae.next}}else if(te.tag===10)me=te.type===b.type?null:te.child;else if(te.tag===18){if(me=te.return,me===null)throw Error(i(341));me.lanes|=A,_e=me.alternate,_e!==null&&(_e.lanes|=A),Rt(me,A,b),me=te.sibling}else me=te.child;if(me!==null)me.return=te;else for(me=te;me!==null;){if(me===b){me=null;break}if(te=me.sibling,te!==null){te.return=me.return,me=te;break}me=me.return}te=me}gr(s,b,J.children,A),b=b.child}return b;case 9:return J=b.type,W=b.pendingProps.children,Dt(b,A),J=jt(J),W=W(J),b.flags|=1,gr(s,b,W,A),b.child;case 14:return W=b.type,J=Ye(W,b.pendingProps),J=Ye(W.type,J),Xc(s,b,W,J,A);case 15:return qc(s,b,b.type,b.pendingProps,A);case 17:return W=b.type,J=b.pendingProps,J=b.elementType===W?J:Ye(W,J),gl(s,b),b.tag=1,or(W)?(s=!0,Ls(b)):s=!1,Dt(b,A),oa(b,W,J),To(b,W,J,A),Ql(null,b,W,!0,s,A);case 19:return su(s,b,A);case 22:return eu(s,b,A)}throw Error(i(156,b.tag))};function Au(o,s){return mn(o,s)}function ld(o,s,b,A){this.tag=o,this.key=b,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=A,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function co(o,s,b,A){return new ld(o,s,b,A)}function pc(o){return o=o.prototype,!(!o||!o.isReactComponent)}function cd(o){if(typeof o=="function")return pc(o)?1:0;if(o!=null){if(o=o.$$typeof,o===H)return 11;if(o===q)return 14}return 2}function da(o,s){var b=o.alternate;return b===null?(b=co(o.tag,s,o.key,o.mode),b.elementType=o.elementType,b.type=o.type,b.stateNode=o.stateNode,b.alternate=o,o.alternate=b):(b.pendingProps=s,b.type=o.type,b.flags=0,b.subtreeFlags=0,b.deletions=null),b.flags=o.flags&14680064,b.childLanes=o.childLanes,b.lanes=o.lanes,b.child=o.child,b.memoizedProps=o.memoizedProps,b.memoizedState=o.memoizedState,b.updateQueue=o.updateQueue,s=o.dependencies,b.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},b.sibling=o.sibling,b.index=o.index,b.ref=o.ref,b}function Pl(o,s,b,A,W,J){var te=2;if(A=o,typeof o=="function")pc(o)&&(te=1);else if(typeof o=="string")te=5;else e:switch(o){case L:return Ua(b.children,W,J,s);case F:te=8,W|=8;break;case w:return o=co(12,b,s,W|2),o.elementType=w,o.lanes=J,o;case K:return o=co(13,b,s,W),o.elementType=K,o.lanes=J,o;case U:return o=co(19,b,s,W),o.elementType=U,o.lanes=J,o;case Z:return Ml(b,W,J,s);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case N:te=10;break e;case $:te=9;break e;case H:te=11;break e;case q:te=14;break e;case Y:te=16,A=null;break e}throw Error(i(130,o==null?o:typeof o=="undefined"?"undefined":a(o),""))}return s=co(te,b,s,W),s.elementType=o,s.type=A,s.lanes=J,s}function Ua(o,s,b,A){return o=co(7,o,A,s),o.lanes=b,o}function Ml(o,s,b,A){return o=co(22,o,A,s),o.elementType=Z,o.lanes=b,o.stateNode={isHidden:!1},o}function xc(o,s,b){return o=co(6,o,null,s),o.lanes=b,o}function jc(o,s,b){return s=co(4,o.children!==null?o.children:[],o.key,s),s.lanes=b,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}function ud(o,s,b,A,W){this.tag=s,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=Qr(0),this.expirationTimes=Qr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qr(0),this.identifierPrefix=A,this.onRecoverableError=W,this.mutableSourceEagerHydrationData=null}function yc(o,s,b,A,W,J,te,me,_e){return o=new ud(o,s,b,me,_e),s===1?(s=1,J===!0&&(s|=8)):s=0,J=co(3,null,null,s),o.current=J,J.stateNode=o,J.memoizedState={element:A,isDehydrated:b,cache:null,transitions:null,pendingSuspenseBoundaries:null},gn(J),o}function dd(o,s,b){var A=30?"-":"+")+C(Math.floor(Math.abs(N())/60)*100+Math.abs(N())%60,4)},p:function(){return(N()>0?"-":"+")+C(Math.floor(Math.abs(N())/60),2)+":"+C(Math.floor(Math.abs(N())%60),2)},S:function(){return["th","st","nd","rd"][I()%10>3?0:(I()%100-I()%10!=10)*I()%10]},W:function(){return $()},WW:function(){return C($())},N:function(){return H()}};return v.replace(c,function(U){return U in K?K[U]():U.slice(1,U.length-1)})}}();j.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},j.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var C=function(l,f){for(l=String(l),f=f||2;l.length=0;--oe){var le=this.tryEntries[oe],ie=le.completion;if(le.tryLoc==="root")return Q("end");if(le.tryLoc<=this.prev){var fe=r.call(le,"catchLoc"),de=r.call(le,"finallyLoc");if(fe&&de){if(this.prev=0;--Q){var oe=this.tryEntries[Q];if(oe.tryLoc<=this.prev&&r.call(oe,"finallyLoc")&&this.prev=0;--z){var Q=this.tryEntries[z];if(Q.finallyLoc===Z)return this.complete(Q.completion,Q.afterLoc),H(Q),g}},catch:function(Y){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var z=this.tryEntries[Z];if(z.tryLoc===Y){var Q=z.completion;if(Q.type==="throw"){var oe=Q.arg;H(z)}return oe}}throw new Error("illegal catch attempt")},delegateYield:function(Z,z,Q){return this.delegate={iterator:U(Z),resultName:z,nextLoc:Q},this.method==="next"&&(this.arg=j),g}},a}(S.exports);try{regeneratorRuntime=e}catch(a){typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},61528:function(S,y){"use strict";/** * @license React * scheduler.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */function n(U,q){var Y=U.length;U.push(q);e:for(;0>>1,z=U[Z];if(0>>1;Zt(le,Y))iet(fe,le)?(U[Z]=fe,U[ie]=Y,Z=ie):(U[Z]=le,U[oe]=Y,Z=oe);else if(iet(fe,Y))U[Z]=fe,U[ie]=Y,Z=ie;else break e}}return q}function t(U,q){var Y=U.sortIndex-q.sortIndex;return Y!==0?Y:U.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;y.unstable_now=function(){return r.now()}}else{var i=Date,j=i.now();y.unstable_now=function(){return i.now()-j}}var C=[],x=[],u=1,d=null,h=3,c=!1,l=!1,f=!1,m=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(U){for(var q=e(x);q!==null;){if(q.callback===null)a(x);else if(q.startTime<=U)a(x),q.sortIndex=q.expirationTime,n(C,q);else break;q=e(x)}}function _(U){if(f=!1,g(U),!l)if(e(C)!==null)l=!0,H(E);else{var q=e(x);q!==null&&K(_,q.startTime-U)}}function E(U,q){l=!1,f&&(f=!1,v(P),P=-1),c=!0;var Y=h;try{for(g(q),d=e(C);d!==null&&(!(d.expirationTime>q)||U&&!L());){var Z=d.callback;if(typeof Z=="function"){d.callback=null,h=d.priorityLevel;var z=Z(d.expirationTime<=q);q=y.unstable_now(),typeof z=="function"?d.callback=z:d===e(C)&&a(C),g(q)}else a(C);d=e(C)}if(d!==null)var Q=!0;else{var oe=e(x);oe!==null&&K(_,oe.startTime-q),Q=!1}return Q}finally{d=null,h=Y,c=!1}}var I=!1,M=null,P=-1,D=5,k=-1;function L(){return!(y.unstable_now()-kU||125Z?(U.sortIndex=Y,n(x,U),e(C)===null&&U===e(x)&&(f?(v(P),P=-1):f=!0,K(_,Y-Z))):(U.sortIndex=z,n(C,U),l||c||(l=!0,H(E))),U},y.unstable_shouldYield=L,y.unstable_wrapCallback=function(U){var q=h;return function(){var Y=h;h=q;try{return U.apply(this,arguments)}finally{h=Y}}}},96336:function(S,y,n){"use strict";S.exports=n(61528)},59832:function(){self.fetch||(self.fetch=function(S,y){return y=y||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],r={},i=function C(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){return Promise.resolve(a.responseText)},json:function(){return Promise.resolve(a.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([a.response]))},clone:C,headers:{keys:function(){return t},entries:function(){return t.map(function(u){return[u,a.getResponseHeader(u)]})},get:function(u){return a.getResponseHeader(u)},has:function(u){return a.getResponseHeader(u)!=null}}}};for(var j in a.open(y.method||"get",S,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(C,x){r[x]||t.push(r[x]=x)}),n(i())},a.onerror=e,a.withCredentials=y.credentials=="include",y.headers)a.setRequestHeader(j,y.headers[j]);a.send(y.body||null)})})},47392:function(S,y,n){"use strict";n.d(y,{IF:function(){return i},Oy:function(){return l},_e:function(){return f},cp:function(){return u},kH:function(){return j},yC:function(){return p}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function e(P,D){(D==null||D>P.length)&&(D=P.length);for(var k=0,L=new Array(D);k=P.length?{done:!0}:{done:!1,value:P[L++]}}}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(P){return function(D){if(D==null)return D;if(Array.isArray(D)){for(var k=[],L=0;L$)return 1}return 0},u=function(){for(var P=arguments.length,D=new Array(P),k=0;k>1,$=P(D[H]),$L?H:H+1},_=function(P){return function(D,k){var L=[].concat(D);return L.splice(g(P,D,k),0,k),L}},E=function(P,D){for(var k=[],L=[],F=D,w=r(P),N;!(N=w()).done;){var $=N.value;L.push($),F--,F||(F=D,k.push(L),L=[])}return L.length&&k.push(L),k},I=function(P){return typeof P=="object"&&P!==null},M=function(){for(var P=arguments.length,D=new Array(P),k=0;k1?j-1:0),x=1;xC.length)&&(x=C.length);for(var u=0,d=new Array(x);u=C.length?{done:!0}:{done:!1,value:C[d++]}}}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 C=arguments.length,x=new Array(C),u=0;u1?c-1:0),f=1;f1?l-1:0),m=1;mc.length)&&(l=c.length);for(var f=0,m=new Array(l);f=c.length?{done:!0}:{done:!1,value:c[m++]}}}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(c,l,f){return cf?f:c},i=function(c){return c<0?0:c>1?1:c},j=function(c,l,f){return(c-l)/(f-l)},C=function(c,l){if(!c||isNaN(c))return c;var f,m,v,p;return l|=0,f=Math.pow(10,l),c*=f,p=+(c>0)|-(c<0),v=Math.abs(c%1)>=.4999999999854481,m=Math.floor(c),v&&(c=m+(p>0)),(v?c:Math.round(c))/f},x=function(c,l){return l===void 0&&(l=0),Number(c).toFixed(Math.max(l,0))},u=function(c,l){return l&&c>=l[0]&&c<=l[1]},d=function(c,l){for(var f=t(Object.keys(l)),m;!(m=f()).done;){var v=m.value,p=l[v];if(u(c,p))return v}},h=function(c){return Math.floor(c)!==c&&c.toString().split(".")[1].length||0}},30668:function(S,y,n){"use strict";n.d(y,{M:function(){return d}});/** * Ghetto performance measurement tools. * * Uses NODE_ENV to remove itself from production builds. * * @file * @copyright 2020 Aleksej Komarov * @license MIT */var e,a=60,t=1e3/a,r=!!((e=window.performance)!=null&&e.now),i={},j={},C=function(h,c){},x=function(h,c){if(0)var l,f,m},u=function(h){var c=h/t;return h.toFixed(h<10?1:0)+"ms ("+c.toFixed(2)+" frames)"},d={mark:C,measure:x}},28324:function(S,y,n){"use strict";n.d(y,{Cw:function(){return t},cS:function(){return r},iE:function(){return e}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */var e=function(i){for(var j="",C=0;Cu.length)&&(d=u.length);for(var h=0,c=new Array(d);h=u.length?{done:!0}:{done:!1,value:u[c++]}}}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(u,d){if(d)return d(i)(u);var h,c=[],l=function(){return h},f=function(v){c.push(v)},m=function(v){h=u(h,v);for(var p=0;p1?f-1:0),v=1;v1?M-1:0),D=1;D0&&D[D.length-1])&&(N[0]===6||N[0]===2)){L=0;continue}if(N[0]===3&&(!D||N[1]>D[0]&&N[1]l.length)&&(f=l.length);for(var m=0,v=new Array(f);m=l.length?{done:!0}:{done:!1,value:l[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=function(l){if(Array.isArray(l))return r(l.join(""));for(var f=l.split("\n"),m,v=t(f),p;!(p=v()).done;)for(var g=p.value,_=0;_",apos:"'"};return l.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(f,function(v,p){return m[p]}).replace(/&#?([0-9]+);/gi,function(v,p){var g=parseInt(p,10);return String.fromCharCode(g)}).replace(/&#x?([0-9a-f]+);/gi,function(v,p){var g=parseInt(p,16);return String.fromCharCode(g)})},c=function(l){return Object.keys(l).map(function(f){return encodeURIComponent(f)+"="+encodeURIComponent(l[f])}).join("&")}},59884:function(S,y,n){"use strict";n.d(y,{Gw:function(){return C},Ud:function(){return j},WE:function(){return d},aO:function(){return c},wP:function(){return x}});var e=n(47392);/** * N-dimensional vector manipulation functions. * * Vectors are plain number arrays, i.e. [x, y, z]. * * @file * @copyright 2020 Aleksej Komarov * @license MIT */var a=function(f,m){return f+m},t=function(f,m){return f-m},r=function(f,m){return f*m},i=function(f,m){return f/m},j=function(){for(var f=arguments.length,m=new Array(f),v=0;vx.length)&&(u=x.length);for(var d=0,h=new Array(u);d=x.length?{done:!0}:{done:!1,value:x[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=[/v4shim/i],i={},j=function(x){return i[x]||x},C=function(x){return function(u){return function(d){var h=d.type,c=d.payload;if(h==="asset/stylesheet"){Byond.loadCss(c);return}if(h==="asset/mappings"){for(var l=function(){var v=m.value;if(r.some(function(_){return _.test(v)}))return"continue";var p=c[v],g=v.split(".").pop();i[v]=p,g==="css"&&Byond.loadCss(p),g==="js"&&Byond.loadJs(p)},f=t(Object.keys(c)),m;!(m=f()).done;)l();return}u(d)}}}},45280:function(S,y,n){"use strict";n.d(y,{AQ:function(){return E},Ex:function(){return I},I1:function(){return l},W0:function(){return f},ao:function(){return L},cv:function(){return k},gz:function(){return p},yy:function(){return D}});var e=n(30668),a=n(78612),t=n(90244),r=n(20284),i=n(99992),j=n(37756),C=n(78332);/** * This file provides a clear separation layer between backend updates * and what state our React app sees. * * Sometimes backend can response without a "data" field, but our final * state will still contain previous "data" because we are merging * the response with already existing state. * * @file * @copyright 2020 Aleksej Komarov * @license MIT */function x(N,$){($==null||$>N.length)&&($=N.length);for(var H=0,K=new Array($);H<$;H++)K[H]=N[H];return K}function u(){return u=Object.assign||function(N){for(var $=1;$=N.length?{done:!0}:{done:!1,value:N[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 c=(0,j.m)("backend"),l,f=function(N){l=N},m=(0,a.Uh)("backend/update"),v=(0,a.Uh)("backend/setSharedState"),p=(0,a.Uh)("backend/suspendStart"),g=function(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}},_={config:{},data:{},shared:{},suspended:Date.now(),suspending:!1},E=function(N,$){N===void 0&&(N=_);var H=$.type,K=$.payload;if(H==="backend/update"){var U=u({},N.config,K.config),q=u({},N.data,K.static_data,K.data),Y=u({},N.shared);if(K.shared)for(var Z=h(Object.keys(K.shared)),z;!(z=Z()).done;){var Q=z.value,oe=K.shared[Q];oe===""?Y[Q]=void 0:Y[Q]=JSON.parse(oe)}return u({},N,{config:U,data:q,shared:Y,suspended:!1})}if(H==="backend/setSharedState"){var le=K.key,ie=K.nextState,fe;return u({},N,{shared:u({},N.shared,(fe={},fe[le]=ie,fe))})}if(H==="byond/ctrldown"&&r.W4.emit("byond/ctrldown"),H==="byond/ctrlup"&&r.W4.emit("byond/ctrlup"),H==="backend/suspendStart")return u({},N,{suspending:!0});if(H==="backend/suspendSuccess"){var de=K.timestamp;return u({},N,{data:{},shared:{},config:u({},N.config,{title:"",status:1}),suspending:!1,suspended:de})}return N},I=function(N){var $,H;return function(K){return function(U){var q=P(N.getState()).suspended,Y=U.type,Z=U.payload;if(Y==="update"){N.dispatch(m(Z));return}if(Y==="suspend"){N.dispatch(g());return}if(Y==="ping"){Byond.sendMessage("ping/reply");return}if(Y==="byond/mousedown"&&r.W4.emit("byond/mousedown"),Y==="byond/mouseup"&&r.W4.emit("byond/mouseup"),Y==="byond/ctrldown"&&r.W4.emit("byond/ctrldown"),Y==="byond/ctrlup"&&r.W4.emit("byond/ctrlup"),Y==="backend/suspendStart"&&!H){c.log("suspending ("+Byond.windowId+")");var z=function(){return Byond.sendMessage("suspend")};z(),H=setInterval(z,2e3)}if(Y==="backend/suspendSuccess"&&((0,C.yR)(),clearInterval(H),H=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),setImmediate(function(){return(0,i.E)()})),Y==="backend/update"){var Q,oe,le=(oe=Z.config)==null||(Q=oe.window)==null?void 0:Q.fancy;$===void 0?$=le:$!==le&&(c.log("changing fancy mode to",le),$=le,Byond.winset(Byond.windowId,{titlebar:!le,"can-resize":!le}))}return Y==="backend/update"&&q&&(c.log("backend/update",Z),(0,C.OS)(),(0,t.m)(),setImmediate(function(){e.M.mark("resume/start");var ie=P(N.getState()).suspended;ie||(Byond.winset(Byond.windowId,{"is-visible":!0}),e.M.mark("resume/finish"))})),K(U)}}},M=function(N,$){$===void 0&&($={});var H=typeof $=="object"&&$!==null&&!Array.isArray($);if(!H){c.error("Payload for act() must be an object, got this:",$);return}Byond.sendMessage("act/"+N,$)},P=function(N){return N.backend||{}},D=function(){var N,$=l==null||(N=l.getState())==null?void 0:N.backend;return u({},$,{act:M})},k=function(N,$){var H,K=l==null||(H=l.getState())==null?void 0:H.backend,U,q=(U=K==null?void 0:K.shared)!=null?U:{},Y=N in q?q[N]:$;return[Y,function(Z){l.dispatch(v({key:N,nextState:typeof Z=="function"?Z(Y):Z}))}]},L=function(N,$){var H,K=l==null||(H=l.getState())==null?void 0:H.backend,U,q=(U=K==null?void 0:K.shared)!=null?U:{},Y=N in q?q[N]:$;return[Y,function(Z){Byond.sendMessage({type:"setSharedState",key:N,value:JSON.stringify(typeof Z=="function"?Z(Y):Z)||""})}]},F=function(){return l.dispatch},w=function(N){return N(l==null?void 0:l.getState())}},33084:function(S,y,n){"use strict";n.d(y,{Gg:function(){return I},kv:function(){return M},sh:function(){return u},yc:function(){return E}});var e=n(28324),a=n(69344),t=n(36824);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function r(P,D){(D==null||D>P.length)&&(D=P.length);for(var k=0,L=new Array(D);k=0)&&(k[F]=P[F]);return k}function C(P,D){if(P){if(typeof P=="string")return r(P,D);var k=Object.prototype.toString.call(P).slice(8,-1);if(k==="Object"&&P.constructor&&(k=P.constructor.name),k==="Map"||k==="Set")return Array.from(k);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return r(P,D)}}function x(P,D){var k=typeof Symbol!="undefined"&&P[Symbol.iterator]||P["@@iterator"];if(k)return(k=k.call(P)).next.bind(k);if(Array.isArray(P)||(k=C(P))||D&&P&&typeof P.length=="number"){k&&(P=k);var L=0;return function(){return L>=P.length?{done:!0}:{done:!1,value:P[L++]}}}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=function(P){if(typeof P=="string")return P.endsWith("px")?parseFloat(P)/12+"rem":P;if(typeof P=="number")return P+"rem"},d=function(P){if(typeof P=="string")return u(P);if(typeof P=="number")return u(P*.5)},h=function(P){return!c(P)},c=function(P){return typeof P=="string"&&t.wZ.includes(P)},l=function(P){return function(D,k){(typeof k=="number"||typeof k=="string")&&(D[P]=k)}},f=function(P,D){return function(k,L){(typeof L=="number"||typeof L=="string")&&(k[P]=D(L))}},m=function(P,D){return function(k,L){L&&(k[P]=D)}},v=function(P,D,k){return function(L,F){if(typeof F=="number"||typeof F=="string")for(var w=0;w=0)&&(h[l]=u[l]);return h}var j=function(u){var d=u.className,h=u.collapsing,c=u.children,l=i(u,["className","collapsing","children"]);return(0,e.jsx)("table",r({className:(0,a.iE)(["Table",h&&"Table--collapsing",d,(0,t.Gg)(l)])},(0,t.yc)(l),{children:(0,e.jsx)("tbody",{children:c})}))},C=function(u){var d=u.className,h=u.header,c=i(u,["className","header"]);return(0,e.jsx)("tr",r({className:(0,a.iE)(["Table__row",h&&"Table__row--header",d,(0,t.Gg)(u)])},(0,t.yc)(c)))},x=function(u){var d=u.className,h=u.collapsing,c=u.header,l=i(u,["className","collapsing","header"]);return(0,e.jsx)("td",r({className:(0,a.iE)(["Table__cell",h&&"Table__cell--collapsing",c&&"Table__cell--header",d,(0,t.Gg)(u)])},(0,t.yc)(l)))};j.Row=C,j.Cell=x},33404:function(S,y,n){"use strict";n.d(y,{Gg:function(){return d},bH:function(){return h},kb:function(){return v},uE:function(){return I},kv:function(){return g.kv},q:function(){return Sn},cb:function(){return di},kR:function(){return Fa},Uv:function(){return Ka},wP:function(){return Ga},Oe:function(){return hi},c1:function(){return za},_c:function(){return Bi},cS:function(){return Yo},Cu:function(){return _r},ye:function(){return ya},GW:function(){return L},EF:function(){return zt},S6:function(){return wl},Cw:function(){return nl},Ce:function(){return xi},wJ:function(){return Ss},mo:function(){return Ts},yc:function(){return oo},WC:function(){return al},Q3:function(){return ja},cH:function(){return he},CW:function(){return sn},iG:function(){return or},uQ:function(){return Bs},fT:function(){return zn},oJ:function(){return dn.oJ},kZ:function(){return Ma},IF:function(){return qi},o5:function(){return fn}});var e=n(33496),a=n(10608),t=n(69344);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function r(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&i(T,R)}function i(T,R){return i=Object.setPrototypeOf||function(G,B){return G.__proto__=B,G},i(T,R)}var j=function(T){return typeof T=="number"&&Number.isFinite(T)&&!Number.isNaN(T)},C=1e3/60,x=.8333,u=.001,d=function(T){"use strict";r(R,T);function R(G){var B;B=T.call(this,G)||this,B.ref=(0,t.createRef)(),B.currentValue=0;var X=G.initial,ce=G.value;return X!==void 0&&j(X)?B.currentValue=X:j(ce)&&(B.currentValue=ce),B}var V=R.prototype;return V.componentDidMount=function(){this.currentValue!==this.props.value&&this.startTicking()},V.componentWillUnmount=function(){this.stopTicking()},V.shouldComponentUpdate=function(B){return B.value!==this.props.value&&this.startTicking(),!1},V.startTicking=function(){var B=this;this.interval===void 0&&(this.interval=setInterval(function(){return B.tick()},C))},V.stopTicking=function(){this.interval!==void 0&&(clearInterval(this.interval),this.interval=void 0)},V.tick=function(){var B=this.currentValue,X=this.props.value;j(X)?this.currentValue=B*x+X*(1-x):this.stopTicking(),Math.abs(X-this.currentValue)=0)&&(V[B]=T[B]);return V}var I=function(T){var R=T.className,V=E(T,["className"]);return(0,e.jsx)(g.kv,_({className:(0,p.iE)(["BlockQuote",R])},V))},M=n(42480);/** * @file * @copyright 2020 Aleksej Komarov * @author Original Aleksej Komarov * @author Changes ThePotato97 * @license MIT */function P(){return P=Object.assign||function(T){for(var R=1;R=0)&&(V[B]=T[B]);return V}var k=/-o$/,L=function(T){var R=T.style,V=D(T,["style"]),G=V.name,B=V.size,X=V.spin,ce=V.className,ue=V.rotation,xe=D(V,["name","size","spin","className","rotation"]);B&&(R||(R={}),R.fontSize=B*100+"%"),ue&&(R||(R={}),R.transform="rotate("+ue+"deg)"),xe.style=R;var je=(0,g.yc)(xe),Ce="";if(G.startsWith("tg-"))Ce=G;else{var we=k.test(G),Le=G.replace(k,""),De=!Le.startsWith("fa-");Ce=we?"far ":"fas ",De&&(Ce+="fa-"),Ce+=Le,X&&(Ce+=" fa-spin")}return(0,e.jsx)("i",P({className:(0,p.iE)(["Icon",Ce,ce,(0,g.Gg)(xe)])},je))},F=function(T){var R=T.className,V=T.children,G=D(T,["className","children"]);return(0,e.jsx)("span",P({className:(0,p.iE)(["IconStack",R,(0,g.Gg)(G)])},(0,g.yc)(G),{children:V}))};L.Stack=F;function w(T){if(T==null)return window;if(T.toString()!=="[object Window]"){var R=T.ownerDocument;return R&&R.defaultView||window}return T}function N(T,R){return R!=null&&typeof Symbol!="undefined"&&R[Symbol.hasInstance]?!!R[Symbol.hasInstance](T):T instanceof R}function $(T){var R=w(T).Element;return N(T,R)||N(T,Element)}function H(T){var R=w(T).HTMLElement;return N(T,R)||N(T,HTMLElement)}function K(T){if(typeof ShadowRoot=="undefined")return!1;var R=w(T).ShadowRoot;return N(T,R)||N(T,ShadowRoot)}var U=Math.max,q=Math.min,Y=Math.round;function Z(){var T=navigator.userAgentData;return T!=null&&T.brands&&Array.isArray(T.brands)?T.brands.map(function(R){return R.brand+"/"+R.version}).join(" "):navigator.userAgent}function z(){return!/^((?!chrome|android).)*safari/i.test(Z())}function Q(T,R,V){R===void 0&&(R=!1),V===void 0&&(V=!1);var G=T.getBoundingClientRect(),B=1,X=1;R&&H(T)&&(B=T.offsetWidth>0&&Y(G.width)/T.offsetWidth||1,X=T.offsetHeight>0&&Y(G.height)/T.offsetHeight||1);var ce=$(T)?w(T):window,ue=ce.visualViewport,xe=!z()&&V,je=(G.left+(xe&&ue?ue.offsetLeft:0))/B,Ce=(G.top+(xe&&ue?ue.offsetTop:0))/X,we=G.width/B,Le=G.height/X;return{width:we,height:Le,top:Ce,right:je+we,bottom:Ce+Le,left:je,x:je,y:Ce}}function oe(T){var R=w(T),V=R.pageXOffset,G=R.pageYOffset;return{scrollLeft:V,scrollTop:G}}function le(T){return{scrollLeft:T.scrollLeft,scrollTop:T.scrollTop}}function ie(T){return T===w(T)||!H(T)?oe(T):le(T)}function fe(T){return T?(T.nodeName||"").toLowerCase():null}function de(T){return(($(T)?T.ownerDocument:T.document)||window.document).documentElement}function ge(T){return Q(de(T)).left+oe(T).scrollLeft}function ye(T){return w(T).getComputedStyle(T)}function ve(T){var R=ye(T),V=R.overflow,G=R.overflowX,B=R.overflowY;return/auto|scroll|overlay|hidden/.test(V+B+G)}function Ie(T){var R=T.getBoundingClientRect(),V=Y(R.width)/T.offsetWidth||1,G=Y(R.height)/T.offsetHeight||1;return V!==1||G!==1}function Te(T,R,V){V===void 0&&(V=!1);var G=H(R),B=H(R)&&Ie(R),X=de(R),ce=Q(T,B,V),ue={scrollLeft:0,scrollTop:0},xe={x:0,y:0};return(G||!G&&!V)&&((fe(R)!=="body"||ve(X))&&(ue=ie(R)),H(R)?(xe=Q(R,!0),xe.x+=R.clientLeft,xe.y+=R.clientTop):X&&(xe.x=ge(X))),{x:ce.left+ue.scrollLeft-xe.x,y:ce.top+ue.scrollTop-xe.y,width:ce.width,height:ce.height}}function Ve(T){var R=Q(T),V=T.offsetWidth,G=T.offsetHeight;return Math.abs(R.width-V)<=1&&(V=R.width),Math.abs(R.height-G)<=1&&(G=R.height),{x:T.offsetLeft,y:T.offsetTop,width:V,height:G}}function Ue(T){return fe(T)==="html"?T:T.assignedSlot||T.parentNode||(K(T)?T.host:null)||de(T)}function Ge(T){return["html","body","#document"].indexOf(fe(T))>=0?T.ownerDocument.body:H(T)&&ve(T)?T:Ge(Ue(T))}function ze(T,R){var V;R===void 0&&(R=[]);var G=Ge(T),B=G===((V=T.ownerDocument)==null?void 0:V.body),X=w(G),ce=B?[X].concat(X.visualViewport||[],ve(G)?G:[]):G,ue=R.concat(ce);return B?ue:ue.concat(ze(Ue(ce)))}function ut(T){return["table","td","th"].indexOf(fe(T))>=0}function gt(T){return!H(T)||ye(T).position==="fixed"?null:T.offsetParent}function vt(T){var R=/firefox/i.test(Z()),V=/Trident/i.test(Z());if(V&&H(T)){var G=ye(T);if(G.position==="fixed")return null}var B=Ue(T);for(K(B)&&(B=B.host);H(B)&&["html","body"].indexOf(fe(B))<0;){var X=ye(B);if(X.transform!=="none"||X.perspective!=="none"||X.contain==="paint"||["transform","perspective"].indexOf(X.willChange)!==-1||R&&X.willChange==="filter"||R&&X.filter&&X.filter!=="none")return B;B=B.parentNode}return null}function ft(T){for(var R=w(T),V=gt(T);V&&ut(V)&&ye(V).position==="static";)V=gt(V);return V&&(fe(V)==="html"||fe(V)==="body"&&ye(V).position==="static")?R:V||vt(T)||R}var tt="top",Je="bottom",ke="right",Re="left",We="auto",Xe=[tt,Je,ke,Re],Qe="start",st="end",ot="clippingParents",Jt="viewport",Ft="popper",Ut="reference",Ct=Xe.reduce(function(T,R){return T.concat([R+"-"+Qe,R+"-"+st])},[]),it=[].concat(Xe,[We]).reduce(function(T,R){return T.concat([R,R+"-"+Qe,R+"-"+st])},[]),nt="beforeRead",pt="read",St="afterRead",Kt="beforeMain",Yt="main",cn="afterMain",rn="beforeWrite",yn="write",kn="afterWrite",At=[nt,pt,St,Kt,Yt,cn,rn,yn,kn];function Tn(T){var R=new Map,V=new Set,G=[];T.forEach(function(X){R.set(X.name,X)});function B(X){V.add(X.name);var ce=[].concat(X.requires||[],X.requiresIfExists||[]);ce.forEach(function(ue){if(!V.has(ue)){var xe=R.get(ue);xe&&B(xe)}}),G.push(X)}return T.forEach(function(X){V.has(X.name)||B(X)}),G}function Qn(T){var R=Tn(T);return At.reduce(function(V,G){return V.concat(R.filter(function(B){return B.phase===G}))},[])}function Gr(T){var R;return function(){return R||(R=new Promise(function(V){Promise.resolve().then(function(){R=void 0,V(T())})})),R}}function Mr(T){var R=T.reduce(function(V,G){var B=V[G.name];return V[G.name]=B?Object.assign({},B,G,{options:Object.assign({},B.options,G.options),data:Object.assign({},B.data,G.data)}):G,V},{});return Object.keys(R).map(function(V){return R[V]})}var Sr={placement:"bottom",modifiers:[],strategy:"absolute"};function Dr(){for(var T=arguments.length,R=new Array(T),V=0;V=0?"x":"y"}function Xn(T){var R=T.reference,V=T.element,G=T.placement,B=G?En(G):null,X=G?In(G):null,ce=R.x+R.width/2-V.width/2,ue=R.y+R.height/2-V.height/2,xe;switch(B){case tt:xe={x:ce,y:R.y-V.height};break;case Je:xe={x:ce,y:R.y+R.height};break;case ke:xe={x:R.x+R.width,y:ue};break;case Re:xe={x:R.x-V.width,y:ue};break;default:xe={x:R.x,y:R.y}}var je=B?wn(B):null;if(je!=null){var Ce=je==="y"?"height":"width";switch(X){case Qe:xe[je]=xe[je]-(R[Ce]/2-V[Ce]/2);break;case st:xe[je]=xe[je]+(R[Ce]/2-V[Ce]/2);break;default:}}return xe}function zr(T){var R=T.state,V=T.name;R.modifiersData[V]=Xn({reference:R.rects.reference,element:R.rects.popper,strategy:"absolute",placement:R.placement})}var uo={name:"popperOffsets",enabled:!0,phase:"read",fn:zr,data:{}},Uo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ri(T,R){var V=T.x,G=T.y,B=R.devicePixelRatio||1;return{x:Y(V*B)/B||0,y:Y(G*B)/B||0}}function qn(T){var R,V=T.popper,G=T.popperRect,B=T.placement,X=T.variation,ce=T.offsets,ue=T.position,xe=T.gpuAcceleration,je=T.adaptive,Ce=T.roundOffsets,we=T.isFixed,Le=ce.x,De=Le===void 0?0:Le,He=ce.y,Ye=He===void 0?0:He,rt=typeof Ce=="function"?Ce({x:De,y:Ye}):{x:De,y:Ye};De=rt.x,Ye=rt.y;var at=ce.hasOwnProperty("x"),ct=ce.hasOwnProperty("y"),It=Re,lt=tt,Mt=window;if(je){var Rt=ft(V),Dt="clientHeight",jt="clientWidth";if(Rt===w(V)&&(Rt=de(V),ye(Rt).position!=="static"&&ue==="absolute"&&(Dt="scrollHeight",jt="scrollWidth")),Rt=Rt,B===tt||(B===Re||B===ke)&&X===st){lt=Je;var Lt=we&&Rt===Mt&&Mt.visualViewport?Mt.visualViewport.height:Rt[Dt];Ye-=Lt-G.height,Ye*=xe?1:-1}if(B===Re||(B===tt||B===Je)&&X===st){It=ke;var $t=we&&Rt===Mt&&Mt.visualViewport?Mt.visualViewport.width:Rt[jt];De-=$t-G.width,De*=xe?1:-1}}var wt=Object.assign({position:ue},je&&Uo),bt=Ce===!0?ri({x:De,y:Ye},w(V)):{x:De,y:Ye};if(De=bt.x,Ye=bt.y,xe){var Zt;return Object.assign({},wt,(Zt={},Zt[lt]=ct?"0":"",Zt[It]=at?"0":"",Zt.transform=(Mt.devicePixelRatio||1)<=1?"translate("+De+"px, "+Ye+"px)":"translate3d("+De+"px, "+Ye+"px, 0)",Zt))}return Object.assign({},wt,(R={},R[lt]=ct?Ye+"px":"",R[It]=at?De+"px":"",R.transform="",R))}function fo(T){var R=T.state,V=T.options,G=V.gpuAcceleration,B=G===void 0?!0:G,X=V.adaptive,ce=X===void 0?!0:X,ue=V.roundOffsets,xe=ue===void 0?!0:ue,je={placement:En(R.placement),variation:In(R.placement),popper:R.elements.popper,popperRect:R.rects.popper,gpuAcceleration:B,isFixed:R.options.strategy==="fixed"};R.modifiersData.popperOffsets!=null&&(R.styles.popper=Object.assign({},R.styles.popper,qn(Object.assign({},je,{offsets:R.modifiersData.popperOffsets,position:R.options.strategy,adaptive:ce,roundOffsets:xe})))),R.modifiersData.arrow!=null&&(R.styles.arrow=Object.assign({},R.styles.arrow,qn(Object.assign({},je,{offsets:R.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:xe})))),R.attributes.popper=Object.assign({},R.attributes.popper,{"data-popper-placement":R.placement})}var Hr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fo,data:{}};function Wo(T){var R=T.state;Object.keys(R.elements).forEach(function(V){var G=R.styles[V]||{},B=R.attributes[V]||{},X=R.elements[V];!H(X)||!fe(X)||(Object.assign(X.style,G),Object.keys(B).forEach(function(ce){var ue=B[ce];ue===!1?X.removeAttribute(ce):X.setAttribute(ce,ue===!0?"":ue)}))})}function Bn(T){var R=T.state,V={popper:{position:R.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(R.elements.popper.style,V.popper),R.styles=V,R.elements.arrow&&Object.assign(R.elements.arrow.style,V.arrow),function(){Object.keys(R.elements).forEach(function(G){var B=R.elements[G],X=R.attributes[G]||{},ce=Object.keys(R.styles.hasOwnProperty(G)?R.styles[G]:V[G]),ue=ce.reduce(function(xe,je){return xe[je]="",xe},{});!H(B)||!fe(B)||(Object.assign(B.style,ue),Object.keys(X).forEach(function(xe){B.removeAttribute(xe)}))})}}var cr={name:"applyStyles",enabled:!0,phase:"write",fn:Wo,effect:Bn,requires:["computeStyles"]};function mn(T,R,V){var G=En(T),B=[Re,tt].indexOf(G)>=0?-1:1,X=typeof V=="function"?V(Object.assign({},R,{placement:T})):V,ce=X[0],ue=X[1];return ce=ce||0,ue=(ue||0)*B,[Re,ke].indexOf(G)>=0?{x:ue,y:ce}:{x:ce,y:ue}}function ur(T){var R=T.state,V=T.options,G=T.name,B=V.offset,X=B===void 0?[0,0]:B,ce=it.reduce(function(Ce,we){return Ce[we]=mn(we,R.rects,X),Ce},{}),ue=ce[R.placement],xe=ue.x,je=ue.y;R.modifiersData.popperOffsets!=null&&(R.modifiersData.popperOffsets.x+=xe,R.modifiersData.popperOffsets.y+=je),R.modifiersData[G]=ce}var oi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ur},ii={left:"right",right:"left",bottom:"top",top:"bottom"};function Xt(T){return T.replace(/left|right|bottom|top/g,function(R){return ii[R]})}var ai={start:"end",end:"start"};function kr(T){return T.replace(/start|end/g,function(R){return ai[R]})}function Fo(T,R){var V=w(T),G=de(T),B=V.visualViewport,X=G.clientWidth,ce=G.clientHeight,ue=0,xe=0;if(B){X=B.width,ce=B.height;var je=z();(je||!je&&R==="fixed")&&(ue=B.offsetLeft,xe=B.offsetTop)}return{width:X,height:ce,x:ue+ge(T),y:xe}}function Jr(T){var R,V=de(T),G=oe(T),B=(R=T.ownerDocument)==null?void 0:R.body,X=U(V.scrollWidth,V.clientWidth,B?B.scrollWidth:0,B?B.clientWidth:0),ce=U(V.scrollHeight,V.clientHeight,B?B.scrollHeight:0,B?B.clientHeight:0),ue=-G.scrollLeft+ge(T),xe=-G.scrollTop;return ye(B||V).direction==="rtl"&&(ue+=U(V.clientWidth,B?B.clientWidth:0)-X),{width:X,height:ce,x:ue,y:xe}}function xr(T,R){var V=R.getRootNode&&R.getRootNode();if(T.contains(R))return!0;if(V&&K(V)){var G=R;do{if(G&&T.isSameNode(G))return!0;G=G.parentNode||G.host}while(G)}return!1}function ho(T){return Object.assign({},T,{left:T.x,top:T.y,right:T.x+T.width,bottom:T.y+T.height})}function Yr(T,R){var V=Q(T,!1,R==="fixed");return V.top=V.top+T.clientTop,V.left=V.left+T.clientLeft,V.bottom=V.top+T.clientHeight,V.right=V.left+T.clientWidth,V.width=T.clientWidth,V.height=T.clientHeight,V.x=V.left,V.y=V.top,V}function dt(T,R,V){return R===Jt?ho(Fo(T,V)):$(R)?Yr(R,V):ho(Jr(de(T)))}function $r(T){var R=ze(Ue(T)),V=["absolute","fixed"].indexOf(ye(T).position)>=0,G=V&&H(T)?ft(T):T;return $(G)?R.filter(function(B){return $(B)&&xr(B,G)&&fe(B)!=="body"}):[]}function On(T,R,V,G){var B=R==="clippingParents"?$r(T):[].concat(R),X=[].concat(B,[V]),ce=X[0],ue=X.reduce(function(xe,je){var Ce=dt(T,je,G);return xe.top=U(Ce.top,xe.top),xe.right=q(Ce.right,xe.right),xe.bottom=q(Ce.bottom,xe.bottom),xe.left=U(Ce.left,xe.left),xe},dt(T,ce,G));return ue.width=ue.right-ue.left,ue.height=ue.bottom-ue.top,ue.x=ue.left,ue.y=ue.top,ue}function Fn(){return{top:0,right:0,bottom:0,left:0}}function Zr(T){return Object.assign({},Fn(),T)}function dr(T,R){return R.reduce(function(V,G){return V[G]=T,V},{})}function Ln(T,R){R===void 0&&(R={});var V=R,G=V.placement,B=G===void 0?T.placement:G,X=V.strategy,ce=X===void 0?T.strategy:X,ue=V.boundary,xe=ue===void 0?ot:ue,je=V.rootBoundary,Ce=je===void 0?Jt:je,we=V.elementContext,Le=we===void 0?Ft:we,De=V.altBoundary,He=De===void 0?!1:De,Ye=V.padding,rt=Ye===void 0?0:Ye,at=Zr(typeof rt!="number"?rt:dr(rt,Xe)),ct=Le===Ft?Ut:Ft,It=T.rects.popper,lt=T.elements[He?ct:Le],Mt=On($(lt)?lt:lt.contextElement||de(T.elements.popper),xe,Ce,ce),Rt=Q(T.elements.reference),Dt=Xn({reference:Rt,element:It,strategy:"absolute",placement:B}),jt=ho(Object.assign({},It,Dt)),Lt=Le===Ft?jt:Rt,$t={top:Mt.top-Lt.top+at.top,bottom:Lt.bottom-Mt.bottom+at.bottom,left:Mt.left-Lt.left+at.left,right:Lt.right-Mt.right+at.right},wt=T.modifiersData.offset;if(Le===Ft&&wt){var bt=wt[B];Object.keys($t).forEach(function(Zt){var gn=[ke,Je].indexOf(Zt)>=0?1:-1,pn=[tt,Je].indexOf(Zt)>=0?"y":"x";$t[Zt]+=bt[pn]*gn})}return $t}function tn(T,R){R===void 0&&(R={});var V=R,G=V.placement,B=V.boundary,X=V.rootBoundary,ce=V.padding,ue=V.flipVariations,xe=V.allowedAutoPlacements,je=xe===void 0?it:xe,Ce=In(G),we=Ce?ue?Ct:Ct.filter(function(He){return In(He)===Ce}):Xe,Le=we.filter(function(He){return je.indexOf(He)>=0});Le.length===0&&(Le=we);var De=Le.reduce(function(He,Ye){return He[Ye]=Ln(T,{placement:Ye,boundary:B,rootBoundary:X,padding:ce})[En(Ye)],He},{});return Object.keys(De).sort(function(He,Ye){return De[He]-De[Ye]})}function er(T){if(En(T)===We)return[];var R=Xt(T);return[kr(T),R,kr(R)]}function jr(T){var R=T.state,V=T.options,G=T.name;if(!R.modifiersData[G]._skip){for(var B=V.mainAxis,X=B===void 0?!0:B,ce=V.altAxis,ue=ce===void 0?!0:ce,xe=V.fallbackPlacements,je=V.padding,Ce=V.boundary,we=V.rootBoundary,Le=V.altBoundary,De=V.flipVariations,He=De===void 0?!0:De,Ye=V.allowedAutoPlacements,rt=R.options.placement,at=En(rt),ct=at===rt,It=xe||(ct||!He?[Xt(rt)]:er(rt)),lt=[rt].concat(It).reduce(function(Ao,ko){return Ao.concat(En(ko)===We?tn(R,{placement:ko,boundary:Ce,rootBoundary:we,padding:je,flipVariations:He,allowedAutoPlacements:Ye}):ko)},[]),Mt=R.rects.reference,Rt=R.rects.popper,Dt=new Map,jt=!0,Lt=lt[0],$t=0;$t=0,pn=gn?"width":"height",nn=Ln(R,{placement:wt,boundary:Ce,rootBoundary:we,altBoundary:Le,padding:je}),hn=gn?Zt?ke:Re:Zt?Je:tt;Mt[pn]>Rt[pn]&&(hn=Xt(hn));var Do=Xt(hn),ao=[];if(X&&ao.push(nn[bt]<=0),ue&&ao.push(nn[hn]<=0,nn[Do]<=0),ao.every(function(Ao){return Ao})){Lt=wt,jt=!1;break}Dt.set(wt,ao)}if(jt)for(var Ci=He?3:1,us=function(ko){var oa=lt.find(function(Sa){var To=Dt.get(Sa);if(To)return To.slice(0,ko).every(function(bi){return bi})});if(oa)return Lt=oa,"break"},na=Ci;na>0;na--){var ra=us(na);if(ra==="break")break}R.placement!==Lt&&(R.modifiersData[G]._skip=!0,R.placement=Lt,R.reset=!0)}}var si={name:"flip",enabled:!0,phase:"main",fn:jr,requiresIfExists:["offset"],data:{_skip:!1}};function li(T){return T==="x"?"y":"x"}function tr(T,R,V){return U(T,q(R,V))}function mo(T,R,V){var G=tr(T,R,V);return G>V?V:G}function Qr(T){var R=T.state,V=T.options,G=T.name,B=V.mainAxis,X=B===void 0?!0:B,ce=V.altAxis,ue=ce===void 0?!1:ce,xe=V.boundary,je=V.rootBoundary,Ce=V.altBoundary,we=V.padding,Le=V.tether,De=Le===void 0?!0:Le,He=V.tetherOffset,Ye=He===void 0?0:He,rt=Ln(R,{boundary:xe,rootBoundary:je,padding:we,altBoundary:Ce}),at=En(R.placement),ct=In(R.placement),It=!ct,lt=wn(at),Mt=li(lt),Rt=R.modifiersData.popperOffsets,Dt=R.rects.reference,jt=R.rects.popper,Lt=typeof Ye=="function"?Ye(Object.assign({},R.rects,{placement:R.placement})):Ye,$t=typeof Lt=="number"?{mainAxis:Lt,altAxis:Lt}:Object.assign({mainAxis:0,altAxis:0},Lt),wt=R.modifiersData.offset?R.modifiersData.offset[R.placement]:null,bt={x:0,y:0};if(Rt){if(X){var Zt,gn=lt==="y"?tt:Re,pn=lt==="y"?Je:ke,nn=lt==="y"?"height":"width",hn=Rt[lt],Do=hn+rt[gn],ao=hn-rt[pn],Ci=De?-jt[nn]/2:0,us=ct===Qe?Dt[nn]:jt[nn],na=ct===Qe?-jt[nn]:-Dt[nn],ra=R.elements.arrow,Ao=De&&ra?Ve(ra):{width:0,height:0},ko=R.modifiersData["arrow#persistent"]?R.modifiersData["arrow#persistent"].padding:Fn(),oa=ko[gn],Sa=ko[pn],To=tr(0,Dt[nn],Ao[nn]),bi=It?Dt[nn]/2-Ci-To-oa-$t.mainAxis:us-To-oa-$t.mainAxis,ds=It?-Dt[nn]/2+Ci+To+Sa+$t.mainAxis:na+To+Sa+$t.mainAxis,fs=R.elements.arrow&&ft(R.elements.arrow),cl=fs?lt==="y"?fs.clientTop||0:fs.clientLeft||0:0,_i=(Zt=wt==null?void 0:wt[lt])!=null?Zt:0,ul=hn+bi-_i-cl,Da=hn+ds-_i,Fr=tr(De?q(Do,ul):Do,hn,De?U(ao,Da):ao);Rt[lt]=Fr,bt[lt]=Fr-hn}if(ue){var ia,Aa=lt==="x"?tt:Re,Ei=lt==="x"?Je:ke,Ro=Rt[Mt],wo=Mt==="y"?"height":"width",Fs=Ro+rt[Aa],hs=Ro-rt[Ei],ln=[tt,Re].indexOf(at)!==-1,ka=(ia=wt==null?void 0:wt[Mt])!=null?ia:0,ms=ln?Fs:Ro-Dt[wo]-jt[wo]-ka+$t.altAxis,vs=ln?Ro+Dt[wo]+jt[wo]-ka-$t.altAxis:hs,Ta=De&&ln?mo(ms,Ro,vs):tr(De?ms:Fs,Ro,De?vs:hs);Rt[Mt]=Ta,bt[Mt]=Ta-Ro}R.modifiersData[G]=bt}}var fr={name:"preventOverflow",enabled:!0,phase:"main",fn:Qr,requiresIfExists:["offset"]},ci=function(R,V){return R=typeof R=="function"?R(Object.assign({},V.rects,{placement:V.placement})):R,Zr(typeof R!="number"?R:dr(R,Xe))};function vo(T){var R,V=T.state,G=T.name,B=T.options,X=V.elements.arrow,ce=V.modifiersData.popperOffsets,ue=En(V.placement),xe=wn(ue),je=[Re,ke].indexOf(ue)>=0,Ce=je?"height":"width";if(!(!X||!ce)){var we=ci(B.padding,V),Le=Ve(X),De=xe==="y"?tt:Re,He=xe==="y"?Je:ke,Ye=V.rects.reference[Ce]+V.rects.reference[xe]-ce[xe]-V.rects.popper[Ce],rt=ce[xe]-V.rects.reference[xe],at=ft(X),ct=at?xe==="y"?at.clientHeight||0:at.clientWidth||0:0,It=Ye/2-rt/2,lt=we[De],Mt=ct-Le[Ce]-we[He],Rt=ct/2-Le[Ce]/2+It,Dt=tr(lt,Rt,Mt),jt=xe;V.modifiersData[G]=(R={},R[jt]=Dt,R.centerOffset=Dt-Rt,R)}}function Gt(T){var R=T.state,V=T.options,G=V.element,B=G===void 0?"[data-popper-arrow]":G;B!=null&&(typeof B=="string"&&(B=R.elements.popper.querySelector(B),!B)||xr(R.elements.popper,B)&&(R.elements.arrow=B))}var go={name:"arrow",enabled:!0,phase:"main",fn:vo,effect:Gt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Kn(T,R,V){return V===void 0&&(V={x:0,y:0}),{top:T.top-R.height-V.y,right:T.right-R.width+V.x,bottom:T.bottom-R.height+V.y,left:T.left-R.width-V.x}}function Tr(T){return[tt,ke,Je,Re].some(function(R){return T[R]>=0})}function Xr(T){var R=T.state,V=T.name,G=R.rects.reference,B=R.rects.popper,X=R.modifiersData.preventOverflow,ce=Ln(R,{elementContext:"reference"}),ue=Ln(R,{altBoundary:!0}),xe=Kn(ce,G),je=Kn(ue,B,X),Ce=Tr(xe),we=Tr(je);R.modifiersData[V]={referenceClippingOffsets:xe,popperEscapeOffsets:je,isReferenceHidden:Ce,hasPopperEscaped:we},R.attributes.popper=Object.assign({},R.attributes.popper,{"data-popper-reference-hidden":Ce,"data-popper-escaped":we})}var re={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Xr},Ke=[Rn,uo,Hr,cr,oi,si,fr,go,re],Ko=Ar({defaultModifiers:Ke}),qr=n(35468);function Mn(){return Mn=Object.assign||function(T){for(var R=1;R=0)&&(V[B]=T[B]);return V}function xo(T,R){return xo=Object.setPrototypeOf||function(G,B){return G.__proto__=B,G},xo(T,R)}function Si(T,R){var V,G,B,X,ce={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]};return X={next:ue(0),throw:ue(1),return:ue(2)},typeof Symbol=="function"&&(X[Symbol.iterator]=function(){return this}),X;function ue(je){return function(Ce){return xe([je,Ce])}}function xe(je){if(V)throw new TypeError("Generator is already executing.");for(;ce;)try{if(V=1,G&&(B=je[0]&2?G.return:je[0]?G.throw||((B=G.return)&&B.call(G),0):G.next)&&!(B=B.call(G,je[1])).done)return B;switch(G=0,B&&(je=[je[0]&2,B.value]),je[0]){case 0:case 1:B=je;break;case 4:return ce.label++,{value:je[1],done:!1};case 5:ce.label++,G=je[1],je=[0];continue;case 7:je=ce.ops.pop(),ce.trys.pop();continue;default:if(B=ce.trys,!(B=B.length>0&&B[B.length-1])&&(je[0]===6||je[0]===2)){ce=0;continue}if(je[0]===3&&(!B||je[1]>B[0]&&je[1]=R?(T.apply(null,ce),V=xe):G=setTimeout(function(){return B.apply(void 0,[].concat(ce))},R-(xe-(V!=null?V:0)))}},ha=function(T){return new Promise(function(R){return setTimeout(R,T)})},to=n(37756);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function no(){return no=Object.assign||function(T){for(var R=1;R=0)&&(V[B]=T[B]);return V}function ro(T,R){return ro=Object.setPrototypeOf||function(G,B){return G.__proto__=B,G},ro(T,R)}var Cr=(0,to.m)("ByondUi"),vr=[],un=function(T){var R=vr.length;vr.push(null);var V=T||"byondui_"+R;return Cr.log("allocated '"+V+"'"),{render:function(G){Cr.log("rendering '"+V+"'"),vr[R]=V,Byond.winset(V,G)},unmount:function(){Cr.log("unmounting '"+V+"'"),vr[R]=null,Byond.winset(V,{parent:""})}}};window.addEventListener("beforeunload",function(){for(var T=0;T=0)&&(V[B]=T[B]);return V}function Fe(T,R){return Fe=Object.setPrototypeOf||function(G,B){return G.__proto__=B,G},Fe(T,R)}var zo=void 0,fi=function(T,R,V,G){if(T.length===0)return[];var B=(0,vn.yC)(Math.min).apply(zo,[].concat(T)),X=(0,vn.yC)(Math.max).apply(zo,[].concat(T));V!==void 0&&(B[0]=V[0],X[0]=V[1]),G!==void 0&&(B[1]=G[0],X[1]=G[1]);var ce=(0,vn.kH)(function(ue){return(0,vn.yC)(function(xe,je,Ce,we){return(xe-je)/(Ce-je)*we})(ue,B,X,R)})(T);return ce},Co=function(T){for(var R="",V=0;V0){var ct=at[0],It=at[at.length-1];at.push([rt[0]+He,It[1]]),at.push([rt[0]+He,-He]),at.push([-He,-He]),at.push([-He,ct[1]])}var lt=Co(at),Mt=br({},Ye,{className:"",ref:this.ref});return(0,e.jsx)(g.kv,br({position:"relative"},Ye,{children:(0,e.jsx)(g.kv,br({},Mt,{children:(0,e.jsx)("svg",{viewBox:"0 0 "+rt[0]+" "+rt[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, -"+rt[1]+")",fill:Ce,stroke:Le,strokeWidth:He,points:lt})})}))}))},R}(t.Component),Fa={Line:Ho};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function Ai(){return Ai=Object.assign||function(T){for(var R=1;R=0)&&(V[B]=T[B]);return V}function bo(T,R){return bo=Object.setPrototypeOf||function(G,B){return G.__proto__=B,G},bo(T,R)}var Ka=function(T){"use strict";bs(R,T);function R(G){var B;B=T.call(this,G)||this;var X=G.open;return B.state={open:X||!1},B}var V=R.prototype;return V.render=function(){var B=this,X=this.props,ce=this.state.open,ue=X.children,xe=X.color,je=xe===void 0?"default":xe,Ce=X.title,we=X.buttons,Le=ma(X,["children","color","title","buttons"]);return(0,e.jsxs)(g.kv,{mb:1,children:[(0,e.jsxs)("div",{className:"Table",children:[(0,e.jsx)("div",{className:"Table__cell",children:(0,e.jsx)(Sn,Ai({fluid:!0,color:je,icon:ce?"chevron-down":"chevron-right",onClick:function(){return B.setState({open:!ce})}},Le,{children:Ce}))}),we&&(0,e.jsx)("div",{className:"Table__cell Table__cell--collapsing",children:we})]}),ce&&(0,e.jsx)(g.kv,{mt:1,children:ue})]})},R}(t.Component);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function ki(){return ki=Object.assign||function(T){for(var R=1;R=0)&&(V[B]=T[B]);return V}var Ga=function(T){var R=T.content,V=T.children,G=T.className,B=T.color,X=T.backgroundColor,ce=va(T,["content","children","className","color","backgroundColor"]);return ce.color=R?null:"transparent",ce.backgroundColor=B||X,(0,e.jsx)("div",ki({className:(0,p.iE)(["ColorBox",G,(0,g.Gg)(ce)])},(0,g.yc)(ce),{children:R||"."}))};/** * @file * @copyright 2022 raffclar * @license MIT */var Ti=function(T){var R=T.title,V=T.onClose,G=T.children,B=T.width,X=T.height;return(0,e.jsx)("div",{className:"Dialog",children:(0,e.jsxs)(g.kv,{className:"Dialog__content",width:B||"370px",height:X,children:[(0,e.jsxs)("div",{className:"Dialog__header",children:[(0,e.jsx)("div",{className:"Dialog__title",children:R}),(0,e.jsx)(g.kv,{mr:2,children:(0,e.jsx)(Sn,{mr:"-3px",width:"26px",lineHeight:"22px",textAlign:"center",color:"transparent",icon:"window-close-o",tooltip:"Close",tooltipPosition:"bottom-start",onClick:V})})]}),G]})})},Br=function(T){var R=T.onClick,V=T.children;return(0,e.jsx)(Sn,{onClick:R,className:"Dialog__button",verticalAlignContent:"middle",children:V})};Ti.Button=Br;var Xs=function(T){var R=T.documentName,V=T.onSave,G=T.onDiscard,B=T.onClose;return _jsxs(Ti,{title:"Notepad",onClose:B,children:[_jsxs("div",{className:"Dialog__body",children:["Do you want to save changes to ",R,"?"]}),_jsxs("div",{className:"Dialog__footer",children:[_jsx(Br,{onClick:V,children:"Save"}),_jsx(Br,{onClick:G,children:"Don't Save"}),_jsx(Br,{onClick:B,children:"Cancel"})]})]})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function ga(){return ga=Object.assign||function(T){for(var R=1;R=0)&&(V[B]=T[B]);return V}var hi=function(T){var R=T.className,V=T.children,G=Va(T,["className","children"]);return(0,e.jsx)(g.kv,ga({className:(0,p.iE)([].concat(["Dimmer"],R))},G,{children:(0,e.jsx)("div",{className:"Dimmer__inner",children:V})}))};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */var za=function(T){var R=T.vertical,V=T.hidden;return(0,e.jsx)("div",{className:(0,p.iE)(["Divider",V&&"Divider--hidden",R?"Divider--vertical":"Divider--horizontal"])})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function Ri(){return Ri=Object.assign||function(T){for(var R=1;R0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){B.setState({suppressingFlicker:!1})},X))},B.handleDragStart=function(X){var ce=B.props,ue=ce.value,xe=ce.dragMatrix,je=B.state.editing;je||(document.body.style["pointer-events"]="none",B.ref=X.target,B.setState({dragging:!1,origin:pa(X,xe),value:ue,internalValue:ue}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var Ce=B.state,we=Ce.dragging,Le=Ce.value,De=B.props.onDrag;we&&De&&De(X,Le)},B.props.updateRate||Ha),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(X){var ce=B.props,ue=ce.minValue,xe=ce.maxValue,je=ce.step,Ce=ce.stepPixelSize,we=ce.dragMatrix;B.setState(function(Le){var De=Ri({},Le),He=pa(X,we)-De.origin;if(Le.dragging){var Ye=Number.isFinite(ue)?ue%je:0;De.internalValue=(0,a.qk)(De.internalValue+He*je/Ce,ue-je,xe+je),De.value=(0,a.qk)(De.internalValue-De.internalValue%je+Ye,ue,xe),De.origin=pa(X,we)}else Math.abs(He)>4&&(De.dragging=!0);return De})},B.handleDragEnd=function(X){var ce=B.props,ue=ce.onChange,xe=ce.onDrag,je=B.state,Ce=je.dragging,we=je.value,Le=je.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!Ce,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),Ce)B.suppressFlicker(),ue&&ue(X,we),xe&&xe(X,we);else if(B.inputRef){var De=B.inputRef.current;De.value=Le;try{De.focus(),De.select()}catch(He){}}},B}var V=R.prototype;return V.render=function(){var B=this,X=this.state,ce=X.dragging,ue=X.editing,xe=X.value,je=X.suppressingFlicker,Ce=this.props,we=Ce.animated,Le=Ce.value,De=Ce.unit,He=Ce.minValue,Ye=Ce.maxValue,rt=Ce.unclamped,at=Ce.format,ct=Ce.onChange,It=Ce.onDrag,lt=Ce.children,Mt=Ce.height,Rt=Ce.lineHeight,Dt=Ce.fontSize,jt=Le;(ce||je)&&(jt=xe);var Lt=(0,e.jsxs)(e.Fragment,{children:[we&&!ce&&!je?(0,e.jsx)(d,{value:jt,format:at}):at?at(jt):jt,De?" "+De:""]}),$t=(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:ue?void 0:"none",height:Mt,lineHeight:Rt,fontsize:Dt},onBlur:function(wt){if(ue){var bt;if(rt?bt=parseFloat(wt.target.value):bt=(0,a.qk)(parseFloat(wt.target.value),He,Ye),Number.isNaN(bt)){B.setState({editing:!1});return}B.setState({editing:!1,value:bt}),B.suppressFlicker(),ct&&ct(wt,bt),It&&It(wt,bt)}},onKeyDown:function(wt){if(wt.keyCode===13){var bt;if(rt?bt=parseFloat(wt.target.value):bt=(0,a.qk)(parseFloat(wt.target.value),He,Ye),Number.isNaN(bt)){B.setState({editing:!1});return}B.setState({editing:!1,value:bt}),B.suppressFlicker(),ct&&ct(wt,bt),It&&It(wt,bt);return}if(wt.keyCode===27){B.setState({editing:!1});return}}});return lt({dragging:ce,editing:ue,value:Le,displayValue:jt,displayElement:Lt,inputElement:$t,handleDragStart:this.handleDragStart})},R}(t.Component);Bi.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]};var Ja=n(39840),Lr=n.n(Ja),qs=function(R){return Array.isArray(R)?R[0]:R},xa=function(R){if(typeof R=="function"){for(var V=arguments.length,G=new Array(V>1?V-1:0),B=1;B=0)&&(V[B]=T[B]);return V}var vi=function(T){return(0,p.iE)(["Flex",T.inline&&"Flex--inline",Byond.IS_LTE_IE10&&"Flex--iefix",Byond.IS_LTE_IE10&&T.direction==="column"&&"Flex--iefix--column",(0,g.Gg)(T)])},Xa=function(T){var R=T.className,V=T.direction,G=T.wrap,B=T.align,X=T.justify,ce=T.inline,ue=Fi(T,["className","direction","wrap","align","justify","inline"]);return(0,g.yc)(rr({style:rr({},ue.style,{flexDirection:V,flexWrap:G===!0?"wrap":G,alignItems:B,justifyContent:X})},ue))},_r=function(T){var R=T.className,V=Fi(T,["className"]);return(0,e.jsx)("div",rr({className:(0,p.iE)([R,vi(V)])},Xa(V)))},$o=function(T){return(0,p.iE)(["Flex__item",Byond.IS_LTE_IE10&&"Flex__item--iefix",(0,g.Gg)(T)])},gi=function(T){var R=T.className,V=T.style,G=T.grow,B=T.order,X=T.shrink,ce=T.basis,ue=T.align,xe=Fi(T,["className","style","grow","order","shrink","basis","align"]),je,Ce=(je=ce!=null?ce:T.width)!=null?je:G!==void 0?0:void 0;return(0,g.yc)(rr({style:rr({},V,{flexGrow:G!==void 0&&Number(G),flexShrink:X!==void 0&&Number(X),flexBasis:(0,g.sh)(Ce),order:B,alignSelf:ue})},xe))},Ki=function(T){var R=T.className,V=Fi(T,["className"]);return(0,e.jsx)("div",rr({className:(0,p.iE)([R,$o(T)])},gi(V)))};_r.Item=Ki;var dn=n(98836);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function _o(){return _o=Object.assign||function(T){for(var R=1;R=0)&&(V[B]=T[B]);return V}var ya=function(T){var R=T.children,V=qa(T,["children"]);return(0,e.jsx)(dn.oJ,_o({},V,{children:(0,e.jsx)(dn.oJ.Row,{children:R})}))},Is=function(T){var R=T.size,V=R===void 0?1:R,G=T.style,B=qa(T,["size","style"]);return(0,e.jsx)(dn.oJ.Cell,_o({style:_o({width:V+"%"},G)},B))};ya.Column=Is;/** * @file * @copyright 2021 Aleksej Komarov * @license MIT */function Zo(){return Zo=Object.assign||function(T){for(var R=1;R=0)&&(V[B]=T[B]);return V}var zn=function(T){var R=T.className,V=T.vertical,G=T.fill,B=pi(T,["className","vertical","fill"]);return(0,e.jsx)("div",Zo({className:(0,p.iE)(["Stack",G&&"Stack--fill",V?"Stack--vertical":"Stack--horizontal",R,vi(T)])},Xa(Zo({direction:V?"column":"row"},B))))},Er=function(T){var R=T.className,V=T.innerRef,G=pi(T,["className","innerRef"]);return(0,e.jsx)("div",Zo({className:(0,p.iE)(["Stack__item",R,$o(G)]),ref:V},gi(G)))};zn.Item=Er;var es=function(T){var R=T.className,V=T.hidden,G=pi(T,["className","hidden"]);return(0,e.jsx)("div",Zo({className:(0,p.iE)(["Stack__item","Stack__divider",V&&"Stack__divider--hidden",R,$o(G)])},gi(G)))};zn.Divider=es;var O=n(36824);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function ee(){return ee=Object.assign||function(T){for(var R=1;R=0)&&(V[B]=T[B]);return V}var he=function(T){var R=T.className,V=T.value,G=T.minValue,B=G===void 0?0:G,X=T.maxValue,ce=X===void 0?1:X,ue=T.color,xe=T.ranges,je=xe===void 0?{}:xe,Ce=T.children,we=se(T,["className","value","minValue","maxValue","color","ranges","children"]),Le=(0,a.aU)(V,B,ce),De=Ce!==void 0,He=ue||(0,a.e8)(V,je)||"default",Ye=(0,g.yc)(we),rt=["ProgressBar",R,(0,g.Gg)(we)],at={width:(0,a.yi)(Le)*100+"%"};return O.wZ.includes(He)||He==="default"?rt.push("ProgressBar--color--"+He):(Ye.style=ee({},Ye.style,{borderColor:He}),at.backgroundColor=He),(0,e.jsxs)("div",ee({className:(0,p.iE)(rt)},Ye,{children:[(0,e.jsx)("div",{className:"ProgressBar__fill ProgressBar__fill--animated",style:at}),(0,e.jsx)("div",{className:"ProgressBar__content",children:De?Ce:(0,a.yI)(Le*100)+"%"})]}))};function ae(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}function be(){return be=Object.assign||function(T){for(var R=1;R=0)&&(V[B]=T[B]);return V}function Se(T,R){return Se=Object.setPrototypeOf||function(G,B){return G.__proto__=B,G},Se(T,R)}var Ne=.5,ht=1.5,qe=.1,Et=null;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function Ot(){return Ot=Object.assign||function(T){for(var R=1;R=0)&&(V[B]=T[B]);return V}function Nt(T,R){return Nt=Object.setPrototypeOf||function(G,B){return G.__proto__=B,G},Nt(T,R)}var on=function(T){return typeof T!="number"&&typeof T!="string"?"":String(T)},zt=function(T){"use strict";Vt(R,T);function R(G){var B;return B=T.call(this,G)||this,B.inputRef=(0,t.createRef)(),B.state={editing:!1},B.handleInput=function(X){var ce=B.state.editing,ue=B.props.onInput;ce||B.setEditing(!0),ue&&ue(X,X.target.value)},B.handleFocus=function(X){var ce=B.state.editing;ce||B.setEditing(!0)},B.handleBlur=function(X){var ce=B.state.editing,ue=B.props.onChange;ce&&(B.setEditing(!1),ue&&ue(X,X.target.value))},B.handleKeyDown=function(X){var ce=B.props,ue=ce.onInput,xe=ce.onChange,je=ce.onEnter;if(X.keyCode===M.kt){B.setEditing(!1),xe&&xe(X,X.target.value),ue&&ue(X,X.target.value),je&&je(X,X.target.value),B.props.selfClear?X.target.value="":X.target.blur();return}if(X.keyCode===M.ER){if(B.props.onEscape){B.props.onEscape(X);return}B.setEditing(!1),X.target.value=on(B.props.value),X.target.blur();return}},B}var V=R.prototype;return V.componentDidMount=function(){var B=this,X=this.props.value,ce=this.inputRef.current;ce&&(ce.value=on(X)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){ce.focus(),B.props.autoSelect&&ce.select()},1)},V.componentDidUpdate=function(B,X){var ce=this.state.editing,ue=B.value,xe=this.props.value,je=this.inputRef.current;je&&!ce&&ue!==xe&&(je.value=on(xe))},V.setEditing=function(B){this.setState({editing:B})},V.render=function(){var B=this.props,X=B.selfClear,ce=B.onInput,ue=B.onChange,xe=B.onEnter,je=B.value,Ce=B.maxLength,we=B.placeholder,Le=Ht(B,["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder"]),De=Le.className,He=Le.fluid,Ye=Le.monospace,rt=Ht(Le,["className","fluid","monospace"]);return(0,e.jsxs)(g.kv,Ot({className:(0,p.iE)(["Input",He&&"Input--fluid",Ye&&"Input--monospace",De])},rt,{children:[(0,e.jsx)("div",{className:"Input__baseline",children:"."}),(0,e.jsx)("input",{ref:this.inputRef,className:"Input__input",placeholder:we,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:Ce})]}))},R}(t.Component),ts=n(35012);function ns(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&Gi(T,R)}function Gi(T,R){return Gi=Object.setPrototypeOf||function(G,B){return G.__proto__=B,G},Gi(T,R)}var Nr=null;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function Hn(){return Hn=Object.assign||function(T){for(var R=1;R=0)&&(V[B]=T[B]);return V}var wl=function(T){var R=T.animated,V=T.format,G=T.maxValue,B=T.minValue,X=T.unclamped,ce=T.onChange,ue=T.onDrag,xe=T.step,je=T.stepPixelSize,Ce=T.suppressFlicker,we=T.unit,Le=T.value,De=T.className,He=T.style,Ye=T.fillValue,rt=T.color,at=T.ranges,ct=at===void 0?{}:at,It=T.size,lt=It===void 0?1:It,Mt=T.bipolar,Rt=T.children,Dt=Os(T,["animated","format","maxValue","minValue","unclamped","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children"]);return(0,e.jsx)(Bi,{dragMatrix:[0,-1],animated:R,format:V,maxValue:G,minValue:B,unclamped:X,onChange:ce,onDrag:ue,step:xe,stepPixelSize:je,suppressFlicker:Ce,unit:we,value:Le,children:function(jt){var Lt=jt.dragging,$t=jt.editing,wt=jt.value,bt=jt.displayValue,Zt=jt.displayElement,gn=jt.inputElement,pn=jt.handleDragStart,nn=(0,a.aU)(Ye!=null?Ye:bt,B,G),hn=(0,a.aU)(bt,B,G),Do=rt||(0,a.e8)(Ye!=null?Ye:wt,ct)||"default",ao=Math.min((hn-.5)*270,225);return(0,e.jsxs)("div",Hn({className:(0,p.iE)(["Knob","Knob--color--"+Do,Mt&&"Knob--bipolar",De,(0,g.Gg)(Dt)])},(0,g.yc)(Hn({style:Hn({fontSize:lt+"em"},He)},Dt)),{onMouseDown:pn,children:[(0,e.jsx)("div",{className:"Knob__circle",children:(0,e.jsx)("div",{className:"Knob__cursorBox",style:{transform:"rotate("+ao+"deg)"},children:(0,e.jsx)("div",{className:"Knob__cursor"})})}),Lt&&(0,e.jsx)("div",{className:"Knob__popupValue",children:Zt}),(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(((Mt?2.75:2)-nn*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"})}),gn]}))}})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function rs(){return rs=Object.assign||function(T){for(var R=1;R=0)&&(V[B]=T[B]);return V}var nl=function(T){var R=T.children,V=T.wrap,G=Vi(T,["children","wrap"]);return(0,e.jsx)(_r,rs({mx:-.5,wrap:V,align:"stretch",justify:"space-between"},G,{children:R}))},rl=function(T){var R=T.label,V=T.children,G=T.mx,B=G===void 0?1:G,X=Vi(T,["label","children","mx"]);return(0,e.jsx)(_r.Item,{mx:B,children:(0,e.jsxs)(_r,rs({height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},X,{children:[(0,e.jsx)(_r.Item,{}),(0,e.jsx)(_r.Item,{children:V}),(0,e.jsx)(_r.Item,{color:"label",children:R})]}))})};nl.Item=rl;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */var xi=function(T){var R=T.children;return(0,e.jsx)("table",{className:"LabeledList",children:R})},an=function(T){var R=T.className,V=T.label,G=T.labelColor,B=G===void 0?"label":G,X=T.labelWrap,ce=T.color,ue=T.textAlign,xe=T.buttons,je=T.content,Ce=T.children,we=T.verticalAlign,Le=we===void 0?"baseline":we,De=T.tooltip,He;V&&(He=V,typeof V=="string"&&(He+=":")),De!==void 0&&(He=(0,e.jsx)(fn,{content:De,children:(0,e.jsx)(g.kv,{as:"span",style:{borderBottom:"2px dotted rgba(255, 255, 255, 0.8)"},children:He})}));var Ye=(0,e.jsx)(g.kv,{as:"td",color:B,className:(0,p.iE)(["LabeledList__cell",!X&&"LabeledList__label--nowrap"]),verticalAlign:Le,children:He});return(0,e.jsxs)("tr",{className:(0,p.iE)(["LabeledList__row",R]),children:[Ye,(0,e.jsxs)(g.kv,{as:"td",color:ce,textAlign:ue,className:(0,p.iE)(["LabeledList__cell","LabeledList__content"]),colSpan:xe?void 0:2,verticalAlign:Le,children:[je,Ce]}),xe&&(0,e.jsx)("td",{className:"LabeledList__cell LabeledList__buttons",children:xe})]})},Ps=function(T){var R=T.size?(0,g.sh)(Math.max(0,T.size-1)):0;return(0,e.jsx)("tr",{className:"LabeledList__row",children:(0,e.jsx)("td",{colSpan:3,style:{paddingTop:R,paddingBottom:R},children:(0,e.jsx)(za,{})})})};xi.Item=an,xi.Divider=Ps;/** * @file * @copyright 2022 Aleksej Komarov * @license MIT */function zi(){return zi=Object.assign||function(T){for(var R=1;R=0)&&(V[B]=T[B]);return V}function Ca(T,R){return Ca=Object.setPrototypeOf||function(G,B){return G.__proto__=B,G},Ca(T,R)}var ba=function(T){"use strict";Hi(R,T);function R(G){var B;return B=T.call(this,G)||this,B.handleClick=function(X){if(!B.props.menuRef.current){to.Q.log("Menu.handleClick(): No ref");return}B.props.menuRef.current.contains(X.target)?to.Q.log("Menu.handleClick(): Inside"):(to.Q.log("Menu.handleClick(): Outside"),B.props.onOutsideClick())},B}var V=R.prototype;return V.componentWillMount=function(){window.addEventListener("click",this.handleClick)},V.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},V.render=function(){var B=this.props,X=B.width,ce=B.children;return(0,e.jsx)("div",{className:"MenuBar__menu",style:{width:X},children:ce})},R}(t.Component),os=function(T){"use strict";Hi(R,T);function R(G){var B;return B=T.call(this,G)||this,B.menuRef=(0,t.createRef)(),B}var V=R.prototype;return V.render=function(){var B=this.props,X=B.open,ce=B.openWidth,ue=B.children,xe=B.disabled,je=B.display,Ce=B.onMouseOver,we=B.onClick,Le=B.onOutsideClick,De=Ms(B,["open","openWidth","children","disabled","display","onMouseOver","onClick","onOutsideClick"]),He=De.className,Ye=Ms(De,["className"]);return(0,e.jsxs)("div",{ref:this.menuRef,children:[(0,e.jsx)(g.kv,zi({className:(0,p.iE)(["MenuBar__MenuBarButton","MenuBar__font","MenuBar__hover",He])},Ye,{onClick:xe?function(){return null}:we,onMouseOver:Ce,children:(0,e.jsx)("span",{className:"MenuBar__MenuBarButton-text",children:je})})),X&&(0,e.jsx)(ba,{width:ce,menuRef:this.menuRef,onOutsideClick:Le,children:ue})]})},R}(t.Component),Eo=function(T){var R=T.entry,V=T.children,G=T.openWidth,B=T.display,X=T.setOpenMenuBar,ce=T.openMenuBar,ue=T.setOpenOnHover,xe=T.openOnHover,je=T.disabled,Ce=T.className;return(0,e.jsx)(os,{openWidth:G,display:B,disabled:je,open:ce===R,className:Ce,onClick:function(){var we=ce===R?null:R;X(we),ue(!xe)},onOutsideClick:function(){X(null),ue(!1)},onMouseOver:function(){xe&&X(R)},children:V})},ol=function(T){var R=T.value,V=T.displayText,G=T.onClick,B=T.checked;return(0,e.jsxs)(g.kv,{className:(0,p.iE)(["MenuBar__font","MenuBar__MenuItem","MenuBar__MenuItemToggle","MenuBar__hover"]),onClick:function(){return G(R)},children:[(0,e.jsx)("div",{className:"MenuBar__MenuItemToggle__check",children:B&&(0,e.jsx)(L,{size:1.3,name:"check"})}),V]})};Eo.MenuItemToggle=ol;var Bl=function(T){var R=T.value,V=T.displayText,G=T.onClick;return(0,e.jsx)(g.kv,{className:(0,p.iE)(["MenuBar__font","MenuBar__MenuItem","MenuBar__hover"]),onClick:function(){return G(R)},children:V})};Eo.MenuItem=Bl;var Ll=function(){return(0,e.jsx)("div",{className:"MenuBar__Separator"})};Eo.Separator=Ll;var il=function(T){var R=T.children;return(0,e.jsx)(g.kv,{className:"MenuBar",children:R})};il.Dropdown=Eo;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function Ji(){return Ji=Object.assign||function(T){for(var R=1;R=0)&&(V[B]=T[B]);return V}var Ss=function(T){var R=T.className,V=T.children,G=T.onEnter,B=is(T,["className","children","onEnter"]),X;return G&&(X=function(ce){var ue=ce.which||ce.keyCode;ue===13&&G(ce)}),(0,e.jsx)(hi,{onKeyDown:X,children:(0,e.jsx)("div",Ji({className:(0,p.iE)(["Modal",R,(0,g.Gg)(B)])},(0,g.yc)(B),{children:V}))})},as=n(45280);function _a(){return _a=Object.assign||function(T){for(var R=1;R500&&(Le=500);var De=je.offsetY-256*we;return De<-200&&(De=-200),De>200&&(De=200),je.offsetX=Le,je.offsetY=De,G.onZoom&&G.onZoom(je.zoom),je})},B}var V=R.prototype;return V.render=function(){var B=(0,as.yy)(this.context).config,X=this.state,ce=X.dragging,ue=X.offsetX,xe=X.offsetY,je=X.zoom,Ce=je===void 0?1:je,we=this.props.children,Le=B.map+"_nanomap_z"+B.mapZLevel+".png",De=ks*Ce+"px",He={width:De,height:De,"margin-top":xe+"px","margin-left":ue+"px",overflow:"hidden",position:"relative","background-image":"url("+Le+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:ce?"move":"auto"};return(0,e.jsxs)(g.kv,{className:"NanoMap__container",children:[(0,e.jsx)(g.kv,{style:He,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,e.jsx)(g.kv,{children:we})}),(0,e.jsx)(Io,{zoom:Ce,onZoom:this.handleZoom})]})},R}(t.Component),Rs=function(T,R){var V=T.x,G=T.y,B=T.zoom,X=B===void 0?1:B,ce=T.icon,ue=T.tooltip,xe=T.color,je=T.onClick,Ce=function(De){Ea(De),je&&je(De)},we=V*2*X-X-3,Le=G*2*X-X-3;return(0,e.jsx)("div",{children:(0,e.jsxs)(g.kv,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:Le+"px",left:we+"px",onMouseDown:Ce,children:[(0,e.jsx)(L,{name:ce,color:xe,fontSize:"6px"}),(0,e.jsx)(fn,{content:ue})]})})};Ts.Marker=Rs;var Io=function(T){var R=(0,as.yy)(),V=R.act,G=R.config,B=R.data;return(0,e.jsx)(g.kv,{className:"NanoMap__zoomer",children:(0,e.jsxs)(xi,{children:[(0,e.jsx)(xi.Item,{label:"Zoom",children:(0,e.jsx)(Bs,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(X){return X+"x"},value:T.zoom,onDrag:function(X,ce){return T.onZoom(X,ce)}})}),(0,e.jsx)(xi.Item,{label:"Z-Level",children:B.map_levels.sort(function(X,ce){return Number(X)-Number(ce)}).map(function(X){return(0,e.jsx)(Sn,{selected:~~X===~~G.mapZLevel,content:X,onClick:function(){V("setZLevel",{mapZLevel:X})}},X)})})]})})};Ts.Zoomer=Io;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function ss(){return ss=Object.assign||function(T){for(var R=1;R=0)&&(V[B]=T[B]);return V}var oo=function(T){var R=T.className,V=T.color,G=T.info,B=T.warning,X=T.success,ce=T.danger,ue=Yi(T,["className","color","info","warning","success","danger"]);return(0,e.jsx)(g.kv,ss({className:(0,p.iE)(["NoticeBox",V&&"NoticeBox--color--"+V,G&&"NoticeBox--type--info",X&&"NoticeBox--type--success",ce&&"NoticeBox--type--danger",R])},ue))};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function ji(){return ji=Object.assign||function(T){for(var R=1;R0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){return B.setState({suppressingFlicker:!1})},ce))},B.handleDragStart=function(ce){var ue=B.props.value,xe=B.state.editing;xe||(document.body.style["pointer-events"]="none",B.ref=ce.target,B.setState({dragging:!1,origin:ce.screenY,value:ue,internalValue:ue}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var je=B.state,Ce=je.dragging,we=je.value,Le=B.props.onDrag;Ce&&Le&&Le(ce,we)},B.props.updateRate||Nl),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(ce){var ue=B.props,xe=ue.minValue,je=ue.maxValue,Ce=ue.step,we=ue.stepPixelSize;B.setState(function(Le){var De=ji({},Le),He=De.origin-ce.screenY;if(Le.dragging){var Ye=Number.isFinite(xe)?xe%Ce:0;De.internalValue=(0,a.qk)(De.internalValue+He*Ce/we,xe-Ce,je+Ce),De.value=(0,a.qk)(De.internalValue-De.internalValue%Ce+Ye,xe,je),De.origin=ce.screenY}else Math.abs(He)>4&&(De.dragging=!0);return De})},B.handleDragEnd=function(ce){var ue=B.props,xe=ue.onChange,je=ue.onDrag,Ce=B.state,we=Ce.dragging,Le=Ce.value,De=Ce.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!we,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),we)B.suppressFlicker(),xe&&xe(ce,Le),je&&je(ce,Le);else if(B.inputRef){var He=B.inputRef.current;He.value=De;try{He.focus(),He.select()}catch(Ye){}}},B}var V=R.prototype;return V.render=function(){var B=this,X=this.state,ce=X.dragging,ue=X.editing,xe=X.value,je=X.suppressingFlicker,Ce=this.props,we=Ce.className,Le=Ce.fluid,De=Ce.animated,He=Ce.value,Ye=Ce.unit,rt=Ce.minValue,at=Ce.maxValue,ct=Ce.height,It=Ce.width,lt=Ce.lineHeight,Mt=Ce.fontSize,Rt=Ce.format,Dt=Ce.onChange,jt=Ce.onDrag,Lt=He;(ce||je)&&(Lt=xe);var $t=(0,e.jsxs)("div",{className:"NumberInput__content",children:[De&&!ce&&!je?(0,e.jsx)(d,{value:Lt,format:Rt}):Rt?Rt(Lt):Lt,Ye?" "+Ye:""]});return(0,e.jsxs)(g.kv,{className:(0,p.iE)(["NumberInput",Le&&"NumberInput--fluid",we]),minWidth:It,minHeight:ct,lineHeight:lt,fontSize:Mt,onMouseDown:this.handleDragStart,children:[(0,e.jsx)("div",{className:"NumberInput__barContainer",children:(0,e.jsx)("div",{className:"NumberInput__bar",style:{height:(0,a.qk)((Lt-rt)/(at-rt)*100,0,100)+"%"}})}),$t,(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:ue?void 0:"none",height:ct,lineHeight:lt,fontSize:Mt},onBlur:function(wt){if(ue){var bt=(0,a.qk)(parseFloat(wt.target.value),rt,at);if(Number.isNaN(bt)){B.setState({editing:!1});return}B.setState({editing:!1,value:bt}),B.suppressFlicker(),Dt&&Dt(wt,bt),jt&&jt(wt,bt)}},onKeyDown:function(wt){if(wt.keyCode===13){var bt=(0,a.qk)(parseFloat(wt.target.value),rt,at);if(Number.isNaN(bt)){B.setState({editing:!1});return}B.setState({editing:!1,value:bt}),B.suppressFlicker(),Dt&&Dt(wt,bt),jt&&jt(wt,bt);return}if(wt.keyCode===27){B.setState({editing:!1});return}}})]})},R}(t.Component);al.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50};function Po(){return Po=Object.assign||function(T){for(var R=1;R=0)&&(V[B]=T[B]);return V}function $i(T,R){return $i=Object.setPrototypeOf||function(G,B){return G.__proto__=B,G},$i(T,R)}var ws=0,Zi=1e4,Ur=function(T,R,V,G){var B=R||ws,X=V||V===0?V:Zi;if(!T||!T.length)return String(B);var ce=G?parseFloat(T.replace(/[^\-\d.]/g,"")):parseInt(T.replace(/[^\-\d]/g,""),10);return isNaN(ce)?String(B):String((0,a.qk)(ce,B,X))},sn=function(T){"use strict";Oa(R,T);function R(G){var B;return B=T.call(this,G)||this,B.inputRef=(0,t.createRef)(),B.state={editing:!1},B.handleBlur=function(X){var ce=B.state.editing;ce&&B.setEditing(!1)},B.handleChange=function(X){var ce=B.props,ue=ce.maxValue,xe=ce.minValue,je=ce.onChange,Ce=ce.allowFloats;X.target.value=Ur(X.target.value,xe,ue,Ce),je&&je(X,+X.target.value)},B.handleFocus=function(X){var ce=B.state.editing;ce||B.setEditing(!0)},B.handleInput=function(X){var ce=B.state.editing,ue=B.props.onInput;ce||B.setEditing(!0),ue&&ue(X,+X.target.value)},B.handleKeyDown=function(X){var ce=B.props,ue=ce.maxValue,xe=ce.minValue,je=ce.onChange,Ce=ce.onEnter,we=ce.allowFloats;if(X.keyCode===M.kt){var Le=Ur(X.target.value,xe,ue,we);B.setEditing(!1),je&&je(X,+Le),Ce&&Ce(X,+Le),X.target.blur();return}if(X.keyCode===M.ER){if(B.props.onEscape){B.props.onEscape(X);return}B.setEditing(!1),X.target.value=B.props.value,X.target.blur();return}},B}var V=R.prototype;return V.componentDidMount=function(){var B=this,X,ce=this.props,ue=ce.maxValue,xe=ce.minValue,je=ce.allowFloats,Ce=(X=this.props.value)==null?void 0:X.toString(),we=this.inputRef.current;we&&(we.value=Ur(Ce,xe,ue,je)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){we.focus(),B.props.autoSelect&&we.select()},1)},V.componentDidUpdate=function(B,X){var ce,ue,xe=this.props,je=xe.maxValue,Ce=xe.minValue,we=xe.allowFloats,Le=this.state.editing,De=(ce=B.value)==null?void 0:ce.toString(),He=(ue=this.props.value)==null?void 0:ue.toString(),Ye=this.inputRef.current;Ye&&!Le&&He!==De&&He!==Ye.value&&(Ye.value=Ur(He,Ce,je,we))},V.setEditing=function(B){this.setState({editing:B})},V.render=function(){var B=this.props,X=B.onChange,ce=B.onEnter,ue=B.onInput,xe=B.value,je=yi(B,["onChange","onEnter","onInput","value"]),Ce=je.className,we=je.fluid,Le=je.monospace,De=yi(je,["className","fluid","monospace"]);return(0,e.jsxs)(g.kv,Po({className:(0,p.iE)(["Input",we&&"Input--fluid",Le&&"Input--monospace",Ce])},De,{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"})]}))},R}(t.Component);/** * @file * @copyright 2020 bobbahbrown (https://github.com/bobbahbrown) * @license MIT */function qt(){return qt=Object.assign||function(T){for(var R=1;R=0)&&(V[B]=T[B]);return V}var Jn=function(T){var R=T.value,V=T.minValue,G=V===void 0?1:V,B=T.maxValue,X=B===void 0?1:B,ce=T.ranges,ue=T.alertAfter,xe=T.alertBefore,je=T.format,Ce=T.size,we=Ce===void 0?1:Ce,Le=T.className,De=T.style,He=Qo(T,["value","minValue","maxValue","ranges","alertAfter","alertBefore","format","size","className","style"]),Ye=scale(R,G,X),rt=clamp01(Ye),at=ce?{}:{primary:[0,1]};ce&&Object.keys(ce).forEach(function(lt){var Mt=ce[lt];at[lt]=[scale(Mt[0],G,X),scale(Mt[1],G,X)]});var ct=function(){if(ue&&xe&&ueR)return!0}else if(ueR)return!0;return!1},It=ct()&&keyOfMatchingRange(rt,at);return _jsxs(Box,{inline:!0,children:[_jsx("div",qt({className:classes(["RoundGauge",Le,computeBoxClassName(He)])},computeBoxProps(qt({style:qt({fontSize:we+"em"},De)},He)),{children:_jsxs("svg",{viewBox:"0 0 100 50",children:[(ue||xe)&&_jsx("g",{className:classes(["RoundGauge__alert",It?"active RoundGauge__alert--"+It:""]),children:_jsx("path",{d:"M48.211,14.578C48.55,13.9 49.242,13.472 50,13.472C50.758,13.472 51.45,13.9 51.789,14.578C54.793,20.587 60.795,32.589 63.553,38.106C63.863,38.726 63.83,39.462 63.465,40.051C63.101,40.641 62.457,41 61.764,41C55.996,41 44.004,41 38.236,41C37.543,41 36.899,40.641 36.535,40.051C36.17,39.462 36.137,38.726 36.447,38.106C39.205,32.589 45.207,20.587 48.211,14.578ZM50,34.417C51.426,34.417 52.583,35.574 52.583,37C52.583,38.426 51.426,39.583 50,39.583C48.574,39.583 47.417,38.426 47.417,37C47.417,35.574 48.574,34.417 50,34.417ZM50,32.75C50,32.75 53,31.805 53,22.25C53,20.594 51.656,19.25 50,19.25C48.344,19.25 47,20.594 47,22.25C47,31.805 50,32.75 50,32.75Z"})}),_jsx("g",{children:_jsx("circle",{className:"RoundGauge__ringTrack",cx:"50",cy:"50",r:"45"})}),_jsx("g",{children:Object.keys(at).map(function(lt,Mt){var Rt=at[lt];return _jsx("circle",{className:"RoundGauge__ringFill RoundGauge--color--"+lt,style:{strokeDashoffset:Math.max((2-(Rt[1]-Rt[0]))*Math.PI*50,0)},transform:"rotate("+(180+180*Rt[0])+" 50 50)",cx:"50",cy:"50",r:"45"},Mt)})}),_jsxs("g",{className:"RoundGauge__needle",transform:"rotate("+(rt*180-90)+" 50 50)",children:[_jsx("polygon",{className:"RoundGauge__needleLine",points:"46,50 50,0 54,50"}),_jsx("circle",{className:"RoundGauge__needleMiddle",cx:"50",cy:"50",r:"8"})]})]})})),_jsx(AnimatedNumber,{value:R,format:je,size:we})]})},Yn=n(20284);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function Mo(){return Mo=Object.assign||function(T){for(var R=1;R=0)&&(V[B]=T[B]);return V}var or=function(T){var R=T.className,V=T.title,G=T.buttons,B=T.fill,X=T.fitted,ce=T.scrollable,ue=T.scrollableHorizontal,xe=T.flexGrow,je=T.noTopPadding,Ce=T.stretchContents,we=T.children,Le=T.onScroll,De=Qi(T,["className","title","buttons","fill","fitted","scrollable","scrollableHorizontal","flexGrow","noTopPadding","stretchContents","children","onScroll"]),He=T.scrollableRef||(0,t.createRef)(),Ye=(0,p.cS)(V)||(0,p.cS)(G);return(0,t.useEffect)(function(){return(ce||ue)&&((0,Yn.lx)(He.current),Le&&He.current&&(He.current.onscroll=Le)),function(){(ce||ue)&&(0,Yn.Wi)(He.current)}},[]),(0,e.jsxs)("div",Mo({className:(0,p.iE)(["Section",B&&"Section--fill",X&&"Section--fitted",ce&&"Section--scrollable",ue&&"Section--scrollableHorizontal",xe&&"Section--flex",R,(0,g.Gg)(De)])},(0,g.yc)(De),{children:[Ye&&(0,e.jsxs)("div",{className:"Section__title",children:[(0,e.jsx)("span",{className:"Section__titleText",children:V}),(0,e.jsx)("div",{className:"Section__buttons",children:G})]}),(0,e.jsx)("div",{className:"Section__rest",children:(0,e.jsx)("div",{onScroll:Le,className:(0,p.iE)(["Section__content",!!Ce&&"Section__content--stretchContents",!!je&&"Section__content--noTopPadding"]),children:we})})]}))};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function Xi(){return Xi=Object.assign||function(T){for(var R=1;R=0)&&(V[B]=T[B]);return V}var Bs=function(T){var R=T.animated,V=T.format,G=T.maxValue,B=T.minValue,X=T.onChange,ce=T.onDrag,ue=T.step,xe=T.stepPixelSize,je=T.suppressFlicker,Ce=T.unit,we=T.value,Le=T.className,De=T.fillValue,He=T.color,Ye=T.ranges,rt=Ye===void 0?{}:Ye,at=T.children,ct=sl(T,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),It=at!==void 0;return(0,e.jsx)(Bi,{dragMatrix:[1,0],animated:R,format:V,maxValue:G,minValue:B,onChange:X,onDrag:ce,step:ue,stepPixelSize:xe,suppressFlicker:je,unit:Ce,value:we,children:function(lt){var Mt=lt.dragging,Rt=lt.editing,Dt=lt.value,jt=lt.displayValue,Lt=lt.displayElement,$t=lt.inputElement,wt=lt.handleDragStart,bt=De!=null,Zt=(0,a.aU)(Dt,B,G),gn=(0,a.aU)(De!=null?De:jt,B,G),pn=(0,a.aU)(jt,B,G),nn=He||(0,a.e8)(De!=null?De:Dt,rt)||"default";return(0,e.jsxs)("div",Xi({className:(0,p.iE)(["Slider","ProgressBar","ProgressBar--color--"+nn,Le,(0,g.Gg)(ct)])},(0,g.yc)(ct),{onMouseDown:wt,children:[(0,e.jsx)("div",{className:(0,p.iE)(["ProgressBar__fill",bt&&"ProgressBar__fill--animated"]),style:{width:(0,a.yi)(gn)*100+"%",opacity:.4}}),(0,e.jsx)("div",{className:"ProgressBar__fill",style:{width:(0,a.yi)(Math.min(gn,pn))*100+"%"}}),(0,e.jsxs)("div",{className:"Slider__cursorOffset",style:{width:(0,a.yi)(pn)*100+"%"},children:[(0,e.jsx)("div",{className:"Slider__cursor"}),(0,e.jsx)("div",{className:"Slider__pointer"}),Mt&&(0,e.jsx)("div",{className:"Slider__popupValue",children:Lt})]}),(0,e.jsx)("div",{className:"ProgressBar__content",children:It?at:Lt}),$t]}))}})},Ls=function(T){return _jsxs(Box,{style:T.style,children:[_jsxs(Box,{className:"Section__title",style:T.titleStyle,children:[_jsx(Box,{className:"Section__titleText",style:T.textStyle,children:T.title}),_jsx("div",{className:"Section__buttons",children:T.titleSubtext})]}),_jsx(Box,{className:"Section__rest",children:_jsx(Box,{className:"Section__content",children:T.children})})]})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function Pa(){return Pa=Object.assign||function(T){for(var R=1;R=0)&&(V[B]=T[B]);return V}var Ma=function(T){var R=T.className,V=T.vertical,G=T.fill,B=T.fluid,X=T.children,ce=io(T,["className","vertical","fill","fluid","children"]);return(0,e.jsx)("div",Pa({className:(0,p.iE)(["Tabs",V?"Tabs--vertical":"Tabs--horizontal",G&&"Tabs--fill",B&&"Tabs--fluid",R,(0,g.Gg)(ce)])},(0,g.yc)(ce),{children:X}))},Ns=function(T){var R=T.className,V=T.selected,G=T.color,B=T.icon,X=T.leftSlot,ce=T.rightSlot,ue=T.children,xe=io(T,["className","selected","color","icon","leftSlot","rightSlot","children"]);return(0,e.jsxs)("div",Pa({className:(0,p.iE)(["Tab","Tabs__Tab","Tab--color--"+G,V&&"Tab--selected",R,(0,g.Gg)(xe)])},(0,g.yc)(xe),{children:[(0,p.cS)(X)&&(0,e.jsx)("div",{className:"Tab__left",children:X})||!!B&&(0,e.jsx)("div",{className:"Tab__left",children:(0,e.jsx)(L,{name:B})}),(0,e.jsx)("div",{className:"Tab__text",children:ue}),(0,p.cS)(ce)&&(0,e.jsx)("div",{className:"Tab__right",children:ce})]}))};Ma.Tab=Ns;/** * @file * @copyright 2020 Aleksej Komarov * @author Warlockd * @license MIT */function ls(){return ls=Object.assign||function(T){for(var R=1;R=0)&&(V[B]=T[B]);return V}function Xo(T,R){return Xo=Object.setPrototypeOf||function(G,B){return G.__proto__=B,G},Xo(T,R)}var qi=function(T){"use strict";Ul(R,T);function R(G){var B;B=T.call(this,G)||this,B.textareaRef=G.innerRef||(0,t.createRef)(),B.state={editing:!1,scrolledAmount:0};var X=G.dontUseTabForIndent,ce=X===void 0?!1:X;return B.handleOnInput=function(ue){var xe=B.state.editing,je=B.props.onInput;xe||B.setEditing(!0),je&&je(ue,ue.target.value)},B.handleOnChange=function(ue){var xe=B.state.editing,je=B.props.onChange;xe&&B.setEditing(!1),je&&je(ue,ue.target.value)},B.handleKeyPress=function(ue){var xe=B.state.editing,je=B.props.onKeyPress;xe||B.setEditing(!0),je&&je(ue,ue.target.value)},B.handleKeyDown=function(ue){var xe=B.state.editing,je=B.props,Ce=je.onChange,we=je.onInput,Le=je.onEnter,De=je.onKey;if(ue.keyCode===M.kt){B.setEditing(!1),Ce&&Ce(ue,ue.target.value),we&&we(ue,ue.target.value),Le&&Le(ue,ue.target.value),B.props.selfClear&&(ue.target.value="",ue.target.blur());return}if(ue.keyCode===M.ER){B.props.onEscape&&B.props.onEscape(ue),B.setEditing(!1),B.props.selfClear?ue.target.value="":(ue.target.value=on(B.props.value),ue.target.blur());return}if(xe||B.setEditing(!0),De&&De(ue,ue.target.value),!ce){var He=ue.keyCode||ue.which;if(He===M.qe){ue.preventDefault();var Ye=ue.target,rt=Ye.value,at=Ye.selectionStart,ct=Ye.selectionEnd;ue.target.value=rt.substring(0,at)+" "+rt.substring(ct),ue.target.selectionEnd=at+1,we&&we(ue,ue.target.value)}}},B.handleFocus=function(ue){var xe=B.state.editing;xe||B.setEditing(!0)},B.handleBlur=function(ue){var xe=B.state.editing,je=B.props.onChange;xe&&(B.setEditing(!1),je&&je(ue,ue.target.value))},B.handleScroll=function(ue){var xe=B.props.displayedValue,je=B.textareaRef.current;xe&&je&&B.setState({scrolledAmount:je.scrollTop})},B}var V=R.prototype;return V.componentDidMount=function(){var B=this,X=this.props.value,ce=this.textareaRef.current;ce&&(ce.value=on(X)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){ce.focus(),B.props.autoSelect&&ce.select()},1)},V.componentDidUpdate=function(B,X){var ce=B.value,ue=this.props.value,xe=this.textareaRef.current;xe&&typeof ue=="string"&&ce!==ue&&(xe.value=on(ue))},V.setEditing=function(B){this.setState({editing:B})},V.getValue=function(){return this.textareaRef.current&&this.textareaRef.current.value},V.render=function(){var B=this.props,X=B.onChange,ce=B.onKeyDown,ue=B.onKeyPress,xe=B.onInput,je=B.onFocus,Ce=B.onBlur,we=B.onEnter,Le=B.value,De=B.maxLength,He=B.placeholder,Ye=B.scrollbar,rt=B.noborder,at=B.displayedValue,ct=So(B,["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder","scrollbar","noborder","displayedValue"]),It=ct.className,lt=ct.fluid,Mt=ct.nowrap,Rt=So(ct,["className","fluid","nowrap"]),Dt=this.state.scrolledAmount;return(0,e.jsxs)(g.kv,ls({className:(0,p.iE)(["TextArea",lt&&"TextArea--fluid",rt&&"TextArea--noborder",It])},Rt,{children:[!!at&&(0,e.jsx)(g.kv,{position:"absolute",width:"100%",height:"100%",overflow:"hidden",children:(0,e.jsx)("div",{className:(0,p.iE)(["TextArea__textarea","TextArea__textarea_custom"]),style:{transform:"translateY(-"+Dt+"px)"},children:at})}),(0,e.jsx)("textarea",{ref:this.textareaRef,className:(0,p.iE)(["TextArea__textarea",Ye&&"TextArea__textarea--scrollable",Mt&&"TextArea__nowrap"]),placeholder:He,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onScroll:this.handleScroll,maxLength:De,style:{color:at?"rgba(0, 0, 0, 0)":"inherit"}})]}))},R}(t.Component),Us=n(96060);function Ws(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&ir(T,R)}function ir(T,R){return ir=Object.setPrototypeOf||function(G,B){return G.__proto__=B,G},ir(T,R)}var Wr=function(T){return typeof T=="number"&&Number.isFinite(T)&&!Number.isNaN(T)},ea=null;function qo(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}function ei(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&cs(T,R)}function ta(T,R){return R!=null&&typeof Symbol!="undefined"&&R[Symbol.hasInstance]?!!R[Symbol.hasInstance](T):T instanceof R}function cs(T,R){return cs=Object.setPrototypeOf||function(G,B){return G.__proto__=B,G},cs(T,R)}var ll=null;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */},36824:function(S,y,n){"use strict";n.d(y,{AL:function(){return h},Ax:function(){return t},GE:function(){return d},Ut:function(){return x},ic:function(){return e},m8:function(){return a},ol:function(){return r},wZ:function(){return C},yY:function(){return j}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */var e=273.15,a=2,t=1,r=0,i=null,j={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"}},C=["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"}],u=[{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"}],d=function(l,f){if(!l)return f||"None";for(var m=l.toLowerCase(),v=l.replace(/(^\w{1})|(\s+\w{1})/g,function(g){return g.toUpperCase()}),p=0;p0&&ie[ie.length-1])&&(ve[0]===6||ve[0]===2)){de=0;continue}if(ve[0]===3&&(!ie||ve[1]>ie[0]&&ve[1]ye&&(ie[de]=ye-Q[de],fe=!0)}return[fe,ie]},H=function(z){var Q;C.log("drag start"),h=!0,m=(0,a.Gw)([z.screenX,z.screenY],E()),(Q=z.target)==null||Q.focus(),document.addEventListener("mousemove",U),document.addEventListener("mouseup",K),U(z)},K=function(z){C.log("drag end"),U(z),document.removeEventListener("mousemove",U),document.removeEventListener("mouseup",K),h=!1,F()},U=function(z){h&&(z.preventDefault(),M((0,a.Gw)([z.screenX,z.screenY],m)))},q=function(z,Q){return function(oe){var le;v=[z,Q],C.log("resize start",v),c=!0,m=(0,a.Gw)([oe.screenX,oe.screenY],E()),p=I(),(le=oe.target)==null||le.focus(),document.addEventListener("mousemove",Z),document.addEventListener("mouseup",Y),Z(oe)}},Y=function(z){C.log("resize end",g),Z(z),document.removeEventListener("mousemove",Z),document.removeEventListener("mouseup",Y),c=!1,F()},Z=function(z){if(c){z.preventDefault();var Q=(0,a.Gw)([z.screenX,z.screenY],E()),oe=(0,a.Gw)(Q,m);g=(0,a.Ud)(p,(0,a.wP)(v,oe),[1,1]),g[0]=Math.max(g[0],150*u),g[1]=Math.max(g[1],50*u),P(g)}}},20284:function(S,y,n){"use strict";n.d(y,{Ck:function(){return i},W4:function(){return t},Wi:function(){return p},lx:function(){return v}});var e=n(4892),a=n(42480);/** * Normalized browser focus events and BYOND-specific focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT */var t=new e._,r=!1,i=function(I){I===void 0&&(I={}),r=!!I.ignoreWindowFocus},j,C=!0,x=function(I,M){if(r){C=!0;return}if(j&&(clearTimeout(j),j=null),M){j=setTimeout(function(){return x(I)});return}C!==I&&(C=I,t.emit(I?"window-focus":"window-blur"),t.emit("window-focus-change",I))},u=null,d=function(I){var M=String(I.tagName).toLowerCase();return M==="input"||M==="textarea"},h=function(I){c(),u=I,u.addEventListener("blur",c)},c=function(){u&&(u.removeEventListener("blur",c),u=null)},l=null,f=null,m=[],v=function(I){m.push(I)},p=function(I){var M=m.indexOf(I);M>=0&&m.splice(M,1)},g=function(I){if(!(u||!C))for(var M=document.body;I&&I!==M;){if(m.includes(I)){if(I.contains(l))return;l=I,I.focus();return}I=I.parentElement}};window.addEventListener("mousemove",function(I){var M=I.target;M!==f&&(f=M,g(M))}),window.addEventListener("focusin",function(I){if(f=null,l=I.target,x(!0),d(I.target)){h(I.target);return}}),window.addEventListener("focusout",function(I){f=null,x(!1,!0)}),window.addEventListener("blur",function(I){f=null,x(!1,!0)}),window.addEventListener("beforeunload",function(I){x(!1)});var _={},E=function(){"use strict";function I(P,D,k){this.event=P,this.type=D,this.code=P.keyCode,this.ctrl=P.ctrlKey,this.shift=P.shiftKey,this.alt=P.altKey,this.repeat=!!k}var M=I.prototype;return M.hasModifierKeys=function(){return this.ctrl||this.alt||this.shift},M.isModifierKey=function(){return this.code===a.KC||this.code===a.uN||this.code===a.Qj},M.isDown=function(){return this.type==="keydown"},M.isUp=function(){return this.type==="keyup"},M.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>=a.Ah&&this.code<=a.gu?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)},I}();document.addEventListener("keydown",function(I){if(!d(I.target)){var M=I.keyCode,P=new E(I,"keydown",_[M]);t.emit("keydown",P),t.emit("key",P),_[M]=!0}}),document.addEventListener("keyup",function(I){if(!d(I.target)){var M=I.keyCode,P=new E(I,"keyup");t.emit("keyup",P),t.emit("key",P),_[M]=!1}})},99992:function(S,y,n){"use strict";n.d(y,{E:function(){return e}});/** * Various focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT */var e=function(){Byond.winset("mapwindow.map",{focus:!0})},a=function(){Byond.winset(Byond.windowId,{focus:!0})}},96060:function(S,y,n){"use strict";n.d(y,{AB:function(){return u},WX:function(){return d},_c:function(){return t},_s:function(){return r},cp: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"],a=e.indexOf(" "),t=function(h,c,l){if(c===void 0&&(c=-a),l===void 0&&(l=""),!isFinite(h))return h.toString();var f=Math.floor(Math.log10(Math.abs(h))),m=Math.max(c*3,f),v=Math.floor(m/3),p=e[Math.min(v+a,e.length-1)],g=h/Math.pow(1e3,v),_=g.toFixed(2);return _.endsWith(".00")?_=_.slice(0,-3):_.endsWith(".0")&&(_=_.slice(0,-2)),(_+" "+p.trim()+l).trim()},r=function(h,c){return c===void 0&&(c=0),t(h,c,"W")},i=function(h,c){if(c===void 0&&(c=0),!Number.isFinite(h))return String(h);var l=Number(h.toFixed(c)),f=l<0,m=Math.abs(l),v=m.toString().split(".");v[0]=v[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var p=v.join(".");return f?"-"+p:p},j=function(h){var c=20*Math.log10(h),l=c>=0?"+":"-",f=Math.abs(c);return f===1/0?f="Inf":f=f.toFixed(2),""+l+f+" dB"},C=null,x=function(h,c,l){if(c===void 0&&(c=0),l===void 0&&(l=""),!isFinite(h))return"NaN";var f=Math.floor(Math.log10(h)),m=Math.max(c*3,f),v=Math.floor(m/3),p=C[v],g=h/Math.pow(1e3,v),_=Math.max(0,2-m%3),E=g.toFixed(_);return(E+" "+p+" "+l).trim()},u=function(h,c){c===void 0&&(c="default");var l=Math.floor(h/10),f=Math.floor(l/3600),m=Math.floor(l%3600/60),v=l%60;if(c==="short"){var p=f>0?""+f+"h":"",g=m>0?""+m+"m":"",_=v>0?""+v+"s":"";return""+p+g+_}var E=String(f).padStart(2,"0"),I=String(m).padStart(2,"0"),M=String(v).padStart(2,"0");return E+":"+I+":"+M},d=function(h){if(!Number.isFinite(h))return h;var c=h.toString().split(".");return c[0]=c[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),c.join(".")}},35012:function(S,y,n){"use strict";n.d(y,{Kw:function(){return p}});var e=n(42480),a=n(20284),t=n(37756);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */function r(_,E){(E==null||E>_.length)&&(E=_.length);for(var I=0,M=new Array(E);I=_.length?{done:!0}:{done:!1,value:_[M++]}}}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=(0,t.m)("hotkeys"),x={},u=[e.ER,e.kt,e.YF,e.qe,e.KC,e.uN,e.UD,e.Mx,e.aD,e.y0,e.OS],d={},h=[],c=function(_){if(_===16)return"Shift";if(_===17)return"Ctrl";if(_===18)return"Alt";if(_===33)return"Northeast";if(_===34)return"Southeast";if(_===35)return"Southwest";if(_===36)return"Northwest";if(_===37)return"West";if(_===38)return"North";if(_===39)return"East";if(_===40)return"South";if(_===45)return"Insert";if(_===46)return"Delete";if(_>=48&&_<=57||_>=65&&_<=90)return String.fromCharCode(_);if(_>=96&&_<=105)return"Numpad"+(_-96);if(_>=112&&_<=123)return"F"+(_-111);if(_===188)return",";if(_===189)return"-";if(_===190)return"."},l=function(_){var E=String(_);if(E==="Ctrl+F5"||E==="Ctrl+R"){location.reload();return}if(E!=="Ctrl+F"&&!(_.event.defaultPrevented||_.isModifierKey()||u.includes(_.code))){var I=c(_.code);if(I){var M=x[I];if(M)return C.debug("macro",M),Byond.command(M);if(_.isDown()&&!d[I]){d[I]=!0;var P='KeyDown "'+I+'"';return C.debug(P),Byond.command(P)}if(_.isUp()&&d[I]){d[I]=!1;var D='KeyUp "'+I+'"';return C.debug(D),Byond.command(D)}}}},f=function(_){u.push(_)},m=function(_){var E=u.indexOf(_);E>=0&&u.splice(E,1)},v=function(){for(var _=j(Object.keys(d)),E;!(E=_()).done;){var I=E.value;d[I]&&(d[I]=!1,C.log('releasing key "'+I+'"'),Byond.command('KeyUp "'+I+'"'))}},p=function(){Byond.winget("default.*").then(function(_){for(var E={},I=j(Object.keys(_)),M;!(M=I()).done;){var P=M.value,D=P.split("."),k=D[1],L=D[2];k&&L&&(E[k]||(E[k]={}),E[k][L]=_[P])}for(var F=/\\"/g,w=function(q){return q.substring(1,q.length-1).replace(F,'"')},N=j(Object.keys(E)),$;!($=N()).done;){var H=$.value,K=E[H],U=w(K.name);x[U]=w(K.command)}C.debug("loaded macros",x)}),a.W4.on("window-blur",function(){v()}),a.W4.on("key",function(_){for(var E=j(h),I;!(I=E()).done;){var M=I.value;M(_)}l(_)})},g=function(_){h.push(_);var E=!1;return function(){E||(E=!0,h.splice(h.indexOf(_),1))}}},12508:function(S,y,n){"use strict";n.r(y),n.d(y,{AICard:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.has_ai,h=u.integrity,c=u.backup_capacitor,l=u.flushing,f=u.has_laws,m=u.laws,v=u.wireless,p=u.radio;if(d===0)return(0,e.jsx)(r.qo,{width:600,height:470,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(t.iG,{title:"Stored AI",children:(0,e.jsx)(t.kv,{children:(0,e.jsx)("h3",{children:"No AI detected."})})})})});var g=null;h>=75?g="green":h>=25?g="yellow":g="red";var _=null;return c>=75&&(_="green"),c>=25?_="yellow":_="red",(0,e.jsx)(r.qo,{width:600,height:470,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsxs)(t.iG,{title:"Stored AI",children:[(0,e.jsx)(t.kv,{bold:!0,display:"inline-block",children:(0,e.jsx)("h3",{children:name})}),(0,e.jsx)(t.kv,{children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Integrity",children:(0,e.jsx)(t.cH,{color:g,value:h/100})}),(0,e.jsx)(t.Ce.Item,{label:"Power",children:(0,e.jsx)(t.cH,{color:_,value:c/100})})]})}),(0,e.jsx)(t.kv,{color:"red",children:(0,e.jsx)("h2",{children:l===1?"Wipe of AI in progress...":""})})]}),(0,e.jsx)(t.iG,{title:"Laws",children:!!f&&(0,e.jsx)(t.kv,{children:m.map(function(E,I){return(0,e.jsx)(t.kv,{display:"inline-block",children:E},I)})})||(0,e.jsx)(t.kv,{color:"red",children:(0,e.jsx)("h3",{children:"No laws detected."})})}),(0,e.jsx)(t.iG,{title:"Actions",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Wireless Activity",children:(0,e.jsx)(t.q,{icon:v?"check":"times",content:v?"Enabled":"Disabled",color:v?"green":"red",onClick:function(){return x("wireless")}})}),(0,e.jsx)(t.Ce.Item,{label:"Subspace Transceiver",children:(0,e.jsx)(t.q,{icon:p?"check":"times",content:p?"Enabled":"Disabled",color:p?"green":"red",onClick:function(){return x("radio")}})}),(0,e.jsx)(t.Ce.Item,{label:"AI Power",children:(0,e.jsx)(t.q.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:l||h===0,confirmColor:"red",content:"Shutdown",onClick:function(){return x("wipe")}})})]})})]})})}},32712:function(S,y,n){"use strict";n.r(y),n.d(y,{APC:function(){return C}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(95928),j=n(44664),C=function(l){var f=(0,a.yy)(),m=f.act,v=f.data,p=(0,e.jsx)(d,{});return v.gridCheck?p=(0,e.jsx)(h,{}):v.failTime&&(p=(0,e.jsx)(c,{})),(0,e.jsx)(r.qo,{width:450,height:475,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:p})})},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"}},u={1:{icon:"terminal",content:"Override Programming",action:"hack"}},d=function(l){var f=(0,a.yy)(),m=f.act,v=f.data,p=v.locked&&!v.siliconUser,g=v.normallyLocked,_=x[v.externalPower]||x[0],E=x[v.chargingStatus]||x[0],I=v.powerChannels||[],M=v.powerCellStatus/100;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.InterfaceLockNoticeBox,{deny:v.emagged,denialMessage:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.kv,{color:"bad",fontSize:"1.5rem",children:"Fault in ID authenticator."}),(0,e.jsx)(t.kv,{color:"bad",children:"Please contact maintenance for service."})]})}),(0,e.jsx)(t.iG,{title:"Power Status",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsxs)(t.Ce.Item,{label:"Main Breaker",color:_.color,buttons:(0,e.jsx)(t.q,{icon:v.isOperating?"power-off":"times",content:v.isOperating?"On":"Off",selected:v.isOperating&&!p,color:v.isOperating?"":"bad",disabled:p,onClick:function(){return m("breaker")}}),children:["[ ",_.externalPowerText," ]"]}),(0,e.jsx)(t.Ce.Item,{label:"Power Cell",children:(0,e.jsx)(t.cH,{color:"good",value:M})}),(0,e.jsxs)(t.Ce.Item,{label:"Charge Mode",color:E.color,buttons:(0,e.jsx)(t.q,{icon:v.chargeMode?"sync":"times",content:v.chargeMode?"Auto":"Off",selected:v.chargeMode,disabled:p,onClick:function(){return m("charge")}}),children:["[ ",E.chargingText," ]"]})]})}),(0,e.jsx)(t.iG,{title:"Power Channels",children:(0,e.jsxs)(t.Ce,{children:[I.map(function(P){var D=P.topicParams;return(0,e.jsxs)(t.Ce.Item,{label:P.title,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.kv,{inline:!0,mx:2,color:P.status>=2?"good":"bad",children:P.status>=2?"On":"Off"}),(0,e.jsx)(t.q,{icon:"sync",content:"Auto",selected:!p&&(P.status===1||P.status===3),disabled:p,onClick:function(){return m("channel",D.auto)}}),(0,e.jsx)(t.q,{icon:"power-off",content:"On",selected:!p&&P.status===2,disabled:p,onClick:function(){return m("channel",D.on)}}),(0,e.jsx)(t.q,{icon:"times",content:"Off",selected:!p&&P.status===0,disabled:p,onClick:function(){return m("channel",D.off)}})]}),children:[P.powerLoad," W"]},P.title)}),(0,e.jsx)(t.Ce.Item,{label:"Total Load",children:v.totalCharging?(0,e.jsxs)("b",{children:[v.totalLoad," W (+ ",v.totalCharging," W charging)"]}):(0,e.jsxs)("b",{children:[v.totalLoad," W"]})})]})}),(0,e.jsx)(t.iG,{title:"Misc",buttons:!!v.siliconUser&&(0,e.jsx)(t.q,{icon:"lightbulb-o",content:"Overload",onClick:function(){return m("overload")}}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Cover Lock",buttons:(0,e.jsx)(t.q,{icon:v.coverLocked?"lock":"unlock",content:v.coverLocked?"Engaged":"Disengaged",selected:v.coverLocked,disabled:p,onClick:function(){return m("cover")}})}),(0,e.jsx)(t.Ce.Item,{label:"Night Shift Lighting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:"lightbulb-o",content:"Disabled",selected:v.nightshiftSetting===2,onClick:function(){return m("nightshift",{nightshift:2})}}),(0,e.jsx)(t.q,{icon:"lightbulb-o",content:"Automatic",selected:v.nightshiftSetting===1,onClick:function(){return m("nightshift",{nightshift:1})}}),(0,e.jsx)(t.q,{icon:"lightbulb-o",content:"Enabled",selected:v.nightshiftSetting===3,onClick:function(){return m("nightshift",{nightshift:3})}})]})}),(0,e.jsx)(t.Ce.Item,{label:"Emergency Lighting",buttons:(0,e.jsx)(t.q,{icon:"lightbulb-o",content:v.emergencyLights?"Enabled":"Disabled",selected:v.emergencyLights,onClick:function(){return m("emergency_lighting")}})})]})})]})},h=function(l){return(0,e.jsxs)(j.FullscreenNotice,{title:"System Failure",children:[(0,e.jsx)(t.kv,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(t.GW,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(t.kv,{fontSize:"1.5rem",bold:!0,children:"Power surge detected, grid check in effect..."})]})},c=function(l){var f=(0,a.yy)(),m=f.data,v=f.act,p=(0,e.jsx)(t.q,{icon:"repeat",content:"Restart Now",color:"good",onClick:function(){return v("reboot")}});return m.locked&&!m.siliconUser&&(p=(0,e.jsx)(t.kv,{color:"bad",children:"Swipe an ID card for manual reboot."})),(0,e.jsxs)(t.Oe,{textAlign:"center",children:[(0,e.jsx)(t.kv,{color:"bad",children:(0,e.jsx)("h1",{children:"SYSTEM FAILURE"})}),(0,e.jsx)(t.kv,{color:"average",children:(0,e.jsx)("h2",{children:"I/O regulators malfunction detected! Waiting for system reboot..."})}),(0,e.jsxs)(t.kv,{color:"good",children:["Automatic reboot in ",m.failTime," seconds..."]}),(0,e.jsx)(t.kv,{mt:4,children:p})]})}},46480:function(S,y,n){"use strict";n.r(y),n.d(y,{AccountsTerminal:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.id_inserted,m=l.id_card,v=l.access_level,p=l.machine_id;return(0,e.jsx)(r.qo,{width:400,height:640,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(t.iG,{children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Machine",color:"average",children:p}),(0,e.jsx)(t.Ce.Item,{label:"ID",children:(0,e.jsx)(t.q,{icon:f?"eject":"sign-in-alt",fluid:!0,content:m,onClick:function(){return c("insert_card")}})})]})}),v>0&&(0,e.jsx)(j,{})]})})},j=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.creating_new_account,m=l.detailed_account_view;return(0,e.jsxs)(t.iG,{title:"Menu",children:[(0,e.jsxs)(t.kZ,{children:[(0,e.jsx)(t.kZ.Tab,{selected:!f&&!m,icon:"home",onClick:function(){return c("view_accounts_list")},children:"Home"}),(0,e.jsx)(t.kZ.Tab,{selected:f,icon:"cog",onClick:function(){return c("create_account")},children:"New Account"}),(0,e.jsx)(t.kZ.Tab,{disabled:f,icon:"print",onClick:function(){return c("print")},children:"Print"})]}),f&&(0,e.jsx)(C,{})||m&&(0,e.jsx)(x,{})||(0,e.jsx)(u,{})]})},C=function(d){var h=(0,a.yy)().act,c=(0,a.ao)("holder",""),l=c[0],f=c[1],m=(0,a.ao)("money",""),v=m[0],p=m[1];return(0,e.jsxs)(t.iG,{title:"Create Account",level:2,children:[(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Account Holder",children:(0,e.jsx)(t.EF,{value:l,fluid:!0,onInput:function(g,_){return f(_)}})}),(0,e.jsx)(t.Ce.Item,{label:"Initial Deposit",children:(0,e.jsx)(t.EF,{value:v,fluid:!0,onInput:function(g,_){return p(_)}})})]}),(0,e.jsx)(t.q,{disabled:!l||!v,mt:1,fluid:!0,icon:"plus",onClick:function(){return h("finalise_create_account",{holder_name:l,starting_funds:v})},content:"Create"})]})},x=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.access_level,m=l.station_account_number,v=l.account_number,p=l.owner_name,g=l.money,_=l.suspended,E=l.transactions;return(0,e.jsxs)(t.iG,{title:"Account Details",level:2,buttons:(0,e.jsx)(t.q,{icon:"ban",selected:_,content:"Suspend",onClick:function(){return c("toggle_suspension")}}),children:[(0,e.jsxs)(t.Ce,{children:[(0,e.jsxs)(t.Ce.Item,{label:"Account Number",children:["#",v]}),(0,e.jsx)(t.Ce.Item,{label:"Holder",children:p}),(0,e.jsxs)(t.Ce.Item,{label:"Balance",children:[g,"\u20AE"]}),(0,e.jsx)(t.Ce.Item,{label:"Status",color:_?"bad":"good",children:_?"SUSPENDED":"Active"})]}),(0,e.jsx)(t.iG,{title:"CentCom Administrator",level:2,mt:1,children:(0,e.jsx)(t.Ce,{children:(0,e.jsx)(t.Ce.Item,{label:"Payroll",children:(0,e.jsx)(t.q.Confirm,{color:"bad",fluid:!0,icon:"ban",confirmIcon:"ban",content:"Revoke",confirmContent:"This cannot be undone.",disabled:v===m,onClick:function(){return c("revoke_payroll")}})})})}),f>=2&&(0,e.jsxs)(t.iG,{title:"Silent Funds Transfer",level:2,children:[(0,e.jsx)(t.q,{icon:"plus",onClick:function(){return c("add_funds")},content:"Add Funds"}),(0,e.jsx)(t.q,{icon:"plus",onClick:function(){return c("remove_funds")},content:"Remove Funds"})]}),(0,e.jsx)(t.iG,{title:"Transactions",level:2,mt:1,children:(0,e.jsxs)(t.oJ,{children:[(0,e.jsxs)(t.oJ.Row,{header:!0,children:[(0,e.jsx)(t.oJ.Cell,{children:"Timestamp"}),(0,e.jsx)(t.oJ.Cell,{children:"Target"}),(0,e.jsx)(t.oJ.Cell,{children:"Reason"}),(0,e.jsx)(t.oJ.Cell,{children:"Value"}),(0,e.jsx)(t.oJ.Cell,{children:"Terminal"})]}),E.map(function(I,M){return(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsxs)(t.oJ.Cell,{children:[I.date," ",I.time]}),(0,e.jsx)(t.oJ.Cell,{children:I.target_name}),(0,e.jsx)(t.oJ.Cell,{children:I.purpose}),(0,e.jsxs)(t.oJ.Cell,{children:[I.amount,"\u20AE"]}),(0,e.jsx)(t.oJ.Cell,{children:I.source_terminal})]},M)})]})})]})},u=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.accounts;return(0,e.jsx)(t.iG,{title:"NanoTrasen Accounts",level:2,children:f.length&&(0,e.jsx)(t.Ce,{children:f.map(function(m){return(0,e.jsx)(t.Ce.Item,{label:m.owner_name+m.suspended,color:m.suspended?"bad":null,children:(0,e.jsx)(t.q,{fluid:!0,content:"#"+m.account_number,onClick:function(){return c("view_account_detail",{account_index:m.account_index})}})},m.account_index)})})||(0,e.jsx)(t.kv,{color:"bad",children:"There are no accounts available."})})}},61444:function(S,y,n){"use strict";n.r(y),n.d(y,{AdminShuttleController:function(){return j},ShuttleList:function(){return C}});var e=n(33496),a=n(47392),t=n(45280),r=n(33404),i=n(76512),j=function(){return(0,e.jsx)(i.qo,{width:600,height:600,children:(0,e.jsx)(i.qo.Content,{scrollable:!0,children:(0,e.jsx)(C,{})})})},C=function(u){var d=(0,t.yy)(),h=d.act,c=d.data,l=c.shuttles,f=c.overmap_ships;return(0,e.jsxs)(r.iG,{noTopPadding:!0,children:[(0,e.jsx)(r.iG,{title:"Classic Shuttles",children:(0,e.jsx)(r.oJ,{children:(0,a.cp)(function(m){return m.name})(l).map(function(m){return(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsx)(r.oJ.Cell,{collapsing:!0,children:(0,e.jsx)(r.q,{m:0,content:"JMP",onClick:function(){return h("adminobserve",{ref:m.ref})}})}),(0,e.jsx)(r.oJ.Cell,{collapsing:!0,children:(0,e.jsx)(r.q,{m:0,content:"Fly",onClick:function(){return h("classicmove",{ref:m.ref})}})}),(0,e.jsx)(r.oJ.Cell,{children:m.name}),(0,e.jsx)(r.oJ.Cell,{children:m.current_location}),(0,e.jsx)(r.oJ.Cell,{children:x(m.status)})]},m.ref)})})}),(0,e.jsx)(r.iG,{title:"Overmap Ships",children:(0,e.jsx)(r.oJ,{children:(0,a.cp)(function(m){var v;return((v=m.name)==null?void 0:v.toLowerCase())||m.name||m.ref})(f).map(function(m){return(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsx)(r.oJ.Cell,{collapsing:!0,children:(0,e.jsx)(r.q,{content:"JMP",onClick:function(){return h("adminobserve",{ref:m.ref})}})}),(0,e.jsx)(r.oJ.Cell,{collapsing:!0,children:(0,e.jsx)(r.q,{content:"Control",onClick:function(){return h("overmap_control",{ref:m.ref})}})}),(0,e.jsx)(r.oJ.Cell,{children:m.name})]},m.ref)})})})]})},x=function(u){switch(u){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},27792:function(S,y,n){"use strict";n.r(y),n.d(y,{AdminTicketPanel:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.id,c=d.title,l=d.name,f=d.state,m=d.opened_at,v=d.closed_at,p=d.opened_at_date,g=d.closed_at_date,_=d.actions,E=d.log;return(0,e.jsx)(r.qo,{width:900,height:600,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(t.iG,{title:"Ticket #"+h,buttons:(0,e.jsxs)(t.kv,{nowrap:!0,children:[(0,e.jsx)(t.q,{icon:"pen",content:"Rename Ticket",onClick:function(){return u("retitle")}})," ",(0,e.jsx)(t.q,{content:"Legacy UI",onClick:function(){return u("legacy")}})]}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsxs)(t.Ce.Item,{label:"Admin Help Ticket",children:["#",h,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:l}})]}),(0,e.jsx)(t.Ce.Item,{label:"State",children:i[f]}),i[f]===i.open?(0,e.jsxs)(t.Ce.Item,{label:"Opened At",children:[p," (",Math.round(m/600*10)/10," ","minutes ago.)"]}):(0,e.jsxs)(t.Ce.Item,{label:"Closed At",children:[g," (",Math.round(v/600*10)/10," ","minutes ago.)"," ",(0,e.jsx)(t.q,{content:"Reopen",onClick:function(){return u("reopen")}})]}),(0,e.jsx)(t.Ce.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:_}})}),(0,e.jsx)(t.Ce.Item,{label:"Log",children:Object.keys(E).map(function(I,M){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:E[I]}},M)})})]})})})})}},64292:function(S,y,n){"use strict";n.r(y),n.d(y,{AgentCard:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.entries,h=u.electronic_warfare;return(0,e.jsx)(r.qo,{width:550,height:400,theme:"syndicate",children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(t.iG,{title:"Info",children:(0,e.jsx)(t.oJ,{children:d.map(function(c){return(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsx)(t.q,{onClick:function(){return x(c.name.toLowerCase().replace(/ /g,""))},icon:"cog"})}),(0,e.jsx)(t.oJ.Cell,{children:c.name}),(0,e.jsx)(t.oJ.Cell,{children:c.value})]},c.name)})})}),(0,e.jsx)(t.iG,{title:"Electronic Warfare",children:(0,e.jsx)(t.q.Checkbox,{checked:h,content:h?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled.",onClick:function(){return x("electronic_warfare")}})})]})})}},17196:function(S,y,n){"use strict";n.r(y),n.d(y,{AiAirlock:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}},j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=i[d.power.main]||i[0],c=i[d.power.backup]||i[0],l=i[d.shock]||i[0];return(0,e.jsx)(r.qo,{width:500,height:390,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(t.iG,{title:"Power Status",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsxs)(t.Ce.Item,{label:"Main",color:h.color,buttons:(0,e.jsx)(t.q,{icon:"lightbulb-o",disabled:!d.power.main,content:"Disrupt",onClick:function(){return u("disrupt-main")}}),children:[d.power.main?"Online":"Offline"," ",(!d.wires.main_1||!d.wires.main_2)&&"[Wires have been cut!]"||d.power.main_timeleft>0&&"["+d.power.main_timeleft+"s]"]}),(0,e.jsxs)(t.Ce.Item,{label:"Backup",color:c.color,buttons:(0,e.jsx)(t.q,{icon:"lightbulb-o",disabled:!d.power.backup,content:"Disrupt",onClick:function(){return u("disrupt-backup")}}),children:[d.power.backup?"Online":"Offline"," ",(!d.wires.backup_1||!d.wires.backup_2)&&"[Wires have been cut!]"||d.power.backup_timeleft>0&&"["+d.power.backup_timeleft+"s]"]}),(0,e.jsxs)(t.Ce.Item,{label:"Electrify",color:l.color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:"wrench",disabled:!(d.wires.shock&&d.shock===0),content:"Restore",onClick:function(){return u("shock-restore")}}),(0,e.jsx)(t.q,{icon:"bolt",disabled:!d.wires.shock,content:"Temporary",onClick:function(){return u("shock-temp")}}),(0,e.jsx)(t.q,{icon:"bolt",disabled:!d.wires.shock,content:"Permanent",onClick:function(){return u("shock-perm")}})]}),children:[d.shock===2?"Safe":"Electrified"," ",!d.wires.shock&&"[Wires have been cut!]"||d.shock_timeleft>0&&"["+d.shock_timeleft+"s]"||d.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.jsx)(t.iG,{title:"Access and Door Control",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"ID Scan",color:"bad",buttons:(0,e.jsx)(t.q,{icon:d.id_scanner?"power-off":"times",content:d.id_scanner?"Enabled":"Disabled",selected:d.id_scanner,disabled:!d.wires.id_scanner,onClick:function(){return u("idscan-toggle")}}),children:!d.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ce.Divider,{}),(0,e.jsx)(t.Ce.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.jsx)(t.q,{icon:d.locked?"lock":"unlock",content:d.locked?"Lowered":"Raised",selected:d.locked,disabled:!d.wires.bolts,onClick:function(){return u("bolt-toggle")}}),children:!d.wires.bolts&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ce.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.jsx)(t.q,{icon:d.lights?"power-off":"times",content:d.lights?"Enabled":"Disabled",selected:d.lights,disabled:!d.wires.lights,onClick:function(){return u("light-toggle")}}),children:!d.wires.lights&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ce.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.jsx)(t.q,{icon:d.safe?"power-off":"times",content:d.safe?"Enabled":"Disabled",selected:d.safe,disabled:!d.wires.safe,onClick:function(){return u("safe-toggle")}}),children:!d.wires.safe&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ce.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.jsx)(t.q,{icon:d.speed?"power-off":"times",content:d.speed?"Enabled":"Disabled",selected:d.speed,disabled:!d.wires.timing,onClick:function(){return u("speed-toggle")}}),children:!d.wires.timing&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ce.Divider,{}),(0,e.jsx)(t.Ce.Item,{label:"Door Control",color:"bad",buttons:(0,e.jsx)(t.q,{icon:d.opened?"sign-out-alt":"sign-in-alt",content:d.opened?"Open":"Closed",selected:d.opened,disabled:d.locked||d.welded,onClick:function(){return u("open-close")}}),children:!!(d.locked||d.welded)&&(0,e.jsxs)("span",{children:["[Door is ",d.locked?"bolted":"",d.locked&&d.welded?" and ":"",d.welded?"welded":"","!]"]})})]})})]})})}},19588:function(S,y,n){"use strict";n.r(y),n.d(y,{AiRestorer:function(){return i},AiRestorerContent:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(){return(0,e.jsx)(r.qo,{width:370,height:360,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(j,{})})})},j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.AI_present,c=d.error,l=d.name,f=d.laws,m=d.isDead,v=d.restoring,p=d.health,g=d.ejectable;return(0,e.jsxs)(e.Fragment,{children:[c&&(0,e.jsx)(t.yc,{textAlign:"center",children:c}),!!g&&(0,e.jsx)(t.q,{fluid:!0,icon:"eject",content:h?l:"----------",disabled:!h,onClick:function(){return u("PRG_eject")}}),!!h&&(0,e.jsxs)(t.iG,{title:g?"System Status":l,buttons:(0,e.jsx)(t.kv,{inline:!0,bold:!0,color:m?"bad":"good",children:m?"Nonfunctional":"Functional"}),children:[(0,e.jsx)(t.Ce,{children:(0,e.jsx)(t.Ce.Item,{label:"Integrity",children:(0,e.jsx)(t.cH,{value:p,minValue:0,maxValue:100,ranges:{good:[70,1/0],average:[50,70],bad:[-1/0,50]}})})}),!!v&&(0,e.jsx)(t.kv,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,e.jsx)(t.q,{fluid:!0,icon:"plus",content:"Begin Reconstruction",disabled:v,mt:1,onClick:function(){return u("PRG_beginReconstruction")}}),(0,e.jsx)(t.iG,{title:"Laws",level:2,children:f.map(function(_){return(0,e.jsx)(t.kv,{className:"candystripe",children:_},_)})})]})]})}},44708:function(S,y,n){"use strict";n.r(y),n.d(y,{AiSupermatter:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(44664),j=function(u){var d=(0,a.yy)().data,h=d.integrity_percentage,c=d.ambient_temp,l=d.ambient_pressure,f=d.detonating,m=(0,e.jsx)(x,{});return f&&(m=(0,e.jsx)(C,{})),(0,e.jsx)(r.qo,{width:500,height:300,children:(0,e.jsx)(r.qo.Content,{children:m})})},C=function(u){return(0,e.jsx)(i.FullscreenNotice,{title:"DETONATION IMMINENT",children:(0,e.jsxs)(t.kv,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(t.GW,{color:"bad",name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)(t.kv,{color:"bad",children:"CRYSTAL DELAMINATING"}),(0,e.jsx)(t.kv,{color:"bad",children:"Evacuate area immediately"})]})})},x=function(u){var d=(0,a.yy)().data,h=d.integrity_percentage,c=d.ambient_temp,l=d.ambient_pressure;return(0,e.jsx)(t.iG,{title:"Status",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Crystal Integrity",children:(0,e.jsx)(t.cH,{value:h,maxValue:100,ranges:{good:[90,1/0],average:[25,90],bad:[-1/0,25]}})}),(0,e.jsx)(t.Ce.Item,{label:"Environment Temperature",children:(0,e.jsxs)(t.cH,{value:c,maxValue:1e4,ranges:{bad:[5e3,1/0],average:[4e3,5e3],good:[-1/0,4e3]},children:[c," K"]})}),(0,e.jsxs)(t.Ce.Item,{label:"Environment Pressure",children:[l," kPa"]})]})})}},23392:function(S,y,n){"use strict";n.r(y),n.d(y,{AirAlarm:function(){return d}});var e=n(33496),a=n(10608),t=n(69344),r=n(45280),i=n(33404),j=n(36824),C=n(76512),x=n(95928),u=n(23432),d=function(E){var I=(0,r.yy)(),M=I.act,P=I.data,D=P.locked&&!P.siliconUser&&!P.remoteUser;return(0,e.jsx)(C.qo,{width:440,height:650,children:(0,e.jsxs)(C.qo.Content,{scrollable:!0,children:[(0,e.jsx)(x.InterfaceLockNoticeBox,{}),(0,e.jsx)(h,{}),(0,e.jsx)(c,{}),!D&&(0,e.jsx)(f,{})]})})},h=function(E){var I=(0,r.yy)().data,M=(I.environment_data||[]).filter(function(k){return k.value>=.01}),P={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},D=P[I.danger_level]||P[0];return(0,e.jsx)(i.iG,{title:"Air Status",children:(0,e.jsxs)(i.Ce,{children:[M.length>0&&(0,e.jsxs)(e.Fragment,{children:[M.map(function(k){var L=P[k.danger_level]||P[0];return(0,e.jsxs)(i.Ce.Item,{label:(0,j.GE)(k.name),color:L.color,children:[(0,a.yI)(k.value,2),k.unit]},k.name)}),(0,e.jsx)(i.Ce.Item,{label:"Local status",color:D.color,children:D.localStatusText}),(0,e.jsx)(i.Ce.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)(i.Ce.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!I.emagged&&(0,e.jsx)(i.Ce.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},c=function(E){var I=(0,r.yy)(),M=I.act,P=I.data,D=P.target_temperature,k=P.rcon;return(0,e.jsx)(i.iG,{title:"Comfort Settings",children:(0,e.jsxs)(i.Ce,{children:[(0,e.jsxs)(i.Ce.Item,{label:"Remote Control",children:[(0,e.jsx)(i.q,{selected:k===1,content:"Off",onClick:function(){return M("rcon",{rcon:1})}}),(0,e.jsx)(i.q,{selected:k===2,content:"Auto",onClick:function(){return M("rcon",{rcon:2})}}),(0,e.jsx)(i.q,{selected:k===3,content:"On",onClick:function(){return M("rcon",{rcon:3})}})]}),(0,e.jsx)(i.Ce.Item,{label:"Thermostat",children:(0,e.jsx)(i.q,{content:D,onClick:function(){return M("temperature")}})})]})})},l={home:{title:"Air Controls",component:function(){return m}},vents:{title:"Vent Controls",component:function(){return v}},scrubbers:{title:"Scrubber Controls",component:function(){return p}},modes:{title:"Operating Mode",component:function(){return g}},thresholds:{title:"Alarm Thresholds",component:function(){return _}}},f=function(E){var I=(0,r.cv)("screen"),M=I[0],P=I[1],D=l[M]||l.home,k=D.component();return(0,e.jsx)(i.iG,{title:D.title,buttons:M&&(0,e.jsx)(i.q,{icon:"arrow-left",content:"Back",onClick:function(){return P()}}),children:(0,e.jsx)(k,{})})},m=function(E){var I=(0,r.yy)(),M=I.act,P=I.data,D=(0,r.cv)("screen"),k=D[0],L=D[1],F=P.mode,w=P.atmos_alarm;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.q,{icon:w?"exclamation-triangle":"exclamation",color:w&&"caution",content:"Area Atmosphere Alarm",onClick:function(){return M(w?"reset":"alarm")}}),(0,e.jsx)(i.kv,{mt:1}),(0,e.jsx)(i.q,{icon:F===3?"exclamation-triangle":"exclamation",color:F===3&&"danger",content:"Panic Siphon",onClick:function(){return M("mode",{mode:F===3?1:3})}}),(0,e.jsx)(i.kv,{mt:2}),(0,e.jsx)(i.q,{icon:"sign-out-alt",content:"Vent Controls",onClick:function(){return L("vents")}}),(0,e.jsx)(i.kv,{mt:1}),(0,e.jsx)(i.q,{icon:"filter",content:"Scrubber Controls",onClick:function(){return L("scrubbers")}}),(0,e.jsx)(i.kv,{mt:1}),(0,e.jsx)(i.q,{icon:"cog",content:"Operating Mode",onClick:function(){return L("modes")}}),(0,e.jsx)(i.kv,{mt:1}),(0,e.jsx)(i.q,{icon:"chart-bar",content:"Alarm Thresholds",onClick:function(){return L("thresholds")}})]})},v=function(E){var I=(0,r.yy)().data,M=I.vents;return!M||M.length===0?"Nothing to show":M.map(function(P){return(0,e.jsx)(u.Vent,{vent:P},P.id_tag)})},p=function(E){var I=(0,r.yy)().data,M=I.scrubbers;return!M||M.length===0?"Nothing to show":M.map(function(P){return(0,e.jsx)(u.Scrubber,{scrubber:P},P.id_tag)})},g=function(E){var I=(0,r.yy)(),M=I.act,P=I.data,D=P.modes;return!D||D.length===0?"Nothing to show":D.map(function(k){return(0,e.jsxs)(t.Fragment,{children:[(0,e.jsx)(i.q,{icon:k.selected?"check-square-o":"square-o",selected:k.selected,color:k.selected&&k.danger&&"danger",content:k.name,onClick:function(){return M("mode",{mode:k.mode})}}),(0,e.jsx)(i.kv,{mt:1})]},k.mode)})},_=function(E){var I=(0,r.yy)(),M=I.act,P=I.data,D=P.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:D.map(function(k){return(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{className:"LabeledList__label",children:(0,e.jsx)("span",{className:"color-"+(0,j.AL)(k.name),children:(0,j.GE)(k.name)})}),k.settings.map(function(L){return(0,e.jsx)("td",{children:(0,e.jsx)(i.q,{content:(0,a.yI)(L.selected,2),onClick:function(){return M("threshold",{env:L.env,var:L.val})}})},L.val)})]},k.name)})})]})}},10256:function(S,y,n){"use strict";n.r(y),n.d(y,{AlertModal:function(){return u}});var e=n(33496),a=n(42480),t=n(45280),r=n(33404),i=n(76512),j=n(26896),C=-1,x=1,u=function(c){var l=(0,t.yy)(),f=l.act,m=l.data,v=m.autofocus,p=m.buttons,g=p===void 0?[]:p,_=m.large_buttons,E=m.message,I=E===void 0?"":E,M=m.timeout,P=m.title,D=(0,t.cv)("selected",0),k=D[0],L=D[1],F=115+(I.length>30?Math.ceil(I.length/4):0)+(I.length&&_?5:0),w=325+(g.length>2?55:0),N=function($){k===0&&$===C?L(g.length-1):k===g.length-1&&$===x?L(0):L(k+$)};return(0,e.jsxs)(i.qo,{height:F,title:P,width:w,children:[!!M&&(0,e.jsx)(j.Loader,{value:M}),(0,e.jsx)(i.qo.Content,{onKeyDown:function($){var H=window.event?$.which:$.keyCode;H===a.YF||H===a.kt?f("choose",{choice:g[k]}):H===a.ER?f("cancel"):H===a.aD?($.preventDefault(),N(C)):(H===a.qe||H===a.y0)&&($.preventDefault(),N(x))},children:(0,e.jsx)(r.iG,{fill:!0,children:(0,e.jsxs)(r.fT,{fill:!0,vertical:!0,children:[(0,e.jsx)(r.fT.Item,{grow:!0,m:1,children:(0,e.jsx)(r.kv,{color:"label",overflow:"hidden",children:I})}),(0,e.jsxs)(r.fT.Item,{children:[!!v&&(0,e.jsx)(r.bH,{}),(0,e.jsx)(d,{selected:k})]})]})})})]})},d=function(c){var l=(0,t.yy)().data,f=l.buttons,m=f===void 0?[]:f,v=l.large_buttons,p=l.swapped_buttons,g=c.selected;return(0,e.jsx)(r.Cu,{align:"center",direction:p?"row":"row-reverse",fill:!0,justify:"space-around",wrap:!0,children:m==null?void 0:m.map(function(_,E){return v&&m.length<3?(0,e.jsx)(r.Cu.Item,{grow:!0,children:(0,e.jsx)(h,{button:_,id:E.toString(),selected:g===E})},E):(0,e.jsx)(r.Cu.Item,{children:(0,e.jsx)(h,{button:_,id:E.toString(),selected:g===E})},E)})})},h=function(c){var l=(0,t.yy)(),f=l.act,m=l.data,v=m.large_buttons,p=c.button,g=c.selected,_=p.length>7?p.length:7;return(0,e.jsx)(r.q,{fluid:!!v,height:!!v&&2,onClick:function(){return f("choose",{choice:p})},m:.5,pl:2,pr:2,pt:v?.33:0,selected:g,textAlign:"center",width:!v&&_,children:v?p.toUpperCase():p})}},32164:function(S,y,n){"use strict";n.r(y),n.d(y,{AlgaeFarm:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(49900),j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.usePower,c=d.materials,l=d.last_flow_rate,f=d.last_power_draw,m=d.inputDir,v=d.outputDir,p=d.input,g=d.output,_=d.errorText;return(0,e.jsx)(r.qo,{width:500,height:300,children:(0,e.jsxs)(r.qo.Content,{children:[_&&(0,e.jsx)(t.yc,{warning:!0,children:(0,e.jsx)(t.kv,{display:"inline-block",verticalAlign:"middle",children:_})}),(0,e.jsxs)(t.iG,{title:"Status",buttons:(0,e.jsx)(t.q,{icon:"power-off",content:"Processing",selected:h===2,onClick:function(){return u("toggle")}}),children:[(0,e.jsxs)(t.Ce,{children:[(0,e.jsxs)(t.Ce.Item,{label:"Flow Rate",children:[l," L/s"]}),(0,e.jsxs)(t.Ce.Item,{label:"Power Draw",children:[f," W"]}),(0,e.jsx)(t.Ce.Divider,{size:1}),c.map(function(E){return(0,e.jsxs)(t.Ce.Item,{label:(0,i.Yj)(E.display),children:[(0,e.jsxs)(t.cH,{width:"80%",value:E.qty,maxValue:E.max,children:[E.qty,"/",E.max]}),(0,e.jsx)(t.q,{ml:1,content:"Eject",onClick:function(){return u("ejectMaterial",{mat:E.name})}})]},E.name)})]}),(0,e.jsx)(t.oJ,{mt:1,children:(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsx)(t.iG,{title:"Gas Input ("+m+")",children:p?(0,e.jsxs)(t.Ce,{children:[(0,e.jsxs)(t.Ce.Item,{label:"Total Pressure",children:[p.pressure," kPa"]}),(0,e.jsxs)(t.Ce.Item,{label:p.name,children:[p.percent,"% (",p.moles," moles)"]})]}):(0,e.jsx)(t.kv,{color:"bad",children:"No connection detected."})})}),(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsx)(t.iG,{title:"Gas Output ("+v+")",children:g?(0,e.jsxs)(t.Ce,{children:[(0,e.jsxs)(t.Ce.Item,{label:"Total Pressure",children:[g.pressure," kPa"]}),(0,e.jsxs)(t.Ce.Item,{label:g.name,children:[g.percent,"% (",g.moles," moles)"]})]}):(0,e.jsx)(t.kv,{color:"bad",children:"No connection detected."})})})]})})]})]})})}},78140:function(S,y,n){"use strict";n.r(y),n.d(y,{AppearanceChanger:function(){return C}});var e=n(33496),a=n(47392),t=n(49900),r=n(45280),i=n(33404),j=n(76512),C=function(p){var g=(0,r.yy)(),_=g.act,E=g.config,I=g.data,M=I.name,P=I.specimen,D=I.gender,k=I.gender_id,L=I.hair_style,F=I.facial_hair_style,w=I.ear_style,N=I.tail_style,$=I.wing_style,H=I.markings,K=I.change_race,U=I.change_gender,q=I.change_eye_color,Y=I.change_skin_tone,Z=I.change_skin_color,z=I.change_hair_color,Q=I.change_facial_hair_color,oe=I.change_hair,le=I.change_facial_hair,ie=I.mapRef,fe=E.title,de=q||Y||Z||z||Q,ge=-1;K?ge=0:U?ge=1:de?ge=2:oe?ge=4:le&&(ge=5);var ye=(0,r.cv)("tabIndex",ge),ve=ye[0],Ie=ye[1];return(0,e.jsx)(j.qo,{width:700,height:650,title:(0,t.Af)(fe),children:(0,e.jsxs)(j.qo.Content,{children:[(0,e.jsx)(i.iG,{title:"Reflection",children:(0,e.jsxs)(i.Cu,{children:[(0,e.jsx)(i.Cu.Item,{grow:1,children:(0,e.jsxs)(i.Ce,{children:[(0,e.jsx)(i.Ce.Item,{label:"Name",children:M}),(0,e.jsx)(i.Ce.Item,{label:"Species",color:K?null:"grey",children:P}),(0,e.jsx)(i.Ce.Item,{label:"Biological Sex",color:U?null:"grey",children:D?(0,t.Yj)(D):"Not Set"}),(0,e.jsx)(i.Ce.Item,{label:"Gender Identity",color:de?null:"grey",children:k?(0,t.Yj)(k):"Not Set"}),(0,e.jsx)(i.Ce.Item,{label:"Hair Style",color:oe?null:"grey",children:L?(0,t.Yj)(L):"Not Set"}),(0,e.jsx)(i.Ce.Item,{label:"Facial Hair Style",color:le?null:"grey",children:F?(0,t.Yj)(F):"Not Set"}),(0,e.jsx)(i.Ce.Item,{label:"Ear Style",color:oe?null:"grey",children:w?(0,t.Yj)(w):"Not Set"}),(0,e.jsx)(i.Ce.Item,{label:"Tail Style",color:oe?null:"grey",children:N?(0,t.Yj)(N):"Not Set"}),(0,e.jsx)(i.Ce.Item,{label:"Wing Style",color:oe?null:"grey",children:$?(0,t.Yj)($):"Not Set"})]})}),(0,e.jsx)(i.Cu.Item,{children:(0,e.jsx)(i.cb,{style:{width:"256px",height:"256px"},params:{id:ie,type:"map"}})})]})}),(0,e.jsxs)(i.kZ,{children:[K?(0,e.jsx)(i.kZ.Tab,{selected:ve===0,onClick:function(){return Ie(0)},children:"Race"}):null,U?(0,e.jsx)(i.kZ.Tab,{selected:ve===1,onClick:function(){return Ie(1)},children:"Gender & Sex"}):null,de?(0,e.jsx)(i.kZ.Tab,{selected:ve===2,onClick:function(){return Ie(2)},children:"Colors"}):null,oe?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.kZ.Tab,{selected:ve===3,onClick:function(){return Ie(3)},children:"Hair"}),(0,e.jsx)(i.kZ.Tab,{selected:ve===5,onClick:function(){return Ie(5)},children:"Ear"}),(0,e.jsx)(i.kZ.Tab,{selected:ve===6,onClick:function(){return Ie(6)},children:"Tail"}),(0,e.jsx)(i.kZ.Tab,{selected:ve===7,onClick:function(){return Ie(7)},children:"Wing"}),(0,e.jsx)(i.kZ.Tab,{selected:ve===8,onClick:function(){return Ie(8)},children:"Markings"})]}):null,le?(0,e.jsx)(i.kZ.Tab,{selected:ve===4,onClick:function(){return Ie(4)},children:"Facial Hair"}):null]}),(0,e.jsxs)(i.kv,{height:"43%",children:[K&&ve===0?(0,e.jsx)(x,{}):null,U&&ve===1?(0,e.jsx)(u,{}):null,de&&ve===2?(0,e.jsx)(d,{}):null,oe&&ve===3?(0,e.jsx)(h,{}):null,le&&ve===4?(0,e.jsx)(c,{}):null,oe&&ve===5?(0,e.jsx)(l,{}):null,oe&&ve===6?(0,e.jsx)(f,{}):null,oe&&ve===7?(0,e.jsx)(m,{}):null,oe&&ve===8?(0,e.jsx)(v,{}):null]})]})})},x=function(p){var g=(0,r.yy)(),_=g.act,E=g.data,I=E.species,M=E.specimen,P=(0,a.cp)(function(D){return D.specimen})(I||[]);return(0,e.jsx)(i.iG,{title:"Species",fill:!0,scrollable:!0,children:P.map(function(D){return(0,e.jsx)(i.q,{content:D.specimen,selected:M===D.specimen,onClick:function(){return _("race",{race:D.specimen})}},D.specimen)})})},u=function(p){var g=(0,r.yy)(),_=g.act,E=g.data,I=E.gender,M=E.gender_id,P=E.genders,D=E.id_genders;return(0,e.jsx)(i.iG,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,e.jsxs)(i.Ce,{children:[(0,e.jsx)(i.Ce.Item,{label:"Biological Sex",children:P.map(function(k){return(0,e.jsx)(i.q,{selected:k.gender_key===I,content:k.gender_name,onClick:function(){return _("gender",{gender:k.gender_key})}},k.gender_key)})}),(0,e.jsx)(i.Ce.Item,{label:"Gender Identity",children:D.map(function(k){return(0,e.jsx)(i.q,{selected:k.gender_key===M,content:k.gender_name,onClick:function(){return _("gender_id",{gender_id:k.gender_key})}},k.gender_key)})})]})})},d=function(p){var g=(0,r.yy)(),_=g.act,E=g.data,I=E.change_eye_color,M=E.change_skin_tone,P=E.change_skin_color,D=E.change_hair_color,k=E.change_facial_hair_color,L=E.eye_color,F=E.skin_color,w=E.hair_color,N=E.facial_hair_color,$=E.ears_color,H=E.ears2_color,K=E.tail_color,U=E.tail2_color,q=E.wing_color,Y=E.wing2_color;return(0,e.jsxs)(i.iG,{title:"Colors",fill:!0,scrollable:!0,children:[I?(0,e.jsxs)(i.kv,{children:[(0,e.jsx)(i.wP,{color:L,mr:1}),(0,e.jsx)(i.q,{content:"Change Eye Color",onClick:function(){return _("eye_color")}})]}):null,M?(0,e.jsx)(i.kv,{children:(0,e.jsx)(i.q,{content:"Change Skin Tone",onClick:function(){return _("skin_tone")}})}):null,P?(0,e.jsxs)(i.kv,{children:[(0,e.jsx)(i.wP,{color:F,mr:1}),(0,e.jsx)(i.q,{content:"Change Skin Color",onClick:function(){return _("skin_color")}})]}):null,D?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.kv,{children:[(0,e.jsx)(i.wP,{color:w,mr:1}),(0,e.jsx)(i.q,{content:"Change Hair Color",onClick:function(){return _("hair_color")}})]}),(0,e.jsxs)(i.kv,{children:[(0,e.jsx)(i.wP,{color:$,mr:1}),(0,e.jsx)(i.q,{content:"Change Ears Color",onClick:function(){return _("ears_color")}})]}),(0,e.jsxs)(i.kv,{children:[(0,e.jsx)(i.wP,{color:H,mr:1}),(0,e.jsx)(i.q,{content:"Change Secondary Ears Color",onClick:function(){return _("ears2_color")}})]}),(0,e.jsxs)(i.kv,{children:[(0,e.jsx)(i.wP,{color:K,mr:1}),(0,e.jsx)(i.q,{content:"Change Tail Color",onClick:function(){return _("tail_color")}})]}),(0,e.jsxs)(i.kv,{children:[(0,e.jsx)(i.wP,{color:U,mr:1}),(0,e.jsx)(i.q,{content:"Change Secondary Tail Color",onClick:function(){return _("tail2_color")}})]}),(0,e.jsxs)(i.kv,{children:[(0,e.jsx)(i.wP,{color:q,mr:1}),(0,e.jsx)(i.q,{content:"Change Wing Color",onClick:function(){return _("wing_color")}})]}),(0,e.jsxs)(i.kv,{children:[(0,e.jsx)(i.wP,{color:Y,mr:1}),(0,e.jsx)(i.q,{content:"Change Secondary Wing Color",onClick:function(){return _("wing2_color")}})]})]}):null,k?(0,e.jsxs)(i.kv,{children:[(0,e.jsx)(i.wP,{color:N,mr:1}),(0,e.jsx)(i.q,{content:"Change Facial Hair Color",onClick:function(){return _("facial_hair_color")}})]}):null]})},h=function(p){var g=(0,r.yy)(),_=g.act,E=g.data,I=E.hair_style,M=E.hair_styles;return(0,e.jsx)(i.iG,{title:"Hair",fill:!0,scrollable:!0,children:M.map(function(P){return(0,e.jsx)(i.q,{onClick:function(){return _("hair",{hair:P.hairstyle})},selected:P.hairstyle===I,content:P.hairstyle},P.hairstyle)})})},c=function(p){var g=(0,r.yy)(),_=g.act,E=g.data,I=E.facial_hair_style,M=E.facial_hair_styles;return(0,e.jsx)(i.iG,{title:"Facial Hair",fill:!0,scrollable:!0,children:M.map(function(P){return(0,e.jsx)(i.q,{onClick:function(){return _("facial_hair",{facial_hair:P.facialhairstyle})},selected:P.facialhairstyle===I,content:P.facialhairstyle},P.facialhairstyle)})})},l=function(p){var g=(0,r.yy)(),_=g.act,E=g.data,I=E.ear_style,M=E.ear_styles;return(0,e.jsxs)(i.iG,{title:"Ears",fill:!0,scrollable:!0,children:[(0,e.jsx)(i.q,{onClick:function(){return _("ear",{clear:!0})},selected:I===null,content:"-- Not Set --"}),(0,a.cp)(function(P){return P.name.toLowerCase()})(M).map(function(P){return(0,e.jsx)(i.q,{onClick:function(){return _("ear",{ref:P.instance})},selected:P.name===I,content:P.name},P.instance)})]})},f=function(p){var g=(0,r.yy)(),_=g.act,E=g.data,I=E.tail_style,M=E.tail_styles;return(0,e.jsxs)(i.iG,{title:"Tails",fill:!0,scrollable:!0,children:[(0,e.jsx)(i.q,{onClick:function(){return _("tail",{clear:!0})},selected:I===null,content:"-- Not Set --"}),(0,a.cp)(function(P){return P.name.toLowerCase()})(M).map(function(P){return(0,e.jsx)(i.q,{onClick:function(){return _("tail",{ref:P.instance})},selected:P.name===I,content:P.name},P.instance)})]})},m=function(p){var g=(0,r.yy)(),_=g.act,E=g.data,I=E.wing_style,M=E.wing_styles;return(0,e.jsxs)(i.iG,{title:"Wings",fill:!0,scrollable:!0,children:[(0,e.jsx)(i.q,{onClick:function(){return _("wing",{clear:!0})},selected:I===null,content:"-- Not Set --"}),(0,a.cp)(function(P){return P.name.toLowerCase()})(M).map(function(P){return(0,e.jsx)(i.q,{onClick:function(){return _("wing",{ref:P.instance})},selected:P.name===I,content:P.name},P.instance)})]})},v=function(p){var g=(0,r.yy)(),_=g.act,E=g.data,I=E.markings;return(0,e.jsxs)(i.iG,{title:"Markings",fill:!0,scrollable:!0,children:[(0,e.jsx)(i.kv,{children:(0,e.jsx)(i.q,{content:"Add Marking",onClick:function(){return _("marking",{todo:1,name:"na"})}})}),(0,e.jsx)(i.Ce,{children:I.map(function(M){return(0,e.jsxs)(i.Ce.Item,{label:M.marking_name,children:[(0,e.jsx)(i.wP,{color:M.marking_color,mr:1}),(0,e.jsx)(i.q,{content:"Change Color",onClick:function(){return _("marking",{todo:4,name:M.marking_name})}}),(0,e.jsx)(i.q,{content:"-",onClick:function(){return _("marking",{todo:0,name:M.marking_name})}}),(0,e.jsx)(i.q,{content:"Move down",onClick:function(){return _("marking",{todo:3,name:M.marking_name})}}),(0,e.jsx)(i.q,{content:"Move up",onClick:function(){return _("marking",{todo:2,name:M.marking_name})}})]},M.marking_name)})})]})}},1464:function(S,y,n){"use strict";n.r(y),n.d(y,{ArcadeBattle:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.name,h=u.temp,c=u.enemyAction,l=u.enemyName,f=u.playerHP,m=u.playerMP,v=u.enemyHP,p=u.enemyMP,g=u.gameOver;return(0,e.jsx)(r.qo,{width:400,height:240,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsxs)(t.iG,{title:l,textAlign:"center",children:[(0,e.jsxs)(t.iG,{color:"label",children:[(0,e.jsx)(t.kv,{children:h}),(0,e.jsx)(t.kv,{children:!g&&c})]}),(0,e.jsxs)(t.Cu,{spacing:1,children:[(0,e.jsx)(t.Cu.Item,{children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Player Health",children:(0,e.jsxs)(t.cH,{value:f,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[f,"HP"]})}),(0,e.jsx)(t.Ce.Item,{label:"Player Magic",children:(0,e.jsxs)(t.cH,{value:m,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[m,"MP"]})})]})}),(0,e.jsx)(t.Cu.Item,{children:(0,e.jsx)(t.Ce,{children:(0,e.jsx)(t.Ce.Item,{label:"Enemy HP",children:(0,e.jsxs)(t.cH,{value:v,minValue:0,maxValue:45,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[v,"HP"]})})})})]}),g&&(0,e.jsx)(t.q,{fluid:!0,mt:1,color:"green",content:"New Game",onClick:function(){return x("newgame")}})||(0,e.jsxs)(t.Cu,{mt:2,justify:"space-between",spacing:1,children:[(0,e.jsx)(t.Cu.Item,{grow:1,children:(0,e.jsx)(t.q,{fluid:!0,icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",onClick:function(){return x("attack")},content:"Attack!"})}),(0,e.jsx)(t.Cu.Item,{grow:1,children:(0,e.jsx)(t.q,{fluid:!0,icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",onClick:function(){return x("heal")},content:"Heal!"})}),(0,e.jsx)(t.Cu.Item,{grow:1,children:(0,e.jsx)(t.q,{fluid:!0,icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",onClick:function(){return x("charge")},content:"Recharge!"})})]})]})})})}},30352:function(S,y,n){"use strict";n.r(y),n.d(y,{AreaScrubberControl:function(){return j}});var e=n(33496),a=n(33404),t=n(45280),r=n(76512),i=n(49900),j=function(x){var u=(0,t.yy)(),d=u.act,h=u.data,c=(0,t.cv)("showArea",!1),l=c[0],f=c[1],m=h.scrubbers;return m?(0,e.jsx)(r.qo,{width:600,height:400,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsxs)(a.iG,{children:[(0,e.jsxs)(a.Cu,{wrap:"wrap",children:[(0,e.jsx)(a.Cu.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(a.q,{textAlign:"center",fluid:!0,icon:"search",content:"Scan",onClick:function(){return d("scan")}})}),(0,e.jsx)(a.Cu.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(a.q,{textAlign:"center",fluid:!0,icon:"layer-group",content:"Show Areas",selected:l,onClick:function(){return f(!l)}})}),(0,e.jsx)(a.Cu.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(a.q,{textAlign:"center",fluid:!0,icon:"toggle-on",content:"All On",onClick:function(){return d("allon")}})}),(0,e.jsx)(a.Cu.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(a.q,{textAlign:"center",fluid:!0,icon:"toggle-off",content:"All Off",onClick:function(){return d("alloff")}})})]}),(0,e.jsx)(a.Cu,{wrap:"wrap",children:m.map(function(v){return(0,e.jsx)(a.Cu.Item,{m:"2px",basis:"32%",children:(0,e.jsx)(C,{scrubber:v,showArea:l})},v.id)})})]})})}):(0,e.jsxs)(a.iG,{title:"Error",children:[(0,e.jsx)(a.kv,{color:"bad",children:"No Scrubbers Detected."}),(0,e.jsx)(a.q,{fluid:!0,icon:"search",content:"Scan",onClick:function(){return d("scan")}})]})},C=function(x){var u=(0,t.yy)().act,d=x.scrubber,h=x.showArea;return(0,e.jsxs)(a.iG,{title:d.name,children:[(0,e.jsx)(a.q,{fluid:!0,icon:"power-off",content:d.on?"Enabled":"Disabled",selected:d.on,onClick:function(){return u("toggle",{id:d.id})}}),(0,e.jsxs)(a.Ce,{children:[(0,e.jsxs)(a.Ce.Item,{label:"Pressure",children:[d.pressure," kPa"]}),(0,e.jsxs)(a.Ce.Item,{label:"Flow Rate",children:[d.flow_rate," L/s"]}),(0,e.jsxs)(a.Ce.Item,{label:"Load",children:[d.load," W"]}),h&&(0,e.jsx)(a.Ce.Item,{label:"Area",children:(0,i.Yl)(d.area)})]})]})}},31836:function(S,y,n){"use strict";n.r(y),n.d(y,{AssemblyInfrared:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.on,h=u.visible;return(0,e.jsx)(r.qo,{children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(t.iG,{title:"Infrared Unit",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Laser",children:(0,e.jsx)(t.q,{icon:"power-off",fluid:!0,selected:d,onClick:function(){return x("state")},children:d?"On":"Off"})}),(0,e.jsx)(t.Ce.Item,{label:"Visibility",children:(0,e.jsx)(t.q,{icon:"eye",fluid:!0,selected:h,onClick:function(){return x("visible")},children:h?"Able to be seen":"Invisible"})})]})})})})}},73908:function(S,y,n){"use strict";n.r(y),n.d(y,{AssemblyProx:function(){return C}});var e=n(33496),a=n(10608),t=n(45280),r=n(33404),i=n(76512),j=n(96060),C=function(x){var u=(0,t.yy)(),d=u.act,h=u.data,c=h.timing,l=h.time,f=h.range,m=h.maxRange,v=h.scanning;return(0,e.jsx)(i.qo,{children:(0,e.jsxs)(i.qo.Content,{children:[(0,e.jsx)(r.iG,{title:"Timing Unit",children:(0,e.jsx)(r.Ce,{children:(0,e.jsx)(r.Ce.Item,{label:"Timer",buttons:(0,e.jsx)(r.q,{icon:"stopwatch",selected:c,onClick:function(){return d("timing")},children:c?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.WC,{animated:!0,fluid:!0,value:l/10,minValue:0,maxValue:600,format:function(p){return(0,j.AB)((0,a.kL)(p))},onDrag:function(p,g){return d("set_time",{time:g})}})})})}),(0,e.jsx)(r.iG,{title:"Prox Unit",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Range",children:(0,e.jsx)(r.WC,{minValue:1,value:f,maxValue:m,onDrag:function(p,g){return d("range",{range:g})}})}),(0,e.jsxs)(r.Ce.Item,{label:"Armed",children:[(0,e.jsx)(r.q,{mr:1,icon:v?"lock":"lock-open",selected:v,onClick:function(){return d("scanning")},children:v?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}},25696:function(S,y,n){"use strict";n.r(y),n.d(y,{AssemblyTimer:function(){return C}});var e=n(33496),a=n(10608),t=n(45280),r=n(33404),i=n(76512),j=n(96060),C=function(x){var u=(0,t.yy)(),d=u.act,h=u.data,c=h.timing,l=h.time;return(0,e.jsx)(i.qo,{children:(0,e.jsx)(i.qo.Content,{children:(0,e.jsx)(r.iG,{title:"Timing Unit",children:(0,e.jsx)(r.Ce,{children:(0,e.jsx)(r.Ce.Item,{label:"Timer",buttons:(0,e.jsx)(r.q,{icon:"stopwatch",selected:c,onClick:function(){return d("timing")},children:c?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.WC,{animated:!0,fluid:!0,value:l/10,minValue:0,maxValue:600,format:function(f){return(0,j.AB)((0,a.kL)(f))},onDrag:function(f,m){return d("set_time",{time:m})}})})})})})})}},12144:function(S,y,n){"use strict";n.r(y),n.d(y,{AtmosAlertConsole:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.priority_alarms||[],h=u.minor_alarms||[];return(0,e.jsx)(r.qo,{width:350,height:300,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(t.iG,{title:"Alarms",children:(0,e.jsxs)("ul",{children:[d.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Priority Alerts"}),d.map(function(c){return(0,e.jsx)("li",{children:(0,e.jsx)(t.q,{icon:"times",content:c.name,color:"bad",onClick:function(){return x("clear",{ref:c.ref})}})},c.name)}),h.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Minor Alerts"}),h.map(function(c){return(0,e.jsx)("li",{children:(0,e.jsx)(t.q,{icon:"times",content:c.name,color:"average",onClick:function(){return x("clear",{ref:c.ref})}})},c.name)})]})})})})}},67064:function(S,y,n){"use strict";n.r(y),n.d(y,{AtmosControl:function(){return x},AtmosControlContent:function(){return u}});var e=n(33496),a=n(47392),t=n(76512),r=n(33404),i=n(45280),j=n(37756),C=(0,j.m)("fuck"),x=function(d){return(0,e.jsx)(t.qo,{width:600,height:440,children:(0,e.jsx)(t.qo.Content,{scrollable:!0,children:(0,e.jsx)(u,{})})})},u=function(d){var h=(0,i.yy)(),c=h.act,l=h.data,f=h.config,m=(0,a.cp)(function(P){return P.name})(l.alarms||[]),v=(0,i.cv)("tabIndex",0),p=v[0],g=v[1],_=(0,i.cv)("zoom",1),E=_[0],I=_[1],M;return p===0?M=(0,e.jsx)(r.iG,{title:"Alarms",children:m.map(function(P){return(0,e.jsx)(r.q,{content:P.name,color:P.danger===2?"bad":P.danger===1?"average":"",onClick:function(){return c("alarm",{alarm:P.ref})}},P.name)})}):p===1&&(M=(0,e.jsx)(r.kv,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(r.mo,{onZoom:function(P){return I(P)},children:m.filter(function(P){return~~P.z===~~f.mapZLevel}).map(function(P){return(0,e.jsx)(r.mo.Marker,{x:P.x,y:P.y,zoom:E,icon:"bell",tooltip:P.name,color:P.danger?"red":"green",onClick:function(){return c("alarm",{alarm:P.ref})}},P.ref)})})})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.kZ,{children:[(0,e.jsxs)(r.kZ.Tab,{selected:p===0,onClick:function(){return g(0)},children:[(0,e.jsx)(r.GW,{name:"table"})," Alarm View"]},"AlarmView"),(0,e.jsxs)(r.kZ.Tab,{selected:p===1,onClick:function(){return g(1)},children:[(0,e.jsx)(r.GW,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(r.kv,{m:2,children:M})]})}},31552:function(S,y,n){"use strict";n.r(y),n.d(y,{AtmosFilter:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.filter_types||[];return(0,e.jsx)(r.qo,{width:390,height:187,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(t.iG,{children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Power",children:(0,e.jsx)(t.q,{icon:u.on?"power-off":"times",content:u.on?"On":"Off",selected:u.on,onClick:function(){return x("power")}})}),(0,e.jsxs)(t.Ce.Item,{label:"Transfer Rate",children:[(0,e.jsx)(t.kv,{inline:!0,mr:1,children:(0,e.jsx)(t.Gg,{value:u.last_flow_rate,format:function(h){return h+" L/s"}})}),(0,e.jsx)(t.WC,{animated:!0,value:parseFloat(u.rate),width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(h,c){return x("rate",{rate:c})}}),(0,e.jsx)(t.q,{ml:1,icon:"plus",content:"Max",disabled:u.rate===u.max_rate,onClick:function(){return x("rate",{rate:"max"})}})]}),(0,e.jsx)(t.Ce.Item,{label:"Filter",children:d.map(function(h){return(0,e.jsx)(t.q,{selected:h.selected,content:h.name,onClick:function(){return x("filter",{filterset:h.f_type})}},h.name)})})]})})})})}},39232:function(S,y,n){"use strict";n.r(y),n.d(y,{AtmosMixer:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data;return(0,e.jsx)(r.qo,{width:370,height:195,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(t.iG,{children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Power",children:(0,e.jsx)(t.q,{icon:u.on?"power-off":"times",content:u.on?"On":"Off",selected:u.on,onClick:function(){return x("power")}})}),(0,e.jsxs)(t.Ce.Item,{label:"Output Pressure",children:[(0,e.jsx)(t.WC,{animated:!0,value:parseFloat(u.set_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:u.max_pressure,step:10,onChange:function(d,h){return x("pressure",{pressure:h})}}),(0,e.jsx)(t.q,{ml:1,icon:"plus",content:"Max",disabled:u.set_pressure===u.max_pressure,onClick:function(){return x("pressure",{pressure:"max"})}})]}),(0,e.jsx)(t.Ce.Divider,{size:1}),(0,e.jsx)(t.Ce.Item,{color:"label",children:(0,e.jsx)("u",{children:"Concentrations"})}),(0,e.jsx)(t.Ce.Item,{label:"Node 1 ("+u.node1_dir+")",children:(0,e.jsx)(t.WC,{animated:!0,value:u.node1_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(d,h){return x("node1",{concentration:h})}})}),(0,e.jsx)(t.Ce.Item,{label:"Node 2 ("+u.node2_dir+")",children:(0,e.jsx)(t.WC,{animated:!0,value:u.node2_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(d,h){return x("node2",{concentration:h})}})})]})})})})}},21644:function(S,y,n){"use strict";n.r(y),n.d(y,{Autolathe:function(){return f}});var e=n(33496),a=n(18140),t=n(47392),r=n(45280),i=n(33404),j=n(76512),C=n(93436),x=n(49900);function u(m,v){(v==null||v>m.length)&&(v=m.length);for(var p=0,g=new Array(v);p=m.length?{done:!0}:{done:!1,value:m[g++]}}}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 l=function(m,v,p){var g=function(){var P=I.value,D=v.find(function(k){return k.name===P});if(!D)return"continue";if(D.amount=0)&&(v[g]=f[g]);return v}var x={Alphabetical:function(f,m){return f-m},"By availability":function(f,m){return-(f.affordable-m.affordable)},"By price":function(f,m){return f.price-m.price}},u=function(f){var m=(0,t.yy)(),v=m.act,p=m.data;return(0,e.jsx)(i.qo,{width:400,height:450,children:(0,e.jsx)(i.qo.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:p.processing&&(0,e.jsx)(r.iG,{title:"Processing",children:"The biogenerator is processing reagents!"})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.iG,{children:[p.points," points available.",(0,e.jsx)(r.q,{ml:1,icon:"blender",onClick:function(){return v("activate")},children:"Activate"}),(0,e.jsx)(r.q,{ml:1,icon:"eject",disabled:!p.beaker,onClick:function(){return v("detach")},children:"Eject Beaker"})]}),(0,e.jsx)(h,{}),(0,e.jsx)(d,{})]})})})},d=function(f){var m=(0,t.yy)(),v=m.act,p=m.data,g=p.points,_=p.items,E=(0,t.cv)("search",""),I=E[0],M=E[1],P=(0,t.cv)("sort","Alphabetical"),D=P[0],k=P[1],L=(0,t.cv)("descending",!1),F=L[0],w=L[1],N=(0,a.od)(I,function(K){return K[0]}),$=!1,H=Object.entries(_).map(function(K,U){var q=Object.entries(K[1]).filter(N).map(function(Y){return Y[1].affordable=g>=Y[1].price/p.build_eff,Y[1]}).sort(x[D]);if(q.length!==0)return F&&(q=q.reverse()),$=!0,(0,e.jsx)(l,{title:K[0],items:q},K[0])});return(0,e.jsx)(r.Cu.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(r.iG,{children:$?H:(0,e.jsx)(r.kv,{color:"label",children:"No items matching your criteria was found!"})})})},h=function(f){var m=(0,t.cv)("search",""),v=m[0],p=m[1],g=(0,t.cv)("sort",""),_=g[0],E=g[1],I=(0,t.cv)("descending",!1),M=I[0],P=I[1];return(0,e.jsx)(r.kv,{mb:"0.5rem",children:(0,e.jsxs)(r.Cu,{width:"100%",children:[(0,e.jsx)(r.Cu.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(r.EF,{placeholder:"Search by item name..",width:"100%",onInput:function(D,k){return p(k)}})}),(0,e.jsx)(r.Cu.Item,{basis:"30%",children:(0,e.jsx)(r.cS,{selected:"Alphabetical",options:Object.keys(x),width:"100%",lineHeight:"19px",onSelected:function(D){return E(D)}})}),(0,e.jsx)(r.Cu.Item,{children:(0,e.jsx)(r.q,{icon:M?"arrow-down":"arrow-up",height:"19px",tooltip:M?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return P(!M)}})})]})})},c=function(f,m){return!(!f.affordable||f.reagent&&!m.beaker)},l=function(f){var m=(0,t.yy)(),v=m.act,p=m.data,g=f.title,_=f.items,E=C(f,["title","items"]);return(0,e.jsx)(r.Uv,j({open:!0,title:g},E,{children:_.map(function(I){return(0,e.jsxs)(r.kv,{children:[(0,e.jsx)(r.kv,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:I.name}),(0,e.jsx)(r.q,{disabled:!c(I,p),content:(I.price/p.build_eff).toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return v("purchase",{cat:g,name:I.name})}}),(0,e.jsx)(r.kv,{style:{clear:"both"}})]},I.name)})}))}},89744:function(S,y,n){"use strict";n.r(y),n.d(y,{BodyDesigner:function(){return j}});var e=n(33496),a=n(49900),t=n(45280),r=n(33404),i=n(76512),j=function(l){var f=(0,t.yy)(),m=f.act,v=f.data,p=v.menu,g=v.disk,_=v.diskStored,E=v.activeBodyRecord,I=c[p];return(0,e.jsx)(i.qo,{width:400,height:650,children:(0,e.jsxs)(i.qo.Content,{children:[g?(0,e.jsxs)(r.kv,{children:[(0,e.jsx)(r.q,{icon:"save",content:"Save To Disk",onClick:function(){return m("savetodisk")},disabled:!E}),(0,e.jsx)(r.q,{icon:"save",content:"Load From Disk",onClick:function(){return m("loadfromdisk")},disabled:!_}),(0,e.jsx)(r.q,{icon:"eject",content:"Eject",onClick:function(){return m("ejectdisk")}})]}):null,I]})})},C=function(l){var f=(0,t.yy)(),m=f.act,v=f.data;return(0,e.jsxs)(r.iG,{title:"Database Functions",children:[(0,e.jsx)(r.q,{icon:"eye",content:"View Individual Body Records",onClick:function(){return m("menu",{menu:"Body Records"})}}),(0,e.jsx)(r.q,{icon:"eye",content:"View Stock Body Records",onClick:function(){return m("menu",{menu:"Stock Records"})}})]})},x=function(l){var f=(0,t.yy)(),m=f.act,v=f.data,p=v.bodyrecords;return(0,e.jsx)(r.iG,{title:"Body Records",buttons:(0,e.jsx)(r.q,{icon:"arrow-left",content:"Back",onClick:function(){return m("menu",{menu:"Main"})}}),children:p.map(function(g){return(0,e.jsx)(r.q,{icon:"eye",content:g.name,onClick:function(){return m("view_brec",{view_brec:g.recref})}},g.name)})})},u=function(l){var f=(0,t.yy)(),m=f.act,v=f.data,p=v.stock_bodyrecords;return(0,e.jsx)(r.iG,{title:"Stock Records",buttons:(0,e.jsx)(r.q,{icon:"arrow-left",content:"Back",onClick:function(){return m("menu",{menu:"Main"})}}),children:p.map(function(g){return(0,e.jsx)(r.q,{icon:"eye",content:g,onClick:function(){return m("view_stock_brec",{view_stock_brec:g})}},g)})})},d=function(l){var f=(0,t.yy)(),m=f.act,v=f.data,p=v.activeBodyRecord,g=v.mapRef;return p?(0,e.jsxs)(r.Cu,{direction:"column",children:[(0,e.jsx)(r.Cu.Item,{basis:"165px",children:(0,e.jsx)(r.iG,{title:"Specific Record",buttons:(0,e.jsx)(r.q,{icon:"arrow-left",content:"Back",onClick:function(){return m("menu",{menu:"Main"})}}),children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Name",children:p.real_name}),(0,e.jsx)(r.Ce.Item,{label:"Species",children:p.speciesname}),(0,e.jsx)(r.Ce.Item,{label:"Bio. Sex",children:(0,e.jsx)(r.q,{icon:"pen",content:(0,a.Yj)(p.gender),onClick:function(){return m("href_conversion",{target_href:"bio_gender",target_value:1})}})}),(0,e.jsx)(r.Ce.Item,{label:"Synthetic",children:p.synthetic}),(0,e.jsxs)(r.Ce.Item,{label:"Mind Compat",children:[p.locked,(0,e.jsx)(r.q,{ml:1,icon:"eye",content:"View OOC Notes",disabled:!p.booc,onClick:function(){return m("boocnotes")}})]})]})})}),(0,e.jsx)(r.Cu.Item,{basis:"130px",children:(0,e.jsx)(r.cb,{style:{width:"100%",height:"128px"},params:{id:g,type:"map"}})}),(0,e.jsx)(r.Cu.Item,{basis:"300px",children:(0,e.jsx)(r.iG,{title:"Customize",height:"300px",style:{overflow:"auto"},children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Scale",children:(0,e.jsx)(r.q,{icon:"pen",content:p.scale,onClick:function(){return m("href_conversion",{target_href:"size_multiplier",target_value:1})}})}),Object.keys(p.styles).map(function(_){var E=p.styles[_];return(0,e.jsxs)(r.Ce.Item,{label:_,children:[E.styleHref?(0,e.jsx)(r.q,{icon:"pen",content:E.style,onClick:function(){return m("href_conversion",{target_href:E.styleHref,target_value:1})}}):null,E.colorHref?(0,e.jsxs)(r.kv,{children:[(0,e.jsx)(r.q,{icon:"pen",content:E.color,onClick:function(){return m("href_conversion",{target_href:E.colorHref,target_value:1})}}),(0,e.jsx)(r.wP,{verticalAlign:"top",width:"32px",height:"20px",color:E.color,style:{border:"1px solid #fff"}})]}):null,E.colorHref2?(0,e.jsxs)(r.kv,{children:[(0,e.jsx)(r.q,{icon:"pen",content:E.color2,onClick:function(){return m("href_conversion",{target_href:E.colorHref2,target_value:1})}}),(0,e.jsx)(r.wP,{verticalAlign:"top",width:"32px",height:"20px",color:E.color2,style:{border:"1px solid #fff"}})]}):null]},_)}),(0,e.jsxs)(r.Ce.Item,{label:"Body Markings",children:[(0,e.jsx)(r.q,{icon:"plus",content:"Add Marking",onClick:function(){return m("href_conversion",{target_href:"marking_style",target_value:1})}}),(0,e.jsx)(r.Cu,{wrap:"wrap",justify:"center",align:"center",children:Object.keys(p.markings).map(function(_){var E=p.markings[_];return(0,e.jsx)(r.Cu.Item,{basis:"100%",children:(0,e.jsxs)(r.Cu,{children:[(0,e.jsx)(r.Cu.Item,{children:(0,e.jsx)(r.q,{mr:.2,fluid:!0,icon:"times",color:"red",onClick:function(){return m("href_conversion",{target_href:"marking_remove",target_value:_})}})}),(0,e.jsx)(r.Cu.Item,{grow:1,children:(0,e.jsx)(r.q,{fluid:!0,backgroundColor:E,content:_,onClick:function(){return m("href_conversion",{target_href:"marking_color",target_value:_})}})})]})},_)})})]})]})})})]}):(0,e.jsx)(r.kv,{color:"bad",children:"ERROR: Record Not Found!"})},h=function(l){var f=(0,t.yy)(),m=f.act,v=f.data,p=v.activeBodyRecord;return(0,e.jsx)(r.iG,{title:"Body OOC Notes (This is OOC!)",height:"100%",scrollable:!0,buttons:(0,e.jsx)(r.q,{icon:"arrow-left",content:"Back",onClick:function(){return m("menu",{menu:"Specific Record"})}}),style:{"word-break":"break-all"},children:p&&p.booc||"ERROR: Body record not found!"})},c={Main:(0,e.jsx)(C,{}),"Body Records":(0,e.jsx)(x,{}),"Stock Records":(0,e.jsx)(u,{}),"Specific Record":(0,e.jsx)(d,{}),"OOC Notes":(0,e.jsx)(h,{})}},17644:function(S,y,n){"use strict";n.r(y),n.d(y,{BodyScanner:function(){return l}});var e=n(33496),a=n(10608),t=n(45280),r=n(33404),i=n(76512),j=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],C=[["hasBorer","bad",function(P){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(P){return"Viral pathogen detected in blood stream."}],["blind","average",function(P){return"Cataracts detected."}],["colourblind","average",function(P){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(P){return"Retinal misalignment detected."}],["humanPrey","average",function(P){return"Foreign Humanoid(s) detected: "+P.humanPrey}],["livingPrey","average",function(P){return"Foreign Creature(s) detected: "+P.livingPrey}],["objectPrey","average",function(P){return"Foreign Object(s) detected: "+P.objectPrey}]],x=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],u={average:[.25,.5],bad:[.5,1/0]},d=function(P,D){for(var k=[],L=0;L0?P.reduce(function(D,k){return D===null?k:(0,e.jsxs)(e.Fragment,{children:[D,!!k&&(0,e.jsx)(r.kv,{children:k})]})}):null},c=function(P){if(P>100){if(P<300)return"mild infection";if(P<400)return"mild infection+";if(P<500)return"mild infection++";if(P<700)return"acute infection";if(P<800)return"acute infection+";if(P<900)return"acute infection++";if(P>=900)return"septic"}return""},l=function(P){var D=(0,t.yy)().data,k=D.occupied,L=D.occupant,F=L===void 0?{}:L,w=k?(0,e.jsx)(f,{occupant:F}):(0,e.jsx)(M,{});return(0,e.jsx)(i.qo,{width:690,height:600,children:(0,e.jsx)(i.qo.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:w})})},f=function(P){var D=P.occupant;return(0,e.jsxs)(r.kv,{children:[(0,e.jsx)(m,{occupant:D}),(0,e.jsx)(v,{occupant:D}),(0,e.jsx)(p,{occupant:D}),(0,e.jsx)(g,{occupant:D}),(0,e.jsx)(E,{organs:D.extOrgan}),(0,e.jsx)(I,{organs:D.intOrgan})]})},m=function(P){var D=(0,t.yy)(),k=D.act,L=D.data,F=L.occupant;return(0,e.jsx)(r.iG,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{icon:"user-slash",onClick:function(){return k("ejectify")},children:"Eject"}),(0,e.jsx)(r.q,{icon:"print",onClick:function(){return k("print_p")},children:"Print Report"})]}),children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Name",children:F.name}),(0,e.jsx)(r.Ce.Item,{label:"Health",children:(0,e.jsx)(r.cH,{min:"0",max:F.maxHealth,value:F.health/F.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(r.Ce.Item,{label:"Status",color:j[F.stat][0],children:j[F.stat][1]}),(0,e.jsxs)(r.Ce.Item,{label:"Temperature",children:[(0,e.jsx)(r.Gg,{value:(0,a.kL)(F.bodyTempC,0)}),"\xB0C,\xA0",(0,e.jsx)(r.Gg,{value:(0,a.kL)(F.bodyTempF,0)}),"\xB0F"]}),(0,e.jsxs)(r.Ce.Item,{label:"Blood Volume",children:[(0,e.jsx)(r.Gg,{value:(0,a.kL)(F.blood.volume,0)})," ","units\xA0(",(0,e.jsx)(r.Gg,{value:(0,a.kL)(F.blood.percent,0)}),"%)"]}),(0,e.jsx)(r.Ce.Item,{label:"Weight",children:(0,a.kL)(L.occupant.weight)+"lbs, "+(0,a.kL)(L.occupant.weight/2.20463)+"kgs"})]})})},v=function(P){var D=P.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.iG,{title:"Blood Reagents",children:D.reagents?(0,e.jsxs)(r.oJ,{children:[(0,e.jsxs)(r.oJ.Row,{header:!0,children:[(0,e.jsx)(r.oJ.Cell,{children:"Reagent"}),(0,e.jsx)(r.oJ.Cell,{textAlign:"right",children:"Amount"})]}),D.reagents.map(function(k){return(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsx)(r.oJ.Cell,{children:k.name}),(0,e.jsxs)(r.oJ.Cell,{textAlign:"right",children:[k.amount," Units"," ",k.overdose?(0,e.jsx)(r.kv,{color:"bad",children:"OVERDOSING"}):null]})]},k.name)})]}):(0,e.jsx)(r.kv,{color:"good",children:"No Blood Reagents Detected"})}),(0,e.jsx)(r.iG,{title:"Stomach Reagents",children:D.ingested?(0,e.jsxs)(r.oJ,{children:[(0,e.jsxs)(r.oJ.Row,{header:!0,children:[(0,e.jsx)(r.oJ.Cell,{children:"Reagent"}),(0,e.jsx)(r.oJ.Cell,{textAlign:"right",children:"Amount"})]}),D.ingested.map(function(k){return(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsx)(r.oJ.Cell,{children:k.name}),(0,e.jsxs)(r.oJ.Cell,{textAlign:"right",children:[k.amount," Units"," ",k.overdose?(0,e.jsx)(r.kv,{color:"bad",children:"OVERDOSING"}):null]})]},k.name)})]}):(0,e.jsx)(r.kv,{color:"good",children:"No Stomach Reagents Detected"})})]})},p=function(P){var D=P.occupant,k=D.hasBorer||D.blind||D.colourblind||D.nearsighted||D.hasVirus;return k=k||D.humanPrey||D.livingPrey||D.objectPrey,k?(0,e.jsx)(r.iG,{title:"Abnormalities",children:C.map(function(L,F){if(D[L[0]])return(0,e.jsx)(r.kv,{color:L[1],bold:L[1]==="bad",children:L[2](D)})})}):(0,e.jsx)(r.iG,{title:"Abnormalities",children:(0,e.jsx)(r.kv,{color:"label",children:"No abnormalities found."})})},g=function(P){var D=P.occupant;return(0,e.jsx)(r.iG,{title:"Damage",children:(0,e.jsx)(r.oJ,{children:d(x,function(k,L,F){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.oJ.Row,{color:"label",children:[(0,e.jsxs)(r.oJ.Cell,{children:[k[0],":"]}),(0,e.jsx)(r.oJ.Cell,{children:!!L&&L[0]+":"})]}),(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(_,{value:D[k[1]],marginBottom:F0&&"0.5rem",value:D.totalLoss/100,ranges:u,children:[(0,e.jsxs)(r.kv,{float:"left",inline:!0,children:[!!D.bruteLoss&&(0,e.jsxs)(r.kv,{inline:!0,position:"relative",children:[(0,e.jsx)(r.GW,{name:"bone"}),(0,a.kL)(D.bruteLoss,0),"\xA0",(0,e.jsx)(r.o5,{position:"top",content:"Brute damage"})]}),!!D.fireLoss&&(0,e.jsxs)(r.kv,{inline:!0,position:"relative",children:[(0,e.jsx)(r.GW,{name:"fire"}),(0,a.kL)(D.fireLoss,0),(0,e.jsx)(r.o5,{position:"top",content:"Burn damage"})]})]}),(0,e.jsx)(r.kv,{inline:!0,children:(0,a.kL)(D.totalLoss,0)})]})}),(0,e.jsxs)(r.oJ.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(r.kv,{color:"average",inline:!0,children:h([D.internalBleeding&&"Internal bleeding",!!D.status.bleeding&&"External bleeding",D.lungRuptured&&"Ruptured lung",D.destroyed&&"Destroyed",!!D.status.broken&&D.status.broken,c(D.germ_level),!!D.open&&"Open incision"])}),(0,e.jsxs)(r.kv,{inline:!0,children:[h([!!D.status.splinted&&"Splinted",!!D.status.robotic&&"Robotic",!!D.status.dead&&(0,e.jsx)(r.kv,{color:"bad",children:"DEAD"})]),h(D.implants.map(function(L){return L.known?L.name:"Unknown object"}))]})]})]},k)})]})})},I=function(P){return P.organs.length===0?(0,e.jsx)(r.iG,{title:"Internal Organs",children:(0,e.jsx)(r.kv,{color:"label",children:"N/A"})}):(0,e.jsx)(r.iG,{title:"Internal Organs",children:(0,e.jsxs)(r.oJ,{children:[(0,e.jsxs)(r.oJ.Row,{header:!0,children:[(0,e.jsx)(r.oJ.Cell,{children:"Name"}),(0,e.jsx)(r.oJ.Cell,{textAlign:"center",children:"Damage"}),(0,e.jsx)(r.oJ.Cell,{textAlign:"right",children:"Injuries"})]}),P.organs.map(function(D,k){return(0,e.jsxs)(r.oJ.Row,{textTransform:"capitalize",children:[(0,e.jsx)(r.oJ.Cell,{width:"33%",children:D.name}),(0,e.jsx)(r.oJ.Cell,{textAlign:"center",children:(0,e.jsx)(r.cH,{min:"0",max:D.maxHealth,value:D.damage/100,mt:k>0&&"0.5rem",ranges:u,children:(0,a.kL)(D.damage,0)})}),(0,e.jsxs)(r.oJ.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(r.kv,{color:"average",inline:!0,children:h([c(D.germ_level),!!D.inflamed&&"Appendicitis detected."])}),(0,e.jsx)(r.kv,{inline:!0,children:h([D.robotic===1&&"Robotic",D.robotic===2&&"Assisted",!!D.dead&&(0,e.jsx)(r.kv,{color:"bad",children:"DEAD"})])})]})]},k)})]})})},M=function(){return(0,e.jsx)(r.iG,{textAlign:"center",flexGrow:"1",children:(0,e.jsx)(r.Cu,{height:"100%",children:(0,e.jsxs)(r.Cu.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.GW,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected."]})})})}},53716:function(S,y,n){"use strict";n.r(y),n.d(y,{BombTester:function(){return u}});var e=n(33496),a=n(69344),t=n(45280),r=n(33404),i=n(76512);function j(){return j=Object.assign||function(h){for(var c=1;c.5,E=Math.random()>.5;return m.state={x:_?v:0,y:E?p:0,reverseX:!1,reverseY:!1},m.process=setInterval(function(){m.setState(function(I){var M=j({},I);return M.reverseX?M.x-g<-5?(M.reverseX=!1,M.x+=g):M.x-=g:M.x+g>v?(M.reverseX=!0,M.x-=g):M.x+=g,M.reverseY?M.y-g<-20?(M.reverseY=!1,M.y+=g):M.y-=g:M.y+g>p?(M.reverseY=!0,M.y-=g):M.y+=g,M})},1),m}var l=c.prototype;return l.componentWillUnmount=function(){clearInterval(this.process)},l.render=function(){var m=this.state,v=m.x,p=m.y,g={position:"relative",left:v+"px",top:p+"px"};return(0,e.jsx)(r.iG,{title:"Simulation in progress!",fill:!0,children:(0,e.jsx)(r.kv,{position:"absolute",style:{overflow:"hidden",width:"100%",height:"100%"},children:(0,e.jsx)(r.GW,{style:g,name:"bomb",size:10,color:"red"})})})},c}(a.Component)},88588:function(S,y,n){"use strict";n.r(y),n.d(y,{BotanyEditor:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.activity,h=u.degradation,c=u.disk,l=u.sourceName,f=u.locus,m=u.loaded;return d?(0,e.jsx)(r.qo,{width:470,height:500,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(t.yc,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.qo,{width:470,height:500,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(t.iG,{title:"Buffered Genetic Data",children:c&&(0,e.jsxs)(t.kv,{children:[(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Source",children:l}),(0,e.jsxs)(t.Ce.Item,{label:"Gene Decay",children:[h,"%"]}),(0,e.jsx)(t.Ce.Item,{label:"Locus",children:f})]}),(0,e.jsx)(t.q,{mt:1,icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"})]})||(0,e.jsx)(t.yc,{warning:!0,children:"No disk loaded."})}),(0,e.jsx)(t.iG,{title:"Loaded Material",children:m&&(0,e.jsxs)(t.kv,{children:[(0,e.jsx)(t.Ce,{children:(0,e.jsx)(t.Ce.Item,{label:"Target",children:m})}),(0,e.jsx)(t.q,{mt:1,icon:"cog",onClick:function(){return x("apply_gene")},children:"Apply Gene Mods"}),(0,e.jsx)(t.q,{mt:1,icon:"eject",onClick:function(){return x("eject_packet")},children:"Eject Target"})]})||(0,e.jsx)(t.yc,{warning:!0,children:"No target seed packet loaded."})})]})})}},30592:function(S,y,n){"use strict";n.r(y),n.d(y,{BotanyIsolator:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.geneMasks,h=u.activity,c=u.degradation,l=u.disk,f=u.loaded,m=u.hasGenetics,v=u.sourceName;return h?(0,e.jsx)(r.qo,{width:470,height:500,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(t.yc,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.qo,{width:470,height:500,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(t.iG,{title:"Buffered Genetic Data",children:m&&(0,e.jsxs)(t.kv,{children:[(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Source",children:v}),(0,e.jsxs)(t.Ce.Item,{label:"Gene decay",children:[c,"%"]}),l&&d.length&&d.map(function(p){return(0,e.jsx)(t.Ce.Item,{label:p.mask,children:(0,e.jsx)(t.q,{mb:-1,icon:"download",onClick:function(){return x("get_gene",{get_gene:p.tag})},children:"Extract"})},p.mask)})||null]}),l&&(0,e.jsxs)(t.kv,{mt:1,children:[(0,e.jsx)(t.q,{icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"}),(0,e.jsx)(t.q,{icon:"trash",onClick:function(){return x("clear_buffer")},children:"Clear Genetic Buffer"})]})||(0,e.jsx)(t.yc,{mt:1,warning:!0,children:"No disk inserted."})]})||(0,e.jsxs)(t.kv,{children:[(0,e.jsx)(t.yc,{warning:!0,children:"No Data Buffered."}),l&&(0,e.jsx)(t.q,{icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"})||(0,e.jsx)(t.yc,{mt:1,warning:!0,children:"No disk inserted."})]})}),(0,e.jsx)(t.iG,{title:"Loaded Material",children:f&&(0,e.jsxs)(t.kv,{children:[(0,e.jsx)(t.Ce,{children:(0,e.jsx)(t.Ce.Item,{label:"Packet Loaded",children:f})}),(0,e.jsx)(t.q,{mt:1,icon:"cog",onClick:function(){return x("scan_genome")},children:"Process Genome"}),(0,e.jsx)(t.q,{icon:"eject",onClick:function(){return x("eject_packet")},children:"Eject Packet"})]})||(0,e.jsx)(t.yc,{warning:!0,children:"No packet loaded."})})]})})}},95844:function(S,y,n){"use strict";n.r(y),n.d(y,{BrigTimer:function(){return C}});var e=n(33496),a=n(10608),t=n(45280),r=n(33404),i=n(76512),j=n(96060),C=function(x){var u=(0,t.yy)(),d=u.act,h=u.data;return(0,e.jsx)(i.qo,{width:300,height:138,children:(0,e.jsx)(i.qo.Content,{scrollable:!0,children:(0,e.jsxs)(r.iG,{title:"Cell Timer",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{icon:"clock-o",content:h.timing?"Stop":"Start",selected:h.timing,onClick:function(){return d(h.timing?"stop":"start")}}),h.flash_found&&(0,e.jsx)(r.q,{icon:"lightbulb-o",content:h.flash_charging?"Recharging":"Flash",disabled:h.flash_charging,onClick:function(){return d("flash")}})||null]}),children:[(0,e.jsx)(r.WC,{animated:!0,fluid:!0,value:h.time_left/10,minValue:0,maxValue:h.max_time_left/10,format:function(c){return(0,j.AB)((0,a.kL)(c))},onDrag:function(c,l){return d("time",{time:l})}}),(0,e.jsxs)(r.Cu,{mt:1,children:[(0,e.jsx)(r.Cu.Item,{grow:1,children:(0,e.jsx)(r.q,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,j.AB)(h.preset_short/10),onClick:function(){return d("preset",{preset:"short"})}})}),(0,e.jsx)(r.Cu.Item,{grow:1,children:(0,e.jsx)(r.q,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,j.AB)(h.preset_medium/10),onClick:function(){return d("preset",{preset:"medium"})}})}),(0,e.jsx)(r.Cu.Item,{grow:1,children:(0,e.jsx)(r.q,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,j.AB)(h.preset_long/10),onClick:function(){return d("preset",{preset:"long"})}})})]})]})})})}},42040:function(S,y,n){"use strict";n.r(y),n.d(y,{CameraConsole:function(){return h},CameraConsoleContent:function(){return c},prevNextCamera:function(){return u},selectCameras:function(){return d}});var e=n(33496),a=n(47392),t=n(18140),r=n(28324),i=n(49900),j=n(45280),C=n(33404),x=n(76512),u=function(l,f){var m,v;if(!f)return[];var p=l.findIndex(function(g){return g.name===f.name});return[(m=l[p-1])==null?void 0:m.name,(v=l[p+1])==null?void 0:v.name]},d=function(l,f,m){f===void 0&&(f=""),m===void 0&&(m="");var v=(0,i.od)(f,function(p){return p.name});return(0,t.k)([(0,a.IF)(function(p){return p==null?void 0:p.name}),f&&(0,a.IF)(v),m&&(0,a.IF)(function(p){return p.networks.includes(m)}),(0,a.cp)(function(p){return p.name})])(l)},h=function(l){var f=(0,j.yy)(),m=f.act,v=f.data,p=v.mapRef,g=v.activeCamera,_=d(v.cameras),E=u(_,g),I=E[0],M=E[1];return(0,e.jsxs)(x.qo,{width:870,height:708,children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(x.qo.Content,{scrollable:!0,children:(0,e.jsx)(c,{})})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),g&&g.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(C.q,{icon:"chevron-left",disabled:!I,onClick:function(){return m("switch_camera",{name:I})}}),(0,e.jsx)(C.q,{icon:"chevron-right",disabled:!M,onClick:function(){return m("switch_camera",{name:M})}}),"| PAN:",(0,e.jsx)(C.q,{icon:"chevron-left",onClick:function(){return m("pan",{dir:8})}}),(0,e.jsx)(C.q,{icon:"chevron-up",onClick:function(){return m("pan",{dir:1})}}),(0,e.jsx)(C.q,{icon:"chevron-right",onClick:function(){return m("pan",{dir:4})}}),(0,e.jsx)(C.q,{icon:"chevron-down",onClick:function(){return m("pan",{dir:2})}})]}),(0,e.jsx)(C.cb,{className:"CameraConsole__map",params:{id:p,type:"map"}})]})]})},c=function(l){var f=(0,j.yy)(),m=f.act,v=f.data,p=(0,j.cv)("searchText",""),g=p[0],_=p[1],E=(0,j.cv)("networkFilter",""),I=E[0],M=E[1],P=v.activeCamera,D=v.allNetworks;D.sort();var k=d(v.cameras,g,I);return(0,e.jsxs)(C.Cu,{direction:"column",height:"100%",children:[(0,e.jsx)(C.Cu.Item,{children:(0,e.jsx)(C.EF,{autoFocus:!0,fluid:!0,mt:1,placeholder:"Search for a camera",onInput:function(L,F){return _(F)}})}),(0,e.jsx)(C.Cu.Item,{children:(0,e.jsx)(C.cS,{mb:1,width:"177px",displayText:I||"No Filter",options:D,onSelected:function(L){return M(L)}})}),(0,e.jsx)(C.Cu.Item,{height:"100%",children:(0,e.jsx)(C.iG,{fill:!0,scrollable:!0,children:k.map(function(L){return(0,e.jsx)("div",{title:L.name,className:(0,r.iE)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",P&&L.name===P.name&&"Button--selected"]),onClick:function(){return m("switch_camera",{name:L.name})},children:L.name},L.name)})})})]})}},38624:function(S,y,n){"use strict";n.r(y),n.d(y,{Canister:function(){return C}});var e=n(33496),a=n(10608),t=n(45280),r=n(33404),i=n(96060),j=n(76512),C=function(x){var u=(0,t.yy)(),d=u.act,h=u.data,c=h.connected,l=h.can_relabel,f=h.pressure,m=h.releasePressure,v=h.defaultReleasePressure,p=h.minReleasePressure,g=h.maxReleasePressure,_=h.valveOpen,E=h.holding;return(0,e.jsx)(j.qo,{width:360,height:242,children:(0,e.jsxs)(j.qo.Content,{children:[(0,e.jsx)(r.iG,{title:"Canister",buttons:(0,e.jsx)(r.q,{icon:"pencil-alt",disabled:!l,content:"Relabel",onClick:function(){return d("relabel")}}),children:(0,e.jsxs)(r.Cw,{children:[(0,e.jsx)(r.Cw.Item,{minWidth:"66px",label:"Tank Pressure",children:(0,e.jsx)(r.Gg,{value:f,format:function(I){return I<1e4?(0,a.yI)(I)+" kPa":(0,i._c)(I*1e3,1,"Pa")}})}),(0,e.jsx)(r.Cw.Item,{label:"Regulator",children:(0,e.jsxs)(r.kv,{position:"relative",left:"-8px",children:[(0,e.jsx)(r.S6,{forcedInputWidth:"60px",size:1.25,color:!!_&&"yellow",value:m,unit:"kPa",minValue:p,maxValue:g,stepPixelSize:1,onDrag:function(I,M){return d("pressure",{pressure:M})}}),(0,e.jsx)(r.q,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){return d("pressure",{pressure:g})}}),(0,e.jsx)(r.q,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){return d("pressure",{pressure:v})}})]})}),(0,e.jsx)(r.Cw.Item,{label:"Valve",children:(0,e.jsx)(r.q,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:_?E?"caution":"danger":null,content:_?"Open":"Closed",onClick:function(){return d("valve")}})}),(0,e.jsx)(r.Cw.Item,{mr:1,label:"Port",children:(0,e.jsxs)(r.kv,{position:"relative",children:[(0,e.jsx)(r.GW,{size:1.25,name:c?"plug":"times",color:c?"good":"bad"}),(0,e.jsx)(r.o5,{content:c?"Connected":"Disconnected",position:"top"})]})})]})}),(0,e.jsxs)(r.iG,{title:"Holding Tank",buttons:!!E&&(0,e.jsx)(r.q,{icon:"eject",color:_&&"danger",content:"Eject",onClick:function(){return d("eject")}}),children:[!!E&&(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Label",children:E.name}),(0,e.jsxs)(r.Ce.Item,{label:"Pressure",children:[(0,e.jsx)(r.Gg,{value:E.pressure})," kPa"]})]}),!E&&(0,e.jsx)(r.kv,{color:"average",children:"No Holding Tank"})]})]})})}},20688:function(S,y,n){"use strict";n.r(y),n.d(y,{Canvas:function(){return l}});var e=n(33496),a=n(69344),t=n(45280),r=n(33404),i=n(76512);function j(){return j=Object.assign||function(f){for(var m=1;m=0)&&(v[g]=f[g]);return v}function u(f,m){return u=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},u(f,m)}var d=24,h=function(f){"use strict";C(m,f);function m(p){var g;return g=f.call(this,p)||this,g.canvasRef=(0,a.createRef)(),g.onCVClick=p.onCanvasClick,g}var v=m.prototype;return v.componentDidMount=function(){this.drawCanvas(this.props)},v.componentDidUpdate=function(){this.drawCanvas(this.props)},v.drawCanvas=function(g){var _=this.canvasRef.current.getContext("2d"),E=g.value,I=E.length;if(I){var M=E[0].length,P=Math.round(this.canvasRef.current.width/I),D=Math.round(this.canvasRef.current.height/M);_.save(),_.scale(P,D);for(var k=0;k=0)&&(m[p]=l[p]);return m}var x={Alphabetical:function(l,f){return l-f},"By availability":function(l,f){return-(l.affordable-f.affordable)},"By price":function(l,f){return l.price-f.price}},u=function(){return(0,e.jsx)(i.qo,{width:400,height:450,children:(0,e.jsx)(i.qo.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{}),(0,e.jsx)(h,{})]})})})},d=function(l){var f=(0,t.cv)("search",""),m=f[0],v=f[1],p=(0,t.cv)("sort",""),g=p[0],_=p[1],E=(0,t.cv)("descending",!1),I=E[0],M=E[1];return(0,e.jsx)(r.kv,{mb:"0.5rem",children:(0,e.jsxs)(r.Cu,{width:"100%",children:[(0,e.jsx)(r.Cu.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(r.EF,{placeholder:"Search by item name..",width:"100%",onInput:function(P,D){return v(D)}})}),(0,e.jsx)(r.Cu.Item,{basis:"30%",children:(0,e.jsx)(r.cS,{selected:"Alphabetical",options:Object.keys(x),width:"100%",lineHeight:"19px",onSelected:function(P){return _(P)}})}),(0,e.jsx)(r.Cu.Item,{children:(0,e.jsx)(r.q,{icon:I?"arrow-down":"arrow-up",height:"19px",tooltip:I?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return M(!I)}})})]})})},h=function(l){var f=(0,t.yy)(),m=f.act,v=f.data,p=v.points,g=v.items,_=(0,t.cv)("search",""),E=_[0],I=_[1],M=(0,t.cv)("sort","Alphabetical"),P=M[0],D=M[1],k=(0,t.cv)("descending",!1),L=k[0],F=k[1],w=(0,a.od)(E,function(H){return H[0]}),N=!1,$=Object.entries(g).map(function(H,K){var U=Object.entries(H[1]).filter(w).map(function(q){return q[1].affordable=p>=q[1].price,q[1]}).sort(x[P]);if(U.length!==0)return L&&(U=U.reverse()),N=!0,(0,e.jsx)(c,{title:H[0],items:U},H[0])});return(0,e.jsx)(r.Cu.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(r.iG,{children:N?$:(0,e.jsx)(r.kv,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(l){var f=(0,t.yy)(),m=f.act,v=f.data,p=l.title,g=l.items,_=C(l,["title","items"]);return(0,e.jsx)(r.Uv,j({open:!0,title:p},_,{children:g.map(function(E){return(0,e.jsxs)(r.kv,{children:[(0,e.jsx)(r.kv,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:E.name}),(0,e.jsx)(r.q,{content:E.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return m("purchase",{cat:p,name:E.name,price:E.price,restriction:E.restriction})}}),(0,e.jsx)(r.kv,{style:{clear:"both"}})]},E.name)})}))}},8760:function(S,y,n){"use strict";n.r(y),n.d(y,{CharacterDirectory:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(d){switch(d){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"}},j=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.personalVisibility,m=l.personalTag,v=l.personalGenderTag,p=l.personalSexualityTag,g=l.personalErpTag,_=l.personalEventTag,E=(0,a.cv)("overlay",null),I=E[0],M=E[1],P=(0,a.cv)("overwritePrefs",!1),D=P[0],k=P[1];return(0,e.jsx)(r.qo,{width:816,height:722,resizeable:!0,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:I&&(0,e.jsx)(C,{})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.iG,{title:"Settings and Preferences",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.kv,{color:"label",inline:!0,children:"Save to current preferences slot:\xA0"}),(0,e.jsx)(t.q,{icon:D?"toggle-on":"toggle-off",selected:D,content:D?"On":"Off",onClick:function(){return k(!D)}})]}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Visibility",children:(0,e.jsx)(t.q,{fluid:!0,content:f?"Shown":"Not Shown",onClick:function(){return c("setVisible",{overwrite_prefs:D})}})}),(0,e.jsx)(t.Ce.Item,{label:"Vore Tag",children:(0,e.jsx)(t.q,{fluid:!0,content:m,onClick:function(){return c("setTag",{overwrite_prefs:D})}})}),(0,e.jsx)(t.Ce.Item,{label:"Gender",children:(0,e.jsx)(t.q,{fluid:!0,content:v,onClick:function(){return c("setGenderTag",{overwrite_prefs:D})}})}),(0,e.jsx)(t.Ce.Item,{label:"Sexuality",children:(0,e.jsx)(t.q,{fluid:!0,content:p,onClick:function(){return c("setSexualityTag",{overwrite_prefs:D})}})}),(0,e.jsx)(t.Ce.Item,{label:"ERP Tag",children:(0,e.jsx)(t.q,{fluid:!0,content:g,onClick:function(){return c("setErpTag",{overwrite_prefs:D})}})}),(0,e.jsx)(t.Ce.Item,{label:"Event Pref",children:(0,e.jsx)(t.q,{fluid:!0,content:_,onClick:function(){return c("setEventTag",{overwrite_prefs:D})}})}),(0,e.jsx)(t.Ce.Item,{label:"Advertisement",children:(0,e.jsx)(t.q,{fluid:!0,content:"Edit Ad",onClick:function(){return c("editAd",{overwrite_prefs:D})}})})]})}),(0,e.jsx)(x,{})]})})})},C=function(d){var h=(0,a.cv)("overlay",null),c=h[0],l=h[1];return(0,e.jsxs)(t.iG,{title:c.name,buttons:(0,e.jsx)(t.q,{icon:"arrow-left",content:"Back",onClick:function(){return l(null)}}),children:[(0,e.jsx)(t.iG,{level:2,title:"Species",children:(0,e.jsx)(t.kv,{children:c.species})}),(0,e.jsx)(t.iG,{level:2,title:"Vore Tag",children:(0,e.jsx)(t.kv,{p:1,backgroundColor:i(c.tag),children:c.tag})}),(0,e.jsx)(t.iG,{level:2,title:"Gender",children:(0,e.jsx)(t.kv,{children:c.gendertag})}),(0,e.jsx)(t.iG,{level:2,title:"Sexuality",children:(0,e.jsx)(t.kv,{children:c.sexualitytag})}),(0,e.jsx)(t.iG,{level:2,title:"ERP Tag",children:(0,e.jsx)(t.kv,{children:c.erptag})}),(0,e.jsx)(t.iG,{level:2,title:"Event Pref",children:(0,e.jsx)(t.kv,{children:c.eventtag})}),(0,e.jsx)(t.iG,{level:2,title:"Character Ad",children:(0,e.jsx)(t.kv,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:c.character_ad||"Unset."})}),(0,e.jsx)(t.iG,{level:2,title:"OOC Notes",children:(0,e.jsx)(t.kv,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:c.ooc_notes||"Unset."})}),(0,e.jsx)(t.iG,{level:2,title:"Flavor Text",children:(0,e.jsx)(t.kv,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:c.flavor_text||"Unset."})})]})},x=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.directory,m=(0,a.cv)("sortId","name"),v=m[0],p=m[1],g=(0,a.cv)("sortOrder","name"),_=g[0],E=g[1],I=(0,a.cv)("overlay",null),M=I[0],P=I[1];return(0,e.jsx)(t.iG,{title:"Directory",buttons:(0,e.jsx)(t.q,{icon:"sync",content:"Refresh",onClick:function(){return c("refresh")}}),children:(0,e.jsxs)(t.oJ,{children:[(0,e.jsxs)(t.oJ.Row,{bold:!0,children:[(0,e.jsx)(u,{id:"name",children:"Name"}),(0,e.jsx)(u,{id:"species",children:"Species"}),(0,e.jsx)(u,{id:"tag",children:"Vore Tag"}),(0,e.jsx)(u,{id:"gendertag",children:"Gender"}),(0,e.jsx)(u,{id:"sexualitytag",children:"Sexuality"}),(0,e.jsx)(u,{id:"erptag",children:"ERP Tag"}),(0,e.jsx)(u,{id:"eventtag",children:"Event Pref"}),(0,e.jsx)(t.oJ.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),f.sort(function(D,k){var L=_?1:-1;return D[v].localeCompare(k[v])*L}).map(function(D,k){return(0,e.jsxs)(t.oJ.Row,{backgroundColor:i(D.tag),children:[(0,e.jsx)(t.oJ.Cell,{p:1,children:D.name}),(0,e.jsx)(t.oJ.Cell,{children:D.species}),(0,e.jsx)(t.oJ.Cell,{children:D.tag}),(0,e.jsx)(t.oJ.Cell,{children:D.gendertag}),(0,e.jsx)(t.oJ.Cell,{children:D.sexualitytag}),(0,e.jsx)(t.oJ.Cell,{children:D.erptag}),(0,e.jsx)(t.oJ.Cell,{children:D.eventtag}),(0,e.jsx)(t.oJ.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(t.q,{onClick:function(){return P(D)},color:"transparent",icon:"sticky-note",mr:1,content:"View"})})]},k)})]})})},u=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=d.id,m=d.children,v=(0,a.cv)("sortId","name"),p=v[0],g=v[1],_=(0,a.cv)("sortOrder","name"),E=_[0],I=_[1];return(0,e.jsx)(t.oJ.Cell,{collapsing:!0,children:(0,e.jsxs)(t.q,{width:"100%",color:p!==f&&"transparent",onClick:function(){p===f?I(!E):(g(f),I(!0))},children:[m,p===f&&(0,e.jsx)(t.GW,{name:E?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},10520:function(S,y,n){"use strict";n.r(y),n.d(y,{CheckboxInput:function(){return u}});var e=n(33496),a=n(49900),t=n(45280),r=n(33404),i=n(98836),j=n(76512),C=n(14820),x=n(26896),u=function(d){var h=(0,t.yy)().data,c=h.items,l=c===void 0?[]:c,f=h.min_checked,m=h.max_checked,v=h.message,p=h.timeout,g=h.title,_=(0,t.cv)("selections",[]),E=_[0],I=_[1],M=(0,t.cv)("searchQuery",""),P=M[0],D=M[1],k=(0,a.od)(P,function(w){return w}),L=l.filter(k),F=function(w){var N=E.includes(w)?E.filter(function($){return $!==w}):[].concat(E,[w]);I(N)};return(0,e.jsxs)(j.qo,{title:g,width:425,height:300,children:[!!p&&(0,e.jsx)(x.Loader,{value:p}),(0,e.jsx)(j.qo.Content,{children:(0,e.jsxs)(r.fT,{fill:!0,vertical:!0,children:[(0,e.jsx)(r.fT.Item,{children:(0,e.jsxs)(r.yc,{info:!0,textAlign:"center",children:[(0,a.Af)(v)," ",f>0&&" (Min: "+f+")",m<50&&" (Max: "+m+")"]})}),(0,e.jsx)(r.fT.Item,{grow:!0,mt:0,children:(0,e.jsx)(r.iG,{fill:!0,scrollable:!0,children:(0,e.jsx)(r.oJ,{children:L.map(function(w,N){return(0,e.jsx)(i.CG,{className:"candystripe",children:(0,e.jsx)(i.y6,{children:(0,e.jsx)(r.q.Checkbox,{checked:E.includes(w),disabled:E.length>=m&&!E.includes(w),fluid:!0,onClick:function(){return F(w)},children:w})})},N)})})})}),(0,e.jsxs)(r.fT,{m:1,mb:0,children:[(0,e.jsx)(r.fT.Item,{children:(0,e.jsx)(r.o5,{content:"Search",position:"bottom",children:(0,e.jsx)(r.GW,{name:"search",mt:.5})})}),(0,e.jsx)(r.fT.Item,{grow:!0,children:(0,e.jsx)(r.EF,{fluid:!0,value:P,onInput:function(w,N){return D(N)}})})]}),(0,e.jsx)(r.fT.Item,{mt:.7,children:(0,e.jsx)(r.iG,{children:(0,e.jsx)(C.InputButtons,{input:E})})})]})})]})}},54196:function(S,y,n){"use strict";n.r(y),n.d(y,{ChemDispenser:function(){return x}});var e=n(33496),a=n(45280),t=n(33404),r=n(59888),i=n(76512),j=[5,10,20,30,40,60],C=[1,5,10],x=function(c){return(0,e.jsx)(i.qo,{width:390,height:655,children:(0,e.jsxs)(i.qo.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(u,{}),(0,e.jsx)(d,{}),(0,e.jsx)(h,{})]})})},u=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=m.amount;return(0,e.jsx)(t.iG,{title:"Settings",flex:"content",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Dispense",verticalAlign:"middle",children:j.map(function(p,g){return(0,e.jsx)(t.q,{textAlign:"center",selected:v===p,content:p+"u",m:"0",onClick:function(){return f("amount",{amount:p})}})})}),(0,e.jsx)(t.Ce.Item,{label:"Custom Amount",children:(0,e.jsx)(t.uQ,{step:1,stepPixelSize:5,value:v,minValue:1,maxValue:120,onDrag:function(p,g){return f("amount",{amount:g})}})})]})})},d=function(c){for(var l=(0,a.yy)(),f=l.act,m=l.data,v=m.chemicals,p=v===void 0?[]:v,g=[],_=0;_<(p.length+1)%3;_++)g.push(!0);return(0,e.jsx)(t.iG,{title:m.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:"1",children:(0,e.jsxs)(t.Cu,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[p.map(function(E,I){return(0,e.jsx)(t.Cu.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,e.jsx)(t.q,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",content:E.title+" ("+E.amount+")",onClick:function(){return f("dispense",{reagent:E.id})}})},I)}),g.map(function(E,I){return(0,e.jsx)(t.Cu.Item,{grow:"1",basis:"25%",height:"20px"},I)})]})})},h=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=m.isBeakerLoaded,p=m.beakerCurrentVolume,g=m.beakerMaxVolume,_=m.beakerContents,E=_===void 0?[]:_;return(0,e.jsx)(t.iG,{title:"Beaker",flex:"content",minHeight:"25%",buttons:(0,e.jsxs)(t.kv,{children:[!!v&&(0,e.jsxs)(t.kv,{inline:!0,color:"label",mr:2,children:[p," / ",g," units"]}),(0,e.jsx)(t.q,{icon:"eject",content:"Eject",disabled:!v,onClick:function(){return f("ejectBeaker")}})]}),children:(0,e.jsx)(r.BeakerContents,{beakerLoaded:v,beakerContents:E,buttons:function(I){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){return f("remove",{reagent:I.id,amount:-1})}}),C.map(function(M,P){return(0,e.jsx)(t.q,{content:M,onClick:function(){return f("remove",{reagent:I.id,amount:M})}},P)}),(0,e.jsx)(t.q,{content:"ALL",onClick:function(){return f("remove",{reagent:I.id,amount:I.volume})}})]})}})})}},87104:function(S,y,n){"use strict";n.r(y),n.d(y,{ChemMaster:function(){return d}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(59888),j=n(8020),C=[1,5,10,30,60],x=null,u=function(p){var g=(0,a.yy)(),_=g.act,E=g.data,I=p.args.analysis;return(0,e.jsx)(t.iG,{level:2,m:"-1rem",pb:"1rem",title:E.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.jsx)(t.kv,{mx:"0.5rem",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Name",children:I.name}),(0,e.jsx)(t.Ce.Item,{label:"Description",children:(I.desc||"").length>0?I.desc:"N/A"}),I.blood_type&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ce.Item,{label:"Blood type",children:I.blood_type}),(0,e.jsx)(t.Ce.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:I.blood_dna})]}),!E.condi&&(0,e.jsx)(t.q,{icon:E.printing?"spinner":"print",disabled:E.printing,iconSpin:!!E.printing,ml:"0.5rem",content:"Print",onClick:function(){return _("print",{idx:I.idx,beaker:p.args.beaker})}})]})})})},d=function(p){var g=(0,a.yy)().data,_=g.condi,E=g.beaker,I=g.beaker_reagents,M=I===void 0?[]:I,P=g.buffer_reagents,D=P===void 0?[]:P,k=g.mode;return(0,e.jsxs)(r.qo,{width:575,height:500,children:[(0,e.jsx)(j.ComplexModal,{}),(0,e.jsxs)(r.qo.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,e.jsx)(h,{beaker:E,beakerReagents:M,bufferNonEmpty:D.length>0}),(0,e.jsx)(c,{mode:k,bufferReagents:D}),(0,e.jsx)(l,{isCondiment:_,bufferNonEmpty:D.length>0}),(0,e.jsx)(v,{})," "]})]})},h=function(p){var g=(0,a.yy)(),_=g.act,E=g.data,I=p.beaker,M=p.beakerReagents,P=p.bufferNonEmpty,D=P?(0,e.jsx)(t.q.Confirm,{icon:"eject",disabled:!I,content:"Eject and Clear Buffer",onClick:function(){return _("eject")}}):(0,e.jsx)(t.q,{icon:"eject",disabled:!I,content:"Eject and Clear Buffer",onClick:function(){return _("eject")}});return(0,e.jsx)(t.iG,{title:"Beaker",buttons:D,children:I?(0,e.jsx)(i.BeakerContents,{beakerLoaded:!0,beakerContents:M,buttons:function(k,L){return(0,e.jsxs)(t.kv,{mb:L0?(0,e.jsx)(i.BeakerContents,{beakerLoaded:!0,beakerContents:I,buttons:function(M,P){return(0,e.jsxs)(t.kv,{mb:P0?(0,e.jsx)(i.BeakerContents,{beakerLoaded:!0,beakerContents:E}):(0,e.jsx)(t.kv,{color:"label",children:"Vessel is empty."})}),(0,e.jsx)(t.iG,{title:"Catalyst",flex:"content",minHeight:"25%",buttons:(0,e.jsxs)(t.kv,{children:[!!I&&(0,e.jsxs)(t.kv,{inline:!0,color:"label",mr:2,children:[M," / ",P," units"]}),(0,e.jsx)(t.q,{icon:"eject",content:"Eject",disabled:!I||!!v,onClick:function(){return f("eject_catalyst")}})]}),children:(0,e.jsx)(i.BeakerContents,{beakerLoaded:I,beakerContents:k})})]})},d=function(h,c){var l=(0,a.yy)(c),f=l.act,m=l.data,v=m.busy,p=m.production_mode,g=m.panel_open,_=m.rxn_vessel,E=m.drug_substance,I=m.bottle_icon,M=m.pill_icon,P=m.patch_icon;return(0,e.jsxs)(t.Cu,{height:"100%",width:"100%",direction:"column",children:[(0,e.jsx)(t.Cu.Item,{height:0,grow:1,children:(0,e.jsx)(t.iG,{height:"100%",title:"Settings",overflowY:"auto",children:(0,e.jsxs)(t.Cu,{direction:"column",children:[(0,e.jsx)(t.Cu.Item,{children:(0,e.jsx)(t.q,{color:p?"green":"bad",icon:"wrench",content:p?"Recipe mode: Import":"Recipe mode: Tutorial",onClick:function(){return f("mode_toggle")}})}),(0,e.jsx)(t.Cu.Item,{children:(0,e.jsx)(t.q,{disabled:!!v,color:g?"bad":"green",icon:"wrench",content:g?"Panel Open":"Panel Closed",onClick:function(){return f("panel_toggle")}})}),(0,e.jsx)(t.Cu.Item,{children:!v&&(0,e.jsx)(t.q,{disabled:!_.length,color:"bad",icon:"flask",tooltip:"For emptying the reaction vessel if the machine stalls.",content:"Bottle Manually",onClick:function(){return f("bottle_product")}})}),(0,e.jsx)(t.Cu.Item,{children:(0,e.jsx)(t.q,{disabled:!v,color:"bad",icon:"minus-circle",content:"EMERGENCY STOP",onClick:function(){return f("emergency_stop")}})})]})})}),(0,e.jsx)(t.Cu.Item,{height:0,grow:1,children:(0,e.jsx)(t.iG,{height:"100%",title:"Drug Substance",overflowY:"auto",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsxs)(t.Ce.Item,{label:"Bottle",children:[(0,e.jsx)(t.q,{icon:"wine-bottle",content:"Activate",selected:m.drug_substance===1,mr:"0.5rem",onClick:function(){return f("drug_form",{drug_index:1})}}),(0,e.jsxs)(t.q,{onClick:function(){return(0,j.modalOpen)(c,"change_bottle_style")},children:[(0,e.jsx)("div",{style:"display: inline-block;width: 16px;height: 16px;vertical-align: middle;background: url(bottle-"+m.bottle_icon+".png);background-size: 200%;background-position: left -10px bottom -6px;"}),"Style"]})]}),(0,e.jsxs)(t.Ce.Item,{label:"Pill",children:[(0,e.jsx)(t.q,{icon:"circle",content:"Activate",selected:m.drug_substance===2,mr:"0.5rem",onClick:function(){return f("drug_form",{drug_index:2})}}),(0,e.jsxs)(t.q,{onClick:function(){return(0,j.modalOpen)(c,"change_pill_style")},children:[(0,e.jsx)("div",{style:"display: inline-block;width: 16px;height: 16px;vertical-align: middle;background: url(pill"+m.pill_icon+".png);background-size: 200%;background-position: left -10px bottom -6px;"}),"Style"]})]}),(0,e.jsxs)(t.Ce.Item,{label:"Patch",children:[(0,e.jsx)(t.q,{icon:"square",content:"Activate",selected:m.drug_substance===3,mr:"0.5rem",onClick:function(){return f("drug_form",{drug_index:3})}}),(0,e.jsxs)(t.q,{onClick:function(){return(0,j.modalOpen)(c,"change_patch_style")},children:[(0,e.jsx)("div",{style:"display: inline-block;width: 16px;height: 16px;vertical-align: middle;background: url(patch"+m.patch_icon+".png);background-size: 200%;background-position: left -10px bottom -6px;"}),"Style"]})]})]})})})]})}},97792:function(S,y,n){"use strict";n.r(y),n.d(y,{ClawMachine:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.wintick,h=u.instructions,c=u.gameStatus,l=u.winscreen,f;return c==="CLAWMACHINE_NEW"?f=(0,e.jsxs)(t.kv,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),(0,e.jsx)("b",{children:"Pay to Play!"})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),h,(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.q,{content:"Start",onClick:function(){return x("newgame")}})]}):c==="CLAWMACHINE_END"?f=(0,e.jsxs)(t.kv,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),(0,e.jsx)("b",{children:"Thank you for playing!"})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),l,(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.q,{content:"Close",onClick:function(){return x("return")}})]}):c==="CLAWMACHINE_ON"&&(f=(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(t.Ce,{children:(0,e.jsx)(t.Ce.Item,{label:"Progress",children:(0,e.jsx)(t.cH,{ranges:{bad:[-1/0,0],average:[1,7],good:[8,1/0]},value:u.wintick,minValue:0,maxValue:10})})}),(0,e.jsxs)(t.kv,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),h,(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.q,{content:"Up",onClick:function(){return x("pointless")}}),(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.q,{content:"Left",onClick:function(){return x("pointless")}}),(0,e.jsx)(t.q,{content:"Right",onClick:function(){return x("pointless")}}),(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.q,{content:"Down",onClick:function(){return x("pointless")}})]})]})),(0,e.jsx)(r.qo,{children:(0,e.jsx)("center",{children:f})})}},77192:function(S,y,n){"use strict";n.r(y),n.d(y,{Cleanbot:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.on,h=u.open,c=u.locked,l=u.version,f=u.blood,m=u.patrol,v=u.vocal,p=u.wet_floors,g=u.spray_blood,_=u.rgbpanel,E=u.red_switch,I=u.green_switch,M=u.blue_switch;return(0,e.jsx)(r.qo,{width:400,height:400,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(t.iG,{title:"Automatic Station Cleaner "+l,buttons:(0,e.jsx)(t.q,{icon:"power-off",selected:d,onClick:function(){return x("start")},children:d?"On":"Off"}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Maintenance Panel",color:h?"bad":"good",children:h?"Open":"Closed"}),(0,e.jsx)(t.Ce.Item,{label:"Behavior Controls",color:c?"good":"bad",children:c?"Locked":"Unlocked"})]})}),!c&&(0,e.jsx)(t.iG,{title:"Behavior Controls",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Blood",children:(0,e.jsx)(t.q,{fluid:!0,icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){return x("blood")},children:f?"Clean":"Ignore"})}),(0,e.jsx)(t.Ce.Item,{label:"Speaker",children:(0,e.jsx)(t.q,{fluid:!0,icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return x("vocal")},children:v?"On":"Off"})})]})})||null,!c&&h&&(0,e.jsx)(t.iG,{title:"Maintenance Panel",children:_&&(0,e.jsxs)(t.kv,{children:[(0,e.jsx)(t.q,{fontSize:5.39,icon:E?"toggle-on":"toggle-off",backgroundColor:E?"red":"maroon",onClick:function(){return x("red_switch")}}),(0,e.jsx)(t.q,{fontSize:5.39,icon:I?"toggle-on":"toggle-off",backgroundColor:I?"green":"darkgreen",onClick:function(){return x("green_switch")}}),(0,e.jsx)(t.q,{fontSize:5.39,icon:M?"toggle-on":"toggle-off",backgroundColor:M?"blue":"darkblue",onClick:function(){return x("blue_switch")}})]})||(0,e.jsx)(t.kv,{children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Odd Looking Screw Twiddled",children:(0,e.jsx)(t.q,{fluid:!0,selected:p,onClick:function(){return x("wet_floors")},icon:"screwdriver",children:p?"Yes":"No"})}),(0,e.jsx)(t.Ce.Item,{label:"Weird Button Pressed",children:(0,e.jsx)(t.q,{fluid:!0,color:"brown",selected:g,onClick:function(){return x("spray_blood")},icon:"screwdriver",children:g?"Yes":"No"})})]})})})||null]})})}},76040:function(S,y,n){"use strict";n.r(y),n.d(y,{CloningConsole:function(){return d}});var e=n(33496),a=n(10608),t=n(45280),r=n(33404),i=n(36824),j=n(8020),C=n(76512);function x(){return x=Object.assign||function(p){for(var g=1;g1?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.kv,{color:i.yY.damageType.oxy,inline:!0,children:F[0]}),"\xA0|\xA0",(0,e.jsx)(r.kv,{color:i.yY.damageType.toxin,inline:!0,children:F[2]}),"\xA0|\xA0",(0,e.jsx)(r.kv,{color:i.yY.damageType.brute,inline:!0,children:F[3]}),"\xA0|\xA0",(0,e.jsx)(r.kv,{color:i.yY.damageType.burn,inline:!0,children:F[1]})]}):(0,e.jsx)(r.kv,{color:"bad",children:"Unknown"})}),(0,e.jsx)(r.Ce.Item,{label:"UI",className:"LabeledList__breakContents",children:k}),(0,e.jsx)(r.Ce.Item,{label:"SE",className:"LabeledList__breakContents",children:L}),(0,e.jsxs)(r.Ce.Item,{label:"Disk",children:[(0,e.jsx)(r.q.Confirm,{disabled:!E.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){return _("disk",{option:"load"})}}),(0,e.jsx)(r.q,{disabled:!E.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){return _("disk",{option:"save",savetype:"ui"})}}),(0,e.jsx)(r.q,{disabled:!E.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){return _("disk",{option:"save",savetype:"ue"})}}),(0,e.jsx)(r.q,{disabled:!E.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){return _("disk",{option:"save",savetype:"se"})}})]}),(0,e.jsxs)(r.Ce.Item,{label:"Actions",children:[(0,e.jsx)(r.q,{disabled:!E.podready,icon:"user-plus",content:"Clone",onClick:function(){return _("clone",{ref:M})}}),(0,e.jsx)(r.q,{icon:"trash",content:"Delete",onClick:function(){return _("del_rec")}})]})]})})},d=function(p){var g=(0,t.yy)(),_=g.act,E=g.data,I=E.menu;return(0,j.modalRegisterBodyOverride)("view_rec",u),(0,e.jsxs)(C.qo,{children:[(0,e.jsx)(j.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.jsxs)(C.qo.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(m,{}),(0,e.jsx)(v,{}),(0,e.jsx)(h,{}),(0,e.jsx)(r.iG,{noTopPadding:!0,flexGrow:"1",children:(0,e.jsx)(c,{})})]})]})},h=function(p){var g=(0,t.yy)(),_=g.act,E=g.data,I=E.menu;return(0,e.jsxs)(r.kZ,{children:[(0,e.jsx)(r.kZ.Tab,{selected:I===1,icon:"home",onClick:function(){return _("menu",{num:1})},children:"Main"}),(0,e.jsx)(r.kZ.Tab,{selected:I===2,icon:"folder",onClick:function(){return _("menu",{num:2})},children:"Records"})]})},c=function(p){var g=(0,t.yy)().data,_=g.menu,E;return _===1?E=(0,e.jsx)(l,{}):_===2&&(E=(0,e.jsx)(f,{})),E},l=function(p){var g=(0,t.yy)(),_=g.act,E=g.data,I=E.loading,M=E.scantemp,P=E.occupant,D=E.locked,k=E.can_brainscan,L=E.scan_mode,F=E.numberofpods,w=E.pods,N=E.selected_pod,$=D&&!!P;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.iG,{title:"Scanner",level:"2",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.kv,{inline:!0,color:"label",children:"Scanner Lock:\xA0"}),(0,e.jsx)(r.q,{disabled:!P,selected:$,icon:$?"toggle-on":"toggle-off",content:$?"Engaged":"Disengaged",onClick:function(){return _("lock")}}),(0,e.jsx)(r.q,{disabled:$||!P,icon:"user-slash",content:"Eject Occupant",onClick:function(){return _("eject")}})]}),children:[(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Status",children:I?(0,e.jsxs)(r.kv,{color:"average",children:[(0,e.jsx)(r.GW,{name:"spinner",spin:!0}),"\xA0 Scanning..."]}):(0,e.jsx)(r.kv,{color:M.color,children:M.text})}),!!k&&(0,e.jsx)(r.Ce.Item,{label:"Scan Mode",children:(0,e.jsx)(r.q,{icon:L?"brain":"male",content:L?"Brain":"Body",onClick:function(){return _("toggle_mode")}})})]}),(0,e.jsx)(r.q,{disabled:!P||I,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){return _("scan")}})]}),(0,e.jsx)(r.iG,{title:"Pods",level:"2",children:F?w.map(function(H,K){var U;return H.status==="cloning"?U=(0,e.jsx)(r.cH,{min:"0",max:"100",value:H.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(r.kv,{textAlign:"center",children:(0,a.kL)(H.progress,0)+"%"})}):H.status==="mess"?U=(0,e.jsx)(r.kv,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):U=(0,e.jsx)(r.q,{selected:N===H.pod,icon:N===H.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return _("selectpod",{ref:H.pod})}}),(0,e.jsxs)(r.kv,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"pod_"+H.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsxs)(r.kv,{color:"label",children:["Pod #",K+1]}),(0,e.jsxs)(r.kv,{bold:!0,color:H.biomass>=150?"good":"bad",inline:!0,children:[(0,e.jsx)(r.GW,{name:H.biomass>=150?"circle":"circle-o"}),"\xA0",H.biomass]}),U]},K)}):(0,e.jsx)(r.kv,{color:"bad",children:"No pods detected. Unable to clone."})})]})},f=function(p){var g=(0,t.yy)(),_=g.act,E=g.data,I=E.records;return I.length?(0,e.jsx)(r.kv,{mt:"0.5rem",children:I.map(function(M,P){return(0,e.jsx)(r.q,{icon:"user",mb:"0.5rem",content:M.realname,onClick:function(){return _("view_rec",{ref:M.record})}},P)})}):(0,e.jsx)(r.Cu,{height:"100%",children:(0,e.jsxs)(r.Cu.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(r.GW,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No records found."]})})},m=function(p){var g=(0,t.yy)(),_=g.act,E=g.data,I=E.temp;if(!(!I||!I.text||I.text.length<=0)){var M,P=(M={},M[I.style]=!0,M);return(0,e.jsxs)(r.yc,x({},P,{children:[(0,e.jsx)(r.kv,{display:"inline-block",verticalAlign:"middle",children:I.text}),(0,e.jsx)(r.q,{icon:"times-circle",float:"right",onClick:function(){return _("cleartemp")}}),(0,e.jsx)(r.kv,{clear:"both"})]}))}},v=function(p){var g=(0,t.yy)(),_=g.act,E=g.data,I=E.scanner,M=E.numberofpods,P=E.autoallowed,D=E.autoprocess,k=E.disk;return(0,e.jsx)(r.iG,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[!!P&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.kv,{inline:!0,color:"label",children:"Auto-processing:\xA0"}),(0,e.jsx)(r.q,{selected:D,icon:D?"toggle-on":"toggle-off",content:D?"Enabled":"Disabled",onClick:function(){return _("autoprocess",{on:D?0:1})}})]}),(0,e.jsx)(r.q,{disabled:!k,icon:"eject",content:"Eject Disk",onClick:function(){return _("disk",{option:"eject"})}})]}),children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Scanner",children:I?(0,e.jsx)(r.kv,{color:"good",children:"Connected"}):(0,e.jsx)(r.kv,{color:"bad",children:"Not connected!"})}),(0,e.jsx)(r.Ce.Item,{label:"Pods",children:M?(0,e.jsxs)(r.kv,{color:"good",children:[M," connected"]}):(0,e.jsx)(r.kv,{color:"bad",children:"None connected!"})})]})})}},44732:function(S,y,n){"use strict";n.r(y),n.d(y,{ColorMate:function(){return i},ColorMateHSV:function(){return x},ColorMateMatrix:function(){return C},ColorMateTint:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(u,d){var h=(0,a.yy)(d),c=h.act,l=h.data,f=l.activemode,m=l.temp,v=l.item||[];return(0,e.jsx)(r.qo,{width:"980",height:"720",resizable:!0,children:(0,e.jsx)(r.qo.Content,{overflow:"auto",children:(0,e.jsxs)(t.iG,{children:[m?(0,e.jsx)(t.yc,{children:m}):null,Object.keys(v).length?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.oJ,{children:[(0,e.jsx)(t.oJ.Cell,{width:"50%",children:(0,e.jsxs)(t.iG,{children:[(0,e.jsx)("center",{children:"Item:"}),(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+v.sprite,width:"100%",height:"100%",style:{"-ms-interpolation-mode":"nearest-neighbor"}})]})}),(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsxs)(t.iG,{children:[(0,e.jsx)("center",{children:"Preview:"}),(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+v.preview,width:"100%",height:"100%",style:{"-ms-interpolation-mode":"nearest-neighbor"}})]})})]}),(0,e.jsxs)(t.kZ,{fluid:!0,children:[(0,e.jsx)(t.kZ.Tab,{selected:f===1,onClick:function(){return c("switch_modes",{mode:1})},children:"Tint coloring (Simple)"},"1"),(0,e.jsx)(t.kZ.Tab,{selected:f===2,onClick:function(){return c("switch_modes",{mode:2})},children:"HSV coloring (Normal)"},"2"),(0,e.jsx)(t.kZ.Tab,{selected:f===3,onClick:function(){return c("switch_modes",{mode:3})},children:"Matrix coloring (Advanced)"},"3")]}),(0,e.jsxs)("center",{children:["Coloring: ",v.name]}),(0,e.jsxs)(t.oJ,{mt:1,children:[(0,e.jsxs)(t.oJ.Cell,{width:"33%",children:[(0,e.jsx)(t.q,{fluid:!0,content:"Paint",icon:"fill",onClick:function(){return c("paint")}}),(0,e.jsx)(t.q,{fluid:!0,content:"Clear",icon:"eraser",onClick:function(){return c("clear")}}),(0,e.jsx)(t.q,{fluid:!0,content:"Eject",icon:"eject",onClick:function(){return c("drop")}})]}),(0,e.jsx)(t.oJ.Cell,{width:"66%",children:f===1?(0,e.jsx)(j,{}):f===2?(0,e.jsx)(x,{}):(0,e.jsx)(C,{})})]})]}):(0,e.jsx)("center",{children:"No item inserted."})]})})})},j=function(u,d){var h=(0,a.yy)(d),c=h.act,l=h.data;return(0,e.jsx)(t.q,{fluid:!0,content:"Select new color",icon:"paint-brush",onClick:function(){return c("choose_color")}})},C=function(u,d){var h=(0,a.yy)(d),c=h.act,l=h.data,f=l.matrixcolors||[];return(0,e.jsxs)(t.oJ,{children:[(0,e.jsxs)(t.oJ.Cell,{children:[(0,e.jsxs)(t.oJ.Row,{children:["RR:"," ",(0,e.jsx)(t.WC,{width:"50px",minValue:-10,maxValue:10,step:.01,value:f.rr,onChange:function(m,v){return c("set_matrix_color",{color:1,value:v})}})]}),(0,e.jsxs)(t.oJ.Row,{children:["GR:"," ",(0,e.jsx)(t.WC,{width:"50px",minValue:-10,maxValue:10,step:.01,value:f.gr,onChange:function(m,v){return c("set_matrix_color",{color:4,value:v})}})]}),(0,e.jsxs)(t.oJ.Row,{children:["BR:"," ",(0,e.jsx)(t.WC,{width:"50px",minValue:-10,maxValue:10,step:.01,value:f.br,onChange:function(m,v){return c("set_matrix_color",{color:7,value:v})}})]})]}),(0,e.jsxs)(t.oJ.Cell,{children:[(0,e.jsxs)(t.oJ.Row,{children:["RG:"," ",(0,e.jsx)(t.WC,{width:"50px",minValue:-10,maxValue:10,step:.01,value:f.rg,onChange:function(m,v){return c("set_matrix_color",{color:2,value:v})}})]}),(0,e.jsxs)(t.oJ.Row,{children:["GG:"," ",(0,e.jsx)(t.WC,{width:"50px",minValue:-10,maxValue:10,step:.01,value:f.gg,onChange:function(m,v){return c("set_matrix_color",{color:5,value:v})}})]}),(0,e.jsxs)(t.oJ.Row,{children:["BG:"," ",(0,e.jsx)(t.WC,{width:"50px",minValue:-10,maxValue:10,step:.01,value:f.bg,onChange:function(m,v){return c("set_matrix_color",{color:8,value:v})}})]})]}),(0,e.jsxs)(t.oJ.Cell,{children:[(0,e.jsxs)(t.oJ.Row,{children:["RB:"," ",(0,e.jsx)(t.WC,{width:"50px",minValue:-10,maxValue:10,step:.01,value:f.rb,onChange:function(m,v){return c("set_matrix_color",{color:3,value:v})}})]}),(0,e.jsxs)(t.oJ.Row,{children:["GB:"," ",(0,e.jsx)(t.WC,{width:"50px",minValue:-10,maxValue:10,step:.01,value:f.gb,onChange:function(m,v){return c("set_matrix_color",{color:6,value:v})}})]}),(0,e.jsxs)(t.oJ.Row,{children:["BB:"," ",(0,e.jsx)(t.WC,{width:"50px",minValue:-10,maxValue:10,step:.01,value:f.bb,onChange:function(m,v){return c("set_matrix_color",{color:9,value:v})}})]})]}),(0,e.jsxs)(t.oJ.Cell,{children:[(0,e.jsxs)(t.oJ.Row,{children:["CR:"," ",(0,e.jsx)(t.WC,{width:"50px",minValue:-10,maxValue:10,step:.01,value:f.cr,onChange:function(m,v){return c("set_matrix_color",{color:10,value:v})}})]}),(0,e.jsxs)(t.oJ.Row,{children:["CG:"," ",(0,e.jsx)(t.WC,{width:"50px",minValue:-10,maxValue:10,step:.01,value:f.cg,onChange:function(m,v){return c("set_matrix_color",{color:11,value:v})}})]}),(0,e.jsxs)(t.oJ.Row,{children:["CB:"," ",(0,e.jsx)(t.WC,{width:"50px",minValue:-10,maxValue:10,step:.01,value:f.cb,onChange:function(m,v){return c("set_matrix_color",{color:12,value:v})}})]})]}),(0,e.jsxs)(t.oJ.Cell,{width:"40%",children:[(0,e.jsx)(t.GW,{name:"question-circle",color:"blue"})," RG means red will become this much green.",(0,e.jsx)("br",{}),(0,e.jsx)(t.GW,{name:"question-circle",color:"blue"})," CR means this much red will be added."]})]})},x=function(u,d){var h=(0,a.yy)(d),c=h.act,l=h.data,f=l.buildhue,m=l.buildsat,v=l.buildval;return(0,e.jsxs)(t.oJ,{children:[(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsx)("center",{children:"Hue:"}),(0,e.jsx)(t.oJ.Cell,{width:"85%",children:(0,e.jsx)(t.uQ,{minValue:0,maxValue:360,step:1,value:f,onDrag:function(p,g){return c("set_hue",{buildhue:g})}})})]}),(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsx)("center",{children:"Saturation:"}),(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsx)(t.uQ,{minValue:-10,maxValue:10,step:.01,value:m,onDrag:function(p,g){return c("set_sat",{buildsat:g})}})})]}),(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsx)("center",{children:"Value:"}),(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsx)(t.uQ,{minValue:-10,maxValue:10,step:.01,value:v,onDrag:function(p,g){return c("set_val",{buildval:g})}})})]})]})}},56596:function(S,y,n){"use strict";n.r(y),n.d(y,{ColorMate:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.items,h=u.activecolor,c=Math.min(270+d.length*15,600);return(0,e.jsx)(r.qo,{width:300,height:c,children:(0,e.jsx)(r.qo.Content,{children:d.length&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.iG,{title:"Paint",children:(0,e.jsxs)(t.Cu,{justify:"center",align:"center",children:[(0,e.jsx)(t.Cu.Item,{basis:"50%",children:(0,e.jsx)(t.kv,{backgroundColor:h,width:"120px",height:"120px"})}),(0,e.jsxs)(t.Cu.Item,{basis:"50% ",children:[(0,e.jsx)(t.q,{fluid:!0,icon:"eye-dropper",onClick:function(){return x("select")},children:"Select Color"}),(0,e.jsx)(t.q,{fluid:!0,icon:"fill-drip",onClick:function(){return x("paint")},children:"Paint Items"}),(0,e.jsx)(t.q,{fluid:!0,icon:"tint-slash",onClick:function(){return x("clear")},children:"Remove Paintjob"}),(0,e.jsx)(t.q,{fluid:!0,icon:"eject",onClick:function(){return x("eject")},children:"Eject Items"})]})]})}),(0,e.jsx)(t.iG,{title:"Items",children:d.map(function(l,f){return(0,e.jsxs)(t.kv,{children:["#",f+1,": ",l]},f)})})]})||(0,e.jsx)(t.iG,{children:(0,e.jsx)(t.kv,{color:"bad",children:"No items inserted."})})})})}},55656:function(S,y,n){"use strict";n.r(y),n.d(y,{CommunicationsConsole:function(){return i},CommunicationsConsoleContent:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(h){return(0,e.jsx)(r.qo,{width:400,height:600,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(j,{})})})},j=function(h){var c=(0,a.yy)(),l=c.act,f=c.data,m=f.menu_state,v=(0,e.jsxs)(t.kv,{color:"bad",children:["ERRROR. Unknown menu_state: ",m,"Please report this to NT Technical Support."]});return m===1?v=(0,e.jsx)(C,{}):m===2?v=(0,e.jsx)(d,{}):m===3&&(v=(0,e.jsx)(u,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x,{}),v]})},C=function(h){var c=(0,a.yy)(),l=c.act,f=c.data,m=f.messages,v=f.msg_cooldown,p=f.emagged,g=f.cc_cooldown,_=f.str_security_level,E=f.levels,I=f.authmax,M=f.security_level,P=f.security_level_color,D=f.authenticated,k=f.atcsquelch,L=f.boss_short,F="View ("+m.length+")",w="Make Priority Announcement";v>0&&(w+=" ("+v+"s)");var N=p?"Message [UNKNOWN]":"Message "+L;g>0&&(N+=" ("+g+"s)");var $=_,H=E.map(function(K){return(0,e.jsx)(t.q,{icon:K.icon,content:K.name,disabled:!D,selected:K.id===M,onClick:function(){return l("newalertlevel",{level:K.id})}},K.name)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.iG,{title:"Site Manager-Only Actions",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Announcement",children:(0,e.jsx)(t.q,{icon:"bullhorn",content:w,disabled:!I||v>0,onClick:function(){return l("announce")}})}),!!p&&(0,e.jsxs)(t.Ce.Item,{label:"Transmit",children:[(0,e.jsx)(t.q,{icon:"broadcast-tower",color:"red",content:N,disabled:!I||g>0,onClick:function(){return l("MessageSyndicate")}}),(0,e.jsx)(t.q,{icon:"sync-alt",content:"Reset Relays",disabled:!I,onClick:function(){return l("RestoreBackup")}})]})||(0,e.jsx)(t.Ce.Item,{label:"Transmit",children:(0,e.jsx)(t.q,{icon:"broadcast-tower",content:N,disabled:!I||g>0,onClick:function(){return l("MessageCentCom")}})})]})}),(0,e.jsx)(t.iG,{title:"Command Staff Actions",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Current Alert",color:P,children:$}),(0,e.jsx)(t.Ce.Item,{label:"Change Alert",children:H}),(0,e.jsx)(t.Ce.Item,{label:"Displays",children:(0,e.jsx)(t.q,{icon:"tv",content:"Change Status Displays",disabled:!D,onClick:function(){return l("status")}})}),(0,e.jsx)(t.Ce.Item,{label:"Incoming Messages",children:(0,e.jsx)(t.q,{icon:"folder-open",content:F,disabled:!D,onClick:function(){return l("messagelist")}})}),(0,e.jsx)(t.Ce.Item,{label:"Misc",children:(0,e.jsx)(t.q,{icon:"microphone",content:k?"ATC Relay Disabled":"ATC Relay Enabled",disabled:!D,selected:k,onClick:function(){return l("toggleatc")}})})]})})]})},x=function(h){var c=(0,a.yy)(),l=c.act,f=c.data,m=f.authenticated,v=f.is_ai,p=f.esc_status,g=f.esc_callable,_=f.esc_recallable,E;return m?v?E="AI":m===1?E="Command":m===2?E="Site Director":E="ERROR: Report This Bug!":E="Not Logged In",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.iG,{title:"Authentication",children:(0,e.jsx)(t.Ce,{children:v&&(0,e.jsx)(t.Ce.Item,{label:"Access Level",children:"AI"})||(0,e.jsx)(t.Ce.Item,{label:"Actions",children:(0,e.jsx)(t.q,{icon:m?"sign-out-alt":"id-card",selected:m,content:m?"Log Out ("+E+")":"Log In",onClick:function(){return l("auth")}})})})}),(0,e.jsx)(t.iG,{title:"Escape Shuttle",children:(0,e.jsxs)(t.Ce,{children:[!!p&&(0,e.jsx)(t.Ce.Item,{label:"Status",children:p}),!!g&&(0,e.jsx)(t.Ce.Item,{label:"Options",children:(0,e.jsx)(t.q,{icon:"rocket",content:"Call Shuttle",disabled:!m,onClick:function(){return l("callshuttle")}})}),!!_&&(0,e.jsx)(t.Ce.Item,{label:"Options",children:(0,e.jsx)(t.q,{icon:"times",content:"Recall Shuttle",disabled:!m||v,onClick:function(){return l("cancelshuttle")}})})]})})]})},u=function(h){var c=(0,a.yy)(),l=c.act,f=c.data,m=f.message_current,v=f.message_deletion_allowed,p=f.authenticated,g=f.messages;if(m)return(0,e.jsx)(t.iG,{title:m.title,buttons:(0,e.jsx)(t.q,{icon:"times",content:"Return To Message List",disabled:!p,onClick:function(){return l("messagelist")}}),children:(0,e.jsx)(t.kv,{children:m.contents})});var _=g.map(function(E){return(0,e.jsxs)(t.Ce.Item,{label:E.title,children:[(0,e.jsx)(t.q,{icon:"eye",content:"View",disabled:!p||m&&m.title===E.title,onClick:function(){return l("messagelist",{msgid:E.id})}}),(0,e.jsx)(t.q,{icon:"times",content:"Delete",disabled:!p||!v,onClick:function(){return l("delmessage",{msgid:E.id})}})]},E.id)});return(0,e.jsx)(t.iG,{title:"Messages Received",buttons:(0,e.jsx)(t.q,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return l("main")}}),children:(0,e.jsx)(t.Ce,{children:g.length&&_||(0,e.jsx)(t.Ce.Item,{label:"404",color:"bad",children:"No messages."})})})},d=function(h){var c=(0,a.yy)(),l=c.act,f=c.data,m=f.stat_display,v=f.authenticated,p=m.presets.map(function(g){return(0,e.jsx)(t.q,{content:g.label,selected:g.name===m.type,disabled:!v,onClick:function(){return l("setstat",{statdisp:g.name})}},g.name)});return(0,e.jsx)(t.iG,{title:"Modify Status Screens",buttons:(0,e.jsx)(t.q,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return l("main")}}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Presets",children:p}),(0,e.jsx)(t.Ce.Item,{label:"Message Line 1",children:(0,e.jsx)(t.q,{icon:"pencil-alt",content:m.line_1,disabled:!v,onClick:function(){return l("setmsg1")}})}),(0,e.jsx)(t.Ce.Item,{label:"Message Line 2",children:(0,e.jsx)(t.q,{icon:"pencil-alt",content:m.line_2,disabled:!v,onClick:function(){return l("setmsg2")}})})]})})}},30492:function(S,y,n){"use strict";n.r(y),n.d(y,{Communicator:function(){return _}});var e=n(33496),a=n(47392),t=n(49900),r=n(45280),i=n(33404),j=n(76512),C=n(94384),x=1,u=2,d=3,h=4,c=40,l=5,f=6,m=7,v=8,p=9,g={},_=function(ie){var fe=(0,r.yy)(),de=fe.act,ge=fe.data,ye=ge.currentTab,ve=ge.video_comm,Ie=ge.mapRef,Te=(0,r.cv)("videoSetting",0),Ve=Te[0],Ue=Te[1];return(0,e.jsx)(j.qo,{width:475,height:700,children:(0,e.jsxs)(j.qo.Content,{children:[ve&&(0,e.jsx)(E,{videoSetting:Ve,setVideoSetting:Ue}),(!ve||Ve!==0)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(M,{}),(0,e.jsx)(i.kv,{height:"88%",mb:1,style:{"overflow-y":"auto"},children:g[ye]||(0,e.jsx)(I,{})}),(0,e.jsx)(P,{videoSetting:Ve,setVideoSetting:Ue})]})]})})},E=function(ie){var fe=(0,r.yy)(),de=fe.act,ge=fe.data,ye=ge.video_comm,ve=ge.mapRef,Ie=ie.videoSetting,Te=ie.setVideoSetting;return Ie===0?(0,e.jsxs)(i.kv,{width:"100%",height:"100%",children:[(0,e.jsx)(i.cb,{width:"100%",height:"95%",params:{id:ve,type:"map"}}),(0,e.jsxs)(i.Cu,{justify:"space-between",spacing:1,mt:.5,children:[(0,e.jsx)(i.Cu.Item,{grow:1,children:(0,e.jsx)(i.q,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return Te(1)}})}),(0,e.jsx)(i.Cu.Item,{grow:1,children:(0,e.jsx)(i.q,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return de("endvideo")}})}),(0,e.jsx)(i.Cu.Item,{grow:1,children:(0,e.jsx)(i.q,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return de("hang_up")}})})]})]}):Ie===1?(0,e.jsxs)(i.kv,{style:{position:"absolute",right:"5px",bottom:"50px","z-index":1},children:[(0,e.jsx)(i.iG,{p:0,m:0,children:(0,e.jsxs)(i.Cu,{justify:"space-between",spacing:1,children:[(0,e.jsx)(i.Cu.Item,{grow:1,children:(0,e.jsx)(i.q,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return Te(2)}})}),(0,e.jsx)(i.Cu.Item,{grow:1,children:(0,e.jsx)(i.q,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-maximize",onClick:function(){return Te(0)}})}),(0,e.jsx)(i.Cu.Item,{grow:1,children:(0,e.jsx)(i.q,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return de("endvideo")}})}),(0,e.jsx)(i.Cu.Item,{grow:1,children:(0,e.jsx)(i.q,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return de("hang_up")}})})]})}),(0,e.jsx)(i.cb,{width:"200px",height:"200px",params:{id:ve,type:"map"}})]}):null},I=function(ie){var fe=(0,r.yy)(),de=fe.act,ge=fe.data,ye=ge.currentTab;return(0,e.jsxs)(i.iG,{title:"Error!",children:["You tried to access tab #",ye,", but there was no template defined!"]})},M=function(ie){var fe=(0,r.yy)(),de=fe.act,ge=fe.data,ye=ge.time,ve=ge.connectionStatus,Ie=ge.owner,Te=ge.occupation;return(0,e.jsx)(i.iG,{children:(0,e.jsxs)(i.Cu,{align:"center",justify:"space-between",children:[(0,e.jsx)(i.Cu.Item,{color:"average",children:ye}),(0,e.jsx)(i.Cu.Item,{children:(0,e.jsx)(i.GW,{color:ve===1?"good":"bad",name:ve===1?"signal":"exclamation-triangle"})}),(0,e.jsx)(i.Cu.Item,{color:"average",children:(0,t.Af)(Ie)}),(0,e.jsx)(i.Cu.Item,{color:"average",children:(0,t.Af)(Te)})]})})},P=function(ie){var fe=(0,r.yy)(),de=fe.act,ge=fe.data,ye=ge.flashlight,ve=ie.videoSetting,Ie=ie.setVideoSetting;return(0,e.jsxs)(i.Cu,{children:[(0,e.jsx)(i.Cu.Item,{basis:ve===2?"60%":"80%",children:(0,e.jsx)(i.q,{p:1,fluid:!0,icon:"home",iconSize:2,textAlign:"center",onClick:function(){return de("switch_tab",{switch_tab:x})}})}),(0,e.jsx)(i.Cu.Item,{basis:"20%",children:(0,e.jsx)(i.q,{icon:"lightbulb",iconSize:2,p:1,fluid:!0,textAlign:"center",selected:ye,tooltip:"Flashlight",tooltipPosition:"top",onClick:function(){return de("Light")}})}),ve===2&&(0,e.jsx)(i.Cu.Item,{basis:"20%",children:(0,e.jsx)(i.q,{icon:"video",iconSize:2,p:1,fluid:!0,textAlign:"center",tooltip:"Open Video",tooltipPosition:"top",onClick:function(){return Ie(1)}})})]})},D=function(ie){var fe=(0,r.yy)().data,de=fe.voice_mobs,ge=fe.communicating,ye=fe.requestsReceived,ve=fe.invitesSent,Ie=fe.video_comm;return!!(ie==="Phone"&&(de.length||ge.length||ye.length||ve.length||Ie))},k=function(ie){var fe=(0,r.yy)(),de=fe.act,ge=fe.data,ye=ge.homeScreen;return(0,e.jsx)(i.Cu,{mt:2,wrap:"wrap",align:"center",justify:"center",children:ye.map(function(ve){return(0,e.jsxs)(i.Cu.Item,{basis:"25%",textAlign:"center",mb:2,children:[(0,e.jsx)(i.q,{style:{"border-radius":"10%",border:"1px solid #000"},width:"64px",height:"64px",position:"relative",onClick:function(){return de("switch_tab",{switch_tab:ve.number})},children:(0,e.jsx)(i.GW,{spin:D(ve.module),color:D(ve.module)?"bad":null,name:ve.icon,position:"absolute",size:3,top:"25%",left:"25%"})}),(0,e.jsx)(i.kv,{children:ve.module})]},ve.number)})})};g[x]=(0,e.jsx)(k,{});var L=function(ie){var fe=(0,r.yy)(),de=fe.act,ge=fe.data,ye=ge.targetAddress,ve=ge.voice_mobs,Ie=ge.communicating,Te=ge.requestsReceived,Ve=ge.invitesSent,Ue=ge.video_comm,Ge=ge.selfie_mode;return(0,e.jsxs)(i.iG,{title:"Phone",children:[(0,e.jsx)(i.Ce,{children:(0,e.jsx)(i.Ce.Item,{label:"Target EPv2 Address",verticalAlign:"middle",children:(0,e.jsxs)(i.Cu,{align:"center",children:[(0,e.jsx)(i.Cu.Item,{grow:1,children:(0,e.jsx)(i.EF,{fluid:!0,value:ye,onInput:function(ze,ut){return de("write_target_address",{val:ut})}})}),(0,e.jsx)(i.Cu.Item,{children:(0,e.jsx)(i.q,{icon:"times",onClick:function(){return de("clear_target_address")}})})]})})}),(0,e.jsx)(F,{}),(0,e.jsxs)(i.iG,{title:"Connection Management",mt:2,children:[(0,e.jsx)(i.Ce,{children:(0,e.jsx)(i.Ce.Item,{label:"Camera Mode",children:(0,e.jsx)(i.q,{fluid:!0,content:Ge?"Front-facing Camera":"Rear-facing Camera",onClick:function(){return de("selfie_mode")}})})}),(0,e.jsx)(i.iG,{title:"External Connections",children:!!ve.length&&(0,e.jsx)(i.Ce,{children:ve.map(function(ze){return(0,e.jsx)(i.Ce.Item,{label:(0,t.Af)(ze.name),children:(0,e.jsx)(i.q,{icon:"times",color:"bad",content:"Disconnect",onClick:function(){return de("disconnect",{disconnect:ze.true_name})}})},ze.ref)})})||(0,e.jsx)(i.kv,{children:"No connections"})}),(0,e.jsx)(i.iG,{title:"Internal Connections",children:!!Ie.length&&(0,e.jsx)(i.oJ,{children:Ie.map(function(ze){return(0,e.jsxs)(i.oJ.Row,{children:[(0,e.jsx)(i.oJ.Cell,{color:"label",children:(0,t.Af)(ze.name)}),(0,e.jsxs)(i.oJ.Cell,{children:[(0,e.jsx)(i.q,{icon:"times",color:"bad",content:"Disconnect",onClick:function(){return de("disconnect",{disconnect:ze.true_name})}}),Ue===null&&(0,e.jsx)(i.q,{icon:"camera",content:"Start Video",onClick:function(){return de("startvideo",{startvideo:ze.ref})}})||Ue===ze.ref&&(0,e.jsx)(i.q,{icon:"times",color:"bad",content:"Stop Video",onClick:function(){return de("endvideo",{endvideo:ze.true_name})}})]})]},ze.address)})})||(0,e.jsx)(i.kv,{children:"No connections"})}),(0,e.jsx)(i.iG,{title:"Requests Received",children:!!Te.length&&(0,e.jsx)(i.Ce,{children:Te.map(function(ze){return(0,e.jsxs)(i.Ce.Item,{label:(0,t.Af)(ze.name),children:[(0,e.jsx)(i.kv,{children:(0,t.Af)(ze.address)}),(0,e.jsxs)(i.kv,{children:[(0,e.jsx)(i.q,{icon:"signal",content:"Accept",onClick:function(){return de("dial",{dial:ze.address})}}),(0,e.jsx)(i.q,{icon:"times",content:"Decline",onClick:function(){return de("decline",{decline:ze.ref})}})]})]},ze.address)})})||(0,e.jsx)(i.kv,{children:"No requests received."})}),(0,e.jsx)(i.iG,{title:"Invites Sent",children:!!Ve.length&&(0,e.jsx)(i.Ce,{children:Ve.map(function(ze){return(0,e.jsxs)(i.Ce.Item,{label:(0,t.Af)(ze.name),children:[(0,e.jsx)(i.kv,{children:(0,t.Af)(ze.address)}),(0,e.jsx)(i.kv,{children:(0,e.jsx)(i.q,{icon:"pen",onClick:function(){de("copy",{copy:ze.address})},content:"Copy"})})]},ze.address)})})||(0,e.jsx)(i.kv,{children:"No invites sent."})})]})]})},F=function(ie){for(var fe=(0,r.yy)(),de=fe.act,ge=fe.data,ye=ge.targetAddress,ve=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],Ie=ve.map(function(Ue){return(0,e.jsx)(i.q,{content:Ue,fontSize:2,fluid:!0,onClick:function(){return de("add_hex",{add_hex:Ue})}},Ue)}),Te=[],Ve=0;Vede?fe.length>de?fe.slice(0,de)+"...":fe:ie+fe},K=function(ie,fe,de,ge){if(de<0||de>ge.length)return $(ie,fe)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var ye=$(ie,fe),ve=$(ge[de],fe);return ye&&ve?"TinderMessage_Subsequent_Sent":!ye&&!ve?"TinderMessage_Subsequent_Received":ye?"TinderMessage_First_Sent":"TinderMessage_First_Received"},U=function(ie){var fe=(0,r.yy)(),de=fe.act,ge=fe.data,ye=ge.targetAddressName,ve=ge.targetAddress,Ie=ge.imList,Te=(0,r.cv)("clipboardMode",!1),Ve=Te[0],Ue=Te[1];return Ve?(0,e.jsxs)(i.iG,{title:(0,e.jsx)(i.kv,{inline:!0,style:{"white-space":"nowrap","overflow-x":"hidden"},width:"90%",children:H("Conversation with ",(0,t.Af)(ye),30)}),buttons:(0,e.jsx)(i.q,{icon:"eye",selected:Ve,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return Ue(!Ve)}}),height:"100%",stretchContents:!0,children:[(0,e.jsx)(i.iG,{style:{height:"95%","overflow-y":"auto"},children:Ie.map(function(Ge,ze){return(Ge.to_address===ve||Ge.address===ve)&&(0,e.jsxs)(i.kv,{className:$(Ge,ve)?"ClassicMessage_Sent":"ClassicMessage_Received",children:[$(Ge,ve)?"You":"Them",": ",Ge.im]},ze)})}),(0,e.jsx)(i.q,{icon:"comment",onClick:function(){return de("message",{message:ve})},content:"Message"})]}):(0,e.jsxs)(i.iG,{title:(0,e.jsx)(i.kv,{inline:!0,style:{"white-space":"nowrap","overflow-x":"hidden"},width:"100%",children:H("Conversation with ",(0,t.Af)(ye),30)}),buttons:(0,e.jsx)(i.q,{icon:"eye",selected:Ve,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return Ue(!Ve)}}),height:"100%",stretchContents:!0,children:[(0,e.jsx)(i.iG,{style:{height:"95%","overflow-y":"auto"},children:Ie.map(function(Ge,ze,ut){return(Ge.to_address===ve||Ge.address===ve)&&(0,e.jsx)(i.kv,{textAlign:$(Ge,ve)?"right":"left",mb:1,children:(0,e.jsx)(i.kv,{maxWidth:"75%",className:K(Ge,ve,ze-1,ut),inline:!0,children:(0,t.Af)(Ge.im)})},ze)})}),(0,e.jsx)(i.q,{icon:"comment",onClick:function(){return de("message",{message:ve})},content:"Message"})]})};g[c]=(0,e.jsx)(U,{});var q=function(ie){var fe=(0,r.yy)(),de=fe.act,ge=fe.data,ye=ge.feeds,ve=ge.target_feed;return(0,e.jsx)(i.iG,{title:"News",stretchContents:!0,height:"100%",children:!ye.length&&(0,e.jsx)(i.kv,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||ve&&(0,e.jsx)(Y,{})||(0,e.jsx)(Z,{})})},Y=function(ie){var fe=(0,r.yy)(),de=fe.act,ge=fe.data,ye=ge.target_feed;return(0,e.jsx)(i.iG,{title:(0,t.Af)(ye.name)+" by "+(0,t.Af)(ye.author),buttons:(0,e.jsx)(i.q,{content:"Back",icon:"chevron-up",onClick:function(){return de("newsfeed",{newsfeed:null})}}),children:ye.messages.map(function(ve){return(0,e.jsxs)(i.iG,{children:["- ",(0,t.Af)(ve.body),!!ve.img&&(0,e.jsxs)(i.kv,{children:[(0,e.jsx)("img",{src:"data:image/png;base64,"+ve.img}),(0,t.Af)(ve.caption)||null]}),(0,e.jsxs)(i.kv,{color:"grey",children:["[",ve.message_type," by ",(0,t.Af)(ve.author)," -"," ",ve.time_stamp,"]"]})]},ve.ref)})})},Z=function(ie){var fe=(0,r.yy)(),de=fe.act,ge=fe.data,ye=ge.feeds,ve=ge.latest_news;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.iG,{title:"Recent News",children:(0,e.jsx)(i.iG,{children:ve.map(function(Ie){return(0,e.jsxs)(i.kv,{mb:2,children:[(0,e.jsxs)("h5",{children:[(0,t.Af)(Ie.channel),(0,e.jsx)(i.q,{ml:1,icon:"chevron-up",onClick:function(){return de("newsfeed",{newsfeed:Ie.index})},content:"Go to"})]}),"- ",(0,t.Af)(Ie.body),!!Ie.img&&(0,e.jsxs)(i.kv,{children:["[image omitted, view story for more details]",Ie.caption||null]}),(0,e.jsxs)(i.kv,{fontSize:.9,children:["[",Ie.message_type," by"," ",(0,e.jsx)(i.kv,{inline:!0,color:"average",children:Ie.author})," ","- ",Ie.time_stamp,"]"]})]},Ie.index)})})}),(0,e.jsx)(i.iG,{title:"News Feeds",children:ye.map(function(Ie){return(0,e.jsx)(i.q,{fluid:!0,icon:"chevron-up",onClick:function(){return de("newsfeed",{newsfeed:Ie.index})},content:Ie.name},Ie.index)})})]})};g[l]=(0,e.jsx)(q,{});var z=function(ie){var fe=(0,r.yy)(),de=fe.act,ge=fe.data,ye=ge.note;return(0,e.jsx)(i.iG,{title:"Note Keeper",height:"100%",stretchContents:!0,buttons:(0,e.jsx)(i.q,{icon:"pen",onClick:function(){return de("edit")},content:"Edit Notes"}),children:(0,e.jsx)(i.iG,{color:"average",width:"100%",height:"100%",style:{"word-break":"break-all","overflow-y":"auto"},children:ye})})};g[f]=(0,e.jsx)(z,{});var Q=function(ie,fe,de,ge,ye){return iege?"average":ie>ye?"bad":"good"},oe=function(ie){var fe=(0,r.yy)(),de=fe.act,ge=fe.data,ye=ge.aircontents,ve=ge.weather,Ie="\xB0";return(0,e.jsxs)(i.iG,{title:"Weather",children:[(0,e.jsx)(i.iG,{title:"Current Conditions",children:(0,e.jsx)(i.Ce,{children:(0,a.IF)(function(Te){return Te.val!=="0"||Te.entry==="Pressure"||Te.entry==="Temperature"})(ye).map(function(Te){return(0,e.jsxs)(i.Ce.Item,{label:Te.entry,color:Q(Te.val,Te.bad_low,Te.poor_low,Te.poor_high,Te.bad_high),children:[Te.val,(0,t.Af)(Te.units)]},Te.entry)})})}),(0,e.jsx)(i.iG,{title:"Weather Reports",children:!!ve.length&&(0,e.jsx)(i.Ce,{children:ve.map(function(Te){return(0,e.jsx)(i.Ce.Item,{label:Te.Planet,children:(0,e.jsxs)(i.Ce,{children:[(0,e.jsx)(i.Ce.Item,{label:"Time",children:Te.Time}),(0,e.jsx)(i.Ce.Item,{label:"Weather",children:(0,t.Yl)(Te.Weather)}),(0,e.jsxs)(i.Ce.Item,{label:"Temperature",children:["Current: ",Te.Temperature.toFixed()," ",Ie,"C | High:"," ",Te.High.toFixed()," ",Ie,"C | Low: ",Te.Low.toFixed()," ",Ie,"C"]}),(0,e.jsx)(i.Ce.Item,{label:"Wind Direction",children:Te.WindDir}),(0,e.jsx)(i.Ce.Item,{label:"Wind Speed",children:Te.WindSpeed}),(0,e.jsx)(i.Ce.Item,{label:"Forecast",children:(0,t.Af)(Te.Forecast)})]})},Te.Planet)})})||(0,e.jsx)(i.kv,{color:"bad",children:"No weather reports available. Please check back later."})})]})};g[m]=(0,e.jsx)(oe,{}),g[v]=(0,e.jsx)(C.CrewManifestContent,{});var le=function(ie){var fe=(0,r.yy)(),de=fe.act,ge=fe.data,ye=ge.owner,ve=ge.occupation,Ie=ge.connectionStatus,Te=ge.address,Ve=ge.visible,Ue=ge.ring,Ge=ge.selfie_mode;return(0,e.jsx)(i.iG,{title:"Settings",children:(0,e.jsxs)(i.Ce,{children:[(0,e.jsx)(i.Ce.Item,{label:"Owner",children:(0,e.jsx)(i.q,{icon:"pen",fluid:!0,content:(0,t.Af)(ye),onClick:function(){return de("rename")}})}),(0,e.jsx)(i.Ce.Item,{label:"Camera Mode",children:(0,e.jsx)(i.q,{fluid:!0,content:Ge?"Front-facing Camera":"Rear-facing Camera",onClick:function(){return de("selfie_mode")}})}),(0,e.jsx)(i.Ce.Item,{label:"Occupation",children:(0,t.Af)(ve)}),(0,e.jsx)(i.Ce.Item,{label:"Connection",children:Ie===1?(0,e.jsx)(i.kv,{color:"good",children:"Connected"}):(0,e.jsx)(i.kv,{color:"bad",children:"Disconnected"})}),(0,e.jsx)(i.Ce.Item,{label:"Device EPv2 Address",children:Te}),(0,e.jsx)(i.Ce.Item,{label:"Visibility",children:(0,e.jsx)(i.q.Checkbox,{checked:Ve,selected:Ve,fluid:!0,content:Ve?"This device can be seen by other devices.":"This device is invisible to other devices.",onClick:function(){return de("toggle_visibility")}})}),(0,e.jsxs)(i.Ce.Item,{label:"Ringer",children:[(0,e.jsx)(i.q.Checkbox,{checked:Ue,selected:Ue,fluid:!0,content:Ue?"Ringer on.":"Ringer off.",onClick:function(){return de("toggle_ringer")}}),(0,e.jsx)(i.q,{fluid:!0,content:"Set Ringer Tone",onClick:function(){return de("set_ringer_tone")}})]})]})})};g[p]=(0,e.jsx)(le,{})},90768:function(S,y,n){"use strict";n.r(y),n.d(y,{ComputerFabricator:function(){return f}});var e=n(33496),a=n(49900),t=n(45280),r=n(33404),i=n(76512);function j(_,E){return E||(E=_.slice(0)),_.raw=E,_}function C(){var _=j(["\n Allows your device to operate without external utility power\n source. Advanced batteries increase battery life.\n "]);return C=function(){return _},_}function x(){var _=j(["\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 _},_}function u(){var _=j(["\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 u=function(){return _},_}function d(){var _=j(["\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 d=function(){return _},_}function h(){var _=j(["\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 h=function(){return _},_}function c(){var _=j(["\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 c=function(){return _},_}function l(){var _=j(["\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 l=function(){return _},_}var f=function(_){var E=(0,t.yy)(),I=E.act,M=E.data;return(0,e.jsx)(i.qo,{title:"Personal Computer Vendor",width:500,height:420,children:(0,e.jsxs)(i.qo.Content,{children:[(0,e.jsx)(r.iG,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),M.state!==0&&(0,e.jsx)(r.q,{fluid:!0,mb:1,icon:"circle",content:"Clear Order",onClick:function(){return I("clean_order")}}),M.state===0&&(0,e.jsx)(m,{}),M.state===1&&(0,e.jsx)(v,{}),M.state===2&&(0,e.jsx)(p,{}),M.state===3&&(0,e.jsx)(g,{})]})})},m=function(_){var E=(0,t.yy)(),I=E.act,M=E.data;return(0,e.jsxs)(r.iG,{title:"Step 1",minHeight:"306px",children:[(0,e.jsx)(r.kv,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,e.jsx)(r.kv,{mt:3,children:(0,e.jsxs)(r.ye,{width:"100%",children:[(0,e.jsx)(r.ye.Column,{children:(0,e.jsx)(r.q,{fluid:!0,icon:"laptop",content:"Laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return I("pick_device",{pick:"1"})}})}),(0,e.jsx)(r.ye.Column,{children:(0,e.jsx)(r.q,{fluid:!0,icon:"tablet-alt",content:"Tablet",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return I("pick_device",{pick:"2"})}})})]})})]})},v=function(_){var E=(0,t.yy)(),I=E.act,M=E.data;return(0,e.jsxs)(r.iG,{title:"Step 2: Customize your device",minHeight:"282px",buttons:(0,e.jsxs)(r.kv,{bold:!0,color:"good",children:[M.totalprice,"\u20AE"]}),children:[(0,e.jsxs)(r.oJ,{children:[(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsxs)(r.oJ.Cell,{bold:!0,position:"relative",children:["Battery:",(0,e.jsx)(r.o5,{content:(0,a.JQ)(C()),position:"right"})]}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Standard",selected:M.hw_battery===1,onClick:function(){return I("hw_battery",{battery:"1"})}})}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Upgraded",selected:M.hw_battery===2,onClick:function(){return I("hw_battery",{battery:"2"})}})}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Advanced",selected:M.hw_battery===3,onClick:function(){return I("hw_battery",{battery:"3"})}})})]}),(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsxs)(r.oJ.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,e.jsx)(r.o5,{content:(0,a.JQ)(x()),position:"right"})]}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Standard",selected:M.hw_disk===1,onClick:function(){return I("hw_disk",{disk:"1"})}})}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Upgraded",selected:M.hw_disk===2,onClick:function(){return I("hw_disk",{disk:"2"})}})}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Advanced",selected:M.hw_disk===3,onClick:function(){return I("hw_disk",{disk:"3"})}})})]}),(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsxs)(r.oJ.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,e.jsx)(r.o5,{content:(0,a.JQ)(u()),position:"right"})]}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"None",selected:M.hw_netcard===0,onClick:function(){return I("hw_netcard",{netcard:"0"})}})}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Standard",selected:M.hw_netcard===1,onClick:function(){return I("hw_netcard",{netcard:"1"})}})}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Advanced",selected:M.hw_netcard===2,onClick:function(){return I("hw_netcard",{netcard:"2"})}})})]}),(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsxs)(r.oJ.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,e.jsx)(r.o5,{content:(0,a.JQ)(d()),position:"right"})]}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"None",selected:M.hw_nanoprint===0,onClick:function(){return I("hw_nanoprint",{print:"0"})}})}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Standard",selected:M.hw_nanoprint===1,onClick:function(){return I("hw_nanoprint",{print:"1"})}})})]}),(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsxs)(r.oJ.Cell,{bold:!0,position:"relative",children:["Secondary Card Reader:",(0,e.jsx)(r.o5,{content:(0,a.JQ)(h()),position:"right"})]}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"None",selected:M.hw_card===0,onClick:function(){return I("hw_card",{card:"0"})}})}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Standard",selected:M.hw_card===1,onClick:function(){return I("hw_card",{card:"1"})}})})]}),M.devtype!==2&&(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsxs)(r.oJ.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,e.jsx)(r.o5,{content:(0,a.JQ)(c()),position:"right"})]}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Standard",selected:M.hw_cpu===1,onClick:function(){return I("hw_cpu",{cpu:"1"})}})}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Advanced",selected:M.hw_cpu===2,onClick:function(){return I("hw_cpu",{cpu:"2"})}})})]}),(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsxs)(r.oJ.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,e.jsx)(r.o5,{content:(0,a.JQ)(l()),position:"right"})]}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"None",selected:M.hw_tesla===0,onClick:function(){return I("hw_tesla",{tesla:"0"})}})}),(0,e.jsx)(r.oJ.Cell,{children:(0,e.jsx)(r.q,{content:"Standard",selected:M.hw_tesla===1,onClick:function(){return I("hw_tesla",{tesla:"1"})}})})]})]}),(0,e.jsx)(r.q,{fluid:!0,mt:3,content:"Confirm Order",color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){return I("confirm_order")}})]})},p=function(_){var E=(0,t.yy)(),I=E.act,M=E.data;return(0,e.jsxs)(r.iG,{title:"Step 3: Payment",minHeight:"282px",children:[(0,e.jsx)(r.kv,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,e.jsxs)(r.kv,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,e.jsx)(r.kv,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xA0",(0,e.jsxs)(r.kv,{inline:!0,color:"good",children:[M.totalprice,"\u20AE"]})]})]})},g=function(_){return(0,e.jsxs)(r.iG,{minHeight:"282px",children:[(0,e.jsx)(r.kv,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,e.jsx)(r.kv,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},39536:function(S,y,n){"use strict";n.r(y),n.d(y,{CookingAppliance:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.temperature,h=u.optimalTemp,c=u.temperatureEnough,l=u.efficiency,f=u.containersRemovable,m=u.our_contents;return(0,e.jsx)(r.qo,{width:600,height:600,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(t.iG,{title:"Status",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Temperature",children:(0,e.jsxs)(t.cH,{color:c?"good":"blue",value:d,maxValue:h,children:[(0,e.jsx)(t.Gg,{value:d}),"\xB0C / ",h,"\xB0C"]})}),(0,e.jsxs)(t.Ce.Item,{label:"Efficiency",children:[(0,e.jsx)(t.Gg,{value:l}),"%"]})]})}),(0,e.jsx)(t.iG,{title:"Containers",children:(0,e.jsx)(t.Ce,{children:m.map(function(v,p){return v.empty?(0,e.jsx)(t.Ce.Item,{label:"Slot #"+(p+1),children:(0,e.jsx)(t.q,{onClick:function(){return x("slot",{slot:p+1})},children:"Empty"})}):(0,e.jsx)(t.Ce.Item,{label:"Slot #"+(p+1),verticalAlign:"middle",children:(0,e.jsxs)(t.Cu,{spacing:1,children:[(0,e.jsx)(t.Cu.Item,{children:(0,e.jsx)(t.q,{disabled:!f,onClick:function(){return x("slot",{slot:p+1})},children:v.container||"No Container"})}),(0,e.jsx)(t.Cu.Item,{grow:1,children:(0,e.jsx)(t.cH,{color:v.progressText[0],value:v.progress,maxValue:1,children:v.progressText[1]})})]})},p)})})})]})})}},94384:function(S,y,n){"use strict";n.r(y),n.d(y,{CrewManifest:function(){return C},CrewManifestContent:function(){return x}});var e=n(33496),a=n(49900),t=n(45280),r=n(33404),i=n(36824),j=n(76512),C=function(){return(0,e.jsx)(j.qo,{width:400,height:600,children:(0,e.jsx)(j.qo.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(u){var d=(0,t.yy)(),h=d.act,c=d.data,l=c.manifest;return(0,e.jsx)(r.iG,{title:"Crew Manifest",noTopPadding:!0,children:l.map(function(f){return!!f.elems.length&&(0,e.jsx)(r.iG,{title:(0,e.jsx)(r.kv,{backgroundColor:i.yY.manifest[f.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,e.jsx)(r.kv,{ml:1,textAlign:"center",fontSize:1.4,children:f.cat})}),children:(0,e.jsxs)(r.oJ,{children:[(0,e.jsxs)(r.oJ.Row,{header:!0,color:"white",children:[(0,e.jsx)(r.oJ.Cell,{children:"Name"}),(0,e.jsx)(r.oJ.Cell,{children:"Rank"}),(0,e.jsx)(r.oJ.Cell,{children:"Active"})]}),f.elems.map(function(m){return(0,e.jsxs)(r.oJ.Row,{color:"average",children:[(0,e.jsx)(r.oJ.Cell,{children:(0,a.Af)(m.name)}),(0,e.jsx)(r.oJ.Cell,{children:m.rank}),(0,e.jsx)(r.oJ.Cell,{children:m.active})]},m.name+m.rank)})]})},f.cat)})})}},37284:function(S,y,n){"use strict";n.r(y),n.d(y,{CrewMonitor:function(){return u},CrewMonitorContent:function(){return d}});var e=n(33496),a=n(47392),t=n(18140),r=n(45280),i=n(76512),j=n(33404),C=function(c){return c.dead?"Deceased":parseInt(c.stat,10)===1?"Unconscious":"Living"},x=function(c){return c.dead?"red":parseInt(c.stat,10)===1?"orange":"green"},u=function(){return(0,e.jsx)(i.qo,{width:800,height:600,children:(0,e.jsx)(i.qo.Content,{children:(0,e.jsx)(d,{})})})},d=function(c){var l=(0,r.yy)(),f=l.act,m=l.data,v=l.config,p=(0,r.cv)("tabIndex",0),g=p[0],_=p[1],E=(0,t.k)([(0,a.cp)(function(k){return k.name}),(0,a.cp)(function(k){return k==null?void 0:k.x}),(0,a.cp)(function(k){return k==null?void 0:k.y}),(0,a.cp)(function(k){return k==null?void 0:k.realZ})])(m.crewmembers||[]),I=(0,r.cv)("zoom",1),M=I[0],P=I[1],D;return g===0?D=(0,e.jsxs)(j.oJ,{children:[(0,e.jsxs)(j.oJ.Row,{header:!0,children:[(0,e.jsx)(j.oJ.Cell,{children:"Name"}),(0,e.jsx)(j.oJ.Cell,{children:"Status"}),(0,e.jsx)(j.oJ.Cell,{children:"Location"})]}),E.map(function(k){return(0,e.jsxs)(j.oJ.Row,{children:[(0,e.jsxs)(j.oJ.Cell,{children:[k.name," (",k.assignment,")"]}),(0,e.jsxs)(j.oJ.Cell,{children:[(0,e.jsx)(j.kv,{inline:!0,color:x(k),children:C(k)}),k.sensor_type>=2?(0,e.jsxs)(j.kv,{inline:!0,children:["(",(0,e.jsx)(j.kv,{inline:!0,color:"red",children:k.brute}),"|",(0,e.jsx)(j.kv,{inline:!0,color:"orange",children:k.fire}),"|",(0,e.jsx)(j.kv,{inline:!0,color:"green",children:k.tox}),"|",(0,e.jsx)(j.kv,{inline:!0,color:"blue",children:k.oxy}),")"]}):null]}),(0,e.jsx)(j.oJ.Cell,{children:k.sensor_type===3?m.isAI?(0,e.jsx)(j.q,{fluid:!0,icon:"location-arrow",content:k.area+" ("+k.x+", "+k.y+")",onClick:function(){return f("track",{track:k.ref})}}):k.area+" ("+k.x+", "+k.y+", "+k.z+")":"Not Available"})]},k.ref)})]}):g===1?D=(0,e.jsx)(h,{}):D="ERROR",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(j.kZ,{children:[(0,e.jsxs)(j.kZ.Tab,{selected:g===0,onClick:function(){return _(0)},children:[(0,e.jsx)(j.GW,{name:"table"})," Data View"]},"DataView"),(0,e.jsxs)(j.kZ.Tab,{selected:g===1,onClick:function(){return _(1)},children:[(0,e.jsx)(j.GW,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(j.kv,{m:2,children:D})]})},h=function(c){var l=(0,r.yy)(),f=l.act,m=l.config,v=l.data,p=(0,r.cv)("zoom",1),g=p[0],_=p[1];return(0,e.jsx)(j.kv,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(j.mo,{onZoom:function(E){return _(E)},children:v.crewmembers.filter(function(E){return E.sensor_type===3&&~~E.realZ===~~m.mapZLevel}).map(function(E){return(0,e.jsx)(j.mo.Marker,{x:E.x,y:E.y,zoom:g,icon:"circle",tooltip:E.name+" ("+E.assignment+")",color:x(E)},E.ref)})})})}},34888:function(S,y,n){"use strict";n.r(y),n.d(y,{Cryo:function(){return C}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],j=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],C=function(d){return(0,e.jsx)(r.qo,{width:520,height:470,resizeable:!0,children:(0,e.jsx)(r.qo.Content,{className:"Layout__content--flexColumn",children:(0,e.jsx)(x,{})})})},x=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.isOperating,m=l.hasOccupant,v=l.occupant,p=v===void 0?[]:v,g=l.cellTemperature,_=l.cellTemperatureStatus,E=l.isBeakerLoaded;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.iG,{title:"Occupant",flexGrow:"1",buttons:(0,e.jsx)(t.q,{icon:"user-slash",onClick:function(){return c("ejectOccupant")},disabled:!m,children:"Eject"}),children:m?(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Occupant",children:p.name||"Unknown"}),(0,e.jsx)(t.Ce.Item,{label:"Health",children:(0,e.jsx)(t.cH,{min:p.health,max:p.maxHealth,value:p.health/p.maxHealth,color:p.health>0?"good":"average",children:(0,e.jsx)(t.Gg,{value:Math.round(p.health)})})}),(0,e.jsx)(t.Ce.Item,{label:"Status",color:j[p.stat][0],children:j[p.stat][1]}),(0,e.jsxs)(t.Ce.Item,{label:"Temperature",children:[(0,e.jsx)(t.Gg,{value:Math.round(p.bodyTemperature)})," K"]}),(0,e.jsx)(t.Ce.Divider,{}),i.map(function(I){return(0,e.jsx)(t.Ce.Item,{label:I.label,children:(0,e.jsx)(t.cH,{value:p[I.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.jsx)(t.Gg,{value:Math.round(p[I.type])})})},I.id)})]}):(0,e.jsx)(t.Cu,{height:"100%",textAlign:"center",children:(0,e.jsxs)(t.Cu.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(t.GW,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected."]})})}),(0,e.jsx)(t.iG,{title:"Cell",buttons:(0,e.jsx)(t.q,{icon:"eject",onClick:function(){return c("ejectBeaker")},disabled:!E,children:"Eject Beaker"}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Power",children:(0,e.jsx)(t.q,{icon:"power-off",onClick:function(){return c(f?"switchOff":"switchOn")},selected:f,children:f?"On":"Off"})}),(0,e.jsxs)(t.Ce.Item,{label:"Temperature",color:_,children:[(0,e.jsx)(t.Gg,{value:g})," K"]}),(0,e.jsx)(t.Ce.Item,{label:"Beaker",children:(0,e.jsx)(u,{})})]})})]})},u=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.isBeakerLoaded,m=l.beakerLabel,v=l.beakerVolume;return f?(0,e.jsxs)(e.Fragment,{children:[m||(0,e.jsx)(t.kv,{color:"average",children:"No label"}),(0,e.jsx)(t.kv,{color:!v&&"bad",children:v?(0,e.jsx)(t.Gg,{value:v,format:function(p){return Math.round(p)+" units remaining"}}):"Beaker is empty"})]}):(0,e.jsx)(t.kv,{color:"average",children:"No beaker loaded"})}},62208:function(S,y,n){"use strict";n.r(y),n.d(y,{CryoStorage:function(){return i},CryoStorageCrew:function(){return j},CryoStorageItems:function(){return C}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(x){var u=(0,a.yy)(),d=u.act,h=u.data,c=h.real_name,l=h.allow_items,f=(0,a.cv)("tab",0),m=f[0],v=f[1];return(0,e.jsx)(r.qo,{width:400,height:600,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsxs)(t.kZ,{children:[(0,e.jsx)(t.kZ.Tab,{selected:m===0,onClick:function(){return v(0)},children:"Crew"}),!!l&&(0,e.jsx)(t.kZ.Tab,{selected:m===1,onClick:function(){return v(1)},children:"Items"})]}),(0,e.jsxs)(t.yc,{info:!0,children:["Welcome, ",c,"."]}),m===0&&(0,e.jsx)(j,{}),!!l&&m===1&&(0,e.jsx)(C,{})]})})},j=function(x){var u=(0,a.yy)(),d=u.act,h=u.data,c=h.crew;return(0,e.jsx)(t.iG,{title:"Stored Crew",children:c.length&&c.map(function(l){return(0,e.jsx)(t.kv,{color:"label",children:l},l)})||(0,e.jsx)(t.kv,{color:"good",children:"No crew currently stored."})})},C=function(x){var u=(0,a.yy)(),d=u.act,h=u.data,c=h.items;return(0,e.jsx)(t.iG,{title:"Stored Items",buttons:(0,e.jsx)(t.q,{icon:"hand-rock",onClick:function(){return d("allitems")},children:"Claim All"}),children:c.length&&c.map(function(l){return(0,e.jsx)(t.q,{icon:"hand-rock",onClick:function(){return d("item",{ref:l.ref})},children:l.name},l.ref)})||(0,e.jsx)(t.kv,{color:"average",children:"No items stored."})})}},61440:function(S,y,n){"use strict";n.r(y),n.d(y,{CryoStorageItemsVr:function(){return C},CryoStorageVr:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(62208),j=function(x){var u=(0,a.yy)(),d=u.act,h=u.data,c=h.real_name,l=h.allow_items,f=(0,a.cv)("tab",0),m=f[0],v=f[1];return(0,e.jsx)(r.qo,{width:400,height:600,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsxs)(t.kZ,{children:[(0,e.jsx)(t.kZ.Tab,{selected:m===0,onClick:function(){return v(0)},children:"Crew"}),!!l&&(0,e.jsx)(t.kZ.Tab,{selected:m===1,onClick:function(){return v(1)},children:"Items"})]}),(0,e.jsxs)(t.yc,{info:!0,children:["Welcome, ",c,"."]}),m===0&&(0,e.jsx)(i.CryoStorageCrew,{}),!!l&&m===1&&(0,e.jsx)(C,{})]})})},C=function(x){var u=(0,a.yy)(),d=u.act,h=u.data,c=h.items;return(0,e.jsx)(t.iG,{title:"Stored Items",children:c.length&&c.map(function(l){return(0,e.jsx)(t.kv,{color:"label",children:l},l)})||(0,e.jsx)(t.kv,{color:"average",children:"No items stored."})})}},48936:function(S,y,n){"use strict";n.r(y),n.d(y,{DNAForensics:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.scan_progress,h=u.scanning,c=u.bloodsamp,l=u.bloodsamp_desc;return(0,e.jsx)(r.qo,{width:540,height:326,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(t.iG,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{selected:h,disabled:!c,icon:"power-off",onClick:function(){return x("scanItem")},children:h?"Halt Scan":"Begin Scan"}),(0,e.jsx)(t.q,{disabled:!c,icon:"eject",onClick:function(){return x("ejectItem")},children:"Eject Bloodsample"})]}),children:(0,e.jsx)(t.Ce,{children:(0,e.jsx)(t.Ce.Item,{label:"Scan Progress",children:(0,e.jsx)(t.cH,{ranges:{good:[99,1/0],violet:[-1/0,99]},value:d,maxValue:100})})})}),(0,e.jsx)(t.iG,{title:"Blood Sample",children:c&&(0,e.jsxs)(t.kv,{children:[c,(0,e.jsx)(t.kv,{color:"label",children:l})]})||(0,e.jsx)(t.kv,{color:"bad",children:"No blood sample inserted."})})]})})}},62936:function(S,y,n){"use strict";n.r(y),n.d(y,{DNAModifier:function(){return u}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(8020),j=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],C=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],x=[5,10,20,30,50],u=function(I){var M=(0,a.yy)(),P=M.act,D=M.data,k=D.irradiating,L=D.dnaBlockSize,F=D.occupant;context.dnaBlockSize=L,context.isDNAInvalid=!F.isViableSubject||!F.uniqueIdentity||!F.structuralEnzymes;var w;return k&&(w=(0,e.jsx)(_,{duration:k})),(0,e.jsxs)(r.qo,{width:660,height:700,children:[(0,e.jsx)(i.ComplexModal,{}),w,(0,e.jsxs)(r.qo.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(d,{}),(0,e.jsx)(h,{})]})]})},d=function(I){var M=(0,a.yy)(),P=M.act,D=M.data,k=D.locked,L=D.hasOccupant,F=D.occupant;return(0,e.jsx)(t.iG,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.kv,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.jsx)(t.q,{disabled:!L,selected:k,icon:k?"toggle-on":"toggle-off",content:k?"Engaged":"Disengaged",onClick:function(){return P("toggleLock")}}),(0,e.jsx)(t.q,{disabled:!L||k,icon:"user-slash",content:"Eject",onClick:function(){return P("ejectOccupant")}})]}),children:L?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.kv,{children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Name",children:F.name}),(0,e.jsx)(t.Ce.Item,{label:"Health",children:(0,e.jsx)(t.cH,{min:F.minHealth,max:F.maxHealth,value:F.health/F.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(t.Ce.Item,{label:"Status",color:j[F.stat][0],children:j[F.stat][1]}),(0,e.jsx)(t.Ce.Divider,{})]})}),context.isDNAInvalid?(0,e.jsxs)(t.kv,{color:"bad",children:[(0,e.jsx)(t.GW,{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)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Radiation",children:(0,e.jsx)(t.cH,{min:"0",max:"100",value:F.radiationLevel/100,color:"average"})}),(0,e.jsx)(t.Ce.Item,{label:"Unique Enzymes",children:D.occupant.uniqueEnzymes?D.occupant.uniqueEnzymes:(0,e.jsxs)(t.kv,{color:"bad",children:[(0,e.jsx)(t.GW,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})]}):(0,e.jsx)(t.kv,{color:"label",children:"Cell unoccupied."})})},h=function(I){var M=(0,a.yy)(),P=M.act,D=M.data,k=D.selectedMenuKey,L=D.hasOccupant,F=D.occupant;if(L){if(context.isDNAInvalid)return(0,e.jsx)(t.iG,{flexGrow:"1",children:(0,e.jsx)(t.Cu,{height:"100%",children:(0,e.jsxs)(t.Cu.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(t.GW,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No operation possible on this subject."]})})})}else return(0,e.jsx)(t.iG,{flexGrow:"1",children:(0,e.jsx)(t.Cu,{height:"100%",children:(0,e.jsxs)(t.Cu.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(t.GW,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant in DNA modifier."]})})});var w;return k==="ui"?w=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(c,{}),(0,e.jsx)(f,{})]}):k==="se"?w=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(l,{}),(0,e.jsx)(f,{})]}):k==="buffer"?w=(0,e.jsx)(m,{}):k==="rejuvenators"&&(w=(0,e.jsx)(g,{})),(0,e.jsxs)(t.iG,{flexGrow:"1",children:[(0,e.jsx)(t.kZ,{children:C.map(function(N,$){return(0,e.jsxs)(t.kZ.Tab,{selected:k===N[0],onClick:function(){return P("selectMenuKey",{key:N[0]})},children:[(0,e.jsx)(t.GW,{name:N[2]}),N[1]]},$)})}),w]})},c=function(I){var M=(0,a.yy)(),P=M.act,D=M.data,k=D.selectedUIBlock,L=D.selectedUISubBlock,F=D.selectedUITarget,w=D.occupant;return(0,e.jsxs)(t.iG,{title:"Modify Unique Identifier",level:"2",children:[(0,e.jsx)(E,{dnaString:w.uniqueIdentity,selectedBlock:k,selectedSubblock:L,blockSize:context.dnaBlockSize,action:"selectUIBlock"}),(0,e.jsx)(t.Ce,{children:(0,e.jsx)(t.Ce.Item,{label:"Target",children:(0,e.jsx)(t.S6,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:F,format:function(N){return N.toString(16).toUpperCase()},ml:"0",onChange:function(N,$){return P("changeUITarget",{value:$})}})})}),(0,e.jsx)(t.q,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){return P("pulseUIRadiation")}})]})},l=function(I){var M=(0,a.yy)(),P=M.act,D=M.data,k=D.selectedSEBlock,L=D.selectedSESubBlock,F=D.occupant;return(0,e.jsxs)(t.iG,{title:"Modify Structural Enzymes",level:"2",children:[(0,e.jsx)(E,{dnaString:F.structuralEnzymes,selectedBlock:k,selectedSubblock:L,blockSize:context.dnaBlockSize,action:"selectSEBlock"}),(0,e.jsx)(t.q,{icon:"radiation",content:"Irradiate Block",onClick:function(){return P("pulseSERadiation")}})]})},f=function(I){var M=(0,a.yy)(),P=M.act,D=M.data,k=D.radiationIntensity,L=D.radiationDuration;return(0,e.jsxs)(t.iG,{title:"Radiation Emitter",level:"2",children:[(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Intensity",children:(0,e.jsx)(t.S6,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:k,popUpPosition:"right",ml:"0",onChange:function(F,w){return P("radiationIntensity",{value:w})}})}),(0,e.jsx)(t.Ce.Item,{label:"Duration",children:(0,e.jsx)(t.S6,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:L,popUpPosition:"right",ml:"0",onChange:function(F,w){return P("radiationDuration",{value:w})}})})]}),(0,e.jsx)(t.q,{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 P("pulseRadiation")}})]})},m=function(I){var M=(0,a.yy)(),P=M.act,D=M.data,k=D.buffers,L=k.map(function(F,w){return(0,e.jsx)(v,{id:w+1,name:"Buffer "+(w+1),buffer:F},w)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.iG,{title:"Buffers",level:"2",children:L}),(0,e.jsx)(p,{})]})},v=function(I){var M=(0,a.yy)(),P=M.act,D=M.data,k=I.id,L=I.name,F=I.buffer,w=D.isInjectorReady,N=L+(F.data?" - "+F.label:"");return(0,e.jsx)(t.kv,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsxs)(t.iG,{title:N,level:"3",mx:"0",lineHeight:"18px",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q.Confirm,{disabled:!F.data,icon:"trash",content:"Clear",onClick:function(){return P("bufferOption",{option:"clear",id:k})}}),(0,e.jsx)(t.q,{disabled:!F.data,icon:"pen",content:"Rename",onClick:function(){return P("bufferOption",{option:"changeLabel",id:k})}}),(0,e.jsx)(t.q,{disabled:!F.data||!D.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return P("bufferOption",{option:"saveDisk",id:k})}})]}),children:[(0,e.jsxs)(t.Ce,{children:[(0,e.jsxs)(t.Ce.Item,{label:"Write",children:[(0,e.jsx)(t.q,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){return P("bufferOption",{option:"saveUI",id:k})}}),(0,e.jsx)(t.q,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){return P("bufferOption",{option:"saveUIAndUE",id:k})}}),(0,e.jsx)(t.q,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){return P("bufferOption",{option:"saveSE",id:k})}}),(0,e.jsx)(t.q,{disabled:!D.hasDisk||!D.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){return P("bufferOption",{option:"loadDisk",id:k})}})]}),!!F.data&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ce.Item,{label:"Subject",children:F.owner||(0,e.jsx)(t.kv,{color:"average",children:"Unknown"})}),(0,e.jsxs)(t.Ce.Item,{label:"Data Type",children:[F.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!F.ue&&" and Unique Enzymes"]}),(0,e.jsxs)(t.Ce.Item,{label:"Transfer to",children:[(0,e.jsx)(t.q,{disabled:!w,icon:w?"syringe":"spinner",iconSpin:!w,content:"Injector",mb:"0",onClick:function(){return P("bufferOption",{option:"createInjector",id:k})}}),(0,e.jsx)(t.q,{disabled:!w,icon:w?"syringe":"spinner",iconSpin:!w,content:"Block Injector",mb:"0",onClick:function(){return P("bufferOption",{option:"createInjector",id:k,block:1})}}),(0,e.jsx)(t.q,{icon:"user",content:"Subject",mb:"0",onClick:function(){return P("bufferOption",{option:"transfer",id:k})}})]})]})]}),!F.data&&(0,e.jsx)(t.kv,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},p=function(I){var M=(0,a.yy)(),P=M.act,D=M.data,k=D.hasDisk,L=D.disk;return(0,e.jsx)(t.iG,{title:"Data Disk",level:"2",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q.Confirm,{disabled:!k||!L.data,icon:"trash",content:"Wipe",onClick:function(){return P("wipeDisk")}}),(0,e.jsx)(t.q,{disabled:!k,icon:"eject",content:"Eject",onClick:function(){return P("ejectDisk")}})]}),children:k?L.data?(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Label",children:L.label?L.label:"No label"}),(0,e.jsx)(t.Ce.Item,{label:"Subject",children:L.owner?L.owner:(0,e.jsx)(t.kv,{color:"average",children:"Unknown"})}),(0,e.jsxs)(t.Ce.Item,{label:"Data Type",children:[L.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!L.ue&&" and Unique Enzymes"]})]}):(0,e.jsx)(t.kv,{color:"label",children:"Disk is blank."}):(0,e.jsxs)(t.kv,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.jsx)(t.GW,{name:"save-o",size:"4"}),(0,e.jsx)("br",{}),"No disk inserted."]})})},g=function(I){var M=(0,a.yy)(),P=M.act,D=M.data,k=D.isBeakerLoaded,L=D.beakerVolume,F=D.beakerLabel;return(0,e.jsx)(t.iG,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,e.jsx)(t.q,{disabled:!k,icon:"eject",content:"Eject",onClick:function(){return P("ejectBeaker")}}),children:k?(0,e.jsxs)(t.Ce,{children:[(0,e.jsxs)(t.Ce.Item,{label:"Inject",children:[x.map(function(w,N){return(0,e.jsx)(t.q,{disabled:w>L,icon:"syringe",content:w,onClick:function(){return P("injectRejuvenators",{amount:w})}},N)}),(0,e.jsx)(t.q,{disabled:L<=0,icon:"syringe",content:"All",onClick:function(){return P("injectRejuvenators",{amount:L})}})]}),(0,e.jsxs)(t.Ce.Item,{label:"Beaker",children:[(0,e.jsx)(t.kv,{mb:"0.5rem",children:F||"No label"}),L?(0,e.jsxs)(t.kv,{color:"good",children:[L," unit",L===1?"":"s"," remaining"]}):(0,e.jsx)(t.kv,{color:"bad",children:"Empty"})]})]}):(0,e.jsxs)(t.kv,{color:"label",textAlign:"center",my:"25%",children:[(0,e.jsx)(t.GW,{name:"exclamation-triangle",size:"4"}),(0,e.jsx)("br",{}),"No beaker loaded."]})})},_=function(I){return(0,e.jsxs)(t.Oe,{textAlign:"center",children:[(0,e.jsx)(t.GW,{name:"spinner",size:"5",spin:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(t.kv,{color:"average",children:(0,e.jsxs)("h1",{children:[(0,e.jsx)(t.GW,{name:"radiation"}),"\xA0Irradiating occupant\xA0",(0,e.jsx)(t.GW,{name:"radiation"})]})}),(0,e.jsx)(t.kv,{color:"label",children:(0,e.jsxs)("h3",{children:["For ",I.duration," second",I.duration===1?"":"s"]})})]})},E=function(I){for(var M=function(Y){for(var Z=function(le){var ie=le+1;Q.push((0,e.jsx)(t.q,{selected:F===z&&w===ie,content:H[Y+le],mb:"0",onClick:function(){return D($,{block:z,subblock:ie})}}))},z=Y/N+1,Q=[],oe=0;oe1?"Dangerous!":null]},p.stage)})||(0,e.jsx)(t.kv,{children:"No virus sample loaded."})}),(0,e.jsxs)(t.iG,{level:2,title:"Affected Species",color:"label",children:[!v||!v.length?"None":null,v.sort().join(", ")]}),(0,e.jsxs)(t.iG,{level:2,title:"Reverse Engineering",children:[(0,e.jsx)(t.kv,{color:"bad",mb:1,children:(0,e.jsx)("i",{children:"CAUTION: Reverse engineering will destroy the viral sample."})}),l.map(function(p){return(0,e.jsx)(t.q,{content:p.stage,icon:"exchange-alt",onClick:function(){return d("grab",{grab:p.reference})}},p.stage)}),(0,e.jsx)(t.q,{content:"Species",icon:"exchange-alt",onClick:function(){return d("affected_species")}})]})]})]})},C=function(x){var u=(0,a.yy)(),d=u.act,h=u.data,c=h.dish_inserted,l=h.buffer,f=h.species_buffer,m=h.effects,v=h.info,p=h.growth,g=h.affected_species,_=h.busy;return(0,e.jsxs)(t.iG,{title:"Storage",children:[(0,e.jsx)(t.Ce,{children:(0,e.jsx)(t.Ce.Item,{label:"Memory Buffer",children:l?(0,e.jsxs)(t.kv,{children:[l.name," (",l.stage,")"]}):f?(0,e.jsx)(t.kv,{children:f}):"Empty"})}),(0,e.jsx)(t.q,{mt:1,icon:"save",content:"Save To Disk",disabled:!l&&!f,onClick:function(){return d("disk")}}),l?(0,e.jsxs)(t.kv,{children:[(0,e.jsx)(t.q,{icon:"pen",content:"Splice #1",disabled:l.stage>1,onClick:function(){return d("splice",{splice:1})}}),(0,e.jsx)(t.q,{icon:"pen",content:"Splice #2",disabled:l.stage>2,onClick:function(){return d("splice",{splice:2})}}),(0,e.jsx)(t.q,{icon:"pen",content:"Splice #3",disabled:l.stage>3,onClick:function(){return d("splice",{splice:3})}}),(0,e.jsx)(t.q,{icon:"pen",content:"Splice #4",disabled:l.stage>4,onClick:function(){return d("splice",{splice:4})}})]}):f?(0,e.jsx)(t.kv,{children:(0,e.jsx)(t.q,{icon:"pen",content:"Splice Species",disabled:!f||v,onClick:function(){return d("splice",{splice:5})}})}):null]})}},13300:function(S,y,n){"use strict";n.r(y),n.d(y,{DishIncubator:function(){return j}});var e=n(33496),a=n(96060),t=n(45280),r=n(33404),i=n(76512),j=function(C){var x=(0,t.yy)(),u=x.act,d=x.data,h=d.on,c=d.system_in_use,l=d.food_supply,f=d.radiation,m=d.growth,v=d.toxins,p=d.chemicals_inserted,g=d.can_breed_virus,_=d.chemical_volume,E=d.max_chemical_volume,I=d.dish_inserted,M=d.blood_already_infected,P=d.virus,D=d.analysed,k=d.infection_rate;return(0,e.jsx)(i.qo,{width:400,height:600,children:(0,e.jsxs)(i.qo.Content,{scrollable:!0,children:[(0,e.jsxs)(r.iG,{title:"Environmental Conditions",buttons:(0,e.jsx)(r.q,{icon:"power-off",selected:h,content:h?"On":"Off",onClick:function(){return u("power")}}),children:[(0,e.jsxs)(r.Cu,{spacing:1,mb:1,children:[(0,e.jsx)(r.Cu.Item,{grow:1,children:(0,e.jsx)(r.q,{fluid:!0,icon:"radiation",content:"Add Radiation",onClick:function(){return u("rad")}})}),(0,e.jsx)(r.Cu.Item,{grow:1,children:(0,e.jsx)(r.q.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",content:"Flush System",disabled:!c,onClick:function(){return u("flush")}})})]}),(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Virus Food",children:(0,e.jsx)(r.cH,{minValue:0,maxValue:100,ranges:{good:[40,1/0],average:[20,40],bad:[-1/0,20]},value:l})}),(0,e.jsx)(r.Ce.Item,{label:"Radiation Level",children:(0,e.jsxs)(r.cH,{minValue:0,maxValue:100,color:f>=50?"bad":m>=25?"average":"good",value:f,children:[(0,a.WX)(f*1e4)," \xB5Sv"]})}),(0,e.jsx)(r.Ce.Item,{label:"Toxicity",children:(0,e.jsx)(r.cH,{minValue:0,maxValue:100,ranges:{bad:[50,1/0],average:[25,50],good:[-1/0,25]},value:v})})]})]}),(0,e.jsx)(r.iG,{title:g?"Vial":"Chemicals",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{icon:"eject",content:"Eject "+(g?"Vial":"Chemicals"),disabled:!p,onClick:function(){return u("ejectchem")}}),(0,e.jsx)(r.q,{icon:"virus",content:"Breed Virus",disabled:!g,onClick:function(){return u("virus")}})]}),children:p&&(0,e.jsx)(r.kv,{children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Volume",children:(0,e.jsxs)(r.cH,{minValue:0,maxValue:E,value:_,children:[_,"/",E]})}),(0,e.jsxs)(r.Ce.Item,{label:"Breeding Environment",color:g?"good":"average",children:[I?g?"Suitable":"No hemolytic samples detected":"N/A",M?(0,e.jsx)(r.kv,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,e.jsx)(r.kv,{color:"average",children:"No chemicals inserted."})}),(0,e.jsx)(r.iG,{title:"Virus Dish",buttons:(0,e.jsx)(r.q,{icon:"eject",content:"Eject Dish",disabled:!I,onClick:function(){return u("ejectdish")}}),children:I?P?(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Growth Density",children:(0,e.jsx)(r.cH,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:m})}),(0,e.jsx)(r.Ce.Item,{label:"Infection Rate",children:D?k:"Unknown."})]}):(0,e.jsx)(r.kv,{color:"bad",children:"No virus detected."}):(0,e.jsx)(r.kv,{color:"average",children:"No dish loaded."})})]})})}},24644:function(S,y,n){"use strict";n.r(y),n.d(y,{DisposalBin:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.mode,h=u.pressure,c=u.isAI,l=u.panel_open,f=u.flushing,m,v;return d===2?(m="good",v="Ready"):d<=0?(m="bad",v="N/A"):d===1?(m="average",v="Pressurizing"):(m="average",v="Idle"),(0,e.jsx)(r.qo,{width:300,height:250,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsxs)(t.iG,{children:[(0,e.jsx)(t.kv,{bold:!0,m:1,children:"Status"}),(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"State",color:m,children:v}),(0,e.jsx)(t.Ce.Item,{label:"Pressure",children:(0,e.jsx)(t.cH,{ranges:{bad:[-1/0,0],average:[0,99],good:[99,1/0]},value:h,minValue:0,maxValue:100})})]}),(0,e.jsx)(t.kv,{bold:!0,m:1,children:"Controls"}),(0,e.jsxs)(t.Ce,{children:[(0,e.jsxs)(t.Ce.Item,{label:"Handle",children:[(0,e.jsx)(t.q,{icon:"toggle-off",disabled:c||l,content:"Disengaged",selected:f?null:"selected",onClick:function(){return x("disengageHandle")}}),(0,e.jsx)(t.q,{icon:"toggle-on",disabled:c||l,content:"Engaged",selected:f?"selected":null,onClick:function(){return x("engageHandle")}})]}),(0,e.jsxs)(t.Ce.Item,{label:"Power",children:[(0,e.jsx)(t.q,{icon:"toggle-off",disabled:d===-1,content:"Off",selected:d?null:"selected",onClick:function(){return x("pumpOff")}}),(0,e.jsx)(t.q,{icon:"toggle-on",disabled:d===-1,content:"On",selected:d?"selected":null,onClick:function(){return x("pumpOn")}})]}),(0,e.jsx)(t.Ce.Item,{label:"Eject",children:(0,e.jsx)(t.q,{icon:"sign-out-alt",disabled:c,content:"Eject Contents",onClick:function(){return x("eject")}})})]})]})})})}},31448:function(S,y,n){"use strict";n.r(y),n.d(y,{DroneConsole:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.drones,h=u.areas,c=u.selected_area,l=u.fabricator,f=u.fabPower;return(0,e.jsx)(r.qo,{width:600,height:350,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(t.iG,{title:"Drone Fabricator",buttons:(0,e.jsx)(t.q,{disabled:!l,selected:f,icon:"power-off",content:f?"Enabled":"Disabled",onClick:function(){return x("toggle_fab")}}),children:l?(0,e.jsx)(t.kv,{color:"good",children:"Linked."}):(0,e.jsxs)(t.kv,{color:"bad",children:["Fabricator not detected.",(0,e.jsx)(t.q,{icon:"sync",content:"Search for Fabricator",onClick:function(){return x("search_fab")}})]})}),(0,e.jsxs)(t.iG,{title:"Request Drone",children:[(0,e.jsx)(t.cS,{options:h?h.sort():null,selected:c,width:"100%",onSelected:function(m){return x("set_dcall_area",{area:m})}}),(0,e.jsx)(t.q,{icon:"share-square",content:"Send Ping",onClick:function(){return x("ping")}})]}),(0,e.jsx)(t.iG,{title:"Maintenance Units",children:d&&d.length?(0,e.jsx)(t.Ce,{children:d.map(function(m){return(0,e.jsx)(t.Ce.Item,{label:m.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:"sync",content:"Resync",onClick:function(){return x("resync",{ref:m.ref})}}),(0,e.jsx)(t.q.Confirm,{icon:"exclamation-triangle",color:"red",content:"Shutdown",onClick:function(){return x("shutdown",{ref:m.ref})}})]}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Location",children:m.loc}),(0,e.jsxs)(t.Ce.Item,{label:"Charge",children:[m.charge," / ",m.maxCharge]}),(0,e.jsx)(t.Ce.Item,{label:"Active",children:m.active?"Yes":"No"})]})},m.name)})}):(0,e.jsx)(t.kv,{color:"bad",children:"No drones detected."})})]})})}},71324:function(S,y,n){"use strict";n.r(y),n.d(y,{EmbeddedController:function(){return x}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(37756),j=(0,i.m)("fuck"),C={},x=function(D){var k=(0,a.yy)(),L=k.act,F=k.data,w=F.internalTemplateName,N=C[w];if(!N)throw Error("Unable to find Component for template name: "+w);return(0,e.jsx)(r.qo,{width:450,height:340,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(N,{})})})},u=function(D){var k=D.bars;return(0,e.jsx)(t.iG,{title:"Status",children:(0,e.jsx)(t.Ce,{children:k.map(function(L){return(0,e.jsx)(t.Ce.Item,{label:L.label,children:(0,e.jsx)(t.cH,{color:L.color(L.value),minValue:L.minValue,maxValue:L.maxValue,value:L.value,children:L.textValue})},L.label)})})})},d=function(D){var k=(0,a.yy)(),L=k.data,F=k.act,w=!0;L.interior_status&&L.interior_status.state==="open"?w=!1:L.external_pressure&&L.chamber_pressure&&(w=!(Math.abs(L.external_pressure-L.chamber_pressure)>5));var N=!0;return L.exterior_status&&L.exterior_status.state==="open"?N=!1:L.internal_pressure&&L.chamber_pressure&&(N=!(Math.abs(L.internal_pressure-L.chamber_pressure)>5)),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.kv,{children:[(0,e.jsx)(t.q,{disabled:L.airlock_disabled,icon:"arrow-left",content:"Cycle to Exterior",onClick:function(){return F("cycle_ext")}}),(0,e.jsx)(t.q,{disabled:L.airlock_disabled,icon:"arrow-right",content:"Cycle to Interior",onClick:function(){return F("cycle_int")}})]}),(0,e.jsxs)(t.kv,{children:[(0,e.jsx)(t.q.Confirm,{disabled:L.airlock_disabled,color:w?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Exterior Door",onClick:function(){return F("force_ext")}}),(0,e.jsx)(t.q.Confirm,{disabled:L.airlock_disabled,color:N?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Interior Door",onClick:function(){return F("force_int")}})]})]})},h=function(D){var k=(0,a.yy)(),L=k.data,F=k.act,w={docked:(0,e.jsx)(c,{}),undocking:(0,e.jsx)(t.kv,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,e.jsx)(t.kv,{color:"grey",children:"POD EJECTED"}),docking:(0,e.jsx)(t.kv,{color:"good",children:"INITIALIZING..."})},N=(0,e.jsx)(t.kv,{color:"bad",children:"ERROR"});return L.exterior_status.state==="open"?N=(0,e.jsx)(t.kv,{color:"average",children:"OPEN"}):L.exterior_status.lock==="unlocked"?N=(0,e.jsx)(t.kv,{color:"average",children:"UNSECURED"}):L.exterior_status.lock==="locked"&&(N=(0,e.jsx)(t.kv,{color:"good",children:"SECURED"})),(0,e.jsx)(t.iG,{children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Escape Pod Status",children:w[L.docking_status]}),(0,e.jsx)(t.Ce.Item,{label:"Docking Hatch",children:N})]})})},c=function(D){var k=(0,a.yy)(),L=k.data,F=k.act;return L.armed?(0,e.jsx)(t.kv,{color:"average",children:"ARMED"}):(0,e.jsx)(t.kv,{color:"good",children:"SYSTEMS OK"})},l=function(D){var k=(0,a.yy)(),L=k.data,F=k.act;return(0,e.jsxs)(t.kv,{children:[(0,e.jsx)(t.q,{disabled:!L.override_enabled,icon:"exclamation-triangle",content:"Force Exterior Door",color:L.docking_status!=="docked"?"bad":"",onClick:function(){return F("force_door")}}),(0,e.jsx)(t.q,{selected:L.override_enabled,color:L.docking_status!=="docked"?"bad":"average",icon:"exclamation-triangle",content:"Override",onClick:function(){return F("toggle_override")}})]})},f=function(D){var k=(0,a.yy)(),L=k.data,F=k.act,w={docked:(0,e.jsx)(t.kv,{color:"good",children:"DOCKED"}),docking:(0,e.jsx)(t.kv,{color:"average",children:"DOCKING"}),undocking:(0,e.jsx)(t.kv,{color:"average",children:"UNDOCKING"}),undocked:(0,e.jsx)(t.kv,{color:"grey",children:"NOT IN USE"})},N=w[L.docking_status];return L.override_enabled&&(N=(0,e.jsxs)(t.kv,{color:"bad",children:[L.docking_status.toUpperCase(),"-OVERRIDE ENABLED"]})),N},m=function(D){var k=(0,a.yy)(),L=k.act,F=k.data,w=function($){return $<80||$>120?"bad":$<95||$>110?"average":"good"},N=[{minValue:0,maxValue:202,value:F.external_pressure,label:"External Pressure",textValue:F.external_pressure+" kPa",color:w},{minValue:0,maxValue:202,value:F.chamber_pressure,label:"Chamber Pressure",textValue:F.chamber_pressure+" kPa",color:w},{minValue:0,maxValue:202,value:F.internal_pressure,label:"Internal Pressure",textValue:F.internal_pressure+" kPa",color:w}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(u,{bars:N}),(0,e.jsxs)(t.iG,{title:"Controls",children:[(0,e.jsx)(d,{}),(0,e.jsxs)(t.kv,{children:[(0,e.jsx)(t.q,{icon:"sync",content:"Purge",onClick:function(){return L("purge")}}),(0,e.jsx)(t.q,{icon:"lock-open",content:"Secure",onClick:function(){return L("secure")}})]}),(0,e.jsx)(t.kv,{children:(0,e.jsx)(t.q,{disabled:!F.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return L("abort")}})})]})]})};C.AirlockConsoleAdvanced=m;var v=function(D){var k=(0,a.yy)(),L=k.act,F=k.data,w=[{minValue:0,maxValue:202,value:F.chamber_pressure,label:"Chamber Pressure",textValue:F.chamber_pressure+" kPa",color:function(N){return N<80||N>120?"bad":N<95||N>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(u,{bars:w}),(0,e.jsxs)(t.iG,{title:"Controls",children:[(0,e.jsx)(d,{}),(0,e.jsx)(t.kv,{children:(0,e.jsx)(t.q,{disabled:!F.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return L("abort")}})})]})]})};C.AirlockConsoleSimple=v;var p=function(D){var k=(0,a.yy)(),L=k.act,F=k.data,w=[{minValue:0,maxValue:202,value:F.chamber_pressure,label:"Chamber Pressure",textValue:F.chamber_pressure+" kPa",color:function(N){return N<80||N>120?"bad":N<95||N>110?"average":"good"}},{minValue:0,maxValue:100,value:F.chamber_phoron,label:"Chamber Phoron",textValue:F.chamber_phoron+" mol",color:function(N){return N>5?"bad":N>.5?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(u,{bars:w}),(0,e.jsxs)(t.iG,{title:"Controls",children:[(0,e.jsx)(d,{}),(0,e.jsx)(t.kv,{children:(0,e.jsx)(t.q,{disabled:!F.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return L("abort")}})})]})]})};C.AirlockConsolePhoron=p;var g=function(D){var k=(0,a.yy)(),L=k.act,F=k.data,w=[{minValue:0,maxValue:202,value:F.chamber_pressure,label:"Chamber Pressure",textValue:F.chamber_pressure+" kPa",color:function(N){return N<80||N>120?"bad":N<95||N>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.iG,{title:"Dock",buttons:F.airlock_disabled||F.override_enabled?(0,e.jsx)(t.q,{icon:"exclamation-triangle",color:F.override_enabled?"red":"",content:"Override",onClick:function(){return L("toggle_override")}}):null,children:(0,e.jsx)(f,{})}),(0,e.jsx)(u,{bars:w}),(0,e.jsxs)(t.iG,{title:"Controls",children:[(0,e.jsx)(d,{}),(0,e.jsx)(t.kv,{children:(0,e.jsx)(t.q,{disabled:!F.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return L("abort")}})})]})]})};C.AirlockConsoleDocking=g;var _=function(D){var k=(0,a.yy)(),L=k.act,F=k.data,w=(0,e.jsx)(t.kv,{color:"bad",children:"ERROR"});return F.exterior_status.state==="open"?w=(0,e.jsx)(t.kv,{color:"average",children:"OPEN"}):F.exterior_status.lock==="unlocked"?w=(0,e.jsx)(t.kv,{color:"average",children:"UNSECURED"}):F.exterior_status.lock==="locked"&&(w=(0,e.jsx)(t.kv,{color:"good",children:"SECURED"})),(0,e.jsx)(t.iG,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:"exclamation-triangle",disabled:!F.override_enabled,content:"Force exterior door",onClick:function(){return L("force_door")}}),(0,e.jsx)(t.q,{icon:"exclamation-triangle",color:F.override_enabled?"red":"",content:"Override",onClick:function(){return L("toggle_override")}})]}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Dock Status",children:(0,e.jsx)(f,{})}),(0,e.jsx)(t.Ce.Item,{label:"Docking Hatch",children:w})]})})};C.DockingConsoleSimple=_;var E=function(D){var k=(0,a.yy)().data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.iG,{title:"Docking Status",children:(0,e.jsx)(f,{})}),(0,e.jsx)(t.iG,{title:"Airlocks",children:k.airlocks.length?(0,e.jsx)(t.Ce,{children:k.airlocks.map(function(L){return(0,e.jsx)(t.Ce.Item,{color:L.override_enabled?"bad":"good",label:L.name,children:L.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},L.name)})}):(0,e.jsx)(t.Cu,{height:"100%",mt:"0.5em",children:(0,e.jsxs)(t.Cu.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,e.jsx)(t.GW,{name:"door-closed",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No airlocks found."]})})})]})};C.DockingConsoleMulti=E;var I=function(D){var k=(0,a.yy)(),L=k.act,F=k.data,w=F.interior_status.state==="open"||F.exterior_status.state==="closed",N=F.exterior_status.state==="open"||F.interior_status.state==="closed";return(0,e.jsx)(t.iG,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:w?"arrow-left":"exclamation-triangle",content:w?"Cycle To Exterior":"Lock Exterior Door",onClick:function(){L(w?"cycle_ext_door":"force_ext")}}),(0,e.jsx)(t.q,{icon:N?"arrow-right":"exclamation-triangle",content:N?"Cycle To Interior":"Lock Interior Door",onClick:function(){L(N?"cycle_int_door":"force_int")}})]}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Exterior Door Status",children:F.exterior_status.state==="closed"?"Locked":"Open"}),(0,e.jsx)(t.Ce.Item,{label:"Interior Door Status",children:F.interior_status.state==="closed"?"Locked":"Open"})]})})};C.DoorAccessConsole=I;var M=function(D){var k=(0,a.yy)(),L=k.act,F=k.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h,{}),(0,e.jsxs)(t.iG,{title:"Controls",children:[(0,e.jsx)(l,{}),(0,e.jsxs)(t.kv,{children:[(0,e.jsx)(t.q,{icon:"exclamation-triangle",disabled:F.armed,color:F.armed?"bad":"average",content:"ARM",onClick:function(){return L("manual_arm")}}),(0,e.jsx)(t.q,{icon:"exclamation-triangle",disabled:!F.can_force,color:"bad",content:"MANUAL EJECT",onClick:function(){return L("force_launch")}})]})]})]})};C.EscapePodConsole=M;var P=function(D){var k=(0,a.yy)().data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h,{}),(0,e.jsx)(t.iG,{title:"Controls",children:(0,e.jsx)(l,{})})]})};C.EscapePodBerthConsole=P},69572:function(S,y,n){"use strict";n.r(y),n.d(y,{DisplayDetails:function(){return C},EntityNarrate:function(){return i},EntitySelection:function(){return j},ModeSelector:function(){return x},NarrationInput:function(){return u}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(d){var h=(0,a.yy)(),c=h.act,l=h.data;return(0,e.jsx)(r.qo,{width:800,height:470,theme:"abstract",children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(t.iG,{children:(0,e.jsxs)(t.Cu,{children:[(0,e.jsx)(t.Cu.Item,{scrollable:!0,grow:2,fill:!0,children:(0,e.jsx)(t.iG,{scrollable:!0,children:(0,e.jsx)(j,{})})}),(0,e.jsx)(t.Cu.Item,{grow:.25,fill:!0,children:(0,e.jsx)(t.c1,{vertical:!0})}),(0,e.jsx)(t.Cu.Item,{grow:6.75,fill:!0,children:(0,e.jsx)(t.iG,{children:(0,e.jsxs)(t.Cu,{direction:"column",justify:"space-between",children:[(0,e.jsx)(t.Cu.Item,{Flex:!0,children:(0,e.jsx)(t.iG,{title:"Details",children:(0,e.jsx)(C,{})})}),(0,e.jsx)(t.Cu.Item,{Flex:!0,children:(0,e.jsx)(t.iG,{title:"Select Behaviour",children:(0,e.jsx)(x,{})})}),(0,e.jsx)(t.Cu.Item,{Flex:!0,children:(0,e.jsx)(u,{})})]})})})]})})})})},j=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.selection_mode,m=l.multi_id_selection,v=l.entity_names;return(0,e.jsx)(t.Cu,{direction:"column",grow:!0,children:(0,e.jsx)(t.Cu.Item,{children:(0,e.jsx)(t.iG,{title:"Choose!",buttons:(0,e.jsx)(t.q,{selected:f,fill:!0,content:"Multi-Selection",onClick:function(){return c("change_mode_multi")}}),children:(0,e.jsx)(t.kZ,{vertical:!0,children:v.map(function(p){return(0,e.jsx)(t.kZ.Tab,{selected:m.includes(p),onClick:function(){return c("select_entity",{id_selected:p})},children:(0,e.jsx)(t.kv,{inline:!0,children:p})},p)})})})})})},C=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.selection_mode,m=l.number_mob_selected,v=l.selected_id,p=l.selected_name,g=l.selected_type;return f?(0,e.jsxs)(t.kv,{children:[(0,e.jsx)("b",{children:"Number of entities selected:"})," ",m]}):(0,e.jsxs)(t.kv,{children:[(0,e.jsx)("b",{children:"Selected ID:"})," ",v," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Name:"})," ",p," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Type:"})," ",g," ",(0,e.jsx)("br",{})]})},x=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.privacy_select,m=l.mode_select;return(0,e.jsxs)(t.Cu,{direction:"row",children:[(0,e.jsx)(t.Cu.Item,{grow:!0,children:(0,e.jsx)(t.q,{onClick:function(){return c("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)(t.Cu.Item,{grow:!0,children:(0,e.jsx)(t.q,{onClick:function(){return c("change_mode_narration")},selected:m,fluid:!0,tooltip:"This button sets your narration to talk audiably or emote visibly "+(m?"Click here to emote visibly.":"Click here to talk audiably."),content:m?"Currently: Emoting":"Currently: Talking"})})]})},u=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=(0,a.cv)("narration",""),m=f[0],v=f[1];return(0,e.jsx)(t.iG,{title:"Narration Text",buttons:(0,e.jsx)(t.q,{onClick:function(){return c("narrate",{message:m})},content:"Send Narration"}),children:(0,e.jsx)(t.Cu,{children:(0,e.jsx)(t.Cu.Item,{width:"85%",children:(0,e.jsx)(t.IF,{height:"18rem",onChange:function(p,g){return v(g)},value:m||""})})})})}},32620:function(S,y,n){"use strict";n.r(y),n.d(y,{ExonetNode:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.on,h=u.allowPDAs,c=u.allowCommunicators,l=u.allowNewscasters,f=u.logs;return(0,e.jsx)(r.qo,{width:400,height:400,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(t.iG,{title:"Status",buttons:(0,e.jsx)(t.q,{icon:"power-off",selected:d,content:"Power "+(d?"On":"Off"),onClick:function(){return x("toggle_power")}}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Incoming PDA Messages",children:(0,e.jsx)(t.q,{icon:"power-off",selected:h,content:h?"Open":"Closed",onClick:function(){return x("toggle_PDA_port")}})}),(0,e.jsx)(t.Ce.Item,{label:"Incoming Communicators",children:(0,e.jsx)(t.q,{icon:"power-off",selected:c,content:c?"Open":"Closed",onClick:function(){return x("toggle_communicator_port")}})}),(0,e.jsx)(t.Ce.Item,{label:"Incoming Newscaster Content",children:(0,e.jsx)(t.q,{icon:"power-off",selected:l,content:l?"Open":"Closed",onClick:function(){return x("toggle_newscaster_port")}})})]})}),(0,e.jsx)(t.iG,{title:"Logging",children:(0,e.jsxs)(t.Cu,{wrap:"wrap",children:[f.map(function(m,v){return(0,e.jsx)(t.Cu.Item,{m:"2px",basis:"49%",grow:v%2,children:m},v)}),!f||f.length===0?(0,e.jsx)(t.kv,{color:"average",children:"No logs found."}):null]})})]})})}},93436:function(S,y,n){"use strict";n.r(y),n.d(y,{ExosuitFabricator:function(){return k},Materials:function(){return F}});var e=n(33496),a=n(28324),t=n(47392),r=n(45280),i=n(96060),j=n(33404),C=n(69344),x=n(76512),u=n(49900),d=n(10608);function h(Z,z){(z==null||z>Z.length)&&(z=Z.length);for(var Q=0,oe=new Array(z);Q=Z.length?{done:!0}:{done:!1,value:Z[oe++]}}}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 f={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"},m=0,v=1,p=2,g,_=(g={},g[m]=!1,g[v]="average",g[p]="bad",g),E=function(Z){var z={};return Z.forEach(function(Q){z[Q.name]=Q.amount}),z},I=function(Z,z,Q){return Z>Q?{color:p,deficit:Z-Q}:z>Q?{color:v,deficit:Z}:Z+z>Q?{color:v,deficit:Z+z-Q}:{color:m,deficit:0}},M=function(Z,z,Q){var oe={textColor:m};return Object.keys(Q.cost).forEach(function(le){oe[le]=I(Q.cost[le],z[le],Z[le]),oe[le].color>oe.textColor&&(oe.textColor=oe[le].color)}),oe},P=function(Z,z){var Q={},oe={},le={},ie={};return z.forEach(function(fe,de){ie[de]=m,Object.keys(fe.cost).forEach(function(ge){Q[ge]=Q[ge]||0,le[ge]=le[ge]||0,oe[ge]=I(fe.cost[ge],Q[ge],Z[ge]),oe[ge].color!==m?ie[de]1&&ie0});return fe.length===0?(0,e.jsxs)(j.kv,{textAlign:"center",children:[(0,e.jsx)(j.GW,{textAlign:"center",size:5,name:"inbox"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"No Materials Loaded."})]}):(0,e.jsx)(j.Cu,{wrap:"wrap",children:fe.map(function(de){return(0,e.jsxs)(j.Cu.Item,{width:"80px",children:[(0,e.jsx)(w,{name:de.name,amount:de.amount,formatsi:!0}),!le&&(0,e.jsx)(j.kv,{mt:1,style:{"text-align":"center"},children:(0,e.jsx)(L,{material:de})})]},de.name)||null})})},w=function(Z){var z=Z.name,Q=Z.amount,oe=Z.formatsi,le=Z.formatmoney,ie=Z.color,fe=Z.style,de="0";return Q<1&&Q>0?de=(0,d.yI)(Q,2):oe?de=(0,i._c)(Q,0):le?de=(0,i.cp)(Q):de=Q,(0,e.jsxs)(j.Cu,{direction:"column",align:"center",children:[(0,e.jsx)(j.Cu.Item,{children:(0,e.jsx)(j.o5,{position:"bottom",content:(0,u.Yl)(z),children:(0,e.jsx)(j.kv,{className:(0,a.iE)(["sheetmaterials32x32",f[z]]),position:"relative",style:fe})})}),(0,e.jsx)(j.Cu.Item,{children:(0,e.jsx)(j.kv,{textColor:ie,style:{"text-align":"center"},children:de})})]})},N=function(Z){var z=(0,r.yy)().data,Q=z.partSets||[],oe=z.buildableParts||{},le=(0,r.ao)("part_tab",Q.length?oe[0]:""),ie=le[0],fe=le[1];return(0,e.jsx)(j.kZ,{vertical:!0,children:Q.map(function(de){return!!oe[de]&&(0,e.jsx)(j.kZ.Tab,{selected:de===ie,disabled:!oe[de],onClick:function(){return fe(de)},children:de},de)})})},$=function(Z){var z=(0,r.yy)().data,Q=function(Ge){for(var ze=l(Ge),ut;!(ut=ze()).done;){var gt=ut.value;if(le[gt])return gt}return null},oe=z.partSets||[],le=z.buildableParts||[],ie=Z.queueMaterials,fe=Z.materials,de=(0,r.ao)("part_tab",Q(oe)),ge=de[0],ye=de[1],ve=(0,r.ao)("search_text",""),Ie=ve[0],Te=ve[1];if(!ge||!le[ge]){var Ve=Q(oe);if(Ve)ye(Ve);else return}var Ue;return Ie?(Ue=[],D(Ie,le).forEach(function(Ge){Ge.format=M(fe,ie,Ge),Ue.push(Ge)})):(Ue={Parts:[]},le[ge].forEach(function(Ge){if(Ge.format=M(fe,ie,Ge),!Ge.subCategory){Ue.Parts.push(Ge);return}Ge.subCategory in Ue||(Ue[Ge.subCategory]=[]),Ue[Ge.subCategory].push(Ge)})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(j.iG,{children:(0,e.jsxs)(j.Cu,{children:[(0,e.jsx)(j.Cu.Item,{mr:1,children:(0,e.jsx)(j.GW,{name:"search"})}),(0,e.jsx)(j.Cu.Item,{grow:1,children:(0,e.jsx)(j.EF,{fluid:!0,placeholder:"Search for...",onInput:function(Ge,ze){return Te(ze)}})})]})}),!!Ie&&(0,e.jsx)(H,{name:"Search Results",parts:Ue,forceShow:!0,placeholder:"No matching results..."})||Object.keys(Ue).map(function(Ge){return(0,e.jsx)(H,{name:Ge,parts:Ue[Ge]},Ge)})]})},H=function(Z){var z=(0,r.yy)(),Q=z.act,oe=z.data,le=oe.buildingPart,ie=Z.parts,fe=Z.name,de=Z.forceShow,ge=Z.placeholder,ye=(0,r.ao)("display_mats",!1),ve=ye[0];return(!!ie.length||de)&&(0,e.jsxs)(j.iG,{title:fe,buttons:(0,e.jsx)(j.q,{disabled:!ie.length,color:"good",content:"Queue All",icon:"plus-circle",onClick:function(){return Q("add_queue_set",{part_list:ie.map(function(Ie){return Ie.id})})}}),children:[!ie.length&&ge,ie.map(function(Ie){return(0,e.jsxs)(C.Fragment,{children:[(0,e.jsxs)(j.Cu,{align:"center",children:[(0,e.jsx)(j.Cu.Item,{children:(0,e.jsx)(j.q,{disabled:le||Ie.format.textColor===p,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return Q("build_part",{id:Ie.id})}})}),(0,e.jsx)(j.Cu.Item,{children:(0,e.jsx)(j.q,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){return Q("add_queue_part",{id:Ie.id})}})}),(0,e.jsx)(j.Cu.Item,{children:(0,e.jsx)(j.kv,{inline:!0,textColor:_[Ie.format.textColor],children:Ie.name})}),(0,e.jsx)(j.Cu.Item,{grow:1}),(0,e.jsx)(j.Cu.Item,{children:(0,e.jsx)(j.q,{icon:"question-circle",transparent:!0,height:"20px",tooltip:"Build Time: "+Ie.printTime+"s. "+(Ie.desc||""),tooltipPosition:"left"})})]}),ve&&(0,e.jsx)(j.Cu,{mb:2,children:Object.keys(Ie.cost).map(function(Te){return(0,e.jsx)(j.Cu.Item,{width:"50px",color:_[Ie.format[Te].color],children:(0,e.jsx)(w,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:Te,amount:Ie.cost[Te]})},Te)})})]},Ie.name)})]})},K=function(Z){var z=(0,r.yy)(),Q=z.act,oe=z.data,le=oe.isProcessingQueue,ie=oe.queue||[],fe=Z.queueMaterials,de=Z.missingMaterials,ge=Z.textColors;return(0,e.jsxs)(j.Cu,{height:"100%",width:"100%",direction:"column",children:[(0,e.jsx)(j.Cu.Item,{height:0,grow:1,children:(0,e.jsx)(j.iG,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(j.q.Confirm,{disabled:!ie.length,color:"bad",icon:"minus-circle",content:"Clear Queue",onClick:function(){return Q("clear_queue")}}),!!le&&(0,e.jsx)(j.q,{disabled:!ie.length,content:"Stop",icon:"stop",onClick:function(){return Q("stop_queue")}})||(0,e.jsx)(j.q,{disabled:!ie.length,content:"Build Queue",icon:"play",onClick:function(){return Q("build_queue")}})]}),children:(0,e.jsxs)(j.Cu,{direction:"column",height:"100%",children:[(0,e.jsx)(j.Cu.Item,{children:(0,e.jsx)(Y,{})}),(0,e.jsx)(j.Cu.Item,{children:(0,e.jsx)(q,{textColors:ge})})]})})}),!!ie.length&&(0,e.jsx)(j.Cu.Item,{mt:1,children:(0,e.jsx)(j.iG,{title:"Material Cost",children:(0,e.jsx)(U,{queueMaterials:fe,missingMaterials:de})})})]})},U=function(Z){var z=Z.queueMaterials,Q=Z.missingMaterials;return(0,e.jsx)(j.Cu,{wrap:"wrap",children:Object.keys(z).map(function(oe){return(0,e.jsxs)(j.Cu.Item,{width:"12%",children:[(0,e.jsx)(w,{formatmoney:!0,name:oe,amount:z[oe]}),!!Q[oe]&&(0,e.jsx)(j.kv,{textColor:"bad",style:{"text-align":"center"},children:(0,i.cp)(Q[oe])})]},oe)})})},q=function(Z){var z=(0,r.yy)(),Q=z.act,oe=z.data,le=Z.textColors,ie=oe.queue||[];return ie.length?ie.map(function(fe,de){return(0,e.jsx)(j.kv,{children:(0,e.jsxs)(j.Cu,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,e.jsx)(j.Cu.Item,{basis:"content",children:(0,e.jsx)(j.q,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){return Q("del_queue_part",{index:de+1})}})}),(0,e.jsx)(j.Cu.Item,{children:(0,e.jsx)(j.kv,{inline:!0,textColor:_[le[de]],children:fe.name})})]})},fe.name)}):(0,e.jsx)(e.Fragment,{children:"No parts in queue."})},Y=function(Z){var z=(0,r.yy)().data,Q=z.buildingPart,oe=z.storedPart;if(oe){var le=oe.name;return(0,e.jsx)(j.kv,{children:(0,e.jsx)(j.cH,{minValue:0,maxValue:1,value:1,color:"average",children:(0,e.jsxs)(j.Cu,{children:[(0,e.jsx)(j.Cu.Item,{children:le}),(0,e.jsx)(j.Cu.Item,{grow:1}),(0,e.jsx)(j.Cu.Item,{children:"Fabricator outlet obstructed..."})]})})})}if(Q){var ie=Q.name,fe=Q.duration,de=Q.printTime,ge=Math.ceil(fe/10);return(0,e.jsx)(j.kv,{children:(0,e.jsx)(j.cH,{minValue:0,maxValue:de,value:fe,children:(0,e.jsxs)(j.Cu,{children:[(0,e.jsx)(j.Cu.Item,{children:ie}),(0,e.jsx)(j.Cu.Item,{grow:1}),(0,e.jsx)(j.Cu.Item,{children:ge>=0&&ge+"s"||"Dispensing..."})]})})})}}},13568:function(S,y,n){"use strict";n.r(y),n.d(y,{Farmbot:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.on,h=u.locked,c=u.tank,l=u.tankVolume,f=u.tankMaxVolume,m=u.waters_trays,v=u.refills_water,p=u.uproots_weeds,g=u.replaces_nutriment,_=u.collects_produce,E=u.removes_dead;return(0,e.jsx)(r.qo,{width:450,height:540,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(t.iG,{title:"Automatic Hydroponic Assistance Unit v2.0",buttons:(0,e.jsx)(t.q,{icon:"power-off",selected:d,onClick:function(){return x("power")},children:d?"On":"Off"}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Water Tank",children:c&&(0,e.jsxs)(t.cH,{value:l,maxValue:f,children:[l," / ",f]})||(0,e.jsx)(t.kv,{color:"average",children:"No water tank detected."})}),(0,e.jsx)(t.Ce.Item,{label:"Behavior Controls",color:h?"good":"bad",children:h?"Locked":"Unlocked"})]})}),!h&&(0,e.jsxs)(t.iG,{title:"Behavior Controls",children:[(0,e.jsx)(t.iG,{level:2,title:"Watering Controls",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Water plants",children:(0,e.jsx)(t.q,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return x("water")},children:m?"Yes":"No"})}),(0,e.jsx)(t.Ce.Item,{label:"Refill watertank",children:(0,e.jsx)(t.q,{icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return x("refill")},children:v?"Yes":"No"})})]})}),(0,e.jsx)(t.iG,{level:2,title:"Weeding controls",children:(0,e.jsx)(t.Ce,{children:(0,e.jsx)(t.Ce.Item,{label:"Weed plants",children:(0,e.jsx)(t.q,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("weed")},children:p?"Yes":"No"})})})}),(0,e.jsx)(t.iG,{level:2,title:"Nutriment controls",children:(0,e.jsx)(t.Ce,{children:(0,e.jsx)(t.Ce.Item,{label:"Replace fertilizer",children:(0,e.jsx)(t.q,{icon:g?"toggle-on":"toggle-off",selected:g,onClick:function(){return x("replacenutri")},children:g?"Yes":"No"})})})})]})||null]})})}},73832:function(S,y,n){"use strict";n.r(y),n.d(y,{Fax:function(){return C},FaxContent:function(){return x}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(74800),j=n(79092),C=function(h){var c=(0,a.yy)().data,l=c.authenticated,f=c.copyItem,m=340;return f&&(m=358),l?(0,e.jsx)(r.qo,{width:600,height:m,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(u,{}),(0,e.jsx)(i.LoginInfo,{}),(0,e.jsx)(x,{})]})}):(0,e.jsx)(r.qo,{width:600,height:250,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(u,{}),(0,e.jsx)(j.LoginScreen,{machineType:"Fax"})]})})},x=function(h){var c=(0,a.yy)(),l=c.act,f=c.data,m=f.bossName,v=f.copyItem,p=f.cooldown,g=f.destination,_=f.adminDepartments,E=new Set(_);return(0,e.jsxs)(t.iG,{children:[!!p&&(0,e.jsx)(t.yc,{info:!0,children:"Transmitter arrays realigning. Please stand by."}),(0,e.jsx)(t.Ce,{children:(0,e.jsxs)(t.Ce.Item,{label:"Network",children:[m," Quantum Entanglement Network"]})}),v&&(0,e.jsxs)(t.kv,{mt:1,children:[(0,e.jsxs)(t.Ce,{children:[(0,e.jsxs)(t.Ce.Item,{label:"Currently Sending",children:[v," ",(0,e.jsx)(t.q,{icon:"pen",onClick:function(){return l("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)(t.Ce.Item,{label:"Sending To",children:(0,e.jsx)(t.q,{icon:"map-marker-alt",content:g,onClick:function(){return l("dept")}})})]}),(0,e.jsx)(t.q,{icon:"share-square",onClick:function(){return l("send")},content:"Send",fluid:!0})]})||(0,e.jsx)(t.kv,{mt:1,children:"Please insert item to transmit."}),(0,e.jsx)(d,{})]})},u=function(h){var c=(0,a.yy)(),l=c.act,f=c.data,m=f.copyItem;return m?(0,e.jsx)(t.kv,{children:(0,e.jsx)(t.q,{fluid:!0,icon:"eject",onClick:function(){return l("remove")},content:"Remove Item"})}):null},d=function(h){var c=(0,a.yy)(),l=c.act,f=c.data,m=f.adminDepartments,v=f.destination,p=f.copyItem,g=new Set(m),_="1rem";return p&&(_="1.5rem"),!p||p&&g.has(v)?(0,e.jsxs)(t.kv,{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)(t.kv,{mt:"1.5rem",children:(0,e.jsx)(t.q,{icon:"share-square",onClick:function(){return l("send_automated_staff_request")},content:"Send Automated Staff Request",fluid:!0})})]}):null}},19088:function(S,y,n){"use strict";n.r(y),n.d(y,{FileCabinet:function(){return j}});var e=n(33496),a=n(47392),t=n(45280),r=n(33404),i=n(76512),j=function(C){var x=(0,t.yy)(),u=x.act,d=x.data,h=d.contents,c=(0,a.cp)(function(l){return l.name})(h||[]);return(0,e.jsx)(i.qo,{width:350,height:300,children:(0,e.jsx)(i.qo.Content,{scrollable:!0,children:(0,e.jsx)(r.iG,{children:c.map(function(l){return(0,e.jsx)(r.q,{fluid:!0,icon:"file",content:l.name,onClick:function(){return u("retrieve",{ref:l.ref})}},l.ref)})})})})}},94e3:function(S,y,n){"use strict";n.r(y),n.d(y,{Floorbot:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.on,h=u.open,c=u.locked,l=u.vocal,f=u.amount,m=u.possible_bmode,v=u.improvefloors,p=u.eattiles,g=u.maketiles,_=u.bmode;return(0,e.jsx)(r.qo,{width:390,height:310,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(t.iG,{title:"Automatic Station Floor Repairer v2.0",buttons:(0,e.jsx)(t.q,{icon:"power-off",selected:d,onClick:function(){return x("start")},children:d?"On":"Off"}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Tiles Left",children:(0,e.jsx)(t.Gg,{value:f})}),(0,e.jsx)(t.Ce.Item,{label:"Maintenance Panel",color:h?"bad":"good",children:h?"Open":"Closed"}),(0,e.jsx)(t.Ce.Item,{label:"Behavior Controls",color:c?"good":"bad",children:c?"Locked":"Unlocked"})]})}),!c&&(0,e.jsx)(t.iG,{title:"Behavior Controls",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Speaker",children:(0,e.jsx)(t.q,{icon:l?"toggle-on":"toggle-off",selected:l,onClick:function(){return x("vocal")},children:l?"On":"Off"})}),(0,e.jsx)(t.Ce.Item,{label:"Improves Floors",children:(0,e.jsx)(t.q,{icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return x("improve")},children:v?"On":"Off"})}),(0,e.jsx)(t.Ce.Item,{label:"Finds Tiles",children:(0,e.jsx)(t.q,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("tiles")},children:p?"On":"Off"})}),(0,e.jsx)(t.Ce.Item,{label:"Makes Metal Sheets into Tiles",children:(0,e.jsx)(t.q,{icon:g?"toggle-on":"toggle-off",selected:g,onClick:function(){return x("make")},children:g?"On":"Off"})}),(0,e.jsx)(t.Ce.Item,{label:"Bridge Mode",children:(0,e.jsx)(t.cS,{over:!0,width:"100%",placeholder:"Disabled",selected:_,options:m,onSelected:function(E){return x("bridgemode",{dir:E})}})})]})})||null]})})}},68620:function(S,y,n){"use strict";n.r(y),n.d(y,{GasPump:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.on,h=u.pressure_set,c=u.last_flow_rate,l=u.last_power_draw,f=u.max_power_draw;return(0,e.jsx)(r.qo,{width:470,height:290,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(t.iG,{title:"Status",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsxs)(t.Ce.Item,{label:"Flow Rate",children:[(0,e.jsx)(t.Gg,{value:c/10})," L/s"]}),(0,e.jsx)(t.Ce.Item,{label:"Load",children:(0,e.jsx)(t.cH,{value:l,minValue:0,maxValue:f,color:l=100?m="Running":!d&&h>0&&(m="DISCHARGING"),(0,e.jsx)(r.qo,{width:500,height:400,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(t.iG,{title:"Status",buttons:(0,e.jsx)(t.q.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",content:"Toggle Breaker",confirmContent:d?"This will disable gravity!":"This will enable gravity!",onClick:function(){return x("gentoggle")}}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Breaker Setting",children:d?"Generator Enabled":"Generator Disabled"}),(0,e.jsxs)(t.Ce.Item,{label:"Charge Mode",children:["Generator ",m]}),(0,e.jsxs)(t.Ce.Item,{label:"Charge Status",children:[h,"%"]})]})})})})}},61284:function(S,y,n){"use strict";n.r(y),n.d(y,{GuestPass:function(){return j}});var e=n(33496),a=n(47392),t=n(45280),r=n(33404),i=n(76512),j=function(C){var x=(0,t.yy)(),u=x.act,d=x.data,h=d.access,c=d.area,l=d.giver,f=d.giveName,m=d.reason,v=d.duration,p=d.mode,g=d.log,_=d.uid;return(0,e.jsx)(i.qo,{width:500,height:520,children:(0,e.jsx)(i.qo.Content,{scrollable:!0,children:p===1&&(0,e.jsxs)(r.iG,{title:"Activity Log",buttons:(0,e.jsx)(r.q,{icon:"scroll",content:"Activity Log",selected:!0,onClick:function(){return u("mode",{mode:0})}}),children:[(0,e.jsx)(r.q,{icon:"print",content:"Print",onClick:function(){return u("print")},fluid:!0,mb:1}),(0,e.jsx)(r.iG,{level:2,title:"Logs",children:g.length&&g.map(function(E){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:E}},E)})||(0,e.jsx)(r.kv,{children:"No logs."})})]})||(0,e.jsxs)(r.iG,{title:"Guest pass terminal #"+_,buttons:(0,e.jsx)(r.q,{icon:"scroll",content:"Activity Log",onClick:function(){return u("mode",{mode:1})}}),children:[(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Issuing ID",children:(0,e.jsx)(r.q,{content:l||"Insert ID",onClick:function(){return u("id")}})}),(0,e.jsx)(r.Ce.Item,{label:"Issued To",children:(0,e.jsx)(r.q,{content:f,onClick:function(){return u("giv_name")}})}),(0,e.jsx)(r.Ce.Item,{label:"Reason",children:(0,e.jsx)(r.q,{content:m,onClick:function(){return u("reason")}})}),(0,e.jsx)(r.Ce.Item,{label:"Duration (minutes)",children:(0,e.jsx)(r.q,{content:v,onClick:function(){return u("duration")}})})]}),(0,e.jsx)(r.q.Confirm,{icon:"check",fluid:!0,content:"Issue Pass",onClick:function(){return u("issue")}}),(0,e.jsx)(r.iG,{title:"Access",level:2,children:(0,a.cp)(function(E){return E.area_name})(c).map(function(E){return(0,e.jsx)(r.q.Checkbox,{checked:E.on,content:E.area_name,onClick:function(){return u("access",{access:E.area})}},E.area)})})]})})})}},49484:function(S,y,n){"use strict";n.r(y),n.d(y,{GyrotronControl:function(){return i},GyrotronControlContent:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(){return(0,e.jsx)(r.qo,{width:627,height:700,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(j,{})})})},j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.gyros;return(0,e.jsx)(t.iG,{title:"Gyrotrons",buttons:(0,e.jsx)(t.q,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return u("set_tag")}}),children:(0,e.jsxs)(t.oJ,{children:[(0,e.jsxs)(t.oJ.Row,{header:!0,children:[(0,e.jsx)(t.oJ.Cell,{children:"Name"}),(0,e.jsx)(t.oJ.Cell,{children:"Position"}),(0,e.jsx)(t.oJ.Cell,{children:"Status"}),(0,e.jsx)(t.oJ.Cell,{children:"Fire Delay"}),(0,e.jsx)(t.oJ.Cell,{children:"Strength"})]}),h.map(function(c){return(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsx)(t.oJ.Cell,{children:c.name}),(0,e.jsxs)(t.oJ.Cell,{children:[c.x,", ",c.y,", ",c.z]}),(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsx)(t.q,{icon:"power-off",content:c.active?"Online":"Offline",selected:c.active,disabled:!c.deployed,onClick:function(){return u("toggle_active",{gyro:c.ref})}})}),(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsx)(t.S6,{forcedInputWidth:"60px",size:1.25,color:!!c.active&&"yellow",value:c.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(l,f){return u("set_rate",{gyro:c.ref,rate:f})}})}),(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsx)(t.S6,{forcedInputWidth:"60px",size:1.25,color:!!c.active&&"yellow",value:c.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(l,f){return u("set_str",{gyro:c.ref,str:f})}})})]},c.name)})]})})}},60948:function(S,y,n){"use strict";n.r(y),n.d(y,{Holodeck:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.supportedPrograms,h=u.restrictedPrograms,c=u.currentProgram,l=u.isSilicon,f=u.safetyDisabled,m=u.emagged,v=u.gravity,p=d;return f&&(p=p.concat(h)),(0,e.jsx)(r.qo,{width:400,height:610,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(t.iG,{title:"Programs",children:p.map(function(g){return(0,e.jsx)(t.q,{color:h.indexOf(g)!==-1?"bad":null,icon:"eye",content:g,selected:c===g,fluid:!0,onClick:function(){return x("program",{program:g})}},g)})}),!!l&&(0,e.jsx)(t.iG,{title:"Override",children:(0,e.jsxs)(t.q,{icon:"exclamation-triangle",fluid:!0,disabled:m,color:f?"good":"bad",onClick:function(){return x("AIoverride")},children:[!!m&&"Error, unable to control. ",f?"Enable Safeties":"Disable Safeties"]})}),(0,e.jsx)(t.iG,{title:"Controls",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Safeties",children:f?(0,e.jsx)(t.kv,{color:"bad",children:"DISABLED"}):(0,e.jsx)(t.kv,{color:"good",children:"ENABLED"})}),(0,e.jsx)(t.Ce.Item,{label:"Gravity",children:(0,e.jsx)(t.q,{icon:"user-astronaut",selected:v,onClick:function(){return x("gravity")},children:v?"Enabled":"Disabled"})})]})})]})})}},38264:function(S,y,n){"use strict";n.r(y),n.d(y,{ICAssembly:function(){return C}});var e=n(33496),a=n(10608),t=n(45280),r=n(33404),i=n(76512),j=n(96060),C=function(u){var d=(0,t.yy)(),h=d.act,c=d.data,l=c.total_parts,f=c.max_components,m=c.total_complexity,v=c.max_complexity,p=c.battery_charge,g=c.battery_max,_=c.net_power,E=c.unremovable_circuits,I=c.removable_circuits;return(0,e.jsx)(i.qo,{width:600,height:380,children:(0,e.jsxs)(i.qo.Content,{scrollable:!0,children:[(0,e.jsx)(r.iG,{title:"Status",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Space in Assembly",children:(0,e.jsxs)(r.cH,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:l/f,maxValue:1,children:[l," / ",f," (",(0,a.kL)(l/f*100,1),"%)"]})}),(0,e.jsx)(r.Ce.Item,{label:"Complexity",children:(0,e.jsxs)(r.cH,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:m/v,maxValue:1,children:[m," / ",v," (",(0,a.kL)(m/v*100,1),"%)"]})}),(0,e.jsx)(r.Ce.Item,{label:"Cell Charge",children:p&&(0,e.jsxs)(r.cH,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:p/g,maxValue:1,children:[p," / ",g," (",(0,a.kL)(p/g*100,1),"%)"]})||(0,e.jsx)(r.kv,{color:"bad",children:"No cell detected."})}),(0,e.jsx)(r.Ce.Item,{label:"Net Energy",children:_===0&&"0 W/s"||(0,e.jsx)(r.Gg,{value:_,format:function(M){return"-"+(0,j._s)(Math.abs(M))+"/s"}})})]})}),E.length&&(0,e.jsx)(x,{title:"Built-in Components",circuits:E})||null,I.length&&(0,e.jsx)(x,{title:"Removable Components",circuits:I})||null]})})},x=function(u){var d=(0,t.yy)().act,h=u.title,c=u.circuits;return(0,e.jsx)(r.iG,{title:h,children:(0,e.jsx)(r.Ce,{children:c.map(function(l){return(0,e.jsxs)(r.Ce.Item,{label:l.name,children:[(0,e.jsx)(r.q,{icon:"eye",onClick:function(){return d("open_circuit",{ref:l.ref})},children:"View"}),(0,e.jsx)(r.q,{icon:"eye",onClick:function(){return d("rename_circuit",{ref:l.ref})},children:"Rename"}),(0,e.jsx)(r.q,{icon:"eye",onClick:function(){return d("scan_circuit",{ref:l.ref})},children:"Debugger Scan"}),(0,e.jsx)(r.q,{icon:"eye",onClick:function(){return d("remove_circuit",{ref:l.ref})},children:"Remove"}),(0,e.jsx)(r.q,{icon:"eye",onClick:function(){return d("bottom_circuit",{ref:l.ref})},children:"Move to Bottom"})]},l.ref)})})})}},68464:function(S,y,n){"use strict";n.r(y),n.d(y,{ICCircuit:function(){return C}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(49900),j=n(96060),C=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.name,m=l.desc,v=l.displayed_name,p=l.removable,g=l.complexity,_=l.power_draw_idle,E=l.power_draw_per_use,I=l.extended_desc,M=l.inputs,P=l.outputs,D=l.activators;return(0,e.jsx)(r.qo,{width:600,height:400,resizable:!0,title:v,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsxs)(t.iG,{title:"Stats",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{onClick:function(){return c("rename")},children:"Rename"}),(0,e.jsx)(t.q,{onClick:function(){return c("scan")},children:"Scan with Device"}),(0,e.jsx)(t.q,{onClick:function(){return c("remove")},children:"Remove"})]}),children:[(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Complexity",children:g}),_&&(0,e.jsx)(t.Ce.Item,{label:"Power Draw (Idle)",children:(0,j._s)(_)})||null,E&&(0,e.jsx)(t.Ce.Item,{label:"Power Draw (Active)",children:(0,j._s)(E)})||null]}),I]}),(0,e.jsxs)(t.iG,{title:"Circuit",children:[(0,e.jsxs)(t.Cu,{textAlign:"center",spacing:1,children:[M.length&&(0,e.jsx)(t.Cu.Item,{grow:1,children:(0,e.jsx)(t.iG,{title:"Inputs",children:(0,e.jsx)(x,{list:M})})})||null,(0,e.jsx)(t.Cu.Item,{basis:M.length&&P.length?"33%":M.length||P.length?"45%":"100%",children:(0,e.jsx)(t.iG,{title:v,mb:1,children:(0,e.jsx)(t.kv,{children:m})})}),P.length&&(0,e.jsx)(t.Cu.Item,{grow:1,children:(0,e.jsx)(t.iG,{title:"Outputs",children:(0,e.jsx)(x,{list:P})})})||null]}),(0,e.jsx)(t.iG,{title:"Triggers",children:D.map(function(k){return(0,e.jsxs)(t.Ce.Item,{label:k.name,children:[(0,e.jsx)(t.q,{onClick:function(){return c("pin_name",{pin:k.ref})},children:k.pulse_out?"":""}),(0,e.jsx)(u,{pin:k})]},k.name)})})]})]})})},x=function(d){var h=(0,a.yy)().act,c=d.list;return c.map(function(l){return(0,e.jsxs)(t.kv,{children:[(0,e.jsxs)(t.q,{onClick:function(){return h("pin_name",{pin:l.ref})},children:[(0,i.Af)(l.type),": ",l.name]}),(0,e.jsx)(t.q,{onClick:function(){return h("pin_data",{pin:l.ref})},children:l.data}),(0,e.jsx)(u,{pin:l})]},l.ref)})},u=function(d){var h=(0,a.yy)().act,c=d.pin;return c.linked.map(function(l){return(0,e.jsxs)(t.kv,{inline:!0,children:[(0,e.jsx)(t.q,{onClick:function(){return h("pin_unwire",{pin:c.ref,link:l.ref})},children:l.name}),"@\xA0",(0,e.jsx)(t.q,{onClick:function(){return h("examine",{ref:l.holder_ref})},children:l.holder_name})]},l.ref)})}},86520:function(S,y,n){"use strict";n.r(y),n.d(y,{ICDetailer:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(49900),j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.detail_color,c=d.color_list;return(0,e.jsx)(r.qo,{width:420,height:254,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(t.iG,{children:Object.keys(c).map(function(l,f){return(0,e.jsx)(t.q,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,i.Yl)(l),tooltipPosition:f%6===5?"left":"right",height:"64px",width:"64px",onClick:function(){return u("change_color",{color:l})},style:c[l]===h?{border:"4px solid black","border-radius":0}:{"border-radius":0},backgroundColor:c[l]},l)})})})})}},20004:function(S,y,n){"use strict";n.r(y),n.d(y,{ICPrinter:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(47392),j=function(u){var d=(0,a.yy)(),h=d.act,c=d.data,l=c.metal,f=c.max_metal,m=c.metal_per_sheet,v=c.debug,p=c.upgraded,g=c.can_clone,_=c.assembly_to_clone,E=c.categories;return(0,e.jsx)(r.qo,{width:600,height:630,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsxs)(t.iG,{title:"Status",children:[(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Metal",children:(0,e.jsxs)(t.cH,{value:l,maxValue:f,children:[l/m," / ",f/m," sheets"]})}),(0,e.jsx)(t.Ce.Item,{label:"Circuits Available",children:p?"Advanced":"Regular"}),(0,e.jsx)(t.Ce.Item,{label:"Assembly Cloning",children:g?"Available":"Unavailable"})]}),(0,e.jsx)(t.kv,{mt:1,children:"Note: A red component name means that the printer must be upgraded to create that component."})]}),(0,e.jsx)(x,{})]})})},C=function(u,d){return!(!u.can_build||u.cost>d.metal)},x=function(u){var d=(0,a.yy)(),h=d.act,c=d.data,l=c.categories,f=c.debug,m=(0,a.ao)("categoryTarget",null),v=m[0],p=m[1],g=(0,i.IF)(function(_){return _.name===v})(l)[0];return(0,e.jsx)(t.iG,{title:"Circuits",children:(0,e.jsxs)(t.fT,{fill:!0,children:[(0,e.jsx)(t.fT.Item,{mr:2,children:(0,e.jsx)(t.kZ,{vertical:!0,children:(0,i.cp)(function(_){return _.name})(l).map(function(_){return(0,e.jsx)(t.kZ.Tab,{selected:v===_.name,onClick:function(){return p(_.name)},children:_.name},_.name)})})}),(0,e.jsx)(t.fT.Item,{children:g&&(0,e.jsx)(t.iG,{children:(0,e.jsx)(t.Ce,{children:(0,i.cp)(function(_){return _.name})(g.items).map(function(_){return(0,e.jsx)(t.Ce.Item,{label:_.name,labelColor:_.can_build?"good":"bad",buttons:(0,e.jsx)(t.q,{disabled:!C(_,c),icon:"print",onClick:function(){return h("build",{build:_.path})},children:"Print"}),children:_.desc},_.name)})})})||"No category selected."})]})})}},9292:function(S,y,n){"use strict";n.r(y),n.d(y,{IDCard:function(){return j}});var e=n(33496),a=n(33404),t=n(45280),r=n(76512),i=n(57353),j=function(C){var x=(0,t.yy)().data,u=x.registered_name,d=x.sex,h=x.species,c=x.age,l=x.assignment,f=x.fingerprint_hash,m=x.blood_type,v=x.dna_hash,p=x.photo_front,g=[{name:"Sex",val:d},{name:"Species",val:h},{name:"Age",val:c},{name:"Blood Type",val:m},{name:"Fingerprint",val:f},{name:"DNA Hash",val:v}];return(0,e.jsx)(r.qo,{width:470,height:250,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsxs)(a.iG,{children:[(0,e.jsxs)(a.Cu,{children:[(0,e.jsx)(a.Cu.Item,{basis:"25%",textAlign:"left",children:(0,e.jsx)(a.kv,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:p&&(0,e.jsx)("img",{src:p.substr(1,p.length-1),style:{width:"300px","margin-left":"-94px","-ms-interpolation-mode":"nearest-neighbor"}})||(0,e.jsx)(a.GW,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,e.jsx)(a.Cu.Item,{basis:0,grow:1,children:(0,e.jsx)(a.Ce,{children:g.map(function(_){return(0,e.jsx)(a.Ce.Item,{label:_.name,children:_.val},_.name)})})})]}),(0,e.jsxs)(a.Cu,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,e.jsx)(a.Cu.Item,{children:(0,e.jsx)(a.kv,{textAlign:"center",children:u})}),(0,e.jsx)(a.Cu.Item,{children:(0,e.jsx)(a.kv,{textAlign:"center",children:(0,e.jsx)(i.RankIcon,{rank:l})})}),(0,e.jsx)(a.Cu.Item,{children:(0,e.jsx)(a.kv,{textAlign:"center",children:l})})]})]})})})}},8816:function(S,y,n){"use strict";n.r(y),n.d(y,{IdentificationComputer:function(){return u},IdentificationComputerAccessModification:function(){return c},IdentificationComputerContent:function(){return d},IdentificationComputerPrinting:function(){return h},IdentificationComputerRegions:function(){return l}});var e=n(33496),a=n(47392),t=n(69344),r=n(45280),i=n(33404),j=n(76512),C=n(49900),x=n(94384),u=function(){return(0,e.jsx)(j.qo,{width:600,height:700,children:(0,e.jsx)(j.qo.Content,{children:(0,e.jsx)(d,{})})})},d=function(f){var m=(0,r.yy)(),v=m.act,p=m.data,g=f.ntos,_=p.mode,E=p.has_modify,I=p.printing,M=(0,e.jsx)(c,{ntos:g});return g&&!p.have_id_slot?M=(0,e.jsx)(x.CrewManifestContent,{}):I?M=(0,e.jsx)(h,{}):_===1&&(M=(0,e.jsx)(x.CrewManifestContent,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.kZ,{children:[(!g||!!p.have_id_slot)&&(0,e.jsx)(i.kZ.Tab,{icon:"home",selected:_===0,onClick:function(){return v("mode",{mode_target:0})},children:"Access Modification"}),(0,e.jsx)(i.kZ.Tab,{icon:"home",selected:_===1,onClick:function(){return v("mode",{mode_target:1})},children:"Crew Manifest"}),!g||!!p.have_printer&&(0,e.jsx)(i.kZ.Tab,{float:"right",icon:"print",onClick:function(){return v("print")},disabled:!_&&!E,color:"",children:"Print"})]}),M]})},h=function(f){return(0,e.jsx)(i.iG,{title:"Printing",children:"Please wait..."})},c=function(f){var m=(0,r.yy)(),v=m.act,p=m.data,g=f.ntos,_=p.station_name,E=p.target_name,I=p.target_owner,M=p.scan_name,P=p.authenticated,D=p.has_modify,k=p.account_number,L=p.centcom_access,F=p.all_centcom_access,w=p.regions,N=p.id_rank,$=p.departments;return(0,e.jsxs)(i.iG,{title:"Access Modification",children:[!P&&(0,e.jsx)(i.kv,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,e.jsxs)(i.Ce,{children:[(0,e.jsx)(i.Ce.Item,{label:"Target Identitity",children:(0,e.jsx)(i.q,{icon:"eject",fluid:!0,content:E,onClick:function(){return v("modify")}})}),!g&&(0,e.jsx)(i.Ce.Item,{label:"Authorized Identitity",children:(0,e.jsx)(i.q,{icon:"eject",fluid:!0,content:M,onClick:function(){return v("scan")}})})]}),!!P&&!!D&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.iG,{title:"Details",level:2,children:(0,e.jsxs)(i.Ce,{children:[(0,e.jsx)(i.Ce.Item,{label:"Registered Name",children:(0,e.jsx)(i.EF,{value:I,fluid:!0,onInput:function(H,K){return v("reg",{reg:K})}})}),(0,e.jsx)(i.Ce.Item,{label:"Account Number",children:(0,e.jsx)(i.EF,{value:k,fluid:!0,onInput:function(H,K){return v("account",{account:K})}})}),(0,e.jsx)(i.Ce.Item,{label:"Dismissals",children:(0,e.jsx)(i.q.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,content:"Dismiss "+I,confirmContent:"You are dismissing "+I+", confirm?",onClick:function(){return v("terminate")}})})]})}),(0,e.jsx)(i.iG,{title:"Assignment",level:2,children:(0,e.jsxs)(i.oJ,{children:[$.map(function(H){return(0,e.jsxs)(t.Fragment,{children:[(0,e.jsxs)(i.oJ.Row,{children:[(0,e.jsx)(i.oJ.Cell,{header:!0,verticalAlign:"middle",children:H.department_name}),(0,e.jsx)(i.oJ.Cell,{children:H.jobs.map(function(K){return(0,e.jsx)(i.q,{selected:K.job===N,onClick:function(){return v("assign",{assign_target:K.job})},children:(0,C.Af)(K.display_name)},K.job)})})]}),(0,e.jsx)(i.kv,{mt:-1,children:"\xA0"})," "]},H.department_name)}),(0,e.jsxs)(i.oJ.Row,{children:[(0,e.jsx)(i.oJ.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,e.jsx)(i.oJ.Cell,{children:(0,e.jsx)(i.q,{onClick:function(){return v("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!L&&(0,e.jsx)(i.iG,{title:"Central Command",level:2,children:F.map(function(H){return(0,e.jsx)(i.kv,{children:(0,e.jsx)(i.q,{fluid:!0,selected:H.allowed,onClick:function(){return v("access",{access_target:H.ref,allowed:H.allowed})},children:(0,C.Af)(H.desc)})},H.ref)})})||(0,e.jsx)(i.iG,{title:_,level:2,children:(0,e.jsx)(l,{actName:"access"})})]})]})},l=function(f){var m=(0,r.yy)(),v=m.act,p=m.data,g=f.actName,_=p.regions;return(0,e.jsx)(i.Cu,{wrap:"wrap",spacing:1,children:(0,a.cp)(function(E){return E.name})(_).map(function(E){return(0,e.jsx)(i.Cu.Item,{mb:1,basis:"content",grow:1,children:(0,e.jsx)(i.iG,{title:E.name,height:"100%",children:(0,a.cp)(function(I){return I.desc})(E.accesses).map(function(I){return(0,e.jsx)(i.kv,{children:(0,e.jsx)(i.q,{fluid:!0,selected:I.allowed,onClick:function(){return v(g,{access_target:I.ref,allowed:I.allowed})},children:(0,C.Af)(I.desc)})},I.ref)})})},E.name)})})}},59100:function(S,y,n){"use strict";n.r(y),n.d(y,{InventoryPanel:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.slots,h=u.internalsValid;return(0,e.jsx)(r.qo,{width:400,height:200,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(t.iG,{children:(0,e.jsx)(t.Ce,{children:d&&d.length&&d.map(function(c){return(0,e.jsx)(t.Ce.Item,{label:c.name,children:(0,e.jsx)(t.q,{mb:-1,icon:c.item?"hand-paper":"gift",onClick:function(){return x(c.act)},children:c.item||"Nothing"})},c.name)})})}),h&&(0,e.jsx)(t.iG,{title:"Actions",children:h&&(0,e.jsx)(t.q,{fluid:!0,icon:"lungs",onClick:function(){return x("internals")},children:"Set Internals"})||null})||null]})})}},18880:function(S,y,n){"use strict";n.r(y),n.d(y,{InventoryPanelHuman:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.slots,h=u.specialSlots,c=u.internals,l=u.internalsValid,f=u.sensors,m=u.handcuffed,v=u.handcuffedParams,p=u.legcuffed,g=u.legcuffedParams,_=u.accessory;return(0,e.jsx)(r.qo,{width:400,height:600,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(t.iG,{children:(0,e.jsxs)(t.Ce,{children:[d&&d.length&&d.map(function(E){return(0,e.jsx)(t.Ce.Item,{label:E.name,children:(0,e.jsx)(t.q,{mb:-1,icon:E.item?"hand-paper":"gift",onClick:function(){return x(E.act,E.params)},children:E.item||"Nothing"})},E.name)}),(0,e.jsx)(t.Ce.Divider,{}),h&&h.length&&h.map(function(E){return(0,e.jsx)(t.Ce.Item,{label:E.name,children:(0,e.jsx)(t.q,{mb:-1,icon:E.item?"hand-paper":"gift",onClick:function(){return x(E.act,E.params)},children:E.item||"Nothing"})},E.name)})]})}),(0,e.jsxs)(t.iG,{title:"Actions",children:[(0,e.jsx)(t.q,{fluid:!0,icon:"running",onClick:function(){return x("targetSlot",{slot:"splints"})},children:"Remove Splints"}),(0,e.jsx)(t.q,{fluid:!0,icon:"hand-paper",onClick:function(){return x("targetSlot",{slot:"pockets"})},children:"Empty Pockets"}),l&&(0,e.jsx)(t.q,{fluid:!0,icon:"lungs",onClick:function(){return x("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,f&&(0,e.jsx)(t.q,{fluid:!0,icon:"book-medical",onClick:function(){return x("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,m&&(0,e.jsx)(t.q,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",v)},children:"Handcuffed"})||null,p&&(0,e.jsx)(t.q,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",g)},children:"Legcuffed"})||null,_&&(0,e.jsx)(t.q,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",{slot:"tie"})},children:"Remove Accessory"})||null]})]})})}},25028:function(S,y,n){"use strict";n.r(y),n.d(y,{IsolationCentrifuge:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.busy,h=u.antibodies,c=u.pathogens,l=u.is_antibody_sample,f=u.sample_inserted,m=(0,e.jsx)(t.kv,{color:"average",children:"No vial detected."});return f&&(!h&&!c?m=(0,e.jsx)(t.kv,{color:"average",children:"No antibodies or viral strains detected."}):m=(0,e.jsxs)(e.Fragment,{children:[h?(0,e.jsx)(t.iG,{title:"Antibodies",children:h}):null,c.length?(0,e.jsx)(t.iG,{title:"Pathogens",children:(0,e.jsx)(t.Ce,{children:c.map(function(v){return(0,e.jsx)(t.Ce.Item,{label:v.name,children:v.spread_type},v.name)})})}):null]})),(0,e.jsx)(r.qo,{width:400,height:500,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:d?(0,e.jsx)(t.iG,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,e.jsx)("center",{children:(0,e.jsx)(t.kv,{color:"bad",children:d})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.iG,{title:l?"Antibody Sample":"Blood Sample",children:[(0,e.jsxs)(t.Cu,{spacing:1,mb:1,children:[(0,e.jsx)(t.Cu.Item,{grow:1,children:(0,e.jsx)(t.q,{fluid:!0,icon:"print",content:"Print",disabled:!h&&!c.length,onClick:function(){return x("print")}})}),(0,e.jsx)(t.Cu.Item,{grow:1,children:(0,e.jsx)(t.q,{fluid:!0,icon:"eject",content:"Eject Vial",disabled:!f,onClick:function(){return x("sample")}})})]}),m]}),h&&!l||c.length?(0,e.jsx)(t.iG,{title:"Controls",children:(0,e.jsxs)(t.Ce,{children:[h&&!l?(0,e.jsx)(t.Ce.Item,{label:"Isolate Antibodies",children:(0,e.jsx)(t.q,{icon:"pen",content:h,onClick:function(){return x("antibody")}})}):null,c.length?(0,e.jsx)(t.Ce.Item,{label:"Isolate Strain",children:c.map(function(v){return(0,e.jsx)(t.q,{icon:"pen",content:v.name,onClick:function(){return x("isolate",{isolate:v.reference})}},v.name)})}):null]})}):null]})})})}},24248:function(S,y,n){"use strict";n.r(y),n.d(y,{JanitorCart:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(x){var u=(0,a.yy)(),d=u.act,h=u.data,c=h.mybag,l=h.mybucket,f=h.mymop,m=h.myspray,v=h.myreplacer,p=h.signs,g=h.icons;return(0,e.jsx)(r.qo,{width:210,height:180,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(t.q,{width:"64px",height:"64px",position:"relative",tooltip:c||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:c?"grey":"transparent",style:{border:c?null:"2px solid grey"},onClick:function(){return d("bag")},children:(0,e.jsx)(C,{iconkey:"mybag"})}),(0,e.jsx)(t.q,{width:"64px",height:"64px",position:"relative",tooltip:l||"Bucket Slot",tooltipPosition:"bottom",color:l?"grey":"transparent",style:{border:l?null:"2px solid grey"},onClick:function(){return d("bucket")},children:(0,e.jsx)(C,{iconkey:"mybucket"})}),(0,e.jsx)(t.q,{width:"64px",height:"64px",position:"relative",tooltip:f||"Mop Slot",tooltipPosition:"bottom-end",color:f?"grey":"transparent",style:{border:f?null:"2px solid grey"},onClick:function(){return d("mop")},children:(0,e.jsx)(C,{iconkey:"mymop"})}),(0,e.jsx)(t.q,{width:"64px",height:"64px",position:"relative",tooltip:m||"Spray Slot",tooltipPosition:"top-end",color:m?"grey":"transparent",style:{border:m?null:"2px solid grey"},onClick:function(){return d("spray")},children:(0,e.jsx)(C,{iconkey:"myspray"})}),(0,e.jsx)(t.q,{width:"64px",height:"64px",position:"relative",tooltip:v||"Light Replacer Slot",tooltipPosition:"top",color:v?"grey":"transparent",style:{border:v?null:"2px solid grey"},onClick:function(){return d("replacer")},children:(0,e.jsx)(C,{iconkey:"myreplacer"})}),(0,e.jsx)(t.q,{width:"64px",height:"64px",position:"relative",tooltip:p||"Signs Slot",tooltipPosition:"top-start",color:p?"grey":"transparent",style:{border:p?null:"2px solid grey"},onClick:function(){return d("sign")},children:(0,e.jsx)(C,{iconkey:"signs"})})]})})},j={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},C=function(x){var u=(0,a.yy)().data,d=x.iconkey,h=u.icons;return d in h?(0,e.jsx)("img",{src:h[d].substr(1,h[d].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)(t.GW,{style:{position:"absolute",left:"4px",right:0,top:"20px",bottom:0,width:"64px",height:"64px"},fontSize:2,name:j[d]})}},59904:function(S,y,n){"use strict";n.r(y),n.d(y,{Jukebox:function(){return j}});var e=n(33496),a=n(10608),t=n(45280),r=n(33404),i=n(76512),j=function(C){var x=(0,t.yy)(),u=x.act,d=x.data,h=d.playing,c=d.loop_mode,l=d.volume,f=d.current_track_ref,m=d.current_track,v=d.current_genre,p=d.percent,g=d.tracks,_=g.length&&g.reduce(function(I,M){var P=M.genre||"Uncategorized";return I[P]||(I[P]=[]),I[P].push(M),I},{}),E=h&&(v||"Uncategorized");return(0,e.jsx)(i.qo,{width:450,height:600,children:(0,e.jsxs)(i.qo.Content,{scrollable:!0,children:[(0,e.jsx)(r.iG,{title:"Currently Playing",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Title",children:h&&m&&(0,e.jsxs)(r.kv,{children:[m.title," by ",m.artist||"Unkown"]})||(0,e.jsx)(r.kv,{children:"Stopped"})}),(0,e.jsxs)(r.Ce.Item,{label:"Controls",children:[(0,e.jsx)(r.q,{icon:"play",disabled:h,onClick:function(){return u("play")},children:"Play"}),(0,e.jsx)(r.q,{icon:"stop",disabled:!h,onClick:function(){return u("stop")},children:"Stop"})]}),(0,e.jsxs)(r.Ce.Item,{label:"Loop Mode",children:[(0,e.jsx)(r.q,{icon:"play",onClick:function(){return u("loopmode",{loopmode:1})},selected:c===1,children:"Next"}),(0,e.jsx)(r.q,{icon:"random",onClick:function(){return u("loopmode",{loopmode:2})},selected:c===2,children:"Shuffle"}),(0,e.jsx)(r.q,{icon:"redo",onClick:function(){return u("loopmode",{loopmode:3})},selected:c===3,children:"Repeat"}),(0,e.jsx)(r.q,{icon:"step-forward",onClick:function(){return u("loopmode",{loopmode:4})},selected:c===4,children:"Once"})]}),(0,e.jsx)(r.Ce.Item,{label:"Progress",children:(0,e.jsx)(r.cH,{value:p,maxValue:1,color:"good"})}),(0,e.jsx)(r.Ce.Item,{label:"Volume",children:(0,e.jsx)(r.uQ,{minValue:0,step:1,value:l*100,maxValue:100,ranges:{good:[75,1/0],average:[25,75],bad:[0,25]},format:function(I){return(0,a.kL)(I,1)+"%"},onChange:function(I,M){return u("volume",{val:(0,a.kL)(M/100,2)})}})})]})}),(0,e.jsx)(r.iG,{title:"Available Tracks",children:g.length&&Object.keys(_).sort().map(function(I){return(0,e.jsx)(r.Uv,{title:I,color:E===I?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{"margin-left":"1em"},children:_[I].map(function(M){return(0,e.jsx)(r.q,{fluid:!0,icon:"play",selected:f===M.ref,onClick:function(){return u("change_track",{change_track:M.ref})},children:M.title},M.ref)})})},I)})||(0,e.jsx)(r.kv,{color:"bad",children:"Error: No songs loaded."})})]})})}},85176:function(S,y,n){"use strict";n.r(y),n.d(y,{LawManager:function(){return C}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512);function i(){return i=Object.assign||function(c){for(var l=1;l=0)&&(f[v]=c[v]);return f}var C=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=m.isSlaved;return(0,e.jsx)(r.qo,{width:800,height:600,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[v&&(0,e.jsxs)(t.yc,{info:!0,children:["Law-synced to ",v]})||null,(0,e.jsx)(x,{})]})})},x=function(c){var l=(0,a.ao)("lawsTabIndex",0),f=l[0],m=l[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.kZ,{children:[(0,e.jsx)(t.kZ.Tab,{selected:f===0,onClick:function(){return m(0)},children:"Law Management"}),(0,e.jsx)(t.kZ.Tab,{selected:f===1,onClick:function(){return m(1)},children:"Law Sets"})]}),f===0&&(0,e.jsx)(u,{})||null,f===1&&(0,e.jsx)(h,{})||null]})},u=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=m.ion_law_nr,p=m.ion_law,g=m.zeroth_law,_=m.inherent_law,E=m.supplied_law,I=m.supplied_law_position,M=m.zeroth_laws,P=m.has_zeroth_laws,D=m.ion_laws,k=m.has_ion_laws,L=m.inherent_laws,F=m.has_inherent_laws,w=m.supplied_laws,N=m.has_supplied_laws,$=m.isAI,H=m.isMalf,K=m.isAdmin,U=m.channel,q=m.channels,Y=M.map(function(Z){return Z.zero=!0,Z}).concat(L);return(0,e.jsxs)(t.iG,{children:[k&&(0,e.jsx)(d,{laws:D,title:v+" Laws:",mt:-2})||null,(P||F)&&(0,e.jsx)(d,{laws:Y,title:"Inherent Laws",mt:-2})||null,N&&(0,e.jsx)(d,{laws:w,title:"Supplied Laws",mt:-2})||null,(0,e.jsx)(t.iG,{level:2,title:"Controls",mt:-2,children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Statement Channel",children:q.map(function(Z){return(0,e.jsx)(t.q,{content:Z.channel,selected:U===Z.channel,onClick:function(){return f("law_channel",{law_channel:Z.channel})}},Z.channel)})}),(0,e.jsx)(t.Ce.Item,{label:"State Laws",children:(0,e.jsx)(t.q,{icon:"volume-up",onClick:function(){return f("state_laws")},children:"State Laws"})}),$&&(0,e.jsx)(t.Ce.Item,{label:"Law Notification",children:(0,e.jsx)(t.q,{icon:"exclamation",onClick:function(){return f("notify_laws")},children:"Notify"})})||null]})}),H&&(0,e.jsx)(t.iG,{level:2,title:"Add Laws",mt:-2,children:(0,e.jsxs)(t.oJ,{children:[(0,e.jsxs)(t.oJ.Row,{header:!0,children:[(0,e.jsx)(t.oJ.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(t.oJ.Cell,{children:"Law"}),(0,e.jsx)(t.oJ.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(t.oJ.Cell,{collapsing:!0,children:"Add"})]}),K&&!P&&(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsx)(t.oJ.Cell,{collapsing:!0,children:"Zero"}),(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsx)(t.EF,{value:g,fluid:!0,onChange:function(Z,z){return f("change_zeroth_law",{val:z})}})}),(0,e.jsx)(t.oJ.Cell,{children:"N/A"}),(0,e.jsx)(t.oJ.Cell,{collapsing:!0,children:(0,e.jsx)(t.q,{icon:"plus",onClick:function(){return f("add_zeroth_law")},children:"Add"})})]})||null,(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsx)(t.oJ.Cell,{collapsing:!0,children:"Ion"}),(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsx)(t.EF,{value:p,fluid:!0,onChange:function(Z,z){return f("change_ion_law",{val:z})}})}),(0,e.jsx)(t.oJ.Cell,{children:"N/A"}),(0,e.jsx)(t.oJ.Cell,{collapsing:!0,children:(0,e.jsx)(t.q,{icon:"plus",onClick:function(){return f("add_ion_law")},children:"Add"})})]}),(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsx)(t.oJ.Cell,{children:"Inherent"}),(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsx)(t.EF,{value:_,fluid:!0,onChange:function(Z,z){return f("change_inherent_law",{val:z})}})}),(0,e.jsx)(t.oJ.Cell,{children:"N/A"}),(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsx)(t.q,{icon:"plus",onClick:function(){return f("add_inherent_law")},children:"Add"})})]}),(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsx)(t.oJ.Cell,{children:"Supplied"}),(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsx)(t.EF,{value:E,fluid:!0,onChange:function(Z,z){return f("change_supplied_law",{val:z})}})}),(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsx)(t.q,{icon:"pen",onClick:function(){return f("change_supplied_law_position")},children:I})}),(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsx)(t.q,{icon:"plus",onClick:function(){return f("add_supplied_law")},children:"Add"})})]})]})})||null]})},d=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=m.isMalf,p=m.isAdmin,g=c.laws,_=c.title,E=c.noButtons,I=j(c,["laws","title","noButtons"]);return(0,e.jsx)(t.iG,i({level:2,title:_},I,{children:(0,e.jsxs)(t.oJ,{children:[(0,e.jsxs)(t.oJ.Row,{header:!0,children:[(0,e.jsx)(t.oJ.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(t.oJ.Cell,{children:"Law"}),!E&&(0,e.jsx)(t.oJ.Cell,{collapsing:!0,children:"State"})||null,v&&!E&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.oJ.Cell,{collapsing:!0,children:"Edit"}),(0,e.jsx)(t.oJ.Cell,{collapsing:!0,children:"Delete"})]})||null]}),g.map(function(M){return(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsxs)(t.oJ.Cell,{collapsing:!0,children:[M.index,"."]}),(0,e.jsx)(t.oJ.Cell,{color:M.zero?"bad":null,children:M.law}),!E&&(0,e.jsx)(t.oJ.Cell,{collapsing:!0,children:(0,e.jsx)(t.q,{fluid:!0,icon:"volume-up",selected:M.state,onClick:function(){return f("state_law",{ref:M.ref,state_law:!M.state})},children:M.state?"Yes":"No"})})||null,v&&!E&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.oJ.Cell,{collapsing:!0,children:(0,e.jsx)(t.q,{disabled:M.zero&&!p,icon:"pen",onClick:function(){return f("edit_law",{edit_law:M.ref})},children:"Edit"})}),(0,e.jsx)(t.oJ.Cell,{collapsing:!0,children:(0,e.jsx)(t.q,{disabled:M.zero&&!p,color:"bad",icon:"trash",onClick:function(){return f("delete_law",{delete_law:M.ref})},children:"Delete"})})]})||null]},M.index)})]})}))},h=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=m.isMalf,p=m.law_sets;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.yc,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),p.length&&p.map(function(g){return(0,e.jsxs)(t.iG,{title:g.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{disabled:!v,icon:"sync",onClick:function(){return f("transfer_laws",{transfer_laws:g.ref})},children:"Load Laws"}),(0,e.jsx)(t.q,{icon:"volume-up",onClick:function(){return f("state_law_set",{state_law_set:g.ref})},children:"State Laws"})]}),children:[g.laws.has_ion_laws&&(0,e.jsx)(d,{noButtons:!0,laws:g.laws.ion_laws,title:g.laws.ion_law_nr+" Laws:"})||null,(g.laws.has_zeroth_laws||g.laws.has_inherent_laws)&&(0,e.jsx)(d,{noButtons:!0,laws:g.laws.zeroth_laws.concat(g.laws.inherent_laws),title:g.header})||null,g.laws.has_supplied_laws&&(0,e.jsx)(d,{noButtons:!0,laws:g.laws.supplied_laws,title:"Supplied Laws"})||null]},g.name)})||null]})}},76192:function(S,y,n){"use strict";n.r(y),n.d(y,{ListInputModal:function(){return x}});var e=n(33496),a=n(42480),t=n(45280),r=n(33404),i=n(76512),j=n(14820),C=n(26896),x=function(h){var c=(0,t.yy)(),l=c.act,f=c.data,m=f.items,v=m===void 0?[]:m,p=f.message,g=p===void 0?"":p,_=f.init_value,E=f.large_buttons,I=f.timeout,M=f.title,P=(0,t.cv)("selected",v.indexOf(_)),D=P[0],k=P[1],L=(0,t.cv)("searchBarVisible",v.length>9),F=L[0],w=L[1],N=(0,t.cv)("searchQuery",""),$=N[0],H=N[1],K=function(le){var ie=Q.length-1;if(le===a.Mx)if(D===null||D===ie){var fe;k(0),(fe=document.getElementById("0"))==null||fe.scrollIntoView()}else{var de;k(D+1),(de=document.getElementById((D+1).toString()))==null||de.scrollIntoView()}else if(le===a.UD)if(D===null||D===0){var ge;k(ie),(ge=document.getElementById(ie.toString()))==null||ge.scrollIntoView()}else{var ye;k(D-1),(ye=document.getElementById((D-1).toString()))==null||ye.scrollIntoView()}},U=function(le){le!==D&&k(le)},q=function(){w(!1),w(!0)},Y=function(le){var ie=String.fromCharCode(le),fe=v.find(function(ye){return ye==null?void 0:ye.toLowerCase().startsWith(ie==null?void 0:ie.toLowerCase())});if(fe){var de,ge=v.indexOf(fe);k(ge),(de=document.getElementById(ge.toString()))==null||de.scrollIntoView()}},Z=function(le){var ie;le!==$&&(H(le),k(0),(ie=document.getElementById("0"))==null||ie.scrollIntoView())},z=function(){w(!F),H("")},Q=v.filter(function(le){return le==null?void 0:le.toLowerCase().includes($.toLowerCase())}),oe=325+Math.ceil(g.length/3)+(E?5:0);return F||setTimeout(function(){var le;return(le=document.getElementById(D.toString()))==null?void 0:le.focus()},1),(0,e.jsxs)(i.qo,{title:M,width:325,height:oe,children:[I&&(0,e.jsx)(C.Loader,{value:I}),(0,e.jsx)(i.qo.Content,{onKeyDown:function(le){var ie=window.event?le.which:le.keyCode;(ie===a.Mx||ie===a.UD)&&(le.preventDefault(),K(ie)),ie===a.kt&&(le.preventDefault(),l("submit",{entry:Q[D]})),!F&&ie>=a.mE&&ie<=a.gf&&(le.preventDefault(),Y(ie)),ie===a.ER&&(le.preventDefault(),l("cancel"))},children:(0,e.jsx)(r.iG,{buttons:(0,e.jsx)(r.q,{compact:!0,icon:F?"search":"font",selected:!0,tooltip:F?"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 z()}}),className:"ListInput__Section",fill:!0,title:g,children:(0,e.jsxs)(r.fT,{fill:!0,vertical:!0,children:[(0,e.jsx)(r.fT.Item,{grow:!0,children:(0,e.jsx)(u,{filteredItems:Q,onClick:U,onFocusSearch:q,searchBarVisible:F,selected:D})}),F&&(0,e.jsx)(d,{filteredItems:Q,onSearch:Z,searchQuery:$,selected:D}),(0,e.jsx)(r.fT.Item,{children:(0,e.jsx)(j.InputButtons,{input:Q[D]})})]})})})]})},u=function(h){var c=(0,t.yy)().act,l=h.filteredItems,f=h.onClick,m=h.onFocusSearch,v=h.searchBarVisible,p=h.selected;return(0,e.jsx)(r.iG,{fill:!0,scrollable:!0,tabIndex:0,children:l.map(function(g,_){return(0,e.jsx)(r.q,{color:"transparent",fluid:!0,id:_,onClick:function(){return f(_)},onDblClick:function(E){E.preventDefault(),c("submit",{entry:l[p]})},onKeyDown:function(E){var I=window.event?E.which:E.keyCode;v&&I>=a.mE&&I<=a.gf&&(E.preventDefault(),m())},selected:_===p,style:{animation:"none",transition:"none"},children:g.replace(/^\w/,function(E){return E.toUpperCase()})},_)})})},d=function(h){var c=(0,t.yy)().act,l=h.filteredItems,f=h.onSearch,m=h.searchQuery,v=h.selected;return(0,e.jsx)(r.EF,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(p){p.preventDefault(),c("submit",{entry:l[v]})},onInput:function(p,g){return f(g)},placeholder:"Search...",value:m})}},44568:function(S,y,n){"use strict";n.r(y),n.d(y,{LookingGlass:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.supportedPrograms,h=u.currentProgram,c=u.immersion,l=u.gravity,f=Math.min(180+d.length*23,600);return(0,e.jsx)(r.qo,{width:300,height:f,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(t.iG,{title:"Programs",children:d.map(function(m){return(0,e.jsx)(t.q,{fluid:!0,icon:"eye",selected:m===h,onClick:function(){return x("program",{program:m})},children:m},m)})}),(0,e.jsx)(t.iG,{title:"Controls",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Gravity",children:(0,e.jsx)(t.q,{fluid:!0,icon:"user-astronaut",selected:l,onClick:function(){return x("gravity")},children:l?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ce.Item,{label:"Full Immersion",children:(0,e.jsx)(t.q,{mt:-1,fluid:!0,icon:"eye",selected:c,onClick:function(){return x("immersion")},children:c?"Enabled":"Disabled"})})]})})]})})}},23944:function(S,y,n){"use strict";n.r(y),n.d(y,{MechaControlConsole:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(49900),j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.beacons,c=d.stored_data;return(0,e.jsx)(r.qo,{width:600,height:600,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[c.length&&(0,e.jsx)(t.wJ,{children:(0,e.jsx)(t.iG,{height:"400px",style:{"overflow-y":"auto"},title:"Log",buttons:(0,e.jsx)(t.q,{icon:"window-close",onClick:function(){return u("clear_log")}}),children:c.map(function(l){return(0,e.jsxs)(t.kv,{children:[(0,e.jsxs)(t.kv,{color:"label",children:["(",l.time,") (",l.year,")"]}),(0,e.jsx)(t.kv,{children:(0,i.Af)(l.message)})]},l.time)})})})||null,h.length&&h.map(function(l){return(0,e.jsx)(t.iG,{title:l.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:"comment",onClick:function(){return u("send_message",{mt:l.ref})},children:"Message"}),(0,e.jsx)(t.q,{icon:"eye",onClick:function(){return u("get_log",{mt:l.ref})},children:"View Log"}),(0,e.jsx)(t.q.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){return u("shock",{mt:l.ref})}})]}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Health",children:(0,e.jsx)(t.cH,{ranges:{good:[l.maxHealth*.75,1/0],average:[l.maxHealth*.5,l.maxHealth*.75],bad:[-1/0,l.maxHealth*.5]},value:l.health,maxValue:l.maxHealth})}),(0,e.jsx)(t.Ce.Item,{label:"Cell Charge",children:l.cell&&(0,e.jsx)(t.cH,{ranges:{good:[l.cellMaxCharge*.75,1/0],average:[l.cellMaxCharge*.5,l.cellMaxCharge*.75],bad:[-1/0,l.cellMaxCharge*.5]},value:l.cellCharge,maxValue:l.cellMaxCharge})||(0,e.jsx)(t.yc,{children:"No Cell Installed"})}),(0,e.jsxs)(t.Ce.Item,{label:"Air Tank",children:[l.airtank,"kPa"]}),(0,e.jsx)(t.Ce.Item,{label:"Pilot",children:l.pilot||"Unoccupied"}),(0,e.jsx)(t.Ce.Item,{label:"Location",children:(0,i.Yl)(l.location)||"Unknown"}),(0,e.jsx)(t.Ce.Item,{label:"Active Equipment",children:l.active||"None"}),l.cargoMax&&(0,e.jsx)(t.Ce.Item,{label:"Cargo Space",children:(0,e.jsx)(t.cH,{ranges:{bad:[l.cargoMax*.75,1/0],average:[l.cargoMax*.5,l.cargoMax*.75],good:[-1/0,l.cargoMax*.5]},value:l.cargoUsed,maxValue:l.cargoMax})})||null]})},l.name)})||(0,e.jsx)(t.yc,{children:"No mecha beacons found."})]})})}},59916:function(S,y,n){"use strict";n.r(y),n.d(y,{Medbot:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.on,h=u.open,c=u.beaker,l=u.beaker_total,f=u.beaker_max,m=u.locked,v=u.heal_threshold,p=u.heal_threshold_max,g=u.injection_amount_min,_=u.injection_amount,E=u.injection_amount_max,I=u.use_beaker,M=u.declare_treatment,P=u.vocal;return(0,e.jsx)(r.qo,{width:400,height:600,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(t.iG,{title:"Automatic Medical Unit v2.0",buttons:(0,e.jsx)(t.q,{icon:"power-off",selected:d,onClick:function(){return x("power")},children:d?"On":"Off"}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Maintenance Panel",color:h?"bad":"good",children:h?"Open":"Closed"}),(0,e.jsx)(t.Ce.Item,{label:"Beaker",buttons:(0,e.jsx)(t.q,{disabled:!c,icon:"eject",onClick:function(){return x("eject")},children:"Eject"}),children:c&&(0,e.jsxs)(t.cH,{value:l,maxValue:f,children:[l," / ",f]})||(0,e.jsx)(t.kv,{color:"average",children:"No beaker loaded."})}),(0,e.jsx)(t.Ce.Item,{label:"Behavior Controls",color:m?"good":"bad",children:m?"Locked":"Unlocked"})]})}),!m&&(0,e.jsx)(t.iG,{title:"Behavioral Controls",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Healing Threshold",children:(0,e.jsx)(t.WC,{fluid:!0,minValue:0,maxValue:p,value:v,onDrag:function(D,k){return x("adj_threshold",{val:k})}})}),(0,e.jsx)(t.Ce.Item,{label:"Injection Amount",children:(0,e.jsx)(t.WC,{fluid:!0,minValue:g,maxValue:E,value:_,onDrag:function(D,k){return x("adj_inject",{val:k})}})}),(0,e.jsx)(t.Ce.Item,{label:"Reagent Source",children:(0,e.jsx)(t.q,{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)(t.Ce.Item,{label:"Treatment Report",children:(0,e.jsx)(t.q,{fluid:!0,icon:M?"toggle-on":"toggle-off",selected:M,onClick:function(){return x("declaretreatment")},children:M?"On":"Off"})}),(0,e.jsx)(t.Ce.Item,{label:"Speaker",children:(0,e.jsx)(t.q,{fluid:!0,icon:P?"toggle-on":"toggle-off",selected:P,onClick:function(){return x("togglevoice")},children:P?"On":"Off"})})]})})||null]})})}},33808:function(S,y,n){"use strict";n.r(y),n.d(y,{MedicalRecords:function(){return l}});var e=n(33496),a=n(69344),t=n(45280),r=n(33404),i=n(8020),j=n(76512),C=n(74800),x=n(79092),u=n(66632),d={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"},h=function(M){(0,i.modalOpen)("edit",{field:M.edit,value:M.value})},c=function(M){var P=(0,t.yy)().act,D=M.args;return(0,e.jsx)(r.iG,{level:2,m:"-1rem",title:D.name||"Virus",buttons:(0,e.jsx)(r.q,{icon:"times",color:"red",onClick:function(){return P("modal_close")}}),children:(0,e.jsx)(r.kv,{mx:"0.5rem",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsxs)(r.Ce.Item,{label:"Spread",children:[D.spread_text," Transmission"]}),(0,e.jsx)(r.Ce.Item,{label:"Possible cure",children:D.antigen}),(0,e.jsx)(r.Ce.Item,{label:"Rate of Progression",children:D.rate}),(0,e.jsxs)(r.Ce.Item,{label:"Antibiotic Resistance",children:[D.resistance,"%"]}),(0,e.jsx)(r.Ce.Item,{label:"Species Affected",children:D.species}),(0,e.jsx)(r.Ce.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ce,{children:D.symptoms.map(function(k){return(0,e.jsxs)(r.Ce.Item,{label:k.stage+". "+k.name,children:[(0,e.jsx)(r.kv,{inline:!0,color:"label",children:"Strength:"})," ",k.strength,"\xA0",(0,e.jsx)(r.kv,{inline:!0,color:"label",children:"Aggressiveness:"})," ",k.aggressiveness]},k.stage)})})})]})})})},l=function(M){var P=(0,t.yy)().data,D=P.authenticated,k=P.screen;if(!D)return(0,e.jsx)(j.qo,{width:800,height:380,children:(0,e.jsx)(j.qo.Content,{children:(0,e.jsx)(x.LoginScreen,{})})});var L;return k===2?L=(0,e.jsx)(f,{}):k===3?L=(0,e.jsx)(m,{}):k===4?L=(0,e.jsx)(v,{}):k===5?L=(0,e.jsx)(_,{}):k===6&&(L=(0,e.jsx)(E,{})),(0,e.jsxs)(j.qo,{width:800,height:380,children:[(0,e.jsx)(i.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,e.jsxs)(j.qo.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(C.LoginInfo,{}),(0,e.jsx)(u.TemporaryNotice,{}),(0,e.jsx)(I,{}),(0,e.jsx)(r.iG,{height:"calc(100% - 5rem)",flexGrow:"1",children:L})]})]})},f=function(M){var P=(0,t.yy)(),D=P.act,k=P.data,L=k.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.EF,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(F,w){return D("search",{t1:w})}}),(0,e.jsx)(r.kv,{mt:"0.5rem",children:L.map(function(F,w){return(0,e.jsx)(r.q,{icon:"user",mb:"0.5rem",content:F.id+": "+F.name,onClick:function(){return D("d_rec",{d_rec:F.ref})}},w)})})]})},m=function(M){var P=(0,t.yy)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(r.q,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," ",(0,e.jsx)("br",{}),(0,e.jsx)(r.q.Confirm,{icon:"trash",content:"Delete All Medical Records",onClick:function(){return P("del_all")}})]})},v=function(M){var P=(0,t.yy)(),D=P.act,k=P.data,L=k.medical,F=k.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.iG,{title:"General Data",level:2,mt:"-6px",children:(0,e.jsx)(p,{})}),(0,e.jsx)(r.iG,{title:"Medical Data",level:2,children:(0,e.jsx)(g,{})}),(0,e.jsxs)(r.iG,{title:"Actions",level:2,children:[(0,e.jsx)(r.q.Confirm,{icon:"trash",disabled:!!L.empty,content:"Delete Medical Record",color:"bad",onClick:function(){return D("del_r")}}),(0,e.jsx)(r.q,{icon:F?"spinner":"print",disabled:F,iconSpin:!!F,content:"Print Entry",ml:"0.5rem",onClick:function(){return D("print_p")}}),(0,e.jsx)("br",{}),(0,e.jsx)(r.q,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return D("screen",{screen:2})}})]})]})},p=function(M){var P=(0,t.yy)().data,D=P.general;return!D||!D.fields?(0,e.jsx)(r.kv,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.kv,{width:"50%",float:"left",children:(0,e.jsx)(r.Ce,{children:D.fields.map(function(k,L){return(0,e.jsxs)(r.Ce.Item,{label:k.field,children:[(0,e.jsx)(r.kv,{height:"20px",display:"inline-block",preserveWhitespace:!0,children:k.value}),!!k.edit&&(0,e.jsx)(r.q,{icon:"pen",ml:"0.5rem",onClick:function(){return h(k)}})]},L)})})}),(0,e.jsx)(r.kv,{width:"50%",float:"right",textAlign:"right",children:!!D.has_photos&&D.photos.map(function(k,L){return(0,e.jsxs)(r.kv,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.jsx)("img",{src:k.substr(1,k.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)("br",{}),"Photo #",L+1]},L)})})]})},g=function(M){var P=(0,t.yy)(),D=P.act,k=P.data,L=k.medical;return!L||!L.fields?(0,e.jsxs)(r.kv,{color:"bad",children:["Medical records lost!",(0,e.jsx)(r.q,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return D("new")}})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ce,{children:L.fields.map(function(F,w){return(0,e.jsx)(r.Ce.Item,{label:F.field,children:(0,e.jsxs)(r.kv,{preserveWhitespace:!0,children:[F.value,(0,e.jsx)(r.q,{icon:"pen",ml:"0.5rem",mb:F.line_break?"1rem":"initial",onClick:function(){return h(F)}})]})},w)})}),(0,e.jsxs)(r.iG,{title:"Comments/Log",level:2,children:[L.comments.length===0?(0,e.jsx)(r.kv,{color:"label",children:"No comments found."}):L.comments.map(function(F,w){return(0,e.jsxs)(r.kv,{children:[(0,e.jsx)(r.kv,{color:"label",inline:!0,children:F.header}),(0,e.jsx)("br",{}),F.text,(0,e.jsx)(r.q,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return D("del_c",{del_c:w+1})}})]},w)}),(0,e.jsx)(r.q,{icon:"comment-medical",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,i.modalOpen)("add_c")}})]})]})},_=function(M){var P=(0,t.yy)(),D=P.act,k=P.data,L=k.virus;return L.sort(function(F,w){return F.name>w.name?1:-1}),L.map(function(F,w){return(0,e.jsxs)(a.Fragment,{children:[(0,e.jsx)(r.q,{icon:"flask",content:F.name,mb:"0.5rem",onClick:function(){return D("vir",{vir:F.D})}}),(0,e.jsx)("br",{})]},w)})},E=function(M){var P=(0,t.yy)().data,D=P.medbots;return D.length===0?(0,e.jsx)(r.kv,{color:"label",children:"There are no Medbots."}):D.map(function(k,L){return(0,e.jsx)(r.Uv,{open:!0,title:k.name,children:(0,e.jsx)(r.kv,{px:"0.5rem",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsxs)(r.Ce.Item,{label:"Location",children:[k.area||"Unknown"," (",k.x,", ",k.y,")"]}),(0,e.jsx)(r.Ce.Item,{label:"Status",children:k.on?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.kv,{color:"good",children:"Online"}),(0,e.jsx)(r.kv,{mt:"0.5rem",children:k.use_beaker?"Reservoir: "+k.total_volume+"/"+k.maximum_volume:"Using internal synthesizer."})]}):(0,e.jsx)(r.kv,{color:"average",children:"Offline"})})]})})},L)})},I=function(M){var P=(0,t.yy)(),D=P.act,k=P.data,L=k.screen;return(0,e.jsxs)(r.kZ,{children:[(0,e.jsxs)(r.kZ.Tab,{selected:L===2,onClick:function(){return D("screen",{screen:2})},children:[(0,e.jsx)(r.GW,{name:"list"}),"List Records"]}),(0,e.jsxs)(r.kZ.Tab,{selected:L===5,onClick:function(){return D("screen",{screen:5})},children:[(0,e.jsx)(r.GW,{name:"database"}),"Virus Database"]}),(0,e.jsxs)(r.kZ.Tab,{selected:L===6,onClick:function(){return D("screen",{screen:6})},children:[(0,e.jsx)(r.GW,{name:"plus-square"}),"Medbot Tracking"]}),(0,e.jsxs)(r.kZ.Tab,{selected:L===3,onClick:function(){return D("screen",{screen:3})},children:[(0,e.jsx)(r.GW,{name:"wrench"}),"Record Maintenance"]})]})};(0,i.modalRegisterBodyOverride)("virus",c)},34932:function(S,y,n){"use strict";n.r(y),n.d(y,{MentorTicketPanel:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i={open:"Open",resolved:"Resolved",unknown:"Unknown"},j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.id,c=d.title,l=d.name,f=d.state,m=d.opened_at,v=d.closed_at,p=d.opened_at_date,g=d.closed_at_date,_=d.actions,E=d.log;return(0,e.jsx)(r.qo,{width:900,height:600,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(t.iG,{title:"Ticket #"+h,buttons:(0,e.jsxs)(t.kv,{nowrap:!0,children:[(0,e.jsx)(t.q,{icon:"arrow-up",content:"Escalate",onClick:function(){return u("escalate")}})," ",(0,e.jsx)(t.q,{content:"Legacy UI",onClick:function(){return u("legacy")}})]}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsxs)(t.Ce.Item,{label:"Mentor Help Ticket",children:["#",h,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:l}})]}),(0,e.jsx)(t.Ce.Item,{label:"State",children:i[f]}),i[f]===i.open?(0,e.jsxs)(t.Ce.Item,{label:"Opened At",children:[p," (",Math.round(m/600*10)/10," ","minutes ago.)"]}):(0,e.jsxs)(t.Ce.Item,{label:"Closed At",children:[g," (",Math.round(v/600*10)/10," ","minutes ago.)"," ",(0,e.jsx)(t.q,{content:"Reopen",onClick:function(){return u("reopen")}})]}),(0,e.jsx)(t.Ce.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:_}})}),(0,e.jsx)(t.Ce.Item,{label:"Log",children:Object.keys(E).map(function(I,M){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:E[I]}},M)})})]})})})})}},34884:function(S,y,n){"use strict";n.r(y),n.d(y,{MessageMonitor:function(){return x}});var e=n(33496),a=n(49900),t=n(45280),r=n(33404),i=n(76512),j=n(66632),C=n(44664),x=function(v){var p=(0,t.yy)(),g=p.act,_=p.data,E=_.auth,I=_.linkedServer,M=_.message,P=_.hacking,D=_.emag,k;return P||D?k=(0,e.jsx)(u,{}):E?I?k=(0,e.jsx)(h,{}):k=(0,e.jsx)(r.kv,{color:"bad",children:"ERROR"}):k=(0,e.jsx)(d,{}),(0,e.jsx)(i.qo,{width:670,height:450,children:(0,e.jsxs)(i.qo.Content,{scrollable:!0,children:[(0,e.jsx)(j.TemporaryNotice,{}),k]})})},u=function(v){var p=(0,t.yy)(),g=p.act,_=p.data,E=_.isMalfAI;return(0,e.jsx)(C.FullscreenNotice,{title:"ERROR",children:E?(0,e.jsx)(r.kv,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,e.jsxs)(r.kv,{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"]})})},d=function(v){var p=(0,t.yy)(),g=p.act,_=p.data,E=_.isMalfAI;return(0,e.jsxs)(C.FullscreenNotice,{title:"Welcome",children:[(0,e.jsxs)(r.kv,{fontSize:"1.5rem",bold:!0,children:[(0,e.jsx)(r.GW,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,e.jsxs)(r.kv,{color:"label",my:"1rem",children:["Decryption Key:",(0,e.jsx)(r.EF,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(I,M){return g("auth",{key:M})}})]}),!!E&&(0,e.jsx)(r.q,{icon:"terminal",content:"Hack",onClick:function(){return g("hack")}}),(0,e.jsx)(r.kv,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})},h=function(v){var p=(0,t.yy)(),g=p.act,_=p.data,E=_.linkedServer,I=(0,t.cv)("tabIndex",0),M=I[0],P=I[1],D;return M===0?D=(0,e.jsx)(c,{}):M===1?D=(0,e.jsx)(l,{logs:E.pda_msgs,pda:!0}):M===2?D=(0,e.jsx)(l,{logs:E.rc_msgs,rc:!0}):M===3?D=(0,e.jsx)(f,{}):M===4&&(D=(0,e.jsx)(m,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.kZ,{children:[(0,e.jsxs)(r.kZ.Tab,{selected:M===0,onClick:function(){return P(0)},children:[(0,e.jsx)(r.GW,{name:"bars"})," Main Menu"]},"Main"),(0,e.jsxs)(r.kZ.Tab,{selected:M===1,onClick:function(){return P(1)},children:[(0,e.jsx)(r.GW,{name:"font"})," Message Logs"]},"MessageLogs"),(0,e.jsxs)(r.kZ.Tab,{selected:M===2,onClick:function(){return P(2)},children:[(0,e.jsx)(r.GW,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,e.jsxs)(r.kZ.Tab,{selected:M===3,onClick:function(){return P(3)},children:[(0,e.jsx)(r.GW,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,e.jsxs)(r.kZ.Tab,{selected:M===4,onClick:function(){return P(4)},children:[(0,e.jsx)(r.GW,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,e.jsxs)(r.kZ.Tab,{color:"red",onClick:function(){return g("deauth")},children:[(0,e.jsx)(r.GW,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,e.jsx)(r.kv,{m:2,children:D})]})},c=function(v){var p=(0,t.yy)(),g=p.act,_=p.data,E=_.linkedServer;return(0,e.jsxs)(r.iG,{title:"Main Menu",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{icon:"link",content:"Server Link",onClick:function(){return g("find")}}),(0,e.jsx)(r.q,{icon:"power-off",content:"Server "+(E.active?"Enabled":"Disabled"),selected:E.active,onClick:function(){return g("active")}})]}),children:[(0,e.jsx)(r.Ce,{children:(0,e.jsx)(r.Ce.Item,{label:"Server Status",children:(0,e.jsx)(r.kv,{color:"good",children:"Good"})})}),(0,e.jsx)(r.q,{mt:1,icon:"key",content:"Set Custom Key",onClick:function(){return g("pass")}}),(0,e.jsx)(r.q.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Message Logs"}),(0,e.jsx)(r.q.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Request Logs"})]})},l=function(v){var p=(0,t.yy)(),g=p.act,_=p.data,E=v.logs,I=v.pda,M=v.rc;return(0,e.jsx)(r.iG,{title:I?"PDA Logs":M?"Request Logs":"Logs",buttons:(0,e.jsx)(r.q.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){return g(I?"del_pda":"del_rc")}}),children:(0,e.jsx)(r.Cu,{wrap:"wrap",children:E.map(function(P,D){return(0,e.jsx)(r.Cu.Item,{m:"2px",basis:"49%",grow:D%2,children:(0,e.jsx)(r.iG,{title:P.sender+" -> "+P.recipient,buttons:(0,e.jsx)(r.q.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return g("delete",{id:P.ref,type:M?"rc":"pda"})}}),children:M?(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Message",children:P.message}),(0,e.jsx)(r.Ce.Item,{label:"Verification",color:P.id_auth==="Unauthenticated"?"bad":"good",children:(0,a.Af)(P.id_auth)}),(0,e.jsx)(r.Ce.Item,{label:"Stamp",children:P.stamp})]}):P.message})},P.ref)})})})},f=function(v){var p=(0,t.yy)(),g=p.act,_=p.data,E=_.possibleRecipients,I=_.customsender,M=_.customrecepient,P=_.customjob,D=_.custommessage,k=Object.keys(E);return(0,e.jsxs)(r.iG,{title:"Admin Messaging",children:[(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Sender",children:(0,e.jsx)(r.EF,{fluid:!0,value:I,onChange:function(L,F){return g("set_sender",{val:F})}})}),(0,e.jsx)(r.Ce.Item,{label:"Sender's Job",children:(0,e.jsx)(r.EF,{fluid:!0,value:P,onChange:function(L,F){return g("set_sender_job",{val:F})}})}),(0,e.jsx)(r.Ce.Item,{label:"Recipient",children:(0,e.jsx)(r.cS,{value:M,options:k,width:"100%",mb:-.7,onSelected:function(L){return g("set_recipient",{val:E[L]})}})}),(0,e.jsx)(r.Ce.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(r.EF,{fluid:!0,mb:.5,value:D,onChange:function(L,F){return g("set_message",{val:F})}})})]}),(0,e.jsx)(r.q,{fluid:!0,icon:"comment",content:"Send Message",onClick:function(){return g("send_message")}})]})},m=function(v){var p=(0,t.yy)(),g=p.act,_=p.data,E=_.linkedServer;return(0,e.jsxs)(r.iG,{title:"Spam Filtering",children:[(0,e.jsx)(r.Ce,{children:E.spamFilter.map(function(I){return(0,e.jsx)(r.Ce.Item,{label:I.index,buttons:(0,e.jsx)(r.q,{icon:"trash",color:"bad",content:"Delete",onClick:function(){return g("deltoken",{deltoken:I.index})}}),children:I.token},I.index)})}),(0,e.jsx)(r.q,{icon:"plus",content:"Add New Entry",onClick:function(){return g("addtoken")}})]})}},31028:function(S,y,n){"use strict";n.r(y),n.d(y,{Microwave:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.config,d=C.data,h=d.broken,c=d.operating,l=d.dirty,f=d.items;return(0,e.jsx)(r.qo,{width:400,height:500,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:h&&(0,e.jsx)(t.iG,{children:(0,e.jsx)(t.kv,{color:"bad",children:"Bzzzzttttt!!"})})||c&&(0,e.jsx)(t.iG,{children:(0,e.jsxs)(t.kv,{color:"good",children:["Microwaving in progress!",(0,e.jsx)("br",{}),"Please wait...!"]})})||l&&(0,e.jsx)(t.iG,{children:(0,e.jsxs)(t.kv,{color:"bad",children:["This microwave is dirty!",(0,e.jsx)("br",{}),"Please clean it before use!"]})})||f.length&&(0,e.jsx)(t.iG,{level:1,title:"Ingredients",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:"radiation",onClick:function(){return x("cook")},children:"Microwave"}),(0,e.jsx)(t.q,{icon:"eject",onClick:function(){return x("dispose")},children:"Eject"})]}),children:(0,e.jsx)(t.Ce,{children:f.map(function(m){return(0,e.jsxs)(t.Ce.Item,{label:m.name,children:[m.amt," ",m.extra]},m.name)})})})||(0,e.jsx)(t.iG,{children:(0,e.jsxs)(t.kv,{color:"bad",children:[u.title," is empty."]})})})})}},20076:function(S,y,n){"use strict";n.r(y),n.d(y,{MiningOreProcessingConsole:function(){return C}});var e=n(33496),a=n(49900),t=n(45280),r=n(33404),i=n(76512),j=n(33292),C=function(c){var l=(0,t.yy)(),f=l.act,m=l.data,v=m.unclaimedPoints,p=m.ores,g=m.showAllOres,_=m.power,E=m.speed;return(0,e.jsx)(i.qo,{width:400,height:500,children:(0,e.jsxs)(i.qo.Content,{children:[(0,e.jsx)(j.MiningUser,{insertIdText:(0,e.jsxs)(r.kv,{children:[(0,e.jsx)(r.q,{icon:"arrow-right",mr:1,onClick:function(){return f("insert")},children:"Insert ID"}),"in order to claim points."]})}),(0,e.jsx)(r.iG,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{icon:"bolt",selected:E,onClick:function(){return f("speed_toggle")},children:E?"High-Speed Active":"High-Speed Inactive"}),(0,e.jsx)(r.q,{icon:"power-off",selected:_,onClick:function(){return f("power")},children:_?"Smelting":"Not Smelting"})]}),children:(0,e.jsx)(r.Ce,{children:(0,e.jsx)(r.Ce.Item,{label:"Current unclaimed points",buttons:(0,e.jsx)(r.q,{disabled:v<1,icon:"download",onClick:function(){return f("claim")},children:"Claim"}),children:(0,e.jsx)(r.Gg,{value:v})})})}),(0,e.jsx)(h,{})]})})},x=["Not Processing","Smelting","Compressing","Alloying"],u=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],d=function(c,l){return u.indexOf(c.ore)===-1||u.indexOf(l.ore)===-1?c.ore-l.ore:u.indexOf(l.ore)-u.indexOf(c.ore)},h=function(c){var l=(0,t.yy)(),f=l.act,m=l.data,v=m.ores,p=m.showAllOres,g=m.power;return(0,e.jsx)(r.iG,{title:"Ore Processing Controls",buttons:(0,e.jsx)(r.q,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return f("showAllOres")},children:p?"All Ores":"Ores in Machine"}),children:(0,e.jsx)(r.Ce,{children:v.length&&v.sort(d).map(function(_){return(0,e.jsx)(r.Ce.Item,{label:(0,a.Yl)(_.name),buttons:(0,e.jsx)(r.cS,{width:"120px",color:_.processing===0&&"red"||_.processing===1&&"green"||_.processing===2&&"blue"||_.processing===3&&"yellow",options:x,selected:x[_.processing],onSelected:function(E){return f("toggleSmelting",{ore:_.ore,set:x.indexOf(E)})}}),children:(0,e.jsx)(r.kv,{inline:!0,children:(0,e.jsx)(r.Gg,{value:_.amount})})},_.ore)})||(0,e.jsx)(r.kv,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},86592:function(S,y,n){"use strict";n.r(y),n.d(y,{MiningStackingConsole:function(){return j}});var e=n(33496),a=n(49900),t=n(45280),r=n(33404),i=n(76512),j=function(C){var x=(0,t.yy)(),u=x.act,d=x.data,h=d.stacktypes,c=d.stackingAmt;return(0,e.jsx)(i.qo,{width:400,height:500,children:(0,e.jsx)(i.qo.Content,{children:(0,e.jsx)(r.iG,{title:"Stacker Controls",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Stacking",children:(0,e.jsx)(r.WC,{fluid:!0,value:c,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(l,f){return u("change_stack",{amt:f})}})}),(0,e.jsx)(r.Ce.Divider,{}),h.length&&h.sort().map(function(l){return(0,e.jsx)(r.Ce.Item,{label:(0,a.Yl)(l.type),buttons:(0,e.jsx)(r.q,{icon:"eject",onClick:function(){return u("release_stack",{stack:l.type})},children:"Eject"}),children:(0,e.jsx)(r.Gg,{value:l.amt})},l.type)})||(0,e.jsx)(r.Ce.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}},60340:function(S,y,n){"use strict";n.r(y),n.d(y,{MiningVendor:function(){return d}});var e=n(33496),a=n(49900),t=n(45280),r=n(33404),i=n(76512),j=n(33292);function C(){return C=Object.assign||function(f){for(var m=1;m=0)&&(v[g]=f[g]);return v}var u={Alphabetical:function(f,m){return f-m},"By availability":function(f,m){return-(f.affordable-m.affordable)},"By price":function(f,m){return f.price-m.price}},d=function(f){return(0,e.jsx)(i.qo,{width:400,height:450,children:(0,e.jsxs)(i.qo.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(j.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,e.jsx)(c,{}),(0,e.jsx)(h,{})]})})},h=function(f){var m=(0,t.yy)(),v=m.act,p=m.data,g=p.has_id,_=p.id,E=p.items,I=(0,t.cv)("search",""),M=I[0],P=I[1],D=(0,t.cv)("sort","Alphabetical"),k=D[0],L=D[1],F=(0,t.cv)("descending",!1),w=F[0],N=F[1],$=(0,a.od)(M,function(U){return U[0]}),H=!1,K=Object.entries(E).map(function(U,q){var Y=Object.entries(U[1]).filter($).map(function(Z){return Z[1].affordable=g&&_.points>=Z[1].price,Z[1]}).sort(u[k]);if(Y.length!==0)return w&&(Y=Y.reverse()),H=!0,(0,e.jsx)(l,{title:U[0],items:Y},U[0])});return(0,e.jsx)(r.Cu.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(r.iG,{children:H?K:(0,e.jsx)(r.kv,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(f){var m=(0,t.cv)("search",""),v=m[0],p=m[1],g=(0,t.cv)("sort",""),_=g[0],E=g[1],I=(0,t.cv)("descending",!1),M=I[0],P=I[1];return(0,e.jsx)(r.kv,{mb:"0.5rem",children:(0,e.jsxs)(r.Cu,{width:"100%",children:[(0,e.jsx)(r.Cu.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(r.EF,{placeholder:"Search by item name..",width:"100%",onInput:function(D,k){return p(k)}})}),(0,e.jsx)(r.Cu.Item,{basis:"30%",children:(0,e.jsx)(r.cS,{selected:"Alphabetical",options:Object.keys(u),width:"100%",lineHeight:"19px",onSelected:function(D){return E(D)}})}),(0,e.jsx)(r.Cu.Item,{children:(0,e.jsx)(r.q,{icon:M?"arrow-down":"arrow-up",height:"19px",tooltip:M?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return P(!M)}})})]})})},l=function(f){var m=(0,t.yy)(),v=m.act,p=m.data,g=f.title,_=f.items,E=x(f,["title","items"]);return(0,e.jsx)(r.Uv,C({open:!0,title:g},E,{children:_.map(function(I){return(0,e.jsxs)(r.kv,{children:[(0,e.jsx)(r.kv,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:I.name}),(0,e.jsx)(r.q,{disabled:!p.has_id||p.id.points=450?"Overcharged":v>=250?"Good Charge":"Low Charge":v>=250?"NIF Power Requirement met.":v>=150?"Fluctuations in available power.":"Power failure imminent."},f=function(v){var p=(0,a.yy)(),g=p.act,_=p.config,E=p.data,I=E.nif_percent,M=E.nif_stat,P=E.last_notification,D=E.nutrition,k=E.isSynthetic,L=E.modules,F=v.setViewing;return(0,e.jsxs)(t.kv,{children:[(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"NIF Condition",children:(0,e.jsxs)(t.cH,{value:I,minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,0]},children:[c(M,I)," (",(0,e.jsx)(t.Gg,{value:I}),"%)"]})}),(0,e.jsx)(t.Ce.Item,{label:"NIF Power",children:(0,e.jsx)(t.cH,{value:D,minValue:0,maxValue:700,ranges:{good:[250,1/0],average:[150,250],bad:[0,150]},children:l(D,k)})})]}),(0,e.jsx)(t.iG,{level:2,title:"NIFSoft Modules",mt:1,children:(0,e.jsx)(t.Ce,{children:L.map(function(w){return(0,e.jsx)(t.Ce.Item,{label:w.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q.Confirm,{icon:"trash",color:"bad",confirmContent:"UNINSTALL?",confirmIcon:"trash",tooltip:"Uninstall Module",tooltipPosition:"left",onClick:function(){return g("uninstall",{module:w.ref})}}),(0,e.jsx)(t.q,{icon:"search",onClick:function(){return F(w)},tooltip:"View Information",tooltipPosition:"left"})]}),children:w.activates&&(0,e.jsx)(t.q,{fluid:!0,selected:w.active,content:w.stat_text,onClick:function(){return g("toggle_module",{module:w.ref})}})||(0,e.jsx)(t.kv,{children:w.stat_text})},w.ref)})})})]})},m=function(v){var p=(0,a.yy)(),g=p.act,_=p.data,E=_.theme;return(0,e.jsx)(t.Ce,{children:(0,e.jsx)(t.Ce.Item,{label:"NIF Theme",verticalAlign:"top",children:(0,e.jsx)(t.cS,{width:"100%",placeholder:"Default",selected:E,options:d,onSelected:function(I){return g("setTheme",{theme:I})}})})})}},76332:function(S,y,n){"use strict";n.r(y),n.d(y,{NTNetRelay:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(44664),j=function(u){var d=(0,a.yy)(),h=d.act,c=d.data,l=c.dos_crashed,f=c.enabled,m=c.dos_overload,v=c.dos_capacity,p=(0,e.jsx)(C,{});return l&&(p=(0,e.jsx)(x,{})),(0,e.jsx)(r.qo,{width:l?700:500,height:l?600:300,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:p})})},C=function(u){var d=(0,a.yy)(),h=d.act,c=d.data,l=c.dos_crashed,f=c.enabled,m=c.dos_overload,v=c.dos_capacity;return(0,e.jsx)(t.iG,{title:"Status",buttons:(0,e.jsx)(t.q,{icon:"power-off",selected:f,content:"Relay "+(f?"On":"Off"),onClick:function(){return h("toggle")}}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsxs)(t.Ce.Item,{label:"Network Buffer Status",children:[m," / ",v," GQ"]}),(0,e.jsx)(t.Ce.Item,{label:"Options",children:(0,e.jsx)(t.q,{icon:"exclamation-triangle",content:"Purge network blacklist",onClick:function(){return h("purge")}})})]})})},x=function(u){var d=(0,a.yy)(),h=d.act,c=d.data;return(0,e.jsxs)(i.FullscreenNotice,{title:"ERROR",children:[(0,e.jsxs)(t.kv,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(t.GW,{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)(t.kv,{children:(0,e.jsx)(t.q,{icon:"exclamation-triangle",content:"Purge buffered traffic",onClick:function(){return h("restart")}})})]})}},49480:function(S,y,n){"use strict";n.r(y),n.d(y,{Newscaster:function(){return m}});var e=n(33496),a=n(49900),t=n(45280),r=n(33404),i=n(76512),j=n(66632),C="Main Menu",x="New Channel",u="View List",d="New Story",h="Print",c="New Wanted",l="View Wanted",f="View Selected Channel",m=function(L){var F=(0,t.yy)(),w=F.act,N=F.data,$=N.screen,H=N.user;return(0,e.jsx)(i.qo,{width:600,height:600,children:(0,e.jsxs)(i.qo.Content,{scrollable:!0,children:[(0,e.jsx)(j.TemporaryNotice,{decode:!0}),(0,e.jsx)(v,{})]})})},v=function(L){var F=(0,t.yy)(),w=F.act,N=F.data,$=N.user,H=(0,t.ao)("screen",C),K=H[0],U=H[1],q=k[K];return(0,e.jsx)(r.kv,{children:(0,e.jsx)(q,{setScreen:U})})},p=function(L){var F=(0,t.yy)(),w=F.act,N=F.data,$=N.securityCaster,H=N.wanted_issue,K=L.setScreen;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.iG,{title:"Main Menu",children:[H&&(0,e.jsx)(r.q,{fluid:!0,icon:"eye",onClick:function(){return K(l)},color:"bad",children:"Read WANTED Issue"}),(0,e.jsx)(r.q,{fluid:!0,icon:"eye",onClick:function(){return K(u)},children:"View Feed Channels"}),(0,e.jsx)(r.q,{fluid:!0,icon:"plus",onClick:function(){return K(x)},children:"Create Feed Channel"}),(0,e.jsx)(r.q,{fluid:!0,icon:"plus",onClick:function(){return K(d)},children:"Create Feed Message"}),(0,e.jsx)(r.q,{fluid:!0,icon:"print",onClick:function(){return K(h)},children:"Print Newspaper"})]}),!!$&&(0,e.jsx)(r.iG,{title:"Feed Security Functions",children:(0,e.jsx)(r.q,{fluid:!0,icon:"plus",onClick:function(){return K(c)},children:'Manage "Wanted" Issue'})})]})},g=function(L){var F=(0,t.yy)(),w=F.act,N=F.data,$=N.channel_name,H=N.c_locked,K=N.user,U=L.setScreen;return(0,e.jsxs)(r.iG,{title:"Creating new Feed Channel",buttons:(0,e.jsx)(r.q,{icon:"undo",onClick:function(){return U(C)},children:"Back"}),children:[(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Channel Name",children:(0,e.jsx)(r.EF,{fluid:!0,value:(0,a.Af)($),onInput:function(q,Y){return w("set_channel_name",{val:Y})}})}),(0,e.jsx)(r.Ce.Item,{label:"Channel Author",color:"good",children:K}),(0,e.jsx)(r.Ce.Item,{label:"Accept Public Feeds",children:(0,e.jsx)(r.q,{icon:H?"lock":"lock-open",selected:!H,onClick:function(){return w("set_channel_lock")},children:H?"No":"Yes"})})]}),(0,e.jsx)(r.q,{fluid:!0,color:"good",icon:"plus",onClick:function(){return w("submit_new_channel")},children:"Submit Channel"}),(0,e.jsx)(r.q,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return U(C)},children:"Cancel"})]})},_=function(L){var F=(0,t.yy)(),w=F.act,N=F.data,$=N.channels,H=L.setScreen;return(0,e.jsx)(r.iG,{title:"Station Feed Channels",buttons:(0,e.jsx)(r.q,{icon:"undo",onClick:function(){return H(C)},children:"Back"}),children:$.map(function(K){return(0,e.jsx)(r.q,{fluid:!0,icon:"eye",color:K.admin?"good":K.censored?"bad":"",onClick:function(){w("show_channel",{show_channel:K.ref}),H(f)},children:(0,a.Af)(K.name)},K.name)})})},E=function(L){var F=(0,t.yy)(),w=F.act,N=F.data,$=N.channel_name,H=N.user,K=N.title,U=N.msg,q=N.photo_data,Y=L.setScreen,Z={"white-space":"nowrap"},z={width:"100%","word-break":"break-all","word-wrap":"break-word"};return(0,e.jsxs)(r.iG,{title:"Creating new Feed Message...",buttons:(0,e.jsx)(r.q,{icon:"undo",onClick:function(){return Y(C)},children:"Back"}),children:[(0,e.jsxs)("table",{style:{width:"calc(100% + 0.5em)",margin:"-0.25em -0.25em 0 -0.25em",padding:0},children:[(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{style:Z,children:"Receiving Channel:"}),(0,e.jsx)("td",{colspan:2,children:(0,e.jsx)(r.q,{fluid:!0,onClick:function(){return w("set_channel_receiving")},children:$||"Unset"})})]}),(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{style:Z,children:"Message Author:"}),(0,e.jsx)("td",{className:"color-good",colspan:2,children:H})]}),(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{style:Z,children:"Message Title:"}),(0,e.jsx)("td",{style:z,children:K||"(no title yet)"}),(0,e.jsx)("td",{children:(0,e.jsx)(r.q,{verticalAlign:"top",onClick:function(){return w("set_new_title")},icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"})})]}),(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{style:Z,children:"Message Body:"}),(0,e.jsx)("td",{style:z,children:U||"(no message yet)"}),(0,e.jsx)("td",{children:(0,e.jsx)(r.q,{verticalAlign:"top",onClick:function(){return w("set_new_message")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]}),(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{style:Z,children:"Attach Photo:"}),(0,e.jsx)("td",{colspan:2,children:(0,e.jsx)(r.q,{fluid:!0,icon:"image",onClick:function(){return w("set_attachment")},children:q?"Photo Attached":"No Photo"})})]})]}),(0,e.jsx)(r.q,{fluid:!0,color:"good",icon:"plus",onClick:function(){return w("submit_new_message")},children:"Submit Message"}),(0,e.jsx)(r.q,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return Y(C)},children:"Cancel"})]})},I=function(L){var F=(0,t.yy)(),w=F.act,N=F.data,$=N.total_num,H=N.active_num,K=N.message_num,U=N.paper_remaining,q=L.setScreen;return(0,e.jsxs)(r.iG,{title:"Printing",buttons:(0,e.jsx)(r.q,{icon:"undo",onClick:function(){return q(C)},children:"Back"}),children:[(0,e.jsxs)(r.kv,{color:"label",mb:1,children:["Newscaster currently serves a total of ",$," Feed channels,"," ",H," of which are active, and a total of ",K," Feed stories."]}),(0,e.jsx)(r.Ce,{children:(0,e.jsxs)(r.Ce.Item,{label:"Liquid Paper remaining",children:[U*100," cm\xB3"]})}),(0,e.jsx)(r.q,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return w("print_paper")},children:"Print Paper"}),(0,e.jsx)(r.q,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return q(C)},children:"Cancel"})]})},M=function(L){var F=(0,t.yy)(),w=F.act,N=F.data,$=N.channel_name,H=N.msg,K=N.photo_data,U=N.user,q=N.wanted_issue,Y=L.setScreen;return(0,e.jsxs)(r.iG,{title:"Wanted Issue Handler",buttons:(0,e.jsx)(r.q,{icon:"undo",onClick:function(){return Y(C)},children:"Back"}),children:[(0,e.jsxs)(r.Ce,{children:[!!q&&(0,e.jsx)(r.Ce.Item,{label:"Already In Circulation",children:"A wanted issue is already in circulation. You can edit or cancel it below."}),(0,e.jsx)(r.Ce.Item,{label:"Criminal Name",children:(0,e.jsx)(r.EF,{fluid:!0,value:(0,a.Af)($),onInput:function(Z,z){return w("set_channel_name",{val:z})}})}),(0,e.jsx)(r.Ce.Item,{label:"Description",children:(0,e.jsx)(r.EF,{fluid:!0,value:(0,a.Af)(H),onInput:function(Z,z){return w("set_wanted_desc",{val:z})}})}),(0,e.jsx)(r.Ce.Item,{label:"Attach Photo",children:(0,e.jsx)(r.q,{fluid:!0,icon:"image",onClick:function(){return w("set_attachment")},children:K?"Photo Attached":"No Photo"})}),(0,e.jsx)(r.Ce.Item,{label:"Prosecutor",color:"good",children:U})]}),(0,e.jsx)(r.q,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return w("submit_wanted")},children:"Submit Wanted Issue"}),!!q&&(0,e.jsx)(r.q,{fluid:!0,color:"average",icon:"minus",onClick:function(){return w("cancel_wanted")},children:"Take Down Issue"}),(0,e.jsx)(r.q,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return Y(C)},children:"Cancel"})]})},P=function(L){var F=(0,t.yy)(),w=F.act,N=F.data,$=N.wanted_issue,H=L.setScreen;return $?(0,e.jsx)(r.iG,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,e.jsx)(r.q,{icon:"undo",onClick:function(){return H(C)},children:"Back"}),children:(0,e.jsx)(r.kv,{color:"white",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Submitted by",color:"good",children:(0,a.Af)($.author)}),(0,e.jsx)(r.Ce.Divider,{}),(0,e.jsx)(r.Ce.Item,{label:"Criminal",children:(0,a.Af)($.criminal)}),(0,e.jsx)(r.Ce.Item,{label:"Description",children:(0,a.Af)($.desc)}),(0,e.jsx)(r.Ce.Item,{label:"Photo",children:$.img&&(0,e.jsx)("img",{src:$.img})||"None"})]})})}):(0,e.jsx)(r.iG,{title:"No Outstanding Wanted Issues",buttons:(0,e.jsx)(r.q,{icon:"undo",onClick:function(){return H(C)},children:"Back"}),children:"There are no wanted issues currently outstanding."})},D=function(L){var F=(0,t.yy)(),w=F.act,N=F.data,$=N.viewing_channel,H=N.securityCaster,K=N.company,U=L.setScreen;return $?(0,e.jsxs)(r.iG,{title:(0,a.Af)($.name),buttons:(0,e.jsxs)(e.Fragment,{children:[!!H&&(0,e.jsx)(r.q.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",content:"Issue D-Notice",onClick:function(){return w("toggle_d_notice",{ref:$.ref})}}),(0,e.jsx)(r.q,{icon:"undo",onClick:function(){return U(u)},children:"Back"})]}),children:[(0,e.jsx)(r.Ce,{children:(0,e.jsx)(r.Ce.Item,{label:"Channel Created By",children:H&&(0,e.jsx)(r.q.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:(0,a.Af)($.author),tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){return w("censor_channel_author",{ref:$.ref})}})||(0,e.jsx)(r.kv,{children:(0,a.Af)($.author)})})}),!!$.censored&&(0,e.jsxs)(r.kv,{color:"bad",children:["ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a ",K," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!$.messages.length&&$.messages.map(function(q){return(0,e.jsxs)(r.iG,{children:["- ",(0,a.Af)(q.body),!!q.img&&(0,e.jsxs)(r.kv,{children:[(0,e.jsx)("img",{src:"data:image/png;base64,"+q.img}),(0,a.Af)(q.caption)||null]}),(0,e.jsxs)(r.kv,{color:"grey",children:["[Story by ",(0,a.Af)(q.author)," -"," ",q.timestamp,"]"]}),!!H&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Story",onClick:function(){return w("censor_channel_story_body",{ref:q.ref})}}),(0,e.jsx)(r.q.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Author",onClick:function(){return w("censor_channel_story_author",{ref:q.ref})}})]})]},q.ref)})||!$.censored&&(0,e.jsx)(r.kv,{color:"average",children:"No feed messages found in channel."})]}):(0,e.jsx)(r.iG,{title:"Channel Not Found",buttons:(0,e.jsx)(r.q,{icon:"undo",onClick:function(){return U(u)},children:"Back"}),children:"The channel you were looking for no longer exists."})},k={};k[C]=p,k[x]=g,k[u]=_,k[d]=E,k[h]=I,k[c]=M,k[l]=P,k[f]=D},74352:function(S,y,n){"use strict";n.r(y),n.d(y,{NoticeBoard:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.notices;return(0,e.jsx)(r.qo,{width:330,height:300,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(t.iG,{children:d.length?(0,e.jsx)(t.Ce,{children:d.map(function(h,c){return(0,e.jsxs)(t.Ce.Item,{label:h.name,children:[h.isphoto&&(0,e.jsx)(t.q,{icon:"image",content:"Look",onClick:function(){return x("look",{ref:h.ref})}})||h.ispaper&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:"sticky-note",content:"Read",onClick:function(){return x("read",{ref:h.ref})}}),(0,e.jsx)(t.q,{icon:"pen",content:"Write",onClick:function(){return x("write",{ref:h.ref})}})]})||"Unknown Entity",(0,e.jsx)(t.q,{icon:"minus-circle",content:"Remove",onClick:function(){return x("remove",{ref:h.ref})}})]},c)})}):(0,e.jsx)(t.kv,{color:"average",children:"No notices posted here."})})})})}},36660:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosAccessDecrypter:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(8816),j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.message,c=d.running,l=d.rate,f=d.factor,m=d.regions,v=function(g){for(var _="";_.lengthf?_+="0":_+="1";return _},p=45;return(0,e.jsx)(r.g9,{width:600,height:600,theme:"syndicate",children:(0,e.jsx)(r.g9.Content,{children:h&&(0,e.jsx)(t.yc,{children:h})||c&&(0,e.jsxs)(t.iG,{children:["Attempting to decrypt network access codes. Please wait. Rate:"," ",l," PHash/s",(0,e.jsx)(t.kv,{children:v(p)}),(0,e.jsx)(t.kv,{children:v(p)}),(0,e.jsx)(t.kv,{children:v(p)}),(0,e.jsx)(t.kv,{children:v(p)}),(0,e.jsx)(t.kv,{children:v(p)}),(0,e.jsx)(t.q,{fluid:!0,icon:"ban",onClick:function(){return u("PRG_reset")},children:"Abort"})]})||(0,e.jsx)(t.iG,{title:"Pick access code to decrypt",children:m.length&&(0,e.jsx)(i.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,e.jsx)(t.kv,{children:"Please insert ID card."})})})})}},92732:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosArcade:function(){return j}});var e=n(33496),a=n(69912),t=n(45280),r=n(33404),i=n(76512),j=function(C){var x=(0,t.yy)(),u=x.act,d=x.data;return(0,e.jsx)(i.g9,{width:450,height:350,children:(0,e.jsx)(i.g9.Content,{children:(0,e.jsxs)(r.iG,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,e.jsxs)(r.kv,{children:[(0,e.jsxs)(r.ye,{children:[(0,e.jsxs)(r.ye.Column,{size:2,children:[(0,e.jsx)(r.kv,{m:1}),(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Player Health",children:(0,e.jsxs)(r.cH,{value:d.PlayerHitpoints,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[d.PlayerHitpoints,"HP"]})}),(0,e.jsx)(r.Ce.Item,{label:"Player Magic",children:(0,e.jsxs)(r.cH,{value:d.PlayerMP,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[d.PlayerMP,"MP"]})})]}),(0,e.jsx)(r.kv,{my:1,mx:4}),(0,e.jsx)(r.iG,{backgroundColor:d.PauseState===1?"#1b3622":"#471915",children:d.Status})]}),(0,e.jsxs)(r.ye.Column,{children:[(0,e.jsxs)(r.cH,{value:d.Hitpoints,minValue:0,maxValue:45,ranges:{good:[30,1/0],average:[5,30],bad:[-1/0,5]},children:[(0,e.jsx)(r.Gg,{value:d.Hitpoints}),"HP"]}),(0,e.jsx)(r.kv,{m:1}),(0,e.jsx)(r.iG,{inline:!0,width:"156px",textAlign:"center",children:(0,e.jsx)("img",{src:(0,a.e)(d.BossID)})})]})]}),(0,e.jsx)(r.kv,{my:1,mx:4}),(0,e.jsx)(r.q,{icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",disabled:d.GameActive===0||d.PauseState===1,onClick:function(){return u("Attack")},content:"Attack!"}),(0,e.jsx)(r.q,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:d.GameActive===0||d.PauseState===1,onClick:function(){return u("Heal")},content:"Heal!"}),(0,e.jsx)(r.q,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:d.GameActive===0||d.PauseState===1,onClick:function(){return u("Recharge_Power")},content:"Recharge!"})]}),(0,e.jsxs)(r.kv,{children:[(0,e.jsx)(r.q,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:d.GameActive===1,onClick:function(){return u("Start_Game")},content:"Begin Game"}),(0,e.jsx)(r.q,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:d.GameActive===1,onClick:function(){return u("Dispense_Tickets")},content:"Claim Tickets"})]}),(0,e.jsxs)(r.kv,{color:d.TicketCount>=1?"good":"normal",children:["Earned Tickets: ",d.TicketCount]})]})})})}},24184:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosAtmosControl:function(){return r}});var e=n(33496),a=n(76512),t=n(67064),r=function(){return(0,e.jsx)(a.g9,{width:870,height:708,children:(0,e.jsx)(a.g9.Content,{children:(0,e.jsx)(t.AtmosControlContent,{})})})}},75159:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosCameraConsole:function(){return h},prevNextCamera:function(){return u},selectCameras:function(){return d}});var e=n(33496),a=n(47392),t=n(18140),r=n(49900),i=n(45280),j=n(33404),C=n(76512),x=n(42040),u=function(c,l){var f,m;if(!l)return[];var v=c.findIndex(function(p){return p.name===l.name});return[(f=c[v-1])==null?void 0:f.name,(m=c[v+1])==null?void 0:m.name]},d=function(c,l,f){l===void 0&&(l=""),f===void 0&&(f="");var m=(0,r.od)(l,function(v){return v.name});return(0,t.k)([(0,a.IF)(function(v){return v==null?void 0:v.name}),l&&(0,a.IF)(m),f&&(0,a.IF)(function(v){return v.networks.includes(f)}),(0,a.cp)(function(v){return v.name})])(c)},h=function(c){var l=(0,i.yy)(),f=l.act,m=l.data,v=m.mapRef,p=m.activeCamera,g=d(m.cameras),_=u(g,p),E=_[0],I=_[1];return(0,e.jsx)(C.g9,{width:870,height:708,children:(0,e.jsxs)(C.g9.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: "}),p&&p.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(j.q,{icon:"chevron-left",disabled:!E,onClick:function(){return f("switch_camera",{name:E})}}),(0,e.jsx)(j.q,{icon:"chevron-right",disabled:!I,onClick:function(){return f("switch_camera",{name:I})}}),"| PAN:",(0,e.jsx)(j.q,{icon:"chevron-left",onClick:function(){return f("pan",{dir:8})}}),(0,e.jsx)(j.q,{icon:"chevron-up",onClick:function(){return f("pan",{dir:1})}}),(0,e.jsx)(j.q,{icon:"chevron-right",onClick:function(){return f("pan",{dir:4})}}),(0,e.jsx)(j.q,{icon:"chevron-down",onClick:function(){return f("pan",{dir:2})}})]}),(0,e.jsx)(j.cb,{className:"CameraConsole__map",params:{id:v,type:"map"}})]})]})})}},2416:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosCommunicationsConsole:function(){return r}});var e=n(33496),a=n(76512),t=n(55656),r=function(){return(0,e.jsx)(a.g9,{width:400,height:600,children:(0,e.jsx)(a.g9.Content,{scrollable:!0,children:(0,e.jsx)(t.CommunicationsConsoleContent,{})})})}},12112:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosConfiguration:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.PC_device_theme,h=u.power_usage,c=u.battery_exists,l=u.battery,f=l===void 0?{}:l,m=u.disk_size,v=u.disk_used,p=u.hardware,g=p===void 0?[]:p;return(0,e.jsx)(r.g9,{theme:d,width:520,height:630,children:(0,e.jsxs)(r.g9.Content,{scrollable:!0,children:[(0,e.jsx)(t.iG,{title:"Power Supply",buttons:(0,e.jsxs)(t.kv,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",h,"W"]}),children:(0,e.jsx)(t.Ce,{children:(0,e.jsx)(t.Ce.Item,{label:"Battery Status",color:!c&&"average",children:c?(0,e.jsxs)(t.cH,{value:f.charge,minValue:0,maxValue:f.max,ranges:{good:[f.max/2,1/0],average:[f.max/4,f.max/2],bad:[-1/0,f.max/4]},children:[f.charge," / ",f.max]}):"Not Available"})})}),(0,e.jsx)(t.iG,{title:"File System",children:(0,e.jsxs)(t.cH,{value:v,minValue:0,maxValue:m,color:"good",children:[v," GQ / ",m," GQ"]})}),(0,e.jsx)(t.iG,{title:"Hardware Components",children:g.map(function(_){return(0,e.jsx)(t.iG,{title:_.name,level:2,buttons:(0,e.jsxs)(e.Fragment,{children:[!_.critical&&(0,e.jsx)(t.q.Checkbox,{content:"Enabled",checked:_.enabled,mr:1,onClick:function(){return x("PC_toggle_component",{name:_.name})}}),(0,e.jsxs)(t.kv,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",_.powerusage,"W"]})]}),children:_.desc},_.name)})})]})})}},14144:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosCrewManifest:function(){return r}});var e=n(33496),a=n(76512),t=n(94384),r=function(){return(0,e.jsx)(a.g9,{width:800,height:600,children:(0,e.jsx)(a.g9.Content,{children:(0,e.jsx)(t.CrewManifestContent,{})})})}},4036:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosCrewMonitor:function(){return r}});var e=n(33496),a=n(76512),t=n(37284),r=function(){return(0,e.jsx)(a.g9,{width:800,height:600,children:(0,e.jsx)(a.g9.Content,{children:(0,e.jsx)(t.CrewMonitorContent,{})})})}},93816:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosDigitalWarrant:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(47392),j=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.warrantname,m=l.warrantcharges,v=l.warrantauth,p=l.type,g=l.allwarrants,_=(0,e.jsx)(C,{});return v&&(_=(0,e.jsx)(u,{})),(0,e.jsx)(r.g9,{width:500,height:350,children:(0,e.jsx)(r.g9.Content,{scrollable:!0,children:_})})},C=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.allwarrants;return(0,e.jsxs)(t.iG,{title:"Warrants",children:[(0,e.jsx)(t.q,{icon:"plus",fluid:!0,onClick:function(){return c("addwarrant")},children:"Create New Warrant"}),(0,e.jsx)(t.iG,{level:2,title:"Arrest Warrants",children:(0,e.jsx)(x,{type:"arrest"})}),(0,e.jsx)(t.iG,{level:2,title:"Search Warrants",children:(0,e.jsx)(x,{type:"search"})})]})},x=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=d.type,m=l.allwarrants,v=(0,i.IF)(function(p){return p.arrestsearch===f})(m);return(0,e.jsxs)(t.oJ,{children:[(0,e.jsxs)(t.oJ.Row,{header:!0,children:[(0,e.jsx)(t.oJ.Cell,{children:f==="arrest"?"Name":"Location"}),(0,e.jsx)(t.oJ.Cell,{children:f==="arrest"?"Charges":"Reason"}),(0,e.jsx)(t.oJ.Cell,{children:"Authorized By"}),(0,e.jsx)(t.oJ.Cell,{collapsing:!0,children:"Edit"})]}),v.length&&v.map(function(p){return(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsx)(t.oJ.Cell,{children:p.warrantname}),(0,e.jsx)(t.oJ.Cell,{children:p.charges}),(0,e.jsx)(t.oJ.Cell,{children:p.auth}),(0,e.jsx)(t.oJ.Cell,{collapsing:!0,children:(0,e.jsx)(t.q,{icon:"pen",onClick:function(){return c("editwarrant",{id:p.id})}})})]},p.id)})||(0,e.jsx)(t.oJ.Row,{children:(0,e.jsxs)(t.oJ.Cell,{colspan:"3",color:"bad",children:["No ",f," warrants found."]})})]})},u=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.warrantname,m=l.warrantcharges,v=l.warrantauth,p=l.type,g=p==="arrest",_=p==="arrest"?"Name":"Location",E=p==="arrest"?"Charges":"Reason";return(0,e.jsx)(t.iG,{title:g?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:"save",onClick:function(){return c("savewarrant")},children:"Save"}),(0,e.jsx)(t.q,{color:"bad",icon:"trash",onClick:function(){return c("deletewarrant")},children:"Delete"}),(0,e.jsx)(t.q,{icon:"undo",onClick:function(){return c("back")},children:"Back"})]}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:_,buttons:g&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:"search",onClick:function(){return c("editwarrantname")}}),(0,e.jsx)(t.q,{icon:"pen",onClick:function(){return c("editwarrantnamecustom")}})]})||(0,e.jsx)(t.q,{icon:"pen",onClick:function(){return c("editwarrantnamecustom")}}),children:f}),(0,e.jsx)(t.Ce.Item,{label:E,buttons:(0,e.jsx)(t.q,{icon:"pen",onClick:function(){return c("editwarrantcharges")}}),children:m}),(0,e.jsx)(t.Ce.Item,{label:"Authorized By",buttons:(0,e.jsx)(t.q,{icon:"balance-scale",onClick:function(){return c("editwarrantauth")}}),children:v})]})})}},17032:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosEmailAdministration:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(78319),j=function(h){var c=(0,a.yy)(),l=c.act,f=c.data,m=f.error,v=f.cur_title,p=f.current_account,g=(0,e.jsx)(C,{});return m?g=(0,e.jsx)(x,{}):v?g=(0,e.jsx)(u,{}):p&&(g=(0,e.jsx)(d,{})),(0,e.jsx)(r.g9,{width:600,height:450,children:(0,e.jsx)(r.g9.Content,{scrollable:!0,children:g})})},C=function(h){var c=(0,a.yy)(),l=c.act,f=c.data,m=f.accounts;return(0,e.jsxs)(t.iG,{title:"Welcome to the NTNet Email Administration System",children:[(0,e.jsx)(t.kv,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,e.jsx)(t.q,{fluid:!0,icon:"plus",onClick:function(){return l("newaccount")},children:"Create New Account"}),(0,e.jsx)(t.kv,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),m.map(function(v){return(0,e.jsx)(t.q,{fluid:!0,icon:"eye",onClick:function(){return l("viewaccount",{viewaccount:v.uid})},children:v.login},v.uid)})]})},x=function(h){var c=(0,a.yy)(),l=c.act,f=c.data,m=f.error;return(0,e.jsx)(t.iG,{title:"Message",buttons:(0,e.jsx)(t.q,{icon:"undo",onClick:function(){return l("back")},children:"Back"}),children:m})},u=function(h){var c=(0,a.yy)(),l=c.act,f=c.data;return(0,e.jsx)(t.iG,{children:(0,e.jsx)(i.NtosEmailClientViewMessage,{administrator:!0})})},d=function(h){var c=(0,a.yy)(),l=c.act,f=c.data,m=f.error,v=f.msg_title,p=f.msg_body,g=f.msg_timestamp,_=f.msg_source,E=f.current_account,I=f.cur_suspended,M=f.messages,P=f.accounts;return(0,e.jsxs)(t.iG,{title:"Viewing "+E+" in admin mode",buttons:(0,e.jsx)(t.q,{icon:"undo",onClick:function(){return l("back")},children:"Back"}),children:[(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Account Status",children:(0,e.jsx)(t.q,{color:I?"bad":"",icon:"ban",tooltip:(I?"Uns":"S")+"uspend Account?",onClick:function(){return l("ban")},children:I?"Suspended":"Normal"})}),(0,e.jsx)(t.Ce.Item,{label:"Actions",children:(0,e.jsx)(t.q,{icon:"key",onClick:function(){return l("changepass")},children:"Change Password"})})]}),(0,e.jsx)(t.iG,{level:2,title:"Messages",children:M.length&&(0,e.jsxs)(t.oJ,{children:[(0,e.jsxs)(t.oJ.Row,{header:!0,children:[(0,e.jsx)(t.oJ.Cell,{children:"Source"}),(0,e.jsx)(t.oJ.Cell,{children:"Title"}),(0,e.jsx)(t.oJ.Cell,{children:"Received at"}),(0,e.jsx)(t.oJ.Cell,{children:"Actions"})]}),M.map(function(D){return(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsx)(t.oJ.Cell,{children:D.source}),(0,e.jsx)(t.oJ.Cell,{children:D.title}),(0,e.jsx)(t.oJ.Cell,{children:D.timestamp}),(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsx)(t.q,{icon:"eye",onClick:function(){return l("viewmail",{viewmail:D.uid})},children:"View"})})]},D.uid)})]})||(0,e.jsx)(t.kv,{color:"average",children:"No messages found in selected account."})})]})}},78319:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosEmailClient:function(){return j},NtosEmailClientViewMessage:function(){return d}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(10608),j=function(m){var v=(0,a.yy)(),p=v.act,g=v.data,_=g.PC_device_theme,E=g.error,I=g.downloading,M=g.current_account,P=(0,e.jsx)(f,{});return E?P=(0,e.jsx)(l,{error:E}):I?P=(0,e.jsx)(C,{}):M&&(P=(0,e.jsx)(x,{})),(0,e.jsx)(r.g9,{resizable:!0,theme:_,children:(0,e.jsx)(r.g9.Content,{scrollable:!0,children:P})})},C=function(m){var v=(0,a.yy)(),p=v.act,g=v.data,_=g.down_filename,E=g.down_progress,I=g.down_size,M=g.down_speed;return(0,e.jsx)(t.iG,{title:"Downloading...",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsxs)(t.Ce.Item,{label:"File",children:[_," (",I," GQ)"]}),(0,e.jsxs)(t.Ce.Item,{label:"Speed",children:[(0,e.jsx)(t.Gg,{value:M})," GQ/s"]}),(0,e.jsx)(t.Ce.Item,{label:"Progress",children:(0,e.jsxs)(t.cH,{color:"good",value:E,maxValue:I,children:[E,"/",I," (",(0,i.kL)(E/I*100,1),"%)"]})})]})})},x=function(m){var v=(0,a.yy)(),p=v.act,g=v.data,_=g.current_account,E=g.addressbook,I=g.new_message,M=g.cur_title,P=(0,e.jsx)(u,{});return E?P=(0,e.jsx)(h,{}):I?P=(0,e.jsx)(c,{}):M&&(P=(0,e.jsx)(d,{})),(0,e.jsx)(t.iG,{title:"Logged in as: "+_,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){return p("new_message")}}),(0,e.jsx)(t.q,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){return p("changepassword")}}),(0,e.jsx)(t.q,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){return p("logout")}})]}),children:P})},u=function(m){var v=(0,a.yy)(),p=v.act,g=v.data,_=g.current_account,E=g.folder,I=g.messagecount,M=g.messages;return(0,e.jsxs)(t.iG,{level:2,noTopPadding:!0,children:[(0,e.jsxs)(t.kZ,{children:[(0,e.jsx)(t.kZ.Tab,{selected:E==="Inbox",onClick:function(){return p("set_folder",{set_folder:"Inbox"})},children:"Inbox"}),(0,e.jsx)(t.kZ.Tab,{selected:E==="Spam",onClick:function(){return p("set_folder",{set_folder:"Spam"})},children:"Spam"}),(0,e.jsx)(t.kZ.Tab,{selected:E==="Deleted",onClick:function(){return p("set_folder",{set_folder:"Deleted"})},children:"Deleted"})]}),I&&(0,e.jsx)(t.iG,{children:(0,e.jsxs)(t.oJ,{children:[(0,e.jsxs)(t.oJ.Row,{header:!0,children:[(0,e.jsx)(t.oJ.Cell,{children:"Source"}),(0,e.jsx)(t.oJ.Cell,{children:"Title"}),(0,e.jsx)(t.oJ.Cell,{children:"Received At"}),(0,e.jsx)(t.oJ.Cell,{children:"Actions"})]}),M.map(function(P){return(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsx)(t.oJ.Cell,{children:P.source}),(0,e.jsx)(t.oJ.Cell,{children:P.title}),(0,e.jsx)(t.oJ.Cell,{children:P.timestamp}),(0,e.jsxs)(t.oJ.Cell,{children:[(0,e.jsx)(t.q,{icon:"eye",onClick:function(){return p("view",{view:P.uid})},tooltip:"View"}),(0,e.jsx)(t.q,{icon:"share",onClick:function(){return p("reply",{reply:P.uid})},tooltip:"Reply"}),(0,e.jsx)(t.q,{color:"bad",icon:"trash",onClick:function(){return p("delete",{delete:P.uid})},tooltip:"Delete"})]})]},P.timestamp+P.title)})]})})||(0,e.jsxs)(t.kv,{color:"bad",children:["No emails found in ",E,"."]})]})},d=function(m){var v=(0,a.yy)(),p=v.act,g=v.data,_=m.administrator,E=g.cur_title,I=g.cur_source,M=g.cur_timestamp,P=g.cur_body,D=g.cur_hasattachment,k=g.cur_attachment_filename,L=g.cur_attachment_size,F=g.cur_uid;return(0,e.jsx)(t.iG,{title:E,buttons:_?(0,e.jsx)(t.q,{icon:"times",onClick:function(){return p("back")}}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){return p("reply",{reply:F})}}),(0,e.jsx)(t.q,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){return p("delete",{delete:F})}}),(0,e.jsx)(t.q,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){return p("save",{save:F})}}),D&&(0,e.jsx)(t.q,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){return p("downloadattachment")}})||null,(0,e.jsx)(t.q,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){return p("cancel",{cancel:F})}})]}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"From",children:I}),(0,e.jsx)(t.Ce.Item,{label:"At",children:M}),D&&!_&&(0,e.jsxs)(t.Ce.Item,{label:"Attachment",color:"average",children:[k," (",L,"GQ)"]})||null,(0,e.jsx)(t.Ce.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(t.iG,{children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:P}})})})]})})},h=function(m){var v=(0,a.yy)(),p=v.act,g=v.data,_=g.accounts;return(0,e.jsx)(t.iG,{title:"Address Book",level:2,buttons:(0,e.jsx)(t.q,{color:"bad",icon:"times",onClick:function(){return p("set_recipient",{set_recipient:null})}}),children:_.map(function(E){return(0,e.jsx)(t.q,{content:E.login,fluid:!0,onClick:function(){return p("set_recipient",{set_recipient:E.login})}},E.login)})})},c=function(m){var v=(0,a.yy)(),p=v.act,g=v.data,_=g.current_account,E=g.msg_title,I=g.msg_recipient,M=g.msg_body,P=g.msg_hasattachment,D=g.msg_attachment_filename,k=g.msg_attachment_size;return(0,e.jsx)(t.iG,{title:"New Message",level:2,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:"share",onClick:function(){return p("send")},children:"Send Message"}),(0,e.jsx)(t.q,{color:"bad",icon:"times",onClick:function(){return p("cancel")}})]}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Title",children:(0,e.jsx)(t.EF,{fluid:!0,value:E,onInput:function(L,F){return p("edit_title",{val:F})}})}),(0,e.jsx)(t.Ce.Item,{label:"Recipient",verticalAlign:"top",children:(0,e.jsxs)(t.Cu,{children:[(0,e.jsx)(t.Cu.Item,{grow:1,children:(0,e.jsx)(t.EF,{fluid:!0,value:I,onInput:function(L,F){return p("edit_recipient",{val:F})}})}),(0,e.jsx)(t.Cu.Item,{children:(0,e.jsx)(t.q,{icon:"address-book",onClick:function(){return p("addressbook")},tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,e.jsx)(t.Ce.Item,{label:"Attachments",buttons:P&&(0,e.jsx)(t.q,{color:"bad",icon:"times",onClick:function(){return p("remove_attachment")},children:"Remove Attachment"})||(0,e.jsx)(t.q,{icon:"plus",onClick:function(){return p("addattachment")},children:"Add Attachment"}),children:P&&(0,e.jsxs)(t.kv,{inline:!0,children:[D," (",k,"GQ)"]})||null}),(0,e.jsx)(t.Ce.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsxs)(t.Cu,{children:[(0,e.jsx)(t.Cu.Item,{grow:1,children:(0,e.jsx)(t.iG,{width:"99%",inline:!0,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:M}})})}),(0,e.jsx)(t.Cu.Item,{children:(0,e.jsx)(t.q,{verticalAlign:"top",onClick:function(){return p("edit_body")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},l=function(m){var v=(0,a.yy)().act,p=m.error;return(0,e.jsx)(t.iG,{title:"Notification",buttons:(0,e.jsx)(t.q,{icon:"arrow-left",content:"Return",onClick:function(){return v("reset")}}),children:(0,e.jsx)(t.kv,{color:"bad",children:p})})},f=function(m){var v=(0,a.yy)(),p=v.act,g=v.data,_=g.stored_login,E=g.stored_password;return(0,e.jsxs)(t.iG,{title:"Please Log In",children:[(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Email address",children:(0,e.jsx)(t.EF,{fluid:!0,value:_,onInput:function(I,M){return p("edit_login",{val:M})}})}),(0,e.jsx)(t.Ce.Item,{label:"Password",children:(0,e.jsx)(t.EF,{fluid:!0,value:E,onInput:function(I,M){return p("edit_password",{val:M})}})})]}),(0,e.jsx)(t.q,{icon:"sign-in-alt",onClick:function(){return p("login")},children:"Log In"})]})}},87384:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosFileManager:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.PC_device_theme,c=d.usbconnected,l=d.filename,f=d.filedata,m=d.error,v=d.files,p=v===void 0?[]:v,g=d.usbfiles,_=g===void 0?[]:g;return(0,e.jsx)(r.g9,{resizable:!0,theme:h,children:(0,e.jsxs)(r.g9.Content,{scrollable:!0,children:[l&&(0,e.jsx)(t.iG,{title:"Viewing File "+l,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:"pen",content:"Edit",onClick:function(){return u("PRG_edit")}}),(0,e.jsx)(t.q,{icon:"print",content:"Print",onClick:function(){return u("PRG_printfile")}}),(0,e.jsx)(t.q,{icon:"times",content:"Close",onClick:function(){return u("PRG_closefile")}})]}),children:f&&(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:f}})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.iG,{children:(0,e.jsx)(j,{files:p,usbconnected:c,onUpload:function(E){return u("PRG_copytousb",{uid:E})},onDelete:function(E){return u("PRG_deletefile",{uid:E})},onOpen:function(E){return u("PRG_openfile",{uid:E})},onRename:function(E,I){return u("PRG_rename",{uid:E,new_name:I})},onDuplicate:function(E){return u("PRG_clone",{uid:E})}})}),c&&(0,e.jsx)(t.iG,{title:"Data Disk",children:(0,e.jsx)(j,{usbmode:!0,files:_,usbconnected:c,onUpload:function(E){return u("PRG_copyfromusb",{uid:E})},onDelete:function(E){return u("PRG_deletefile",{uid:E})},onOpen:function(E){return u("PRG_openfile",{uid:E})},onRename:function(E,I){return u("PRG_rename",{uid:E,new_name:I})},onDuplicate:function(E){return u("PRG_clone",{uid:E})}})})||null,(0,e.jsx)(t.iG,{children:(0,e.jsx)(t.q,{icon:"plus",onClick:function(){return u("PRG_newtextfile")},children:"New Text File"})})]}),m&&(0,e.jsxs)(t.Cu,{wrap:"wrap",position:"fixed",bottom:"5px",children:[(0,e.jsx)(t.Cu.Item,{children:(0,e.jsx)(t.iG,{children:(0,e.jsx)(t.q,{bottom:"0",left:"0",icon:"ban",onClick:function(){return u("PRG_clearerror")}})})}),(0,e.jsx)(t.iG,{children:(0,e.jsx)(t.Cu.Item,{grow:!0,children:m})})]})]})})},j=function(C){var x=C.files,u=x===void 0?[]:x,d=C.usbconnected,h=C.usbmode,c=C.onUpload,l=C.onDelete,f=C.onRename,m=C.onOpen;return(0,e.jsxs)(t.oJ,{children:[(0,e.jsxs)(t.oJ.Row,{header:!0,children:[(0,e.jsx)(t.oJ.Cell,{children:"File"}),(0,e.jsx)(t.oJ.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(t.oJ.Cell,{collapsing:!0,children:"Size"})]}),u.map(function(v){return(0,e.jsxs)(t.oJ.Row,{className:"candystripe",children:[(0,e.jsx)(t.oJ.Cell,{children:v.undeletable?v.name:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q.Input,{width:"80%",content:v.name,currentValue:v.name,tooltip:"Rename",onCommit:function(p,g){return f(v.uid,g)}}),(0,e.jsx)(t.q,{content:"Open",onClick:function(){return m(v.uid)}})]})}),(0,e.jsx)(t.oJ.Cell,{children:v.type}),(0,e.jsx)(t.oJ.Cell,{children:v.size}),(0,e.jsx)(t.oJ.Cell,{collapsing:!0,children:!v.undeletable&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){return l(v.uid)}}),!!d&&(h?(0,e.jsx)(t.q,{icon:"download",tooltip:"Download",onClick:function(){return c(v.uid)}}):(0,e.jsx)(t.q,{icon:"upload",tooltip:"Upload",onClick:function(){return c(v.uid)}}))]})})]},v.name)})]})}},86564:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosIdentificationComputer:function(){return r}});var e=n(33496),a=n(76512),t=n(8816),r=function(){return(0,e.jsx)(a.g9,{width:600,height:700,children:(0,e.jsx)(a.g9.Content,{scrollable:!0,children:(0,e.jsx)(t.IdentificationComputerContent,{ntos:!0})})})}},72892:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosMain:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i={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"},j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.device_theme,c=d.programs,l=c===void 0?[]:c,f=d.has_light,m=d.light_on,v=d.comp_light_color,p=d.removable_media,g=p===void 0?[]:p,_=d.login,E=_===void 0?[]:_;return(0,e.jsx)(r.g9,{title:h==="syndicate"&&"Syndix Main Menu"||"NtOS Main Menu",theme:h,width:400,height:500,children:(0,e.jsxs)(r.g9.Content,{scrollable:!0,children:[!!f&&(0,e.jsxs)(t.iG,{children:[(0,e.jsxs)(t.q,{width:"144px",icon:"lightbulb",selected:m,onClick:function(){return u("PC_toggle_light")},children:["Flashlight: ",m?"ON":"OFF"]}),(0,e.jsxs)(t.q,{ml:1,onClick:function(){return u("PC_light_color")},children:["Color:",(0,e.jsx)(t.wP,{ml:1,color:v})]})]}),(0,e.jsx)(t.iG,{title:"User Login",buttons:(0,e.jsx)(t.q,{icon:"eject",content:"Eject ID",disabled:!E.IDName,onClick:function(){return u("PC_Eject_Disk",{name:"ID"})}}),children:(0,e.jsxs)(t.oJ,{children:[(0,e.jsxs)(t.oJ.Row,{children:["ID Name: ",E.IDName]}),(0,e.jsxs)(t.oJ.Row,{children:["Assignment: ",E.IDJob]})]})}),!!g.length&&(0,e.jsx)(t.iG,{title:"Media Eject",children:(0,e.jsx)(t.oJ,{children:g.map(function(I){return(0,e.jsx)(t.oJ.Row,{children:(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsx)(t.q,{fluid:!0,color:"transparent",icon:"eject",content:I,onClick:function(){return u("PC_Eject_Disk",{name:I})}})})},I)})})}),(0,e.jsx)(t.iG,{title:"Programs",children:(0,e.jsx)(t.oJ,{children:l.map(function(I){return(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsx)(t.q,{fluid:!0,color:"transparent",icon:i[I.name]||"window-maximize-o",content:I.desc,onClick:function(){return u("PC_runprogram",{name:I.name})}})}),(0,e.jsx)(t.oJ.Cell,{collapsing:!0,width:"18px",children:!!I.running&&(0,e.jsx)(t.q,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return u("PC_killprogram",{name:I.name})}})}),(0,e.jsx)(t.oJ.Cell,{collapsing:!0,width:"18px",children:(0,e.jsx)(t.q,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:I.autorun,onClick:function(){return u("PC_setautorun",{name:I.name})},children:"AR"})})]},I.name)})})})]})})}},84156:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosNetChat:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.can_admin,h=u.adminmode,c=u.authed,l=u.username,f=u.active_channel,m=u.is_operator,v=u.all_channels,p=v===void 0?[]:v,g=u.clients,_=g===void 0?[]:g,E=u.messages,I=E===void 0?[]:E,M=f!==null,P=c||h;return(0,e.jsx)(r.g9,{width:900,height:675,children:(0,e.jsx)(r.g9.Content,{children:(0,e.jsx)(t.iG,{height:"600px",children:(0,e.jsx)(t.oJ,{height:"580px",children:(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsxs)(t.oJ.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,e.jsxs)(t.kv,{height:"560px",overflowY:"scroll",children:[(0,e.jsx)(t.q.Input,{fluid:!0,content:"New Channel...",onCommit:function(D,k){return x("PRG_newchannel",{new_channel_name:k})}}),p.map(function(D){return(0,e.jsx)(t.q,{fluid:!0,content:D.chan,selected:D.id===f,color:"transparent",onClick:function(){return x("PRG_joinchannel",{id:D.id})}},D.chan)})]}),(0,e.jsx)(t.q.Input,{fluid:!0,mt:1,content:l+"...",currentValue:l,onCommit:function(D,k){return x("PRG_changename",{new_name:k})}}),!!d&&(0,e.jsx)(t.q,{fluid:!0,bold:!0,content:"ADMIN MODE: "+(h?"ON":"OFF"),color:h?"bad":"good",onClick:function(){return x("PRG_toggleadmin")}})]}),(0,e.jsxs)(t.oJ.Cell,{children:[(0,e.jsx)(t.kv,{height:"560px",overflowY:"scroll",children:M&&(P?I.map(function(D){return(0,e.jsx)(t.kv,{children:D.msg},D.msg)}):(0,e.jsxs)(t.kv,{textAlign:"center",children:[(0,e.jsx)(t.GW,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,e.jsx)(t.kv,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,e.jsx)(t.kv,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,e.jsx)(t.EF,{fluid:!0,selfClear:!0,mt:1,onEnter:function(D,k){return x("PRG_speak",{message:k})}})]}),(0,e.jsxs)(t.oJ.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,e.jsx)(t.kv,{height:"465px",overflowY:"scroll",children:_.map(function(D){return(0,e.jsx)(t.kv,{children:D.name},D.name)})}),M&&P&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q.Input,{fluid:!0,content:"Save log...",defaultValue:"new_log",onCommit:function(D,k){return x("PRG_savelog",{log_name:k})}}),(0,e.jsx)(t.q.Confirm,{fluid:!0,content:"Leave Channel",onClick:function(){return x("PRG_leavechannel")}})]}),!!m&&c&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q.Confirm,{fluid:!0,content:"Delete Channel",onClick:function(){return x("PRG_deletechannel")}}),(0,e.jsx)(t.q.Input,{fluid:!0,content:"Rename Channel...",onCommit:function(D,k){return x("PRG_renamechannel",{new_name:k})}}),(0,e.jsx)(t.q.Input,{fluid:!0,content:"Set Password...",onCommit:function(D,k){return x("PRG_setpassword",{new_password:k})}})]})]})]})})})})})}},43688:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosNetDos:function(){return i},NtosNetDosContent:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(){return(0,e.jsx)(r.g9,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.g9.Content,{children:(0,e.jsx)(j,{})})})},j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.relays,c=h===void 0?[]:h,l=d.focus,f=d.target,m=d.speed,v=d.overload,p=d.capacity,g=d.error;if(g)return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.yc,{children:g}),(0,e.jsx)(t.q,{fluid:!0,content:"Reset",textAlign:"center",onClick:function(){return u("PRG_reset")}})]});var _=function(I){for(var M="",P=v/p;M.lengthP?M+="0":M+="1";return M},E=45;return f?(0,e.jsxs)(t.iG,{fontFamily:"monospace",textAlign:"center",children:[(0,e.jsxs)(t.kv,{children:["CURRENT SPEED: ",m," GQ/s"]}),(0,e.jsx)(t.kv,{children:_(E)}),(0,e.jsx)(t.kv,{children:_(E)}),(0,e.jsx)(t.kv,{children:_(E)}),(0,e.jsx)(t.kv,{children:_(E)}),(0,e.jsx)(t.kv,{children:_(E)})]}):(0,e.jsxs)(t.iG,{children:[(0,e.jsx)(t.Ce,{children:(0,e.jsx)(t.Ce.Item,{label:"Target",children:c.map(function(I){return(0,e.jsx)(t.q,{content:I.id,selected:l===I.id,onClick:function(){return u("PRG_target_relay",{targid:I.id})}},I.id)})})}),(0,e.jsx)(t.q,{fluid:!0,bold:!0,content:"EXECUTE",color:"bad",textAlign:"center",disabled:!l,mt:1,onClick:function(){return u("PRG_execute")}})]})}},89128:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosNetDownloader:function(){return j}});var e=n(33496),a=n(10608),t=n(45280),r=n(33404),i=n(76512),j=function(x){var u=(0,t.yy)(),d=u.act,h=u.data,c=h.PC_device_theme,l=h.disk_size,f=h.disk_used,m=h.downloadable_programs,v=m===void 0?[]:m,p=h.error,g=h.hacked_programs,_=g===void 0?[]:g,E=h.hackedavailable;return(0,e.jsx)(i.g9,{theme:c,width:480,height:735,children:(0,e.jsxs)(i.g9.Content,{scrollable:!0,children:[!!p&&(0,e.jsxs)(r.yc,{children:[(0,e.jsx)(r.kv,{mb:1,children:p}),(0,e.jsx)(r.q,{content:"Reset",onClick:function(){return d("PRG_reseterror")}})]}),(0,e.jsx)(r.iG,{children:(0,e.jsx)(r.Ce,{children:(0,e.jsx)(r.Ce.Item,{label:"Disk usage",children:(0,e.jsx)(r.cH,{value:f,minValue:0,maxValue:l,children:f+" GQ / "+l+" GQ"})})})}),(0,e.jsx)(r.iG,{children:v.map(function(I){return(0,e.jsx)(C,{program:I},I.filename)})}),!!E&&(0,e.jsxs)(r.iG,{title:"UNKNOWN Software Repository",children:[(0,e.jsx)(r.yc,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),_.map(function(I){return(0,e.jsx)(C,{program:I},I.filename)})]})]})})},C=function(x){var u=x.program,d=(0,t.yy)(),h=d.act,c=d.data,l=c.disk_size,f=c.disk_used,m=c.downloadcompletion,v=c.downloading,p=c.downloadname,g=c.downloadsize,_=c.downloadspeed,E=c.downloads_queue,I=l-f;return(0,e.jsxs)(r.kv,{mb:3,children:[(0,e.jsxs)(r.Cu,{align:"baseline",children:[(0,e.jsx)(r.Cu.Item,{bold:!0,grow:1,children:u.filedesc}),(0,e.jsxs)(r.Cu.Item,{color:"label",nowrap:!0,children:[u.size," GQ"]}),(0,e.jsx)(r.Cu.Item,{ml:2,width:"94px",textAlign:"center",children:u.filename===p&&(0,e.jsxs)(r.cH,{color:"green",minValue:0,maxValue:g,value:m,children:[(0,a.kL)(m/g*100,1),"% (",_,"GQ/s)"]})||E.indexOf(u.filename)!==-1&&(0,e.jsx)(r.q,{icon:"ban",color:"bad",onClick:function(){return h("PRG_removequeued",{filename:u.filename})},children:"Queued..."})||(0,e.jsx)(r.q,{fluid:!0,icon:"download",content:"Download",disabled:u.size>I,onClick:function(){return h("PRG_downloadfile",{filename:u.filename})}})})]}),u.compatibility!=="Compatible"&&(0,e.jsxs)(r.kv,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.GW,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),u.size>I&&(0,e.jsxs)(r.kv,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.GW,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,e.jsx)(r.kv,{mt:1,italic:!0,color:"label",fontSize:"12px",children:u.fileinfo})]})}},9736:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosNetMonitor:function(){return i}});var e=n(33496),a=n(33404),t=n(45280),r=n(76512),i=function(j){var C=(0,t.yy)(),x=C.act,u=C.data,d=u.ntnetrelays,h=u.ntnetstatus,c=u.config_softwaredownload,l=u.config_peertopeer,f=u.config_communication,m=u.config_systemcontrol,v=u.idsalarm,p=u.idsstatus,g=u.ntnetmaxlogs,_=u.maxlogs,E=u.minlogs,I=u.banned_nids,M=u.ntnetlogs,P=M===void 0?[]:M;return(0,e.jsx)(r.g9,{children:(0,e.jsxs)(r.g9.Content,{scrollable:!0,children:[(0,e.jsx)(a.yc,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,e.jsx)(a.iG,{title:"Wireless Connectivity",buttons:(0,e.jsx)(a.q.Confirm,{icon:h?"power-off":"times",content:h?"ENABLED":"DISABLED",selected:h,onClick:function(){return x("toggleWireless")}}),children:d?(0,e.jsx)(a.Ce,{children:(0,e.jsx)(a.Ce.Item,{label:"Active NTNet Relays",children:d})}):"No Relays Connected"}),(0,e.jsx)(a.iG,{title:"Firewall Configuration",children:(0,e.jsxs)(a.Ce,{children:[(0,e.jsx)(a.Ce.Item,{label:"Software Downloads",buttons:(0,e.jsx)(a.q,{icon:c?"power-off":"times",content:c?"ENABLED":"DISABLED",selected:c,onClick:function(){return x("toggle_function",{id:"1"})}})}),(0,e.jsx)(a.Ce.Item,{label:"Peer to Peer Traffic",buttons:(0,e.jsx)(a.q,{icon:l?"power-off":"times",content:l?"ENABLED":"DISABLED",selected:l,onClick:function(){return x("toggle_function",{id:"2"})}})}),(0,e.jsx)(a.Ce.Item,{label:"Communication Systems",buttons:(0,e.jsx)(a.q,{icon:f?"power-off":"times",content:f?"ENABLED":"DISABLED",selected:f,onClick:function(){return x("toggle_function",{id:"3"})}})}),(0,e.jsx)(a.Ce.Item,{label:"Remote System Control",buttons:(0,e.jsx)(a.q,{icon:m?"power-off":"times",content:m?"ENABLED":"DISABLED",selected:m,onClick:function(){return x("toggle_function",{id:"4"})}})})]})}),(0,e.jsxs)(a.iG,{title:"Security Systems",children:[!!v&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.yc,{children:"NETWORK INCURSION DETECTED"}),(0,e.jsx)(a.kv,{italics:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})]}),(0,e.jsxs)(a.Ce,{children:[(0,e.jsx)(a.Ce.Item,{label:"Banned NIDs",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.q,{icon:"ban",onClick:function(){return x("ban_nid")},children:"Ban NID"}),(0,e.jsx)(a.q,{icon:"balance-scale",onClick:function(){return x("unban_nid")},children:"Unban NID"})]}),children:I.join(", ")||"None"}),(0,e.jsx)(a.Ce.Item,{label:"IDS Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.q,{icon:p?"power-off":"times",content:p?"ENABLED":"DISABLED",selected:p,onClick:function(){return x("toggleIDS")}}),(0,e.jsx)(a.q,{icon:"sync",content:"Reset",color:"bad",onClick:function(){return x("resetIDS")}})]})}),(0,e.jsx)(a.Ce.Item,{label:"Max Log Count",buttons:(0,e.jsx)(a.WC,{value:g,minValue:E,maxValue:_,width:"39px",onChange:function(D,k){return x("updatemaxlogs",{new_number:k})}})})]}),(0,e.jsx)(a.iG,{title:"System Log",level:2,buttons:(0,e.jsx)(a.q.Confirm,{icon:"trash",content:"Clear Logs",onClick:function(){return x("purgelogs")}}),children:P.map(function(D){return(0,e.jsx)(a.kv,{className:"candystripe",children:D.entry},D.entry)})})]})]})})}},6600:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosNetTransfer:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(h){var c=(0,a.yy)(),l=c.act,f=c.data,m=f.error,v=f.downloading,p=f.uploading,g=f.upload_filelist,_=(0,e.jsx)(d,{});return m?_=(0,e.jsx)(j,{}):v?_=(0,e.jsx)(C,{}):p?_=(0,e.jsx)(x,{}):g.length&&(_=(0,e.jsx)(u,{})),(0,e.jsx)(r.g9,{width:575,height:700,children:(0,e.jsx)(r.g9.Content,{scrollable:!0,children:_})})},j=function(h){var c=(0,a.yy)(),l=c.act,f=c.data,m=f.error;return(0,e.jsxs)(t.iG,{title:"An error has occured during operation.",buttons:(0,e.jsx)(t.q,{icon:"undo",onClick:function(){return l("PRG_reset")},children:"Reset"}),children:["Additional Information: ",m]})},C=function(h){var c=(0,a.yy)(),l=c.act,f=c.data,m=f.download_name,v=f.download_progress,p=f.download_size,g=f.download_netspeed;return(0,e.jsx)(t.iG,{title:"Download in progress",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Downloaded File",children:m}),(0,e.jsx)(t.Ce.Item,{label:"Progress",children:(0,e.jsxs)(t.cH,{value:v,maxValue:p,children:[v," / ",p," GQ"]})}),(0,e.jsxs)(t.Ce.Item,{label:"Transfer Speed",children:[g," GQ/s"]}),(0,e.jsx)(t.Ce.Item,{label:"Controls",children:(0,e.jsx)(t.q,{icon:"ban",onClick:function(){return l("PRG_reset")},children:"Cancel Download"})})]})})},x=function(h){var c=(0,a.yy)(),l=c.act,f=c.data,m=f.upload_clients,v=f.upload_filename,p=f.upload_haspassword;return(0,e.jsx)(t.iG,{title:"Server enabled",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Clients Connected",children:m}),(0,e.jsx)(t.Ce.Item,{label:"Provided file",children:v}),(0,e.jsx)(t.Ce.Item,{label:"Server Password",children:p?"Enabled":"Disabled"}),(0,e.jsxs)(t.Ce.Item,{label:"Commands",children:[(0,e.jsx)(t.q,{icon:"lock",onClick:function(){return l("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(t.q,{icon:"ban",onClick:function(){return l("PRG_reset")},children:"Cancel Upload"})]})]})})},u=function(h){var c=(0,a.yy)(),l=c.act,f=c.data,m=f.upload_filelist;return(0,e.jsxs)(t.iG,{title:"File transfer server ready.",buttons:(0,e.jsx)(t.q,{icon:"undo",onClick:function(){return l("PRG_reset")},children:"Cancel"}),children:[(0,e.jsx)(t.q,{fluid:!0,icon:"lock",onClick:function(){return l("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(t.iG,{title:"Pick file to serve.",level:2,children:m.map(function(v){return(0,e.jsxs)(t.q,{fluid:!0,icon:"upload",onClick:function(){return l("PRG_uploadfile",{uid:v.uid})},children:[v.filename," (",v.size,"GQ)"]},v.uid)})})]})},d=function(h){var c=(0,a.yy)(),l=c.act,f=c.data,m=f.servers;return(0,e.jsx)(t.iG,{title:"Available Files",buttons:(0,e.jsx)(t.q,{icon:"upload",onClick:function(){return l("PRG_uploadmenu")},children:"Send File"}),children:m.length&&(0,e.jsx)(t.Ce,{children:m.map(function(v){return(0,e.jsxs)(t.Ce.Item,{label:v.uid,children:[!!v.haspassword&&(0,e.jsx)(t.GW,{name:"lock",mr:1}),v.filename,"\xA0 (",v.size,"GQ)\xA0",(0,e.jsx)(t.q,{icon:"download",onClick:function(){return l("PRG_downloadfile",{uid:v.uid})},children:"Download"})]},v.uid)})})||(0,e.jsx)(t.kv,{children:"No upload servers found."})})}},14092:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosNewsBrowser:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(69912),j=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.article,m=l.download,v=l.message,p=(0,e.jsx)(x,{});return f?p=(0,e.jsx)(C,{}):m&&(p=(0,e.jsx)(u,{})),(0,e.jsx)(r.g9,{width:575,height:750,children:(0,e.jsxs)(r.g9.Content,{scrollable:!0,children:[!!v&&(0,e.jsxs)(t.yc,{children:[v," ",(0,e.jsx)(t.q,{icon:"times",onClick:function(){return c("PRG_clearmessage")}})]}),p]})})},C=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.article;if(!f)return(0,e.jsx)(t.iG,{children:"Error: Article not found."});var m=f.title,v=f.cover,p=f.content;return(0,e.jsxs)(t.iG,{title:"Viewing: "+m,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:"save",onClick:function(){return c("PRG_savearticle")},children:"Save"}),(0,e.jsx)(t.q,{icon:"times",onClick:function(){return c("PRG_reset")},children:"Close"})]}),children:[!!v&&(0,e.jsx)("img",{src:(0,i.e)(v)}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:p}})]})},x=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.showing_archived,m=l.all_articles;return(0,e.jsx)(t.iG,{title:"Articles List",buttons:(0,e.jsx)(t.q.Checkbox,{onClick:function(){return c("PRG_toggle_archived")},checked:f,children:"Show Archived"}),children:(0,e.jsx)(t.Ce,{children:m.length&&m.map(function(v){return(0,e.jsxs)(t.Ce.Item,{label:v.name,buttons:(0,e.jsx)(t.q,{icon:"download",onClick:function(){return c("PRG_openarticle",{uid:v.uid})}}),children:[v.size," GQ"]},v.uid)})||(0,e.jsx)(t.Ce.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},u=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.download,m=f.download_progress,v=f.download_maxprogress,p=f.download_rate;return(0,e.jsx)(t.iG,{title:"Downloading...",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Progress",children:(0,e.jsxs)(t.cH,{color:"good",minValue:0,value:m,maxValue:v,children:[m," / ",v," GQ"]})}),(0,e.jsxs)(t.Ce.Item,{label:"Download Speed",children:[p," GQ/s"]}),(0,e.jsx)(t.Ce.Item,{label:"Controls",children:(0,e.jsx)(t.q,{icon:"ban",fluid:!0,onClick:function(){return c("PRG_reset")},children:"Abort Download"})})]})})}},30884:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosOvermapNavigation:function(){return r}});var e=n(33496),a=n(76512),t=n(11764),r=function(){return(0,e.jsx)(a.g9,{width:380,height:530,children:(0,e.jsx)(a.g9.Content,{scrollable:!0,children:(0,e.jsx)(t.OvermapNavigationContent,{})})})}},74316:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosPowerMonitor:function(){return r}});var e=n(33496),a=n(76512),t=n(56620),r=function(){return(0,e.jsx)(a.g9,{width:550,height:700,children:(0,e.jsx)(a.g9.Content,{scrollable:!0,children:(0,e.jsx)(t.PowerMonitorContent,{})})})}},80276:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosRCON:function(){return r}});var e=n(33496),a=n(76512),t=n(47816),r=function(){return(0,e.jsx)(a.g9,{width:630,height:440,children:(0,e.jsx)(a.g9.Content,{scrollable:!0,children:(0,e.jsx)(t.RCONContent,{})})})}},79064:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosRevelation:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.armed;return(0,e.jsx)(r.g9,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.g9.Content,{children:(0,e.jsxs)(t.iG,{children:[(0,e.jsx)(t.q.Input,{fluid:!0,content:"Obfuscate Name...",onCommit:function(h,c){return x("PRG_obfuscate",{new_name:c})},mb:1}),(0,e.jsx)(t.Ce,{children:(0,e.jsx)(t.Ce.Item,{label:"Payload Status",buttons:(0,e.jsx)(t.q,{content:d?"ARMED":"DISARMED",color:d?"bad":"average",onClick:function(){return x("PRG_arm")}})})}),(0,e.jsx)(t.q,{fluid:!0,bold:!0,content:"ACTIVATE",textAlign:"center",color:"bad",disabled:!d})]})})})}},41216:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosShutoffMonitor:function(){return r}});var e=n(33496),a=n(76512),t=n(72036),r=function(){return(0,e.jsx)(a.g9,{width:627,height:700,children:(0,e.jsx)(a.g9.Content,{children:(0,e.jsx)(t.ShutoffMonitorContent,{})})})}},6156:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosStationAlertConsole:function(){return r}});var e=n(33496),a=n(76512),t=n(19348),r=function(){return(0,e.jsx)(a.g9,{width:315,height:500,children:(0,e.jsx)(a.g9.Content,{scrollable:!0,children:(0,e.jsx)(t.StationAlertConsoleContent,{})})})}},99584:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosSupermatterMonitor:function(){return r}});var e=n(33496),a=n(76512),t=n(53736),r=function(){return(0,e.jsx)(a.g9,{width:600,height:400,children:(0,e.jsx)(a.g9.Content,{scrollable:!0,children:(0,e.jsx)(t.SupermatterMonitorContent,{})})})}},29056:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosUAV:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.current_uav,h=u.signal_strength,c=u.in_use,l=u.paired_uavs;return(0,e.jsx)(r.g9,{width:600,height:500,children:(0,e.jsxs)(r.g9.Content,{children:[(0,e.jsx)(t.iG,{title:"Selected UAV",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"UAV",children:d&&d.status||"[Not Connected]"}),(0,e.jsx)(t.Ce.Item,{label:"Signal",children:d&&h||"[Not Connected]"}),(0,e.jsx)(t.Ce.Item,{label:"Power",children:d&&(0,e.jsx)(t.q,{icon:"power-off",selected:d.power,onClick:function(){return x("power_uav")},children:d.power?"Online":"Offline"})||"[Not Connected]"}),(0,e.jsx)(t.Ce.Item,{label:"Camera",children:d&&(0,e.jsx)(t.q,{icon:"power-off",selected:c,disabled:!d.power,onClick:function(){return x("view_uav")},children:d.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,e.jsx)(t.iG,{title:"Paired UAVs",children:l.length&&l.map(function(f){return(0,e.jsxs)(t.Cu,{spacing:1,children:[(0,e.jsx)(t.Cu.Item,{grow:1,children:(0,e.jsx)(t.q,{fluid:!0,icon:"quidditch",onClick:function(){return x("switch_uav",{switch_uav:f.uavref})},children:f.name})}),(0,e.jsx)(t.Cu.Item,{children:(0,e.jsx)(t.q,{color:"bad",icon:"times",onClick:function(){return x("del_uav",{del_uav:f.uavref})}})})]},f.uavref)})||(0,e.jsx)(t.kv,{color:"average",children:"No UAVs Paired."})})]})})}},93012:function(S,y,n){"use strict";n.r(y),n.d(y,{NtosWordProcessor:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.PC_device_theme,h=u.error,c=u.browsing,l=u.files,f=u.usbconnected,m=u.usbfiles,v=u.filename,p=u.filedata;return(0,e.jsx)(r.g9,{resizable:!0,theme:d,children:(0,e.jsx)(r.g9.Content,{scrollable:!0,children:h&&(0,e.jsxs)(t.kv,{color:"bad",children:[(0,e.jsx)("h2",{children:"An Error has occured:"}),"Additional Information: ",h,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,e.jsx)(t.q,{icon:"arrow-left",content:"Back to menu",onClick:function(){return x("PRG_backtomenu")}})]})||c&&(0,e.jsx)(t.iG,{title:"File Browser",buttons:(0,e.jsx)(t.q,{icon:"arrow-left",content:"Back to editor",onClick:function(){return x("PRG_closebrowser")}}),children:(0,e.jsx)(t.iG,{title:"Available documents (local)",level:2,children:(0,e.jsxs)(t.oJ,{children:[(0,e.jsxs)(t.oJ.Row,{header:!0,children:[(0,e.jsx)(t.oJ.Cell,{children:"Name"}),(0,e.jsx)(t.oJ.Cell,{children:"Size (GQ)"}),(0,e.jsx)(t.oJ.Cell,{collapsing:!0})]}),l.map(function(g,_){return(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsx)(t.oJ.Cell,{children:g.name}),(0,e.jsx)(t.oJ.Cell,{children:g.size}),(0,e.jsx)(t.oJ.Cell,{collapsing:!0,children:(0,e.jsx)(t.q,{icon:"file-word",onClick:function(){return x("PRG_openfile",{PRG_openfile:g.name})},children:"Open"})})]},_)})]})})})||(0,e.jsxs)(t.iG,{title:"Document: "+v,children:[(0,e.jsxs)(t.kv,{children:[(0,e.jsx)(t.q,{onClick:function(){return x("PRG_newfile")},children:"New"}),(0,e.jsx)(t.q,{onClick:function(){return x("PRG_loadmenu")},children:"Load"}),(0,e.jsx)(t.q,{onClick:function(){return x("PRG_savefile")},children:"Save"}),(0,e.jsx)(t.q,{onClick:function(){return x("PRG_saveasfile")},children:"Save As"})]}),(0,e.jsxs)(t.kv,{children:[(0,e.jsx)(t.q,{onClick:function(){return x("PRG_editfile")},children:"Edit"}),(0,e.jsx)(t.q,{onClick:function(){return x("PRG_txtrpeview")},children:"Preview"}),(0,e.jsx)(t.q,{onClick:function(){return x("PRG_taghelp")},children:"Formatting Help"}),(0,e.jsx)(t.q,{disabled:!p,onClick:function(){return x("PRG_printfile")},children:"Print"})]}),(0,e.jsx)(t.iG,{mt:1,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:p}})})]})})})}},63436:function(S,y,n){"use strict";n.r(y),n.d(y,{NumberInputModal:function(){return x}});var e=n(33496),a=n(42480),t=n(45280),r=n(33404),i=n(76512),j=n(14820),C=n(26896),x=function(d){var h=(0,t.yy)(),c=h.act,l=h.data,f=l.init_value,m=l.large_buttons,v=l.message,p=v===void 0?"":v,g=l.timeout,_=l.title,E=(0,t.cv)("input",f),I=E[0],M=E[1],P=function(L){L!==I&&M(L)},D=function(L){L!==I&&M(L)},k=140+(p.length>30?Math.ceil(p.length/3):0)+(p.length&&m?5:0);return(0,e.jsxs)(i.qo,{title:_,width:270,height:k,children:[g&&(0,e.jsx)(C.Loader,{value:g}),(0,e.jsx)(i.qo.Content,{onKeyDown:function(L){var F=window.event?L.which:L.keyCode;F===a.kt&&c("submit",{entry:I}),F===a.ER&&c("cancel")},children:(0,e.jsx)(r.iG,{fill:!0,children:(0,e.jsxs)(r.fT,{fill:!0,vertical:!0,children:[(0,e.jsx)(r.fT.Item,{grow:!0,children:(0,e.jsx)(r.kv,{color:"label",children:p})}),(0,e.jsx)(r.fT.Item,{children:(0,e.jsx)(u,{input:I,onClick:D,onChange:P})}),(0,e.jsx)(r.fT.Item,{children:(0,e.jsx)(j.InputButtons,{input:I})})]})})})]})},u=function(d){var h=(0,t.yy)(),c=h.act,l=h.data,f=l.min_value,m=l.max_value,v=l.init_value,p=d.input,g=d.onClick,_=d.onChange;return(0,e.jsxs)(r.fT,{fill:!0,children:[(0,e.jsx)(r.fT.Item,{children:(0,e.jsx)(r.q,{disabled:p===f,icon:"angle-double-left",onClick:function(){return g(f)},tooltip:f?"Min ("+f+")":"Min"})}),(0,e.jsx)(r.fT.Item,{grow:!0,children:(0,e.jsx)(r.CW,{allowFloats:!0,autoFocus:!0,autoSelect:!0,fluid:!0,minValue:f,maxValue:m,onChange:function(E,I){return _(I)},onEnter:function(E,I){return c("submit",{entry:I})},value:p})}),(0,e.jsx)(r.fT.Item,{children:(0,e.jsx)(r.q,{disabled:p===m,icon:"angle-double-right",onClick:function(){return g(m)},tooltip:m?"Max ("+m+")":"Max"})}),(0,e.jsx)(r.fT.Item,{children:(0,e.jsx)(r.q,{disabled:p===v,icon:"redo",onClick:function(){return g(v)},tooltip:v?"Reset ("+v+")":"Reset"})})]})}},24924:function(S,y,n){"use strict";n.r(y),n.d(y,{OmniFilter:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(C){return C.input?"Input":C.output?"Output":C.f_type?C.f_type:"Disabled"},j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.power,c=d.config,l=d.ports,f=d.set_flow_rate,m=d.last_flow_rate;return(0,e.jsx)(r.qo,{width:360,height:330,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(t.iG,{title:c?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:"power-off",content:h?"On":"Off",selected:h,disabled:c,onClick:function(){return u("power")}}),(0,e.jsx)(t.q,{icon:"wrench",selected:c,onClick:function(){return u("configure")}})]}),children:(0,e.jsx)(t.Ce,{children:l?l.map(function(v){return(0,e.jsx)(t.Ce.Item,{label:v.dir+" Port",children:c?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{content:"IN",selected:v.input,icon:"compress-arrows-alt",onClick:function(){return u("switch_mode",{mode:"in",dir:v.dir})}}),(0,e.jsx)(t.q,{content:"OUT",selected:v.output,icon:"expand-arrows-alt",onClick:function(){return u("switch_mode",{mode:"out",dir:v.dir})}}),(0,e.jsx)(t.q,{icon:"wrench",disabled:v.input||v.output,content:v.f_type||"None",onClick:function(){return u("switch_filter",{mode:v.f_type,dir:v.dir})}})]}):i(v)},v.dir)}):(0,e.jsx)(t.kv,{color:"bad",children:"No Ports Detected"})})}),(0,e.jsx)(t.iG,{title:"Flow Rate",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsxs)(t.Ce.Item,{label:"Current Flow Rate",children:[m," L/s"]}),(0,e.jsx)(t.Ce.Item,{label:"Flow Rate Limit",children:c?(0,e.jsx)(t.q,{icon:"wrench",content:f/10+" L/s",onClick:function(){return u("set_flow_rate")}}):f/10+" L/s"})]})})]})})}},48416:function(S,y,n){"use strict";n.r(y),n.d(y,{OmniMixer:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(x){return x.input?"Input":x.output?"Output":x.f_type?x.f_type:"Disabled"},j=function(x){var u=(0,a.yy)(),d=u.act,h=u.data,c=h.power,l=h.config,f=h.ports,m=h.set_flow_rate,v=h.last_flow_rate;return(0,e.jsx)(r.qo,{width:390,height:330,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(t.iG,{title:l?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:"power-off",content:c?"On":"Off",selected:c,disabled:l,onClick:function(){return d("power")}}),(0,e.jsx)(t.q,{icon:"wrench",selected:l,onClick:function(){return d("configure")}})]}),children:(0,e.jsxs)(t.oJ,{children:[(0,e.jsxs)(t.oJ.Row,{header:!0,children:[(0,e.jsx)(t.oJ.Cell,{textAlign:"center",children:"Port"}),l?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.oJ.Cell,{textAlign:"center",children:"Input"}),(0,e.jsx)(t.oJ.Cell,{textAlign:"center",children:"Output"})]}):(0,e.jsx)(t.oJ.Cell,{textAlign:"center",children:"Mode"}),(0,e.jsx)(t.oJ.Cell,{textAlign:"center",children:"Concentration"}),l?(0,e.jsx)(t.oJ.Cell,{textAlign:"center",children:"Lock"}):null]}),f?f.map(function(p){return(0,e.jsx)(C,{port:p,config:l},p.dir)}):(0,e.jsx)(t.kv,{color:"bad",children:"No Ports Detected"})]})}),(0,e.jsx)(t.iG,{title:"Flow Rate",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsxs)(t.Ce.Item,{label:"Current Flow Rate",children:[v," L/s"]}),(0,e.jsx)(t.Ce.Item,{label:"Flow Rate Limit",children:l?(0,e.jsx)(t.q,{icon:"wrench",content:m/10+" L/s",onClick:function(){return d("set_flow_rate")}}):m/10+" L/s"})]})})]})})},C=function(x){var u=(0,a.yy)().act,d=x.port,h=x.config;return(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsx)(t.oJ.Cell,{textAlign:"center",children:d.dir+" Port"}),(0,e.jsx)(t.oJ.Cell,{textAlign:"center",children:h?(0,e.jsx)(t.q,{content:"IN",selected:d.input,disabled:d.output,icon:"compress-arrows-alt",onClick:function(){return u("switch_mode",{mode:d.input?"none":"in",dir:d.dir})}}):i(d)}),(0,e.jsx)(t.oJ.Cell,{textAlign:"center",children:h?(0,e.jsx)(t.q,{content:"OUT",selected:d.output,icon:"expand-arrows-alt",onClick:function(){return u("switch_mode",{mode:"out",dir:d.dir})}}):d.concentration*100+"%"}),h?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.oJ.Cell,{textAlign:"center",width:"20%",children:(0,e.jsx)(t.q,{width:"100%",icon:"wrench",disabled:!d.input,content:d.input?d.concentration*100+" %":"-",onClick:function(){return u("switch_con",{dir:d.dir})}})}),(0,e.jsx)(t.oJ.Cell,{textAlign:"center",children:(0,e.jsx)(t.q,{icon:d.con_lock?"lock":"lock-open",disabled:!d.input,selected:d.con_lock,content:d.f_type||"None",onClick:function(){return u("switch_conlock",{dir:d.dir})}})})]}):null]})}},40312:function(S,y,n){"use strict";n.r(y),n.d(y,{OperatingComputer:function(){return d}});var e=n(33496),a=n(10608),t=n(45280),r=n(76512),i=n(33404),j=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],C=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],x={average:[.25,.5],bad:[.5,1/0]},u=["bad","average","average","good","average","average","bad"],d=function(f){var m=(0,t.yy)(),v=m.act,p=m.data,g=p.hasOccupant,_=p.choice,E;return _?E=(0,e.jsx)(l,{}):E=g?(0,e.jsx)(h,{}):(0,e.jsx)(c,{}),(0,e.jsx)(r.qo,{width:650,height:455,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsxs)(i.kZ,{children:[(0,e.jsx)(i.kZ.Tab,{selected:!_,icon:"user",onClick:function(){return v("choiceOff")},children:"Patient"}),(0,e.jsx)(i.kZ.Tab,{selected:!!_,icon:"cog",onClick:function(){return v("choiceOn")},children:"Options"})]}),(0,e.jsx)(i.iG,{flexGrow:"1",children:E})]})})},h=function(f){var m=(0,t.yy)().data,v=m.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.iG,{title:"Patient",level:"2",children:(0,e.jsxs)(i.Ce,{children:[(0,e.jsx)(i.Ce.Item,{label:"Name",children:v.name}),(0,e.jsx)(i.Ce.Item,{label:"Status",color:j[v.stat][0],children:j[v.stat][1]}),(0,e.jsx)(i.Ce.Item,{label:"Health",children:(0,e.jsx)(i.cH,{min:"0",max:v.maxHealth,value:v.health/v.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),C.map(function(p,g){return(0,e.jsx)(i.Ce.Item,{label:p[0]+" Damage",children:(0,e.jsx)(i.cH,{min:"0",max:"100",value:v[p[1]]/100,ranges:x,children:(0,a.kL)(v[p[1]])},g)},g)}),(0,e.jsx)(i.Ce.Item,{label:"Temperature",children:(0,e.jsxs)(i.cH,{min:"0",max:v.maxTemp,value:v.bodyTemperature/v.maxTemp,color:u[v.temperatureSuitability+3],children:[(0,a.kL)(v.btCelsius),"\xB0C, ",(0,a.kL)(v.btFaren),"\xB0F"]})}),!!v.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.Ce.Item,{label:"Blood Level",children:(0,e.jsxs)(i.cH,{min:"0",max:v.bloodMax,value:v.bloodLevel/v.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[v.bloodPercent,"%, ",v.bloodLevel,"cl"]})}),(0,e.jsxs)(i.Ce.Item,{label:"Pulse",children:[v.pulse," BPM"]})]})]})}),(0,e.jsx)(i.iG,{title:"Current Procedure",level:"2",children:v.surgery&&v.surgery.length?(0,e.jsx)(i.Ce,{children:v.surgery.map(function(p){return(0,e.jsx)(i.Ce.Item,{label:p.name,children:(0,e.jsxs)(i.Ce,{children:[(0,e.jsx)(i.Ce.Item,{label:"Current State",children:p.currentStage}),(0,e.jsx)(i.Ce.Item,{label:"Possible Next Steps",children:p.nextSteps.map(function(g){return(0,e.jsx)("div",{children:g},g)})})]})},p.name)})}):(0,e.jsx)(i.kv,{color:"label",children:"No procedure ongoing."})})]})},c=function(){return(0,e.jsx)(i.Cu,{textAlign:"center",height:"100%",children:(0,e.jsxs)(i.Cu.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(i.GW,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No patient detected."]})})},l=function(f){var m=(0,t.yy)(),v=m.act,p=m.data,g=p.verbose,_=p.health,E=p.healthAlarm,I=p.oxy,M=p.oxyAlarm,P=p.crit;return(0,e.jsxs)(i.Ce,{children:[(0,e.jsx)(i.Ce.Item,{label:"Loudspeaker",children:(0,e.jsx)(i.q,{selected:g,icon:g?"toggle-on":"toggle-off",content:g?"On":"Off",onClick:function(){return v(g?"verboseOff":"verboseOn")}})}),(0,e.jsx)(i.Ce.Item,{label:"Health Announcer",children:(0,e.jsx)(i.q,{selected:_,icon:_?"toggle-on":"toggle-off",content:_?"On":"Off",onClick:function(){return v(_?"healthOff":"healthOn")}})}),(0,e.jsx)(i.Ce.Item,{label:"Health Announcer Threshold",children:(0,e.jsx)(i.S6,{bipolar:!0,minValue:"-100",maxValue:"100",value:E,stepPixelSize:"5",ml:"0",format:function(D){return D+"%"},onChange:function(D,k){return v("health_adj",{new:k})}})}),(0,e.jsx)(i.Ce.Item,{label:"Oxygen Alarm",children:(0,e.jsx)(i.q,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"On":"Off",onClick:function(){return v(I?"oxyOff":"oxyOn")}})}),(0,e.jsx)(i.Ce.Item,{label:"Oxygen Alarm Threshold",children:(0,e.jsx)(i.S6,{bipolar:!0,minValue:"-100",maxValue:"100",value:M,stepPixelSize:"5",ml:"0",onChange:function(D,k){return v("oxy_adj",{new:k})}})}),(0,e.jsx)(i.Ce.Item,{label:"Critical Alert",children:(0,e.jsx)(i.q,{selected:P,icon:P?"toggle-on":"toggle-off",content:P?"On":"Off",onClick:function(){return v(P?"critOff":"critOn")}})})]})}},54848:function(S,y,n){"use strict";n.r(y),n.d(y,{OvermapDisperser:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(63024),j=function(x){return(0,e.jsx)(r.qo,{width:400,height:550,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(C,{})})})},C=function(x){var u=(0,a.yy)(),d=u.act,h=u.data,c=h.faillink,l=h.calibration,f=h.overmapdir,m=h.cal_accuracy,v=h.strength,p=h.range,g=h.next_shot,_=h.nopower,E=h.skill,I=h.chargeload;return c?(0,e.jsx)(t.iG,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,e.jsxs)(t.Cu,{wrap:"wrap",spacing:1,children:[(0,e.jsx)(t.Cu.Item,{basis:"22%",children:(0,e.jsx)(t.iG,{title:"Targeting",textAlign:"center",children:(0,e.jsx)(i.OvermapPanControls,{actToDo:"choose",selected:function(M){return M===f}})})}),(0,e.jsx)(t.Cu.Item,{basis:"74%",grow:1,children:(0,e.jsx)(t.iG,{title:"Charge",children:(0,e.jsxs)(t.Ce,{children:[_&&(0,e.jsx)(t.Ce.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||null,(0,e.jsx)(t.Ce.Item,{label:"Charge Load Type",children:I}),(0,e.jsx)(t.Ce.Item,{label:"Cooldown",children:g===0&&(0,e.jsx)(t.kv,{color:"good",children:"Ready"})||g>1&&(0,e.jsxs)(t.kv,{color:"average",children:[(0,e.jsx)(t.Gg,{value:g})," Seconds",(0,e.jsx)(t.kv,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||null})]})})}),(0,e.jsx)(t.Cu.Item,{basis:"50%",mt:1,children:(0,e.jsxs)(t.iG,{title:"Calibration",children:[(0,e.jsx)(t.Gg,{value:m}),"%",(0,e.jsx)(t.q,{ml:1,icon:"exchange-alt",onClick:function(){return d("skill_calibration")},children:"Pre-Calibration"}),(0,e.jsx)(t.kv,{mt:1,children:l.map(function(M,P){return(0,e.jsxs)(t.kv,{children:["Cal #",P,":",(0,e.jsx)(t.q,{ml:1,icon:"random",onClick:function(){return d("calibration",{calibration:P})},children:M.toString()})]},P)})})]})}),(0,e.jsx)(t.Cu.Item,{basis:"45%",grow:1,mt:1,children:(0,e.jsx)(t.iG,{title:"Setup",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Strength",children:(0,e.jsx)(t.q,{fluid:!0,icon:"fist-raised",onClick:function(){return d("strength")},children:v})}),(0,e.jsx)(t.Ce.Item,{label:"Radius",children:(0,e.jsx)(t.q,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){return d("range")},children:p})})]})})}),(0,e.jsx)(t.Cu.Item,{grow:1,mt:1,children:(0,e.jsx)(t.q,{fluid:!0,color:"red",icon:"bomb",onClick:function(){return d("fire")},children:"Fire ORB"})})]})}},77740:function(S,y,n){"use strict";n.r(y),n.d(y,{OvermapEngines:function(){return i},OvermapEnginesContent:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(C){return(0,e.jsx)(r.qo,{width:390,height:530,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(j,{})})})},j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.global_state,c=d.global_limit,l=d.engines_info,f=d.total_thrust;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.iG,{title:"Status",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Engines",children:(0,e.jsx)(t.q,{icon:"power-off",selected:h,onClick:function(){return u("global_toggle")},children:h?"Shut All Engines Down":"Start All Engines"})}),(0,e.jsxs)(t.Ce.Item,{label:"Volume Limit",children:[(0,e.jsx)(t.q,{onClick:function(){return u("global_limit",{global_limit:-.1})},icon:"minus"}),(0,e.jsxs)(t.q,{onClick:function(){return u("set_global_limit")},children:[c,"%"]}),(0,e.jsx)(t.q,{onClick:function(){return u("global_limit",{global_limit:.1})},icon:"plus"})]}),(0,e.jsx)(t.Ce.Item,{label:"Total Thrust",children:(0,e.jsx)(t.Gg,{value:f})})]})}),(0,e.jsx)(t.iG,{title:"Engines",height:"340px",style:{"overflow-y":"auto"},children:l.map(function(m,v){return(0,e.jsxs)(t.Cu,{spacing:1,mt:v!==0&&-1,children:[(0,e.jsx)(t.Cu.Item,{basis:"80%",children:(0,e.jsx)(t.Uv,{title:(0,e.jsxs)(t.kv,{inline:!0,children:["Engine #",v+1," | Thrust:"," ",(0,e.jsx)(t.Gg,{value:m.eng_thrust})," | Limit:"," ",(0,e.jsx)(t.Gg,{value:m.eng_thrust_limiter,format:function(p){return p+"%"}})]}),children:(0,e.jsx)(t.iG,{width:"127%",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Type",children:m.eng_type}),(0,e.jsxs)(t.Ce.Item,{label:"Status",children:[(0,e.jsx)(t.kv,{color:m.eng_on?m.eng_on===1?"good":"average":"bad",children:m.eng_on?m.eng_on===1?"Online":"Booting":"Offline"}),m.eng_status.map(function(p){return Array.isArray(p)?(0,e.jsx)(t.kv,{color:p[1],children:p[0]}):(0,e.jsx)(t.kv,{children:p})})]}),(0,e.jsx)(t.Ce.Item,{label:"Current Thrust",children:m.eng_thrust}),(0,e.jsxs)(t.Ce.Item,{label:"Volume Limit",children:[(0,e.jsx)(t.q,{onClick:function(){return u("limit",{limit:-.1,engine:m.eng_reference})},icon:"minus"}),(0,e.jsxs)(t.q,{onClick:function(){return u("set_limit",{engine:m.eng_reference})},children:[m.eng_thrust_limiter,"%"]}),(0,e.jsx)(t.q,{onClick:function(){return u("limit",{limit:.1,engine:m.eng_reference})},icon:"plus"})]})]})})})}),(0,e.jsx)(t.Cu.Item,{basis:"20%",children:(0,e.jsx)(t.q,{fluid:!0,iconSpin:m.eng_on===-1,color:m.eng_on===-1?"purple":null,selected:m.eng_on===1,icon:"power-off",onClick:function(){return u("toggle_engine",{engine:m.eng_reference})},children:m.eng_on?m.eng_on===1?"Shutoff":"Booting":"Startup"})})]},v)})})]})}},49324:function(S,y,n){"use strict";n.r(y),n.d(y,{OvermapFull:function(){return x}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(77740),j=n(65512),C=n(25816),x=function(u){var d=(0,a.cv)("overmapFullState",0),h=d[0],c=d[1];return(0,e.jsx)(r.qo,{width:800,height:800,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsxs)(t.kZ,{children:[(0,e.jsx)(t.kZ.Tab,{selected:h===0,onClick:function(){return c(0)},children:"Engines"}),(0,e.jsx)(t.kZ.Tab,{selected:h===1,onClick:function(){return c(1)},children:"Helm"}),(0,e.jsx)(t.kZ.Tab,{selected:h===2,onClick:function(){return c(2)},children:"Sensors"})]}),h===0&&(0,e.jsx)(i.OvermapEnginesContent,{}),h===1&&(0,e.jsx)(j.OvermapHelmContent,{}),h===2&&(0,e.jsx)(C.OvermapShipSensorsContent,{})]})})}},65512:function(S,y,n){"use strict";n.r(y),n.d(y,{OvermapFlightDataWrap:function(){return x},OvermapHelm:function(){return j},OvermapHelmContent:function(){return C}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(63024),j=function(c){return(0,e.jsx)(r.qo,{width:565,height:545,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(C,{})})})},C=function(c){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.Cu,{children:[(0,e.jsx)(t.Cu.Item,{basis:"40%",height:"180px",children:(0,e.jsx)(x,{})}),(0,e.jsx)(t.Cu.Item,{basis:"25%",height:"180px",children:(0,e.jsx)(u,{})}),(0,e.jsx)(t.Cu.Item,{basis:"35%",height:"180px",children:(0,e.jsx)(d,{})})]}),(0,e.jsx)(h,{})]})},x=function(c){var l=(0,a.yy)(),f=l.act,m=l.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)(i.OvermapFlightData,{})]})},u=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=m.canburn,p=m.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)(t.Cu,{align:"center",justify:"center",children:(0,e.jsx)(t.Cu.Item,{children:(0,e.jsx)(i.OvermapPanControls,{disabled:!v,actToDo:"move"})})}),(0,e.jsxs)(t.kv,{textAlign:"center",mt:1,children:[(0,e.jsx)(t.kv,{bold:!0,underline:!0,children:"Direct Control"}),(0,e.jsx)(t.q,{selected:p,onClick:function(){return f("manual")},icon:"compass",children:p?"Enabled":"Disabled"})]})]})},d=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=m.dest,p=m.d_x,g=m.d_y,_=m.speedlimit,E=m.autopilot,I=m.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)(t.kv,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,e.jsx)(t.kv,{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)(t.kv,{textAlign:"center",children:(0,e.jsx)(t.q.Confirm,{mt:1,color:"bad",content:"Unlock Autopilot",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return f("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)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Target",children:v&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{onClick:function(){return f("setcoord",{setx:!0})},children:p}),(0,e.jsx)(t.q,{onClick:function(){return f("setcoord",{sety:!0})},children:g})]})||(0,e.jsx)(t.q,{icon:"pen",onClick:function(){return f("setcoord",{setx:!0,sety:!0})},children:"None"})}),(0,e.jsx)(t.Ce.Item,{label:"Speed Limit",children:(0,e.jsxs)(t.q,{icon:"tachometer-alt",onClick:function(){return f("speedlimit")},children:[_," Gm/h"]})})]}),(0,e.jsx)(t.q,{mt:1,fluid:!0,selected:E,disabled:!v,icon:"robot",onClick:function(){return f("apilot")},children:E?"Engaged":"Disengaged"}),(0,e.jsx)(t.q,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return f("apilot_lock")},children:"Lock Autopilot"})]})},h=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=m.sector,p=m.s_x,g=m.s_y,_=m.sector_info,E=m.landed,I=m.locations;return(0,e.jsxs)(t.iG,{title:"Navigation Data",m:.3,mt:1,children:[(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Location",children:v}),(0,e.jsxs)(t.Ce.Item,{label:"Coordinates",children:[p," : ",g]}),(0,e.jsx)(t.Ce.Item,{label:"Scan Data",children:_}),(0,e.jsx)(t.Ce.Item,{label:"Status",children:E})]}),(0,e.jsxs)(t.Cu,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,e.jsx)(t.Cu.Item,{basis:"50%",children:(0,e.jsx)(t.q,{fluid:!0,icon:"save",onClick:function(){return f("add",{add:"current"})},children:"Save Current Position"})}),(0,e.jsx)(t.Cu.Item,{basis:"50%",children:(0,e.jsx)(t.q,{fluid:!0,icon:"sticky-note",onClick:function(){return f("add",{add:"new"})},children:"Add New Entry"})})]}),(0,e.jsx)(t.iG,{mt:1,scrollable:!0,height:"130px",children:(0,e.jsxs)(t.oJ,{children:[(0,e.jsxs)(t.oJ.Row,{header:!0,children:[(0,e.jsx)(t.oJ.Cell,{children:"Name"}),(0,e.jsx)(t.oJ.Cell,{children:"Coordinates"}),(0,e.jsx)(t.oJ.Cell,{children:"Actions"})]}),I.map(function(M){return(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsx)(t.oJ.Cell,{children:M.name}),(0,e.jsxs)(t.oJ.Cell,{children:[M.x," : ",M.y]}),(0,e.jsxs)(t.oJ.Cell,{collapsing:!0,children:[(0,e.jsx)(t.q,{icon:"rocket",onClick:function(){return f("setds",{x:M.x,y:M.y})},children:"Plot Course"}),(0,e.jsx)(t.q,{icon:"trash",onClick:function(){return f("remove",{remove:M.reference})},children:"Remove"})]})]},M.name)})]})})]})}},11764:function(S,y,n){"use strict";n.r(y),n.d(y,{OvermapNavigation:function(){return j},OvermapNavigationContent:function(){return C}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(63024),j=function(){return(0,e.jsx)(r.qo,{width:380,height:530,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(C,{})})})},C=function(x){var u=(0,a.yy)(),d=u.act,h=u.data,c=h.sector,l=h.s_x,f=h.s_y,m=h.sector_info,v=h.viewing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.iG,{title:"Current Location",buttons:(0,e.jsx)(t.q,{icon:"eye",selected:v,onClick:function(){return d("viewing")},children:"Map View"}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Current Location",children:c}),(0,e.jsxs)(t.Ce.Item,{label:"Coordinates",children:[l," : ",f]}),(0,e.jsx)(t.Ce.Item,{label:"Additional Information",children:m})]})}),(0,e.jsx)(t.iG,{title:"Flight Data",children:(0,e.jsx)(i.OvermapFlightData,{disableLimiterControls:!0})})]})}},39724:function(S,y,n){"use strict";n.r(y),n.d(y,{OvermapShieldGenerator:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(u){return(0,e.jsx)(r.qo,{width:500,height:760,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(j,{})})})},j=function(u){var d=(0,a.yy)(),h=d.act,c=d.data,l=c.modes,f=c.offline_for;return f?(0,e.jsxs)(t.iG,{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: ",f," seconds."]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(C,{}),(0,e.jsx)(x,{}),(0,e.jsx)(t.iG,{title:"Field Calibration",children:l.map(function(m){return(0,e.jsxs)(t.iG,{title:m.name,level:2,buttons:(0,e.jsx)(t.q,{icon:"power-off",selected:m.status,onClick:function(){return h("toggle_mode",{toggle_mode:m.flag})},children:m.status?"Enabled":"Disabled"}),children:[(0,e.jsx)(t.kv,{color:"label",children:m.desc}),(0,e.jsxs)(t.kv,{mt:.5,children:["Multiplier: ",m.multiplier]})]},m.name)})})]})},C=function(u){var d=(0,a.yy)(),h=d.act,c=d.data,l=c.running,f=c.overloaded,m=c.mitigation_max,v=c.mitigation_physical,p=c.mitigation_em,g=c.mitigation_heat,_=c.field_integrity,E=c.max_energy,I=c.current_energy,M=c.percentage_energy,P=c.total_segments,D=c.functional_segments,k=c.field_radius,L=c.target_radius,F=c.input_cap_kw,w=c.upkeep_power_usage,N=c.power_usage,$=c.spinup_counter;return(0,e.jsx)(t.iG,{title:"System Status",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Generator is",children:l===1&&(0,e.jsx)(t.kv,{color:"average",children:"Shutting Down"})||l===2&&(f&&(0,e.jsx)(t.kv,{color:"bad",children:"Overloaded"})||(0,e.jsx)(t.kv,{color:"good",children:"Running"}))||l===3&&(0,e.jsx)(t.kv,{color:"average",children:"Inactive"})||l===4&&(0,e.jsxs)(t.kv,{color:"blue",children:["Spinning Up\xA0",L!==k&&(0,e.jsx)(t.kv,{inline:!0,children:"(Adjusting Radius)"})||(0,e.jsxs)(t.kv,{inline:!0,children:[$*2,"s"]})]})||(0,e.jsx)(t.kv,{color:"bad",children:"Offline"})}),(0,e.jsx)(t.Ce.Item,{label:"Energy Storage",children:(0,e.jsxs)(t.cH,{value:I,maxValue:E,children:[I," / ",E," MJ (",M,"%)"]})}),(0,e.jsxs)(t.Ce.Item,{label:"Shield Integrity",children:[(0,e.jsx)(t.Gg,{value:_}),"%"]}),(0,e.jsxs)(t.Ce.Item,{label:"Mitigation",children:[p,"% EM / ",v,"% PH / ",g,"% HE / ",m,"% MAX"]}),(0,e.jsxs)(t.Ce.Item,{label:"Upkeep Energy Use",children:[(0,e.jsx)(t.Gg,{value:w})," kW"]}),(0,e.jsx)(t.Ce.Item,{label:"Total Energy Use",children:F&&(0,e.jsx)(t.kv,{children:(0,e.jsxs)(t.cH,{value:N,maxValue:F,children:[N," / ",F," kW"]})})||(0,e.jsxs)(t.kv,{children:[(0,e.jsx)(t.Gg,{value:N})," kW (No Limit)"]})}),(0,e.jsxs)(t.Ce.Item,{label:"Field Size",children:[(0,e.jsx)(t.Gg,{value:D}),"\xA0/\xA0",(0,e.jsx)(t.Gg,{value:P})," m\xB2 (radius"," ",(0,e.jsx)(t.Gg,{value:k}),", target"," ",(0,e.jsx)(t.Gg,{value:L}),")"]})]})})},x=function(u){var d=(0,a.yy)(),h=d.act,c=d.data,l=c.running,f=c.hacked,m=c.idle_multiplier,v=c.idle_valid_values;return(0,e.jsxs)(t.iG,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[l>=2&&(0,e.jsxs)(t.kv,{children:[(0,e.jsx)(t.q,{icon:"power-off",onClick:function(){return h("begin_shutdown")},selected:!0,children:"Turn off"}),l===3&&(0,e.jsx)(t.q,{icon:"power-off",onClick:function(){return h("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,e.jsx)(t.q,{icon:"power-off",onClick:function(){return h("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,e.jsx)(t.q,{icon:"power-off",onClick:function(){return h("start_generator")},children:"Turn on"}),l&&f&&(0,e.jsx)(t.q,{icon:"exclamation-triangle",onClick:function(){return h("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||null]}),children:[(0,e.jsx)(t.q,{icon:"expand-arrows-alt",onClick:function(){return h("set_range")},children:"Set Field Range"}),(0,e.jsx)(t.q,{icon:"bolt",onClick:function(){return h("set_input_cap")},children:"Set Input Cap"}),(0,e.jsx)(t.Ce,{children:(0,e.jsx)(t.Ce.Item,{label:"Set inactive power use intensity",children:v.map(function(p){return(0,e.jsx)(t.q,{selected:p===m,disabled:l===4,onClick:function(){return h("switch_idle",{switch_idle:p})},children:p},p)})})})]})}},25816:function(S,y,n){"use strict";n.r(y),n.d(y,{OvermapShipSensors:function(){return i},OvermapShipSensorsContent:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(C){return(0,e.jsx)(r.qo,{width:375,height:545,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(j,{})})})},j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.viewing,c=d.on,l=d.range,f=d.health,m=d.max_health,v=d.heat,p=d.critical_heat,g=d.status,_=d.contacts;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.iG,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:"eye",selected:h,onClick:function(){return u("viewing")},children:"Map View"}),(0,e.jsx)(t.q,{icon:"power-off",selected:c,onClick:function(){return u("toggle_sensor")},children:c?"Sensors Enabled":"Sensors Disabled"})]}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Status",children:g}),(0,e.jsx)(t.Ce.Item,{label:"Range",children:(0,e.jsx)(t.q,{icon:"signal",onClick:function(){return u("range")},children:l})}),(0,e.jsx)(t.Ce.Item,{label:"Integrity",children:(0,e.jsxs)(t.cH,{ranges:{good:[m*.75,1/0],average:[m*.25,m*.75],bad:[-1/0,m*.25]},value:f,maxValue:m,children:[f," / ",m]})}),(0,e.jsx)(t.Ce.Item,{label:"Temperature",children:(0,e.jsx)(t.cH,{ranges:{bad:[p*.75,1/0],average:[p*.5,p*.75],good:[-1/0,p*.5]},value:v,maxValue:p,children:v0||!v)&&(0,e.jsx)(t.q,{ml:1,icon:"times",onClick:function(){return d("cancel",{cancel:I+1})},children:"Cancel"})||null]},E)})||(0,e.jsx)(t.yc,{info:!0,children:"Queue Empty"})}),(0,e.jsx)(t.iG,{title:"Recipes",children:_.length&&_.map(function(E){return(0,e.jsx)(t.kv,{children:(0,e.jsx)(t.q,{icon:"wrench",onClick:function(){return d("queue",{queue:E.type})},children:(0,i.Yl)(E.name)})},E.name)})})]})})}},18348:function(S,y,n){"use strict";n.r(y),n.d(y,{PathogenicIsolator:function(){return C}});var e=n(33496),a=n(45280),t=n(8020),r=n(33404),i=n(76512),j=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.can_print,m=d.args;return(0,e.jsx)(r.iG,{level:2,m:"-1rem",title:m.name||"Virus",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{disabled:!f,icon:"print",content:"Print",onClick:function(){return c("print",{type:"virus_record",vir:m.record})}}),(0,e.jsx)(r.q,{icon:"times",color:"red",onClick:function(){return c("modal_close")}})]}),children:(0,e.jsx)(r.kv,{mx:"0.5rem",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsxs)(r.Ce.Item,{label:"Spread",children:[m.spread_text," Transmission"]}),(0,e.jsx)(r.Ce.Item,{label:"Possible cure",children:m.antigen}),(0,e.jsx)(r.Ce.Item,{label:"Rate of Progression",children:m.rate}),(0,e.jsxs)(r.Ce.Item,{label:"Antibiotic Resistance",children:[m.resistance,"%"]}),(0,e.jsx)(r.Ce.Item,{label:"Species Affected",children:m.species}),(0,e.jsx)(r.Ce.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ce,{children:m.symptoms.map(function(v){return(0,e.jsxs)(r.Ce.Item,{label:v.stage+". "+v.name,children:[(0,e.jsxs)(r.kv,{inline:!0,children:[(0,e.jsx)(r.kv,{inline:!0,color:"label",children:"Strength:"})," ",v.strength,"\xA0"]}),(0,e.jsxs)(r.kv,{inline:!0,children:[(0,e.jsx)(r.kv,{inline:!0,color:"label",children:"Aggressiveness:"})," ",v.aggressiveness]})]},v.stage)})})})]})})})},C=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.isolating,m=(0,a.cv)("tabIndex",0),v=m[0],p=m[1],g=null;return v===0?g=(0,e.jsx)(x,{}):v===1&&(g=(0,e.jsx)(u,{})),(0,t.modalRegisterBodyOverride)("virus",j),(0,e.jsxs)(i.qo,{height:500,width:520,children:[(0,e.jsx)(t.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,e.jsxs)(i.qo.Content,{scrollable:!0,children:[f&&(0,e.jsx)(r.yc,{warning:!0,children:"The Isolator is currently isolating..."})||null,(0,e.jsxs)(r.kZ,{children:[(0,e.jsx)(r.kZ.Tab,{selected:v===0,onClick:function(){return p(0)},children:"Home"}),(0,e.jsx)(r.kZ.Tab,{selected:v===1,onClick:function(){return p(1)},children:"Database"})]}),g]})]})},x=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.syringe_inserted,m=l.pathogen_pool,v=l.can_print;return(0,e.jsx)(r.iG,{title:"Pathogens",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{icon:"print",content:"Print",disabled:!v,onClick:function(){return c("print",{type:"patient_diagnosis"})}}),(0,e.jsx)(r.q,{icon:"eject",content:"Eject Syringe",disabled:!f,onClick:function(){return c("eject")}})]}),children:m.length&&m.map(function(p){return(0,e.jsxs)(r.iG,{children:[(0,e.jsx)(r.kv,{color:"label",children:(0,e.jsxs)(r.Cu,{align:"center",children:[(0,e.jsxs)(r.Cu.Item,{grow:1,children:[(0,e.jsxs)("u",{children:["Stamm #",p.unique_id]}),p.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,e.jsxs)(r.Cu.Item,{children:[(0,e.jsx)(r.q,{icon:"virus",content:"Isolate",onClick:function(){return c("isolate",{isolate:p.reference})}}),(0,e.jsx)(r.q,{icon:"search",content:"Database",disabled:!p.is_in_database,onClick:function(){return c("view_entry",{vir:p.record})}})]})]})}),(0,e.jsxs)(r.kv,{children:[(0,e.jsx)(r.kv,{color:"average",mb:1,children:p.name}),p.dna]})]},p.unique_id)})||(f?(0,e.jsx)(r.kv,{color:"average",children:"No samples detected."}):(0,e.jsx)(r.kv,{color:"average",children:"No syringe inserted."}))})},u=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.database,m=l.can_print;return(0,e.jsx)(r.iG,{title:"Database",buttons:(0,e.jsx)(r.q,{icon:"print",content:"Print",disabled:!m,onClick:function(){return c("print",{type:"virus_list"})}}),children:f.length&&f.map(function(v){return(0,e.jsx)(r.q,{fluid:!0,icon:"search",onClick:function(){return c("view_entry",{vir:v.record})},children:v.name},v.name)})||(0,e.jsx)(r.kv,{color:"average",children:"The viral database is empty."})})}},62480:function(S,y,n){"use strict";n.r(y),n.d(y,{Pda:function(){return x}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(59833),j=n(58836),C=function(c){var l;try{l=j("./"+c+".jsx")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,i.routingError)("notFound",c);throw m}var f=l[c];return f||(0,i.routingError)("missingExport",c)},x=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=m.app,p=m.owner,g=m.useRetro;if(!p)return(0,e.jsx)(r.qo,{children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(t.iG,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var _=C(v.template),E=(0,a.cv)("settingsMode",!1),I=E[0],M=E[1];return(0,e.jsx)(r.qo,{width:580,height:670,theme:g?"pda-retro":null,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(u,{settingsMode:I,setSettingsMode:M}),I&&(0,e.jsx)(d,{})||(0,e.jsx)(t.iG,{title:(0,e.jsxs)(t.kv,{children:[(0,e.jsx)(t.GW,{name:v.icon,mr:1}),v.name]}),p:1,children:(0,e.jsx)(_,{})}),(0,e.jsx)(t.kv,{mb:8}),(0,e.jsx)(h,{setSettingsMode:M})]})})},u=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=c.settingsMode,p=c.setSettingsMode,g=m.idInserted,_=m.idLink,E=m.cartridge_name,I=m.stationTime;return(0,e.jsx)(t.kv,{mb:1,children:(0,e.jsxs)(t.Cu,{align:"center",justify:"space-between",children:[!!g&&(0,e.jsx)(t.Cu.Item,{children:(0,e.jsx)(t.q,{icon:"eject",color:"transparent",onClick:function(){return f("Authenticate")},content:_})}),(0,e.jsx)(t.Cu.Item,{grow:1,textAlign:"center",bold:!0,children:I}),(0,e.jsxs)(t.Cu.Item,{children:[(0,e.jsx)(t.q,{selected:v,onClick:function(){return p(!v)},icon:"cog"}),(0,e.jsx)(t.q,{onClick:function(){return f("Retro")},icon:"adjust"})]})]})})},d=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=m.idInserted,p=m.idLink,g=m.cartridge_name,_=m.touch_silent;return(0,e.jsx)(t.iG,{title:"Settings",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"R.E.T.R.O Mode",children:(0,e.jsx)(t.q,{icon:"cog",content:"Retro Theme",onClick:function(){return f("Retro")}})}),(0,e.jsx)(t.Ce.Item,{label:"Touch Sounds",children:(0,e.jsx)(t.q,{icon:"cog",selected:!_,content:_?"Disabled":"Enabled",onClick:function(){return f("TouchSounds")}})}),!!g&&(0,e.jsx)(t.Ce.Item,{label:"Cartridge",children:(0,e.jsx)(t.q,{icon:"eject",onClick:function(){return f("Eject")},content:g})}),!!v&&(0,e.jsx)(t.Ce.Item,{label:"ID Card",children:(0,e.jsx)(t.q,{icon:"eject",onClick:function(){return f("Authenticate")},content:p})})]})})},h=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=c.setSettingsMode,p=m.app,g=m.useRetro;return(0,e.jsx)(t.kv,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:g?"#6f7961":"#1b1b1b",children:(0,e.jsxs)(t.Cu,{children:[(0,e.jsx)(t.Cu.Item,{basis:"33%",children:(0,e.jsx)(t.q,{fluid:!0,color:"transparent",iconColor:p.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){return f("Back")}})}),(0,e.jsx)(t.Cu.Item,{basis:"33%",children:(0,e.jsx)(t.q,{fluid:!0,color:"transparent",iconColor:p.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){v(!1),f("Home")}})})]})})}},66276:function(S,y,n){"use strict";n.r(y),n.d(y,{PersonalCrafting:function(){return u}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512);function i(h,c){(c==null||c>h.length)&&(c=h.length);for(var l=0,f=new Array(c);l=h.length?{done:!0}:{done:!1,value:h[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 u=function(h){for(var c,l=(0,a.yy)(),f=l.act,m=l.data,v=m.busy,p=m.display_craftable_only,g=m.display_compact,_=m.crafting_recipes||{},E=[],I=[],M=x(Object.keys(_)),P;!(P=M()).done;){var D=P.value,k=_[D];if("has_subcats"in k){for(var L=x(Object.keys(k)),F;!(F=L()).done;){var w=F.value;if(w!=="has_subcats"){E.push({name:w,category:D,subcategory:w});for(var N=k[w],$=x(N),H;!(H=$()).done;){var K=H.value;I.push(j({},K,{category:w}))}}}continue}E.push({name:D,category:D});for(var U=_[D],q=x(U),Y;!(Y=q()).done;){var Z=Y.value;I.push(j({},Z,{category:D}))}}var z=(0,a.cv)("tab",(c=E[0])==null?void 0:c.name),Q=z[0],oe=z[1],le=I.filter(function(ie){return ie.category===Q});return(0,e.jsx)(r.qo,{title:"Crafting Menu",width:700,height:800,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[!!v&&(0,e.jsxs)(t.Oe,{fontSize:"32px",children:[(0,e.jsx)(t.GW,{name:"cog",spin:1})," Crafting..."]}),(0,e.jsx)(t.iG,{title:"Personal Crafting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q.Checkbox,{content:"Compact",checked:g,onClick:function(){return f("toggle_compact")}}),(0,e.jsx)(t.q.Checkbox,{content:"Craftable Only",checked:p,onClick:function(){return f("toggle_recipes")}})]}),children:(0,e.jsxs)(t.Cu,{children:[(0,e.jsx)(t.Cu.Item,{children:(0,e.jsx)(t.kZ,{vertical:!0,children:E.map(function(ie){return(0,e.jsx)(t.kZ.Tab,{selected:ie.name===Q,onClick:function(){oe(ie.name),f("set_category",{category:ie.category,subcategory:ie.subcategory})},children:ie.name},ie.name)})})}),(0,e.jsx)(t.Cu.Item,{grow:1,basis:0,children:(0,e.jsx)(d,{craftables:le})})]})})]})})},d=function(h){var c=h.craftables,l=c===void 0?[]:c,f=(0,a.yy)(),m=f.act,v=f.data,p=v.craftability,g=p===void 0?{}:p,_=v.display_compact,E=v.display_craftable_only;return l.map(function(I){return E&&!g[I.ref]?null:_?(0,e.jsx)(t.Ce.Item,{label:I.name,className:"candystripe",buttons:(0,e.jsx)(t.q,{icon:"cog",content:"Craft",disabled:!g[I.ref],tooltip:I.tool_text&&"Tools needed: "+I.tool_text,tooltipPosition:"left",onClick:function(){return m("make",{recipe:I.ref})}}),children:I.req_text},I.name):(0,e.jsx)(t.iG,{title:I.name,level:2,buttons:(0,e.jsx)(t.q,{icon:"cog",content:"Craft",disabled:!g[I.ref],onClick:function(){return m("make",{recipe:I.ref})}}),children:(0,e.jsxs)(t.Ce,{children:[!!I.req_text&&(0,e.jsx)(t.Ce.Item,{label:"Required",children:I.req_text}),!!I.catalyst_text&&(0,e.jsx)(t.Ce.Item,{label:"Catalyst",children:I.catalyst_text}),!!I.tool_text&&(0,e.jsx)(t.Ce.Item,{label:"Tools",children:I.tool_text})]})},I.name)})}},95172:function(S,y,n){"use strict";n.r(y),n.d(y,{PetrificationInterface:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j,C){var x=(0,a.yy)(C),u=x.act,d=x.data,h=d.material,c=d.identifier,l=d.adjective,f=d.tint,m=d.t,v=d.able_to_unpetrify,p=d.discard_clothes,g=d.target,_=d.can_remote;return(0,e.jsx)(r.qo,{width:425,height:313,resizable:!0,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsxs)(t.iG,{title:"Interface",children:[(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Identifier",children:(0,e.jsx)(t.q,{fluid:!0,content:'Change Identifier: "'+c+'"',tooltip:"The identifier for the petrification. ie. 'A statue of (target)'",tooltipPosition:"top",onClick:function(){return u("set_option",{option:"identifier"})}})}),(0,e.jsx)(t.Ce.Item,{label:"Material",children:(0,e.jsx)(t.q,{fluid:!0,content:'Change Material: "'+h+'"',tooltip:'The material for the petrification. ie. "(name)\'s skin rapidly (adjective) as they turn to (material)!"',tooltipPosition:"top",onClick:function(){return u("set_option",{option:"material"})}})}),(0,e.jsx)(t.Ce.Item,{label:"Adjective",children:(0,e.jsx)(t.q,{fluid:!0,content:'Change Adjective: "'+l+'"',tooltip:'The adjective for the petrification. ie. "(name)\'s skin rapidly (adjective) as they turn to (material)!"',tooltipPosition:"top",onClick:function(){return u("set_option",{option:"adjective"})}})}),(0,e.jsx)(t.Ce.Item,{label:"Color",children:(0,e.jsx)(t.q,{fluid:!0,content:"Change Color",backgroundColor:f,textColor:m?"#000000":"#ffffff",tooltip:"The color of the statue. Pure white is direct greyscale.",tooltipPosition:"top",onClick:function(){return u("set_option",{option:"tint"})}})}),(0,e.jsx)(t.Ce.Item,{label:"Can Unpetrify",children:(0,e.jsx)(t.q,{fluid:!0,content:v?"Yes":"No",selected:v,tooltip:"Whether or not the statue can be unpetrified. If yes, they will get a verb letting them turn back- if not, even if they're a gargoyle, it will be taken away. OOC Escape is always an option though.",tooltipPosition:"top",onClick:function(){return u("set_option",{option:"able_to_unpetrify"})}})}),(0,e.jsx)(t.Ce.Item,{label:"Discard Clothes",children:(0,e.jsx)(t.q,{fluid:!0,content:p?"Enabled":"Disabled",selected:p,tooltip:"Whether the target's clothing falls off before the petrification happens. (Clothes do not change color when petrified, and cannot be removed while being a statue)",tooltipPosition:"top",onClick:function(){return u("set_option",{option:"discard_clothes"})}})}),(0,e.jsx)(t.Ce.Item,{label:"Target",children:(0,e.jsx)(t.q,{fluid:!0,content:g,onClick:function(){return u("set_option",{option:"target"})}})})]}),(0,e.jsx)("br",{}),(0,e.jsx)(t.q,{ml:1,disabled:!_,content:"Petrify",tooltip:"Turn the target to "+h+". This is meant for roleplay/scene purposes. Please don't abuse it.",tooltipPosition:"top",onClick:function(){return u("petrify")}}),(0,e.jsx)(t.q,{mr:1,disabled:!_,content:"Create Remote",tooltip:"Create a remote that will petrify the target with the given options when the button is pressed. It must be within 4 tiles of the target when pressed to work.. This is meant for roleplay/scene purposes. Please don't abuse it.",tooltipPosition:"top",onClick:function(){return u("remote")}})]})})})}},38644:function(S,y,n){"use strict";n.r(y),n.d(y,{Photocopier:function(){return i}});var e=n(33496),a=n(33404),t=n(45280),r=n(76512),i=function(u){var d=(0,t.yy)().data,h=d.isAI,c=d.has_toner,l=d.has_item;return(0,e.jsx)(r.qo,{title:"Photocopier",width:240,height:h?309:234,children:(0,e.jsxs)(r.qo.Content,{children:[c?(0,e.jsx)(j,{}):(0,e.jsx)(a.iG,{title:"Toner",children:(0,e.jsx)(a.kv,{color:"average",children:"No inserted toner cartridge."})}),l?(0,e.jsx)(C,{}):(0,e.jsx)(a.iG,{title:"Options",children:(0,e.jsx)(a.kv,{color:"average",children:"No inserted item."})}),!!h&&(0,e.jsx)(x,{})]})})},j=function(u){var d=(0,t.yy)(),h=d.act,c=d.data,l=c.max_toner,f=c.current_toner,m=l*.66,v=l*.33;return(0,e.jsx)(a.iG,{title:"Toner",children:(0,e.jsx)(a.cH,{ranges:{good:[m,l],average:[v,m],bad:[0,v]},value:f,minValue:0,maxValue:l})})},C=function(u){var d=(0,t.yy)(),h=d.act,c=d.data,l=c.num_copies,f=c.has_enough_toner;return(0,e.jsxs)(a.iG,{title:"Options",children:[(0,e.jsxs)(a.Cu,{children:[(0,e.jsx)(a.Cu.Item,{mt:.4,width:11,color:"label",children:"Make copies:"}),(0,e.jsx)(a.Cu.Item,{children:(0,e.jsx)(a.WC,{animate:!0,width:2.6,height:1.65,step:1,stepPixelSize:8,minValue:1,maxValue:10,value:l,onDrag:function(m,v){return h("set_copies",{num_copies:v})}})}),(0,e.jsx)(a.Cu.Item,{children:(0,e.jsx)(a.q,{ml:.2,icon:"copy",textAlign:"center",onClick:function(){return h("make_copy")},children:"Copy"})})]}),(0,e.jsx)(a.q,{mt:.5,textAlign:"center",icon:"reply",fluid:!0,onClick:function(){return h("remove")},children:"Remove item"})]})},x=function(u){var d=(0,t.yy)(),h=d.act,c=d.data,l=c.can_AI_print;return(0,e.jsx)(a.iG,{title:"AI Options",children:(0,e.jsx)(a.kv,{children:(0,e.jsx)(a.q,{fluid:!0,icon:"images",textAlign:"center",disabled:!l,onClick:function(){return h("ai_photo")},children:"Print photo from database"})})})}},36104:function(S,y,n){"use strict";n.r(y),n.d(y,{PipeDispenser:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(92936),j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.disposals,c=d.p_layer,l=d.pipe_layers,f=d.categories,m=f===void 0?[]:f,v=(0,a.cv)("categoryName"),p=v[0],g=v[1],_=m.find(function(E){return E.cat_name===p})||m[0];return(0,e.jsx)(r.qo,{width:425,height:515,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[!h&&(0,e.jsx)(t.iG,{title:"Layer",children:(0,e.jsx)(t.kv,{children:Object.keys(l).map(function(E){return(0,e.jsx)(t.q.Checkbox,{fluid:!0,checked:l[E]===c,content:E,onClick:function(){return u("p_layer",{p_layer:l[E]})}},E)})})}),(0,e.jsxs)(t.iG,{title:"Pipes",children:[(0,e.jsx)(t.kZ,{children:m.map(function(E,I){return(0,e.jsx)(t.kZ.Tab,{fluid:!0,icon:i.ICON_BY_CATEGORY_NAME[E.cat_name],selected:E.cat_name===_.cat_name,onClick:function(){return g(E.cat_name)},children:E.cat_name},E.cat_name)})}),_==null?void 0:_.recipes.map(function(E){return(0,e.jsx)(t.q,{fluid:!0,ellipsis:!0,content:E.pipe_name,title:E.pipe_name,onClick:function(){return u("dispense_pipe",{ref:E.ref,bent:E.bent,category:_.cat_name})}},E.pipe_name)})]})]})})}},69148:function(S,y,n){"use strict";n.r(y),n.d(y,{PlantAnalyzer:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(C){var x=(0,a.yy)().data,u=250;return x.seed&&(u+=18*x.seed.trait_info.length),x.reagents&&x.reagents.length&&(u+=55,u+=20*x.reagents.length),(0,e.jsx)(r.qo,{width:400,height:u,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(j,{})})})},j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.no_seed,c=d.seed,l=d.reagents;return h?(0,e.jsx)(t.iG,{title:"Analyzer Unused",children:"You should go scan a plant! There is no data currently loaded."}):(0,e.jsxs)(t.iG,{title:"Plant Information",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:"print",onClick:function(){return u("print")},children:"Print Report"}),(0,e.jsx)(t.q,{icon:"window-close",color:"red",onClick:function(){return u("close")}})]}),children:[(0,e.jsxs)(t.Ce,{children:[(0,e.jsxs)(t.Ce.Item,{label:"Plant Name",children:[c.name,"#",c.uid]}),(0,e.jsx)(t.Ce.Item,{label:"Endurance",children:c.endurance}),(0,e.jsx)(t.Ce.Item,{label:"Yield",children:c.yield}),(0,e.jsx)(t.Ce.Item,{label:"Maturation Time",children:c.maturation_time}),(0,e.jsx)(t.Ce.Item,{label:"Production Time",children:c.production_time}),(0,e.jsx)(t.Ce.Item,{label:"Potency",children:c.potency})]}),l.length&&(0,e.jsx)(t.iG,{level:2,title:"Plant Reagents",children:(0,e.jsx)(t.Ce,{children:l.map(function(f){return(0,e.jsxs)(t.Ce.Item,{label:f.name,children:[f.volume," unit(s)."]},f.name)})})})||null,(0,e.jsx)(t.iG,{level:2,title:"Other Data",children:c.trait_info.map(function(f){return(0,e.jsx)(t.kv,{color:"label",mb:.4,children:f},f)})})]})}},65620:function(S,y,n){"use strict";n.r(y),n.d(y,{PlayerNotes:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.device_theme,h=u.filter,c=u.pages,l=u.ckeys,f=function(m){return m()};return(0,e.jsx)(r.qo,{title:"Player Notes",theme:d,width:400,height:500,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsxs)(t.iG,{title:"Player notes",children:[(0,e.jsx)(t.q,{icon:"filter",onClick:function(){return x("filter_player_notes")},children:"Apply Filter"}),(0,e.jsx)(t.q,{icon:"sidebar",onClick:function(){return x("open_legacy_ui")},children:"Open Legacy UI"}),(0,e.jsx)(t.c1,{}),(0,e.jsx)(t.q.Input,{content:"CKEY to Open",onCommit:function(m,v){return x("show_player_info",{name:v})}}),(0,e.jsx)(t.c1,{vertical:!0}),(0,e.jsx)(t.q,{color:"green",content:h,onClick:function(){return x("clear_player_info_filter")}}),(0,e.jsx)(t.c1,{}),(0,e.jsx)(t.oJ,{children:l.map(function(m){return(0,e.jsx)(t.oJ.Row,{children:(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsx)(t.q,{fluid:!0,color:"transparent",icon:"user",content:m.desc,onClick:function(){return x("show_player_info",{name:m.name})},children:m.name})})},m.name)})}),(0,e.jsx)(t.c1,{}),f(function(){for(var m=function(g){v.push((0,e.jsx)(t.q,{onClick:function(){return x("set_page",{index:g})},children:g},g))},v=[],p=1;p=.5&&"good"||h>.15&&"average"||"bad";return(0,e.jsx)(r.qo,{width:450,height:340,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[!d.anchored&&(0,e.jsx)(t.yc,{children:"Generator not anchored."}),(0,e.jsx)(t.iG,{title:"Status",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Power switch",children:(0,e.jsx)(t.q,{icon:d.active?"power-off":"times",onClick:function(){return u("toggle_power")},selected:d.active,disabled:!d.ready_to_boot,children:d.active?"On":"Off"})}),(0,e.jsx)(t.Ce.Item,{label:"Fuel Type",buttons:d.fuel_stored>=1&&(0,e.jsx)(t.q,{ml:1,icon:"eject",disabled:d.active,onClick:function(){return u("eject")},children:"Eject"}),children:(0,e.jsxs)(t.kv,{color:c,children:[d.fuel_stored,"cm\xB3 ",d.sheet_name]})}),(0,e.jsx)(t.Ce.Item,{label:"Current fuel level",children:(0,e.jsxs)(t.cH,{value:d.fuel_stored/d.fuel_capacity,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[d.fuel_stored,"cm\xB3 / ",d.fuel_capacity,"cm\xB3"]})}),(0,e.jsxs)(t.Ce.Item,{label:"Fuel Usage",children:[d.fuel_usage," cm\xB3/s"]}),(0,e.jsx)(t.Ce.Item,{label:"Temperature",children:(0,e.jsxs)(t.cH,{value:d.temperature_current,maxValue:d.temperature_max+30,color:d.temperature_overheat?"bad":"good",children:[(0,i.kL)(d.temperature_current),"\xB0C"]})})]})}),(0,e.jsx)(t.iG,{title:"Output",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Current output",color:d.unsafe_output?"bad":null,children:d.power_output}),(0,e.jsxs)(t.Ce.Item,{label:"Adjust output",children:[(0,e.jsx)(t.q,{icon:"minus",onClick:function(){return u("lower_power")},children:d.power_generated}),(0,e.jsx)(t.q,{icon:"plus",onClick:function(){return u("higher_power")},children:d.power_generated})]}),(0,e.jsx)(t.Ce.Item,{label:"Power available",children:(0,e.jsx)(t.kv,{inline:!0,color:!d.connected&&"bad",children:d.connected?d.power_available:"Unconnected"})})]})})]})})}},72724:function(S,y,n){"use strict";n.r(y),n.d(y,{PortablePump:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(8532),j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.direction,c=d.target_pressure,l=d.default_pressure,f=d.min_pressure,m=d.max_pressure;return(0,e.jsx)(r.qo,{width:330,height:375,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(i.PortableBasicInfo,{}),(0,e.jsx)(t.iG,{title:"Pump",buttons:(0,e.jsx)(t.q,{icon:h?"sign-in-alt":"sign-out-alt",content:h?"In":"Out",selected:h,onClick:function(){return u("direction")}}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Output",children:(0,e.jsx)(t.uQ,{mt:"0.4em",animated:!0,minValue:f,maxValue:m,value:c,unit:"kPa",stepPixelSize:.3,onChange:function(v,p){return u("pressure",{pressure:p})}})}),(0,e.jsxs)(t.Ce.Item,{label:"Presets",children:[(0,e.jsx)(t.q,{icon:"minus",disabled:c===f,onClick:function(){return u("pressure",{pressure:"min"})}}),(0,e.jsx)(t.q,{icon:"sync",disabled:c===l,onClick:function(){return u("pressure",{pressure:"reset"})}}),(0,e.jsx)(t.q,{icon:"plus",disabled:c===m,onClick:function(){return u("pressure",{pressure:"max"})}})]})]})})]})})}},82020:function(S,y,n){"use strict";n.r(y),n.d(y,{PortableScrubber:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(8532),j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.rate,c=d.minrate,l=d.maxrate;return(0,e.jsx)(r.qo,{width:320,height:350,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(i.PortableBasicInfo,{}),(0,e.jsx)(t.iG,{title:"Power Regulator",children:(0,e.jsx)(t.Ce,{children:(0,e.jsx)(t.Ce.Item,{label:"Volume Rate",children:(0,e.jsx)(t.uQ,{mt:"0.4em",animated:!0,minValue:c,maxValue:l,value:h,unit:"L/s",onChange:function(f,m){return u("volume_adj",{vol:m})}})})})})]})})}},260:function(S,y,n){"use strict";n.r(y),n.d(y,{PortableTurret:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.locked,h=u.on,c=u.lethal,l=u.lethal_is_configurable,f=u.targetting_is_configurable,m=u.check_weapons,v=u.neutralize_noaccess,p=u.neutralize_norecord,g=u.neutralize_criminals,_=u.neutralize_all,E=u.neutralize_nonsynth,I=u.neutralize_unidentified,M=u.neutralize_down;return(0,e.jsx)(r.qo,{width:500,height:400,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsxs)(t.yc,{children:["Swipe an ID card to ",d?"unlock":"lock"," this interface."]}),(0,e.jsx)(t.iG,{children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Status",children:(0,e.jsx)(t.q,{icon:h?"power-off":"times",content:h?"On":"Off",selected:h,disabled:d,onClick:function(){return x("power")}})}),!!l&&(0,e.jsx)(t.Ce.Item,{label:"Lethals",children:(0,e.jsx)(t.q,{icon:c?"exclamation-triangle":"times",content:c?"On":"Off",color:c?"bad":"",disabled:d,onClick:function(){return x("lethal")}})})]})}),!!f&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.iG,{title:"Humanoid Targets",children:[(0,e.jsx)(t.q.Checkbox,{fluid:!0,checked:g,content:"Wanted Criminals",disabled:d,onClick:function(){return x("autharrest")}}),(0,e.jsx)(t.q.Checkbox,{fluid:!0,checked:p,content:"No Sec Record",disabled:d,onClick:function(){return x("authnorecord")}}),(0,e.jsx)(t.q.Checkbox,{fluid:!0,checked:m,content:"Unauthorized Weapons",disabled:d,onClick:function(){return x("authweapon")}}),(0,e.jsx)(t.q.Checkbox,{fluid:!0,checked:v,content:"Unauthorized Access",disabled:d,onClick:function(){return x("authaccess")}})]}),(0,e.jsxs)(t.iG,{title:"Other Targets",children:[(0,e.jsx)(t.q.Checkbox,{fluid:!0,checked:I,content:"Unidentified Lifesigns (Xenos, Animals, Etc)",disabled:d,onClick:function(){return x("authxeno")}}),(0,e.jsx)(t.q.Checkbox,{fluid:!0,checked:E,content:"All Non-Synthetics",disabled:d,onClick:function(){return x("authsynth")}}),(0,e.jsx)(t.q.Checkbox,{fluid:!0,checked:M,content:"Downed Targets",disabled:d,onClick:function(){return x("authdown")}}),(0,e.jsx)(t.q.Checkbox,{fluid:!0,checked:_,content:"All Entities",disabled:d,onClick:function(){return x("authall")}})]})]})]})})}},56620:function(S,y,n){"use strict";n.r(y),n.d(y,{AreaCharge:function(){return f},PowerMonitor:function(){return h},PowerMonitorContent:function(){return c},PowerMonitorFocus:function(){return l},powerRank:function(){return d}});var e=n(33496),a=n(47392),t=n(18140),r=n(10608),i=n(45280),j=n(33404),C=n(76512);function x(){return x=Object.assign||function(v){for(var p=1;p50?"battery-half":"battery-quarter")||p===1&&"bolt"||p===2&&"battery-full",color:p===0&&(g>50?"yellow":"red")||p===1&&"yellow"||p===2&&"green"}),(0,e.jsx)(j.kv,{inline:!0,width:"36px",textAlign:"right",children:(0,r.yI)(g)+"%"})]})},m=function(v){var p=v.status,g=!!(p&2),_=!!(p&1),E=(g?"On":"Off")+(" ["+(_?"auto":"manual")+"]");return(0,e.jsx)(j.wP,{color:g?"good":"bad",content:_?void 0:"M",title:E})}},96224:function(S,y,n){"use strict";n.r(y),n.d(y,{PrecisionEditor:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(u,d){var h=(0,a.yy)(d),c=h.act,l=h.data,f=l.screenstate;return(0,e.jsx)(r.qo,{resizable:!0,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsxs)(t.iG,{title:"Seed status",children:[f==="main"&&(0,e.jsx)(j,{}),f==="colors"&&(0,e.jsx)(C,{}),f==="reagents"&&(0,e.jsx)(x,{})]})})})},j=function(u,d){var h=(0,a.yy)(d),c=h.act,l=h.data,f=l.health,m=l.plantcolor,v=l.fruitcolor,p=l.chems,g=l.seedname;return(0,e.jsx)(t.Ce,{children:p?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ce.Item,{label:"Name",children:g}),f<100?(0,e.jsx)(t.Ce.Item,{label:"Genetic Integrity",children:100-f+"%"}):(0,e.jsx)(t.Ce.Item,{label:"Genetic Integrity",children:"UNVIABLE"}),(0,e.jsx)(t.Ce.Item,{label:"Plant Color",children:m}),(0,e.jsx)(t.Ce.Item,{label:"Fruit Color",children:v}),(0,e.jsx)(t.Ce.Divider,{size:2}),(0,e.jsx)(t.Ce.Item,{label:"Chems produced in fruit (click to splice out)",children:p.map(function(_){return(0,e.jsx)(t.q,{fluid:!0,content:_.displayname,onClick:function(){return c("prune",{gene_name:_.name})}},_.displayname)})}),(0,e.jsx)(t.q,{content:"Edit Colors",onClick:function(){return c("change_focus",{window:"colors"})}}),(0,e.jsx)(t.q,{content:"Add Reagents",onClick:function(){return c("change_focus",{window:"reagents"})}}),(0,e.jsx)(t.Ce.Divider,{size:2}),(0,e.jsx)(t.q,{content:"Eject Seed",onClick:function(){return c("eject")}})]}):(0,e.jsx)(t.Ce.Item,{label:"Waiting",children:"There is currently no seed loaded."})})},C=function(u,d){var h=(0,a.yy)(d),c=h.act,l=h.data,f=l.plantcolor,m=l.fruitcolor;return(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Plant Color",children:f}),(0,e.jsx)(t.wP,{color:f}),(0,e.jsx)(t.Ce.Item,{label:"Fruit Color",children:m}),(0,e.jsx)(t.wP,{color:m}),(0,e.jsx)(t.q,{content:"Change plant color",onClick:function(){return c("change_color",{option:0})}}),(0,e.jsx)(t.q,{content:"Change fruit color",onClick:function(){return c("change_color",{option:1})}}),(0,e.jsx)(t.Ce.Divider,{size:2}),(0,e.jsx)(t.q,{content:"Return",onClick:function(){return c("change_focus",{window:"main"})}})]})},x=function(u,d){var h=(0,a.yy)(d),c=h.act,l=h.data,f=l.beakerchems,m=l.health;return(0,e.jsxs)(t.Ce,{children:[m<100?(0,e.jsx)(t.Ce.Item,{label:"Genetic Integrity",children:100-m+"%"}):(0,e.jsx)(t.Ce.Item,{label:"Genetic Integrity",children:"UNVIABLE"}),(0,e.jsxs)(t.yc,{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)(t.kv,{bold:1,mt:1,children:"This process severely damages genetic integrity."})]}),(0,e.jsxs)(t.kv,{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)"]}),f?(0,e.jsxs)(e.Fragment,{children:[m<100?(0,e.jsx)(t.Ce.Item,{label:"Available reagents",children:f.map(function(v){return(0,e.jsx)(t.q,{fluid:!0,content:v.displayname,onClick:function(){return c("add_chem",{target_chem:v.name})}},v.displayname)})}):(0,e.jsx)(t.yc,{warning:1,children:"WARNING: Genetic integrity of seed is too poor to proceed."}),(0,e.jsx)(t.q,{content:"Eject Beaker",onClick:function(){return c("eject_beaker")}})]}):(0,e.jsx)(t.Ce.Item,{label:"Waiting",children:"There is currently no beaker loaded."}),(0,e.jsx)(t.q,{content:"Return",onClick:function(){return c("change_focus",{window:"main"})}})]})}},74104:function(S,y,n){"use strict";n.r(y),n.d(y,{PressureRegulator:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.on,h=u.pressure_set,c=u.max_pressure,l=u.input_pressure,f=u.output_pressure,m=u.regulate_mode,v=u.set_flow_rate,p=u.last_flow_rate;return(0,e.jsx)(r.qo,{width:470,height:370,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(t.iG,{title:"Status",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsxs)(t.Ce.Item,{label:"Input Pressure",children:[(0,e.jsx)(t.Gg,{value:l/100})," kPa"]}),(0,e.jsxs)(t.Ce.Item,{label:"Output Pressure",children:[(0,e.jsx)(t.Gg,{value:f/100})," kPa"]}),(0,e.jsxs)(t.Ce.Item,{label:"Flow Rate",children:[(0,e.jsx)(t.Gg,{value:p/10})," L/s"]})]})}),(0,e.jsx)(t.iG,{title:"Controls",buttons:(0,e.jsx)(t.q,{icon:"power-off",content:d?"Unlocked":"Closed",selected:d,onClick:function(){return x("toggle_valve")}}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Pressure Regulation",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:"power-off",content:"Off",selected:m===0,onClick:function(){return x("regulate_mode",{mode:"off"})}}),(0,e.jsx)(t.q,{icon:"compress-arrows-alt",content:"Input",selected:m===1,onClick:function(){return x("regulate_mode",{mode:"input"})}}),(0,e.jsx)(t.q,{icon:"expand-arrows-alt",content:"Output",selected:m===2,onClick:function(){return x("regulate_mode",{mode:"output"})}})]})}),(0,e.jsxs)(t.Ce.Item,{label:"Desired Output Pressure",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return x("set_press",{press:"min"})}}),(0,e.jsx)(t.q,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return x("set_press",{press:"max"})}}),(0,e.jsx)(t.q,{icon:"wrench",content:"SET",onClick:function(){return x("set_press",{press:"set"})}})]}),children:[h/100," kPa"]}),(0,e.jsxs)(t.Ce.Item,{label:"Flow Rate Limit",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return x("set_flow_rate",{press:"min"})}}),(0,e.jsx)(t.q,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return x("set_flow_rate",{press:"max"})}}),(0,e.jsx)(t.q,{icon:"wrench",content:"SET",onClick:function(){return x("set_flow_rate",{press:"set"})}})]}),children:[v/10," L/s"]})]})})]})})}},68896:function(S,y,n){"use strict";n.r(y),n.d(y,{PrisonerManagement:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.locked,h=u.chemImplants,c=u.trackImplants;return(0,e.jsx)(r.qo,{width:500,height:400,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:d&&(0,e.jsxs)(t.iG,{title:"Locked",textAlign:"center",children:["This interface is currently locked.",(0,e.jsx)(t.kv,{children:(0,e.jsx)(t.q,{icon:"unlock",onClick:function(){return x("lock")},children:"Unlock"})})]})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.iG,{title:"Interface Lock",buttons:(0,e.jsx)(t.q,{icon:"lock",onClick:function(){return x("lock")},children:"Lock Interface"})}),(0,e.jsx)(t.iG,{title:"Chemical Implants",children:h.length&&(0,e.jsxs)(t.oJ,{children:[(0,e.jsxs)(t.oJ.Row,{header:!0,children:[(0,e.jsx)(t.oJ.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(t.oJ.Cell,{textAlign:"center",children:"Units Remaining"}),(0,e.jsx)(t.oJ.Cell,{textAlign:"center",children:"Inject"})]}),h.map(function(l){return(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsx)(t.oJ.Cell,{textAlign:"center",children:l.host}),(0,e.jsxs)(t.oJ.Cell,{textAlign:"center",children:[l.units,"u remaining"]}),(0,e.jsxs)(t.oJ.Cell,{textAlign:"center",children:[(0,e.jsx)(t.q,{onClick:function(){return x("inject",{imp:l.ref,val:1})},children:"(1)"}),(0,e.jsx)(t.q,{onClick:function(){return x("inject",{imp:l.ref,val:5})},children:"(5)"}),(0,e.jsx)(t.q,{onClick:function(){return x("inject",{imp:l.ref,val:10})},children:"(10)"})]})]},l.ref)})]})||(0,e.jsx)(t.kv,{color:"average",children:"No chemical implants found."})}),(0,e.jsx)(t.iG,{title:"Tracking Implants",children:c.length&&(0,e.jsxs)(t.oJ,{children:[(0,e.jsxs)(t.oJ.Row,{header:!0,children:[(0,e.jsx)(t.oJ.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(t.oJ.Cell,{textAlign:"center",children:"Location"}),(0,e.jsx)(t.oJ.Cell,{textAlign:"center",children:"Message"})]}),c.map(function(l){return(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsxs)(t.oJ.Cell,{textAlign:"center",children:[l.host," (",l.id,")"]}),(0,e.jsx)(t.oJ.Cell,{textAlign:"center",children:l.loc}),(0,e.jsx)(t.oJ.Cell,{textAlign:"center",children:(0,e.jsx)(t.q,{onClick:function(){return x("warn",{imp:l.ref})},children:"Message"})})]},l.ref)})]})||(0,e.jsx)(t.kv,{color:"average",children:"No chemical implants found."})})]})})})}},47816:function(S,y,n){"use strict";n.r(y),n.d(y,{RCON:function(){return u},RCONContent:function(){return d}});var e=n(33496),a=n(10608),t=n(96060),r=n(45280),i=n(33404),j=n(76512),C=n(49900),x=1e3,u=function(m){return(0,e.jsx)(j.qo,{width:630,height:540,children:(0,e.jsx)(j.qo.Content,{scrollable:!0,children:(0,e.jsx)(d,{})})})},d=function(m){var v=(0,r.cv)("tabIndex",0),p=v[0],g=v[1],_;return p===0?_=(0,e.jsx)(h,{}):p===1&&(_=(0,e.jsx)(f,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.kZ,{children:[(0,e.jsxs)(i.kZ.Tab,{selected:p===0,onClick:function(){return g(0)},children:[(0,e.jsx)(i.GW,{name:"power-off"})," SMESs"]},"SMESs"),(0,e.jsxs)(i.kZ.Tab,{selected:p===1,onClick:function(){return g(1)},children:[(0,e.jsx)(i.GW,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,e.jsx)(i.kv,{m:2,children:_})]})},h=function(m){var v=(0,r.yy)(),p=v.act,g=v.data,_=g.smes_info,E=g.pages,I=g.current_page,M=function(P){return P()};return(0,e.jsxs)(i.iG,{title:"SMESs (Page "+I+")",children:[(0,e.jsx)(i.fT,{vertical:!0,children:_.map(function(P){return(0,e.jsx)(i.fT.Item,{children:(0,e.jsx)(c,{smes:P})},P.RCON_tag)})}),"Page Selection:",(0,e.jsx)("br",{}),M(function(){for(var P=function(L){D.push((0,e.jsx)(i.q,{selected:I===L,onClick:function(){return p("set_smes_page",{index:L})},children:L},L))},D=[],k=1;k=2?(0,e.jsx)(t.kv,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,e.jsxs)(t.Cu,{spacing:1,children:[(0,e.jsxs)(t.Cu.Item,{grow:1,children:[(0,e.jsxs)(t.kv,{color:"average",children:["Engage: ",g.engagecost]}),(0,e.jsxs)(t.kv,{color:"average",children:["Active: ",g.activecost]}),(0,e.jsxs)(t.kv,{color:"average",children:["Passive: ",g.passivecost]})]}),(0,e.jsx)(t.Cu.Item,{grow:1,children:g.desc})]}),g.charges?(0,e.jsx)(t.Cu.Item,{children:(0,e.jsx)(t.iG,{title:"Module Charges",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Selected",children:(0,i.Yj)(g.chargetype)}),g.charges.map(function(E,I){return(0,e.jsx)(t.Ce.Item,{label:(0,i.Yj)(E.caption),children:(0,e.jsx)(t.q,{selected:g.realchargetype===E.index,icon:"arrow-right",onClick:function(){return c("interact_module",{module:g.index,module_mode:"select_charge_type",charge_type:E.index})}})},E.caption)})]})})}):null]},g.name)})]})}},95444:function(S,y,n){"use strict";n.r(y),n.d(y,{Radio:function(){return C}});var e=n(33496),a=n(10608),t=n(45280),r=n(33404),i=n(36824),j=n(76512),C=function(x){var u=(0,t.yy)(),d=u.act,h=u.data,c=h.rawfreq,l=h.minFrequency,f=h.maxFrequency,m=h.listening,v=h.broadcasting,p=h.subspace,g=h.subspaceSwitchable,_=h.chan_list,E=h.loudspeaker,I=h.mic_cut,M=h.spk_cut,P=h.useSyndMode,D=i.Ut.find(function(L){return L.freq===Number(c)}),k=156;return _&&_.length>0?k+=_.length*28+6:k+=24,g&&(k+=38),(0,e.jsx)(j.qo,{width:310,height:k,resizable:!0,theme:P?"syndicate":"",children:(0,e.jsxs)(j.qo.Content,{children:[(0,e.jsx)(r.iG,{children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsxs)(r.Ce.Item,{label:"Frequency",children:[(0,e.jsx)(r.WC,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:l/10,maxValue:f/10,value:c/10,format:function(L){return(0,a.yI)(L,1)},onDrag:function(L,F){return d("setFrequency",{freq:(0,a.kL)(F*10)})}}),D&&(0,e.jsxs)(r.kv,{inline:!0,color:D.color,ml:2,children:["[",D.name,"]"]})]}),(0,e.jsxs)(r.Ce.Item,{label:"Audio",children:[(0,e.jsx)(r.q,{textAlign:"center",width:"37px",icon:m?"volume-up":"volume-mute",selected:m,disabled:M,onClick:function(){return d("listen")}}),(0,e.jsx)(r.q,{textAlign:"center",width:"37px",icon:v?"microphone":"microphone-slash",selected:v,disabled:I,onClick:function(){return d("broadcast")}}),!!g&&(0,e.jsx)(r.kv,{children:(0,e.jsx)(r.q,{icon:"bullhorn",selected:p,content:"Subspace Tx "+(p?"ON":"OFF"),onClick:function(){return d("subspace")}})}),!!g&&(0,e.jsx)(r.kv,{children:(0,e.jsx)(r.q,{icon:E?"volume-up":"volume-mute",selected:E,content:"Loudspeaker",onClick:function(){return d("toggleLoudspeaker")}})})]})]})}),(0,e.jsxs)(r.iG,{title:"Channels",children:[(!_||_.length===0)&&(0,e.jsx)(r.kv,{inline:!0,color:"bad",children:"No channels detected."}),(0,e.jsx)(r.Ce,{children:_?_.map(function(L){var F=i.Ut.find(function(N){return N.freq===Number(L.freq)}),w="default";return F&&(w=F.color),(0,e.jsx)(r.Ce.Item,{label:L.display_name,labelColor:w,textAlign:"right",children:L.secure_channel&&p?(0,e.jsx)(r.q,{icon:L.sec_channel_listen?"square-o":"check-square-o",selected:!L.sec_channel_listen,content:L.sec_channel_listen?"Off":"On",onClick:function(){return d("channel",{channel:L.chan})}}):(0,e.jsx)(r.q,{content:"Switch",selected:L.chan===c,onClick:function(){return d("specFreq",{channel:L.chan})}})},L.chan)}):null})]})]})})}},92936:function(S,y,n){"use strict";n.r(y),n.d(y,{ICON_BY_CATEGORY_NAME:function(){return x},RapidPipeDispenser:function(){return l}});var e=n(33496),a=n(28324),t=n(49900),r=n(45280),i=n(33404),j=n(76512),C=["Atmospherics","Disposals"],x={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"},u=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}],d=function(f){var m=(0,r.yy)(),v=m.act,p=m.data,g=p.category,_=p.selected_color,E=p.mode;return(0,e.jsx)(i.iG,{children:(0,e.jsxs)(i.Ce,{children:[(0,e.jsx)(i.Ce.Item,{label:"Category",children:C.map(function(I,M){return(0,e.jsx)(i.q,{selected:g===M,icon:x[I],color:"transparent",onClick:function(){return v("category",{category:M})},children:I},I)})}),(0,e.jsx)(i.Ce.Item,{label:"Modes",children:(0,e.jsx)(i.fT,{fill:!0,children:u.map(function(I){return(0,e.jsx)(i.fT.Item,{grow:!0,children:(0,e.jsx)(i.q.Checkbox,{checked:E&I.bitmask,fluid:!0,content:I.name,onClick:function(){return v("mode",{mode:I.bitmask})}})},I.bitmask)})})}),(0,e.jsxs)(i.Ce.Item,{label:"Color",children:[(0,e.jsx)(i.kv,{inline:!0,width:"64px",color:p.paint_colors[_],children:(0,t.Yj)(_)}),Object.keys(p.paint_colors).map(function(I){return(0,e.jsx)(i.wP,{ml:1,color:p.paint_colors[I],onClick:function(){return v("color",{paint_color:I})}},I)})]})]})})},h=function(f){var m=(0,r.yy)(),v=m.act,p=m.data,g=p.category,_=p.piping_layer,E=p.pipe_layers,I=p.preview_rows.flatMap(function(M){return M.previews});return(0,e.jsxs)(i.iG,{fill:!0,width:7.5,children:[g===0&&(0,e.jsx)(i.fT,{vertical:!0,mb:1,children:Object.keys(E).map(function(M){return(0,e.jsx)(i.fT.Item,{my:0,children:(0,e.jsx)(i.q.Checkbox,{checked:E[M]===_,content:M,onClick:function(){return v("piping_layer",{piping_layer:E[M]})}})},M)})}),(0,e.jsx)(i.kv,{width:"120px",children:I.map(function(M){return(0,e.jsx)(i.q,{ml:0,title:M.dir_name,selected:M.selected,style:{width:"40px",height:"40px",padding:0},onClick:function(){return v("setdir",{dir:M.dir,flipped:M.flipped})},children:(0,e.jsx)(i.kv,{className:(0,a.iE)(["pipes32x32",M.dir+"-"+M.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},M.dir)})})]})},c=function(f){var m=(0,r.yy)(),v=m.act,p=m.data,g=p.categories,_=g===void 0?[]:g,E=(0,r.cv)("categoryName"),I=E[0],M=E[1],P=_.find(function(D){return D.cat_name===I})||_[0];return(0,e.jsxs)(i.iG,{fill:!0,scrollable:!0,children:[(0,e.jsx)(i.kZ,{children:_.map(function(D,k){return(0,e.jsx)(i.kZ.Tab,{fluid:!0,icon:x[D.cat_name],selected:D.cat_name===P.cat_name,onClick:function(){return M(D.cat_name)},children:D.cat_name},D.cat_name)})}),P==null?void 0:P.recipes.map(function(D){return(0,e.jsx)(i.q.Checkbox,{fluid:!0,ellipsis:!0,checked:D.selected,content:D.pipe_name,title:D.pipe_name,onClick:function(){return v("pipe_type",{pipe_type:D.pipe_index,category:P.cat_name})}},D.pipe_index)})]})},l=function(f){var m=(0,r.yy)(),v=m.act,p=m.data,g=p.category;return(0,e.jsx)(j.qo,{width:550,height:570,children:(0,e.jsx)(j.qo.Content,{children:(0,e.jsxs)(i.fT,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.fT.Item,{children:(0,e.jsx)(d,{})}),(0,e.jsx)(i.fT.Item,{grow:!0,children:(0,e.jsxs)(i.fT,{fill:!0,children:[(0,e.jsx)(i.fT.Item,{children:(0,e.jsx)(i.fT,{vertical:!0,fill:!0,children:(0,e.jsx)(i.fT.Item,{grow:!0,children:(0,e.jsx)(h,{})})})}),(0,e.jsx)(i.fT.Item,{grow:!0,children:(0,e.jsx)(c,{})})]})})]})})})}},26008:function(S,y,n){"use strict";n.r(y),n.d(y,{RequestConsole:function(){return L}});var e=n(33496),a=n(49900),t=n(45280),r=n(33404),i=n(76512),j=0,C=1,x=2,u=3,d=4,h=5,c=6,l=7,f=8,m=function(F){var w=(0,t.yy)(),N=w.act,$=w.data,H=$.silent;return(0,e.jsx)(r.iG,{title:"Settings",children:(0,e.jsxs)(r.q,{selected:!H,icon:H?"volume-mute":"volume-up",onClick:function(){return N("toggleSilent")},children:["Speaker ",H?"OFF":"ON"]})})},v=function(F){var w=(0,t.yy)(),N=w.act,$=w.data,H=$.department,K=$.supply_dept;return(0,e.jsx)(r.iG,{title:"Supplies",children:(0,e.jsx)(_,{dept_list:K,department:H})})},p=function(F){var w=(0,t.yy)(),N=w.act,$=w.data,H=$.department,K=$.assist_dept;return(0,e.jsx)(r.iG,{title:"Request assistance from another department",children:(0,e.jsx)(_,{dept_list:K,department:H})})},g=function(F){var w=(0,t.yy)(),N=w.act,$=w.data,H=$.department,K=$.info_dept;return(0,e.jsx)(r.iG,{title:"Report Anonymous Information",children:(0,e.jsx)(_,{dept_list:K,department:H})})},_=function(F){var w=(0,t.yy)().act,N=F.dept_list,$=F.department;return(0,e.jsx)(r.Ce,{children:N.sort().map(function(H){return H!==$&&(0,e.jsx)(r.Ce.Item,{label:H,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{icon:"envelope-open-text",onClick:function(){return w("write",{write:H,priority:1})},children:"Message"}),(0,e.jsx)(r.q,{icon:"exclamation-triangle",onClick:function(){return w("write",{write:H,priority:2})},children:"High Priority"})]})})||null})})},E=function(F){var w=(0,t.yy)(),N=w.act,$=w.data;return(0,e.jsxs)(r.iG,{children:[(0,e.jsx)(r.kv,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,e.jsx)(r.kv,{children:(0,e.jsx)(r.q,{icon:"arrow-right",onClick:function(){return N("setScreen",{setScreen:j})},children:"Continue"})})]})},I=function(F){var w=(0,t.yy)(),N=w.act,$=w.data;return(0,e.jsxs)(r.iG,{children:[(0,e.jsx)(r.kv,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,e.jsx)(r.kv,{children:(0,e.jsx)(r.q,{icon:"arrow-right",onClick:function(){return N("setScreen",{setScreen:j})},children:"Continue"})})]})},M=function(F){var w=(0,t.yy)(),N=w.act,$=w.data,H=$.message_log;return(0,e.jsx)(r.iG,{title:"Messages",children:H.length&&H.map(function(K,U){return(0,e.jsx)(r.Ce.Item,{label:(0,a.Af)(K[0]),buttons:(0,e.jsx)(r.q,{icon:"print",onClick:function(){return N("print",{print:U+1})},children:"Print"}),children:(0,a.Af)(K[1])},U)})||(0,e.jsx)(r.kv,{children:"No messages."})})},P=function(F){var w=(0,t.yy)(),N=w.act,$=w.data,H=$.message,K=$.recipient,U=$.priority,q=$.msgStamped,Y=$.msgVerified;return(0,e.jsxs)(r.iG,{title:"Message Authentication",children:[(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Message for "+K,children:H}),(0,e.jsx)(r.Ce.Item,{label:"Priority",children:U===2?"High Priority":U===1?"Normal Priority":"Unknown"}),(0,e.jsx)(r.Ce.Item,{label:"Validated By",color:Y?"good":"bad",children:(0,a.Af)(Y)||"No Validation"}),(0,e.jsx)(r.Ce.Item,{label:"Stamped By",color:q?"good":"bad",children:(0,a.Af)(q)||"No Stamp"})]}),(0,e.jsx)(r.q,{mt:1,icon:"share",onClick:function(){return N("department",{department:K})},children:"Send Message"}),(0,e.jsx)(r.q,{icon:"undo",onClick:function(){return N("setScreen",{setScreen:j})},children:"Back"})]})},D=function(F){var w=(0,t.yy)(),N=w.act,$=w.data,H=$.department,K=$.screen,U=$.message_log,q=$.newmessagepriority,Y=$.silent,Z=$.announcementConsole,z=$.assist_dept,Q=$.supply_dept,oe=$.info_dept,le=$.message,ie=$.recipient,fe=$.priority,de=$.msgStamped,ge=$.msgVerified,ye=$.announceAuth;return(0,e.jsxs)(r.iG,{title:"Send Station-Wide Announcement",children:[ye&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.kv,{bold:!0,color:"good",mb:1,children:"ID Verified. Authentication Accepted."}),(0,e.jsx)(r.iG,{title:"Message",mt:1,maxHeight:"200px",scrollable:!0,buttons:(0,e.jsx)(r.q,{ml:1,icon:"pen",onClick:function(){return N("writeAnnouncement")},children:"Edit"}),children:le||"No Message"})]})||(0,e.jsx)(r.kv,{bold:!0,color:"bad",mb:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.jsx)(r.q,{disabled:!le||!ye,icon:"share",onClick:function(){return N("sendAnnouncement")},children:"Announce"}),(0,e.jsx)(r.q,{icon:"undo",onClick:function(){return N("setScreen",{setScreen:j})},children:"Back"})]})},k={};k[j]=m,k[C]=p,k[x]=v,k[u]=g,k[d]=E,k[h]=I,k[c]=M,k[l]=P,k[f]=D;var L=function(F){var w=(0,t.yy)(),N=w.act,$=w.data,H=$.screen,K=$.newmessagepriority,U=$.announcementConsole,q=k[H];return(0,e.jsx)(i.qo,{width:520,height:410,children:(0,e.jsxs)(i.qo.Content,{scrollable:!0,children:[(0,e.jsxs)(r.kZ,{children:[(0,e.jsx)(r.kZ.Tab,{selected:H===c,onClick:function(){return N("setScreen",{setScreen:c})},icon:"envelope-open-text",children:"Messages"}),(0,e.jsx)(r.kZ.Tab,{selected:H===C,onClick:function(){return N("setScreen",{setScreen:C})},icon:"share-square",children:"Assistance"}),(0,e.jsx)(r.kZ.Tab,{selected:H===x,onClick:function(){return N("setScreen",{setScreen:x})},icon:"share-square",children:"Supplies"}),(0,e.jsx)(r.kZ.Tab,{selected:H===u,onClick:function(){return N("setScreen",{setScreen:u})},icon:"share-square-o",children:"Report"}),U&&(0,e.jsx)(r.kZ.Tab,{selected:H===f,onClick:function(){return N("setScreen",{setScreen:f})},icon:"volume-up",children:"Announce"})||null,(0,e.jsx)(r.kZ.Tab,{selected:H===j,onClick:function(){return N("setScreen",{setScreen:j})},icon:"cog"})]}),K&&(0,e.jsx)(r.iG,{title:K>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:K>1?"bad":"average",bold:K>1})||null,(0,e.jsx)(q,{})]})})}},64032:function(S,y,n){"use strict";n.r(y),n.d(y,{ResearchConsole:function(){return _}});var e=n(33496),a=n(49900),t=n(69344),r=n(45280),i=n(33404),j=n(76512),C=function(E){var I=(0,r.yy)(),M=I.act,P=I.data,D=P.tech;return(0,e.jsx)(i.iG,{title:"Current Research Levels",buttons:(0,e.jsx)(i.q,{icon:"print",onClick:function(){return M("print",{print:1})},children:"Print This Page"}),children:(0,e.jsx)(i.oJ,{children:D.map(function(k){return(0,e.jsxs)(i.oJ.Row,{children:[(0,e.jsxs)(i.oJ.Cell,{children:[(0,e.jsx)(i.kv,{color:"label",children:k.name}),(0,e.jsxs)(i.kv,{children:[" - Level ",k.level]})]}),(0,e.jsx)(i.oJ.Cell,{children:(0,e.jsx)(i.kv,{color:"label",children:k.desc})})]},k.name)})})})},x=function(E){var I=(0,r.yy)().data,M=E.title,P=E.target,D=I[P];return typeof D=="number"?M+" - Page "+(D+1):M},u=function(E){var I=(0,r.yy)().act,M=E.target;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.q,{icon:"undo",onClick:function(){return I(M,{reset:!0})}}),(0,e.jsx)(i.q,{icon:"chevron-left",onClick:function(){return I(M,{reverse:-1})}}),(0,e.jsx)(i.q,{icon:"chevron-right",onClick:function(){return I(M,{reverse:1})}})]})},d=function(E){var I=(0,r.yy)(),M=I.act,P=I.data,D=P.designs;return(0,e.jsxs)(i.iG,{title:(0,e.jsx)(x,{title:"Researched Technologies & Designs",target:"design_page"}),buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.q,{icon:"print",onClick:function(){return M("print",{print:2})},children:"Print This Page"}),(0,e.jsx)(u,{target:"design_page"})||null]}),children:[(0,e.jsx)(i.EF,{fluid:!0,placeholder:"Search for...",value:P.search,onInput:function(k,L){return M("search",{search:L})},mb:1}),D&&D.length&&(0,e.jsx)(i.Ce,{children:D.map(function(k){return(0,e.jsx)(i.Ce.Item,{label:k.name,children:k.desc},k.name)})})||(0,e.jsx)(i.kv,{color:"warning",children:"No designs found."})]})},h=function(E){var I=(0,r.yy)(),M=I.act,P=I.data,D=P.tech,k=E.disk;if(!k||!k.present)return null;var L=(0,r.ao)("saveDialogTech",!1),F=L[0],w=L[1];return F?(0,e.jsx)(i.iG,{title:"Load Technology to Disk",buttons:(0,e.jsx)(i.q,{icon:"arrow-left",content:"Back",onClick:function(){return w(!1)}}),children:(0,e.jsx)(i.Ce,{children:D.map(function(N){return(0,e.jsx)(i.Ce.Item,{label:N.name,children:(0,e.jsx)(i.q,{icon:"save",onClick:function(){w(!1),M("copy_tech",{copy_tech_ID:N.id})},children:"Copy To Disk"})},N.name)})})}):(0,e.jsxs)(i.kv,{children:[(0,e.jsx)(i.Ce,{children:(0,e.jsx)(i.Ce.Item,{label:"Disk Contents",children:"(Technology Data Disk)"})}),k.stored&&(0,e.jsxs)(i.kv,{mt:2,children:[(0,e.jsx)(i.kv,{children:k.name}),(0,e.jsxs)(i.kv,{children:["Level: ",k.level]}),(0,e.jsxs)(i.kv,{children:["Description: ",k.desc]}),(0,e.jsxs)(i.kv,{mt:1,children:[(0,e.jsx)(i.q,{icon:"save",onClick:function(){return M("updt_tech")},children:"Upload to Database"}),(0,e.jsx)(i.q,{icon:"trash",onClick:function(){return M("clear_tech")},children:"Clear Disk"}),(0,e.jsx)(i.q,{icon:"eject",onClick:function(){return M("eject_tech")},children:"Eject Disk"})]})]})||(0,e.jsxs)(i.kv,{children:[(0,e.jsx)(i.kv,{children:"This disk has no data stored on it."}),(0,e.jsx)(i.q,{icon:"save",onClick:function(){return w(!0)},children:"Load Tech To Disk"}),(0,e.jsx)(i.q,{icon:"eject",onClick:function(){return M("eject_tech")},children:"Eject Disk"})]})]})},c=function(E){var I=(0,r.yy)(),M=I.act,P=I.data,D=P.designs,k=E.disk;if(!k||!k.present)return null;var L=(0,r.ao)("saveDialogData",!1),F=L[0],w=L[1];return F?(0,e.jsxs)(i.iG,{title:(0,e.jsx)(x,{title:"Load Design to Disk",target:"design_page"}),buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.q,{icon:"arrow-left",content:"Back",onClick:function(){return w(!1)}}),(0,e.jsx)(u,{target:"design_page"})||null]}),children:[(0,e.jsx)(i.EF,{fluid:!0,placeholder:"Search for...",value:P.search,onInput:function(N,$){return M("search",{search:$})},mb:1}),D&&D.length&&(0,e.jsx)(i.Ce,{children:D.map(function(N){return(0,e.jsx)(i.Ce.Item,{label:N.name,children:(0,e.jsx)(i.q,{icon:"save",onClick:function(){w(!1),M("copy_design",{copy_design_ID:N.id})},children:"Copy To Disk"})},N.name)})})||(0,e.jsx)(i.kv,{color:"warning",children:"No designs found."})]}):(0,e.jsx)(i.kv,{children:k.stored&&(0,e.jsxs)(i.kv,{children:[(0,e.jsxs)(i.Ce,{children:[(0,e.jsx)(i.Ce.Item,{label:"Name",children:k.name}),(0,e.jsx)(i.Ce.Item,{label:"Lathe Type",children:k.build_type}),(0,e.jsx)(i.Ce.Item,{label:"Required Materials",children:Object.keys(k.materials).map(function(N){return(0,e.jsxs)(i.kv,{children:[N," x ",k.materials[N]]},N)})})]}),(0,e.jsxs)(i.kv,{mt:1,children:[(0,e.jsx)(i.q,{icon:"save",onClick:function(){return M("updt_design")},children:"Upload to Database"}),(0,e.jsx)(i.q,{icon:"trash",onClick:function(){return M("clear_design")},children:"Clear Disk"}),(0,e.jsx)(i.q,{icon:"eject",onClick:function(){return M("eject_design")},children:"Eject Disk"})]})]})||(0,e.jsxs)(i.kv,{children:[(0,e.jsx)(i.kv,{mb:.5,children:"This disk has no data stored on it."}),(0,e.jsx)(i.q,{icon:"save",onClick:function(){return w(!0)},children:"Load Design To Disk"}),(0,e.jsx)(i.q,{icon:"eject",onClick:function(){return M("eject_design")},children:"Eject Disk"})]})})},l=function(E){var I=(0,r.yy)(),M=I.act,P=I.data,D=P.info,k=D.d_disk,L=D.t_disk;return!k.present&&!L.present?(0,e.jsx)(i.iG,{title:"Disk Operations",children:"No disk inserted."}):(0,e.jsxs)(i.iG,{title:"Disk Operations",children:[(0,e.jsx)(h,{disk:L}),(0,e.jsx)(c,{disk:k})]})},f=function(E){var I=(0,r.yy)(),M=I.act,P=I.data,D=P.info.linked_destroy;if(!D.present)return(0,e.jsx)(i.iG,{title:"Destructive Analyzer",children:"No destructive analyzer found."});var k=D.loaded_item,L=D.origin_tech;return(0,e.jsx)(i.iG,{title:"Destructive Analyzer",children:k&&(0,e.jsxs)(i.kv,{children:[(0,e.jsxs)(i.Ce,{children:[(0,e.jsx)(i.Ce.Item,{label:"Name",children:k}),(0,e.jsx)(i.Ce.Item,{label:"Origin Tech",children:(0,e.jsx)(i.Ce,{children:L.length&&L.map(function(F){return(0,e.jsxs)(i.Ce.Item,{label:F.name,children:[F.level,"\xA0\xA0",F.current&&"(Current: "+F.current+")"]},F.name)})||(0,e.jsx)(i.Ce.Item,{label:"Error",children:"No origin tech found."})})})]}),(0,e.jsx)(i.q,{mt:1,color:"red",icon:"eraser",onClick:function(){return M("deconstruct")},children:"Deconstruct Item"}),(0,e.jsx)(i.q,{icon:"eject",onClick:function(){return M("eject_item")},children:"Eject Item"})]})||(0,e.jsx)(i.kv,{children:"No Item Loaded. Standing-by..."})})},m=function(E){var I=(0,r.yy)(),M=I.act,P=I.data,D=E.target,k=E.designs,L=E.buildName,F=E.buildFiveName;return D?(0,e.jsxs)(i.iG,{title:(0,e.jsx)(x,{target:"builder_page",title:"Designs"}),buttons:(0,e.jsx)(u,{target:"builder_page"}),children:[(0,e.jsx)(i.EF,{fluid:!0,placeholder:"Search for...",value:P.search,onInput:function(w,N){return M("search",{search:N})},mb:1}),k&&k.length?k.map(function(w){return(0,e.jsxs)(t.Fragment,{children:[(0,e.jsxs)(i.Cu,{width:"100%",justify:"space-between",children:[(0,e.jsx)(i.Cu.Item,{width:"40%",style:{"word-wrap":"break-all"},children:w.name}),(0,e.jsxs)(i.Cu.Item,{width:"15%",textAlign:"center",children:[(0,e.jsx)(i.q,{mb:-1,icon:"wrench",onClick:function(){return M(L,{build:w.id,imprint:w.id})},children:"Build"}),F&&(0,e.jsx)(i.q,{mb:-1,onClick:function(){return M(F,{build:w.id,imprint:w.id})},children:"x5"})]}),(0,e.jsxs)(i.Cu.Item,{width:"45%",style:{"word-wrap":"break-all"},children:[(0,e.jsx)(i.kv,{inline:!0,color:"label",children:w.mat_list.join(" ")}),(0,e.jsx)(i.kv,{inline:!0,color:"average",ml:1,children:w.chem_list.join(" ")})]})]}),(0,e.jsx)(i.c1,{})]},w.id)}):(0,e.jsx)(i.kv,{children:"No items could be found matching the parameters (page or search)."})]}):(0,e.jsx)(i.kv,{color:"bad",children:"Error"})},v=function(E){var I=(0,r.yy)(),M=I.act,P=I.data,D=E.name,k=null,L=null;if(D==="Protolathe"?(k=P.info.linked_lathe,L=P.lathe_designs):(k=P.info.linked_imprinter,L=P.imprinter_designs),!k||!k.present)return(0,e.jsxs)(i.iG,{title:D,children:["No ",D," found."]});var F=k.total_materials,w=k.max_materials,N=k.total_volume,$=k.max_volume,H=k.busy,K=k.mats,U=k.reagents,q=k.queue,Y=(0,r.ao)("protoTab",0),Z=Y[0],z=Y[1],Q="transparent",oe=!1,le="layer-group";H?(le="hammer",Q="average",oe=!0):q&&q.length&&(le="sync",Q="green",oe=!0);var ie=D==="Protolathe"?"removeP":"removeI",fe=D==="Protolathe"?"lathe_ejectsheet":"imprinter_ejectsheet",de=D==="Protolathe"?"disposeP":"disposeI",ge=D==="Protolathe"?"disposeallP":"disposeallI";return(0,e.jsxs)(i.iG,{title:D,buttons:H&&(0,e.jsx)(i.GW,{name:"sync",spin:!0})||null,children:[(0,e.jsxs)(i.Ce,{children:[(0,e.jsx)(i.Ce.Item,{label:"Materials",children:(0,e.jsxs)(i.cH,{value:F,maxValue:w,children:[F," cm\xB3 / ",w," cm\xB3"]})}),(0,e.jsx)(i.Ce.Item,{label:"Chemicals",children:(0,e.jsxs)(i.cH,{value:N,maxValue:$,children:[N,"u / ",$,"u"]})})]}),(0,e.jsxs)(i.kZ,{mt:1,children:[(0,e.jsx)(i.kZ.Tab,{icon:"wrench",selected:Z===0,onClick:function(){return z(0)},children:"Build"}),(0,e.jsx)(i.kZ.Tab,{icon:le,iconSpin:oe,color:Q,selected:Z===1,onClick:function(){return z(1)},children:"Queue"}),(0,e.jsx)(i.kZ.Tab,{icon:"cookie-bite",selected:Z===2,onClick:function(){return z(2)},children:"Mat Storage"}),(0,e.jsx)(i.kZ.Tab,{icon:"flask",selected:Z===3,onClick:function(){return z(3)},children:"Chem Storage"})]}),Z===0&&(0,e.jsx)(m,{target:k,designs:L,buildName:D==="Protolathe"?"build":"imprint",buildFiveName:D==="Protolathe"?"buildfive":null})||Z===1&&(0,e.jsx)(i.Ce,{children:q.length&&q.map(function(ye){return ye.index===1?(0,e.jsx)(i.Ce.Item,{label:ye.name,labelColor:"bad",children:H?(0,e.jsx)(i.q,{disabled:!0,icon:"trash",children:"Remove"}):(0,e.jsxs)(i.kv,{children:["(Awaiting Materials)",(0,e.jsx)(i.q,{ml:1,icon:"trash",onClick:function(){var ve;return M(ie,(ve={},ve[ie]=ye.index,ve))},children:"Remove"})]})}):(0,e.jsx)(i.Ce.Item,{label:ye.name,children:(0,e.jsx)(i.q,{icon:"trash",onClick:function(){var ve;return M(ie,(ve={},ve[ie]=ye.index,ve))},children:"Remove"})},ye.name)})||(0,e.jsx)(i.kv,{m:1,children:"Queue Empty."})})||Z===2&&(0,e.jsx)(i.Ce,{children:K.map(function(ye){var ve=(0,r.cv)("ejectAmt"+ye.name,0),Ie=ve[0],Te=ve[1];return(0,e.jsxs)(i.Ce.Item,{label:(0,a.Yl)(ye.name),buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.WC,{minValue:0,width:"100px",value:Ie,maxValue:ye.sheets,onDrag:function(Ve,Ue){return Te(Ue)}}),(0,e.jsx)(i.q,{icon:"eject",disabled:!ye.removable,onClick:function(){Te(0);var Ve;M(fe,(Ve={},Ve[fe]=ye.name,Ve.amount=Ie,Ve))},children:"Num"}),(0,e.jsx)(i.q,{icon:"eject",disabled:!ye.removable,onClick:function(){var Ve;return M(fe,(Ve={},Ve[fe]=ye.name,Ve.amount=50,Ve))},children:"All"})]}),children:[ye.amount," cm\xB3"]},ye.name)})})||Z===3&&(0,e.jsxs)(i.kv,{children:[(0,e.jsx)(i.Ce,{children:U.length&&U.map(function(ye){return(0,e.jsxs)(i.Ce.Item,{label:ye.name,children:[ye.volume,"u",(0,e.jsx)(i.q,{ml:1,icon:"eject",onClick:function(){return M(de,{dispose:ye.id})},children:"Purge"})]},ye.name)})||(0,e.jsx)(i.Ce.Item,{label:"Empty",children:"No chems detected"})}),(0,e.jsx)(i.q,{mt:1,icon:"trash",onClick:function(){return M(ge)},children:"Disposal All Chemicals In Storage"})]})||(0,e.jsx)(i.kv,{children:"Error"})]})},p=function(E){var I=(0,r.yy)(),M=I.act,P=I.data,D=P.info,k=D.sync,L=D.linked_destroy,F=D.linked_imprinter,w=D.linked_lathe,N=(0,r.ao)("settingsTab",0),$=N[0],H=N[1];return(0,e.jsxs)(i.iG,{title:"Settings",children:[(0,e.jsxs)(i.kZ,{children:[(0,e.jsx)(i.kZ.Tab,{icon:"cogs",onClick:function(){return H(0)},selected:$===0,children:"General"}),(0,e.jsx)(i.kZ.Tab,{icon:"link",onClick:function(){return H(1)},selected:$===1,children:"Device Linkages"})]}),$===0&&(0,e.jsxs)(i.kv,{children:[k&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.q,{fluid:!0,icon:"sync",onClick:function(){return M("sync")},children:"Sync Database with Network"}),(0,e.jsx)(i.q,{fluid:!0,icon:"unlink",onClick:function(){return M("togglesync")},children:"Disconnect from Research Network"})]})||(0,e.jsx)(i.q,{fluid:!0,icon:"link",onClick:function(){return M("togglesync")},children:"Connect to Research Network"}),(0,e.jsx)(i.q,{fluid:!0,icon:"lock",onClick:function(){return M("lock")},children:"Lock Console"}),(0,e.jsx)(i.q,{fluid:!0,color:"red",icon:"trash",onClick:function(){return M("reset")},children:"Reset R&D Database"})]})||$===1&&(0,e.jsxs)(i.kv,{children:[(0,e.jsx)(i.q,{fluid:!0,icon:"sync",mb:1,onClick:function(){return M("find_device")},children:"Re-sync with Nearby Devices"}),(0,e.jsxs)(i.Ce,{children:[L.present&&(0,e.jsx)(i.Ce.Item,{label:"Destructive Analyzer",children:(0,e.jsx)(i.q,{icon:"unlink",onClick:function(){return M("disconnect",{disconnect:"destroy"})},children:"Disconnect"})})||null,w.present&&(0,e.jsx)(i.Ce.Item,{label:"Protolathe",children:(0,e.jsx)(i.q,{icon:"unlink",onClick:function(){return M("disconnect",{disconnect:"lathe"})},children:"Disconnect"})})||null,F.present&&(0,e.jsx)(i.Ce.Item,{label:"Circuit Imprinter",children:(0,e.jsx)(i.q,{icon:"unlink",onClick:function(){return M("disconnect",{disconnect:"imprinter"})},children:"Disconnect"})})||null]})]})||(0,e.jsx)(i.kv,{children:"Error"})]})},g=[{name:"Protolathe",icon:"wrench",template:(0,e.jsx)(v,{name:"Protolathe"})},{name:"Circuit Imprinter",icon:"digital-tachograph",template:(0,e.jsx)(v,{name:"Circuit Imprinter"})},{name:"Destructive Analyzer",icon:"eraser",template:(0,e.jsx)(f,{})},{name:"Settings",icon:"cog",template:(0,e.jsx)(p,{})},{name:"Research List",icon:"flask",template:(0,e.jsx)(C,{})},{name:"Design List",icon:"file",template:(0,e.jsx)(d,{})},{name:"Disk Operations",icon:"save",template:(0,e.jsx)(l,{})}],_=function(E){var I=(0,r.yy)(),M=I.act,P=I.data,D=P.busy_msg,k=P.locked,L=(0,r.ao)("rdmenu",0),F=L[0],w=L[1],N=!1;return(D||k)&&(N=!0),(0,e.jsx)(j.qo,{width:850,height:630,children:(0,e.jsxs)(j.qo.Content,{scrollable:!0,children:[(0,e.jsx)(i.kZ,{children:g.map(function($,H){return(0,e.jsx)(i.kZ.Tab,{icon:$.icon,selected:F===H,disabled:N,onClick:function(){return w(H)},children:$.name},H)})}),D&&(0,e.jsx)(i.iG,{title:"Processing...",children:D})||k&&(0,e.jsx)(i.iG,{title:"Console Locked",children:(0,e.jsx)(i.q,{onClick:function(){return M("lock")},icon:"lock-open",children:"Unlock"})})||g[F].template]})})}},71796:function(S,y,n){"use strict";n.r(y),n.d(y,{ResearchServerController:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(47392),j=function(c){var l=(0,a.yy)(),f=l.act,m=l.data;return(0,e.jsx)(r.qo,{width:575,height:430,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(C,{})})})},C=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=m.badmin,p=m.servers,g=m.consoles,_=(0,a.ao)("selectedServer",null),E=_[0],I=_[1],M=p.find(function(P){return P.id===E});return M?(0,e.jsx)(x,{setSelectedServer:I,server:M}):(0,e.jsx)(t.iG,{title:"Server Selection",children:p.map(function(P){return(0,e.jsx)(t.kv,{children:(0,e.jsx)(t.q,{icon:"eye",onClick:function(){return I(P.id)},children:P.name})},P.name)})})},x=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=m.badmin,p=c.server,g=c.setSelectedServer,_=(0,a.ao)("tab",0),E=_[0],I=_[1];return(0,e.jsxs)(t.iG,{title:p.name,buttons:(0,e.jsx)(t.q,{icon:"undo",onClick:function(){return g(null)},children:"Back"}),children:[(0,e.jsxs)(t.kZ,{children:[(0,e.jsx)(t.kZ.Tab,{selected:E===0,onClick:function(){return I(0)},children:"Access Rights"}),(0,e.jsx)(t.kZ.Tab,{selected:E===1,onClick:function(){return I(1)},children:"Data Management"}),v&&(0,e.jsx)(t.kZ.Tab,{selected:E===2,onClick:function(){return I(2)},color:"red",children:"Server-to-Server Transfer"})||null]}),E===0&&(0,e.jsx)(u,{server:p})||null,E===1&&(0,e.jsx)(d,{server:p})||null,E===2&&v&&(0,e.jsx)(h,{server:p})||null]})},u=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=c.server,p=m.consoles,g=function(E,I){return E.id_with_upload.indexOf(I.id)!==-1},_=function(E,I){return E.id_with_download.indexOf(I.id)!==-1};return(0,e.jsx)(t.iG,{level:2,title:"Consoles",children:(0,e.jsx)(t.Ce,{children:p.length&&p.map(function(E){return(0,e.jsxs)(t.Ce.Item,{label:E.name+" ("+E.loc+")",children:[(0,e.jsx)(t.q,{icon:g(v,E)?"lock-open":"lock",selected:g(v,E),onClick:function(){return f("toggle_upload",{server:v.ref,console:E.ref})},children:g(v,E)?"Upload On":"Upload Off"}),(0,e.jsx)(t.q,{icon:_(v,E)?"lock-open":"lock",selected:_(v,E),onClick:function(){return f("toggle_download",{server:v.ref,console:E.ref})},children:_(v,E)?"Download On":"Download Off"})]},E.name)})})})},d=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=c.server;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.iG,{level:2,title:"Research Levels",children:v.tech.map(function(p){return(0,e.jsx)(t.Ce.Item,{label:p.name,buttons:(0,e.jsx)(t.q.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Reset",onClick:function(){return f("reset_tech",{server:v.ref,tech:p.id})}})},p.name)})}),(0,e.jsx)(t.iG,{level:2,title:"Designs",children:(0,i.IF)(function(p){return!!p.name})(v.designs).map(function(p){return(0,e.jsx)(t.Ce.Item,{label:p.name,buttons:(0,e.jsx)(t.q.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Delete",onClick:function(){return f("reset_design",{server:v.ref,design:p.id})}})},p.name)})})]})},h=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=c.server,p=m.badmin,g=m.servers;return p?(0,e.jsx)(t.iG,{level:2,title:"Server Data Transfer",children:g.map(function(_){return(0,e.jsx)(t.kv,{children:(0,e.jsx)(t.q.Confirm,{fluid:!0,color:"bad",content:(0,e.jsxs)(t.kv,{children:["Transfer from ",v.name," To ",_.name]}),onClick:function(){return f("transfer_data",{server:v.ref,target:_.ref})}})},_.name)})}):null}},26752:function(S,y,n){"use strict";n.r(y),n.d(y,{ResleevingConsole:function(){return l}});var e=n(33496),a=n(10608),t=n(45280),r=n(33404),i=n(8020),j=n(76512);function C(){return C=Object.assign||function(k){for(var L=1;L=150?"good":"bad",inline:!0,children:[(0,e.jsx)(r.GW,{name:K.biomass>=150?"circle":"circle-o"}),"\xA0",K.biomass]}),q]},U)}):null},E=function(k){var L=(0,t.yy)(),F=L.act,w=L.data,N=w.sleevers,$=w.spods,H=w.selected_sleever;return N&&N.length?N.map(function(K,U){return(0,e.jsxs)(r.kv,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"sleeve_"+(K.occupied?"occupied":"empty")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)(r.kv,{color:K.occupied?"label":"bad",children:K.name}),(0,e.jsx)(r.q,{selected:H===K.sleever,icon:H===K.sleever&&"check",content:"Select",mt:$&&$.length?"3rem":"1.5rem",onClick:function(){return F("selectsleever",{ref:K.sleever})}})]},U)}):null},I=function(k){var L=(0,t.yy)(),F=L.act,w=L.data,N=w.spods,$=w.selected_printer;return N&&N.length?N.map(function(H,K){var U;return H.status==="cloning"?U=(0,e.jsx)(r.cH,{min:"0",max:"100",value:H.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(r.kv,{textAlign:"center",children:(0,a.kL)(H.progress,0)+"%"})}):H.status==="mess"?U=(0,e.jsx)(r.kv,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):U=(0,e.jsx)(r.q,{selected:$===H.spod,icon:$===H.spod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return F("selectprinter",{ref:H.spod})}}),(0,e.jsxs)(r.kv,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"synthprinter"+(H.busy?"_working":"")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)(r.kv,{color:"label",children:H.name}),(0,e.jsxs)(r.kv,{bold:!0,color:H.steel>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(r.GW,{name:H.steel>=15e3?"circle":"circle-o"}),"\xA0",H.steel]}),(0,e.jsxs)(r.kv,{bold:!0,color:H.glass>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(r.GW,{name:H.glass>=15e3?"circle":"circle-o"}),"\xA0",H.glass]}),U]},K)}):null},M=function(k){var L=(0,t.yy)().act,F=k.records,w=k.actToDo;return F.length?(0,e.jsx)(r.kv,{mt:"0.5rem",children:F.map(function(N,$){return(0,e.jsx)(r.q,{icon:"user",mb:"0.5rem",content:N.name,onClick:function(){return L(w,{ref:N.recref})}},$)})}):(0,e.jsx)(r.Cu,{height:"100%",mt:"0.5rem",children:(0,e.jsxs)(r.Cu.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(r.GW,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No records found."]})})},P=function(k){var L=(0,t.yy)(),F=L.act,w=L.data,N=w.temp;if(!(!N||!N.text||N.text.length<=0)){var $,H=($={},$[N.style]=!0,$);return(0,e.jsxs)(r.yc,C({},H,{children:[(0,e.jsx)(r.kv,{display:"inline-block",verticalAlign:"middle",children:N.text}),(0,e.jsx)(r.q,{icon:"times-circle",float:"right",onClick:function(){return F("cleartemp")}}),(0,e.jsx)(r.kv,{clear:"both"})]}))}},D=function(k){var L=(0,t.yy)(),F=L.act,w=L.data,N=w.pods,$=w.spods,H=w.sleevers,K=w.autoallowed,U=w.autoprocess,q=w.disk;return(0,e.jsx)(r.iG,{title:"Status",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Pods",children:N&&N.length?(0,e.jsxs)(r.kv,{color:"good",children:[N.length," connected"]}):(0,e.jsx)(r.kv,{color:"bad",children:"None connected!"})}),(0,e.jsx)(r.Ce.Item,{label:"SynthFabs",children:$&&$.length?(0,e.jsxs)(r.kv,{color:"good",children:[$.length," connected"]}):(0,e.jsx)(r.kv,{color:"bad",children:"None connected!"})}),(0,e.jsx)(r.Ce.Item,{label:"Sleevers",children:H&&H.length?(0,e.jsxs)(r.kv,{color:"good",children:[H.length," Connected"]}):(0,e.jsx)(r.kv,{color:"bad",children:"None connected!"})})]})})}},61148:function(S,y,n){"use strict";n.r(y),n.d(y,{ResleevingPod:function(){return i}});var e=n(33496),a=n(76512),t=n(45280),r=n(33404),i=function(j){var C=(0,t.yy)().data,x=C.occupied,u=C.name,d=C.health,h=C.maxHealth,c=C.stat,l=C.mindStatus,f=C.mindName,m=C.resleeveSick,v=C.initialSick;return(0,e.jsx)(a.qo,{width:300,height:350,resizeable:!0,children:(0,e.jsx)(a.qo.Content,{children:(0,e.jsx)(r.iG,{title:"Occupant",children:x?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Name",children:u}),(0,e.jsx)(r.Ce.Item,{label:"Health",children:c===2?(0,e.jsx)(r.kv,{color:"bad",children:"DEAD"}):c===1?(0,e.jsx)(r.kv,{color:"average",children:"Unconscious"}):(0,e.jsxs)(r.cH,{ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},value:d/h,children:[d,"%"]})}),(0,e.jsx)(r.Ce.Item,{label:"Mind Status",children:l?"Present":"Missing"}),l?(0,e.jsx)(r.Ce.Item,{label:"Mind Occupying",children:f}):""]}),m?(0,e.jsxs)(r.kv,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",v?(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)(r.kv,{bold:!0,m:1,children:"Unoccupied."})})})})}},11512:function(S,y,n){"use strict";n.r(y),n.d(y,{RoboticsControlConsole:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.can_hack,c=d.safety,l=d.show_detonate_all,f=d.cyborgs,m=f===void 0?[]:f;return(0,e.jsx)(r.qo,{width:500,height:460,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[!!l&&(0,e.jsxs)(t.iG,{title:"Emergency Self Destruct",children:[(0,e.jsx)(t.q,{icon:c?"lock":"unlock",content:c?"Disable Safety":"Enable Safety",selected:c,onClick:function(){return u("arm",{})}}),(0,e.jsx)(t.q,{icon:"bomb",disabled:c,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){return u("nuke",{})}})]}),(0,e.jsx)(j,{cyborgs:m,can_hack:h})]})})},j=function(C){var x=C.cyborgs,u=C.can_hack,d=(0,a.yy)(),h=d.act,c=d.data;return x.length?x.map(function(l){return(0,e.jsx)(t.iG,{title:l.name,buttons:(0,e.jsxs)(e.Fragment,{children:[!!l.hackable&&!l.emagged&&(0,e.jsx)(t.q,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){return h("hackbot",{ref:l.ref})}}),(0,e.jsx)(t.q.Confirm,{icon:l.locked_down?"unlock":"lock",color:l.locked_down?"good":"default",content:l.locked_down?"Release":"Lockdown",disabled:!c.auth,onClick:function(){return h("stopbot",{ref:l.ref})}}),(0,e.jsx)(t.q.Confirm,{icon:"bomb",content:"Detonate",disabled:!c.auth,color:"bad",onClick:function(){return h("killbot",{ref:l.ref})}})]}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Status",children:(0,e.jsx)(t.kv,{color:l.status?"bad":l.locked_down?"average":"good",children:l.status?"Not Responding":l.locked_down?"Locked Down":"Nominal"})}),(0,e.jsx)(t.Ce.Item,{label:"Location",children:(0,e.jsx)(t.kv,{children:l.locstring})}),(0,e.jsx)(t.Ce.Item,{label:"Integrity",children:(0,e.jsx)(t.cH,{color:l.health>50?"good":"bad",value:l.health/100})}),typeof l.charge=="number"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ce.Item,{label:"Cell Charge",children:(0,e.jsx)(t.cH,{color:l.charge>30?"good":"bad",value:l.charge/100})}),(0,e.jsx)(t.Ce.Item,{label:"Cell Capacity",children:(0,e.jsx)(t.kv,{color:l.cell_capacity<3e4?"average":"good",children:l.cell_capacity})})]})||(0,e.jsx)(t.Ce.Item,{label:"Cell",children:(0,e.jsx)(t.kv,{color:"bad",children:"No Power Cell"})}),!!l.is_hacked&&(0,e.jsx)(t.Ce.Item,{label:"Safeties",children:(0,e.jsx)(t.kv,{color:"bad",children:"DISABLED"})}),(0,e.jsx)(t.Ce.Item,{label:"Module",children:l.module}),(0,e.jsx)(t.Ce.Item,{label:"Master AI",children:(0,e.jsx)(t.kv,{color:l.synchronization?"default":"average",children:l.synchronization||"None"})})]})},l.ref)}):(0,e.jsx)(t.yc,{children:"No cyborg units detected within access parameters."})}},18500:function(S,y,n){"use strict";n.r(y),n.d(y,{RogueZones:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.timeout_percent,h=u.diffstep,c=u.difficulty,l=u.occupied,f=u.scanning,m=u.updated,v=u.debug,p=u.shuttle_location,g=u.shuttle_at_station,_=u.scan_ready,E=u.can_recall_shuttle;return(0,e.jsx)(r.qo,{width:360,height:250,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(t.iG,{title:"Current Area",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Mineral Content",children:c}),(0,e.jsx)(t.Ce.Item,{label:"Shuttle Location",buttons:E&&(0,e.jsx)(t.q,{color:"bad",icon:"rocket",onClick:function(){return x("recall_shuttle")},children:"Recall Shuttle"})||null,children:p}),l&&(0,e.jsxs)(t.Ce.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",l," personnel!"]})||(0,e.jsx)(t.Ce.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,e.jsx)(t.iG,{title:"Scanner",buttons:(0,e.jsx)(t.q,{disabled:!_,fluid:!0,icon:"search",onClick:function(){return x("scan_for_new")},children:"Scan For Asteroids"}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Scn Ramestat Core",children:(0,e.jsx)(t.cH,{value:d,maxValue:100,ranges:{good:[100,1/0],average:[75,100],bad:[-1/0,75]}})}),f&&(0,e.jsx)(t.Ce.Item,{label:"Scanning",children:"In progress."})||null,m&&!f&&(0,e.jsx)(t.Ce.Item,{label:"Info",children:"Updated shuttle destination!"})||null,v&&(0,e.jsxs)(t.Ce.Item,{label:"Debug",labelColor:"bad",children:[(0,e.jsxs)(t.kv,{children:["Timeout Percent: ",d]}),(0,e.jsxs)(t.kv,{children:["Diffstep: ",h]}),(0,e.jsxs)(t.kv,{children:["Difficulty: ",c]}),(0,e.jsxs)(t.kv,{children:["Occupied: ",l]}),(0,e.jsxs)(t.kv,{children:["Debug: ",v]}),(0,e.jsxs)(t.kv,{children:["Shuttle Location: ",p]}),(0,e.jsxs)(t.kv,{children:["Shuttle at station: ",g]}),(0,e.jsxs)(t.kv,{children:["Scan Ready: ",_]})]})||null]})})]})})}},38768:function(S,y,n){"use strict";n.r(y),n.d(y,{RustCoreMonitor:function(){return i},RustCoreMonitorContent:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(){return(0,e.jsx)(r.qo,{width:627,height:700,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(j,{})})})},j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.cores;return(0,e.jsx)(t.iG,{title:"Cores",buttons:(0,e.jsx)(t.q,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return u("set_tag")}}),children:(0,e.jsxs)(t.oJ,{children:[(0,e.jsxs)(t.oJ.Row,{header:!0,children:[(0,e.jsx)(t.oJ.Cell,{children:"Name"}),(0,e.jsx)(t.oJ.Cell,{children:"Position"}),(0,e.jsx)(t.oJ.Cell,{children:"Field Status"}),(0,e.jsx)(t.oJ.Cell,{children:"Reactant Mode"}),(0,e.jsx)(t.oJ.Cell,{children:"Field Instability"}),(0,e.jsx)(t.oJ.Cell,{children:"Field Temperature"}),(0,e.jsx)(t.oJ.Cell,{children:"Field Strength"}),(0,e.jsx)(t.oJ.Cell,{children:"Plasma Content"})]}),h.map(function(c){return(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsx)(t.oJ.Cell,{children:c.name}),(0,e.jsxs)(t.oJ.Cell,{children:[c.x,", ",c.y,", ",c.z]}),(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsx)(t.q,{icon:"power-off",content:c.has_field?"Online":"Offline",selected:c.has_field,disabled:!c.core_operational,onClick:function(){return u("toggle_active",{core:c.ref})}})}),(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsx)(t.q,{icon:"power-off",content:c.reactant_dump?"Dump":"Maintain",selected:c.has_field,disabled:!c.core_operational,onClick:function(){return u("toggle_reactantdump",{core:c.ref})}})}),(0,e.jsx)(t.oJ.Cell,{children:c.field_instability}),(0,e.jsx)(t.oJ.Cell,{children:c.field_temperature}),(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsx)(t.S6,{forcedInputWidth:"60px",size:1.25,color:!!c.has_field&&"yellow",value:c.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(l,f){return u("set_fieldstr",{core:c.ref,fieldstr:f})}})}),(0,e.jsx)(t.oJ.Cell,{})]},c.name)})]})})}},66676:function(S,y,n){"use strict";n.r(y),n.d(y,{RustFuelContent:function(){return j},RustFuelControl:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(){return(0,e.jsx)(r.qo,{width:627,height:700,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(j,{})})})},j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.fuels;return(0,e.jsx)(t.iG,{title:"Fuel Injectors",buttons:(0,e.jsx)(t.q,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return u("set_tag")}}),children:(0,e.jsxs)(t.oJ,{children:[(0,e.jsxs)(t.oJ.Row,{header:!0,children:[(0,e.jsx)(t.oJ.Cell,{children:"Name"}),(0,e.jsx)(t.oJ.Cell,{children:"Position"}),(0,e.jsx)(t.oJ.Cell,{children:"Status"}),(0,e.jsx)(t.oJ.Cell,{children:"Remaining Fuel"}),(0,e.jsx)(t.oJ.Cell,{children:"Fuel Rod Composition"})]}),h.map(function(c){return(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsx)(t.oJ.Cell,{children:c.name}),(0,e.jsxs)(t.oJ.Cell,{children:[c.x,", ",c.y,", ",c.z]}),(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsx)(t.q,{icon:"power-off",content:c.active?"Online":"Offline",selected:c.active,disabled:!c.deployed,onClick:function(){return u("toggle_active",{fuel:c.ref})}})}),(0,e.jsx)(t.oJ.Cell,{children:c.fuel_amt}),(0,e.jsx)(t.oJ.Cell,{children:c.fuel_type})]},c.name)})]})})}},43136:function(S,y,n){"use strict";n.r(y),n.d(y,{Secbot:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.on,h=u.open,c=u.locked,l=u.idcheck,f=u.check_records,m=u.check_arrest,v=u.arrest_type,p=u.declare_arrests,g=u.bot_patrolling,_=u.patrol;return(0,e.jsx)(r.qo,{width:390,height:320,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[(0,e.jsx)(t.iG,{title:"Automatic Security Unit v2.0",buttons:(0,e.jsx)(t.q,{icon:"power-off",selected:d,onClick:function(){return x("power")},children:d?"On":"Off"}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Maintenance Panel",color:h?"bad":"good",children:h?"Open":"Closed"}),(0,e.jsx)(t.Ce.Item,{label:"Behavior Controls",color:c?"good":"bad",children:c?"Locked":"Unlocked"})]})}),!c&&(0,e.jsx)(t.iG,{title:"Behavior Controls",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Check for Weapon Authorization",children:(0,e.jsx)(t.q,{icon:l?"toggle-on":"toggle-off",selected:l,onClick:function(){return x("idcheck")},children:l?"Yes":"No"})}),(0,e.jsx)(t.Ce.Item,{label:"Check Security Records",children:(0,e.jsx)(t.q,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){return x("ignorerec")},children:f?"Yes":"No"})}),(0,e.jsx)(t.Ce.Item,{label:"Check Arrest Status",children:(0,e.jsx)(t.q,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return x("ignorearr")},children:m?"Yes":"No"})}),(0,e.jsx)(t.Ce.Item,{label:"Operating Mode",children:(0,e.jsx)(t.q,{icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return x("switchmode")},children:v?"Detain":"Arrest"})}),(0,e.jsx)(t.Ce.Item,{label:"Report Arrests",children:(0,e.jsx)(t.q,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("declarearrests")},children:p?"Yes":"No"})}),!!g&&(0,e.jsx)(t.Ce.Item,{label:"Auto Patrol",children:(0,e.jsx)(t.q,{icon:_?"toggle-on":"toggle-off",selected:_,onClick:function(){return x("patrol")},children:_?"Yes":"No"})})]})})||null]})})}},36984:function(S,y,n){"use strict";n.r(y),n.d(y,{SecureSafe:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]],c=d.locked,l=d.l_setshort,f=d.code,m=d.emagged;return(0,e.jsx)(t.kv,{width:"185px",children:(0,e.jsx)(t.ye,{width:"1px",children:h.map(function(v){return(0,e.jsx)(t.ye.Column,{children:v.map(function(p){return(0,e.jsx)(t.q,{fluid:!0,bold:!0,mb:"6px",content:p,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!m||!!l&&1||p!=="R"&&!c||f==="ERROR"&&p!=="R"&&1,onClick:function(){return u("type",{digit:p})}},p)})},v[0])})})})},j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.code,c=d.l_setshort,l=d.l_set,f=d.emagged,m=d.locked,v=!(l||c);return(0,e.jsx)(r.qo,{width:250,height:380,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsxs)(t.kv,{m:"6px",children:[v&&(0,e.jsx)(t.yc,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!f&&(0,e.jsx)(t.yc,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!c&&(0,e.jsx)(t.yc,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,e.jsx)(t.iG,{height:"60px",children:(0,e.jsx)(t.kv,{textAlign:"center",position:"center",fontSize:"35px",children:h&&h||(0,e.jsx)(t.kv,{textColor:m?"red":"green",children:m?"LOCKED":"UNLOCKED"})})}),(0,e.jsxs)(t.Cu,{ml:"3px",children:[(0,e.jsx)(t.Cu.Item,{children:(0,e.jsx)(i,{})}),(0,e.jsx)(t.Cu.Item,{ml:"6px",width:"129px"})]})]})})})}},68892:function(S,y,n){"use strict";n.r(y),n.d(y,{SecurityRecords:function(){return d}});var e=n(33496),a=n(45280),t=n(33404),r=n(8020),i=n(76512),j=n(74800),C=n(79092),x=n(66632),u=function(p){(0,r.modalOpen)("edit",{field:p.edit,value:p.value})},d=function(p){var g=(0,a.yy)().data,_=g.authenticated,E=g.screen;if(!_)return(0,e.jsx)(i.qo,{width:700,height:680,children:(0,e.jsx)(i.qo.Content,{children:(0,e.jsx)(C.LoginScreen,{})})});var I;return E===2?I=(0,e.jsx)(h,{}):E===3?I=(0,e.jsx)(c,{}):E===4&&(I=(0,e.jsx)(l,{})),(0,e.jsxs)(i.qo,{width:700,height:680,children:[(0,e.jsx)(r.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,e.jsxs)(i.qo.Content,{scrollable:!0,children:[(0,e.jsx)(j.LoginInfo,{}),(0,e.jsx)(x.TemporaryNotice,{}),(0,e.jsx)(v,{}),(0,e.jsx)(t.iG,{flexGrow:!0,children:I})]})]})},h=function(p){var g=(0,a.yy)(),_=g.act,E=g.data,I=E.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.EF,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(M,P){return _("search",{t1:P})}}),(0,e.jsx)(t.kv,{mt:"0.5rem",children:I.map(function(M,P){return(0,e.jsx)(t.q,{icon:"user",mb:"0.5rem",color:M.color,content:M.id+": "+M.name+" (Criminal Status: "+M.criminal+")",onClick:function(){return _("d_rec",{d_rec:M.ref})}},P)})})]})},c=function(p){var g=(0,a.yy)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(t.q,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.q.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){return g("del_all")}})]})},l=function(p){var g=(0,a.yy)(),_=g.act,E=g.data,I=E.security,M=E.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.iG,{title:"General Data",mt:"-6px",children:(0,e.jsx)(f,{})}),(0,e.jsx)(t.iG,{title:"Security Data",children:(0,e.jsx)(m,{})}),(0,e.jsxs)(t.iG,{title:"Actions",children:[(0,e.jsx)(t.q.Confirm,{icon:"trash",disabled:!!I.empty,content:"Delete Security Record",color:"bad",onClick:function(){return _("del_r")}}),(0,e.jsx)(t.q.Confirm,{icon:"trash",disabled:!!I.empty,content:"Delete Record (All)",color:"bad",onClick:function(){return _("del_r_2")}}),(0,e.jsx)(t.q,{icon:M?"spinner":"print",disabled:M,iconSpin:!!M,content:"Print Entry",ml:"0.5rem",onClick:function(){return _("print_p")}}),(0,e.jsx)("br",{}),(0,e.jsx)(t.q,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return _("screen",{screen:2})}})]})]})},f=function(p){var g=(0,a.yy)(),_=g.act,E=g.data,I=E.general;return!I||!I.fields?(0,e.jsx)(t.kv,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(t.Cu,{children:[(0,e.jsx)(t.Cu.Item,{children:(0,e.jsx)(t.Ce,{children:I.fields.map(function(M,P){return(0,e.jsxs)(t.Ce.Item,{label:M.field,children:[(0,e.jsx)(t.kv,{height:"20px",inline:!0,preserveWhitespace:!0,children:M.value}),!!M.edit&&(0,e.jsx)(t.q,{icon:"pen",ml:"0.5rem",onClick:function(){return u(M)}})]},P)})})}),(0,e.jsxs)(t.Cu.Item,{textAlign:"right",children:[!!I.has_photos&&I.photos.map(function(M,P){return(0,e.jsxs)(t.kv,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.jsx)("img",{src:M.substr(1,M.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)("br",{}),"Photo #",P+1]},P)}),(0,e.jsxs)(t.kv,{children:[(0,e.jsx)(t.q,{onClick:function(){return _("photo_front")},children:"Update Front Photo"}),(0,e.jsx)(t.q,{onClick:function(){return _("photo_side")},children:"Update Side Photo"})]})]})]})},m=function(p){var g=(0,a.yy)(),_=g.act,E=g.data,I=E.security;return!I||!I.fields?(0,e.jsxs)(t.kv,{color:"bad",children:["Security records lost!",(0,e.jsx)(t.q,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return _("new")}})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ce,{children:I.fields.map(function(M,P){return(0,e.jsx)(t.Ce.Item,{label:M.field,children:(0,e.jsxs)(t.kv,{preserveWhitespace:!0,children:[M.value,(0,e.jsx)(t.q,{icon:"pen",ml:"0.5rem",mb:M.line_break?"1rem":"initial",onClick:function(){return u(M)}})]})},P)})}),(0,e.jsxs)(t.iG,{title:"Comments/Log",children:[I.comments.length===0?(0,e.jsx)(t.kv,{color:"label",children:"No comments found."}):I.comments.map(function(M,P){return(0,e.jsxs)(t.kv,{children:[(0,e.jsx)(t.kv,{color:"label",inline:!0,children:M.header}),(0,e.jsx)("br",{}),M.text,(0,e.jsx)(t.q,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return _("del_c",{del_c:P+1})}})]},P)}),(0,e.jsx)(t.q,{icon:"comment",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,r.modalOpen)("add_c")}})]})]})},v=function(p){var g=(0,a.yy)(),_=g.act,E=g.data,I=E.screen;return(0,e.jsxs)(t.kZ,{children:[(0,e.jsx)(t.kZ.Tab,{selected:I===2,icon:"list",onClick:function(){return _("screen",{screen:2})},children:"List Records"}),(0,e.jsx)(t.kZ.Tab,{icon:"wrench",selected:I===3,onClick:function(){return _("screen",{screen:3})},children:"Record Maintenance"})]})}},95448:function(S,y,n){"use strict";n.r(y),n.d(y,{SeedStorage:function(){return C}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(49900),j=n(47392),C=function(x){var u=(0,a.yy)(),d=u.act,h=u.data,c=h.scanner,l=h.seeds,f=(0,j.cp)(function(m){return m.name.toLowerCase()})(l);return(0,e.jsx)(r.qo,{width:600,height:760,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(t.iG,{title:"Seeds",children:f.map(function(m){return(0,e.jsxs)(t.Cu,{spacing:1,mt:-1,children:[(0,e.jsx)(t.Cu.Item,{basis:"60%",children:(0,e.jsx)(t.Uv,{title:(0,i.Yl)(m.name)+" #"+m.uid,children:(0,e.jsx)(t.iG,{width:"165%",title:"Traits",children:(0,e.jsx)(t.Ce,{children:Object.keys(m.traits).map(function(v){return(0,e.jsx)(t.Ce.Item,{label:(0,i.Yl)(v),children:m.traits[v]},v)})})})})}),(0,e.jsxs)(t.Cu.Item,{mt:.4,children:[m.amount," Remaining"]}),(0,e.jsx)(t.Cu.Item,{grow:1,children:(0,e.jsx)(t.q,{fluid:!0,icon:"download",onClick:function(){return d("vend",{id:m.id})},children:"Vend"})}),(0,e.jsx)(t.Cu.Item,{grow:1,children:(0,e.jsx)(t.q,{fluid:!0,icon:"trash",onClick:function(){return d("purge",{id:m.id})},children:"Purge"})})]},m.name+m.uid)})})})})}},10436:function(S,y,n){"use strict";n.r(y),n.d(y,{ShieldCapacitor:function(){return C}});var e=n(33496),a=n(45280),t=n(76512),r=n(33404),i=n(10608),j=n(96060),C=function(x){var u=(0,a.yy)(),d=u.act,h=u.data,c=h.active,l=h.time_since_fail,f=h.stored_charge,m=h.max_charge,v=h.charge_rate,p=h.max_charge_rate;return(0,e.jsx)(t.qo,{width:500,height:400,children:(0,e.jsx)(t.qo.Content,{children:(0,e.jsx)(r.iG,{title:"Status",buttons:(0,e.jsx)(r.q,{icon:"power-off",selected:c,content:c?"Online":"Offline",onClick:function(){return d("toggle")}}),children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Capacitor Status",children:l>2?(0,e.jsx)(r.kv,{color:"good",children:"OK."}):(0,e.jsx)(r.kv,{color:"bad",children:"Discharging!"})}),(0,e.jsxs)(r.Ce.Item,{label:"Stored Energy",children:[(0,e.jsx)(r.Gg,{value:f,format:function(g){return(0,j._c)(g,0,"J")}})," ","(",(0,e.jsx)(r.Gg,{value:100*(0,i.kL)(f/m,1)}),"%)"]}),(0,e.jsx)(r.Ce.Item,{label:"Charge Rate",children:(0,e.jsx)(r.WC,{value:v,step:100,stepPixelSize:.2,minValue:1e4,maxValue:p,format:function(g){return(0,j._s)(g)},onDrag:function(g,_){return d("charge_rate",{rate:_})}})})]})})})})}},52208:function(S,y,n){"use strict";n.r(y),n.d(y,{ShieldGenerator:function(){return x}});var e=n(33496),a=n(45280),t=n(76512),r=n(33404),i=n(10608),j=n(96060),C=n(44664),x=function(h){var c=(0,a.yy)(),l=c.act,f=c.data,m=f.locked;return(0,e.jsx)(t.qo,{width:500,height:400,children:(0,e.jsx)(t.qo.Content,{children:m?(0,e.jsx)(u,{}):(0,e.jsx)(d,{})})})},u=function(h){return(0,e.jsxs)(C.FullscreenNotice,{title:"Locked",children:[(0,e.jsx)(r.kv,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(r.GW,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(r.kv,{color:"label",my:"1rem",children:"Swipe your ID to begin."})]})},d=function(h){var c=(0,a.yy)(),l=c.act,f=c.data,m=f.lockedData,v=m.capacitors,p=m.active,g=m.failing,_=m.radius,E=m.max_radius,I=m.z_range,M=m.max_z_range,P=m.average_field_strength,D=m.target_field_strength,k=m.max_field_strength,L=m.shields,F=m.upkeep,w=m.strengthen_rate,N=m.max_strengthen_rate,$=m.gen_power,H=(v||[]).length;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.iG,{title:"Status",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Field Status",children:g?(0,e.jsx)(r.kv,{color:"bad",children:"Unstable"}):(0,e.jsx)(r.kv,{color:"good",children:"Stable"})}),(0,e.jsxs)(r.Ce.Item,{label:"Overall Field Strength",children:[(0,i.kL)(P,2)," Renwick (",D&&(0,i.kL)(100*P/D,1)||"NA","%)"]}),(0,e.jsx)(r.Ce.Item,{label:"Upkeep Power",children:(0,j._s)(F)}),(0,e.jsx)(r.Ce.Item,{label:"Shield Generation Power",children:(0,j._s)($)}),(0,e.jsxs)(r.Ce.Item,{label:"Currently Shielded",children:[L," m\xB2"]}),(0,e.jsx)(r.Ce.Item,{label:"Capacitors",children:(0,e.jsx)(r.Ce,{children:H?v.map(function(K,U){return(0,e.jsxs)(r.Ce.Item,{label:"Capacitor #"+U,children:[K.active?(0,e.jsx)(r.kv,{color:"good",children:"Online"}):(0,e.jsx)(r.kv,{color:"bad",children:"Offline"}),(0,e.jsxs)(r.Ce,{children:[(0,e.jsxs)(r.Ce.Item,{label:"Charge",children:[(0,j._c)(K.stored_charge,0,"J")," (",100*(0,i.kL)(K.stored_charge/K.max_charge,2),"%)"]}),(0,e.jsx)(r.Ce.Item,{label:"Status",children:K.failing?(0,e.jsx)(r.kv,{color:"bad",children:"Discharging"}):(0,e.jsx)(r.kv,{color:"good",children:"OK."})})]})]},U)}):(0,e.jsx)(r.Ce.Item,{color:"bad",children:"No Capacitors Connected"})})})]})}),(0,e.jsx)(r.iG,{title:"Controls",buttons:(0,e.jsx)(r.q,{icon:"power-off",content:p?"Online":"Offline",selected:p,onClick:function(){return l("toggle")}}),children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Coverage Radius",children:(0,e.jsx)(r.WC,{fluid:!0,stepPixelSize:6,minValue:0,maxValue:E,value:_,unit:"m",onDrag:function(K,U){return l("change_radius",{val:U})}})}),(0,e.jsx)(r.Ce.Item,{label:"Vertical Shielding",children:(0,e.jsx)(r.WC,{fluid:!0,stepPixelSize:12,minValue:0,maxValue:M,value:I,unit:"vertical range",onDrag:function(K,U){return l("z_range",{val:U})}})}),(0,e.jsx)(r.Ce.Item,{label:"Charge Rate",children:(0,e.jsx)(r.WC,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:N,value:w,format:function(K){return(0,i.kL)(K,1)},unit:"Renwick/s",onDrag:function(K,U){return l("strengthen_rate",{val:U})}})}),(0,e.jsx)(r.Ce.Item,{label:"Maximum Field Strength",children:(0,e.jsx)(r.WC,{fluid:!0,stepPixelSize:12,minValue:1,maxValue:k,value:D,unit:"Renwick",onDrag:function(K,U){return l("target_field_strength",{val:U})}})})]})})]})}},72036:function(S,y,n){"use strict";n.r(y),n.d(y,{ShutoffMonitor:function(){return i},ShutoffMonitorContent:function(){return j}});var e=n(33496),a=n(45280),t=n(76512),r=n(33404),i=function(C){return(0,e.jsx)(t.qo,{width:627,height:700,children:(0,e.jsx)(t.qo.Content,{children:(0,e.jsx)(j,{})})})},j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.valves;return(0,e.jsx)(r.iG,{title:"Valves",children:(0,e.jsxs)(r.oJ,{children:[(0,e.jsxs)(r.oJ.Row,{header:!0,children:[(0,e.jsx)(r.oJ.Cell,{children:"Name"}),(0,e.jsx)(r.oJ.Cell,{children:"Position"}),(0,e.jsx)(r.oJ.Cell,{children:"Open"}),(0,e.jsx)(r.oJ.Cell,{children:"Mode"}),(0,e.jsx)(r.oJ.Cell,{children:"Actions"})]}),h.map(function(c){return(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsx)(r.oJ.Cell,{children:c.name}),(0,e.jsxs)(r.oJ.Cell,{children:[c.x,", ",c.y,", ",c.z]}),(0,e.jsx)(r.oJ.Cell,{children:c.open?"Yes":"No"}),(0,e.jsx)(r.oJ.Cell,{children:c.enabled?"Auto":"Manual"}),(0,e.jsxs)(r.oJ.Cell,{children:[(0,e.jsx)(r.q,{icon:"power-off",content:c.open?"Opened":"Closed",selected:c.open,disabled:!c.enabled,onClick:function(){return u("toggle_open",{valve:c.ref})}}),(0,e.jsx)(r.q,{icon:"power-off",content:c.enabled?"Auto":"Manual",selected:c.enabled,onClick:function(){return u("toggle_enable",{valve:c.ref})}})]})]},c.name)})]})})}},98688:function(S,y,n){"use strict";n.r(y),n.d(y,{ShuttleControl:function(){return f}});var e=n(33496),a=n(49900),t=n(45280),r=n(33404),i=n(76512),j=function(m,v){var p="ERROR",g="bad",_=!1;return m==="docked"?(p="DOCKED",g="good"):m==="docking"?(p="DOCKING",g="average",_=!0):m==="undocking"?(p="UNDOCKING",g="average",_=!0):m==="undocked"&&(p="UNDOCKED",g="#676767"),_&&v&&(p=p+"-MANUAL"),(0,e.jsx)(r.kv,{color:g,children:p})},C=function(m){var v=(0,t.yy)(),p=v.act,g=v.data,_=m.engineName,E=_===void 0?"Bluespace Drive":_,I=g.shuttle_status,M=g.shuttle_state,P=g.has_docking,D=g.docking_status,k=g.docking_override,L=g.docking_codes;return(0,e.jsxs)(r.iG,{title:"Shuttle Status",children:[(0,e.jsx)(r.kv,{color:"label",mb:1,children:I}),(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:E,children:M==="idle"&&(0,e.jsx)(r.kv,{color:"#676767",bold:!0,children:"IDLE"})||M==="warmup"&&(0,e.jsx)(r.kv,{color:"#336699",children:"SPINNING UP"})||M==="in_transit"&&(0,e.jsx)(r.kv,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(r.kv,{color:"bad",children:"ERROR"})}),P&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ce.Item,{label:"Docking Status",children:j(D,k)}),(0,e.jsx)(r.Ce.Item,{label:"Docking Codes",children:(0,e.jsx)(r.q,{icon:"pen",onClick:function(){return p("set_codes")},children:L||"Not Set"})})]})||null]})]})},x=function(m){var v=(0,t.yy)(),p=v.act,g=v.data,_=g.can_launch,E=g.can_cancel,I=g.can_force;return(0,e.jsx)(r.iG,{title:"Controls",children:(0,e.jsxs)(r.Cu,{spacing:1,children:[(0,e.jsx)(r.Cu.Item,{grow:1,children:(0,e.jsx)(r.q,{onClick:function(){return p("move")},disabled:!_,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,e.jsx)(r.Cu.Item,{grow:1,children:(0,e.jsx)(r.q,{onClick:function(){return p("cancel")},disabled:!E,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,e.jsx)(r.Cu.Item,{grow:1,children:(0,e.jsx)(r.q,{onClick:function(){return p("force")},color:"bad",disabled:!I,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})},u=function(m){var v=(0,t.yy)(),p=v.act,g=v.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(C,{}),(0,e.jsx)(x,{})]})},d=function(m){var v=(0,t.yy)(),p=v.act,g=v.data,_=g.can_cloak,E=g.can_pick,I=g.legit,M=g.cloaked,P=g.destination_name;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(C,{}),(0,e.jsx)(r.iG,{title:"Multishuttle Controls",children:(0,e.jsxs)(r.Ce,{children:[_&&(0,e.jsx)(r.Ce.Item,{label:I?"ATC Inhibitor":"Cloaking",children:(0,e.jsx)(r.q,{selected:M,icon:M?"eye":"eye-o",onClick:function(){return p("toggle_cloaked")},children:M?"Enabled":"Disabled"})})||null,(0,e.jsx)(r.Ce.Item,{label:"Current Destination",children:(0,e.jsx)(r.q,{icon:"taxi",disabled:!E,onClick:function(){return p("pick")},children:P})})]})}),(0,e.jsx)(x,{})]})},h=function(m){var v=(0,t.yy)(),p=v.act,g=v.data,_=g.can_pick,E=g.destination_name,I=g.fuel_usage,M=g.fuel_span,P=g.remaining_fuel;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(C,{engineName:"Engines"}),(0,e.jsx)(r.iG,{title:"Jump Controls",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Current Destination",children:(0,e.jsx)(r.q,{icon:"taxi",disabled:!_,onClick:function(){return p("pick")},children:E})}),I&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.Ce.Item,{label:"Est. Delta-V Budget",color:M,children:[P," m/s"]}),(0,e.jsxs)(r.Ce.Item,{label:"Avg. Delta-V Per Maneuver",children:[I," m/s"]})]})||null]})}),(0,e.jsx)(x,{})]})},c=function(m){var v=(0,t.yy)(),p=v.act,g=v.data,_=g.autopilot,E=g.can_rename,I=g.shuttle_state,M=g.is_moving,P=g.skip_docking,D=g.docking_status,k=g.docking_override,L=g.shuttle_location,F=g.can_cloak,w=g.cloaked,N=g.can_autopilot,$=g.routes,H=g.is_in_transit,K=g.travel_progress,U=g.time_left,q=g.doors,Y=g.sensors;return(0,e.jsxs)(e.Fragment,{children:[_&&(0,e.jsx)(r.iG,{title:"AI PILOT (CLASS D) ACTIVE",children:(0,e.jsx)(r.kv,{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.iG,{title:"Shuttle Status",buttons:E&&(0,e.jsx)(r.q,{icon:"pen",onClick:function(){return p("rename_command")},children:"Rename"})||null,children:[(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Engines",children:I==="idle"&&(0,e.jsx)(r.kv,{color:"#676767",bold:!0,children:"IDLE"})||I==="warmup"&&(0,e.jsx)(r.kv,{color:"#336699",children:"SPINNING UP"})||I==="in_transit"&&(0,e.jsx)(r.kv,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(r.kv,{color:"bad",children:"ERROR"})}),!M&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ce.Item,{label:"Current Location",children:(0,a.Yl)(L)}),!P&&(0,e.jsx)(r.Ce.Item,{label:"Docking Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{selected:D==="docked",disabled:D!=="undocked"&&D!=="docked",onClick:function(){return p("dock_command")},children:"Dock"}),(0,e.jsx)(r.q,{selected:D==="undocked",disabled:D!=="docked"&&D!=="undocked",onClick:function(){return p("undock_command")},children:"Undock"})]}),children:(0,e.jsx)(r.kv,{bold:!0,inline:!0,children:j(D,k)})})||null,F&&(0,e.jsx)(r.Ce.Item,{label:"Cloaking",children:(0,e.jsx)(r.q,{selected:w,icon:w?"eye":"eye-o",onClick:function(){return p("toggle_cloaked")},children:w?"Enabled":"Disabled"})})||null,N&&(0,e.jsx)(r.Ce.Item,{label:"Autopilot",children:(0,e.jsx)(r.q,{selected:_,icon:_?"eye":"eye-o",onClick:function(){return p("toggle_autopilot")},children:_?"Enabled":"Disabled"})})||null]})||null]}),!M&&(0,e.jsx)(r.iG,{level:2,title:"Available Destinations",children:(0,e.jsx)(r.Ce,{children:$.length&&$.map(function(Z){return(0,e.jsx)(r.Ce.Item,{label:Z.name,children:(0,e.jsx)(r.q,{icon:"rocket",onClick:function(){return p("traverse",{traverse:Z.index})},children:Z.travel_time})},Z.name)})||(0,e.jsx)(r.Ce.Item,{label:"Error",color:"bad",children:"No routes found."})})})||null]}),H&&(0,e.jsx)(r.iG,{title:"Transit ETA",children:(0,e.jsx)(r.Ce,{children:(0,e.jsx)(r.Ce.Item,{label:"Distance from target",children:(0,e.jsxs)(r.cH,{color:"good",minValue:0,maxValue:100,value:K,children:[U,"s"]})})})})||null,Object.keys(q).length&&(0,e.jsx)(r.iG,{title:"Hatch Status",children:(0,e.jsx)(r.Ce,{children:Object.keys(q).map(function(Z){var z=q[Z];return(0,e.jsxs)(r.Ce.Item,{label:Z,children:[z.open&&(0,e.jsx)(r.kv,{inline:!0,color:"bad",children:"Open"})||(0,e.jsx)(r.kv,{inline:!0,color:"good",children:"Closed"}),"\xA0-\xA0",z.bolted&&(0,e.jsx)(r.kv,{inline:!0,color:"good",children:"Bolted"})||(0,e.jsx)(r.kv,{inline:!0,color:"bad",children:"Unbolted"})]},Z)})})})||null,Object.keys(Y).length&&(0,e.jsx)(r.iG,{title:"Sensors",children:(0,e.jsx)(r.Ce,{children:Object.keys(Y).map(function(Z){var z=Y[Z];return z.reading===-1?(0,e.jsx)(r.Ce.Item,{label:Z,color:"bad",children:"Unable to get sensor air reading."}):(0,e.jsx)(r.Ce.Item,{label:Z,children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsxs)(r.Ce.Item,{label:"Pressure",children:[z.pressure,"kPa"]}),(0,e.jsxs)(r.Ce.Item,{label:"Temperature",children:[z.temp,"\xB0C"]}),(0,e.jsxs)(r.Ce.Item,{label:"Oxygen",children:[z.oxygen,"%"]}),(0,e.jsxs)(r.Ce.Item,{label:"Nitrogen",children:[z.nitrogen,"%"]}),(0,e.jsxs)(r.Ce.Item,{label:"Carbon Dioxide",children:[z.carbon_dioxide,"%"]}),(0,e.jsxs)(r.Ce.Item,{label:"Phoron",children:[z.phoron,"%"]}),z.other&&(0,e.jsxs)(r.Ce.Item,{label:"Other",children:[z.other,"%"]})||null]})},Z)})})})||null]})},l={ShuttleControlConsoleDefault:(0,e.jsx)(u,{}),ShuttleControlConsoleMulti:(0,e.jsx)(d,{}),ShuttleControlConsoleExploration:(0,e.jsx)(h,{}),ShuttleControlConsoleWeb:(0,e.jsx)(c,{})},f=function(m){var v=(0,t.yy)(),p=v.act,g=v.data,_=g.subtemplate;return(0,e.jsx)(i.qo,{width:470,height:_==="ShuttleControlConsoleWeb"?560:370,children:(0,e.jsx)(i.qo.Content,{children:l[_]})})}},78752:function(S,y,n){"use strict";n.r(y),n.d(y,{Signaler:function(){return j},SignalerContent:function(){return C}});var e=n(33496),a=n(10608),t=n(45280),r=n(33404),i=n(76512),j=function(){return(0,e.jsx)(i.qo,{width:280,height:132,children:(0,e.jsx)(i.qo.Content,{children:(0,e.jsx)(C,{})})})},C=function(x){var u=(0,t.yy)(),d=u.act,h=u.data,c=h.code,l=h.frequency,f=h.minFrequency,m=h.maxFrequency;return(0,e.jsxs)(r.iG,{children:[(0,e.jsxs)(r.ye,{children:[(0,e.jsx)(r.ye.Column,{size:1.4,color:"label",children:"Frequency:"}),(0,e.jsx)(r.ye.Column,{children:(0,e.jsx)(r.WC,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:f/10,maxValue:m/10,value:l/10,format:function(v){return(0,a.yI)(v,1)},width:"80px",onDrag:function(v,p){return d("freq",{freq:p})}})}),(0,e.jsx)(r.ye.Column,{children:(0,e.jsx)(r.q,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return d("reset",{reset:"freq"})}})})]}),(0,e.jsxs)(r.ye,{mt:.6,children:[(0,e.jsx)(r.ye.Column,{size:1.4,color:"label",children:"Code:"}),(0,e.jsx)(r.ye.Column,{children:(0,e.jsx)(r.WC,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(v,p){return d("code",{code:p})}})}),(0,e.jsx)(r.ye.Column,{children:(0,e.jsx)(r.q,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return d("reset",{reset:"code"})}})})]}),(0,e.jsx)(r.ye,{mt:.8,children:(0,e.jsx)(r.ye.Column,{children:(0,e.jsx)(r.q,{mb:-.1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){return d("signal")}})})})]})}},55104:function(S,y,n){"use strict";n.r(y),n.d(y,{Sleeper:function(){return d}});var e=n(33496),a=n(10608),t=n(45280),r=n(33404),i=n(76512),j=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],C=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],x={average:[.25,.5],bad:[.5,1/0]},u=["bad","average","average","good","average","average","bad"],d=function(p){var g=(0,t.yy)(),_=g.act,E=g.data,I=E.hasOccupant,M=I?(0,e.jsx)(h,{}):(0,e.jsx)(v,{});return(0,e.jsx)(i.qo,{width:550,height:760,children:(0,e.jsx)(i.qo.Content,{className:"Layout__content--flexColumn",children:M})})},h=function(p){var g=(0,t.yy)(),_=g.act,E=g.data,I=E.occupant,M=E.dialysis,P=E.stomachpumping;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(c,{}),(0,e.jsx)(l,{}),(0,e.jsx)(f,{title:"Dialysis",active:M,actToDo:"togglefilter"}),(0,e.jsx)(f,{title:"Stomach Pump",active:P,actToDo:"togglepump"}),(0,e.jsx)(m,{})]})},c=function(p){var g=(0,t.yy)(),_=g.act,E=g.data,I=E.occupant,M=E.auto_eject_dead,P=E.stasis;return(0,e.jsx)(r.iG,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.kv,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.jsx)(r.q,{icon:M?"toggle-on":"toggle-off",selected:M,content:M?"On":"Off",onClick:function(){return _("auto_eject_dead_"+(M?"off":"on"))}}),(0,e.jsx)(r.q,{icon:"user-slash",content:"Eject",onClick:function(){return _("ejectify")}}),(0,e.jsx)(r.q,{content:P,onClick:function(){return _("changestasis")}})]}),children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Name",children:I.name}),(0,e.jsx)(r.Ce.Item,{label:"Health",children:(0,e.jsx)(r.cH,{min:0,max:I.maxHealth,value:I.health/I.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.kL)(I.health,0)})}),(0,e.jsx)(r.Ce.Item,{label:"Status",color:j[I.stat][0],children:j[I.stat][1]}),(0,e.jsx)(r.Ce.Item,{label:"Temperature",children:(0,e.jsxs)(r.cH,{min:"0",max:I.maxTemp,value:I.bodyTemperature/I.maxTemp,color:u[I.temperatureSuitability+3],children:[(0,a.kL)(I.btCelsius,0),"\xB0C,",(0,a.kL)(I.btFaren,0),"\xB0F"]})}),!!I.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ce.Item,{label:"Blood Level",children:(0,e.jsxs)(r.cH,{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.Ce.Item,{label:"Pulse",verticalAlign:"middle",children:[I.pulse," BPM"]})]})]})})},l=function(p){var g=(0,t.yy)().data,_=g.occupant;return(0,e.jsx)(r.iG,{title:"Damage",children:(0,e.jsx)(r.Ce,{children:C.map(function(E,I){return(0,e.jsx)(r.Ce.Item,{label:E[0],children:(0,e.jsx)(r.cH,{min:"0",max:"100",value:_[E[1]]/100,ranges:x,children:(0,a.kL)(_[E[1]],0)},I)},I)})})})},f=function(p){var g=(0,t.yy)(),_=g.act,E=g.data,I=E.isBeakerLoaded,M=E.beakerMaxSpace,P=E.beakerFreeSpace,D=p.active,k=p.actToDo,L=p.title,F=D&&P>0;return(0,e.jsx)(r.iG,{title:L,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{disabled:!I||P<=0,selected:F,icon:F?"toggle-on":"toggle-off",content:F?"Active":"Inactive",onClick:function(){return _(k)}}),(0,e.jsx)(r.q,{disabled:!I,icon:"eject",content:"Eject",onClick:function(){return _("removebeaker")}})]}),children:I?(0,e.jsx)(r.Ce,{children:(0,e.jsx)(r.Ce.Item,{label:"Remaining Space",children:(0,e.jsxs)(r.cH,{min:"0",max:M,value:P/M,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[P,"u"]})})}):(0,e.jsx)(r.kv,{color:"label",children:"No beaker loaded."})})},m=function(p){var g=(0,t.yy)(),_=g.act,E=g.data,I=E.occupant,M=E.chemicals,P=E.maxchem,D=E.amounts;return(0,e.jsx)(r.iG,{title:"Chemicals",flexGrow:"1",children:M.map(function(k,L){var F="",w;return k.overdosing?(F="bad",w=(0,e.jsxs)(r.kv,{color:"bad",children:[(0,e.jsx)(r.GW,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):k.od_warning&&(F="average",w=(0,e.jsxs)(r.kv,{color:"average",children:[(0,e.jsx)(r.GW,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.jsx)(r.kv,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsx)(r.iG,{title:k.title,level:"3",mx:"0",lineHeight:"18px",buttons:w,children:(0,e.jsxs)(r.Cu,{align:"flex-start",children:[(0,e.jsxs)(r.cH,{min:"0",max:P,value:k.occ_amount/P,color:F,mr:"0.5rem",children:[k.pretty_amount,"/",P,"u"]}),D.map(function(N,$){return(0,e.jsx)(r.q,{disabled:!k.injectable||k.occ_amount+N>P||I.stat===2,icon:"syringe",content:N,mb:"0",height:"19px",onClick:function(){return _("chemical",{chemid:k.id,amount:N})}},$)})]})})},L)})})},v=function(p){var g=(0,t.yy)(),_=g.act,E=g.data,I=E.isBeakerLoaded;return(0,e.jsx)(r.iG,{textAlign:"center",flexGrow:"1",children:(0,e.jsx)(r.Cu,{height:"100%",children:(0,e.jsxs)(r.Cu.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.GW,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected.",I&&(0,e.jsx)(r.kv,{children:(0,e.jsx)(r.q,{icon:"eject",content:"Remove Beaker",onClick:function(){return _("removebeaker")}})})||null]})})})}},56444:function(S,y,n){"use strict";n.r(y),n.d(y,{SmartVend:function(){return j}});var e=n(33496),a=n(47392),t=n(45280),r=n(33404),i=n(76512),j=function(C){var x=(0,t.yy)(),u=x.act,d=x.config,h=x.data;return(0,e.jsx)(i.qo,{width:500,height:550,children:(0,e.jsx)(i.qo.Content,{scrollable:!0,children:(0,e.jsxs)(r.iG,{title:"Storage",children:[h.secure&&(0,e.jsx)(r.yc,{danger:h.locked===-1,info:h.locked!==-1,children:h.locked===-1?(0,e.jsx)(r.kv,{children:"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($..."}):(0,e.jsx)(r.kv,{children:"Secure Access: Please have your identification ready."})})||null,h.contents.length===0&&(0,e.jsxs)(r.yc,{children:["Unfortunately, this ",d.title," is empty."]})||(0,e.jsxs)(r.oJ,{children:[(0,e.jsxs)(r.oJ.Row,{header:!0,children:[(0,e.jsx)(r.oJ.Cell,{collapsing:!0,children:"Item"}),(0,e.jsx)(r.oJ.Cell,{collapsing:!0,textAlign:"center",children:"Amount"}),(0,e.jsx)(r.oJ.Cell,{collapsing:!0,textAlign:"center",children:"Dispense"})]}),(0,a.kH)(function(c,l){return(0,e.jsxs)(r.oJ.Row,{children:[(0,e.jsx)(r.oJ.Cell,{collapsing:!0,children:c.name}),(0,e.jsxs)(r.oJ.Cell,{collapsing:!0,textAlign:"center",children:[c.amount," in stock"]}),(0,e.jsxs)(r.oJ.Cell,{collapsing:!0,children:[(0,e.jsx)(r.q,{content:"1",disabled:c.amount<1,onClick:function(){return u("Release",{index:c.index,amount:1})}}),(0,e.jsx)(r.q,{content:"5",disabled:c.amount<5,onClick:function(){return u("Release",{index:c.index,amount:5})}}),(0,e.jsx)(r.q,{content:"25",disabled:c.amount<25,onClick:function(){return u("Release",{index:c.index,amount:25})}}),(0,e.jsx)(r.q,{content:"50",disabled:c.amount<50,onClick:function(){return u("Release",{index:c.index,amount:50})}}),(0,e.jsx)(r.q,{content:"Custom",disabled:c.amount<1,onClick:function(){return u("Release",{index:c.index})}}),(0,e.jsx)(r.q,{content:"All",disabled:c.amount<1,onClick:function(){return u("Release",{index:c.index,amount:c.amount})}})]})]},l)})(h.contents)]})]})})})}},62824:function(S,y,n){"use strict";n.r(y),n.d(y,{Smes:function(){return x}});var e=n(33496),a=n(45280),t=n(33404),r=n(96060),i=n(76512),j=n(10608),C=1e3,x=function(u){var d=(0,a.yy)(),h=d.act,c=d.data,l=c.capacityPercent,f=c.capacity,m=c.charge,v=c.inputAttempt,p=c.inputting,g=c.inputLevel,_=c.inputLevelMax,E=c.inputAvailable,I=c.outputAttempt,M=c.outputting,P=c.outputLevel,D=c.outputLevelMax,k=c.outputUsed,L=l>=100&&"good"||p&&"average"||"bad",F=M&&"good"||m>0&&"average"||"bad";return(0,e.jsx)(i.qo,{width:340,height:350,children:(0,e.jsxs)(i.qo.Content,{children:[(0,e.jsx)(t.iG,{title:"Stored Energy",children:(0,e.jsxs)(t.cH,{value:l*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[(0,j.kL)(m/(1e3*60),1)," kWh /"," ",(0,j.kL)(f/(1e3*60))," kWh (",l,"%)"]})}),(0,e.jsx)(t.iG,{title:"Input",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Charge Mode",buttons:(0,e.jsx)(t.q,{icon:v?"sync-alt":"times",selected:v,onClick:function(){return h("tryinput")},children:v?"On":"Off"}),children:(0,e.jsx)(t.kv,{color:L,children:l>=100&&"Fully Charged"||p&&"Charging"||"Not Charging"})}),(0,e.jsx)(t.Ce.Item,{label:"Target Input",children:(0,e.jsxs)(t.Cu,{inline:!0,width:"100%",children:[(0,e.jsxs)(t.Cu.Item,{children:[(0,e.jsx)(t.q,{icon:"fast-backward",disabled:g===0,onClick:function(){return h("input",{target:"min"})}}),(0,e.jsx)(t.q,{icon:"backward",disabled:g===0,onClick:function(){return h("input",{adjust:-1e4})}})]}),(0,e.jsx)(t.Cu.Item,{grow:1,mx:1,children:(0,e.jsx)(t.uQ,{value:g/C,fillValue:E/C,minValue:0,maxValue:_/C,step:5,stepPixelSize:4,format:function(w){return(0,r._s)(w*C,1)},onDrag:function(w,N){return h("input",{target:N*C})}})}),(0,e.jsxs)(t.Cu.Item,{children:[(0,e.jsx)(t.q,{icon:"forward",disabled:g===_,onClick:function(){return h("input",{adjust:1e4})}}),(0,e.jsx)(t.q,{icon:"fast-forward",disabled:g===_,onClick:function(){return h("input",{target:"max"})}})]})]})}),(0,e.jsx)(t.Ce.Item,{label:"Available",children:(0,r._s)(E)})]})}),(0,e.jsx)(t.iG,{title:"Output",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Output Mode",buttons:(0,e.jsx)(t.q,{icon:I?"power-off":"times",selected:I,onClick:function(){return h("tryoutput")},children:I?"On":"Off"}),children:(0,e.jsx)(t.kv,{color:F,children:M?"Sending":m>0?"Not Sending":"No Charge"})}),(0,e.jsx)(t.Ce.Item,{label:"Target Output",children:(0,e.jsxs)(t.Cu,{inline:!0,width:"100%",children:[(0,e.jsxs)(t.Cu.Item,{children:[(0,e.jsx)(t.q,{icon:"fast-backward",disabled:P===0,onClick:function(){return h("output",{target:"min"})}}),(0,e.jsx)(t.q,{icon:"backward",disabled:P===0,onClick:function(){return h("output",{adjust:-1e4})}})]}),(0,e.jsx)(t.Cu.Item,{grow:1,mx:1,children:(0,e.jsx)(t.uQ,{value:P/C,minValue:0,maxValue:D/C,step:5,stepPixelSize:4,format:function(w){return(0,r._s)(w*C,1)},onDrag:function(w,N){return h("output",{target:N*C})}})}),(0,e.jsxs)(t.Cu.Item,{children:[(0,e.jsx)(t.q,{icon:"forward",disabled:P===D,onClick:function(){return h("output",{adjust:1e4})}}),(0,e.jsx)(t.q,{icon:"fast-forward",disabled:P===D,onClick:function(){return h("output",{target:"max"})}})]})]})}),(0,e.jsx)(t.Ce.Item,{label:"Outputting",children:(0,r._s)(k)})]})})]})})}},17772:function(S,y,n){"use strict";n.r(y),n.d(y,{SolarControl:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(10608),j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.generated,c=d.generated_ratio,l=d.sun_angle,f=d.array_angle,m=d.rotation_rate,v=d.max_rotation_rate,p=d.tracking_state,g=d.connected_panels,_=d.connected_tracker;return(0,e.jsx)(r.qo,{width:380,height:230,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(t.iG,{title:"Status",buttons:(0,e.jsx)(t.q,{icon:"sync",content:"Scan for new hardware",onClick:function(){return u("refresh")}}),children:(0,e.jsxs)(t.ye,{children:[(0,e.jsx)(t.ye.Column,{children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Solar tracker",color:_?"good":"bad",children:_?"OK":"N/A"}),(0,e.jsx)(t.Ce.Item,{label:"Solar panels",color:g>0?"good":"bad",children:g})]})}),(0,e.jsx)(t.ye.Column,{size:1.5,children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Power output",children:(0,e.jsx)(t.cH,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:c,children:h+" W"})}),(0,e.jsxs)(t.Ce.Item,{label:"Star orientation",children:[l,"\xB0"]})]})})]})}),(0,e.jsx)(t.iG,{title:"Controls",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsxs)(t.Ce.Item,{label:"Tracking",children:[(0,e.jsx)(t.q,{icon:"times",content:"Off",selected:p===0,onClick:function(){return u("tracking",{mode:0})}}),(0,e.jsx)(t.q,{icon:"clock-o",content:"Timed",selected:p===1,onClick:function(){return u("tracking",{mode:1})}}),(0,e.jsx)(t.q,{icon:"sync",content:"Auto",selected:p===2,disabled:!_,onClick:function(){return u("tracking",{mode:2})}})]}),(0,e.jsxs)(t.Ce.Item,{label:"Azimuth",children:[(p===0||p===1)&&(0,e.jsx)(t.WC,{width:"52px",unit:"\xB0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:f,format:function(E){var I=Math.sign(E)>0?" (CW)":" (CCW)";return Math.abs((0,i.kL)(E))+I},onDrag:function(E,I){return u("azimuth",{value:I})}}),p===1&&(0,e.jsx)(t.WC,{width:"80px",unit:"deg/h",step:1,minValue:-v-.01,maxValue:v+.01,value:m,format:function(E){var I=Math.sign(E)>0?" (CW)":" (CCW)";return Math.abs((0,i.kL)(E))+I},onDrag:function(E,I){return u("azimuth_rate",{value:I})}}),p===2&&(0,e.jsxs)(t.kv,{inline:!0,color:"label",mt:"3px",children:[f+"\xB0"," (auto)"]})]})]})})]})})}},63928:function(S,y,n){"use strict";n.r(y),n.d(y,{SpaceHeater:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(36824),i=n(76512),j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.temp,c=d.minTemp,l=d.maxTemp,f=d.cell,m=d.power;return(0,e.jsx)(i.qo,{width:300,height:250,children:(0,e.jsxs)(i.qo.Content,{children:[(0,e.jsx)(t.iG,{title:"Status",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsxs)(t.Ce.Item,{label:"Target Temperature",children:[h," K (",h-r.ic,"\xB0 C)"]}),(0,e.jsxs)(t.Ce.Item,{label:"Current Charge",children:[m,"% ",!f&&"(No Cell Inserted)"]})]})}),(0,e.jsx)(t.iG,{title:"Controls",children:(0,e.jsxs)(t.Cw,{children:[(0,e.jsx)(t.Cw.Item,{label:"Thermostat",children:(0,e.jsx)(t.S6,{animated:!0,value:h-r.ic,minValue:c-r.ic,maxValue:l-r.ic,unit:"C",onChange:function(v,p){return u("temp",{newtemp:p+r.ic})}})}),(0,e.jsx)(t.Cw.Item,{label:"Cell",children:f?(0,e.jsx)(t.q,{icon:"eject",content:"Eject Cell",onClick:function(){return u("cellremove")}}):(0,e.jsx)(t.q,{icon:"car-battery",content:"Insert Cell",onClick:function(){return u("cellinstall")}})})]})})]})})}},68040:function(S,y,n){"use strict";n.r(y),n.d(y,{Stack:function(){return x}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512);function i(l,f){(f==null||f>l.length)&&(f=l.length);for(var m=0,v=new Array(f);m=l.length?{done:!0}:{done:!1,value:l[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 x=function(l){var f=(0,a.yy)(),m=f.act,v=f.data,p=v.amount,g=v.recipes;return(0,e.jsx)(r.qo,{width:400,height:600,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(t.iG,{title:"Amount: "+p,children:(0,e.jsx)(u,{recipes:g})})})})},u=function(l){var f=(0,a.yy)(),m=f.act,v=f.data,p=l.recipes,g=Object.keys(p).sort();return g.map(function(_){var E=p[_];return E.ref===void 0?(0,e.jsx)(t.Uv,{ml:1,mb:-.7,color:"label",title:_,children:(0,e.jsx)(t.kv,{ml:1,children:(0,e.jsx)(u,{recipes:E})})}):(0,e.jsx)(c,{title:_,recipe:E})})},d=function(l,f){return l.req_amount>f?0:Math.floor(f/l.req_amount)},h=function(l){for(var f=function(){var k=D.value;E>=k&&M.push((0,e.jsx)(t.q,{content:k*g.res_amount+"x",onClick:function(){return v("make",{ref:g.ref,multiplier:k})}}))},m=(0,a.yy)(),v=m.act,p=m.data,g=l.recipe,_=l.maxMultiplier,E=Math.min(_,Math.floor(g.max_res_amount/g.res_amount)),I=[5,10,25],M=[],P=C(I),D;!(D=P()).done;)f();return I.indexOf(E)===-1&&M.push((0,e.jsx)(t.q,{content:E*g.res_amount+"x",onClick:function(){return v("make",{ref:g.ref,multiplier:E})}})),M},c=function(l){var f=(0,a.yy)(),m=f.act,v=f.data,p=v.amount,g=l.recipe,_=l.title,E=g.res_amount,I=g.max_res_amount,M=g.req_amount,P=g.ref,D=_;D+=" (",D+=M+" ",D+="sheet"+(M>1?"s":""),D+=")",E>1&&(D=E+"x "+D);var k=d(g,p);return(0,e.jsx)(t.kv,{children:(0,e.jsx)(t.oJ,{children:(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsx)(t.oJ.Cell,{children:(0,e.jsx)(t.q,{fluid:!0,disabled:!k,icon:"wrench",content:D,onClick:function(){return m("make",{ref:g.ref,multiplier:1})}})}),I>1&&k>1&&(0,e.jsx)(t.oJ.Cell,{collapsing:!0,children:(0,e.jsx)(h,{recipe:g,maxMultiplier:k})})]})})})}},59840:function(S,y,n){"use strict";n.r(y),n.d(y,{StarcasterCh:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(69912),j=function(u,d){var h=(0,a.yy)(d),c=h.act,l=h.data,f=l.article,m=(0,e.jsx)(x,{});return f&&(m=(0,e.jsx)(C,{})),(0,e.jsx)(r.qo,{width:575,height:750,resizable:!0,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:m})})},C=function(u,d){var h=(0,a.yy)(d),c=h.act,l=h.data,f=l.article;if(!f)return(0,e.jsx)(t.iG,{children:"Error: Article not found."});var m=f.title,v=f.cover,p=f.content;return(0,e.jsxs)(t.iG,{title:"Viewing: "+m,buttons:(0,e.jsx)(t.q,{icon:"times",onClick:function(){return c("PRG_reset")},children:"Close"}),children:[!!v&&(0,e.jsx)("img",{src:(0,i.e)(v)}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:p}})]})},x=function(u,d){var h=(0,a.yy)(d),c=h.act,l=h.data,f=l.showing_archived,m=l.all_articles;return(0,e.jsx)(t.iG,{title:"Articles List",buttons:(0,e.jsx)(t.q.Checkbox,{onClick:function(){return c("PRG_toggle_archived")},checked:f,children:"Show Archived"}),children:(0,e.jsx)(t.Ce,{children:m.length&&m.map(function(v){return(0,e.jsx)(t.Ce.Item,{label:v.name,buttons:(0,e.jsx)(t.q,{icon:"download",onClick:function(){return c("PRG_openarticle",{uid:v.uid})}})},v.uid)})||(0,e.jsx)(t.Ce.Item,{label:"Error",children:"Unable to connect to Starfire database."})})})}},19348:function(S,y,n){"use strict";n.r(y),n.d(y,{StationAlertConsole:function(){return i},StationAlertConsoleContent:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(){return(0,e.jsx)(r.qo,{width:425,height:600,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(j,{})})})},j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.categories,c=h===void 0?[]:h;return c.map(function(l){return(0,e.jsx)(t.iG,{title:l.category,children:(0,e.jsxs)("ul",{children:[l.alarms.length===0&&(0,e.jsx)("li",{className:"color-good",children:"Systems Nominal"}),l.alarms.map(function(f){var m="";return f.has_cameras?m=(0,e.jsx)(t.iG,{children:f.cameras.map(function(v){return(0,e.jsx)(t.q,{disabled:v.deact,content:v.name+(v.deact?" (deactived)":""),icon:"video",onClick:function(){return u("switchTo",{camera:v.camera})}},v.name)})}):f.lost_sources&&(m=(0,e.jsxs)(t.kv,{color:"bad",children:["Lost Alarm Sources: ",f.lost_sources]})),(0,e.jsxs)("li",{children:[f.name,f.origin_lost?(0,e.jsx)(t.kv,{color:"bad",children:"Alarm Origin Lost."}):"",m]},f.name)})]})},l.category)})}},86876:function(S,y,n){"use strict";n.r(y),n.d(y,{StationBlueprints:function(){return i},StationBlueprintsContent:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(C){return(0,e.jsx)(r.qo,{width:870,height:708,children:(0,e.jsx)(j,{})})},j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=x.config,c=d.mapRef,l=d.areas,f=d.turfs;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:"Honk!"})}),(0,e.jsx)("div",{className:"CameraConsole__right",children:(0,e.jsx)(t.cb,{className:"CameraConsole__map",params:{id:c,type:"map"}})})]})}},33388:function(S,y,n){"use strict";n.r(y),n.d(y,{StockExchange:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=m.screen,p=m.stationName,g;return v==="stocks"?g=(0,e.jsx)(j,{}):v==="logs"?g=(0,e.jsx)(u,{}):v==="archive"?g=(0,e.jsx)(d,{}):v==="graph"&&(g=(0,e.jsx)(h,{})),(0,e.jsx)(r.qo,{width:600,height:600,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(t.iG,{title:""+p+" Stock Exchange",children:g})})})},j=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=m.balance,p=m.stationName,g=m.viewMode,_=(0,e.jsx)(C,{});return g==="Full"?_=(0,e.jsx)(C,{}):g==="Compressed"&&(_=(0,e.jsx)(x,{})),(0,e.jsxs)(t.kv,{children:[(0,e.jsxs)("span",{children:["Welcome, ",(0,e.jsxs)("b",{children:[p," Cargo Department"]})," |"," "]}),(0,e.jsxs)("span",{children:[(0,e.jsx)("b",{children:"Credits:"})," ",v]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"View mode: "}),(0,e.jsx)(t.q,{content:g,onClick:function(){return f("stocks_cycle_view")}}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Stock Transaction Log: "}),(0,e.jsx)(t.q,{icon:"list",content:"Check",onClick:function(){return f("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)(t.iG,{title:"Listed Stocks",children:_})]})},C=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=m.stocks,p=v===void 0?[]:v;return(0,e.jsxs)(t.kv,{children:[(0,e.jsx)("b",{children:"Actions:"})," + Buy, - Sell, (A)rchives, (H)istory",(0,e.jsx)(t.c1,{}),(0,e.jsxs)(t.oJ,{children:[(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsx)(t.oJ.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(t.oJ.Cell,{children:"ID"}),(0,e.jsx)(t.oJ.Cell,{children:"Name"}),(0,e.jsx)(t.oJ.Cell,{children:"Value"}),(0,e.jsx)(t.oJ.Cell,{children:"Owned"}),(0,e.jsx)(t.oJ.Cell,{children:"Avail"}),(0,e.jsx)(t.oJ.Cell,{children:"Actions"})]}),(0,e.jsx)(t.c1,{}),p.map(function(g){return(0,e.jsxs)(t.oJ.Row,{children:[(0,e.jsx)(t.oJ.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(t.oJ.Cell,{color:"label",children:g.ID}),(0,e.jsx)(t.oJ.Cell,{color:"label",children:g.Name}),(0,e.jsx)(t.oJ.Cell,{color:"label",children:g.Value}),(0,e.jsx)(t.oJ.Cell,{color:"label",children:g.Owned}),(0,e.jsx)(t.oJ.Cell,{color:"label",children:g.Avail}),(0,e.jsxs)(t.oJ.Cell,{color:"label",children:[(0,e.jsx)(t.q,{icon:"plus",disabled:!1,onClick:function(){return f("stocks_buy",{share:g.REF})}}),(0,e.jsx)(t.q,{icon:"minus",disabled:!1,onClick:function(){return f("stocks_sell",{share:g.REF})}}),(0,e.jsx)("br",{}),(0,e.jsx)(t.q,{content:"A",onClick:function(){return f("stocks_archive",{share:g.REF})}}),(0,e.jsx)(t.q,{content:"H",onClick:function(){return f("stocks_history",{share:g.REF})}}),(0,e.jsx)("br",{})]})]},g.ID)})]})]})},x=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=m.stocks,p=v===void 0?[]:v;return(0,e.jsx)(t.kv,{children:p.map(function(g){return(0,e.jsxs)(t.kv,{children:[(0,e.jsx)("span",{children:g.name})," ",(0,e.jsx)("span",{children:g.ID}),g.bankrupt===1&&(0,e.jsx)("b",{color:"red",children:"BANKRUPT"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Unified shares"})," ",g.Unification," ago.",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Current value per share:"})," ",g.Value," |"," ",(0,e.jsx)(t.q,{content:"View history",onClick:function(){return f("stocks_history",{share:g.REF})}}),(0,e.jsx)("br",{}),"You currently own ",(0,e.jsx)("b",{children:g.Owned})," shares in this company.",(0,e.jsx)("br",{}),"There are ",g.Avail," purchasable shares on the market currently.",(0,e.jsx)("br",{}),g.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)(t.q,{content:"Buy shares",onClick:function(){return f("stocks_buy",{share:g.REF})}})," ","|"," ",(0,e.jsx)(t.q,{content:"Sell shares",onClick:function(){return f("stocks_sell",{share:g.REF})}})]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Prominent products:"}),(0,e.jsx)("br",{}),(0,e.jsx)("i",{children:g.Products}),(0,e.jsx)("br",{}),(0,e.jsx)(t.q,{content:"View news archives",onClick:function(){return f("stocks_archive",{share:g.REF})}})," ",(0,e.jsx)(t.c1,{})]},g.ID)})})},u=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=m.logs,p=v===void 0?[]:v;return(0,e.jsxs)(t.kv,{children:[(0,e.jsx)("h2",{children:"Stock Transaction Logs"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.q,{content:"Go back",onClick:function(){return f("stocks_backbutton")}}),(0,e.jsx)(t.c1,{}),(0,e.jsx)("div",{children:p.map(function(g){return(0,e.jsxs)(t.kv,{children:[g.type!=="borrow"?(0,e.jsxs)("div",{children:[g.time," | ",(0,e.jsx)("b",{children:g.user_name})," ",g.type==="transaction_bought"?(0,e.jsx)("span",{children:"bought"}):(0,e.jsx)("span",{children:"sold"})," ",(0,e.jsx)("b",{children:g.stocks})," stocks at ",g.shareprice," a share for"," ",(0,e.jsx)("b",{children:g.money})," total credits"," ",g.type==="transaction_bought"?(0,e.jsx)("span",{children:"in"}):(0,e.jsx)("span",{children:"from"})," ",(0,e.jsx)("b",{children:g.company_name}),".",(0,e.jsx)("br",{})]}):(0,e.jsxs)("div",{children:[g.time," | ",(0,e.jsx)("b",{children:g.user_name})," borrowed ",(0,e.jsx)("b",{children:g.stocks})," ","stocks with a deposit of ",(0,e.jsx)("b",{children:g.money})," credits in"," ",(0,e.jsx)("b",{children:g.company_name}),".",(0,e.jsx)("br",{})]}),(0,e.jsx)(t.c1,{})]},g.time)})})]})},d=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=m.name,p=m.events,g=p===void 0?[]:p,_=m.articles,E=_===void 0?[]:_;return(0,e.jsxs)(t.kv,{children:[(0,e.jsxs)("h2",{children:["News feed for ",v]}),(0,e.jsx)(t.q,{content:"Go back",onClick:function(){return f("stocks_backbutton")}}),(0,e.jsx)("h3",{children:"Events"}),(0,e.jsx)(t.c1,{}),(0,e.jsx)("div",{children:g.map(function(I){return(0,e.jsxs)(t.kv,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:I.current_title}),(0,e.jsx)("br",{}),I.current_desc]}),(0,e.jsx)(t.c1,{})]},I.current_title)})}),(0,e.jsx)("br",{}),(0,e.jsx)("h3",{children:"Articles"}),(0,e.jsx)(t.c1,{}),(0,e.jsx)("div",{children:E.map(function(I){return(0,e.jsxs)(t.kv,{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)(t.c1,{})]},I.headline)})})]})},h=function(c){var l=(0,a.yy)(),f=l.act,m=l.data,v=m.name,p=m.maxValue,g=m.values,_=g===void 0?[]:g;return(0,e.jsxs)(t.kv,{children:[(0,e.jsx)(t.q,{content:"Go back",onClick:function(){return f("stocks_backbutton")}}),(0,e.jsx)(t.c1,{}),(0,e.jsx)(t.iG,{position:"relative",height:"100%",children:(0,e.jsx)(t.kR.Line,{fillPositionedParent:!0,data:_,rangeX:[0,_.length-1],rangeY:[0,p],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"})}),(0,e.jsx)(t.c1,{}),(0,e.jsxs)("p",{children:[v," share value per share"]})]})}},44920:function(S,y,n){"use strict";n.r(y),n.d(y,{SuitCycler:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.active,m=l.locked,v=l.uv_active,p=(0,e.jsx)(j,{});return v?p=(0,e.jsx)(C,{}):m?p=(0,e.jsx)(x,{}):f&&(p=(0,e.jsx)(u,{})),(0,e.jsx)(r.qo,{width:320,height:400,children:(0,e.jsx)(r.qo.Content,{children:p})})},j=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.safeties,m=l.occupied,v=l.suit,p=l.helmet,g=l.departments,_=l.species,E=l.uv_level,I=l.max_uv_level,M=l.can_repair,P=l.damage;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.iG,{title:"Storage",buttons:(0,e.jsx)(t.q,{icon:"lock",content:"Lock",onClick:function(){return c("lock")}}),children:[!!(m&&f)&&(0,e.jsxs)(t.yc,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(t.q,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return c("eject_guy")}})]}),(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Helmet",children:(0,e.jsx)(t.q,{icon:p?"square":"square-o",content:p||"Empty",disabled:!p,onClick:function(){return c("dispense",{item:"helmet"})}})}),(0,e.jsx)(t.Ce.Item,{label:"Suit",children:(0,e.jsx)(t.q,{icon:v?"square":"square-o",content:v||"Empty",disabled:!v,onClick:function(){return c("dispense",{item:"suit"})}})}),M&&P?(0,e.jsxs)(t.Ce.Item,{label:"Suit Damage",children:[P,(0,e.jsx)(t.q,{icon:"wrench",content:"Repair",onClick:function(){return c("repair_suit")}})]}):null]})]}),(0,e.jsxs)(t.iG,{title:"Customization",children:[(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Target Paintjob",children:(0,e.jsx)(t.cS,{noscroll:!0,width:"150px",options:g,selected:g[0],onSelected:function(D){return c("department",{department:D})}})}),(0,e.jsx)(t.Ce.Item,{label:"Target Species",children:(0,e.jsx)(t.cS,{width:"150px",maxHeight:"160px",options:_,selected:_[0],onSelected:function(D){return c("species",{species:D})}})})]}),(0,e.jsx)(t.q,{mt:1,fluid:!0,content:"Customize",onClick:function(){return c("apply_paintjob")}})]}),(0,e.jsx)(t.iG,{title:"UV Decontamination",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Radiation Level",children:(0,e.jsx)(t.WC,{width:"50px",value:E,minValue:1,maxValue:I,stepPixelSize:30,onChange:function(D,k){return c("radlevel",{radlevel:k})}})}),(0,e.jsx)(t.Ce.Item,{label:"Decontaminate",children:(0,e.jsx)(t.q,{fluid:!0,icon:"recycle",disabled:m&&f,textAlign:"center",onClick:function(){return c("uv")}})})]})})]})},C=function(d){return(0,e.jsx)(t.yc,{children:"Contents are currently being decontaminated. Please wait."})},x=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.model_text,m=l.userHasAccess;return(0,e.jsxs)(t.iG,{title:"Locked",textAlign:"center",children:[(0,e.jsxs)(t.kv,{color:"bad",bold:!0,children:["The ",f," suit cycler is currently locked. Please contact your system administrator."]}),(0,e.jsx)(t.kv,{children:(0,e.jsx)(t.q,{icon:"unlock",content:"[Unlock]",disabled:!m,onClick:function(){return c("lock")}})})]})},u=function(d){return(0,e.jsx)(t.yc,{children:"Contents are currently being painted. Please wait."})}},53892:function(S,y,n){"use strict";n.r(y),n.d(y,{SuitStorageUnit:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.panelopen,m=l.uv_active,v=l.broken,p=(0,e.jsx)(j,{});return f?p=(0,e.jsx)(C,{}):m?p=(0,e.jsx)(x,{}):v&&(p=(0,e.jsx)(u,{})),(0,e.jsx)(r.qo,{width:400,height:365,children:(0,e.jsx)(r.qo.Content,{children:p})})},j=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.locked,m=l.open,v=l.safeties,p=l.occupied,g=l.suit,_=l.helmet,E=l.mask;return(0,e.jsxs)(t.iG,{title:"Storage",minHeight:"260px",buttons:(0,e.jsxs)(e.Fragment,{children:[!m&&(0,e.jsx)(t.q,{icon:f?"unlock":"lock",content:f?"Unlock":"Lock",onClick:function(){return c("lock")}}),!f&&(0,e.jsx)(t.q,{icon:m?"sign-out-alt":"sign-in-alt",content:m?"Close":"Open",onClick:function(){return c("door")}})]}),children:[!!(p&&v)&&(0,e.jsxs)(t.yc,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(t.q,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return c("eject_guy")}})]}),f&&(0,e.jsxs)(t.kv,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,e.jsx)(t.kv,{children:"Unit Locked"}),(0,e.jsx)(t.GW,{name:"lock"})]})||m&&(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Helmet",children:(0,e.jsx)(t.q,{icon:_?"square":"square-o",content:_||"Empty",disabled:!_,onClick:function(){return c("dispense",{item:"helmet"})}})}),(0,e.jsx)(t.Ce.Item,{label:"Suit",children:(0,e.jsx)(t.q,{icon:g?"square":"square-o",content:g||"Empty",disabled:!g,onClick:function(){return c("dispense",{item:"suit"})}})}),(0,e.jsx)(t.Ce.Item,{label:"Mask",children:(0,e.jsx)(t.q,{icon:E?"square":"square-o",content:E||"Empty",disabled:!E,onClick:function(){return c("dispense",{item:"mask"})}})})]})||(0,e.jsx)(t.q,{fluid:!0,icon:"recycle",content:"Decontaminate",disabled:p&&v,textAlign:"center",onClick:function(){return c("uv")}})]})},C=function(d){var h=(0,a.yy)(),c=h.act,l=h.data,f=l.safeties,m=l.uv_super;return(0,e.jsxs)(t.iG,{title:"Maintenance Panel",children:[(0,e.jsx)(t.kv,{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)(t.kv,{children:["A small dial with a biohazard symbol next to it. It's pointing towards a gauge that reads ",m?"15nm":"185nm",".",(0,e.jsxs)(t.Cu,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(t.Cu.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(t.S6,{size:2,inline:!0,value:m,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:m?"red":"green",format:function(v){return v?"15nm":"185nm"},onChange:function(v,p){return c("toggleUV")}})}),(0,e.jsx)(t.Cu.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(t.GW,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,e.jsx)("br",{}),(0,e.jsxs)(t.kv,{children:["A thick old-style button, with 2 grimy LED lights next to it. The"," ",f?(0,e.jsx)("font",{color:"green",children:"GREEN"}):(0,e.jsx)("font",{color:"red",children:"RED"})," ","LED is on.",(0,e.jsxs)(t.Cu,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(t.Cu.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(t.q,{fontSize:"2rem",color:"grey",inline:!0,icon:"caret-square-right",style:{border:"4px solid #777","border-style":"outset"},onClick:function(){return c("togglesafeties")}})}),(0,e.jsxs)(t.Cu.Item,{basis:"50%",textAlign:"center",children:[(0,e.jsx)(t.GW,{name:"circle",color:f?"black":"red",mr:2}),(0,e.jsx)(t.GW,{name:"circle",color:f?"green":"black"})]})]})]})]})},x=function(d){return(0,e.jsx)(t.yc,{children:"Contents are currently being decontaminated. Please wait."})},u=function(d){return(0,e.jsx)(t.yc,{danger:!0,children:"Unit chamber is too contaminated to continue usage. Please call for a qualified individual to perform maintenance."})}},53736:function(S,y,n){"use strict";n.r(y),n.d(y,{SupermatterMonitor:function(){return C},SupermatterMonitorContent:function(){return x}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=n(10608),j=n(49900),C=function(h){return(0,e.jsx)(r.qo,{width:600,height:400,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(h){var c=(0,a.yy)(),l=c.act,f=c.data,m=f.active;return m?(0,e.jsx)(d,{}):(0,e.jsx)(u,{})},u=function(h){var c=(0,a.yy)(),l=c.act,f=c.data,m=f.supermatters;return(0,e.jsx)(t.iG,{title:"Supermatters Detected",buttons:(0,e.jsx)(t.q,{content:"Refresh",icon:"sync",onClick:function(){return l("refresh")}}),children:(0,e.jsx)(t.Cu,{wrap:"wrap",children:m.map(function(v,p){return(0,e.jsx)(t.Cu.Item,{basis:"49%",grow:p%2,children:(0,e.jsx)(t.iG,{title:v.area_name+" (#"+v.uid+")",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsxs)(t.Ce.Item,{label:"Integrity",children:[v.integrity," %"]}),(0,e.jsx)(t.Ce.Item,{label:"Options",children:(0,e.jsx)(t.q,{icon:"eye",content:"View Details",onClick:function(){return l("set",{set:v.uid})}})})]})})},p)})})})},d=function(h){var c=(0,a.yy)(),l=c.act,f=c.data,m=f.SM_area,v=f.SM_integrity,p=f.SM_power,g=f.SM_ambienttemp,_=f.SM_ambientpressure,E=f.SM_EPR,I=f.SM_gas_O2,M=f.SM_gas_CO2,P=f.SM_gas_N2,D=f.SM_gas_PH,k=f.SM_gas_N2O;return(0,e.jsx)(t.iG,{title:(0,j.Yl)(m),buttons:(0,e.jsx)(t.q,{icon:"arrow-left",content:"Return to Menu",onClick:function(){return l("clear")}}),children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Core Integrity",children:(0,e.jsx)(t.cH,{animated:!0,value:v,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-1/0,50]}})}),(0,e.jsx)(t.Ce.Item,{label:"Relative EER",children:(0,e.jsx)(t.kv,{color:p>300&&"bad"||p>150&&"average"||"good",children:(0,e.jsx)(t.Gg,{format:function(L){return(0,i.kL)(L,2)+" MeV/cm\xB3"},value:p})})}),(0,e.jsx)(t.Ce.Item,{label:"Temperature",children:(0,e.jsx)(t.kv,{color:g>5e3&&"bad"||g>4e3&&"average"||"good",children:(0,e.jsx)(t.Gg,{format:function(L){return(0,i.kL)(L,2)+" K"},value:g})})}),(0,e.jsx)(t.Ce.Item,{label:"Pressure",children:(0,e.jsx)(t.kv,{color:_>1e4&&"bad"||_>5e3&&"average"||"good",children:(0,e.jsx)(t.Gg,{format:function(L){return(0,i.kL)(L,2)+" kPa"},value:_})})}),(0,e.jsx)(t.Ce.Item,{label:"Chamber EPR",children:(0,e.jsx)(t.kv,{color:E>4&&"bad"||E>1&&"average"||"good",children:(0,e.jsx)(t.Gg,{format:function(L){return(0,i.kL)(L,2)},value:E})})}),(0,e.jsx)(t.Ce.Item,{label:"Gas Composition",children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsxs)(t.Ce.Item,{label:"O\xB2",children:[(0,e.jsx)(t.Gg,{value:I}),"%"]}),(0,e.jsxs)(t.Ce.Item,{label:"CO\xB2",children:[(0,e.jsx)(t.Gg,{value:M}),"%"]}),(0,e.jsxs)(t.Ce.Item,{label:"N\xB2",children:[(0,e.jsx)(t.Gg,{value:P}),"%"]}),(0,e.jsxs)(t.Ce.Item,{label:"PH",children:[(0,e.jsx)(t.Gg,{value:D}),"%"]}),(0,e.jsxs)(t.Ce.Item,{label:"N\xB2O",children:[(0,e.jsx)(t.Gg,{value:k}),"%"]})]})})]})})}},76848:function(S,y,n){"use strict";n.r(y),n.d(y,{SupplyConsole:function(){return d}});var e=n(33496),a=n(47392),t=n(96060),r=n(45280),i=n(33404),j=n(8020),C=n(76512),x=n(18140),u=function(v){var p=(0,r.yy)(),g=p.act,_=p.data,E=_.supply_points,I=v.args,M=I.name,P=I.cost,D=I.manifest,k=I.ref,L=I.random;return(0,e.jsx)(i.iG,{width:"400px",level:2,m:"-1rem",pb:"1rem",title:M,buttons:(0,e.jsx)(i.q,{icon:"shopping-cart",content:"Buy - "+P+" points",disabled:P>E,onClick:function(){return g("request_crate",{ref:k})}}),children:(0,e.jsx)(i.iG,{title:"Contains"+(L?" any "+L+" of:":""),scrollable:!0,height:"200px",children:D.map(function(F){return(0,e.jsx)(i.kv,{children:F},F)})})})},d=function(v){var p=(0,r.yy)(),g=p.act,_=p.data;return(0,j.modalRegisterBodyOverride)("view_crate",u),(0,e.jsx)(C.qo,{width:700,height:620,children:(0,e.jsxs)(C.qo.Content,{children:[(0,e.jsx)(j.ComplexModal,{maxWidth:"100%"}),(0,e.jsxs)(i.iG,{title:"Supply Records",children:[(0,e.jsx)(h,{}),(0,e.jsx)(c,{})]})]})})},h=function(v){var p=(0,r.yy)(),g=p.act,_=p.data,E=_.supply_points,I=_.shuttle,M=_.shuttle_auth,P=null,D=!1;return M&&(I.launch===1&&I.mode===0?P=(0,e.jsx)(i.q,{icon:"rocket",content:"Send Away",onClick:function(){return g("send_shuttle",{mode:"send_away"})}}):I.launch===2&&(I.mode===3||I.mode===1)?P=(0,e.jsx)(i.q,{icon:"ban",content:"Cancel Launch",onClick:function(){return g("send_shuttle",{mode:"cancel_shuttle"})}}):I.launch===1&&I.mode===5&&(P=(0,e.jsx)(i.q,{icon:"rocket",content:"Send Shuttle",onClick:function(){return g("send_shuttle",{mode:"send_to_station"})}})),I.force&&(D=!0)),(0,e.jsxs)(i.iG,{children:[(0,e.jsx)(i.Ce,{children:(0,e.jsx)(i.Ce.Item,{label:"Supply Points",children:(0,e.jsx)(i.Gg,{value:E})})}),(0,e.jsx)(i.iG,{level:2,title:"Supply Shuttle",mt:2,children:(0,e.jsxs)(i.Ce,{children:[(0,e.jsx)(i.Ce.Item,{label:"Location",buttons:(0,e.jsxs)(e.Fragment,{children:[P,D?(0,e.jsx)(i.q,{icon:"exclamation-triangle",content:"Force Launch",onClick:function(){return g("send_shuttle",{mode:"force_shuttle"})}}):null]}),children:I.location}),(0,e.jsx)(i.Ce.Item,{label:"Engine",children:I.engine}),I.mode===4?(0,e.jsx)(i.Ce.Item,{label:"ETA",children:I.time>1?(0,t.AB)(I.time):"LATE"}):null]})})]})},c=function(v){var p=(0,r.yy)(),g=p.act,_=p.data,E=_.order_auth,I=(0,r.cv)("tabIndex",0),M=I[0],P=I[1];return(0,e.jsxs)(i.iG,{title:"Menu",children:[(0,e.jsxs)(i.kZ,{children:[(0,e.jsx)(i.kZ.Tab,{icon:"box",selected:M===0,onClick:function(){return P(0)},children:"Request"}),(0,e.jsx)(i.kZ.Tab,{icon:"check-circle-o",selected:M===1,onClick:function(){return P(1)},children:"Accepted"}),(0,e.jsx)(i.kZ.Tab,{icon:"circle-o",selected:M===2,onClick:function(){return P(2)},children:"Requests"}),(0,e.jsx)(i.kZ.Tab,{icon:"book",selected:M===3,onClick:function(){return P(3)},children:"Order history"}),(0,e.jsx)(i.kZ.Tab,{icon:"book",selected:M===4,onClick:function(){return P(4)},children:"Export history"})]}),M===0?(0,e.jsx)(l,{}):null,M===1?(0,e.jsx)(f,{mode:"Approved"}):null,M===2?(0,e.jsx)(f,{mode:"Requested"}):null,M===3?(0,e.jsx)(f,{mode:"All"}):null,M===4?(0,e.jsx)(m,{}):null]})},l=function(v){var p=(0,r.yy)(),g=p.act,_=p.data,E=_.categories,I=_.supply_packs,M=_.contraband,P=_.supply_points,D=(0,r.cv)("activeCategory",null),k=D[0],L=D[1],F=(0,x.k)([(0,a.IF)(function(w){return w.group===k}),(0,a.IF)(function(w){return!w.contraband||M}),(0,a.cp)(function(w){return w.name}),(0,a.cp)(function(w){return w.cost>P})])(I);return(0,e.jsx)(i.iG,{level:2,children:(0,e.jsxs)(i.fT,{children:[(0,e.jsx)(i.fT.Item,{basis:"25%",children:(0,e.jsx)(i.iG,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:E.map(function(w){return(0,e.jsx)(i.q,{fluid:!0,content:w,selected:w===k,onClick:function(){return L(w)}},w)})})}),(0,e.jsx)(i.fT.Item,{grow:1,ml:2,children:(0,e.jsx)(i.iG,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:F.map(function(w){return(0,e.jsx)(i.kv,{children:(0,e.jsxs)(i.fT,{align:"center",justify:"flex-start",children:[(0,e.jsx)(i.fT.Item,{basis:"70%",children:(0,e.jsx)(i.q,{fluid:!0,icon:"shopping-cart",ellipsis:!0,content:w.name,color:w.cost>P?"red":null,onClick:function(){return g("request_crate",{ref:w.ref})}})}),(0,e.jsx)(i.fT.Item,{children:(0,e.jsx)(i.q,{content:"#",color:w.cost>P?"red":null,onClick:function(){return g("request_crate_multi",{ref:w.ref})}})}),(0,e.jsx)(i.fT.Item,{children:(0,e.jsx)(i.q,{content:"C",color:w.cost>P?"red":null,onClick:function(){return g("view_crate",{crate:w.ref})}})}),(0,e.jsxs)(i.fT.Item,{grow:1,children:[w.cost," points"]})]})},w.name)})})})]})})},f=function(v){var p=(0,r.yy)(),g=p.act,_=p.data,E=v.mode,I=_.orders,M=_.order_auth,P=_.supply_points,D=I.filter(function(k){return k.status===E||E==="All"});return D.length?(0,e.jsxs)(i.iG,{level:2,children:[E==="Requested"&&M?(0,e.jsx)(i.q,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",content:"Clear all requests",onClick:function(){return g("clear_all_requests")}}):null,D.map(function(k,L){return(0,e.jsxs)(i.iG,{title:"Order "+(L+1),buttons:E==="All"&&M?(0,e.jsx)(i.q,{color:"red",icon:"trash",content:"Delete Record",onClick:function(){return g("delete_order",{ref:k.ref})}}):null,children:[(0,e.jsxs)(i.Ce,{children:[k.entries.map(function(F){return F.entry?(0,e.jsx)(i.Ce.Item,{label:F.field,buttons:M?(0,e.jsx)(i.q,{icon:"pen",content:"Edit",onClick:function(){g("edit_order_value",{ref:k.ref,edit:F.field,default:F.entry})}}):null,children:F.entry}):null}),E==="All"?(0,e.jsx)(i.Ce.Item,{label:"Status",children:k.status}):null]}),M&&E==="Requested"?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.q,{icon:"check",content:"Approve",disabled:k.cost>P,onClick:function(){return g("approve_order",{ref:k.ref})}}),(0,e.jsx)(i.q,{icon:"times",content:"Deny",onClick:function(){return g("deny_order",{ref:k.ref})}})]}):null]},L)})]}):(0,e.jsx)(i.iG,{level:2,children:"No orders found."})},m=function(v){var p=(0,r.yy)(),g=p.act,_=p.data,E=_.receipts,I=_.order_auth;return E.length?(0,e.jsx)(i.iG,{level:2,children:E.map(function(M,P){return(0,e.jsxs)(i.iG,{children:[(0,e.jsxs)(i.Ce,{children:[M.title.map(function(D){return(0,e.jsx)(i.Ce.Item,{label:D.field,buttons:I?(0,e.jsx)(i.q,{icon:"pen",content:"Edit",onClick:function(){return g("export_edit",{ref:M.ref,edit:D.field,default:D.entry})}}):null,children:D.entry},D.field)}),M.error?(0,e.jsx)(i.Ce.Item,{labelColor:"red",label:"Error",children:M.error}):M.contents.map(function(D,k){return(0,e.jsxs)(i.Ce.Item,{label:D.object,buttons:I?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.q,{icon:"pen",content:"Edit",onClick:function(){return g("export_edit_field",{ref:M.ref,index:k+1,edit:"meow",default:D.object})}}),(0,e.jsx)(i.q,{icon:"trash",color:"red",content:"Delete",onClick:function(){return g("export_delete_field",{ref:M.ref,index:k+1})}})]}):null,children:[D.quantity,"x -> ",D.value," points"]},k)})]}),I?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.q,{mt:1,icon:"plus",content:"Add Item To Record",onClick:function(){return g("export_add_field",{ref:M.ref})}}),(0,e.jsx)(i.q,{icon:"trash",content:"Delete Record",onClick:function(){return g("export_delete",{ref:M.ref})}})]}):null]},P)})}):(0,e.jsx)(i.iG,{level:2,children:"No receipts found."})}},89400:function(S,y,n){"use strict";n.r(y),n.d(y,{TEGenerator:function(){return C}});var e=n(33496),a=n(10608),t=n(45280),r=n(33404),i=n(76512),j=n(96060),C=function(u){var d=(0,t.yy)().data,h=d.totalOutput,c=d.maxTotalOutput,l=d.thermalOutput,f=d.primary,m=d.secondary;return(0,e.jsx)(i.qo,{width:550,height:310,children:(0,e.jsxs)(i.qo.Content,{children:[(0,e.jsx)(r.iG,{title:"Status",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Total Output",children:(0,e.jsx)(r.cH,{value:h,maxValue:c,children:(0,j._s)(h)})}),(0,e.jsx)(r.Ce.Item,{label:"Thermal Output",children:(0,j._s)(l)})]})}),f&&m?(0,e.jsxs)(r.Cu,{spacing:1,children:[(0,e.jsx)(r.Cu.Item,{shrink:1,grow:1,children:(0,e.jsx)(x,{name:"Primary Circulator",values:f})}),(0,e.jsx)(r.Cu.Item,{shrink:1,grow:1,children:(0,e.jsx)(x,{name:"Secondary Circulator",values:m})})]}):(0,e.jsx)(r.kv,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})},x=function(u){var d=u.name,h=u.values,c=h.dir,l=h.output,f=h.flowCapacity,m=h.inletPressure,v=h.inletTemperature,p=h.outletPressure,g=h.outletTemperature;return(0,e.jsx)(r.iG,{title:d+" ("+c+")",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Turbine Output",children:(0,j._s)(l)}),(0,e.jsxs)(r.Ce.Item,{label:"Flow Capacity",children:[(0,a.kL)(f,2),"%"]}),(0,e.jsx)(r.Ce.Item,{label:"Inlet Pressure",children:(0,j._c)(m*1e3,0,"Pa")}),(0,e.jsxs)(r.Ce.Item,{label:"Inlet Temperature",children:[(0,a.kL)(v,2)," K"]}),(0,e.jsx)(r.Ce.Item,{label:"Outlet Pressure",children:(0,j._c)(p*1e3,0,"Pa")}),(0,e.jsxs)(r.Ce.Item,{label:"Outlet Temperature",children:[(0,a.kL)(g,2)," K"]})]})})}},2096:function(S,y,n){"use strict";n.r(y),n.d(y,{Tank:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.connected,h=u.showToggle,c=h===void 0?!0:h,l=u.maskConnected,f=u.tankPressure,m=u.releasePressure,v=u.defaultReleasePressure,p=u.minReleasePressure,g=u.maxReleasePressure;return(0,e.jsx)(r.qo,{width:400,height:320,children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(t.iG,{title:"Status",buttons:!!c&&(0,e.jsx)(t.q,{icon:d?"air-freshener":"lock-open",selected:d,disabled:!l,content:"Mask Release Valve",onClick:function(){return x("toggle")}}),children:(0,e.jsx)(t.Ce,{children:(0,e.jsx)(t.Ce.Item,{label:"Mask Connected",children:l?"Yes":"No"})})}),(0,e.jsx)(t.iG,{children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Pressure",children:(0,e.jsx)(t.cH,{value:f/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:u.tankPressure+" kPa"})}),(0,e.jsxs)(t.Ce.Item,{label:"Pressure Regulator",children:[(0,e.jsx)(t.q,{icon:"fast-backward",disabled:m===p,onClick:function(){return x("pressure",{pressure:"min"})}}),(0,e.jsx)(t.WC,{animated:!0,value:parseFloat(m),width:"65px",unit:"kPa",minValue:p,maxValue:g,onChange:function(_,E){return x("pressure",{pressure:E})}}),(0,e.jsx)(t.q,{icon:"fast-forward",disabled:m===g,onClick:function(){return x("pressure",{pressure:"max"})}}),(0,e.jsx)(t.q,{icon:"undo",content:"",disabled:m===v,onClick:function(){return x("pressure",{pressure:"reset"})}})]})]})})]})})}},46308:function(S,y,n){"use strict";n.r(y),n.d(y,{TankDispenser:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.plasma,h=u.oxygen;return(0,e.jsx)(r.qo,{width:275,height:103,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(t.iG,{children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Phoron",buttons:(0,e.jsx)(t.q,{icon:d?"square":"square-o",content:"Dispense",disabled:!d,onClick:function(){return x("plasma")}}),children:d}),(0,e.jsx)(t.Ce.Item,{label:"Oxygen",buttons:(0,e.jsx)(t.q,{icon:h?"square":"square-o",content:"Dispense",disabled:!h,onClick:function(){return x("oxygen")}}),children:h})]})})})})}},86176:function(S,y,n){"use strict";n.r(y),n.d(y,{TelecommsLogBrowser:function(){return j}});var e=n(33496),a=n(10608),t=n(45280),r=n(33404),i=n(76512),j=function(d){var h=(0,t.yy)(),c=h.act,l=h.data,f=l.universal_translate,m=l.network,v=l.temp,p=l.servers,g=l.selectedServer;return(0,e.jsx)(i.qo,{width:575,height:450,children:(0,e.jsxs)(i.qo.Content,{scrollable:!0,children:[v?(0,e.jsxs)(r.yc,{danger:v.color==="bad",warning:v.color!=="bad",children:[(0,e.jsx)(r.kv,{display:"inline-box",verticalAlign:"middle",children:v.text}),(0,e.jsx)(r.q,{icon:"times-circle",float:"right",onClick:function(){return c("cleartemp")}}),(0,e.jsx)(r.kv,{clear:"both"})]}):null,(0,e.jsx)(r.iG,{title:"Network Control",children:(0,e.jsx)(r.Ce,{children:(0,e.jsx)(r.Ce.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{icon:"search",content:"Refresh",onClick:function(){return c("scan")}}),(0,e.jsx)(r.q,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:p.length===0,onClick:function(){return c("release")}})]}),children:(0,e.jsx)(r.q,{content:m,icon:"pen",onClick:function(){return c("network")}})})})}),g?(0,e.jsx)(x,{network:m,server:g,universal_translate:f}):(0,e.jsx)(C,{network:m,servers:p})]})})},C=function(d){var h=(0,t.yy)(),c=h.act,l=h.data,f=d.network,m=d.servers;return!m||!m.length?(0,e.jsxs)(r.iG,{title:"Detected Telecommunications Servers",children:[(0,e.jsx)(r.kv,{color:"bad",children:"No servers detected."}),(0,e.jsx)(r.q,{fluid:!0,content:"Scan",icon:"search",onClick:function(){return c("scan")}})]}):(0,e.jsx)(r.iG,{title:"Detected Telecommunications Servers",children:(0,e.jsx)(r.Ce,{children:m.map(function(v){return(0,e.jsx)(r.Ce.Item,{label:v.name+" ("+v.id+")",children:(0,e.jsx)(r.q,{content:"View",icon:"eye",onClick:function(){return c("view",{id:v.id})}})},v.id)})})})},x=function(d){var h=(0,t.yy)(),c=h.act,l=h.data,f=d.network,m=d.server,v=d.universal_translate;return(0,e.jsxs)(r.iG,{title:"Server ("+m.id+")",buttons:(0,e.jsx)(r.q,{content:"Return",icon:"undo",onClick:function(){return c("mainmenu")}}),children:[(0,e.jsx)(r.Ce,{children:(0,e.jsx)(r.Ce.Item,{label:"Total Recorded Traffic",children:m.totalTraffic>=1024?(0,a.kL)(m.totalTraffic/1024)+" Terrabytes":m.totalTraffic+" Gigabytes"})}),(0,e.jsx)(r.iG,{title:"Stored Logs",mt:"4px",children:(0,e.jsx)(r.Cu,{wrap:"wrap",children:!m.logs||!m.logs.length?"No Logs Detected.":m.logs.map(function(p){return(0,e.jsx)(r.Cu.Item,{m:"2px",basis:"49%",grow:p.id%2,children:(0,e.jsx)(r.iG,{title:v||p.parameters.uspeech||p.parameters.intelligible||p.input_type==="Execution Error"?p.input_type:"Audio File",buttons:(0,e.jsx)(r.q.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return c("delete",{id:p.id})}}),children:p.input_type==="Execution Error"?(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Data type",children:"Error"}),(0,e.jsx)(r.Ce.Item,{label:"Output",children:p.parameters.message}),(0,e.jsx)(r.Ce.Item,{label:"Delete",children:(0,e.jsx)(r.q,{icon:"trash",onClick:function(){return c("delete",{id:p.id})}})})]}):v||p.parameters.uspeech||p.parameters.intelligible?(0,e.jsx)(u,{log:p}):(0,e.jsx)(u,{error:!0})})},p.id)})})})]})},u=function(d){var h=(0,t.yy)(),c=h.act,l=h.data,f=d.log,m=d.error,v=f&&f.parameters||{none:"none"},p=v.timecode,g=v.name,_=v.race,E=v.job,I=v.message;return m?(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Time Recieved",children:p}),(0,e.jsx)(r.Ce.Item,{label:"Source",children:"Unidentifiable"}),(0,e.jsx)(r.Ce.Item,{label:"Class",children:_}),(0,e.jsx)(r.Ce.Item,{label:"Contents",children:"Unintelligible"})]}):(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Time Recieved",children:p}),(0,e.jsxs)(r.Ce.Item,{label:"Source",children:[g," (Job: ",E,")"]}),(0,e.jsx)(r.Ce.Item,{label:"Class",children:_}),(0,e.jsx)(r.Ce.Item,{label:"Contents",className:"LabeledList__breakContents",children:I})]})}},18836:function(S,y,n){"use strict";n.r(y),n.d(y,{TelecommsMachineBrowser:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=d.network,c=d.temp,l=d.machinelist,f=d.selectedMachine;return(0,e.jsx)(r.qo,{width:575,height:450,children:(0,e.jsxs)(r.qo.Content,{scrollable:!0,children:[c?(0,e.jsxs)(t.yc,{danger:c.color==="bad",warning:c.color!=="bad",children:[(0,e.jsx)(t.kv,{display:"inline-box",verticalAlign:"middle",children:c.text}),(0,e.jsx)(t.q,{icon:"times-circle",float:"right",onClick:function(){return u("cleartemp")}}),(0,e.jsx)(t.kv,{clear:"both"})]}):null,(0,e.jsx)(t.iG,{title:"Network Control",children:(0,e.jsx)(t.Ce,{children:(0,e.jsx)(t.Ce.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:"search",content:"Probe Network",onClick:function(){return u("scan")}}),(0,e.jsx)(t.q,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:l.length===0,onClick:function(){return u("release")}})]}),children:(0,e.jsx)(t.q,{content:h,icon:"pen",onClick:function(){return u("network")}})})})}),l&&l.length?(0,e.jsx)(j,{title:f?f.name+" ("+f.id+")":"Detected Network Entities",list:f?f.links:l,showBack:f}):(0,e.jsx)(t.iG,{title:"No Devices Found",children:(0,e.jsx)(t.q,{icon:"search",content:"Probe Network",onClick:function(){return u("scan")}})})]})})},j=function(C){var x=(0,a.yy)(),u=x.act,d=x.data,h=C.list,c=C.title,l=C.showBack;return(0,e.jsxs)(t.iG,{title:c,buttons:l&&(0,e.jsx)(t.q,{icon:"undo",content:"Back to Main Menu",onClick:function(){return u("mainmenu")}}),children:[(0,e.jsx)(t.kv,{color:"label",children:(0,e.jsx)("u",{children:"Linked entities"})}),(0,e.jsx)(t.Ce,{children:h.length?h.map(function(f){return(0,e.jsx)(t.Ce.Item,{label:f.name+" ("+f.id+")",children:(0,e.jsx)(t.q,{content:"View",icon:"eye",onClick:function(){return u("view",{id:f.id})}})},f.id)}):(0,e.jsx)(t.Ce.Item,{color:"bad",children:"No links detected."})})]})}},11644:function(S,y,n){"use strict";n.r(y),n.d(y,{TelecommsMultitoolMenu:function(){return j}});var e=n(33496),a=n(45280),t=n(33404),r=n(66632),i=n(76512),j=function(u){var d=(0,a.yy)(),h=d.act,c=d.data,l=c.temp,f=c.on,m=c.id,v=c.network,p=c.autolinkers,g=c.shadowlink,_=c.options,E=c.linked,I=c.filter,M=c.multitool,P=c.multitool_buffer;return(0,e.jsx)(i.qo,{width:520,height:540,children:(0,e.jsxs)(i.qo.Content,{scrollable:!0,children:[(0,e.jsx)(r.TemporaryNotice,{}),(0,e.jsx)(C,{}),(0,e.jsx)(x,{options:_})]})})},C=function(u){var d=(0,a.yy)(),h=d.act,c=d.data,l=c.temp,f=c.on,m=c.id,v=c.network,p=c.autolinkers,g=c.shadowlink,_=c.options,E=c.linked,I=c.filter,M=c.multitool,P=c.multitool_buffer;return(0,e.jsxs)(t.iG,{title:"Status",buttons:(0,e.jsx)(t.q,{icon:"power-off",selected:f,content:f?"On":"Off",onClick:function(){return h("toggle")}}),children:[(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Identification String",children:(0,e.jsx)(t.q,{icon:"pen",content:m,onClick:function(){return h("id")}})}),(0,e.jsx)(t.Ce.Item,{label:"Network",children:(0,e.jsx)(t.q,{icon:"pen",content:v,onClick:function(){return h("network")}})}),(0,e.jsx)(t.Ce.Item,{label:"Prefabrication",children:p?"TRUE":"FALSE"}),g?(0,e.jsx)(t.Ce.Item,{label:"Shadow Link",children:"Active."}):null,M?(0,e.jsxs)(t.Ce.Item,{label:"Multitool Buffer",children:[P?(0,e.jsxs)(e.Fragment,{children:[P.name," (",P.id,")"]}):null,(0,e.jsx)(t.q,{color:P?"green":null,content:P?"Link ("+P.id+")":"Add Machine",icon:P?"link":"plus",onClick:P?function(){return h("link")}:function(){return h("buffer")}}),P?(0,e.jsx)(t.q,{color:"red",content:"Flush",icon:"trash",onClick:function(){return h("flush")}}):null]}):null]}),(0,e.jsx)(t.iG,{title:"Linked network Entities",mt:1,children:(0,e.jsx)(t.Ce,{children:E.map(function(D){return(0,e.jsx)(t.Ce.Item,{label:D.ref+" "+D.name+" ("+D.id+")",buttons:(0,e.jsx)(t.q.Confirm,{color:"red",icon:"trash",onClick:function(){return h("unlink",{unlink:D.index})}})},D.ref)})})}),(0,e.jsxs)(t.iG,{title:"Filtering Frequencies",mt:1,children:[I.map(function(D){return(0,e.jsx)(t.q.Confirm,{content:D.name+" GHz",confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){return h("delete",{delete:D.freq})}},D.index)}),!I||I.length===0?(0,e.jsx)(t.kv,{color:"label",children:"No filters."}):null]})]})},x=function(u){var d=(0,a.yy)(),h=d.act,c=d.data,l=u.options,f=l.use_listening_level,m=l.use_broadcasting,v=l.use_receiving,p=l.listening_level,g=l.broadcasting,_=l.receiving,E=l.use_change_freq,I=l.change_freq,M=l.use_broadcast_range,P=l.use_receive_range,D=l.range,k=l.minRange,L=l.maxRange;return!f&&!m&&!v&&!E&&!M&&!P?(0,e.jsx)(t.iG,{title:"No Options Found"}):(0,e.jsx)(t.iG,{title:"Options",children:(0,e.jsxs)(t.Ce,{children:[f?(0,e.jsx)(t.Ce.Item,{label:"Signal Locked to Station",children:(0,e.jsx)(t.q,{icon:p?"lock-closed":"lock-open",content:p?"Yes":"No",onClick:function(){return h("change_listening")}})}):null,m?(0,e.jsx)(t.Ce.Item,{label:"Broadcasting",children:(0,e.jsx)(t.q,{icon:"power-off",selected:g,content:g?"Yes":"No",onClick:function(){return h("broadcast")}})}):null,v?(0,e.jsx)(t.Ce.Item,{label:"Receving",children:(0,e.jsx)(t.q,{icon:"power-off",selected:_,content:_?"Yes":"No",onClick:function(){return h("receive")}})}):null,E?(0,e.jsx)(t.Ce.Item,{label:"Change Signal Frequency",children:(0,e.jsx)(t.q,{icon:"wave-square",selected:!!I,content:I?"Yes ("+I+")":"No",onClick:function(){return h("change_freq")}})}):null,M||P?(0,e.jsx)(t.Ce.Item,{label:(M?"Broadcast":"Receive")+" Range",children:(0,e.jsx)(t.WC,{value:D,minValue:k,maxValue:L,unit:"gigameters",stepPixelSize:4,format:function(F){return F+1},onDrag:function(F,w){return h("range",{range:w})}})}):null]})})}},78452:function(S,y,n){"use strict";n.r(y),n.d(y,{Teleporter:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.locked_name,h=u.station_connected,c=u.hub_connected,l=u.calibrated,f=u.teleporter_on;return(0,e.jsx)(r.qo,{width:300,height:200,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsx)(t.iG,{children:(0,e.jsxs)(t.Ce,{children:[(0,e.jsx)(t.Ce.Item,{label:"Target",children:(0,e.jsx)(t.q,{fluid:!0,icon:"bullseye",onClick:function(){return x("select_target")},content:d})}),(0,e.jsx)(t.Ce.Item,{label:"Calibrated",children:(0,e.jsx)(t.q.Checkbox,{fluid:!0,checked:l,color:l?"good":"bad",onClick:function(){return x("test_fire")},content:l?"Accurate":"Test Fire"})}),(0,e.jsx)(t.Ce.Item,{label:"Teleporter",children:(0,e.jsx)(t.q.Checkbox,{fluid:!0,checked:f,color:f?"good":"bad",onClick:function(){return x("toggle_on")},content:f?"Online":"OFFLINE"})}),(0,e.jsx)(t.Ce.Item,{label:"Station",children:h?"Connected":"Not Connected"}),(0,e.jsx)(t.Ce.Item,{label:"Hub",children:c?"Connected":"Not Connected"})]})})})})}},30288:function(S,y,n){"use strict";n.r(y),n.d(y,{TelesciConsole:function(){return j},TelesciConsoleContent:function(){return x}});var e=n(33496),a=n(47392),t=n(45280),r=n(33404),i=n(76512),j=function(u){var d=(0,t.yy)(),h=d.act,c=d.data,l=c.noTelepad;return(0,e.jsx)(i.qo,{width:400,height:450,children:(0,e.jsx)(i.qo.Content,{scrollable:!0,children:l&&(0,e.jsx)(C,{})||(0,e.jsx)(x,{})})})},C=function(u){return(0,e.jsxs)(r.iG,{title:"Error",color:"bad",children:["No telepad located.",(0,e.jsx)("br",{}),"Please add telepad data."]})},x=function(u){var d=(0,t.yy)(),h=d.act,c=d.data,l=c.insertedGps,f=c.rotation,m=c.currentZ,v=c.cooldown,p=c.crystalCount,g=c.maxCrystals,_=c.maxPossibleDistance,E=c.maxAllowedDistance,I=c.distance,M=c.tempMsg,P=c.sectorOptions,D=c.lastTeleData;return(0,e.jsxs)(r.iG,{title:"Telepad Controls",buttons:(0,e.jsx)(r.q,{icon:"eject",disabled:!l,onClick:function(){return h("ejectGPS")},content:"Eject GPS"}),children:[(0,e.jsx)(r.yc,{info:!0,children:v&&(0,e.jsxs)(r.kv,{children:["Telepad is recharging. Please wait"," ",(0,e.jsx)(r.Gg,{value:v})," seconds."]})||(0,e.jsx)(r.kv,{children:M})}),(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Bearing",children:(0,e.jsx)(r.WC,{fluid:!0,value:f,format:function(k){return k+"\xB0"},step:1,minValue:-900,maxValue:900,onDrag:function(k,L){return h("setrotation",{val:L})}})}),(0,e.jsx)(r.Ce.Item,{label:"Distance",children:(0,e.jsx)(r.WC,{fluid:!0,value:I,format:function(k){return k+"/"+E+" m"},minValue:0,maxValue:E,step:1,stepPixelSize:4,onDrag:function(k,L){return h("setdistance",{val:L})}})}),(0,e.jsx)(r.Ce.Item,{label:"Sector",children:(0,a.cp)(function(k){return Number(k)})(P).map(function(k){return(0,e.jsx)(r.q,{icon:"check-circle",content:k,selected:m===k,onClick:function(){return h("setz",{setz:k})}},k)})}),(0,e.jsxs)(r.Ce.Item,{label:"Controls",children:[(0,e.jsx)(r.q,{icon:"share",iconRotation:-90,onClick:function(){return h("send")},content:"Send"}),(0,e.jsx)(r.q,{icon:"share",iconRotation:90,onClick:function(){return h("receive")},content:"Receive"}),(0,e.jsx)(r.q,{icon:"sync",iconRotation:90,onClick:function(){return h("recal")},content:"Recalibrate"})]})]}),D&&(0,e.jsx)(r.iG,{mt:1,children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsxs)(r.Ce.Item,{label:"Telepad Location",children:[D.src_x,", ",D.src_y]}),(0,e.jsxs)(r.Ce.Item,{label:"Distance",children:[D.distance,"m"]}),(0,e.jsxs)(r.Ce.Item,{label:"Transit Time",children:[D.time," secs"]})]})})||(0,e.jsx)(r.iG,{mt:1,children:"No teleport data found."}),(0,e.jsxs)(r.iG,{children:["Crystals: ",p," / ",g]})]})}},47828:function(S,y,n){"use strict";n.r(y),n.d(y,{TextInputModal:function(){return d},removeAllSkiplines:function(){return u},sanitizeMultiline:function(){return x}});var e=n(33496),a=n(42480),t=n(45280),r=n(33404),i=n(76512),j=n(14820),C=n(26896),x=function(c){return c.replace(/(\n|\r\n){3,}/,"\n\n")},u=function(c){return c.replace(/[\r\n]+/,"")},d=function(c){var l=(0,t.yy)(),f=l.act,m=l.data,v=m.large_buttons,p=m.max_length,g=m.message,_=g===void 0?"":g,E=m.multiline,I=m.placeholder,M=m.timeout,P=m.title,D=(0,t.cv)("input",I||""),k=D[0],L=D[1],F=function($){if($!==k){var H=E?x($):u($);L(H)}},w=E||k.length>=30,N=135+(_.length>30?Math.ceil(_.length/4):0)+(w?75:0)+(_.length&&v?5:0);return(0,e.jsxs)(i.qo,{title:P,width:325,height:N,children:[M&&(0,e.jsx)(C.Loader,{value:M}),(0,e.jsx)(i.qo.Content,{onKeyDown:function($){var H=window.event?$.which:$.keyCode;H===a.kt&&(!w||!$.shiftKey)&&f("submit",{entry:k}),H===a.ER&&f("cancel")},children:(0,e.jsx)(r.iG,{fill:!0,children:(0,e.jsxs)(r.fT,{fill:!0,vertical:!0,children:[(0,e.jsx)(r.fT.Item,{children:(0,e.jsx)(r.kv,{color:"label",children:_})}),(0,e.jsx)(r.fT.Item,{grow:!0,children:(0,e.jsx)(h,{input:k,onType:F})}),(0,e.jsx)(r.fT.Item,{children:(0,e.jsx)(j.InputButtons,{input:k,message:k.length+"/"+p})})]})})})]})},h=function(c){var l=(0,t.yy)(),f=l.act,m=l.data,v=m.max_length,p=m.multiline,g=c.input,_=c.onType,E=p||g.length>=30;return(0,e.jsx)(r.IF,{autoFocus:!0,autoSelect:!0,height:p||g.length>=30?"100%":"1.8rem",maxLength:v,onEscape:function(){return f("cancel")},onEnter:function(I){E&&I.shiftKey||(I.preventDefault(),f("submit",{entry:g}))},onInput:function(I,M){return _(M)},placeholder:"Type something...",value:g})}},22772:function(S,y,n){"use strict";n.r(y),n.d(y,{TimeClock:function(){return C}});var e=n(33496),a=n(10608),t=n(45280),r=n(33404),i=n(76512),j=n(57353),C=function(x){var u=(0,t.yy)(),d=u.act,h=u.data,c=h.department_hours,l=h.user_name,f=h.card,m=h.assignment,v=h.job_datum,p=h.allow_change_job,g=h.job_choices;return(0,e.jsx)(i.qo,{width:500,height:520,children:(0,e.jsxs)(i.qo.Content,{scrollable:!0,children:[(0,e.jsxs)(r.iG,{title:"OOC",children:[(0,e.jsx)(r.yc,{children:"OOC Note: PTO acquired is account-wide and shared across all characters. Info listed below is not IC information."}),(0,e.jsx)(r.iG,{level:2,title:"Time Off Balance for "+l,children:(0,e.jsx)(r.Ce,{children:Object.keys(c).map(function(_){return(0,e.jsxs)(r.Ce.Item,{label:_,color:c[_]>6?"good":c[_]>1?"average":"bad",children:[(0,a.yI)(c[_],1)," ",c[_]===1?"hour":"hours"]},_)})})})]}),(0,e.jsx)(r.iG,{title:"Employee Info",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Employee ID",children:(0,e.jsx)(r.q,{fluid:!0,icon:"user",onClick:function(){return d("id")},children:f||"Insert ID"})}),!!v&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ce.Item,{label:"Rank",children:(0,e.jsx)(r.kv,{backgroundColor:v.selection_color,p:.8,children:(0,e.jsxs)(r.Cu,{justify:"space-between",align:"center",children:[(0,e.jsx)(r.Cu.Item,{children:(0,e.jsx)(r.kv,{ml:1,children:(0,e.jsx)(j.RankIcon,{color:"white",rank:v.title})})}),(0,e.jsx)(r.Cu.Item,{children:(0,e.jsx)(r.kv,{fontSize:1.5,inline:!0,mr:1,children:v.title})})]})})}),(0,e.jsx)(r.Ce.Item,{label:"Departments",children:v.departments}),(0,e.jsx)(r.Ce.Item,{label:"Pay Scale",children:v.economic_modifier}),(0,e.jsx)(r.Ce.Item,{label:"PTO Elegibility",children:v.timeoff_factor>0&&(0,e.jsxs)(r.kv,{children:["Earns PTO - ",v.pto_department]})||v.timeoff_factor<0&&(0,e.jsxs)(r.kv,{children:["Requires PTO - ",v.pto_department]})||(0,e.jsx)(r.kv,{children:"Neutral"})})]})]})}),!!(p&&v&&v.timeoff_factor!==0&&m!=="Dismissed")&&(0,e.jsx)(r.iG,{title:"Employment Actions",children:v.timeoff_factor>0&&(c[v.pto_department]>0&&(0,e.jsx)(r.q,{fluid:!0,icon:"exclamation-triangle",onClick:function(){return d("switch-to-offduty")},children:"Go Off-Duty"})||(0,e.jsx)(r.kv,{color:"bad",children:"Warning: You do not have enough accrued time off to go off-duty."}))||Object.keys(g).length&&Object.keys(g).map(function(_){var E=g[_];return E.map(function(I){return(0,e.jsx)(r.q,{icon:"suitcase",onClick:function(){return d("switch-to-onduty-rank",{"switch-to-onduty-rank":_,"switch-to-onduty-assignment":I})},children:I},I)})})||(0,e.jsx)(r.kv,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}},95044:function(S,y,n){"use strict";n.r(y),n.d(y,{TraitDescription:function(){return C},TraitSelection:function(){return j},TraitTutorial:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(x){var u=(0,a.yy)(),d=u.act,h=u.data;return(0,e.jsx)(r.qo,{width:804,height:426,children:(0,e.jsx)(r.qo.Content,{scrollable:!0,children:(0,e.jsx)(t.iG,{title:"Guide to Custom Traits",children:(0,e.jsx)(j,{})})})})},j=function(x){var u=(0,a.yy)(),d=u.act,h=u.data,c=h.names,l=h.selection;return(0,e.jsxs)(t.fT,{children:[(0,e.jsx)(t.fT.Item,{shrink:!0,children:(0,e.jsx)(t.iG,{title:"Trait Selection",children:(0,e.jsx)(t.kZ,{vertical:!0,children:c.map(function(f){return(0,e.jsx)(t.kZ.Tab,{selected:f===l,onClick:function(){return d("select_trait",{name:f})},children:(0,e.jsx)(t.kv,{inline:!0,children:f})},f)})})})}),(0,e.jsx)(t.fT.Item,{grow:8,children:l&&(0,e.jsx)(t.iG,{title:l,children:(0,e.jsx)(C,{name:l})})})]})},C=function(x){var u=(0,a.yy)(),d=u.act,h=u.data,c=x.name,l=h.descriptions,f=h.categories,m=h.tutorials;return(0,e.jsxs)(t.iG,{StackWrap:!0,children:[(0,e.jsx)("b",{children:"Name:"})," ",c,(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Category:"})," ",f[c],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Description:"})," ",l[c],(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:m[c]}})]})}},20956:function(S,y,n){"use strict";n.r(y),n.d(y,{TransferValve:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.tank_one,h=u.tank_two,c=u.attached_device,l=u.valve;return(0,e.jsx)(r.qo,{children:(0,e.jsxs)(r.qo.Content,{children:[(0,e.jsx)(t.iG,{children:(0,e.jsx)(t.Ce,{children:(0,e.jsx)(t.Ce.Item,{label:"Valve Status",children:(0,e.jsx)(t.q,{icon:l?"unlock":"lock",content:l?"Open":"Closed",disabled:!d||!h,onClick:function(){return x("toggle")}})})})}),(0,e.jsx)(t.iG,{title:"Assembly",buttons:(0,e.jsx)(t.q,{textAlign:"center",width:"150px",icon:"cog",content:"Configure Assembly",disabled:!c,onClick:function(){return x("device")}}),children:(0,e.jsx)(t.Ce,{children:c?(0,e.jsx)(t.Ce.Item,{label:"Attachment",children:(0,e.jsx)(t.q,{icon:"eject",content:c,disabled:!c,onClick:function(){return x("remove_device")}})}):(0,e.jsx)(t.yc,{textAlign:"center",children:"Attach Assembly"})})}),(0,e.jsx)(t.iG,{title:"Attachment One",children:(0,e.jsx)(t.Ce,{children:d?(0,e.jsx)(t.Ce.Item,{label:"Attachment",children:(0,e.jsx)(t.q,{icon:"eject",content:d,disabled:!d,onClick:function(){return x("tankone")}})}):(0,e.jsx)(t.yc,{textAlign:"center",children:"Attach Tank"})})}),(0,e.jsx)(t.iG,{title:"Attachment Two",children:(0,e.jsx)(t.Ce,{children:h?(0,e.jsx)(t.Ce.Item,{label:"Attachment",children:(0,e.jsx)(t.q,{icon:"eject",content:h,disabled:!h,onClick:function(){return x("tanktwo")}})}):(0,e.jsx)(t.yc,{textAlign:"center",children:"Attach Tank"})})})]})})}},64064:function(S,y,n){"use strict";n.r(y),n.d(y,{TurbineControl:function(){return j}});var e=n(33496),a=n(96060),t=n(45280),r=n(33404),i=n(76512),j=function(C){var x=(0,t.yy)(),u=x.act,d=x.data,h=d.connected,c=d.compressor_broke,l=d.turbine_broke,f=d.broken,m=d.door_status,v=d.online,p=d.power,g=d.rpm,_=d.temp;return(0,e.jsx)(i.qo,{width:520,height:440,children:(0,e.jsxs)(i.qo.Content,{scrollable:!0,children:[(0,e.jsx)(r.iG,{title:"Turbine Controller",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Status",children:f&&(0,e.jsxs)(r.kv,{color:"bad",children:["Setup is broken",(0,e.jsx)(r.q,{icon:"sync",onClick:function(){return u("reconnect")},content:"Reconnect"})]})||(0,e.jsx)(r.kv,{color:v?"good":"bad",children:v&&!c&&!l?"Online":"Offline"})}),(0,e.jsx)(r.Ce.Item,{label:"Compressor",children:c&&(0,e.jsx)(r.kv,{color:"bad",children:"Compressor is inoperable."})||l&&(0,e.jsx)(r.kv,{color:"bad",children:"Turbine is inoperable."})||(0,e.jsx)(r.kv,{children:(0,e.jsx)(r.q.Checkbox,{checked:v,content:"Compressor Power",onClick:function(){return u(v?"power-off":"power-on")}})})}),(0,e.jsx)(r.Ce.Item,{label:"Vent Doors",children:(0,e.jsx)(r.q.Checkbox,{checked:m,onClick:function(){return u("doors")},content:m?"Closed":"Open"})})]})}),(0,e.jsx)(r.iG,{title:"Status",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsxs)(r.Ce.Item,{label:"Turbine Speed",children:[f?"--":(0,e.jsx)(r.Gg,{value:g})," RPM"]}),(0,e.jsxs)(r.Ce.Item,{label:"Internal Temperature",children:[f?"--":(0,e.jsx)(r.Gg,{value:_})," K"]}),(0,e.jsx)(r.Ce.Item,{label:"Generated Power",children:f?"--":(0,e.jsx)(r.Gg,{format:function(E){return(0,a._s)(E)},value:Number(p)})})]})})]})})}},14696:function(S,y,n){"use strict";n.r(y),n.d(y,{Turbolift:function(){return i}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i=function(j){var C=(0,a.yy)(),x=C.act,u=C.data,d=u.floors,h=u.doors_open,c=u.fire_mode;return(0,e.jsx)(r.qo,{width:480,height:260+c*25,children:(0,e.jsx)(r.qo.Content,{children:(0,e.jsxs)(t.iG,{title:"Floor Selection",className:c?"Section--elevator--fire":null,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.q,{icon:h?"door-open":"door-closed",content:h?c?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed",selected:h&&!c,color:c?"red":null,onClick:function(){return x("toggle_doors")}}),(0,e.jsx)(t.q,{icon:"exclamation-triangle",color:"bad",content:"Emergency Stop",onClick:function(){return x("emergency_stop")}})]}),children:[!c||(0,e.jsx)(t.iG,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,e.jsx)(t.Cu,{wrap:"wrap",children:d.map(function(l){return(0,e.jsx)(t.Cu.Item,{basis:"100%",children:(0,e.jsxs)(t.Cu,{align:"center",justify:"space-around",children:[(0,e.jsx)(t.Cu.Item,{basis:"22%",textAlign:"right",mr:"3px",children:l.label||"Floor #"+l.id}),(0,e.jsx)(t.Cu.Item,{basis:"8%",textAlign:"left",children:(0,e.jsx)(t.q,{icon:"circle",color:l.current?"red":l.target?"green":l.queued?"yellow":null,onClick:function(){return x("move_to_floor",{ref:l.ref})}})}),(0,e.jsx)(t.Cu.Item,{basis:"50%",grow:1,children:l.name})]})},l.id)})})]})})})}},67784:function(S,y,n){"use strict";n.r(y),n.d(y,{GenericUplink:function(){return c},Uplink:function(){return u}});var e=n(33496),a=n(49900),t=n(45280),r=n(33404),i=n(96060),j=n(76512);function C(){return C=Object.assign||function(f){for(var m=1;m").map(function(E){return(0,e.jsx)(r.kv,{children:E},E)})})]})})||_.map(function(E){return(0,e.jsx)(r.q,{icon:"eye",fluid:!0,content:E.name,onClick:function(){return v("view_exploits",{id:E.id})}},E.id)})})},c=function(f){var m,v,p=f.currencyAmount,g=p===void 0?0:p,_=f.currencySymbol,E=_===void 0?"\u20AE":_,I=(0,t.yy)(),M=I.act,P=I.data,D=P.compactMode,k=P.lockable,L=P.categories,F=L===void 0?[]:L,w=(0,t.cv)("searchText",""),N=w[0],$=w[1],H=(0,t.cv)("category",(m=F[0])==null?void 0:m.name),K=H[0],U=H[1],q=(0,a.od)(N,function(Z){return Z.name+Z.desc}),Y=N.length>0&&F.flatMap(function(Z){return Z.items||[]}).filter(q).filter(function(Z,z){return z0?"good":"bad",children:[(0,i.cp)(g)," ",E]}),buttons:(0,e.jsxs)(e.Fragment,{children:["Search",(0,e.jsx)(r.EF,{autoFocus:!0,value:N,onInput:function(Z,z){return $(z)},mx:1}),(0,e.jsx)(r.q,{icon:D?"list":"info",content:D?"Compact":"Detailed",onClick:function(){return M("compact_toggle")}}),!!k&&(0,e.jsx)(r.q,{icon:"lock",content:"Lock",onClick:function(){return M("lock")}})]}),children:(0,e.jsxs)(r.Cu,{children:[N.length===0&&(0,e.jsx)(r.Cu.Item,{children:(0,e.jsx)(r.kZ,{vertical:!0,children:F.map(function(Z){var z;return(0,e.jsxs)(r.kZ.Tab,{selected:Z.name===K,onClick:function(){return U(Z.name)},children:[Z.name," (",((z=Z.items)==null?void 0:z.length)||0,")"]},Z.name)})})}),(0,e.jsxs)(r.Cu.Item,{grow:1,basis:0,children:[Y.length===0&&(0,e.jsx)(r.yc,{children:N.length===0?"No items in this category.":"No results found."}),(0,e.jsx)(l,{compactMode:N.length>0||D,currencyAmount:g,currencySymbol:E,items:Y})]})]})})},l=function(f){var m=f.compactMode,v=f.currencyAmount,p=f.currencySymbol,g=(0,t.yy)().act,_=(0,t.cv)("hoveredItem",{}),E=_[0],I=_[1],M=E&&E.cost||0,P=f.items.map(function(D){var k=E&&E.name!==D.name,L=v-M=0)&&(N[H]=F[H]);return N}var u=[null,"average","bad"],d={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"},h={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."},c=function(F){var w=(0,t.yy)(),N=w.act,$=w.data,H=(0,t.cv)("panelTabIndex",0),K=H[0],U=H[1],q=[];return q[0]=(0,e.jsx)(f,{}),q[1]=(0,e.jsx)(D,{}),(0,e.jsx)(i.qo,{width:890,height:660,theme:"abstract",children:(0,e.jsxs)(i.qo.Content,{scrollable:!0,children:[$.unsaved_changes&&(0,e.jsx)(r.yc,{danger:!0,children:(0,e.jsxs)(r.Cu,{children:[(0,e.jsx)(r.Cu.Item,{basis:"90%",children:"Warning: Unsaved Changes!"}),(0,e.jsx)(r.Cu.Item,{children:(0,e.jsx)(r.q,{content:"Save Prefs",icon:"save",onClick:function(){return N("saveprefs")}})}),(0,e.jsx)(r.Cu.Item,{children:(0,e.jsx)(r.q,{content:"Save Prefs & Export Selected Belly",icon:"download",onClick:function(){N("saveprefs"),N("exportpanel")}})})]})})||null,(0,e.jsx)(l,{}),(0,e.jsxs)(r.kZ,{children:[(0,e.jsxs)(r.kZ.Tab,{selected:K===0,onClick:function(){return U(0)},children:["Bellies",(0,e.jsx)(r.GW,{name:"list",ml:.5})]}),(0,e.jsxs)(r.kZ.Tab,{selected:K===1,onClick:function(){return U(1)},children:["Preferences",(0,e.jsx)(r.GW,{name:"user-cog",ml:.5})]})]}),q[K]||"Error"]})})},l=function(F){var w=(0,t.yy)(),N=w.act,$=w.data,H=$.inside,K=H.absorbed,U=H.belly_name,q=H.belly_mode,Y=H.desc,Z=H.pred,z=H.contents,Q=H.ref;return U?(0,e.jsxs)(r.iG,{title:"Inside",children:[(0,e.jsxs)(r.kv,{color:"green",inline:!0,children:["You are currently ",K?"absorbed into":"inside"]}),"\xA0",(0,e.jsxs)(r.kv,{color:"yellow",inline:!0,children:[Z,"'s"]}),"\xA0",(0,e.jsx)(r.kv,{color:"red",inline:!0,children:U}),"\xA0",(0,e.jsx)(r.kv,{color:"yellow",inline:!0,children:"and you are"}),"\xA0",(0,e.jsx)(r.kv,{color:d[q],inline:!0,children:h[q]}),"\xA0",(0,e.jsx)(r.kv,{color:"label",children:Y}),z.length&&(0,e.jsx)(r.Uv,{title:"Belly Contents",children:(0,e.jsx)(P,{contents:z,belly:Q})})||"There is nothing else around you."]}):(0,e.jsx)(r.iG,{title:"Inside",children:"You aren't inside anyone."})},f=function(F){var w=(0,t.yy)(),N=w.act,$=w.data,H=$.our_bellies,K=$.selected;return(0,e.jsxs)(r.Cu,{children:[(0,e.jsx)(r.Cu.Item,{shrink:!0,children:(0,e.jsx)(r.iG,{title:"My Bellies",scollable:!0,children:(0,e.jsxs)(r.kZ,{vertical:!0,children:[(0,e.jsxs)(r.kZ.Tab,{onClick:function(){return N("newbelly")},children:["New",(0,e.jsx)(r.GW,{name:"plus",ml:.5})]}),(0,e.jsxs)(r.kZ.Tab,{onClick:function(){return N("exportpanel")},children:["Export",(0,e.jsx)(r.GW,{name:"file-export",ml:.5})]}),(0,e.jsxs)(r.kZ.Tab,{onClick:function(){return N("importpanel")},children:["Import",(0,e.jsx)(r.GW,{name:"file-import",ml:.5})]}),(0,e.jsx)(r.c1,{}),H.map(function(U){return(0,e.jsx)(r.kZ.Tab,{selected:U.selected,textColor:d[U.digest_mode],onClick:function(){return N("bellypick",{bellypick:U.ref})},children:(0,e.jsxs)(r.kv,{inline:!0,textColor:U.selected&&d[U.digest_mode]||null,children:[U.name," (",U.contents,")"]})},U.name)})]})})}),(0,e.jsx)(r.Cu.Item,{grow:!0,children:K&&(0,e.jsx)(r.iG,{title:K.belly_name,children:(0,e.jsx)(m,{belly:K})})})]})},m=function(F){var w=(0,t.yy)().act,N=F.belly,$=N.contents,H=(0,t.cv)("bellyTabIndex",0),K=H[0],U=H[1],q=[];return q[0]=(0,e.jsx)(v,{belly:N}),q[1]=(0,e.jsx)(p,{belly:N}),q[2]=(0,e.jsx)(g,{belly:N}),q[3]=(0,e.jsx)(E,{belly:N}),q[4]=(0,e.jsx)(I,{belly:N}),q[5]=(0,e.jsx)(M,{belly:N}),q[6]=(0,e.jsx)(P,{outside:!0,contents:$}),q[7]=(0,e.jsx)(VoreSelectedBellyLiquidOptions,{belly:N}),q[8]=(0,e.jsx)(VoreSelectedBellyLiquidMessages,{belly:N}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.kZ,{children:[(0,e.jsx)(r.kZ.Tab,{selected:K===0,onClick:function(){return U(0)},children:"Controls"}),(0,e.jsx)(r.kZ.Tab,{selected:K===1,onClick:function(){return U(1)},children:"Descriptions"}),(0,e.jsx)(r.kZ.Tab,{selected:K===2,onClick:function(){return U(2)},children:"Options"}),(0,e.jsx)(r.kZ.Tab,{selected:K===3,onClick:function(){return U(3)},children:"Sounds"}),(0,e.jsx)(r.kZ.Tab,{selected:K===4,onClick:function(){return U(4)},children:"Visuals"}),(0,e.jsx)(r.kZ.Tab,{selected:K===5,onClick:function(){return U(5)},children:"Interactions"}),(0,e.jsxs)(r.kZ.Tab,{selected:K===6,onClick:function(){return U(6)},children:["Contents (",$.length,")"]}),(0,e.jsx)(r.kZ.Tab,{selected:K===7,onClick:function(){return U(7)},children:"Liquid Options"}),(0,e.jsx)(r.kZ.Tab,{selected:K===8,onClick:function(){return U(8)},children:"Liquid Messages"})]}),q[K]||"Error"]})},v=function(F){var w=(0,t.yy)().act,N=F.belly,$=N.belly_name,H=N.mode,K=N.item_mode,U=N.addons;return(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Name",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.q,{icon:"arrow-up",tooltipPosition:"left",tooltip:"Move this belly tab up.",onClick:function(){return w("move_belly",{dir:-1})}}),(0,e.jsx)(r.q,{icon:"arrow-down",tooltipPosition:"left",tooltip:"Move this belly tab down.",onClick:function(){return w("move_belly",{dir:1})}})]}),children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_name"})},content:$})}),(0,e.jsx)(r.Ce.Item,{label:"Mode",children:(0,e.jsx)(r.q,{color:d[H],onClick:function(){return w("set_attribute",{attribute:"b_mode"})},content:H})}),(0,e.jsxs)(r.Ce.Item,{label:"Mode Addons",children:[U.length&&U.join(", ")||"None",(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_addons"})},ml:1,icon:"plus"})]}),(0,e.jsx)(r.Ce.Item,{label:"Item Mode",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_item_mode"})},content:K})}),(0,e.jsx)(r.Ce.Item,{basis:"100%",mt:1,children:(0,e.jsx)(r.q.Confirm,{fluid:!0,icon:"exclamation-triangle",confirmIcon:"trash",color:"red",content:"Delete Belly",confirmContent:"This is irreversable!",onClick:function(){return w("set_attribute",{attribute:"b_del"})}})})]})},p=function(F){var w=(0,t.yy)().act,N=F.belly,$=N.verb,H=N.release_verb,K=N.desc,U=N.absorbed_desc;return(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Description",buttons:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_desc"})},icon:"pen"}),children:K}),(0,e.jsx)(r.Ce.Item,{label:"Description (Absorbed)",buttons:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_absorbed_desc"})},icon:"pen"}),children:U}),(0,e.jsx)(r.Ce.Item,{label:"Vore Verb",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_verb"})},content:$})}),(0,e.jsx)(r.Ce.Item,{label:"Release Verb",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_release_verb"})},content:H})}),(0,e.jsxs)(r.Ce.Item,{label:"Examine Messages",children:[(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"em"})},content:"Examine Message (when full)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"ema"})},content:"Examine Message (with absorbed victims)"})]}),(0,e.jsxs)(r.Ce.Item,{label:"Struggle Messages",children:[(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"smo"})},content:"Struggle Message (outside)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"smi"})},content:"Struggle Message (inside)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"asmo"})},content:"Absorbed Struggle Message (outside)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"asmi"})},content:"Absorbed Struggle Message (inside)"})]}),(0,e.jsxs)(r.Ce.Item,{label:"Escape Messages",children:[(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"escap"})},content:"Escape Attempt Message (to prey)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"escao"})},content:"Escape Attempt Message (to you)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"escp"})},content:"Escape Message (to prey)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"esco"})},content:"Escape Message (to you)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"escout"})},content:"Escape Message (outside)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"escip"})},content:"Escape Item Message (to prey)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"escio"})},content:"Escape Item Message (to you)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"esciout"})},content:"Escape Item Message (outside)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"escfp"})},content:"Escape Fail Message (to prey)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"escfo"})},content:"Escape Fail Message (to you)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"aescap"})},content:"Absorbed Escape Attempt Message (to prey)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"aescao"})},content:"Absorbed Escape Attempt Message (to you)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"aescp"})},content:"Absorbed Escape Message (to prey)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"aesco"})},content:"Absorbed Escape Message (to you)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"aescout"})},content:"Absorbed Escape Message (outside)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"aescfp"})},content:"Absorbed Escape Fail Message (to prey)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"aescfo"})},content:"Absorbed Escape Fail Message (to you)"})]}),(0,e.jsxs)(r.Ce.Item,{label:"Transfer Messages",children:[(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"trnspp"})},content:"Primary Transfer Message (to prey)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"trnspo"})},content:"Primary Transfer Message (to you)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"trnssp"})},content:"Secondary Transfer Message (to prey)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"trnsso"})},content:"Secondary Transfer Message (to you)"})]}),(0,e.jsxs)(r.Ce.Item,{label:"Interaction Chance Messages",children:[(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"stmodp"})},content:"Interaction Chance Digest Message (to prey)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"stmodo"})},content:"Interaction Chance Digest Message (to you)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"stmoap"})},content:"Interaction Chance Absorb Message (to prey)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"stmoao"})},content:"Interaction Chance Absorb Message (to you)"})]}),(0,e.jsxs)(r.Ce.Item,{label:"Bellymode Messages",children:[(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"dmp"})},content:"Digest Message (to prey)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"dmo"})},content:"Digest Message (to you)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"amp"})},content:"Absorb Message (to prey)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"amo"})},content:"Absorb Message (to you)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"uamp"})},content:"Unabsorb Message (to prey)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"uamo"})},content:"Unabsorb Message (to you)"})]}),(0,e.jsxs)(r.Ce.Item,{label:"Idle Messages",children:[(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"im_hold"})},content:"Idle Messages (Hold)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"im_holdabsorbed"})},content:"Idle Messages (Hold Absorbed)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"im_digest"})},content:"Idle Messages (Digest)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"im_absorb"})},content:"Idle Messages (Absorb)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"im_unabsorb"})},content:"Idle Messages (Unabsorb)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"im_drain"})},content:"Idle Messages (Drain)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"im_heal"})},content:"Idle Messages (Heal)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"im_steal"})},content:"Idle Messages (Size Steal)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"im_shrink"})},content:"Idle Messages (Shrink)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"im_grow"})},content:"Idle Messages (Grow)"}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"im_egg"})},content:"Idle Messages (Encase In Egg)"})]}),(0,e.jsx)(r.Ce.Item,{label:"Reset Messages",children:(0,e.jsx)(r.q,{color:"red",onClick:function(){return w("set_attribute",{attribute:"b_msgs",msgtype:"reset"})},content:"Reset Messages"})})]})},g=function(F){var w=(0,t.yy)(),N=w.act,$=w.data,H=$.host_mobtype,K=H.is_cyborg,U=H.is_vore_simple_mob,q=F.belly,Y=q.can_taste,Z=q.is_feedable,z=q.nutrition_percent,Q=q.digest_brute,oe=q.digest_burn,le=q.digest_oxy,ie=q.digest_tox,fe=q.digest_clone,de=q.bulge_size,ge=q.display_absorbed_examine,ye=q.shrink_grow_size,ve=q.emote_time,Ie=q.emote_active,Te=q.contaminates,Ve=q.contaminate_flavor,Ue=q.contaminate_color,Ge=q.egg_type,ze=q.egg_name,ut=q.selective_preference,gt=q.save_digest_mode,vt=q.eating_privacy_local,ft=q.silicon_belly_overlay_preference,tt=q.belly_mob_mult,Je=q.belly_item_mult,ke=q.belly_overall_mult,Re=q.vorespawn_blacklist;return(0,e.jsxs)(r.Cu,{wrap:"wrap",children:[(0,e.jsxs)(r.Cu.Item,{basis:"49%",grow:1,children:[(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Can Taste",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_tastes"})},icon:Y?"toggle-on":"toggle-off",selected:Y,content:Y?"Yes":"No"})}),(0,e.jsx)(r.Ce.Item,{label:"Feedable",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_feedable"})},icon:Z?"toggle-on":"toggle-off",selected:Z,content:Z?"Yes":"No"})}),(0,e.jsx)(r.Ce.Item,{label:"Contaminates",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_contaminates"})},icon:Te?"toggle-on":"toggle-off",selected:Te,content:Te?"Yes":"No"})}),Te&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ce.Item,{label:"Contamination Flavor",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_contamination_flavor"})},icon:"pen",content:Ve})}),(0,e.jsx)(r.Ce.Item,{label:"Contamination Color",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_contamination_color"})},icon:"pen",content:(0,a.Yj)(Ue)})})]})||null,(0,e.jsx)(r.Ce.Item,{label:"Nutritional Gain",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_nutritionpercent"})},content:z+"%"})}),(0,e.jsx)(r.Ce.Item,{label:"Required Examine Size",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_bulge_size"})},content:de*100+"%"})}),(0,e.jsx)(r.Ce.Item,{label:"Display Absorbed Examines",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_display_absorbed_examine"})},icon:ge?"toggle-on":"toggle-off",selected:ge,content:ge?"True":"False"})}),(0,e.jsx)(r.Ce.Item,{label:"Toggle Vore Privacy",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_eating_privacy"})},content:(0,a.Yj)(vt)})}),(0,e.jsx)(r.Ce.Item,{label:"Save Digest Mode",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_save_digest_mode"})},icon:gt?"toggle-on":"toggle-off",selected:gt,content:gt?"True":"False"})})]}),(0,e.jsx)(_,{belly:q})]}),(0,e.jsx)(r.Cu.Item,{basis:"49%",grow:1,children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Idle Emotes",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_emoteactive"})},icon:Ie?"toggle-on":"toggle-off",selected:Ie,content:Ie?"Active":"Inactive"})}),(0,e.jsx)(r.Ce.Item,{label:"Idle Emote Delay",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_emotetime"})},content:ve+" seconds"})}),(0,e.jsx)(r.Ce.Item,{label:"Digest Brute Damage",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_brute_dmg"})},content:Q})}),(0,e.jsx)(r.Ce.Item,{label:"Digest Burn Damage",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_burn_dmg"})},content:oe})}),(0,e.jsx)(r.Ce.Item,{label:"Digest Suffocation Damage",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_oxy_dmg"})},content:le})}),(0,e.jsx)(r.Ce.Item,{label:"Digest Toxins Damage",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_tox_dmg"})},content:ie})}),(0,e.jsx)(r.Ce.Item,{label:"Digest Clone Damage",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_clone_dmg"})},content:fe})}),(0,e.jsx)(r.Ce.Item,{label:"Shrink/Grow Size",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_grow_shrink"})},content:ye*100+"%"})}),(0,e.jsx)(r.Ce.Item,{label:"Vore Spawn Blacklist",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_vorespawn_blacklist"})},icon:Re?"toggle-on":"toggle-off",selected:Re,content:Re?"Yes":"No"})}),(0,e.jsx)(r.Ce.Item,{label:"Egg Type",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_egg_type"})},icon:"pen",content:(0,a.Yj)(Ge)})}),(0,e.jsx)(r.Ce.Item,{label:"Custom Egg Name",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_egg_name"})},icon:"pen",content:ze||"Default"})}),(0,e.jsx)(r.Ce.Item,{label:"Selective Mode Preference",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_selective_mode_pref_toggle"})},content:(0,a.Yj)(ut)})})]})})]})},_=function(F){var w=(0,t.yy)(),N=w.act,$=w.data,H=$.host_mobtype,K=H.is_cyborg,U=H.is_vore_simple_mob,q=F.belly,Y=q.silicon_belly_overlay_preference,Z=q.belly_mob_mult,z=q.belly_item_mult,Q=q.belly_overall_mult;return K?(0,e.jsx)(r.iG,{title:"Cyborg Controls",width:"80%",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Toggle Belly Overlay Mode",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_silicon_belly"})},content:(0,a.Yj)(Y)})}),(0,e.jsx)(r.Ce.Item,{label:"Mob Vorebelly Size Mult",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_belly_mob_mult"})},content:Z})}),(0,e.jsx)(r.Ce.Item,{label:"Item Vorebelly Size Mult",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_belly_item_mult"})},content:z})}),(0,e.jsx)(r.Ce.Item,{label:"Belly Size Multiplier",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_belly_overall_mult"})},content:Q})})]})}):U?(0,e.jsx)(r.Ce,{children:(0,e.jsx)(r.Ce.Item,{})}):(0,e.jsx)(r.Ce,{children:(0,e.jsx)(r.Ce.Item,{})})},E=function(F){var w=(0,t.yy)().act,N=F.belly,$=N.is_wet,H=N.wet_loop,K=N.fancy,U=N.sound,q=N.release_sound,Y=N.sound_volume;return(0,e.jsx)(r.Cu,{wrap:"wrap",children:(0,e.jsx)(r.Cu.Item,{basis:"49%",grow:1,children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Fleshy Belly",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_wetness"})},icon:$?"toggle-on":"toggle-off",selected:$,content:$?"Yes":"No"})}),(0,e.jsx)(r.Ce.Item,{label:"Internal Loop",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_wetloop"})},icon:H?"toggle-on":"toggle-off",selected:H,content:H?"Yes":"No"})}),(0,e.jsx)(r.Ce.Item,{label:"Use Fancy Sounds",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_fancy_sound"})},icon:K?"toggle-on":"toggle-off",selected:K,content:K?"Yes":"No"})}),(0,e.jsxs)(r.Ce.Item,{label:"Vore Sound",children:[(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_sound"})},content:U}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_soundtest"})},icon:"volume-up"})]}),(0,e.jsxs)(r.Ce.Item,{label:"Release Sound",children:[(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_release"})},content:q}),(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_releasesoundtest"})},icon:"volume-up"})]}),(0,e.jsx)(r.Ce.Item,{label:"Sound Volume",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_sound_volume"})},content:Y+"%"})})]})})})},I=function(F){var w=(0,t.yy)().act,N=F.belly,$=N.belly_fullscreen,H=N.belly_fullscreen_color,K=N.belly_fullscreen_color_secondary,U=N.belly_fullscreen_color_trinary,q=N.mapRef,Y=N.colorization_enabled,Z=N.possible_fullscreens,z=N.disable_hud,Q=N.vore_sprite_flags,oe=N.affects_voresprite,le=N.absorbed_voresprite,ie=N.absorbed_multiplier,fe=N.liquid_voresprite,de=N.liquid_multiplier,ge=N.item_voresprite,ye=N.item_multiplier,ve=N.health_voresprite,Ie=N.resist_animation,Te=N.voresprite_size_factor,Ve=N.belly_sprite_option_shown,Ue=N.belly_sprite_to_affect,Ge=N.undergarment_chosen,ze=N.undergarment_if_none,ut=N.undergarment_color,gt=N.tail_option_shown,vt=N.tail_to_change_to,ft=N.tail_colouration,tt=N.tail_extra_overlay,Je=N.tail_extra_overlay2;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.iG,{title:"Vore Sprites",children:(0,e.jsx)(r.Cu,{direction:"row",children:(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Affect Vore Sprites",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_affects_vore_sprites"})},icon:oe?"toggle-on":"toggle-off",selected:oe,content:oe?"Yes":"No"})}),oe?(0,e.jsxs)("span",{children:[(0,e.jsxs)(r.Ce.Item,{label:"Vore Sprite Mode",children:[Q.length&&Q.join(", ")||"None",(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_vore_sprite_flags"})},ml:1,icon:"plus"})]}),(0,e.jsx)(r.Ce.Item,{label:"Count Absorbed prey for vore sprites",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_count_absorbed_prey_for_sprites"})},icon:le?"toggle-on":"toggle-off",selected:le,content:le?"Yes":"No"})}),(0,e.jsx)(r.Ce.Item,{label:"Absorbed Multiplier",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_absorbed_multiplier"})},content:ie})}),(0,e.jsx)(r.Ce.Item,{label:"Count liquid reagents for vore sprites",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_count_liquid_for_sprites"})},icon:fe?"toggle-on":"toggle-off",selected:fe,content:fe?"Yes":"No"})}),(0,e.jsx)(r.Ce.Item,{label:"Liquid Multiplier",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_liquid_multiplier"})},content:de})}),(0,e.jsx)(r.Ce.Item,{label:"Count items for vore sprites",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_count_items_for_sprites"})},icon:ge?"toggle-on":"toggle-off",selected:ge,content:ge?"Yes":"No"})}),(0,e.jsx)(r.Ce.Item,{label:"Items Multiplier",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_item_multiplier"})},content:ye})}),(0,e.jsx)(r.Ce.Item,{label:"Prey health affects vore sprites",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_health_impacts_size"})},icon:ve?"toggle-on":"toggle-off",selected:ve,content:ve?"Yes":"No"})}),(0,e.jsx)(r.Ce.Item,{label:"Animation when prey resist",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_resist_animation"})},icon:Ie?"toggle-on":"toggle-off",selected:Ie,content:Ie?"Yes":"No"})}),(0,e.jsx)(r.Ce.Item,{label:"Vore Sprite Size Factor",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_size_factor_sprites"})},content:Te})}),Ve?(0,e.jsx)(r.Ce.Item,{label:"Belly Sprite to affect",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_belly_sprite_to_affect"})},content:Ue})}):"",gt&&Q.includes("Undergarment addition")?(0,e.jsxs)("div",{children:[(0,e.jsx)(r.Ce.Item,{label:"Undergarment type to affect",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_undergarment_choice"})},content:Ge})}),(0,e.jsx)(r.Ce.Item,{label:"Undergarment if none equipped",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_undergarment_if_none"})},content:ze})}),(0,e.jsx)(L,{action_name:"b_undergarment_color",value_of:null,back_color:ut,name_of:"Undergarment Color if none"})]}):"",gt&&Q.includes("Tail adjustment")?(0,e.jsx)(r.Ce.Item,{label:"Tail to change to",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_tail_to_change_to"})},content:vt})}):""]}):""]})})}),(0,e.jsx)(r.iG,{title:"Belly Fullscreens Preview and Coloring",children:(0,e.jsxs)(r.Cu,{direction:"row",children:[(0,e.jsx)(L,{action_name:"b_fullscreen_color",value_of:null,back_color:H,name_of:"1"}),(0,e.jsx)(r.q,{icon:"eye-dropper",onClick:function(){return w("set_attribute",{attribute:"b_fullscreen_color",val:null})},children:"Select Primary Color"}),(0,e.jsx)(r.kv,{backgroundColor:K,width:"20px",height:"20px"}),(0,e.jsx)(r.q,{icon:"eye-dropper",onClick:function(){return w("set_attribute",{attribute:"b_fullscreen_color_secondary",val:null})},children:"Select Secondary Color"}),(0,e.jsx)(r.kv,{backgroundColor:U,width:"20px",height:"20px"}),(0,e.jsx)(r.q,{icon:"eye-dropper",onClick:function(){return w("set_attribute",{attribute:"b_fullscreen_color_trinary",val:null})},children:"Select Trinary Color"}),(0,e.jsx)(r.Ce.Item,{label:"Enable Coloration",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_colorization_enabled"})},icon:Y?"toggle-on":"toggle-off",selected:Y,content:Y?"Yes":"No"})}),(0,e.jsx)(r.Ce.Item,{label:"Preview Belly",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_preview_belly"})},content:"Preview"})}),(0,e.jsx)(r.Ce.Item,{label:"Clear Preview",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_clear_preview"})},content:"Clear"})})]})}),(0,e.jsxs)(r.iG,{children:[(0,e.jsx)(r.iG,{title:"Vore FX",children:(0,e.jsx)(r.Ce,{children:(0,e.jsx)(r.Ce.Item,{label:"Disable Prey HUD",children:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_disable_hud"})},icon:z?"toggle-on":"toggle-off",selected:z,content:z?"Yes":"No"})})})}),(0,e.jsxs)(r.iG,{title:"Belly Fullscreens Styles",width:"800px",children:["Belly styles:",(0,e.jsx)(r.q,{fluid:!0,selected:$===""||$===null,onClick:function(){return w("set_attribute",{attribute:"b_fullscreen",val:null})},children:"Disabled"}),Object.keys(Z).map(function(ke){return(0,e.jsx)("span",{style:{width:"256px"},children:(0,e.jsx)(r.q,{width:"256px",height:"256px",selected:ke===$,onClick:function(){return w("set_attribute",{attribute:"b_fullscreen",val:ke})},children:(0,e.jsx)(r.kv,{className:(0,j.iE)(["vore240x240",ke]),style:{transform:"translate(0%, 4%)"}})},ke)})})]})]})]})},M=function(F){var w=(0,t.yy)().act,N=F.belly,$=N.escapable,H=N.interacts,K=N.vorespawn_blacklist,U=N.autotransfer_enabled,q=N.autotransfer;return(0,e.jsxs)(r.iG,{title:"Belly Interactions",buttons:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_escapable"})},icon:$?"toggle-on":"toggle-off",selected:$,content:$?"Interactions On":"Interactions Off"}),children:[$?(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Escape Chance",children:(0,e.jsx)(r.q,{content:H.escapechance+"%",onClick:function(){return w("set_attribute",{attribute:"b_escapechance"})}})}),(0,e.jsx)(r.Ce.Item,{label:"Absorbed Escape Chance",children:(0,e.jsx)(r.q,{content:H.escapechance_absorbed+"%",onClick:function(){return w("set_attribute",{attribute:"b_escapechance_absorbed"})}})}),(0,e.jsx)(r.Ce.Item,{label:"Escape Time",children:(0,e.jsx)(r.q,{content:H.escapetime/10+"s",onClick:function(){return w("set_attribute",{attribute:"b_escapetime"})}})}),(0,e.jsx)(r.Ce.Divider,{}),(0,e.jsx)(r.Ce.Item,{label:"Transfer Chance",children:(0,e.jsx)(r.q,{content:H.transferchance+"%",onClick:function(){return w("set_attribute",{attribute:"b_transferchance"})}})}),(0,e.jsx)(r.Ce.Item,{label:"Transfer Location",children:(0,e.jsx)(r.q,{content:H.transferlocation?H.transferlocation:"Disabled",onClick:function(){return w("set_attribute",{attribute:"b_transferlocation"})}})}),(0,e.jsx)(r.Ce.Divider,{}),(0,e.jsx)(r.Ce.Item,{label:"Secondary Transfer Chance",children:(0,e.jsx)(r.q,{content:H.transferchance_secondary+"%",onClick:function(){return w("set_attribute",{attribute:"b_transferchance_secondary"})}})}),(0,e.jsx)(r.Ce.Item,{label:"Secondary Transfer Location",children:(0,e.jsx)(r.q,{content:H.transferlocation_secondary?H.transferlocation_secondary:"Disabled",onClick:function(){return w("set_attribute",{attribute:"b_transferlocation_secondary"})}})}),(0,e.jsx)(r.Ce.Divider,{}),(0,e.jsx)(r.Ce.Item,{label:"Absorb Chance",children:(0,e.jsx)(r.q,{content:H.absorbchance+"%",onClick:function(){return w("set_attribute",{attribute:"b_absorbchance"})}})}),(0,e.jsx)(r.Ce.Item,{label:"Digest Chance",children:(0,e.jsx)(r.q,{content:H.digestchance+"%",onClick:function(){return w("set_attribute",{attribute:"b_digestchance"})}})}),(0,e.jsx)(r.Ce.Divider,{})]}):"These options only display while interactions are turned on.",(0,e.jsx)(r.iG,{title:"Auto-Transfer Options",buttons:(0,e.jsx)(r.q,{onClick:function(){return w("set_attribute",{attribute:"b_autotransfer_enabled"})},icon:U?"toggle-on":"toggle-off",selected:U,content:U?"Auto-Transfer Enabled":"Auto-Transfer Disabled"}),children:U?(0,e.jsxs)(r.Ce,{children:[(0,e.jsx)(r.Ce.Item,{label:"Auto-Transfer Time",children:(0,e.jsx)(r.q,{content:q.autotransferwait/10+"s",onClick:function(){return w("set_attribute",{attribute:"b_autotransferwait"})}})}),(0,e.jsx)(r.Ce.Item,{label:"Auto-Transfer Chance",children:(0,e.jsx)(r.q,{content:q.autotransferchance+"%",onClick:function(){return w("set_attribute",{attribute:"b_autotransferchance"})}})}),(0,e.jsx)(r.Ce.Item,{label:"Auto-Transfer Location",children:(0,e.jsx)(r.q,{content:q.autotransferlocation?q.autotransferlocation:"Disabled",onClick:function(){return w("set_attribute",{attribute:"b_autotransferlocation"})}})}),(0,e.jsx)(r.Ce.Item,{label:"Auto-Transfer Secondary Chance",children:(0,e.jsx)(r.q,{content:q.autotransferchance_secondary+"%",onClick:function(){return w("set_attribute",{attribute:"b_autotransferchance_secondary"})}})}),(0,e.jsx)(r.Ce.Item,{label:"Auto-Transfer Secondary Location",children:(0,e.jsx)(r.q,{content:q.autotransferlocation_secondary?q.autotransferlocation_secondary:"Disabled",onClick:function(){return w("set_attribute",{attribute:"b_autotransferlocation_secondary"})}})}),(0,e.jsx)(r.Ce.Item,{label:"Auto-Transfer Min Amount",children:(0,e.jsx)(r.q,{content:q.autotransfer_min_amount,onClick:function(){return w("set_attribute",{attribute:"b_autotransfer_min_amount"})}})}),(0,e.jsx)(r.Ce.Item,{label:"Auto-Transfer Max Amount",children:(0,e.jsx)(r.q,{content:q.autotransfer_max_amount,onClick:function(){return w("set_attribute",{attribute:"b_autotransfer_max_amount"})}})})]}):"These options only display while Auto-Transfer is enabled."})]})},P=function(F){var w=(0,t.yy)(),N=w.act,$=w.data,H=$.show_pictures,K=F.contents,U=F.belly,q=F.outside,Y=q===void 0?!1:q;return(0,e.jsxs)(e.Fragment,{children:[Y&&(0,e.jsx)(r.q,{textAlign:"center",fluid:!0,mb:1,onClick:function(){return N("pick_from_outside",{pickall:!0})},children:"All"})||null,H&&(0,e.jsx)(r.Cu,{wrap:"wrap",justify:"center",align:"center",children:K.map(function(Z){return(0,e.jsxs)(r.Cu.Item,{basis:"33%",children:[(0,e.jsx)(r.q,{width:"64px",color:Z.absorbed?"purple":u[Z.stat],style:{"vertical-align":"middle","margin-right":"5px","border-radius":"20px"},onClick:function(){return N(Z.outside?"pick_from_outside":"pick_from_inside",{pick:Z.ref,belly:U})},children:(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+Z.icon,width:"64px",height:"64px",style:{"-ms-interpolation-mode":"nearest-neighbor","margin-left":"-5px"}})}),Z.name]},Z.name)})})||(0,e.jsx)(r.Ce,{children:K.map(function(Z){return(0,e.jsx)(r.Ce.Item,{label:Z.name,children:(0,e.jsx)(r.q,{fluid:!0,mt:-1,mb:-1,color:Z.absorbed?"purple":u[Z.stat],onClick:function(){return N(Z.outside?"pick_from_outside":"pick_from_inside",{pick:Z.ref,belly:U})},children:"Interact"})},Z.ref)})})]})},D=function(F){var w=(0,t.yy)(),N=w.act,$=w.data,H=$.prefs,K=H.digestable,U=H.devourable,q=H.resizable,Y=H.feeding,Z=H.absorbable,z=H.digest_leave_remains,Q=H.allowmobvore,oe=H.permit_healbelly,le=H.show_vore_fx,ie=H.can_be_drop_prey,fe=H.can_be_drop_pred,de=H.latejoin_vore,ge=H.latejoin_prey,ye=H.allow_spontaneous_tf,ve=H.step_mechanics_active,Ie=H.pickup_mechanics_active,Te=H.noisy,Ve=H.noisy_full,Ue=H.liq_rec,Ge=H.liq_giv,ze=H.autotransferable,ut=H.drop_vore,gt=H.stumble_vore,vt=H.slip_vore,ft=H.throw_vore,tt=H.food_vore,Je=H.nutrition_message_visible,ke=H.weight_message_visible,Re=H.eating_privacy_global,We=$.show_pictures,Xe=(0,t.cv)(context,"tabIndex",0),Qe=Xe[0],st=Xe[1],ot={digestion:{action:"toggle_digest",test:K,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:Z,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:U,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:Q,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:Y,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:oe,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:ie,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:fe,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:ut,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:vt,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:gt,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:ft,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:tt,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"}},spawnbelly:{action:"toggle_latejoin_vore",test:de,tooltip:{main:"Toggle late join vore spawnpoint.",enable:"Click here to turn on vorish spawnpoint.",disable:"Click here to turn off vorish spawnpoint."},content:{enabled:"Vore Spawn Pred Enabled",disabled:"Vore Spawn Pred Disabled"}},spawnprey:{action:"toggle_latejoin_prey",test:ge,tooltip:{main:"Toggle late join preds spawning on you.",enable:"Click here to turn on preds spawning around you.",disable:"Click here to turn off preds spawning around you."},content:{enabled:"Vore Spawn Prey Enabled",disabled:"Vore Spawn Prey Disabled"}},noisy:{action:"toggle_noisy",test:Te,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"}},noisy_full:{action:"toggle_noisy_full",test:Ve,tooltip:{main:"Toggle belching while full.",enable:"Click here to turn on belching while full.",disable:"Click here to turn off belching while full."},content:{enabled:"Belching Enabled",disabled:"Belching 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:ve,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:le,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:Ie,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:ye,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:Je,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:ke,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:Re,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"}},liquid_receive:{action:"toggle_liq_rec",test:Ue,tooltip:{main:"This button is for allowing or preventing others from giving you liquids from their vore organs.",enable:"Click here to allow receiving liquids.",disable:"Click here to prevent receiving liquids."},content:{enabled:"Receiving Liquids Allowed",disabled:"Do Not Allow Receiving Liquids"}},liquid_give:{action:"toggle_liq_giv",test:Ge,tooltip:{main:"This button is for allowing or preventing others from taking liquids from your vore organs.",enable:"Click here to allow taking liquids.",disable:"Click here to prevent taking liquids."},content:{enabled:"Taking Liquids Allowed",disabled:"Do Not Allow Taking Liquids"}},autotransferable:{action:"toggle_autotransferable",test:ze,tooltip:{main:"This button is for allowing or preventing belly auto-transfer mechanics from moving you.",enable:"Click here to allow autotransfer.",disable:"Click here to prevent autotransfer."},content:{enabled:"Auto-Transfer Allowed",disabled:"Do Not Allow Auto-Transfer"}}};return(0,e.jsxs)(r.iG,{title:"Mechanical Preferences",buttons:(0,e.jsxs)(r.q,{icon:"eye",selected:We,onClick:function(){return N("show_pictures")},children:["Contents Preference: ",We?"Show Pictures":"Show List"]}),children:[(0,e.jsxs)(r.Cu,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(r.Cu.Item,{basis:"32%",children:(0,e.jsx)(k,{spec:ot.digestion})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",grow:1,children:(0,e.jsx)(k,{spec:ot.absorbable})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",children:(0,e.jsx)(k,{spec:ot.devour})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",children:(0,e.jsx)(k,{spec:ot.mobvore})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",grow:1,children:(0,e.jsx)(k,{spec:ot.feed})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",children:(0,e.jsx)(k,{spec:ot.healbelly,tooltipPosition:"top"})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",children:(0,e.jsx)(k,{spec:ot.dropnom_prey})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",grow:1,children:(0,e.jsx)(k,{spec:ot.dropnom_pred})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",children:(0,e.jsx)(k,{spec:ot.toggle_drop_vore})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",children:(0,e.jsx)(k,{spec:ot.toggle_slip_vore})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",grow:1,children:(0,e.jsx)(k,{spec:ot.toggle_stumble_vore})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",children:(0,e.jsx)(k,{spec:ot.toggle_throw_vore})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",children:(0,e.jsx)(k,{spec:ot.toggle_food_vore})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",grow:1,children:(0,e.jsx)(k,{spec:ot.spawnbelly})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",grow:1,children:(0,e.jsx)(k,{spec:ot.spawnprey})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",children:(0,e.jsx)(k,{spec:ot.noisy})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",children:(0,e.jsx)(k,{spec:ot.noisy_full})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",children:(0,e.jsx)(k,{spec:ot.resize})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",grow:1,children:(0,e.jsx)(k,{spec:ot.steppref,tooltipPosition:"top"})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",children:(0,e.jsx)(k,{spec:ot.vore_fx,tooltipPosition:"top"})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",children:(0,e.jsx)(k,{spec:ot.remains,tooltipPosition:"top"})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",grow:1,children:(0,e.jsx)(k,{spec:ot.pickuppref,tooltipPosition:"top"})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",children:(0,e.jsx)(k,{spec:ot.spontaneous_tf})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",children:(0,e.jsx)(r.q,{fluid:!0,content:"Selective Mode Preference",onClick:function(){return N("switch_selective_mode_pref")}})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",children:(0,e.jsx)(k,{spec:ot.eating_privacy_global})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",grow:1,children:(0,e.jsx)(k,{spec:ot.autotransferable})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",children:(0,e.jsx)(k,{spec:ot.liquid_receive,tooltipPosition:"top"})}),(0,e.jsx)(r.Cu.Item,{basis:"32%",children:(0,e.jsx)(k,{spec:ot.liquid_give,tooltipPosition:"top"})})]}),(0,e.jsx)(r.iG,{title:"Aesthetic Preferences",children:(0,e.jsxs)(r.Cu,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(r.Cu.Item,{basis:"50%",grow:1,children:(0,e.jsx)(r.q,{fluid:!0,content:"Set Taste",icon:"grin-tongue",onClick:function(){return N("setflavor")}})}),(0,e.jsx)(r.Cu.Item,{basis:"50%",children:(0,e.jsx)(r.q,{fluid:!0,content:"Set Smell",icon:"wind",onClick:function(){return N("setsmell")}})}),(0,e.jsx)(r.Cu.Item,{basis:"50%",grow:1,children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"en"})},content:"Set Nutrition Examine Message",icon:"flask",fluid:!0})}),(0,e.jsx)(r.Cu.Item,{basis:"50%",children:(0,e.jsx)(r.q,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"ew"})},content:"Set Weight Examine Message",icon:"weight-hanging",fluid:!0})}),(0,e.jsx)(r.Cu.Item,{basis:"50%",grow:1,children:(0,e.jsx)(k,{spec:ot.examine_nutrition})}),(0,e.jsx)(r.Cu.Item,{basis:"50%",children:(0,e.jsx)(k,{spec:ot.examine_weight})}),(0,e.jsx)(r.Cu.Item,{basis:"50%",children:(0,e.jsx)(r.q,{fluid:!0,content:"Vore Sprite Color",onClick:function(){return N("set_vs_color")}})})]})}),(0,e.jsx)(r.c1,{}),(0,e.jsx)(r.iG,{children:(0,e.jsxs)(r.Cu,{spacing:1,children:[(0,e.jsx)(r.Cu.Item,{basis:"49%",children:(0,e.jsx)(r.q,{fluid:!0,content:"Save Prefs",icon:"save",onClick:function(){return N("saveprefs")}})}),(0,e.jsx)(r.Cu.Item,{basis:"49%",grow:1,children:(0,e.jsx)(r.q,{fluid:!0,content:"Reload Prefs",icon:"undo",onClick:function(){return N("reloadprefs")}})})]})})]})},k=function(F){var w=(0,t.yy)().act,N=F.spec,$=x(F,["spec"]),H=N.action,K=N.test,U=N.tooltip,q=N.content;return(0,e.jsx)(r.q,C({onClick:function(){return w(H)},icon:K?"toggle-on":"toggle-off",selected:K,fluid:!0,tooltip:U.main+" "+(K?U.disable:U.enable),content:K?q.enabled:q.disabled},$))},L=function(F,w){var N=(0,t.yy)(w).act,$=F.action_name,H=F.value_of,K=F.back_color,U=F.name_of;return(0,e.jsx)(r.q,{onClick:function(){N("set_attribute",{attribute:$,val:H})},children:(0,e.jsxs)(r.fT,{align:"center",fill:!0,children:[(0,e.jsx)(r.fT.Item,{children:(0,e.jsx)(r.kv,{style:{background:K.startsWith("#")?K:"#"+K,border:"2px solid white","box-sizing":"content-box",height:"11px",width:"11px"}})}),(0,e.jsxs)(r.fT.Item,{children:["Change ",U]})]})})}},22668:function(S,y,n){"use strict";n.r(y),n.d(y,{VorePanelExport:function(){return f}});var e=n(33496),a=n(45280),t=n(33404),r=n(76512),i={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'},j={Hold:'Item: Hold',"Digest (Food Only)":'Item: Digest (Food Only)',Digest:'Item: Digest',"Digest (Dispersed Damage)":'Item: Digest (Dispersed Damage)'},C={Numbing:"",Stripping:"","Leave Remains":"",Muffles:"bi-volume-mute","Affect Worn Items":"","Jams Sensors":"bi-wifi-off","Complete Absorb":""},x={"Produce Liquids":"","Digestion Liquids":"","Absorption Liquids":"","Draining Liquids":""},u=function(v){var p=[];return v==null||v.forEach(function(g){p.push(''+g+"")}),p.length===0&&p.push("No Addons Set"),p},d=function(v){var p=[];return v==null||v.forEach(function(g){p.push(''+g+"")}),p.length===0&&p.push("No Addons Set"),p},h=function(v,p){var g=v.name,_=v.desc,E=v.absorbed_desc,I=v.vore_verb,M=v.release_verb,P=v.mode,D=v.addons,k=v.item_mode,L=v.digest_brute,F=v.digest_burn,w=v.digest_oxy,N=v.can_taste,$=v.is_feedable,H=v.contaminates,K=v.contamination_flavor,U=v.contamination_color,q=v.nutrition_percent,Y=v.bulge_size,Z=v.display_absorbed_examine,z=v.save_digest_mode,Q=v.emote_active,oe=v.emote_time,le=v.shrink_grow_size,ie=v.vorespawn_blacklist,fe=v.egg_type,de=v.selective_preference,ge=v.struggle_messages_outside,ye=v.struggle_messages_inside,ve=v.absorbed_struggle_messages_outside,Ie=v.absorbed_struggle_messages_inside,Te=v.escape_attempt_messages_owner,Ve=v.escape_attempt_messages_prey,Ue=v.escape_messages_owner,Ge=v.escape_messages_prey,ze=v.escape_messages_outside,ut=v.escape_item_messages_owner,gt=v.escape_item_messages_prey,vt=v.escape_item_messages_outside,ft=v.escape_fail_messages_owner,tt=v.escape_fail_messages_prey,Je=v.escape_attempt_absorbed_messages_owner,ke=v.escape_attempt_absorbed_messages_prey,Re=v.escape_absorbed_messages_owner,We=v.escape_absorbed_messages_prey,Xe=v.escape_absorbed_messages_outside,Qe=v.escape_fail_absorbed_messages_owner,st=v.escape_fail_absorbed_messages_prey,ot=v.primary_transfer_messages_owner,Jt=v.primary_transfer_messages_prey,Ft=v.secondary_transfer_messages_owner,Ut=v.secondary_transfer_messages_prey,Ct=v.digest_chance_messages_owner,it=v.digest_chance_messages_prey,nt=v.absorb_chance_messages_owner,pt=v.absorb_chance_messages_prey,St=v.digest_messages_owner,Kt=v.digest_messages_prey,Yt=v.absorb_messages_owner,cn=v.absorb_messages_prey,rn=v.unabsorb_messages_owner,yn=v.unabsorb_messages_prey,kn=v.examine_messages,At=v.examine_messages_absorbed,Tn=v.emotes_digest,Qn=v.emotes_hold,Gr=v.emotes_holdabsorbed,Mr=v.emotes_absorb,Sr=v.emotes_heal,Dr=v.emotes_drain,Ar=v.emotes_steal,Vr=v.emotes_egg,bn=v.emotes_shrink,_n=v.emotes_grow,Rn=v.emotes_unabsorb,En=v.is_wet,In=v.wet_loop,wn=v.fancy_vore,Xn=v.vore_sound,zr=v.release_sound,uo=v.affects_vore_sprites,Uo=v.count_absorbed_prey_for_sprite,ri=v.resist_triggers_animation,qn=v.size_factor_for_sprite,fo=v.belly_sprite_to_affect,Hr=v.belly_fullscreen_color,Wo=v.disable_hud,Bn=v.escapable,cr=v.escapechance,mn=v.escapechance_absorbed,ur=v.escapetime,oi=v.transferchance,ii=v.transferlocation,Xt=v.transferchance_secondary,ai=v.transferlocation_secondary,kr=v.absorbchance,Fo=v.digestchance,Jr=v.autotransferwait,xr=v.autotransferchance,ho=v.autotransferlocation,Yr=v.autotransferchance_secondary,dt=v.autotransferlocation_secondary,$r=v.autotransfer_enabled,On=v.autotransfer_min_amount,Fn=v.autotransfer_max_amount,Zr=v.show_liquids,dr=v.reagentbellymode,Ln=v.reagent_chosen,tn=v.reagent_name,er=v.reagent_transfer_verb,jr=v.gen_time_display,si=v.custom_max_volume,li=v.vorefootsteps_sounds,tr=v.reagent_mode_flag_list,mo=v.liquid_fullness1_messages,Qr=v.liquid_fullness2_messages,fr=v.liquid_fullness3_messages,ci=v.liquid_fullness4_messages,vo=v.liquid_fullness5_messages,Gt=v.fullness1_messages,go=v.fullness2_messages,Kn=v.fullness3_messages,Tr=v.fullness4_messages,Xr=v.fullness5_messages,re="";return re+='

',re+='

",re+='
',re+='
',re+="Addons:
"+u(D)+"

",re+="== Descriptions ==
",re+="Vore Verb:
"+I+"

",re+="Release Verb:
"+M+"

",re+='Description:
"'+_+'"

',re+='Absorbed Description:
"'+E+'"

',re+="
",re+="== Messages ==
",re+='
',re+='
",re+='
',re+='
',re+='
',Te==null||Te.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',Ve==null||Ve.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',Ue==null||Ue.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',Ge==null||Ge.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',ze==null||ze.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',ut==null||ut.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',gt==null||gt.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',vt==null||vt.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',ft==null||ft.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',tt==null||tt.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',Je==null||Je.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',ke==null||ke.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',Re==null||Re.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',We==null||We.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',Xe==null||Xe.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',Qe==null||Qe.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',st==null||st.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',ot==null||ot.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',Jt==null||Jt.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',Ft==null||Ft.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',Ut==null||Ut.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',Ct==null||Ct.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',it==null||it.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',nt==null||nt.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',pt==null||pt.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',ge==null||ge.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',ye==null||ye.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',ve==null||ve.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',Ie==null||Ie.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',St==null||St.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',Kt==null||Kt.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',Yt==null||Yt.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',cn==null||cn.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',rn==null||rn.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',yn==null||yn.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',kn==null||kn.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',At==null||At.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+="
",re+="
",re+="
",re+="
= Idle Messages =

",re+="

Idle Messages (Hold):

",Qn==null||Qn.forEach(function(Ke){re+=Ke+"
"}),re+="


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

",Gr==null||Gr.forEach(function(Ke){re+=Ke+"
"}),re+="


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

",Tn==null||Tn.forEach(function(Ke){re+=Ke+"
"}),re+="


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

",Mr==null||Mr.forEach(function(Ke){re+=Ke+"
"}),re+="


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

",Rn==null||Rn.forEach(function(Ke){re+=Ke+"
"}),re+="


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

",Dr==null||Dr.forEach(function(Ke){re+=Ke+"
"}),re+="


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

",Sr==null||Sr.forEach(function(Ke){re+=Ke+"
"}),re+="


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

",Ar==null||Ar.forEach(function(Ke){re+=Ke+"
"}),re+="


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

",bn==null||bn.forEach(function(Ke){re+=Ke+"
"}),re+="


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

",_n==null||_n.forEach(function(Ke){re+=Ke+"
"}),re+="


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

",Vr==null||Vr.forEach(function(Ke){re+=Ke+"
"}),re+="


",re+="


",re+="
",re+='
',re+='
',re+='

',re+='

",re+='
',re+='
',re+='
    ',re+='
  • Can Taste: '+(N?'Yes':'No')+"
  • ",re+='
  • Feedable: '+($?'Yes':'No')+"
  • ",re+='
  • Contaminates: '+(H?'Yes':'No')+"
  • ",re+='
  • Contamination Flavor: '+K+"
  • ",re+='
  • Contamination Color: '+U+"
  • ",re+='
  • Nutritional Gain: '+q+"%
  • ",re+='
  • Required Examine Size: '+Y*100+"%
  • ",re+='
  • Display Absorbed Examines: '+(Z?'True':'False')+"
  • ",re+='
  • Save Digest Mode: '+(z?'True':'False')+"
  • ",re+='
  • Idle Emotes: '+(Q?'Active':'Inactive')+"
  • ",re+='
  • Idle Emote Delay: '+oe+" seconds
  • ",re+='
  • Shrink/Grow Size: '+le*100+"%
  • ",re+='
  • Vore Spawn Blacklist: '+(ie?'Yes':'No')+"
  • ",re+='
  • Egg Type: '+fe+"
  • ",re+='
  • Selective Mode Preference: '+de+"
  • ",re+="
",re+="
",re+='
',re+='

',re+='

",re+='
',re+='
',re+='
    ',re+='
  • Fleshy Belly: '+(En?'Yes':'No')+"
  • ",re+='
  • Internal Loop: '+(In?'Yes':'No')+"
  • ",re+='
  • Use Fancy Sounds: '+(wn?'Yes':'No')+"
  • ",re+='
  • Vore Sound: '+Xn+"
  • ",re+='
  • Release Sound: '+zr+"
  • ",re+="
",re+="
",re+='
',re+='

',re+='

",re+='
",re+='
',re+="Vore Sprites",re+='
    ',re+='
  • Affect Vore Sprites: '+(uo?'Yes':'No')+"
  • ",re+='
  • Count Absorbed prey for vore sprites: '+(Uo?'Yes':'No')+"
  • ",re+='
  • Animation when prey resist: '+(ri?'Yes':'No')+"
  • ",re+='
  • Vore Sprite Size Factor: '+qn+"
  • ",re+='
  • Belly Sprite to affect: '+fo+"
  • ",re+="
",re+="Belly Fullscreens Preview and Coloring",re+='
    ',re+='
  • Color: '+Hr+"",re+="
",re+="Vore FX",re+='
    ',re+='
  • Disable Prey HUD: '+(Wo?'Yes':'No')+"
  • ",re+="
",re+="
",re+='
',re+='

',re+='

",re+='
',re+='
',re+="Belly Interactions ("+(Bn?'Enabled':'Disabled')+")",re+='
    ',re+='
  • Escape Chance: '+cr+"%
  • ",re+='
  • Escape Chance: '+mn+"%
  • ",re+='
  • Escape Time: '+ur/10+"s
  • ",re+='
  • Transfer Chance: '+oi+"%
  • ",re+='
  • Transfer Location: '+ii+"
  • ",re+='
  • Secondary Transfer Chance: '+Xt+"%
  • ",re+='
  • Secondary Transfer Location: '+ai+"
  • ",re+='
  • Absorb Chance: '+kr+"%
  • ",re+='
  • Digest Chance: '+Fo+"%
  • ",re+="
",re+="
",re+="Auto-Transfer Options ("+($r?'Enabled':'Disabled')+")",re+='
    ',re+='
  • Auto-Transfer Time: '+Jr/10+"s
  • ",re+='
  • Auto-Transfer Chance: '+xr+"%
  • ",re+='
  • Auto-Transfer Location: '+ho+"
  • ",re+='
  • Auto-Transfer Chance: '+Yr+"%
  • ",re+='
  • Auto-Transfer Location: '+dt+"
  • ",re+='
  • Auto-Transfer Min Amount: '+On+"
  • ",re+='
  • Auto-Transfer Max Amount: '+Fn+"
  • ",re+="
",re+="
",re+='
',re+='

',re+='

",re+='
',re+='
',re+='
    ',re+='
  • Generate Liquids: '+(dr?'On':'Off')+"
  • ",re+='
  • Liquid Type: '+Ln+"
  • ",re+='
  • Liquid Name: '+tn+"
  • ",re+='
  • Transfer Verb: '+er+"
  • ",re+='
  • Generation Time: '+jr+"
  • ",re+='
  • Liquid Capacity: '+si+"
  • ",re+='
  • Slosh Sounds: '+(li?'On':'Off')+"
  • ",re+='
  • Liquid Addons: '+d(tr)+"
  • ",re+="
",re+="
",re+='
',re+='

',re+='

",re+='
',re+='
',re+='
',re+='
",re+='
',re+='
',re+='
',Gt==null||Gt.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',go==null||go.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',Kn==null||Kn.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',Tr==null||Tr.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+='
',Xr==null||Xr.forEach(function(Ke){re+=Ke+"
"}),re+="
",re+="
",re+="
",re+="
",re+="
",re+="
",re},c=function(){var v=new Date,p=String(v.getHours());p.length<2&&(p="0"+p);var g=String(v.getMinutes());g.length<2&&(g="0"+g);var _=String(v.getDate());_.length<2&&(_="0"+_);var E=String(v.getMonth()+1);E.length<2&&(E="0"+E);var I=String(v.getFullYear());return" "+I+"-"+E+"-"+_+" ("+p+" "+g+")"},l=function(v){var p=(0,a.yy)(),g=p.act,_=p.data,E=_.db_version,I=_.db_repo,M=_.mob_name,P=_.bellies,D=c(),k=M+D+v,L;if(v===".html"){var F="";L=new Blob([''+P.length+" Exported Bellies (DB_VER: "+I+"-"+E+')'+F+'

Bellies of '+M+'

Generated on: '+D+'

'],{type:"text/html;charset=utf8"}),P.forEach(function(w,N){L=new Blob([L,h(w,N)],{type:"text/html;charset=utf8"})}),L=new Blob([L,"
",'