diff --git a/code/__HELPERS/matrices.dm b/code/__HELPERS/matrices.dm index dfcd3a304a3..c03999e1e82 100644 --- a/code/__HELPERS/matrices.dm +++ b/code/__HELPERS/matrices.dm @@ -64,6 +64,14 @@ //doesn't have an object argument because this is "Stacking" with the animate call above //3 billion% intentional +/** + * Shear the transform on either or both axes. + * * x - X axis shearing + * * y - Y axis shearing + */ +/matrix/proc/Shear(x, y) + return Multiply(matrix(1, x, 0, y, 1, 0)) + //Dumps the matrix data in format a-f /matrix/proc/tolist() . = list() diff --git a/code/datums/datumvars.dm b/code/datums/datumvars.dm index da34625f18c..c095f6f3833 100644 --- a/code/datums/datumvars.dm +++ b/code/datums/datumvars.dm @@ -561,6 +561,13 @@ modify_variables(D, href_list["varnameedit"], 1) + else if(href_list["matrix_tester"]) + var/atom/atom = locateUID(href_list["matrix_tester"]) + if(!istype(atom)) + to_chat(usr, "Это можно использовать только для экземпляров типов /atom", confidential = TRUE) + return + usr?.client.open_matrix_tester(atom) + else if(href_list["togbit"]) if(!check_rights(R_VAREDIT)) return diff --git a/code/game/atoms.dm b/code/game/atoms.dm index 71eff1cfe86..7697bbce7e4 100644 --- a/code/game/atoms.dm +++ b/code/game/atoms.dm @@ -1352,6 +1352,7 @@ GLOBAL_LIST_EMPTY(blood_splatter_icons) .["Jump to turf"] = "?_src_=holder;adminplayerobservecoodjump=1;X=[curturf.x];Y=[curturf.y];Z=[curturf.z]" .["Add reagent"] = "?_src_=vars;addreagent=[UID()]" .["Edit reagents"] = "?_src_=vars;editreagents=[UID()]" + .["Transform editor"] = "?_src_=vars;matrix_tester=[UID()]" .["Trigger explosion"] = "?_src_=vars;explode=[UID()]" .["Trigger EM pulse"] = "?_src_=vars;emp=[UID()]" diff --git a/code/modules/admin/verbs/nobody_wants_to_learn_matrix_math.dm b/code/modules/admin/verbs/nobody_wants_to_learn_matrix_math.dm new file mode 100644 index 00000000000..d1c2abcbe35 --- /dev/null +++ b/code/modules/admin/verbs/nobody_wants_to_learn_matrix_math.dm @@ -0,0 +1,83 @@ +/** + * ## nobody wants to learn matrix math! + * + * More than just a completely true statement, this datum is created as a tgui interface + * allowing you to modify each vector until you know what you're doing. + * Much like filteriffic, 'nobody wants to learn matrix math' is meant for developers like you and I + * to implement interesting matrix transformations without the hassle if needing to know... algebra? Damn, i'm stupid. + */ +/datum/transform_matrix_editor + var/atom/target + var/matrix/testing_matrix + +/datum/transform_matrix_editor/New(atom/target) + src.target = target + testing_matrix = matrix(target.transform) + +/datum/transform_matrix_editor/Destroy(force, ...) + QDEL_NULL(testing_matrix) + target = null + return ..() + +/datum/transform_matrix_editor/ui_state(mob/user) + return GLOB.admin_state + +/datum/transform_matrix_editor/ui_close(mob/user) + qdel(src) + +/datum/transform_matrix_editor/ui_interact(mob/user, datum/tgui/ui) + ui = SStgui.try_update_ui(user, src, ui) + if(!ui) + ui = new(user, src, "MatrixMathTester") + ui.open() + +/datum/transform_matrix_editor/ui_data() + var/list/data = list() + data["matrix_a"] = testing_matrix.a + data["matrix_b"] = testing_matrix.b + data["matrix_c"] = testing_matrix.c + data["matrix_d"] = testing_matrix.d + data["matrix_e"] = testing_matrix.e + data["matrix_f"] = testing_matrix.f + data["pixelated"] = target.appearance_flags & PIXEL_SCALE + return data + +/datum/transform_matrix_editor/ui_act(action, list/params) + . = ..() + if(.) + return + + if(!check_rights(R_VAREDIT)) + return + + switch(action) + if("change_var") + var/matrix_var_name = params["var_name"] + var/matrix_var_value = params["var_value"] + if(!testing_matrix.vv_edit_var(matrix_var_name, matrix_var_value)) + to_chat(src, "Ваше изменение было отклонено объектом. Это ошибка матричного тестера, а не ваша вина. Напишите об этом в баг репорты.", confidential = TRUE) + return + set_transform() + if("scale") + testing_matrix.Scale(params["x"], params["y"]) + set_transform() + if("translate") + testing_matrix.Translate(params["x"], params["y"]) + set_transform() + if("shear") + testing_matrix.Shear(params["x"], params["y"]) + set_transform() + if("turn") + testing_matrix.Turn(params["angle"]) + set_transform() + if("toggle_pixel") + target.appearance_flags ^= PIXEL_SCALE + +/datum/transform_matrix_editor/proc/set_transform() + animate(target, transform = testing_matrix, time = 0.5 SECONDS) + testing_matrix = matrix(target.transform) + +/client/proc/open_matrix_tester(atom/in_atom) + if(holder) + var/datum/transform_matrix_editor/matrix_tester = new(in_atom) + matrix_tester.ui_interact(mob) diff --git a/paradise.dme b/paradise.dme index 6951c75c36b..58190ddbe1a 100644 --- a/paradise.dme +++ b/paradise.dme @@ -1598,6 +1598,7 @@ #include "code\modules\admin\verbs\mapping.dm" #include "code\modules\admin\verbs\massmodvar.dm" #include "code\modules\admin\verbs\modifyvariables.dm" +#include "code\modules\admin\verbs\nobody_wants_to_learn_matrix_math.dm" #include "code\modules\admin\verbs\one_click_antag.dm" #include "code\modules\admin\verbs\onlyone.dm" #include "code\modules\admin\verbs\onlyoneteam.dm" diff --git a/tgui/packages/tgui/interfaces/MatrixMathTester.tsx b/tgui/packages/tgui/interfaces/MatrixMathTester.tsx new file mode 100644 index 00000000000..d4cb922bcd9 --- /dev/null +++ b/tgui/packages/tgui/interfaces/MatrixMathTester.tsx @@ -0,0 +1,220 @@ +import { useBackend, useLocalState } from '../backend'; +import { Input, NumberInput, Section, Button, Table } from '../components'; +import { toFixed } from 'common/math'; +import { Window } from '../layouts'; + +const MatrixMathTesterInput = ( + props: { value: number; varName: string }, + context +) => { + const { act } = useBackend(context); + return ( + toFixed(value, 3)} + width={'100%'} + onChange={(e, value) => + act('change_var', { var_name: props.varName, var_value: value }) + } + /> + ); +}; + +type MatrixData = { + matrix_a: number; + matrix_b: number; + matrix_c: number; + matrix_d: number; + matrix_e: number; + matrix_f: number; + pixelated: boolean; +}; + +export const MatrixMathTester = (props, context) => { + const { act, data } = useBackend(context); + const { + matrix_a, + matrix_b, + matrix_c, + matrix_d, + matrix_e, + matrix_f, + pixelated, + } = data; + const [scaleX, setScaleX] = useLocalState(context, 'scale_x', 1); + const [scaleY, setScaleY] = useLocalState(context, 'scale_y', 1); + const [translateX, setTranslateX] = useLocalState(context, 'translate_x', 0); + const [translateY, setTranslateY] = useLocalState(context, 'translate_y', 0); + const [shearX, setShearX] = useLocalState(context, 'shear_x', 0); + const [shearY, setShearY] = useLocalState(context, 'shear_y', 0); + const [angle, setAngle] = useLocalState(context, 'angle', 0); + return ( + + +
+ + + + X + Y + + + Position(c, f) + + + + + + + + + Incline(b, d) + + + + + + + + + Scale(a,e) + + + + + + + +
+ + + Action + X + Y + + + +
+
+
+
+ ); +}; diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 215537a7a3e..b5ac55545e3 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1,12 +1,12 @@ -(function(){(function(){var Xt={96376:function(I,r,n){"use strict";r.__esModule=!0,r.createPopper=void 0,r.popperGenerator=s;var e=p(n(74758)),a=p(n(28811)),t=p(n(98309)),o=p(n(44896)),m=p(n(33118)),S=p(n(10579)),y=p(n(56500)),k=p(n(17633));r.detectOverflow=k.default;var V=n(75573);function p(d){return d&&d.__esModule?d:{default:d}}var i={placement:"bottom",modifiers:[],strategy:"absolute"};function c(){for(var d=arguments.length,f=new Array(d),u=0;u0&&(0,a.round)(p.width)/y.offsetWidth||1,c=y.offsetHeight>0&&(0,a.round)(p.height)/y.offsetHeight||1);var s=(0,e.isElement)(y)?(0,t.default)(y):window,l=s.visualViewport,d=!(0,o.default)()&&V,f=(p.left+(d&&l?l.offsetLeft:0))/i,u=(p.top+(d&&l?l.offsetTop:0))/c,C=p.width/i,b=p.height/c;return{width:C,height:b,top:u,right:f+C,bottom:u+b,left:f,x:f,y:u}}},49035:function(I,r,n){"use strict";r.__esModule=!0,r.default=b;var e=n(46206),a=d(n(87991)),t=d(n(79752)),o=d(n(98309)),m=d(n(44896)),S=d(n(40600)),y=d(n(16599)),k=n(75573),V=d(n(37786)),p=d(n(57819)),i=d(n(4206)),c=d(n(12972)),s=d(n(81666)),l=n(63618);function d(v){return v&&v.__esModule?v:{default:v}}function f(v,h){var g=(0,V.default)(v,!1,h==="fixed");return g.top=g.top+v.clientTop,g.left=g.left+v.clientLeft,g.bottom=g.top+v.clientHeight,g.right=g.left+v.clientWidth,g.width=v.clientWidth,g.height=v.clientHeight,g.x=g.left,g.y=g.top,g}function u(v,h,g){return h===e.viewport?(0,s.default)((0,a.default)(v,g)):(0,k.isElement)(h)?f(h,g):(0,s.default)((0,t.default)((0,S.default)(v)))}function C(v){var h=(0,o.default)((0,p.default)(v)),g=["absolute","fixed"].indexOf((0,y.default)(v).position)>=0,N=g&&(0,k.isHTMLElement)(v)?(0,m.default)(v):v;return(0,k.isElement)(N)?h.filter(function(x){return(0,k.isElement)(x)&&(0,i.default)(x,N)&&(0,c.default)(x)!=="body"}):[]}function b(v,h,g,N){var x=h==="clippingParents"?C(v):[].concat(h),B=[].concat(x,[g]),L=B[0],T=B.reduce(function(E,w){var A=u(v,w,N);return E.top=(0,l.max)(A.top,E.top),E.right=(0,l.min)(A.right,E.right),E.bottom=(0,l.min)(A.bottom,E.bottom),E.left=(0,l.max)(A.left,E.left),E},u(v,L,N));return T.width=T.right-T.left,T.height=T.bottom-T.top,T.x=T.left,T.y=T.top,T}},74758:function(I,r,n){"use strict";r.__esModule=!0,r.default=i;var e=V(n(37786)),a=V(n(13390)),t=V(n(12972)),o=n(75573),m=V(n(79697)),S=V(n(40600)),y=V(n(10798)),k=n(63618);function V(c){return c&&c.__esModule?c:{default:c}}function p(c){var s=c.getBoundingClientRect(),l=(0,k.round)(s.width)/c.offsetWidth||1,d=(0,k.round)(s.height)/c.offsetHeight||1;return l!==1||d!==1}function i(c,s,l){l===void 0&&(l=!1);var d=(0,o.isHTMLElement)(s),f=(0,o.isHTMLElement)(s)&&p(s),u=(0,S.default)(s),C=(0,e.default)(c,f,l),b={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(d||!d&&!l)&&(((0,t.default)(s)!=="body"||(0,y.default)(u))&&(b=(0,a.default)(s)),(0,o.isHTMLElement)(s)?(v=(0,e.default)(s,!0),v.x+=s.clientLeft,v.y+=s.clientTop):u&&(v.x=(0,m.default)(u))),{x:C.left+b.scrollLeft-v.x,y:C.top+b.scrollTop-v.y,width:C.width,height:C.height}}},16599:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},40600:function(I,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(75573);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},79752:function(I,r,n){"use strict";r.__esModule=!0,r.default=y;var e=S(n(40600)),a=S(n(16599)),t=S(n(79697)),o=S(n(43750)),m=n(63618);function S(k){return k&&k.__esModule?k:{default:k}}function y(k){var V,p=(0,e.default)(k),i=(0,o.default)(k),c=(V=k.ownerDocument)==null?void 0:V.body,s=(0,m.max)(p.scrollWidth,p.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),l=(0,m.max)(p.scrollHeight,p.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),d=-i.scrollLeft+(0,t.default)(k),f=-i.scrollTop;return(0,a.default)(c||p).direction==="rtl"&&(d+=(0,m.max)(p.clientWidth,c?c.clientWidth:0)-s),{width:s,height:l,x:d,y:f}}},3073:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},28811:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(37786));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var m=(0,e.default)(o),S=o.offsetWidth,y=o.offsetHeight;return Math.abs(m.width-S)<=1&&(S=m.width),Math.abs(m.height-y)<=1&&(y=m.height),{x:o.offsetLeft,y:o.offsetTop,width:S,height:y}}},12972:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},13390:function(I,r,n){"use strict";r.__esModule=!0,r.default=S;var e=m(n(43750)),a=m(n(95115)),t=n(75573),o=m(n(3073));function m(y){return y&&y.__esModule?y:{default:y}}function S(y){return y===(0,a.default)(y)||!(0,t.isHTMLElement)(y)?(0,e.default)(y):(0,o.default)(y)}},44896:function(I,r,n){"use strict";r.__esModule=!0,r.default=i;var e=k(n(95115)),a=k(n(12972)),t=k(n(16599)),o=n(75573),m=k(n(87031)),S=k(n(57819)),y=k(n(35366));function k(c){return c&&c.__esModule?c:{default:c}}function V(c){return!(0,o.isHTMLElement)(c)||(0,t.default)(c).position==="fixed"?null:c.offsetParent}function p(c){var s=/firefox/i.test((0,y.default)()),l=/Trident/i.test((0,y.default)());if(l&&(0,o.isHTMLElement)(c)){var d=(0,t.default)(c);if(d.position==="fixed")return null}var f=(0,S.default)(c);for((0,o.isShadowRoot)(f)&&(f=f.host);(0,o.isHTMLElement)(f)&&["html","body"].indexOf((0,a.default)(f))<0;){var u=(0,t.default)(f);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||s&&u.willChange==="filter"||s&&u.filter&&u.filter!=="none")return f;f=f.parentNode}return null}function i(c){for(var s=(0,e.default)(c),l=V(c);l&&(0,m.default)(l)&&(0,t.default)(l).position==="static";)l=V(l);return l&&((0,a.default)(l)==="html"||(0,a.default)(l)==="body"&&(0,t.default)(l).position==="static")?s:l||p(c)||s}},57819:function(I,r,n){"use strict";r.__esModule=!0,r.default=m;var e=o(n(12972)),a=o(n(40600)),t=n(75573);function o(S){return S&&S.__esModule?S:{default:S}}function m(S){return(0,e.default)(S)==="html"?S:S.assignedSlot||S.parentNode||((0,t.isShadowRoot)(S)?S.host:null)||(0,a.default)(S)}},24426:function(I,r,n){"use strict";r.__esModule=!0,r.default=S;var e=m(n(57819)),a=m(n(10798)),t=m(n(12972)),o=n(75573);function m(y){return y&&y.__esModule?y:{default:y}}function S(y){return["html","body","#document"].indexOf((0,t.default)(y))>=0?y.ownerDocument.body:(0,o.isHTMLElement)(y)&&(0,a.default)(y)?y:S((0,e.default)(y))}},87991:function(I,r,n){"use strict";r.__esModule=!0,r.default=S;var e=m(n(95115)),a=m(n(40600)),t=m(n(79697)),o=m(n(89331));function m(y){return y&&y.__esModule?y:{default:y}}function S(y,k){var V=(0,e.default)(y),p=(0,a.default)(y),i=V.visualViewport,c=p.clientWidth,s=p.clientHeight,l=0,d=0;if(i){c=i.width,s=i.height;var f=(0,o.default)();(f||!f&&k==="fixed")&&(l=i.offsetLeft,d=i.offsetTop)}return{width:c,height:s,x:l+(0,t.default)(y),y:d}}},95115:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}},43750:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var m=(0,e.default)(o),S=m.pageXOffset,y=m.pageYOffset;return{scrollLeft:S,scrollTop:y}}},79697:function(I,r,n){"use strict";r.__esModule=!0,r.default=m;var e=o(n(37786)),a=o(n(40600)),t=o(n(43750));function o(S){return S&&S.__esModule?S:{default:S}}function m(S){return(0,e.default)((0,a.default)(S)).left+(0,t.default)(S).scrollLeft}},75573:function(I,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=m;var e=a(n(95115));function a(S){return S&&S.__esModule?S:{default:S}}function t(S){var y=(0,e.default)(S).Element;return S instanceof y||S instanceof Element}function o(S){var y=(0,e.default)(S).HTMLElement;return S instanceof y||S instanceof HTMLElement}function m(S){if(typeof ShadowRoot=="undefined")return!1;var y=(0,e.default)(S).ShadowRoot;return S instanceof y||S instanceof ShadowRoot}},89331:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(35366));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},10798:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(16599));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var m=(0,e.default)(o),S=m.overflow,y=m.overflowX,k=m.overflowY;return/auto|scroll|overlay|hidden/.test(S+k+y)}},87031:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(12972));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},98309:function(I,r,n){"use strict";r.__esModule=!0,r.default=S;var e=m(n(24426)),a=m(n(57819)),t=m(n(95115)),o=m(n(10798));function m(y){return y&&y.__esModule?y:{default:y}}function S(y,k){var V;k===void 0&&(k=[]);var p=(0,e.default)(y),i=p===((V=y.ownerDocument)==null?void 0:V.body),c=(0,t.default)(p),s=i?[c].concat(c.visualViewport||[],(0,o.default)(p)?p:[]):p,l=k.concat(s);return i?l:l.concat(S((0,a.default)(s)))}},46206:function(I,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",m=r.basePlacements=[n,e,a,t],S=r.start="start",y=r.end="end",k=r.clippingParents="clippingParents",V=r.viewport="viewport",p=r.popper="popper",i=r.reference="reference",c=r.variationPlacements=m.reduce(function(x,B){return x.concat([B+"-"+S,B+"-"+y])},[]),s=r.placements=[].concat(m,[o]).reduce(function(x,B){return x.concat([B,B+"-"+S,B+"-"+y])},[]),l=r.beforeRead="beforeRead",d=r.read="read",f=r.afterRead="afterRead",u=r.beforeMain="beforeMain",C=r.main="main",b=r.afterMain="afterMain",v=r.beforeWrite="beforeWrite",h=r.write="write",g=r.afterWrite="afterWrite",N=r.modifierPhases=[l,d,f,u,C,b,v,h,g]},95996:function(I,r,n){"use strict";r.__esModule=!0;var e={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};r.popperGenerator=r.detectOverflow=r.createPopperLite=r.createPopperBase=r.createPopper=void 0;var a=n(46206);Object.keys(a).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===a[y]||(r[y]=a[y])});var t=n(39805);Object.keys(t).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===t[y]||(r[y]=t[y])});var o=n(96376);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var m=n(83312);r.createPopper=m.createPopper;var S=n(2473);r.createPopperLite=S.createPopper},19975:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(12972)),a=n(75573);function t(y){return y&&y.__esModule?y:{default:y}}function o(y){var k=y.state;Object.keys(k.elements).forEach(function(V){var p=k.styles[V]||{},i=k.attributes[V]||{},c=k.elements[V];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,p),Object.keys(i).forEach(function(s){var l=i[s];l===!1?c.removeAttribute(s):c.setAttribute(s,l===!0?"":l)}))})}function m(y){var k=y.state,V={popper:{position:k.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(k.elements.popper.style,V.popper),k.styles=V,k.elements.arrow&&Object.assign(k.elements.arrow.style,V.arrow),function(){Object.keys(k.elements).forEach(function(p){var i=k.elements[p],c=k.attributes[p]||{},s=Object.keys(k.styles.hasOwnProperty(p)?k.styles[p]:V[p]),l=s.reduce(function(d,f){return d[f]="",d},{});!(0,a.isHTMLElement)(i)||!(0,e.default)(i)||(Object.assign(i.style,l),Object.keys(c).forEach(function(d){i.removeAttribute(d)}))})}}var S=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:m,requires:["computeStyles"]}},52744:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=p(n(83104)),a=p(n(28811)),t=p(n(4206)),o=p(n(44896)),m=p(n(41199)),S=n(28595),y=p(n(43286)),k=p(n(81447)),V=n(46206);function p(d){return d&&d.__esModule?d:{default:d}}var i=function(){function d(f,u){return f=typeof f=="function"?f(Object.assign({},u.rects,{placement:u.placement})):f,(0,y.default)(typeof f!="number"?f:(0,k.default)(f,V.basePlacements))}return d}();function c(d){var f,u=d.state,C=d.name,b=d.options,v=u.elements.arrow,h=u.modifiersData.popperOffsets,g=(0,e.default)(u.placement),N=(0,m.default)(g),x=[V.left,V.right].indexOf(g)>=0,B=x?"height":"width";if(!(!v||!h)){var L=i(b.padding,u),T=(0,a.default)(v),E=N==="y"?V.top:V.left,w=N==="y"?V.bottom:V.right,A=u.rects.reference[B]+u.rects.reference[N]-h[N]-u.rects.popper[B],O=h[N]-u.rects.reference[N],M=(0,o.default)(v),P=M?N==="y"?M.clientHeight||0:M.clientWidth||0:0,R=A/2-O/2,F=L[E],_=P-T[B]-L[w],U=P/2-T[B]/2+R,W=(0,S.within)(F,U,_),$=N;u.modifiersData[C]=(f={},f[$]=W,f.centerOffset=W-U,f)}}function s(d){var f=d.state,u=d.options,C=u.element,b=C===void 0?"[data-popper-arrow]":C;b!=null&&(typeof b=="string"&&(b=f.elements.popper.querySelector(b),!b)||(0,t.default)(f.elements.popper,b)&&(f.elements.arrow=b))}var l=r.default={name:"arrow",enabled:!0,phase:"main",fn:c,effect:s,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},59894:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=c;var e=n(46206),a=V(n(44896)),t=V(n(95115)),o=V(n(40600)),m=V(n(16599)),S=V(n(83104)),y=V(n(45)),k=n(63618);function V(d){return d&&d.__esModule?d:{default:d}}var p={top:"auto",right:"auto",bottom:"auto",left:"auto"};function i(d,f){var u=d.x,C=d.y,b=f.devicePixelRatio||1;return{x:(0,k.round)(u*b)/b||0,y:(0,k.round)(C*b)/b||0}}function c(d){var f,u=d.popper,C=d.popperRect,b=d.placement,v=d.variation,h=d.offsets,g=d.position,N=d.gpuAcceleration,x=d.adaptive,B=d.roundOffsets,L=d.isFixed,T=h.x,E=T===void 0?0:T,w=h.y,A=w===void 0?0:w,O=typeof B=="function"?B({x:E,y:A}):{x:E,y:A};E=O.x,A=O.y;var M=h.hasOwnProperty("x"),P=h.hasOwnProperty("y"),R=e.left,F=e.top,_=window;if(x){var U=(0,a.default)(u),W="clientHeight",$="clientWidth";if(U===(0,t.default)(u)&&(U=(0,o.default)(u),(0,m.default)(U).position!=="static"&&g==="absolute"&&(W="scrollHeight",$="scrollWidth")),U=U,b===e.top||(b===e.left||b===e.right)&&v===e.end){F=e.bottom;var G=L&&U===_&&_.visualViewport?_.visualViewport.height:U[W];A-=G-C.height,A*=N?1:-1}if(b===e.left||(b===e.top||b===e.bottom)&&v===e.end){R=e.right;var oe=L&&U===_&&_.visualViewport?_.visualViewport.width:U[$];E-=oe-C.width,E*=N?1:-1}}var X=Object.assign({position:g},x&&p),pe=B===!0?i({x:E,y:A},(0,t.default)(u)):{x:E,y:A};if(E=pe.x,A=pe.y,N){var me;return Object.assign({},X,(me={},me[F]=P?"0":"",me[R]=M?"0":"",me.transform=(_.devicePixelRatio||1)<=1?"translate("+E+"px, "+A+"px)":"translate3d("+E+"px, "+A+"px, 0)",me))}return Object.assign({},X,(f={},f[F]=P?A+"px":"",f[R]=M?E+"px":"",f.transform="",f))}function s(d){var f=d.state,u=d.options,C=u.gpuAcceleration,b=C===void 0?!0:C,v=u.adaptive,h=v===void 0?!0:v,g=u.roundOffsets,N=g===void 0?!0:g,x={placement:(0,S.default)(f.placement),variation:(0,y.default)(f.placement),popper:f.elements.popper,popperRect:f.rects.popper,gpuAcceleration:b,isFixed:f.options.strategy==="fixed"};f.modifiersData.popperOffsets!=null&&(f.styles.popper=Object.assign({},f.styles.popper,c(Object.assign({},x,{offsets:f.modifiersData.popperOffsets,position:f.options.strategy,adaptive:h,roundOffsets:N})))),f.modifiersData.arrow!=null&&(f.styles.arrow=Object.assign({},f.styles.arrow,c(Object.assign({},x,{offsets:f.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:N})))),f.attributes.popper=Object.assign({},f.attributes.popper,{"data-popper-placement":f.placement})}var l=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:s,data:{}}},36692:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(95115));function a(S){return S&&S.__esModule?S:{default:S}}var t={passive:!0};function o(S){var y=S.state,k=S.instance,V=S.options,p=V.scroll,i=p===void 0?!0:p,c=V.resize,s=c===void 0?!0:c,l=(0,e.default)(y.elements.popper),d=[].concat(y.scrollParents.reference,y.scrollParents.popper);return i&&d.forEach(function(f){f.addEventListener("scroll",k.update,t)}),s&&l.addEventListener("resize",k.update,t),function(){i&&d.forEach(function(f){f.removeEventListener("scroll",k.update,t)}),s&&l.removeEventListener("resize",k.update,t)}}var m=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function S(){}return S}(),effect:o,data:{}}},23798:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=k(n(71376)),a=k(n(83104)),t=k(n(86459)),o=k(n(17633)),m=k(n(9041)),S=n(46206),y=k(n(45));function k(c){return c&&c.__esModule?c:{default:c}}function V(c){if((0,a.default)(c)===S.auto)return[];var s=(0,e.default)(c);return[(0,t.default)(c),s,(0,t.default)(s)]}function p(c){var s=c.state,l=c.options,d=c.name;if(!s.modifiersData[d]._skip){for(var f=l.mainAxis,u=f===void 0?!0:f,C=l.altAxis,b=C===void 0?!0:C,v=l.fallbackPlacements,h=l.padding,g=l.boundary,N=l.rootBoundary,x=l.altBoundary,B=l.flipVariations,L=B===void 0?!0:B,T=l.allowedAutoPlacements,E=s.options.placement,w=(0,a.default)(E),A=w===E,O=v||(A||!L?[(0,e.default)(E)]:V(E)),M=[E].concat(O).reduce(function(Z,te){return Z.concat((0,a.default)(te)===S.auto?(0,m.default)(s,{placement:te,boundary:g,rootBoundary:N,padding:h,flipVariations:L,allowedAutoPlacements:T}):te)},[]),P=s.rects.reference,R=s.rects.popper,F=new Map,_=!0,U=M[0],W=0;W=0,pe=X?"width":"height",me=(0,o.default)(s,{placement:$,boundary:g,rootBoundary:N,altBoundary:x,padding:h}),ne=X?oe?S.right:S.left:oe?S.bottom:S.top;P[pe]>R[pe]&&(ne=(0,e.default)(ne));var re=(0,e.default)(ne),q=[];if(u&&q.push(me[G]<=0),b&&q.push(me[ne]<=0,me[re]<=0),q.every(function(Z){return Z})){U=$,_=!1;break}F.set($,q)}if(_)for(var ae=L?3:1,J=function(){function Z(te){var se=M.find(function(ye){var fe=F.get(ye);if(fe)return fe.slice(0,te).every(function(Le){return Le})});if(se)return U=se,"break"}return Z}(),Y=ae;Y>0;Y--){var Q=J(Y);if(Q==="break")break}s.placement!==U&&(s.modifiersData[d]._skip=!0,s.placement=U,s.reset=!0)}}var i=r.default={name:"flip",enabled:!0,phase:"main",fn:p,requiresIfExists:["offset"],data:{_skip:!1}}},83761:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=t(n(17633));function t(k){return k&&k.__esModule?k:{default:k}}function o(k,V,p){return p===void 0&&(p={x:0,y:0}),{top:k.top-V.height-p.y,right:k.right-V.width+p.x,bottom:k.bottom-V.height+p.y,left:k.left-V.width-p.x}}function m(k){return[e.top,e.right,e.bottom,e.left].some(function(V){return k[V]>=0})}function S(k){var V=k.state,p=k.name,i=V.rects.reference,c=V.rects.popper,s=V.modifiersData.preventOverflow,l=(0,a.default)(V,{elementContext:"reference"}),d=(0,a.default)(V,{altBoundary:!0}),f=o(l,i),u=o(d,c,s),C=m(f),b=m(u);V.modifiersData[p]={referenceClippingOffsets:f,popperEscapeOffsets:u,isReferenceHidden:C,hasPopperEscaped:b},V.attributes.popper=Object.assign({},V.attributes.popper,{"data-popper-reference-hidden":C,"data-popper-escaped":b})}var y=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:S}},39805:function(I,r,n){"use strict";r.__esModule=!0,r.preventOverflow=r.popperOffsets=r.offset=r.hide=r.flip=r.eventListeners=r.computeStyles=r.arrow=r.applyStyles=void 0;var e=p(n(19975));r.applyStyles=e.default;var a=p(n(52744));r.arrow=a.default;var t=p(n(59894));r.computeStyles=t.default;var o=p(n(36692));r.eventListeners=o.default;var m=p(n(23798));r.flip=m.default;var S=p(n(83761));r.hide=S.default;var y=p(n(61410));r.offset=y.default;var k=p(n(40107));r.popperOffsets=k.default;var V=p(n(75137));r.preventOverflow=V.default;function p(i){return i&&i.__esModule?i:{default:i}}},61410:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(83104)),a=n(46206);function t(y){return y&&y.__esModule?y:{default:y}}function o(y,k,V){var p=(0,e.default)(y),i=[a.left,a.top].indexOf(p)>=0?-1:1,c=typeof V=="function"?V(Object.assign({},k,{placement:y})):V,s=c[0],l=c[1];return s=s||0,l=(l||0)*i,[a.left,a.right].indexOf(p)>=0?{x:l,y:s}:{x:s,y:l}}function m(y){var k=y.state,V=y.options,p=y.name,i=V.offset,c=i===void 0?[0,0]:i,s=a.placements.reduce(function(u,C){return u[C]=o(C,k.rects,c),u},{}),l=s[k.placement],d=l.x,f=l.y;k.modifiersData.popperOffsets!=null&&(k.modifiersData.popperOffsets.x+=d,k.modifiersData.popperOffsets.y+=f),k.modifiersData[p]=s}var S=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:m}},40107:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(89951));function a(m){return m&&m.__esModule?m:{default:m}}function t(m){var S=m.state,y=m.name;S.modifiersData[y]=(0,e.default)({reference:S.rects.reference,element:S.rects.popper,strategy:"absolute",placement:S.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},75137:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=c(n(83104)),t=c(n(41199)),o=c(n(28066)),m=n(28595),S=c(n(28811)),y=c(n(44896)),k=c(n(17633)),V=c(n(45)),p=c(n(34780)),i=n(63618);function c(d){return d&&d.__esModule?d:{default:d}}function s(d){var f=d.state,u=d.options,C=d.name,b=u.mainAxis,v=b===void 0?!0:b,h=u.altAxis,g=h===void 0?!1:h,N=u.boundary,x=u.rootBoundary,B=u.altBoundary,L=u.padding,T=u.tether,E=T===void 0?!0:T,w=u.tetherOffset,A=w===void 0?0:w,O=(0,k.default)(f,{boundary:N,rootBoundary:x,padding:L,altBoundary:B}),M=(0,a.default)(f.placement),P=(0,V.default)(f.placement),R=!P,F=(0,t.default)(M),_=(0,o.default)(F),U=f.modifiersData.popperOffsets,W=f.rects.reference,$=f.rects.popper,G=typeof A=="function"?A(Object.assign({},f.rects,{placement:f.placement})):A,oe=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),X=f.modifiersData.offset?f.modifiersData.offset[f.placement]:null,pe={x:0,y:0};if(U){if(v){var me,ne=F==="y"?e.top:e.left,re=F==="y"?e.bottom:e.right,q=F==="y"?"height":"width",ae=U[F],J=ae+O[ne],Y=ae-O[re],Q=E?-$[q]/2:0,Z=P===e.start?W[q]:$[q],te=P===e.start?-$[q]:-W[q],se=f.elements.arrow,ye=E&&se?(0,S.default)(se):{width:0,height:0},fe=f.modifiersData["arrow#persistent"]?f.modifiersData["arrow#persistent"].padding:(0,p.default)(),Le=fe[ne],D=fe[re],ie=(0,m.within)(0,W[q],ye[q]),le=R?W[q]/2-Q-ie-Le-oe.mainAxis:Z-ie-Le-oe.mainAxis,Ce=R?-W[q]/2+Q+ie+D+oe.mainAxis:te+ie+D+oe.mainAxis,he=f.elements.arrow&&(0,y.default)(f.elements.arrow),ve=he?F==="y"?he.clientTop||0:he.clientLeft||0:0,Be=(me=X==null?void 0:X[F])!=null?me:0,we=ae+le-Be-ve,Re=ae+Ce-Be,_e=(0,m.within)(E?(0,i.min)(J,we):J,ae,E?(0,i.max)(Y,Re):Y);U[F]=_e,pe[F]=_e-ae}if(g){var Pe,Ve=F==="x"?e.top:e.left,ke=F==="x"?e.bottom:e.right,H=U[_],ue=_==="y"?"height":"width",be=H+O[Ve],Se=H-O[ke],Ie=[e.top,e.left].indexOf(M)!==-1,Ee=(Pe=X==null?void 0:X[_])!=null?Pe:0,Me=Ie?be:H-W[ue]-$[ue]-Ee+oe.altAxis,Ae=Ie?H+W[ue]+$[ue]-Ee-oe.altAxis:Se,De=E&&Ie?(0,m.withinMaxClamp)(Me,H,Ae):(0,m.within)(E?Me:be,H,E?Ae:Se);U[_]=De,pe[_]=De-H}f.modifiersData[C]=pe}}var l=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:s,requiresIfExists:["offset"]}},2473:function(I,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(96376);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=S(n(36692)),t=S(n(40107)),o=S(n(59894)),m=S(n(19975));function S(V){return V&&V.__esModule?V:{default:V}}var y=r.defaultModifiers=[a.default,t.default,o.default,m.default],k=r.createPopper=(0,e.popperGenerator)({defaultModifiers:y})},83312:function(I,r,n){"use strict";r.__esModule=!0;var e={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};r.defaultModifiers=r.createPopperLite=r.createPopper=void 0;var a=n(96376);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=l(n(36692)),o=l(n(40107)),m=l(n(59894)),S=l(n(19975)),y=l(n(61410)),k=l(n(23798)),V=l(n(75137)),p=l(n(52744)),i=l(n(83761)),c=n(2473);r.createPopperLite=c.createPopper;var s=n(39805);Object.keys(s).forEach(function(u){u==="default"||u==="__esModule"||Object.prototype.hasOwnProperty.call(e,u)||u in r&&r[u]===s[u]||(r[u]=s[u])});function l(u){return u&&u.__esModule?u:{default:u}}var d=r.defaultModifiers=[t.default,o.default,m.default,S.default,y.default,k.default,V.default,p.default,i.default],f=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:d})},9041:function(I,r,n){"use strict";r.__esModule=!0,r.default=S;var e=m(n(45)),a=n(46206),t=m(n(17633)),o=m(n(83104));function m(y){return y&&y.__esModule?y:{default:y}}function S(y,k){k===void 0&&(k={});var V=k,p=V.placement,i=V.boundary,c=V.rootBoundary,s=V.padding,l=V.flipVariations,d=V.allowedAutoPlacements,f=d===void 0?a.placements:d,u=(0,e.default)(p),C=u?l?a.variationPlacements:a.variationPlacements.filter(function(h){return(0,e.default)(h)===u}):a.basePlacements,b=C.filter(function(h){return f.indexOf(h)>=0});b.length===0&&(b=C);var v=b.reduce(function(h,g){return h[g]=(0,t.default)(y,{placement:g,boundary:i,rootBoundary:c,padding:s})[(0,o.default)(g)],h},{});return Object.keys(v).sort(function(h,g){return v[h]-v[g]})}},89951:function(I,r,n){"use strict";r.__esModule=!0,r.default=S;var e=m(n(83104)),a=m(n(45)),t=m(n(41199)),o=n(46206);function m(y){return y&&y.__esModule?y:{default:y}}function S(y){var k=y.reference,V=y.element,p=y.placement,i=p?(0,e.default)(p):null,c=p?(0,a.default)(p):null,s=k.x+k.width/2-V.width/2,l=k.y+k.height/2-V.height/2,d;switch(i){case o.top:d={x:s,y:k.y-V.height};break;case o.bottom:d={x:s,y:k.y+k.height};break;case o.right:d={x:k.x+k.width,y:l};break;case o.left:d={x:k.x-V.width,y:l};break;default:d={x:k.x,y:k.y}}var f=i?(0,t.default)(i):null;if(f!=null){var u=f==="y"?"height":"width";switch(c){case o.start:d[f]=d[f]-(k[u]/2-V[u]/2);break;case o.end:d[f]=d[f]+(k[u]/2-V[u]/2);break;default:}}return d}},10579:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}},17633:function(I,r,n){"use strict";r.__esModule=!0,r.default=i;var e=p(n(49035)),a=p(n(40600)),t=p(n(37786)),o=p(n(89951)),m=p(n(81666)),S=n(46206),y=n(75573),k=p(n(43286)),V=p(n(81447));function p(c){return c&&c.__esModule?c:{default:c}}function i(c,s){s===void 0&&(s={});var l=s,d=l.placement,f=d===void 0?c.placement:d,u=l.strategy,C=u===void 0?c.strategy:u,b=l.boundary,v=b===void 0?S.clippingParents:b,h=l.rootBoundary,g=h===void 0?S.viewport:h,N=l.elementContext,x=N===void 0?S.popper:N,B=l.altBoundary,L=B===void 0?!1:B,T=l.padding,E=T===void 0?0:T,w=(0,k.default)(typeof E!="number"?E:(0,V.default)(E,S.basePlacements)),A=x===S.popper?S.reference:S.popper,O=c.rects.popper,M=c.elements[L?A:x],P=(0,e.default)((0,y.isElement)(M)?M:M.contextElement||(0,a.default)(c.elements.popper),v,g,C),R=(0,t.default)(c.elements.reference),F=(0,o.default)({reference:R,element:O,strategy:"absolute",placement:f}),_=(0,m.default)(Object.assign({},O,F)),U=x===S.popper?_:R,W={top:P.top-U.top+w.top,bottom:U.bottom-P.bottom+w.bottom,left:P.left-U.left+w.left,right:U.right-P.right+w.right},$=c.modifiersData.offset;if(x===S.popper&&$){var G=$[f];Object.keys(W).forEach(function(oe){var X=[S.right,S.bottom].indexOf(oe)>=0?1:-1,pe=[S.top,S.bottom].indexOf(oe)>=0?"y":"x";W[oe]+=G[pe]*X})}return W}},81447:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},28066:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},83104:function(I,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(46206);function a(t){return t.split("-")[0]}},34780:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},41199:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},71376:function(I,r){"use strict";r.__esModule=!0,r.default=e;var n={left:"right",right:"left",bottom:"top",top:"bottom"};function e(a){return a.replace(/left|right|bottom|top/g,function(t){return n[t]})}},86459:function(I,r){"use strict";r.__esModule=!0,r.default=e;var n={start:"end",end:"start"};function e(a){return a.replace(/start|end/g,function(t){return n[t]})}},45:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},63618:function(I,r){"use strict";r.__esModule=!0,r.round=r.min=r.max=void 0;var n=r.max=Math.max,e=r.min=Math.min,a=r.round=Math.round},56500:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var m=t[o.name];return t[o.name]=m?Object.assign({},m,o,{options:Object.assign({},m.options,o.options),data:Object.assign({},m.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},43286:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(34780));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},33118:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(46206);function a(o){var m=new Map,S=new Set,y=[];o.forEach(function(V){m.set(V.name,V)});function k(V){S.add(V.name);var p=[].concat(V.requires||[],V.requiresIfExists||[]);p.forEach(function(i){if(!S.has(i)){var c=m.get(i);c&&k(c)}}),y.push(V)}return o.forEach(function(V){S.has(V.name)||k(V)}),y}function t(o){var m=a(o);return e.modifierPhases.reduce(function(S,y){return S.concat(m.filter(function(k){return k.phase===y}))},[])}},81666:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},35366:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}},28595:function(I,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(63618);function a(o,m,S){return(0,e.max)(o,(0,e.min)(m,S))}function t(o,m,S){var y=a(o,m,S);return y>S?S:y}},83331:function(I,r,n){"use strict";var e;function a(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?a=function(){function o(m){return typeof m}return o}():a=function(){function o(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m}return o}(),a(t)}(function(t){var o=arguments,m=function(){var i=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,c=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,s=/[^-+\dA-Z]/g;return function(l,d,f,u){if(o.length===1&&p(l)==="string"&&!/\d/.test(l)&&(d=l,l=void 0),l=l||l===0?l:new Date,l instanceof Date||(l=new Date(l)),isNaN(l))throw TypeError("Invalid date");d=String(m.masks[d]||d||m.masks.default);var C=d.slice(0,4);(C==="UTC:"||C==="GMT:")&&(d=d.slice(4),f=!0,C==="GMT:"&&(u=!0));var b=function(){function M(){return f?"getUTC":"get"}return M}(),v=function(){function M(){return l[b()+"Date"]()}return M}(),h=function(){function M(){return l[b()+"Day"]()}return M}(),g=function(){function M(){return l[b()+"Month"]()}return M}(),N=function(){function M(){return l[b()+"FullYear"]()}return M}(),x=function(){function M(){return l[b()+"Hours"]()}return M}(),B=function(){function M(){return l[b()+"Minutes"]()}return M}(),L=function(){function M(){return l[b()+"Seconds"]()}return M}(),T=function(){function M(){return l[b()+"Milliseconds"]()}return M}(),E=function(){function M(){return f?0:l.getTimezoneOffset()}return M}(),w=function(){function M(){return k(l)}return M}(),A=function(){function M(){return V(l)}return M}(),O={d:function(){function M(){return v()}return M}(),dd:function(){function M(){return S(v())}return M}(),ddd:function(){function M(){return m.i18n.dayNames[h()]}return M}(),DDD:function(){function M(){return y({y:N(),m:g(),d:v(),_:b(),dayName:m.i18n.dayNames[h()],short:!0})}return M}(),dddd:function(){function M(){return m.i18n.dayNames[h()+7]}return M}(),DDDD:function(){function M(){return y({y:N(),m:g(),d:v(),_:b(),dayName:m.i18n.dayNames[h()+7]})}return M}(),m:function(){function M(){return g()+1}return M}(),mm:function(){function M(){return S(g()+1)}return M}(),mmm:function(){function M(){return m.i18n.monthNames[g()]}return M}(),mmmm:function(){function M(){return m.i18n.monthNames[g()+12]}return M}(),yy:function(){function M(){return String(N()).slice(2)}return M}(),yyyy:function(){function M(){return S(N(),4)}return M}(),h:function(){function M(){return x()%12||12}return M}(),hh:function(){function M(){return S(x()%12||12)}return M}(),H:function(){function M(){return x()}return M}(),HH:function(){function M(){return S(x())}return M}(),M:function(){function M(){return B()}return M}(),MM:function(){function M(){return S(B())}return M}(),s:function(){function M(){return L()}return M}(),ss:function(){function M(){return S(L())}return M}(),l:function(){function M(){return S(T(),3)}return M}(),L:function(){function M(){return S(Math.floor(T()/10))}return M}(),t:function(){function M(){return x()<12?m.i18n.timeNames[0]:m.i18n.timeNames[1]}return M}(),tt:function(){function M(){return x()<12?m.i18n.timeNames[2]:m.i18n.timeNames[3]}return M}(),T:function(){function M(){return x()<12?m.i18n.timeNames[4]:m.i18n.timeNames[5]}return M}(),TT:function(){function M(){return x()<12?m.i18n.timeNames[6]:m.i18n.timeNames[7]}return M}(),Z:function(){function M(){return u?"GMT":f?"UTC":(String(l).match(c)||[""]).pop().replace(s,"").replace(/GMT\+0000/g,"UTC")}return M}(),o:function(){function M(){return(E()>0?"-":"+")+S(Math.floor(Math.abs(E())/60)*100+Math.abs(E())%60,4)}return M}(),p:function(){function M(){return(E()>0?"-":"+")+S(Math.floor(Math.abs(E())/60),2)+":"+S(Math.floor(Math.abs(E())%60),2)}return M}(),S:function(){function M(){return["th","st","nd","rd"][v()%10>3?0:(v()%100-v()%10!=10)*v()%10]}return M}(),W:function(){function M(){return w()}return M}(),WW:function(){function M(){return S(w())}return M}(),N:function(){function M(){return A()}return M}()};return d.replace(i,function(M){return M in O?O[M]():M.slice(1,M.length-1)})}}();m.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"},m.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 S=function(){function i(c,s){for(c=String(c),s=s||2;c.length0?x(K.componentWillDisappear,T(j,z)):L(j,z,!1)}function w(j,z,K,ee,de,ge,Ne,xe){j.componentWillMove.push({dom:ee,fn:function(){function Te(){Ne&4?K.componentWillMove(z,de,ee):Ne&8&&K.onComponentWillMove(z,de,ee,xe)}return Te}(),next:ge,parent:de})}function A(j,z,K,ee,de){var ge,Ne,xe=z.flags;do{var Te=z.flags;if(Te&1521){!a(ge)&&(o(ge.componentWillMove)||o(ge.onComponentWillMove))?w(de,j,ge,z.dom,K,ee,xe,Ne):u(K,z.dom,ee);return}var Fe=z.children;if(Te&4)ge=z.children,Ne=z.props,z=Fe.$LI;else if(Te&8)ge=z.ref,Ne=z.props,z=Fe;else if(Te&8192)if(z.childFlags===2)z=Fe;else{for(var Oe=0,We=Fe.length;Oe0,Fe=y(xe),Oe=m(xe)&&xe[0]===W;Te||Fe||Oe?(K=K||z.slice(0,ge),(Te||Oe)&&(Ne=J(Ne)),(Fe||Oe)&&(Ne.key=W+ge),K.push(Ne)):K&&K.push(Ne),Ne.flags|=65536}}K=K||z,K.length===0?ee=1:ee=8}else K=z,K.flags|=65536,z.flags&81920&&(K=J(z)),ee=2;return j.children=K,j.childFlags=ee,j}function ye(j){return t(j)||e(j)?ne(j,null):n(j)?re(j,0,null):j.flags&16384?J(j):j}var fe="http://www.w3.org/1999/xlink",Le="http://www.w3.org/XML/1998/namespace",D={"xlink:actuate":fe,"xlink:arcrole":fe,"xlink:href":fe,"xlink:role":fe,"xlink:show":fe,"xlink:title":fe,"xlink:type":fe,"xml:base":Le,"xml:lang":Le,"xml:space":Le};function ie(j){return{onClick:j,onDblClick:j,onFocusIn:j,onFocusOut:j,onKeyDown:j,onKeyPress:j,onKeyUp:j,onMouseDown:j,onMouseMove:j,onMouseUp:j,onTouchEnd:j,onTouchMove:j,onTouchStart:j}}var le=ie(0),Ce=ie(null),he=ie(!0);function ve(j,z){var K=z.$EV;return K||(K=z.$EV=ie(null)),K[j]||++le[j]===1&&(Ce[j]=Se(j)),K}function Be(j,z){var K=z.$EV;K&&K[j]&&(--le[j]===0&&(document.removeEventListener(d(j),Ce[j]),Ce[j]=null),K[j]=null)}function we(j,z,K,ee){if(o(K))ve(j,ee)[j]=K;else if(i(K)){if(F(z,K))return;ve(j,ee)[j]=K}else Be(j,ee)}function Re(j){return o(j.composedPath)?j.composedPath()[0]:j.target}function _e(j,z,K,ee){var de=Re(j);do{if(z&&de.disabled)return;var ge=de.$EV;if(ge){var Ne=ge[K];if(Ne&&(ee.dom=de,Ne.event?Ne.event(Ne.data,j):Ne(j),j.cancelBubble))return}de=de.parentNode}while(!y(de))}function Pe(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function Ve(){return this.defaultPrevented}function ke(){return this.cancelBubble}function H(j){var z={dom:document};return j.isDefaultPrevented=Ve,j.isPropagationStopped=ke,j.stopPropagation=Pe,Object.defineProperty(j,"currentTarget",{configurable:!0,get:function(){function K(){return z.dom}return K}()}),z}function ue(j){return function(z){if(z.button!==0){z.stopPropagation();return}_e(z,!0,j,H(z))}}function be(j){return function(z){_e(z,!1,j,H(z))}}function Se(j){var z=j==="onClick"||j==="onDblClick"?ue(j):be(j);return document.addEventListener(d(j),z),z}function Ie(j,z){var K=document.createElement("i");return K.innerHTML=z,K.innerHTML===j.innerHTML}function Ee(j,z,K){if(j[z]){var ee=j[z];ee.event?ee.event(ee.data,K):ee(K)}else{var de=z.toLowerCase();j[de]&&j[de](K)}}function Me(j,z){var K=function(){function ee(de){var ge=this.$V;if(ge){var Ne=ge.props||c,xe=ge.dom;if(m(j))Ee(Ne,j,de);else for(var Te=0;Te-1&&z.options[ge]&&(xe=z.options[ge].value),K&&a(xe)&&(xe=j.defaultValue),qe(ee,xe)}}var Zt=Me("onInput",Tt),qt=Me("onChange");function en(j,z){Ae(j,"input",Zt),z.onChange&&Ae(j,"change",qt)}function Tt(j,z,K){var ee=j.value,de=z.value;if(a(ee)){if(K){var ge=j.defaultValue;!a(ge)&&ge!==de&&(z.defaultValue=ge,z.value=ge)}}else de!==ee&&(z.defaultValue=ee,z.value=ee)}function wt(j,z,K,ee,de,ge){j&64?lt(ee,K):j&256?It(ee,K,de,z):j&128&&Tt(ee,K,de),ge&&(K.$V=z)}function tn(j,z,K){j&64?$e(z,K):j&256?Jt(z):j&128&&en(z,K)}function Et(j){return j.type&&De(j.type)?!a(j.checked):!a(j.value)}function nn(){return{current:null}}function on(j){var z={render:j};return z}function Ct(j){j&&!U(j,null)&&j.current&&(j.current=null)}function st(j,z,K){j&&(o(j)||j.current!==void 0)&&K.push(function(){!U(j,z)&&j.current!==void 0&&(j.current=z)})}function tt(j,z,K){ot(j,K),E(j,z,K)}function ot(j,z){var K=j.flags,ee=j.children,de;if(K&481){de=j.ref;var ge=j.props;Ct(de);var Ne=j.childFlags;if(!y(ge))for(var xe=Object.keys(ge),Te=0,Fe=xe.length;Te0?x(K.componentWillDisappear,rn(z,j)):j.textContent=""}function gt(j,z,K,ee){mt(K,ee),z.flags&8192?E(z,j,ee):vt(j,K,ee)}function At(j,z,K,ee,de){j.componentWillDisappear.push(function(ge){ee&4?z.componentWillDisappear(K,ge):ee&8&&z.onComponentWillDisappear(K,de,ge)})}function an(j){var z=j.event;return function(K){z(j.data,K)}}function cn(j,z,K,ee){if(i(K)){if(F(z,K))return;K=an(K)}Ae(ee,d(j),K)}function un(j,z,K){if(a(z)){K.removeAttribute("style");return}var ee=K.style,de,ge;if(m(z)){ee.cssText=z;return}if(!a(j)&&!m(j)){for(de in z)ge=z[de],ge!==j[de]&&ee.setProperty(de,ge);for(de in j)a(z[de])&&ee.removeProperty(de)}else for(de in z)ge=z[de],ee.setProperty(de,ge)}function ln(j,z,K,ee,de){var ge=j&&j.__html||"",Ne=z&&z.__html||"";ge!==Ne&&!a(Ne)&&!Ie(ee,Ne)&&(y(K)||(K.childFlags&12?mt(K.children,de):K.childFlags===2&&ot(K.children,de),K.children=null,K.childFlags=1),ee.innerHTML=Ne)}function bt(j,z,K,ee,de,ge,Ne,xe){switch(j){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":ee.autofocus=!!K;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":ee[j]=!!K;break;case"defaultChecked":case"value":case"volume":if(ge&&j==="value")break;var Te=a(K)?"":K;ee[j]!==Te&&(ee[j]=Te);break;case"style":un(z,K,ee);break;case"dangerouslySetInnerHTML":ln(z,K,Ne,ee,xe);break;default:he[j]?we(j,z,K,ee):j.charCodeAt(0)===111&&j.charCodeAt(1)===110?cn(j,z,K,ee):a(K)?ee.removeAttribute(j):de&&D[j]?ee.setAttributeNS(D[j],j,K):ee.setAttribute(j,K);break}}function Mt(j,z,K,ee,de,ge){var Ne=!1,xe=(z&448)>0;xe&&(Ne=Et(K),Ne&&tn(z,ee,K));for(var Te in K)bt(Te,null,K[Te],ee,de,Ne,null,ge);xe&&wt(z,j,ee,K,!0,Ne)}function Pt(j,z,K){var ee=ye(j.render(z,j.state,K)),de=K;return o(j.getChildContext)&&(de=V(K,j.getChildContext())),j.$CX=de,ee}function Ot(j,z,K,ee,de,ge){var Ne=new z(K,ee),xe=Ne.$N=!!(z.getDerivedStateFromProps||Ne.getSnapshotBeforeUpdate);if(Ne.$SVG=de,Ne.$L=ge,j.children=Ne,Ne.$BS=!1,Ne.context=ee,Ne.props===c&&(Ne.props=K),xe)Ne.state=O(Ne,K,Ne.state);else if(o(Ne.componentWillMount)){Ne.$BR=!0,Ne.componentWillMount();var Te=Ne.$PS;if(!y(Te)){var Fe=Ne.state;if(y(Fe))Ne.state=Te;else for(var Oe in Te)Fe[Oe]=Te[Oe];Ne.$PS=null}Ne.$BR=!1}return Ne.$LI=Pt(Ne,K,ee),Ne}function yt(j,z){var K=j.props||c;return j.flags&32768?j.type.render(K,j.ref,z):j.type(K,z)}function Xe(j,z,K,ee,de,ge,Ne){var xe=j.flags|=16384;xe&481?Rt(j,z,K,ee,de,ge,Ne):xe&4?mn(j,z,K,ee,de,ge,Ne):xe&8?fn(j,z,K,ee,de,ge,Ne):xe&16?Dt(j,z,de):xe&8192?sn(j,K,z,ee,de,ge,Ne):xe&1024&&dn(j,K,z,de,ge,Ne)}function dn(j,z,K,ee,de,ge){Xe(j.children,j.ref,z,!1,null,de,ge);var Ne=Y();Dt(Ne,K,ee),j.dom=Ne.dom}function sn(j,z,K,ee,de,ge,Ne){var xe=j.children,Te=j.childFlags;Te&12&&xe.length===0&&(Te=j.childFlags=2,xe=j.children=Y()),Te===2?Xe(xe,K,z,ee,de,ge,Ne):dt(xe,K,z,ee,de,ge,Ne)}function Dt(j,z,K){var ee=j.dom=document.createTextNode(j.children);y(z)||u(z,ee,K)}function Rt(j,z,K,ee,de,ge,Ne){var xe=j.flags,Te=j.props,Fe=j.className,Oe=j.childFlags,We=j.dom=C(j.type,ee=ee||(xe&32)>0),je=j.children;if(!a(Fe)&&Fe!==""&&(ee?We.setAttribute("class",Fe):We.className=Fe),Oe===16)R(We,je);else if(Oe!==1){var Ue=ee&&j.type!=="foreignObject";Oe===2?(je.flags&16384&&(j.children=je=J(je)),Xe(je,We,K,Ue,null,ge,Ne)):(Oe===8||Oe===4)&&dt(je,We,K,Ue,null,ge,Ne)}y(z)||u(z,We,de),y(Te)||Mt(j,xe,Te,We,ee,Ne),st(j.ref,We,ge)}function dt(j,z,K,ee,de,ge,Ne){for(var xe=0;xeUe)&&(We=N(xe[Ue-1],!1).nextSibling)}St(Fe,Oe,xe,Te,K,ee,de,We,j,ge,Ne)}function Vn(j,z,K,ee,de){var ge=j.ref,Ne=z.ref,xe=z.children;if(St(j.childFlags,z.childFlags,j.children,xe,ge,K,!1,null,j,ee,de),z.dom=j.dom,ge!==Ne&&!t(xe)){var Te=xe.dom;v(ge,Te),f(Ne,Te)}}function bn(j,z,K,ee,de,ge,Ne){var xe=z.dom=j.dom,Te=j.props,Fe=z.props,Oe=!1,We=!1,je;if(ee=ee||(de&32)>0,Te!==Fe){var Ue=Te||c;if(je=Fe||c,je!==c){Oe=(de&448)>0,Oe&&(We=Et(je));for(var Ge in je){var ze=Ue[Ge],Je=je[Ge];ze!==Je&&bt(Ge,ze,Je,xe,ee,We,j,Ne)}}if(Ue!==c)for(var Ke in Ue)a(je[Ke])&&!a(Ue[Ke])&&bt(Ke,Ue[Ke],null,xe,ee,We,j,Ne)}var it=z.children,et=z.className;j.className!==et&&(a(et)?xe.removeAttribute("class"):ee?xe.setAttribute("class",et):xe.className=et),de&4096?gn(xe,it):St(j.childFlags,z.childFlags,j.children,it,xe,K,ee&&z.type!=="foreignObject",null,j,ge,Ne),Oe&&wt(de,z,xe,je,!1,We);var ft=z.ref,nt=j.ref;nt!==ft&&(Ct(nt),st(ft,xe,ge))}function yn(j,z,K,ee,de,ge,Ne){ot(j,Ne),dt(z,K,ee,de,N(j,!0),ge,Ne),E(j,K,Ne)}function St(j,z,K,ee,de,ge,Ne,xe,Te,Fe,Oe){switch(j){case 2:switch(z){case 2:rt(K,ee,de,ge,Ne,xe,Fe,Oe);break;case 1:tt(K,de,Oe);break;case 16:ot(K,Oe),R(de,ee);break;default:yn(K,ee,de,ge,Ne,Fe,Oe);break}break;case 1:switch(z){case 2:Xe(ee,de,ge,Ne,xe,Fe,Oe);break;case 1:break;case 16:R(de,ee);break;default:dt(ee,de,ge,Ne,xe,Fe,Oe);break}break;case 16:switch(z){case 16:vn(K,ee,de);break;case 2:vt(de,K,Oe),Xe(ee,de,ge,Ne,xe,Fe,Oe);break;case 1:vt(de,K,Oe);break;default:vt(de,K,Oe),dt(ee,de,ge,Ne,xe,Fe,Oe);break}break;default:switch(z){case 16:mt(K,Oe),R(de,ee);break;case 2:gt(de,Te,K,Oe),Xe(ee,de,ge,Ne,xe,Fe,Oe);break;case 1:gt(de,Te,K,Oe);break;default:var We=K.length|0,je=ee.length|0;We===0?je>0&&dt(ee,de,ge,Ne,xe,Fe,Oe):je===0?gt(de,Te,K,Oe):z===8&&j===8?In(K,ee,de,ge,Ne,We,je,xe,Te,Fe,Oe):Ln(K,ee,de,ge,Ne,We,je,xe,Fe,Oe);break}break}}function Sn(j,z,K,ee,de){de.push(function(){j.componentDidUpdate(z,K,ee)})}function Wt(j,z,K,ee,de,ge,Ne,xe,Te,Fe){var Oe=j.state,We=j.props,je=!!j.$N,Ue=o(j.shouldComponentUpdate);if(je&&(z=O(j,K,z!==Oe?V(Oe,z):z)),Ne||!Ue||Ue&&j.shouldComponentUpdate(K,z,de)){!je&&o(j.componentWillUpdate)&&j.componentWillUpdate(K,z,de),j.props=K,j.state=z,j.context=de;var Ge=null,ze=Pt(j,K,de);je&&o(j.getSnapshotBeforeUpdate)&&(Ge=j.getSnapshotBeforeUpdate(We,Oe)),rt(j.$LI,ze,ee,j.$CX,ge,xe,Te,Fe),j.$LI=ze,o(j.componentDidUpdate)&&Sn(j,We,Oe,Ge,Te)}else j.props=K,j.state=z,j.context=de}function kn(j,z,K,ee,de,ge,Ne,xe){var Te=z.children=j.children;if(!y(Te)){Te.$L=Ne;var Fe=z.props||c,Oe=z.ref,We=j.ref,je=Te.state;if(!Te.$N){if(o(Te.componentWillReceiveProps)){if(Te.$BR=!0,Te.componentWillReceiveProps(Fe,ee),Te.$UN)return;Te.$BR=!1}y(Te.$PS)||(je=V(je,Te.$PS),Te.$PS=null)}Wt(Te,je,Fe,K,ee,de,!1,ge,Ne,xe),We!==Oe&&(Ct(We),st(Oe,Te,Ne))}}function Bn(j,z,K,ee,de,ge,Ne,xe){var Te=!0,Fe=z.props||c,Oe=z.ref,We=j.props,je=!a(Oe),Ue=j.children;if(je&&o(Oe.onComponentShouldUpdate)&&(Te=Oe.onComponentShouldUpdate(We,Fe)),Te!==!1){je&&o(Oe.onComponentWillUpdate)&&Oe.onComponentWillUpdate(We,Fe);var Ge=ye(yt(z,ee));rt(Ue,Ge,K,ee,de,ge,Ne,xe),z.children=Ge,je&&o(Oe.onComponentDidUpdate)&&Oe.onComponentDidUpdate(We,Fe)}else z.children=Ue}function xn(j,z){var K=z.children,ee=z.dom=j.dom;K!==j.children&&(ee.nodeValue=K)}function Ln(j,z,K,ee,de,ge,Ne,xe,Te,Fe){for(var Oe=ge>Ne?Ne:ge,We=0,je,Ue;WeNe)for(We=Oe;WeWe||Ue>je)break e;Ge=j[Ue],ze=z[Ue]}for(Ge=j[We],ze=z[je];Ge.key===ze.key;){if(ze.flags&16384&&(z[je]=ze=J(ze)),rt(Ge,ze,K,ee,de,xe,Fe,Oe),j[We]=ze,We--,je--,Ue>We||Ue>je)break e;Ge=j[We],ze=z[je]}}if(Ue>We){if(Ue<=je)for(Je=je+1,Ke=Jeje)for(;Ue<=We;)tt(j[Ue++],K,Oe);else Tn(j,z,ee,ge,Ne,We,je,Ue,K,de,xe,Te,Fe,Oe)}function Tn(j,z,K,ee,de,ge,Ne,xe,Te,Fe,Oe,We,je,Ue){var Ge,ze,Je=0,Ke=0,it=xe,et=xe,ft=ge-xe+1,nt=Ne-xe+1,pt=new Int32Array(nt+1),ct=ft===ee,Bt=!1,Ze=0,ht=0;if(de<4||(ft|nt)<32)for(Ke=it;Ke<=ge;++Ke)if(Ge=j[Ke],htxe?Bt=!0:Ze=xe,ze.flags&16384&&(z[xe]=ze=J(ze)),rt(Ge,ze,Te,K,Fe,Oe,je,Ue),++ht;break}!ct&&xe>Ne&&tt(Ge,Te,Ue)}else ct||tt(Ge,Te,Ue);else{var Yt={};for(Ke=et;Ke<=Ne;++Ke)Yt[z[Ke].key]=Ke;for(Ke=it;Ke<=ge;++Ke)if(Ge=j[Ke],htit;)tt(j[it++],Te,Ue);pt[xe-et]=Ke+1,Ze>xe?Bt=!0:Ze=xe,ze=z[xe],ze.flags&16384&&(z[xe]=ze=J(ze)),rt(Ge,ze,Te,K,Fe,Oe,je,Ue),++ht}else ct||tt(Ge,Te,Ue);else ct||tt(Ge,Te,Ue)}if(ct)gt(Te,We,j,Ue),dt(z,Te,K,Fe,Oe,je,Ue);else if(Bt){var Qt=wn(pt);for(xe=Qt.length-1,Ke=nt-1;Ke>=0;Ke--)pt[Ke]===0?(Ze=Ke+et,ze=z[Ze],ze.flags&16384&&(z[Ze]=ze=J(ze)),Je=Ze+1,Xe(ze,Te,K,Fe,Je0&&B(Ue.componentWillMove)}else if(ht!==nt)for(Ke=nt-1;Ke>=0;Ke--)pt[Ke]===0&&(Ze=Ke+et,ze=z[Ze],ze.flags&16384&&(z[Ze]=ze=J(ze)),Je=Ze+1,Xe(ze,Te,K,Fe,JeUt&&(Ut=Te,at=new Int32Array(Te),Nt=new Int32Array(Te));K>1,j[at[xe]]0&&(Nt[K]=at[ge-1]),at[ge]=K)}ge=de+1;var Fe=new Int32Array(ge);for(Ne=at[ge-1];ge-- >0;)Fe[ge]=Ne,Ne=Nt[Ne],at[ge]=0;return Fe}var En=typeof document!="undefined";En&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ht(j,z,K,ee){var de=[],ge=new l,Ne=z.$V;M.v=!0,a(Ne)?a(j)||(j.flags&16384&&(j=J(j)),Xe(j,z,ee,!1,null,de,ge),z.$V=j,Ne=j):a(j)?(tt(Ne,z,ge),z.$V=null):(j.flags&16384&&(j=J(j)),rt(Ne,j,z,ee,!1,null,de,ge),Ne=z.$V=j),h(de),x(ge.componentDidAppear),M.v=!1,o(K)&&K(),o(P.renderComplete)&&P.renderComplete(Ne,z)}function zt(j,z,K,ee){K===void 0&&(K=null),ee===void 0&&(ee=c),Ht(j,z,K,ee)}function An(j){return function(){function z(K,ee,de,ge){j||(j=K),zt(ee,j,de,ge)}return z}()}var Vt=[],Mn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(j){window.setTimeout(j,0)},kt=!1;function Kt(j,z,K,ee){var de=j.$PS;if(o(z)&&(z=z(de?V(j.state,de):j.state,j.props,j.context)),a(de))j.$PS=z;else for(var ge in z)de[ge]=z[ge];if(j.$BR)o(K)&&j.$L.push(K.bind(j));else{if(!M.v&&Vt.length===0){Gt(j,ee),o(K)&&K.call(j);return}if(Vt.indexOf(j)===-1&&Vt.push(j),ee&&(j.$F=!0),kt||(kt=!0,Mn($t)),o(K)){var Ne=j.$QU;Ne||(Ne=j.$QU=[]),Ne.push(K)}}}function Pn(j){for(var z=j.$QU,K=0;K=55296&&be<=56319&&ue+1=56320&&Se<=57343)?(be-55296)*1024+Se-56320+65536:be}function J(H){var ue=/^\n* /;return ue.test(H)}var Y=1,Q=2,Z=3,te=4,se=5;function ye(H,ue,be,Se,Ie,Ee,Me,Ae){var De,He=0,Ye=null,Qe=!1,$e=!1,lt=Se!==-1,qe=-1,ut=re(ae(H,0))&&q(ae(H,H.length-1));if(ue||Me)for(De=0;De=65536?De+=2:De++){if(He=ae(H,De),!pe(He))return se;ut=ut&&ne(He,Ye,Ae),Ye=He}else{for(De=0;De=65536?De+=2:De++){if(He=ae(H,De),He===k)Qe=!0,lt&&($e=$e||De-qe-1>Se&&H[qe+1]!==" ",qe=De);else if(!pe(He))return se;ut=ut&&ne(He,Ye,Ae),Ye=He}$e=$e||lt&&De-qe-1>Se&&H[qe+1]!==" "}return!Qe&&!$e?ut&&!Me&&!Ie(H)?Y:Ee===U?se:Q:be>9&&J(H)?se:Me?Ee===U?se:Q:$e?te:Z}function fe(H,ue,be,Se,Ie){H.dump=function(){if(ue.length===0)return H.quotingType===U?'""':"''";if(!H.noCompatMode&&(M.indexOf(ue)!==-1||P.test(ue)))return H.quotingType===U?'"'+ue+'"':"'"+ue+"'";var Ee=H.indent*Math.max(1,be),Me=H.lineWidth===-1?-1:Math.max(Math.min(H.lineWidth,40),H.lineWidth-Ee),Ae=Se||H.flowLevel>-1&&be>=H.flowLevel;function De(He){return oe(H,He)}switch(ye(ue,Ae,H.indent,Me,De,H.quotingType,H.forceQuotes&&!Se,Ie)){case Y:return ue;case Q:return"'"+ue.replace(/'/g,"''")+"'";case Z:return"|"+Le(ue,H.indent)+D($(ue,Ee));case te:return">"+Le(ue,H.indent)+D($(ie(ue,Me),Ee));case se:return'"'+Ce(ue,Me)+'"';default:throw new a("impossible error: invalid scalar style")}}()}function Le(H,ue){var be=J(H)?String(ue):"",Se=H[H.length-1]==="\n",Ie=Se&&(H[H.length-2]==="\n"||H==="\n"),Ee=Ie?"+":Se?"":"-";return be+Ee+"\n"}function D(H){return H[H.length-1]==="\n"?H.slice(0,-1):H}function ie(H,ue){for(var be=/(\n+)([^\n]*)/g,Se=function(){var He=H.indexOf("\n");return He=He!==-1?He:H.length,be.lastIndex=He,le(H.slice(0,He),ue)}(),Ie=H[0]==="\n"||H[0]===" ",Ee,Me;Me=be.exec(H);){var Ae=Me[1],De=Me[2];Ee=De[0]===" ",Se+=Ae+(!Ie&&!Ee&&De!==""?"\n":"")+le(De,ue),Ie=Ee}return Se}function le(H,ue){if(H===""||H[0]===" ")return H;for(var be=/ [^ ]/g,Se,Ie=0,Ee,Me=0,Ae=0,De="";Se=be.exec(H);)Ae=Se.index,Ae-Ie>ue&&(Ee=Me>Ie?Me:Ae,De+="\n"+H.slice(Ie,Ee),Ie=Ee+1),Me=Ae;return De+="\n",H.length-Ie>ue&&Me>Ie?De+=H.slice(Ie,Me)+"\n"+H.slice(Me+1):De+=H.slice(Ie),De.slice(1)}function Ce(H){for(var ue="",be=0,Se,Ie=0;Ie=65536?Ie+=2:Ie++)be=ae(H,Ie),Se=O[be],!Se&&pe(be)?(ue+=H[Ie],be>=65536&&(ue+=H[Ie+1])):ue+=Se||F(be);return ue}function he(H,ue,be){var Se="",Ie=H.tag,Ee,Me,Ae;for(Ee=0,Me=be.length;Ee1024&&(Ye+="? "),Ye+=H.dump+(H.condenseFlow?'"':"")+":"+(H.condenseFlow?"":" "),_e(H,ue,He,!1,!1)&&(Ye+=H.dump,Se+=Ye));H.tag=Ie,H.dump="{"+Se+"}"}function we(H,ue,be,Se){var Ie="",Ee=H.tag,Me=Object.keys(be),Ae,De,He,Ye,Qe,$e;if(H.sortKeys===!0)Me.sort();else if(typeof H.sortKeys=="function")Me.sort(H.sortKeys);else if(H.sortKeys)throw new a("sortKeys must be a boolean or a function");for(Ae=0,De=Me.length;Ae1024,Qe&&(H.dump&&k===H.dump.charCodeAt(0)?$e+="?":$e+="? "),$e+=H.dump,Qe&&($e+=G(H,ue)),_e(H,ue+1,Ye,!0,Qe)&&(H.dump&&k===H.dump.charCodeAt(0)?$e+=":":$e+=": ",$e+=H.dump,Ie+=$e));H.tag=Ee,H.dump=Ie||"{}"}function Re(H,ue,be){var Se,Ie,Ee,Me,Ae,De;for(Ie=be?H.explicitTypes:H.implicitTypes,Ee=0,Me=Ie.length;Ee tag resolver accepts not "'+De+'" style');H.dump=Se}return!0}return!1}function _e(H,ue,be,Se,Ie,Ee,Me){H.tag=null,H.dump=be,Re(H,be,!1)||Re(H,be,!0);var Ae=o.call(H.dump),De=Se,He;Se&&(Se=H.flowLevel<0||H.flowLevel>ue);var Ye=Ae==="[object Object]"||Ae==="[object Array]",Qe,$e;if(Ye&&(Qe=H.duplicates.indexOf(be),$e=Qe!==-1),(H.tag!==null&&H.tag!=="?"||$e||H.indent!==2&&ue>0)&&(Ie=!1),$e&&H.usedDuplicates[Qe])H.dump="*ref_"+Qe;else{if(Ye&&$e&&!H.usedDuplicates[Qe]&&(H.usedDuplicates[Qe]=!0),Ae==="[object Object]")Se&&Object.keys(H.dump).length!==0?(we(H,ue,H.dump,Ie),$e&&(H.dump="&ref_"+Qe+H.dump)):(Be(H,ue,H.dump),$e&&(H.dump="&ref_"+Qe+" "+H.dump));else if(Ae==="[object Array]")Se&&H.dump.length!==0?(H.noArrayIndent&&!Me&&ue>0?ve(H,ue-1,H.dump,Ie):ve(H,ue,H.dump,Ie),$e&&(H.dump="&ref_"+Qe+H.dump)):(he(H,ue,H.dump),$e&&(H.dump="&ref_"+Qe+" "+H.dump));else if(Ae==="[object String]")H.tag!=="?"&&fe(H,H.dump,ue,Ee,De);else{if(Ae==="[object Undefined]")return!1;if(H.skipInvalid)return!1;throw new a("unacceptable kind of an object to dump "+Ae)}H.tag!==null&&H.tag!=="?"&&(He=encodeURI(H.tag[0]==="!"?H.tag.slice(1):H.tag).replace(/!/g,"%21"),H.tag[0]==="!"?He="!"+He:He.slice(0,18)==="tag:yaml.org,2002:"?He="!!"+He.slice(18):He="!<"+He+">",H.dump=He+" "+H.dump)}return!0}function Pe(H,ue){var be=[],Se=[],Ie,Ee;for(Ve(H,be,Se),Ie=0,Ee=Se.length;Ie>10)+55296,(D-65536&1023)+56320)}for(var E=new Array(256),w=new Array(256),A=0;A<256;A++)E[A]=L(A)?1:0,w[A]=L(A);function O(D,ie){this.input=D,this.filename=ie.filename||null,this.schema=ie.schema||o,this.onWarning=ie.onWarning||null,this.legacy=ie.legacy||!1,this.json=ie.json||!1,this.listener=ie.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=D.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function M(D,ie){var le={name:D.filename,buffer:D.input.slice(0,-1),position:D.position,line:D.line,column:D.position-D.lineStart};return le.snippet=t(le),new a(ie,le)}function P(D,ie){throw M(D,ie)}function R(D,ie){D.onWarning&&D.onWarning.call(null,M(D,ie))}var F={YAML:function(){function D(ie,le,Ce){var he,ve,Be;ie.version!==null&&P(ie,"duplication of %YAML directive"),Ce.length!==1&&P(ie,"YAML directive accepts exactly one argument"),he=/^([0-9]+)\.([0-9]+)$/.exec(Ce[0]),he===null&&P(ie,"ill-formed argument of the YAML directive"),ve=parseInt(he[1],10),Be=parseInt(he[2],10),ve!==1&&P(ie,"unacceptable YAML version of the document"),ie.version=Ce[0],ie.checkLineBreaks=Be<2,Be!==1&&Be!==2&&R(ie,"unsupported YAML version of the document")}return D}(),TAG:function(){function D(ie,le,Ce){var he,ve;Ce.length!==2&&P(ie,"TAG directive accepts exactly two arguments"),he=Ce[0],ve=Ce[1],f.test(he)||P(ie,"ill-formed tag handle (first argument) of the TAG directive"),m.call(ie.tagMap,he)&&P(ie,'there is a previously declared suffix for "'+he+'" tag handle'),u.test(ve)||P(ie,"ill-formed tag prefix (second argument) of the TAG directive");try{ve=decodeURIComponent(ve)}catch(Be){P(ie,"tag prefix is malformed: "+ve)}ie.tagMap[he]=ve}return D}()};function _(D,ie,le,Ce){var he,ve,Be,we;if(ie1&&(D.result+=e.repeat("\n",ie-1))}function pe(D,ie,le){var Ce,he,ve,Be,we,Re,_e,Pe,Ve=D.kind,ke=D.result,H;if(H=D.input.charCodeAt(D.position),h(H)||g(H)||H===35||H===38||H===42||H===33||H===124||H===62||H===39||H===34||H===37||H===64||H===96||(H===63||H===45)&&(he=D.input.charCodeAt(D.position+1),h(he)||le&&g(he)))return!1;for(D.kind="scalar",D.result="",ve=Be=D.position,we=!1;H!==0;){if(H===58){if(he=D.input.charCodeAt(D.position+1),h(he)||le&&g(he))break}else if(H===35){if(Ce=D.input.charCodeAt(D.position-1),h(Ce))break}else{if(D.position===D.lineStart&&oe(D)||le&&g(H))break;if(b(H))if(Re=D.line,_e=D.lineStart,Pe=D.lineIndent,G(D,!1,-1),D.lineIndent>=ie){we=!0,H=D.input.charCodeAt(D.position);continue}else{D.position=Be,D.line=Re,D.lineStart=_e,D.lineIndent=Pe;break}}we&&(_(D,ve,Be,!1),X(D,D.line-Re),ve=Be=D.position,we=!1),v(H)||(Be=D.position+1),H=D.input.charCodeAt(++D.position)}return _(D,ve,Be,!1),D.result?!0:(D.kind=Ve,D.result=ke,!1)}function me(D,ie){var le,Ce,he;if(le=D.input.charCodeAt(D.position),le!==39)return!1;for(D.kind="scalar",D.result="",D.position++,Ce=he=D.position;(le=D.input.charCodeAt(D.position))!==0;)if(le===39)if(_(D,Ce,D.position,!0),le=D.input.charCodeAt(++D.position),le===39)Ce=D.position,D.position++,he=D.position;else return!0;else b(le)?(_(D,Ce,he,!0),X(D,G(D,!1,ie)),Ce=he=D.position):D.position===D.lineStart&&oe(D)?P(D,"unexpected end of the document within a single quoted scalar"):(D.position++,he=D.position);P(D,"unexpected end of the stream within a single quoted scalar")}function ne(D,ie){var le,Ce,he,ve,Be,we;if(we=D.input.charCodeAt(D.position),we!==34)return!1;for(D.kind="scalar",D.result="",D.position++,le=Ce=D.position;(we=D.input.charCodeAt(D.position))!==0;){if(we===34)return _(D,le,D.position,!0),D.position++,!0;if(we===92){if(_(D,le,D.position,!0),we=D.input.charCodeAt(++D.position),b(we))G(D,!1,ie);else if(we<256&&E[we])D.result+=w[we],D.position++;else if((Be=x(we))>0){for(he=Be,ve=0;he>0;he--)we=D.input.charCodeAt(++D.position),(Be=N(we))>=0?ve=(ve<<4)+Be:P(D,"expected hexadecimal character");D.result+=T(ve),D.position++}else P(D,"unknown escape sequence");le=Ce=D.position}else b(we)?(_(D,le,Ce,!0),X(D,G(D,!1,ie)),le=Ce=D.position):D.position===D.lineStart&&oe(D)?P(D,"unexpected end of the document within a double quoted scalar"):(D.position++,Ce=D.position)}P(D,"unexpected end of the stream within a double quoted scalar")}function re(D,ie){var le=!0,Ce,he,ve,Be=D.tag,we,Re=D.anchor,_e,Pe,Ve,ke,H,ue=Object.create(null),be,Se,Ie,Ee;if(Ee=D.input.charCodeAt(D.position),Ee===91)Pe=93,H=!1,we=[];else if(Ee===123)Pe=125,H=!0,we={};else return!1;for(D.anchor!==null&&(D.anchorMap[D.anchor]=we),Ee=D.input.charCodeAt(++D.position);Ee!==0;){if(G(D,!0,ie),Ee=D.input.charCodeAt(D.position),Ee===Pe)return D.position++,D.tag=Be,D.anchor=Re,D.kind=H?"mapping":"sequence",D.result=we,!0;le?Ee===44&&P(D,"expected the node content, but found ','"):P(D,"missed comma between flow collection entries"),Se=be=Ie=null,Ve=ke=!1,Ee===63&&(_e=D.input.charCodeAt(D.position+1),h(_e)&&(Ve=ke=!0,D.position++,G(D,!0,ie))),Ce=D.line,he=D.lineStart,ve=D.position,te(D,ie,S,!1,!0),Se=D.tag,be=D.result,G(D,!0,ie),Ee=D.input.charCodeAt(D.position),(ke||D.line===Ce)&&Ee===58&&(Ve=!0,Ee=D.input.charCodeAt(++D.position),G(D,!0,ie),te(D,ie,S,!1,!0),Ie=D.result),H?W(D,we,ue,Se,be,Ie,Ce,he,ve):Ve?we.push(W(D,null,ue,Se,be,Ie,Ce,he,ve)):we.push(be),G(D,!0,ie),Ee=D.input.charCodeAt(D.position),Ee===44?(le=!0,Ee=D.input.charCodeAt(++D.position)):le=!1}P(D,"unexpected end of the stream within a flow collection")}function q(D,ie){var le,Ce,he=p,ve=!1,Be=!1,we=ie,Re=0,_e=!1,Pe,Ve;if(Ve=D.input.charCodeAt(D.position),Ve===124)Ce=!1;else if(Ve===62)Ce=!0;else return!1;for(D.kind="scalar",D.result="";Ve!==0;)if(Ve=D.input.charCodeAt(++D.position),Ve===43||Ve===45)p===he?he=Ve===43?c:i:P(D,"repeat of a chomping mode identifier");else if((Pe=B(Ve))>=0)Pe===0?P(D,"bad explicit indentation width of a block scalar; it cannot be less than one"):Be?P(D,"repeat of an indentation width identifier"):(we=ie+Pe-1,Be=!0);else break;if(v(Ve)){do Ve=D.input.charCodeAt(++D.position);while(v(Ve));if(Ve===35)do Ve=D.input.charCodeAt(++D.position);while(!b(Ve)&&Ve!==0)}for(;Ve!==0;){for($(D),D.lineIndent=0,Ve=D.input.charCodeAt(D.position);(!Be||D.lineIndentwe&&(we=D.lineIndent),b(Ve)){Re++;continue}if(D.lineIndentie)&&Re!==0)P(D,"bad indentation of a sequence entry");else if(D.lineIndentie)&&(Se&&(Be=D.line,we=D.lineStart,Re=D.position),te(D,ie,V,!0,he)&&(Se?ue=D.result:be=D.result),Se||(W(D,Ve,ke,H,ue,be,Be,we,Re),H=ue=be=null),G(D,!0,-1),Ee=D.input.charCodeAt(D.position)),(D.line===ve||D.lineIndent>ie)&&Ee!==0)P(D,"bad indentation of a mapping entry");else if(D.lineIndentie?Re=1:D.lineIndent===ie?Re=0:D.lineIndentie?Re=1:D.lineIndent===ie?Re=0:D.lineIndent tag; it should be "scalar", not "'+D.kind+'"'),Ve=0,ke=D.implicitTypes.length;Ve"),D.result!==null&&ue.kind!==D.kind&&P(D,"unacceptable node kind for !<"+D.tag+'> tag; it should be "'+ue.kind+'", not "'+D.kind+'"'),ue.resolve(D.result,D.tag)?(D.result=ue.construct(D.result,D.tag),D.anchor!==null&&(D.anchorMap[D.anchor]=D.result)):P(D,"cannot resolve a node with !<"+D.tag+"> explicit tag")}return D.listener!==null&&D.listener("close",D),D.tag!==null||D.anchor!==null||Pe}function se(D){var ie=D.position,le,Ce,he,ve=!1,Be;for(D.version=null,D.checkLineBreaks=D.legacy,D.tagMap=Object.create(null),D.anchorMap=Object.create(null);(Be=D.input.charCodeAt(D.position))!==0&&(G(D,!0,-1),Be=D.input.charCodeAt(D.position),!(D.lineIndent>0||Be!==37));){for(ve=!0,Be=D.input.charCodeAt(++D.position),le=D.position;Be!==0&&!h(Be);)Be=D.input.charCodeAt(++D.position);for(Ce=D.input.slice(le,D.position),he=[],Ce.length<1&&P(D,"directive name must not be less than one character in length");Be!==0;){for(;v(Be);)Be=D.input.charCodeAt(++D.position);if(Be===35){do Be=D.input.charCodeAt(++D.position);while(Be!==0&&!b(Be));break}if(b(Be))break;for(le=D.position;Be!==0&&!h(Be);)Be=D.input.charCodeAt(++D.position);he.push(D.input.slice(le,D.position))}Be!==0&&$(D),m.call(F,Ce)?F[Ce](D,Ce,he):R(D,'unknown document directive "'+Ce+'"')}if(G(D,!0,-1),D.lineIndent===0&&D.input.charCodeAt(D.position)===45&&D.input.charCodeAt(D.position+1)===45&&D.input.charCodeAt(D.position+2)===45?(D.position+=3,G(D,!0,-1)):ve&&P(D,"directives end mark is expected"),te(D,D.lineIndent-1,V,!1,!0),G(D,!0,-1),D.checkLineBreaks&&l.test(D.input.slice(ie,D.position))&&R(D,"non-ASCII line breaks are interpreted as content"),D.documents.push(D.result),D.position===D.lineStart&&oe(D)){D.input.charCodeAt(D.position)===46&&(D.position+=3,G(D,!0,-1));return}if(D.positionc&&(p=" ... ",S=k-c+p.length),y-k>c&&(i=" ...",y=k+c-i.length),{str:p+m.slice(S,y).replace(/\t/g,"\u2192")+i,pos:k-S+p.length}}function t(m,S){return e.repeat(" ",S-m.length)+m}function o(m,S){if(S=Object.create(S||null),!m.buffer)return null;S.maxLength||(S.maxLength=79),typeof S.indent!="number"&&(S.indent=1),typeof S.linesBefore!="number"&&(S.linesBefore=3),typeof S.linesAfter!="number"&&(S.linesAfter=2);for(var y=/\r?\n|\r|\0/g,k=[0],V=[],p,i=-1;p=y.exec(m.buffer);)V.push(p.index),k.push(p.index+p[0].length),m.position<=p.index&&i<0&&(i=k.length-2);i<0&&(i=k.length-1);var c="",s,l,d=Math.min(m.line+S.linesAfter,V.length).toString().length,f=S.maxLength-(S.indent+d+3);for(s=1;s<=S.linesBefore&&!(i-s<0);s++)l=a(m.buffer,k[i-s],V[i-s],m.position-(k[i]-k[i-s]),f),c=e.repeat(" ",S.indent)+t((m.line-s+1).toString(),d)+" | "+l.str+"\n"+c;for(l=a(m.buffer,k[i],V[i],m.position,f),c+=e.repeat(" ",S.indent)+t((m.line+1).toString(),d)+" | "+l.str+"\n",c+=e.repeat("-",S.indent+d+3+l.pos)+"^\n",s=1;s<=S.linesAfter&&!(i+s>=V.length);s++)l=a(m.buffer,k[i+s],V[i+s],m.position-(k[i]-k[i+s]),f),c+=e.repeat(" ",S.indent)+t((m.line+s+1).toString(),d)+" | "+l.str+"\n";return c.replace(/\n$/,"")}I.exports=o},92276:function(I,r,n){"use strict";var e=n(53127),a=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],t=["scalar","sequence","mapping"];function o(S){var y={};return S!==null&&Object.keys(S).forEach(function(k){S[k].forEach(function(V){y[String(V)]=k})}),y}function m(S,y){if(y=y||{},Object.keys(y).forEach(function(k){if(a.indexOf(k)===-1)throw new e('Unknown option "'+k+'" is met in definition of "'+S+'" YAML type.')}),this.options=y,this.tag=S,this.kind=y.kind||null,this.resolve=y.resolve||function(){return!0},this.construct=y.construct||function(k){return k},this.instanceOf=y.instanceOf||null,this.predicate=y.predicate||null,this.represent=y.represent||null,this.representName=y.representName||null,this.defaultStyle=y.defaultStyle||null,this.multi=y.multi||!1,this.styleAliases=o(y.styleAliases||null),t.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+S+'" YAML type.')}I.exports=m},92806:function(I,r,n){"use strict";var e=n(92276),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function t(y){if(y===null)return!1;var k,V,p=0,i=y.length,c=a;for(V=0;V64)){if(k<0)return!1;p+=6}return p%8===0}function o(y){var k,V,p=y.replace(/[\r\n=]/g,""),i=p.length,c=a,s=0,l=[];for(k=0;k>16&255),l.push(s>>8&255),l.push(s&255)),s=s<<6|c.indexOf(p.charAt(k));return V=i%4*6,V===0?(l.push(s>>16&255),l.push(s>>8&255),l.push(s&255)):V===18?(l.push(s>>10&255),l.push(s>>2&255)):V===12&&l.push(s>>4&255),new Uint8Array(l)}function m(y){var k="",V=0,p,i,c=y.length,s=a;for(p=0;p>18&63],k+=s[V>>12&63],k+=s[V>>6&63],k+=s[V&63]),V=(V<<8)+y[p];return i=c%3,i===0?(k+=s[V>>18&63],k+=s[V>>12&63],k+=s[V>>6&63],k+=s[V&63]):i===2?(k+=s[V>>10&63],k+=s[V>>4&63],k+=s[V<<2&63],k+=s[64]):i===1&&(k+=s[V>>2&63],k+=s[V<<4&63],k+=s[64],k+=s[64]),k}function S(y){return Object.prototype.toString.call(y)==="[object Uint8Array]"}I.exports=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:t,construct:o,predicate:S,represent:m})},34015:function(I,r,n){"use strict";var e=n(92276);function a(m){if(m===null)return!1;var S=m.length;return S===4&&(m==="true"||m==="True"||m==="TRUE")||S===5&&(m==="false"||m==="False"||m==="FALSE")}function t(m){return m==="true"||m==="True"||m==="TRUE"}function o(m){return Object.prototype.toString.call(m)==="[object Boolean]"}I.exports=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:a,construct:t,predicate:o,represent:{lowercase:function(){function m(S){return S?"true":"false"}return m}(),uppercase:function(){function m(S){return S?"TRUE":"FALSE"}return m}(),camelcase:function(){function m(S){return S?"True":"False"}return m}()},defaultStyle:"lowercase"})},14589:function(I,r,n){"use strict";var e=n(11017),a=n(92276),t=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function o(V){return!(V===null||!t.test(V)||V[V.length-1]==="_")}function m(V){var p,i;return p=V.replace(/_/g,"").toLowerCase(),i=p[0]==="-"?-1:1,"+-".indexOf(p[0])>=0&&(p=p.slice(1)),p===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:p===".nan"?NaN:i*parseFloat(p,10)}var S=/^[-+]?[0-9]+e/;function y(V,p){var i;if(isNaN(V))switch(p){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===V)switch(p){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===V)switch(p){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(V))return"-0.0";return i=V.toString(10),S.test(i)?i.replace("e",".e"):i}function k(V){return Object.prototype.toString.call(V)==="[object Number]"&&(V%1!==0||e.isNegativeZero(V))}I.exports=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:o,construct:m,predicate:k,represent:y,defaultStyle:"lowercase"})},72826:function(I,r,n){"use strict";var e=n(11017),a=n(92276);function t(V){return 48<=V&&V<=57||65<=V&&V<=70||97<=V&&V<=102}function o(V){return 48<=V&&V<=55}function m(V){return 48<=V&&V<=57}function S(V){if(V===null)return!1;var p=V.length,i=0,c=!1,s;if(!p)return!1;if(s=V[i],(s==="-"||s==="+")&&(s=V[++i]),s==="0"){if(i+1===p)return!0;if(s=V[++i],s==="b"){for(i++;i=0?"0b"+p.toString(2):"-0b"+p.toString(2).slice(1)}return V}(),octal:function(){function V(p){return p>=0?"0o"+p.toString(8):"-0o"+p.toString(8).slice(1)}return V}(),decimal:function(){function V(p){return p.toString(10)}return V}(),hexadecimal:function(){function V(p){return p>=0?"0x"+p.toString(16).toUpperCase():"-0x"+p.toString(16).toUpperCase().slice(1)}return V}()},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},89769:function(I,r,n){"use strict";var e=n(92276);I.exports=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(){function a(t){return t!==null?t:{}}return a}()})},36947:function(I,r,n){"use strict";var e=n(92276);function a(t){return t==="<<"||t===null}I.exports=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:a})},30534:function(I,r,n){"use strict";var e=n(92276);function a(m){if(m===null)return!0;var S=m.length;return S===1&&m==="~"||S===4&&(m==="null"||m==="Null"||m==="NULL")}function t(){return null}function o(m){return m===null}I.exports=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:a,construct:t,predicate:o,represent:{canonical:function(){function m(){return"~"}return m}(),lowercase:function(){function m(){return"null"}return m}(),uppercase:function(){function m(){return"NULL"}return m}(),camelcase:function(){function m(){return"Null"}return m}(),empty:function(){function m(){return""}return m}()},defaultStyle:"lowercase"})},14250:function(I,r,n){"use strict";var e=n(92276),a=Object.prototype.hasOwnProperty,t=Object.prototype.toString;function o(S){if(S===null)return!0;var y=[],k,V,p,i,c,s=S;for(k=0,V=s.length;k=0;--U){var W=this.tryEntries[U],$=W.completion;if(W.tryLoc==="root")return _("end");if(W.tryLoc<=this.prev){var G=a.call(W,"catchLoc"),oe=a.call(W,"finallyLoc");if(G&&oe){if(this.prev=0;--_){var U=this.tryEntries[_];if(U.tryLoc<=this.prev&&a.call(U,"finallyLoc")&&this.prev=0;--F){var _=this.tryEntries[F];if(_.finallyLoc===R)return this.complete(_.completion,_.afterLoc),w(_),f}}return P}(),catch:function(){function P(R){for(var F=this.tryEntries.length-1;F>=0;--F){var _=this.tryEntries[F];if(_.tryLoc===R){var U=_.completion;if(U.type==="throw"){var W=U.arg;w(_)}return W}}throw new Error("illegal catch attempt")}return P}(),delegateYield:function(){function P(R,F,_){return this.delegate={iterator:O(R),resultName:F,nextLoc:_},this.method==="next"&&(this.arg=o),f}return P}()},n}(I.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},30236:function(){"use strict";self.fetch||(self.fetch=function(I,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},m=function(){function y(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function k(){return Promise.resolve(a.responseText)}return k}(),json:function(){function k(){return Promise.resolve(a.responseText).then(JSON.parse)}return k}(),blob:function(){function k(){return Promise.resolve(new Blob([a.response]))}return k}(),clone:y,headers:{keys:function(){function k(){return t}return k}(),entries:function(){function k(){return t.map(function(V){return[V,a.getResponseHeader(V)]})}return k}(),get:function(){function k(V){return a.getResponseHeader(V)}return k}(),has:function(){function k(V){return a.getResponseHeader(V)!=null}return k}()}}}return y}();for(var S in a.open(r.method||"get",I,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(y,k){o[k]||t.push(o[k]=k)}),n(m())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(S,r.headers[S]);a.send(r.body||null)})})},88510:function(I,r){"use strict";r.__esModule=!0,r.zipWith=r.zip=r.uniqBy=r.uniq=r.toKeyedArray=r.toArray=r.sortBy=r.sort=r.reduce=r.range=r.map=r.filterMap=r.filter=void 0;function n(u,C){var b=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(b)return(b=b.call(u)).next.bind(b);if(Array.isArray(u)||(b=e(u))||C&&u&&typeof u.length=="number"){b&&(u=b);var v=0;return function(){return v>=u.length?{done:!0}:{done:!1,value:u[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.")}function e(u,C){if(u){if(typeof u=="string")return a(u,C);var b={}.toString.call(u).slice(8,-1);return b==="Object"&&u.constructor&&(b=u.constructor.name),b==="Map"||b==="Set"?Array.from(u):b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?a(u,C):void 0}}function a(u,C){(C==null||C>u.length)&&(C=u.length);for(var b=0,v=Array(C);b0&&(0,a.round)(p.width)/y.offsetWidth||1,c=y.offsetHeight>0&&(0,a.round)(p.height)/y.offsetHeight||1);var s=(0,e.isElement)(y)?(0,t.default)(y):window,u=s.visualViewport,d=!(0,o.default)()&&V,f=(p.left+(d&&u?u.offsetLeft:0))/i,l=(p.top+(d&&u?u.offsetTop:0))/c,C=p.width/i,b=p.height/c;return{width:C,height:b,top:l,right:f+C,bottom:l+b,left:f,x:f,y:l}}},49035:function(I,r,n){"use strict";r.__esModule=!0,r.default=b;var e=n(46206),a=d(n(87991)),t=d(n(79752)),o=d(n(98309)),m=d(n(44896)),S=d(n(40600)),y=d(n(16599)),k=n(75573),V=d(n(37786)),p=d(n(57819)),i=d(n(4206)),c=d(n(12972)),s=d(n(81666)),u=n(63618);function d(v){return v&&v.__esModule?v:{default:v}}function f(v,h){var g=(0,V.default)(v,!1,h==="fixed");return g.top=g.top+v.clientTop,g.left=g.left+v.clientLeft,g.bottom=g.top+v.clientHeight,g.right=g.left+v.clientWidth,g.width=v.clientWidth,g.height=v.clientHeight,g.x=g.left,g.y=g.top,g}function l(v,h,g){return h===e.viewport?(0,s.default)((0,a.default)(v,g)):(0,k.isElement)(h)?f(h,g):(0,s.default)((0,t.default)((0,S.default)(v)))}function C(v){var h=(0,o.default)((0,p.default)(v)),g=["absolute","fixed"].indexOf((0,y.default)(v).position)>=0,N=g&&(0,k.isHTMLElement)(v)?(0,m.default)(v):v;return(0,k.isElement)(N)?h.filter(function(x){return(0,k.isElement)(x)&&(0,i.default)(x,N)&&(0,c.default)(x)!=="body"}):[]}function b(v,h,g,N){var x=h==="clippingParents"?C(v):[].concat(h),B=[].concat(x,[g]),L=B[0],T=B.reduce(function(E,w){var A=l(v,w,N);return E.top=(0,u.max)(A.top,E.top),E.right=(0,u.min)(A.right,E.right),E.bottom=(0,u.min)(A.bottom,E.bottom),E.left=(0,u.max)(A.left,E.left),E},l(v,L,N));return T.width=T.right-T.left,T.height=T.bottom-T.top,T.x=T.left,T.y=T.top,T}},74758:function(I,r,n){"use strict";r.__esModule=!0,r.default=i;var e=V(n(37786)),a=V(n(13390)),t=V(n(12972)),o=n(75573),m=V(n(79697)),S=V(n(40600)),y=V(n(10798)),k=n(63618);function V(c){return c&&c.__esModule?c:{default:c}}function p(c){var s=c.getBoundingClientRect(),u=(0,k.round)(s.width)/c.offsetWidth||1,d=(0,k.round)(s.height)/c.offsetHeight||1;return u!==1||d!==1}function i(c,s,u){u===void 0&&(u=!1);var d=(0,o.isHTMLElement)(s),f=(0,o.isHTMLElement)(s)&&p(s),l=(0,S.default)(s),C=(0,e.default)(c,f,u),b={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(d||!d&&!u)&&(((0,t.default)(s)!=="body"||(0,y.default)(l))&&(b=(0,a.default)(s)),(0,o.isHTMLElement)(s)?(v=(0,e.default)(s,!0),v.x+=s.clientLeft,v.y+=s.clientTop):l&&(v.x=(0,m.default)(l))),{x:C.left+b.scrollLeft-v.x,y:C.top+b.scrollTop-v.y,width:C.width,height:C.height}}},16599:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},40600:function(I,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(75573);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},79752:function(I,r,n){"use strict";r.__esModule=!0,r.default=y;var e=S(n(40600)),a=S(n(16599)),t=S(n(79697)),o=S(n(43750)),m=n(63618);function S(k){return k&&k.__esModule?k:{default:k}}function y(k){var V,p=(0,e.default)(k),i=(0,o.default)(k),c=(V=k.ownerDocument)==null?void 0:V.body,s=(0,m.max)(p.scrollWidth,p.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),u=(0,m.max)(p.scrollHeight,p.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),d=-i.scrollLeft+(0,t.default)(k),f=-i.scrollTop;return(0,a.default)(c||p).direction==="rtl"&&(d+=(0,m.max)(p.clientWidth,c?c.clientWidth:0)-s),{width:s,height:u,x:d,y:f}}},3073:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},28811:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(37786));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var m=(0,e.default)(o),S=o.offsetWidth,y=o.offsetHeight;return Math.abs(m.width-S)<=1&&(S=m.width),Math.abs(m.height-y)<=1&&(y=m.height),{x:o.offsetLeft,y:o.offsetTop,width:S,height:y}}},12972:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},13390:function(I,r,n){"use strict";r.__esModule=!0,r.default=S;var e=m(n(43750)),a=m(n(95115)),t=n(75573),o=m(n(3073));function m(y){return y&&y.__esModule?y:{default:y}}function S(y){return y===(0,a.default)(y)||!(0,t.isHTMLElement)(y)?(0,e.default)(y):(0,o.default)(y)}},44896:function(I,r,n){"use strict";r.__esModule=!0,r.default=i;var e=k(n(95115)),a=k(n(12972)),t=k(n(16599)),o=n(75573),m=k(n(87031)),S=k(n(57819)),y=k(n(35366));function k(c){return c&&c.__esModule?c:{default:c}}function V(c){return!(0,o.isHTMLElement)(c)||(0,t.default)(c).position==="fixed"?null:c.offsetParent}function p(c){var s=/firefox/i.test((0,y.default)()),u=/Trident/i.test((0,y.default)());if(u&&(0,o.isHTMLElement)(c)){var d=(0,t.default)(c);if(d.position==="fixed")return null}var f=(0,S.default)(c);for((0,o.isShadowRoot)(f)&&(f=f.host);(0,o.isHTMLElement)(f)&&["html","body"].indexOf((0,a.default)(f))<0;){var l=(0,t.default)(f);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||s&&l.willChange==="filter"||s&&l.filter&&l.filter!=="none")return f;f=f.parentNode}return null}function i(c){for(var s=(0,e.default)(c),u=V(c);u&&(0,m.default)(u)&&(0,t.default)(u).position==="static";)u=V(u);return u&&((0,a.default)(u)==="html"||(0,a.default)(u)==="body"&&(0,t.default)(u).position==="static")?s:u||p(c)||s}},57819:function(I,r,n){"use strict";r.__esModule=!0,r.default=m;var e=o(n(12972)),a=o(n(40600)),t=n(75573);function o(S){return S&&S.__esModule?S:{default:S}}function m(S){return(0,e.default)(S)==="html"?S:S.assignedSlot||S.parentNode||((0,t.isShadowRoot)(S)?S.host:null)||(0,a.default)(S)}},24426:function(I,r,n){"use strict";r.__esModule=!0,r.default=S;var e=m(n(57819)),a=m(n(10798)),t=m(n(12972)),o=n(75573);function m(y){return y&&y.__esModule?y:{default:y}}function S(y){return["html","body","#document"].indexOf((0,t.default)(y))>=0?y.ownerDocument.body:(0,o.isHTMLElement)(y)&&(0,a.default)(y)?y:S((0,e.default)(y))}},87991:function(I,r,n){"use strict";r.__esModule=!0,r.default=S;var e=m(n(95115)),a=m(n(40600)),t=m(n(79697)),o=m(n(89331));function m(y){return y&&y.__esModule?y:{default:y}}function S(y,k){var V=(0,e.default)(y),p=(0,a.default)(y),i=V.visualViewport,c=p.clientWidth,s=p.clientHeight,u=0,d=0;if(i){c=i.width,s=i.height;var f=(0,o.default)();(f||!f&&k==="fixed")&&(u=i.offsetLeft,d=i.offsetTop)}return{width:c,height:s,x:u+(0,t.default)(y),y:d}}},95115:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}},43750:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var m=(0,e.default)(o),S=m.pageXOffset,y=m.pageYOffset;return{scrollLeft:S,scrollTop:y}}},79697:function(I,r,n){"use strict";r.__esModule=!0,r.default=m;var e=o(n(37786)),a=o(n(40600)),t=o(n(43750));function o(S){return S&&S.__esModule?S:{default:S}}function m(S){return(0,e.default)((0,a.default)(S)).left+(0,t.default)(S).scrollLeft}},75573:function(I,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=m;var e=a(n(95115));function a(S){return S&&S.__esModule?S:{default:S}}function t(S){var y=(0,e.default)(S).Element;return S instanceof y||S instanceof Element}function o(S){var y=(0,e.default)(S).HTMLElement;return S instanceof y||S instanceof HTMLElement}function m(S){if(typeof ShadowRoot=="undefined")return!1;var y=(0,e.default)(S).ShadowRoot;return S instanceof y||S instanceof ShadowRoot}},89331:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(35366));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},10798:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(16599));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var m=(0,e.default)(o),S=m.overflow,y=m.overflowX,k=m.overflowY;return/auto|scroll|overlay|hidden/.test(S+k+y)}},87031:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(12972));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},98309:function(I,r,n){"use strict";r.__esModule=!0,r.default=S;var e=m(n(24426)),a=m(n(57819)),t=m(n(95115)),o=m(n(10798));function m(y){return y&&y.__esModule?y:{default:y}}function S(y,k){var V;k===void 0&&(k=[]);var p=(0,e.default)(y),i=p===((V=y.ownerDocument)==null?void 0:V.body),c=(0,t.default)(p),s=i?[c].concat(c.visualViewport||[],(0,o.default)(p)?p:[]):p,u=k.concat(s);return i?u:u.concat(S((0,a.default)(s)))}},46206:function(I,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",m=r.basePlacements=[n,e,a,t],S=r.start="start",y=r.end="end",k=r.clippingParents="clippingParents",V=r.viewport="viewport",p=r.popper="popper",i=r.reference="reference",c=r.variationPlacements=m.reduce(function(x,B){return x.concat([B+"-"+S,B+"-"+y])},[]),s=r.placements=[].concat(m,[o]).reduce(function(x,B){return x.concat([B,B+"-"+S,B+"-"+y])},[]),u=r.beforeRead="beforeRead",d=r.read="read",f=r.afterRead="afterRead",l=r.beforeMain="beforeMain",C=r.main="main",b=r.afterMain="afterMain",v=r.beforeWrite="beforeWrite",h=r.write="write",g=r.afterWrite="afterWrite",N=r.modifierPhases=[u,d,f,l,C,b,v,h,g]},95996:function(I,r,n){"use strict";r.__esModule=!0;var e={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};r.popperGenerator=r.detectOverflow=r.createPopperLite=r.createPopperBase=r.createPopper=void 0;var a=n(46206);Object.keys(a).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===a[y]||(r[y]=a[y])});var t=n(39805);Object.keys(t).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===t[y]||(r[y]=t[y])});var o=n(96376);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var m=n(83312);r.createPopper=m.createPopper;var S=n(2473);r.createPopperLite=S.createPopper},19975:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(12972)),a=n(75573);function t(y){return y&&y.__esModule?y:{default:y}}function o(y){var k=y.state;Object.keys(k.elements).forEach(function(V){var p=k.styles[V]||{},i=k.attributes[V]||{},c=k.elements[V];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,p),Object.keys(i).forEach(function(s){var u=i[s];u===!1?c.removeAttribute(s):c.setAttribute(s,u===!0?"":u)}))})}function m(y){var k=y.state,V={popper:{position:k.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(k.elements.popper.style,V.popper),k.styles=V,k.elements.arrow&&Object.assign(k.elements.arrow.style,V.arrow),function(){Object.keys(k.elements).forEach(function(p){var i=k.elements[p],c=k.attributes[p]||{},s=Object.keys(k.styles.hasOwnProperty(p)?k.styles[p]:V[p]),u=s.reduce(function(d,f){return d[f]="",d},{});!(0,a.isHTMLElement)(i)||!(0,e.default)(i)||(Object.assign(i.style,u),Object.keys(c).forEach(function(d){i.removeAttribute(d)}))})}}var S=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:m,requires:["computeStyles"]}},52744:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=p(n(83104)),a=p(n(28811)),t=p(n(4206)),o=p(n(44896)),m=p(n(41199)),S=n(28595),y=p(n(43286)),k=p(n(81447)),V=n(46206);function p(d){return d&&d.__esModule?d:{default:d}}var i=function(){function d(f,l){return f=typeof f=="function"?f(Object.assign({},l.rects,{placement:l.placement})):f,(0,y.default)(typeof f!="number"?f:(0,k.default)(f,V.basePlacements))}return d}();function c(d){var f,l=d.state,C=d.name,b=d.options,v=l.elements.arrow,h=l.modifiersData.popperOffsets,g=(0,e.default)(l.placement),N=(0,m.default)(g),x=[V.left,V.right].indexOf(g)>=0,B=x?"height":"width";if(!(!v||!h)){var L=i(b.padding,l),T=(0,a.default)(v),E=N==="y"?V.top:V.left,w=N==="y"?V.bottom:V.right,A=l.rects.reference[B]+l.rects.reference[N]-h[N]-l.rects.popper[B],O=h[N]-l.rects.reference[N],M=(0,o.default)(v),P=M?N==="y"?M.clientHeight||0:M.clientWidth||0:0,R=A/2-O/2,F=L[E],_=P-T[B]-L[w],U=P/2-T[B]/2+R,W=(0,S.within)(F,U,_),$=N;l.modifiersData[C]=(f={},f[$]=W,f.centerOffset=W-U,f)}}function s(d){var f=d.state,l=d.options,C=l.element,b=C===void 0?"[data-popper-arrow]":C;b!=null&&(typeof b=="string"&&(b=f.elements.popper.querySelector(b),!b)||(0,t.default)(f.elements.popper,b)&&(f.elements.arrow=b))}var u=r.default={name:"arrow",enabled:!0,phase:"main",fn:c,effect:s,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},59894:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=c;var e=n(46206),a=V(n(44896)),t=V(n(95115)),o=V(n(40600)),m=V(n(16599)),S=V(n(83104)),y=V(n(45)),k=n(63618);function V(d){return d&&d.__esModule?d:{default:d}}var p={top:"auto",right:"auto",bottom:"auto",left:"auto"};function i(d,f){var l=d.x,C=d.y,b=f.devicePixelRatio||1;return{x:(0,k.round)(l*b)/b||0,y:(0,k.round)(C*b)/b||0}}function c(d){var f,l=d.popper,C=d.popperRect,b=d.placement,v=d.variation,h=d.offsets,g=d.position,N=d.gpuAcceleration,x=d.adaptive,B=d.roundOffsets,L=d.isFixed,T=h.x,E=T===void 0?0:T,w=h.y,A=w===void 0?0:w,O=typeof B=="function"?B({x:E,y:A}):{x:E,y:A};E=O.x,A=O.y;var M=h.hasOwnProperty("x"),P=h.hasOwnProperty("y"),R=e.left,F=e.top,_=window;if(x){var U=(0,a.default)(l),W="clientHeight",$="clientWidth";if(U===(0,t.default)(l)&&(U=(0,o.default)(l),(0,m.default)(U).position!=="static"&&g==="absolute"&&(W="scrollHeight",$="scrollWidth")),U=U,b===e.top||(b===e.left||b===e.right)&&v===e.end){F=e.bottom;var Y=L&&U===_&&_.visualViewport?_.visualViewport.height:U[W];A-=Y-C.height,A*=N?1:-1}if(b===e.left||(b===e.top||b===e.bottom)&&v===e.end){R=e.right;var ne=L&&U===_&&_.visualViewport?_.visualViewport.width:U[$];E-=ne-C.width,E*=N?1:-1}}var G=Object.assign({position:g},x&&p),le=B===!0?i({x:E,y:A},(0,t.default)(l)):{x:E,y:A};if(E=le.x,A=le.y,N){var de;return Object.assign({},G,(de={},de[F]=P?"0":"",de[R]=M?"0":"",de.transform=(_.devicePixelRatio||1)<=1?"translate("+E+"px, "+A+"px)":"translate3d("+E+"px, "+A+"px, 0)",de))}return Object.assign({},G,(f={},f[F]=P?A+"px":"",f[R]=M?E+"px":"",f.transform="",f))}function s(d){var f=d.state,l=d.options,C=l.gpuAcceleration,b=C===void 0?!0:C,v=l.adaptive,h=v===void 0?!0:v,g=l.roundOffsets,N=g===void 0?!0:g,x={placement:(0,S.default)(f.placement),variation:(0,y.default)(f.placement),popper:f.elements.popper,popperRect:f.rects.popper,gpuAcceleration:b,isFixed:f.options.strategy==="fixed"};f.modifiersData.popperOffsets!=null&&(f.styles.popper=Object.assign({},f.styles.popper,c(Object.assign({},x,{offsets:f.modifiersData.popperOffsets,position:f.options.strategy,adaptive:h,roundOffsets:N})))),f.modifiersData.arrow!=null&&(f.styles.arrow=Object.assign({},f.styles.arrow,c(Object.assign({},x,{offsets:f.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:N})))),f.attributes.popper=Object.assign({},f.attributes.popper,{"data-popper-placement":f.placement})}var u=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:s,data:{}}},36692:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(95115));function a(S){return S&&S.__esModule?S:{default:S}}var t={passive:!0};function o(S){var y=S.state,k=S.instance,V=S.options,p=V.scroll,i=p===void 0?!0:p,c=V.resize,s=c===void 0?!0:c,u=(0,e.default)(y.elements.popper),d=[].concat(y.scrollParents.reference,y.scrollParents.popper);return i&&d.forEach(function(f){f.addEventListener("scroll",k.update,t)}),s&&u.addEventListener("resize",k.update,t),function(){i&&d.forEach(function(f){f.removeEventListener("scroll",k.update,t)}),s&&u.removeEventListener("resize",k.update,t)}}var m=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function S(){}return S}(),effect:o,data:{}}},23798:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=k(n(71376)),a=k(n(83104)),t=k(n(86459)),o=k(n(17633)),m=k(n(9041)),S=n(46206),y=k(n(45));function k(c){return c&&c.__esModule?c:{default:c}}function V(c){if((0,a.default)(c)===S.auto)return[];var s=(0,e.default)(c);return[(0,t.default)(c),s,(0,t.default)(s)]}function p(c){var s=c.state,u=c.options,d=c.name;if(!s.modifiersData[d]._skip){for(var f=u.mainAxis,l=f===void 0?!0:f,C=u.altAxis,b=C===void 0?!0:C,v=u.fallbackPlacements,h=u.padding,g=u.boundary,N=u.rootBoundary,x=u.altBoundary,B=u.flipVariations,L=B===void 0?!0:B,T=u.allowedAutoPlacements,E=s.options.placement,w=(0,a.default)(E),A=w===E,O=v||(A||!L?[(0,e.default)(E)]:V(E)),M=[E].concat(O).reduce(function(Z,te){return Z.concat((0,a.default)(te)===S.auto?(0,m.default)(s,{placement:te,boundary:g,rootBoundary:N,padding:h,flipVariations:L,allowedAutoPlacements:T}):te)},[]),P=s.rects.reference,R=s.rects.popper,F=new Map,_=!0,U=M[0],W=0;W=0,le=G?"width":"height",de=(0,o.default)(s,{placement:$,boundary:g,rootBoundary:N,altBoundary:x,padding:h}),oe=G?ne?S.right:S.left:ne?S.bottom:S.top;P[le]>R[le]&&(oe=(0,e.default)(oe));var re=(0,e.default)(oe),q=[];if(l&&q.push(de[Y]<=0),b&&q.push(de[oe]<=0,de[re]<=0),q.every(function(Z){return Z})){U=$,_=!1;break}F.set($,q)}if(_)for(var ae=L?3:1,J=function(){function Z(te){var fe=M.find(function(ye){var pe=F.get(ye);if(pe)return pe.slice(0,te).every(function(Le){return Le})});if(fe)return U=fe,"break"}return Z}(),X=ae;X>0;X--){var Q=J(X);if(Q==="break")break}s.placement!==U&&(s.modifiersData[d]._skip=!0,s.placement=U,s.reset=!0)}}var i=r.default={name:"flip",enabled:!0,phase:"main",fn:p,requiresIfExists:["offset"],data:{_skip:!1}}},83761:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=t(n(17633));function t(k){return k&&k.__esModule?k:{default:k}}function o(k,V,p){return p===void 0&&(p={x:0,y:0}),{top:k.top-V.height-p.y,right:k.right-V.width+p.x,bottom:k.bottom-V.height+p.y,left:k.left-V.width-p.x}}function m(k){return[e.top,e.right,e.bottom,e.left].some(function(V){return k[V]>=0})}function S(k){var V=k.state,p=k.name,i=V.rects.reference,c=V.rects.popper,s=V.modifiersData.preventOverflow,u=(0,a.default)(V,{elementContext:"reference"}),d=(0,a.default)(V,{altBoundary:!0}),f=o(u,i),l=o(d,c,s),C=m(f),b=m(l);V.modifiersData[p]={referenceClippingOffsets:f,popperEscapeOffsets:l,isReferenceHidden:C,hasPopperEscaped:b},V.attributes.popper=Object.assign({},V.attributes.popper,{"data-popper-reference-hidden":C,"data-popper-escaped":b})}var y=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:S}},39805:function(I,r,n){"use strict";r.__esModule=!0,r.preventOverflow=r.popperOffsets=r.offset=r.hide=r.flip=r.eventListeners=r.computeStyles=r.arrow=r.applyStyles=void 0;var e=p(n(19975));r.applyStyles=e.default;var a=p(n(52744));r.arrow=a.default;var t=p(n(59894));r.computeStyles=t.default;var o=p(n(36692));r.eventListeners=o.default;var m=p(n(23798));r.flip=m.default;var S=p(n(83761));r.hide=S.default;var y=p(n(61410));r.offset=y.default;var k=p(n(40107));r.popperOffsets=k.default;var V=p(n(75137));r.preventOverflow=V.default;function p(i){return i&&i.__esModule?i:{default:i}}},61410:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(83104)),a=n(46206);function t(y){return y&&y.__esModule?y:{default:y}}function o(y,k,V){var p=(0,e.default)(y),i=[a.left,a.top].indexOf(p)>=0?-1:1,c=typeof V=="function"?V(Object.assign({},k,{placement:y})):V,s=c[0],u=c[1];return s=s||0,u=(u||0)*i,[a.left,a.right].indexOf(p)>=0?{x:u,y:s}:{x:s,y:u}}function m(y){var k=y.state,V=y.options,p=y.name,i=V.offset,c=i===void 0?[0,0]:i,s=a.placements.reduce(function(l,C){return l[C]=o(C,k.rects,c),l},{}),u=s[k.placement],d=u.x,f=u.y;k.modifiersData.popperOffsets!=null&&(k.modifiersData.popperOffsets.x+=d,k.modifiersData.popperOffsets.y+=f),k.modifiersData[p]=s}var S=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:m}},40107:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(89951));function a(m){return m&&m.__esModule?m:{default:m}}function t(m){var S=m.state,y=m.name;S.modifiersData[y]=(0,e.default)({reference:S.rects.reference,element:S.rects.popper,strategy:"absolute",placement:S.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},75137:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=c(n(83104)),t=c(n(41199)),o=c(n(28066)),m=n(28595),S=c(n(28811)),y=c(n(44896)),k=c(n(17633)),V=c(n(45)),p=c(n(34780)),i=n(63618);function c(d){return d&&d.__esModule?d:{default:d}}function s(d){var f=d.state,l=d.options,C=d.name,b=l.mainAxis,v=b===void 0?!0:b,h=l.altAxis,g=h===void 0?!1:h,N=l.boundary,x=l.rootBoundary,B=l.altBoundary,L=l.padding,T=l.tether,E=T===void 0?!0:T,w=l.tetherOffset,A=w===void 0?0:w,O=(0,k.default)(f,{boundary:N,rootBoundary:x,padding:L,altBoundary:B}),M=(0,a.default)(f.placement),P=(0,V.default)(f.placement),R=!P,F=(0,t.default)(M),_=(0,o.default)(F),U=f.modifiersData.popperOffsets,W=f.rects.reference,$=f.rects.popper,Y=typeof A=="function"?A(Object.assign({},f.rects,{placement:f.placement})):A,ne=typeof Y=="number"?{mainAxis:Y,altAxis:Y}:Object.assign({mainAxis:0,altAxis:0},Y),G=f.modifiersData.offset?f.modifiersData.offset[f.placement]:null,le={x:0,y:0};if(U){if(v){var de,oe=F==="y"?e.top:e.left,re=F==="y"?e.bottom:e.right,q=F==="y"?"height":"width",ae=U[F],J=ae+O[oe],X=ae-O[re],Q=E?-$[q]/2:0,Z=P===e.start?W[q]:$[q],te=P===e.start?-$[q]:-W[q],fe=f.elements.arrow,ye=E&&fe?(0,S.default)(fe):{width:0,height:0},pe=f.modifiersData["arrow#persistent"]?f.modifiersData["arrow#persistent"].padding:(0,p.default)(),Le=pe[oe],D=pe[re],ie=(0,m.within)(0,W[q],ye[q]),se=R?W[q]/2-Q-ie-Le-ne.mainAxis:Z-ie-Le-ne.mainAxis,Ce=R?-W[q]/2+Q+ie+D+ne.mainAxis:te+ie+D+ne.mainAxis,he=f.elements.arrow&&(0,y.default)(f.elements.arrow),ve=he?F==="y"?he.clientTop||0:he.clientLeft||0:0,Be=(de=G==null?void 0:G[F])!=null?de:0,we=ae+se-Be-ve,Re=ae+Ce-Be,_e=(0,m.within)(E?(0,i.min)(J,we):J,ae,E?(0,i.max)(X,Re):X);U[F]=_e,le[F]=_e-ae}if(g){var Pe,Ve=F==="x"?e.top:e.left,ke=F==="x"?e.bottom:e.right,H=U[_],ue=_==="y"?"height":"width",be=H+O[Ve],Se=H-O[ke],Ie=[e.top,e.left].indexOf(M)!==-1,Ee=(Pe=G==null?void 0:G[_])!=null?Pe:0,Me=Ie?be:H-W[ue]-$[ue]-Ee+ne.altAxis,Ae=Ie?H+W[ue]+$[ue]-Ee-ne.altAxis:Se,De=E&&Ie?(0,m.withinMaxClamp)(Me,H,Ae):(0,m.within)(E?Me:be,H,E?Ae:Se);U[_]=De,le[_]=De-H}f.modifiersData[C]=le}}var u=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:s,requiresIfExists:["offset"]}},2473:function(I,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(96376);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=S(n(36692)),t=S(n(40107)),o=S(n(59894)),m=S(n(19975));function S(V){return V&&V.__esModule?V:{default:V}}var y=r.defaultModifiers=[a.default,t.default,o.default,m.default],k=r.createPopper=(0,e.popperGenerator)({defaultModifiers:y})},83312:function(I,r,n){"use strict";r.__esModule=!0;var e={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};r.defaultModifiers=r.createPopperLite=r.createPopper=void 0;var a=n(96376);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=u(n(36692)),o=u(n(40107)),m=u(n(59894)),S=u(n(19975)),y=u(n(61410)),k=u(n(23798)),V=u(n(75137)),p=u(n(52744)),i=u(n(83761)),c=n(2473);r.createPopperLite=c.createPopper;var s=n(39805);Object.keys(s).forEach(function(l){l==="default"||l==="__esModule"||Object.prototype.hasOwnProperty.call(e,l)||l in r&&r[l]===s[l]||(r[l]=s[l])});function u(l){return l&&l.__esModule?l:{default:l}}var d=r.defaultModifiers=[t.default,o.default,m.default,S.default,y.default,k.default,V.default,p.default,i.default],f=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:d})},9041:function(I,r,n){"use strict";r.__esModule=!0,r.default=S;var e=m(n(45)),a=n(46206),t=m(n(17633)),o=m(n(83104));function m(y){return y&&y.__esModule?y:{default:y}}function S(y,k){k===void 0&&(k={});var V=k,p=V.placement,i=V.boundary,c=V.rootBoundary,s=V.padding,u=V.flipVariations,d=V.allowedAutoPlacements,f=d===void 0?a.placements:d,l=(0,e.default)(p),C=l?u?a.variationPlacements:a.variationPlacements.filter(function(h){return(0,e.default)(h)===l}):a.basePlacements,b=C.filter(function(h){return f.indexOf(h)>=0});b.length===0&&(b=C);var v=b.reduce(function(h,g){return h[g]=(0,t.default)(y,{placement:g,boundary:i,rootBoundary:c,padding:s})[(0,o.default)(g)],h},{});return Object.keys(v).sort(function(h,g){return v[h]-v[g]})}},89951:function(I,r,n){"use strict";r.__esModule=!0,r.default=S;var e=m(n(83104)),a=m(n(45)),t=m(n(41199)),o=n(46206);function m(y){return y&&y.__esModule?y:{default:y}}function S(y){var k=y.reference,V=y.element,p=y.placement,i=p?(0,e.default)(p):null,c=p?(0,a.default)(p):null,s=k.x+k.width/2-V.width/2,u=k.y+k.height/2-V.height/2,d;switch(i){case o.top:d={x:s,y:k.y-V.height};break;case o.bottom:d={x:s,y:k.y+k.height};break;case o.right:d={x:k.x+k.width,y:u};break;case o.left:d={x:k.x-V.width,y:u};break;default:d={x:k.x,y:k.y}}var f=i?(0,t.default)(i):null;if(f!=null){var l=f==="y"?"height":"width";switch(c){case o.start:d[f]=d[f]-(k[l]/2-V[l]/2);break;case o.end:d[f]=d[f]+(k[l]/2-V[l]/2);break;default:}}return d}},10579:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}},17633:function(I,r,n){"use strict";r.__esModule=!0,r.default=i;var e=p(n(49035)),a=p(n(40600)),t=p(n(37786)),o=p(n(89951)),m=p(n(81666)),S=n(46206),y=n(75573),k=p(n(43286)),V=p(n(81447));function p(c){return c&&c.__esModule?c:{default:c}}function i(c,s){s===void 0&&(s={});var u=s,d=u.placement,f=d===void 0?c.placement:d,l=u.strategy,C=l===void 0?c.strategy:l,b=u.boundary,v=b===void 0?S.clippingParents:b,h=u.rootBoundary,g=h===void 0?S.viewport:h,N=u.elementContext,x=N===void 0?S.popper:N,B=u.altBoundary,L=B===void 0?!1:B,T=u.padding,E=T===void 0?0:T,w=(0,k.default)(typeof E!="number"?E:(0,V.default)(E,S.basePlacements)),A=x===S.popper?S.reference:S.popper,O=c.rects.popper,M=c.elements[L?A:x],P=(0,e.default)((0,y.isElement)(M)?M:M.contextElement||(0,a.default)(c.elements.popper),v,g,C),R=(0,t.default)(c.elements.reference),F=(0,o.default)({reference:R,element:O,strategy:"absolute",placement:f}),_=(0,m.default)(Object.assign({},O,F)),U=x===S.popper?_:R,W={top:P.top-U.top+w.top,bottom:U.bottom-P.bottom+w.bottom,left:P.left-U.left+w.left,right:U.right-P.right+w.right},$=c.modifiersData.offset;if(x===S.popper&&$){var Y=$[f];Object.keys(W).forEach(function(ne){var G=[S.right,S.bottom].indexOf(ne)>=0?1:-1,le=[S.top,S.bottom].indexOf(ne)>=0?"y":"x";W[ne]+=Y[le]*G})}return W}},81447:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},28066:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},83104:function(I,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(46206);function a(t){return t.split("-")[0]}},34780:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},41199:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},71376:function(I,r){"use strict";r.__esModule=!0,r.default=e;var n={left:"right",right:"left",bottom:"top",top:"bottom"};function e(a){return a.replace(/left|right|bottom|top/g,function(t){return n[t]})}},86459:function(I,r){"use strict";r.__esModule=!0,r.default=e;var n={start:"end",end:"start"};function e(a){return a.replace(/start|end/g,function(t){return n[t]})}},45:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},63618:function(I,r){"use strict";r.__esModule=!0,r.round=r.min=r.max=void 0;var n=r.max=Math.max,e=r.min=Math.min,a=r.round=Math.round},56500:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var m=t[o.name];return t[o.name]=m?Object.assign({},m,o,{options:Object.assign({},m.options,o.options),data:Object.assign({},m.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},43286:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(34780));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},33118:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(46206);function a(o){var m=new Map,S=new Set,y=[];o.forEach(function(V){m.set(V.name,V)});function k(V){S.add(V.name);var p=[].concat(V.requires||[],V.requiresIfExists||[]);p.forEach(function(i){if(!S.has(i)){var c=m.get(i);c&&k(c)}}),y.push(V)}return o.forEach(function(V){S.has(V.name)||k(V)}),y}function t(o){var m=a(o);return e.modifierPhases.reduce(function(S,y){return S.concat(m.filter(function(k){return k.phase===y}))},[])}},81666:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},35366:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}},28595:function(I,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(63618);function a(o,m,S){return(0,e.max)(o,(0,e.min)(m,S))}function t(o,m,S){var y=a(o,m,S);return y>S?S:y}},83331:function(I,r,n){"use strict";var e;function a(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?a=function(){function o(m){return typeof m}return o}():a=function(){function o(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m}return o}(),a(t)}(function(t){var o=arguments,m=function(){var i=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,c=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,s=/[^-+\dA-Z]/g;return function(u,d,f,l){if(o.length===1&&p(u)==="string"&&!/\d/.test(u)&&(d=u,u=void 0),u=u||u===0?u:new Date,u instanceof Date||(u=new Date(u)),isNaN(u))throw TypeError("Invalid date");d=String(m.masks[d]||d||m.masks.default);var C=d.slice(0,4);(C==="UTC:"||C==="GMT:")&&(d=d.slice(4),f=!0,C==="GMT:"&&(l=!0));var b=function(){function M(){return f?"getUTC":"get"}return M}(),v=function(){function M(){return u[b()+"Date"]()}return M}(),h=function(){function M(){return u[b()+"Day"]()}return M}(),g=function(){function M(){return u[b()+"Month"]()}return M}(),N=function(){function M(){return u[b()+"FullYear"]()}return M}(),x=function(){function M(){return u[b()+"Hours"]()}return M}(),B=function(){function M(){return u[b()+"Minutes"]()}return M}(),L=function(){function M(){return u[b()+"Seconds"]()}return M}(),T=function(){function M(){return u[b()+"Milliseconds"]()}return M}(),E=function(){function M(){return f?0:u.getTimezoneOffset()}return M}(),w=function(){function M(){return k(u)}return M}(),A=function(){function M(){return V(u)}return M}(),O={d:function(){function M(){return v()}return M}(),dd:function(){function M(){return S(v())}return M}(),ddd:function(){function M(){return m.i18n.dayNames[h()]}return M}(),DDD:function(){function M(){return y({y:N(),m:g(),d:v(),_:b(),dayName:m.i18n.dayNames[h()],short:!0})}return M}(),dddd:function(){function M(){return m.i18n.dayNames[h()+7]}return M}(),DDDD:function(){function M(){return y({y:N(),m:g(),d:v(),_:b(),dayName:m.i18n.dayNames[h()+7]})}return M}(),m:function(){function M(){return g()+1}return M}(),mm:function(){function M(){return S(g()+1)}return M}(),mmm:function(){function M(){return m.i18n.monthNames[g()]}return M}(),mmmm:function(){function M(){return m.i18n.monthNames[g()+12]}return M}(),yy:function(){function M(){return String(N()).slice(2)}return M}(),yyyy:function(){function M(){return S(N(),4)}return M}(),h:function(){function M(){return x()%12||12}return M}(),hh:function(){function M(){return S(x()%12||12)}return M}(),H:function(){function M(){return x()}return M}(),HH:function(){function M(){return S(x())}return M}(),M:function(){function M(){return B()}return M}(),MM:function(){function M(){return S(B())}return M}(),s:function(){function M(){return L()}return M}(),ss:function(){function M(){return S(L())}return M}(),l:function(){function M(){return S(T(),3)}return M}(),L:function(){function M(){return S(Math.floor(T()/10))}return M}(),t:function(){function M(){return x()<12?m.i18n.timeNames[0]:m.i18n.timeNames[1]}return M}(),tt:function(){function M(){return x()<12?m.i18n.timeNames[2]:m.i18n.timeNames[3]}return M}(),T:function(){function M(){return x()<12?m.i18n.timeNames[4]:m.i18n.timeNames[5]}return M}(),TT:function(){function M(){return x()<12?m.i18n.timeNames[6]:m.i18n.timeNames[7]}return M}(),Z:function(){function M(){return l?"GMT":f?"UTC":(String(u).match(c)||[""]).pop().replace(s,"").replace(/GMT\+0000/g,"UTC")}return M}(),o:function(){function M(){return(E()>0?"-":"+")+S(Math.floor(Math.abs(E())/60)*100+Math.abs(E())%60,4)}return M}(),p:function(){function M(){return(E()>0?"-":"+")+S(Math.floor(Math.abs(E())/60),2)+":"+S(Math.floor(Math.abs(E())%60),2)}return M}(),S:function(){function M(){return["th","st","nd","rd"][v()%10>3?0:(v()%100-v()%10!=10)*v()%10]}return M}(),W:function(){function M(){return w()}return M}(),WW:function(){function M(){return S(w())}return M}(),N:function(){function M(){return A()}return M}()};return d.replace(i,function(M){return M in O?O[M]():M.slice(1,M.length-1)})}}();m.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"},m.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 S=function(){function i(c,s){for(c=String(c),s=s||2;c.length0?x(K.componentWillDisappear,T(j,z)):L(j,z,!1)}function w(j,z,K,ee,me,ge,Ne,xe){j.componentWillMove.push({dom:ee,fn:function(){function Te(){Ne&4?K.componentWillMove(z,me,ee):Ne&8&&K.onComponentWillMove(z,me,ee,xe)}return Te}(),next:ge,parent:me})}function A(j,z,K,ee,me){var ge,Ne,xe=z.flags;do{var Te=z.flags;if(Te&1521){!a(ge)&&(o(ge.componentWillMove)||o(ge.onComponentWillMove))?w(me,j,ge,z.dom,K,ee,xe,Ne):l(K,z.dom,ee);return}var Fe=z.children;if(Te&4)ge=z.children,Ne=z.props,z=Fe.$LI;else if(Te&8)ge=z.ref,Ne=z.props,z=Fe;else if(Te&8192)if(z.childFlags===2)z=Fe;else{for(var Oe=0,We=Fe.length;Oe0,Fe=y(xe),Oe=m(xe)&&xe[0]===W;Te||Fe||Oe?(K=K||z.slice(0,ge),(Te||Oe)&&(Ne=J(Ne)),(Fe||Oe)&&(Ne.key=W+ge),K.push(Ne)):K&&K.push(Ne),Ne.flags|=65536}}K=K||z,K.length===0?ee=1:ee=8}else K=z,K.flags|=65536,z.flags&81920&&(K=J(z)),ee=2;return j.children=K,j.childFlags=ee,j}function ye(j){return t(j)||e(j)?oe(j,null):n(j)?re(j,0,null):j.flags&16384?J(j):j}var pe="http://www.w3.org/1999/xlink",Le="http://www.w3.org/XML/1998/namespace",D={"xlink:actuate":pe,"xlink:arcrole":pe,"xlink:href":pe,"xlink:role":pe,"xlink:show":pe,"xlink:title":pe,"xlink:type":pe,"xml:base":Le,"xml:lang":Le,"xml:space":Le};function ie(j){return{onClick:j,onDblClick:j,onFocusIn:j,onFocusOut:j,onKeyDown:j,onKeyPress:j,onKeyUp:j,onMouseDown:j,onMouseMove:j,onMouseUp:j,onTouchEnd:j,onTouchMove:j,onTouchStart:j}}var se=ie(0),Ce=ie(null),he=ie(!0);function ve(j,z){var K=z.$EV;return K||(K=z.$EV=ie(null)),K[j]||++se[j]===1&&(Ce[j]=Se(j)),K}function Be(j,z){var K=z.$EV;K&&K[j]&&(--se[j]===0&&(document.removeEventListener(d(j),Ce[j]),Ce[j]=null),K[j]=null)}function we(j,z,K,ee){if(o(K))ve(j,ee)[j]=K;else if(i(K)){if(F(z,K))return;ve(j,ee)[j]=K}else Be(j,ee)}function Re(j){return o(j.composedPath)?j.composedPath()[0]:j.target}function _e(j,z,K,ee){var me=Re(j);do{if(z&&me.disabled)return;var ge=me.$EV;if(ge){var Ne=ge[K];if(Ne&&(ee.dom=me,Ne.event?Ne.event(Ne.data,j):Ne(j),j.cancelBubble))return}me=me.parentNode}while(!y(me))}function Pe(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function Ve(){return this.defaultPrevented}function ke(){return this.cancelBubble}function H(j){var z={dom:document};return j.isDefaultPrevented=Ve,j.isPropagationStopped=ke,j.stopPropagation=Pe,Object.defineProperty(j,"currentTarget",{configurable:!0,get:function(){function K(){return z.dom}return K}()}),z}function ue(j){return function(z){if(z.button!==0){z.stopPropagation();return}_e(z,!0,j,H(z))}}function be(j){return function(z){_e(z,!1,j,H(z))}}function Se(j){var z=j==="onClick"||j==="onDblClick"?ue(j):be(j);return document.addEventListener(d(j),z),z}function Ie(j,z){var K=document.createElement("i");return K.innerHTML=z,K.innerHTML===j.innerHTML}function Ee(j,z,K){if(j[z]){var ee=j[z];ee.event?ee.event(ee.data,K):ee(K)}else{var me=z.toLowerCase();j[me]&&j[me](K)}}function Me(j,z){var K=function(){function ee(me){var ge=this.$V;if(ge){var Ne=ge.props||c,xe=ge.dom;if(m(j))Ee(Ne,j,me);else for(var Te=0;Te-1&&z.options[ge]&&(xe=z.options[ge].value),K&&a(xe)&&(xe=j.defaultValue),qe(ee,xe)}}var Zt=Me("onInput",Tt),qt=Me("onChange");function en(j,z){Ae(j,"input",Zt),z.onChange&&Ae(j,"change",qt)}function Tt(j,z,K){var ee=j.value,me=z.value;if(a(ee)){if(K){var ge=j.defaultValue;!a(ge)&&ge!==me&&(z.defaultValue=ge,z.value=ge)}}else me!==ee&&(z.defaultValue=ee,z.value=ee)}function wt(j,z,K,ee,me,ge){j&64?lt(ee,K):j&256?It(ee,K,me,z):j&128&&Tt(ee,K,me),ge&&(K.$V=z)}function tn(j,z,K){j&64?$e(z,K):j&256?Jt(z):j&128&&en(z,K)}function Et(j){return j.type&&De(j.type)?!a(j.checked):!a(j.value)}function nn(){return{current:null}}function on(j){var z={render:j};return z}function Ct(j){j&&!U(j,null)&&j.current&&(j.current=null)}function st(j,z,K){j&&(o(j)||j.current!==void 0)&&K.push(function(){!U(j,z)&&j.current!==void 0&&(j.current=z)})}function tt(j,z,K){ot(j,K),E(j,z,K)}function ot(j,z){var K=j.flags,ee=j.children,me;if(K&481){me=j.ref;var ge=j.props;Ct(me);var Ne=j.childFlags;if(!y(ge))for(var xe=Object.keys(ge),Te=0,Fe=xe.length;Te0?x(K.componentWillDisappear,rn(z,j)):j.textContent=""}function gt(j,z,K,ee){mt(K,ee),z.flags&8192?E(z,j,ee):vt(j,K,ee)}function At(j,z,K,ee,me){j.componentWillDisappear.push(function(ge){ee&4?z.componentWillDisappear(K,ge):ee&8&&z.onComponentWillDisappear(K,me,ge)})}function an(j){var z=j.event;return function(K){z(j.data,K)}}function cn(j,z,K,ee){if(i(K)){if(F(z,K))return;K=an(K)}Ae(ee,d(j),K)}function un(j,z,K){if(a(z)){K.removeAttribute("style");return}var ee=K.style,me,ge;if(m(z)){ee.cssText=z;return}if(!a(j)&&!m(j)){for(me in z)ge=z[me],ge!==j[me]&&ee.setProperty(me,ge);for(me in j)a(z[me])&&ee.removeProperty(me)}else for(me in z)ge=z[me],ee.setProperty(me,ge)}function ln(j,z,K,ee,me){var ge=j&&j.__html||"",Ne=z&&z.__html||"";ge!==Ne&&!a(Ne)&&!Ie(ee,Ne)&&(y(K)||(K.childFlags&12?mt(K.children,me):K.childFlags===2&&ot(K.children,me),K.children=null,K.childFlags=1),ee.innerHTML=Ne)}function bt(j,z,K,ee,me,ge,Ne,xe){switch(j){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":ee.autofocus=!!K;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":ee[j]=!!K;break;case"defaultChecked":case"value":case"volume":if(ge&&j==="value")break;var Te=a(K)?"":K;ee[j]!==Te&&(ee[j]=Te);break;case"style":un(z,K,ee);break;case"dangerouslySetInnerHTML":ln(z,K,Ne,ee,xe);break;default:he[j]?we(j,z,K,ee):j.charCodeAt(0)===111&&j.charCodeAt(1)===110?cn(j,z,K,ee):a(K)?ee.removeAttribute(j):me&&D[j]?ee.setAttributeNS(D[j],j,K):ee.setAttribute(j,K);break}}function Mt(j,z,K,ee,me,ge){var Ne=!1,xe=(z&448)>0;xe&&(Ne=Et(K),Ne&&tn(z,ee,K));for(var Te in K)bt(Te,null,K[Te],ee,me,Ne,null,ge);xe&&wt(z,j,ee,K,!0,Ne)}function Pt(j,z,K){var ee=ye(j.render(z,j.state,K)),me=K;return o(j.getChildContext)&&(me=V(K,j.getChildContext())),j.$CX=me,ee}function Ot(j,z,K,ee,me,ge){var Ne=new z(K,ee),xe=Ne.$N=!!(z.getDerivedStateFromProps||Ne.getSnapshotBeforeUpdate);if(Ne.$SVG=me,Ne.$L=ge,j.children=Ne,Ne.$BS=!1,Ne.context=ee,Ne.props===c&&(Ne.props=K),xe)Ne.state=O(Ne,K,Ne.state);else if(o(Ne.componentWillMount)){Ne.$BR=!0,Ne.componentWillMount();var Te=Ne.$PS;if(!y(Te)){var Fe=Ne.state;if(y(Fe))Ne.state=Te;else for(var Oe in Te)Fe[Oe]=Te[Oe];Ne.$PS=null}Ne.$BR=!1}return Ne.$LI=Pt(Ne,K,ee),Ne}function yt(j,z){var K=j.props||c;return j.flags&32768?j.type.render(K,j.ref,z):j.type(K,z)}function Qe(j,z,K,ee,me,ge,Ne){var xe=j.flags|=16384;xe&481?Rt(j,z,K,ee,me,ge,Ne):xe&4?mn(j,z,K,ee,me,ge,Ne):xe&8?fn(j,z,K,ee,me,ge,Ne):xe&16?Dt(j,z,me):xe&8192?sn(j,K,z,ee,me,ge,Ne):xe&1024&&dn(j,K,z,me,ge,Ne)}function dn(j,z,K,ee,me,ge){Qe(j.children,j.ref,z,!1,null,me,ge);var Ne=X();Dt(Ne,K,ee),j.dom=Ne.dom}function sn(j,z,K,ee,me,ge,Ne){var xe=j.children,Te=j.childFlags;Te&12&&xe.length===0&&(Te=j.childFlags=2,xe=j.children=X()),Te===2?Qe(xe,K,z,ee,me,ge,Ne):dt(xe,K,z,ee,me,ge,Ne)}function Dt(j,z,K){var ee=j.dom=document.createTextNode(j.children);y(z)||l(z,ee,K)}function Rt(j,z,K,ee,me,ge,Ne){var xe=j.flags,Te=j.props,Fe=j.className,Oe=j.childFlags,We=j.dom=C(j.type,ee=ee||(xe&32)>0),je=j.children;if(!a(Fe)&&Fe!==""&&(ee?We.setAttribute("class",Fe):We.className=Fe),Oe===16)R(We,je);else if(Oe!==1){var Ue=ee&&j.type!=="foreignObject";Oe===2?(je.flags&16384&&(j.children=je=J(je)),Qe(je,We,K,Ue,null,ge,Ne)):(Oe===8||Oe===4)&&dt(je,We,K,Ue,null,ge,Ne)}y(z)||l(z,We,me),y(Te)||Mt(j,xe,Te,We,ee,Ne),st(j.ref,We,ge)}function dt(j,z,K,ee,me,ge,Ne){for(var xe=0;xeUe)&&(We=N(xe[Ue-1],!1).nextSibling)}St(Fe,Oe,xe,Te,K,ee,me,We,j,ge,Ne)}function Vn(j,z,K,ee,me){var ge=j.ref,Ne=z.ref,xe=z.children;if(St(j.childFlags,z.childFlags,j.children,xe,ge,K,!1,null,j,ee,me),z.dom=j.dom,ge!==Ne&&!t(xe)){var Te=xe.dom;v(ge,Te),f(Ne,Te)}}function bn(j,z,K,ee,me,ge,Ne){var xe=z.dom=j.dom,Te=j.props,Fe=z.props,Oe=!1,We=!1,je;if(ee=ee||(me&32)>0,Te!==Fe){var Ue=Te||c;if(je=Fe||c,je!==c){Oe=(me&448)>0,Oe&&(We=Et(je));for(var Ye in je){var ze=Ue[Ye],Je=je[Ye];ze!==Je&&bt(Ye,ze,Je,xe,ee,We,j,Ne)}}if(Ue!==c)for(var Ke in Ue)a(je[Ke])&&!a(Ue[Ke])&&bt(Ke,Ue[Ke],null,xe,ee,We,j,Ne)}var it=z.children,et=z.className;j.className!==et&&(a(et)?xe.removeAttribute("class"):ee?xe.setAttribute("class",et):xe.className=et),me&4096?gn(xe,it):St(j.childFlags,z.childFlags,j.children,it,xe,K,ee&&z.type!=="foreignObject",null,j,ge,Ne),Oe&&wt(me,z,xe,je,!1,We);var ft=z.ref,nt=j.ref;nt!==ft&&(Ct(nt),st(ft,xe,ge))}function yn(j,z,K,ee,me,ge,Ne){ot(j,Ne),dt(z,K,ee,me,N(j,!0),ge,Ne),E(j,K,Ne)}function St(j,z,K,ee,me,ge,Ne,xe,Te,Fe,Oe){switch(j){case 2:switch(z){case 2:rt(K,ee,me,ge,Ne,xe,Fe,Oe);break;case 1:tt(K,me,Oe);break;case 16:ot(K,Oe),R(me,ee);break;default:yn(K,ee,me,ge,Ne,Fe,Oe);break}break;case 1:switch(z){case 2:Qe(ee,me,ge,Ne,xe,Fe,Oe);break;case 1:break;case 16:R(me,ee);break;default:dt(ee,me,ge,Ne,xe,Fe,Oe);break}break;case 16:switch(z){case 16:vn(K,ee,me);break;case 2:vt(me,K,Oe),Qe(ee,me,ge,Ne,xe,Fe,Oe);break;case 1:vt(me,K,Oe);break;default:vt(me,K,Oe),dt(ee,me,ge,Ne,xe,Fe,Oe);break}break;default:switch(z){case 16:mt(K,Oe),R(me,ee);break;case 2:gt(me,Te,K,Oe),Qe(ee,me,ge,Ne,xe,Fe,Oe);break;case 1:gt(me,Te,K,Oe);break;default:var We=K.length|0,je=ee.length|0;We===0?je>0&&dt(ee,me,ge,Ne,xe,Fe,Oe):je===0?gt(me,Te,K,Oe):z===8&&j===8?In(K,ee,me,ge,Ne,We,je,xe,Te,Fe,Oe):Ln(K,ee,me,ge,Ne,We,je,xe,Fe,Oe);break}break}}function Sn(j,z,K,ee,me){me.push(function(){j.componentDidUpdate(z,K,ee)})}function Wt(j,z,K,ee,me,ge,Ne,xe,Te,Fe){var Oe=j.state,We=j.props,je=!!j.$N,Ue=o(j.shouldComponentUpdate);if(je&&(z=O(j,K,z!==Oe?V(Oe,z):z)),Ne||!Ue||Ue&&j.shouldComponentUpdate(K,z,me)){!je&&o(j.componentWillUpdate)&&j.componentWillUpdate(K,z,me),j.props=K,j.state=z,j.context=me;var Ye=null,ze=Pt(j,K,me);je&&o(j.getSnapshotBeforeUpdate)&&(Ye=j.getSnapshotBeforeUpdate(We,Oe)),rt(j.$LI,ze,ee,j.$CX,ge,xe,Te,Fe),j.$LI=ze,o(j.componentDidUpdate)&&Sn(j,We,Oe,Ye,Te)}else j.props=K,j.state=z,j.context=me}function kn(j,z,K,ee,me,ge,Ne,xe){var Te=z.children=j.children;if(!y(Te)){Te.$L=Ne;var Fe=z.props||c,Oe=z.ref,We=j.ref,je=Te.state;if(!Te.$N){if(o(Te.componentWillReceiveProps)){if(Te.$BR=!0,Te.componentWillReceiveProps(Fe,ee),Te.$UN)return;Te.$BR=!1}y(Te.$PS)||(je=V(je,Te.$PS),Te.$PS=null)}Wt(Te,je,Fe,K,ee,me,!1,ge,Ne,xe),We!==Oe&&(Ct(We),st(Oe,Te,Ne))}}function Bn(j,z,K,ee,me,ge,Ne,xe){var Te=!0,Fe=z.props||c,Oe=z.ref,We=j.props,je=!a(Oe),Ue=j.children;if(je&&o(Oe.onComponentShouldUpdate)&&(Te=Oe.onComponentShouldUpdate(We,Fe)),Te!==!1){je&&o(Oe.onComponentWillUpdate)&&Oe.onComponentWillUpdate(We,Fe);var Ye=ye(yt(z,ee));rt(Ue,Ye,K,ee,me,ge,Ne,xe),z.children=Ye,je&&o(Oe.onComponentDidUpdate)&&Oe.onComponentDidUpdate(We,Fe)}else z.children=Ue}function xn(j,z){var K=z.children,ee=z.dom=j.dom;K!==j.children&&(ee.nodeValue=K)}function Ln(j,z,K,ee,me,ge,Ne,xe,Te,Fe){for(var Oe=ge>Ne?Ne:ge,We=0,je,Ue;WeNe)for(We=Oe;WeWe||Ue>je)break e;Ye=j[Ue],ze=z[Ue]}for(Ye=j[We],ze=z[je];Ye.key===ze.key;){if(ze.flags&16384&&(z[je]=ze=J(ze)),rt(Ye,ze,K,ee,me,xe,Fe,Oe),j[We]=ze,We--,je--,Ue>We||Ue>je)break e;Ye=j[We],ze=z[je]}}if(Ue>We){if(Ue<=je)for(Je=je+1,Ke=Jeje)for(;Ue<=We;)tt(j[Ue++],K,Oe);else Tn(j,z,ee,ge,Ne,We,je,Ue,K,me,xe,Te,Fe,Oe)}function Tn(j,z,K,ee,me,ge,Ne,xe,Te,Fe,Oe,We,je,Ue){var Ye,ze,Je=0,Ke=0,it=xe,et=xe,ft=ge-xe+1,nt=Ne-xe+1,pt=new Int32Array(nt+1),ct=ft===ee,Bt=!1,Ze=0,ht=0;if(me<4||(ft|nt)<32)for(Ke=it;Ke<=ge;++Ke)if(Ye=j[Ke],htxe?Bt=!0:Ze=xe,ze.flags&16384&&(z[xe]=ze=J(ze)),rt(Ye,ze,Te,K,Fe,Oe,je,Ue),++ht;break}!ct&&xe>Ne&&tt(Ye,Te,Ue)}else ct||tt(Ye,Te,Ue);else{var Gt={};for(Ke=et;Ke<=Ne;++Ke)Gt[z[Ke].key]=Ke;for(Ke=it;Ke<=ge;++Ke)if(Ye=j[Ke],htit;)tt(j[it++],Te,Ue);pt[xe-et]=Ke+1,Ze>xe?Bt=!0:Ze=xe,ze=z[xe],ze.flags&16384&&(z[xe]=ze=J(ze)),rt(Ye,ze,Te,K,Fe,Oe,je,Ue),++ht}else ct||tt(Ye,Te,Ue);else ct||tt(Ye,Te,Ue)}if(ct)gt(Te,We,j,Ue),dt(z,Te,K,Fe,Oe,je,Ue);else if(Bt){var Xt=wn(pt);for(xe=Xt.length-1,Ke=nt-1;Ke>=0;Ke--)pt[Ke]===0?(Ze=Ke+et,ze=z[Ze],ze.flags&16384&&(z[Ze]=ze=J(ze)),Je=Ze+1,Qe(ze,Te,K,Fe,Je0&&B(Ue.componentWillMove)}else if(ht!==nt)for(Ke=nt-1;Ke>=0;Ke--)pt[Ke]===0&&(Ze=Ke+et,ze=z[Ze],ze.flags&16384&&(z[Ze]=ze=J(ze)),Je=Ze+1,Qe(ze,Te,K,Fe,JeUt&&(Ut=Te,at=new Int32Array(Te),Nt=new Int32Array(Te));K>1,j[at[xe]]0&&(Nt[K]=at[ge-1]),at[ge]=K)}ge=me+1;var Fe=new Int32Array(ge);for(Ne=at[ge-1];ge-- >0;)Fe[ge]=Ne,Ne=Nt[Ne],at[ge]=0;return Fe}var En=typeof document!="undefined";En&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ht(j,z,K,ee){var me=[],ge=new u,Ne=z.$V;M.v=!0,a(Ne)?a(j)||(j.flags&16384&&(j=J(j)),Qe(j,z,ee,!1,null,me,ge),z.$V=j,Ne=j):a(j)?(tt(Ne,z,ge),z.$V=null):(j.flags&16384&&(j=J(j)),rt(Ne,j,z,ee,!1,null,me,ge),Ne=z.$V=j),h(me),x(ge.componentDidAppear),M.v=!1,o(K)&&K(),o(P.renderComplete)&&P.renderComplete(Ne,z)}function zt(j,z,K,ee){K===void 0&&(K=null),ee===void 0&&(ee=c),Ht(j,z,K,ee)}function An(j){return function(){function z(K,ee,me,ge){j||(j=K),zt(ee,j,me,ge)}return z}()}var Vt=[],Mn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(j){window.setTimeout(j,0)},kt=!1;function Kt(j,z,K,ee){var me=j.$PS;if(o(z)&&(z=z(me?V(j.state,me):j.state,j.props,j.context)),a(me))j.$PS=z;else for(var ge in z)me[ge]=z[ge];if(j.$BR)o(K)&&j.$L.push(K.bind(j));else{if(!M.v&&Vt.length===0){Yt(j,ee),o(K)&&K.call(j);return}if(Vt.indexOf(j)===-1&&Vt.push(j),ee&&(j.$F=!0),kt||(kt=!0,Mn($t)),o(K)){var Ne=j.$QU;Ne||(Ne=j.$QU=[]),Ne.push(K)}}}function Pn(j){for(var z=j.$QU,K=0;K=55296&&be<=56319&&ue+1=56320&&Se<=57343)?(be-55296)*1024+Se-56320+65536:be}function J(H){var ue=/^\n* /;return ue.test(H)}var X=1,Q=2,Z=3,te=4,fe=5;function ye(H,ue,be,Se,Ie,Ee,Me,Ae){var De,He=0,Ge=null,Xe=!1,$e=!1,lt=Se!==-1,qe=-1,ut=re(ae(H,0))&&q(ae(H,H.length-1));if(ue||Me)for(De=0;De=65536?De+=2:De++){if(He=ae(H,De),!le(He))return fe;ut=ut&&oe(He,Ge,Ae),Ge=He}else{for(De=0;De=65536?De+=2:De++){if(He=ae(H,De),He===k)Xe=!0,lt&&($e=$e||De-qe-1>Se&&H[qe+1]!==" ",qe=De);else if(!le(He))return fe;ut=ut&&oe(He,Ge,Ae),Ge=He}$e=$e||lt&&De-qe-1>Se&&H[qe+1]!==" "}return!Xe&&!$e?ut&&!Me&&!Ie(H)?X:Ee===U?fe:Q:be>9&&J(H)?fe:Me?Ee===U?fe:Q:$e?te:Z}function pe(H,ue,be,Se,Ie){H.dump=function(){if(ue.length===0)return H.quotingType===U?'""':"''";if(!H.noCompatMode&&(M.indexOf(ue)!==-1||P.test(ue)))return H.quotingType===U?'"'+ue+'"':"'"+ue+"'";var Ee=H.indent*Math.max(1,be),Me=H.lineWidth===-1?-1:Math.max(Math.min(H.lineWidth,40),H.lineWidth-Ee),Ae=Se||H.flowLevel>-1&&be>=H.flowLevel;function De(He){return ne(H,He)}switch(ye(ue,Ae,H.indent,Me,De,H.quotingType,H.forceQuotes&&!Se,Ie)){case X:return ue;case Q:return"'"+ue.replace(/'/g,"''")+"'";case Z:return"|"+Le(ue,H.indent)+D($(ue,Ee));case te:return">"+Le(ue,H.indent)+D($(ie(ue,Me),Ee));case fe:return'"'+Ce(ue,Me)+'"';default:throw new a("impossible error: invalid scalar style")}}()}function Le(H,ue){var be=J(H)?String(ue):"",Se=H[H.length-1]==="\n",Ie=Se&&(H[H.length-2]==="\n"||H==="\n"),Ee=Ie?"+":Se?"":"-";return be+Ee+"\n"}function D(H){return H[H.length-1]==="\n"?H.slice(0,-1):H}function ie(H,ue){for(var be=/(\n+)([^\n]*)/g,Se=function(){var He=H.indexOf("\n");return He=He!==-1?He:H.length,be.lastIndex=He,se(H.slice(0,He),ue)}(),Ie=H[0]==="\n"||H[0]===" ",Ee,Me;Me=be.exec(H);){var Ae=Me[1],De=Me[2];Ee=De[0]===" ",Se+=Ae+(!Ie&&!Ee&&De!==""?"\n":"")+se(De,ue),Ie=Ee}return Se}function se(H,ue){if(H===""||H[0]===" ")return H;for(var be=/ [^ ]/g,Se,Ie=0,Ee,Me=0,Ae=0,De="";Se=be.exec(H);)Ae=Se.index,Ae-Ie>ue&&(Ee=Me>Ie?Me:Ae,De+="\n"+H.slice(Ie,Ee),Ie=Ee+1),Me=Ae;return De+="\n",H.length-Ie>ue&&Me>Ie?De+=H.slice(Ie,Me)+"\n"+H.slice(Me+1):De+=H.slice(Ie),De.slice(1)}function Ce(H){for(var ue="",be=0,Se,Ie=0;Ie=65536?Ie+=2:Ie++)be=ae(H,Ie),Se=O[be],!Se&&le(be)?(ue+=H[Ie],be>=65536&&(ue+=H[Ie+1])):ue+=Se||F(be);return ue}function he(H,ue,be){var Se="",Ie=H.tag,Ee,Me,Ae;for(Ee=0,Me=be.length;Ee1024&&(Ge+="? "),Ge+=H.dump+(H.condenseFlow?'"':"")+":"+(H.condenseFlow?"":" "),_e(H,ue,He,!1,!1)&&(Ge+=H.dump,Se+=Ge));H.tag=Ie,H.dump="{"+Se+"}"}function we(H,ue,be,Se){var Ie="",Ee=H.tag,Me=Object.keys(be),Ae,De,He,Ge,Xe,$e;if(H.sortKeys===!0)Me.sort();else if(typeof H.sortKeys=="function")Me.sort(H.sortKeys);else if(H.sortKeys)throw new a("sortKeys must be a boolean or a function");for(Ae=0,De=Me.length;Ae1024,Xe&&(H.dump&&k===H.dump.charCodeAt(0)?$e+="?":$e+="? "),$e+=H.dump,Xe&&($e+=Y(H,ue)),_e(H,ue+1,Ge,!0,Xe)&&(H.dump&&k===H.dump.charCodeAt(0)?$e+=":":$e+=": ",$e+=H.dump,Ie+=$e));H.tag=Ee,H.dump=Ie||"{}"}function Re(H,ue,be){var Se,Ie,Ee,Me,Ae,De;for(Ie=be?H.explicitTypes:H.implicitTypes,Ee=0,Me=Ie.length;Ee tag resolver accepts not "'+De+'" style');H.dump=Se}return!0}return!1}function _e(H,ue,be,Se,Ie,Ee,Me){H.tag=null,H.dump=be,Re(H,be,!1)||Re(H,be,!0);var Ae=o.call(H.dump),De=Se,He;Se&&(Se=H.flowLevel<0||H.flowLevel>ue);var Ge=Ae==="[object Object]"||Ae==="[object Array]",Xe,$e;if(Ge&&(Xe=H.duplicates.indexOf(be),$e=Xe!==-1),(H.tag!==null&&H.tag!=="?"||$e||H.indent!==2&&ue>0)&&(Ie=!1),$e&&H.usedDuplicates[Xe])H.dump="*ref_"+Xe;else{if(Ge&&$e&&!H.usedDuplicates[Xe]&&(H.usedDuplicates[Xe]=!0),Ae==="[object Object]")Se&&Object.keys(H.dump).length!==0?(we(H,ue,H.dump,Ie),$e&&(H.dump="&ref_"+Xe+H.dump)):(Be(H,ue,H.dump),$e&&(H.dump="&ref_"+Xe+" "+H.dump));else if(Ae==="[object Array]")Se&&H.dump.length!==0?(H.noArrayIndent&&!Me&&ue>0?ve(H,ue-1,H.dump,Ie):ve(H,ue,H.dump,Ie),$e&&(H.dump="&ref_"+Xe+H.dump)):(he(H,ue,H.dump),$e&&(H.dump="&ref_"+Xe+" "+H.dump));else if(Ae==="[object String]")H.tag!=="?"&&pe(H,H.dump,ue,Ee,De);else{if(Ae==="[object Undefined]")return!1;if(H.skipInvalid)return!1;throw new a("unacceptable kind of an object to dump "+Ae)}H.tag!==null&&H.tag!=="?"&&(He=encodeURI(H.tag[0]==="!"?H.tag.slice(1):H.tag).replace(/!/g,"%21"),H.tag[0]==="!"?He="!"+He:He.slice(0,18)==="tag:yaml.org,2002:"?He="!!"+He.slice(18):He="!<"+He+">",H.dump=He+" "+H.dump)}return!0}function Pe(H,ue){var be=[],Se=[],Ie,Ee;for(Ve(H,be,Se),Ie=0,Ee=Se.length;Ie>10)+55296,(D-65536&1023)+56320)}for(var E=new Array(256),w=new Array(256),A=0;A<256;A++)E[A]=L(A)?1:0,w[A]=L(A);function O(D,ie){this.input=D,this.filename=ie.filename||null,this.schema=ie.schema||o,this.onWarning=ie.onWarning||null,this.legacy=ie.legacy||!1,this.json=ie.json||!1,this.listener=ie.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=D.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function M(D,ie){var se={name:D.filename,buffer:D.input.slice(0,-1),position:D.position,line:D.line,column:D.position-D.lineStart};return se.snippet=t(se),new a(ie,se)}function P(D,ie){throw M(D,ie)}function R(D,ie){D.onWarning&&D.onWarning.call(null,M(D,ie))}var F={YAML:function(){function D(ie,se,Ce){var he,ve,Be;ie.version!==null&&P(ie,"duplication of %YAML directive"),Ce.length!==1&&P(ie,"YAML directive accepts exactly one argument"),he=/^([0-9]+)\.([0-9]+)$/.exec(Ce[0]),he===null&&P(ie,"ill-formed argument of the YAML directive"),ve=parseInt(he[1],10),Be=parseInt(he[2],10),ve!==1&&P(ie,"unacceptable YAML version of the document"),ie.version=Ce[0],ie.checkLineBreaks=Be<2,Be!==1&&Be!==2&&R(ie,"unsupported YAML version of the document")}return D}(),TAG:function(){function D(ie,se,Ce){var he,ve;Ce.length!==2&&P(ie,"TAG directive accepts exactly two arguments"),he=Ce[0],ve=Ce[1],f.test(he)||P(ie,"ill-formed tag handle (first argument) of the TAG directive"),m.call(ie.tagMap,he)&&P(ie,'there is a previously declared suffix for "'+he+'" tag handle'),l.test(ve)||P(ie,"ill-formed tag prefix (second argument) of the TAG directive");try{ve=decodeURIComponent(ve)}catch(Be){P(ie,"tag prefix is malformed: "+ve)}ie.tagMap[he]=ve}return D}()};function _(D,ie,se,Ce){var he,ve,Be,we;if(ie1&&(D.result+=e.repeat("\n",ie-1))}function le(D,ie,se){var Ce,he,ve,Be,we,Re,_e,Pe,Ve=D.kind,ke=D.result,H;if(H=D.input.charCodeAt(D.position),h(H)||g(H)||H===35||H===38||H===42||H===33||H===124||H===62||H===39||H===34||H===37||H===64||H===96||(H===63||H===45)&&(he=D.input.charCodeAt(D.position+1),h(he)||se&&g(he)))return!1;for(D.kind="scalar",D.result="",ve=Be=D.position,we=!1;H!==0;){if(H===58){if(he=D.input.charCodeAt(D.position+1),h(he)||se&&g(he))break}else if(H===35){if(Ce=D.input.charCodeAt(D.position-1),h(Ce))break}else{if(D.position===D.lineStart&&ne(D)||se&&g(H))break;if(b(H))if(Re=D.line,_e=D.lineStart,Pe=D.lineIndent,Y(D,!1,-1),D.lineIndent>=ie){we=!0,H=D.input.charCodeAt(D.position);continue}else{D.position=Be,D.line=Re,D.lineStart=_e,D.lineIndent=Pe;break}}we&&(_(D,ve,Be,!1),G(D,D.line-Re),ve=Be=D.position,we=!1),v(H)||(Be=D.position+1),H=D.input.charCodeAt(++D.position)}return _(D,ve,Be,!1),D.result?!0:(D.kind=Ve,D.result=ke,!1)}function de(D,ie){var se,Ce,he;if(se=D.input.charCodeAt(D.position),se!==39)return!1;for(D.kind="scalar",D.result="",D.position++,Ce=he=D.position;(se=D.input.charCodeAt(D.position))!==0;)if(se===39)if(_(D,Ce,D.position,!0),se=D.input.charCodeAt(++D.position),se===39)Ce=D.position,D.position++,he=D.position;else return!0;else b(se)?(_(D,Ce,he,!0),G(D,Y(D,!1,ie)),Ce=he=D.position):D.position===D.lineStart&&ne(D)?P(D,"unexpected end of the document within a single quoted scalar"):(D.position++,he=D.position);P(D,"unexpected end of the stream within a single quoted scalar")}function oe(D,ie){var se,Ce,he,ve,Be,we;if(we=D.input.charCodeAt(D.position),we!==34)return!1;for(D.kind="scalar",D.result="",D.position++,se=Ce=D.position;(we=D.input.charCodeAt(D.position))!==0;){if(we===34)return _(D,se,D.position,!0),D.position++,!0;if(we===92){if(_(D,se,D.position,!0),we=D.input.charCodeAt(++D.position),b(we))Y(D,!1,ie);else if(we<256&&E[we])D.result+=w[we],D.position++;else if((Be=x(we))>0){for(he=Be,ve=0;he>0;he--)we=D.input.charCodeAt(++D.position),(Be=N(we))>=0?ve=(ve<<4)+Be:P(D,"expected hexadecimal character");D.result+=T(ve),D.position++}else P(D,"unknown escape sequence");se=Ce=D.position}else b(we)?(_(D,se,Ce,!0),G(D,Y(D,!1,ie)),se=Ce=D.position):D.position===D.lineStart&&ne(D)?P(D,"unexpected end of the document within a double quoted scalar"):(D.position++,Ce=D.position)}P(D,"unexpected end of the stream within a double quoted scalar")}function re(D,ie){var se=!0,Ce,he,ve,Be=D.tag,we,Re=D.anchor,_e,Pe,Ve,ke,H,ue=Object.create(null),be,Se,Ie,Ee;if(Ee=D.input.charCodeAt(D.position),Ee===91)Pe=93,H=!1,we=[];else if(Ee===123)Pe=125,H=!0,we={};else return!1;for(D.anchor!==null&&(D.anchorMap[D.anchor]=we),Ee=D.input.charCodeAt(++D.position);Ee!==0;){if(Y(D,!0,ie),Ee=D.input.charCodeAt(D.position),Ee===Pe)return D.position++,D.tag=Be,D.anchor=Re,D.kind=H?"mapping":"sequence",D.result=we,!0;se?Ee===44&&P(D,"expected the node content, but found ','"):P(D,"missed comma between flow collection entries"),Se=be=Ie=null,Ve=ke=!1,Ee===63&&(_e=D.input.charCodeAt(D.position+1),h(_e)&&(Ve=ke=!0,D.position++,Y(D,!0,ie))),Ce=D.line,he=D.lineStart,ve=D.position,te(D,ie,S,!1,!0),Se=D.tag,be=D.result,Y(D,!0,ie),Ee=D.input.charCodeAt(D.position),(ke||D.line===Ce)&&Ee===58&&(Ve=!0,Ee=D.input.charCodeAt(++D.position),Y(D,!0,ie),te(D,ie,S,!1,!0),Ie=D.result),H?W(D,we,ue,Se,be,Ie,Ce,he,ve):Ve?we.push(W(D,null,ue,Se,be,Ie,Ce,he,ve)):we.push(be),Y(D,!0,ie),Ee=D.input.charCodeAt(D.position),Ee===44?(se=!0,Ee=D.input.charCodeAt(++D.position)):se=!1}P(D,"unexpected end of the stream within a flow collection")}function q(D,ie){var se,Ce,he=p,ve=!1,Be=!1,we=ie,Re=0,_e=!1,Pe,Ve;if(Ve=D.input.charCodeAt(D.position),Ve===124)Ce=!1;else if(Ve===62)Ce=!0;else return!1;for(D.kind="scalar",D.result="";Ve!==0;)if(Ve=D.input.charCodeAt(++D.position),Ve===43||Ve===45)p===he?he=Ve===43?c:i:P(D,"repeat of a chomping mode identifier");else if((Pe=B(Ve))>=0)Pe===0?P(D,"bad explicit indentation width of a block scalar; it cannot be less than one"):Be?P(D,"repeat of an indentation width identifier"):(we=ie+Pe-1,Be=!0);else break;if(v(Ve)){do Ve=D.input.charCodeAt(++D.position);while(v(Ve));if(Ve===35)do Ve=D.input.charCodeAt(++D.position);while(!b(Ve)&&Ve!==0)}for(;Ve!==0;){for($(D),D.lineIndent=0,Ve=D.input.charCodeAt(D.position);(!Be||D.lineIndentwe&&(we=D.lineIndent),b(Ve)){Re++;continue}if(D.lineIndentie)&&Re!==0)P(D,"bad indentation of a sequence entry");else if(D.lineIndentie)&&(Se&&(Be=D.line,we=D.lineStart,Re=D.position),te(D,ie,V,!0,he)&&(Se?ue=D.result:be=D.result),Se||(W(D,Ve,ke,H,ue,be,Be,we,Re),H=ue=be=null),Y(D,!0,-1),Ee=D.input.charCodeAt(D.position)),(D.line===ve||D.lineIndent>ie)&&Ee!==0)P(D,"bad indentation of a mapping entry");else if(D.lineIndentie?Re=1:D.lineIndent===ie?Re=0:D.lineIndentie?Re=1:D.lineIndent===ie?Re=0:D.lineIndent tag; it should be "scalar", not "'+D.kind+'"'),Ve=0,ke=D.implicitTypes.length;Ve"),D.result!==null&&ue.kind!==D.kind&&P(D,"unacceptable node kind for !<"+D.tag+'> tag; it should be "'+ue.kind+'", not "'+D.kind+'"'),ue.resolve(D.result,D.tag)?(D.result=ue.construct(D.result,D.tag),D.anchor!==null&&(D.anchorMap[D.anchor]=D.result)):P(D,"cannot resolve a node with !<"+D.tag+"> explicit tag")}return D.listener!==null&&D.listener("close",D),D.tag!==null||D.anchor!==null||Pe}function fe(D){var ie=D.position,se,Ce,he,ve=!1,Be;for(D.version=null,D.checkLineBreaks=D.legacy,D.tagMap=Object.create(null),D.anchorMap=Object.create(null);(Be=D.input.charCodeAt(D.position))!==0&&(Y(D,!0,-1),Be=D.input.charCodeAt(D.position),!(D.lineIndent>0||Be!==37));){for(ve=!0,Be=D.input.charCodeAt(++D.position),se=D.position;Be!==0&&!h(Be);)Be=D.input.charCodeAt(++D.position);for(Ce=D.input.slice(se,D.position),he=[],Ce.length<1&&P(D,"directive name must not be less than one character in length");Be!==0;){for(;v(Be);)Be=D.input.charCodeAt(++D.position);if(Be===35){do Be=D.input.charCodeAt(++D.position);while(Be!==0&&!b(Be));break}if(b(Be))break;for(se=D.position;Be!==0&&!h(Be);)Be=D.input.charCodeAt(++D.position);he.push(D.input.slice(se,D.position))}Be!==0&&$(D),m.call(F,Ce)?F[Ce](D,Ce,he):R(D,'unknown document directive "'+Ce+'"')}if(Y(D,!0,-1),D.lineIndent===0&&D.input.charCodeAt(D.position)===45&&D.input.charCodeAt(D.position+1)===45&&D.input.charCodeAt(D.position+2)===45?(D.position+=3,Y(D,!0,-1)):ve&&P(D,"directives end mark is expected"),te(D,D.lineIndent-1,V,!1,!0),Y(D,!0,-1),D.checkLineBreaks&&u.test(D.input.slice(ie,D.position))&&R(D,"non-ASCII line breaks are interpreted as content"),D.documents.push(D.result),D.position===D.lineStart&&ne(D)){D.input.charCodeAt(D.position)===46&&(D.position+=3,Y(D,!0,-1));return}if(D.positionc&&(p=" ... ",S=k-c+p.length),y-k>c&&(i=" ...",y=k+c-i.length),{str:p+m.slice(S,y).replace(/\t/g,"\u2192")+i,pos:k-S+p.length}}function t(m,S){return e.repeat(" ",S-m.length)+m}function o(m,S){if(S=Object.create(S||null),!m.buffer)return null;S.maxLength||(S.maxLength=79),typeof S.indent!="number"&&(S.indent=1),typeof S.linesBefore!="number"&&(S.linesBefore=3),typeof S.linesAfter!="number"&&(S.linesAfter=2);for(var y=/\r?\n|\r|\0/g,k=[0],V=[],p,i=-1;p=y.exec(m.buffer);)V.push(p.index),k.push(p.index+p[0].length),m.position<=p.index&&i<0&&(i=k.length-2);i<0&&(i=k.length-1);var c="",s,u,d=Math.min(m.line+S.linesAfter,V.length).toString().length,f=S.maxLength-(S.indent+d+3);for(s=1;s<=S.linesBefore&&!(i-s<0);s++)u=a(m.buffer,k[i-s],V[i-s],m.position-(k[i]-k[i-s]),f),c=e.repeat(" ",S.indent)+t((m.line-s+1).toString(),d)+" | "+u.str+"\n"+c;for(u=a(m.buffer,k[i],V[i],m.position,f),c+=e.repeat(" ",S.indent)+t((m.line+1).toString(),d)+" | "+u.str+"\n",c+=e.repeat("-",S.indent+d+3+u.pos)+"^\n",s=1;s<=S.linesAfter&&!(i+s>=V.length);s++)u=a(m.buffer,k[i+s],V[i+s],m.position-(k[i]-k[i+s]),f),c+=e.repeat(" ",S.indent)+t((m.line+s+1).toString(),d)+" | "+u.str+"\n";return c.replace(/\n$/,"")}I.exports=o},92276:function(I,r,n){"use strict";var e=n(53127),a=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],t=["scalar","sequence","mapping"];function o(S){var y={};return S!==null&&Object.keys(S).forEach(function(k){S[k].forEach(function(V){y[String(V)]=k})}),y}function m(S,y){if(y=y||{},Object.keys(y).forEach(function(k){if(a.indexOf(k)===-1)throw new e('Unknown option "'+k+'" is met in definition of "'+S+'" YAML type.')}),this.options=y,this.tag=S,this.kind=y.kind||null,this.resolve=y.resolve||function(){return!0},this.construct=y.construct||function(k){return k},this.instanceOf=y.instanceOf||null,this.predicate=y.predicate||null,this.represent=y.represent||null,this.representName=y.representName||null,this.defaultStyle=y.defaultStyle||null,this.multi=y.multi||!1,this.styleAliases=o(y.styleAliases||null),t.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+S+'" YAML type.')}I.exports=m},92806:function(I,r,n){"use strict";var e=n(92276),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function t(y){if(y===null)return!1;var k,V,p=0,i=y.length,c=a;for(V=0;V64)){if(k<0)return!1;p+=6}return p%8===0}function o(y){var k,V,p=y.replace(/[\r\n=]/g,""),i=p.length,c=a,s=0,u=[];for(k=0;k>16&255),u.push(s>>8&255),u.push(s&255)),s=s<<6|c.indexOf(p.charAt(k));return V=i%4*6,V===0?(u.push(s>>16&255),u.push(s>>8&255),u.push(s&255)):V===18?(u.push(s>>10&255),u.push(s>>2&255)):V===12&&u.push(s>>4&255),new Uint8Array(u)}function m(y){var k="",V=0,p,i,c=y.length,s=a;for(p=0;p>18&63],k+=s[V>>12&63],k+=s[V>>6&63],k+=s[V&63]),V=(V<<8)+y[p];return i=c%3,i===0?(k+=s[V>>18&63],k+=s[V>>12&63],k+=s[V>>6&63],k+=s[V&63]):i===2?(k+=s[V>>10&63],k+=s[V>>4&63],k+=s[V<<2&63],k+=s[64]):i===1&&(k+=s[V>>2&63],k+=s[V<<4&63],k+=s[64],k+=s[64]),k}function S(y){return Object.prototype.toString.call(y)==="[object Uint8Array]"}I.exports=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:t,construct:o,predicate:S,represent:m})},34015:function(I,r,n){"use strict";var e=n(92276);function a(m){if(m===null)return!1;var S=m.length;return S===4&&(m==="true"||m==="True"||m==="TRUE")||S===5&&(m==="false"||m==="False"||m==="FALSE")}function t(m){return m==="true"||m==="True"||m==="TRUE"}function o(m){return Object.prototype.toString.call(m)==="[object Boolean]"}I.exports=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:a,construct:t,predicate:o,represent:{lowercase:function(){function m(S){return S?"true":"false"}return m}(),uppercase:function(){function m(S){return S?"TRUE":"FALSE"}return m}(),camelcase:function(){function m(S){return S?"True":"False"}return m}()},defaultStyle:"lowercase"})},14589:function(I,r,n){"use strict";var e=n(11017),a=n(92276),t=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function o(V){return!(V===null||!t.test(V)||V[V.length-1]==="_")}function m(V){var p,i;return p=V.replace(/_/g,"").toLowerCase(),i=p[0]==="-"?-1:1,"+-".indexOf(p[0])>=0&&(p=p.slice(1)),p===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:p===".nan"?NaN:i*parseFloat(p,10)}var S=/^[-+]?[0-9]+e/;function y(V,p){var i;if(isNaN(V))switch(p){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===V)switch(p){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===V)switch(p){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(V))return"-0.0";return i=V.toString(10),S.test(i)?i.replace("e",".e"):i}function k(V){return Object.prototype.toString.call(V)==="[object Number]"&&(V%1!==0||e.isNegativeZero(V))}I.exports=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:o,construct:m,predicate:k,represent:y,defaultStyle:"lowercase"})},72826:function(I,r,n){"use strict";var e=n(11017),a=n(92276);function t(V){return 48<=V&&V<=57||65<=V&&V<=70||97<=V&&V<=102}function o(V){return 48<=V&&V<=55}function m(V){return 48<=V&&V<=57}function S(V){if(V===null)return!1;var p=V.length,i=0,c=!1,s;if(!p)return!1;if(s=V[i],(s==="-"||s==="+")&&(s=V[++i]),s==="0"){if(i+1===p)return!0;if(s=V[++i],s==="b"){for(i++;i=0?"0b"+p.toString(2):"-0b"+p.toString(2).slice(1)}return V}(),octal:function(){function V(p){return p>=0?"0o"+p.toString(8):"-0o"+p.toString(8).slice(1)}return V}(),decimal:function(){function V(p){return p.toString(10)}return V}(),hexadecimal:function(){function V(p){return p>=0?"0x"+p.toString(16).toUpperCase():"-0x"+p.toString(16).toUpperCase().slice(1)}return V}()},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},89769:function(I,r,n){"use strict";var e=n(92276);I.exports=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(){function a(t){return t!==null?t:{}}return a}()})},36947:function(I,r,n){"use strict";var e=n(92276);function a(t){return t==="<<"||t===null}I.exports=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:a})},30534:function(I,r,n){"use strict";var e=n(92276);function a(m){if(m===null)return!0;var S=m.length;return S===1&&m==="~"||S===4&&(m==="null"||m==="Null"||m==="NULL")}function t(){return null}function o(m){return m===null}I.exports=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:a,construct:t,predicate:o,represent:{canonical:function(){function m(){return"~"}return m}(),lowercase:function(){function m(){return"null"}return m}(),uppercase:function(){function m(){return"NULL"}return m}(),camelcase:function(){function m(){return"Null"}return m}(),empty:function(){function m(){return""}return m}()},defaultStyle:"lowercase"})},14250:function(I,r,n){"use strict";var e=n(92276),a=Object.prototype.hasOwnProperty,t=Object.prototype.toString;function o(S){if(S===null)return!0;var y=[],k,V,p,i,c,s=S;for(k=0,V=s.length;k=0;--U){var W=this.tryEntries[U],$=W.completion;if(W.tryLoc==="root")return _("end");if(W.tryLoc<=this.prev){var Y=a.call(W,"catchLoc"),ne=a.call(W,"finallyLoc");if(Y&&ne){if(this.prev=0;--_){var U=this.tryEntries[_];if(U.tryLoc<=this.prev&&a.call(U,"finallyLoc")&&this.prev=0;--F){var _=this.tryEntries[F];if(_.finallyLoc===R)return this.complete(_.completion,_.afterLoc),w(_),f}}return P}(),catch:function(){function P(R){for(var F=this.tryEntries.length-1;F>=0;--F){var _=this.tryEntries[F];if(_.tryLoc===R){var U=_.completion;if(U.type==="throw"){var W=U.arg;w(_)}return W}}throw new Error("illegal catch attempt")}return P}(),delegateYield:function(){function P(R,F,_){return this.delegate={iterator:O(R),resultName:F,nextLoc:_},this.method==="next"&&(this.arg=o),f}return P}()},n}(I.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},30236:function(){"use strict";self.fetch||(self.fetch=function(I,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},m=function(){function y(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function k(){return Promise.resolve(a.responseText)}return k}(),json:function(){function k(){return Promise.resolve(a.responseText).then(JSON.parse)}return k}(),blob:function(){function k(){return Promise.resolve(new Blob([a.response]))}return k}(),clone:y,headers:{keys:function(){function k(){return t}return k}(),entries:function(){function k(){return t.map(function(V){return[V,a.getResponseHeader(V)]})}return k}(),get:function(){function k(V){return a.getResponseHeader(V)}return k}(),has:function(){function k(V){return a.getResponseHeader(V)!=null}return k}()}}}return y}();for(var S in a.open(r.method||"get",I,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(y,k){o[k]||t.push(o[k]=k)}),n(m())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(S,r.headers[S]);a.send(r.body||null)})})},88510:function(I,r){"use strict";r.__esModule=!0,r.zipWith=r.zip=r.uniqBy=r.uniq=r.toKeyedArray=r.toArray=r.sortBy=r.sort=r.reduce=r.range=r.map=r.filterMap=r.filter=void 0;function n(l,C){var b=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(b)return(b=b.call(l)).next.bind(b);if(Array.isArray(l)||(b=e(l))||C&&l&&typeof l.length=="number"){b&&(l=b);var v=0;return function(){return v>=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.")}function e(l,C){if(l){if(typeof l=="string")return a(l,C);var b={}.toString.call(l).slice(8,-1);return b==="Object"&&l.constructor&&(b=l.constructor.name),b==="Map"||b==="Set"?Array.from(l):b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?a(l,C):void 0}}function a(l,C){(C==null||C>l.length)&&(C=l.length);for(var b=0,v=Array(C);bB)return 1}return 0},V=r.sortBy=function(){function u(){for(var C=arguments.length,b=new Array(C),v=0;vB)return 1}return 0},V=r.sortBy=function(){function l(){for(var C=arguments.length,b=new Array(C),v=0;v=1-n)return _[U-1];var $=W%1,G=W|0;return M.lerp(_[G],_[G+1],$)}return R}(),M}(),a=function(P,R,F){return R===void 0&&(R=0),F===void 0&&(F=Math.pow(10,R)),Math.round(F*P)/F},t={grad:360/400,turn:360,rad:360/(Math.PI*2)},o=r.hexToHsva=function(){function M(P){return B(m(P))}return M}(),m=r.hexToRgba=function(){function M(P){return P[0]==="#"&&(P=P.substring(1)),P.length<6?{r:parseInt(P[0]+P[0],16),g:parseInt(P[1]+P[1],16),b:parseInt(P[2]+P[2],16),a:P.length===4?a(parseInt(P[3]+P[3],16)/255,2):1}:{r:parseInt(P.substring(0,2),16),g:parseInt(P.substring(2,4),16),b:parseInt(P.substring(4,6),16),a:P.length===8?a(parseInt(P.substring(6,8),16)/255,2):1}}return M}(),S=r.parseHue=function(){function M(P,R){return R===void 0&&(R="deg"),Number(P)*(t[R]||1)}return M}(),y=r.hslaStringToHsva=function(){function M(P){var R=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,F=R.exec(P);return F?V({h:S(F[1],F[2]),s:Number(F[3]),l:Number(F[4]),a:F[5]===void 0?1:Number(F[5])/(F[6]?100:1)}):{h:0,s:0,v:0,a:1}}return M}(),k=r.hslStringToHsva=y,V=r.hslaToHsva=function(){function M(P){var R=P.h,F=P.s,_=P.l,U=P.a;return F*=(_<50?_:100-_)/100,{h:R,s:F>0?2*F/(_+F)*100:0,v:_+F,a:U}}return M}(),p=r.hsvaToHex=function(){function M(P){return x(f(P))}return M}(),i=r.hsvaToHsla=function(){function M(P){var R=P.h,F=P.s,_=P.v,U=P.a,W=(200-F)*_/100;return{h:a(R),s:a(W>0&&W<200?F*_/100/(W<=100?W:200-W)*100:0),l:a(W/2),a:a(U,2)}}return M}(),c=r.hsvaToHslString=function(){function M(P){var R=i(P),F=R.h,_=R.s,U=R.l;return"hsl("+F+", "+_+"%, "+U+"%)"}return M}(),s=r.hsvaToHsvString=function(){function M(P){var R=L(P),F=R.h,_=R.s,U=R.v;return"hsv("+F+", "+_+"%, "+U+"%)"}return M}(),l=r.hsvaToHsvaString=function(){function M(P){var R=L(P),F=R.h,_=R.s,U=R.v,W=R.a;return"hsva("+F+", "+_+"%, "+U+"%, "+W+")"}return M}(),d=r.hsvaToHslaString=function(){function M(P){var R=i(P),F=R.h,_=R.s,U=R.l,W=R.a;return"hsla("+F+", "+_+"%, "+U+"%, "+W+")"}return M}(),f=r.hsvaToRgba=function(){function M(P){var R=P.h,F=P.s,_=P.v,U=P.a;R=R/360*6,F=F/100,_=_/100;var W=Math.floor(R),$=_*(1-F),G=_*(1-(R-W)*F),oe=_*(1-(1-R+W)*F),X=W%6;return{r:[_,G,$,$,oe,_][X]*255,g:[oe,_,_,G,$,$][X]*255,b:[$,$,oe,_,_,G][X]*255,a:a(U,2)}}return M}(),u=r.hsvaToRgbString=function(){function M(P){var R=f(P),F=R.r,_=R.g,U=R.b;return"rgb("+a(F)+", "+a(_)+", "+a(U)+")"}return M}(),C=r.hsvaToRgbaString=function(){function M(P){var R=f(P),F=R.r,_=R.g,U=R.b,W=R.a;return"rgba("+a(F)+", "+a(_)+", "+a(U)+", "+a(W,2)+")"}return M}(),b=r.hsvaStringToHsva=function(){function M(P){var R=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,F=R.exec(P);return F?L({h:S(F[1],F[2]),s:Number(F[3]),v:Number(F[4]),a:F[5]===void 0?1:Number(F[5])/(F[6]?100:1)}):{h:0,s:0,v:0,a:1}}return M}(),v=r.hsvStringToHsva=b,h=r.rgbaStringToHsva=function(){function M(P){var R=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,F=R.exec(P);return F?B({r:Number(F[1])/(F[2]?100/255:1),g:Number(F[3])/(F[4]?100/255:1),b:Number(F[5])/(F[6]?100/255:1),a:F[7]===void 0?1:Number(F[7])/(F[8]?100:1)}):{h:0,s:0,v:0,a:1}}return M}(),g=r.rgbStringToHsva=h,N=function(P){var R=P.toString(16);return R.length<2?"0"+R:R},x=r.rgbaToHex=function(){function M(P){var R=P.r,F=P.g,_=P.b,U=P.a,W=U<1?N(a(U*255)):"";return"#"+N(a(R))+N(a(F))+N(a(_))+W}return M}(),B=r.rgbaToHsva=function(){function M(P){var R=P.r,F=P.g,_=P.b,U=P.a,W=Math.max(R,F,_),$=W-Math.min(R,F,_),G=$?W===R?(F-_)/$:W===F?2+(_-R)/$:4+(R-F)/$:0;return{h:60*(G<0?G+6:G),s:W?$/W*100:0,v:W/255*100,a:U}}return M}(),L=r.roundHsva=function(){function M(P){return{h:a(P.h),s:a(P.s),v:a(P.v),a:a(P.a,2)}}return M}(),T=r.rgbaToRgb=function(){function M(P){var R=P.r,F=P.g,_=P.b;return{r:R,g:F,b:_}}return M}(),E=r.hslaToHsl=function(){function M(P){var R=P.h,F=P.s,_=P.l;return{h:R,s:F,l:_}}return M}(),w=r.hsvaToHsv=function(){function M(P){var R=L(P),F=R.h,_=R.s,U=R.v;return{h:F,s:_,v:U}}return M}(),A=/^#?([0-9A-F]{3,8})$/i,O=r.validHex=function(){function M(P,R){var F=A.exec(P),_=F?F[1].length:0;return _===3||_===6||!!R&&_===4||!!R&&_===8}return M}()},92868:function(I,r){"use strict";r.__esModule=!0,r.EventEmitter=void 0;/** + */var n=1e-4,e=r.Color=function(){function M(R,F,_,U){R===void 0&&(R=0),F===void 0&&(F=0),_===void 0&&(_=0),U===void 0&&(U=1),this.r=void 0,this.g=void 0,this.b=void 0,this.a=void 0,this.r=R,this.g=F,this.b=_,this.a=U}var P=M.prototype;return P.toString=function(){function R(){return"rgba("+(this.r|0)+", "+(this.g|0)+", "+(this.b|0)+", "+(this.a|0)+")"}return R}(),M.fromHex=function(){function R(F){return new M(parseInt(F.substr(1,2),16),parseInt(F.substr(3,2),16),parseInt(F.substr(5,2),16))}return R}(),M.lerp=function(){function R(F,_,U){return new M((_.r-F.r)*U+F.r,(_.g-F.g)*U+F.g,(_.b-F.b)*U+F.b,(_.a-F.a)*U+F.a)}return R}(),M.lookup=function(){function R(F,_){_===void 0&&(_=[]);var U=_.length;if(U<2)throw new Error("Needs at least two colors!");var W=F*(U-1);if(F=1-n)return _[U-1];var $=W%1,Y=W|0;return M.lerp(_[Y],_[Y+1],$)}return R}(),M}(),a=function(P,R,F){return R===void 0&&(R=0),F===void 0&&(F=Math.pow(10,R)),Math.round(F*P)/F},t={grad:360/400,turn:360,rad:360/(Math.PI*2)},o=r.hexToHsva=function(){function M(P){return B(m(P))}return M}(),m=r.hexToRgba=function(){function M(P){return P[0]==="#"&&(P=P.substring(1)),P.length<6?{r:parseInt(P[0]+P[0],16),g:parseInt(P[1]+P[1],16),b:parseInt(P[2]+P[2],16),a:P.length===4?a(parseInt(P[3]+P[3],16)/255,2):1}:{r:parseInt(P.substring(0,2),16),g:parseInt(P.substring(2,4),16),b:parseInt(P.substring(4,6),16),a:P.length===8?a(parseInt(P.substring(6,8),16)/255,2):1}}return M}(),S=r.parseHue=function(){function M(P,R){return R===void 0&&(R="deg"),Number(P)*(t[R]||1)}return M}(),y=r.hslaStringToHsva=function(){function M(P){var R=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,F=R.exec(P);return F?V({h:S(F[1],F[2]),s:Number(F[3]),l:Number(F[4]),a:F[5]===void 0?1:Number(F[5])/(F[6]?100:1)}):{h:0,s:0,v:0,a:1}}return M}(),k=r.hslStringToHsva=y,V=r.hslaToHsva=function(){function M(P){var R=P.h,F=P.s,_=P.l,U=P.a;return F*=(_<50?_:100-_)/100,{h:R,s:F>0?2*F/(_+F)*100:0,v:_+F,a:U}}return M}(),p=r.hsvaToHex=function(){function M(P){return x(f(P))}return M}(),i=r.hsvaToHsla=function(){function M(P){var R=P.h,F=P.s,_=P.v,U=P.a,W=(200-F)*_/100;return{h:a(R),s:a(W>0&&W<200?F*_/100/(W<=100?W:200-W)*100:0),l:a(W/2),a:a(U,2)}}return M}(),c=r.hsvaToHslString=function(){function M(P){var R=i(P),F=R.h,_=R.s,U=R.l;return"hsl("+F+", "+_+"%, "+U+"%)"}return M}(),s=r.hsvaToHsvString=function(){function M(P){var R=L(P),F=R.h,_=R.s,U=R.v;return"hsv("+F+", "+_+"%, "+U+"%)"}return M}(),u=r.hsvaToHsvaString=function(){function M(P){var R=L(P),F=R.h,_=R.s,U=R.v,W=R.a;return"hsva("+F+", "+_+"%, "+U+"%, "+W+")"}return M}(),d=r.hsvaToHslaString=function(){function M(P){var R=i(P),F=R.h,_=R.s,U=R.l,W=R.a;return"hsla("+F+", "+_+"%, "+U+"%, "+W+")"}return M}(),f=r.hsvaToRgba=function(){function M(P){var R=P.h,F=P.s,_=P.v,U=P.a;R=R/360*6,F=F/100,_=_/100;var W=Math.floor(R),$=_*(1-F),Y=_*(1-(R-W)*F),ne=_*(1-(1-R+W)*F),G=W%6;return{r:[_,Y,$,$,ne,_][G]*255,g:[ne,_,_,Y,$,$][G]*255,b:[$,$,ne,_,_,Y][G]*255,a:a(U,2)}}return M}(),l=r.hsvaToRgbString=function(){function M(P){var R=f(P),F=R.r,_=R.g,U=R.b;return"rgb("+a(F)+", "+a(_)+", "+a(U)+")"}return M}(),C=r.hsvaToRgbaString=function(){function M(P){var R=f(P),F=R.r,_=R.g,U=R.b,W=R.a;return"rgba("+a(F)+", "+a(_)+", "+a(U)+", "+a(W,2)+")"}return M}(),b=r.hsvaStringToHsva=function(){function M(P){var R=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,F=R.exec(P);return F?L({h:S(F[1],F[2]),s:Number(F[3]),v:Number(F[4]),a:F[5]===void 0?1:Number(F[5])/(F[6]?100:1)}):{h:0,s:0,v:0,a:1}}return M}(),v=r.hsvStringToHsva=b,h=r.rgbaStringToHsva=function(){function M(P){var R=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,F=R.exec(P);return F?B({r:Number(F[1])/(F[2]?100/255:1),g:Number(F[3])/(F[4]?100/255:1),b:Number(F[5])/(F[6]?100/255:1),a:F[7]===void 0?1:Number(F[7])/(F[8]?100:1)}):{h:0,s:0,v:0,a:1}}return M}(),g=r.rgbStringToHsva=h,N=function(P){var R=P.toString(16);return R.length<2?"0"+R:R},x=r.rgbaToHex=function(){function M(P){var R=P.r,F=P.g,_=P.b,U=P.a,W=U<1?N(a(U*255)):"";return"#"+N(a(R))+N(a(F))+N(a(_))+W}return M}(),B=r.rgbaToHsva=function(){function M(P){var R=P.r,F=P.g,_=P.b,U=P.a,W=Math.max(R,F,_),$=W-Math.min(R,F,_),Y=$?W===R?(F-_)/$:W===F?2+(_-R)/$:4+(R-F)/$:0;return{h:60*(Y<0?Y+6:Y),s:W?$/W*100:0,v:W/255*100,a:U}}return M}(),L=r.roundHsva=function(){function M(P){return{h:a(P.h),s:a(P.s),v:a(P.v),a:a(P.a,2)}}return M}(),T=r.rgbaToRgb=function(){function M(P){var R=P.r,F=P.g,_=P.b;return{r:R,g:F,b:_}}return M}(),E=r.hslaToHsl=function(){function M(P){var R=P.h,F=P.s,_=P.l;return{h:R,s:F,l:_}}return M}(),w=r.hsvaToHsv=function(){function M(P){var R=L(P),F=R.h,_=R.s,U=R.v;return{h:F,s:_,v:U}}return M}(),A=/^#?([0-9A-F]{3,8})$/i,O=r.validHex=function(){function M(P,R){var F=A.exec(P),_=F?F[1].length:0;return _===3||_===6||!!R&&_===4||!!R&&_===8}return M}()},92868:function(I,r){"use strict";r.__esModule=!0,r.EventEmitter=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -20,11 +20,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.KEY_BACKSPACE=8,e=r.KEY_TAB=9,a=r.KEY_ENTER=13,t=r.KEY_SHIFT=16,o=r.KEY_CTRL=17,m=r.KEY_ALT=18,S=r.KEY_PAUSE=19,y=r.KEY_CAPSLOCK=20,k=r.KEY_ESCAPE=27,V=r.KEY_SPACE=32,p=r.KEY_PAGEUP=33,i=r.KEY_PAGEDOWN=34,c=r.KEY_END=35,s=r.KEY_HOME=36,l=r.KEY_LEFT=37,d=r.KEY_UP=38,f=r.KEY_RIGHT=39,u=r.KEY_DOWN=40,C=r.KEY_INSERT=45,b=r.KEY_DELETE=46,v=r.KEY_0=48,h=r.KEY_1=49,g=r.KEY_2=50,N=r.KEY_3=51,x=r.KEY_4=52,B=r.KEY_5=53,L=r.KEY_6=54,T=r.KEY_7=55,E=r.KEY_8=56,w=r.KEY_9=57,A=r.KEY_A=65,O=r.KEY_B=66,M=r.KEY_C=67,P=r.KEY_D=68,R=r.KEY_E=69,F=r.KEY_F=70,_=r.KEY_G=71,U=r.KEY_H=72,W=r.KEY_I=73,$=r.KEY_J=74,G=r.KEY_K=75,oe=r.KEY_L=76,X=r.KEY_M=77,pe=r.KEY_N=78,me=r.KEY_O=79,ne=r.KEY_P=80,re=r.KEY_Q=81,q=r.KEY_R=82,ae=r.KEY_S=83,J=r.KEY_T=84,Y=r.KEY_U=85,Q=r.KEY_V=86,Z=r.KEY_W=87,te=r.KEY_X=88,se=r.KEY_Y=89,ye=r.KEY_Z=90,fe=r.KEY_NUMPAD_0=96,Le=r.KEY_NUMPAD_1=97,D=r.KEY_NUMPAD_2=98,ie=r.KEY_NUMPAD_3=99,le=r.KEY_NUMPAD_4=100,Ce=r.KEY_NUMPAD_5=101,he=r.KEY_NUMPAD_6=102,ve=r.KEY_NUMPAD_7=103,Be=r.KEY_NUMPAD_8=104,we=r.KEY_NUMPAD_9=105,Re=r.KEY_F1=112,_e=r.KEY_F2=113,Pe=r.KEY_F3=114,Ve=r.KEY_F4=115,ke=r.KEY_F5=116,H=r.KEY_F6=117,ue=r.KEY_F7=118,be=r.KEY_F8=119,Se=r.KEY_F9=120,Ie=r.KEY_F10=121,Ee=r.KEY_F11=122,Me=r.KEY_F12=123,Ae=r.KEY_SEMICOLON=186,De=r.KEY_EQUAL=187,He=r.KEY_COMMA=188,Ye=r.KEY_MINUS=189,Qe=r.KEY_PERIOD=190,$e=r.KEY_SLASH=191,lt=r.KEY_LEFT_BRACKET=219,qe=r.KEY_BACKSLASH=220,ut=r.KEY_RIGHT_BRACKET=221,Lt=r.KEY_QUOTE=222},70611:function(I,r){"use strict";r.__esModule=!0,r.KEY=void 0;var n=r.KEY=function(e){return e.Alt="Alt",e.Backspace="Backspace",e.Control="Control",e.Delete="Delete",e.Down="Down",e.End="End",e.Enter="Enter",e.Escape="Esc",e.Home="Home",e.Insert="Insert",e.Left="Left",e.PageDown="PageDown",e.PageUp="PageUp",e.Right="Right",e.Shift="Shift",e.Space=" ",e.Tab="Tab",e.Up="Up",e}({})},41260:function(I,r){"use strict";r.__esModule=!0,r.declensionRu=void 0;var n=r.declensionRu=function(){function e(a,t,o,m){var S=a%100;if(S>=10&&S<=20)return m;var y=S%10;return y===1?t:y>=2&&y<=4?o:m}return e}()},44879:function(I,r){"use strict";r.__esModule=!0,r.toFixed=r.scale=r.round=r.rad2deg=r.keyOfMatchingRange=r.inRange=r.clamp01=r.clamp=void 0;/** + */var n=r.KEY_BACKSPACE=8,e=r.KEY_TAB=9,a=r.KEY_ENTER=13,t=r.KEY_SHIFT=16,o=r.KEY_CTRL=17,m=r.KEY_ALT=18,S=r.KEY_PAUSE=19,y=r.KEY_CAPSLOCK=20,k=r.KEY_ESCAPE=27,V=r.KEY_SPACE=32,p=r.KEY_PAGEUP=33,i=r.KEY_PAGEDOWN=34,c=r.KEY_END=35,s=r.KEY_HOME=36,u=r.KEY_LEFT=37,d=r.KEY_UP=38,f=r.KEY_RIGHT=39,l=r.KEY_DOWN=40,C=r.KEY_INSERT=45,b=r.KEY_DELETE=46,v=r.KEY_0=48,h=r.KEY_1=49,g=r.KEY_2=50,N=r.KEY_3=51,x=r.KEY_4=52,B=r.KEY_5=53,L=r.KEY_6=54,T=r.KEY_7=55,E=r.KEY_8=56,w=r.KEY_9=57,A=r.KEY_A=65,O=r.KEY_B=66,M=r.KEY_C=67,P=r.KEY_D=68,R=r.KEY_E=69,F=r.KEY_F=70,_=r.KEY_G=71,U=r.KEY_H=72,W=r.KEY_I=73,$=r.KEY_J=74,Y=r.KEY_K=75,ne=r.KEY_L=76,G=r.KEY_M=77,le=r.KEY_N=78,de=r.KEY_O=79,oe=r.KEY_P=80,re=r.KEY_Q=81,q=r.KEY_R=82,ae=r.KEY_S=83,J=r.KEY_T=84,X=r.KEY_U=85,Q=r.KEY_V=86,Z=r.KEY_W=87,te=r.KEY_X=88,fe=r.KEY_Y=89,ye=r.KEY_Z=90,pe=r.KEY_NUMPAD_0=96,Le=r.KEY_NUMPAD_1=97,D=r.KEY_NUMPAD_2=98,ie=r.KEY_NUMPAD_3=99,se=r.KEY_NUMPAD_4=100,Ce=r.KEY_NUMPAD_5=101,he=r.KEY_NUMPAD_6=102,ve=r.KEY_NUMPAD_7=103,Be=r.KEY_NUMPAD_8=104,we=r.KEY_NUMPAD_9=105,Re=r.KEY_F1=112,_e=r.KEY_F2=113,Pe=r.KEY_F3=114,Ve=r.KEY_F4=115,ke=r.KEY_F5=116,H=r.KEY_F6=117,ue=r.KEY_F7=118,be=r.KEY_F8=119,Se=r.KEY_F9=120,Ie=r.KEY_F10=121,Ee=r.KEY_F11=122,Me=r.KEY_F12=123,Ae=r.KEY_SEMICOLON=186,De=r.KEY_EQUAL=187,He=r.KEY_COMMA=188,Ge=r.KEY_MINUS=189,Xe=r.KEY_PERIOD=190,$e=r.KEY_SLASH=191,lt=r.KEY_LEFT_BRACKET=219,qe=r.KEY_BACKSLASH=220,ut=r.KEY_RIGHT_BRACKET=221,Lt=r.KEY_QUOTE=222},70611:function(I,r){"use strict";r.__esModule=!0,r.KEY=void 0;var n=r.KEY=function(e){return e.Alt="Alt",e.Backspace="Backspace",e.Control="Control",e.Delete="Delete",e.Down="Down",e.End="End",e.Enter="Enter",e.Escape="Esc",e.Home="Home",e.Insert="Insert",e.Left="Left",e.PageDown="PageDown",e.PageUp="PageUp",e.Right="Right",e.Shift="Shift",e.Space=" ",e.Tab="Tab",e.Up="Up",e}({})},41260:function(I,r){"use strict";r.__esModule=!0,r.declensionRu=void 0;var n=r.declensionRu=function(){function e(a,t,o,m){var S=a%100;if(S>=10&&S<=20)return m;var y=S%10;return y===1?t:y>=2&&y<=4?o:m}return e}()},44879:function(I,r){"use strict";r.__esModule=!0,r.toFixed=r.scale=r.round=r.rad2deg=r.keyOfMatchingRange=r.inRange=r.clamp01=r.clamp=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.clamp=function(){function k(V,p,i){return Vi?i:V}return k}(),e=r.clamp01=function(){function k(V){return V<0?0:V>1?1:V}return k}(),a=r.scale=function(){function k(V,p,i){return(V-p)/(i-p)}return k}(),t=r.round=function(){function k(V,p){if(!V||isNaN(V))return V;var i,c,s,l;return p|=0,i=Math.pow(10,p),V*=i,l=+(V>0)|-(V<0),s=Math.abs(V%1)>=.4999999999854481,c=Math.floor(V),s&&(V=c+(l>0)),(s?V:Math.round(V))/i}return k}(),o=r.toFixed=function(){function k(V,p){return p===void 0&&(p=0),Number(V).toFixed(Math.max(p,0))}return k}(),m=r.inRange=function(){function k(V,p){return p&&V>=p[0]&&V<=p[1]}return k}(),S=r.keyOfMatchingRange=function(){function k(V,p){for(var i=0,c=Object.keys(p);ii?i:V}return k}(),e=r.clamp01=function(){function k(V){return V<0?0:V>1?1:V}return k}(),a=r.scale=function(){function k(V,p,i){return(V-p)/(i-p)}return k}(),t=r.round=function(){function k(V,p){if(!V||isNaN(V))return V;var i,c,s,u;return p|=0,i=Math.pow(10,p),V*=i,u=+(V>0)|-(V<0),s=Math.abs(V%1)>=.4999999999854481,c=Math.floor(V),s&&(V=c+(u>0)),(s?V:Math.round(V))/i}return k}(),o=r.toFixed=function(){function k(V,p){return p===void 0&&(p=0),Number(V).toFixed(Math.max(p,0))}return k}(),m=r.inRange=function(){function k(V,p){return p&&V>=p[0]&&V<=p[1]}return k}(),S=r.keyOfMatchingRange=function(){function k(V,p){for(var i=0,c=Object.keys(p);i1?l-1:0),f=1;f1?N-1:0),B=1;B=0;--ye){var fe=this.tryEntries[ye],Le=fe.completion;if(fe.tryLoc==="root")return se("end");if(fe.tryLoc<=this.prev){var D=g.call(fe,"catchLoc"),ie=g.call(fe,"finallyLoc");if(D&&ie){if(this.prev=0;--se){var ye=this.tryEntries[se];if(ye.tryLoc<=this.prev&&g.call(ye,"finallyLoc")&&this.prev=0;--te){var se=this.tryEntries[te];if(se.finallyLoc===Z)return this.complete(se.completion,se.afterLoc),ae(se),F}}return Q}(),catch:function(){function Q(Z){for(var te=this.tryEntries.length-1;te>=0;--te){var se=this.tryEntries[te];if(se.tryLoc===Z){var ye=se.completion;if(ye.type==="throw"){var fe=ye.arg;ae(se)}return fe}}throw Error("illegal catch attempt")}return Q}(),delegateYield:function(){function Q(Z,te,se){return this.delegate={iterator:Y(Z),resultName:te,nextLoc:se},this.method==="next"&&(this.arg=b),F}return Q}()},v}function e(b,v,h,g,N,x,B){try{var L=b[x](B),T=L.value}catch(E){return void h(E)}L.done?v(T):Promise.resolve(T).then(g,N)}function a(b){return function(){var v=this,h=arguments;return new Promise(function(g,N){var x=b.apply(v,h);function B(T){e(x,g,N,B,L,"next",T)}function L(T){e(x,g,N,B,L,"throw",T)}B(void 0)})}}/** + */var a=r.createStore=function(){function k(V,p){if(p)return p(a)(V);var i,c=[],s=function(){function f(){return i}return f}(),u=function(){function f(l){c.push(l)}return f}(),d=function(){function f(l){i=V(i,l);for(var C=0;C1?u-1:0),f=1;f1?N-1:0),B=1;B=0;--ye){var pe=this.tryEntries[ye],Le=pe.completion;if(pe.tryLoc==="root")return fe("end");if(pe.tryLoc<=this.prev){var D=g.call(pe,"catchLoc"),ie=g.call(pe,"finallyLoc");if(D&&ie){if(this.prev=0;--fe){var ye=this.tryEntries[fe];if(ye.tryLoc<=this.prev&&g.call(ye,"finallyLoc")&&this.prev=0;--te){var fe=this.tryEntries[te];if(fe.finallyLoc===Z)return this.complete(fe.completion,fe.afterLoc),ae(fe),F}}return Q}(),catch:function(){function Q(Z){for(var te=this.tryEntries.length-1;te>=0;--te){var fe=this.tryEntries[te];if(fe.tryLoc===Z){var ye=fe.completion;if(ye.type==="throw"){var pe=ye.arg;ae(fe)}return pe}}throw Error("illegal catch attempt")}return Q}(),delegateYield:function(){function Q(Z,te,fe){return this.delegate={iterator:X(Z),resultName:te,nextLoc:fe},this.method==="next"&&(this.arg=b),F}return Q}()},v}function e(b,v,h,g,N,x,B){try{var L=b[x](B),T=L.value}catch(E){return void h(E)}L.done?v(T):Promise.resolve(T).then(g,N)}function a(b){return function(){var v=this,h=arguments;return new Promise(function(g,N){var x=b.apply(v,h);function B(T){e(x,g,N,B,L,"next",T)}function L(T){e(x,g,N,B,L,"throw",T)}B(void 0)})}}/** * Browser-agnostic abstraction of key-value web storage. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.IMPL_MEMORY=0,o=r.IMPL_HUB_STORAGE=1,m=r.IMPL_INDEXED_DB=2,S=1,y="para-tgui",k="storage-v1",V="readonly",p="readwrite",i=function(v){return function(){try{return!!v()}catch(h){return!1}}},c=i(function(){return window.hubStorage&&window.hubStorage.getItem}),s=i(function(){return(window.indexedDB||window.msIndexedDB)&&(window.IDBTransaction||window.msIDBTransaction)}),l=function(){function b(){this.impl=t,this.store={}}var v=b.prototype;return v.get=function(){var h=a(n().mark(function(){function N(x){return n().wrap(function(){function B(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",this.store[x]);case 1:case"end":return L.stop()}}return B}(),N,this)}return N}()));function g(N){return h.apply(this,arguments)}return g}(),v.set=function(){var h=a(n().mark(function(){function N(x,B){return n().wrap(function(){function L(T){for(;;)switch(T.prev=T.next){case 0:this.store[x]=B;case 1:case"end":return T.stop()}}return L}(),N,this)}return N}()));function g(N,x){return h.apply(this,arguments)}return g}(),v.remove=function(){var h=a(n().mark(function(){function N(x){return n().wrap(function(){function B(L){for(;;)switch(L.prev=L.next){case 0:this.store[x]=void 0;case 1:case"end":return L.stop()}}return B}(),N,this)}return N}()));function g(N){return h.apply(this,arguments)}return g}(),v.clear=function(){var h=a(n().mark(function(){function N(){return n().wrap(function(){function x(B){for(;;)switch(B.prev=B.next){case 0:this.store={};case 1:case"end":return B.stop()}}return x}(),N,this)}return N}()));function g(){return h.apply(this,arguments)}return g}(),b}(),d=function(){function b(){this.impl=o}var v=b.prototype;return v.get=function(){var h=a(n().mark(function(){function N(x){var B;return n().wrap(function(){function L(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,window.hubStorage.getItem("paradise-"+x);case 2:if(B=T.sent,typeof B!="string"){T.next=5;break}return T.abrupt("return",JSON.parse(B));case 5:case"end":return T.stop()}}return L}(),N)}return N}()));function g(N){return h.apply(this,arguments)}return g}(),v.set=function(){var h=a(n().mark(function(){function N(x,B){return n().wrap(function(){function L(T){for(;;)switch(T.prev=T.next){case 0:window.hubStorage.setItem("paradise-"+x,JSON.stringify(B));case 1:case"end":return T.stop()}}return L}(),N)}return N}()));function g(N,x){return h.apply(this,arguments)}return g}(),v.remove=function(){var h=a(n().mark(function(){function N(x){return n().wrap(function(){function B(L){for(;;)switch(L.prev=L.next){case 0:window.hubStorage.removeItem("paradise-"+x);case 1:case"end":return L.stop()}}return B}(),N)}return N}()));function g(N){return h.apply(this,arguments)}return g}(),v.clear=function(){var h=a(n().mark(function(){function N(){return n().wrap(function(){function x(B){for(;;)switch(B.prev=B.next){case 0:window.hubStorage.clear();case 1:case"end":return B.stop()}}return x}(),N)}return N}()));function g(){return h.apply(this,arguments)}return g}(),b}(),f=function(){function b(){this.impl=m,this.dbPromise=new Promise(function(h,g){var N=window.indexedDB||window.msIndexedDB,x=N.open(y,S);x.onupgradeneeded=function(){try{x.result.createObjectStore(k)}catch(B){g(new Error("Failed to upgrade IDB: "+x.error))}},x.onsuccess=function(){return h(x.result)},x.onerror=function(){g(new Error("Failed to open IDB: "+x.error))}})}var v=b.prototype;return v.getStore=function(){var h=a(n().mark(function(){function N(x){return n().wrap(function(){function B(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",this.dbPromise.then(function(T){return T.transaction(k,x).objectStore(k)}));case 1:case"end":return L.stop()}}return B}(),N,this)}return N}()));function g(N){return h.apply(this,arguments)}return g}(),v.get=function(){var h=a(n().mark(function(){function N(x){var B;return n().wrap(function(){function L(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.getStore(V);case 2:return B=T.sent,T.abrupt("return",new Promise(function(E,w){var A=B.get(x);A.onsuccess=function(){return E(A.result)},A.onerror=function(){return w(A.error)}}));case 4:case"end":return T.stop()}}return L}(),N,this)}return N}()));function g(N){return h.apply(this,arguments)}return g}(),v.set=function(){var h=a(n().mark(function(){function N(x,B){var L;return n().wrap(function(){function T(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this.getStore(p);case 2:L=E.sent,L.put(B,x);case 4:case"end":return E.stop()}}return T}(),N,this)}return N}()));function g(N,x){return h.apply(this,arguments)}return g}(),v.remove=function(){var h=a(n().mark(function(){function N(x){var B;return n().wrap(function(){function L(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.getStore(p);case 2:B=T.sent,B.delete(x);case 4:case"end":return T.stop()}}return L}(),N,this)}return N}()));function g(N){return h.apply(this,arguments)}return g}(),v.clear=function(){var h=a(n().mark(function(){function N(){var x;return n().wrap(function(){function B(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,this.getStore(p);case 2:x=L.sent,x.clear();case 4:case"end":return L.stop()}}return B}(),N,this)}return N}()));function g(){return h.apply(this,arguments)}return g}(),b}(),u=function(){function b(){this.backendPromise=a(n().mark(function(){function h(){var g;return n().wrap(function(){function N(x){for(;;)switch(x.prev=x.next){case 0:if(!(!Byond.TRIDENT&&c())){x.next=2;break}return x.abrupt("return",new d);case 2:if(!s()){x.next=12;break}return x.prev=3,g=new f,x.next=7,g.dbPromise;case 7:return x.abrupt("return",g);case 10:x.prev=10,x.t0=x.catch(3);case 12:return x.abrupt("return",new l);case 13:case"end":return x.stop()}}return N}(),h,null,[[3,10]])}return h}()))()}var v=b.prototype;return v.get=function(){var h=a(n().mark(function(){function N(x){var B;return n().wrap(function(){function L(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.backendPromise;case 2:return B=T.sent,T.abrupt("return",B.get(x));case 4:case"end":return T.stop()}}return L}(),N,this)}return N}()));function g(N){return h.apply(this,arguments)}return g}(),v.set=function(){var h=a(n().mark(function(){function N(x,B){var L;return n().wrap(function(){function T(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this.backendPromise;case 2:return L=E.sent,E.abrupt("return",L.set(x,B));case 4:case"end":return E.stop()}}return T}(),N,this)}return N}()));function g(N,x){return h.apply(this,arguments)}return g}(),v.remove=function(){var h=a(n().mark(function(){function N(x){var B;return n().wrap(function(){function L(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.backendPromise;case 2:return B=T.sent,T.abrupt("return",B.remove(x));case 4:case"end":return T.stop()}}return L}(),N,this)}return N}()));function g(N){return h.apply(this,arguments)}return g}(),v.clear=function(){var h=a(n().mark(function(){function N(){var x;return n().wrap(function(){function B(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,this.backendPromise;case 2:return x=L.sent,L.abrupt("return",x.clear());case 4:case"end":return L.stop()}}return B}(),N,this)}return N}()));function g(){return h.apply(this,arguments)}return g}(),b}(),C=r.storage=new u},25328:function(I,r){"use strict";r.__esModule=!0,r.toTitleCase=r.multiline=r.decodeHtmlEntities=r.createSearch=r.createGlobPattern=r.capitalize=r.buildQueryString=void 0;function n(p,i){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=e(p))||i&&p&&typeof p.length=="number"){c&&(p=c);var s=0;return function(){return s>=p.length?{done:!0}:{done:!1,value:p[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(p,i){if(p){if(typeof p=="string")return a(p,i);var c={}.toString.call(p).slice(8,-1);return c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set"?Array.from(p):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?a(p,i):void 0}}function a(p,i){(i==null||i>p.length)&&(i=p.length);for(var c=0,s=Array(i);c=p.length?{done:!0}:{done:!1,value:p[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(p,i){if(p){if(typeof p=="string")return a(p,i);var c={}.toString.call(p).slice(8,-1);return c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set"?Array.from(p):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?a(p,i):void 0}}function a(p,i){(i==null||i>p.length)&&(i=p.length);for(var c=0,s=Array(i);c",apos:"'"};return i.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(l,d){return s[d]}).replace(/&#?([0-9]+);/gi,function(l,d){var f=parseInt(d,10);return String.fromCharCode(f)}).replace(/&#x?([0-9a-f]+);/gi,function(l,d){var f=parseInt(d,16);return String.fromCharCode(f)})}return p}(),V=r.buildQueryString=function(){function p(i){return Object.keys(i).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(i[c])}).join("&")}return p}()},69214:function(I,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/** + */var t=r.multiline=function(){function p(i){if(Array.isArray(i))return t(i.join(""));for(var c=i.split("\n"),s,u=n(c),d;!(d=u()).done;)for(var f=d.value,l=0;l",apos:"'"};return i.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(u,d){return s[d]}).replace(/&#?([0-9]+);/gi,function(u,d){var f=parseInt(d,10);return String.fromCharCode(f)}).replace(/&#x?([0-9a-f]+);/gi,function(u,d){var f=parseInt(d,16);return String.fromCharCode(f)})}return p}(),V=r.buildQueryString=function(){function p(i){return Object.keys(i).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(i[c])}).join("&")}return p}()},69214:function(I,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -66,11 +66,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=function(d,f){return d+f},t=function(d,f){return d-f},o=function(d,f){return d*f},m=function(d,f){return d/f},S=r.vecAdd=function(){function l(){for(var d=arguments.length,f=new Array(d),u=0;u0&&(g.style=w),g}return v}(),C=r.computeBoxClassName=function(){function v(h){var g=h.textColor||h.color,N=h.backgroundColor;return(0,e.classes)([p(g)&&"color-"+g,p(N)&&"color-bg-"+N])}return v}(),b=r.Box=function(){function v(h){var g=h.as,N=g===void 0?"div":g,x=h.className,B=h.children,L=S(h,m);if(typeof B=="function")return B(u(h));var T=typeof x=="string"?x+" "+C(L):C(L),E=u(L);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,N,T,B,t.ChildFlags.UnknownChildren,E)}return v}();b.defaultHooks=e.pureComponentHooks},94798:function(I,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(89005),a=n(35840),t=n(92986),o=n(9394),m=n(55937),S=n(1331),y=n(62147),k=["className","fluid","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],V=["checked"],p=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],i=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","placeholder","maxLength","multiLine"];/** + */function S(v,h){if(v==null)return{};var g={};for(var N in v)if({}.hasOwnProperty.call(v,N)){if(h.includes(N))continue;g[N]=v[N]}return g}var y=r.unit=function(){function v(h){if(typeof h=="string")return h.endsWith("px")?parseFloat(h)/12+"rem":h;if(typeof h=="number")return h+"rem"}return v}(),k=r.halfUnit=function(){function v(h){if(typeof h=="string")return y(h);if(typeof h=="number")return y(h*.5)}return v}(),V=function(h){return!p(h)},p=function(h){if(typeof h=="string")return o.CSS_COLORS.includes(h)},i=function(h){return function(g,N){(typeof N=="number"||typeof N=="string")&&(g[h]=N)}},c=function(h,g){return function(N,x){(typeof x=="number"||typeof x=="string")&&(N[h]=g(x))}},s=function(h,g){return function(N,x){x&&(N[h]=g)}},u=function(h,g,N){return function(x,B){if(typeof B=="number"||typeof B=="string")for(var L=0;L0&&(g.style=w),g}return v}(),C=r.computeBoxClassName=function(){function v(h){var g=h.textColor||h.color,N=h.backgroundColor;return(0,e.classes)([p(g)&&"color-"+g,p(N)&&"color-bg-"+N])}return v}(),b=r.Box=function(){function v(h){var g=h.as,N=g===void 0?"div":g,x=h.className,B=h.children,L=S(h,m);if(typeof B=="function")return B(l(h));var T=typeof x=="string"?x+" "+C(L):C(L),E=l(L);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,N,T,B,t.ChildFlags.UnknownChildren,E)}return v}();b.defaultHooks=e.pureComponentHooks},94798:function(I,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(89005),a=n(35840),t=n(92986),o=n(9394),m=n(55937),S=n(1331),y=n(62147),k=["className","fluid","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],V=["checked"],p=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],i=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","placeholder","maxLength","multiLine"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function c(v,h){v.prototype=Object.create(h.prototype),v.prototype.constructor=v,s(v,h)}function s(v,h){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,N){return g.__proto__=N,g},s(v,h)}function l(v,h){if(v==null)return{};var g={};for(var N in v)if({}.hasOwnProperty.call(v,N)){if(h.includes(N))continue;g[N]=v[N]}return g}var d=(0,o.createLogger)("Button"),f=r.Button=function(){function v(h){var g=h.className,N=h.fluid,x=h.icon,B=h.iconRotation,L=h.iconSpin,T=h.color,E=h.textColor,w=h.disabled,A=h.selected,O=h.tooltip,M=h.tooltipPosition,P=h.ellipsis,R=h.compact,F=h.circular,_=h.content,U=h.iconColor,W=h.iconRight,$=h.iconStyle,G=h.children,oe=h.onclick,X=h.onClick,pe=h.multiLine,me=l(h,k),ne=!!(_||G);oe&&d.warn("Lowercase 'onclick' is not supported on Button and lowercase prop names are discouraged in general. Please use a camelCase'onClick' instead and read: https://infernojs.org/docs/guides/event-handling"),me.onClick=function(q){!w&&X&&X(q)};var re=(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Box,Object.assign({className:(0,a.classes)(["Button",N&&"Button--fluid",w&&"Button--disabled",A&&"Button--selected",ne&&"Button--hasContent",P&&"Button--ellipsis",F&&"Button--circular",R&&"Button--compact",W&&"Button--iconRight",pe&&"Button--multiLine",T&&typeof T=="string"?"Button--color--"+T:"Button--color--default",g]),tabIndex:!w&&"0",color:E,onKeyDown:function(){function q(ae){var J=window.event?ae.which:ae.keyCode;if(J===t.KEY_SPACE||J===t.KEY_ENTER){ae.preventDefault(),!w&&X&&X(ae);return}if(J===t.KEY_ESCAPE){ae.preventDefault();return}}return q}()},me,{children:[x&&!W&&(0,e.createComponentVNode)(2,S.Icon,{name:x,color:U,rotation:B,spin:L,style:$}),_,G,x&&W&&(0,e.createComponentVNode)(2,S.Icon,{name:x,color:U,rotation:B,spin:L,style:$})]})));return O&&(re=(0,e.createComponentVNode)(2,y.Tooltip,{content:O,position:M,children:re})),re}return v}();f.defaultHooks=a.pureComponentHooks;var u=r.ButtonCheckbox=function(){function v(h){var g=h.checked,N=l(h,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({color:"transparent",icon:g?"check-square-o":"square-o",selected:g},N)))}return v}();f.Checkbox=u;var C=r.ButtonConfirm=function(v){function h(){var N;return N=v.call(this)||this,N.state={clickedOnce:!1},N.handleClick=function(){N.state.clickedOnce&&N.setClickedOnce(!1)},N}c(h,v);var g=h.prototype;return g.setClickedOnce=function(){function N(x){var B=this;this.setState({clickedOnce:x}),x?setTimeout(function(){return window.addEventListener("click",B.handleClick)}):window.removeEventListener("click",this.handleClick)}return N}(),g.render=function(){function N(){var x=this,B=this.props,L=B.confirmContent,T=L===void 0?"Confirm?":L,E=B.confirmColor,w=E===void 0?"bad":E,A=B.confirmIcon,O=B.icon,M=B.color,P=B.content,R=B.onClick,F=l(B,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({content:this.state.clickedOnce?T:P,icon:this.state.clickedOnce?A:O,color:this.state.clickedOnce?w:M,onClick:function(){function _(){return x.state.clickedOnce?R():x.setClickedOnce(!0)}return _}()},F)))}return N}(),h}(e.Component);f.Confirm=C;var b=r.ButtonInput=function(v){function h(){var N;return N=v.call(this)||this,N.inputRef=(0,e.createRef)(),N.state={inInput:!1},N}c(h,v);var g=h.prototype;return g.setInInput=function(){function N(x){var B=this.props.disabled;if(!B&&(this.setState({inInput:x}),this.inputRef)){var L=this.inputRef.current;if(x){L.value=this.props.currentValue||"";try{L.focus(),L.select()}catch(T){}}}}return N}(),g.commitResult=function(){function N(x){if(this.inputRef){var B=this.inputRef.current,L=B.value!=="";if(L){this.props.onCommit(x,B.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(x,this.props.defaultValue)}}}return N}(),g.render=function(){function N(){var x=this,B=this.props,L=B.fluid,T=B.content,E=B.icon,w=B.iconRotation,A=B.iconSpin,O=B.tooltip,M=B.tooltipPosition,P=B.color,R=P===void 0?"default":P,F=B.disabled,_=B.placeholder,U=B.maxLength,W=B.multiLine,$=l(B,i),G=(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Box,Object.assign({className:(0,a.classes)(["Button",L&&"Button--fluid",F&&"Button--disabled","Button--color--"+R,W+"Button--multiLine"])},$,{onClick:function(){function oe(){return x.setInInput(!0)}return oe}(),children:[E&&(0,e.createComponentVNode)(2,S.Icon,{name:E,rotation:w,spin:A}),(0,e.createVNode)(1,"div",null,T,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function oe(X){x.state.inInput&&(x.setInInput(!1),x.commitResult(X))}return oe}(),onKeyDown:function(){function oe(X){if(X.keyCode===t.KEY_ENTER){x.setInInput(!1),x.commitResult(X);return}X.keyCode===t.KEY_ESCAPE&&x.setInInput(!1)}return oe}()},null,this.inputRef)]})));return O&&(G=(0,e.createComponentVNode)(2,y.Tooltip,{content:O,position:M,children:G})),G}return N}(),h}(e.Component);f.Input=b},18982:function(I,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(89005),a=n(35840),t=n(69214),o=n(9394),m=n(55937),S=["params"],y=["params"],k=["parent","params"];function V(C,b){if(C==null)return{};var v={};for(var h in C)if({}.hasOwnProperty.call(C,h)){if(b.includes(h))continue;v[h]=C[h]}return v}function p(C,b){C.prototype=Object.create(b.prototype),C.prototype.constructor=C,i(C,b)}function i(C,b){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,h){return v.__proto__=h,v},i(C,b)}/** + */function c(v,h){v.prototype=Object.create(h.prototype),v.prototype.constructor=v,s(v,h)}function s(v,h){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,N){return g.__proto__=N,g},s(v,h)}function u(v,h){if(v==null)return{};var g={};for(var N in v)if({}.hasOwnProperty.call(v,N)){if(h.includes(N))continue;g[N]=v[N]}return g}var d=(0,o.createLogger)("Button"),f=r.Button=function(){function v(h){var g=h.className,N=h.fluid,x=h.icon,B=h.iconRotation,L=h.iconSpin,T=h.color,E=h.textColor,w=h.disabled,A=h.selected,O=h.tooltip,M=h.tooltipPosition,P=h.ellipsis,R=h.compact,F=h.circular,_=h.content,U=h.iconColor,W=h.iconRight,$=h.iconStyle,Y=h.children,ne=h.onclick,G=h.onClick,le=h.multiLine,de=u(h,k),oe=!!(_||Y);ne&&d.warn("Lowercase 'onclick' is not supported on Button and lowercase prop names are discouraged in general. Please use a camelCase'onClick' instead and read: https://infernojs.org/docs/guides/event-handling"),de.onClick=function(q){!w&&G&&G(q)};var re=(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Box,Object.assign({className:(0,a.classes)(["Button",N&&"Button--fluid",w&&"Button--disabled",A&&"Button--selected",oe&&"Button--hasContent",P&&"Button--ellipsis",F&&"Button--circular",R&&"Button--compact",W&&"Button--iconRight",le&&"Button--multiLine",T&&typeof T=="string"?"Button--color--"+T:"Button--color--default",g]),tabIndex:!w&&"0",color:E,onKeyDown:function(){function q(ae){var J=window.event?ae.which:ae.keyCode;if(J===t.KEY_SPACE||J===t.KEY_ENTER){ae.preventDefault(),!w&&G&&G(ae);return}if(J===t.KEY_ESCAPE){ae.preventDefault();return}}return q}()},de,{children:[x&&!W&&(0,e.createComponentVNode)(2,S.Icon,{name:x,color:U,rotation:B,spin:L,style:$}),_,Y,x&&W&&(0,e.createComponentVNode)(2,S.Icon,{name:x,color:U,rotation:B,spin:L,style:$})]})));return O&&(re=(0,e.createComponentVNode)(2,y.Tooltip,{content:O,position:M,children:re})),re}return v}();f.defaultHooks=a.pureComponentHooks;var l=r.ButtonCheckbox=function(){function v(h){var g=h.checked,N=u(h,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({color:"transparent",icon:g?"check-square-o":"square-o",selected:g},N)))}return v}();f.Checkbox=l;var C=r.ButtonConfirm=function(v){function h(){var N;return N=v.call(this)||this,N.state={clickedOnce:!1},N.handleClick=function(){N.state.clickedOnce&&N.setClickedOnce(!1)},N}c(h,v);var g=h.prototype;return g.setClickedOnce=function(){function N(x){var B=this;this.setState({clickedOnce:x}),x?setTimeout(function(){return window.addEventListener("click",B.handleClick)}):window.removeEventListener("click",this.handleClick)}return N}(),g.render=function(){function N(){var x=this,B=this.props,L=B.confirmContent,T=L===void 0?"Confirm?":L,E=B.confirmColor,w=E===void 0?"bad":E,A=B.confirmIcon,O=B.icon,M=B.color,P=B.content,R=B.onClick,F=u(B,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({content:this.state.clickedOnce?T:P,icon:this.state.clickedOnce?A:O,color:this.state.clickedOnce?w:M,onClick:function(){function _(){return x.state.clickedOnce?R():x.setClickedOnce(!0)}return _}()},F)))}return N}(),h}(e.Component);f.Confirm=C;var b=r.ButtonInput=function(v){function h(){var N;return N=v.call(this)||this,N.inputRef=(0,e.createRef)(),N.state={inInput:!1},N}c(h,v);var g=h.prototype;return g.setInInput=function(){function N(x){var B=this.props.disabled;if(!B&&(this.setState({inInput:x}),this.inputRef)){var L=this.inputRef.current;if(x){L.value=this.props.currentValue||"";try{L.focus(),L.select()}catch(T){}}}}return N}(),g.commitResult=function(){function N(x){if(this.inputRef){var B=this.inputRef.current,L=B.value!=="";if(L){this.props.onCommit(x,B.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(x,this.props.defaultValue)}}}return N}(),g.render=function(){function N(){var x=this,B=this.props,L=B.fluid,T=B.content,E=B.icon,w=B.iconRotation,A=B.iconSpin,O=B.tooltip,M=B.tooltipPosition,P=B.color,R=P===void 0?"default":P,F=B.disabled,_=B.placeholder,U=B.maxLength,W=B.multiLine,$=u(B,i),Y=(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Box,Object.assign({className:(0,a.classes)(["Button",L&&"Button--fluid",F&&"Button--disabled","Button--color--"+R,W+"Button--multiLine"])},$,{onClick:function(){function ne(){return x.setInInput(!0)}return ne}(),children:[E&&(0,e.createComponentVNode)(2,S.Icon,{name:E,rotation:w,spin:A}),(0,e.createVNode)(1,"div",null,T,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function ne(G){x.state.inInput&&(x.setInInput(!1),x.commitResult(G))}return ne}(),onKeyDown:function(){function ne(G){if(G.keyCode===t.KEY_ENTER){x.setInInput(!1),x.commitResult(G);return}G.keyCode===t.KEY_ESCAPE&&x.setInInput(!1)}return ne}()},null,this.inputRef)]})));return O&&(Y=(0,e.createComponentVNode)(2,y.Tooltip,{content:O,position:M,children:Y})),Y}return N}(),h}(e.Component);f.Input=b},18982:function(I,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(89005),a=n(35840),t=n(69214),o=n(9394),m=n(55937),S=["params"],y=["params"],k=["parent","params"];function V(C,b){if(C==null)return{};var v={};for(var h in C)if({}.hasOwnProperty.call(C,h)){if(b.includes(h))continue;v[h]=C[h]}return v}function p(C,b){C.prototype=Object.create(b.prototype),C.prototype.constructor=C,i(C,b)}function i(C,b){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,h){return v.__proto__=h,v},i(C,b)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var c=(0,o.createLogger)("ByondUi"),s=[],l=function(b){var v=s.length;s.push(null);var h=b||"byondui_"+v;return c.log("allocated '"+h+"'"),{render:function(){function g(N){c.log("unmounting '"+h+"'"),s[v]=null,Byond.winset(h,{parent:""}),c.log("rendering '"+h+"'"),s[v]=h,Byond.winset(h,N)}return g}(),unmount:function(){function g(){c.log("unmounting '"+h+"'"),s[v]=null,Byond.winset(h,{parent:""})}return g}()}};window.addEventListener("beforeunload",function(){for(var C=0;C0){var P=M[0],R=M[M.length-1];M.push([O[0]+w,R[1]]),M.push([O[0]+w,-w]),M.push([-w,-w]),M.push([-w,P[1]])}var F=p(M);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},A,{children:function(){function _(U){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+O[1]+")",fill:B,stroke:T,"stroke-width":w,points:F}),2,{viewBox:"0 0 "+O[0]+" "+O[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},U),null,C.ref))}return _}()})))}return u}(),d}(e.Component);i.defaultHooks=t.pureComponentHooks;var c=function(d){return null},s=r.Chart={Line:i}},4796:function(I,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(89005),a=n(55937),t=n(94798),o=["children","color","title","buttons"];function m(V,p){if(V==null)return{};var i={};for(var c in V)if({}.hasOwnProperty.call(V,c)){if(p.includes(c))continue;i[c]=V[c]}return i}function S(V,p){V.prototype=Object.create(p.prototype),V.prototype.constructor=V,y(V,p)}function y(V,p){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,c){return i.__proto__=c,i},y(V,p)}/** +*/var V=function(d,f,l,C){if(d.length===0)return[];var b=(0,a.zipWith)(Math.min).apply(void 0,d),v=(0,a.zipWith)(Math.max).apply(void 0,d);l!==void 0&&(b[0]=l[0],v[0]=l[1]),C!==void 0&&(b[1]=C[0],v[1]=C[1]);var h=(0,a.map)(function(g){return(0,a.zipWith)(function(N,x,B,L){return(N-x)/(B-x)*L})(g,b,v,f)})(d);return h},p=function(d){for(var f="",l=0;l0){var P=M[0],R=M[M.length-1];M.push([O[0]+w,R[1]]),M.push([O[0]+w,-w]),M.push([-w,-w]),M.push([-w,P[1]])}var F=p(M);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},A,{children:function(){function _(U){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+O[1]+")",fill:B,stroke:T,"stroke-width":w,points:F}),2,{viewBox:"0 0 "+O[0]+" "+O[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},U),null,C.ref))}return _}()})))}return l}(),d}(e.Component);i.defaultHooks=t.pureComponentHooks;var c=function(d){return null},s=r.Chart={Line:i}},4796:function(I,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(89005),a=n(55937),t=n(94798),o=["children","color","title","buttons"];function m(V,p){if(V==null)return{};var i={};for(var c in V)if({}.hasOwnProperty.call(V,c)){if(p.includes(c))continue;i[c]=V[c]}return i}function S(V,p){V.prototype=Object.create(p.prototype),V.prototype.constructor=V,y(V,p)}function y(V,p){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,c){return i.__proto__=c,i},y(V,p)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var k=r.Collapsible=function(V){function p(c){var s;s=V.call(this,c)||this;var l=c.open;return s.state={open:l||!1},s}S(p,V);var i=p.prototype;return i.render=function(){function c(){var s=this,l=this.props,d=this.state.open,f=l.children,u=l.color,C=u===void 0?"default":u,b=l.title,v=l.buttons,h=m(l,o);return(0,e.createComponentVNode)(2,a.Box,{className:"Collapsible",children:[(0,e.createVNode)(1,"div","Table",[(0,e.createVNode)(1,"div","Table__cell",(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({fluid:!0,color:C,icon:d?"chevron-down":"chevron-right",onClick:function(){function g(){return s.setState({open:!d})}return g}()},h,{children:b}))),2),v&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",v,0)],0),d&&(0,e.createComponentVNode)(2,a.Box,{mt:1,children:f})]})}return c}(),p}(e.Component)},88894:function(I,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["content","children","className","color","backgroundColor"];/** +*/var k=r.Collapsible=function(V){function p(c){var s;s=V.call(this,c)||this;var u=c.open;return s.state={open:u||!1},s}S(p,V);var i=p.prototype;return i.render=function(){function c(){var s=this,u=this.props,d=this.state.open,f=u.children,l=u.color,C=l===void 0?"default":l,b=u.title,v=u.buttons,h=m(u,o);return(0,e.createComponentVNode)(2,a.Box,{className:"Collapsible",children:[(0,e.createVNode)(1,"div","Table",[(0,e.createVNode)(1,"div","Table__cell",(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({fluid:!0,color:C,icon:d?"chevron-down":"chevron-right",onClick:function(){function g(){return s.setState({open:!d})}return g}()},h,{children:b}))),2),v&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",v,0)],0),d&&(0,e.createComponentVNode)(2,a.Box,{mt:1,children:f})]})}return c}(),p}(e.Component)},88894:function(I,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["content","children","className","color","backgroundColor"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function m(y,k){if(y==null)return{};var V={};for(var p in y)if({}.hasOwnProperty.call(y,p)){if(k.includes(p))continue;V[p]=y[p]}return V}var S=r.ColorBox=function(){function y(k){var V=k.content,p=k.children,i=k.className,c=k.color,s=k.backgroundColor,l=m(k,o);return l.color=V?null:"transparent",l.backgroundColor=c||s,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",i,(0,t.computeBoxClassName)(l)]),V||".",0,Object.assign({},(0,t.computeBoxProps)(l))))}return y}();S.defaultHooks=a.pureComponentHooks},73379:function(I,r,n){"use strict";r.__esModule=!0,r.Countdown=void 0;var e=n(89005),a=n(55937),t=["format"];function o(k,V){if(k==null)return{};var p={};for(var i in k)if({}.hasOwnProperty.call(k,i)){if(V.includes(i))continue;p[i]=k[i]}return p}function m(k,V){k.prototype=Object.create(V.prototype),k.prototype.constructor=k,S(k,V)}function S(k,V){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,i){return p.__proto__=i,p},S(k,V)}var y=r.Countdown=function(k){function V(i){var c;return c=k.call(this,i)||this,c.timer=null,c.state={value:Math.max(i.timeLeft*100,0)},c}m(V,k);var p=V.prototype;return p.tick=function(){function i(){var c=Math.max(this.state.value-this.props.rate,0);c<=0&&clearInterval(this.timer),this.setState(function(s){return{value:c}})}return i}(),p.componentDidMount=function(){function i(){var c=this;this.timer=setInterval(function(){return c.tick()},this.props.rate)}return i}(),p.componentWillUnmount=function(){function i(){clearInterval(this.timer)}return i}(),p.componentDidUpdate=function(){function i(c){var s=this;this.props.current!==c.current&&this.setState(function(l){return{value:Math.max(s.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()}return i}(),p.render=function(){function i(){var c=this.props,s=c.format,l=o(c,t),d=new Date(this.state.value).toISOString().slice(11,19);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({as:"span"},l,{children:s?s(this.state.value,d):d})))}return i}(),V}(e.Component);y.defaultProps={rate:1e3}},61940:function(I,r,n){"use strict";r.__esModule=!0,r.Dimmer=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","children"];/** + */function m(y,k){if(y==null)return{};var V={};for(var p in y)if({}.hasOwnProperty.call(y,p)){if(k.includes(p))continue;V[p]=y[p]}return V}var S=r.ColorBox=function(){function y(k){var V=k.content,p=k.children,i=k.className,c=k.color,s=k.backgroundColor,u=m(k,o);return u.color=V?null:"transparent",u.backgroundColor=c||s,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",i,(0,t.computeBoxClassName)(u)]),V||".",0,Object.assign({},(0,t.computeBoxProps)(u))))}return y}();S.defaultHooks=a.pureComponentHooks},73379:function(I,r,n){"use strict";r.__esModule=!0,r.Countdown=void 0;var e=n(89005),a=n(55937),t=["format"];function o(k,V){if(k==null)return{};var p={};for(var i in k)if({}.hasOwnProperty.call(k,i)){if(V.includes(i))continue;p[i]=k[i]}return p}function m(k,V){k.prototype=Object.create(V.prototype),k.prototype.constructor=k,S(k,V)}function S(k,V){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,i){return p.__proto__=i,p},S(k,V)}var y=r.Countdown=function(k){function V(i){var c;return c=k.call(this,i)||this,c.timer=null,c.state={value:Math.max(i.timeLeft*100,0)},c}m(V,k);var p=V.prototype;return p.tick=function(){function i(){var c=Math.max(this.state.value-this.props.rate,0);c<=0&&clearInterval(this.timer),this.setState(function(s){return{value:c}})}return i}(),p.componentDidMount=function(){function i(){var c=this;this.timer=setInterval(function(){return c.tick()},this.props.rate)}return i}(),p.componentWillUnmount=function(){function i(){clearInterval(this.timer)}return i}(),p.componentDidUpdate=function(){function i(c){var s=this;this.props.current!==c.current&&this.setState(function(u){return{value:Math.max(s.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()}return i}(),p.render=function(){function i(){var c=this.props,s=c.format,u=o(c,t),d=new Date(this.state.value).toISOString().slice(11,19);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({as:"span"},u,{children:s?s(this.state.value,d):d})))}return i}(),V}(e.Component);y.defaultProps={rate:1e3}},61940:function(I,r,n){"use strict";r.__esModule=!0,r.Dimmer=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -121,35 +121,35 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.Divider=function(){function o(m){var S=m.vertical,y=m.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",y&&"Divider--hidden",S?"Divider--vertical":"Divider--horizontal"]))}return o}()},60218:function(I,r,n){"use strict";r.__esModule=!0,r.DmIcon=void 0;var e=n(89005),a=n(79140),t=n(46085),o=n(91225),m=["className","direction","fallback","frame","icon_state","movement"];function S(d,f){if(d==null)return{};var u={};for(var C in d)if({}.hasOwnProperty.call(d,C)){if(f.includes(C))continue;u[C]=d[C]}return u}function y(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */y=function(){return f};var d,f={},u=Object.prototype,C=u.hasOwnProperty,b=Object.defineProperty||function(q,ae,J){q[ae]=J.value},v=typeof Symbol=="function"?Symbol:{},h=v.iterator||"@@iterator",g=v.asyncIterator||"@@asyncIterator",N=v.toStringTag||"@@toStringTag";function x(q,ae,J){return Object.defineProperty(q,ae,{value:J,enumerable:!0,configurable:!0,writable:!0}),q[ae]}try{x({},"")}catch(q){x=function(J,Y,Q){return J[Y]=Q}}function B(q,ae,J,Y){var Q=ae&&ae.prototype instanceof M?ae:M,Z=Object.create(Q.prototype),te=new ne(Y||[]);return b(Z,"_invoke",{value:oe(q,J,te)}),Z}function L(q,ae,J){try{return{type:"normal",arg:q.call(ae,J)}}catch(Y){return{type:"throw",arg:Y}}}f.wrap=B;var T="suspendedStart",E="suspendedYield",w="executing",A="completed",O={};function M(){}function P(){}function R(){}var F={};x(F,h,function(){return this});var _=Object.getPrototypeOf,U=_&&_(_(re([])));U&&U!==u&&C.call(U,h)&&(F=U);var W=R.prototype=M.prototype=Object.create(F);function $(q){["next","throw","return"].forEach(function(ae){x(q,ae,function(J){return this._invoke(ae,J)})})}function G(q,ae){function J(Q,Z,te,se){var ye=L(q[Q],q,Z);if(ye.type!=="throw"){var fe=ye.arg,Le=fe.value;return Le&&typeof Le=="object"&&C.call(Le,"__await")?ae.resolve(Le.__await).then(function(D){J("next",D,te,se)},function(D){J("throw",D,te,se)}):ae.resolve(Le).then(function(D){fe.value=D,te(fe)},function(D){return J("throw",D,te,se)})}se(ye.arg)}var Y;b(this,"_invoke",{value:function(){function Q(Z,te){function se(){return new ae(function(ye,fe){J(Z,te,ye,fe)})}return Y=Y?Y.then(se,se):se()}return Q}()})}function oe(q,ae,J){var Y=T;return function(Q,Z){if(Y===w)throw Error("Generator is already running");if(Y===A){if(Q==="throw")throw Z;return{value:d,done:!0}}for(J.method=Q,J.arg=Z;;){var te=J.delegate;if(te){var se=X(te,J);if(se){if(se===O)continue;return se}}if(J.method==="next")J.sent=J._sent=J.arg;else if(J.method==="throw"){if(Y===T)throw Y=A,J.arg;J.dispatchException(J.arg)}else J.method==="return"&&J.abrupt("return",J.arg);Y=w;var ye=L(q,ae,J);if(ye.type==="normal"){if(Y=J.done?A:E,ye.arg===O)continue;return{value:ye.arg,done:J.done}}ye.type==="throw"&&(Y=A,J.method="throw",J.arg=ye.arg)}}}function X(q,ae){var J=ae.method,Y=q.iterator[J];if(Y===d)return ae.delegate=null,J==="throw"&&q.iterator.return&&(ae.method="return",ae.arg=d,X(q,ae),ae.method==="throw")||J!=="return"&&(ae.method="throw",ae.arg=new TypeError("The iterator does not provide a '"+J+"' method")),O;var Q=L(Y,q.iterator,ae.arg);if(Q.type==="throw")return ae.method="throw",ae.arg=Q.arg,ae.delegate=null,O;var Z=Q.arg;return Z?Z.done?(ae[q.resultName]=Z.value,ae.next=q.nextLoc,ae.method!=="return"&&(ae.method="next",ae.arg=d),ae.delegate=null,O):Z:(ae.method="throw",ae.arg=new TypeError("iterator result is not an object"),ae.delegate=null,O)}function pe(q){var ae={tryLoc:q[0]};1 in q&&(ae.catchLoc=q[1]),2 in q&&(ae.finallyLoc=q[2],ae.afterLoc=q[3]),this.tryEntries.push(ae)}function me(q){var ae=q.completion||{};ae.type="normal",delete ae.arg,q.completion=ae}function ne(q){this.tryEntries=[{tryLoc:"root"}],q.forEach(pe,this),this.reset(!0)}function re(q){if(q||q===""){var ae=q[h];if(ae)return ae.call(q);if(typeof q.next=="function")return q;if(!isNaN(q.length)){var J=-1,Y=function(){function Q(){for(;++J=0;--Q){var Z=this.tryEntries[Q],te=Z.completion;if(Z.tryLoc==="root")return Y("end");if(Z.tryLoc<=this.prev){var se=C.call(Z,"catchLoc"),ye=C.call(Z,"finallyLoc");if(se&&ye){if(this.prev=0;--Y){var Q=this.tryEntries[Y];if(Q.tryLoc<=this.prev&&C.call(Q,"finallyLoc")&&this.prev=0;--J){var Y=this.tryEntries[J];if(Y.finallyLoc===ae)return this.complete(Y.completion,Y.afterLoc),me(Y),O}}return q}(),catch:function(){function q(ae){for(var J=this.tryEntries.length-1;J>=0;--J){var Y=this.tryEntries[J];if(Y.tryLoc===ae){var Q=Y.completion;if(Q.type==="throw"){var Z=Q.arg;me(Y)}return Z}}throw Error("illegal catch attempt")}return q}(),delegateYield:function(){function q(ae,J,Y){return this.delegate={iterator:re(ae),resultName:J,nextLoc:Y},this.method==="next"&&(this.arg=d),O}return q}()},f}function k(d,f,u,C,b,v,h){try{var g=d[v](h),N=g.value}catch(x){return void u(x)}g.done?f(N):Promise.resolve(N).then(C,b)}function V(d){return function(){var f=this,u=arguments;return new Promise(function(C,b){var v=d.apply(f,u);function h(N){k(v,C,b,h,g,"next",N)}function g(N){k(v,C,b,h,g,"throw",N)}h(void 0)})}}function p(d,f){d.prototype=Object.create(f.prototype),d.prototype.constructor=d,i(d,f)}function i(d,f){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,C){return u.__proto__=C,u},i(d,f)}var c=function(d){return d[d.NORTH=1]="NORTH",d[d.SOUTH=2]="SOUTH",d[d.EAST=4]="EAST",d[d.WEST=8]="WEST",d[d.NORTHEAST=5]="NORTHEAST",d[d.NORTHWEST=9]="NORTHWEST",d[d.SOUTHEAST=6]="SOUTHEAST",d[d.SOUTHWEST=10]="SOUTHWEST",d}(c||{}),s,l=r.DmIcon=function(d){function f(C){var b;return b=d.call(this,C)||this,b.state={iconRef:""},b}p(f,d);var u=f.prototype;return u.fetchRefMap=function(){var C=V(y().mark(function(){function v(){var h,g;return y().wrap(function(){function N(x){for(;;)switch(x.prev=x.next){case 0:return x.prev=0,x.next=3,(0,t.fetchRetry)((0,a.resolveAsset)("icon_ref_map.json"));case 3:return h=x.sent,x.next=6,h.json();case 6:g=x.sent,s=g,this.setState({iconRef:g[this.props.icon]||""}),x.next=14;break;case 11:return x.prev=11,x.t0=x.catch(0),x.abrupt("return");case 14:case"end":return x.stop()}}return N}(),v,this,[[0,11]])}return v}()));function b(){return C.apply(this,arguments)}return b}(),u.componentDidMount=function(){function C(){s?this.setState({iconRef:s[this.props.icon]}):this.fetchRefMap()}return C}(),u.componentDidUpdate=function(){function C(b){b.icon!==this.props.icon&&(s?this.setState({iconRef:s[this.props.icon]}):this.fetchRefMap())}return C}(),u.render=function(){function C(){var b=this.props,v=b.className,h=b.direction,g=h===void 0?c.SOUTH:h,N=b.fallback,x=b.frame,B=x===void 0?1:x,L=b.icon_state,T=b.movement,E=T===void 0?!1:T,w=S(b,m),A=this.state.iconRef,O=A+"?state="+L+"&dir="+g+"&movement="+!!E+"&frame="+B;return A?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Image,Object.assign({fixErrors:!0,src:O},w))):N||null}return C}(),f}(e.Component)},20342:function(I,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474);function m(p,i){p.prototype=Object.create(i.prototype),p.prototype.constructor=p,S(p,i)}function S(p,i){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,s){return c.__proto__=s,c},S(p,i)}var y=400,k=function(i,c){return i.screenX*c[0]+i.screenY*c[1]},V=r.DraggableControl=function(p){function i(s){var l;return l=p.call(this,s)||this,l.inputRef=(0,e.createRef)(),l.state={originalValue:s.value,value:s.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},l.flickerTimer=null,l.suppressFlicker=function(){var d=l.props.suppressFlicker;d>0&&(l.setState({suppressingFlicker:!0}),clearTimeout(l.flickerTimer),l.flickerTimer=setTimeout(function(){return l.setState({suppressingFlicker:!1})},d))},l.handleDragStart=function(d){var f=l.props,u=f.value,C=f.dragMatrix,b=f.disabled,v=l.state.editing;v||b||(document.body.style["pointer-events"]="none",l.ref=d.currentTarget,l.setState({originalValue:u,dragging:!1,value:u,origin:k(d,C)}),l.timer=setTimeout(function(){l.setState({dragging:!0})},250),l.dragInterval=setInterval(function(){var h=l.state,g=h.dragging,N=h.value,x=l.props.onDrag;g&&x&&x(d,N)},l.props.updateRate||y),document.addEventListener("mousemove",l.handleDragMove),document.addEventListener("mouseup",l.handleDragEnd))},l.handleDragMove=function(d){var f,u=l.props,C=u.minValue,b=u.maxValue,v=u.step,h=u.dragMatrix,g=u.disabled;if(!g){var N=l.ref.offsetWidth/((b-C)/v),x=(f=l.props.stepPixelSize)!=null?f:N;typeof x=="function"&&(x=x(N)),l.setState(function(B){var L=Object.assign({},B),T=B.origin,E=k(d,h)-T;if(B.dragging){var w=Math.trunc(E/x);L.value=(0,a.clamp)(Math.floor(L.originalValue/v)*v+w*v,C,b)}else Math.abs(E)>4&&(L.dragging=!0);return L})}},l.handleDragEnd=function(d){var f=l.props,u=f.onChange,C=f.onDrag,b=l.state,v=b.dragging,h=b.value;if(document.body.style["pointer-events"]="auto",clearTimeout(l.timer),clearInterval(l.dragInterval),l.setState({originalValue:null,dragging:!1,editing:!v,origin:null}),document.removeEventListener("mousemove",l.handleDragMove),document.removeEventListener("mouseup",l.handleDragEnd),v)l.suppressFlicker(),u&&u(d,h),C&&C(d,h);else if(l.inputRef){var g=l.inputRef.current;g.value=h;try{g.focus(),g.select()}catch(N){}}},l}m(i,p);var c=i.prototype;return c.render=function(){function s(){var l=this,d=this.state,f=d.dragging,u=d.editing,C=d.value,b=d.suppressingFlicker,v=this.props,h=v.animated,g=v.value,N=v.unit,x=v.minValue,B=v.maxValue,L=v.format,T=v.onChange,E=v.onDrag,w=v.children,A=v.height,O=v.lineHeight,M=v.fontSize,P=v.disabled,R=g;(f||b)&&(R=C);var F=function(){function W($){return $+(N?" "+N:"")}return W}(),_=h&&!f&&!b&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:R,format:L,children:F})||F(L?L(R):R),U=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!u||P?"none":void 0,height:A,"line-height":O,"font-size":M},onBlur:function(){function W($){if(u){var G=(0,a.clamp)(parseFloat($.target.value),x,B);if(Number.isNaN(G)){l.setState({editing:!1});return}l.setState({editing:!1,value:G}),l.suppressFlicker(),T&&T($,G),E&&E($,G)}}return W}(),onKeyDown:function(){function W($){if($.keyCode===13){var G=(0,a.clamp)(parseFloat($.target.value),x,B);if(Number.isNaN(G)){l.setState({editing:!1});return}l.setState({editing:!1,value:G}),l.suppressFlicker(),T&&T($,G),E&&E($,G);return}if($.keyCode===27){l.setState({editing:!1});return}}return W}(),disabled:P},null,this.inputRef);return w({dragging:f,editing:u,value:g,displayValue:R,displayElement:_,inputElement:U,handleDragStart:this.handleDragStart})}return s}(),i}(e.Component);V.defaultHooks=t.pureComponentHooks,V.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},87099:function(I,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(89005),a=n(95996),t=n(35840),o=n(55937),m=n(1331),S=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],y=["className"],k;function V(u,C){if(u==null)return{};var b={};for(var v in u)if({}.hasOwnProperty.call(u,v)){if(C.includes(v))continue;b[v]=u[v]}return b}function p(u,C){u.prototype=Object.create(C.prototype),u.prototype.constructor=u,i(u,C)}function i(u,C){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,v){return b.__proto__=v,b},i(u,C)}var c={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},s={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function u(){return null}return u}()},l="Layout Dropdown__menu",d="Layout Dropdown__menu-scroll",f=r.Dropdown=function(u){function C(v){var h;return h=u.call(this,v)||this,h.menuContents=void 0,h.handleClick=function(){h.state.open&&h.setOpen(!1)},h.state={open:!1,selected:h.props.selected},h.menuContents=null,h}p(C,u);var b=C.prototype;return b.getDOMNode=function(){function v(){return(0,e.findDOMFromVNode)(this.$LI,!0)}return v}(),b.componentDidMount=function(){function v(){var h=this.getDOMNode()}return v}(),b.openMenu=function(){function v(){var h=C.renderedMenu;h===void 0&&(h=document.createElement("div"),h.className=l,document.body.appendChild(h),C.renderedMenu=h);var g=this.getDOMNode();C.currentOpenMenu=g,h.scrollTop=0,h.style.width=this.props.menuWidth||g.offsetWidth+"px",h.style.opacity="1",h.style.pointerEvents="auto",setTimeout(function(){var N;(N=C.renderedMenu)==null||N.focus()},400),this.renderMenuContent()}return v}(),b.closeMenu=function(){function v(){C.currentOpenMenu===this.getDOMNode()&&(C.currentOpenMenu=void 0,C.renderedMenu.style.opacity="0",C.renderedMenu.style.pointerEvents="none")}return v}(),b.componentWillUnmount=function(){function v(){this.closeMenu(),this.setOpen(!1)}return v}(),b.renderMenuContent=function(){function v(){var h=this,g=C.renderedMenu;if(g){g.offsetHeight>200?g.className=d:g.className=l;var N=this.props.options,x=N===void 0?[]:N,B=x.map(function(T){var E,w;return typeof T=="string"?(w=T,E=T):T!==null&&(w=T.displayText,E=T.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",h.state.selected===E&&"selected"]),w,0,{onClick:function(){function A(){h.setSelected(E)}return A}()},E)}),L=B.length?B:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,L,0),g,function(){var T=C.singletonPopper;T===void 0?(T=(0,a.createPopper)(C.virtualElement,g,Object.assign({},c,{placement:"bottom-start"})),C.singletonPopper=T):(T.setOptions(Object.assign({},c,{placement:"bottom-start"})),T.update())},this.context)}}return v}(),b.setOpen=function(){function v(h){var g=this;this.setState(function(N){return Object.assign({},N,{open:h})}),h?setTimeout(function(){g.openMenu(),window.addEventListener("click",g.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return v}(),b.setSelected=function(){function v(h){this.setState(function(g){return Object.assign({},g,{selected:h})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(h)}return v}(),b.render=function(){function v(){var h=this,g=this.props,N=g.icon,x=g.iconRotation,B=g.iconSpin,L=g.clipSelectedText,T=L===void 0?!0:L,E=g.color,w=E===void 0?"default":E,A=g.dropdownStyle,O=g.over,M=g.nochevron,P=g.width,R=g.onClick,F=g.onSelected,_=g.selected,U=g.disabled,W=g.displayText,$=V(g,S),G=$.className,oe=V($,y),X=O?!this.state.open:this.state.open;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:P,className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+w,U&&"Button--disabled",G]),onClick:function(){function pe(me){U&&!h.state.open||(h.setOpen(!h.state.open),R&&R(me))}return pe}()},oe,{children:[N&&(0,e.createComponentVNode)(2,m.Icon,{name:N,rotation:x,spin:B,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",W||this.state.selected,0,{style:{overflow:T?"hidden":"visible"}}),M||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,m.Icon,{name:X?"chevron-up":"chevron-down"}),2)]})))}return v}(),C}(e.Component);k=f,f.renderedMenu=void 0,f.singletonPopper=void 0,f.currentOpenMenu=void 0,f.virtualElement={getBoundingClientRect:function(){function u(){var C,b;return(C=(b=k.currentOpenMenu)==null?void 0:b.getBoundingClientRect())!=null?C:s}return u}()}},39473:function(I,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","direction","wrap","align","justify","inline"],m=["className"],S=["className","style","grow","order","shrink","basis","align"],y=["className"];/** + */var t=r.Divider=function(){function o(m){var S=m.vertical,y=m.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",y&&"Divider--hidden",S?"Divider--vertical":"Divider--horizontal"]))}return o}()},60218:function(I,r,n){"use strict";r.__esModule=!0,r.DmIcon=void 0;var e=n(89005),a=n(79140),t=n(46085),o=n(91225),m=["className","direction","fallback","frame","icon_state","movement"];function S(d,f){if(d==null)return{};var l={};for(var C in d)if({}.hasOwnProperty.call(d,C)){if(f.includes(C))continue;l[C]=d[C]}return l}function y(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */y=function(){return f};var d,f={},l=Object.prototype,C=l.hasOwnProperty,b=Object.defineProperty||function(q,ae,J){q[ae]=J.value},v=typeof Symbol=="function"?Symbol:{},h=v.iterator||"@@iterator",g=v.asyncIterator||"@@asyncIterator",N=v.toStringTag||"@@toStringTag";function x(q,ae,J){return Object.defineProperty(q,ae,{value:J,enumerable:!0,configurable:!0,writable:!0}),q[ae]}try{x({},"")}catch(q){x=function(J,X,Q){return J[X]=Q}}function B(q,ae,J,X){var Q=ae&&ae.prototype instanceof M?ae:M,Z=Object.create(Q.prototype),te=new oe(X||[]);return b(Z,"_invoke",{value:ne(q,J,te)}),Z}function L(q,ae,J){try{return{type:"normal",arg:q.call(ae,J)}}catch(X){return{type:"throw",arg:X}}}f.wrap=B;var T="suspendedStart",E="suspendedYield",w="executing",A="completed",O={};function M(){}function P(){}function R(){}var F={};x(F,h,function(){return this});var _=Object.getPrototypeOf,U=_&&_(_(re([])));U&&U!==l&&C.call(U,h)&&(F=U);var W=R.prototype=M.prototype=Object.create(F);function $(q){["next","throw","return"].forEach(function(ae){x(q,ae,function(J){return this._invoke(ae,J)})})}function Y(q,ae){function J(Q,Z,te,fe){var ye=L(q[Q],q,Z);if(ye.type!=="throw"){var pe=ye.arg,Le=pe.value;return Le&&typeof Le=="object"&&C.call(Le,"__await")?ae.resolve(Le.__await).then(function(D){J("next",D,te,fe)},function(D){J("throw",D,te,fe)}):ae.resolve(Le).then(function(D){pe.value=D,te(pe)},function(D){return J("throw",D,te,fe)})}fe(ye.arg)}var X;b(this,"_invoke",{value:function(){function Q(Z,te){function fe(){return new ae(function(ye,pe){J(Z,te,ye,pe)})}return X=X?X.then(fe,fe):fe()}return Q}()})}function ne(q,ae,J){var X=T;return function(Q,Z){if(X===w)throw Error("Generator is already running");if(X===A){if(Q==="throw")throw Z;return{value:d,done:!0}}for(J.method=Q,J.arg=Z;;){var te=J.delegate;if(te){var fe=G(te,J);if(fe){if(fe===O)continue;return fe}}if(J.method==="next")J.sent=J._sent=J.arg;else if(J.method==="throw"){if(X===T)throw X=A,J.arg;J.dispatchException(J.arg)}else J.method==="return"&&J.abrupt("return",J.arg);X=w;var ye=L(q,ae,J);if(ye.type==="normal"){if(X=J.done?A:E,ye.arg===O)continue;return{value:ye.arg,done:J.done}}ye.type==="throw"&&(X=A,J.method="throw",J.arg=ye.arg)}}}function G(q,ae){var J=ae.method,X=q.iterator[J];if(X===d)return ae.delegate=null,J==="throw"&&q.iterator.return&&(ae.method="return",ae.arg=d,G(q,ae),ae.method==="throw")||J!=="return"&&(ae.method="throw",ae.arg=new TypeError("The iterator does not provide a '"+J+"' method")),O;var Q=L(X,q.iterator,ae.arg);if(Q.type==="throw")return ae.method="throw",ae.arg=Q.arg,ae.delegate=null,O;var Z=Q.arg;return Z?Z.done?(ae[q.resultName]=Z.value,ae.next=q.nextLoc,ae.method!=="return"&&(ae.method="next",ae.arg=d),ae.delegate=null,O):Z:(ae.method="throw",ae.arg=new TypeError("iterator result is not an object"),ae.delegate=null,O)}function le(q){var ae={tryLoc:q[0]};1 in q&&(ae.catchLoc=q[1]),2 in q&&(ae.finallyLoc=q[2],ae.afterLoc=q[3]),this.tryEntries.push(ae)}function de(q){var ae=q.completion||{};ae.type="normal",delete ae.arg,q.completion=ae}function oe(q){this.tryEntries=[{tryLoc:"root"}],q.forEach(le,this),this.reset(!0)}function re(q){if(q||q===""){var ae=q[h];if(ae)return ae.call(q);if(typeof q.next=="function")return q;if(!isNaN(q.length)){var J=-1,X=function(){function Q(){for(;++J=0;--Q){var Z=this.tryEntries[Q],te=Z.completion;if(Z.tryLoc==="root")return X("end");if(Z.tryLoc<=this.prev){var fe=C.call(Z,"catchLoc"),ye=C.call(Z,"finallyLoc");if(fe&&ye){if(this.prev=0;--X){var Q=this.tryEntries[X];if(Q.tryLoc<=this.prev&&C.call(Q,"finallyLoc")&&this.prev=0;--J){var X=this.tryEntries[J];if(X.finallyLoc===ae)return this.complete(X.completion,X.afterLoc),de(X),O}}return q}(),catch:function(){function q(ae){for(var J=this.tryEntries.length-1;J>=0;--J){var X=this.tryEntries[J];if(X.tryLoc===ae){var Q=X.completion;if(Q.type==="throw"){var Z=Q.arg;de(X)}return Z}}throw Error("illegal catch attempt")}return q}(),delegateYield:function(){function q(ae,J,X){return this.delegate={iterator:re(ae),resultName:J,nextLoc:X},this.method==="next"&&(this.arg=d),O}return q}()},f}function k(d,f,l,C,b,v,h){try{var g=d[v](h),N=g.value}catch(x){return void l(x)}g.done?f(N):Promise.resolve(N).then(C,b)}function V(d){return function(){var f=this,l=arguments;return new Promise(function(C,b){var v=d.apply(f,l);function h(N){k(v,C,b,h,g,"next",N)}function g(N){k(v,C,b,h,g,"throw",N)}h(void 0)})}}function p(d,f){d.prototype=Object.create(f.prototype),d.prototype.constructor=d,i(d,f)}function i(d,f){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,C){return l.__proto__=C,l},i(d,f)}var c=function(d){return d[d.NORTH=1]="NORTH",d[d.SOUTH=2]="SOUTH",d[d.EAST=4]="EAST",d[d.WEST=8]="WEST",d[d.NORTHEAST=5]="NORTHEAST",d[d.NORTHWEST=9]="NORTHWEST",d[d.SOUTHEAST=6]="SOUTHEAST",d[d.SOUTHWEST=10]="SOUTHWEST",d}(c||{}),s,u=r.DmIcon=function(d){function f(C){var b;return b=d.call(this,C)||this,b.state={iconRef:""},b}p(f,d);var l=f.prototype;return l.fetchRefMap=function(){var C=V(y().mark(function(){function v(){var h,g;return y().wrap(function(){function N(x){for(;;)switch(x.prev=x.next){case 0:return x.prev=0,x.next=3,(0,t.fetchRetry)((0,a.resolveAsset)("icon_ref_map.json"));case 3:return h=x.sent,x.next=6,h.json();case 6:g=x.sent,s=g,this.setState({iconRef:g[this.props.icon]||""}),x.next=14;break;case 11:return x.prev=11,x.t0=x.catch(0),x.abrupt("return");case 14:case"end":return x.stop()}}return N}(),v,this,[[0,11]])}return v}()));function b(){return C.apply(this,arguments)}return b}(),l.componentDidMount=function(){function C(){s?this.setState({iconRef:s[this.props.icon]}):this.fetchRefMap()}return C}(),l.componentDidUpdate=function(){function C(b){b.icon!==this.props.icon&&(s?this.setState({iconRef:s[this.props.icon]}):this.fetchRefMap())}return C}(),l.render=function(){function C(){var b=this.props,v=b.className,h=b.direction,g=h===void 0?c.SOUTH:h,N=b.fallback,x=b.frame,B=x===void 0?1:x,L=b.icon_state,T=b.movement,E=T===void 0?!1:T,w=S(b,m),A=this.state.iconRef,O=A+"?state="+L+"&dir="+g+"&movement="+!!E+"&frame="+B;return A?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Image,Object.assign({fixErrors:!0,src:O},w))):N||null}return C}(),f}(e.Component)},20342:function(I,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474);function m(p,i){p.prototype=Object.create(i.prototype),p.prototype.constructor=p,S(p,i)}function S(p,i){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,s){return c.__proto__=s,c},S(p,i)}var y=400,k=function(i,c){return i.screenX*c[0]+i.screenY*c[1]},V=r.DraggableControl=function(p){function i(s){var u;return u=p.call(this,s)||this,u.inputRef=(0,e.createRef)(),u.state={originalValue:s.value,value:s.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},u.flickerTimer=null,u.suppressFlicker=function(){var d=u.props.suppressFlicker;d>0&&(u.setState({suppressingFlicker:!0}),clearTimeout(u.flickerTimer),u.flickerTimer=setTimeout(function(){return u.setState({suppressingFlicker:!1})},d))},u.handleDragStart=function(d){var f=u.props,l=f.value,C=f.dragMatrix,b=f.disabled,v=u.state.editing;v||b||(document.body.style["pointer-events"]="none",u.ref=d.currentTarget,u.setState({originalValue:l,dragging:!1,value:l,origin:k(d,C)}),u.timer=setTimeout(function(){u.setState({dragging:!0})},250),u.dragInterval=setInterval(function(){var h=u.state,g=h.dragging,N=h.value,x=u.props.onDrag;g&&x&&x(d,N)},u.props.updateRate||y),document.addEventListener("mousemove",u.handleDragMove),document.addEventListener("mouseup",u.handleDragEnd))},u.handleDragMove=function(d){var f,l=u.props,C=l.minValue,b=l.maxValue,v=l.step,h=l.dragMatrix,g=l.disabled;if(!g){var N=u.ref.offsetWidth/((b-C)/v),x=(f=u.props.stepPixelSize)!=null?f:N;typeof x=="function"&&(x=x(N)),u.setState(function(B){var L=Object.assign({},B),T=B.origin,E=k(d,h)-T;if(B.dragging){var w=Math.trunc(E/x);L.value=(0,a.clamp)(Math.floor(L.originalValue/v)*v+w*v,C,b)}else Math.abs(E)>4&&(L.dragging=!0);return L})}},u.handleDragEnd=function(d){var f=u.props,l=f.onChange,C=f.onDrag,b=u.state,v=b.dragging,h=b.value;if(document.body.style["pointer-events"]="auto",clearTimeout(u.timer),clearInterval(u.dragInterval),u.setState({originalValue:null,dragging:!1,editing:!v,origin:null}),document.removeEventListener("mousemove",u.handleDragMove),document.removeEventListener("mouseup",u.handleDragEnd),v)u.suppressFlicker(),l&&l(d,h),C&&C(d,h);else if(u.inputRef){var g=u.inputRef.current;g.value=h;try{g.focus(),g.select()}catch(N){}}},u}m(i,p);var c=i.prototype;return c.render=function(){function s(){var u=this,d=this.state,f=d.dragging,l=d.editing,C=d.value,b=d.suppressingFlicker,v=this.props,h=v.animated,g=v.value,N=v.unit,x=v.minValue,B=v.maxValue,L=v.format,T=v.onChange,E=v.onDrag,w=v.children,A=v.height,O=v.lineHeight,M=v.fontSize,P=v.disabled,R=g;(f||b)&&(R=C);var F=function(){function W($){return $+(N?" "+N:"")}return W}(),_=h&&!f&&!b&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:R,format:L,children:F})||F(L?L(R):R),U=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!l||P?"none":void 0,height:A,"line-height":O,"font-size":M},onBlur:function(){function W($){if(l){var Y=(0,a.clamp)(parseFloat($.target.value),x,B);if(Number.isNaN(Y)){u.setState({editing:!1});return}u.setState({editing:!1,value:Y}),u.suppressFlicker(),T&&T($,Y),E&&E($,Y)}}return W}(),onKeyDown:function(){function W($){if($.keyCode===13){var Y=(0,a.clamp)(parseFloat($.target.value),x,B);if(Number.isNaN(Y)){u.setState({editing:!1});return}u.setState({editing:!1,value:Y}),u.suppressFlicker(),T&&T($,Y),E&&E($,Y);return}if($.keyCode===27){u.setState({editing:!1});return}}return W}(),disabled:P},null,this.inputRef);return w({dragging:f,editing:l,value:g,displayValue:R,displayElement:_,inputElement:U,handleDragStart:this.handleDragStart})}return s}(),i}(e.Component);V.defaultHooks=t.pureComponentHooks,V.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},87099:function(I,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(89005),a=n(95996),t=n(35840),o=n(55937),m=n(1331),S=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],y=["className"],k;function V(l,C){if(l==null)return{};var b={};for(var v in l)if({}.hasOwnProperty.call(l,v)){if(C.includes(v))continue;b[v]=l[v]}return b}function p(l,C){l.prototype=Object.create(C.prototype),l.prototype.constructor=l,i(l,C)}function i(l,C){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,v){return b.__proto__=v,b},i(l,C)}var c={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},s={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function l(){return null}return l}()},u="Layout Dropdown__menu",d="Layout Dropdown__menu-scroll",f=r.Dropdown=function(l){function C(v){var h;return h=l.call(this,v)||this,h.menuContents=void 0,h.handleClick=function(){h.state.open&&h.setOpen(!1)},h.state={open:!1,selected:h.props.selected},h.menuContents=null,h}p(C,l);var b=C.prototype;return b.getDOMNode=function(){function v(){return(0,e.findDOMFromVNode)(this.$LI,!0)}return v}(),b.componentDidMount=function(){function v(){var h=this.getDOMNode()}return v}(),b.openMenu=function(){function v(){var h=C.renderedMenu;h===void 0&&(h=document.createElement("div"),h.className=u,document.body.appendChild(h),C.renderedMenu=h);var g=this.getDOMNode();C.currentOpenMenu=g,h.scrollTop=0,h.style.width=this.props.menuWidth||g.offsetWidth+"px",h.style.opacity="1",h.style.pointerEvents="auto",setTimeout(function(){var N;(N=C.renderedMenu)==null||N.focus()},400),this.renderMenuContent()}return v}(),b.closeMenu=function(){function v(){C.currentOpenMenu===this.getDOMNode()&&(C.currentOpenMenu=void 0,C.renderedMenu.style.opacity="0",C.renderedMenu.style.pointerEvents="none")}return v}(),b.componentWillUnmount=function(){function v(){this.closeMenu(),this.setOpen(!1)}return v}(),b.renderMenuContent=function(){function v(){var h=this,g=C.renderedMenu;if(g){g.offsetHeight>200?g.className=d:g.className=u;var N=this.props.options,x=N===void 0?[]:N,B=x.map(function(T){var E,w;return typeof T=="string"?(w=T,E=T):T!==null&&(w=T.displayText,E=T.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",h.state.selected===E&&"selected"]),w,0,{onClick:function(){function A(){h.setSelected(E)}return A}()},E)}),L=B.length?B:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,L,0),g,function(){var T=C.singletonPopper;T===void 0?(T=(0,a.createPopper)(C.virtualElement,g,Object.assign({},c,{placement:"bottom-start"})),C.singletonPopper=T):(T.setOptions(Object.assign({},c,{placement:"bottom-start"})),T.update())},this.context)}}return v}(),b.setOpen=function(){function v(h){var g=this;this.setState(function(N){return Object.assign({},N,{open:h})}),h?setTimeout(function(){g.openMenu(),window.addEventListener("click",g.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return v}(),b.setSelected=function(){function v(h){this.setState(function(g){return Object.assign({},g,{selected:h})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(h)}return v}(),b.render=function(){function v(){var h=this,g=this.props,N=g.icon,x=g.iconRotation,B=g.iconSpin,L=g.clipSelectedText,T=L===void 0?!0:L,E=g.color,w=E===void 0?"default":E,A=g.dropdownStyle,O=g.over,M=g.nochevron,P=g.width,R=g.onClick,F=g.onSelected,_=g.selected,U=g.disabled,W=g.displayText,$=V(g,S),Y=$.className,ne=V($,y),G=O?!this.state.open:this.state.open;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:P,className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+w,U&&"Button--disabled",Y]),onClick:function(){function le(de){U&&!h.state.open||(h.setOpen(!h.state.open),R&&R(de))}return le}()},ne,{children:[N&&(0,e.createComponentVNode)(2,m.Icon,{name:N,rotation:x,spin:B,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",W||this.state.selected,0,{style:{overflow:T?"hidden":"visible"}}),M||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,m.Icon,{name:G?"chevron-up":"chevron-down"}),2)]})))}return v}(),C}(e.Component);k=f,f.renderedMenu=void 0,f.singletonPopper=void 0,f.currentOpenMenu=void 0,f.virtualElement={getBoundingClientRect:function(){function l(){var C,b;return(C=(b=k.currentOpenMenu)==null?void 0:b.getBoundingClientRect())!=null?C:s}return l}()}},39473:function(I,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","direction","wrap","align","justify","inline"],m=["className"],S=["className","style","grow","order","shrink","basis","align"],y=["className"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function k(d,f){if(d==null)return{};var u={};for(var C in d)if({}.hasOwnProperty.call(d,C)){if(f.includes(C))continue;u[C]=d[C]}return u}var V=r.computeFlexClassName=function(){function d(f){return(0,a.classes)(["Flex",f.inline&&"Flex--inline",(0,t.computeBoxClassName)(f)])}return d}(),p=r.computeFlexProps=function(){function d(f){var u=f.className,C=f.direction,b=f.wrap,v=f.align,h=f.justify,g=f.inline,N=k(f,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},N.style,{"flex-direction":C,"flex-wrap":b===!0?"wrap":b,"align-items":v,"justify-content":h})},N))}return d}(),i=r.Flex=function(){function d(f){var u=f.className,C=k(f,m);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([u,V(C)]),null,1,Object.assign({},p(C))))}return d}();i.defaultHooks=a.pureComponentHooks;var c=r.computeFlexItemClassName=function(){function d(f){return(0,a.classes)(["Flex__item",(0,t.computeBoxClassName)(f)])}return d}(),s=r.computeFlexItemProps=function(){function d(f){var u=f.className,C=f.style,b=f.grow,v=f.order,h=f.shrink,g=f.basis,N=g===void 0?f.width:g,x=f.align,B=k(f,S);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},C,{"flex-grow":b!==void 0&&Number(b),"flex-shrink":h!==void 0&&Number(h),"flex-basis":(0,t.unit)(N),order:v,"align-self":x})},B))}return d}(),l=function(f){var u=f.className,C=k(f,y);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([u,c(f)]),null,1,Object.assign({},s(C))))};l.defaultHooks=a.pureComponentHooks,i.Item=l},79646:function(I,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(89005),a=n(36352),t=n(35840),o=["children"],m=["size","style"];/** + */function k(d,f){if(d==null)return{};var l={};for(var C in d)if({}.hasOwnProperty.call(d,C)){if(f.includes(C))continue;l[C]=d[C]}return l}var V=r.computeFlexClassName=function(){function d(f){return(0,a.classes)(["Flex",f.inline&&"Flex--inline",(0,t.computeBoxClassName)(f)])}return d}(),p=r.computeFlexProps=function(){function d(f){var l=f.className,C=f.direction,b=f.wrap,v=f.align,h=f.justify,g=f.inline,N=k(f,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},N.style,{"flex-direction":C,"flex-wrap":b===!0?"wrap":b,"align-items":v,"justify-content":h})},N))}return d}(),i=r.Flex=function(){function d(f){var l=f.className,C=k(f,m);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([l,V(C)]),null,1,Object.assign({},p(C))))}return d}();i.defaultHooks=a.pureComponentHooks;var c=r.computeFlexItemClassName=function(){function d(f){return(0,a.classes)(["Flex__item",(0,t.computeBoxClassName)(f)])}return d}(),s=r.computeFlexItemProps=function(){function d(f){var l=f.className,C=f.style,b=f.grow,v=f.order,h=f.shrink,g=f.basis,N=g===void 0?f.width:g,x=f.align,B=k(f,S);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},C,{"flex-grow":b!==void 0&&Number(b),"flex-shrink":h!==void 0&&Number(h),"flex-basis":(0,t.unit)(N),order:v,"align-self":x})},B))}return d}(),u=function(f){var l=f.className,C=k(f,y);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([l,c(f)]),null,1,Object.assign({},s(C))))};u.defaultHooks=a.pureComponentHooks,i.Item=u},79646:function(I,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(89005),a=n(36352),t=n(35840),o=["children"],m=["size","style"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(V,p){if(V==null)return{};var i={};for(var c in V)if({}.hasOwnProperty.call(V,c)){if(p.includes(c))continue;i[c]=V[c]}return i}var y=r.Grid=function(){function V(p){var i=p.children,c=S(p,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},c,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:i})})))}return V}();y.defaultHooks=t.pureComponentHooks;var k=r.GridColumn=function(){function V(p){var i=p.size,c=i===void 0?1:i,s=p.style,l=S(p,m);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:c+"%"},s)},l)))}return V}();y.defaultHooks=t.pureComponentHooks,y.Column=k},1331:function(I,r,n){"use strict";r.__esModule=!0,r.IconStack=r.Icon=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["name","size","spin","className","style","rotation","inverse"],m=["className","style","children"];/** + */function S(V,p){if(V==null)return{};var i={};for(var c in V)if({}.hasOwnProperty.call(V,c)){if(p.includes(c))continue;i[c]=V[c]}return i}var y=r.Grid=function(){function V(p){var i=p.children,c=S(p,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},c,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:i})})))}return V}();y.defaultHooks=t.pureComponentHooks;var k=r.GridColumn=function(){function V(p){var i=p.size,c=i===void 0?1:i,s=p.style,u=S(p,m);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:c+"%"},s)},u)))}return V}();y.defaultHooks=t.pureComponentHooks,y.Column=k},1331:function(I,r,n){"use strict";r.__esModule=!0,r.IconStack=r.Icon=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["name","size","spin","className","style","rotation","inverse"],m=["className","style","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(p,i){if(p==null)return{};var c={};for(var s in p)if({}.hasOwnProperty.call(p,s)){if(i.includes(s))continue;c[s]=p[s]}return c}var y=/-o$/,k=r.Icon=function(){function p(i){var c=i.name,s=i.size,l=i.spin,d=i.className,f=i.style,u=f===void 0?{}:f,C=i.rotation,b=i.inverse,v=S(i,o);s&&(u["font-size"]=s*100+"%"),typeof C=="number"&&(u.transform="rotate("+C+"deg)");var h=y.test(c),g=c.replace(y,"");return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"i",className:(0,a.classes)(["Icon",d,h?"far":"fas","fa-"+g,l&&"fa-spin"]),style:u},v)))}return p}();k.defaultHooks=a.pureComponentHooks;var V=r.IconStack=function(){function p(i){var c=i.className,s=i.style,l=s===void 0?{}:s,d=i.children,f=S(i,m);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"span",class:(0,a.classes)(["IconStack",c]),style:l},f,{children:d})))}return p}();k.Stack=V},91225:function(I,r,n){"use strict";r.__esModule=!0,r.Image=void 0;var e=n(89005),a=n(55937),t=["fixBlur","fixErrors","objectFit","src"];function o(V,p){if(V==null)return{};var i={};for(var c in V)if({}.hasOwnProperty.call(V,c)){if(p.includes(c))continue;i[c]=V[c]}return i}function m(V,p){V.prototype=Object.create(p.prototype),V.prototype.constructor=V,S(V,p)}function S(V,p){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,c){return i.__proto__=c,i},S(V,p)}var y=5,k=r.Image=function(V){function p(){for(var c,s=arguments.length,l=new Array(s),d=0;d0;d&&(l=c.containerRef)!=null&&l.current?c.props.onMove(S(c.containerRef.current,s)):c.toggleDocumentEvents(!1)},c.handleMoveEnd=function(){c.toggleDocumentEvents(!1)},c.handleKeyDown=function(s){var l=s.which||s.keyCode;l<37||l>40||(s.preventDefault(),c.props.onKey({left:l===39?.05:l===37?-.05:0,top:l===40?.05:l===38?-.05:0}))},c.props=i,c.containerRef=(0,e.createRef)(),c}t(V,k);var p=V.prototype;return p.toggleDocumentEvents=function(){function i(c){var s,l=(s=this.containerRef)==null?void 0:s.current,d=m(l),f=c?d.addEventListener:d.removeEventListener;f("mousemove",this.handleMove),f("mouseup",this.handleMoveEnd)}return i}(),p.componentDidMount=function(){function i(){this.toggleDocumentEvents(!0)}return i}(),p.componentWillUnmount=function(){function i(){this.toggleDocumentEvents(!1)}return i}(),p.render=function(){function i(){return(0,e.normalizeProps)((0,e.createVNode)(1,"div","react-colorful__interactive",this.props.children,0,Object.assign({},this.props,{style:this.props.style,onMouseDown:this.handleMoveStart,onKeyDown:this.handleKeyDown,tabIndex:0,role:"slider"}),null,this.containerRef))}return i}(),V}(e.Component)},76334:function(I,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(55937),m=n(20342),S=n(59263),y=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"];/** +*/var p=r.toInputValue=function(){function c(s){return typeof s!="number"&&typeof s!="string"?"":String(s)}return c}(),i=r.Input=function(c){function s(){var d;return d=c.call(this)||this,d.inputRef=(0,e.createRef)(),d.state={editing:!1},d.handleInput=function(f){var l=d.state.editing,C=d.props.onInput;l||d.setEditing(!0),C&&C(f,f.target.value)},d.handleFocus=function(f){var l=d.state.editing;l||d.setEditing(!0)},d.handleBlur=function(f){var l=d.state.editing,C=d.props.onChange;l&&(d.setEditing(!1),C&&C(f,f.target.value))},d.handleKeyDown=function(f){var l=d.props,C=l.onInput,b=l.onChange,v=l.onEnter;if(f.keyCode===o.KEY_ENTER){d.setEditing(!1),b&&b(f,f.target.value),C&&C(f,f.target.value),v&&v(f,f.target.value),d.props.selfClear?f.target.value="":f.target.blur();return}if(f.keyCode===o.KEY_ESCAPE){d.setEditing(!1),f.target.value=p(d.props.value),f.target.blur();return}},d}k(s,c);var u=s.prototype;return u.componentDidMount=function(){function d(){var f=this,l=this.props.value,C=this.inputRef.current;C&&(C.value=p(l),C.selectionStart=0,C.selectionEnd=C.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){C.focus(),f.props.autoSelect&&C.select()},1)}return d}(),u.componentDidUpdate=function(){function d(f,l){var C=this.state.editing,b=f.value,v=this.props.value,h=this.inputRef.current;h&&!C&&b!==v&&(h.value=p(v))}return d}(),u.setEditing=function(){function d(f){this.setState({editing:f})}return d}(),u.render=function(){function d(){var f=this.props,l=f.selfClear,C=f.onInput,b=f.onChange,v=f.onEnter,h=f.value,g=f.maxLength,N=f.placeholder,x=f.autofocus,B=f.disabled,L=f.multiline,T=f.cols,E=T===void 0?32:T,w=f.rows,A=w===void 0?4:w,O=y(f,m),M=O.className,P=O.fluid,R=O.monospace,F=y(O,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Input",P&&"Input--fluid",R&&"Input--monospace",B&&"Input--disabled",M])},F,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),L?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:N,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:g,cols:E,rows:A,disabled:B},null,this.inputRef):(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:N,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:g,disabled:B},null,this.inputRef)]})))}return d}(),s}(e.Component)},4454:function(I,r,n){"use strict";r.__esModule=!0,r.Interactive=void 0;var e=n(89005),a=n(44879);function t(k,V){k.prototype=Object.create(V.prototype),k.prototype.constructor=k,o(k,V)}function o(k,V){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,i){return p.__proto__=i,p},o(k,V)}var m=function(V){return V&&V.ownerDocument.defaultView||self},S=function(V,p){var i=V.getBoundingClientRect(),c=p;return{left:(0,a.clamp)((c.pageX-(i.left+m(V).pageXOffset))/i.width,0,1),top:(0,a.clamp)((c.pageY-(i.top+m(V).pageYOffset))/i.height,0,1)}},y=r.Interactive=function(k){function V(i){var c;return c=k.call(this)||this,c.containerRef=void 0,c.props=void 0,c.handleMoveStart=function(s){var u,d=(u=c.containerRef)==null?void 0:u.current;d&&(s.preventDefault(),d.focus(),c.props.onMove(S(d,s)),c.toggleDocumentEvents(!0))},c.handleMove=function(s){var u;s.preventDefault();var d=s.buttons>0;d&&(u=c.containerRef)!=null&&u.current?c.props.onMove(S(c.containerRef.current,s)):c.toggleDocumentEvents(!1)},c.handleMoveEnd=function(){c.toggleDocumentEvents(!1)},c.handleKeyDown=function(s){var u=s.which||s.keyCode;u<37||u>40||(s.preventDefault(),c.props.onKey({left:u===39?.05:u===37?-.05:0,top:u===40?.05:u===38?-.05:0}))},c.props=i,c.containerRef=(0,e.createRef)(),c}t(V,k);var p=V.prototype;return p.toggleDocumentEvents=function(){function i(c){var s,u=(s=this.containerRef)==null?void 0:s.current,d=m(u),f=c?d.addEventListener:d.removeEventListener;f("mousemove",this.handleMove),f("mouseup",this.handleMoveEnd)}return i}(),p.componentDidMount=function(){function i(){this.toggleDocumentEvents(!0)}return i}(),p.componentWillUnmount=function(){function i(){this.toggleDocumentEvents(!1)}return i}(),p.render=function(){function i(){return(0,e.normalizeProps)((0,e.createVNode)(1,"div","react-colorful__interactive",this.props.children,0,Object.assign({},this.props,{style:this.props.style,onMouseDown:this.handleMoveStart,onKeyDown:this.handleKeyDown,tabIndex:0,role:"slider"}),null,this.containerRef))}return i}(),V}(e.Component)},76334:function(I,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(55937),m=n(20342),S=n(59263),y=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function k(p,i){if(p==null)return{};var c={};for(var s in p)if({}.hasOwnProperty.call(p,s)){if(i.includes(s))continue;c[s]=p[s]}return c}var V=r.Knob=function(){function p(i){var c=i.animated,s=i.format,l=i.maxValue,d=i.minValue,f=i.onChange,u=i.onDrag,C=i.step,b=i.stepPixelSize,v=i.suppressFlicker,h=i.unit,g=i.value,N=i.className,x=i.style,B=i.fillValue,L=i.color,T=i.ranges,E=T===void 0?{}:T,w=i.size,A=w===void 0?1:w,O=i.bipolar,M=i.children,P=i.popUpPosition,R=k(i,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:s,maxValue:l,minValue:d,onChange:f,onDrag:u,step:C,stepPixelSize:b,suppressFlicker:v,unit:h,value:g},{children:function(){function F(_){var U=_.dragging,W=_.editing,$=_.value,G=_.displayValue,oe=_.displayElement,X=_.inputElement,pe=_.handleDragStart,me=(0,a.scale)(B!=null?B:G,d,l),ne=(0,a.scale)(G,d,l),re=L||(0,a.keyOfMatchingRange)(B!=null?B:$,E)||"default",q=(ne-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+re,O&&"Knob--bipolar",N,(0,o.computeBoxClassName)(R)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+q+"deg)"}}),2),U&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",P&&"Knob__popupValue--"+P]),oe,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((O?2.75:2)-me*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),X],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":A+"em"},x)},R)),{onMouseDown:pe})))}return F}()})))}return p}()},78621:function(I,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(89005),a=n(39473),t=["children"],o=["label","children"];/** + */function k(p,i){if(p==null)return{};var c={};for(var s in p)if({}.hasOwnProperty.call(p,s)){if(i.includes(s))continue;c[s]=p[s]}return c}var V=r.Knob=function(){function p(i){var c=i.animated,s=i.format,u=i.maxValue,d=i.minValue,f=i.onChange,l=i.onDrag,C=i.step,b=i.stepPixelSize,v=i.suppressFlicker,h=i.unit,g=i.value,N=i.className,x=i.style,B=i.fillValue,L=i.color,T=i.ranges,E=T===void 0?{}:T,w=i.size,A=w===void 0?1:w,O=i.bipolar,M=i.children,P=i.popUpPosition,R=k(i,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:s,maxValue:u,minValue:d,onChange:f,onDrag:l,step:C,stepPixelSize:b,suppressFlicker:v,unit:h,value:g},{children:function(){function F(_){var U=_.dragging,W=_.editing,$=_.value,Y=_.displayValue,ne=_.displayElement,G=_.inputElement,le=_.handleDragStart,de=(0,a.scale)(B!=null?B:Y,d,u),oe=(0,a.scale)(Y,d,u),re=L||(0,a.keyOfMatchingRange)(B!=null?B:$,E)||"default",q=(oe-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+re,O&&"Knob--bipolar",N,(0,o.computeBoxClassName)(R)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+q+"deg)"}}),2),U&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",P&&"Knob__popupValue--"+P]),ne,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((O?2.75:2)-de*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),G],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":A+"em"},x)},R)),{onMouseDown:le})))}return F}()})))}return p}()},78621:function(I,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(89005),a=n(39473),t=["children"],o=["label","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -157,56 +157,56 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var S=r.LabeledList=function(){function V(p){var i=p.children;return(0,e.createVNode)(1,"table","LabeledList",i,0)}return V}();S.defaultHooks=a.pureComponentHooks;var y=function(p){var i=p.className,c=p.label,s=p.labelColor,l=s===void 0?"label":s,d=p.color,f=p.textAlign,u=p.buttons,C=p.tooltip,b=p.content,v=p.children,h=(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",i]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:l,className:(0,a.classes)(["LabeledList__cell","LabeledList__label"]),children:c?c+":":null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:d,textAlign:f,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:u?void 0:2,children:[b,v]}),u&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",u,0)],0);return C&&(h=(0,e.createComponentVNode)(2,m.Tooltip,{content:C,children:h})),h};y.defaultHooks=a.pureComponentHooks;var k=function(p){var i=p.size?(0,t.unit)(Math.max(0,p.size-1)):0;return(0,e.createVNode)(1,"tr","LabeledList__row",(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Divider),2,{colSpan:3,style:{"padding-top":i,"padding-bottom":i}}),2)};k.defaultHooks=a.pureComponentHooks,S.Item=y,S.Divider=k},36077:function(I,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(61940),m=["className","children","onEnter"];/** + */var S=r.LabeledList=function(){function V(p){var i=p.children;return(0,e.createVNode)(1,"table","LabeledList",i,0)}return V}();S.defaultHooks=a.pureComponentHooks;var y=function(p){var i=p.className,c=p.label,s=p.labelColor,u=s===void 0?"label":s,d=p.color,f=p.textAlign,l=p.buttons,C=p.tooltip,b=p.content,v=p.children,h=(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",i]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:u,className:(0,a.classes)(["LabeledList__cell","LabeledList__label"]),children:c?c+":":null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:d,textAlign:f,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:l?void 0:2,children:[b,v]}),l&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",l,0)],0);return C&&(h=(0,e.createComponentVNode)(2,m.Tooltip,{content:C,children:h})),h};y.defaultHooks=a.pureComponentHooks;var k=function(p){var i=p.size?(0,t.unit)(Math.max(0,p.size-1)):0;return(0,e.createVNode)(1,"tr","LabeledList__row",(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Divider),2,{colSpan:3,style:{"padding-top":i,"padding-bottom":i}}),2)};k.defaultHooks=a.pureComponentHooks,S.Item=y,S.Divider=k},36077:function(I,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(61940),m=["className","children","onEnter"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(k,V){if(k==null)return{};var p={};for(var i in k)if({}.hasOwnProperty.call(k,i)){if(V.includes(i))continue;p[i]=k[i]}return p}var y=r.Modal=function(){function k(V){var p=V.className,i=V.children,c=V.onEnter,s=S(V,m),l;return c&&(l=function(){function d(f){f.keyCode===13&&c(f)}return d}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:l,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",p,(0,t.computeBoxClassName)(s)]),i,0,Object.assign({},(0,t.computeBoxProps)(s))))})}return k}()},73280:function(I,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(89005),a=n(36036),t=n(72253),o=n(29319),m=n(79911),S=n(79140);function y(l,d){l.prototype=Object.create(d.prototype),l.prototype.constructor=l,k(l,d)}function k(l,d){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,u){return f.__proto__=u,f},k(l,d)}var V=function(d){return d.stopPropagation&&d.stopPropagation(),d.preventDefault&&d.preventDefault(),d.cancelBubble=!0,d.returnValue=!1,!1},p=r.NanoMap=function(l){function d(u){var C;C=l.call(this,u)||this;var b=window.innerWidth/2-256,v=window.innerHeight/2-256;return C.state={offsetX:128,offsetY:48,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},C.handleDragStart=function(h){C.ref=h.target,C.setState({dragging:!1,originX:h.screenX,originY:h.screenY}),document.addEventListener("mousemove",C.handleDragMove),document.addEventListener("mouseup",C.handleDragEnd),V(h)},C.handleDragMove=function(h){C.setState(function(g){var N=Object.assign({},g),x=h.screenX-N.originX,B=h.screenY-N.originY;return g.dragging?(N.offsetX+=x,N.offsetY+=B,N.originX=h.screenX,N.originY=h.screenY):N.dragging=!0,N}),V(h)},C.handleDragEnd=function(h){C.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",C.handleDragMove),document.removeEventListener("mouseup",C.handleDragEnd),V(h)},C.handleZoom=function(h,g){C.setState(function(N){var x=Math.min(Math.max(g,1),8),B=(x-N.zoom)*1.5;return N.zoom=x,N.offsetX=N.offsetX-262*B,N.offsetY=N.offsetY-256*B,u.onZoom&&u.onZoom(N.zoom),N})},C.handleZChange=function(h){u.setZCurrent(h)},C}y(d,l);var f=d.prototype;return f.render=function(){function u(){var C=(0,t.useBackend)(this.context),b=C.config,v=this.state,h=v.dragging,g=v.offsetX,N=v.offsetY,x=v.zoom,B=x===void 0?1:x,L=this.props.children,T=b.map+"_nanomap_z"+(this.props.zLevels.indexOf(this.props.z_current)+1)+".png",E=510*B+"px",w={width:E,height:E,"margin-top":N+"px","margin-left":g+"px",overflow:"hidden",position:"relative","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:h?"move":"auto"},A={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:w,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,S.resolveAsset)(T),style:A}),(0,e.createComponentVNode)(2,a.Box,{children:L})]}),(0,e.createComponentVNode)(2,c,{zoom:B,onZoom:this.handleZoom}),(0,e.createComponentVNode)(2,s,{z_current:this.props.z_current,z_levels:this.props.zLevels,z_names:this.props.zNames,onZChange:this.handleZChange})]})}return u}(),d}(e.Component),i=function(d,f){var u=d.x,C=d.y,b=d.z,v=d.z_current,h=d.zoom,g=h===void 0?1:h,N=d.icon,x=d.tooltip,B=d.color,L=d.bordered,T=d.onClick;if(v!==b)return null;var E=u*2*g-g-3,w=C*2*g-g-3;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:x,children:(0,e.createComponentVNode)(2,a.Box,{position:"absolute",className:L?"NanoMap__marker__bordered":"NanoMap__marker",lineHeight:"0",bottom:w+"px",left:E+"px",onClick:T,children:(0,e.createComponentVNode)(2,a.Icon,{name:N,color:B,fontSize:"6px"})})}),2)};p.Marker=i;var c=function(d,f){return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Zoom",children:(0,e.createComponentVNode)(2,m.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function u(C){return C+"x"}return u}(),value:d.zoom,onDrag:function(){function u(C,b){return d.onZoom(C,b)}return u}()})})})})};p.Zoomer=c;var s=function(d){if(d.z_levels.length!==1)return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zlevel",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Z-level",children:(0,e.createComponentVNode)(2,a.Dropdown,{width:"100%",selected:d.z_names[d.z_levels.indexOf(d.z_current)],options:d.z_names,onSelected:function(){function f(u){return d.onZChange(d.z_levels[d.z_names.indexOf(u)])}return f}()})})})})}},74733:function(I,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","color","info","warning","success","danger"];/** + */function S(k,V){if(k==null)return{};var p={};for(var i in k)if({}.hasOwnProperty.call(k,i)){if(V.includes(i))continue;p[i]=k[i]}return p}var y=r.Modal=function(){function k(V){var p=V.className,i=V.children,c=V.onEnter,s=S(V,m),u;return c&&(u=function(){function d(f){f.keyCode===13&&c(f)}return d}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:u,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",p,(0,t.computeBoxClassName)(s)]),i,0,Object.assign({},(0,t.computeBoxProps)(s))))})}return k}()},73280:function(I,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(89005),a=n(36036),t=n(72253),o=n(29319),m=n(79911),S=n(79140);function y(u,d){u.prototype=Object.create(d.prototype),u.prototype.constructor=u,k(u,d)}function k(u,d){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,l){return f.__proto__=l,f},k(u,d)}var V=function(d){return d.stopPropagation&&d.stopPropagation(),d.preventDefault&&d.preventDefault(),d.cancelBubble=!0,d.returnValue=!1,!1},p=r.NanoMap=function(u){function d(l){var C;C=u.call(this,l)||this;var b=window.innerWidth/2-256,v=window.innerHeight/2-256;return C.state={offsetX:128,offsetY:48,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},C.handleDragStart=function(h){C.ref=h.target,C.setState({dragging:!1,originX:h.screenX,originY:h.screenY}),document.addEventListener("mousemove",C.handleDragMove),document.addEventListener("mouseup",C.handleDragEnd),V(h)},C.handleDragMove=function(h){C.setState(function(g){var N=Object.assign({},g),x=h.screenX-N.originX,B=h.screenY-N.originY;return g.dragging?(N.offsetX+=x,N.offsetY+=B,N.originX=h.screenX,N.originY=h.screenY):N.dragging=!0,N}),V(h)},C.handleDragEnd=function(h){C.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",C.handleDragMove),document.removeEventListener("mouseup",C.handleDragEnd),V(h)},C.handleZoom=function(h,g){C.setState(function(N){var x=Math.min(Math.max(g,1),8),B=(x-N.zoom)*1.5;return N.zoom=x,N.offsetX=N.offsetX-262*B,N.offsetY=N.offsetY-256*B,l.onZoom&&l.onZoom(N.zoom),N})},C.handleZChange=function(h){l.setZCurrent(h)},C}y(d,u);var f=d.prototype;return f.render=function(){function l(){var C=(0,t.useBackend)(this.context),b=C.config,v=this.state,h=v.dragging,g=v.offsetX,N=v.offsetY,x=v.zoom,B=x===void 0?1:x,L=this.props.children,T=b.map+"_nanomap_z"+(this.props.zLevels.indexOf(this.props.z_current)+1)+".png",E=510*B+"px",w={width:E,height:E,"margin-top":N+"px","margin-left":g+"px",overflow:"hidden",position:"relative","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:h?"move":"auto"},A={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:w,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,S.resolveAsset)(T),style:A}),(0,e.createComponentVNode)(2,a.Box,{children:L})]}),(0,e.createComponentVNode)(2,c,{zoom:B,onZoom:this.handleZoom}),(0,e.createComponentVNode)(2,s,{z_current:this.props.z_current,z_levels:this.props.zLevels,z_names:this.props.zNames,onZChange:this.handleZChange})]})}return l}(),d}(e.Component),i=function(d,f){var l=d.x,C=d.y,b=d.z,v=d.z_current,h=d.zoom,g=h===void 0?1:h,N=d.icon,x=d.tooltip,B=d.color,L=d.bordered,T=d.onClick;if(v!==b)return null;var E=l*2*g-g-3,w=C*2*g-g-3;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:x,children:(0,e.createComponentVNode)(2,a.Box,{position:"absolute",className:L?"NanoMap__marker__bordered":"NanoMap__marker",lineHeight:"0",bottom:w+"px",left:E+"px",onClick:T,children:(0,e.createComponentVNode)(2,a.Icon,{name:N,color:B,fontSize:"6px"})})}),2)};p.Marker=i;var c=function(d,f){return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Zoom",children:(0,e.createComponentVNode)(2,m.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function l(C){return C+"x"}return l}(),value:d.zoom,onDrag:function(){function l(C,b){return d.onZoom(C,b)}return l}()})})})})};p.Zoomer=c;var s=function(d){if(d.z_levels.length!==1)return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zlevel",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Z-level",children:(0,e.createComponentVNode)(2,a.Dropdown,{width:"100%",selected:d.z_names[d.z_levels.indexOf(d.z_current)],options:d.z_names,onSelected:function(){function f(l){return d.onZChange(d.z_levels[d.z_names.indexOf(l)])}return f}()})})})})}},74733:function(I,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","color","info","warning","success","danger"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function m(y,k){if(y==null)return{};var V={};for(var p in y)if({}.hasOwnProperty.call(y,p)){if(k.includes(p))continue;V[p]=y[p]}return V}var S=r.NoticeBox=function(){function y(k){var V=k.className,p=k.color,i=k.info,c=k.warning,s=k.success,l=k.danger,d=m(k,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",p&&"NoticeBox--color--"+p,i&&"NoticeBox--type--info",s&&"NoticeBox--type--success",l&&"NoticeBox--type--danger",V])},d)))}return y}();S.defaultHooks=a.pureComponentHooks},59263:function(I,r,n){"use strict";r.__esModule=!0,r.NumberInput=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474),m=n(55937);function S(p,i){p.prototype=Object.create(i.prototype),p.prototype.constructor=p,y(p,i)}function y(p,i){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,s){return c.__proto__=s,c},y(p,i)}/** + */function m(y,k){if(y==null)return{};var V={};for(var p in y)if({}.hasOwnProperty.call(y,p)){if(k.includes(p))continue;V[p]=y[p]}return V}var S=r.NoticeBox=function(){function y(k){var V=k.className,p=k.color,i=k.info,c=k.warning,s=k.success,u=k.danger,d=m(k,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",p&&"NoticeBox--color--"+p,i&&"NoticeBox--type--info",s&&"NoticeBox--type--success",u&&"NoticeBox--type--danger",V])},d)))}return y}();S.defaultHooks=a.pureComponentHooks},59263:function(I,r,n){"use strict";r.__esModule=!0,r.NumberInput=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474),m=n(55937);function S(p,i){p.prototype=Object.create(i.prototype),p.prototype.constructor=p,y(p,i)}function y(p,i){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,s){return c.__proto__=s,c},y(p,i)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var k=400,V=r.NumberInput=function(p){function i(s){var l;l=p.call(this,s)||this;var d=s.value;return l.inputRef=(0,e.createRef)(),l.state={value:d,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},l.flickerTimer=null,l.suppressFlicker=function(){var f=l.props.suppressFlicker;f>0&&(l.setState({suppressingFlicker:!0}),clearTimeout(l.flickerTimer),l.flickerTimer=setTimeout(function(){return l.setState({suppressingFlicker:!1})},f))},l.handleDragStart=function(f){var u=l.props.value,C=l.state.editing;C||(document.body.style["pointer-events"]="none",l.ref=f.target,l.setState({dragging:!1,origin:f.screenY,value:u,internalValue:u}),l.timer=setTimeout(function(){l.setState({dragging:!0})},250),l.dragInterval=setInterval(function(){var b=l.state,v=b.dragging,h=b.value,g=l.props.onDrag;v&&g&&g(f,h)},l.props.updateRate||k),document.addEventListener("mousemove",l.handleDragMove),document.addEventListener("mouseup",l.handleDragEnd))},l.handleDragMove=function(f){var u=l.props,C=u.minValue,b=u.maxValue,v=u.step,h=u.stepPixelSize;l.setState(function(g){var N=Object.assign({},g),x=N.origin-f.screenY;if(g.dragging){var B=Number.isFinite(C)?C%v:0;N.internalValue=(0,a.clamp)(N.internalValue+x*v/h,C-v,b+v),N.value=(0,a.clamp)(N.internalValue-N.internalValue%v+B,C,b),N.origin=f.screenY}else Math.abs(x)>4&&(N.dragging=!0);return N})},l.handleDragEnd=function(f){var u=l.props,C=u.onChange,b=u.onDrag,v=l.state,h=v.dragging,g=v.value,N=v.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(l.timer),clearInterval(l.dragInterval),l.setState({dragging:!1,editing:!h,origin:null}),document.removeEventListener("mousemove",l.handleDragMove),document.removeEventListener("mouseup",l.handleDragEnd),h)l.suppressFlicker(),C&&C(f,g),b&&b(f,g);else if(l.inputRef){var x=l.inputRef.current;x.value=N;try{x.focus(),x.select()}catch(B){}}},l}S(i,p);var c=i.prototype;return c.render=function(){function s(){var l=this,d=this.state,f=d.dragging,u=d.editing,C=d.value,b=d.suppressingFlicker,v=this.props,h=v.className,g=v.fluid,N=v.animated,x=v.value,B=v.unit,L=v.minValue,T=v.maxValue,E=v.height,w=v.width,A=v.lineHeight,O=v.fontSize,M=v.format,P=v.onChange,R=v.onDrag,F=x;(f||b)&&(F=C);var _=(0,e.createVNode)(1,"div","NumberInput__content",[N&&!f&&!b?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:F,format:M}):M?M(F):F,B?" "+B:""],0);return(0,e.createComponentVNode)(2,m.Box,{className:(0,t.classes)(["NumberInput",g&&"NumberInput--fluid",h]),minWidth:w,minHeight:E,lineHeight:A,fontSize:O,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"div","NumberInput__barContainer",(0,e.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,a.clamp)((F-L)/(T-L)*100,0,100)+"%"}}),2),_,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:u?void 0:"none",height:E,"line-height":A,"font-size":O},onBlur:function(){function U(W){if(u){var $=(0,a.clamp)(parseFloat(W.target.value),L,T);if(Number.isNaN($)){l.setState({editing:!1});return}l.setState({editing:!1,value:$}),l.suppressFlicker(),P&&P(W,$),R&&R(W,$)}}return U}(),onKeyDown:function(){function U(W){if(W.keyCode===13){var $=(0,a.clamp)(parseFloat(W.target.value),L,T);if(Number.isNaN($)){l.setState({editing:!1});return}l.setState({editing:!1,value:$}),l.suppressFlicker(),P&&P(W,$),R&&R(W,$);return}if(W.keyCode===27){l.setState({editing:!1});return}}return U}()},null,this.inputRef)]})}return s}(),i}(e.Component);V.defaultHooks=t.pureComponentHooks,V.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},33337:function(I,r,n){"use strict";r.__esModule=!0,r.Pointer=void 0;var e=n(89005),a=n(35840),t=r.Pointer=function(){function o(m){var S=m.className,y=m.color,k=m.left,V=m.top,p=V===void 0?.5:V,i=(0,a.classes)(["react-colorful__pointer",S]),c={top:p*100+"%",left:k*100+"%"};return(0,e.createVNode)(1,"div",i,(0,e.createVNode)(1,"div","react-colorful__pointer-fill",null,1,{style:{"background-color":y}}),2,{style:c})}return o}()},50186:function(I,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(95996),a=n(89005);function t(S,y){S.prototype=Object.create(y.prototype),S.prototype.constructor=S,o(S,y)}function o(S,y){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,V){return k.__proto__=V,k},o(S,y)}var m=r.Popper=function(S){function y(){var V;return V=S.call(this)||this,V.renderedContent=void 0,V.popperInstance=void 0,y.id+=1,V}t(y,S);var k=y.prototype;return k.componentDidMount=function(){function V(){var p=this,i=this.props,c=i.additionalStyles,s=i.options;if(this.renderedContent=document.createElement("div"),c)for(var l=0,d=Object.entries(c);l0&&(u.setState({suppressingFlicker:!0}),clearTimeout(u.flickerTimer),u.flickerTimer=setTimeout(function(){return u.setState({suppressingFlicker:!1})},f))},u.handleDragStart=function(f){var l=u.props.value,C=u.state.editing;C||(document.body.style["pointer-events"]="none",u.ref=f.target,u.setState({dragging:!1,origin:f.screenY,value:l,internalValue:l}),u.timer=setTimeout(function(){u.setState({dragging:!0})},250),u.dragInterval=setInterval(function(){var b=u.state,v=b.dragging,h=b.value,g=u.props.onDrag;v&&g&&g(f,h)},u.props.updateRate||k),document.addEventListener("mousemove",u.handleDragMove),document.addEventListener("mouseup",u.handleDragEnd))},u.handleDragMove=function(f){var l=u.props,C=l.minValue,b=l.maxValue,v=l.step,h=l.stepPixelSize;u.setState(function(g){var N=Object.assign({},g),x=N.origin-f.screenY;if(g.dragging){var B=Number.isFinite(C)?C%v:0;N.internalValue=(0,a.clamp)(N.internalValue+x*v/h,C-v,b+v),N.value=(0,a.clamp)(N.internalValue-N.internalValue%v+B,C,b),N.origin=f.screenY}else Math.abs(x)>4&&(N.dragging=!0);return N})},u.handleDragEnd=function(f){var l=u.props,C=l.onChange,b=l.onDrag,v=u.state,h=v.dragging,g=v.value,N=v.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(u.timer),clearInterval(u.dragInterval),u.setState({dragging:!1,editing:!h,origin:null}),document.removeEventListener("mousemove",u.handleDragMove),document.removeEventListener("mouseup",u.handleDragEnd),h)u.suppressFlicker(),C&&C(f,g),b&&b(f,g);else if(u.inputRef){var x=u.inputRef.current;x.value=N;try{x.focus(),x.select()}catch(B){}}},u}S(i,p);var c=i.prototype;return c.render=function(){function s(){var u=this,d=this.state,f=d.dragging,l=d.editing,C=d.value,b=d.suppressingFlicker,v=this.props,h=v.className,g=v.fluid,N=v.animated,x=v.value,B=v.unit,L=v.minValue,T=v.maxValue,E=v.height,w=v.width,A=v.lineHeight,O=v.fontSize,M=v.format,P=v.onChange,R=v.onDrag,F=x;(f||b)&&(F=C);var _=(0,e.createVNode)(1,"div","NumberInput__content",[N&&!f&&!b?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:F,format:M}):M?M(F):F,B?" "+B:""],0);return(0,e.createComponentVNode)(2,m.Box,{className:(0,t.classes)(["NumberInput",g&&"NumberInput--fluid",h]),minWidth:w,minHeight:E,lineHeight:A,fontSize:O,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"div","NumberInput__barContainer",(0,e.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,a.clamp)((F-L)/(T-L)*100,0,100)+"%"}}),2),_,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:l?void 0:"none",height:E,"line-height":A,"font-size":O},onBlur:function(){function U(W){if(l){var $=(0,a.clamp)(parseFloat(W.target.value),L,T);if(Number.isNaN($)){u.setState({editing:!1});return}u.setState({editing:!1,value:$}),u.suppressFlicker(),P&&P(W,$),R&&R(W,$)}}return U}(),onKeyDown:function(){function U(W){if(W.keyCode===13){var $=(0,a.clamp)(parseFloat(W.target.value),L,T);if(Number.isNaN($)){u.setState({editing:!1});return}u.setState({editing:!1,value:$}),u.suppressFlicker(),P&&P(W,$),R&&R(W,$);return}if(W.keyCode===27){u.setState({editing:!1});return}}return U}()},null,this.inputRef)]})}return s}(),i}(e.Component);V.defaultHooks=t.pureComponentHooks,V.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},33337:function(I,r,n){"use strict";r.__esModule=!0,r.Pointer=void 0;var e=n(89005),a=n(35840),t=r.Pointer=function(){function o(m){var S=m.className,y=m.color,k=m.left,V=m.top,p=V===void 0?.5:V,i=(0,a.classes)(["react-colorful__pointer",S]),c={top:p*100+"%",left:k*100+"%"};return(0,e.createVNode)(1,"div",i,(0,e.createVNode)(1,"div","react-colorful__pointer-fill",null,1,{style:{"background-color":y}}),2,{style:c})}return o}()},50186:function(I,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(95996),a=n(89005);function t(S,y){S.prototype=Object.create(y.prototype),S.prototype.constructor=S,o(S,y)}function o(S,y){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,V){return k.__proto__=V,k},o(S,y)}var m=r.Popper=function(S){function y(){var V;return V=S.call(this)||this,V.renderedContent=void 0,V.popperInstance=void 0,y.id+=1,V}t(y,S);var k=y.prototype;return k.componentDidMount=function(){function V(){var p=this,i=this.props,c=i.additionalStyles,s=i.options;if(this.renderedContent=document.createElement("div"),c)for(var u=0,d=Object.entries(c);us)return"in the future";c=c/10,s=s/10;var l=s-c;if(l>3600){var d=Math.round(l/3600);return d+" hour"+(d===1?"":"s")+" ago"}else if(l>60){var f=Math.round(l/60);return f+" minute"+(f===1?"":"s")+" ago"}else{var u=Math.round(l);return u+" second"+(u===1?"":"s")+" ago"}return"just now"}return i}()},40944:function(I,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595);/** +*/var i=r.TextArea=function(c){function s(d,f){var l;l=c.call(this,d,f)||this,l.textareaRef=d.innerRef||(0,e.createRef)(),l.fillerRef=(0,e.createRef)(),l.state={editing:!1};var C=d.dontUseTabForIndent,b=C===void 0?!1:C;return l.handleOnInput=function(v){var h=l.state.editing,g=l.props.onInput;h||l.setEditing(!0),g&&g(v,v.target.value)},l.handleOnChange=function(v){var h=l.state.editing,g=l.props.onChange;h&&l.setEditing(!1),g&&g(v,v.target.value)},l.handleKeyPress=function(v){var h=l.state.editing,g=l.props.onKeyPress;h||l.setEditing(!0),g&&g(v,v.target.value)},l.handleKeyDown=function(v){var h=l.state.editing,g=l.props,N=g.onChange,x=g.onInput,B=g.onEnter,L=g.onKeyDown;if(v.keyCode===m.KEY_ENTER){l.setEditing(!1),N&&N(v,v.target.value),x&&x(v,v.target.value),B&&B(v,v.target.value),l.props.selfClear&&(v.target.value="",v.target.blur());return}if(v.keyCode===m.KEY_ESCAPE){l.props.onEscape&&l.props.onEscape(v),l.setEditing(!1),l.props.selfClear?v.target.value="":(v.target.value=(0,o.toInputValue)(l.props.value),v.target.blur());return}if(h||l.setEditing(!0),L&&L(v,v.target.value),!b){var T=v.keyCode||v.which;if(T===m.KEY_TAB){v.preventDefault();var E=v.target,w=E.value,A=E.selectionStart,O=E.selectionEnd;v.target.value=w.substring(0,A)+" "+w.substring(O),v.target.selectionEnd=A+1}}},l.handleFocus=function(v){var h=l.state.editing;h||l.setEditing(!0)},l.handleBlur=function(v){var h=l.state.editing,g=l.props.onChange;h&&(l.setEditing(!1),g&&g(v,v.target.value))},l}V(s,c);var u=s.prototype;return u.componentDidMount=function(){function d(){var f=this,l=this.props.value,C=this.textareaRef.current;C&&(C.value=(0,o.toInputValue)(l)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){C.focus(),f.props.autoSelect&&C.select()},1)}return d}(),u.componentDidUpdate=function(){function d(f,l){var C=f.value,b=this.props.value,v=this.textareaRef.current;v&&typeof b=="string"&&C!==b&&(v.value=(0,o.toInputValue)(b))}return d}(),u.setEditing=function(){function d(f){this.setState({editing:f})}return d}(),u.getValue=function(){function d(){return this.textareaRef.current&&this.textareaRef.current.value}return d}(),u.render=function(){function d(){var f=this.props,l=f.onChange,C=f.onKeyDown,b=f.onKeyPress,v=f.onInput,h=f.onFocus,g=f.onBlur,N=f.onEnter,x=f.value,B=f.maxLength,L=f.placeholder,T=k(f,S),E=T.className,w=T.fluid,A=k(T,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["TextArea",w&&"TextArea--fluid",E])},A,{children:(0,e.createVNode)(128,"textarea","TextArea__textarea",null,1,{placeholder:L,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:B},null,this.textareaRef)})))}return d}(),s}(e.Component)},5169:function(I,r){"use strict";r.__esModule=!0,r.TimeDisplay=void 0;var n=function(t){(!t||t<0)&&(t=0);var o=Math.floor(t/60).toString(10),m=(Math.floor(t)%60).toString(10);return[o,m].map(function(S){return S.length<2?"0"+S:S}).join(":")},e=r.TimeDisplay=function(){function a(t){var o=t.totalSeconds,m=o===void 0?0:o;return n(m)}return a}()},62147:function(I,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(89005),a=n(95996),t;function o(V,p){V.prototype=Object.create(p.prototype),V.prototype.constructor=V,m(V,p)}function m(V,p){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,c){return i.__proto__=c,i},m(V,p)}var S={modifiers:[{name:"eventListeners",enabled:!1}]},y={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function V(){return null}return V}()},k=r.Tooltip=function(V){function p(){return V.apply(this,arguments)||this}o(p,V);var i=p.prototype;return i.getDOMNode=function(){function c(){return(0,e.findDOMFromVNode)(this.$LI,!0)}return c}(),i.componentDidMount=function(){function c(){var s=this,u=this.getDOMNode();u&&(u.addEventListener("mouseenter",function(){var d=p.renderedTooltip;d===void 0&&(d=document.createElement("div"),d.className="Tooltip",document.body.appendChild(d),p.renderedTooltip=d),p.currentHoveredElement=u,d.style.opacity="1",s.renderPopperContent()}),u.addEventListener("mouseleave",function(){s.fadeOut()}))}return c}(),i.fadeOut=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&(p.currentHoveredElement=void 0,p.renderedTooltip.style.opacity="0")}return c}(),i.renderPopperContent=function(){function c(){var s=this,u=p.renderedTooltip;u&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),u,function(){var d=p.singletonPopper;d===void 0?(d=(0,a.createPopper)(p.virtualElement,u,Object.assign({},S,{placement:s.props.position||"auto"})),p.singletonPopper=d):(d.setOptions(Object.assign({},S,{placement:s.props.position||"auto"})),d.update())},this.context)}return c}(),i.componentDidUpdate=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return c}(),i.componentWillUnmount=function(){function c(){this.fadeOut()}return c}(),i.render=function(){function c(){return this.props.children}return c}(),p}(e.Component);t=k,k.renderedTooltip=void 0,k.singletonPopper=void 0,k.currentHoveredElement=void 0,k.virtualElement={getBoundingClientRect:function(){function V(){var p,i;return(p=(i=t.currentHoveredElement)==null?void 0:i.getBoundingClientRect())!=null?p:y}return V}()}},36036:function(I,r,n){"use strict";r.__esModule=!0,r.Tooltip=r.TimeDisplay=r.TextArea=r.Tabs=r.Table=r.Stack=r.Slider=r.Section=r.RoundGauge=r.RestrictedInput=r.ProgressBar=r.Popper=r.Pointer=r.NumberInput=r.NoticeBox=r.NanoMap=r.Modal=r.LabeledList=r.LabeledControls=r.Knob=r.Interactive=r.Input=r.ImageButtonTS=r.ImageButton=r.Image=r.Icon=r.Grid=r.Flex=r.Dropdown=r.DraggableControl=r.DmIcon=r.Divider=r.Dimmer=r.Countdown=r.ColorBox=r.Collapsible=r.Chart=r.ByondUi=r.Button=r.Box=r.BlockQuote=r.Blink=r.Autofocus=r.AnimatedNumber=void 0;var e=n(9474);r.AnimatedNumber=e.AnimatedNumber;var a=n(27185);r.Autofocus=a.Autofocus;var t=n(5814);r.Blink=t.Blink;var o=n(61773);r.BlockQuote=o.BlockQuote;var m=n(55937);r.Box=m.Box;var S=n(94798);r.Button=S.Button;var y=n(18982);r.ByondUi=y.ByondUi;var k=n(66820);r.Chart=k.Chart;var V=n(4796);r.Collapsible=V.Collapsible;var p=n(88894);r.ColorBox=p.ColorBox;var i=n(73379);r.Countdown=i.Countdown;var c=n(61940);r.Dimmer=c.Dimmer;var s=n(13605);r.Divider=s.Divider;var u=n(60218);r.DmIcon=u.DmIcon;var d=n(20342);r.DraggableControl=d.DraggableControl;var f=n(87099);r.Dropdown=f.Dropdown;var l=n(39473);r.Flex=l.Flex;var C=n(79646);r.Grid=C.Grid;var b=n(91225);r.Image=b.Image;var v=n(4454);r.Interactive=v.Interactive;var h=n(1331);r.Icon=h.Icon;var g=n(66393);r.ImageButton=g.ImageButton;var N=n(61470);r.ImageButtonTS=N.ImageButtonTS;var x=n(79652);r.Input=x.Input;var B=n(76334);r.Knob=B.Knob;var L=n(78621);r.LabeledControls=L.LabeledControls;var T=n(29319);r.LabeledList=T.LabeledList;var E=n(36077);r.Modal=E.Modal;var w=n(73280);r.NanoMap=w.NanoMap;var A=n(74733);r.NoticeBox=A.NoticeBox;var O=n(59263);r.NumberInput=O.NumberInput;var M=n(33337);r.Pointer=M.Pointer;var P=n(50186);r.Popper=P.Popper;var R=n(92704);r.ProgressBar=R.ProgressBar;var F=n(9075);r.RestrictedInput=F.RestrictedInput;var _=n(11441);r.RoundGauge=_.RoundGauge;var U=n(97079);r.Section=U.Section;var W=n(79911);r.Slider=W.Slider;var $=n(96690);r.Stack=$.Stack;var Y=n(36352);r.Table=Y.Table;var ne=n(85138);r.Tabs=ne.Tabs;var G=n(44868);r.TextArea=G.TextArea;var le=n(5169);r.TimeDisplay=le.TimeDisplay;var de=n(62147);r.Tooltip=de.Tooltip},76910:function(I,r){"use strict";r.__esModule=!0,r.timeAgo=r.getGasLabel=r.getGasColor=r.UI_UPDATE=r.UI_INTERACTIVE=r.UI_DISABLED=r.UI_CLOSE=r.RADIO_CHANNELS=r.CSS_COLORS=r.COLORS=void 0;var n=r.UI_INTERACTIVE=2,e=r.UI_UPDATE=1,a=r.UI_DISABLED=0,t=r.UI_CLOSE=-1,o=r.COLORS={department:{command:"#526aff",security:"#CF0000",medical:"#009190",science:"#993399",engineering:"#A66300",supply:"#9F8545",service:"#80A000",centcom:"#78789B",procedure:"#E3027A",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}},m=r.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],S=r.RADIO_CHANNELS=[{name:"Syndicate",freq:1213,color:"#a52a2a"},{name:"SyndTeam",freq:1244,color:"#a52a2a"},{name:"Red Team",freq:1215,color:"#ff4444"},{name:"Blue Team",freq:1217,color:"#3434fd"},{name:"Response Team",freq:1345,color:"#2681a5"},{name:"Special Ops",freq:1341,color:"#2681a5"},{name:"Supply",freq:1347,color:"#b88646"},{name:"Service",freq:1349,color:"#6ca729"},{name:"Science",freq:1351,color:"#c68cfa"},{name:"Command",freq:1353,color:"#5177ff"},{name:"Procedure",freq:1339,color:"#F70285"},{name:"Medical",freq:1355,color:"#57b8f0"},{name:"Medical(I)",freq:1485,color:"#57b8f0"},{name:"Engineering",freq:1357,color:"#f37746"},{name:"Security",freq:1359,color:"#dd3535"},{name:"Security(I)",freq:1475,color:"#dd3535"},{name:"AI Private",freq:1343,color:"#d65d95"},{name:"Common",freq:1459,color:"#1ecc43"},{name:"SyndTaipan",freq:1227,color:"#ffec8b"},{name:"Soviet",freq:1217,color:"#ffec8b"},{name:"Spider Clan",freq:1265,color:"#1ecc43"},{name:"Alpha wave",freq:1522,color:"#88910f"},{name:"Beta wave",freq:1532,color:"#1d83f7"},{name:"Gamma wave",freq:1542,color:"#d46549"},{name:"Spy Spider",freq:1251,color:"#776f96"}],y=[{id:"o2",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",color:"pink"},{id:"water_vapor",name:"Water Vapor",label:"H\u2082O",color:"grey"},{id:"nob",name:"Hyper-noblium",label:"Hyper-nob",color:"teal"},{id:"n2o",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"no2",name:"Nitryl",label:"NO\u2082",color:"brown"},{id:"tritium",name:"Tritium",label:"Tritium",color:"green"},{id:"bz",name:"BZ",label:"BZ",color:"purple"},{id:"stim",name:"Stimulum",label:"Stimulum",color:"purple"},{id:"pluox",name:"Pluoxium",label:"Pluoxium",color:"blue"},{id:"miasma",name:"Miasma",label:"Miasma",color:"olive"},{id:"hydrogen",name:"Hydrogen",label:"H\u2082",color:"white"},{id:"ab",name:"Agent B",label:"Agent B",color:"purple"}],k=r.getGasLabel=function(){function i(c,s){var u=String(c).toLowerCase(),d=y.find(function(f){return f.id===u||f.name.toLowerCase()===u});return d&&d.label||s||c}return i}(),V=r.getGasColor=function(){function i(c){var s=String(c).toLowerCase(),u=y.find(function(d){return d.id===s||d.name.toLowerCase()===s});return u&&u.color}return i}(),p=r.timeAgo=function(){function i(c,s){if(c>s)return"in the future";c=c/10,s=s/10;var u=s-c;if(u>3600){var d=Math.round(u/3600);return d+" hour"+(d===1?"":"s")+" ago"}else if(u>60){var f=Math.round(u/60);return f+" minute"+(f===1?"":"s")+" ago"}else{var l=Math.round(u);return l+" second"+(l===1?"":"s")+" ago"}return"just now"}return i}()},40944:function(I,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var m=n(4085),S=function(){return m.keys().map(function(V){return m(V)})},y=r.KitchenSink=function(){function k(V,p){var i=V.panel,c=(0,a.useLocalState)(p,"kitchenSinkTheme"),s=c[0],l=(0,a.useLocalState)(p,"pageIndex",0),d=l[0],f=l[1],u=S(),C=u[d],b=i?o.Pane:o.Window;return(0,e.createComponentVNode)(2,b,{title:"Kitchen Sink",width:600,height:500,theme:s,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{m:1,mr:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:u.map(function(v,h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:h===d,onClick:function(){function g(){return f(h)}return g}(),children:v.meta.title},h)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,b.Content,{scrollable:!0,children:C.meta.render()})})]})})}return k}()},77384:function(I,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(85307);/** + */var m=n(4085),S=function(){return m.keys().map(function(V){return m(V)})},y=r.KitchenSink=function(){function k(V,p){var i=V.panel,c=(0,a.useLocalState)(p,"kitchenSinkTheme"),s=c[0],u=(0,a.useLocalState)(p,"pageIndex",0),d=u[0],f=u[1],l=S(),C=l[d],b=i?o.Pane:o.Window;return(0,e.createComponentVNode)(2,b,{title:"Kitchen Sink",width:600,height:500,theme:s,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{m:1,mr:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:l.map(function(v,h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:h===d,onClick:function(){function g(){return f(h)}return g}(),children:v.meta.title},h)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,b.Content,{scrollable:!0,children:C.meta.render()})})]})})}return k}()},77384:function(I,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(85307);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -218,7 +218,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var m=["backend/update","chat/message"],S=r.debugMiddleware=function(){function k(V){return(0,t.acquireHotKey)(e.KEY_F11),(0,t.acquireHotKey)(e.KEY_F12),a.globalEvents.on("keydown",function(p){p.code===e.KEY_F11&&V.dispatch((0,o.toggleDebugLayout)()),p.code===e.KEY_F12&&V.dispatch((0,o.toggleKitchenSink)()),p.ctrl&&p.alt&&p.code===e.KEY_BACKSPACE&&setTimeout(function(){throw new Error("OOPSIE WOOPSIE!! UwU We made a fucky wucky!! A wittle fucko boingo! The code monkeys at our headquarters are working VEWY HAWD to fix this!")})}),function(p){return function(i){return p(i)}}}return k}(),y=r.relayMiddleware=function(){function k(V){var p=n(7435),i=location.search==="?external";return i?p.subscribe(function(c){var s=c.type,l=c.payload;s==="relay"&&l.windowId===Byond.windowId&&V.dispatch(Object.assign({},l.action,{relayed:!0}))}):((0,t.acquireHotKey)(e.KEY_F10),a.globalEvents.on("keydown",function(c){c===e.KEY_F10&&V.dispatch((0,o.openExternalBrowser)())})),function(c){return function(s){var l=s.type,d=s.payload,f=s.relayed;if(l===o.openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return m.includes(l)&&!f&&!i&&p.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:s}}),c(s)}}}return k}()},19147:function(I,r){"use strict";r.__esModule=!0,r.debugReducer=void 0;/** + */var m=["backend/update","chat/message"],S=r.debugMiddleware=function(){function k(V){return(0,t.acquireHotKey)(e.KEY_F11),(0,t.acquireHotKey)(e.KEY_F12),a.globalEvents.on("keydown",function(p){p.code===e.KEY_F11&&V.dispatch((0,o.toggleDebugLayout)()),p.code===e.KEY_F12&&V.dispatch((0,o.toggleKitchenSink)()),p.ctrl&&p.alt&&p.code===e.KEY_BACKSPACE&&setTimeout(function(){throw new Error("OOPSIE WOOPSIE!! UwU We made a fucky wucky!! A wittle fucko boingo! The code monkeys at our headquarters are working VEWY HAWD to fix this!")})}),function(p){return function(i){return p(i)}}}return k}(),y=r.relayMiddleware=function(){function k(V){var p=n(7435),i=location.search==="?external";return i?p.subscribe(function(c){var s=c.type,u=c.payload;s==="relay"&&u.windowId===Byond.windowId&&V.dispatch(Object.assign({},u.action,{relayed:!0}))}):((0,t.acquireHotKey)(e.KEY_F10),a.globalEvents.on("keydown",function(c){c===e.KEY_F10&&V.dispatch((0,o.openExternalBrowser)())})),function(c){return function(s){var u=s.type,d=s.payload,f=s.relayed;if(u===o.openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return m.includes(u)&&!f&&!i&&p.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:s}}),c(s)}}}return k}()},19147:function(I,r){"use strict";r.__esModule=!0,r.debugReducer=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -230,13 +230,13 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function m(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */m=function(){return W};var U,W={},$=Object.prototype,G=$.hasOwnProperty,oe=Object.defineProperty||function(Ve,ke,H){Ve[ke]=H.value},X=typeof Symbol=="function"?Symbol:{},pe=X.iterator||"@@iterator",me=X.asyncIterator||"@@asyncIterator",ne=X.toStringTag||"@@toStringTag";function re(Ve,ke,H){return Object.defineProperty(Ve,ke,{value:H,enumerable:!0,configurable:!0,writable:!0}),Ve[ke]}try{re({},"")}catch(Ve){re=function(H,ue,be){return H[ue]=be}}function q(Ve,ke,H,ue){var be=ke&&ke.prototype instanceof se?ke:se,Se=Object.create(be.prototype),Ie=new _e(ue||[]);return oe(Se,"_invoke",{value:ve(Ve,H,Ie)}),Se}function ae(Ve,ke,H){try{return{type:"normal",arg:Ve.call(ke,H)}}catch(ue){return{type:"throw",arg:ue}}}W.wrap=q;var J="suspendedStart",Y="suspendedYield",Q="executing",Z="completed",te={};function se(){}function ye(){}function fe(){}var Le={};re(Le,pe,function(){return this});var D=Object.getPrototypeOf,ie=D&&D(D(Pe([])));ie&&ie!==$&&G.call(ie,pe)&&(Le=ie);var le=fe.prototype=se.prototype=Object.create(Le);function Ce(Ve){["next","throw","return"].forEach(function(ke){re(Ve,ke,function(H){return this._invoke(ke,H)})})}function he(Ve,ke){function H(be,Se,Ie,Ee){var Me=ae(Ve[be],Ve,Se);if(Me.type!=="throw"){var Ae=Me.arg,De=Ae.value;return De&&typeof De=="object"&&G.call(De,"__await")?ke.resolve(De.__await).then(function(He){H("next",He,Ie,Ee)},function(He){H("throw",He,Ie,Ee)}):ke.resolve(De).then(function(He){Ae.value=He,Ie(Ae)},function(He){return H("throw",He,Ie,Ee)})}Ee(Me.arg)}var ue;oe(this,"_invoke",{value:function(){function be(Se,Ie){function Ee(){return new ke(function(Me,Ae){H(Se,Ie,Me,Ae)})}return ue=ue?ue.then(Ee,Ee):Ee()}return be}()})}function ve(Ve,ke,H){var ue=J;return function(be,Se){if(ue===Q)throw Error("Generator is already running");if(ue===Z){if(be==="throw")throw Se;return{value:U,done:!0}}for(H.method=be,H.arg=Se;;){var Ie=H.delegate;if(Ie){var Ee=Be(Ie,H);if(Ee){if(Ee===te)continue;return Ee}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(ue===J)throw ue=Z,H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);ue=Q;var Me=ae(Ve,ke,H);if(Me.type==="normal"){if(ue=H.done?Z:Y,Me.arg===te)continue;return{value:Me.arg,done:H.done}}Me.type==="throw"&&(ue=Z,H.method="throw",H.arg=Me.arg)}}}function Be(Ve,ke){var H=ke.method,ue=Ve.iterator[H];if(ue===U)return ke.delegate=null,H==="throw"&&Ve.iterator.return&&(ke.method="return",ke.arg=U,Be(Ve,ke),ke.method==="throw")||H!=="return"&&(ke.method="throw",ke.arg=new TypeError("The iterator does not provide a '"+H+"' method")),te;var be=ae(ue,Ve.iterator,ke.arg);if(be.type==="throw")return ke.method="throw",ke.arg=be.arg,ke.delegate=null,te;var Se=be.arg;return Se?Se.done?(ke[Ve.resultName]=Se.value,ke.next=Ve.nextLoc,ke.method!=="return"&&(ke.method="next",ke.arg=U),ke.delegate=null,te):Se:(ke.method="throw",ke.arg=new TypeError("iterator result is not an object"),ke.delegate=null,te)}function we(Ve){var ke={tryLoc:Ve[0]};1 in Ve&&(ke.catchLoc=Ve[1]),2 in Ve&&(ke.finallyLoc=Ve[2],ke.afterLoc=Ve[3]),this.tryEntries.push(ke)}function Re(Ve){var ke=Ve.completion||{};ke.type="normal",delete ke.arg,Ve.completion=ke}function _e(Ve){this.tryEntries=[{tryLoc:"root"}],Ve.forEach(we,this),this.reset(!0)}function Pe(Ve){if(Ve||Ve===""){var ke=Ve[pe];if(ke)return ke.call(Ve);if(typeof Ve.next=="function")return Ve;if(!isNaN(Ve.length)){var H=-1,ue=function(){function be(){for(;++H=0;--be){var Se=this.tryEntries[be],Ie=Se.completion;if(Se.tryLoc==="root")return ue("end");if(Se.tryLoc<=this.prev){var Ee=G.call(Se,"catchLoc"),Me=G.call(Se,"finallyLoc");if(Ee&&Me){if(this.prev=0;--ue){var be=this.tryEntries[ue];if(be.tryLoc<=this.prev&&G.call(be,"finallyLoc")&&this.prev=0;--H){var ue=this.tryEntries[H];if(ue.finallyLoc===ke)return this.complete(ue.completion,ue.afterLoc),Re(ue),te}}return Ve}(),catch:function(){function Ve(ke){for(var H=this.tryEntries.length-1;H>=0;--H){var ue=this.tryEntries[H];if(ue.tryLoc===ke){var be=ue.completion;if(be.type==="throw"){var Se=be.arg;Re(ue)}return Se}}throw Error("illegal catch attempt")}return Ve}(),delegateYield:function(){function Ve(ke,H,ue){return this.delegate={iterator:Pe(ke),resultName:H,nextLoc:ue},this.method==="next"&&(this.arg=U),te}return Ve}()},W}function S(U,W,$,G,oe,X,pe){try{var me=U[X](pe),ne=me.value}catch(re){return void $(re)}me.done?W(ne):Promise.resolve(ne).then(G,oe)}function y(U){return function(){var W=this,$=arguments;return new Promise(function(G,oe){var X=U.apply(W,$);function pe(ne){S(X,G,oe,pe,me,"next",ne)}function me(ne){S(X,G,oe,pe,me,"throw",ne)}pe(void 0)})}}var k=(0,t.createLogger)("drag"),V=(o=window.devicePixelRatio)!=null?o:1,p=Byond.windowId,i=!1,c=!1,s=[0,0],l,d,f,u,C,b=r.setWindowKey=function(){function U(W){p=W}return U}(),v=function(){return[window.screenLeft*V,window.screenTop*V]},h=function(){return[window.innerWidth*V,window.innerHeight*V]},g=function(W){var $=(0,a.vecAdd)(W,s);return Byond.winset(Byond.windowId,{pos:$[0]+","+$[1]})},N=function(W){return Byond.winset(Byond.windowId,{size:W[0]+"x"+W[1]})},x=function(){return[0-s[0],0-s[1]]},B=function(){return[window.screen.availWidth*V,window.screen.availHeight*V]},L=function(W,$,G){G===void 0&&(G=50);for(var oe=[$],X,pe=0;pere&&(X[me]=re-$[me],pe=!0)}return[pe,X]},O=r.dragStartHandler=function(){function U(W){k.log("drag start"),i=!0;var $=v();d=(0,a.vecSubtract)([W.screenX,W.screenY],v()),document.addEventListener("mousemove",P),document.addEventListener("mouseup",M),P(W)}return U}(),M=function(W){k.log("drag end"),P(W),document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",M),i=!1,T()},P=function(W){i&&(W.preventDefault(),g((0,a.vecSubtract)([W.screenX,W.screenY],d)))},R=r.resizeStartHandler=function(){function U(W,$){return function(G){f=[W,$],k.log("resize start",f),c=!0,d=(0,a.vecSubtract)([G.screenX,G.screenY],v()),u=h(),document.addEventListener("mousemove",_),document.addEventListener("mouseup",F),_(G)}}return U}(),F=function(W){k.log("resize end",C),_(W),document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",F),c=!1,T()},_=function(W){if(c){W.preventDefault();var $=(0,a.vecSubtract)([W.screenX,W.screenY],v()),G=(0,a.vecSubtract)($,d);C=(0,a.vecAdd)(u,(0,a.vecMultiply)(f,G),[1,1]),C[0]=Math.max(C[0],150*V),C[1]=Math.max(C[1],50*V),N(C)}}},24826:function(I,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(92868),a=n(92986);/** + */function m(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */m=function(){return W};var U,W={},$=Object.prototype,Y=$.hasOwnProperty,ne=Object.defineProperty||function(Ve,ke,H){Ve[ke]=H.value},G=typeof Symbol=="function"?Symbol:{},le=G.iterator||"@@iterator",de=G.asyncIterator||"@@asyncIterator",oe=G.toStringTag||"@@toStringTag";function re(Ve,ke,H){return Object.defineProperty(Ve,ke,{value:H,enumerable:!0,configurable:!0,writable:!0}),Ve[ke]}try{re({},"")}catch(Ve){re=function(H,ue,be){return H[ue]=be}}function q(Ve,ke,H,ue){var be=ke&&ke.prototype instanceof fe?ke:fe,Se=Object.create(be.prototype),Ie=new _e(ue||[]);return ne(Se,"_invoke",{value:ve(Ve,H,Ie)}),Se}function ae(Ve,ke,H){try{return{type:"normal",arg:Ve.call(ke,H)}}catch(ue){return{type:"throw",arg:ue}}}W.wrap=q;var J="suspendedStart",X="suspendedYield",Q="executing",Z="completed",te={};function fe(){}function ye(){}function pe(){}var Le={};re(Le,le,function(){return this});var D=Object.getPrototypeOf,ie=D&&D(D(Pe([])));ie&&ie!==$&&Y.call(ie,le)&&(Le=ie);var se=pe.prototype=fe.prototype=Object.create(Le);function Ce(Ve){["next","throw","return"].forEach(function(ke){re(Ve,ke,function(H){return this._invoke(ke,H)})})}function he(Ve,ke){function H(be,Se,Ie,Ee){var Me=ae(Ve[be],Ve,Se);if(Me.type!=="throw"){var Ae=Me.arg,De=Ae.value;return De&&typeof De=="object"&&Y.call(De,"__await")?ke.resolve(De.__await).then(function(He){H("next",He,Ie,Ee)},function(He){H("throw",He,Ie,Ee)}):ke.resolve(De).then(function(He){Ae.value=He,Ie(Ae)},function(He){return H("throw",He,Ie,Ee)})}Ee(Me.arg)}var ue;ne(this,"_invoke",{value:function(){function be(Se,Ie){function Ee(){return new ke(function(Me,Ae){H(Se,Ie,Me,Ae)})}return ue=ue?ue.then(Ee,Ee):Ee()}return be}()})}function ve(Ve,ke,H){var ue=J;return function(be,Se){if(ue===Q)throw Error("Generator is already running");if(ue===Z){if(be==="throw")throw Se;return{value:U,done:!0}}for(H.method=be,H.arg=Se;;){var Ie=H.delegate;if(Ie){var Ee=Be(Ie,H);if(Ee){if(Ee===te)continue;return Ee}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(ue===J)throw ue=Z,H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);ue=Q;var Me=ae(Ve,ke,H);if(Me.type==="normal"){if(ue=H.done?Z:X,Me.arg===te)continue;return{value:Me.arg,done:H.done}}Me.type==="throw"&&(ue=Z,H.method="throw",H.arg=Me.arg)}}}function Be(Ve,ke){var H=ke.method,ue=Ve.iterator[H];if(ue===U)return ke.delegate=null,H==="throw"&&Ve.iterator.return&&(ke.method="return",ke.arg=U,Be(Ve,ke),ke.method==="throw")||H!=="return"&&(ke.method="throw",ke.arg=new TypeError("The iterator does not provide a '"+H+"' method")),te;var be=ae(ue,Ve.iterator,ke.arg);if(be.type==="throw")return ke.method="throw",ke.arg=be.arg,ke.delegate=null,te;var Se=be.arg;return Se?Se.done?(ke[Ve.resultName]=Se.value,ke.next=Ve.nextLoc,ke.method!=="return"&&(ke.method="next",ke.arg=U),ke.delegate=null,te):Se:(ke.method="throw",ke.arg=new TypeError("iterator result is not an object"),ke.delegate=null,te)}function we(Ve){var ke={tryLoc:Ve[0]};1 in Ve&&(ke.catchLoc=Ve[1]),2 in Ve&&(ke.finallyLoc=Ve[2],ke.afterLoc=Ve[3]),this.tryEntries.push(ke)}function Re(Ve){var ke=Ve.completion||{};ke.type="normal",delete ke.arg,Ve.completion=ke}function _e(Ve){this.tryEntries=[{tryLoc:"root"}],Ve.forEach(we,this),this.reset(!0)}function Pe(Ve){if(Ve||Ve===""){var ke=Ve[le];if(ke)return ke.call(Ve);if(typeof Ve.next=="function")return Ve;if(!isNaN(Ve.length)){var H=-1,ue=function(){function be(){for(;++H=0;--be){var Se=this.tryEntries[be],Ie=Se.completion;if(Se.tryLoc==="root")return ue("end");if(Se.tryLoc<=this.prev){var Ee=Y.call(Se,"catchLoc"),Me=Y.call(Se,"finallyLoc");if(Ee&&Me){if(this.prev=0;--ue){var be=this.tryEntries[ue];if(be.tryLoc<=this.prev&&Y.call(be,"finallyLoc")&&this.prev=0;--H){var ue=this.tryEntries[H];if(ue.finallyLoc===ke)return this.complete(ue.completion,ue.afterLoc),Re(ue),te}}return Ve}(),catch:function(){function Ve(ke){for(var H=this.tryEntries.length-1;H>=0;--H){var ue=this.tryEntries[H];if(ue.tryLoc===ke){var be=ue.completion;if(be.type==="throw"){var Se=be.arg;Re(ue)}return Se}}throw Error("illegal catch attempt")}return Ve}(),delegateYield:function(){function Ve(ke,H,ue){return this.delegate={iterator:Pe(ke),resultName:H,nextLoc:ue},this.method==="next"&&(this.arg=U),te}return Ve}()},W}function S(U,W,$,Y,ne,G,le){try{var de=U[G](le),oe=de.value}catch(re){return void $(re)}de.done?W(oe):Promise.resolve(oe).then(Y,ne)}function y(U){return function(){var W=this,$=arguments;return new Promise(function(Y,ne){var G=U.apply(W,$);function le(oe){S(G,Y,ne,le,de,"next",oe)}function de(oe){S(G,Y,ne,le,de,"throw",oe)}le(void 0)})}}var k=(0,t.createLogger)("drag"),V=(o=window.devicePixelRatio)!=null?o:1,p=Byond.windowId,i=!1,c=!1,s=[0,0],u,d,f,l,C,b=r.setWindowKey=function(){function U(W){p=W}return U}(),v=function(){return[window.screenLeft*V,window.screenTop*V]},h=function(){return[window.innerWidth*V,window.innerHeight*V]},g=function(W){var $=(0,a.vecAdd)(W,s);return Byond.winset(Byond.windowId,{pos:$[0]+","+$[1]})},N=function(W){return Byond.winset(Byond.windowId,{size:W[0]+"x"+W[1]})},x=function(){return[0-s[0],0-s[1]]},B=function(){return[window.screen.availWidth*V,window.screen.availHeight*V]},L=function(W,$,Y){Y===void 0&&(Y=50);for(var ne=[$],G,le=0;lere&&(G[de]=re-$[de],le=!0)}return[le,G]},O=r.dragStartHandler=function(){function U(W){k.log("drag start"),i=!0;var $=v();d=(0,a.vecSubtract)([W.screenX,W.screenY],v()),document.addEventListener("mousemove",P),document.addEventListener("mouseup",M),P(W)}return U}(),M=function(W){k.log("drag end"),P(W),document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",M),i=!1,T()},P=function(W){i&&(W.preventDefault(),g((0,a.vecSubtract)([W.screenX,W.screenY],d)))},R=r.resizeStartHandler=function(){function U(W,$){return function(Y){f=[W,$],k.log("resize start",f),c=!0,d=(0,a.vecSubtract)([Y.screenX,Y.screenY],v()),l=h(),document.addEventListener("mousemove",_),document.addEventListener("mouseup",F),_(Y)}}return U}(),F=function(W){k.log("resize end",C),_(W),document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",F),c=!1,T()},_=function(W){if(c){W.preventDefault();var $=(0,a.vecSubtract)([W.screenX,W.screenY],v()),Y=(0,a.vecSubtract)($,d);C=(0,a.vecAdd)(l,(0,a.vecMultiply)(f,Y),[1,1]),C[0]=Math.max(C[0],150*V),C[1]=Math.max(C[1],50*V),N(C)}}},24826:function(I,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(92868),a=n(92986);/** * Normalized browser focus events and BYOND-specific focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.globalEvents=new e.EventEmitter,o=!1,m=r.setupGlobalEvents=function(){function h(g){g===void 0&&(g={}),o=!!g.ignoreWindowFocus}return h}(),S,y=!0,k=function(g,N){if(o){y=!0;return}if(S&&(clearTimeout(S),S=null),N){S=setTimeout(function(){return k(g)});return}y!==g&&(y=g,t.emit(g?"window-focus":"window-blur"),t.emit("window-focus-change",g))},V=null,p=r.canStealFocus=function(){function h(g){var N=String(g.tagName).toLowerCase();return N==="input"||N==="textarea"}return h}(),i=function(g){c(),V=g,V.addEventListener("blur",c)},c=function(){V&&(V.removeEventListener("blur",c),V=null)},s=null,l=null,d=[],f=r.addScrollableNode=function(){function h(g){d.push(g)}return h}(),u=r.removeScrollableNode=function(){function h(g){var N=d.indexOf(g);N>=0&&d.splice(N,1)}return h}(),C=function(g){if(!(V||!y))for(var N=document.body;g&&g!==N;){if(d.includes(g)){if(g.contains(s))return;s=g,g.focus();return}g=g.parentNode}};window.addEventListener("mousemove",function(h){var g=h.target;g!==l&&(l=g,C(g))}),window.addEventListener("focusin",function(h){if(l=null,s=h.target,k(!0),p(h.target)){i(h.target);return}}),window.addEventListener("focusout",function(h){l=null,k(!1,!0)}),window.addEventListener("blur",function(h){l=null,k(!1,!0)}),window.addEventListener("beforeunload",function(h){k(!1)});var b={},v=r.KeyEvent=function(){function h(N,x,B){this.event=N,this.type=x,this.code=window.event?N.which:N.keyCode,this.ctrl=N.ctrlKey,this.shift=N.shiftKey,this.alt=N.altKey,this.repeat=!!B}var g=h.prototype;return g.hasModifierKeys=function(){function N(){return this.ctrl||this.alt||this.shift}return N}(),g.isModifierKey=function(){function N(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return N}(),g.isDown=function(){function N(){return this.type==="keydown"}return N}(),g.isUp=function(){function N(){return this.type==="keyup"}return N}(),g.toString=function(){function N(){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.KEY_F1&&this.code<=a.KEY_F12?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)}return N}(),h}();document.addEventListener("keydown",function(h){if(!p(h.target)){var g=h.keyCode,N=new v(h,"keydown",b[g]);t.emit("keydown",N),t.emit("key",N),b[g]=!0}}),document.addEventListener("keyup",function(h){if(!p(h.target)){var g=h.keyCode,N=new v(h,"keyup");t.emit("keyup",N),t.emit("key",N),b[g]=!1}})},87695:function(I,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** + */var t=r.globalEvents=new e.EventEmitter,o=!1,m=r.setupGlobalEvents=function(){function h(g){g===void 0&&(g={}),o=!!g.ignoreWindowFocus}return h}(),S,y=!0,k=function(g,N){if(o){y=!0;return}if(S&&(clearTimeout(S),S=null),N){S=setTimeout(function(){return k(g)});return}y!==g&&(y=g,t.emit(g?"window-focus":"window-blur"),t.emit("window-focus-change",g))},V=null,p=r.canStealFocus=function(){function h(g){var N=String(g.tagName).toLowerCase();return N==="input"||N==="textarea"}return h}(),i=function(g){c(),V=g,V.addEventListener("blur",c)},c=function(){V&&(V.removeEventListener("blur",c),V=null)},s=null,u=null,d=[],f=r.addScrollableNode=function(){function h(g){d.push(g)}return h}(),l=r.removeScrollableNode=function(){function h(g){var N=d.indexOf(g);N>=0&&d.splice(N,1)}return h}(),C=function(g){if(!(V||!y))for(var N=document.body;g&&g!==N;){if(d.includes(g)){if(g.contains(s))return;s=g,g.focus();return}g=g.parentNode}};window.addEventListener("mousemove",function(h){var g=h.target;g!==u&&(u=g,C(g))}),window.addEventListener("focusin",function(h){if(u=null,s=h.target,k(!0),p(h.target)){i(h.target);return}}),window.addEventListener("focusout",function(h){u=null,k(!1,!0)}),window.addEventListener("blur",function(h){u=null,k(!1,!0)}),window.addEventListener("beforeunload",function(h){k(!1)});var b={},v=r.KeyEvent=function(){function h(N,x,B){this.event=N,this.type=x,this.code=window.event?N.which:N.keyCode,this.ctrl=N.ctrlKey,this.shift=N.shiftKey,this.alt=N.altKey,this.repeat=!!B}var g=h.prototype;return g.hasModifierKeys=function(){function N(){return this.ctrl||this.alt||this.shift}return N}(),g.isModifierKey=function(){function N(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return N}(),g.isDown=function(){function N(){return this.type==="keydown"}return N}(),g.isUp=function(){function N(){return this.type==="keyup"}return N}(),g.toString=function(){function N(){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.KEY_F1&&this.code<=a.KEY_F12?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)}return N}(),h}();document.addEventListener("keydown",function(h){if(!p(h.target)){var g=h.keyCode,N=new v(h,"keydown",b[g]);t.emit("keydown",N),t.emit("key",N),b[g]=!0}}),document.addEventListener("keyup",function(h){if(!p(h.target)){var g=h.keyCode,N=new v(h,"keyup");t.emit("keyup",N),t.emit("key",N),b[g]=!1}})},87695:function(I,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** * Various focus helpers. * * @file @@ -246,32 +246,32 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y"],t=a.indexOf(" "),o=r.formatSiUnit=function(){function k(V,p,i){if(p===void 0&&(p=-t),i===void 0&&(i=""),typeof V!="number"||!Number.isFinite(V))return V;var c=Math.floor(Math.log10(V)),s=Math.floor(Math.max(p*3,c)),l=Math.floor(c/3),d=Math.floor(s/3),f=(0,e.clamp)(t+d,0,a.length),u=a[f],C=V/Math.pow(1e3,d),b=l>p?2+d*3-s:0,v=(0,e.toFixed)(C,b)+" "+u+i;return v.trim()}return k}(),m=r.formatPower=function(){function k(V,p){return p===void 0&&(p=0),o(V,p,"W")}return k}(),S=r.formatMoney=function(){function k(V,p){if(p===void 0&&(p=0),!Number.isFinite(V))return V;var i=(0,e.round)(V,p);p>0&&(i=(0,e.toFixed)(V,p)),i=String(i);var c=i.length,s=i.indexOf(".");s===-1&&(s=c);for(var l="",d=0;d0&&d=0?"+":p<0?"\u2013":"",c=Math.abs(p);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),i+c+" dB"}return k}()},56518:function(I,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=m(n(92986)),a=n(24826),t=n(9394);function o(f){if(typeof WeakMap!="function")return null;var u=new WeakMap,C=new WeakMap;return(o=function(v){return v?C:u})(f)}function m(f,u){if(!u&&f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var C=o(u);if(C&&C.has(f))return C.get(f);var b={__proto__:null},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in f)if(h!=="default"&&{}.hasOwnProperty.call(f,h)){var g=v?Object.getOwnPropertyDescriptor(f,h):null;g&&(g.get||g.set)?Object.defineProperty(b,h,g):b[h]=f[h]}return b.default=f,C&&C.set(f,b),b}/** + */var a=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y"],t=a.indexOf(" "),o=r.formatSiUnit=function(){function k(V,p,i){if(p===void 0&&(p=-t),i===void 0&&(i=""),typeof V!="number"||!Number.isFinite(V))return V;var c=Math.floor(Math.log10(V)),s=Math.floor(Math.max(p*3,c)),u=Math.floor(c/3),d=Math.floor(s/3),f=(0,e.clamp)(t+d,0,a.length),l=a[f],C=V/Math.pow(1e3,d),b=u>p?2+d*3-s:0,v=(0,e.toFixed)(C,b)+" "+l+i;return v.trim()}return k}(),m=r.formatPower=function(){function k(V,p){return p===void 0&&(p=0),o(V,p,"W")}return k}(),S=r.formatMoney=function(){function k(V,p){if(p===void 0&&(p=0),!Number.isFinite(V))return V;var i=(0,e.round)(V,p);p>0&&(i=(0,e.toFixed)(V,p)),i=String(i);var c=i.length,s=i.indexOf(".");s===-1&&(s=c);for(var u="",d=0;d0&&d=0?"+":p<0?"\u2013":"",c=Math.abs(p);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),i+c+" dB"}return k}()},56518:function(I,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=m(n(92986)),a=n(24826),t=n(9394);function o(f){if(typeof WeakMap!="function")return null;var l=new WeakMap,C=new WeakMap;return(o=function(v){return v?C:l})(f)}function m(f,l){if(!l&&f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var C=o(l);if(C&&C.has(f))return C.get(f);var b={__proto__:null},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in f)if(h!=="default"&&{}.hasOwnProperty.call(f,h)){var g=v?Object.getOwnPropertyDescriptor(f,h):null;g&&(g.get||g.set)?Object.defineProperty(b,h,g):b[h]=f[h]}return b.default=f,C&&C.set(f,b),b}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var S=(0,t.createLogger)("hotkeys"),y={},k=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],V={},p=function(u){if(u===16)return"Shift";if(u===17)return"Ctrl";if(u===18)return"Alt";if(u===33)return"Northeast";if(u===34)return"Southeast";if(u===35)return"Southwest";if(u===36)return"Northwest";if(u===37)return"West";if(u===38)return"North";if(u===39)return"East";if(u===40)return"South";if(u===45)return"Insert";if(u===46)return"Delete";if(u>=48&&u<=57||u>=65&&u<=90)return String.fromCharCode(u);if(u>=96&&u<=105)return"Numpad"+(u-96);if(u>=112&&u<=123)return"F"+(u-111);if(u===188)return",";if(u===189)return"-";if(u===190)return"."},i=function(u){var C=String(u);if(C==="Ctrl+F5"||C==="Ctrl+R"){location.reload();return}if(C!=="Ctrl+F"&&!(u.event.defaultPrevented||u.isModifierKey()||k.includes(u.code))){C==="F5"&&(u.event.preventDefault(),u.event.returnValue=!1);var b=p(u.code);if(b){var v=y[b];if(v)return S.debug("macro",v),Byond.command(v);if(u.isDown()&&!V[b]){V[b]=!0;var h='KeyDown "'+b+'"';return S.debug(h),Byond.command(h)}if(u.isUp()&&V[b]){V[b]=!1;var g='KeyUp "'+b+'"';return S.debug(g),Byond.command(g)}}}},c=r.acquireHotKey=function(){function f(u){k.push(u)}return f}(),s=r.releaseHotKey=function(){function f(u){var C=k.indexOf(u);C>=0&&k.splice(C,1)}return f}(),l=r.releaseHeldKeys=function(){function f(){for(var u=0,C=Object.keys(V);u0||(0,a.fetchRetry)((0,e.resolveAsset)("icon_ref_map.json")).then(function(S){return S.json()}).then(function(S){return Byond.iconRefMap=S}).catch(function(S){return t.logger.log(S)})}return m}()},1090:function(I,r,n){"use strict";r.__esModule=!0,r.AICard=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AICard=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data;if(i.has_ai===0)return(0,e.createComponentVNode)(2,o.Window,{width:250,height:120,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createVNode)(1,"h3",null,"No AI detected.",16)})})})});var c=null;return i.integrity>=75?c="green":i.integrity>=25?c="yellow":c="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c,value:i.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,i.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(s,l){return(0,e.createComponentVNode)(2,t.Box,{children:s},l)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.wireless?"check":"times",content:i.wireless?"Enabled":"Disabled",color:i.wireless?"green":"red",onClick:function(){function s(){return p("wireless")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.radio?"check":"times",content:i.radio?"Enabled":"Disabled",color:i.radio?"green":"red",onClick:function(){function s(){return p("radio")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:i.flushing||i.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function s(){return p("wipe")}return s}()})})]})})})]})})})}return S}()},39454:function(I,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AIFixer=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data;if(i.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var c=!0;(i.stat===2||i.stat===null)&&(c=!1);var s=null;i.integrity>=75?s="green":i.integrity>=25?s="yellow":s="red";var l=!0;return i.integrity>=100&&i.stat!==2&&(l=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s,value:i.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:c?"green":"red",children:c?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(d,f){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d},f)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.wireless?"times":"check",content:i.wireless?"Disabled":"Enabled",color:i.wireless?"red":"green",onClick:function(){function d(){return p("wireless")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.radio?"times":"check",content:i.radio?"Disabled":"Enabled",color:i.radio?"red":"green",onClick:function(){function d(){return p("radio")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!l||i.active,content:!l||i.active?"Already Repaired":"Repair",onClick:function(){function d(){return p("fix")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:i.active?"Reconstruction in progress.":""})]})})]})})})}return S}()},88422:function(I,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(195),S=r.APC=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return p}(),y={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"}},k={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},V=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.locked&&!d.siliconUser,u=d.normallyLocked,C=y[d.externalPower]||y[0],b=y[d.chargingStatus]||y[0],v=d.powerChannels||[],h=k[d.malfStatus]||k[0],g=d.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:C.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!f,color:d.isOperating?"":"bad",disabled:f,onClick:function(){function N(){return l("breaker")}return N}()}),children:["[ ",C.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:g})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:b.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:f,onClick:function(){function N(){return l("charge")}return N}()}),children:["[ ",b.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.map(function(N){var x=N.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:N.status>=2?"good":"bad",children:N.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!f&&(N.status===1||N.status===3),disabled:f,onClick:function(){function B(){return l("channel",x.auto)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!f&&N.status===2,disabled:f,onClick:function(){function B(){return l("channel",x.on)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!f&&N.status===0,disabled:f,onClick:function(){function B(){return l("channel",x.off)}return B}()})],4),children:[N.powerLoad," W"]},N.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[d.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,e.createFragment)([!!d.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:h.icon,content:h.content,color:"bad",onClick:function(){function N(){return l(h.action)}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function N(){return l("overload")}return N}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",disabled:f,onClick:function(){function N(){return l("cover")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",onClick:function(){function N(){return l("toggle_nightshift")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting Fallback",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:d.emergencyLights?"Engaged":"Disengaged",disabled:f,onClick:function(){function N(){return l("emergency_lighting")}return N}()})})]})})],4)}},99660:function(I,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ATM=function(){function l(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v=b.view_screen,h=b.authenticated_account,g=b.ticks_left_locked_down,N=b.linked_db,x;if(g>0)x=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!N)x=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(h)switch(v){case 1:x=(0,e.createComponentVNode)(2,y);break;case 2:x=(0,e.createComponentVNode)(2,k);break;case 3:x=(0,e.createComponentVNode)(2,c);break;case 4:x=(0,e.createComponentVNode)(2,V);break;default:x=(0,e.createComponentVNode)(2,p)}else x=(0,e.createComponentVNode)(2,i);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,t.Section,{children:x})]})})}return l}(),S=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v=b.machine_id,h=b.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"eject",onClick:function(){function g(){return C("insert_card")}return g}()})})})]})},y=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v=b.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:v===0,onClick:function(){function h(){return C("change_security_level",{new_security_level:0})}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:v===1,onClick:function(){function h(){return C("change_security_level",{new_security_level:1})}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Card and Account Pin",icon:"unlock",selected:v===2,onClick:function(){function h(){return C("change_security_level",{new_security_level:2})}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number, pin and card are required to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,s)]})},k=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v=(0,a.useLocalState)(f,"targetAccNumber",0),h=v[0],g=v[1],N=(0,a.useLocalState)(f,"fundsAmount",0),x=N[0],B=N[1],L=(0,a.useLocalState)(f,"purpose",0),T=L[0],E=L[1],w=b.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",w]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function A(O,M){return g(M)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function A(O,M){return B(M)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function A(O,M){return E(M)}return A}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function A(){return C("transfer",{target_acc_number:h,funds_amount:x,purpose:T})}return A}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,s)]})},V=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v=b.insurance_type;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u043E\u0432\u044B\u0439 \u0442\u0438\u043F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0438",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u043F",children:[(0,e.createComponentVNode)(2,t.Button,{content:"\u041D\u0435\u0442 (0)",icon:"unlock",selected:v==="None",onClick:function(){function h(){return C("change_insurance_type",{new_insurance_type:"None"})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0411\u044E\u0434\u0436\u0435\u0442\u043D\u0430\u044F (0)",icon:"unlock",selected:v==="Bugetary",onClick:function(){function h(){return C("change_insurance_type",{new_insurance_type:"Bugetary"})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u0430\u044F (500)",icon:"unlock",selected:v==="Standart",onClick:function(){function h(){return C("change_insurance_type",{new_insurance_type:"Standart"})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0414\u0435\u043B\u044E\u043A\u0441 (2000)",icon:"unlock",selected:v==="Deluxe",onClick:function(){function h(){return C("change_insurance_type",{new_insurance_type:"Deluxe"})}return h}()})]})}),(0,e.createComponentVNode)(2,s)]})},p=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v=(0,a.useLocalState)(f,"fundsAmount",0),h=v[0],g=v[1],N=(0,a.useLocalState)(f,"insuranceAmount",0),x=N[0],B=N[1],L=b.owner_name,T=b.money,E=b.insurance;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+L,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function w(){return C("logout")}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",T]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function w(A,O){return g(O)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function w(){return C("withdrawal",{funds_amount:h})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Insurance Points",children:["$",E]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Adding Insurance",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function w(A,O){return B(O)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Add insurance points",icon:"sign-out-alt",onClick:function(){function w(){return C("insurance",{insurance_amount:x})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Toggle auto-replenishment of insurance",icon:"sign-out-alt",onClick:function(){function w(){return C("insurance_replenishment",{})}return w}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function w(){return C("view_screen",{view_screen:1})}return w}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function w(){return C("view_screen",{view_screen:2})}return w}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function w(){return C("view_screen",{view_screen:3})}return w}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change type of insurance",icon:"lock",onClick:function(){function w(){return C("view_screen",{view_screen:4})}return w}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function w(){return C("balance_statement")}return w}()})})]})],4)},i=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v=(0,a.useLocalState)(f,"accountID",null),h=v[0],g=v[1],N=(0,a.useLocalState)(f,"accountPin",null),x=N[0],B=N[1],L=b.machine_id,T=b.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function E(w,A){return g(A)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function E(w,A){return B(A)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function E(){return C("attempt_auth",{account_num:h,account_pin:x})}return E}()})})]})})},c=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v=b.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),v.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:h.is_deposit?"green":"red",children:["$",h.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.target_name})]},h)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,s)]})},s=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function v(){return C("view_screen",{view_screen:0})}return v}()})}},86423:function(I,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(36352),S=n(98595),y=n(321),k=n(5485),V=r.AccountsUplinkTerminal=function(){function d(f,u){var C=(0,t.useBackend)(u),b=C.act,v=C.data,h=v.loginState,g=v.currentPage,N;if(h.logged_in)g===1?N=(0,e.createComponentVNode)(2,p):g===2?N=(0,e.createComponentVNode)(2,s):g===3&&(N=(0,e.createComponentVNode)(2,l));else return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,k.LoginScreen)})})});return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:N})]})})})}return d}(),p=function(f,u){var C=(0,t.useBackend)(u),b=C.act,v=C.data,h=v.accounts,g=(0,t.useLocalState)(u,"searchText",""),N=g[0],x=g[1],B=(0,t.useLocalState)(u,"sortId","owner_name"),L=B[0],T=B[1],E=(0,t.useLocalState)(u,"sortOrder",!0),w=E[0],A=E[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,i,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,i,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,i,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,i,{id:"money",children:"Account Balance"})]}),h.filter((0,a.createSearch)(N,function(O){return O.owner_name+"|"+O.account_number+"|"+O.suspended+"|"+O.money})).sort(function(O,M){var P=w?1:-1;return O[L].localeCompare(M[L])*P}).map(function(O){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+O.suspended,onClick:function(){function M(){return b("view_account_detail",{index:O.account_index})}return M}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",O.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.money})]},O.account_number)})]})})})]})},i=function(f,u){var C=(0,t.useLocalState)(u,"sortId","name"),b=C[0],v=C[1],h=(0,t.useLocalState)(u,"sortOrder",!0),g=h[0],N=h[1],x=f.id,B=f.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:b!==x&&"transparent",width:"100%",onClick:function(){function L(){b===x?N(!g):(v(x),N(!0))}return L}(),children:[B,b===x&&(0,e.createComponentVNode)(2,o.Icon,{name:g?"sort-up":"sort-down",ml:"0.25rem;"})]})})},c=function(f,u){var C=(0,t.useBackend)(u),b=C.act,v=C.data,h=v.is_printing,g=(0,t.useLocalState)(u,"searchText",""),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function B(){return b("create_new_account")}return B}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"print",content:"Print Account List",disabled:h,ml:"0.25rem",onClick:function(){function B(){return b("print_records")}return B}()})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function B(L,T){return x(T)}return B}()})})]})},s=function(f,u){var C=(0,t.useBackend)(u),b=C.act,v=C.data,h=v.account_number,g=v.owner_name,N=v.money,x=v.suspended,B=v.transactions;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+h+" / "+g,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function L(){return b("back")}return L}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",h]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:N}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:x?"red":"green",children:[x?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:x?"Unsuspend":"Suspend",icon:x?"unlock":"lock",onClick:function(){function L(){return b("toggle_suspension")}return L}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),B.map(function(L){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:L.is_deposit?"green":"red",children:["$",L.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.target_name})]},L)})]})})})]})},l=function(f,u){var C=(0,t.useBackend)(u),b=C.act,v=C.data,h=(0,t.useLocalState)(u,"accName",""),g=h[0],N=h[1],x=(0,t.useLocalState)(u,"accDeposit",""),B=x[0],L=x[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return b("back")}return T}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function T(E,w){return N(w)}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function T(E,w){return L(w)}return T}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function T(){return b("finalise_create_account",{holder_name:g,starting_funds:B})}return T}()})]})}},79571:function(I,r,n){"use strict";r.__esModule=!0,r.AgentCardSLSlots=r.AgentCardInfo=r.AgentCardAppearances=r.AgentCard=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(98595),S=r.AgentCard=function(){function p(i,c){var s=(0,t.useLocalState)(c,"tabIndex",0),l=s[0],d=s[1],f=function(){function u(C){switch(C){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,V);default:return(0,e.createComponentVNode)(2,y)}}return u}();return(0,e.createComponentVNode)(2,m.Window,{width:500,height:475,theme:"syndicate",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:l===0,onClick:function(){function u(){return d(0)}return u}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:l===1,onClick:function(){function u(){return d(1)}return u}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"id-card"})," Appearance"]},"Appearance"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:l===2,onClick:function(){function u(){return d(2)}return u}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"arrow-down"})," Save/Load Card Info"]},"Save/Load Card Info")]}),f(l)]})})})}return p}(),y=r.AgentCardInfo=function(){function p(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.registered_name,u=d.sex,C=d.age,b=d.assignment,v=d.associated_account_number,h=d.blood_type,g=d.dna_hash,N=d.fingerprint_hash,x=d.photo,B=d.ai_tracking;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Card Info",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Button,{content:f||"[UNSET]",onClick:function(){function L(){return l("change_name")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sex",children:(0,e.createComponentVNode)(2,o.Button,{iconRight:!1,content:u||"[UNSET]",onClick:function(){function L(){return l("change_sex")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Age",children:(0,e.createComponentVNode)(2,o.Button,{content:C||"[UNSET]",onClick:function(){function L(){return l("change_age")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,o.Button,{content:b||"[UNSET]",onClick:function(){function L(){return l("change_occupation")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Fingerprints",children:(0,e.createComponentVNode)(2,o.Button,{content:N||"[UNSET]",onClick:function(){function L(){return l("change_fingerprints")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Type",children:(0,e.createComponentVNode)(2,o.Button,{content:h||"[UNSET]",onClick:function(){function L(){return l("change_blood_type")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"DNA Hash",children:(0,e.createComponentVNode)(2,o.Button,{content:g||"[UNSET]",onClick:function(){function L(){return l("change_dna_hash")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Money Account",children:(0,e.createComponentVNode)(2,o.Button,{content:v||"[UNSET]",onClick:function(){function L(){return l("change_money_account")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo",children:(0,e.createComponentVNode)(2,o.Button,{content:x?"Update":"[UNSET]",onClick:function(){function L(){return l("change_photo")}return L}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Card Settings",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Card Info",children:(0,e.createComponentVNode)(2,o.Button,{content:"Delete Card Info",onClick:function(){function L(){return l("delete_info")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Access",children:(0,e.createComponentVNode)(2,o.Button,{content:"Reset Access",onClick:function(){function L(){return l("clear_access")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"AI Tracking",children:(0,e.createComponentVNode)(2,o.Button,{content:B?"Untrackable":"Trackable",onClick:function(){function L(){return l("change_ai_tracking")}return L}()})})]})})],4)}return p}(),k=r.AgentCardAppearances=function(){function p(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.appearances;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Card Appearance",children:f.map(function(u){return(0,e.createComponentVNode)(2,o.ImageButton,{tooltip:u,vertical:!0,asset:!0,style:{margin:"1px"},image:u,imageAsset:"id_card64x64",onclick:function(){function C(){return l("change_appearance_new",{new_appearance:u})}return C}()},u)})})}return p}(),V=r.AgentCardSLSlots=function(){function p(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.saved_info;return(0,e.createComponentVNode)(2,o.Section,{title:"Save/Load Manager",style:{"line-height":"25px"},children:(0,e.createComponentVNode)(2,o.LabeledList,{children:f.map(function(u){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:u.registered_name?u.registered_name+", "+u.assignment:"Slot "+u.id,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Clear",onClick:function(){function C(){return l("clear_slot",{slot:u.id})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Save",onClick:function(){function C(){return l("save_slot",{slot:u.id})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Load",disabled:!u.registered_name,onClick:function(){function C(){return l("load_slot",{slot:u.id})}return C}()})],4)},u.id)})})})}return p}()},56793:function(I,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},S=r.AiAirlock=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=m[c.power.main]||m[0],l=m[c.power.backup]||m[0],d=m[c.shock]||m[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:s.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function f(){return i("disrupt-main")}return f}()}),children:[c.power.main?"Online":"Offline"," ",!c.wires.main_power&&"[Wires have been cut!]"||c.power.main_timeleft>0&&"["+c.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:l.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function f(){return i("disrupt-backup")}return f}()}),children:[c.power.backup?"Online":"Offline"," ",!c.wires.backup_power&&"[Wires have been cut!]"||c.power.backup_timeleft>0&&"["+c.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:d.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(c.wires.shock&&c.shock!==2),content:"Restore",onClick:function(){function f(){return i("shock-restore")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function f(){return i("shock-temp")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function f(){return i("shock-perm")}return f}()})],4),children:[c.shock===2?"Safe":"Electrified"," ",!c.wires.shock&&"[Wires have been cut!]"||c.shock_timeleft>0&&"["+c.shock_timeleft+"s]"||c.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.id_scanner?"power-off":"times",content:c.id_scanner?"Enabled":"Disabled",selected:c.id_scanner,disabled:!c.wires.id_scanner,onClick:function(){function f(){return i("idscan-toggle")}return f}()}),children:!c.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:c.emergency?"power-off":"times",content:c.emergency?"Enabled":"Disabled",selected:c.emergency,onClick:function(){function f(){return i("emergency-toggle")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:c.locked?"lock":"unlock",content:c.locked?"Lowered":"Raised",selected:c.locked,disabled:!c.wires.bolts,onClick:function(){function f(){return i("bolt-toggle")}return f}()}),children:!c.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.lights?"power-off":"times",content:c.lights?"Enabled":"Disabled",selected:c.lights,disabled:!c.wires.lights,onClick:function(){function f(){return i("light-toggle")}return f}()}),children:!c.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.safe?"power-off":"times",content:c.safe?"Enabled":"Disabled",selected:c.safe,disabled:!c.wires.safe,onClick:function(){function f(){return i("safe-toggle")}return f}()}),children:!c.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.speed?"power-off":"times",content:c.speed?"Enabled":"Disabled",selected:c.speed,disabled:!c.wires.timing,onClick:function(){function f(){return i("speed-toggle")}return f}()}),children:!c.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c.opened?"sign-out-alt":"sign-in-alt",content:c.opened?"Open":"Closed",selected:c.opened,disabled:c.locked||c.welded,onClick:function(){function f(){return i("open-close")}return f}()}),children:!!(c.locked||c.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),c.locked?"bolted":"",c.locked&&c.welded?" and ":"",c.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return y}()},72475:function(I,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(195),S=r.AirAlarm=function(){function d(f,u){var C=(0,a.useBackend)(u),b=C.act,v=C.data,h=v.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:h?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,k),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,p)],4)]})})}return d}(),y=function(f){return f===0?"green":f===1?"orange":"red"},k=function(f,u){var C=(0,a.useBackend)(u),b=C.act,v=C.data,h=v.air,g=v.mode,N=v.atmos_alarm,x=v.locked,B=v.alarmActivated,L=v.rcon,T=v.target_temp,E;return h.danger.overall===0?N===0?E="Optimal":E="Caution: Atmos alert in area":h.danger.overall===1?E="Caution":E="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:y(h.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.pressure})," kPa",!x&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:g===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:g===3,icon:"exclamation-triangle",onClick:function(){function w(){return b("mode",{mode:g===3?1:3})}return w}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.oxygen/100,fractionDigits:"1",color:y(h.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.nitrogen/100,fractionDigits:"1",color:y(h.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.co2/100,fractionDigits:"1",color:y(h.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.plasma/100,fractionDigits:"1",color:y(h.danger.plasma)})}),h.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.n2o/100,fractionDigits:"1",color:y(h.danger.n2o)})}),h.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.other/100,fractionDigits:"1",color:y(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:y(h.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function w(){return b("temperature")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:h.thermostat_state?"On":"Off",selected:h.thermostat_state,icon:"power-off",onClick:function(){function w(){return b("thermostat_state")}return w}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:y(h.danger.overall),children:[E,!x&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:B?"Reset Alarm":"Activate Alarm",selected:B,onClick:function(){function w(){return b(B?"atmos_reset":"atmos_alarm")}return w}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:L===1,onClick:function(){function w(){return b("set_rcon",{rcon:1})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:L===2,onClick:function(){function w(){return b("set_rcon",{rcon:2})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:L===3,onClick:function(){function w(){return b("set_rcon",{rcon:3})}return w}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},V=function(f,u){var C=(0,a.useLocalState)(u,"tabIndex",0),b=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===0,onClick:function(){function h(){return v(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===1,onClick:function(){function h(){return v(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===2,onClick:function(){function h(){return v(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===3,onClick:function(){function h(){return v(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},p=function(f,u){var C=(0,a.useLocalState)(u,"tabIndex",0),b=C[0],v=C[1];switch(b){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,l);default:return"WE SHOULDN'T BE HERE!"}},i=function(f,u){var C=(0,a.useBackend)(u),b=C.act,v=C.data,h=v.vents;return h.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function N(){return b("command",{cmd:"power",val:g.power===1?0:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.direction==="release"?"Blowing":"Siphoning",icon:g.direction==="release"?"sign-out-alt":"sign-in-alt",onClick:function(){function N(){return b("command",{cmd:"direction",val:g.direction==="release"?0:1,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:g.checks===1,onClick:function(){function N(){return b("command",{cmd:"checks",val:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:g.checks===2,onClick:function(){function N(){return b("command",{cmd:"checks",val:2,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:g.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function N(){return b("command",{cmd:"set_external_pressure",id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function N(){return b("command",{cmd:"set_external_pressure",val:101.325,id_tag:g.id_tag})}return N}()})]})]})},g.name)})},c=function(f,u){var C=(0,a.useBackend)(u),b=C.act,v=C.data,h=v.scrubbers;return h.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function N(){return b("command",{cmd:"power",val:g.power===1?0:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.scrubbing?"Scrubbing":"Siphoning",icon:g.scrubbing?"filter":"sign-in-alt",onClick:function(){function N(){return b("command",{cmd:"scrubbing",val:g.scrubbing===0?1:0,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:g.widenet?"Extended":"Normal",selected:g.widenet,icon:"expand-arrows-alt",onClick:function(){function N(){return b("command",{cmd:"widenet",val:g.widenet===0?1:0,id_tag:g.id_tag})}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:g.filter_co2,onClick:function(){function N(){return b("command",{cmd:"co2_scrub",val:g.filter_co2===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:g.filter_toxins,onClick:function(){function N(){return b("command",{cmd:"tox_scrub",val:g.filter_toxins===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:g.filter_n2o,onClick:function(){function N(){return b("command",{cmd:"n2o_scrub",val:g.filter_n2o===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:g.filter_o2,onClick:function(){function N(){return b("command",{cmd:"o2_scrub",val:g.filter_o2===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:g.filter_n2,onClick:function(){function N(){return b("command",{cmd:"n2_scrub",val:g.filter_n2===0?1:0,id_tag:g.id_tag})}return N}()})]})]})},g.name)})},s=function(f,u){var C=(0,a.useBackend)(u),b=C.act,v=C.data,h=v.modes,g=v.presets,N=v.emagged,x=v.mode,B=v.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:h.map(function(L){return(!L.emagonly||L.emagonly&&!!N)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===x,onClick:function(){function T(){return b("mode",{mode:L.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:g.map(function(L){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===B,onClick:function(){function T(){return b("preset",{preset:L.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})]})],4)},l=function(f,u){var C=(0,a.useBackend)(u),b=C.act,v=C.data,h=v.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),h.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.name}),g.settings.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:N.selected===-1?"Off":N.selected,onClick:function(){function x(){return b("command",{cmd:"set_threshold",env:N.env,var:N.val})}return x}()})},N.val)})]},g.name)})]})})}},12333:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AirlockAccessController=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.exterior_status,s=i.interior_status,l=i.processing,d,f;return c==="open"?d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:l,onClick:function(){function u(){return p("force_ext")}return u}()}):d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:l,onClick:function(){function u(){return p("cycle_ext_door")}return u}()}),s==="open"?f=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:l,color:s==="open"?"red":l?"yellow":null,onClick:function(){function u(){return p("force_int")}return u}()}):f=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:l,onClick:function(){function u(){return p("cycle_int_door")}return u}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:c==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:s==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[d,f]})})]})})}return S}()},28736:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(49148),S=1,y=2,k=4,V=8,p=r.AirlockElectronics=function(){function s(l,d){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})})}return s}(),i=function(l,d){var f=(0,a.useBackend)(d),u=f.act,C=f.data,b=C.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:b&k?"selected":null,onClick:function(){function v(){return u("unrestricted_access",{unres_dir:k})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:b&y?"selected":null,onClick:function(){function v(){return u("unrestricted_access",{unres_dir:y})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:b&V?"selected":null,onClick:function(){function v(){return u("unrestricted_access",{unres_dir:V})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:b&S?"selected":null,onClick:function(){function v(){return u("unrestricted_access",{unres_dir:S})}return v}()})})]})]})})},c=function(l,d){var f=(0,a.useBackend)(d),u=f.act,C=f.data,b=C.selected_accesses,v=C.one_access,h=C.regions;return(0,e.createComponentVNode)(2,m.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:v,content:"One",onClick:function(){function g(){return u("set_one_access",{access:"one"})}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!v,content:"All",onClick:function(){function g(){return u("set_one_access",{access:"all"})}return g}()})],4),accesses:h,selectedList:b,accessMod:function(){function g(N){return u("set",{access:N})}return g}(),grantAll:function(){function g(){return u("grant_all")}return g}(),denyAll:function(){function g(){return u("clear_all")}return g}(),grantDep:function(){function g(N){return u("grant_region",{region:N})}return g}(),denyDep:function(){function g(N){return u("deny_region",{region:N})}return g}()})}},47365:function(I,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(92986),m=n(36036),S=n(98595),y=-1,k=1,V=r.AlertModal=function(){function c(s,l){var d=(0,t.useBackend)(l),f=d.act,u=d.data,C=u.autofocus,b=u.buttons,v=b===void 0?[]:b,h=u.large_buttons,g=u.message,N=g===void 0?"":g,x=u.timeout,B=u.title,L=(0,t.useLocalState)(l,"selected",0),T=L[0],E=L[1],w=110+(N.length>30?Math.ceil(N.length/4):0)+(N.length&&h?5:0),A=325+(v.length>2?100:0),O=function(){function M(P){T===0&&P===y?E(v.length-1):T===v.length-1&&P===k?E(0):E(T+P)}return M}();return(0,e.createComponentVNode)(2,S.Window,{title:B,height:w,width:A,children:[!!x&&(0,e.createComponentVNode)(2,a.Loader,{value:x}),(0,e.createComponentVNode)(2,S.Window.Content,{onKeyDown:function(){function M(P){var R=window.event?P.which:P.keyCode;R===o.KEY_SPACE||R===o.KEY_ENTER?f("choose",{choice:v[T]}):R===o.KEY_ESCAPE?f("cancel"):R===o.KEY_LEFT?(P.preventDefault(),O(y)):(R===o.KEY_TAB||R===o.KEY_RIGHT)&&(P.preventDefault(),O(k))}return M}(),children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,m.Box,{color:"label",overflow:"hidden",children:N})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:[!!C&&(0,e.createComponentVNode)(2,m.Autofocus),(0,e.createComponentVNode)(2,p,{selected:T})]})]})})})]})}return c}(),p=function(s,l){var d=(0,t.useBackend)(l),f=d.data,u=f.buttons,C=u===void 0?[]:u,b=f.large_buttons,v=f.swapped_buttons,h=s.selected;return(0,e.createComponentVNode)(2,m.Flex,{fill:!0,align:"center",direction:v?"row":"row-reverse",justify:"space-around",wrap:!0,children:C==null?void 0:C.map(function(g,N){return b&&C.length<3?(0,e.createComponentVNode)(2,m.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{button:g,id:N.toString(),selected:h===N})},N):(0,e.createComponentVNode)(2,m.Flex.Item,{grow:b?1:0,children:(0,e.createComponentVNode)(2,i,{button:g,id:N.toString(),selected:h===N})},N)})})},i=function(s,l){var d=(0,t.useBackend)(l),f=d.act,u=d.data,C=u.large_buttons,b=s.button,v=s.selected,h=b.length>7?"100%":7;return(0,e.createComponentVNode)(2,m.Button,{mx:C?1:0,pt:C?.33:0,content:b,fluid:!!C,onClick:function(){function g(){return f("choose",{choice:b})}return g}(),selected:v,textAlign:"center",height:!!C&&2,width:!C&&h})}},71824:function(I,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AppearanceChanger=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.change_race,l=c.species,d=c.specimen,f=c.change_gender,u=c.gender,C=c.has_gender,b=c.change_eye_color,v=c.change_skin_tone,h=c.change_skin_color,g=c.change_head_accessory_color,N=c.change_hair_color,x=c.change_secondary_hair_color,B=c.change_facial_hair_color,L=c.change_secondary_facial_hair_color,T=c.change_head_marking_color,E=c.change_body_marking_color,w=c.change_tail_marking_color,A=c.change_head_accessory,O=c.head_accessory_styles,M=c.head_accessory_style,P=c.change_hair,R=c.hair_styles,F=c.hair_style,_=c.change_hair_gradient,U=c.change_facial_hair,W=c.facial_hair_styles,$=c.facial_hair_style,G=c.change_head_markings,oe=c.head_marking_styles,X=c.head_marking_style,pe=c.change_body_markings,me=c.body_marking_styles,ne=c.body_marking_style,re=c.change_tail_markings,q=c.tail_marking_styles,ae=c.tail_marking_style,J=c.change_body_accessory,Y=c.body_accessory_styles,Q=c.body_accessory_style,Z=c.change_alt_head,te=c.alt_head_styles,se=c.alt_head_style,ye=!1;return(b||v||h||g||N||x||B||L||T||E||w)&&(ye=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:l.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.specimen,selected:fe.specimen===d,onClick:function(){function Le(){return i("race",{race:fe.specimen})}return Le}()},fe.specimen)})}),!!f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:u==="male",onClick:function(){function fe(){return i("gender",{gender:"male"})}return fe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:u==="female",onClick:function(){function fe(){return i("gender",{gender:"female"})}return fe}()}),!C&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:u==="plural",onClick:function(){function fe(){return i("gender",{gender:"plural"})}return fe}()})]}),!!ye&&(0,e.createComponentVNode)(2,S),!!A&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:O.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.headaccessorystyle,selected:fe.headaccessorystyle===M,onClick:function(){function Le(){return i("head_accessory",{head_accessory:fe.headaccessorystyle})}return Le}()},fe.headaccessorystyle)})}),!!P&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:R.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.hairstyle,selected:fe.hairstyle===F,onClick:function(){function Le(){return i("hair",{hair:fe.hairstyle})}return Le}()},fe.hairstyle)})}),!!_&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function fe(){return i("hair_gradient")}return fe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function fe(){return i("hair_gradient_offset")}return fe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function fe(){return i("hair_gradient_colour")}return fe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function fe(){return i("hair_gradient_alpha")}return fe}()})]}),!!U&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:W.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.facialhairstyle,selected:fe.facialhairstyle===$,onClick:function(){function Le(){return i("facial_hair",{facial_hair:fe.facialhairstyle})}return Le}()},fe.facialhairstyle)})}),!!G&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:oe.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.headmarkingstyle,selected:fe.headmarkingstyle===X,onClick:function(){function Le(){return i("head_marking",{head_marking:fe.headmarkingstyle})}return Le}()},fe.headmarkingstyle)})}),!!pe&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:me.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.bodymarkingstyle,selected:fe.bodymarkingstyle===ne,onClick:function(){function Le(){return i("body_marking",{body_marking:fe.bodymarkingstyle})}return Le}()},fe.bodymarkingstyle)})}),!!re&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:q.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.tailmarkingstyle,selected:fe.tailmarkingstyle===ae,onClick:function(){function Le(){return i("tail_marking",{tail_marking:fe.tailmarkingstyle})}return Le}()},fe.tailmarkingstyle)})}),!!J&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:Y.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.bodyaccessorystyle,selected:fe.bodyaccessorystyle===Q,onClick:function(){function Le(){return i("body_accessory",{body_accessory:fe.bodyaccessorystyle})}return Le}()},fe.bodyaccessorystyle)})}),!!Z&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:te.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.altheadstyle,selected:fe.altheadstyle===se,onClick:function(){function Le(){return i("alt_head",{alt_head:fe.altheadstyle})}return Le}()},fe.altheadstyle)})})]})})})}return y}(),S=function(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:s.map(function(l){return!!c[l.key]&&(0,e.createComponentVNode)(2,t.Button,{content:l.text,onClick:function(){function d(){return i(l.action)}return d}()},l.key)})})}},72285:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AtmosAlertConsole=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.priority||[],s=i.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[c.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),c.map(function(l){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l,color:"bad",onClick:function(){function d(){return p("clear",{zone:l})}return d}()}),2,null,l)}),s.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),s.map(function(l){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l,color:"average",onClick:function(){function d(){return p("clear",{zone:l})}return d}()}),2,null,l)})],0)})})})}return S}()},65805:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(36352),m=n(98595),S=function(c){if(c===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(c===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(c===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},y=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},k=r.AtmosControl=function(){function i(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=(0,a.useLocalState)(s,"tabIndex",0),C=u[0],b=u[1],v=function(){function h(g){switch(g){case 0:return(0,e.createComponentVNode)(2,V);case 1:return(0,e.createComponentVNode)(2,p);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,m.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:C===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===0,onClick:function(){function h(){return b(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===1,onClick:function(){function h(){return b(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),v(C)]})})})}return i}(),V=function(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),u.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:C.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:S(C.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function b(){return d("open_alarm",{aref:C.ref})}return b}()})})]},C.name)})]})})},p=function(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.alarms,C=f.stationLevelNum,b=f.stationLevelName,v=(0,a.useLocalState)(s,"zoom",1),h=v[0],g=v[1],N=(0,a.useLocalState)(s,"z_current",C[0]),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function L(T){return g(T)}return L}(),zLevels:C,zNames:b,z_current:x,setZCurrent:B,children:u.map(function(L){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:L.x,y:L.y,z:L.z,z_current:x,zoom:h,icon:"circle",tooltip:L.name,color:y(L.danger),onClick:function(){function T(){return d("open_alarm",{aref:L.ref})}return T}()},L.ref)})})})}},87816:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AtmosFilter=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.on,s=i.pressure,l=i.max_pressure,d=i.filter_type,f=i.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function u(){return p("power")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:s===0,width:2.2,onClick:function(){function u(){return p("min_pressure")}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:l,value:s,onDrag:function(){function u(C,b){return p("custom_pressure",{pressure:b})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:s===l,width:2.2,onClick:function(){function u(){return p("max_pressure")}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:f.map(function(u){return(0,e.createComponentVNode)(2,t.Button,{selected:u.gas_type===d,content:u.label,onClick:function(){function C(){return p("set_filter",{filter:u.gas_type})}return C}()},u.label)})})]})})})})}return S}()},52977:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AtmosMixer=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.on,l=c.pressure,d=c.max_pressure,f=c.node1_concentration,u=c.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:s?"On":"Off",color:s?null:"red",selected:s,onClick:function(){function C(){return i("power")}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:l===0,width:2.2,onClick:function(){function C(){return i("min_pressure")}return C}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:l,onDrag:function(){function C(b,v){return i("custom_pressure",{pressure:v})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:l===d,width:2.2,onClick:function(){function C(){return i("max_pressure")}return C}()})]}),(0,e.createComponentVNode)(2,S,{node_name:"Node 1",node_ref:f}),(0,e.createComponentVNode)(2,S,{node_name:"Node 2",node_ref:u})]})})})})}return y}(),S=function(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=k.node_name,l=k.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:l===0,onClick:function(){function d(){return i("set_node",{node_name:s,concentration:(l-10)/100})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:l,onChange:function(){function d(f,u){return i("set_node",{node_name:s,concentration:u/100})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:l===100,onClick:function(){function d(){return i("set_node",{node_name:s,concentration:(l+10)/100})}return d}()})]})}},11748:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AtmosPump=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.on,s=i.rate,l=i.max_rate,d=i.gas_unit,f=i.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function u(){return p("power")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:s===0,width:2.2,onClick:function(){function u(){return p("min_rate")}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:d,width:6.1,lineHeight:1.5,step:f,minValue:0,maxValue:l,value:s,onDrag:function(){function u(C,b){return p("custom_rate",{rate:b})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:s===l,width:2.2,onClick:function(){function u(){return p("max_rate")}return u}()})]})]})})})})}return S}()},76511:function(I,r,n){"use strict";r.__esModule=!0,r.AutoDoc=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(39473),S=r.AutoDoc=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.HasTray,l=c.TguiIcons,d=c.occupant,f=c.isHealing,u=c.fixtimer,C=c.healtimer,b=(0,a.useLocalState)(V,"ChoosePart","chest"),v=b[0],h=b[1];return(0,e.createComponentVNode)(2,o.Window,{theme:"ntOS95",resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Flex,{width:"100%",children:[(0,e.createComponentVNode)(2,m.FlexItem,{basis:"30%",children:[(0,e.createVNode)(1,"img",null,null,1,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+l.human,style:{position:"absolute","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"img",null,null,1,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+l[v],style:{position:"absolute","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})]}),(0,e.createComponentVNode)(2,m.FlexItem,{basis:"70%",children:(0,e.createComponentVNode)(2,t.Section,{title:"Info",buttons:(0,e.createFragment)([Object.keys(l).map(function(g){return g!=="human"&&(0,e.createComponentVNode)(2,t.Button,{content:g,selected:g===v,onClick:function(){function N(){return h(g)}return N}(),z:!0},g)}),(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:s?"Eject Tray":"Reject Tray",locked:f,onClick:function(){function g(){return i("ChangeTrayState")}return g}()})],0),children:(0,e.createComponentVNode)(2,t.Box,{children:[!!(d[v]&&d[v].extOrgan)&&d[v].extOrgan.map(function(g){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,g.name,0),(0,e.createVNode)(1,"br"),g.open?"opened":"",g.broken?"broken":"",!!g.broken&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Fix",style:{"margin-left":"30px"},locked:f,onClick:function(){function N(){return i("FixOrgan",{organ:g.name,type:"fracture"})}return N}()}),(0,e.createVNode)(1,"br")],4),g.internalBleeding?"bleeding":"",!!g.internalBleeding&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Fix",style:{"margin-left":"30px"},locked:f,onClick:function(){function N(){return i("FixOrgan",{organ:g.name,type:"bleeding"})}return N}()}),(0,e.createVNode)(1,"br")],4),(0,e.createTextVNode)("Internals:"),(0,e.createComponentVNode)(2,t.Button,{content:"Complete",style:{"margin-left":"10px"},locked:f,onClick:function(){function N(){return i("FixOrgan",{organ:g.name,type:"completeInternal"})}return N}()}),(0,e.createVNode)(1,"br"),g.dead?"dead":"",!!g.dead&&(0,e.createVNode)(1,"br"),g.germ_level?"Germ level is "+g.germ_level:"",!!g.germ_level&&(0,e.createVNode)(1,"br"),g.totalLoss?"Total damage is "+g.totalLoss:"",(0,e.createVNode)(1,"br")],0,g.name)}),!!(d[v]&&d[v].intOrgan)&&d[v].intOrgan.map(function(g){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,g.name,0),(0,e.createComponentVNode)(2,t.Button,{content:"Remove",style:{"margin-left":"1.5rem"},locked:f,onClick:function(){function N(){return i("FixOrgan",{organ:g.name,type:"remove"})}return N}()}),(0,e.createVNode)(1,"br"),g.dead?"dead":"",!!g.dead&&(0,e.createVNode)(1,"br"),g.germ_level?"Germ level is "+g.germ_level:"",!!g.germ_level&&(0,e.createVNode)(1,"br"),g.totalLoss?"Total damage is "+g.damage:"",!!g.totalLoss&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Heal",style:{"margin-left":"30px"},locked:f,onClick:function(){function N(){return i("FixOrgan",{organ:g.name,type:"damage"})}return N}()}),(0,e.createVNode)(1,"br")],4)],0,g.name)}),!!d.TotalBruteBurn&&(0,e.createFragment)([(0,e.createTextVNode)("Total external damage is "),d.TotalBruteBurn,(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:"Start Healing",onClick:function(){function g(){return i("HealBruteBurn")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:"Reattach externals",onClick:function(){function g(){return i("CompleteExternal")}return g}()})],0),(0,e.createVNode)(1,"br"),!!u&&(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Fixing organ: "),u],0),!!C&&(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Healing external damage: "),C],0)]})})})]})})})}return y}()},59179:function(I,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),m=n(36036),S=n(98595),y=n(25328),k=function(i,c,s,l){return i.requirements===null?!0:!(i.requirements.metal*l>c||i.requirements.glass*l>s)},V=r.Autolathe=function(){function p(i,c){var s=(0,o.useBackend)(c),l=s.act,d=s.data,f=d.total_amount,u=d.max_amount,C=d.metal_amount,b=d.glass_amount,v=d.busyname,h=d.busyamt,g=d.showhacked,N=d.buildQueue,x=d.buildQueueLen,B=d.recipes,L=d.categories,T=(0,o.useSharedState)(c,"category",0),E=T[0],w=T[1];E===0&&(E="Tools");var A=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),O=b.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=f.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=(0,o.useSharedState)(c,"search_text",""),R=P[0],F=P[1],_=(0,y.createSearch)(R,function(G){return G.name}),U="";x>0&&(U=N.map(function(G,oe){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"times",color:"transparent",content:N[oe][0],onClick:function(){function X(){return l("remove_from_queue",{remove_from_queue:N.indexOf(G)+1})}return X}()},G)},oe)}));var W=(0,a.flow)([(0,t.filter)(function(G){return(G.category.indexOf(E)>-1||R)&&(d.showhacked||!G.hacked)}),R&&(0,t.filter)(_),(0,t.sortBy)(function(G){return G.name.toLowerCase()})])(B),$="Build";return R?$="Results for: '"+R+"':":E&&($="Build ("+E+")"),(0,e.createComponentVNode)(2,S.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:$,buttons:(0,e.createComponentVNode)(2,m.Dropdown,{width:"150px",options:L,selected:E,onSelected:function(){function G(oe){return w(oe)}return G}()}),children:[(0,e.createComponentVNode)(2,m.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function G(oe,X){return F(X)}return G}(),mb:1}),W.map(function(G){return(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,m.DmIcon,{icon:G.icon,icon_state:G.icon_state,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:d.busyname===G.name&&d.busyamt===1,disabled:!k(G,d.metal_amount,d.glass_amount,1),onClick:function(){function oe(){return l("make",{make:G.uid,multiplier:1})}return oe}(),children:(0,y.toTitleCase)(G.name)}),G.max_multiplier>=10&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:d.busyname===G.name&&d.busyamt===10,disabled:!k(G,d.metal_amount,d.glass_amount,10),onClick:function(){function oe(){return l("make",{make:G.uid,multiplier:10})}return oe}(),children:"10x"}),G.max_multiplier>=25&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:d.busyname===G.name&&d.busyamt===25,disabled:!k(G,d.metal_amount,d.glass_amount,25),onClick:function(){function oe(){return l("make",{make:G.uid,multiplier:25})}return oe}(),children:"25x"}),G.max_multiplier>25&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:d.busyname===G.name&&d.busyamt===G.max_multiplier,disabled:!k(G,d.metal_amount,d.glass_amount,G.max_multiplier),onClick:function(){function oe(){return l("make",{make:G.uid,multiplier:G.max_multiplier})}return oe}(),children:[G.max_multiplier,"x"]}),G.requirements&&Object.keys(G.requirements).map(function(oe){return(0,y.toTitleCase)(oe)+": "+G.requirements[oe]}).join(", ")||(0,e.createComponentVNode)(2,m.Box,{children:"No resources required."})]},G.ref)})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,m.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Metal",children:A}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Glass",children:O}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Total",children:M}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Storage",children:[d.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,m.Section,{title:"Building",children:(0,e.createComponentVNode)(2,m.Box,{color:v?"green":"",children:v||"Nothing"})}),(0,e.createComponentVNode)(2,m.Section,{title:"Build Queue",height:23.7,children:[U,(0,e.createComponentVNode)(2,m.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function G(){return l("clear_queue")}return G}()})]})]})]})})})}return p}()},64273:function(I,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(62411),S=r.Biogenerator=function(){function p(i,c){var s=(0,a.useBackend)(c),l=s.data,d=s.config,f=l.container,u=l.processing,C=d.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Operating,{operating:u,name:C}),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,V)]})})})}return p}(),y=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.biomass,u=d.container,C=d.container_curr_reagents,b=d.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:f}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),u?(0,e.createComponentVNode)(2,t.ProgressBar,{value:C,maxValue:b,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:C+" / "+b+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},k=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.has_plants,u=d.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!f,tooltip:f?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function C(){return l("activate")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!u,tooltip:u?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function C(){return l("detach_container")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!f,tooltip:f?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function C(){return l("eject_plants")}return C}()})})]})})},V=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.biomass,u=d.product_list,C=d.container,b=(0,a.useSharedState)(c,"vendAmount",1),v=b[0],h=b[1],g=Object.entries(u).map(function(N,x){var B=Object.entries(N[1]).map(function(L){return L[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:N[0],open:!0,children:B.map(function(L){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:L.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[L.cost*v,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:L.needs_container&&!C?(0,e.createComponentVNode)(2,t.Button,{content:"No container",disabled:!0,icon:"flask",tooltip:"\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043B\u044E\u0431\u043E\u0439 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440 \u0434\u043B\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u044D\u0442\u043E\u0439 \u043E\u043F\u0446\u0438\u0438"}):(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:f0?Math.floor(E/l):0,M=s?"@?%%!\u2116@"+l:l,P=E>=l,R=d-d%5+(d%5>0?5:0);return(0,e.createComponentVNode)(2,t.Section,{title:"\u0418\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0435 \u0420\u0430\u0437\u043B\u043E\u043C\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{color:"silver",bold:!0,children:B}),(0,e.createComponentVNode)(2,t.ProgressBar,{color:A===0?"bad":A<100?"average":"good",value:T,maxValue:L,mt:1,mb:2,children:[A<=100?A:100," %"]}),(0,e.createComponentVNode)(2,t.Box,{children:["\u0414\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0437\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F: ",(0,e.createComponentVNode)(2,t.Box,{color:E?P?"good":"average":"bad",as:"span",children:Math.floor(E)}),(0,e.createComponentVNode)(2,t.Button,{icon:"atom",tooltip:"\u0414\u043B\u044F \u0433\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u0438 \u043E\u0434\u043D\u043E\u0433\u043E \u0437\u043E\u043D\u0434\u0438\u0440\u0443\u044E\u0449\u0435\u0433\u043E \u0438\u043C\u043F\u0443\u043B\u044C\u0441\u0430 \u043D\u0443\u0436\u043D\u043E \u0441\u043E\u0431\u0440\u0430\u0442\u044C "+M+" \u0434\u0430\u043D\u043D\u044B\u0445.",content:d>0?"\u041F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0430 "+R+" \u0441\u0435\u043A\u0443\u043D\u0434":"\u0417\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u0442\u044C ("+O+")",disabled:!P||d>0,onClick:function(){function F(){return i("probe",{rift_id:x})}return F}(),mx:2}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:w?"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D":"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0439",disabled:w||A<100,onClick:function(){function F(){return i("reward",{rift_id:x})}return F}(),mt:1.4})]})]})}return g}(),v=function(){function g(N){var x=N.servName,B=N.servData;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:x,children:B.length?B.map(function(L,T){return(0,e.createComponentVNode)(2,t.Box,{children:[L.riftName," \u2014 ",Math.floor(L.probePoints)," ","\u0434\u0430\u043D\u043D\u044B\u0445."]},T)}):(0,e.createComponentVNode)(2,t.Box,{children:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445"})})}return g}(),h=function(){function g(N){var x=N.scannerId,B=N.scannerName,L=N.scanStatus,T=N.canSwitch,E=N.switching,w=m[L],A=function(){function M(){if(w==="OFF")return[" ","silver"];if(w==="NO_RIFTS")return["\u041D\u0435\u0442 \u0440\u0430\u0437\u043B\u043E\u043C\u043E\u0432","silver"];if(w==="SOME_RIFTS")return["\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442","good"];if(w==="DANGER")return["\u041E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C! \u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0441\u043A\u0430\u043D\u0435\u0440!","bad"]}return M}(),O=A();return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B,py:0,children:[E?(0,e.createComponentVNode)(2,t.Icon,{name:"circle-notch",color:"silver",spin:!0,ml:1.85,mr:1.79,my:.84}):T?(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",color:w==="OFF"?"bad":"good",onClick:function(){function M(){return i("toggle_scanner",{scanner_id:x})}return M}(),ml:1,mr:1}):(0,e.createComponentVNode)(2,t.Icon,{name:"power-off",color:w==="OFF"?"bad":"good",ml:1.85,mr:1.79,my:.84}),w!=="OFF"&&(0,e.createComponentVNode)(2,t.Box,{as:"span",color:O[1],children:O[0]})]})}return g}();return(0,e.createComponentVNode)(2,o.Window,{width:570,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[f&&f.map(function(g){return b(g)}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043A\u0430\u043D\u0435\u0440\u044B \u0432 \u0441\u0435\u0442\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:C&&C.map(function(g){return h(g)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0435\u0440\u0432\u0435\u0440\u044B \u0432 \u0441\u0435\u0442\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u&&u.map(function(g){return v(g)})})})]})})}return y}()},27629:function(I,r,n){"use strict";r.__esModule=!0,r.BluespaceTap=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(49968),S=r.BluespaceTap=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.product||[],l=c.desiredLevel,d=c.inputLevel,f=c.points,u=c.totalPoints,C=c.powerUse,b=c.availablePower,v=c.maxLevel,h=c.emagged,g=c.safeLevels,N=c.nextLevelPower,x=l>d&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),d>g&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:l===0,tooltip:"Set to 0",onClick:function(){function B(){return i("set",{set_level:0})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:l===0,onClick:function(){function B(){return i("set",{set_level:d})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:l===0,tooltip:"Decrease one step",onClick:function(){function B(){return i("decrease")}return B}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:l,fillValue:d,minValue:0,color:x,maxValue:v,stepPixelSize:20,step:1,onChange:function(){function B(L,T){return i("set",{set_level:T})}return B}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:l===v,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function B(){return i("increase")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l===v,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function B(){return i("set",{set_level:v})}return B}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,m.formatPower)(C)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,m.formatPower)(N)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,m.formatPower)(b)})]})})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:f}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:u})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:s.map(function(B){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:B.price>=f,onClick:function(){function L(){return i("vend",{target:B.key})}return L}(),content:B.price})},B.key)})})})})]})})]})})})}return y}()},33758:function(I,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(89005),a=n(44879),t=n(25328),o=n(72253),m=n(36036),S=n(98595),y=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["hasBorer","bad","Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."],["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],V=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radioactive","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],p={average:[.25,.5],bad:[.5,1/0]},i=function(x,B){for(var L=[],T=0;T0?x.filter(function(B){return!!B}).reduce(function(B,L){return(0,e.createFragment)([B,(0,e.createComponentVNode)(2,m.Box,{children:L},L)],0)},null):null},s=function(x){if(x>100){if(x<300)return"mild infection";if(x<400)return"mild infection+";if(x<500)return"mild infection++";if(x<700)return"acute infection";if(x<800)return"acute infection+";if(x<900)return"acute infection++";if(x>=900)return"septic"}return""},l=r.BodyScanner=function(){function N(x,B){var L=(0,o.useBackend)(B),T=L.data,E=T.occupied,w=T.occupant,A=w===void 0?{}:w,O=E?(0,e.createComponentVNode)(2,d,{occupant:A}):(0,e.createComponentVNode)(2,g);return(0,e.createComponentVNode)(2,S.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:O})})}return N}(),d=function(x){var B=x.occupant;return(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,f,{occupant:B}),(0,e.createComponentVNode)(2,u,{occupant:B}),(0,e.createComponentVNode)(2,C,{occupant:B}),(0,e.createComponentVNode)(2,v,{organs:B.extOrgan}),(0,e.createComponentVNode)(2,h,{organs:B.intOrgan})]})},f=function(x,B){var L=(0,o.useBackend)(B),T=L.act,E=L.data,w=E.occupant;return(0,e.createComponentVNode)(2,m.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Button,{icon:"print",onClick:function(){function A(){return T("print_p")}return A}(),children:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u043E\u0442\u0447\u0435\u0442"}),(0,e.createComponentVNode)(2,m.Button,{icon:"print",onClick:function(){function A(){return T("insurance")}return A}(),children:"\u0421\u043F\u0438\u0441\u0430\u0442\u044C \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0443"}),(0,e.createComponentVNode)(2,m.Button,{icon:"user-slash",onClick:function(){function A(){return T("eject_id")}return A}(),children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043A\u0430\u0440\u0442\u0443"}),(0,e.createComponentVNode)(2,m.Button,{icon:"user-slash",onClick:function(){function A(){return T("ejectify")}return A}(),children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430"})],4),children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Name",children:w.name}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:w.maxHealth,value:w.health/w.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Status",color:y[w.stat][0],children:y[w.stat][1]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,m.AnimatedNumber,{value:(0,a.round)(w.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,m.AnimatedNumber,{value:(0,a.round)(w.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Implants",children:w.implant_len?(0,e.createComponentVNode)(2,m.Box,{children:w.implant.map(function(A){return A.name}).join(", ")}):(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"None"})})]})})},u=function(x){var B=x.occupant;return B.hasBorer||B.blind||B.colourblind||B.nearsighted||B.hasVirus?(0,e.createComponentVNode)(2,m.Section,{title:"Abnormalities",children:k.map(function(L,T){if(B[L[0]])return(0,e.createComponentVNode)(2,m.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,m.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No abnormalities found."})})},C=function(x){var B=x.occupant;return(0,e.createComponentVNode)(2,m.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,m.Table,{children:i(V,function(L,T,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:!!T&&T[0]+":"})]}),(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:(0,e.createComponentVNode)(2,b,{value:B[L[1]],marginBottom:E100)&&"average"||!!B.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(B.name)}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,m.ProgressBar,{m:-.5,min:"0",max:B.maxHealth,mt:L>0&&"0.5rem",value:B.totalLoss/B.maxHealth,ranges:p,children:(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(B.totalLoss)]})}),!!B.bruteLoss&&(0,e.createComponentVNode)(2,m.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,m.Icon,{name:"bone",mr:.5}),(0,a.round)(B.bruteLoss)]})}),!!B.fireLoss&&(0,e.createComponentVNode)(2,m.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"fire",mr:.5}),(0,a.round)(B.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,m.Box,{color:"average",inline:!0,children:c([!!B.internalBleeding&&"Internal bleeding",!!B.burnWound&&"Critical tissue burns",!!B.lungRuptured&&"Ruptured lung",!!B.status.broken&&B.status.broken,s(B.germ_level),!!B.open&&"Open incision"])}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,children:[c([!!B.status.splinted&&(0,e.createComponentVNode)(2,m.Box,{color:"good",children:"Splinted"}),!!B.status.robotic&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Robotic"}),!!B.status.dead&&(0,e.createComponentVNode)(2,m.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(B.shrapnel.map(function(T){return T.known?T.name:"Unknown object"}))]})]})]},L)})]})})},h=function(x){return x.organs.length===0?(0,e.createComponentVNode)(2,m.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,m.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,m.Table,{children:[(0,e.createComponentVNode)(2,m.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",children:"Injuries"})]}),x.organs.map(function(B,L){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{color:!!B.dead&&"bad"||B.germ_level>100&&"average"||B.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(B.name)}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:B.maxHealth,value:B.damage/B.maxHealth,mt:L>0&&"0.5rem",ranges:p,children:(0,a.round)(B.damage)})}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,m.Box,{color:"average",inline:!0,children:c([s(B.germ_level)])}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,children:c([B.robotic===1&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Robotic"}),B.robotic===2&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Assisted"}),!!B.dead&&(0,e.createComponentVNode)(2,m.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},g=function(){return(0,e.createComponentVNode)(2,m.Section,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},42570:function(I,r,n){"use strict";r.__esModule=!0,r.BorgPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.BorgPanel=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.borg||{},s=i.cell||{},l=s.charge/s.maxcharge,d=i.channels||[],f=i.modules||[],u=i.upgrades||[],C=i.ais||[],b=i.laws||[];return(0,e.createComponentVNode)(2,o.Window,{title:"Borg Panel",width:700,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:c.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function v(){return p("rename")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:c.emagged?"check-square-o":"square-o",content:"Emagged",selected:c.emagged,onClick:function(){function v(){return p("toggle_emagged")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:c.lockdown?"check-square-o":"square-o",content:"Locked Down",selected:c.lockdown,onClick:function(){function v(){return p("toggle_lockdown")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:c.scrambledcodes?"check-square-o":"square-o",content:"Scrambled Codes",selected:c.scrambledcodes,onClick:function(){function v(){return p("toggle_scrambledcodes")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset Module",onClick:function(){function v(){return p("reset_module")}return v}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge",children:[s.missing?(0,e.createVNode)(1,"span","color-bad","No cell installed",16):(0,e.createComponentVNode)(2,t.ProgressBar,{value:l,children:s.charge+" / "+s.maxcharge}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Set",onClick:function(){function v(){return p("set_charge")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Change",onClick:function(){function v(){return p("change_cell")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",content:"Remove",color:"bad",onClick:function(){function v(){return p("remove_cell")}return v}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radio Channels",children:d.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:v.installed?"check-square-o":"square-o",content:v.name,selected:v.installed,onClick:function(){function h(){return p("toggle_radio",{channel:v.name})}return h}()},v.name)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Model",children:f.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:c.active_module===v.name?"check-square-o":"square-o",content:v.name+" module",selected:c.active_module===v.name,onClick:function(){function h(){return p("setmodule",{module:v.name})}return h}()},v.type)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upgrades",children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:v.installed?"check-square-o":"square-o",content:v.name,selected:v.installed,onClick:function(){function h(){return p("toggle_upgrade",{upgrade:v.type})}return h}()},v.type)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:C.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:v.connected?"check-square-o":"square-o",content:v.name,selected:v.connected,onClick:function(){function h(){return p("slavetoai",{slavetoai:v.ref})}return h}()},v.ref)})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Laws",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Law Manager",selected:c.lawmanager,onClick:function(){function v(){return p("lawmanager")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:c.lawupdate?"check-square-o":"square-o",content:"Lawsync",selected:c.lawupdate,onClick:function(){function v(){return p("toggle_lawupdate")}return v}()})],4),children:b.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:v},v)})})]})})}return S}()},20464:function(I,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.BotClean=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.locked,s=i.noaccess,l=i.maintpanel,d=i.on,f=i.autopatrol,u=i.canhack,C=i.emagged,b=i.remote_disabled,v=i.painame,h=i.cleanblood;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.NoticeBox,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0432\u043E\u0435\u0439 ID-\u043A\u0430\u0440\u0442\u043E\u0439, \u0447\u0442\u043E\u0431\u044B",c?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D",selected:d,disabled:s,onClick:function(){function g(){return p("power")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:f,content:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",disabled:s,onClick:function(){function g(){return p("autopatrol")}return g}()})}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0430\u043D\u0435\u043B\u044C \u0442\u0435\u0445\u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"\u041F\u0430\u043D\u0435\u043B\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u0430"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438",children:(0,e.createComponentVNode)(2,t.Box,{color:C?"bad":"good",children:C?"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u044B":"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0437\u043B\u043E\u043C",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:C?"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438":"\u0412\u0437\u043B\u043E\u043C\u0430\u0442\u044C",disabled:s,color:"bad",onClick:function(){function g(){return p("hack")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!b,content:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F \u0441\u043E \u0441\u0442\u043E\u0440\u043E\u043D\u044B \u0418\u0418",disabled:s,onClick:function(){function g(){return p("disableremote")}return g}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0430 \u0443\u0431\u043E\u0440\u043A\u0438",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"\u0423\u0431\u0438\u0440\u0430\u0442\u044C \u043A\u0440\u043E\u0432\u044C",disabled:s,onClick:function(){function g(){return p("blood")}return g}()})}),v&&(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0418\u0418",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:v,disabled:s,onClick:function(){function g(){return p("ejectpai")}return g}()})})]})})}return S}()},74439:function(I,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.BotSecurity=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.locked,s=i.noaccess,l=i.maintpanel,d=i.on,f=i.autopatrol,u=i.canhack,C=i.emagged,b=i.remote_disabled,v=i.painame,h=i.check_id,g=i.check_weapons,N=i.check_warrant,x=i.arrest_mode,B=i.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.NoticeBox,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0432\u043E\u0435\u0439 ID-\u043A\u0430\u0440\u0442\u043E\u0439, \u0447\u0442\u043E\u0431\u044B",c?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D",selected:d,disabled:s,onClick:function(){function L(){return p("power")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:f,content:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",disabled:s,onClick:function(){function L(){return p("autopatrol")}return L}()})}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0430\u043D\u0435\u043B\u044C \u0442\u0435\u0445\u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"\u041F\u0430\u043D\u0435\u043B\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u0430"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438",children:(0,e.createComponentVNode)(2,t.Box,{color:C?"bad":"good",children:C?"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u044B":"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0437\u043B\u043E\u043C",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:C?"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438":"\u0412\u0437\u043B\u043E\u043C\u0430\u0442\u044C",disabled:s,color:"bad",onClick:function(){function L(){return p("hack")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!b,content:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F \u0441\u043E \u0441\u0442\u043E\u0440\u043E\u043D\u044B \u0418\u0418",disabled:s,onClick:function(){function L(){return p("disableremote")}return L}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0417\u0430\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u0446\u0435\u043B\u0438",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"\u041D\u0435\u043E\u043F\u043E\u0437\u043D\u0430\u043D\u043D\u044B\u0435 \u043B\u0438\u0447\u043D\u043E\u0441\u0442\u0438",disabled:s,onClick:function(){function L(){return p("authid")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"\u0418\u043C\u0435\u044E\u0449\u0438\u0435 \u043D\u0435\u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0435 \u043E\u0440\u0443\u0436\u0438\u0435",disabled:s,onClick:function(){function L(){return p("authweapon")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"\u0420\u0430\u0437\u044B\u0441\u043A\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u043F\u0440\u0435\u0441\u0442\u0443\u043F\u043D\u0438\u043A\u0438",disabled:s,onClick:function(){function L(){return p("authwarrant")}return L}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0440\u043E\u0446\u0435\u0434\u0443\u0440\u0430 \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:x,content:"\u0411\u0435\u0441\u0441\u0440\u043E\u0447\u043D\u043E\u0435 \u043E\u0433\u043B\u0443\u0448\u0435\u043D\u0438\u0435 \u0446\u0435\u043B\u0435\u0439 \u0432\u043C\u0435\u0441\u0442\u043E \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F",disabled:s,onClick:function(){function L(){return p("arrtype")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:B,content:"\u0421\u043E\u043E\u0431\u0449\u0430\u0442\u044C \u043E \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0438 \u043F\u043E \u0440\u0430\u0434\u0438\u043E\u0441\u0432\u044F\u0437\u0438",disabled:s,onClick:function(){function L(){return p("arrdeclare")}return L}()})]}),v&&(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0418\u0418",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:v,disabled:s,onClick:function(){function L(){return p("ejectpai")}return L}()})})]})})}return S}()},10833:function(I,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(89005),a=n(98595),t=n(36036),o=n(72253),m=function(V,p){var i=V.cell,c=(0,o.useBackend)(p),s=c.act,l=i.cell_id,d=i.occupant,f=i.crimes,u=i.brigged_by,C=i.time_left_seconds,b=i.time_set_seconds,v=i.ref,h="";C>0&&(h+=" BrigCells__listRow--active");var g=function(){s("release",{ref:v})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:h,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:b})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:C})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:g,children:"Release"})})]})},S=function(V){var p=V.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),p.map(function(i){return(0,e.createComponentVNode)(2,m,{cell:i},i.ref)})]})},y=r.BrigCells=function(){function k(V,p){var i=(0,o.useBackend)(p),c=i.act,s=i.data,l=s.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,S,{cells:l})})})})})}return k}()},45761:function(I,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.BrigTimer=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data;i.nameText=i.occupant,i.timing&&(i.prisoner_hasrec?i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i.occupant}):i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:i.occupant}));var c="pencil-alt";i.prisoner_name&&(i.prisoner_hasrec||(c="exclamation-triangle"));var s=[],l=0;for(l=0;l60||!i.isAllowed,onClick:function(){function d(){return p("start")}return d}()})})]})})]})})}return S}()},26300:function(I,r,n){"use strict";r.__esModule=!0,r.CameraConsoleOldContent=r.CameraConsoleMapContent=r.CameraConsoleListContent=r.CameraConsole=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(35840),m=n(25328),S=n(72253),y=n(36036),k=n(98595);String.prototype.trimLongStr=function(d){return this.length>d?this.substring(0,d)+"...":this};var V=function(f,u){var C,b;if(!u)return[];var v=f.findIndex(function(h){return h.name===u.name});return[(C=f[v-1])==null?void 0:C.name,(b=f[v+1])==null?void 0:b.name]},p=function(f,u){u===void 0&&(u="");var C=(0,m.createSearch)(u,function(b){return b.name});return(0,t.flow)([(0,a.filter)(function(b){return b==null?void 0:b.name}),u&&(0,a.filter)(C),(0,a.sortBy)(function(b){return b.name})])(f)},i=r.CameraConsole=function(){function d(f,u){var C=(0,S.useLocalState)(u,"tabIndex",0),b=C[0],v=C[1],h=function(){function g(N){switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,s);default:return"WE SHOULDN'T BE HERE!"}}return g}();return(0,e.createComponentVNode)(2,k.Window,{width:1250,height:600,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,y.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.createComponentVNode)(2,y.Tabs,{children:[(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:b===0,onClick:function(){function g(){return v(0)}return g}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"map-marked-alt"})," Map"]},"Map"),(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:b===1,onClick:function(){function g(){return v(1)}return g}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"table"})," List"]},"List")]}),h(b)]})})})}return d}(),c=r.CameraConsoleMapContent=function(){function d(f,u){var C=(0,S.useBackend)(u),b=C.act,v=C.data,h=p(v.cameras),g=(0,S.useLocalState)(u,"zoom",1),N=g[0],x=g[1],B=v.mapRef,L=v.activeCamera,T=v.stationLevelNum,E=v.stationLevelName,w=(0,S.useLocalState)(u,"z_current",T[0]),A=w[0],O=w[1],M=V(h,L),P=M[0],R=M[1];return(0,e.createComponentVNode)(2,y.Box,{height:"100%",display:"flex",children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,y.Box,{height:"100%",display:"flex",children:(0,e.createComponentVNode)(2,y.NanoMap,{onZoom:function(){function F(_){return x(_)}return F}(),zLevels:T,zNames:E,z_current:A,setZCurrent:O,children:h.map(function(F){return(0,e.createComponentVNode)(2,y.NanoMap.Marker,{x:F.x,y:F.y,z:F.z,z_current:A,zoom:N,icon:"box",tooltip:F.name,color:F.status?"blue":"red",bordered:!0,onClick:function(){function _(){return b("switch_camera",{name:F.name})}return _}()},F.ref)})})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),L&&L.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!P,onClick:function(){function F(){return b("switch_camera",{name:P})}return F}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!R,onClick:function(){function F(){return b("switch_camera",{name:R})}return F}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:B,type:"map"}})],4)]})}return d}(),s=r.CameraConsoleOldContent=function(){function d(f,u){var C=(0,S.useBackend)(u),b=C.act,v=C.data,h=C.config,g=v.mapRef,N=v.activeCamera,x=(0,S.useLocalState)(u,"searchText",""),B=x[0],L=p(v.cameras,B),T=V(L,N),E=T[0],w=T[1];return(0,e.createComponentVNode)(2,y.Box,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,l)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),N&&N.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!E,onClick:function(){function A(){return b("switch_camera",{name:E})}return A}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!w,onClick:function(){function A(){return b("switch_camera",{name:w})}return A}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:g,type:"map"}})],4)]})}return d}(),l=r.CameraConsoleListContent=function(){function d(f,u){var C=(0,S.useBackend)(u),b=C.act,v=C.data,h=(0,S.useLocalState)(u,"searchText",""),g=h[0],N=h[1],x=v.activeCamera,B=p(v.cameras,g);return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function L(T,E){return N(E)}return L}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:B.map(function(L){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",x&&L.name===x.name&&"Button--selected"]),L.name,0,{title:L.name,onClick:function(){function T(){return b("switch_camera",{name:L.name})}return T}()},L.name)})})})]})}return d}()},52927:function(I,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(49968),S=n(98595),y=r.Canister=function(){function k(V,p){var i=(0,t.useBackend)(p),c=i.act,s=i.data,l=s.portConnected,d=s.tankPressure,f=s.releasePressure,u=s.defaultReleasePressure,C=s.minReleasePressure,b=s.maxReleasePressure,v=s.valveOpen,h=s.name,g=s.canLabel,N=s.colorContainer,x=s.color_index,B=s.hasHoldingTank,L=s.holdingTank,T="";x.prim&&(T=N.prim.options[x.prim].name);var E="";x.sec&&(E=N.sec.options[x.sec].name);var w="";x.ter&&(w=N.ter.options[x.ter].name);var A="";x.quart&&(A=N.quart.options[x.quart].name);var O=[],M=[],P=[],R=[],F=0;for(F=0;Fh.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:h.total_positions-h.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:u.cooldown_time||!h.can_close,onClick:function(){function g(){return f("make_job_unavailable",{job:h.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:u.cooldown_time||!h.can_open,onClick:function(){function g(){return f("make_job_available",{job:h.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:u.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:u.priority_jobs.indexOf(h.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:h.is_priority?"Yes":"No",selected:h.is_priority,disabled:u.cooldown_time||!h.can_prioritize,onClick:function(){function g(){return f("prioritize_job",{job:h.title})}return g}()})})]},h.title)})]})})]}):v=(0,e.createComponentVNode)(2,k);break;case 2:!u.authenticated||!u.scan_name?v=(0,e.createComponentVNode)(2,k):u.modify_name?v=(0,e.createComponentVNode)(2,m.AccessList,{accesses:u.regions,selectedList:u.selectedAccess,accessMod:function(){function h(g){return f("set",{access:g})}return h}(),grantAll:function(){function h(){return f("grant_all")}return h}(),denyAll:function(){function h(){return f("clear_all")}return h}(),grantDep:function(){function h(g){return f("grant_region",{region:g})}return h}(),denyDep:function(){function h(g){return f("deny_region",{region:g})}return h}()}):v=(0,e.createComponentVNode)(2,V);break;case 3:u.authenticated?u.records.length?v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!u.authenticated||u.records.length===0||u.target_dept,onClick:function(){function h(){return f("wipe_all_logs")}return h}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!u.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),u.records.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.reason}),!!u.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.deletedby})]},h.timestamp)})]}),!!u.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!u.authenticated||u.records.length===0,onClick:function(){function h(){return f("wipe_my_logs")}return h}()})})]}):v=(0,e.createComponentVNode)(2,p):v=(0,e.createComponentVNode)(2,k);break;case 4:!u.authenticated||!u.scan_name?v=(0,e.createComponentVNode)(2,k):v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),u.people_dept.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:h.buttontext,disabled:!h.demotable,onClick:function(){function g(){return f("remote_demote",{remote_demote:h.name})}return g}()})})]},h.title)})]})});break;default:v=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:b}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:C}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v})]})})})}return c}()},64083:function(I,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),m=n(36036),S=n(98595),y=n(25328),k=r.CargoConsole=function(){function s(l,d){return(0,e.createComponentVNode)(2,S.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})})}return s}(),V=function(l,d){var f=(0,o.useLocalState)(d,"contentsModal",null),u=f[0],C=f[1],b=(0,o.useLocalState)(d,"contentsModalTitle",null),v=b[0],h=b[1];if(u!==null&&v!==null)return(0,e.createComponentVNode)(2,m.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,m.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[v,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,m.Box,{children:u.map(function(g){return(0,e.createComponentVNode)(2,m.Box,{children:["- ",g]},g)})}),(0,e.createComponentVNode)(2,m.Box,{m:2,children:(0,e.createComponentVNode)(2,m.Button,{content:"Close",onClick:function(){function g(){C(null),h(null)}return g}()})})]})},p=function(l,d){var f=(0,o.useBackend)(d),u=f.act,C=f.data,b=C.is_public,v=C.points,h=C.credits,g=C.timeleft,N=C.moving,x=C.at_station,B,L;return!N&&!x?(B="Docked off-station",L="Call Shuttle"):!N&&x?(B="Docked at the station",L="Return Shuttle"):N&&(L="In Transit...",g!==1?B="Shuttle is en route (ETA: "+g+" minutes)":B="Shuttle is en route (ETA: "+g+" minute)"),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:"Status",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Points Available",children:v}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Credits Available",children:h}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Shuttle Status",children:B}),b===0&&(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,m.Button,{content:L,disabled:N,onClick:function(){function T(){return u("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Central Command Messages",onClick:function(){function T(){return u("showMessages")}return T}()})]})]})})})},i=function(l,d){var f=(0,o.useBackend)(d),u=f.act,C=f.data,b=C.categories,v=C.supply_packs,h=(0,o.useSharedState)(d,"category","Emergency"),g=h[0],N=h[1],x=(0,o.useSharedState)(d,"search_text",""),B=x[0],L=x[1],T=(0,o.useLocalState)(d,"contentsModal",null),E=T[0],w=T[1],A=(0,o.useLocalState)(d,"contentsModalTitle",null),O=A[0],M=A[1],P=(0,y.createSearch)(B,function(_){return _.name}),R=(0,a.flow)([(0,t.filter)(function(_){return _.cat===b.filter(function(U){return U.name===g})[0].category||B}),B&&(0,t.filter)(P),(0,t.sortBy)(function(_){return _.name.toLowerCase()})])(v),F="Crate Catalogue";return B?F="Results for '"+B+"':":g&&(F="Browsing "+g),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:F,buttons:(0,e.createComponentVNode)(2,m.Dropdown,{width:"190px",options:b.map(function(_){return _.name}),selected:g,onSelected:function(){function _(U){return N(U)}return _}()}),children:[(0,e.createComponentVNode)(2,m.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function _(U,W){return L(W)}return _}(),mb:1}),(0,e.createComponentVNode)(2,m.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:R.map(function(_){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{bold:!0,children:(0,e.createComponentVNode)(2,m.Box,{color:_.has_sale?"good":"default",children:[_.name," (",_.cost?_.cost+" Points":"",_.creditsCost&&_.cost?" ":"",_.creditsCost?_.creditsCost+" Credits":"",")"]})}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,m.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){function U(){return u("order",{crate:_.ref,multiple:0})}return U}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){function U(){return u("order",{crate:_.ref,multiple:1})}return U}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Contents",icon:"search",onClick:function(){function U(){w(_.contents),M(_.name)}return U}()})]})]},_.name)})})})]})})},c=function(l,d){var f=(0,o.useBackend)(d),u=f.act,C=f.data,b=C.requests,v=C.canapprove,h=C.orders;return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:"Details",children:[(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:b.map(function(g){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",g.ordernum,": ",g.supply_type," for ",(0,e.createVNode)(1,"b",null,g.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",g.comment]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Required Techs: ",g.pack_techs]})]}),(0,e.createComponentVNode)(2,m.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,m.Button,{content:"Approve",color:"green",disabled:!v,onClick:function(){function N(){return u("approve",{ordernum:g.ordernum})}return N}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Deny",color:"red",onClick:function(){function N(){return u("deny",{ordernum:g.ordernum})}return N}()})]})]},g.ordernum)})}),(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Confirmed Orders"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:h.map(function(g){return(0,e.createComponentVNode)(2,m.Table.Row,{children:(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",g.ordernum,": ",g.supply_type," for ",(0,e.createVNode)(1,"b",null,g.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",g.comment]})]})},g.ordernum)})})]})}},22794:function(I,r,n){"use strict";r.__esModule=!0,r.DelayHelper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=r.DelayHelper=function(){function S(y,k){var V=(0,t.useBackend)(k),p=V.act,i=V.data,c=i.delays,s=i.rev_delays,l=y.delay_list,d=y.reverse,f=d===void 0?!1:d;return(0,e.createComponentVNode)(2,o.LabeledControls,{wrap:!0,style:{"flex-direction":"column","flex-wrap":"wrap",height:"7.5em","justify-content":"start"},children:l.map(function(u,C){return(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:u.title,style:{"flex-direction":"column","min-width":"0"},children:(0,e.createComponentVNode)(2,o.Knob,{color:(f?s[C+1]:c[C+1])/10>10?"orange":"default",format:function(){function b(v){return(0,a.toFixed)(v,2)}return b}(),maxValue:10,minValue:0,inline:!0,onDrag:function(){function b(v,h){p("editTiming",{reverse:f,timer:""+(C+1),value:Math.max(h,0)})}return b}(),size:1,step:.02,unclamped:!0,unit:"s",value:(f?s[C+1]:c[C+1])/10})},C)})})}return S}()},23749:function(I,r,n){"use strict";r.__esModule=!0,r.PodBays=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),m=r.PodBays=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.bayNumber;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"trash",onClick:function(){function s(){return p("clearBay")}return s}(),tooltip:"\n \u041E\u0447\u0438\u0449\u0430\u0435\u0442 \u0432\u0441\u0451\n\u0438\u0437 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0430\u043D\u0433\u0430\u0440\u0430.",tooltipPosition:"top-end"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"question",tooltip:"\n \u041A\u0430\u0436\u0434\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442\n\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u0439 \u0437\u043E\u043D\u0435 \u043D\u0430 \u0426\u041A.\n\u0417\u0430\u043F\u0443\u0449\u0435\u043D\u043D\u044B\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u0431\u0443\u0434\u0443\u0442\n\u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u044B \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u0430\u043C\u0438 \u0438\u0437 \u044D\u0442\u0438\u0445 \u0437\u043E\u043D\n\u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u043E\u043F\u0446\u0438\u0435\u0439\n\xAB\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0438\u0437 \u0430\u043D\u0433\u0430\u0440\u0430\xBB \u0432 \u043B\u0435\u0432\u043E\u043C \u0432\u0435\u0440\u0445\u043D\u0435\u043C \u0443\u0433\u043B\u0443.",tooltipPosition:"top-end"})],4),fill:!0,title:"\u0410\u043D\u0433\u0430\u0440",children:o.BAYS.map(function(s,l){return(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function d(){return p("switchBay",{bayNumber:""+(l+1)})}return d}(),selected:c===""+(l+1),tooltipPosition:"bottom-end",children:s.title},l)})})}return S}()},8507:function(I,r,n){"use strict";r.__esModule=!0,r.PodLaunch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(20345),m=r.PodLaunch=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.giveLauncher,s=(0,o.useCompact)(k),l=s[0];return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function d(){return p("giveLauncher")}return d}(),selected:c,textAlign:"center",tooltip:"\n \u0412\u044B \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u043D\u0430\u0442\u044C, \u0447\u0442\u043E\n \u041E\u0431 \u044D\u0442\u043E\u043C \u0433\u043E\u0432\u043E\u0440\u0438\u0442 \u041A\u043E\u0434\u0435\u043A\u0441 \u0410\u0441\u0442\u0430\u0440\u0442\u0435\u0441",tooltipPosition:"top",children:(0,e.createComponentVNode)(2,t.Box,{bold:!0,fontSize:"1.4em",lineHeight:l?1.5:3,children:"\u0417\u0410\u041F\u0423\u0421\u041A"})})}return S}()},15802:function(I,r,n){"use strict";r.__esModule=!0,r.PodSounds=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),m=r.PodSounds=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.defaultSoundVolume,s=i.soundVolume;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"volume-up",onClick:function(){function l(){return p("soundVolume")}return l}(),selected:s!==c,tooltip:"\n \u0413\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C \u0417\u0443\u043A\u0430:"+s}),fill:!0,title:"\u0417\u0432\u0443\u043A\u0438",children:o.SOUNDS.map(function(l,d){return(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function f(){return p(l.act)}return f}(),selected:i[l.act],tooltip:l.tooltip,tooltipPosition:"top-end",children:l.title},d)})})}return S}()},94577:function(I,r,n){"use strict";r.__esModule=!0,r.PodStatusPage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),m=n(20345),S=r.PodStatusPage=function(){function V(p,i){var c=(0,m.useCompact)(i),s=c[0];return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:o.EFFECTS_ALL.map(function(l,d){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"label",mb:1,children:[!s&&(l.alt_label||l.label),":"]}),(0,e.createComponentVNode)(2,t.Box,{children:l.list.map(function(f,u){return(0,e.createComponentVNode)(2,y,{effect:f,hasMargin:l.list.length>1,index:u},u)})})]}),d=0;--J){var Y=this.tryEntries[J],Q=Y.completion;if(Y.tryLoc==="root")return ae("end");if(Y.tryLoc<=this.prev){var Z=f.call(Y,"catchLoc"),te=f.call(Y,"finallyLoc");if(Z&&te){if(this.prev=0;--ae){var J=this.tryEntries[ae];if(J.tryLoc<=this.prev&&f.call(J,"finallyLoc")&&this.prev=0;--q){var ae=this.tryEntries[q];if(ae.finallyLoc===re)return this.complete(ae.completion,ae.afterLoc),X(ae),w}}return ne}(),catch:function(){function ne(re){for(var q=this.tryEntries.length-1;q>=0;--q){var ae=this.tryEntries[q];if(ae.tryLoc===re){var J=ae.completion;if(J.type==="throw"){var Y=J.arg;X(ae)}return Y}}throw Error("illegal catch attempt")}return ne}(),delegateYield:function(){function ne(re,q,ae){return this.delegate={iterator:me(re),resultName:q,nextLoc:ae},this.method==="next"&&(this.arg=s),w}return ne}()},l}function k(s,l,d,f,u,C,b){try{var v=s[C](b),h=v.value}catch(g){return void d(g)}v.done?l(h):Promise.resolve(h).then(f,u)}function V(s){return function(){var l=this,d=arguments;return new Promise(function(f,u){var C=s.apply(l,d);function b(h){k(C,f,u,b,v,"next",h)}function v(h){k(C,f,u,b,v,"throw",h)}b(void 0)})}}var p=function(){var s=V(y().mark(function(){function l(d,f){return y().wrap(function(){function u(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,a.storage.set("podlauncher_preset_"+d,f);case 2:case"end":return C.stop()}}return u}(),l)}return l}()));return function(){function l(d,f){return s.apply(this,arguments)}return l}()}(),i=function(l,d){var f=(0,o.useBackend)(d),u=f.data,C=l.editing,b=l.deletePreset,v=l.loadPreset,h=l.presetIndex,g=l.setEditing,N=l.getPresets;return(0,e.createFragment)([!C&&(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"plus",onClick:function(){function x(){return g(!C)}return x}(),tooltip:"\u041D\u043E\u0432\u044B\u0439 \u043F\u0440\u0435\u0441\u0435\u0442"}),(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"download",inline:!0,onClick:function(){function x(){return p(h.toString(),u)}return x}(),tooltip:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0435\u0442",tooltipPosition:"bottom"}),(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"upload",inline:!0,onClick:function(){function x(){v(h)}return x}(),tooltip:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0435\u0442"}),(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"trash",inline:!0,onClick:function(){function x(){return b(h)}return x}(),tooltip:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u044B\u0439 \u043F\u0440\u0435\u0441\u0435\u0442",tooltipPosition:"bottom-start"}),(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"refresh",inline:!0,onClick:function(){function x(){return N()}return x}(),tooltip:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u043F\u0440\u0435\u0441\u0435\u0442\u043E\u0432",tooltipPosition:"bottom-start"})],0)},c=r.PresetsPage=function(){function s(l,d){var f=(0,o.useBackend)(d),u=f.act,C=f.data,b=(0,o.useLocalState)(d,"editing",!1),v=b[0],h=b[1],g=(0,o.useLocalState)(d,"hue",0),N=g[0],x=g[1],B=(0,o.useLocalState)(d,"name",""),L=B[0],T=B[1],E=(0,o.useLocalState)(d,"presetID",0),w=E[0],A=E[1],O=(0,o.useLocalState)(d,"presets",[]),M=O[0],P=O[1],R=function(){var W=V(y().mark(function(){function $(G){var oe,X;return y().wrap(function(){function pe(me){for(;;)switch(me.prev=me.next){case 0:oe=[].concat(M),X=0;case 2:if(!(X=l.length-2?f%2===1?"top-start":"top-end":f%2===1?"bottom-start":"bottom-end",tooltip:d.title,width:"45px",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["supplypods64x64","pod_asset"+d.id]),style:{"pointer-events":"none",transform:"rotate(45deg) translate(-25%,-10%)"}})},d.id)})})}return S}()},8179:function(I,r,n){"use strict";r.__esModule=!0,r.TabPod=r.TabDrop=r.TabBay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TabPod=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.oldArea;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:!0,icon:"street-view",children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!0,icon:"undo-alt",children:s?s.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})],4)}return y}(),m=r.TabBay=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=(0,a.useLocalState)(V,"teleported",!1),l=s[0],d=s[1],f=c.oldArea;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"street-view",onClick:function(){function u(){i("teleportCentcom"),d(!0)}return u}(),children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!f||!l,icon:"undo-alt",onClick:function(){function u(){i("teleportBack"),d(!1)}return u}(),children:f?f.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})],4)}return y}(),S=r.TabDrop=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=(0,a.useLocalState)(V,"teleported",!1),l=s[0],d=s[1],f=c.oldArea;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"street-view",onClick:function(){function u(){i("teleportDropoff"),d(!0)}return u}(),children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!f||!l,icon:"undo-alt",onClick:function(){function u(){i("teleportBack"),d(!1)}return u}(),children:f?f.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})],4)}return y}()},18885:function(I,r,n){"use strict";r.__esModule=!0,r.Timing=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),m=n(22794),S=r.Timing=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.custom_rev_delay,l=c.effectReverse;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"undo",onClick:function(){function d(){return i("resetTiming")}return d}(),tooltip:"\n \u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0442\u0430\u0439\u043C\u0438\u043D\u0433\u0438\n /\u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043A\u0430\u043F\u0441\u0443\u043B",tooltipPosition:"bottom-end"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",disabled:!l,icon:s===1?"toggle-on":"toggle-off",onClick:function(){function d(){return i("toggleRevDelays")}return d}(),selected:s,tooltip:"\n \u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u0430\n \u041F\u0440\u0438\u043C\u0435\u0447\u0430\u043D\u0438\u0435: \u043F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u043E\u0439 \u043E\u043F\u0446\u0438\u0438 \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0430\u0442\u0435\u043B\u0438\n \u043E\u0431\u0440\u0430\u0449\u0430\u044E\u0442 \u0432\u0441\u043F\u044F\u0442\u044C \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043A\u0430\u043F\u0441\u0443\u043B",tooltipPosition:"bottom-end"})],4),title:"\u0412\u0440\u0435\u043C\u044F",children:s?(0,e.createComponentVNode)(2,m.DelayHelper,{delay_list:o.REV_DELAYS,reverse:!0}):(0,e.createComponentVNode)(2,m.DelayHelper,{delay_list:o.DELAYS})})}return y}()},76417:function(I,r,n){"use strict";r.__esModule=!0,r.ViewTabHolder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),m=n(20345),S=r.ViewTabHolder=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.mapRef,l=c.customDropoff,d=c.effectReverse,f=c.renderLighting,u=(0,m.useTab)(V),C=u[0],b=u[1],v=o.TABPAGES[C].component;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createFragment)([!!l&&!!d&&(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"arrow-circle-down",inline:!0,onClick:function(){function h(){b(2),i("tabSwitch",{tabIndex:2})}return h}(),selected:C===2,tooltip:"\u041C\u0435\u0441\u0442\u043E \u0412\u044B\u0441\u0430\u0434\u043A\u0438"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"rocket",inline:!0,onClick:function(){function h(){b(0),i("tabSwitch",{tabIndex:0})}return h}(),selected:C===0,tooltip:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"th",inline:!0,onClick:function(){function h(){b(1),i("tabSwitch",{tabIndex:1})}return h}(),selected:C===1,tooltip:"\u0410\u043D\u0433\u0430\u0440 \u041F\u043E\u0433\u0440\u0443\u0437\u043A\u0438"}),(0,e.createVNode)(1,"span",null,"|",16,{style:o.POD_GREY}),!!l&&!!d&&(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",inline:!0,onClick:function(){function h(){i("renderLighting"),i("refreshView")}return h}(),selected:f,tooltip:"\u0420\u0435\u043D\u0434\u0435\u0440\u0438\u043D\u0433 \u043E\u0441\u0432\u0435\u0449\u0435\u043D\u0438\u044F"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"sync-alt",inline:!0,onClick:function(){function h(){b(C),i("refreshView")}return h}(),tooltip:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u043E\u043A\u043D\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430"})],0),fill:!0,title:"\u041E\u0441\u043C\u043E\u0442\u0440",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.ByondUi,{height:"100%",params:{id:s,type:"map",zoom:0}})})]})})}return y}()},7144:function(I,r,n){"use strict";r.__esModule=!0,r.TABPAGES=r.SOUNDS=r.REV_DELAYS=r.REVERSE_OPTIONS=r.POD_GREY=r.EFFECTS_NORMAL=r.EFFECTS_LOAD=r.EFFECTS_HARM=r.EFFECTS_ALL=r.DELAYS=r.BAYS=void 0;var e=n(8179),a=r.POD_GREY={color:"grey"},t=r.TABPAGES=[{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043A\u0430\u043F\u0441\u0443\u043B\u044B",component:e.TabPod},{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0430\u043D\u0433\u0430\u0440\u0430",component:e.TabBay},{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043C\u0435\u0441\u0442\u0430 \u0432\u044B\u0433\u0440\u0443\u0437\u043A\u0438.",component:e.TabDrop}],o=r.REVERSE_OPTIONS=[{title:"\u041C\u043E\u0431\u044B",key:"Mobs",icon:"user"},{title:"\u041D\u0435 \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0451\u043D\u043D\u044B\u0435\n\u041E\u0431\u044A\u0435\u043A\u0442\u044B",key:"Unanchored",icon:"cube"},{title:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0451\u043D\u043D\u044B\u0435\n\u041E\u0431\u044A\u0435\u043A\u0442\u044B",key:"Anchored",icon:"anchor"},{title:"\u041C\u0435\u0445\u0438",key:"Mecha",icon:"truck"}],m=r.DELAYS=[{title:"Pre",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043F\u0440\u0438\u0431\u044B\u0442\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0430 \u0441\u0442\u0430\u043D\u0446\u0438\u044E"},{title:"Fall",tooltip:"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0430\u043D\u0438\u043C\u0430\u0446\u0438\u0438\n \u043F\u0430\u0434\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B"},{title:"Open",tooltip:"\u0412\u0440\u0435\u043C\u044F, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u0435 \u0434\u043B\u044F \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F"},{title:"Exit",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043E\u0442\u043B\u0435\u0442\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u044B\n\u043F\u043E\u0441\u043B\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F"}],S=r.REV_DELAYS=[{title:"Pre",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043F\u043E\u044F\u0432\u043B\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0430\u0434 \u0442\u043E\u0447\u043A\u043E\u0439 \u0432\u044B\u0441\u0430\u0434\u043A\u0438"},{title:"Fall",tooltip:"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0430\u043D\u0438\u043C\u0430\u0446\u0438\u0438\n \u043F\u0430\u0434\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B"},{title:"Open",tooltip:"\u0412\u0440\u0435\u043C\u044F, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u0435 \u0434\u043B\u044F \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F"},{title:"Exit",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043E\u0442\u043B\u0435\u0442\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u044B\n\u043F\u043E\u0441\u043B\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F"}],y=r.SOUNDS=[{title:"Fall",act:"fallingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F, \u043F\u043E\u043A\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u043F\u0430\u0434\u0430\u0435\u0442, \u0438 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044F\n\u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u044F\u0435\u0442\u0441\u044F"},{title:"Land",act:"landingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B"},{title:"Open",act:"openingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043F\u0440\u0438 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u0438 \u043A\u0430\u043F\u0441\u0443\u043B\u044B"},{title:"Exit",act:"leavingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u0443\u043B\u0435\u0442\u0430\u0435\u0442"}],k=r.BAYS=[{title:"1"},{title:"2"},{title:"3"},{title:"4"},{title:"\u0415\u0420\u0422"}],V=r.EFFECTS_LOAD=[{act:"launchAll",choiceNumber:0,icon:"globe",selected:"launchChoice",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0441\u043E \u0432\u0441\u0435\u0445 \u0442\u0443\u0440\u0444\u043E\u0432"},{act:"launchOrdered",choiceNumber:1,icon:"sort-amount-down-alt",selected:"launchChoice",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0441 \u0442\u0443\u0440\u0444\u043E\u0432 \u043F\u043E \u043F\u043E\u0440\u044F\u0434\u043A\u0443"},{act:"launchRandomTurf",choiceNumber:2,icon:"dice",selected:"launchChoice",title:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0440\u0430\u043D\u0434\u043E\u043C\u043D\u044B\u0439 \u0442\u0443\u0440\u0444"},{divider:!0},{act:"launchWholeTurf",choiceNumber:0,icon:"expand",selected:"launchRandomItem",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0432\u0441\u0435 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 \u0442\u0443\u0440\u0444\u0430"},{act:"launchRandomItem",choiceNumber:1,icon:"dice",selected:"launchRandomItem",title:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u043E\u0431\u044A\u0435\u043A\u0442"},{divider:!0},{act:"launchClone",icon:"clone",soloSelected:"launchClone",title:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442"}],p=r.EFFECTS_NORMAL=[{act:"effectTarget",icon:"user-check",soloSelected:"effectTarget",title:"\u041E\u0441\u043E\u0431\u0430\u044F \u0446\u0435\u043B\u044C"},{act:"effectBluespace",choiceNumber:0,icon:"hand-paper",selected:"effectBluespace",title:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u043E\u0441\u0442\u0430\u0435\u0442\u0441\u044F"},{act:"effectStealth",icon:"user-ninja",soloSelected:"effectStealth",title:"\u0421\u043A\u0440\u044B\u0442\u043D\u043E"},{act:"effectQuiet",icon:"volume-mute",soloSelected:"effectQuiet",title:"\u0422\u0438\u0445\u043E"},{act:"effectMissile",icon:"rocket",soloSelected:"effectMissile",title:"\u0420\u0435\u0436\u0438\u043C \u0440\u0430\u043A\u0435\u0442\u044B"},{act:"effectBurst",icon:"certificate",soloSelected:"effectBurst",title:"\u0417\u0430\u043F\u0443\u0441\u043A \u043A\u043B\u0430\u0441\u0442\u0435\u0440\u0430"},{act:"effectCircle",icon:"ruler-combined",soloSelected:"effectCircle",title:"\u041B\u044E\u0431\u043E\u0439 \u0443\u0433\u043E\u043B \u0441\u043F\u0443\u0441\u043A\u0430"},{act:"effectAnnounce",choiceNumber:0,icon:"ghost",selected:"effectAnnounce",title:"\u041D\u0435\u0442 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F \u043F\u0440\u0438\u0437\u0440\u0430\u043A\u043E\u0432\n(\u0435\u0441\u043B\u0438 \u0432\u044B \u043D\u0435 \u0445\u043E\u0442\u0438\u0442\u0435\n\u0440\u0430\u0437\u0432\u043B\u0435\u043A\u0430\u0442\u044C \u0441\u043A\u0443\u0447\u0430\u044E\u0449\u0438\u0445 \u043F\u0440\u0438\u0437\u0440\u0430\u043A\u043E\u0432)"}],i=r.EFFECTS_HARM=[{act:"explosionCustom",choiceNumber:1,icon:"bomb",selected:"explosionChoice",title:"\u041D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0432\u0437\u0440\u044B\u0432"},{act:"explosionBus",choiceNumber:2,icon:"bomb",selected:"explosionChoice",title:"\u0410\u0434\u043C\u0438\u043D\u0430\u0431\u0443\u0437-\u0432\u0437\u0440\u044B\u0432\n\u0418 \u0447\u0442\u043E \u043E\u043D\u0438 \u0441\u0434\u0435\u043B\u0430\u044E\u0442, \u0437\u0430\u0431\u0430\u043D\u044F\u0442 \u0442\u0435\u0431\u044F?"},{divider:!0},{act:"damageCustom",choiceNumber:1,icon:"skull",selected:"damageChoice",title:"\u041D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0443\u0440\u043E\u043D"},{act:"damageGib",choiceNumber:2,icon:"skull-crossbones",selected:"damageChoice",title:"\u0413\u0438\u0431"},{divider:!0},{act:"effectShrapnel",details:!0,icon:"cloud-meatball",soloSelected:"effectShrapnel",title:"\u041E\u0431\u043B\u0430\u043A\u043E \u0441\u043D\u0430\u0440\u044F\u0434\u043E\u0432"},{act:"effectStun",icon:"sun",soloSelected:"effectStun",title:"\u0421\u0442\u0430\u043D"},{act:"effectLimb",icon:"socks",soloSelected:"effectLimb",title:"\u041F\u043E\u0442\u0435\u0440\u044F \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438"},{act:"effectOrgans",icon:"book-dead",soloSelected:"effectOrgans",title:"\u0420\u0430\u0437\u043B\u0435\u0442 \u0432\u0441\u0435\u0445 \u043E\u0440\u0433\u0430\u043D\u043E\u0432"}],c=r.EFFECTS_ALL=[{list:V,label:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0437",alt_label:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430",tooltipPosition:"right"},{list:p,label:"\u041E\u0431\u044B\u0447\u043D\u044B\u0435 \u042D\u0444\u0444\u0435\u043A\u0442\u044B",tooltipPosition:"bottom"},{list:i,label:"\u0412\u0440\u0435\u0434\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B",tooltipPosition:"bottom"}]},20345:function(I,r,n){"use strict";r.__esModule=!0,r.useTab=r.useCompact=void 0;var e=n(72253),a=r.useCompact=function(){function o(m){return(0,e.useLocalState)(m,"compact",!1)}return o}(),t=r.useTab=function(){function o(m){return(0,e.useLocalState)(m,"tab",1)}return o}()},65875:function(I,r,n){"use strict";r.__esModule=!0,r.CentcomPodLauncher=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(20345),m=n(23749),S=n(8507),y=n(15802),k=n(94577),V=n(30590),p=n(72932),i=n(68569),c=n(18885),s=n(76417),l=r.CentcomPodLauncher=function(){function d(f,u){var C=(0,o.useCompact)(u),b=C[0];return(0,e.createComponentVNode)(2,t.Window,{height:b?360:440,title:"\u041C\u0435\u043D\u044E \u043A\u0430\u043F\u0441\u0443\u043B \u0441\u043D\u0430\u0431\u0436\u0435\u043D\u0438\u044F",width:b?460:750,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{shrink:0,children:(0,e.createComponentVNode)(2,k.PodStatusPage)}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,shrink:0,basis:"14.1em",children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.PresetsPage)}),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,p.ReverseMenu)}),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,S.PodLaunch)})})]})}),!b&&(0,e.createComponentVNode)(2,a.Stack.Item,{grow:3,children:(0,e.createComponentVNode)(2,s.ViewTabHolder)}),(0,e.createComponentVNode)(2,a.Stack.Item,{basis:"9em",children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,direction:"column",children:[(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,m.PodBays)}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,c.Timing)}),!b&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,y.PodSounds,{fill:!0})})]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{basis:"11em",children:(0,e.createComponentVNode)(2,i.StylePage)})]})})]})})})}return d}()},16780:function(){"use strict"},12226:function(I,r,n){"use strict";r.__esModule=!0,r.Changelog=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(98595),S=n(79140),y=V(n(83331)),k=V(n(52754));function V(u){return u&&u.__esModule?u:{default:u}}function p(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return C};var u,C={},b=Object.prototype,v=b.hasOwnProperty,h=Object.defineProperty||function(J,Y,Q){J[Y]=Q.value},g=typeof Symbol=="function"?Symbol:{},N=g.iterator||"@@iterator",x=g.asyncIterator||"@@asyncIterator",B=g.toStringTag||"@@toStringTag";function L(J,Y,Q){return Object.defineProperty(J,Y,{value:Q,enumerable:!0,configurable:!0,writable:!0}),J[Y]}try{L({},"")}catch(J){L=function(Q,Z,te){return Q[Z]=te}}function T(J,Y,Q,Z){var te=Y&&Y.prototype instanceof R?Y:R,se=Object.create(te.prototype),ye=new q(Z||[]);return h(se,"_invoke",{value:pe(J,Q,ye)}),se}function E(J,Y,Q){try{return{type:"normal",arg:J.call(Y,Q)}}catch(Z){return{type:"throw",arg:Z}}}C.wrap=T;var w="suspendedStart",A="suspendedYield",O="executing",M="completed",P={};function R(){}function F(){}function _(){}var U={};L(U,N,function(){return this});var W=Object.getPrototypeOf,$=W&&W(W(ae([])));$&&$!==b&&v.call($,N)&&(U=$);var G=_.prototype=R.prototype=Object.create(U);function oe(J){["next","throw","return"].forEach(function(Y){L(J,Y,function(Q){return this._invoke(Y,Q)})})}function X(J,Y){function Q(te,se,ye,fe){var Le=E(J[te],J,se);if(Le.type!=="throw"){var D=Le.arg,ie=D.value;return ie&&typeof ie=="object"&&v.call(ie,"__await")?Y.resolve(ie.__await).then(function(le){Q("next",le,ye,fe)},function(le){Q("throw",le,ye,fe)}):Y.resolve(ie).then(function(le){D.value=le,ye(D)},function(le){return Q("throw",le,ye,fe)})}fe(Le.arg)}var Z;h(this,"_invoke",{value:function(){function te(se,ye){function fe(){return new Y(function(Le,D){Q(se,ye,Le,D)})}return Z=Z?Z.then(fe,fe):fe()}return te}()})}function pe(J,Y,Q){var Z=w;return function(te,se){if(Z===O)throw Error("Generator is already running");if(Z===M){if(te==="throw")throw se;return{value:u,done:!0}}for(Q.method=te,Q.arg=se;;){var ye=Q.delegate;if(ye){var fe=me(ye,Q);if(fe){if(fe===P)continue;return fe}}if(Q.method==="next")Q.sent=Q._sent=Q.arg;else if(Q.method==="throw"){if(Z===w)throw Z=M,Q.arg;Q.dispatchException(Q.arg)}else Q.method==="return"&&Q.abrupt("return",Q.arg);Z=O;var Le=E(J,Y,Q);if(Le.type==="normal"){if(Z=Q.done?M:A,Le.arg===P)continue;return{value:Le.arg,done:Q.done}}Le.type==="throw"&&(Z=M,Q.method="throw",Q.arg=Le.arg)}}}function me(J,Y){var Q=Y.method,Z=J.iterator[Q];if(Z===u)return Y.delegate=null,Q==="throw"&&J.iterator.return&&(Y.method="return",Y.arg=u,me(J,Y),Y.method==="throw")||Q!=="return"&&(Y.method="throw",Y.arg=new TypeError("The iterator does not provide a '"+Q+"' method")),P;var te=E(Z,J.iterator,Y.arg);if(te.type==="throw")return Y.method="throw",Y.arg=te.arg,Y.delegate=null,P;var se=te.arg;return se?se.done?(Y[J.resultName]=se.value,Y.next=J.nextLoc,Y.method!=="return"&&(Y.method="next",Y.arg=u),Y.delegate=null,P):se:(Y.method="throw",Y.arg=new TypeError("iterator result is not an object"),Y.delegate=null,P)}function ne(J){var Y={tryLoc:J[0]};1 in J&&(Y.catchLoc=J[1]),2 in J&&(Y.finallyLoc=J[2],Y.afterLoc=J[3]),this.tryEntries.push(Y)}function re(J){var Y=J.completion||{};Y.type="normal",delete Y.arg,J.completion=Y}function q(J){this.tryEntries=[{tryLoc:"root"}],J.forEach(ne,this),this.reset(!0)}function ae(J){if(J||J===""){var Y=J[N];if(Y)return Y.call(J);if(typeof J.next=="function")return J;if(!isNaN(J.length)){var Q=-1,Z=function(){function te(){for(;++Q=0;--te){var se=this.tryEntries[te],ye=se.completion;if(se.tryLoc==="root")return Z("end");if(se.tryLoc<=this.prev){var fe=v.call(se,"catchLoc"),Le=v.call(se,"finallyLoc");if(fe&&Le){if(this.prev=0;--Z){var te=this.tryEntries[Z];if(te.tryLoc<=this.prev&&v.call(te,"finallyLoc")&&this.prev=0;--Q){var Z=this.tryEntries[Q];if(Z.finallyLoc===Y)return this.complete(Z.completion,Z.afterLoc),re(Z),P}}return J}(),catch:function(){function J(Y){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var Z=this.tryEntries[Q];if(Z.tryLoc===Y){var te=Z.completion;if(te.type==="throw"){var se=te.arg;re(Z)}return se}}throw Error("illegal catch attempt")}return J}(),delegateYield:function(){function J(Y,Q,Z){return this.delegate={iterator:ae(Y),resultName:Q,nextLoc:Z},this.method==="next"&&(this.arg=u),P}return J}()},C}function i(u,C,b,v,h,g,N){try{var x=u[g](N),B=x.value}catch(L){return void b(L)}x.done?C(B):Promise.resolve(B).then(v,h)}function c(u){return function(){var C=this,b=arguments;return new Promise(function(v,h){var g=u.apply(C,b);function N(B){i(g,v,h,N,x,"next",B)}function x(B){i(g,v,h,N,x,"throw",B)}N(void 0)})}}function s(u,C){u.prototype=Object.create(C.prototype),u.prototype.constructor=u,l(u,C)}function l(u,C){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,v){return b.__proto__=v,b},l(u,C)}var d={add:{icon:"check-circle",color:"green"},admin:{icon:"user-shield",color:"purple"},balance:{icon:"balance-scale-right",color:"yellow"},bugfix:{icon:"bug",color:"green"},code_imp:{icon:"code",color:"green"},config:{icon:"cogs",color:"purple"},del:{icon:"minus",color:"red"},expansion:{icon:"check-circle",color:"green"},experiment:{icon:"radiation",color:"yellow"},image:{icon:"image",color:"green"},imageadd:{icon:"tg-image-plus",color:"green"},imagedel:{icon:"tg-image-minus",color:"red"},qol:{icon:"hand-holding-heart",color:"green"},refactor:{icon:"tools",color:"green"},rscadd:{icon:"check-circle",color:"green"},rscdel:{icon:"times-circle",color:"red"},server:{icon:"server",color:"purple"},sound:{icon:"volume-high",color:"green"},soundadd:{icon:"tg-sound-plus",color:"green"},sounddel:{icon:"tg-sound-minus",color:"red"},spellcheck:{icon:"spell-check",color:"green"},tgs:{icon:"toolbox",color:"purple"},tweak:{icon:"wrench",color:"green"},unknown:{icon:"info-circle",color:"label"},wip:{icon:"hammer",color:"orange"}},f=r.Changelog=function(u){function C(){var v;return v=u.call(this)||this,v.getData=function(h,g){g===void 0&&(g=1);var N=(0,t.useBackend)(v.context),x=N.act,B=v,L=6;if(g>L)return v.setData("Failed to load data after "+L+" attempts");x("get_month",{date:h}),fetch((0,S.resolveAsset)(h+".yml")).then(function(){var T=c(p().mark(function(){function E(w){var A,O,M;return p().wrap(function(){function P(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,w.text();case 2:A=R.sent,O=/^Cannot find/,O.test(A)?(M=50+g*50,B.setData("Loading changelog data"+".".repeat(g+3)),setTimeout(function(){B.getData(h,g+1)},M)):B.setData(k.default.load(A,{schema:k.default.CORE_SCHEMA}));case 5:case"end":return R.stop()}}return P}(),E)}return E}()));return function(E){return T.apply(this,arguments)}}())},v.state={data:"Loading changelog data...",selectedDate:"",selectedIndex:0},v.dateChoices=[],v}s(C,u);var b=C.prototype;return b.setData=function(){function v(h){this.setState({data:h})}return v}(),b.setSelectedDate=function(){function v(h){this.setState({selectedDate:h})}return v}(),b.setSelectedIndex=function(){function v(h){this.setState({selectedIndex:h})}return v}(),b.componentDidMount=function(){function v(){var h=this,g=(0,t.useBackend)(this.context),N=g.data.dates,x=N===void 0?[]:N;x&&(x.forEach(function(B){return h.dateChoices.push((0,y.default)(B,"mmmm yyyy",!0))}),this.setSelectedDate(this.dateChoices[0]),this.getData(x[0]))}return v}(),b.render=function(){function v(){var h=this,g=this.state,N=g.data,x=g.selectedDate,B=g.selectedIndex,L=(0,t.useBackend)(this.context),T=L.data.dates,E=this.dateChoices,w=E.length>0&&(0,e.createComponentVNode)(2,o.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:B===0,icon:"chevron-left",onClick:function(){function R(){var F=B-1;return h.setData("Loading changelog data..."),h.setSelectedIndex(F),h.setSelectedDate(E[F]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),h.getData(T[F])}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{displayText:x,options:E,onSelected:function(){function R(F){var _=E.indexOf(F);return h.setData("Loading changelog data..."),h.setSelectedIndex(_),h.setSelectedDate(F),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),h.getData(T[_])}return R}(),selected:x,width:"150px"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:B===E.length-1,icon:"chevron-right",onClick:function(){function R(){var F=B+1;return h.setData("Loading changelog data..."),h.setSelectedIndex(F),h.setSelectedDate(E[F]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),h.getData(T[F])}return R}()})})]}),A=(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createVNode)(1,"h1",null,"Paradise Station",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thanks to: ",16),(0,e.createTextVNode)("Baystation 12, /tg/station, /vg/station, NTstation, CDK Station devs, FacepunchStation, GoonStation devs, the original SpaceStation developers and Radithor for the title image. Also a thanks to anybody who has contributed who is not listed here :( Ask to be added here on irc.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Recent GitHub contributors can be found "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://github.com/ss220-space/Paradise/pulse/monthly"}),(0,e.createTextVNode)(".")],0),w]}),O=(0,e.createComponentVNode)(2,o.Section,{children:[w,(0,e.createVNode)(1,"h3",null,"GoonStation 13 Development Team",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Coders: ",16),(0,e.createTextVNode)("Stuntwaffle, Showtime, Pantaloons, Nannek, Keelin, Exadv1, hobnob, Justicefries, 0staf, sniperchance, AngriestIBM, BrianOBlivion")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Spriters: ",16),(0,e.createTextVNode)("Supernorn, Haruhi, Stuntwaffle, Pantaloons, Rho, SynthOrange, I Said No")],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Traditional Games Space Station 13 is thankful to the GoonStation 13 Development Team for its work on the game up to the"),(0,e.createTextVNode)(" r4407 release. The changelog for changes up to r4407 can be seen "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://wiki.ss13.co/Pre-2016_Changelog#April_2010"}),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,["Except where otherwise noted, Goon Station 13 is licensed under a ",(0,e.createVNode)(1,"a",null,"Creative Commons Attribution-Noncommercial-Share Alike 3.0 License",16,{href:"https://creativecommons.org/licenses/by-nc-sa/3.0/"}),". Rights are currently extended to ",(0,e.createVNode)(1,"a",null,"SomethingAwful Goons",16,{href:"http://forums.somethingawful.com/"})," only."],0),(0,e.createVNode)(1,"h3",null,"Traditional Games Space Station 13 License",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Some icons by"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"a",null,"Yusuke Kamiyamane",16,{href:"http://p.yusukekamiyamane.com/"}),(0,e.createTextVNode)(". All rights reserved. Licensed under a"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"a",null,"Creative Commons Attribution 3.0 License",16,{href:"http://creativecommons.org/licenses/by/3.0/"}),(0,e.createTextVNode)(".")],0)]}),M=/#\d+/,P=typeof N=="object"&&Object.keys(N).length>0&&Object.entries(N).reverse().map(function(R){var F=R[0],_=R[1];return(0,e.createComponentVNode)(2,o.Section,{title:(0,y.default)(F,"d mmmm yyyy",!0),children:(0,e.createComponentVNode)(2,o.Box,{ml:3,children:Object.entries(_).map(function(U){var W=U[0],$=U[1];return(0,e.createFragment)([(0,e.createVNode)(1,"h4",null,[W,(0,e.createTextVNode)(" changed:")],0),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:(0,e.createComponentVNode)(2,o.Table,{children:$.map(function(G){var oe=Object.keys(G)[0],X=G[oe],pe=X.match(M),me=(0,e.createComponentVNode)(2,o.Table.Cell,{className:(0,a.classes)(["Changelog__Cell","Changelog__Cell--Icon"]),children:(0,e.createComponentVNode)(2,o.Icon,{color:d[oe]?d[oe].color:d.unknown.color,name:d[oe]?d[oe].icon:d.unknown.icon})});return pe!==null&&(0,e.createComponentVNode)(2,o.Table.Row,{children:[me,(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:(0,e.createVNode)(1,"a",null,[" ",X.charAt(0).toUpperCase()+X.slice(1)," "],0,{href:"https://github.com/ss220-space/Paradise/pull/"+pe[0].substring(1)})})]},oe+X)||(0,e.createComponentVNode)(2,o.Table.Row,{children:[me,(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:X})]},oe+X)})})})],4,W)})})},F)});return(0,e.createComponentVNode)(2,m.Window,{title:"Changelog",width:675,height:650,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[A,P,typeof N=="string"&&(0,e.createVNode)(1,"p",null,N,0),O]})})}return v}(),C}(e.Component)},91360:function(I,r,n){"use strict";r.__esModule=!0,r.CheckboxListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),m=n(72253),S=n(98595),y=r.CheckboxListInputModal=function(){function V(p,i){var c=(0,m.useBackend)(i),s=c.act,l=c.data,d=l.items,f=d===void 0?[]:d,u=l.message,C=u===void 0?"":u,b=l.init_value,v=l.timeout,h=l.title,g=(0,m.useLocalState)(i,"edittedItems",f),N=g[0],x=g[1],B=330+Math.ceil(C.length/3),L=function(){function T(E){E===void 0&&(E=null);var w=[].concat(N);w=w.map(function(A){return A.key===E.key?Object.assign({},A,{checked:!E.checked}):A}),x(w)}return T}();return(0,e.createComponentVNode)(2,S.Window,{title:h,width:325,height:B,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{className:"ListInput__Section",fill:!0,title:C,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k,{filteredItems:N,onClick:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:N})})]})})})]})}return V}(),k=function(p,i){var c=p.filteredItems,s=p.onClick;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:c.map(function(l,d){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,id:d,onClick:function(){function f(){return s(l)}return f}(),checked:l.checked,style:{animation:"none",transition:"none"},children:l.key.replace(/^\w/,function(f){return f.toUpperCase()})},d)})})}},36108:function(I,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(85870),m=n(98595),S=[1,5,10,20,30,50,100],y=[1,5,10],k=r.ChemDispenser=function(){function c(s,l){var d=(0,a.useBackend)(l),f=d.act,u=d.data,C=u.chemicals;return(0,e.createComponentVNode)(2,m.Window,{width:460,height:400+C.length*8,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i)]})})})}return c}(),V=function(s,l){var d=(0,a.useBackend)(l),f=d.act,u=d.data,C=u.amount,b=u.energy,v=u.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:b,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[b," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:S.map(function(h,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:C===h,content:h,onClick:function(){function N(){return f("amount",{amount:h})}return N}()})},g)})})})]})})})},p=function(s,l){for(var d=(0,a.useBackend)(l),f=d.act,u=d.data,C=u.chemicals,b=C===void 0?[]:C,v=[],h=0;h<(b.length+1)%3;h++)v.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:u.glass?"Drink Dispenser":"Chemical Dispenser",children:[b.map(function(g,N){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:g.title,style:{"margin-left":"2px"},onClick:function(){function x(){return f("dispense",{reagent:g.id})}return x}()},N)}),v.map(function(g,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},N)})]})})},i=function(s,l){var d=(0,a.useBackend)(l),f=d.act,u=d.data,C=u.isBeakerLoaded,b=u.beakerCurrentVolume,v=u.beakerMaxVolume,h=u.beakerContents,g=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:u.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!C&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[b," / ",v," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!C,onClick:function(){function N(){return f("ejectBeaker")}return N}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:C,beakerContents:g,buttons:function(){function N(x){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function B(){return f("remove",{reagent:x.id,amount:-1})}return B}()}),y.map(function(B,L){return(0,e.createComponentVNode)(2,t.Button,{content:B,onClick:function(){function T(){return f("remove",{reagent:x.id,amount:B})}return T}()},L)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function B(){return f("remove",{reagent:x.id,amount:x.volume})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Floor",tooltip:"Set to "+Math.trunc(x.volume),icon:"arrow-circle-down",onClick:function(){function B(){return f("remove",{reagent:x.id,amount:-2})}return B}()})],0)}return N}()})})})}},13146:function(I,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(85870),S=n(98595),y=r.ChemHeater=function(){function p(i,c){return(0,e.createComponentVNode)(2,S.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,V)]})})})}return p}(),k=function(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.targetTemp,u=d.targetTempReached,C=d.autoEject,b=d.isActive,v=d.currentTemp,h=d.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){function g(){return l("toggle_autoeject")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{content:b?"On":"Off",icon:"power-off",selected:b,disabled:!h,onClick:function(){function g(){return l("toggle_on")}return g}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(f,0),minValue:0,maxValue:1e3,onDrag:function(){function g(N,x){return l("adjust_temperature",{target:x})}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:u?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v,format:function(){function g(N){return(0,a.toFixed)(N)+" K"}return g}()})||"\u2014"})]})})})},V=function(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.isBeakerLoaded,u=d.beakerCurrentVolume,C=d.beakerMaxVolume,b=d.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!f&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[u," / ",C," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function v(){return l("eject_beaker")}return v}()})]}),children:(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:f,beakerContents:b})})})}},56541:function(I,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(85870),S=n(3939),y=n(35840),k=["icon"];function V(B,L){if(B==null)return{};var T={};for(var E in B)if({}.hasOwnProperty.call(B,E)){if(L.includes(E))continue;T[E]=B[E]}return T}function p(B,L){B.prototype=Object.create(L.prototype),B.prototype.constructor=B,i(B,L)}function i(B,L){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,E){return T.__proto__=E,T},i(B,L)}var c=[1,5,10],s=function(L,T){var E=(0,a.useBackend)(T),w=E.act,A=E.data,O=L.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:A.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:O.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(O.desc||"").length>0?O.desc:"N/A"}),O.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:O.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:O.blood_dna})],4),!A.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:A.printing?"spinner":"print",disabled:A.printing,iconSpin:!!A.printing,ml:"0.5rem",content:"Print",onClick:function(){function M(){return w("print",{idx:O.idx,beaker:L.args.beaker})}return M}()})]})})})})},l=function(B){return B[B.ToDisposals=0]="ToDisposals",B[B.ToBeaker=1]="ToBeaker",B}(l||{}),d=r.ChemMaster=function(){function B(L,T){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,x)]})})]})}return B}(),f=function(L,T){var E=(0,a.useBackend)(T),w=E.act,A=E.data,O=A.beaker,M=A.beaker_reagents,P=A.buffer_reagents,R=P.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:R?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!O,content:"Eject and Clear Buffer",onClick:function(){function F(){return w("eject")}return F}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!O,content:"Eject and Clear Buffer",onClick:function(){function F(){return w("eject")}return F}()}),children:O?(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:!0,beakerContents:M,buttons:function(){function F(_,U){return(0,e.createComponentVNode)(2,t.Box,{mb:U0?(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:!0,beakerContents:M,buttons:function(){function P(R,F){return(0,e.createComponentVNode)(2,t.Box,{mb:F0&&(R=P.map(function(F){var _=F.id,U=F.sprite;return(0,e.createComponentVNode)(2,g,{icon:U,color:"translucent",onClick:function(){function W(){return w("set_sprite_style",{production_mode:O,style:_})}return W}(),selected:M===_},_)})),(0,e.createComponentVNode)(2,h,{productionData:L.productionData,children:R&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:R})})},x=function(L,T){var E=(0,a.useBackend)(T),w=E.act,A=E.data,O=A.loaded_pill_bottle_style,M=A.containerstyles,P=A.loaded_pill_bottle,R={width:"20px",height:"20px"},F=M.map(function(_){var U=_.color,W=_.name,$=O===U;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:R.width,height:R.height},onClick:function(){function G(){return w("set_container_style",{style:U})}return G}(),icon:$&&"check",iconStyle:{position:"relative","z-index":1},tooltip:W,tooltipPosition:"top",children:[!$&&(0,e.createVNode)(1,"div",null,null,1,{style:{display:"inline-block"}}),(0,e.createVNode)(1,"span","Button",null,1,{style:{display:"inline-block",position:"absolute",top:0,left:0,margin:0,padding:0,width:R.width,height:R.height,"background-color":U,opacity:.6,filter:"alpha(opacity=60)"}})]},U)});return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Container Customization",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!P,content:"Eject Container",onClick:function(){function _(){return w("ejectp")}return _}()}),children:P?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:R.width,height:R.height},icon:"tint-slash",onClick:function(){function _(){return w("clear_container_style")}return _}(),selected:!O,tooltip:"Default",tooltipPosition:"top"}),F]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,S.modalRegisterBodyOverride)("analyze",s)},37173:function(I,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(76910),S=n(3939),y=n(98595),k=n(79140),V=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=C.args,x=N.activerecord,B=N.realname,L=N.health,T=N.unidentity,E=N.strucenzymes,w=L.split(" - ");return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",pb:"1rem",title:"Records of "+B,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:B}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Damage",children:w.length>1?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:m.COLORS.damageType.oxy,inline:!0,children:w[0]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:m.COLORS.damageType.toxin,inline:!0,children:w[2]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:m.COLORS.damageType.brute,inline:!0,children:w[3]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:m.COLORS.damageType.burn,inline:!0,children:w[1]})],4):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Unknown"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:T}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:E}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disk",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!g.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){function A(){return h("disk",{option:"load"})}return A}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){function A(){return h("disk",{option:"save",savetype:"ui"})}return A}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){function A(){return h("disk",{option:"save",savetype:"ue"})}return A}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){function A(){return h("disk",{option:"save",savetype:"se"})}return A}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!g.podready,icon:"user-plus",content:"Clone",onClick:function(){function A(){return h("clone",{ref:x})}return A}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"Delete",onClick:function(){function A(){return h("del_rec")}return A}()})]})]})})},p=r.CloningConsole=function(){function u(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.menu;return(0,S.modalRegisterBodyOverride)("view_rec",V),(0,e.createComponentVNode)(2,y.Window,{width:640,height:520,children:[(0,e.createComponentVNode)(2,S.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,y.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,flexGrow:"1",children:(0,e.createComponentVNode)(2,c)})]})]})}return u}(),i=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.menu;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===1,icon:"home",onClick:function(){function x(){return h("menu",{num:1})}return x}(),children:"Main"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===2,icon:"folder",onClick:function(){function x(){return h("menu",{num:2})}return x}(),children:"Records"})]})},c=function(C,b){var v=(0,t.useBackend)(b),h=v.data,g=h.menu,N;return g===1?N=(0,e.createComponentVNode)(2,s):g===2&&(N=(0,e.createComponentVNode)(2,l)),N},s=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.loading,x=g.scantemp,B=g.occupant,L=g.locked,T=g.can_brainscan,E=g.scan_mode,w=g.numberofpods,A=g.pods,O=g.selected_pod,M=L&&!!B;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Scanner",level:"2",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Scanner Lock:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,selected:M,icon:M?"toggle-on":"toggle-off",content:M?"Engaged":"Disengaged",onClick:function(){function P(){return h("lock")}return P}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:M||!B,icon:"user-slash",content:"Eject Occupant",onClick:function(){function P(){return h("eject")}return P}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:N?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"spinner",spin:!0}),"\xA0 Scanning..."]}):(0,e.createComponentVNode)(2,o.Box,{color:x.color,children:x.text})}),!!T&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scan Mode",children:(0,e.createComponentVNode)(2,o.Button,{icon:E?"brain":"male",content:E?"Brain":"Body",onClick:function(){function P(){return h("toggle_mode")}return P}()})})]}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B||N,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){function P(){return h("scan")}return P}()})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Pods",level:"2",children:w?A.map(function(P,R){var F;return P.status==="cloning"?F=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:P.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,a.round)(P.progress,0)+"%"})}):P.status==="mess"?F=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):F=(0,e.createComponentVNode)(2,o.Button,{selected:O===P.pod,icon:O===P.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){function _(){return h("selectpod",{ref:P.pod})}return _}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,k.resolveAsset)("pod_"+P.status+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["Pod #",R+1]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:P.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:P.biomass>=150?"circle":"circle-o"}),"\xA0",P.biomass]}),F]},R)}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},l=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.records;return N.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:N.map(function(x,B){return(0,e.createComponentVNode)(2,o.Button,{icon:"user",mb:"0.5rem",content:x.realname,onClick:function(){function L(){return h("view_rec",{ref:x.record})}return L}()},B)})}):(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No records found."]})})},d=function(C,b){var v,h=(0,t.useBackend)(b),g=h.act,N=h.data,x=N.temp;if(!(!x||!x.text||x.text.length<=0)){var B=(v={},v[x.style]=!0,v);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.NoticeBox,Object.assign({},B,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",children:x.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function L(){return g("cleartemp")}return L}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},f=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.scanner,x=g.numberofpods,B=g.autoallowed,L=g.autoprocess,T=g.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:(0,e.createFragment)([!!B&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Auto-processing:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:L?"Enabled":"Disabled",onClick:function(){function E(){return h("autoprocess",{on:L?0:1})}return E}()})],4),(0,e.createComponentVNode)(2,o.Button,{disabled:!T,icon:"eject",content:"Eject Disk",onClick:function(){function E(){return h("disk",{option:"eject"})}return E}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanner",children:N?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Connected"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Not connected!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pods",children:x?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[x," connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})})]})})}},18259:function(I,r,n){"use strict";r.__esModule=!0,r.CoinMint=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(98595),S=r.CoinMint=function(){function y(k,V){var p=(0,t.useBackend)(V),i=p.act,c=p.data,s=c.materials,l=c.moneyBag,d=c.moneyBagContent,f=c.moneyBagMaxContent,u=(l?210:138)+Math.ceil(s.length/4)*64;return(0,e.createComponentVNode)(2,m.Window,{width:256,height:u,title:"\u041C\u043E\u043D\u0435\u0442\u043D\u044B\u0439 \u043F\u0440\u0435\u0441\u0441",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.NoticeBox,{m:0,info:!0,children:["\u041F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u043E \u043C\u043E\u043D\u0435\u0442: ",c.totalCoins]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0422\u0438\u043F \u041C\u043E\u043D\u0435\u0442",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",color:c.active&&"bad",tooltip:!l&&"\u041D\u0443\u0436\u0435\u043D \u0434\u0435\u043D\u0435\u0436\u043D\u044B\u0439 \u043C\u0435\u0448\u043E\u043A",disabled:!l,onClick:function(){function C(){return i("activate")}return C}()}),children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:c.maxMaterials,value:c.totalMaterials})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",tooltip:"\u0418\u0437\u0432\u0432\u043B\u0435\u0447\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u044B\u0439 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B",onClick:function(){function C(){return i("ejectMat")}return C}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:s.map(function(C){return(0,e.createComponentVNode)(2,o.Button,{bold:!0,inline:!0,m:.2,textAlign:"center",color:"translucent",selected:C.id===c.chosenMaterial,tooltip:C.name,content:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",C.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:C.amount})]}),onClick:function(){function b(){return i("selectMaterial",{material:C.id})}return b}()},C.id)})})]})})}),!!l&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"\u0414\u0435\u043D\u0435\u0436\u043D\u044B\u0439 \u043C\u0435\u0448\u043E\u043A",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C",disabled:c.active,onClick:function(){function C(){return i("ejectBag")}return C}()}),children:(0,e.createComponentVNode)(2,o.ProgressBar,{width:"100%",minValue:0,maxValue:f,value:d,children:[d," / ",f]})})})]})})})}return y}()},93858:function(I,r,n){"use strict";r.__esModule=!0,r.HexColorInput=r.ColorSelector=r.ColorPickerModal=r.ColorInput=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(36036),m=n(98595),S=n(44879),y=n(14448),k=n(4454),V=n(35840),p=n(9394),i=n(19203),c=["prefixed","alpha","color","fluid","onChange"];/** + */var S=(0,t.createLogger)("hotkeys"),y={},k=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],V={},p=function(l){if(l===16)return"Shift";if(l===17)return"Ctrl";if(l===18)return"Alt";if(l===33)return"Northeast";if(l===34)return"Southeast";if(l===35)return"Southwest";if(l===36)return"Northwest";if(l===37)return"West";if(l===38)return"North";if(l===39)return"East";if(l===40)return"South";if(l===45)return"Insert";if(l===46)return"Delete";if(l>=48&&l<=57||l>=65&&l<=90)return String.fromCharCode(l);if(l>=96&&l<=105)return"Numpad"+(l-96);if(l>=112&&l<=123)return"F"+(l-111);if(l===188)return",";if(l===189)return"-";if(l===190)return"."},i=function(l){var C=String(l);if(C==="Ctrl+F5"||C==="Ctrl+R"){location.reload();return}if(C!=="Ctrl+F"&&!(l.event.defaultPrevented||l.isModifierKey()||k.includes(l.code))){C==="F5"&&(l.event.preventDefault(),l.event.returnValue=!1);var b=p(l.code);if(b){var v=y[b];if(v)return S.debug("macro",v),Byond.command(v);if(l.isDown()&&!V[b]){V[b]=!0;var h='KeyDown "'+b+'"';return S.debug(h),Byond.command(h)}if(l.isUp()&&V[b]){V[b]=!1;var g='KeyUp "'+b+'"';return S.debug(g),Byond.command(g)}}}},c=r.acquireHotKey=function(){function f(l){k.push(l)}return f}(),s=r.releaseHotKey=function(){function f(l){var C=k.indexOf(l);C>=0&&k.splice(C,1)}return f}(),u=r.releaseHeldKeys=function(){function f(){for(var l=0,C=Object.keys(V);l0||(0,a.fetchRetry)((0,e.resolveAsset)("icon_ref_map.json")).then(function(S){return S.json()}).then(function(S){return Byond.iconRefMap=S}).catch(function(S){return t.logger.log(S)})}return m}()},1090:function(I,r,n){"use strict";r.__esModule=!0,r.AICard=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AICard=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data;if(i.has_ai===0)return(0,e.createComponentVNode)(2,o.Window,{width:250,height:120,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createVNode)(1,"h3",null,"No AI detected.",16)})})})});var c=null;return i.integrity>=75?c="green":i.integrity>=25?c="yellow":c="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c,value:i.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,i.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(s,u){return(0,e.createComponentVNode)(2,t.Box,{children:s},u)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.wireless?"check":"times",content:i.wireless?"Enabled":"Disabled",color:i.wireless?"green":"red",onClick:function(){function s(){return p("wireless")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.radio?"check":"times",content:i.radio?"Enabled":"Disabled",color:i.radio?"green":"red",onClick:function(){function s(){return p("radio")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:i.flushing||i.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function s(){return p("wipe")}return s}()})})]})})})]})})})}return S}()},39454:function(I,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AIFixer=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data;if(i.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var c=!0;(i.stat===2||i.stat===null)&&(c=!1);var s=null;i.integrity>=75?s="green":i.integrity>=25?s="yellow":s="red";var u=!0;return i.integrity>=100&&i.stat!==2&&(u=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s,value:i.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:c?"green":"red",children:c?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(d,f){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d},f)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.wireless?"times":"check",content:i.wireless?"Disabled":"Enabled",color:i.wireless?"red":"green",onClick:function(){function d(){return p("wireless")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.radio?"times":"check",content:i.radio?"Disabled":"Enabled",color:i.radio?"red":"green",onClick:function(){function d(){return p("radio")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!u||i.active,content:!u||i.active?"Already Repaired":"Repair",onClick:function(){function d(){return p("fix")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:i.active?"Reconstruction in progress.":""})]})})]})})})}return S}()},88422:function(I,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(195),S=r.APC=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return p}(),y={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"}},k={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},V=function(i,c){var s=(0,a.useBackend)(c),u=s.act,d=s.data,f=d.locked&&!d.siliconUser,l=d.normallyLocked,C=y[d.externalPower]||y[0],b=y[d.chargingStatus]||y[0],v=d.powerChannels||[],h=k[d.malfStatus]||k[0],g=d.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:C.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!f,color:d.isOperating?"":"bad",disabled:f,onClick:function(){function N(){return u("breaker")}return N}()}),children:["[ ",C.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:g})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:b.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:f,onClick:function(){function N(){return u("charge")}return N}()}),children:["[ ",b.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.map(function(N){var x=N.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:N.status>=2?"good":"bad",children:N.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!f&&(N.status===1||N.status===3),disabled:f,onClick:function(){function B(){return u("channel",x.auto)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!f&&N.status===2,disabled:f,onClick:function(){function B(){return u("channel",x.on)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!f&&N.status===0,disabled:f,onClick:function(){function B(){return u("channel",x.off)}return B}()})],4),children:[N.powerLoad," W"]},N.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[d.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,e.createFragment)([!!d.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:h.icon,content:h.content,color:"bad",onClick:function(){function N(){return u(h.action)}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function N(){return u("overload")}return N}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",disabled:f,onClick:function(){function N(){return u("cover")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",onClick:function(){function N(){return u("toggle_nightshift")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting Fallback",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:d.emergencyLights?"Engaged":"Disengaged",disabled:f,onClick:function(){function N(){return u("emergency_lighting")}return N}()})})]})})],4)}},99660:function(I,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ATM=function(){function u(d,f){var l=(0,a.useBackend)(f),C=l.act,b=l.data,v=b.view_screen,h=b.authenticated_account,g=b.ticks_left_locked_down,N=b.linked_db,x;if(g>0)x=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!N)x=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(h)switch(v){case 1:x=(0,e.createComponentVNode)(2,y);break;case 2:x=(0,e.createComponentVNode)(2,k);break;case 3:x=(0,e.createComponentVNode)(2,c);break;case 4:x=(0,e.createComponentVNode)(2,V);break;default:x=(0,e.createComponentVNode)(2,p)}else x=(0,e.createComponentVNode)(2,i);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,t.Section,{children:x})]})})}return u}(),S=function(d,f){var l=(0,a.useBackend)(f),C=l.act,b=l.data,v=b.machine_id,h=b.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"eject",onClick:function(){function g(){return C("insert_card")}return g}()})})})]})},y=function(d,f){var l=(0,a.useBackend)(f),C=l.act,b=l.data,v=b.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:v===0,onClick:function(){function h(){return C("change_security_level",{new_security_level:0})}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:v===1,onClick:function(){function h(){return C("change_security_level",{new_security_level:1})}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Card and Account Pin",icon:"unlock",selected:v===2,onClick:function(){function h(){return C("change_security_level",{new_security_level:2})}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number, pin and card are required to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,s)]})},k=function(d,f){var l=(0,a.useBackend)(f),C=l.act,b=l.data,v=(0,a.useLocalState)(f,"targetAccNumber",0),h=v[0],g=v[1],N=(0,a.useLocalState)(f,"fundsAmount",0),x=N[0],B=N[1],L=(0,a.useLocalState)(f,"purpose",0),T=L[0],E=L[1],w=b.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",w]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function A(O,M){return g(M)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function A(O,M){return B(M)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function A(O,M){return E(M)}return A}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function A(){return C("transfer",{target_acc_number:h,funds_amount:x,purpose:T})}return A}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,s)]})},V=function(d,f){var l=(0,a.useBackend)(f),C=l.act,b=l.data,v=b.insurance_type;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u043E\u0432\u044B\u0439 \u0442\u0438\u043F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0438",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u043F",children:[(0,e.createComponentVNode)(2,t.Button,{content:"\u041D\u0435\u0442 (0)",icon:"unlock",selected:v==="None",onClick:function(){function h(){return C("change_insurance_type",{new_insurance_type:"None"})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0411\u044E\u0434\u0436\u0435\u0442\u043D\u0430\u044F (0)",icon:"unlock",selected:v==="Bugetary",onClick:function(){function h(){return C("change_insurance_type",{new_insurance_type:"Bugetary"})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u0430\u044F (500)",icon:"unlock",selected:v==="Standart",onClick:function(){function h(){return C("change_insurance_type",{new_insurance_type:"Standart"})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0414\u0435\u043B\u044E\u043A\u0441 (2000)",icon:"unlock",selected:v==="Deluxe",onClick:function(){function h(){return C("change_insurance_type",{new_insurance_type:"Deluxe"})}return h}()})]})}),(0,e.createComponentVNode)(2,s)]})},p=function(d,f){var l=(0,a.useBackend)(f),C=l.act,b=l.data,v=(0,a.useLocalState)(f,"fundsAmount",0),h=v[0],g=v[1],N=(0,a.useLocalState)(f,"insuranceAmount",0),x=N[0],B=N[1],L=b.owner_name,T=b.money,E=b.insurance;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+L,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function w(){return C("logout")}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",T]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function w(A,O){return g(O)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function w(){return C("withdrawal",{funds_amount:h})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Insurance Points",children:["$",E]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Adding Insurance",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function w(A,O){return B(O)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Add insurance points",icon:"sign-out-alt",onClick:function(){function w(){return C("insurance",{insurance_amount:x})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Toggle auto-replenishment of insurance",icon:"sign-out-alt",onClick:function(){function w(){return C("insurance_replenishment",{})}return w}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function w(){return C("view_screen",{view_screen:1})}return w}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function w(){return C("view_screen",{view_screen:2})}return w}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function w(){return C("view_screen",{view_screen:3})}return w}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change type of insurance",icon:"lock",onClick:function(){function w(){return C("view_screen",{view_screen:4})}return w}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function w(){return C("balance_statement")}return w}()})})]})],4)},i=function(d,f){var l=(0,a.useBackend)(f),C=l.act,b=l.data,v=(0,a.useLocalState)(f,"accountID",null),h=v[0],g=v[1],N=(0,a.useLocalState)(f,"accountPin",null),x=N[0],B=N[1],L=b.machine_id,T=b.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function E(w,A){return g(A)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function E(w,A){return B(A)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function E(){return C("attempt_auth",{account_num:h,account_pin:x})}return E}()})})]})})},c=function(d,f){var l=(0,a.useBackend)(f),C=l.act,b=l.data,v=b.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),v.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:h.is_deposit?"green":"red",children:["$",h.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.target_name})]},h)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,s)]})},s=function(d,f){var l=(0,a.useBackend)(f),C=l.act,b=l.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function v(){return C("view_screen",{view_screen:0})}return v}()})}},86423:function(I,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(36352),S=n(98595),y=n(321),k=n(5485),V=r.AccountsUplinkTerminal=function(){function d(f,l){var C=(0,t.useBackend)(l),b=C.act,v=C.data,h=v.loginState,g=v.currentPage,N;if(h.logged_in)g===1?N=(0,e.createComponentVNode)(2,p):g===2?N=(0,e.createComponentVNode)(2,s):g===3&&(N=(0,e.createComponentVNode)(2,u));else return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,k.LoginScreen)})})});return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:N})]})})})}return d}(),p=function(f,l){var C=(0,t.useBackend)(l),b=C.act,v=C.data,h=v.accounts,g=(0,t.useLocalState)(l,"searchText",""),N=g[0],x=g[1],B=(0,t.useLocalState)(l,"sortId","owner_name"),L=B[0],T=B[1],E=(0,t.useLocalState)(l,"sortOrder",!0),w=E[0],A=E[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,i,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,i,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,i,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,i,{id:"money",children:"Account Balance"})]}),h.filter((0,a.createSearch)(N,function(O){return O.owner_name+"|"+O.account_number+"|"+O.suspended+"|"+O.money})).sort(function(O,M){var P=w?1:-1;return O[L].localeCompare(M[L])*P}).map(function(O){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+O.suspended,onClick:function(){function M(){return b("view_account_detail",{index:O.account_index})}return M}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",O.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.money})]},O.account_number)})]})})})]})},i=function(f,l){var C=(0,t.useLocalState)(l,"sortId","name"),b=C[0],v=C[1],h=(0,t.useLocalState)(l,"sortOrder",!0),g=h[0],N=h[1],x=f.id,B=f.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:b!==x&&"transparent",width:"100%",onClick:function(){function L(){b===x?N(!g):(v(x),N(!0))}return L}(),children:[B,b===x&&(0,e.createComponentVNode)(2,o.Icon,{name:g?"sort-up":"sort-down",ml:"0.25rem;"})]})})},c=function(f,l){var C=(0,t.useBackend)(l),b=C.act,v=C.data,h=v.is_printing,g=(0,t.useLocalState)(l,"searchText",""),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function B(){return b("create_new_account")}return B}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"print",content:"Print Account List",disabled:h,ml:"0.25rem",onClick:function(){function B(){return b("print_records")}return B}()})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function B(L,T){return x(T)}return B}()})})]})},s=function(f,l){var C=(0,t.useBackend)(l),b=C.act,v=C.data,h=v.account_number,g=v.owner_name,N=v.money,x=v.suspended,B=v.transactions;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+h+" / "+g,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function L(){return b("back")}return L}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",h]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:N}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:x?"red":"green",children:[x?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:x?"Unsuspend":"Suspend",icon:x?"unlock":"lock",onClick:function(){function L(){return b("toggle_suspension")}return L}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),B.map(function(L){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:L.is_deposit?"green":"red",children:["$",L.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.target_name})]},L)})]})})})]})},u=function(f,l){var C=(0,t.useBackend)(l),b=C.act,v=C.data,h=(0,t.useLocalState)(l,"accName",""),g=h[0],N=h[1],x=(0,t.useLocalState)(l,"accDeposit",""),B=x[0],L=x[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return b("back")}return T}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function T(E,w){return N(w)}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function T(E,w){return L(w)}return T}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function T(){return b("finalise_create_account",{holder_name:g,starting_funds:B})}return T}()})]})}},79571:function(I,r,n){"use strict";r.__esModule=!0,r.AgentCardSLSlots=r.AgentCardInfo=r.AgentCardAppearances=r.AgentCard=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(98595),S=r.AgentCard=function(){function p(i,c){var s=(0,t.useLocalState)(c,"tabIndex",0),u=s[0],d=s[1],f=function(){function l(C){switch(C){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,V);default:return(0,e.createComponentVNode)(2,y)}}return l}();return(0,e.createComponentVNode)(2,m.Window,{width:500,height:475,theme:"syndicate",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:u===0,onClick:function(){function l(){return d(0)}return l}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:u===1,onClick:function(){function l(){return d(1)}return l}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"id-card"})," Appearance"]},"Appearance"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:u===2,onClick:function(){function l(){return d(2)}return l}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"arrow-down"})," Save/Load Card Info"]},"Save/Load Card Info")]}),f(u)]})})})}return p}(),y=r.AgentCardInfo=function(){function p(i,c){var s=(0,t.useBackend)(c),u=s.act,d=s.data,f=d.registered_name,l=d.sex,C=d.age,b=d.assignment,v=d.associated_account_number,h=d.blood_type,g=d.dna_hash,N=d.fingerprint_hash,x=d.photo,B=d.ai_tracking;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Card Info",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Button,{content:f||"[UNSET]",onClick:function(){function L(){return u("change_name")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sex",children:(0,e.createComponentVNode)(2,o.Button,{iconRight:!1,content:l||"[UNSET]",onClick:function(){function L(){return u("change_sex")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Age",children:(0,e.createComponentVNode)(2,o.Button,{content:C||"[UNSET]",onClick:function(){function L(){return u("change_age")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,o.Button,{content:b||"[UNSET]",onClick:function(){function L(){return u("change_occupation")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Fingerprints",children:(0,e.createComponentVNode)(2,o.Button,{content:N||"[UNSET]",onClick:function(){function L(){return u("change_fingerprints")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Type",children:(0,e.createComponentVNode)(2,o.Button,{content:h||"[UNSET]",onClick:function(){function L(){return u("change_blood_type")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"DNA Hash",children:(0,e.createComponentVNode)(2,o.Button,{content:g||"[UNSET]",onClick:function(){function L(){return u("change_dna_hash")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Money Account",children:(0,e.createComponentVNode)(2,o.Button,{content:v||"[UNSET]",onClick:function(){function L(){return u("change_money_account")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo",children:(0,e.createComponentVNode)(2,o.Button,{content:x?"Update":"[UNSET]",onClick:function(){function L(){return u("change_photo")}return L}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Card Settings",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Card Info",children:(0,e.createComponentVNode)(2,o.Button,{content:"Delete Card Info",onClick:function(){function L(){return u("delete_info")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Access",children:(0,e.createComponentVNode)(2,o.Button,{content:"Reset Access",onClick:function(){function L(){return u("clear_access")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"AI Tracking",children:(0,e.createComponentVNode)(2,o.Button,{content:B?"Untrackable":"Trackable",onClick:function(){function L(){return u("change_ai_tracking")}return L}()})})]})})],4)}return p}(),k=r.AgentCardAppearances=function(){function p(i,c){var s=(0,t.useBackend)(c),u=s.act,d=s.data,f=d.appearances;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Card Appearance",children:f.map(function(l){return(0,e.createComponentVNode)(2,o.ImageButton,{tooltip:l,vertical:!0,asset:!0,style:{margin:"1px"},image:l,imageAsset:"id_card64x64",onclick:function(){function C(){return u("change_appearance_new",{new_appearance:l})}return C}()},l)})})}return p}(),V=r.AgentCardSLSlots=function(){function p(i,c){var s=(0,t.useBackend)(c),u=s.act,d=s.data,f=d.saved_info;return(0,e.createComponentVNode)(2,o.Section,{title:"Save/Load Manager",style:{"line-height":"25px"},children:(0,e.createComponentVNode)(2,o.LabeledList,{children:f.map(function(l){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:l.registered_name?l.registered_name+", "+l.assignment:"Slot "+l.id,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Clear",onClick:function(){function C(){return u("clear_slot",{slot:l.id})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Save",onClick:function(){function C(){return u("save_slot",{slot:l.id})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Load",disabled:!l.registered_name,onClick:function(){function C(){return u("load_slot",{slot:l.id})}return C}()})],4)},l.id)})})})}return p}()},56793:function(I,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},S=r.AiAirlock=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=m[c.power.main]||m[0],u=m[c.power.backup]||m[0],d=m[c.shock]||m[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:s.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function f(){return i("disrupt-main")}return f}()}),children:[c.power.main?"Online":"Offline"," ",!c.wires.main_power&&"[Wires have been cut!]"||c.power.main_timeleft>0&&"["+c.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:u.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function f(){return i("disrupt-backup")}return f}()}),children:[c.power.backup?"Online":"Offline"," ",!c.wires.backup_power&&"[Wires have been cut!]"||c.power.backup_timeleft>0&&"["+c.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:d.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(c.wires.shock&&c.shock!==2),content:"Restore",onClick:function(){function f(){return i("shock-restore")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function f(){return i("shock-temp")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function f(){return i("shock-perm")}return f}()})],4),children:[c.shock===2?"Safe":"Electrified"," ",!c.wires.shock&&"[Wires have been cut!]"||c.shock_timeleft>0&&"["+c.shock_timeleft+"s]"||c.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.id_scanner?"power-off":"times",content:c.id_scanner?"Enabled":"Disabled",selected:c.id_scanner,disabled:!c.wires.id_scanner,onClick:function(){function f(){return i("idscan-toggle")}return f}()}),children:!c.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:c.emergency?"power-off":"times",content:c.emergency?"Enabled":"Disabled",selected:c.emergency,onClick:function(){function f(){return i("emergency-toggle")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:c.locked?"lock":"unlock",content:c.locked?"Lowered":"Raised",selected:c.locked,disabled:!c.wires.bolts,onClick:function(){function f(){return i("bolt-toggle")}return f}()}),children:!c.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.lights?"power-off":"times",content:c.lights?"Enabled":"Disabled",selected:c.lights,disabled:!c.wires.lights,onClick:function(){function f(){return i("light-toggle")}return f}()}),children:!c.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.safe?"power-off":"times",content:c.safe?"Enabled":"Disabled",selected:c.safe,disabled:!c.wires.safe,onClick:function(){function f(){return i("safe-toggle")}return f}()}),children:!c.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.speed?"power-off":"times",content:c.speed?"Enabled":"Disabled",selected:c.speed,disabled:!c.wires.timing,onClick:function(){function f(){return i("speed-toggle")}return f}()}),children:!c.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c.opened?"sign-out-alt":"sign-in-alt",content:c.opened?"Open":"Closed",selected:c.opened,disabled:c.locked||c.welded,onClick:function(){function f(){return i("open-close")}return f}()}),children:!!(c.locked||c.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),c.locked?"bolted":"",c.locked&&c.welded?" and ":"",c.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return y}()},72475:function(I,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(195),S=r.AirAlarm=function(){function d(f,l){var C=(0,a.useBackend)(l),b=C.act,v=C.data,h=v.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:h?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,k),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,p)],4)]})})}return d}(),y=function(f){return f===0?"green":f===1?"orange":"red"},k=function(f,l){var C=(0,a.useBackend)(l),b=C.act,v=C.data,h=v.air,g=v.mode,N=v.atmos_alarm,x=v.locked,B=v.alarmActivated,L=v.rcon,T=v.target_temp,E;return h.danger.overall===0?N===0?E="Optimal":E="Caution: Atmos alert in area":h.danger.overall===1?E="Caution":E="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:y(h.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.pressure})," kPa",!x&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:g===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:g===3,icon:"exclamation-triangle",onClick:function(){function w(){return b("mode",{mode:g===3?1:3})}return w}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.oxygen/100,fractionDigits:"1",color:y(h.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.nitrogen/100,fractionDigits:"1",color:y(h.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.co2/100,fractionDigits:"1",color:y(h.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.plasma/100,fractionDigits:"1",color:y(h.danger.plasma)})}),h.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.n2o/100,fractionDigits:"1",color:y(h.danger.n2o)})}),h.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.other/100,fractionDigits:"1",color:y(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:y(h.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function w(){return b("temperature")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:h.thermostat_state?"On":"Off",selected:h.thermostat_state,icon:"power-off",onClick:function(){function w(){return b("thermostat_state")}return w}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:y(h.danger.overall),children:[E,!x&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:B?"Reset Alarm":"Activate Alarm",selected:B,onClick:function(){function w(){return b(B?"atmos_reset":"atmos_alarm")}return w}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:L===1,onClick:function(){function w(){return b("set_rcon",{rcon:1})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:L===2,onClick:function(){function w(){return b("set_rcon",{rcon:2})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:L===3,onClick:function(){function w(){return b("set_rcon",{rcon:3})}return w}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},V=function(f,l){var C=(0,a.useLocalState)(l,"tabIndex",0),b=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===0,onClick:function(){function h(){return v(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===1,onClick:function(){function h(){return v(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===2,onClick:function(){function h(){return v(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===3,onClick:function(){function h(){return v(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},p=function(f,l){var C=(0,a.useLocalState)(l,"tabIndex",0),b=C[0],v=C[1];switch(b){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,u);default:return"WE SHOULDN'T BE HERE!"}},i=function(f,l){var C=(0,a.useBackend)(l),b=C.act,v=C.data,h=v.vents;return h.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function N(){return b("command",{cmd:"power",val:g.power===1?0:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.direction==="release"?"Blowing":"Siphoning",icon:g.direction==="release"?"sign-out-alt":"sign-in-alt",onClick:function(){function N(){return b("command",{cmd:"direction",val:g.direction==="release"?0:1,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:g.checks===1,onClick:function(){function N(){return b("command",{cmd:"checks",val:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:g.checks===2,onClick:function(){function N(){return b("command",{cmd:"checks",val:2,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:g.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function N(){return b("command",{cmd:"set_external_pressure",id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function N(){return b("command",{cmd:"set_external_pressure",val:101.325,id_tag:g.id_tag})}return N}()})]})]})},g.name)})},c=function(f,l){var C=(0,a.useBackend)(l),b=C.act,v=C.data,h=v.scrubbers;return h.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function N(){return b("command",{cmd:"power",val:g.power===1?0:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.scrubbing?"Scrubbing":"Siphoning",icon:g.scrubbing?"filter":"sign-in-alt",onClick:function(){function N(){return b("command",{cmd:"scrubbing",val:g.scrubbing===0?1:0,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:g.widenet?"Extended":"Normal",selected:g.widenet,icon:"expand-arrows-alt",onClick:function(){function N(){return b("command",{cmd:"widenet",val:g.widenet===0?1:0,id_tag:g.id_tag})}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:g.filter_co2,onClick:function(){function N(){return b("command",{cmd:"co2_scrub",val:g.filter_co2===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:g.filter_toxins,onClick:function(){function N(){return b("command",{cmd:"tox_scrub",val:g.filter_toxins===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:g.filter_n2o,onClick:function(){function N(){return b("command",{cmd:"n2o_scrub",val:g.filter_n2o===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:g.filter_o2,onClick:function(){function N(){return b("command",{cmd:"o2_scrub",val:g.filter_o2===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:g.filter_n2,onClick:function(){function N(){return b("command",{cmd:"n2_scrub",val:g.filter_n2===0?1:0,id_tag:g.id_tag})}return N}()})]})]})},g.name)})},s=function(f,l){var C=(0,a.useBackend)(l),b=C.act,v=C.data,h=v.modes,g=v.presets,N=v.emagged,x=v.mode,B=v.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:h.map(function(L){return(!L.emagonly||L.emagonly&&!!N)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===x,onClick:function(){function T(){return b("mode",{mode:L.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:g.map(function(L){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===B,onClick:function(){function T(){return b("preset",{preset:L.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})]})],4)},u=function(f,l){var C=(0,a.useBackend)(l),b=C.act,v=C.data,h=v.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),h.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.name}),g.settings.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:N.selected===-1?"Off":N.selected,onClick:function(){function x(){return b("command",{cmd:"set_threshold",env:N.env,var:N.val})}return x}()})},N.val)})]},g.name)})]})})}},12333:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AirlockAccessController=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.exterior_status,s=i.interior_status,u=i.processing,d,f;return c==="open"?d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:u,onClick:function(){function l(){return p("force_ext")}return l}()}):d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:u,onClick:function(){function l(){return p("cycle_ext_door")}return l}()}),s==="open"?f=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:u,color:s==="open"?"red":u?"yellow":null,onClick:function(){function l(){return p("force_int")}return l}()}):f=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:u,onClick:function(){function l(){return p("cycle_int_door")}return l}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:c==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:s==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[d,f]})})]})})}return S}()},28736:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(49148),S=1,y=2,k=4,V=8,p=r.AirlockElectronics=function(){function s(u,d){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})})}return s}(),i=function(u,d){var f=(0,a.useBackend)(d),l=f.act,C=f.data,b=C.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:b&k?"selected":null,onClick:function(){function v(){return l("unrestricted_access",{unres_dir:k})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:b&y?"selected":null,onClick:function(){function v(){return l("unrestricted_access",{unres_dir:y})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:b&V?"selected":null,onClick:function(){function v(){return l("unrestricted_access",{unres_dir:V})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:b&S?"selected":null,onClick:function(){function v(){return l("unrestricted_access",{unres_dir:S})}return v}()})})]})]})})},c=function(u,d){var f=(0,a.useBackend)(d),l=f.act,C=f.data,b=C.selected_accesses,v=C.one_access,h=C.regions;return(0,e.createComponentVNode)(2,m.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:v,content:"One",onClick:function(){function g(){return l("set_one_access",{access:"one"})}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!v,content:"All",onClick:function(){function g(){return l("set_one_access",{access:"all"})}return g}()})],4),accesses:h,selectedList:b,accessMod:function(){function g(N){return l("set",{access:N})}return g}(),grantAll:function(){function g(){return l("grant_all")}return g}(),denyAll:function(){function g(){return l("clear_all")}return g}(),grantDep:function(){function g(N){return l("grant_region",{region:N})}return g}(),denyDep:function(){function g(N){return l("deny_region",{region:N})}return g}()})}},47365:function(I,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(92986),m=n(36036),S=n(98595),y=-1,k=1,V=r.AlertModal=function(){function c(s,u){var d=(0,t.useBackend)(u),f=d.act,l=d.data,C=l.autofocus,b=l.buttons,v=b===void 0?[]:b,h=l.large_buttons,g=l.message,N=g===void 0?"":g,x=l.timeout,B=l.title,L=(0,t.useLocalState)(u,"selected",0),T=L[0],E=L[1],w=110+(N.length>30?Math.ceil(N.length/4):0)+(N.length&&h?5:0),A=325+(v.length>2?100:0),O=function(){function M(P){T===0&&P===y?E(v.length-1):T===v.length-1&&P===k?E(0):E(T+P)}return M}();return(0,e.createComponentVNode)(2,S.Window,{title:B,height:w,width:A,children:[!!x&&(0,e.createComponentVNode)(2,a.Loader,{value:x}),(0,e.createComponentVNode)(2,S.Window.Content,{onKeyDown:function(){function M(P){var R=window.event?P.which:P.keyCode;R===o.KEY_SPACE||R===o.KEY_ENTER?f("choose",{choice:v[T]}):R===o.KEY_ESCAPE?f("cancel"):R===o.KEY_LEFT?(P.preventDefault(),O(y)):(R===o.KEY_TAB||R===o.KEY_RIGHT)&&(P.preventDefault(),O(k))}return M}(),children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,m.Box,{color:"label",overflow:"hidden",children:N})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:[!!C&&(0,e.createComponentVNode)(2,m.Autofocus),(0,e.createComponentVNode)(2,p,{selected:T})]})]})})})]})}return c}(),p=function(s,u){var d=(0,t.useBackend)(u),f=d.data,l=f.buttons,C=l===void 0?[]:l,b=f.large_buttons,v=f.swapped_buttons,h=s.selected;return(0,e.createComponentVNode)(2,m.Flex,{fill:!0,align:"center",direction:v?"row":"row-reverse",justify:"space-around",wrap:!0,children:C==null?void 0:C.map(function(g,N){return b&&C.length<3?(0,e.createComponentVNode)(2,m.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{button:g,id:N.toString(),selected:h===N})},N):(0,e.createComponentVNode)(2,m.Flex.Item,{grow:b?1:0,children:(0,e.createComponentVNode)(2,i,{button:g,id:N.toString(),selected:h===N})},N)})})},i=function(s,u){var d=(0,t.useBackend)(u),f=d.act,l=d.data,C=l.large_buttons,b=s.button,v=s.selected,h=b.length>7?"100%":7;return(0,e.createComponentVNode)(2,m.Button,{mx:C?1:0,pt:C?.33:0,content:b,fluid:!!C,onClick:function(){function g(){return f("choose",{choice:b})}return g}(),selected:v,textAlign:"center",height:!!C&&2,width:!C&&h})}},71824:function(I,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AppearanceChanger=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.change_race,u=c.species,d=c.specimen,f=c.change_gender,l=c.gender,C=c.has_gender,b=c.change_eye_color,v=c.change_skin_tone,h=c.change_skin_color,g=c.change_head_accessory_color,N=c.change_hair_color,x=c.change_secondary_hair_color,B=c.change_facial_hair_color,L=c.change_secondary_facial_hair_color,T=c.change_head_marking_color,E=c.change_body_marking_color,w=c.change_tail_marking_color,A=c.change_head_accessory,O=c.head_accessory_styles,M=c.head_accessory_style,P=c.change_hair,R=c.hair_styles,F=c.hair_style,_=c.change_hair_gradient,U=c.change_facial_hair,W=c.facial_hair_styles,$=c.facial_hair_style,Y=c.change_head_markings,ne=c.head_marking_styles,G=c.head_marking_style,le=c.change_body_markings,de=c.body_marking_styles,oe=c.body_marking_style,re=c.change_tail_markings,q=c.tail_marking_styles,ae=c.tail_marking_style,J=c.change_body_accessory,X=c.body_accessory_styles,Q=c.body_accessory_style,Z=c.change_alt_head,te=c.alt_head_styles,fe=c.alt_head_style,ye=!1;return(b||v||h||g||N||x||B||L||T||E||w)&&(ye=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:u.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.specimen,selected:pe.specimen===d,onClick:function(){function Le(){return i("race",{race:pe.specimen})}return Le}()},pe.specimen)})}),!!f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:l==="male",onClick:function(){function pe(){return i("gender",{gender:"male"})}return pe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:l==="female",onClick:function(){function pe(){return i("gender",{gender:"female"})}return pe}()}),!C&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:l==="plural",onClick:function(){function pe(){return i("gender",{gender:"plural"})}return pe}()})]}),!!ye&&(0,e.createComponentVNode)(2,S),!!A&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:O.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.headaccessorystyle,selected:pe.headaccessorystyle===M,onClick:function(){function Le(){return i("head_accessory",{head_accessory:pe.headaccessorystyle})}return Le}()},pe.headaccessorystyle)})}),!!P&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:R.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.hairstyle,selected:pe.hairstyle===F,onClick:function(){function Le(){return i("hair",{hair:pe.hairstyle})}return Le}()},pe.hairstyle)})}),!!_&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function pe(){return i("hair_gradient")}return pe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function pe(){return i("hair_gradient_offset")}return pe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function pe(){return i("hair_gradient_colour")}return pe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function pe(){return i("hair_gradient_alpha")}return pe}()})]}),!!U&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:W.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.facialhairstyle,selected:pe.facialhairstyle===$,onClick:function(){function Le(){return i("facial_hair",{facial_hair:pe.facialhairstyle})}return Le}()},pe.facialhairstyle)})}),!!Y&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:ne.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.headmarkingstyle,selected:pe.headmarkingstyle===G,onClick:function(){function Le(){return i("head_marking",{head_marking:pe.headmarkingstyle})}return Le}()},pe.headmarkingstyle)})}),!!le&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:de.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.bodymarkingstyle,selected:pe.bodymarkingstyle===oe,onClick:function(){function Le(){return i("body_marking",{body_marking:pe.bodymarkingstyle})}return Le}()},pe.bodymarkingstyle)})}),!!re&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:q.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.tailmarkingstyle,selected:pe.tailmarkingstyle===ae,onClick:function(){function Le(){return i("tail_marking",{tail_marking:pe.tailmarkingstyle})}return Le}()},pe.tailmarkingstyle)})}),!!J&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:X.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.bodyaccessorystyle,selected:pe.bodyaccessorystyle===Q,onClick:function(){function Le(){return i("body_accessory",{body_accessory:pe.bodyaccessorystyle})}return Le}()},pe.bodyaccessorystyle)})}),!!Z&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:te.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.altheadstyle,selected:pe.altheadstyle===fe,onClick:function(){function Le(){return i("alt_head",{alt_head:pe.altheadstyle})}return Le}()},pe.altheadstyle)})})]})})})}return y}(),S=function(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:s.map(function(u){return!!c[u.key]&&(0,e.createComponentVNode)(2,t.Button,{content:u.text,onClick:function(){function d(){return i(u.action)}return d}()},u.key)})})}},72285:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AtmosAlertConsole=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.priority||[],s=i.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[c.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),c.map(function(u){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:u,color:"bad",onClick:function(){function d(){return p("clear",{zone:u})}return d}()}),2,null,u)}),s.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),s.map(function(u){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:u,color:"average",onClick:function(){function d(){return p("clear",{zone:u})}return d}()}),2,null,u)})],0)})})})}return S}()},65805:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(36352),m=n(98595),S=function(c){if(c===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(c===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(c===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},y=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},k=r.AtmosControl=function(){function i(c,s){var u=(0,a.useBackend)(s),d=u.act,f=u.data,l=(0,a.useLocalState)(s,"tabIndex",0),C=l[0],b=l[1],v=function(){function h(g){switch(g){case 0:return(0,e.createComponentVNode)(2,V);case 1:return(0,e.createComponentVNode)(2,p);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,m.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:C===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===0,onClick:function(){function h(){return b(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===1,onClick:function(){function h(){return b(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),v(C)]})})})}return i}(),V=function(c,s){var u=(0,a.useBackend)(s),d=u.act,f=u.data,l=f.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),l.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:C.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:S(C.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function b(){return d("open_alarm",{aref:C.ref})}return b}()})})]},C.name)})]})})},p=function(c,s){var u=(0,a.useBackend)(s),d=u.act,f=u.data,l=f.alarms,C=f.stationLevelNum,b=f.stationLevelName,v=(0,a.useLocalState)(s,"zoom",1),h=v[0],g=v[1],N=(0,a.useLocalState)(s,"z_current",C[0]),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function L(T){return g(T)}return L}(),zLevels:C,zNames:b,z_current:x,setZCurrent:B,children:l.map(function(L){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:L.x,y:L.y,z:L.z,z_current:x,zoom:h,icon:"circle",tooltip:L.name,color:y(L.danger),onClick:function(){function T(){return d("open_alarm",{aref:L.ref})}return T}()},L.ref)})})})}},87816:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AtmosFilter=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.on,s=i.pressure,u=i.max_pressure,d=i.filter_type,f=i.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function l(){return p("power")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:s===0,width:2.2,onClick:function(){function l(){return p("min_pressure")}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:u,value:s,onDrag:function(){function l(C,b){return p("custom_pressure",{pressure:b})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:s===u,width:2.2,onClick:function(){function l(){return p("max_pressure")}return l}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:f.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{selected:l.gas_type===d,content:l.label,onClick:function(){function C(){return p("set_filter",{filter:l.gas_type})}return C}()},l.label)})})]})})})})}return S}()},52977:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AtmosMixer=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.on,u=c.pressure,d=c.max_pressure,f=c.node1_concentration,l=c.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:s?"On":"Off",color:s?null:"red",selected:s,onClick:function(){function C(){return i("power")}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:u===0,width:2.2,onClick:function(){function C(){return i("min_pressure")}return C}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:u,onDrag:function(){function C(b,v){return i("custom_pressure",{pressure:v})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:u===d,width:2.2,onClick:function(){function C(){return i("max_pressure")}return C}()})]}),(0,e.createComponentVNode)(2,S,{node_name:"Node 1",node_ref:f}),(0,e.createComponentVNode)(2,S,{node_name:"Node 2",node_ref:l})]})})})})}return y}(),S=function(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=k.node_name,u=k.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:u===0,onClick:function(){function d(){return i("set_node",{node_name:s,concentration:(u-10)/100})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:u,onChange:function(){function d(f,l){return i("set_node",{node_name:s,concentration:l/100})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:u===100,onClick:function(){function d(){return i("set_node",{node_name:s,concentration:(u+10)/100})}return d}()})]})}},11748:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AtmosPump=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.on,s=i.rate,u=i.max_rate,d=i.gas_unit,f=i.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function l(){return p("power")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:s===0,width:2.2,onClick:function(){function l(){return p("min_rate")}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:d,width:6.1,lineHeight:1.5,step:f,minValue:0,maxValue:u,value:s,onDrag:function(){function l(C,b){return p("custom_rate",{rate:b})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:s===u,width:2.2,onClick:function(){function l(){return p("max_rate")}return l}()})]})]})})})})}return S}()},76511:function(I,r,n){"use strict";r.__esModule=!0,r.AutoDoc=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(39473),S=r.AutoDoc=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.HasTray,u=c.TguiIcons,d=c.occupant,f=c.isHealing,l=c.fixtimer,C=c.healtimer,b=(0,a.useLocalState)(V,"ChoosePart","chest"),v=b[0],h=b[1];return(0,e.createComponentVNode)(2,o.Window,{theme:"ntOS95",resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Flex,{width:"100%",children:[(0,e.createComponentVNode)(2,m.FlexItem,{basis:"30%",children:[(0,e.createVNode)(1,"img",null,null,1,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+u.human,style:{position:"absolute","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"img",null,null,1,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+u[v],style:{position:"absolute","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})]}),(0,e.createComponentVNode)(2,m.FlexItem,{basis:"70%",children:(0,e.createComponentVNode)(2,t.Section,{title:"Info",buttons:(0,e.createFragment)([Object.keys(u).map(function(g){return g!=="human"&&(0,e.createComponentVNode)(2,t.Button,{content:g,selected:g===v,onClick:function(){function N(){return h(g)}return N}(),z:!0},g)}),(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:s?"Eject Tray":"Reject Tray",locked:f,onClick:function(){function g(){return i("ChangeTrayState")}return g}()})],0),children:(0,e.createComponentVNode)(2,t.Box,{children:[!!(d[v]&&d[v].extOrgan)&&d[v].extOrgan.map(function(g){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,g.name,0),(0,e.createVNode)(1,"br"),g.open?"opened":"",g.broken?"broken":"",!!g.broken&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Fix",style:{"margin-left":"30px"},locked:f,onClick:function(){function N(){return i("FixOrgan",{organ:g.name,type:"fracture"})}return N}()}),(0,e.createVNode)(1,"br")],4),g.internalBleeding?"bleeding":"",!!g.internalBleeding&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Fix",style:{"margin-left":"30px"},locked:f,onClick:function(){function N(){return i("FixOrgan",{organ:g.name,type:"bleeding"})}return N}()}),(0,e.createVNode)(1,"br")],4),(0,e.createTextVNode)("Internals:"),(0,e.createComponentVNode)(2,t.Button,{content:"Complete",style:{"margin-left":"10px"},locked:f,onClick:function(){function N(){return i("FixOrgan",{organ:g.name,type:"completeInternal"})}return N}()}),(0,e.createVNode)(1,"br"),g.dead?"dead":"",!!g.dead&&(0,e.createVNode)(1,"br"),g.germ_level?"Germ level is "+g.germ_level:"",!!g.germ_level&&(0,e.createVNode)(1,"br"),g.totalLoss?"Total damage is "+g.totalLoss:"",(0,e.createVNode)(1,"br")],0,g.name)}),!!(d[v]&&d[v].intOrgan)&&d[v].intOrgan.map(function(g){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,g.name,0),(0,e.createComponentVNode)(2,t.Button,{content:"Remove",style:{"margin-left":"1.5rem"},locked:f,onClick:function(){function N(){return i("FixOrgan",{organ:g.name,type:"remove"})}return N}()}),(0,e.createVNode)(1,"br"),g.dead?"dead":"",!!g.dead&&(0,e.createVNode)(1,"br"),g.germ_level?"Germ level is "+g.germ_level:"",!!g.germ_level&&(0,e.createVNode)(1,"br"),g.totalLoss?"Total damage is "+g.damage:"",!!g.totalLoss&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Heal",style:{"margin-left":"30px"},locked:f,onClick:function(){function N(){return i("FixOrgan",{organ:g.name,type:"damage"})}return N}()}),(0,e.createVNode)(1,"br")],4)],0,g.name)}),!!d.TotalBruteBurn&&(0,e.createFragment)([(0,e.createTextVNode)("Total external damage is "),d.TotalBruteBurn,(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:"Start Healing",onClick:function(){function g(){return i("HealBruteBurn")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:"Reattach externals",onClick:function(){function g(){return i("CompleteExternal")}return g}()})],0),(0,e.createVNode)(1,"br"),!!l&&(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Fixing organ: "),l],0),!!C&&(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Healing external damage: "),C],0)]})})})]})})})}return y}()},59179:function(I,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),m=n(36036),S=n(98595),y=n(25328),k=function(i,c,s,u){return i.requirements===null?!0:!(i.requirements.metal*u>c||i.requirements.glass*u>s)},V=r.Autolathe=function(){function p(i,c){var s=(0,o.useBackend)(c),u=s.act,d=s.data,f=d.total_amount,l=d.max_amount,C=d.metal_amount,b=d.glass_amount,v=d.busyname,h=d.busyamt,g=d.showhacked,N=d.buildQueue,x=d.buildQueueLen,B=d.recipes,L=d.categories,T=(0,o.useSharedState)(c,"category",0),E=T[0],w=T[1];E===0&&(E="Tools");var A=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),O=b.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=f.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=(0,o.useSharedState)(c,"search_text",""),R=P[0],F=P[1],_=(0,y.createSearch)(R,function(Y){return Y.name}),U="";x>0&&(U=N.map(function(Y,ne){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"times",color:"transparent",content:N[ne][0],onClick:function(){function G(){return u("remove_from_queue",{remove_from_queue:N.indexOf(Y)+1})}return G}()},Y)},ne)}));var W=(0,a.flow)([(0,t.filter)(function(Y){return(Y.category.indexOf(E)>-1||R)&&(d.showhacked||!Y.hacked)}),R&&(0,t.filter)(_),(0,t.sortBy)(function(Y){return Y.name.toLowerCase()})])(B),$="Build";return R?$="Results for: '"+R+"':":E&&($="Build ("+E+")"),(0,e.createComponentVNode)(2,S.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:$,buttons:(0,e.createComponentVNode)(2,m.Dropdown,{width:"150px",options:L,selected:E,onSelected:function(){function Y(ne){return w(ne)}return Y}()}),children:[(0,e.createComponentVNode)(2,m.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function Y(ne,G){return F(G)}return Y}(),mb:1}),W.map(function(Y){return(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,m.DmIcon,{icon:Y.icon,icon_state:Y.icon_state,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:d.busyname===Y.name&&d.busyamt===1,disabled:!k(Y,d.metal_amount,d.glass_amount,1),onClick:function(){function ne(){return u("make",{make:Y.uid,multiplier:1})}return ne}(),children:(0,y.toTitleCase)(Y.name)}),Y.max_multiplier>=10&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:d.busyname===Y.name&&d.busyamt===10,disabled:!k(Y,d.metal_amount,d.glass_amount,10),onClick:function(){function ne(){return u("make",{make:Y.uid,multiplier:10})}return ne}(),children:"10x"}),Y.max_multiplier>=25&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:d.busyname===Y.name&&d.busyamt===25,disabled:!k(Y,d.metal_amount,d.glass_amount,25),onClick:function(){function ne(){return u("make",{make:Y.uid,multiplier:25})}return ne}(),children:"25x"}),Y.max_multiplier>25&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:d.busyname===Y.name&&d.busyamt===Y.max_multiplier,disabled:!k(Y,d.metal_amount,d.glass_amount,Y.max_multiplier),onClick:function(){function ne(){return u("make",{make:Y.uid,multiplier:Y.max_multiplier})}return ne}(),children:[Y.max_multiplier,"x"]}),Y.requirements&&Object.keys(Y.requirements).map(function(ne){return(0,y.toTitleCase)(ne)+": "+Y.requirements[ne]}).join(", ")||(0,e.createComponentVNode)(2,m.Box,{children:"No resources required."})]},Y.ref)})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,m.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Metal",children:A}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Glass",children:O}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Total",children:M}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Storage",children:[d.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,m.Section,{title:"Building",children:(0,e.createComponentVNode)(2,m.Box,{color:v?"green":"",children:v||"Nothing"})}),(0,e.createComponentVNode)(2,m.Section,{title:"Build Queue",height:23.7,children:[U,(0,e.createComponentVNode)(2,m.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function Y(){return u("clear_queue")}return Y}()})]})]})]})})})}return p}()},64273:function(I,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(62411),S=r.Biogenerator=function(){function p(i,c){var s=(0,a.useBackend)(c),u=s.data,d=s.config,f=u.container,l=u.processing,C=d.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Operating,{operating:l,name:C}),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,V)]})})})}return p}(),y=function(i,c){var s=(0,a.useBackend)(c),u=s.act,d=s.data,f=d.biomass,l=d.container,C=d.container_curr_reagents,b=d.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:f}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),l?(0,e.createComponentVNode)(2,t.ProgressBar,{value:C,maxValue:b,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:C+" / "+b+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},k=function(i,c){var s=(0,a.useBackend)(c),u=s.act,d=s.data,f=d.has_plants,l=d.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!f,tooltip:f?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function C(){return u("activate")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!l,tooltip:l?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function C(){return u("detach_container")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!f,tooltip:f?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function C(){return u("eject_plants")}return C}()})})]})})},V=function(i,c){var s=(0,a.useBackend)(c),u=s.act,d=s.data,f=d.biomass,l=d.product_list,C=d.container,b=(0,a.useSharedState)(c,"vendAmount",1),v=b[0],h=b[1],g=Object.entries(l).map(function(N,x){var B=Object.entries(N[1]).map(function(L){return L[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:N[0],open:!0,children:B.map(function(L){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:L.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[L.cost*v,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:L.needs_container&&!C?(0,e.createComponentVNode)(2,t.Button,{content:"No container",disabled:!0,icon:"flask",tooltip:"\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043B\u044E\u0431\u043E\u0439 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440 \u0434\u043B\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u044D\u0442\u043E\u0439 \u043E\u043F\u0446\u0438\u0438"}):(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:f0?Math.floor(E/u):0,M=s?"@?%%!\u2116@"+u:u,P=E>=u,R=d-d%5+(d%5>0?5:0);return(0,e.createComponentVNode)(2,t.Section,{title:"\u0418\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0435 \u0420\u0430\u0437\u043B\u043E\u043C\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{color:"silver",bold:!0,children:B}),(0,e.createComponentVNode)(2,t.ProgressBar,{color:A===0?"bad":A<100?"average":"good",value:T,maxValue:L,mt:1,mb:2,children:[A<=100?A:100," %"]}),(0,e.createComponentVNode)(2,t.Box,{children:["\u0414\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0437\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F: ",(0,e.createComponentVNode)(2,t.Box,{color:E?P?"good":"average":"bad",as:"span",children:Math.floor(E)}),(0,e.createComponentVNode)(2,t.Button,{icon:"atom",tooltip:"\u0414\u043B\u044F \u0433\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u0438 \u043E\u0434\u043D\u043E\u0433\u043E \u0437\u043E\u043D\u0434\u0438\u0440\u0443\u044E\u0449\u0435\u0433\u043E \u0438\u043C\u043F\u0443\u043B\u044C\u0441\u0430 \u043D\u0443\u0436\u043D\u043E \u0441\u043E\u0431\u0440\u0430\u0442\u044C "+M+" \u0434\u0430\u043D\u043D\u044B\u0445.",content:d>0?"\u041F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0430 "+R+" \u0441\u0435\u043A\u0443\u043D\u0434":"\u0417\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u0442\u044C ("+O+")",disabled:!P||d>0,onClick:function(){function F(){return i("probe",{rift_id:x})}return F}(),mx:2}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:w?"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D":"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0439",disabled:w||A<100,onClick:function(){function F(){return i("reward",{rift_id:x})}return F}(),mt:1.4})]})]})}return g}(),v=function(){function g(N){var x=N.servName,B=N.servData;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:x,children:B.length?B.map(function(L,T){return(0,e.createComponentVNode)(2,t.Box,{children:[L.riftName," \u2014 ",Math.floor(L.probePoints)," ","\u0434\u0430\u043D\u043D\u044B\u0445."]},T)}):(0,e.createComponentVNode)(2,t.Box,{children:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445"})})}return g}(),h=function(){function g(N){var x=N.scannerId,B=N.scannerName,L=N.scanStatus,T=N.canSwitch,E=N.switching,w=m[L],A=function(){function M(){if(w==="OFF")return[" ","silver"];if(w==="NO_RIFTS")return["\u041D\u0435\u0442 \u0440\u0430\u0437\u043B\u043E\u043C\u043E\u0432","silver"];if(w==="SOME_RIFTS")return["\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442","good"];if(w==="DANGER")return["\u041E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C! \u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0441\u043A\u0430\u043D\u0435\u0440!","bad"]}return M}(),O=A();return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B,py:0,children:[E?(0,e.createComponentVNode)(2,t.Icon,{name:"circle-notch",color:"silver",spin:!0,ml:1.85,mr:1.79,my:.84}):T?(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",color:w==="OFF"?"bad":"good",onClick:function(){function M(){return i("toggle_scanner",{scanner_id:x})}return M}(),ml:1,mr:1}):(0,e.createComponentVNode)(2,t.Icon,{name:"power-off",color:w==="OFF"?"bad":"good",ml:1.85,mr:1.79,my:.84}),w!=="OFF"&&(0,e.createComponentVNode)(2,t.Box,{as:"span",color:O[1],children:O[0]})]})}return g}();return(0,e.createComponentVNode)(2,o.Window,{width:570,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[f&&f.map(function(g){return b(g)}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043A\u0430\u043D\u0435\u0440\u044B \u0432 \u0441\u0435\u0442\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:C&&C.map(function(g){return h(g)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0435\u0440\u0432\u0435\u0440\u044B \u0432 \u0441\u0435\u0442\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:l&&l.map(function(g){return v(g)})})})]})})}return y}()},27629:function(I,r,n){"use strict";r.__esModule=!0,r.BluespaceTap=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(49968),S=r.BluespaceTap=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.product||[],u=c.desiredLevel,d=c.inputLevel,f=c.points,l=c.totalPoints,C=c.powerUse,b=c.availablePower,v=c.maxLevel,h=c.emagged,g=c.safeLevels,N=c.nextLevelPower,x=u>d&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),d>g&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:u===0,tooltip:"Set to 0",onClick:function(){function B(){return i("set",{set_level:0})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:u===0,onClick:function(){function B(){return i("set",{set_level:d})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:u===0,tooltip:"Decrease one step",onClick:function(){function B(){return i("decrease")}return B}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:u,fillValue:d,minValue:0,color:x,maxValue:v,stepPixelSize:20,step:1,onChange:function(){function B(L,T){return i("set",{set_level:T})}return B}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:u===v,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function B(){return i("increase")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:u===v,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function B(){return i("set",{set_level:v})}return B}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,m.formatPower)(C)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,m.formatPower)(N)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,m.formatPower)(b)})]})})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:f}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:l})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:s.map(function(B){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:B.price>=f,onClick:function(){function L(){return i("vend",{target:B.key})}return L}(),content:B.price})},B.key)})})})})]})})]})})})}return y}()},33758:function(I,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(89005),a=n(44879),t=n(25328),o=n(72253),m=n(36036),S=n(98595),y=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["hasBorer","bad","Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."],["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],V=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radioactive","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],p={average:[.25,.5],bad:[.5,1/0]},i=function(x,B){for(var L=[],T=0;T0?x.filter(function(B){return!!B}).reduce(function(B,L){return(0,e.createFragment)([B,(0,e.createComponentVNode)(2,m.Box,{children:L},L)],0)},null):null},s=function(x){if(x>100){if(x<300)return"mild infection";if(x<400)return"mild infection+";if(x<500)return"mild infection++";if(x<700)return"acute infection";if(x<800)return"acute infection+";if(x<900)return"acute infection++";if(x>=900)return"septic"}return""},u=r.BodyScanner=function(){function N(x,B){var L=(0,o.useBackend)(B),T=L.data,E=T.occupied,w=T.occupant,A=w===void 0?{}:w,O=E?(0,e.createComponentVNode)(2,d,{occupant:A}):(0,e.createComponentVNode)(2,g);return(0,e.createComponentVNode)(2,S.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:O})})}return N}(),d=function(x){var B=x.occupant;return(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,f,{occupant:B}),(0,e.createComponentVNode)(2,l,{occupant:B}),(0,e.createComponentVNode)(2,C,{occupant:B}),(0,e.createComponentVNode)(2,v,{organs:B.extOrgan}),(0,e.createComponentVNode)(2,h,{organs:B.intOrgan})]})},f=function(x,B){var L=(0,o.useBackend)(B),T=L.act,E=L.data,w=E.occupant;return(0,e.createComponentVNode)(2,m.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Button,{icon:"print",onClick:function(){function A(){return T("print_p")}return A}(),children:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u043E\u0442\u0447\u0435\u0442"}),(0,e.createComponentVNode)(2,m.Button,{icon:"print",onClick:function(){function A(){return T("insurance")}return A}(),children:"\u0421\u043F\u0438\u0441\u0430\u0442\u044C \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0443"}),(0,e.createComponentVNode)(2,m.Button,{icon:"user-slash",onClick:function(){function A(){return T("eject_id")}return A}(),children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043A\u0430\u0440\u0442\u0443"}),(0,e.createComponentVNode)(2,m.Button,{icon:"user-slash",onClick:function(){function A(){return T("ejectify")}return A}(),children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430"})],4),children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Name",children:w.name}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:w.maxHealth,value:w.health/w.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Status",color:y[w.stat][0],children:y[w.stat][1]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,m.AnimatedNumber,{value:(0,a.round)(w.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,m.AnimatedNumber,{value:(0,a.round)(w.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Implants",children:w.implant_len?(0,e.createComponentVNode)(2,m.Box,{children:w.implant.map(function(A){return A.name}).join(", ")}):(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"None"})})]})})},l=function(x){var B=x.occupant;return B.hasBorer||B.blind||B.colourblind||B.nearsighted||B.hasVirus?(0,e.createComponentVNode)(2,m.Section,{title:"Abnormalities",children:k.map(function(L,T){if(B[L[0]])return(0,e.createComponentVNode)(2,m.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,m.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No abnormalities found."})})},C=function(x){var B=x.occupant;return(0,e.createComponentVNode)(2,m.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,m.Table,{children:i(V,function(L,T,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:!!T&&T[0]+":"})]}),(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:(0,e.createComponentVNode)(2,b,{value:B[L[1]],marginBottom:E100)&&"average"||!!B.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(B.name)}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,m.ProgressBar,{m:-.5,min:"0",max:B.maxHealth,mt:L>0&&"0.5rem",value:B.totalLoss/B.maxHealth,ranges:p,children:(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(B.totalLoss)]})}),!!B.bruteLoss&&(0,e.createComponentVNode)(2,m.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,m.Icon,{name:"bone",mr:.5}),(0,a.round)(B.bruteLoss)]})}),!!B.fireLoss&&(0,e.createComponentVNode)(2,m.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"fire",mr:.5}),(0,a.round)(B.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,m.Box,{color:"average",inline:!0,children:c([!!B.internalBleeding&&"Internal bleeding",!!B.burnWound&&"Critical tissue burns",!!B.lungRuptured&&"Ruptured lung",!!B.status.broken&&B.status.broken,s(B.germ_level),!!B.open&&"Open incision"])}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,children:[c([!!B.status.splinted&&(0,e.createComponentVNode)(2,m.Box,{color:"good",children:"Splinted"}),!!B.status.robotic&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Robotic"}),!!B.status.dead&&(0,e.createComponentVNode)(2,m.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(B.shrapnel.map(function(T){return T.known?T.name:"Unknown object"}))]})]})]},L)})]})})},h=function(x){return x.organs.length===0?(0,e.createComponentVNode)(2,m.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,m.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,m.Table,{children:[(0,e.createComponentVNode)(2,m.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",children:"Injuries"})]}),x.organs.map(function(B,L){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{color:!!B.dead&&"bad"||B.germ_level>100&&"average"||B.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(B.name)}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:B.maxHealth,value:B.damage/B.maxHealth,mt:L>0&&"0.5rem",ranges:p,children:(0,a.round)(B.damage)})}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,m.Box,{color:"average",inline:!0,children:c([s(B.germ_level)])}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,children:c([B.robotic===1&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Robotic"}),B.robotic===2&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Assisted"}),!!B.dead&&(0,e.createComponentVNode)(2,m.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},g=function(){return(0,e.createComponentVNode)(2,m.Section,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},42570:function(I,r,n){"use strict";r.__esModule=!0,r.BorgPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.BorgPanel=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.borg||{},s=i.cell||{},u=s.charge/s.maxcharge,d=i.channels||[],f=i.modules||[],l=i.upgrades||[],C=i.ais||[],b=i.laws||[];return(0,e.createComponentVNode)(2,o.Window,{title:"Borg Panel",width:700,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:c.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function v(){return p("rename")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:c.emagged?"check-square-o":"square-o",content:"Emagged",selected:c.emagged,onClick:function(){function v(){return p("toggle_emagged")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:c.lockdown?"check-square-o":"square-o",content:"Locked Down",selected:c.lockdown,onClick:function(){function v(){return p("toggle_lockdown")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:c.scrambledcodes?"check-square-o":"square-o",content:"Scrambled Codes",selected:c.scrambledcodes,onClick:function(){function v(){return p("toggle_scrambledcodes")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset Module",onClick:function(){function v(){return p("reset_module")}return v}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge",children:[s.missing?(0,e.createVNode)(1,"span","color-bad","No cell installed",16):(0,e.createComponentVNode)(2,t.ProgressBar,{value:u,children:s.charge+" / "+s.maxcharge}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Set",onClick:function(){function v(){return p("set_charge")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Change",onClick:function(){function v(){return p("change_cell")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",content:"Remove",color:"bad",onClick:function(){function v(){return p("remove_cell")}return v}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radio Channels",children:d.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:v.installed?"check-square-o":"square-o",content:v.name,selected:v.installed,onClick:function(){function h(){return p("toggle_radio",{channel:v.name})}return h}()},v.name)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Model",children:f.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:c.active_module===v.name?"check-square-o":"square-o",content:v.name+" module",selected:c.active_module===v.name,onClick:function(){function h(){return p("setmodule",{module:v.name})}return h}()},v.type)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upgrades",children:l.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:v.installed?"check-square-o":"square-o",content:v.name,selected:v.installed,onClick:function(){function h(){return p("toggle_upgrade",{upgrade:v.type})}return h}()},v.type)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:C.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:v.connected?"check-square-o":"square-o",content:v.name,selected:v.connected,onClick:function(){function h(){return p("slavetoai",{slavetoai:v.ref})}return h}()},v.ref)})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Laws",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Law Manager",selected:c.lawmanager,onClick:function(){function v(){return p("lawmanager")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:c.lawupdate?"check-square-o":"square-o",content:"Lawsync",selected:c.lawupdate,onClick:function(){function v(){return p("toggle_lawupdate")}return v}()})],4),children:b.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:v},v)})})]})})}return S}()},20464:function(I,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.BotClean=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.locked,s=i.noaccess,u=i.maintpanel,d=i.on,f=i.autopatrol,l=i.canhack,C=i.emagged,b=i.remote_disabled,v=i.painame,h=i.cleanblood;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.NoticeBox,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0432\u043E\u0435\u0439 ID-\u043A\u0430\u0440\u0442\u043E\u0439, \u0447\u0442\u043E\u0431\u044B",c?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D",selected:d,disabled:s,onClick:function(){function g(){return p("power")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:f,content:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",disabled:s,onClick:function(){function g(){return p("autopatrol")}return g}()})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0430\u043D\u0435\u043B\u044C \u0442\u0435\u0445\u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"\u041F\u0430\u043D\u0435\u043B\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u0430"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438",children:(0,e.createComponentVNode)(2,t.Box,{color:C?"bad":"good",children:C?"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u044B":"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0437\u043B\u043E\u043C",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:C?"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438":"\u0412\u0437\u043B\u043E\u043C\u0430\u0442\u044C",disabled:s,color:"bad",onClick:function(){function g(){return p("hack")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!b,content:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F \u0441\u043E \u0441\u0442\u043E\u0440\u043E\u043D\u044B \u0418\u0418",disabled:s,onClick:function(){function g(){return p("disableremote")}return g}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0430 \u0443\u0431\u043E\u0440\u043A\u0438",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"\u0423\u0431\u0438\u0440\u0430\u0442\u044C \u043A\u0440\u043E\u0432\u044C",disabled:s,onClick:function(){function g(){return p("blood")}return g}()})}),v&&(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0418\u0418",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:v,disabled:s,onClick:function(){function g(){return p("ejectpai")}return g}()})})]})})}return S}()},74439:function(I,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.BotSecurity=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.locked,s=i.noaccess,u=i.maintpanel,d=i.on,f=i.autopatrol,l=i.canhack,C=i.emagged,b=i.remote_disabled,v=i.painame,h=i.check_id,g=i.check_weapons,N=i.check_warrant,x=i.arrest_mode,B=i.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.NoticeBox,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0432\u043E\u0435\u0439 ID-\u043A\u0430\u0440\u0442\u043E\u0439, \u0447\u0442\u043E\u0431\u044B",c?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D",selected:d,disabled:s,onClick:function(){function L(){return p("power")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:f,content:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",disabled:s,onClick:function(){function L(){return p("autopatrol")}return L}()})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0430\u043D\u0435\u043B\u044C \u0442\u0435\u0445\u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"\u041F\u0430\u043D\u0435\u043B\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u0430"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438",children:(0,e.createComponentVNode)(2,t.Box,{color:C?"bad":"good",children:C?"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u044B":"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0437\u043B\u043E\u043C",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:C?"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438":"\u0412\u0437\u043B\u043E\u043C\u0430\u0442\u044C",disabled:s,color:"bad",onClick:function(){function L(){return p("hack")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!b,content:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F \u0441\u043E \u0441\u0442\u043E\u0440\u043E\u043D\u044B \u0418\u0418",disabled:s,onClick:function(){function L(){return p("disableremote")}return L}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0417\u0430\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u0446\u0435\u043B\u0438",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"\u041D\u0435\u043E\u043F\u043E\u0437\u043D\u0430\u043D\u043D\u044B\u0435 \u043B\u0438\u0447\u043D\u043E\u0441\u0442\u0438",disabled:s,onClick:function(){function L(){return p("authid")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"\u0418\u043C\u0435\u044E\u0449\u0438\u0435 \u043D\u0435\u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0435 \u043E\u0440\u0443\u0436\u0438\u0435",disabled:s,onClick:function(){function L(){return p("authweapon")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"\u0420\u0430\u0437\u044B\u0441\u043A\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u043F\u0440\u0435\u0441\u0442\u0443\u043F\u043D\u0438\u043A\u0438",disabled:s,onClick:function(){function L(){return p("authwarrant")}return L}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0440\u043E\u0446\u0435\u0434\u0443\u0440\u0430 \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:x,content:"\u0411\u0435\u0441\u0441\u0440\u043E\u0447\u043D\u043E\u0435 \u043E\u0433\u043B\u0443\u0448\u0435\u043D\u0438\u0435 \u0446\u0435\u043B\u0435\u0439 \u0432\u043C\u0435\u0441\u0442\u043E \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F",disabled:s,onClick:function(){function L(){return p("arrtype")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:B,content:"\u0421\u043E\u043E\u0431\u0449\u0430\u0442\u044C \u043E \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0438 \u043F\u043E \u0440\u0430\u0434\u0438\u043E\u0441\u0432\u044F\u0437\u0438",disabled:s,onClick:function(){function L(){return p("arrdeclare")}return L}()})]}),v&&(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0418\u0418",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:v,disabled:s,onClick:function(){function L(){return p("ejectpai")}return L}()})})]})})}return S}()},10833:function(I,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(89005),a=n(98595),t=n(36036),o=n(72253),m=function(V,p){var i=V.cell,c=(0,o.useBackend)(p),s=c.act,u=i.cell_id,d=i.occupant,f=i.crimes,l=i.brigged_by,C=i.time_left_seconds,b=i.time_set_seconds,v=i.ref,h="";C>0&&(h+=" BrigCells__listRow--active");var g=function(){s("release",{ref:v})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:h,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:b})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:C})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:g,children:"Release"})})]})},S=function(V){var p=V.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),p.map(function(i){return(0,e.createComponentVNode)(2,m,{cell:i},i.ref)})]})},y=r.BrigCells=function(){function k(V,p){var i=(0,o.useBackend)(p),c=i.act,s=i.data,u=s.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,S,{cells:u})})})})})}return k}()},45761:function(I,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.BrigTimer=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data;i.nameText=i.occupant,i.timing&&(i.prisoner_hasrec?i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i.occupant}):i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:i.occupant}));var c="pencil-alt";i.prisoner_name&&(i.prisoner_hasrec||(c="exclamation-triangle"));var s=[],u=0;for(u=0;u60||!i.isAllowed,onClick:function(){function d(){return p("start")}return d}()})})]})})]})})}return S}()},26300:function(I,r,n){"use strict";r.__esModule=!0,r.CameraConsoleOldContent=r.CameraConsoleMapContent=r.CameraConsoleListContent=r.CameraConsole=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(35840),m=n(25328),S=n(72253),y=n(36036),k=n(98595);String.prototype.trimLongStr=function(d){return this.length>d?this.substring(0,d)+"...":this};var V=function(f,l){var C,b;if(!l)return[];var v=f.findIndex(function(h){return h.name===l.name});return[(C=f[v-1])==null?void 0:C.name,(b=f[v+1])==null?void 0:b.name]},p=function(f,l){l===void 0&&(l="");var C=(0,m.createSearch)(l,function(b){return b.name});return(0,t.flow)([(0,a.filter)(function(b){return b==null?void 0:b.name}),l&&(0,a.filter)(C),(0,a.sortBy)(function(b){return b.name})])(f)},i=r.CameraConsole=function(){function d(f,l){var C=(0,S.useLocalState)(l,"tabIndex",0),b=C[0],v=C[1],h=function(){function g(N){switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,s);default:return"WE SHOULDN'T BE HERE!"}}return g}();return(0,e.createComponentVNode)(2,k.Window,{width:1250,height:600,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,y.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.createComponentVNode)(2,y.Tabs,{children:[(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:b===0,onClick:function(){function g(){return v(0)}return g}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"map-marked-alt"})," Map"]},"Map"),(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:b===1,onClick:function(){function g(){return v(1)}return g}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"table"})," List"]},"List")]}),h(b)]})})})}return d}(),c=r.CameraConsoleMapContent=function(){function d(f,l){var C=(0,S.useBackend)(l),b=C.act,v=C.data,h=p(v.cameras),g=(0,S.useLocalState)(l,"zoom",1),N=g[0],x=g[1],B=v.mapRef,L=v.activeCamera,T=v.stationLevelNum,E=v.stationLevelName,w=(0,S.useLocalState)(l,"z_current",T[0]),A=w[0],O=w[1],M=V(h,L),P=M[0],R=M[1];return(0,e.createComponentVNode)(2,y.Box,{height:"100%",display:"flex",children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,y.Box,{height:"100%",display:"flex",children:(0,e.createComponentVNode)(2,y.NanoMap,{onZoom:function(){function F(_){return x(_)}return F}(),zLevels:T,zNames:E,z_current:A,setZCurrent:O,children:h.map(function(F){return(0,e.createComponentVNode)(2,y.NanoMap.Marker,{x:F.x,y:F.y,z:F.z,z_current:A,zoom:N,icon:"box",tooltip:F.name,color:F.status?"blue":"red",bordered:!0,onClick:function(){function _(){return b("switch_camera",{name:F.name})}return _}()},F.ref)})})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),L&&L.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!P,onClick:function(){function F(){return b("switch_camera",{name:P})}return F}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!R,onClick:function(){function F(){return b("switch_camera",{name:R})}return F}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:B,type:"map"}})],4)]})}return d}(),s=r.CameraConsoleOldContent=function(){function d(f,l){var C=(0,S.useBackend)(l),b=C.act,v=C.data,h=C.config,g=v.mapRef,N=v.activeCamera,x=(0,S.useLocalState)(l,"searchText",""),B=x[0],L=p(v.cameras,B),T=V(L,N),E=T[0],w=T[1];return(0,e.createComponentVNode)(2,y.Box,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,u)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),N&&N.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!E,onClick:function(){function A(){return b("switch_camera",{name:E})}return A}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!w,onClick:function(){function A(){return b("switch_camera",{name:w})}return A}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:g,type:"map"}})],4)]})}return d}(),u=r.CameraConsoleListContent=function(){function d(f,l){var C=(0,S.useBackend)(l),b=C.act,v=C.data,h=(0,S.useLocalState)(l,"searchText",""),g=h[0],N=h[1],x=v.activeCamera,B=p(v.cameras,g);return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function L(T,E){return N(E)}return L}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:B.map(function(L){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",x&&L.name===x.name&&"Button--selected"]),L.name,0,{title:L.name,onClick:function(){function T(){return b("switch_camera",{name:L.name})}return T}()},L.name)})})})]})}return d}()},52927:function(I,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(49968),S=n(98595),y=r.Canister=function(){function k(V,p){var i=(0,t.useBackend)(p),c=i.act,s=i.data,u=s.portConnected,d=s.tankPressure,f=s.releasePressure,l=s.defaultReleasePressure,C=s.minReleasePressure,b=s.maxReleasePressure,v=s.valveOpen,h=s.name,g=s.canLabel,N=s.colorContainer,x=s.color_index,B=s.hasHoldingTank,L=s.holdingTank,T="";x.prim&&(T=N.prim.options[x.prim].name);var E="";x.sec&&(E=N.sec.options[x.sec].name);var w="";x.ter&&(w=N.ter.options[x.ter].name);var A="";x.quart&&(A=N.quart.options[x.quart].name);var O=[],M=[],P=[],R=[],F=0;for(F=0;Fh.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:h.total_positions-h.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:l.cooldown_time||!h.can_close,onClick:function(){function g(){return f("make_job_unavailable",{job:h.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:l.cooldown_time||!h.can_open,onClick:function(){function g(){return f("make_job_available",{job:h.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:l.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:l.priority_jobs.indexOf(h.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:h.is_priority?"Yes":"No",selected:h.is_priority,disabled:l.cooldown_time||!h.can_prioritize,onClick:function(){function g(){return f("prioritize_job",{job:h.title})}return g}()})})]},h.title)})]})})]}):v=(0,e.createComponentVNode)(2,k);break;case 2:!l.authenticated||!l.scan_name?v=(0,e.createComponentVNode)(2,k):l.modify_name?v=(0,e.createComponentVNode)(2,m.AccessList,{accesses:l.regions,selectedList:l.selectedAccess,accessMod:function(){function h(g){return f("set",{access:g})}return h}(),grantAll:function(){function h(){return f("grant_all")}return h}(),denyAll:function(){function h(){return f("clear_all")}return h}(),grantDep:function(){function h(g){return f("grant_region",{region:g})}return h}(),denyDep:function(){function h(g){return f("deny_region",{region:g})}return h}()}):v=(0,e.createComponentVNode)(2,V);break;case 3:l.authenticated?l.records.length?v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!l.authenticated||l.records.length===0||l.target_dept,onClick:function(){function h(){return f("wipe_all_logs")}return h}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!l.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),l.records.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.reason}),!!l.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.deletedby})]},h.timestamp)})]}),!!l.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!l.authenticated||l.records.length===0,onClick:function(){function h(){return f("wipe_my_logs")}return h}()})})]}):v=(0,e.createComponentVNode)(2,p):v=(0,e.createComponentVNode)(2,k);break;case 4:!l.authenticated||!l.scan_name?v=(0,e.createComponentVNode)(2,k):v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),l.people_dept.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:h.buttontext,disabled:!h.demotable,onClick:function(){function g(){return f("remote_demote",{remote_demote:h.name})}return g}()})})]},h.title)})]})});break;default:v=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:b}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:C}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v})]})})})}return c}()},64083:function(I,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),m=n(36036),S=n(98595),y=n(25328),k=r.CargoConsole=function(){function s(u,d){return(0,e.createComponentVNode)(2,S.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})})}return s}(),V=function(u,d){var f=(0,o.useLocalState)(d,"contentsModal",null),l=f[0],C=f[1],b=(0,o.useLocalState)(d,"contentsModalTitle",null),v=b[0],h=b[1];if(l!==null&&v!==null)return(0,e.createComponentVNode)(2,m.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,m.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[v,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,m.Box,{children:l.map(function(g){return(0,e.createComponentVNode)(2,m.Box,{children:["- ",g]},g)})}),(0,e.createComponentVNode)(2,m.Box,{m:2,children:(0,e.createComponentVNode)(2,m.Button,{content:"Close",onClick:function(){function g(){C(null),h(null)}return g}()})})]})},p=function(u,d){var f=(0,o.useBackend)(d),l=f.act,C=f.data,b=C.is_public,v=C.points,h=C.credits,g=C.timeleft,N=C.moving,x=C.at_station,B,L;return!N&&!x?(B="Docked off-station",L="Call Shuttle"):!N&&x?(B="Docked at the station",L="Return Shuttle"):N&&(L="In Transit...",g!==1?B="Shuttle is en route (ETA: "+g+" minutes)":B="Shuttle is en route (ETA: "+g+" minute)"),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:"Status",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Points Available",children:v}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Credits Available",children:h}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Shuttle Status",children:B}),b===0&&(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,m.Button,{content:L,disabled:N,onClick:function(){function T(){return l("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Central Command Messages",onClick:function(){function T(){return l("showMessages")}return T}()})]})]})})})},i=function(u,d){var f=(0,o.useBackend)(d),l=f.act,C=f.data,b=C.categories,v=C.supply_packs,h=(0,o.useSharedState)(d,"category","Emergency"),g=h[0],N=h[1],x=(0,o.useSharedState)(d,"search_text",""),B=x[0],L=x[1],T=(0,o.useLocalState)(d,"contentsModal",null),E=T[0],w=T[1],A=(0,o.useLocalState)(d,"contentsModalTitle",null),O=A[0],M=A[1],P=(0,y.createSearch)(B,function(_){return _.name}),R=(0,a.flow)([(0,t.filter)(function(_){return _.cat===b.filter(function(U){return U.name===g})[0].category||B}),B&&(0,t.filter)(P),(0,t.sortBy)(function(_){return _.name.toLowerCase()})])(v),F="Crate Catalogue";return B?F="Results for '"+B+"':":g&&(F="Browsing "+g),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:F,buttons:(0,e.createComponentVNode)(2,m.Dropdown,{width:"190px",options:b.map(function(_){return _.name}),selected:g,onSelected:function(){function _(U){return N(U)}return _}()}),children:[(0,e.createComponentVNode)(2,m.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function _(U,W){return L(W)}return _}(),mb:1}),(0,e.createComponentVNode)(2,m.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:R.map(function(_){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{bold:!0,children:(0,e.createComponentVNode)(2,m.Box,{color:_.has_sale?"good":"default",children:[_.name," (",_.cost?_.cost+" Points":"",_.creditsCost&&_.cost?" ":"",_.creditsCost?_.creditsCost+" Credits":"",")"]})}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,m.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){function U(){return l("order",{crate:_.ref,multiple:0})}return U}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){function U(){return l("order",{crate:_.ref,multiple:1})}return U}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Contents",icon:"search",onClick:function(){function U(){w(_.contents),M(_.name)}return U}()})]})]},_.name)})})})]})})},c=function(u,d){var f=(0,o.useBackend)(d),l=f.act,C=f.data,b=C.requests,v=C.canapprove,h=C.orders;return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:"Details",children:[(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:b.map(function(g){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",g.ordernum,": ",g.supply_type," for ",(0,e.createVNode)(1,"b",null,g.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",g.comment]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Required Techs: ",g.pack_techs]})]}),(0,e.createComponentVNode)(2,m.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,m.Button,{content:"Approve",color:"green",disabled:!v,onClick:function(){function N(){return l("approve",{ordernum:g.ordernum})}return N}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Deny",color:"red",onClick:function(){function N(){return l("deny",{ordernum:g.ordernum})}return N}()})]})]},g.ordernum)})}),(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Confirmed Orders"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:h.map(function(g){return(0,e.createComponentVNode)(2,m.Table.Row,{children:(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",g.ordernum,": ",g.supply_type," for ",(0,e.createVNode)(1,"b",null,g.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",g.comment]})]})},g.ordernum)})})]})}},22794:function(I,r,n){"use strict";r.__esModule=!0,r.DelayHelper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=r.DelayHelper=function(){function S(y,k){var V=(0,t.useBackend)(k),p=V.act,i=V.data,c=i.delays,s=i.rev_delays,u=y.delay_list,d=y.reverse,f=d===void 0?!1:d;return(0,e.createComponentVNode)(2,o.LabeledControls,{wrap:!0,style:{"flex-direction":"column","flex-wrap":"wrap",height:"7.5em","justify-content":"start"},children:u.map(function(l,C){return(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:l.title,style:{"flex-direction":"column","min-width":"0"},children:(0,e.createComponentVNode)(2,o.Knob,{color:(f?s[C+1]:c[C+1])/10>10?"orange":"default",format:function(){function b(v){return(0,a.toFixed)(v,2)}return b}(),maxValue:10,minValue:0,inline:!0,onDrag:function(){function b(v,h){p("editTiming",{reverse:f,timer:""+(C+1),value:Math.max(h,0)})}return b}(),size:1,step:.02,unclamped:!0,unit:"s",value:(f?s[C+1]:c[C+1])/10})},C)})})}return S}()},23749:function(I,r,n){"use strict";r.__esModule=!0,r.PodBays=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),m=r.PodBays=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.bayNumber;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"trash",onClick:function(){function s(){return p("clearBay")}return s}(),tooltip:"\n \u041E\u0447\u0438\u0449\u0430\u0435\u0442 \u0432\u0441\u0451\n\u0438\u0437 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0430\u043D\u0433\u0430\u0440\u0430.",tooltipPosition:"top-end"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"question",tooltip:"\n \u041A\u0430\u0436\u0434\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442\n\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u0439 \u0437\u043E\u043D\u0435 \u043D\u0430 \u0426\u041A.\n\u0417\u0430\u043F\u0443\u0449\u0435\u043D\u043D\u044B\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u0431\u0443\u0434\u0443\u0442\n\u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u044B \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u0430\u043C\u0438 \u0438\u0437 \u044D\u0442\u0438\u0445 \u0437\u043E\u043D\n\u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u043E\u043F\u0446\u0438\u0435\u0439\n\xAB\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0438\u0437 \u0430\u043D\u0433\u0430\u0440\u0430\xBB \u0432 \u043B\u0435\u0432\u043E\u043C \u0432\u0435\u0440\u0445\u043D\u0435\u043C \u0443\u0433\u043B\u0443.",tooltipPosition:"top-end"})],4),fill:!0,title:"\u0410\u043D\u0433\u0430\u0440",children:o.BAYS.map(function(s,u){return(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function d(){return p("switchBay",{bayNumber:""+(u+1)})}return d}(),selected:c===""+(u+1),tooltipPosition:"bottom-end",children:s.title},u)})})}return S}()},8507:function(I,r,n){"use strict";r.__esModule=!0,r.PodLaunch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(20345),m=r.PodLaunch=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.giveLauncher,s=(0,o.useCompact)(k),u=s[0];return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function d(){return p("giveLauncher")}return d}(),selected:c,textAlign:"center",tooltip:"\n \u0412\u044B \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u043D\u0430\u0442\u044C, \u0447\u0442\u043E\n \u041E\u0431 \u044D\u0442\u043E\u043C \u0433\u043E\u0432\u043E\u0440\u0438\u0442 \u041A\u043E\u0434\u0435\u043A\u0441 \u0410\u0441\u0442\u0430\u0440\u0442\u0435\u0441",tooltipPosition:"top",children:(0,e.createComponentVNode)(2,t.Box,{bold:!0,fontSize:"1.4em",lineHeight:u?1.5:3,children:"\u0417\u0410\u041F\u0423\u0421\u041A"})})}return S}()},15802:function(I,r,n){"use strict";r.__esModule=!0,r.PodSounds=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),m=r.PodSounds=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.defaultSoundVolume,s=i.soundVolume;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"volume-up",onClick:function(){function u(){return p("soundVolume")}return u}(),selected:s!==c,tooltip:"\n \u0413\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C \u0417\u0443\u043A\u0430:"+s}),fill:!0,title:"\u0417\u0432\u0443\u043A\u0438",children:o.SOUNDS.map(function(u,d){return(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function f(){return p(u.act)}return f}(),selected:i[u.act],tooltip:u.tooltip,tooltipPosition:"top-end",children:u.title},d)})})}return S}()},94577:function(I,r,n){"use strict";r.__esModule=!0,r.PodStatusPage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),m=n(20345),S=r.PodStatusPage=function(){function V(p,i){var c=(0,m.useCompact)(i),s=c[0];return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:o.EFFECTS_ALL.map(function(u,d){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"label",mb:1,children:[!s&&(u.alt_label||u.label),":"]}),(0,e.createComponentVNode)(2,t.Box,{children:u.list.map(function(f,l){return(0,e.createComponentVNode)(2,y,{effect:f,hasMargin:u.list.length>1,index:l},l)})})]}),d=0;--J){var X=this.tryEntries[J],Q=X.completion;if(X.tryLoc==="root")return ae("end");if(X.tryLoc<=this.prev){var Z=f.call(X,"catchLoc"),te=f.call(X,"finallyLoc");if(Z&&te){if(this.prev=0;--ae){var J=this.tryEntries[ae];if(J.tryLoc<=this.prev&&f.call(J,"finallyLoc")&&this.prev=0;--q){var ae=this.tryEntries[q];if(ae.finallyLoc===re)return this.complete(ae.completion,ae.afterLoc),G(ae),w}}return oe}(),catch:function(){function oe(re){for(var q=this.tryEntries.length-1;q>=0;--q){var ae=this.tryEntries[q];if(ae.tryLoc===re){var J=ae.completion;if(J.type==="throw"){var X=J.arg;G(ae)}return X}}throw Error("illegal catch attempt")}return oe}(),delegateYield:function(){function oe(re,q,ae){return this.delegate={iterator:de(re),resultName:q,nextLoc:ae},this.method==="next"&&(this.arg=s),w}return oe}()},u}function k(s,u,d,f,l,C,b){try{var v=s[C](b),h=v.value}catch(g){return void d(g)}v.done?u(h):Promise.resolve(h).then(f,l)}function V(s){return function(){var u=this,d=arguments;return new Promise(function(f,l){var C=s.apply(u,d);function b(h){k(C,f,l,b,v,"next",h)}function v(h){k(C,f,l,b,v,"throw",h)}b(void 0)})}}var p=function(){var s=V(y().mark(function(){function u(d,f){return y().wrap(function(){function l(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,a.storage.set("podlauncher_preset_"+d,f);case 2:case"end":return C.stop()}}return l}(),u)}return u}()));return function(){function u(d,f){return s.apply(this,arguments)}return u}()}(),i=function(u,d){var f=(0,o.useBackend)(d),l=f.data,C=u.editing,b=u.deletePreset,v=u.loadPreset,h=u.presetIndex,g=u.setEditing,N=u.getPresets;return(0,e.createFragment)([!C&&(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"plus",onClick:function(){function x(){return g(!C)}return x}(),tooltip:"\u041D\u043E\u0432\u044B\u0439 \u043F\u0440\u0435\u0441\u0435\u0442"}),(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"download",inline:!0,onClick:function(){function x(){return p(h.toString(),l)}return x}(),tooltip:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0435\u0442",tooltipPosition:"bottom"}),(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"upload",inline:!0,onClick:function(){function x(){v(h)}return x}(),tooltip:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0435\u0442"}),(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"trash",inline:!0,onClick:function(){function x(){return b(h)}return x}(),tooltip:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u044B\u0439 \u043F\u0440\u0435\u0441\u0435\u0442",tooltipPosition:"bottom-start"}),(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"refresh",inline:!0,onClick:function(){function x(){return N()}return x}(),tooltip:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u043F\u0440\u0435\u0441\u0435\u0442\u043E\u0432",tooltipPosition:"bottom-start"})],0)},c=r.PresetsPage=function(){function s(u,d){var f=(0,o.useBackend)(d),l=f.act,C=f.data,b=(0,o.useLocalState)(d,"editing",!1),v=b[0],h=b[1],g=(0,o.useLocalState)(d,"hue",0),N=g[0],x=g[1],B=(0,o.useLocalState)(d,"name",""),L=B[0],T=B[1],E=(0,o.useLocalState)(d,"presetID",0),w=E[0],A=E[1],O=(0,o.useLocalState)(d,"presets",[]),M=O[0],P=O[1],R=function(){var W=V(y().mark(function(){function $(Y){var ne,G;return y().wrap(function(){function le(de){for(;;)switch(de.prev=de.next){case 0:ne=[].concat(M),G=0;case 2:if(!(G=u.length-2?f%2===1?"top-start":"top-end":f%2===1?"bottom-start":"bottom-end",tooltip:d.title,width:"45px",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["supplypods64x64","pod_asset"+d.id]),style:{"pointer-events":"none",transform:"rotate(45deg) translate(-25%,-10%)"}})},d.id)})})}return S}()},8179:function(I,r,n){"use strict";r.__esModule=!0,r.TabPod=r.TabDrop=r.TabBay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TabPod=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.oldArea;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:!0,icon:"street-view",children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!0,icon:"undo-alt",children:s?s.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})],4)}return y}(),m=r.TabBay=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=(0,a.useLocalState)(V,"teleported",!1),u=s[0],d=s[1],f=c.oldArea;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"street-view",onClick:function(){function l(){i("teleportCentcom"),d(!0)}return l}(),children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!f||!u,icon:"undo-alt",onClick:function(){function l(){i("teleportBack"),d(!1)}return l}(),children:f?f.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})],4)}return y}(),S=r.TabDrop=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=(0,a.useLocalState)(V,"teleported",!1),u=s[0],d=s[1],f=c.oldArea;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"street-view",onClick:function(){function l(){i("teleportDropoff"),d(!0)}return l}(),children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!f||!u,icon:"undo-alt",onClick:function(){function l(){i("teleportBack"),d(!1)}return l}(),children:f?f.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})],4)}return y}()},18885:function(I,r,n){"use strict";r.__esModule=!0,r.Timing=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),m=n(22794),S=r.Timing=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.custom_rev_delay,u=c.effectReverse;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"undo",onClick:function(){function d(){return i("resetTiming")}return d}(),tooltip:"\n \u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0442\u0430\u0439\u043C\u0438\u043D\u0433\u0438\n /\u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043A\u0430\u043F\u0441\u0443\u043B",tooltipPosition:"bottom-end"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",disabled:!u,icon:s===1?"toggle-on":"toggle-off",onClick:function(){function d(){return i("toggleRevDelays")}return d}(),selected:s,tooltip:"\n \u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u0430\n \u041F\u0440\u0438\u043C\u0435\u0447\u0430\u043D\u0438\u0435: \u043F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u043E\u0439 \u043E\u043F\u0446\u0438\u0438 \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0430\u0442\u0435\u043B\u0438\n \u043E\u0431\u0440\u0430\u0449\u0430\u044E\u0442 \u0432\u0441\u043F\u044F\u0442\u044C \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043A\u0430\u043F\u0441\u0443\u043B",tooltipPosition:"bottom-end"})],4),title:"\u0412\u0440\u0435\u043C\u044F",children:s?(0,e.createComponentVNode)(2,m.DelayHelper,{delay_list:o.REV_DELAYS,reverse:!0}):(0,e.createComponentVNode)(2,m.DelayHelper,{delay_list:o.DELAYS})})}return y}()},76417:function(I,r,n){"use strict";r.__esModule=!0,r.ViewTabHolder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),m=n(20345),S=r.ViewTabHolder=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.mapRef,u=c.customDropoff,d=c.effectReverse,f=c.renderLighting,l=(0,m.useTab)(V),C=l[0],b=l[1],v=o.TABPAGES[C].component;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createFragment)([!!u&&!!d&&(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"arrow-circle-down",inline:!0,onClick:function(){function h(){b(2),i("tabSwitch",{tabIndex:2})}return h}(),selected:C===2,tooltip:"\u041C\u0435\u0441\u0442\u043E \u0412\u044B\u0441\u0430\u0434\u043A\u0438"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"rocket",inline:!0,onClick:function(){function h(){b(0),i("tabSwitch",{tabIndex:0})}return h}(),selected:C===0,tooltip:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"th",inline:!0,onClick:function(){function h(){b(1),i("tabSwitch",{tabIndex:1})}return h}(),selected:C===1,tooltip:"\u0410\u043D\u0433\u0430\u0440 \u041F\u043E\u0433\u0440\u0443\u0437\u043A\u0438"}),(0,e.createVNode)(1,"span",null,"|",16,{style:o.POD_GREY}),!!u&&!!d&&(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",inline:!0,onClick:function(){function h(){i("renderLighting"),i("refreshView")}return h}(),selected:f,tooltip:"\u0420\u0435\u043D\u0434\u0435\u0440\u0438\u043D\u0433 \u043E\u0441\u0432\u0435\u0449\u0435\u043D\u0438\u044F"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"sync-alt",inline:!0,onClick:function(){function h(){b(C),i("refreshView")}return h}(),tooltip:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u043E\u043A\u043D\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430"})],0),fill:!0,title:"\u041E\u0441\u043C\u043E\u0442\u0440",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.ByondUi,{height:"100%",params:{id:s,type:"map",zoom:0}})})]})})}return y}()},7144:function(I,r,n){"use strict";r.__esModule=!0,r.TABPAGES=r.SOUNDS=r.REV_DELAYS=r.REVERSE_OPTIONS=r.POD_GREY=r.EFFECTS_NORMAL=r.EFFECTS_LOAD=r.EFFECTS_HARM=r.EFFECTS_ALL=r.DELAYS=r.BAYS=void 0;var e=n(8179),a=r.POD_GREY={color:"grey"},t=r.TABPAGES=[{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043A\u0430\u043F\u0441\u0443\u043B\u044B",component:e.TabPod},{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0430\u043D\u0433\u0430\u0440\u0430",component:e.TabBay},{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043C\u0435\u0441\u0442\u0430 \u0432\u044B\u0433\u0440\u0443\u0437\u043A\u0438.",component:e.TabDrop}],o=r.REVERSE_OPTIONS=[{title:"\u041C\u043E\u0431\u044B",key:"Mobs",icon:"user"},{title:"\u041D\u0435 \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0451\u043D\u043D\u044B\u0435\n\u041E\u0431\u044A\u0435\u043A\u0442\u044B",key:"Unanchored",icon:"cube"},{title:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0451\u043D\u043D\u044B\u0435\n\u041E\u0431\u044A\u0435\u043A\u0442\u044B",key:"Anchored",icon:"anchor"},{title:"\u041C\u0435\u0445\u0438",key:"Mecha",icon:"truck"}],m=r.DELAYS=[{title:"Pre",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043F\u0440\u0438\u0431\u044B\u0442\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0430 \u0441\u0442\u0430\u043D\u0446\u0438\u044E"},{title:"Fall",tooltip:"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0430\u043D\u0438\u043C\u0430\u0446\u0438\u0438\n \u043F\u0430\u0434\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B"},{title:"Open",tooltip:"\u0412\u0440\u0435\u043C\u044F, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u0435 \u0434\u043B\u044F \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F"},{title:"Exit",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043E\u0442\u043B\u0435\u0442\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u044B\n\u043F\u043E\u0441\u043B\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F"}],S=r.REV_DELAYS=[{title:"Pre",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043F\u043E\u044F\u0432\u043B\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0430\u0434 \u0442\u043E\u0447\u043A\u043E\u0439 \u0432\u044B\u0441\u0430\u0434\u043A\u0438"},{title:"Fall",tooltip:"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0430\u043D\u0438\u043C\u0430\u0446\u0438\u0438\n \u043F\u0430\u0434\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B"},{title:"Open",tooltip:"\u0412\u0440\u0435\u043C\u044F, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u0435 \u0434\u043B\u044F \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F"},{title:"Exit",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043E\u0442\u043B\u0435\u0442\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u044B\n\u043F\u043E\u0441\u043B\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F"}],y=r.SOUNDS=[{title:"Fall",act:"fallingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F, \u043F\u043E\u043A\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u043F\u0430\u0434\u0430\u0435\u0442, \u0438 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044F\n\u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u044F\u0435\u0442\u0441\u044F"},{title:"Land",act:"landingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B"},{title:"Open",act:"openingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043F\u0440\u0438 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u0438 \u043A\u0430\u043F\u0441\u0443\u043B\u044B"},{title:"Exit",act:"leavingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u0443\u043B\u0435\u0442\u0430\u0435\u0442"}],k=r.BAYS=[{title:"1"},{title:"2"},{title:"3"},{title:"4"},{title:"\u0415\u0420\u0422"}],V=r.EFFECTS_LOAD=[{act:"launchAll",choiceNumber:0,icon:"globe",selected:"launchChoice",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0441\u043E \u0432\u0441\u0435\u0445 \u0442\u0443\u0440\u0444\u043E\u0432"},{act:"launchOrdered",choiceNumber:1,icon:"sort-amount-down-alt",selected:"launchChoice",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0441 \u0442\u0443\u0440\u0444\u043E\u0432 \u043F\u043E \u043F\u043E\u0440\u044F\u0434\u043A\u0443"},{act:"launchRandomTurf",choiceNumber:2,icon:"dice",selected:"launchChoice",title:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0440\u0430\u043D\u0434\u043E\u043C\u043D\u044B\u0439 \u0442\u0443\u0440\u0444"},{divider:!0},{act:"launchWholeTurf",choiceNumber:0,icon:"expand",selected:"launchRandomItem",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0432\u0441\u0435 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 \u0442\u0443\u0440\u0444\u0430"},{act:"launchRandomItem",choiceNumber:1,icon:"dice",selected:"launchRandomItem",title:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u043E\u0431\u044A\u0435\u043A\u0442"},{divider:!0},{act:"launchClone",icon:"clone",soloSelected:"launchClone",title:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442"}],p=r.EFFECTS_NORMAL=[{act:"effectTarget",icon:"user-check",soloSelected:"effectTarget",title:"\u041E\u0441\u043E\u0431\u0430\u044F \u0446\u0435\u043B\u044C"},{act:"effectBluespace",choiceNumber:0,icon:"hand-paper",selected:"effectBluespace",title:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u043E\u0441\u0442\u0430\u0435\u0442\u0441\u044F"},{act:"effectStealth",icon:"user-ninja",soloSelected:"effectStealth",title:"\u0421\u043A\u0440\u044B\u0442\u043D\u043E"},{act:"effectQuiet",icon:"volume-mute",soloSelected:"effectQuiet",title:"\u0422\u0438\u0445\u043E"},{act:"effectMissile",icon:"rocket",soloSelected:"effectMissile",title:"\u0420\u0435\u0436\u0438\u043C \u0440\u0430\u043A\u0435\u0442\u044B"},{act:"effectBurst",icon:"certificate",soloSelected:"effectBurst",title:"\u0417\u0430\u043F\u0443\u0441\u043A \u043A\u043B\u0430\u0441\u0442\u0435\u0440\u0430"},{act:"effectCircle",icon:"ruler-combined",soloSelected:"effectCircle",title:"\u041B\u044E\u0431\u043E\u0439 \u0443\u0433\u043E\u043B \u0441\u043F\u0443\u0441\u043A\u0430"},{act:"effectAnnounce",choiceNumber:0,icon:"ghost",selected:"effectAnnounce",title:"\u041D\u0435\u0442 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F \u043F\u0440\u0438\u0437\u0440\u0430\u043A\u043E\u0432\n(\u0435\u0441\u043B\u0438 \u0432\u044B \u043D\u0435 \u0445\u043E\u0442\u0438\u0442\u0435\n\u0440\u0430\u0437\u0432\u043B\u0435\u043A\u0430\u0442\u044C \u0441\u043A\u0443\u0447\u0430\u044E\u0449\u0438\u0445 \u043F\u0440\u0438\u0437\u0440\u0430\u043A\u043E\u0432)"}],i=r.EFFECTS_HARM=[{act:"explosionCustom",choiceNumber:1,icon:"bomb",selected:"explosionChoice",title:"\u041D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0432\u0437\u0440\u044B\u0432"},{act:"explosionBus",choiceNumber:2,icon:"bomb",selected:"explosionChoice",title:"\u0410\u0434\u043C\u0438\u043D\u0430\u0431\u0443\u0437-\u0432\u0437\u0440\u044B\u0432\n\u0418 \u0447\u0442\u043E \u043E\u043D\u0438 \u0441\u0434\u0435\u043B\u0430\u044E\u0442, \u0437\u0430\u0431\u0430\u043D\u044F\u0442 \u0442\u0435\u0431\u044F?"},{divider:!0},{act:"damageCustom",choiceNumber:1,icon:"skull",selected:"damageChoice",title:"\u041D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0443\u0440\u043E\u043D"},{act:"damageGib",choiceNumber:2,icon:"skull-crossbones",selected:"damageChoice",title:"\u0413\u0438\u0431"},{divider:!0},{act:"effectShrapnel",details:!0,icon:"cloud-meatball",soloSelected:"effectShrapnel",title:"\u041E\u0431\u043B\u0430\u043A\u043E \u0441\u043D\u0430\u0440\u044F\u0434\u043E\u0432"},{act:"effectStun",icon:"sun",soloSelected:"effectStun",title:"\u0421\u0442\u0430\u043D"},{act:"effectLimb",icon:"socks",soloSelected:"effectLimb",title:"\u041F\u043E\u0442\u0435\u0440\u044F \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438"},{act:"effectOrgans",icon:"book-dead",soloSelected:"effectOrgans",title:"\u0420\u0430\u0437\u043B\u0435\u0442 \u0432\u0441\u0435\u0445 \u043E\u0440\u0433\u0430\u043D\u043E\u0432"}],c=r.EFFECTS_ALL=[{list:V,label:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0437",alt_label:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430",tooltipPosition:"right"},{list:p,label:"\u041E\u0431\u044B\u0447\u043D\u044B\u0435 \u042D\u0444\u0444\u0435\u043A\u0442\u044B",tooltipPosition:"bottom"},{list:i,label:"\u0412\u0440\u0435\u0434\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B",tooltipPosition:"bottom"}]},20345:function(I,r,n){"use strict";r.__esModule=!0,r.useTab=r.useCompact=void 0;var e=n(72253),a=r.useCompact=function(){function o(m){return(0,e.useLocalState)(m,"compact",!1)}return o}(),t=r.useTab=function(){function o(m){return(0,e.useLocalState)(m,"tab",1)}return o}()},65875:function(I,r,n){"use strict";r.__esModule=!0,r.CentcomPodLauncher=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(20345),m=n(23749),S=n(8507),y=n(15802),k=n(94577),V=n(30590),p=n(72932),i=n(68569),c=n(18885),s=n(76417),u=r.CentcomPodLauncher=function(){function d(f,l){var C=(0,o.useCompact)(l),b=C[0];return(0,e.createComponentVNode)(2,t.Window,{height:b?360:440,title:"\u041C\u0435\u043D\u044E \u043A\u0430\u043F\u0441\u0443\u043B \u0441\u043D\u0430\u0431\u0436\u0435\u043D\u0438\u044F",width:b?460:750,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{shrink:0,children:(0,e.createComponentVNode)(2,k.PodStatusPage)}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,shrink:0,basis:"14.1em",children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.PresetsPage)}),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,p.ReverseMenu)}),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,S.PodLaunch)})})]})}),!b&&(0,e.createComponentVNode)(2,a.Stack.Item,{grow:3,children:(0,e.createComponentVNode)(2,s.ViewTabHolder)}),(0,e.createComponentVNode)(2,a.Stack.Item,{basis:"9em",children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,direction:"column",children:[(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,m.PodBays)}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,c.Timing)}),!b&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,y.PodSounds,{fill:!0})})]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{basis:"11em",children:(0,e.createComponentVNode)(2,i.StylePage)})]})})]})})})}return d}()},16780:function(){"use strict"},12226:function(I,r,n){"use strict";r.__esModule=!0,r.Changelog=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(98595),S=n(79140),y=V(n(83331)),k=V(n(52754));function V(l){return l&&l.__esModule?l:{default:l}}function p(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return C};var l,C={},b=Object.prototype,v=b.hasOwnProperty,h=Object.defineProperty||function(J,X,Q){J[X]=Q.value},g=typeof Symbol=="function"?Symbol:{},N=g.iterator||"@@iterator",x=g.asyncIterator||"@@asyncIterator",B=g.toStringTag||"@@toStringTag";function L(J,X,Q){return Object.defineProperty(J,X,{value:Q,enumerable:!0,configurable:!0,writable:!0}),J[X]}try{L({},"")}catch(J){L=function(Q,Z,te){return Q[Z]=te}}function T(J,X,Q,Z){var te=X&&X.prototype instanceof R?X:R,fe=Object.create(te.prototype),ye=new q(Z||[]);return h(fe,"_invoke",{value:le(J,Q,ye)}),fe}function E(J,X,Q){try{return{type:"normal",arg:J.call(X,Q)}}catch(Z){return{type:"throw",arg:Z}}}C.wrap=T;var w="suspendedStart",A="suspendedYield",O="executing",M="completed",P={};function R(){}function F(){}function _(){}var U={};L(U,N,function(){return this});var W=Object.getPrototypeOf,$=W&&W(W(ae([])));$&&$!==b&&v.call($,N)&&(U=$);var Y=_.prototype=R.prototype=Object.create(U);function ne(J){["next","throw","return"].forEach(function(X){L(J,X,function(Q){return this._invoke(X,Q)})})}function G(J,X){function Q(te,fe,ye,pe){var Le=E(J[te],J,fe);if(Le.type!=="throw"){var D=Le.arg,ie=D.value;return ie&&typeof ie=="object"&&v.call(ie,"__await")?X.resolve(ie.__await).then(function(se){Q("next",se,ye,pe)},function(se){Q("throw",se,ye,pe)}):X.resolve(ie).then(function(se){D.value=se,ye(D)},function(se){return Q("throw",se,ye,pe)})}pe(Le.arg)}var Z;h(this,"_invoke",{value:function(){function te(fe,ye){function pe(){return new X(function(Le,D){Q(fe,ye,Le,D)})}return Z=Z?Z.then(pe,pe):pe()}return te}()})}function le(J,X,Q){var Z=w;return function(te,fe){if(Z===O)throw Error("Generator is already running");if(Z===M){if(te==="throw")throw fe;return{value:l,done:!0}}for(Q.method=te,Q.arg=fe;;){var ye=Q.delegate;if(ye){var pe=de(ye,Q);if(pe){if(pe===P)continue;return pe}}if(Q.method==="next")Q.sent=Q._sent=Q.arg;else if(Q.method==="throw"){if(Z===w)throw Z=M,Q.arg;Q.dispatchException(Q.arg)}else Q.method==="return"&&Q.abrupt("return",Q.arg);Z=O;var Le=E(J,X,Q);if(Le.type==="normal"){if(Z=Q.done?M:A,Le.arg===P)continue;return{value:Le.arg,done:Q.done}}Le.type==="throw"&&(Z=M,Q.method="throw",Q.arg=Le.arg)}}}function de(J,X){var Q=X.method,Z=J.iterator[Q];if(Z===l)return X.delegate=null,Q==="throw"&&J.iterator.return&&(X.method="return",X.arg=l,de(J,X),X.method==="throw")||Q!=="return"&&(X.method="throw",X.arg=new TypeError("The iterator does not provide a '"+Q+"' method")),P;var te=E(Z,J.iterator,X.arg);if(te.type==="throw")return X.method="throw",X.arg=te.arg,X.delegate=null,P;var fe=te.arg;return fe?fe.done?(X[J.resultName]=fe.value,X.next=J.nextLoc,X.method!=="return"&&(X.method="next",X.arg=l),X.delegate=null,P):fe:(X.method="throw",X.arg=new TypeError("iterator result is not an object"),X.delegate=null,P)}function oe(J){var X={tryLoc:J[0]};1 in J&&(X.catchLoc=J[1]),2 in J&&(X.finallyLoc=J[2],X.afterLoc=J[3]),this.tryEntries.push(X)}function re(J){var X=J.completion||{};X.type="normal",delete X.arg,J.completion=X}function q(J){this.tryEntries=[{tryLoc:"root"}],J.forEach(oe,this),this.reset(!0)}function ae(J){if(J||J===""){var X=J[N];if(X)return X.call(J);if(typeof J.next=="function")return J;if(!isNaN(J.length)){var Q=-1,Z=function(){function te(){for(;++Q=0;--te){var fe=this.tryEntries[te],ye=fe.completion;if(fe.tryLoc==="root")return Z("end");if(fe.tryLoc<=this.prev){var pe=v.call(fe,"catchLoc"),Le=v.call(fe,"finallyLoc");if(pe&&Le){if(this.prev=0;--Z){var te=this.tryEntries[Z];if(te.tryLoc<=this.prev&&v.call(te,"finallyLoc")&&this.prev=0;--Q){var Z=this.tryEntries[Q];if(Z.finallyLoc===X)return this.complete(Z.completion,Z.afterLoc),re(Z),P}}return J}(),catch:function(){function J(X){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var Z=this.tryEntries[Q];if(Z.tryLoc===X){var te=Z.completion;if(te.type==="throw"){var fe=te.arg;re(Z)}return fe}}throw Error("illegal catch attempt")}return J}(),delegateYield:function(){function J(X,Q,Z){return this.delegate={iterator:ae(X),resultName:Q,nextLoc:Z},this.method==="next"&&(this.arg=l),P}return J}()},C}function i(l,C,b,v,h,g,N){try{var x=l[g](N),B=x.value}catch(L){return void b(L)}x.done?C(B):Promise.resolve(B).then(v,h)}function c(l){return function(){var C=this,b=arguments;return new Promise(function(v,h){var g=l.apply(C,b);function N(B){i(g,v,h,N,x,"next",B)}function x(B){i(g,v,h,N,x,"throw",B)}N(void 0)})}}function s(l,C){l.prototype=Object.create(C.prototype),l.prototype.constructor=l,u(l,C)}function u(l,C){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,v){return b.__proto__=v,b},u(l,C)}var d={add:{icon:"check-circle",color:"green"},admin:{icon:"user-shield",color:"purple"},balance:{icon:"balance-scale-right",color:"yellow"},bugfix:{icon:"bug",color:"green"},code_imp:{icon:"code",color:"green"},config:{icon:"cogs",color:"purple"},del:{icon:"minus",color:"red"},expansion:{icon:"check-circle",color:"green"},experiment:{icon:"radiation",color:"yellow"},image:{icon:"image",color:"green"},imageadd:{icon:"tg-image-plus",color:"green"},imagedel:{icon:"tg-image-minus",color:"red"},qol:{icon:"hand-holding-heart",color:"green"},refactor:{icon:"tools",color:"green"},rscadd:{icon:"check-circle",color:"green"},rscdel:{icon:"times-circle",color:"red"},server:{icon:"server",color:"purple"},sound:{icon:"volume-high",color:"green"},soundadd:{icon:"tg-sound-plus",color:"green"},sounddel:{icon:"tg-sound-minus",color:"red"},spellcheck:{icon:"spell-check",color:"green"},tgs:{icon:"toolbox",color:"purple"},tweak:{icon:"wrench",color:"green"},unknown:{icon:"info-circle",color:"label"},wip:{icon:"hammer",color:"orange"}},f=r.Changelog=function(l){function C(){var v;return v=l.call(this)||this,v.getData=function(h,g){g===void 0&&(g=1);var N=(0,t.useBackend)(v.context),x=N.act,B=v,L=6;if(g>L)return v.setData("Failed to load data after "+L+" attempts");x("get_month",{date:h}),fetch((0,S.resolveAsset)(h+".yml")).then(function(){var T=c(p().mark(function(){function E(w){var A,O,M;return p().wrap(function(){function P(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,w.text();case 2:A=R.sent,O=/^Cannot find/,O.test(A)?(M=50+g*50,B.setData("Loading changelog data"+".".repeat(g+3)),setTimeout(function(){B.getData(h,g+1)},M)):B.setData(k.default.load(A,{schema:k.default.CORE_SCHEMA}));case 5:case"end":return R.stop()}}return P}(),E)}return E}()));return function(E){return T.apply(this,arguments)}}())},v.state={data:"Loading changelog data...",selectedDate:"",selectedIndex:0},v.dateChoices=[],v}s(C,l);var b=C.prototype;return b.setData=function(){function v(h){this.setState({data:h})}return v}(),b.setSelectedDate=function(){function v(h){this.setState({selectedDate:h})}return v}(),b.setSelectedIndex=function(){function v(h){this.setState({selectedIndex:h})}return v}(),b.componentDidMount=function(){function v(){var h=this,g=(0,t.useBackend)(this.context),N=g.data.dates,x=N===void 0?[]:N;x&&(x.forEach(function(B){return h.dateChoices.push((0,y.default)(B,"mmmm yyyy",!0))}),this.setSelectedDate(this.dateChoices[0]),this.getData(x[0]))}return v}(),b.render=function(){function v(){var h=this,g=this.state,N=g.data,x=g.selectedDate,B=g.selectedIndex,L=(0,t.useBackend)(this.context),T=L.data.dates,E=this.dateChoices,w=E.length>0&&(0,e.createComponentVNode)(2,o.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:B===0,icon:"chevron-left",onClick:function(){function R(){var F=B-1;return h.setData("Loading changelog data..."),h.setSelectedIndex(F),h.setSelectedDate(E[F]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),h.getData(T[F])}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{displayText:x,options:E,onSelected:function(){function R(F){var _=E.indexOf(F);return h.setData("Loading changelog data..."),h.setSelectedIndex(_),h.setSelectedDate(F),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),h.getData(T[_])}return R}(),selected:x,width:"150px"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:B===E.length-1,icon:"chevron-right",onClick:function(){function R(){var F=B+1;return h.setData("Loading changelog data..."),h.setSelectedIndex(F),h.setSelectedDate(E[F]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),h.getData(T[F])}return R}()})})]}),A=(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createVNode)(1,"h1",null,"Paradise Station",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thanks to: ",16),(0,e.createTextVNode)("Baystation 12, /tg/station, /vg/station, NTstation, CDK Station devs, FacepunchStation, GoonStation devs, the original SpaceStation developers and Radithor for the title image. Also a thanks to anybody who has contributed who is not listed here :( Ask to be added here on irc.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Recent GitHub contributors can be found "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://github.com/ss220-space/Paradise/pulse/monthly"}),(0,e.createTextVNode)(".")],0),w]}),O=(0,e.createComponentVNode)(2,o.Section,{children:[w,(0,e.createVNode)(1,"h3",null,"GoonStation 13 Development Team",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Coders: ",16),(0,e.createTextVNode)("Stuntwaffle, Showtime, Pantaloons, Nannek, Keelin, Exadv1, hobnob, Justicefries, 0staf, sniperchance, AngriestIBM, BrianOBlivion")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Spriters: ",16),(0,e.createTextVNode)("Supernorn, Haruhi, Stuntwaffle, Pantaloons, Rho, SynthOrange, I Said No")],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Traditional Games Space Station 13 is thankful to the GoonStation 13 Development Team for its work on the game up to the"),(0,e.createTextVNode)(" r4407 release. The changelog for changes up to r4407 can be seen "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://wiki.ss13.co/Pre-2016_Changelog#April_2010"}),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,["Except where otherwise noted, Goon Station 13 is licensed under a ",(0,e.createVNode)(1,"a",null,"Creative Commons Attribution-Noncommercial-Share Alike 3.0 License",16,{href:"https://creativecommons.org/licenses/by-nc-sa/3.0/"}),". Rights are currently extended to ",(0,e.createVNode)(1,"a",null,"SomethingAwful Goons",16,{href:"http://forums.somethingawful.com/"})," only."],0),(0,e.createVNode)(1,"h3",null,"Traditional Games Space Station 13 License",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Some icons by"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"a",null,"Yusuke Kamiyamane",16,{href:"http://p.yusukekamiyamane.com/"}),(0,e.createTextVNode)(". All rights reserved. Licensed under a"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"a",null,"Creative Commons Attribution 3.0 License",16,{href:"http://creativecommons.org/licenses/by/3.0/"}),(0,e.createTextVNode)(".")],0)]}),M=/#\d+/,P=typeof N=="object"&&Object.keys(N).length>0&&Object.entries(N).reverse().map(function(R){var F=R[0],_=R[1];return(0,e.createComponentVNode)(2,o.Section,{title:(0,y.default)(F,"d mmmm yyyy",!0),children:(0,e.createComponentVNode)(2,o.Box,{ml:3,children:Object.entries(_).map(function(U){var W=U[0],$=U[1];return(0,e.createFragment)([(0,e.createVNode)(1,"h4",null,[W,(0,e.createTextVNode)(" changed:")],0),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:(0,e.createComponentVNode)(2,o.Table,{children:$.map(function(Y){var ne=Object.keys(Y)[0],G=Y[ne],le=G.match(M),de=(0,e.createComponentVNode)(2,o.Table.Cell,{className:(0,a.classes)(["Changelog__Cell","Changelog__Cell--Icon"]),children:(0,e.createComponentVNode)(2,o.Icon,{color:d[ne]?d[ne].color:d.unknown.color,name:d[ne]?d[ne].icon:d.unknown.icon})});return le!==null&&(0,e.createComponentVNode)(2,o.Table.Row,{children:[de,(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:(0,e.createVNode)(1,"a",null,[" ",G.charAt(0).toUpperCase()+G.slice(1)," "],0,{href:"https://github.com/ss220-space/Paradise/pull/"+le[0].substring(1)})})]},ne+G)||(0,e.createComponentVNode)(2,o.Table.Row,{children:[de,(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:G})]},ne+G)})})})],4,W)})})},F)});return(0,e.createComponentVNode)(2,m.Window,{title:"Changelog",width:675,height:650,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[A,P,typeof N=="string"&&(0,e.createVNode)(1,"p",null,N,0),O]})})}return v}(),C}(e.Component)},91360:function(I,r,n){"use strict";r.__esModule=!0,r.CheckboxListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),m=n(72253),S=n(98595),y=r.CheckboxListInputModal=function(){function V(p,i){var c=(0,m.useBackend)(i),s=c.act,u=c.data,d=u.items,f=d===void 0?[]:d,l=u.message,C=l===void 0?"":l,b=u.init_value,v=u.timeout,h=u.title,g=(0,m.useLocalState)(i,"edittedItems",f),N=g[0],x=g[1],B=330+Math.ceil(C.length/3),L=function(){function T(E){E===void 0&&(E=null);var w=[].concat(N);w=w.map(function(A){return A.key===E.key?Object.assign({},A,{checked:!E.checked}):A}),x(w)}return T}();return(0,e.createComponentVNode)(2,S.Window,{title:h,width:325,height:B,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{className:"ListInput__Section",fill:!0,title:C,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k,{filteredItems:N,onClick:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:N})})]})})})]})}return V}(),k=function(p,i){var c=p.filteredItems,s=p.onClick;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:c.map(function(u,d){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,id:d,onClick:function(){function f(){return s(u)}return f}(),checked:u.checked,style:{animation:"none",transition:"none"},children:u.key.replace(/^\w/,function(f){return f.toUpperCase()})},d)})})}},36108:function(I,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(85870),m=n(98595),S=[1,5,10,20,30,50,100],y=[1,5,10],k=r.ChemDispenser=function(){function c(s,u){var d=(0,a.useBackend)(u),f=d.act,l=d.data,C=l.chemicals;return(0,e.createComponentVNode)(2,m.Window,{width:460,height:400+C.length*8,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i)]})})})}return c}(),V=function(s,u){var d=(0,a.useBackend)(u),f=d.act,l=d.data,C=l.amount,b=l.energy,v=l.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:b,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[b," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:S.map(function(h,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:C===h,content:h,onClick:function(){function N(){return f("amount",{amount:h})}return N}()})},g)})})})]})})})},p=function(s,u){for(var d=(0,a.useBackend)(u),f=d.act,l=d.data,C=l.chemicals,b=C===void 0?[]:C,v=[],h=0;h<(b.length+1)%3;h++)v.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:l.glass?"Drink Dispenser":"Chemical Dispenser",children:[b.map(function(g,N){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:g.title,style:{"margin-left":"2px"},onClick:function(){function x(){return f("dispense",{reagent:g.id})}return x}()},N)}),v.map(function(g,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},N)})]})})},i=function(s,u){var d=(0,a.useBackend)(u),f=d.act,l=d.data,C=l.isBeakerLoaded,b=l.beakerCurrentVolume,v=l.beakerMaxVolume,h=l.beakerContents,g=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:l.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!C&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[b," / ",v," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!C,onClick:function(){function N(){return f("ejectBeaker")}return N}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:C,beakerContents:g,buttons:function(){function N(x){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function B(){return f("remove",{reagent:x.id,amount:-1})}return B}()}),y.map(function(B,L){return(0,e.createComponentVNode)(2,t.Button,{content:B,onClick:function(){function T(){return f("remove",{reagent:x.id,amount:B})}return T}()},L)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function B(){return f("remove",{reagent:x.id,amount:x.volume})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Floor",tooltip:"Set to "+Math.trunc(x.volume),icon:"arrow-circle-down",onClick:function(){function B(){return f("remove",{reagent:x.id,amount:-2})}return B}()})],0)}return N}()})})})}},13146:function(I,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(85870),S=n(98595),y=r.ChemHeater=function(){function p(i,c){return(0,e.createComponentVNode)(2,S.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,V)]})})})}return p}(),k=function(i,c){var s=(0,t.useBackend)(c),u=s.act,d=s.data,f=d.targetTemp,l=d.targetTempReached,C=d.autoEject,b=d.isActive,v=d.currentTemp,h=d.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){function g(){return u("toggle_autoeject")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{content:b?"On":"Off",icon:"power-off",selected:b,disabled:!h,onClick:function(){function g(){return u("toggle_on")}return g}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(f,0),minValue:0,maxValue:1e3,onDrag:function(){function g(N,x){return u("adjust_temperature",{target:x})}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:l?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v,format:function(){function g(N){return(0,a.toFixed)(N)+" K"}return g}()})||"\u2014"})]})})})},V=function(i,c){var s=(0,t.useBackend)(c),u=s.act,d=s.data,f=d.isBeakerLoaded,l=d.beakerCurrentVolume,C=d.beakerMaxVolume,b=d.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!f&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[l," / ",C," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function v(){return u("eject_beaker")}return v}()})]}),children:(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:f,beakerContents:b})})})}},56541:function(I,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(85870),S=n(3939),y=n(35840),k=["icon"];function V(B,L){if(B==null)return{};var T={};for(var E in B)if({}.hasOwnProperty.call(B,E)){if(L.includes(E))continue;T[E]=B[E]}return T}function p(B,L){B.prototype=Object.create(L.prototype),B.prototype.constructor=B,i(B,L)}function i(B,L){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,E){return T.__proto__=E,T},i(B,L)}var c=[1,5,10],s=function(L,T){var E=(0,a.useBackend)(T),w=E.act,A=E.data,O=L.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:A.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:O.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(O.desc||"").length>0?O.desc:"N/A"}),O.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:O.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:O.blood_dna})],4),!A.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:A.printing?"spinner":"print",disabled:A.printing,iconSpin:!!A.printing,ml:"0.5rem",content:"Print",onClick:function(){function M(){return w("print",{idx:O.idx,beaker:L.args.beaker})}return M}()})]})})})})},u=function(B){return B[B.ToDisposals=0]="ToDisposals",B[B.ToBeaker=1]="ToBeaker",B}(u||{}),d=r.ChemMaster=function(){function B(L,T){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,x)]})})]})}return B}(),f=function(L,T){var E=(0,a.useBackend)(T),w=E.act,A=E.data,O=A.beaker,M=A.beaker_reagents,P=A.buffer_reagents,R=P.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:R?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!O,content:"Eject and Clear Buffer",onClick:function(){function F(){return w("eject")}return F}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!O,content:"Eject and Clear Buffer",onClick:function(){function F(){return w("eject")}return F}()}),children:O?(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:!0,beakerContents:M,buttons:function(){function F(_,U){return(0,e.createComponentVNode)(2,t.Box,{mb:U0?(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:!0,beakerContents:M,buttons:function(){function P(R,F){return(0,e.createComponentVNode)(2,t.Box,{mb:F0&&(R=P.map(function(F){var _=F.id,U=F.sprite;return(0,e.createComponentVNode)(2,g,{icon:U,color:"translucent",onClick:function(){function W(){return w("set_sprite_style",{production_mode:O,style:_})}return W}(),selected:M===_},_)})),(0,e.createComponentVNode)(2,h,{productionData:L.productionData,children:R&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:R})})},x=function(L,T){var E=(0,a.useBackend)(T),w=E.act,A=E.data,O=A.loaded_pill_bottle_style,M=A.containerstyles,P=A.loaded_pill_bottle,R={width:"20px",height:"20px"},F=M.map(function(_){var U=_.color,W=_.name,$=O===U;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:R.width,height:R.height},onClick:function(){function Y(){return w("set_container_style",{style:U})}return Y}(),icon:$&&"check",iconStyle:{position:"relative","z-index":1},tooltip:W,tooltipPosition:"top",children:[!$&&(0,e.createVNode)(1,"div",null,null,1,{style:{display:"inline-block"}}),(0,e.createVNode)(1,"span","Button",null,1,{style:{display:"inline-block",position:"absolute",top:0,left:0,margin:0,padding:0,width:R.width,height:R.height,"background-color":U,opacity:.6,filter:"alpha(opacity=60)"}})]},U)});return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Container Customization",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!P,content:"Eject Container",onClick:function(){function _(){return w("ejectp")}return _}()}),children:P?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:R.width,height:R.height},icon:"tint-slash",onClick:function(){function _(){return w("clear_container_style")}return _}(),selected:!O,tooltip:"Default",tooltipPosition:"top"}),F]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,S.modalRegisterBodyOverride)("analyze",s)},37173:function(I,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(76910),S=n(3939),y=n(98595),k=n(79140),V=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=C.args,x=N.activerecord,B=N.realname,L=N.health,T=N.unidentity,E=N.strucenzymes,w=L.split(" - ");return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",pb:"1rem",title:"Records of "+B,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:B}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Damage",children:w.length>1?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:m.COLORS.damageType.oxy,inline:!0,children:w[0]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:m.COLORS.damageType.toxin,inline:!0,children:w[2]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:m.COLORS.damageType.brute,inline:!0,children:w[3]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:m.COLORS.damageType.burn,inline:!0,children:w[1]})],4):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Unknown"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:T}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:E}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disk",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!g.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){function A(){return h("disk",{option:"load"})}return A}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){function A(){return h("disk",{option:"save",savetype:"ui"})}return A}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){function A(){return h("disk",{option:"save",savetype:"ue"})}return A}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){function A(){return h("disk",{option:"save",savetype:"se"})}return A}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!g.podready,icon:"user-plus",content:"Clone",onClick:function(){function A(){return h("clone",{ref:x})}return A}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"Delete",onClick:function(){function A(){return h("del_rec")}return A}()})]})]})})},p=r.CloningConsole=function(){function l(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.menu;return(0,S.modalRegisterBodyOverride)("view_rec",V),(0,e.createComponentVNode)(2,y.Window,{width:640,height:520,children:[(0,e.createComponentVNode)(2,S.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,y.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,flexGrow:"1",children:(0,e.createComponentVNode)(2,c)})]})]})}return l}(),i=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.menu;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===1,icon:"home",onClick:function(){function x(){return h("menu",{num:1})}return x}(),children:"Main"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===2,icon:"folder",onClick:function(){function x(){return h("menu",{num:2})}return x}(),children:"Records"})]})},c=function(C,b){var v=(0,t.useBackend)(b),h=v.data,g=h.menu,N;return g===1?N=(0,e.createComponentVNode)(2,s):g===2&&(N=(0,e.createComponentVNode)(2,u)),N},s=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.loading,x=g.scantemp,B=g.occupant,L=g.locked,T=g.can_brainscan,E=g.scan_mode,w=g.numberofpods,A=g.pods,O=g.selected_pod,M=L&&!!B;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Scanner",level:"2",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Scanner Lock:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,selected:M,icon:M?"toggle-on":"toggle-off",content:M?"Engaged":"Disengaged",onClick:function(){function P(){return h("lock")}return P}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:M||!B,icon:"user-slash",content:"Eject Occupant",onClick:function(){function P(){return h("eject")}return P}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:N?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"spinner",spin:!0}),"\xA0 Scanning..."]}):(0,e.createComponentVNode)(2,o.Box,{color:x.color,children:x.text})}),!!T&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scan Mode",children:(0,e.createComponentVNode)(2,o.Button,{icon:E?"brain":"male",content:E?"Brain":"Body",onClick:function(){function P(){return h("toggle_mode")}return P}()})})]}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B||N,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){function P(){return h("scan")}return P}()})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Pods",level:"2",children:w?A.map(function(P,R){var F;return P.status==="cloning"?F=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:P.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,a.round)(P.progress,0)+"%"})}):P.status==="mess"?F=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):F=(0,e.createComponentVNode)(2,o.Button,{selected:O===P.pod,icon:O===P.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){function _(){return h("selectpod",{ref:P.pod})}return _}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,k.resolveAsset)("pod_"+P.status+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["Pod #",R+1]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:P.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:P.biomass>=150?"circle":"circle-o"}),"\xA0",P.biomass]}),F]},R)}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},u=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.records;return N.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:N.map(function(x,B){return(0,e.createComponentVNode)(2,o.Button,{icon:"user",mb:"0.5rem",content:x.realname,onClick:function(){function L(){return h("view_rec",{ref:x.record})}return L}()},B)})}):(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No records found."]})})},d=function(C,b){var v,h=(0,t.useBackend)(b),g=h.act,N=h.data,x=N.temp;if(!(!x||!x.text||x.text.length<=0)){var B=(v={},v[x.style]=!0,v);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.NoticeBox,Object.assign({},B,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",children:x.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function L(){return g("cleartemp")}return L}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},f=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.scanner,x=g.numberofpods,B=g.autoallowed,L=g.autoprocess,T=g.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:(0,e.createFragment)([!!B&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Auto-processing:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:L?"Enabled":"Disabled",onClick:function(){function E(){return h("autoprocess",{on:L?0:1})}return E}()})],4),(0,e.createComponentVNode)(2,o.Button,{disabled:!T,icon:"eject",content:"Eject Disk",onClick:function(){function E(){return h("disk",{option:"eject"})}return E}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanner",children:N?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Connected"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Not connected!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pods",children:x?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[x," connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})})]})})}},18259:function(I,r,n){"use strict";r.__esModule=!0,r.CoinMint=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(98595),S=r.CoinMint=function(){function y(k,V){var p=(0,t.useBackend)(V),i=p.act,c=p.data,s=c.materials,u=c.moneyBag,d=c.moneyBagContent,f=c.moneyBagMaxContent,l=(u?210:138)+Math.ceil(s.length/4)*64;return(0,e.createComponentVNode)(2,m.Window,{width:256,height:l,title:"\u041C\u043E\u043D\u0435\u0442\u043D\u044B\u0439 \u043F\u0440\u0435\u0441\u0441",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.NoticeBox,{m:0,info:!0,children:["\u041F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u043E \u043C\u043E\u043D\u0435\u0442: ",c.totalCoins]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0422\u0438\u043F \u041C\u043E\u043D\u0435\u0442",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",color:c.active&&"bad",tooltip:!u&&"\u041D\u0443\u0436\u0435\u043D \u0434\u0435\u043D\u0435\u0436\u043D\u044B\u0439 \u043C\u0435\u0448\u043E\u043A",disabled:!u,onClick:function(){function C(){return i("activate")}return C}()}),children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:c.maxMaterials,value:c.totalMaterials})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",tooltip:"\u0418\u0437\u0432\u0432\u043B\u0435\u0447\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u044B\u0439 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B",onClick:function(){function C(){return i("ejectMat")}return C}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:s.map(function(C){return(0,e.createComponentVNode)(2,o.Button,{bold:!0,inline:!0,m:.2,textAlign:"center",color:"translucent",selected:C.id===c.chosenMaterial,tooltip:C.name,content:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",C.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:C.amount})]}),onClick:function(){function b(){return i("selectMaterial",{material:C.id})}return b}()},C.id)})})]})})}),!!u&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"\u0414\u0435\u043D\u0435\u0436\u043D\u044B\u0439 \u043C\u0435\u0448\u043E\u043A",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C",disabled:c.active,onClick:function(){function C(){return i("ejectBag")}return C}()}),children:(0,e.createComponentVNode)(2,o.ProgressBar,{width:"100%",minValue:0,maxValue:f,value:d,children:[d," / ",f]})})})]})})})}return y}()},93858:function(I,r,n){"use strict";r.__esModule=!0,r.HexColorInput=r.ColorSelector=r.ColorPickerModal=r.ColorInput=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(36036),m=n(98595),S=n(44879),y=n(14448),k=n(4454),V=n(35840),p=n(9394),i=n(19203),c=["prefixed","alpha","color","fluid","onChange"];/** * @file * @copyright 2023 itsmeow * @license MIT - */function s(T,E){T.prototype=Object.create(E.prototype),T.prototype.constructor=T,l(T,E)}function l(T,E){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,A){return w.__proto__=A,w},l(T,E)}function d(T,E){if(T==null)return{};var w={};for(var A in T)if({}.hasOwnProperty.call(T,A)){if(E.includes(A))continue;w[A]=T[A]}return w}var f=r.ColorPickerModal=function(){function T(E,w){var A=(0,t.useBackend)(w),O=A.data,M=O.timeout,P=O.message,R=O.title,F=O.autofocus,_=O.default_color,U=_===void 0?"#000000":_,W=(0,t.useLocalState)(w,"color_picker_choice",(0,y.hexToHsva)(U)),$=W[0],G=W[1];return(0,e.createComponentVNode)(2,m.Window,{height:400,title:R,width:600,theme:"generic",children:[!!M&&(0,e.createComponentVNode)(2,a.Loader,{value:M}),(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[P&&(0,e.createComponentVNode)(2,o.Stack.Item,{m:1,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",overflow:"hidden",children:P})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[!!F&&(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,u,{color:$,setColor:G,defaultColor:U})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i.InputButtons,{input:(0,y.hsvaToHex)($)})})]})})]})}return T}(),u=r.ColorSelector=function(){function T(E,w){var A=E.color,O=E.setColor,M=E.defaultColor,P=function(){function _(U){O(function(W){return Object.assign({},W,U)})}return _}(),R=(0,y.hsvaToRgba)(A),F=(0,y.hsvaToHex)(A);return(0,e.createComponentVNode)(2,o.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{mr:2,children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createVNode)(1,"div","react-colorful",[(0,e.createComponentVNode)(2,g,{hsva:A,onChange:P}),(0,e.createComponentVNode)(2,N,{hue:A.h,onChange:P,className:"react-colorful__last-control"})],4)}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Current"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Previous"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Tooltip,{content:F,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:F})}),(0,e.createComponentVNode)(2,o.Tooltip,{content:M,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:M})})]})]})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,fontSize:"15px",lineHeight:"24px",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"Hex:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"24px",children:(0,e.createComponentVNode)(2,v,{fluid:!0,color:(0,y.hsvaToHex)(A).substring(1),onChange:function(){function _(U){p.logger.info(U),O((0,y.hexToHsva)(U))}return _}(),prefixed:!0})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"H:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N,{hue:A.h,onChange:P})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,C,{value:A.h,callback:function(){function _(U,W){return P({h:W})}return _}(),max:360,unit:"\xB0"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"S:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,x,{color:A,onChange:P})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,C,{value:A.s,callback:function(){function _(U,W){return P({s:W})}return _}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"V:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,B,{color:A,onChange:P})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,C,{value:A.v,callback:function(){function _(U,W){return P({v:W})}return _}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"R:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:A,onChange:P,target:"r"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,C,{value:R.r,callback:function(){function _(U,W){R.r=W,P((0,y.rgbaToHsva)(R))}return _}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"G:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:A,onChange:P,target:"g"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,C,{value:R.g,callback:function(){function _(U,W){R.g=W,P((0,y.rgbaToHsva)(R))}return _}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"B:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:A,onChange:P,target:"b"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,C,{value:R.b,callback:function(){function _(U,W){R.b=W,P((0,y.rgbaToHsva)(R))}return _}(),max:255})})]})})]})})]})}return T}(),C=function(E){var w=E.value,A=E.callback,O=E.min,M=O===void 0?0:O,P=E.max,R=P===void 0?100:P,F=E.unit;return(0,e.createComponentVNode)(2,o.NumberInput,{width:"70px",value:Math.round(w),step:1,minValue:M,maxValue:R,onChange:A,unit:F})},b=function(E){return"#"+E},v=r.HexColorInput=function(){function T(E){var w=E.prefixed,A=E.alpha,O=E.color,M=E.fluid,P=E.onChange,R=d(E,c),F=function(){function U(W){return W.replace(/([^0-9A-F]+)/gi,"").substring(0,A?8:6)}return U}(),_=function(){function U(W){return(0,y.validHex)(W,A)}return U}();return(0,e.normalizeProps)((0,e.createComponentVNode)(2,h,Object.assign({},R,{fluid:M,color:O,onChange:P,escape:F,format:w?b:void 0,validate:_})))}return T}(),h=r.ColorInput=function(T){function E(A){var O;return O=T.call(this)||this,O.props=void 0,O.state=void 0,O.handleInput=function(M){var P=O.props.escape(M.currentTarget.value);O.setState({localValue:P})},O.handleBlur=function(M){M.currentTarget&&(O.props.validate(M.currentTarget.value)?O.props.onChange(O.props.escape?O.props.escape(M.currentTarget.value):M.currentTarget.value):O.setState({localValue:O.props.escape(O.props.color)}))},O.props=A,O.state={localValue:O.props.escape(O.props.color)},O}s(E,T);var w=E.prototype;return w.componentDidUpdate=function(){function A(O,M){O.color!==this.props.color&&this.setState({localValue:this.props.escape(this.props.color)})}return A}(),w.render=function(){function A(){return(0,e.createComponentVNode)(2,o.Box,{className:(0,V.classes)(["Input",this.props.fluid&&"Input--fluid"]),children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{value:this.props.format?this.props.format(this.state.localValue):this.state.localValue,spellCheck:"false",onInput:this.handleInput,onBlur:this.handleBlur})]})}return A}(),E}(e.Component),g=function(E){var w=E.hsva,A=E.onChange,O=function(F){A({s:F.left*100,v:100-F.top*100})},M=function(F){A({s:(0,S.clamp)(w.s+F.left*100,0,100),v:(0,S.clamp)(w.v-F.top*100,0,100)})},P={"background-color":(0,y.hsvaToHslString)({h:w.h,s:100,v:100,a:1})+" !important"};return(0,e.createVNode)(1,"div","react-colorful__saturation_value",(0,e.createComponentVNode)(2,k.Interactive,{onMove:O,onKey:M,"aria-label":"Color","aria-valuetext":"Saturation "+Math.round(w.s)+"%, Brightness "+Math.round(w.v)+"%",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation_value-pointer",top:1-w.v/100,left:w.s/100,color:(0,y.hsvaToHslString)(w)})}),2,{style:P})},N=function(E){var w=E.className,A=E.hue,O=E.onChange,M=function(_){O({h:360*_.left})},P=function(_){O({h:(0,S.clamp)(A+_.left*360,0,360)})},R=(0,V.classes)(["react-colorful__hue",w]);return(0,e.createVNode)(1,"div",R,(0,e.createComponentVNode)(2,k.Interactive,{onMove:M,onKey:P,"aria-label":"Hue","aria-valuenow":Math.round(A),"aria-valuemax":"360","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__hue-pointer",left:A/360,color:(0,y.hsvaToHslString)({h:A,s:100,v:100,a:1})})}),2)},x=function(E){var w=E.className,A=E.color,O=E.onChange,M=function(_){O({s:100*_.left})},P=function(_){O({s:(0,S.clamp)(A.s+_.left*100,0,100)})},R=(0,V.classes)(["react-colorful__saturation",w]);return(0,e.createVNode)(1,"div",R,(0,e.createComponentVNode)(2,k.Interactive,{style:{background:"linear-gradient(to right, "+(0,y.hsvaToHslString)({h:A.h,s:0,v:A.v,a:1})+", "+(0,y.hsvaToHslString)({h:A.h,s:100,v:A.v,a:1})+")"},onMove:M,onKey:P,"aria-label":"Saturation","aria-valuenow":Math.round(A.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation-pointer",left:A.s/100,color:(0,y.hsvaToHslString)({h:A.h,s:A.s,v:A.v,a:1})})}),2)},B=function(E){var w=E.className,A=E.color,O=E.onChange,M=function(_){O({v:100*_.left})},P=function(_){O({v:(0,S.clamp)(A.v+_.left*100,0,100)})},R=(0,V.classes)(["react-colorful__value",w]);return(0,e.createVNode)(1,"div",R,(0,e.createComponentVNode)(2,k.Interactive,{style:{background:"linear-gradient(to right, "+(0,y.hsvaToHslString)({h:A.h,s:A.s,v:0,a:1})+", "+(0,y.hsvaToHslString)({h:A.h,s:A.s,v:100,a:1})+")"},onMove:M,onKey:P,"aria-label":"Value","aria-valuenow":Math.round(A.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__value-pointer",left:A.v/100,color:(0,y.hsvaToHslString)({h:A.h,s:A.s,v:A.v,a:1})})}),2)},L=function(E){var w=E.className,A=E.color,O=E.onChange,M=E.target,P=(0,y.hsvaToRgba)(A),R=function(G){P[M]=G,O((0,y.rgbaToHsva)(P))},F=function(G){R(255*G.left)},_=function(G){R((0,S.clamp)(P[M]+G.left*255,0,255))},U=(0,V.classes)(["react-colorful__"+M,w]),W=M==="r"?"rgb("+Math.round(P.r)+",0,0)":M==="g"?"rgb(0,"+Math.round(P.g)+",0)":"rgb(0,0,"+Math.round(P.b)+")";return(0,e.createVNode)(1,"div",U,(0,e.createComponentVNode)(2,k.Interactive,{onMove:F,onKey:_,"aria-valuenow":P[M],"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__"+M+"-pointer",left:P[M]/255,color:W})}),2)}},63818:function(I,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.CommunicationsComputer=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c;i.authenticated?i.is_ai?c="AI":i.authenticated===1?c="Command":i.authenticated===2?c="Captain":c="ERROR: Report This Bug!":c="Not Logged In";var s="View ("+i.messages.length+")",l=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i.is_ai&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access Level",children:"AI"})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authenticated?"sign-out-alt":"id-card",selected:i.authenticated,content:i.authenticated?"Log Out ("+c+")":"Log In",onClick:function(){function x(){return p("auth")}return x}()})})})}),!!i.esc_section&&(0,e.createComponentVNode)(2,t.Section,{title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!i.esc_status&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:i.esc_status}),!!i.esc_callable&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!i.authenticated,onClick:function(){function x(){return p("callshuttle")}return x}()})}),!!i.esc_recallable&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!i.authenticated||i.is_ai,onClick:function(){function x(){return p("cancelshuttle")}return x}()})}),!!i.lastCallLoc&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:i.lastCallLoc})]})})],0),d="Make Priority Announcement";i.msg_cooldown>0&&(d+=" ("+i.msg_cooldown+"s)");var f=i.emagged?"Message [UNKNOWN]":"Message CentComm",u="Request Authentication Codes";i.cc_cooldown>0&&(f+=" ("+i.cc_cooldown+"s)",u+=" ("+i.cc_cooldown+"s)");var C=i.str_security_level,b=i.levels.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{icon:x.icon,content:x.name,disabled:!i.authmax||x.id===i.security_level,onClick:function(){function B(){return p("newalertlevel",{level:x.id})}return B}()},x.name)}),v=i.stat_display.presets.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.label,selected:x.name===i.stat_display.type,disabled:!i.authenticated,onClick:function(){function B(){return p("setstat",{statdisp:x.name})}return B}()},x.name)}),h=i.stat_display.alerts.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.label,selected:x.alert===i.stat_display.icon,disabled:!i.authenticated,onClick:function(){function B(){return p("setstat",{statdisp:"alert",alert:x.alert})}return B}()},x.alert)}),g;if(i.current_message_title)g=(0,e.createComponentVNode)(2,t.Section,{title:i.current_message_title,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!i.authenticated,onClick:function(){function x(){return p("messagelist")}return x}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:i.current_message})});else{var N=i.messages.map(function(x){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:x.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!i.authenticated||i.current_message_title===x.title,onClick:function(){function B(){return p("messagelist",{msgid:x.id})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete",disabled:!i.authenticated,onClick:function(){function B(){return p("delmessage",{msgid:x.id})}return B}()})]},x.id)});g=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function x(){return p("main")}return x}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:N})})}switch(i.menu_state){case 1:return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[l,(0,e.createComponentVNode)(2,t.Section,{title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:i.security_level_color,children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:b}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:d,disabled:!i.authmax||i.msg_cooldown>0,onClick:function(){function x(){return p("announce")}return x}()})}),!!i.emagged&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:f,disabled:!i.authmax||i.cc_cooldown>0,onClick:function(){function x(){return p("MessageSyndicate")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!i.authmax,onClick:function(){function x(){return p("RestoreBackup")}return x}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:f,disabled:!i.authmax||i.cc_cooldown>0,onClick:function(){function x(){return p("MessageCentcomm")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:u,disabled:!i.authmax||i.cc_cooldown>0,onClick:function(){function x(){return p("nukerequest")}return x}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!i.authenticated,onClick:function(){function x(){return p("status")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:s,disabled:!i.authenticated,onClick:function(){function x(){return p("messagelist")}return x}()})})]})})]})});case 2:return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[l,(0,e.createComponentVNode)(2,t.Section,{title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function x(){return p("main")}return x}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:i.stat_display.line_1,disabled:!i.authenticated,onClick:function(){function x(){return p("setmsg1")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:i.stat_display.line_2,disabled:!i.authenticated,onClick:function(){function x(){return p("setmsg2")}return x}()})})]})})]})});case 3:return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[l,g]})});default:return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[l,"ERRROR. Unknown menu_state: ",i.menu_state,"Please report this to NT Technical Support."]})})}}return S}()},21813:function(I,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(73379),S=n(98595);function y(b,v){b.prototype=Object.create(v.prototype),b.prototype.constructor=b,k(b,v)}function k(b,v){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,g){return h.__proto__=g,h},k(b,v)}var V={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},p=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],i=r.Contractor=function(){function b(v,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B;x.unauthorized?B=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,u,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function w(){}return w}()})}):x.load_animation_completed?B=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:x.page===1?(0,e.createComponentVNode)(2,l,{height:"100%"}):(0,e.createComponentVNode)(2,f,{height:"100%"})})],4):B=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,u,{height:"100%",allMessages:p,finishedTimeout:3e3,onFinished:function(){function w(){return N("complete_load_animation")}return w}()})});var L=(0,t.useLocalState)(h,"viewingPhoto",""),T=L[0],E=L[1];return(0,e.createComponentVNode)(2,S.Window,{width:500,height:600,theme:"syndicate",children:[T&&(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,S.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:B})})]})}return b}(),c=function(v,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B=x.tc_available,L=x.tc_paid_out,T=x.completed_contracts,E=x.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[E," Rep"]})},v,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[B," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:B<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function w(){return N("claim")}return w}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[L," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",display:"inline-block",children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},s=function(v,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B=x.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},v,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===1,onClick:function(){function L(){return N("page",{page:1})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===2,onClick:function(){function L(){return N("page",{page:2})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},l=function(v,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B=x.contracts,L=x.contract_active,T=x.can_extract,E=!!L&&B.filter(function(P){return P.status===1})[0],w=E&&E.time_left>0,A=(0,t.useLocalState)(h,"viewingPhoto",""),O=A[0],M=A[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!T||w,icon:"parachute-box",content:["Call Extraction",w&&(0,e.createComponentVNode)(2,m.Countdown,{timeLeft:E.time_left,format:function(){function P(R,F){return" ("+F.substr(3)+")"}return P}()})],onClick:function(){function P(){return N("extract")}return P}()})},v,{children:B.slice().sort(function(P,R){return P.status===1?-1:R.status===1?1:P.status-R.status}).map(function(P){var R;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:P.status===1&&"good",children:P.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:P.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function F(){return M("target_photo_"+P.uid+".png")}return F}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!V[P.status]&&(0,e.createComponentVNode)(2,o.Box,{color:V[P.status][1],display:"inline-block",mt:P.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:V[P.status][0]}),P.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function F(){return N("abort")}return F}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[P.fluff_message,!!P.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",P.completed_time]}),!!P.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!P.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",P.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",d(P)]}),(R=P.difficulties)==null?void 0:R.map(function(F,_){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!L,content:F.name+" ("+F.reward+" TC)",onClick:function(){function U(){return N("activate",{uid:P.uid,difficulty:_+1})}return U}()},_)}),!!P.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[P.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(P.objective.rewards.tc||0)+" TC",",\xA0",(P.objective.rewards.credits||0)+" Credits",")"]})]})]})},P.uid)})})))},d=function(v){if(!(!v.objective||v.status>1)){var h=v.objective.locs.user_area_id,g=v.objective.locs.user_coords,N=v.objective.locs.target_area_id,x=v.objective.locs.target_coords,B=h===N;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:B?"dot-circle-o":"arrow-alt-circle-right-o",color:B?"green":"yellow",rotation:B?null:-(0,a.rad2deg)(Math.atan2(x[1]-g[1],x[0]-g[0])),lineHeight:B?null:"0.85",size:"1.5"})})}},f=function(v,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B=x.rep,L=x.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},v,{children:L.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,buttons:T.refundable&&(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Refund ("+T.cost+" Rep)",onClick:function(){function E(){return N("refund",{uid:T.uid})}return E}()}),children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:B-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},u=function(b){function v(g){var N;return N=b.call(this,g)||this,N.timer=null,N.state={currentIndex:0,currentDisplay:[]},N}y(v,b);var h=v.prototype;return h.tick=function(){function g(){var N=this.props,x=this.state;if(x.currentIndex<=N.allMessages.length){this.setState(function(L){return{currentIndex:L.currentIndex+1}});var B=x.currentDisplay;B.push(N.allMessages[x.currentIndex])}else clearTimeout(this.timer),setTimeout(N.onFinished,N.finishedTimeout)}return g}(),h.componentDidMount=function(){function g(){var N=this,x=this.props.linesPerSecond,B=x===void 0?2.5:x;this.timer=setInterval(function(){return N.tick()},1e3/B)}return g}(),h.componentWillUnmount=function(){function g(){clearTimeout(this.timer)}return g}(),h.render=function(){function g(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(N){return(0,e.createFragment)([N,(0,e.createVNode)(1,"br")],0,N)})})}return g}(),v}(e.Component),C=function(v,h){var g=(0,t.useLocalState)(h,"viewingPhoto",""),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:N}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function B(){return x("")}return B}()})]})}},54151:function(I,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ConveyorSwitch=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.slowFactor,s=i.minSpeed,l=i.maxSpeed,d=i.oneWay,f=i.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:f>0?"forward":f<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!d,onClick:function(){function u(){return p("toggleOneWay")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function u(){return p("slowFactor",{value:c-.5})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function u(){return p("slowFactor",{value:c-.1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:c,fillValue:c,minValue:s,maxValue:l,step:.1,format:function(){function u(C){return C+"s."}return u}(),onChange:function(){function u(C,b){return p("slowFactor",{value:b})}return u}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function u(){return p("slowFactor",{value:c+.1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function u(){return p("slowFactor",{value:c+.5})}return u}()})," "]})]})})]})})})})}return S}()},73169:function(I,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(89005),a=n(88510),t=n(25328),o=n(72253),m=n(36036),S=n(36352),y=n(76910),k=n(98595),V=function(C,b){return C.dead?"Deceased":parseInt(C.health,10)<=b?"Critical":parseInt(C.stat,10)===1?"Unconscious":"Living"},p=function(C,b){return C.dead?"red":parseInt(C.health,10)<=b?"orange":parseInt(C.stat,10)===1?"blue":"green"},i=r.CrewMonitor=function(){function u(C,b){var v=(0,o.useBackend)(b),h=v.act,g=v.data,N=(0,o.useLocalState)(b,"tabIndex",g.IndexToggler),x=N[0],B=N[1],L=function(){function T(E){switch(E){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,d);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,f);default:return"WE SHOULDN'T BE HERE!"}}return T}();return(0,e.createComponentVNode)(2,k.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,m.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,m.Tabs,{children:[g.isBS?(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:x===0,onClick:function(){function T(){return B(0)}return T}(),children:[(0,e.createComponentVNode)(2,m.Icon,{name:"table"})," Command Data View"]},"ComDataView"):null,g.isBP?(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:x===1,onClick:function(){function T(){return B(1)}return T}(),children:[(0,e.createComponentVNode)(2,m.Icon,{name:"table"})," Security Data View"]},"SecDataView"):null,(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:x===2,onClick:function(){function T(){return B(2)}return T}(),children:[(0,e.createComponentVNode)(2,m.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:x===3,onClick:function(){function T(){return B(3)}return T}(),children:[(0,e.createComponentVNode)(2,m.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),L(x)]})})})}return u}(),c=function(C){var b=C.crewData,v=C.context,h=(0,o.useBackend)(v),g=h.act,N=h.data,x=(0,a.sortBy)(function(w){return w.name})(b||[]),B=(0,o.useLocalState)(v,"search",""),L=B[0],T=B[1],E=(0,t.createSearch)(L,function(w){return w.name+"|"+w.assignment+"|"+w.area});return(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function w(A,O){return T(O)}return w}()}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,m.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Location"})]}),x.filter(E).map(function(w){return(0,e.createComponentVNode)(2,m.Table.Row,{bold:!!w.is_command,children:[(0,e.createComponentVNode)(2,S.TableCell,{children:[w.name," (",w.assignment,")"]}),(0,e.createComponentVNode)(2,S.TableCell,{children:[(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:p(w,N.critThreshold),children:V(w,N.critThreshold)}),w.sensor_type>=2?(0,e.createComponentVNode)(2,m.Box,{inline:!0,children:["(",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.oxy,children:w.oxy}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.toxin,children:w.tox}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.burn,children:w.fire}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.brute,children:w.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,S.TableCell,{children:w.sensor_type===3?N.isAI?(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"location-arrow",content:w.area+" ("+w.x+", "+w.y+")",onClick:function(){function A(){return g("track",{track:w.ref})}return A}()}):w.area+" ("+w.x+", "+w.y+")":"Not Available"})]},w.ref)})]})]})},s=function(C,b){var v=(0,o.useBackend)(b),h=v.act,g=v.data,N=g.crewmembers||[];return(0,e.createComponentVNode)(2,c,{crewData:N,context:b})},l=function(C,b){var v=(0,o.useBackend)(b),h=v.act,g=v.data,N=g.crewmembers.filter(function(x){return x.is_command})||[];return(0,e.createComponentVNode)(2,c,{crewData:N,context:b})},d=function(C,b){var v=(0,o.useBackend)(b),h=v.act,g=v.data,N=g.crewmembers.filter(function(x){return x.is_security})||[];return(0,e.createComponentVNode)(2,c,{crewData:N,context:b})},f=function(C,b){var v=(0,o.useBackend)(b),h=v.act,g=v.data,N=g.stationLevelNum,x=g.stationLevelName,B=(0,o.useLocalState)(b,"zoom",1),L=B[0],T=B[1],E=(0,o.useLocalState)(b,"z_current",N[0]),w=E[0],A=E[1],O=function(F){return F.is_command&&g.isBS||F.is_security&&g.isBP?"square":"circle"},M=function(F){return F.is_command&&g.isBS||F.is_security&&g.isBP?10:6},P=function(F,_){return F.is_command&&g.isBS||F.is_security&&g.isBP?F.dead?"red":parseInt(F.health,10)<=_?"orange":parseInt(F.stat,10)===1?"blue":"violet":p(F,_)};return(0,e.createComponentVNode)(2,m.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,m.NanoMap,{onZoom:function(){function R(F){return T(F)}return R}(),zLevels:N,zNames:x,z_current:w,setZCurrent:A,children:g.crewmembers.filter(function(R){return R.sensor_type===3}).map(function(R){return(0,e.createComponentVNode)(2,m.NanoMap.Marker,{x:R.x,y:R.y,z:R.z,z_current:w,zoom:L,icon:O(R),size:M(R),tooltip:R.name+" ("+R.assignment+")",color:P(R,g.critThreshold),onClick:function(){function F(){g.isAI&&h("track",{track:R.ref})}return F}()},R.ref)})})})}},63987:function(I,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(89005),a=n(41260),t=n(72253),o=n(36036),m=n(98595),S=[{label:"\u0410\u0441\u0444\u0438\u043A\u0441\u0438\u044F",type:"oxyLoss"},{label:"\u0418\u043D\u0442\u043E\u043A\u0441\u0438\u043A\u0430\u0446\u0438\u044F",type:"toxLoss"},{label:"\u0420\u0430\u043D\u044B",type:"bruteLoss"},{label:"\u041E\u0436\u043E\u0433\u0438",type:"fireLoss"}],y=[["good","\u0412 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u0438"],["average","\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F"],["bad","\u0422\u0420\u0423\u041F"]],k=r.Cryo=function(){function i(c,s){return(0,e.createComponentVNode)(2,m.Window,{width:520,height:490,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return i}(),V=function(c,s){var l=(0,t.useBackend)(s),d=l.act,f=l.data,u=f.isOperating,C=f.hasOccupant,b=f.occupant,v=b===void 0?[]:b,h=f.cellTemperature,g=f.cellTemperatureStatus,N=f.isBeakerLoaded,x=f.auto_eject_healthy,B=f.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:2,children:(0,e.createComponentVNode)(2,o.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",fill:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",onClick:function(){function L(){return d("ejectOccupant")}return L}(),disabled:!C,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"}),children:C?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",children:v.name||"\u0418\u043C\u044F \u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:v.health,max:v.maxHealth,value:v.health/v.maxHealth,color:v.health>0?"good":"average",children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(v.health)})})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",color:y[v.stat][0],children:y[v.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(v.bodyTemperature)})," ","K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),S.map(function(L){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.label,children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:v[L.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(v[L.type])})})},L.id)})]}):(0,e.createComponentVNode)(2,o.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"\u041A\u0440\u0438\u043E\u043A\u0430\u043F\u0441\u0443\u043B\u0430",fill:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function L(){return d("ejectBeaker")}return L}(),disabled:!N,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C"}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0438\u0442\u0430\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",onClick:function(){function L(){return d(u?"switchOff":"switchOn")}return L}(),selected:u,children:u?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",color:g,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:h})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0410\u0432\u0442\u043E\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044B\u0445 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u043E\u0432",children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"toggle-on":"toggle-off",selected:x,onClick:function(){function L(){return d(x?"auto_eject_healthy_off":"auto_eject_healthy_on")}return L}(),children:x?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0410\u0432\u0442\u043E\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u043C\u0451\u0440\u0442\u0432\u044B\u0445 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u043E\u0432",children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function L(){return d(B?"auto_eject_dead_off":"auto_eject_dead_on")}return L}(),children:B?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})})]})})})]})},p=function(c,s){var l=(0,t.useBackend)(s),d=l.act,f=l.data,u=f.isBeakerLoaded,C=f.beakerLabel,b=f.beakerVolume;return u?(0,e.createFragment)([C?"\xAB"+C+"\xBB":(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u043F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u0430"}),(0,e.createComponentVNode)(2,o.Box,{color:!b&&"bad",children:b?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:b,format:function(){function v(h){var g=Math.round(h),N=(0,a.declensionRu)(g,"\u041E\u0441\u0442\u0430\u043B\u0430\u0441\u044C","\u041E\u0441\u0442\u0430\u043B\u0438\u0441\u044C","\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C"),x=(0,a.declensionRu)(g,"\u0435\u0434\u0438\u043D\u0438\u0446\u0430","\u0435\u0434\u0438\u043D\u0438\u0446\u044B","\u0435\u0434\u0438\u043D\u0438\u0446");return N+" "+g+" "+x}return v}()}):"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043F\u0443\u0441\u0442\u0430"})],0):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430"})}},86099:function(I,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(25328),S=r.CryopodConsole=function(){function V(p,i){var c=(0,a.useBackend)(i),s=c.data,l=s.account_name,d=s.allow_items;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(l||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,y),!!d&&(0,e.createComponentVNode)(2,k)]})})}return V}(),y=function(p,i){var c=(0,a.useBackend)(i),s=c.data,l=s.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:l.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(d,f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:d.rank},f)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},k=function(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.frozen_items,f=function(C){var b=C.toString();return b.startsWith("the ")&&(b=b.slice(4,b.length)),(0,m.toTitleCase)(b)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:d.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f(u.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function C(){return s("one_item",{item:u.uid})}return C}()})},u)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function u(){return s("all_items")}return u}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},94848:function(I,r,n){"use strict";r.__esModule=!0,r.Customat=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(98595),S=function(V,p){var i=(0,t.useBackend)(p),c=i.act,s=i.data,l=V.product,d=s.user,f=s.userMoney,u=s.vend_ready,C=l.price===0,b="ERROR!",v="";C?(b="FREE",v="arrow-circle-down"):(b=l.price,v="shopping-cart");var h=!u||l.stock===0||!C&&l.price>f;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+l.icon,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:l.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Box,{color:l.stock<=0&&"bad"||"good",children:[l.stock," in stock"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,disabled:h,icon:v,content:b,textAlign:"left",onClick:function(){function g(){return c("vend",{Key:l.Key})}return g}()})})]})},y=r.Customat=function(){function k(V,p){var i=(0,t.useBackend)(p),c=i.act,s=i.data,l=s.guestNotice,d=s.userMoney,f=s.user,u=s.products,C=s.vend_ready,b=s.panel_open,v=s.speaker;return(0,e.createComponentVNode)(2,m.Window,{width:470,height:600,title:"Customat",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"User",children:f&&(0,e.createComponentVNode)(2,o.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,f.name,0),", ",(0,e.createVNode)(1,"b",null,f.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[d,(0,e.createTextVNode)(" credits")],0),"."]})||(0,e.createComponentVNode)(2,o.Box,{color:"light-grey",children:l})}),!!b&&(0,e.createComponentVNode)(2,o.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,o.Button,{icon:v?"check":"volume-mute",selected:v,content:"Speaker",textAlign:"left",onClick:function(){function h(){return c("toggle_voice",{})}return h}()})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Products",fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:u.map(function(h){return(0,e.createComponentVNode)(2,S,{product:h,productStock:h.stock},h.name)})})})})]})})})}return k}()},12692:function(I,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(3939),S=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],k=[5,10,20,30,50],V=r.DNAModifier=function(){function h(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.irradiating,E=L.dnaBlockSize,w=L.occupant;N.dnaBlockSize=E,N.isDNAInvalid=!w.isViableSubject||!w.uniqueIdentity||!w.structuralEnzymes;var A;return T&&(A=(0,e.createComponentVNode)(2,b,{duration:T})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,m.ComplexModal),A,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i)})]})})]})}return h}(),p=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.locked,E=L.hasOccupant,w=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Engaged":"Disengaged",onClick:function(){function A(){return B("toggleLock")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E||T,icon:"user-slash",content:"Eject",onClick:function(){function A(){return B("ejectOccupant")}return A}()})],4),children:E?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:w.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:w.minHealth,max:w.maxHealth,value:w.health/w.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:S[w.stat][0],children:S[w.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),N.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:w.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:L.occupant.uniqueEnzymes?L.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},i=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.selectedMenuKey,E=L.hasOccupant,w=L.occupant;if(E){if(N.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var A;return T==="ui"?A=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)],4):T==="se"?A=(0,e.createFragment)([(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,l)],4):T==="buffer"?A=(0,e.createComponentVNode)(2,d):T==="rejuvenators"&&(A=(0,e.createComponentVNode)(2,C)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:y.map(function(O,M){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:O[2],selected:T===O[0],onClick:function(){function P(){return B("selectMenuKey",{key:O[0]})}return P}(),children:O[1]},M)})}),A]})},c=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.selectedUIBlock,E=L.selectedUISubBlock,w=L.selectedUITarget,A=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,v,{dnaString:A.uniqueIdentity,selectedBlock:T,selectedSubblock:E,blockSize:N.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:w,format:function(){function O(M){return M.toString(16).toUpperCase()}return O}(),ml:"0",onChange:function(){function O(M,P){return B("changeUITarget",{value:P})}return O}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function O(){return B("pulseUIRadiation")}return O}()})]})},s=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.selectedSEBlock,E=L.selectedSESubBlock,w=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,v,{dnaString:w.structuralEnzymes,selectedBlock:T,selectedSubblock:E,blockSize:N.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function A(){return B("pulseSERadiation")}return A}()})]})},l=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.radiationIntensity,E=L.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:T,popUpPosition:"right",ml:"0",onChange:function(){function w(A,O){return B("radiationIntensity",{value:O})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:E,popUpPosition:"right",ml:"0",onChange:function(){function w(A,O){return B("radiationDuration",{value:O})}return w}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function w(){return B("pulseRadiation")}return w}()})]})},d=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.buffers,E=T.map(function(w,A){return(0,e.createComponentVNode)(2,f,{id:A+1,name:"Buffer "+(A+1),buffer:w},A)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:E})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,u)})]})},f=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=g.id,E=g.name,w=g.buffer,A=L.isInjectorReady,O=E+(w.data?" - "+w.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:O,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!w.data,icon:"trash",content:"Clear",onClick:function(){function M(){return B("bufferOption",{option:"clear",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.data,icon:"pen",content:"Rename",onClick:function(){function M(){return B("bufferOption",{option:"changeLabel",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.data||!L.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function M(){return B("bufferOption",{option:"saveDisk",id:T})}return M}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"saveUI",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"saveUIAndUE",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"saveSE",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!L.hasDisk||!L.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"loadDisk",id:T})}return M}()})]}),!!w.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:w.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[w.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!w.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!A,icon:A?"syringe":"spinner",iconSpin:!A,content:"Injector",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"createInjector",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,icon:A?"syringe":"spinner",iconSpin:!A,content:"Block Injector",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"createInjector",id:T,block:1})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"transfer",id:T})}return M}()})]})],4)]}),!w.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},u=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.hasDisk,E=L.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!E.data,icon:"trash",content:"Wipe",onClick:function(){function w(){return B("wipeDisk")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function w(){return B("ejectDisk")}return w}()})],4),children:T?E.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:E.label?E.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:E.owner?E.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[E.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!E.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},C=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.isBeakerLoaded,E=L.beakerVolume,w=L.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function A(){return B("ejectBeaker")}return A}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[k.map(function(A,O){return(0,e.createComponentVNode)(2,t.Button,{disabled:A>E,icon:"syringe",content:A,onClick:function(){function M(){return B("injectRejuvenators",{amount:A})}return M}()},O)}),(0,e.createComponentVNode)(2,t.Button,{disabled:E<=0,icon:"syringe",content:"All",onClick:function(){function A(){return B("injectRejuvenators",{amount:E})}return A}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:w||"No label"}),E?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[E," unit",E===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},b=function(g,N){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),g.duration,(0,e.createTextVNode)(" second"),g.duration===1?"":"s"],0)})]})},v=function(g,N){for(var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=g.dnaString,E=g.selectedBlock,w=g.selectedSubblock,A=g.blockSize,O=g.action,M=T.split(""),P=0,R=[],F=function(){for(var W=_/A+1,$=[],G=function(){var pe=oe+1;$.push((0,e.createComponentVNode)(2,t.Button,{selected:E===W&&w===pe,content:M[_+oe],mb:"0",onClick:function(){function me(){return B(O,{block:W,subblock:pe})}return me}()}))},oe=0;oe0?"Yes":"No",selected:i.com>0,onClick:function(){function s(){return p("toggle_com")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Security",children:c.map(function(s,l){return(0,e.createComponentVNode)(2,t.Button,{selected:i.sec===s,content:s,onClick:function(){function d(){return p("set_sec",{set_sec:s})}return d}()},"sec"+s)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Medical",children:c.map(function(s,l){return(0,e.createComponentVNode)(2,t.Button,{selected:i.med===s,content:s,onClick:function(){function d(){return p("set_med",{set_med:s})}return d}()},"med"+s)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Engineering",children:c.map(function(s,l){return(0,e.createComponentVNode)(2,t.Button,{selected:i.eng===s,content:s,onClick:function(){function d(){return p("set_eng",{set_eng:s})}return d}()},"eng"+s)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Paranormal",children:c.map(function(s,l){return(0,e.createComponentVNode)(2,t.Button,{selected:i.par===s,content:s,onClick:function(){function d(){return p("set_par",{set_par:s})}return d}()},"par"+s)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitor",children:c.map(function(s,l){return(0,e.createComponentVNode)(2,t.Button,{selected:i.jan===s,content:s,onClick:function(){function d(){return p("set_jan",{set_jan:s})}return d}()},"jan"+s)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cyborg",children:c.map(function(s,l){return(0,e.createComponentVNode)(2,t.Button,{selected:i.cyb===s,content:s,onClick:function(){function d(){return p("set_cyb",{set_cyb:s})}return d}()},"cyb"+s)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Slots",children:(0,e.createComponentVNode)(2,t.Box,{color:i.total>i.spawnpoints?"red":"green",children:[i.total," total, versus ",i.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Send ERT",onClick:function(){function s(){return p("dispatch_ert")}return s}()})})]})})]})})}return S}()},82565:function(I,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(98595),S=r.Electropack=function(){function y(k,V){var p=(0,t.useBackend)(V),i=p.act,c=p.data,s=c.power,l=c.code,d=c.frequency,f=c.minFrequency,u=c.maxFrequency;return(0,e.createComponentVNode)(2,m.Window,{width:360,height:150,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,onClick:function(){function C(){return i("power")}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function C(){return i("reset",{reset:"freq"})}return C}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:f/10,maxValue:u/10,value:d/10,format:function(){function C(b){return(0,a.toFixed)(b,1)}return C}(),width:"80px",onChange:function(){function C(b,v){return i("freq",{freq:v})}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function C(){return i("reset",{reset:"code"})}return C}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:l,width:"80px",onChange:function(){function C(b,v){return i("code",{code:v})}return C}()})})]})})})})}return y}()},36730:function(I,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.EvolutionMenu=function(){function k(V,p){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:574,theme:"changeling",children:(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})}return k}(),S=function(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.evo_points,d=s.can_respec;return(0,e.createComponentVNode)(2,t.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:l}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{ml:2.5,disabled:!d,content:"Readapt",icon:"sync",onClick:function(){function f(){return c("readapt")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})},y=function(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.evo_points,d=s.ability_list,f=s.purchased_abilities,u=s.view_mode;return(0,e.createComponentVNode)(2,t.Section,{title:"Abilities",flexGrow:"1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:u?"square-o":"check-square-o",selected:!u,content:"Compact",onClick:function(){function C(){return c("set_view_mode",{mode:0})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:u?"check-square-o":"square-o",selected:u,content:"Expanded",onClick:function(){function C(){return c("set_view_mode",{mode:1})}return C}()})],4),children:d.map(function(C,b){return(0,e.createComponentVNode)(2,t.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{ml:.5,color:"#dedede",children:C.name}),f.includes(C.power_path)&&(0,e.createComponentVNode)(2,t.Flex.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,t.Flex.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,t.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,t.Box,{as:"span",bold:!0,color:"#1b945c",children:C.cost})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,t.Button,{mr:.5,disabled:C.cost>l||f.includes(C.power_path),content:"Evolve",onClick:function(){function v(){return c("purchase",{power_path:C.power_path})}return v}()})})]}),!!u&&(0,e.createComponentVNode)(2,t.Flex,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:C.description+" "+C.helptext})]},b)})})}},17370:function(I,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(89005),a=n(35840),t=n(25328),o=n(72253),m=n(36036),S=n(73379),y=n(98595),k=["id","amount","lineDisplay","onClick"];function V(b,v){if(b==null)return{};var h={};for(var g in b)if({}.hasOwnProperty.call(b,g)){if(v.includes(g))continue;h[g]=b[g]}return h}var p=2e3,i={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function b(v,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.building;return(0,e.createComponentVNode)(2,y.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,y.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)}),B&&(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f)})]})})]})})})}return b}(),s=function(v,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.materials,L=x.capacity,T=Object.values(B).reduce(function(E,w){return E+w},0);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,m.Box,{color:"label",mt:"0.25rem",children:[(T/L*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(E){return(0,e.createComponentVNode)(2,u,{mt:-2,id:E,bold:E==="metal"||E==="glass",onClick:function(){function w(){return N("withdraw",{id:E})}return w}()},E)})})},l=function(v,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.curCategory,L=x.categories,T=x.designs,E=x.syncing,w=(0,o.useLocalState)(h,"searchText",""),A=w[0],O=w[1],M=(0,t.createSearch)(A,function(R){return R.name}),P=T.filter(M);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,m.Dropdown,{className:"Exofab__dropdown",selected:B,options:L,onSelected:function(){function R(F){return N("category",{cat:F})}return R}()}),buttons:(0,e.createComponentVNode)(2,m.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,m.Button,{icon:"plus",content:"Queue all",onClick:function(){function R(){return N("queueall")}return R}()}),(0,e.createComponentVNode)(2,m.Button,{disabled:E,iconSpin:E,icon:"sync-alt",content:E?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function R(){return N("sync")}return R}()})]}),children:[(0,e.createComponentVNode)(2,m.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function R(F,_){return O(_)}return R}()}),P.map(function(R){return(0,e.createComponentVNode)(2,C,{design:R},R.id)}),P.length===0&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No designs found."})]})},d=function(v,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.building,L=x.buildStart,T=x.buildEnd,E=x.worldTime;return(0,e.createComponentVNode)(2,m.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,m.ProgressBar.Countdown,{start:L,current:E,end:T,children:(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:["Building ",B,"\xA0(",(0,e.createComponentVNode)(2,S.Countdown,{current:E,timeLeft:T-E,format:function(){function w(A,O){return O.substr(3)}return w}()}),")"]})]})})})},f=function(v,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.queue,L=x.processingQueue,T=Object.entries(x.queueDeficit).filter(function(w){return w[1]<0}),E=B.reduce(function(w,A){return w+A.time},0);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:"Process",onClick:function(){function w(){return N("process")}return w}()}),(0,e.createComponentVNode)(2,m.Button,{disabled:B.length===0,icon:"eraser",content:"Clear",onClick:function(){function w(){return N("unqueueall")}return w}()})]}),children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:B.length===0?(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:B.map(function(w,A){return(0,e.createComponentVNode)(2,m.Box,{color:w.notEnough&&"bad",children:[A+1,". ",w.name,A>0&&(0,e.createComponentVNode)(2,m.Button,{icon:"arrow-up",onClick:function(){function O(){return N("queueswap",{from:A+1,to:A})}return O}()}),A0&&(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,m.Divider),"Processing time:",(0,e.createComponentVNode)(2,m.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,bold:!0,children:new Date(E/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,m.Divider),"Lacking materials to complete:",T.map(function(w){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,u,{id:w[0],amount:-w[1],lineDisplay:!0})},w[0])})]})],0)})})},u=function(v,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=v.id,L=v.amount,T=v.lineDisplay,E=v.onClick,w=V(v,k),A=x.materials[B]||0,O=L||A;if(!(O<=0&&!(B==="metal"||B==="glass"))){var M=L&&L>A;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},w,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{className:(0,a.classes)(["materials32x32",B])}),(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__material--amount",color:M&&"bad",ml:0,mr:1,children:O.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,m.Button,{width:"85%",color:"transparent",onClick:E,children:(0,e.createComponentVNode)(2,m.Box,{mt:1,className:(0,a.classes)(["materials32x32",B])})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__material--name",children:B}),(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__material--amount",children:[O.toLocaleString("en-US")," cm\xB3 (",Math.round(O/p*10)/10," ","sheets)"]})]})],4)})))}},C=function(v,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=v.design;return(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,m.Button,{disabled:B.notEnough||x.building,icon:"cog",content:B.name,onClick:function(){function L(){return N("build",{id:B.id})}return L}()}),(0,e.createComponentVNode)(2,m.Button,{icon:"plus-circle",onClick:function(){function L(){return N("queue",{id:B.id})}return L}()}),(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__design--cost",children:Object.entries(B.cost).map(function(L){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,u,{id:L[0],amount:L[1],lineDisplay:!0})},L[0])})}),(0,e.createComponentVNode)(2,m.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"clock"}),B.time>0?(0,e.createFragment)([B.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},97086:function(I,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=0,S=1013,y=function(p){var i="good",c=80,s=95,l=110,d=120;return pl?i="average":p>d&&(i="bad"),i},k=r.ExternalAirlockController=function(){function V(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.chamber_pressure,f=l.exterior_status,u=l.interior_status,C=l.processing;return(0,e.createComponentVNode)(2,o.Window,{width:470,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:y(d),value:d,minValue:m,maxValue:S,children:[d," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:C,onClick:function(){function b(){return s("cycle_ext")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Cycle to Interior",icon:"arrow-circle-right",disabled:C,onClick:function(){function b(){return s("cycle_int")}return b}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Force Exterior Door",icon:"exclamation-triangle",color:u==="open"?"red":C?"yellow":null,onClick:function(){function b(){return s("force_ext")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Force Interior Door",icon:"exclamation-triangle",color:u==="open"?"red":C?"yellow":null,onClick:function(){function b(){return s("force_int")}return b}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!C,onClick:function(){function b(){return s("abort")}return b}()})})]})]})})}return V}()},96142:function(I,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.FaxMachine=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.scan_name?"eject":"id-card",selected:i.scan_name,content:i.scan_name?i.scan_name:"-----",tooltip:i.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return p("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authenticated?"sign-out-alt":"id-card",selected:i.authenticated,disabled:!i.scan_name&&!i.authenticated,content:i.authenticated?"Log Out":"Log In",onClick:function(){function c(){return p("auth")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:i.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i.paper?"eject":"paperclip",disabled:!i.authenticated&&!i.paper,content:i.paper?i.paper:"-----",onClick:function(){function c(){return p("paper")}return c}()}),!!i.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return p("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:i.destination?i.destination:"-----",disabled:!i.authenticated,onClick:function(){function c(){return p("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:i.sendError?i.sendError:"Send",disabled:!i.paper||!i.destination||!i.authenticated||i.sendError,onClick:function(){function c(){return p("send")}return c}()})})]})})]})})}return S}()},83767:function(I,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=function(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=V.icon_state,d=V.direction,f=V.isSelected,u=V.onSelect;return(0,e.createComponentVNode)(2,t.DmIcon,{icon:s.icon,icon_state:l,direction:d,onClick:u,style:{"border-style":f&&"solid"||"none","border-width":"2px","border-color":"orange",padding:f&&"0px"||"2px"}})},S={NORTH:1,SOUTH:2,EAST:4,WEST:8},y=r.FloorPainter=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.availableStyles,d=s.selectedStyle,f=s.selectedDir;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function u(){return c("cycle_style",{offset:-1})}return u}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:l,selected:d,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function u(C){return c("select_style",{style:C})}return u}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function u(){return c("cycle_style",{offset:1})}return u}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"239px",wrap:"wrap",children:l.map(function(u){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,m,{icon_state:u,isSelected:d===u,onSelect:function(){function C(){return c("select_style",{style:u})}return C}()})},u)})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:[S.NORTH,null,S.SOUTH].map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[u+S.WEST,u,u+S.EAST].map(function(C){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:C===null?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,m,{icon_state:d,direction:C,isSelected:C===f,onSelect:function(){function b(){return c("select_direction",{direction:C})}return b}()})},C)})},u)})})})})]})})})}return k}()},53424:function(I,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(98595),S=function(l){return l?"("+l.join(", ")+")":"ERROR"},y=function(l,d,f){if(!(!l||!d)){if(l[2]!==d[2]||f!==1)return null;var u=Math.atan2(d[1]-l[1],d[0]-l[0]),C=Math.sqrt(Math.pow(d[1]-l[1],2)+Math.pow(d[0]-l[0],2));return{angle:(0,a.rad2deg)(u),distance:C}}},k=r.GPS=function(){function s(l,d){var f=(0,t.useBackend)(d),u=f.data,C=u.emped,b=u.active,v=u.area,h=u.position,g=u.saved;return(0,e.createComponentVNode)(2,m.Window,{width:450,height:700,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:C?(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,V,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,p)}),b?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,i,{area:v,position:h})}),g&&(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,i,{title:"Saved Position",position:g})}),(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,V)],0)})})})}return s}(),V=function(l,d){var f=l.emp;return(0,e.createComponentVNode)(2,o.Section,{mt:"0.5rem",width:"100%",height:"100%",stretchContents:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:f?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),f?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},p=function(l,d){var f=(0,t.useBackend)(d),u=f.act,C=f.data,b=C.active,v=C.tag,h=C.same_z,g=(0,t.useLocalState)(d,"newTag",v),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function B(){return u("toggle")}return B}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:v,onEnter:function(){function B(){return u("tag",{newtag:N})}return B}(),onInput:function(){function B(L,T){return x(T)}return B}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:v===N,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function B(){return u("tag",{newtag:N})}return B}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!h,icon:h?"compress":"expand",content:h?"Local Sector":"Global",onClick:function(){function B(){return u("same_z")}return B}()})})]})})},i=function(l,d){var f=l.title,u=l.area,C=l.position;return(0,e.createComponentVNode)(2,o.Section,{title:f||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[u&&(0,e.createFragment)([u,(0,e.createVNode)(1,"br")],0),S(C)]})})},c=function(l,d){var f=(0,t.useBackend)(d),u=f.data,C=u.position,b=u.signals,v=u.upgraded;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Signals",overflow:"auto"},l,{children:(0,e.createComponentVNode)(2,o.Table,{children:b.map(function(h){return Object.assign({},h,y(C,h.position,v))}).map(function(h,g){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:g%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:h.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:h.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:h.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(h.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:h.distance>0?"arrow-right":"circle",rotation:-h.angle}),"\xA0",Math.floor(h.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:S(h.position)})]},g)})})})))}},68703:function(I,r,n){"use strict";r.__esModule=!0,r.GasAnalyzerHistory=r.GasAnalyzerContent=r.GasAnalyzer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.GasAnalyzerContent=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.gasmixes,d=s.autoUpdating;return(0,e.createComponentVNode)(2,t.Section,{title:l[0].name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"unlock":"lock",onClick:function(){function f(){return c("autoscantoggle")}return f}(),tooltip:d?"Auto-Update Enabled":"Auto-Update Disabled",fluid:!0,textAlign:"center",selected:d}),children:l[0].total_moles?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Moles",children:(l[0].total_moles?l[0].total_moles:"-")+" mol"}),l[0].oxygen?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:l[0].oxygen.toFixed(2)+" mol ("+(l[0].oxygen/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].nitrogen?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:l[0].nitrogen.toFixed(2)+" mol ("+(l[0].nitrogen/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].carbon_dioxide?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:l[0].carbon_dioxide.toFixed(2)+" mol ("+(l[0].carbon_dioxide/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].toxins?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plasma",children:l[0].toxins.toFixed(2)+" mol ("+(l[0].toxins/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].sleeping_agent?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:l[0].sleeping_agent.toFixed(2)+" mol ("+(l[0].sleeping_agent/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].agent_b?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Agent B",children:l[0].agent_b.toFixed(2)+" mol ("+(l[0].agent_b/l[0].total_moles).toFixed(2)*100+" %)"}):"",(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(l[0].total_moles?(l[0].temperature-273.15).toFixed(2):"-")+" \xB0C ("+(l[0].total_moles?l[0].temperature.toFixed(2):"-")+" K)"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Volume",children:(l[0].total_moles?l[0].volume:"-")+" L"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(l[0].total_moles?l[0].pressure.toFixed(2):"-")+" kPa"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Heat Capacity",children:l[0].heat_capacity+" / K"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Thermal Energy",children:l[0].thermal_energy})]}):(0,e.createComponentVNode)(2,t.Box,{nowrap:!0,italic:!0,mb:"10px",children:"No Gas Detected!"})},l[0])}return k}(),S=r.GasAnalyzerHistory=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.historyGasmixes,d=s.historyViewMode,f=s.historyIndex;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Scan History",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"trash",tooltip:"Clear History",onClick:function(){function u(){return c("clearhistory")}return u}(),textAlign:"center",disabled:l.length===0}),children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",children:(0,e.createComponentVNode)(2,t.Flex,{inline:!0,width:"50%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"kPa",onClick:function(){function u(){return c("modekpa")}return u}(),textAlign:"center",selected:d==="kpa"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"mol",onClick:function(){function u(){return c("modemol")}return u}(),textAlign:"center",selected:d==="mol"})})]})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(u,C){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:C+1+". "+(d==="mol"?u[0].total_moles.toFixed(2):u[0].pressure.toFixed(2)),onClick:function(){function b(){return c("input",{target:C+1})}return b}(),textAlign:"left",selected:C+1===f,fluid:!0})},u[0])})})]})}return k}(),y=r.GasAnalyzer=function(){function k(V,p){var i={float:"left",width:"67%"},c={float:"right",width:"33%"};return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,t.Section,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),2,{style:i}),(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,t.Section,{width:"160px",children:(0,e.createComponentVNode)(2,S)}),2,{style:c})]})})}return k}()},27546:function(I,r,n){"use strict";r.__esModule=!0,r.GasFreezer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.GasFreezer=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.on,s=i.pressure,l=i.temperature,d=i.temperatureCelsius,f=i.min,u=i.max,C=i.target,b=i.targetCelsius,v=(l-f)/(u-f);return(0,e.createComponentVNode)(2,o.Window,{width:560,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c?"power-off":"times",content:c?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B",selected:c,onClick:function(){function h(){return p("power")}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[s," \u043A\u041F\u0430"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"65%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:v,ranges:{blue:[-1/0,.5],red:[.5,1/0]},children:"\xA0"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"35%",children:[v<.5&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"blue",ml:1,children:[l," \xB0K (",d," \xB0C)"]}),v>=.5&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"red",ml:1,children:[l," \xB0K (",d," \xB0C)"]})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0426\u0435\u043B\u0435\u0432\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"65%",justify:"end",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:(C-f)/(u-f),children:"\xA0"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"35%",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,ml:1,children:[C," \xB0K (",b," \xB0C)"]})})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0430\u0434\u0430\u0442\u044C \u0446\u0435\u043B\u0435\u0432\u0443\u044E \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0443",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",title:"\u041C\u0438\u043D\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){function h(){return p("temp",{temp:f})}return h}()}),(0,e.createComponentVNode)(2,t.NumberInput,{value:Math.round(C),unit:"\xB0K",minValue:Math.round(f),maxValue:Math.round(u),step:5,stepPixelSize:3,onDrag:function(){function h(g,N){return p("temp",{temp:N})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",title:"\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){function h(){return p("temp",{temp:u})}return h}()})]})]})})})})}return S}()},89124:function(I,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(89005),a=n(72253),t=n(35840),o=n(36036),m=n(3939),S=n(98595),y=r.GeneModder=function(){function d(f,u){var C=(0,a.useBackend)(u),b=C.data,v=b.has_seed;return(0,e.createComponentVNode)(2,S.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,m.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),v===0?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,k)]})})})}return d}(),k=function(f,u){var C=(0,a.useBackend)(u),b=C.act,v=C.data,h=v.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Insert Gene from Disk",disabled:!h||!h.can_insert||h.is_core,icon:"arrow-circle-down",onClick:function(){function g(){return b("insert")}return g}()}),children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,s)]})},V=function(f,u){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,o.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},p=function(f,u){var C=(0,a.useBackend)(u),b=C.act,v=C.data,h=v.has_seed,g=v.seed,N=v.has_disk,x=v.disk,B,L;return h?B=(0,e.createComponentVNode)(2,o.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",(0,t.classes)(["seeds32x32",g.image]),null,1,{style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,o.Button,{content:g.name,onClick:function(){function T(){return b("eject_seed")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function T(){return b("variant_name")}return T}()})]}):B=(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:3.3,content:"None",onClick:function(){function T(){return b("eject_seed")}return T}()})}),N?L=x.name:L="None",(0,e.createComponentVNode)(2,o.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:3.3,content:L,onClick:function(){function T(){return b("eject_disk")}return T}()})})})]})})},i=function(f,u){var C=(0,a.useBackend)(u),b=C.act,v=C.data,h=v.disk,g=v.core_genes;return(0,e.createComponentVNode)(2,o.Collapsible,{title:"Core Genes",open:!0,children:[g.map(function(N){return(0,e.createComponentVNode)(2,o.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",ml:"2px",children:N.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Extract",disabled:!(h!=null&&h.can_extract),icon:"save",onClick:function(){function x(){return b("extract",{id:N.id})}return x}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Replace",disabled:!N.is_type||!h.can_insert,icon:"arrow-circle-down",onClick:function(){function x(){return b("replace",{id:N.id})}return x}()})})]},N)})," ",(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Replace All",disabled:!(h!=null&&h.is_bulk_core),icon:"arrow-circle-down",onClick:function(){function N(){return b("bulk_replace_core")}return N}()})})})]},"Core Genes")},c=function(f,u){var C=(0,a.useBackend)(u),b=C.data,v=b.reagent_genes,h=b.has_reagent;return(0,e.createComponentVNode)(2,l,{title:"Reagent Genes",gene_set:v,do_we_show:h})},s=function(f,u){var C=(0,a.useBackend)(u),b=C.data,v=b.trait_genes,h=b.has_trait;return(0,e.createComponentVNode)(2,l,{title:"Trait Genes",gene_set:v,do_we_show:h})},l=function(f,u){var C=f.title,b=f.gene_set,v=f.do_we_show,h=(0,a.useBackend)(u),g=h.act,N=h.data,x=N.disk;return(0,e.createComponentVNode)(2,o.Collapsible,{title:C,open:!0,children:v?b.map(function(B){return(0,e.createComponentVNode)(2,o.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Extract",disabled:!(x!=null&&x.can_extract),icon:"save",onClick:function(){function L(){return g("extract",{id:B.id})}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Remove",icon:"times",onClick:function(){function L(){return g("remove",{id:B.id})}return L}()})})]},B)}):(0,e.createComponentVNode)(2,o.Stack.Item,{children:"No Genes Detected"})},C)}},73053:function(I,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(41874),m=r.GenericCrewManifest=function(){function S(y,k){return(0,e.createComponentVNode)(2,t.Window,{width:588,height:510,theme:"nologo",children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return S}()},42914:function(I,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.GhostHudPanel=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.data,c=i.security,s=i.medical,l=i.diagnostic,d=i.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,S,{label:"Medical",type:"medical",is_active:s}),(0,e.createComponentVNode)(2,S,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,S,{label:"Diagnostic",type:"diagnostic",is_active:l}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,S,{label:"Antag HUD",is_active:d,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return y}(),S=function(k,V){var p=(0,a.useBackend)(V),i=p.act,c=k.label,s=k.type,l=s===void 0?null:s,d=k.is_active,f=k.act_on,u=f===void 0?"hud_on":f,C=k.act_off,b=C===void 0?"hud_off":C;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:d?"On":"Off",icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function v(){return i(d?b:u,{hud_type:l})}return v}()})})]})}},25825:function(I,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.GlandDispenser=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.glands,s=c===void 0?[]:c;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:s.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:l.color,content:l.amount||"0",disabled:!l.amount,onClick:function(){function d(){return p("dispense",{gland_id:l.id})}return d}()},l.id)})})})})}return S}()},67834:function(I,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=[1,5,10,20,30,50],S=null,y=r.HandheldChemDispenser=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,V)]})})})}return p}(),k=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.amount,u=d.energy,C=d.maxEnergy,b=d.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:u,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[u," / ",C," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:m.map(function(v,h){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:f===v,content:v,onClick:function(){function g(){return l("amount",{amount:v})}return g}()})},h)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:b==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"dispense"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:b==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"remove"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:b==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"isolate"})}return v}()})]})})]})})})},V=function(i,c){for(var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.chemicals,u=f===void 0?[]:f,C=d.current_reagent,b=[],v=0;v<(u.length+1)%3;v++)b.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:d.glass?"Drink Selector":"Chemical Selector",children:[u.map(function(h,g){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:C===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function N(){return l("dispense",{reagent:h.id})}return N}()},g)}),b.map(function(h,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},g)})]})})}},75926:function(I,r,n){"use strict";r.__esModule=!0,r.ImplantPad=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ImplantPad=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.implant,s=i.contains_case,l=i.tag,d=(0,a.useLocalState)(k,"newTag",l),f=d[0],u=d[1];return(0,e.createComponentVNode)(2,o.Window,{width:410,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject Case",icon:"eject",disabled:!s,onClick:function(){function C(){return p("eject_case")}return C}()})}),children:c&&s?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createComponentVNode)(2,t.DmIcon,{icon:c.icon,icon_state:c.icon_state,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),c.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:c.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:c.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:c.function}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,t.Input,{width:"5.5rem",value:l,onEnter:function(){function C(){return p("tag",{newtag:f})}return C}(),onInput:function(){function C(b,v){return u(v)}return C}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:l===f,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function C(){return p("tag",{newtag:f})}return C}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):s?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"})})})})}return S}()},25471:function(I,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(98595),S=r.Instrument=function(){function i(c,s){var l=(0,t.useBackend)(s),d=l.act,f=l.data;return(0,e.createComponentVNode)(2,m.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,p)]})})]})}return i}(),y=function(c,s){var l=(0,t.useBackend)(s),d=l.act,f=l.data,u=f.help;if(u)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function C(){return d("help")}return C}()})]})})})},k=function(c,s){var l=(0,t.useBackend)(s),d=l.act,f=l.data,u=f.lines,C=f.playing,b=f.repeat,v=f.maxRepeats,h=f.tempo,g=f.minTempo,N=f.maxTempo,x=f.tickLag,B=f.volume,L=f.minVolume,T=f.maxVolume,E=f.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function w(){return d("help")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function w(){return d("newsong")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function w(){return d("import")}return w}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:C,disabled:u.length===0||b<0,icon:"play",content:"Play",onClick:function(){function w(){return d("play")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!C,icon:"stop",content:"Stop",onClick:function(){function w(){return d("stop")}return w}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:v,value:b,stepPixelSize:59,onChange:function(){function w(A,O){return d("repeat",{new:O})}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:h>=N,content:"-",as:"span",mr:"0.5rem",onClick:function(){function w(){return d("tempo",{new:h+x})}return w}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=g,content:"+",as:"span",ml:"0.5rem",onClick:function(){function w(){return d("tempo",{new:h-x})}return w}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:L,maxValue:T,value:B,stepPixelSize:6,onDrag:function(){function w(A,O){return d("setvolume",{new:O})}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:E?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,V)]})},V=function(c,s){var l=(0,t.useBackend)(s),d=l.act,f=l.data,u=f.allowedInstrumentNames,C=f.instrumentLoaded,b=f.instrument,v=f.canNoteShift,h=f.noteShift,g=f.noteShiftMin,N=f.noteShiftMax,x=f.sustainMode,B=f.sustainLinearDuration,L=f.sustainExponentialDropoff,T=f.legacy,E=f.sustainDropoffVolume,w=f.sustainHeldNote,A,O;return x===1?(A="Linear",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:B,step:.5,stepPixelSize:85,format:function(){function M(P){return(0,a.round)(P*100)/100+" seconds"}return M}(),onChange:function(){function M(P,R){return d("setlinearfalloff",{new:R/10})}return M}()})):x===2&&(A="Exponential",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:L,step:.01,format:function(){function M(P){return(0,a.round)(P*1e3)/1e3+"% per decisecond"}return M}(),onChange:function(){function M(P,R){return d("setexpfalloff",{new:R})}return M}()})),u.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:T?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:C?(0,e.createComponentVNode)(2,o.Dropdown,{options:u,selected:b,width:"50%",onSelected:function(){function M(P){return d("switchinstrument",{name:P})}return M}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&v)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:g,maxValue:N,value:h,stepPixelSize:2,format:function(){function M(P){return P+" keys / "+(0,a.round)(P/12*100)/100+" octaves"}return M}(),onChange:function(){function M(P,R){return d("setnoteshift",{new:R})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:A,onSelected:function(){function M(P){return d("setsustainmode",{new:P})}return M}()}),O]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:E,stepPixelSize:6,onChange:function(){function M(P,R){return d("setdropoffvolume",{new:R})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Yes":"No",onClick:function(){function M(){return d("togglesustainhold")}return M}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function M(){return d("reset")}return M}()})]})})})},p=function(c,s){var l=(0,t.useBackend)(s),d=l.act,f=l.data,u=f.playing,C=f.lines,b=f.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!b||u,icon:"plus",content:"Add Line",onClick:function(){function v(){return d("newline",{line:C.length+1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!b,icon:b?"chevron-up":"chevron-down",onClick:function(){function v(){return d("edit")}return v}()})],4),children:!!b&&(C.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:C.map(function(v,h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:u,icon:"pen",onClick:function(){function g(){return d("modifyline",{line:h+1})}return g}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:u,icon:"trash",onClick:function(){function g(){return d("deleteline",{line:h+1})}return g}()})],4),children:v},h)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},65021:function(I,r,n){"use strict";r.__esModule=!0,r.ItemPixelShift=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ItemPixelShift=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.pixel_x,s=i.pixel_y,l=i.max_shift_x,d=i.max_shift_y,f=i.random_drop_on;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"X-coordinates",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",title:"Shifts item leftwards.",disabled:c===-l,onClick:function(){function u(){return p("shift_left")}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:c,minValue:-l,maxValue:l,onChange:function(){function u(C,b){return p("custom_x",{pixel_x:b})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",title:"Shifts item rightwards.",disabled:c===l,onClick:function(){function u(){return p("shift_right")}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Y-coordinates",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-up",title:"Shifts item upwards.",disabled:s===d,onClick:function(){function u(){return p("shift_up")}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:s,minValue:-d,maxValue:d,onChange:function(){function u(C,b){return p("custom_y",{pixel_y:b})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",title:"Shifts item downwards.",disabled:s===-d,onClick:function(){function u(){return p("shift_down")}return u}()})]})]})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"brown",icon:"arrow-up",content:"Move to Top",title:"Tries to place an item on top of the others.",onClick:function(){function u(){return p("move_to_top")}return u}()})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:f?"good":"bad",icon:"power-off",content:f?"Shift Enabled":"Shift Disabled",title:"Enables/Disables item pixel randomization on any drops.",onClick:function(){function u(){return p("toggle")}return u}()})})]})})]})})}return S}()},13618:function(I,r,n){"use strict";r.__esModule=!0,r.KeyComboModal=void 0;var e=n(89005),a=n(70611),t=n(72253),o=n(36036),m=n(98595),S=n(19203),y=n(51057),k=function(l){return l.key!==a.KEY.Alt&&l.key!==a.KEY.Control&&l.key!==a.KEY.Shift&&l.key!==a.KEY.Escape},V={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space",UP:"North"},p=3,i=function(l){var d="";if(l.altKey&&(d+="Alt"),l.ctrlKey&&(d+="Ctrl"),l.shiftKey&&!(l.keyCode>=48&&l.keyCode<=57)&&(d+="Shift"),l.location===p&&(d+="Numpad"),k(l))if(l.shiftKey&&l.keyCode>=48&&l.keyCode<=57){var f=l.keyCode-48;d+="Shift"+f}else{var u=l.key.toUpperCase();d+=V[u]||u}return d},c=r.KeyComboModal=function(){function s(l,d){var f=(0,t.useBackend)(d),u=f.act,C=f.data,b=C.init_value,v=C.large_buttons,h=C.message,g=h===void 0?"":h,N=C.title,x=C.timeout,B=(0,t.useLocalState)(d,"input",b),L=B[0],T=B[1],E=(0,t.useLocalState)(d,"binding",!0),w=E[0],A=E[1],O=function(){function R(F){if(!w){F.key===a.KEY.Enter&&u("submit",{entry:L}),F.key===a.KEY.Escape&&u("cancel");return}if(F.preventDefault(),k(F)){M(i(F)),A(!1);return}else if(F.key===a.KEY.Escape){M(b),A(!1);return}}return R}(),M=function(){function R(F){F!==L&&T(F)}return R}(),P=130+(g.length>30?Math.ceil(g.length/3):0)+(g.length&&v?5:0);return(0,e.createComponentVNode)(2,m.Window,{title:N,width:240,height:P,children:[x&&(0,e.createComponentVNode)(2,y.Loader,{value:x}),(0,e.createComponentVNode)(2,m.Window.Content,{onKeyDown:function(){function R(F){O(F)}return R}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:w,content:w&&w!==null?"Awaiting input...":""+L,width:"100%",textAlign:"center",onClick:function(){function R(){M(b),A(!0)}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,S.InputButtons,{input:L})})]})]})})]})}return s}()},35655:function(I,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.KeycardAuth=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!i.swiping&&!i.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!i.redAvailable,onClick:function(){function l(){return p("triggerevent",{triggerevent:"Red Alert"})}return l}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Emergency Response Team"})}return l}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return l}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return l}(),content:"Revoke"})]})]})})]})});var s=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!i.hasSwiped&&!i.ertreason&&i.event==="Emergency Response Team"?s=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):i.hasConfirm?s=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):i.isRemote?s=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):i.hasSwiped&&(s=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,i.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:i.ertreason?"":"red",icon:i.ertreason?"check":"pencil-alt",content:i.ertreason?i.ertreason:"-----",disabled:i.busy,onClick:function(){function l(){return p("ert")}return l}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:i.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:i.busy||i.hasConfirm,onClick:function(){function l(){return p("reset")}return l}()}),children:s})]})})}return S}()},40951:function(I,r,n){"use strict";r.__esModule=!0,r.LaborClaimConsole=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(98595),S=r.LaborClaimConsole=function(){function V(p,i){return(0,e.createComponentVNode)(2,m.Window,{width:315,height:470,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,k)]})})}return V}(),y=function(p,i){var c=(0,t.useBackend)(i),s=c.act,l=c.data,d=l.can_go_home,f=l.emagged,u=l.id_inserted,C=l.id_name,b=l.id_points,v=l.id_goal,h=l.unclaimed_points,g=f?0:1,N=f?"ERR0R":d?"Completed!":"Insufficient";return(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:!!u&&(0,e.createComponentVNode)(2,o.ProgressBar,{value:b/v,ranges:{good:[g,1/0],bad:[-1/0,g]},children:b+" / "+v+" "+N})||!!f&&"ERR0R COMPLETED?!@"||"No ID inserted"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Shuttle controls",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Move shuttle",disabled:!d,onClick:function(){function x(){return s("move_shuttle")}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed points",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Claim points ("+h+")",disabled:!u||!h,onClick:function(){function x(){return s("claim_points")}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Inserted ID",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:u?C:"-------------",onClick:function(){function x(){return s("handle_id")}return x}()})})]})})},k=function(p,i){var c=(0,t.useBackend)(i),s=c.data,l=s.ores;return(0,e.createComponentVNode)(2,o.Section,{title:"Material values",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Material"}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"right",children:"Value"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,a.toTitleCase)(d.ore)}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:d.value})})]},d.ore)})]})})}},9525:function(I,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.LawManager=function(){function V(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.isAdmin,f=l.isSlaved,u=l.isMalf,C=l.isAIMalf,b=l.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:u?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(d&&f)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",f,"."]}),!!(u||C)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:b===0,onClick:function(){function v(){return s("set_view",{set_view:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:b===1,onClick:function(){function v(){return s("set_view",{set_view:1})}return v}()})]}),b===0&&(0,e.createComponentVNode)(2,S),b===1&&(0,e.createComponentVNode)(2,y)]})})}return V}(),S=function(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.has_zeroth_laws,f=l.zeroth_laws,u=l.has_ion_laws,C=l.ion_laws,b=l.ion_law_nr,v=l.has_inherent_laws,h=l.inherent_laws,g=l.has_supplied_laws,N=l.supplied_laws,x=l.channels,B=l.channel,L=l.isMalf,T=l.isAdmin,E=l.zeroth_law,w=l.ion_law,A=l.inherent_law,O=l.supplied_law,M=l.supplied_law_position;return(0,e.createFragment)([!!d&&(0,e.createComponentVNode)(2,k,{title:"ERR_NULL_VALUE",laws:f,ctx:i}),!!u&&(0,e.createComponentVNode)(2,k,{title:b,laws:C,ctx:i}),!!v&&(0,e.createComponentVNode)(2,k,{title:"Inherent",laws:h,ctx:i}),!!g&&(0,e.createComponentVNode)(2,k,{title:"Supplied",laws:N,ctx:i}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:x.map(function(P){return(0,e.createComponentVNode)(2,t.Button,{content:P.channel,selected:P.channel===B,onClick:function(){function R(){return s("law_channel",{law_channel:P.channel})}return R}()},P.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function P(){return s("state_laws")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function P(){return s("notify_laws")}return P}()})})]})}),!!L&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!d)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return s("change_zeroth_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return s("add_zeroth_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return s("change_ion_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return s("add_ion_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return s("change_inherent_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return s("add_inherent_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:O}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:M,onClick:function(){function P(){return s("change_supplied_law_position")}return P}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return s("change_supplied_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return s("add_supplied_law")}return P}()})]})]})]})})],0)},y=function(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{title:f.name+" - "+f.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function u(){return s("transfer_laws",{transfer_laws:f.ref})}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[f.laws.has_ion_laws>0&&f.laws.ion_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)}),f.laws.has_zeroth_laws>0&&f.laws.zeroth_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)}),f.laws.has_inherent_laws>0&&f.laws.inherent_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)}),f.laws.has_supplied_laws>0&&f.laws.inherent_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)})]})},f.name)})})},k=function(p,i){var c=(0,a.useBackend)(p.ctx),s=c.act,l=c.data,d=l.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:p.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),p.laws.map(function(f){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:f.state?"Yes":"No",selected:f.state,onClick:function(){function u(){return s("state_law",{ref:f.ref,state_law:f.state?0:1})}return u}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function u(){return s("edit_law",{edit_law:f.ref})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function u(){return s("delete_law",{delete_law:f.ref})}return u}()})],4)]})]},f.law)})]})})}},90447:function(I,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),m=n(72253),S=n(92986),y=n(98595),k=r.ListInputModal=function(){function i(c,s){var l=(0,m.useBackend)(s),d=l.act,f=l.data,u=f.items,C=u===void 0?[]:u,b=f.message,v=b===void 0?"":b,h=f.init_value,g=f.timeout,N=f.title,x=(0,m.useLocalState)(s,"selected",C.indexOf(h)),B=x[0],L=x[1],T=(0,m.useLocalState)(s,"searchBarVisible",C.length>10),E=T[0],w=T[1],A=(0,m.useLocalState)(s,"searchQuery",""),O=A[0],M=A[1],P=function(){function oe(X){var pe=$.length-1;if(X===S.KEY_DOWN)if(B===null||B===pe){var me;L(0),(me=document.getElementById("0"))==null||me.scrollIntoView()}else{var ne;L(B+1),(ne=document.getElementById((B+1).toString()))==null||ne.scrollIntoView()}else if(X===S.KEY_UP)if(B===null||B===0){var re;L(pe),(re=document.getElementById(pe.toString()))==null||re.scrollIntoView()}else{var q;L(B-1),(q=document.getElementById((B-1).toString()))==null||q.scrollIntoView()}}return oe}(),R=function(){function oe(X){X!==B&&L(X)}return oe}(),F=function(){function oe(){w(!1),w(!0)}return oe}(),_=function(){function oe(X){var pe=String.fromCharCode(X),me=C.find(function(q){return q==null?void 0:q.toLowerCase().startsWith(pe==null?void 0:pe.toLowerCase())});if(me){var ne,re=C.indexOf(me);L(re),(ne=document.getElementById(re.toString()))==null||ne.scrollIntoView()}}return oe}(),U=function(){function oe(X){var pe;X!==O&&(M(X),L(0),(pe=document.getElementById("0"))==null||pe.scrollIntoView())}return oe}(),W=function(){function oe(){w(!E),M("")}return oe}(),$=C.filter(function(oe){return oe==null?void 0:oe.toLowerCase().includes(O.toLowerCase())}),G=330+Math.ceil(v.length/3);return E||setTimeout(function(){var oe;return(oe=document.getElementById(B.toString()))==null?void 0:oe.focus()},1),(0,e.createComponentVNode)(2,y.Window,{title:N,width:325,height:G,children:[g&&(0,e.createComponentVNode)(2,a.Loader,{value:g}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function oe(X){var pe=window.event?X.which:X.keyCode;(pe===S.KEY_DOWN||pe===S.KEY_UP)&&(X.preventDefault(),P(pe)),pe===S.KEY_ENTER&&(X.preventDefault(),d("submit",{entry:$[B]})),!E&&pe>=S.KEY_A&&pe<=S.KEY_Z&&(X.preventDefault(),_(pe)),pe===S.KEY_ESCAPE&&(X.preventDefault(),d("cancel"))}return oe}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:E?"search":"font",selected:!0,tooltip:E?"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(){function oe(){return W()}return oe}()}),className:"ListInput__Section",fill:!0,title:v,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V,{filteredItems:$,onClick:R,onFocusSearch:F,searchBarVisible:E,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:E&&(0,e.createComponentVNode)(2,p,{filteredItems:$,onSearch:U,searchQuery:O,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:$[B]})})]})})})]})}return i}(),V=function(c,s){var l=(0,m.useBackend)(s),d=l.act,f=c.filteredItems,u=c.onClick,C=c.onFocusSearch,b=c.searchBarVisible,v=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:f.map(function(h,g){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:g,onClick:function(){function N(){return u(g)}return N}(),onDblClick:function(){function N(x){x.preventDefault(),d("submit",{entry:f[v]})}return N}(),onKeyDown:function(){function N(x){var B=window.event?x.which:x.keyCode;b&&B>=S.KEY_A&&B<=S.KEY_Z&&(x.preventDefault(),C())}return N}(),selected:g===v,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(N){return N.toUpperCase()})},g)})})},p=function(c,s){var l=(0,m.useBackend)(s),d=l.act,f=c.filteredItems,u=c.onSearch,C=c.searchQuery,b=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function v(h){h.preventDefault(),d("submit",{entry:f[b]})}return v}(),onInput:function(){function v(h,g){return u(g)}return v}(),placeholder:"Search...",value:C})}},26826:function(I,r,n){"use strict";r.__esModule=!0,r.Loadout=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(98595),S={Default:function(){function c(s,l){return s.gear.gear_tier-l.gear.gear_tier}return c}(),Alphabetical:function(){function c(s,l){return s.gear.name.toLowerCase().localeCompare(l.gear.name.toLowerCase())}return c}(),Cost:function(){function c(s,l){return s.gear.cost-l.gear.cost}return c}()},y=r.Loadout=function(){function c(s,l){var d=(0,t.useBackend)(l),f=d.act,u=d.data,C=(0,t.useLocalState)(l,"search",!1),b=C[0],v=C[1],h=(0,t.useLocalState)(l,"searchText",""),g=h[0],N=h[1],x=(0,t.useLocalState)(l,"category",Object.keys(u.gears)[0]),B=x[0],L=x[1],T=(0,t.useLocalState)(l,"tweakedGear",""),E=T[0],w=T[1];return(0,e.createComponentVNode)(2,m.Window,{width:975,height:650,children:[E&&(0,e.createComponentVNode)(2,i,{tweakedGear:E,setTweakedGear:w}),(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{category:B,setCategory:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"25%",children:(0,e.createComponentVNode)(2,p,{setTweakedGear:w})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"75%",children:(0,e.createComponentVNode)(2,V,{category:B,search:b,setSearch:v,searchText:g,setSearchText:N})})]})})]})})]})}return c}(),k=function(s,l){var d=(0,t.useBackend)(l),f=d.act,u=d.data,C=s.category,b=s.setCategory;return(0,e.createComponentVNode)(2,o.Tabs,{fluid:!0,textAlign:"center",style:{"flex-wrap":"wrap-reverse"},children:Object.keys(u.gears).map(function(v){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===C,style:{"white-space":"nowrap"},onClick:function(){function h(){return b(v)}return h}(),children:v},v)})})},V=function(s,l){var d=(0,t.useBackend)(l),f=d.act,u=d.data,C=u.user_tier,b=u.gear_slots,v=u.max_gear_slots,h=s.category,g=s.search,N=s.setSearch,x=s.searchText,B=s.setSearchText,L=(0,t.useLocalState)(l,"sortType","Default"),T=L[0],E=L[1],w=(0,t.useLocalState)(l,"sortReverse",!1),A=w[0],O=w[1],M=(0,a.createSearch)(x,function(R){return R.name}),P;return x.length>2?P=Object.entries(u.gears).reduce(function(R,F){var _=F[0],U=F[1];return R.concat(Object.entries(U).map(function(W){var $=W[0],G=W[1];return{key:$,gear:G}}))},[]).filter(function(R){var F=R.gear;return M(F)}):P=Object.entries(u.gears[h]).map(function(R){var F=R[0],_=R[1];return{key:F,gear:_}}),P.sort(S[T]),A&&(P=P.reverse()),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:h,buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{height:1.66,selected:T,options:Object.keys(S),onSelected:function(){function R(F){return E(F)}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:A?"arrow-down-wide-short":"arrow-down-short-wide",tooltip:A?"Ascending order":"Descending order",tooltipPosition:"bottom-end",onClick:function(){function R(){return O(!A)}return R}()})}),g&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Input,{width:20,placeholder:"Search...",value:x,onInput:function(){function R(F){return B(F.target.value)}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"magnifying-glass",selected:g,tooltip:"Toggle search field",tooltipPosition:"bottom-end",onClick:function(){function R(){N(!g),B("")}return R}()})})]}),children:P.map(function(R){var F=R.key,_=R.gear,U=12,W=Object.keys(u.selected_gears).includes(F),$=(_.cost===1,_.cost+" Points"),G=(0,e.createComponentVNode)(2,o.Box,{children:[_.name.length>U&&(0,e.createComponentVNode)(2,o.Box,{children:_.name}),_.gear_tier>C&&(0,e.createComponentVNode)(2,o.Box,{mt:_.name.length>U&&1.5,textColor:"red",children:"That gear is only available at a higher donation tier than you are on."})]}),oe=(0,e.createFragment)([_.allowed_roles&&(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"user",tooltip:(0,e.createComponentVNode)(2,o.Section,{m:-1,title:"Allowed Roles",children:_.allowed_roles.map(function(pe){return(0,e.createComponentVNode)(2,o.Box,{children:pe},pe)})}),tooltipPosition:"left"}),Object.entries(_.tweaks).map(function(pe){var me=pe[0],ne=pe[1];return ne.map(function(re){return(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:re.icon,tooltip:re.tooltip,tooltipPosition:"top"},me)})}),(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"info",tooltip:_.desc,tooltipPosition:"top"})],0),X=(0,e.createComponentVNode)(2,o.Box,{class:"Loadout-InfoBox",children:[(0,e.createComponentVNode)(2,o.Box,{style:{"flex-grow":1},fontSize:1,color:"gold",opacity:.75,children:_.gear_tier>0&&"Tier "+_.gear_tier}),(0,e.createComponentVNode)(2,o.Box,{fontSize:.75,opacity:.66,children:$})]});return(0,e.createComponentVNode)(2,o.ImageButtonTS,{m:.5,imageSize:84,dmIcon:_.icon,dmIconState:_.icon_state,tooltip:(_.name.length>U||_.gear_tier>0)&&G,tooltipPosition:"bottom",selected:W,disabled:_.gear_tier>C||b+_.cost>v&&!W,buttons:oe,buttonsAlt:X,onClick:function(){function pe(){return f("toggle_gear",{gear:_.index_name})}return pe}(),children:_.name},F)})})},p=function(s,l){var d=(0,t.useBackend)(l),f=d.act,u=d.data,C=s.setTweakedGear,b=Object.entries(u.gears).reduce(function(v,h){var g=h[0],N=h[1],x=Object.entries(N).filter(function(B){var L=B[0];return Object.keys(u.selected_gears).includes(L)}).map(function(B){var L=B[0],T=B[1];return Object.assign({key:L},T)});return v.concat(x)},[]);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Selected Equipment",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"Clear Loadout",tooltipPosition:"bottom-end",onClick:function(){function v(){return f("clear_loadout")}return v}()}),children:b.map(function(v){var h=u.selected_gears[v.key];return(0,e.createComponentVNode)(2,o.ImageButtonTS,{fluid:!0,imageSize:48,base64:h.icon,dmIcon:h.icon_file?h.icon_file:v.icon,dmIconState:h.icon_state?h.icon_state:v.icon_state,buttons:(0,e.createFragment)([Object.entries(v.tweaks).length>0&&(0,e.createComponentVNode)(2,o.Button,{color:"translucent",icon:"gears",iconColor:"gray",width:"33px",onClick:function(){function g(){return C(v)}return g}()}),(0,e.createComponentVNode)(2,o.Button,{color:"translucent",icon:"times",iconColor:"red",width:"32px",onClick:function(){function g(){return f("toggle_gear",{gear:v.index_name})}return g}()})],0),children:h.name?h.name:v.name},v.key)})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:u.gear_slots,maxValue:u.max_gear_slots,ranges:{bad:[u.max_gear_slots,1/0],average:[u.max_gear_slots*.66,u.max_gear_slots],good:[0,u.max_gear_slots*.66]},children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:["Used points ",u.gear_slots,"/",u.max_gear_slots]})})})})]})},i=function(s,l){var d=(0,t.useBackend)(l),f=d.act,u=d.data,C=s.tweakedGear,b=s.setTweakedGear;return(0,e.createComponentVNode)(2,o.Dimmer,{children:(0,e.createComponentVNode)(2,o.Box,{className:"Loadout-Modal__background",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,width:20,height:20,title:C.name,buttons:(0,e.createComponentVNode)(2,o.Button,{color:"red",icon:"times",tooltip:"Close",tooltipPosition:"top",onClick:function(){function v(){return b("")}return v}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.entries(C.tweaks).map(function(v){var h=v[0],g=v[1];return g.map(function(N){var x=u.selected_gears[C.key][h];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:N.name,color:x?"":"gray",buttons:(0,e.createComponentVNode)(2,o.Button,{color:"transparent",icon:"pen",onClick:function(){function B(){return f("set_tweak",{gear:C.index_name,tweak:h})}return B}()}),children:[x||"Default",(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,width:1,height:1,verticalAlign:"middle",style:{"background-color":""+x}})]},h)})})})})})})}},72106:function(I,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.MechBayConsole=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.recharge_port,s=c&&c.mech,l=s&&s.cell,d=s&&s.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:d?"Mech status: "+d:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function f(){return p("reconnect")}return f}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!s&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.health/s.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!s&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!l&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:l.charge/l.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l.charge})," / "+l.maxcharge]})})]})})})})}return S}()},7466:function(I,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(98595),S=n(25328),y=r.MechaControlConsole=function(){function k(V,p){var i=(0,t.useBackend)(p),c=i.act,s=i.data,l=s.beacons,d=s.stored_data;return d.length?(0,e.createComponentVNode)(2,m.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function f(){return c("clear_log")}return f}()}),children:d.map(function(f){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",f.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,S.decodeHtmlEntities)(f.message)})]},f.time)})})})}):(0,e.createComponentVNode)(2,m.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:l.length&&l.map(function(f){return(0,e.createComponentVNode)(2,o.Section,{title:f.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function u(){return c("send_message",{mt:f.uid})}return u}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function u(){return c("get_log",{mt:f.uid})}return u}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){function u(){return c("shock",{mt:f.uid})}return u}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[f.maxHealth*.75,1/0],average:[f.maxHealth*.5,f.maxHealth*.75],bad:[-1/0,f.maxHealth*.5]},value:f.health,maxValue:f.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:f.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[f.cellMaxCharge*.75,1/0],average:[f.cellMaxCharge*.5,f.cellMaxCharge*.75],bad:[-1/0,f.cellMaxCharge*.5]},value:f.cellCharge,maxValue:f.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[f.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:f.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,S.toTitleCase)(f.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:f.active||"None"}),f.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[f.cargoMax*.75,1/0],average:[f.cargoMax*.5,f.cargoMax*.75],good:[-1/0,f.cargoMax*.5]},value:f.cargoUsed,maxValue:f.cargoMax})})||null]})},f.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return k}()},79625:function(I,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(3939),S=n(98595),y=n(321),k=n(5485),V=n(22091),p={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},i={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(T,E){(0,m.modalOpen)(T,"edit",{field:E.edit,value:E.value})},s=function(T,E){var w=T.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:w.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:w.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[w.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:w.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:w.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:p[w.severity],children:w.severity})]})})})},l=r.MedicalRecords=function(){function L(T,E){var w=(0,t.useBackend)(E),A=w.data,O=A.loginState,M=A.screen;if(!O.logged_in)return(0,e.createComponentVNode)(2,S.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var P;return M===2?P=(0,e.createComponentVNode)(2,d):M===3?P=(0,e.createComponentVNode)(2,f):M===4?P=(0,e.createComponentVNode)(2,u):M===5?P=(0,e.createComponentVNode)(2,h):M===6&&(P=(0,e.createComponentVNode)(2,g)),(0,e.createComponentVNode)(2,S.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,V.TemporaryNotice),(0,e.createComponentVNode)(2,B),P]})})]})}return L}(),d=function(T,E){var w=(0,t.useBackend)(E),A=w.act,O=w.data,M=O.records,P=(0,t.useLocalState)(E,"searchText",""),R=P[0],F=P[1],_=(0,t.useLocalState)(E,"sortId","name"),U=_[0],W=_[1],$=(0,t.useLocalState)(E,"sortOrder",!0),G=$[0],oe=$[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function X(){return A("screen",{screen:3})}return X}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onInput:function(){function X(pe,me){return F(me)}return X}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,N,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,N,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,N,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,N,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,N,{id:"m_stat",children:"Mental Status"})]}),M.filter((0,a.createSearch)(R,function(X){return X.name+"|"+X.id+"|"+X.rank+"|"+X.p_stat+"|"+X.m_stat})).sort(function(X,pe){var me=G?1:-1;return X[U].localeCompare(pe[U])*me}).map(function(X){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+i[X.p_stat],onClick:function(){function pe(){return A("view_record",{view_record:X.ref})}return pe}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",X.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:X.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:X.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:X.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:X.m_stat})]},X.id)})]})})})],4)},f=function(T,E){var w=(0,t.useBackend)(E),A=w.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,lineHeight:3,icon:"trash",color:"translucent",content:"Delete All Medical Records",onClick:function(){function O(){return A("del_all")}return O}()})})]})})},u=function(T,E){var w=(0,t.useBackend)(E),A=w.act,O=w.data,M=O.medical,P=O.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:P?"spinner":"print",disabled:P,iconSpin:!!P,content:"Print Record",ml:"0.5rem",onClick:function(){function R(){return A("print_record")}return R}()}),children:(0,e.createComponentVNode)(2,C)})}),!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function R(){return A("new")}return R}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!M.empty,content:"Delete Medical Record",onClick:function(){function R(){return A("del_r")}return R}()}),children:(0,e.createComponentVNode)(2,b)})}),(0,e.createComponentVNode)(2,v)],4)],0)},C=function(T,E){var w=(0,t.useBackend)(E),A=w.data,O=A.general;return!O||!O.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:O.fields.map(function(M,P){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:M.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:M.value}),!!M.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function R(){return c(E,M)}return R}()})]},P)})})}),!!O.has_photos&&O.photos.map(function(M,P){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:M,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",P+1]},P)})]})},b=function(T,E){var w=(0,t.useBackend)(E),A=w.act,O=w.data,M=O.medical;return!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:M.fields.map(function(P,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:P.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(P.value),!!P.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:P.line_break?"1rem":"initial",onClick:function(){function F(){return c(E,P)}return F}()})]},R)})})})})},v=function(T,E){var w=(0,t.useBackend)(E),A=w.act,O=w.data,M=O.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function P(){return(0,m.modalOpen)(E,"add_comment")}return P}()}),children:M.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):M.comments.map(function(P,R){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:P.header}),(0,e.createVNode)(1,"br"),P.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function F(){return A("del_c",{del_c:R+1})}return F}()})]},R)})})})},h=function(T,E){var w=(0,t.useBackend)(E),A=w.act,O=w.data,M=O.virus,P=(0,t.useLocalState)(E,"searchText",""),R=P[0],F=P[1],_=(0,t.useLocalState)(E,"sortId2","name"),U=_[0],W=_[1],$=(0,t.useLocalState)(E,"sortOrder2",!0),G=$[0],oe=$[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function X(pe,me){return F(me)}return X}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,x,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,x,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,x,{id:"severity",children:"Severity"})]}),M.filter((0,a.createSearch)(R,function(X){return X.name+"|"+X.max_stages+"|"+X.severity})).sort(function(X,pe){var me=G?1:-1;return X[U].localeCompare(pe[U])*me}).map(function(X){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+X.severity,onClick:function(){function pe(){return A("vir",{vir:X.D})}return pe}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",X.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:X.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:p[X.severity],children:X.severity})]},X.id)})]})})})})],4)},g=function(T,E){var w=(0,t.useBackend)(E),A=w.act,O=w.data,M=O.medbots;return M.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),M.map(function(P){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+P.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",P.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[P.area||"Unknown"," (",P.x,", ",P.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.use_beaker?"Reservoir: "+P.total_volume+"/"+P.maximum_volume:"Using internal synthesizer"})]},P.id)})]})})})},N=function(T,E){var w=(0,t.useLocalState)(E,"sortId","name"),A=w[0],O=w[1],M=(0,t.useLocalState)(E,"sortOrder",!0),P=M[0],R=M[1],F=T.id,_=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:A!==F&&"transparent",onClick:function(){function U(){A===F?R(!P):(O(F),R(!0))}return U}(),children:[_,A===F&&(0,e.createComponentVNode)(2,o.Icon,{name:P?"sort-up":"sort-down",ml:"0.25rem;"})]})})},x=function(T,E){var w=(0,t.useLocalState)(E,"sortId2","name"),A=w[0],O=w[1],M=(0,t.useLocalState)(E,"sortOrder2",!0),P=M[0],R=M[1],F=T.id,_=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:A!==F&&"transparent",onClick:function(){function U(){A===F?R(!P):(O(F),R(!0))}return U}(),children:[_,A===F&&(0,e.createComponentVNode)(2,o.Icon,{name:P?"sort-up":"sort-down",ml:"0.25rem;"})]})})},B=function(T,E){var w=(0,t.useBackend)(E),A=w.act,O=w.data,M=O.screen,P=O.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:M===2,onClick:function(){function R(){A("screen",{screen:2})}return R}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:M===5,onClick:function(){function R(){A("screen",{screen:5})}return R}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:M===6,onClick:function(){function R(){return A("screen",{screen:6})}return R}(),children:"Medibot Tracking"}),M===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:M===3,children:"Record Maintenance"}),M===4&&P&&!P.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:M===4,children:["Record: ",P.fields[0].value]})]})})};(0,m.modalRegisterBodyOverride)("virus",s)},52306:function(I,r,n){"use strict";r.__esModule=!0,r.Mimicking=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.Mimicking=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.slots||[];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,fill:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:[c.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:s.name,level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Choose",selected:s.selected,onClick:function(){function l(){return p("Choose",{id:s.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",color:"bad",onClick:function(){function l(){return p("Delete",{id:s.id})}return l}()})],4),children:(0,e.createComponentVNode)(2,t.Box,{preserveWhitespace:!0,textColor:"#878787",fontSize:"14px",children:["Voice: ",s.voice]})},s.id)}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Add",onClick:function(){function s(){return p("Add")}return s}()})]})})})})}return S}()},66238:function(I,r,n){"use strict";r.__esModule=!0,r.Minesweeper=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.Minesweeper=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.matrix,s=i.showMessage,l=i.tokens,d=i.uiWidth,f={1:"blue",2:"green",3:"red",4:"darkblue",5:"brown",6:"lightblue",7:"black",8:"white"};document.addEventListener("contextmenu",function(g){return g.preventDefault()});var u=function(){function g(N,x,B){N.button!==0&&N.button!==2||p("Square",{X:x,Y:B,mode:N.button===2?h[b]:b})}return g}(),C=(0,a.useLocalState)(k,"mode","bomb"),b=C[0],v=C[1],h={flag:"bomb",bomb:"flag"};return(0,e.createComponentVNode)(2,o.Window,{theme:"ntOS95",width:d+80,height:750,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0418\u0433\u0440\u043E\u0432\u043E\u0435 \u043F\u043E\u043B\u0435",textAlign:"center",fill:!0,fitted:!0,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",iconColor:"black",selected:b==="bomb",onClick:function(){function g(){return v("bomb")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"flag",iconColor:"red",selected:b==="flag",onClick:function(){function g(){return v("flag")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",onClick:function(){function g(){return p("Mode",{mode:"16x30"})}return g}()})],4),children:[(0,e.createVNode)(1,"p"),Object.keys(c).map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:Object.keys(c[g]).map(function(N){return(0,e.createComponentVNode)(2,t.Button,{m:"1px",height:"30px",width:"30px",className:c[g][N].open?"Minesweeper__open":"Minesweeper__closed",bold:!0,color:"transparent",icon:c[g][N].open?c[g][N].bomb?"bomb":"":c[g][N].flag?"flag":"",textColor:c[g][N].open?c[g][N].bomb?"black":f[c[g][N].around]:c[g][N].flag?"red":"gray",onMouseDown:function(){function x(B){return u(B,g,N)}return x}(),children:c[g][N].open&&!c[g][N].bomb&&c[g][N].around?c[g][N].around:" "},N)})},g)}),(0,e.createVNode)(1,"p"),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",className:"Minesweeper__message",children:["\u0414\u043B\u044F \u043F\u043E\u0431\u0435\u0434\u044B \u043D\u0443\u0436\u043D\u043E \u043F\u043E\u043C\u0435\u0442\u0438\u0442\u044C \u0444\u043B\u0430\u0436\u043A\u0430\u043C\u0438 \u0432\u0441\u0435 \u0431\u043E\u043C\u0431\u044B, \u0430 \u0442\u0430\u043A\u0436\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0432\u0441\u0435 \u043F\u0443\u0441\u0442\u044B\u0435 \u043A\u043B\u0435\u0442\u043A\u0438.",(0,e.createVNode)(1,"br"),"\u0411\u0430\u043B\u0430\u043D\u0441 \u0442\u043E\u043A\u0435\u043D\u043E\u0432: ",l,(0,e.createVNode)(1,"br"),s]})]})})})})}return S}()},21385:function(I,r,n){"use strict";r.__esModule=!0,r.MiniGamesMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.MiniGamesMenu=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.spawners||[],s=i.thunderdome_eligible,l=i.notifications_enabled;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",tooltip:s?"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",tooltipPosition:"bottom",content:s?"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",color:s?"good":"bad",onClick:function(){function d(){return p("toggle_minigames")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",tooltip:l?"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",tooltipPosition:"bottom",content:l?"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",color:l?"good":"bad",onClick:function(){function d(){return p("toggle_notifications")}return d}()}),(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:d.name,level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function f(){return p("jump",{ID:d.uids})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Start",onClick:function(){function f(){return p("spawn",{ID:d.uids})}return f}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:d.desc}),!!d.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:d.fluff}),!!d.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:d.important_info})]},d.name)})})]})})}return S}()},87684:function(I,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(98595),S=["title","items"];function y(l,d){if(l==null)return{};var f={};for(var u in l)if({}.hasOwnProperty.call(l,u)){if(d.includes(u))continue;f[u]=l[u]}return f}var k={Alphabetical:function(){function l(d,f){return d-f}return l}(),Availability:function(){function l(d,f){return-(d.affordable-f.affordable)}return l}(),Price:function(){function l(d,f){return d.price-f.price}return l}()},V=r.MiningVendor=function(){function l(d,f){return(0,e.createComponentVNode)(2,m.Window,{width:400,height:450,children:(0,e.createComponentVNode)(2,m.Window.Content,{className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})})}return l}(),p=function(d,f){var u=(0,t.useBackend)(f),C=u.act,b=u.data,v=b.has_id,h=b.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:v,children:v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",h.name,".",(0,e.createVNode)(1,"br"),"You have ",h.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function g(){return C("logoff")}return g}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},i=function(d,f){var u=(0,t.useBackend)(f),C=u.act,b=u.data,v=b.has_id,h=b.id,g=b.items,N=(0,t.useLocalState)(f,"search",""),x=N[0],B=N[1],L=(0,t.useLocalState)(f,"sort","Alphabetical"),T=L[0],E=L[1],w=(0,t.useLocalState)(f,"descending",!1),A=w[0],O=w[1],M=(0,a.createSearch)(x,function(F){return F[0]}),P=!1,R=Object.entries(g).map(function(F,_){var U=Object.entries(F[1]).filter(M).map(function(W){return W[1].affordable=v&&h.points>=W[1].price,W[1]}).sort(k[T]);if(U.length!==0)return A&&(U=U.reverse()),P=!0,(0,e.createComponentVNode)(2,s,{title:F[0],items:U},F[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:P?R:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(d,f){var u=(0,t.useLocalState)(f,"search",""),C=u[0],b=u[1],v=(0,t.useLocalState)(f,"sort",""),h=v[0],g=v[1],N=(0,t.useLocalState)(f,"descending",!1),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function L(T,E){return b(E)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(k),width:"100%",onSelected:function(){function L(T){return g(T)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"arrow-down":"arrow-up",height:"21px",tooltip:x?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function L(){return B(!x)}return L}()})})]})})},s=function(d,f){var u=(0,t.useBackend)(f),C=u.act,b=u.data,v=d.title,h=d.items,g=y(d,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},g,{children:h.map(function(N){return(0,e.createComponentVNode)(2,o.ImageButton,{bold:!0,asset:!0,color:"brown",imageSize:"64px",image:N.imageId,imageAsset:"mining_vendor64x64",content:N.name,children:(0,e.createComponentVNode)(2,o.ImageButton.Item,{bold:!0,horizontal:!0,width:"64px",fontSize:1,content:N.price,icon:"shopping-cart",iconSize:1,iconColor:!b.has_id||b.id.points"})}),!!O&&(0,e.createComponentVNode)(2,d,{mt:1.1,label:"ID tag",compactLabel:!0,wrapContent:R?(0,e.createComponentVNode)(2,s,{text:P,defaultText:"",color:"silver"}):(0,e.createComponentVNode)(2,o.Box,{as:"span",fontSize:"0.9rem",color:"red",italic:!0,nowrap:!0,children:"Not supported"})})]})})]})})})}return x}(),i=function(B,L){var T=B.iconName,E=B.machineName,w=B.noMachine,A=B.noMachineText,O=B.noMachineElem,M="Unknown machine",P=w?A:E||"Unknown machine",R=P===A,F=P===A||P===M;return w&&O?O:(0,e.createComponentVNode)(2,o.Flex,{mt:.1,mb:1.9,children:[!w&&(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,align:"center",children:(0,e.createComponentVNode)(2,o.Icon,{mr:1,size:1.1,name:T})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,wordWrap:"break-word",children:(0,e.createComponentVNode)(2,o.Box,{as:"span",wordWrap:"break-word",color:R?"label":"silver",fontSize:"1.1rem",bold:!0,italic:F,children:P})})]})},c=function(B,L){var T=B.text;return(0,e.createComponentVNode)(2,o.Box,{as:"span",fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:T})},s=function(B,L){var T=B.text,E=B.defaultText,w=V(B,S);return T?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"span",wordWrap:"break-word"},w,{children:T}))):(0,e.createComponentVNode)(2,c,{text:E})},l=function(B,L){var T=B.noConfirm,E=T===void 0?!1:T,w=V(B,y);return E?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button,Object.assign({},w))):(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button.Confirm,Object.assign({},w)))},d=function(B,L){var T=B.label,E=B.wrapContent,w=B.noWrapContent,A=B.compactLabel,O=A===void 0?!1:A,M=V(B,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Flex,Object.assign({my:.5,mr:"0.5%",spacing:1,align:"center"},M,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:O?0:1,shrink:0,textOverflow:"ellipsis",overflow:"hidden",basis:O?"auto":0,maxWidth:O?"none":20,color:"label",nowrap:!0,children:T}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,textAlign:"center",wordWrap:"break-word",children:E}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:.1}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,nowrap:!0,children:w})]})))},f=function(B,L){var T=(0,t.useBackend)(L),E=T.act,w=T.data;return(0,e.createComponentVNode)(2,o.Box,{mt:1.5,fontSize:"0.9rem",color:"silver",italic:!0,children:"No options"})},u=function(B,L){var T=(0,t.useBackend)(L),E=T.act,w=T.data;return(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.1rem",color:"red",bold:!0,italic:!0,children:"ACCESS DENIED"})},C=function(B,L){var T=(0,t.useBackend)(L),E=T.act,w=T.data,A=w.attachedTag;return(0,e.createComponentVNode)(2,d,{label:"ID tag",wrapContent:(0,e.createComponentVNode)(2,s,{text:A,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Set",icon:"wrench",onClick:function(){function O(){return E("set_tag")}return O}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Clear",icon:"times-circle",color:"red",disabled:!A,onClick:function(){function O(){return E("clear_tag")}return O}()})],4)})},b=function(B,L){var T=(0,t.useBackend)(L),E=T.act,w=T.data,A=w.frequency,O=w.minFrequency,M=w.maxFrequency,P=w.canReset;return(0,e.createComponentVNode)(2,d,{label:"Frequency",noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.1,stepPixelSize:10,minValue:O/10,maxValue:M/10,value:A/10,format:function(){function R(F){return(0,a.toFixed)(F,1)}return R}(),onChange:function(){function R(F,_){return E("set_frequency",{frequency:_*10})}return R}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",content:"",disabled:!P,tooltip:"Reset",onClick:function(){function R(){return E("reset_frequency")}return R}()})],4)})},v=function(B,L){var T=(0,t.useBackend)(L),E=T.act,w=T.data,A=w.attachedTags;return(0,e.createComponentVNode)(2,o.Section,{mt:1.7,ml:.5,mr:1,px:.5,title:"Linked tags",buttons:(0,e.createComponentVNode)(2,o.Button,{mr:1,pl:2.1,content:"Add tag",icon:"plus",iconRight:!0,onClick:function(){function O(){return E("add_tag")}return O}()}),children:A.map(function(O,M){return(0,e.createComponentVNode)(2,d,{mr:0,label:(0,e.createComponentVNode)(2,o.Icon,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{align:"center",spacing:1,children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:O})}),noWrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:(0,e.createComponentVNode)(2,o.Button,{icon:"minus",color:"red",onClick:function(){function P(){return E("remove_tag",{tag_index:M})}return P}()})})})},M)})})},h=function(B,L){var T=(0,t.useBackend)(L),E=T.act,w=T.data,A=w.bolts,O=w.pressureCheck,M=w.temperatureCheck,P=w.oxygenCheck,R=w.toxinsCheck,F=w.nitrogenCheck,_=w.carbonDioxideCheck,U=[{bitflag:1,checked:O,label:"Monitor pressure"},{bitflag:2,checked:M,label:"Monitor temperature"},{bitflag:4,checked:P,label:"Monitor oxygen concentration"},{bitflag:8,checked:R,label:"Monitor plasma concentration"},{bitflag:16,checked:F,label:"Monitor nitrogen concentration"},{bitflag:32,checked:_,label:"Monitor carbon dioxide concentration"}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,d,{label:"Floor bolts",noWrapContent:(0,e.createComponentVNode)(2,o.Button,{icon:A?"check":"times",selected:A,content:A?"YES":"NO",onClick:function(){function W(){return E("toggle_bolts")}return W}()})}),U.map(function(W){return(0,e.createComponentVNode)(2,d,{label:W.label,noWrapContent:(0,e.createComponentVNode)(2,o.Button.Checkbox,{checked:W.checked,onClick:function(){function $(){return E("toggle_flag",{bitflag:W.bitflag})}return $}()})},W.bitflag)})],0)},g=function(B,L){var T=(0,t.useBackend)(L),E=T.act,w=T.data,A=w.sensors;return(0,e.createComponentVNode)(2,o.Section,{mt:1.7,ml:.5,mr:1,px:.5,title:"Sensors",buttons:(0,e.createComponentVNode)(2,o.Button,{mr:1,pl:2.1,content:"Add sensor",icon:"plus",iconRight:!0,onClick:function(){function O(){return E("add_sensor")}return O}()}),children:[(0,e.createComponentVNode)(2,d,{mr:0,compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{width:1}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"ID tag"}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"Label"}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:11.3})]})}),Object.keys(A).map(function(O){return(0,e.createComponentVNode)(2,d,{mr:0,label:(0,e.createComponentVNode)(2,o.Icon,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{align:"center",spacing:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:O}),A[O]?(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:A[O]}):(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:""})]}),noWrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:[(0,e.createComponentVNode)(2,o.Button,{content:"Label",icon:"edit",onClick:function(){function M(){return E("change_label",{sensor_tag:O})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Label",icon:"times-circle",color:"orange",disabled:!A[O],onClick:function(){function M(){return E("clear_label",{sensor_tag:O})}return M}()})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:.5}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:(0,e.createComponentVNode)(2,o.Button,{px:1.2,icon:"minus",color:"red",onClick:function(){function M(){return E("del_sensor",{sensor_tag:O})}return M}()})})]})},O)})]})},N=function(B,L){var T=(0,t.useBackend)(L),E=T.act,w=T.data,A=w.inputTag,O=w.outputTag,M=w.bufferTag,P=w.bufferFitsInput,R=w.bufferFitsOutput,F=w.doNotLinkAndNotify;return(0,e.createFragment)([(0,e.createComponentVNode)(2,d,{label:"Input",labelWidth:6,wrapContent:(0,e.createComponentVNode)(2,s,{text:A,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,l,{noConfirm:F||!A,confirmContent:"This will change the intput device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:A&&M===A,disabled:!P,onClick:function(){function _(){return E("link_input")}return _}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"This will unlink the intput device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!A,onClick:function(){function _(){return E("unlink_input")}return _}()})],4)}),(0,e.createComponentVNode)(2,d,{label:"Output",labelWidth:6,wrapContent:(0,e.createComponentVNode)(2,s,{text:O,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,l,{noConfirm:F||!O,confirmContent:"This will change the output device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:O&&M===O,disabled:!R,onClick:function(){function _(){return E("link_output")}return _}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"This will unlink the output device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!O,onClick:function(){function _(){return E("unlink_output")}return _}()})],4)})],4)}},64713:function(I,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(76910),S=n(98595),y=n(3939),k=n(22091),V=["icon","iconSpin","selected","security","onClick","title","children"],p=["name"];function i(B,L){if(B==null)return{};var T={};for(var E in B)if({}.hasOwnProperty.call(B,E)){if(L.includes(E))continue;T[E]=B[E]}return T}var c=128,s=["security","engineering","medical","science","service","supply"],l={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},d=r.Newscaster=function(){function B(L,T){var E=(0,t.useBackend)(T),w=E.act,A=E.data,O=A.is_security,M=A.is_admin,P=A.is_silent,R=A.is_printing,F=A.screen,_=A.channels,U=A.channel_idx,W=U===void 0?-1:U,$=(0,t.useLocalState)(T,"menuOpen",!1),G=$[0],oe=$[1],X=(0,t.useLocalState)(T,"viewingPhoto",""),pe=X[0],me=X[1],ne=(0,t.useLocalState)(T,"censorMode",!1),re=ne[0],q=ne[1],ae;F===0||F===2?ae=(0,e.createComponentVNode)(2,u):F===1&&(ae=(0,e.createComponentVNode)(2,C));var J=_.reduce(function(Y,Q){return Y+Q.unread},0);return(0,e.createComponentVNode)(2,S.Window,{theme:O&&"security",width:800,height:600,children:[pe?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,y.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Section,{fill:!0,className:(0,a.classes)(["Newscaster__menu",G&&"Newscaster__menu--open"]),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,f,{icon:"bars",title:"Toggle Menu",onClick:function(){function Y(){return oe(!G)}return Y}()}),(0,e.createComponentVNode)(2,f,{icon:"newspaper",title:"Headlines",selected:F===0,onClick:function(){function Y(){return w("headlines")}return Y}(),children:J>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:J>=10?"9+":J})}),(0,e.createComponentVNode)(2,f,{icon:"briefcase",title:"Job Openings",selected:F===1,onClick:function(){function Y(){return w("jobs")}return Y}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:_.map(function(Y){return(0,e.createComponentVNode)(2,f,{icon:Y.icon,title:Y.name,selected:F===2&&_[W-1]===Y,onClick:function(){function Q(){return w("channel",{uid:Y.uid})}return Q}(),children:Y.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Y.unread>=10?"9+":Y.unread})},Y)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!O||!!M)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function Y(){return(0,y.modalOpen)(T,"wanted_notice")}return Y}()}),(0,e.createComponentVNode)(2,f,{security:!0,icon:re?"minus-square":"minus-square-o",title:"Censor Mode: "+(re?"On":"Off"),mb:"0.5rem",onClick:function(){function Y(){return q(!re)}return Y}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,f,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function Y(){return(0,y.modalOpen)(T,"create_story")}return Y}()}),(0,e.createComponentVNode)(2,f,{icon:"plus-circle",title:"New Channel",onClick:function(){function Y(){return(0,y.modalOpen)(T,"create_channel")}return Y}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,f,{icon:R?"spinner":"print",iconSpin:R,title:R?"Printing...":"Print Newspaper",onClick:function(){function Y(){return w("print_newspaper")}return Y}()}),(0,e.createComponentVNode)(2,f,{icon:P?"volume-mute":"volume-up",title:"Mute: "+(P?"On":"Off"),onClick:function(){function Y(){return w("toggle_mute")}return Y}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,k.TemporaryNotice),ae]})]})})]})}return B}(),f=function(L,T){var E=(0,t.useBackend)(T),w=E.act,A=L.icon,O=A===void 0?"":A,M=L.iconSpin,P=L.selected,R=P===void 0?!1:P,F=L.security,_=F===void 0?!1:F,U=L.onClick,W=L.title,$=L.children,G=i(L,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",R&&"Newscaster__menuButton--selected",_&&"Newscaster__menuButton--security"]),onClick:U},G,{children:[R&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:O,spin:M,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:W}),$]})))},u=function(L,T){var E=(0,t.useBackend)(T),w=E.act,A=E.data,O=A.screen,M=A.is_admin,P=A.channel_idx,R=A.channel_can_manage,F=A.channels,_=A.stories,U=A.wanted,W=(0,t.useLocalState)(T,"fullStories",[]),$=W[0],G=W[1],oe=(0,t.useLocalState)(T,"censorMode",!1),X=oe[0],pe=oe[1],me=O===2&&P>-1?F[P-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!U&&(0,e.createComponentVNode)(2,b,{story:U,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:me?me.icon:"newspaper",mr:"0.5rem"}),me?me.name:"Headlines"],0),children:_.length>0?_.slice().reverse().map(function(ne){return!$.includes(ne.uid)&&ne.body.length+3>c?Object.assign({},ne,{body_short:ne.body.substr(0,c-4)+"..."}):ne}).map(function(ne,re){return(0,e.createComponentVNode)(2,b,{story:ne},re)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!me&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([X&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!me.admin&&!M,selected:me.censored,icon:me.censored?"comment-slash":"comment",content:me.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ne(){return w("censor_channel",{uid:me.uid})}return ne}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!R,icon:"cog",content:"Manage",onClick:function(){function ne(){return(0,y.modalOpen)(T,"manage_channel",{uid:me.uid})}return ne}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:me.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:me.author||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:me.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),_.reduce(function(ne,re){return ne+re.view_count},0).toLocaleString()]})]})})]})},C=function(L,T){var E=(0,t.useBackend)(T),w=E.act,A=E.data,O=A.jobs,M=A.wanted,P=Object.entries(O).reduce(function(R,F){var _=F[0],U=F[1];return R+U.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!M&&(0,e.createComponentVNode)(2,b,{story:M,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:P>0?s.map(function(R){return Object.assign({},l[R],{id:R,jobs:O[R]})}).filter(function(R){return!!R&&R.jobs.length>0}).map(function(R){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+R.id]),title:R.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:R.fluff_text}),children:R.jobs.map(function(F){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!F.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",F.title]},F.title)})},R.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the"," ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},b=function(L,T){var E=(0,t.useBackend)(T),w=E.act,A=E.data,O=L.story,M=L.wanted,P=M===void 0?!1:M,R=(0,t.useLocalState)(T,"fullStories",[]),F=R[0],_=R[1],U=(0,t.useLocalState)(T,"censorMode",!1),W=U[0],$=U[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",P&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([P&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),O.censor_flags&2&&"[REDACTED]"||O.title||"News from "+O.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!P&&W&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:O.censor_flags&2,icon:O.censor_flags&2?"comment-slash":"comment",content:O.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function G(){return w("censor_story",{uid:O.uid})}return G}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.author," |\xA0",!P&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),O.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,m.timeAgo)(O.publish_time,A.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:O.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!O.has_photo&&(0,e.createComponentVNode)(2,v,{name:"story_photo_"+O.uid+".png",float:"right",ml:"0.5rem"}),(O.body_short||O.body).split("\n").map(function(G,oe){return(0,e.createComponentVNode)(2,o.Box,{children:G||(0,e.createVNode)(1,"br")},oe)}),O.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function G(){return _([].concat(F,[O.uid]))}return G}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},v=function(L,T){var E=L.name,w=i(L,p),A=(0,t.useLocalState)(T,"viewingPhoto",""),O=A[0],M=A[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:E,onClick:function(){function P(){return M(E)}return P}()},w)))},h=function(L,T){var E=(0,t.useLocalState)(T,"viewingPhoto",""),w=E[0],A=E[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:w}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function O(){return A("")}return O}()})]})},g=function(L,T){var E=(0,t.useBackend)(T),w=E.act,A=E.data,O=!!L.args.uid&&A.channels.filter(function(te){return te.uid===L.args.uid}).pop();if(L.id==="manage_channel"&&!O){(0,y.modalClose)(T);return}var M=L.id==="manage_channel",P=!!L.args.is_admin,R=L.args.scanned_user,F=(0,t.useLocalState)(T,"author",(O==null?void 0:O.author)||R||"Unknown"),_=F[0],U=F[1],W=(0,t.useLocalState)(T,"name",(O==null?void 0:O.name)||""),$=W[0],G=W[1],oe=(0,t.useLocalState)(T,"description",(O==null?void 0:O.description)||""),X=oe[0],pe=oe[1],me=(0,t.useLocalState)(T,"icon",(O==null?void 0:O.icon)||"newspaper"),ne=me[0],re=me[1],q=(0,t.useLocalState)(T,"isPublic",M?!!(O!=null&&O.public):!1),ae=q[0],J=q[1],Y=(0,t.useLocalState)(T,"adminLocked",(O==null?void 0:O.admin)===1||!1),Q=Y[0],Z=Y[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:M?"Manage "+O.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!P,width:"100%",value:_,onInput:function(){function te(se,ye){return U(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:$,onInput:function(){function te(se,ye){return G(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:X,onInput:function(){function te(se,ye){return pe(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!P,value:ne,width:"35%",mr:"0.5rem",onInput:function(){function te(se,ye){return re(ye)}return te}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ne,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:ae,icon:ae?"toggle-on":"toggle-off",content:ae?"Yes":"No",onClick:function(){function te(){return J(!ae)}return te}()})}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:Q,icon:Q?"lock":"lock-open",content:Q?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function te(){return Z(!Q)}return te}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:_.trim().length===0||$.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function te(){(0,y.modalAnswer)(T,L.id,"",{author:_,name:$.substr(0,49),description:X.substr(0,128),icon:ne,public:ae?1:0,admin_locked:Q?1:0})}return te}()})]})},N=function(L,T){var E=(0,t.useBackend)(T),w=E.act,A=E.data,O=A.photo,M=A.channels,P=A.channel_idx,R=P===void 0?-1:P,F=!!L.args.is_admin,_=L.args.scanned_user,U=M.slice().sort(function(te,se){if(R<0)return 0;var ye=M[R-1];if(ye.uid===te.uid)return-1;if(ye.uid===se.uid)return 1}).filter(function(te){return F||!te.frozen&&(te.author===_||!!te.public)}),W=(0,t.useLocalState)(T,"author",_||"Unknown"),$=W[0],G=W[1],oe=(0,t.useLocalState)(T,"channel",U.length>0?U[0].name:""),X=oe[0],pe=oe[1],me=(0,t.useLocalState)(T,"title",""),ne=me[0],re=me[1],q=(0,t.useLocalState)(T,"body",""),ae=q[0],J=q[1],Y=(0,t.useLocalState)(T,"adminLocked",!1),Q=Y[0],Z=Y[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!F,width:"100%",value:$,onInput:function(){function te(se,ye){return G(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:X,options:U.map(function(te){return te.name}),mb:"0",width:"100%",onSelected:function(){function te(se){return pe(se)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:ne,onInput:function(){function te(se,ye){return re(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:ae,onInput:function(){function te(se,ye){return J(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function te(){return w(O?"eject_photo":"attach_photo")}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ne,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!O&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+O.uid+".png",float:"right"}),ae.split("\n").map(function(te,se){return(0,e.createComponentVNode)(2,o.Box,{children:te||(0,e.createVNode)(1,"br")},se)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),F&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:Q,icon:Q?"lock":"lock-open",content:Q?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function te(){return Z(!Q)}return te}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:$.trim().length===0||X.trim().length===0||ne.trim().length===0||ae.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function te(){(0,y.modalAnswer)(T,"create_story","",{author:$,channel:X,title:ne.substr(0,127),body:ae.substr(0,1023),admin_locked:Q?1:0})}return te}()})]})},x=function(L,T){var E=(0,t.useBackend)(T),w=E.act,A=E.data,O=A.photo,M=A.wanted,P=!!L.args.is_admin,R=L.args.scanned_user,F=(0,t.useLocalState)(T,"author",(M==null?void 0:M.author)||R||"Unknown"),_=F[0],U=F[1],W=(0,t.useLocalState)(T,"name",(M==null?void 0:M.title.substr(8))||""),$=W[0],G=W[1],oe=(0,t.useLocalState)(T,"description",(M==null?void 0:M.body)||""),X=oe[0],pe=oe[1],me=(0,t.useLocalState)(T,"adminLocked",(M==null?void 0:M.admin_locked)===1||!1),ne=me[0],re=me[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!P,width:"100%",value:_,onInput:function(){function q(ae,J){return U(J)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:$,maxLength:"128",onInput:function(){function q(ae,J){return G(J)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:X,maxLength:"512",rows:"4",onInput:function(){function q(ae,J){return pe(J)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function q(){return w(O?"eject_photo":"attach_photo")}return q}()}),!!O&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+O.uid+".png",float:"right"})]}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return re(!ne)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!M,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function q(){w("clear_wanted_notice"),(0,y.modalClose)(T)}return q}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:_.trim().length===0||$.trim().length===0||X.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,y.modalAnswer)(T,L.id,"",{author:_,name:$.substr(0,127),description:X.substr(0,511),admin_locked:ne?1:0})}return q}()})]})};(0,y.modalRegisterBodyOverride)("create_channel",g),(0,y.modalRegisterBodyOverride)("manage_channel",g),(0,y.modalRegisterBodyOverride)("create_story",N),(0,y.modalRegisterBodyOverride)("wanted_notice",x)},97351:function(I,r,n){"use strict";r.__esModule=!0,r.NinjaBloodScan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(39473),m=n(98595),S=r.NinjaBloodScan=function(){function V(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data;return(0,e.createComponentVNode)(2,m.Window,{width:500,height:400,theme:"spider_clan",children:(0,e.createComponentVNode)(2,m.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,k)]})})}return V}(),y=function(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.vialIcons,f=l.noVialIcon,u=l.bloodOwnerNames,C=l.bloodOwnerSpecies,b=l.bloodOwnerTypes,v=l.blockButtons,h=l.scanStates,g={blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"},N=["NoticeBox_red","NoticeBox","NoticeBox_blue"],x=[1,2,3];return(0,e.createComponentVNode)(2,t.Flex,{direction:"column",shrink:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0431\u0440\u0430\u0437\u0446\u044B",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u0442\u0440\u0438 \u043E\u0431\u0440\u0430\u0437\u0446\u0430 \u043A\u0440\u043E\u0432\u0438. \u041C\u0430\u0448\u0438\u043D\u0430 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0430 \u043D\u0430 \u0440\u0430\u0431\u043E\u0442\u0443 \u0441 \u043A\u0440\u043E\u0432\u044C\u044E \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u0438 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u043C\u0438 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u043E\u0441\u0442\u0430\u0432\u0438\u043B \u0432\u0430\u043C \u043A\u043B\u0430\u043D. \u0420\u0435\u0430\u0433\u0435\u043D\u0442\u044B \u0438\u043C \u043D\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0435 \u043D\u0435 \u043F\u0440\u0438\u043C\u0443\u0442\u0441\u044F \u0438\u043B\u0438 \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u043F\u0435\u0448\u043D\u044B\u043C",tooltipPosition:"bottom-start"}),children:[(0,e.createComponentVNode)(2,t.Flex,{direction:"row",shrink:1,alignContent:"center",children:x.map(function(B,L){return(0,e.createComponentVNode)(2,o.FlexItem,{direction:"column",width:"33.3%",ml:L?2:0,children:[(0,e.createComponentVNode)(2,t.Section,{title:u[L]?"\u041A\u0440\u043E\u0432\u044C":"\u041D\u0435\u0442 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u0430",style:{"text-align":"left",background:"rgba(53, 94, 163, 0.5)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:N[h[L]],success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{className:v?g.disabled:g.blue,height:"100%",width:"100%",disabled:v,onClick:function(){function T(){return s("vial_out",{button_num:L+1})}return T}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+(d[L]||f),style:{"margin-left":"3px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:u[L]||" - ",content:"\u0420\u0430\u0441\u0430: "+(C[L]||" - ")+"\n"+("\u0422\u0438\u043F \u043A\u0440\u043E\u0432\u0438: "+(b[L]||" - ")),position:"bottom"})]})})]},L)})}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{className:v===0?"":"Button_disabled",content:"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",width:"250px",textAlign:"center",disabled:v,tooltip:"\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442 \u043A\u0440\u043E\u0432\u044C \u0438 \u043F\u0435\u0440\u0435\u0441\u044B\u043B\u0430\u0435\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043D\u0443\u044E \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043A\u043B\u0430\u043D\u0443.",tooltipPosition:"bottom",onClick:function(){function B(){return s("scan_blood")}return B}()})})]})})},k=function(p,i){var c=(0,a.useBackend)(i),s=c.data,l=s.progressBar;return(0,e.createComponentVNode)(2,t.Section,{stretchContents:!0,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"green",value:l,minValue:0,maxValue:100,children:(0,e.createVNode)(1,"center",null,(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_green",mt:1,children:l?"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 "+(l+"%"):"\u0420\u0435\u0436\u0438\u043C \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F"}),2)})})}},32989:function(I,r,n){"use strict";r.__esModule=!0,r.NinjaMindScan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.NinjaMindScan=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,theme:"spider_clan",children:(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,S)})})}return y}(),S=function(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.occupantIcon,l=c.occupant_name,d=c.occupant_health,f=c.scanned_occupants,u=l==="none"?1:0;return(0,e.createComponentVNode)(2,t.Flex,{direction:"column",shrink:1,alignContent:"left",children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0432\u043D\u0435\u0448\u043D\u0435\u0433\u043E \u0432\u0438\u0434\u0430 \u0438 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0432 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435.",tooltipPosition:"left"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",shrink:1,alignContent:"left",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{shrink:1,alignContent:"left",children:(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,width:"90px",align:"left",children:(0,e.createComponentVNode)(2,t.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},align:"left",children:(0,e.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+s,style:{"margin-left":"-28px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,alignContent:"right",children:[(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_green",success:0,danger:0,align:"left",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0418\u043C\u044F",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435",children:d})]})}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",mt:2.5,success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:u===0?"":"Button_disabled",content:"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",width:"250px",textAlign:"center",disabled:u,tooltip:"\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0438 \u043F\u044B\u0442\u0430\u0435\u0442\u0441\u044F \u0434\u043E\u0431\u044B\u0442\u044C \u0438\u0437 \u0435\u0433\u043E \u0440\u0430\u0437\u0443\u043C\u0430 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u0443\u044E \u043A\u043B\u0430\u043D\u0443 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E.",tooltipPosition:"bottom-start",onClick:function(){function C(){return i("scan_occupant")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{className:u===0?"":"Button_disabled",content:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E",width:"250px",textAlign:"center",disabled:u,tooltip:"\u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E, \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0438\u0437 \u043A\u0430\u043F\u0441\u0443\u043B\u044B",tooltipPosition:"bottom-start",onClick:function(){function C(){return i("go_out")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{className:u===0?"":"Button_disabled",content:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",width:"250px",textAlign:"center",disabled:u,tooltip:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u043E\u0431\u0440\u0430\u0442\u043D\u043E \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442 \u0441 \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u043E\u043D \u0431\u044B\u043B \u043F\u043E\u0445\u0438\u0449\u0435\u043D. \u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C \u043A\u0430\u043A \u0441\u043B\u0435\u0434\u0443\u0435\u0442 \u0435\u0433\u043E \u0437\u0430\u043F\u0443\u0433\u0430\u0442\u044C \u043F\u0435\u0440\u0435\u0434 \u044D\u0442\u0438\u043C, \u0447\u0442\u043E\u0431\u044B \u043E\u043D \u043D\u0435 \u0440\u0430\u0437\u0431\u043E\u043B\u0442\u0430\u043B \u043E \u0432\u0430\u0441.",tooltipPosition:"bottom-start",onClick:function(){function C(){return i("teleport_out")}return C}()})]})]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043F\u0438\u0441\u043E\u043A \u0443\u0436\u0435 \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0432\u0430\u043C\u0438 \u043B\u044E\u0434\u0435\u0439",align:"center",backgroundColor:"rgba(0, 0, 0, 0.4)",children:(0,e.createComponentVNode)(2,t.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:f.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Box,{children:C.scanned_occupant})})},C.scanned_occupant)})})})})]})}},41166:function(I,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.NuclearBomb=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data;return i.extended?(0,e.createComponentVNode)(2,o.Window,{width:450,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authdisk?"eject":"id-card",selected:i.authdisk,content:i.diskname?i.diskname:"-----",tooltip:i.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return p("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!i.authdisk,selected:i.authcode,content:i.codemsg,onClick:function(){function c(){return p("code")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.anchored?"check":"times",selected:i.anchored,disabled:!i.authfull,content:i.anchored?"YES":"NO",onClick:function(){function c(){return p("toggle_anchor")}return c}()})}),i.authfull&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:i.time,disabled:!i.authfull,tooltip:"Set Timer",onClick:function(){function c(){return p("set_time")}return c}()})})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",color:i.timer?"red":"",children:i.time+"s"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.safety?"check":"times",selected:i.safety,disabled:!i.authfull,content:i.safety?"ON":"OFF",tooltip:i.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return p("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(i.timer,"bomb"),disabled:i.safety||!i.authfull,color:"red",content:i.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return p("toggle_armed")}return c}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:450,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function c(){return p("deploy")}return c}()})})})})}return S}()},52416:function(I,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(92986),m=n(72253),S=n(36036),y=n(98595),k=r.NumberInputModal=function(){function p(i,c){var s=(0,m.useBackend)(c),l=s.act,d=s.data,f=d.init_value,u=d.large_buttons,C=d.message,b=C===void 0?"":C,v=d.timeout,h=d.title,g=(0,m.useLocalState)(c,"input",f),N=g[0],x=g[1],B=function(){function E(w){w!==N&&x(w)}return E}(),L=function(){function E(w){w!==N&&x(w)}return E}(),T=140+Math.max(Math.ceil(b.length/3),b.length>0&&u?5:0);return(0,e.createComponentVNode)(2,y.Window,{title:h,width:270,height:T,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function E(w){var A=window.event?w.which:w.keyCode;A===o.KEY_ENTER&&l("submit",{entry:N}),A===o.KEY_ESCAPE&&l("cancel")}return E}(),children:(0,e.createComponentVNode)(2,S.Section,{fill:!0,children:(0,e.createComponentVNode)(2,S.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,S.Box,{color:"label",children:b})}),(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,V,{input:N,onClick:L,onChange:B})}),(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:N})})]})})})]})}return p}(),V=function(i,c){var s=(0,m.useBackend)(c),l=s.act,d=s.data,f=d.min_value,u=d.max_value,C=d.init_value,b=d.round_value,v=i.input,h=i.onClick,g=i.onChange,N=Math.round(v!==f?Math.max(v/2,f):u/2),x=v===f&&f>0||v===1;return(0,e.createComponentVNode)(2,S.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,S.Button,{disabled:v===f,icon:"angle-double-left",onClick:function(){function B(){return h(f)}return B}(),tooltip:v===f?"Min":"Min ("+f+")"})}),(0,e.createComponentVNode)(2,S.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,S.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!b,minValue:f,maxValue:u,onChange:function(){function B(L,T){return g(T)}return B}(),onEnter:function(){function B(L,T){return l("submit",{entry:T})}return B}(),value:v})}),(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,S.Button,{disabled:v===u,icon:"angle-double-right",onClick:function(){function B(){return h(u)}return B}(),tooltip:v===u?"Max":"Max ("+u+")"})}),(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,S.Button,{disabled:x,icon:"divide",onClick:function(){function B(){return h(N)}return B}(),tooltip:x?"Split":"Split ("+N+")"})}),(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,S.Button,{disabled:v===C,icon:"redo",onClick:function(){function B(){return h(C)}return B}(),tooltip:C?"Reset ("+C+")":"Reset"})})]})}},1218:function(I,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(98595),m=n(36036),S=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],k={average:[.25,.5],bad:[.5,1/0]},V=["bad","average","average","good","average","average","bad"],p=r.OperatingComputer=function(){function l(d,f){var u=(0,t.useBackend)(f),C=u.act,b=u.data,v=b.hasOccupant,h=b.choice,g;return h?g=(0,e.createComponentVNode)(2,s):g=v?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:!h,icon:"user",onClick:function(){function N(){return C("choiceOff")}return N}(),children:"Patient"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function N(){return C("choiceOn")}return N}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,children:g})})]})})})}return l}(),i=function(d,f){var u=(0,t.useBackend)(f),C=u.data,b=C.occupant;return(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Name",children:b.name}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Status",color:S[b.stat][0],children:S[b.stat][1]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:b.maxHealth,value:b.health/b.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),y.map(function(v,h){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:v[0]+" Damage",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:"100",value:b[v[1]]/100,ranges:k,children:(0,a.round)(b[v[1]])},h)},h)}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:b.maxTemp,value:b.bodyTemperature/b.maxTemp,color:V[b.temperatureSuitability+3],children:[(0,a.round)(b.btCelsius),"\xB0C, ",(0,a.round)(b.btFaren),"\xB0F"]})}),!!b.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:b.bloodMax,value:b.bloodLevel/b.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[b.bloodPercent,"%, ",b.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Pulse",children:[b.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:"Current Procedures",level:"2",children:b.inSurgery?b.surgeries.map(function(v){var h=v.bodypartName,g=v.surgeryName,N=v.stepName;return(0,e.createComponentVNode)(2,m.Section,{title:h,level:"4",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Procedure",children:g}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Next Step",children:N})]})},h)}):(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},s=function(d,f){var u=(0,t.useBackend)(f),C=u.act,b=u.data,v=b.verbose,h=b.health,g=b.healthAlarm,N=b.oxy,x=b.oxyAlarm,B=b.crit;return(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,m.Button,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"On":"Off",onClick:function(){function L(){return C(v?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,m.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function L(){return C(h?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,m.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:g,stepPixelSize:5,ml:"0",onChange:function(){function L(T,E){return C("health_adj",{new:E})}return L}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,m.Button,{selected:N,icon:N?"toggle-on":"toggle-off",content:N?"On":"Off",onClick:function(){function L(){return C(N?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,m.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:x,stepPixelSize:5,ml:"0",onChange:function(){function L(T,E){return C("oxy_adj",{new:E})}return L}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,m.Button,{selected:B,icon:B?"toggle-on":"toggle-off",content:B?"On":"Off",onClick:function(){function L(){return C(B?"critOff":"critOn")}return L}()})})]})}},46892:function(I,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(98595);function S(f,u){var C=typeof Symbol!="undefined"&&f[Symbol.iterator]||f["@@iterator"];if(C)return(C=C.call(f)).next.bind(C);if(Array.isArray(f)||(C=y(f))||u&&f&&typeof f.length=="number"){C&&(f=C);var b=0;return function(){return b>=f.length?{done:!0}:{done:!1,value:f[b++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(f,u){if(f){if(typeof f=="string")return k(f,u);var C={}.toString.call(f).slice(8,-1);return C==="Object"&&f.constructor&&(C=f.constructor.name),C==="Map"||C==="Set"?Array.from(f):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?k(f,u):void 0}}function k(f,u){(u==null||u>f.length)&&(u=f.length);for(var C=0,b=Array(u);CC},c=function(u,C){var b=u.name,v=C.name;if(!b||!v)return 0;var h=b.match(V),g=v.match(V);if(h&&g&&b.replace(V,"")===v.replace(V,"")){var N=parseInt(h[1],10),x=parseInt(g[1],10);return N-x}return i(b,v)},s=function(u,C){var b=(0,t.useBackend)(C),v=b.act,h=u.searchText,g=u.source,N=u.title,x=g.filter(p(h));return x.sort(c),g.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:N+" - ("+g.length+")",children:x.map(function(B){return(0,e.createComponentVNode)(2,o.Button,{content:B.name,onClick:function(){function L(){return v("orbit",{ref:B.ref})}return L}()},B.name)})})},l=function(u,C){var b=(0,t.useBackend)(C),v=b.act,h=u.color,g=u.thing;return(0,e.createComponentVNode)(2,o.Button,{color:h,onClick:function(){function N(){return v("orbit",{ref:g.ref})}return N}(),children:g.name})},d=r.Orbit=function(){function f(u,C){for(var b=(0,t.useBackend)(C),v=b.act,h=b.data,g=h.alive,N=h.antagonists,x=h.highlights,B=h.auto_observe,L=h.dead,T=h.ghosts,E=h.misc,w=h.npcs,A=(0,t.useLocalState)(C,"searchText",""),O=A[0],M=A[1],P={},R=S(N),F;!(F=R()).done;){var _=F.value;P[_.antag]===void 0&&(P[_.antag]=[]),P[_.antag].push(_)}var U=Object.entries(P);U.sort(function($,G){return i($[0],G[0])});var W=function(){function $(G){for(var oe=0,X=[U.map(function(ne){var re=ne[0],q=ne[1];return q}),x,g,T,L,w,E];oe0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:U.map(function($){var G=$[0],oe=$[1];return(0,e.createComponentVNode)(2,o.Section,{title:G,level:2,children:oe.filter(p(O)).sort(c).map(function(X){return(0,e.createComponentVNode)(2,l,{color:"bad",thing:X},X.name)})},G)})}),x.length>0&&(0,e.createComponentVNode)(2,s,{title:"Highlights",source:x,searchText:O,color:"teal"}),(0,e.createComponentVNode)(2,o.Section,{title:"Alive - ("+g.length+")",children:g.filter(p(O)).sort(c).map(function($){return(0,e.createComponentVNode)(2,l,{color:"good",thing:$},$.name)})}),(0,e.createComponentVNode)(2,o.Section,{title:"Ghosts - ("+T.length+")",children:T.filter(p(O)).sort(c).map(function($){return(0,e.createComponentVNode)(2,l,{color:"grey",thing:$},$.name)})}),(0,e.createComponentVNode)(2,s,{title:"Dead",source:L,searchText:O}),(0,e.createComponentVNode)(2,s,{title:"NPCs",source:w,searchText:O}),(0,e.createComponentVNode)(2,s,{title:"Misc",source:E,searchText:O})]})})}return f}()},15421:function(I,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(98595),S=n(9394);function y(u){if(u==null)throw new TypeError("Cannot destructure "+u)}var k=(0,S.createLogger)("OreRedemption"),V=function(C){return C.toLocaleString("en-US")+" pts"},p=r.OreRedemption=function(){function u(C,b){return(0,e.createComponentVNode)(2,m.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,s)]})})})}return u}(),i=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.id,x=g.points,B=g.disk,L=Object.assign({},(y(C),C));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID card",children:N?(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:N.name,tooltip:"Ejects the ID card.",onClick:function(){function T(){return h("eject_id")}return T}(),style:{"white-space":"pre-wrap"}}):(0,e.createComponentVNode)(2,o.Button,{icon:"sign-in-alt",content:"Insert",tooltip:"Hold the ID card in your hand to insert.",onClick:function(){function T(){return h("insert_id")}return T}()})}),N&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:V(N.points)})}),N&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:V(N.total_points)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:x>0?"good":"grey",bold:x>0&&"good",children:V(x)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!N,icon:"hand-holding-usd",content:"Claim",onClick:function(){function T(){return h("claim")}return T}()})})]}),(0,e.createComponentVNode)(2,o.Divider),B?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:B.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return h("eject_disk")}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:B.design&&(B.compatible?"good":"bad"),children:B.design||"N/A"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!B.design||!B.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return h("download")}return T}()})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.sheets,x=Object.assign({},(y(C),C));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},x,{children:[(0,e.createComponentVNode)(2,l,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),N.map(function(B){return(0,e.createComponentVNode)(2,d,{ore:B},B.id)})]})))})},s=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.alloys,x=Object.assign({},(y(C),C));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},x,{children:[(0,e.createComponentVNode)(2,l,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),N.map(function(B){return(0,e.createComponentVNode)(2,f,{ore:B},B.id)})]})))})},l=function(C,b){var v;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:C.title}),(v=C.columns)==null?void 0:v.map(function(h){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:h[1],textAlign:"center",color:"label",bold:!0,children:h[0]},h)})]})})},d=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=C.ore;if(!(g.value&&g.amount<=0&&!(["metal","glass"].indexOf(g.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",g.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:g.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:g.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function N(x,B){return h(g.value?"sheet":"alloy",{id:g.id,amount:B})}return N}()})})]})})},f=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=C.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",g.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:g.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:g.amount>=1?"good":"gray",align:"center",children:g.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function N(x,B){return h(g.value?"sheet":"alloy",{id:g.id,amount:B})}return N}()})})]})})}},30373:function(I,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(71253),S=n(70752),y=function(p){var i;try{i=S("./"+p+".js")}catch(s){if(s.code==="MODULE_NOT_FOUND")return(0,m.routingError)("notFound",p);throw s}var c=i[p];return c||(0,m.routingError)("missingExport",p)},k=r.PAI=function(){function V(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.app_template,f=l.app_icon,u=l.app_title,C=y(d);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:f,mr:1}),u,d!=="pai_main_menu"&&(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Home",icon:"arrow-up",onClick:function(){function b(){return s("MASTER_back")}return b}()})]}),p:1,children:(0,e.createComponentVNode)(2,C)})})})}return V}()},85175:function(I,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(71253),S=n(59395),y=function(c){var s;try{s=S("./"+c+".js")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,m.routingError)("notFound",c);throw d}var l=s[c];return l||(0,m.routingError)("missingExport",c)},k=r.PDA=function(){function i(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.app,C=f.owner;if(!C)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var b=y(u.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,V)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:u.icon,mr:1}),u.name]}),children:(0,e.createComponentVNode)(2,b)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,p)})]})})})}return i}(),V=function(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.idInserted,C=f.idLink,b=f.stationTime,v=f.cartridge_name,h=f.request_cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function g(){return d("Authenticate")}return g}(),content:u?C:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function g(){return d("Eject")}return g}(),content:v?["Eject "+v]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function g(){return d("Eject_Request")}return g}(),content:h?["Eject "+h]:"No Request Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:b})]})},p=function(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!u.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:u.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function C(){return d("Back")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:u.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:u.is_home?"disabled":"white",icon:"home",onClick:function(){function C(){d("Home")}return C}()})})]})})}},38280:function(I,r,n){"use strict";r.__esModule=!0,r.PDAPainter=r.PDAColorRow=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),m=r.PDAPainter=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.statusLabel,l=c.pdaTypes,d=c.hasPDA,f=c.pdaIcon,u=c.pdaIconState,C=c.pdaOwnerName,b=c.pdaJobName;return(0,e.createComponentVNode)(2,t.Window,{width:545,height:350,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{spacing:1,direction:"row",height:"100%",flex:"1",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{width:24,shrink:0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u0431\u0449\u0435\u0435",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:d?"eject":"exclamation-triangle",selected:d,content:d?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C":"-----",tooltip:d?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C PDA":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C PDA",tooltipPosition:"left",onClick:function(){function v(){return i(d?"eject_pda":"insert_pda")}return v}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0418\u043C\u044F",children:C||"\u041D/\u0414"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C",children:b||"\u041D/\u0414"})]})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",direction:"column",flex:"1",children:(0,e.createComponentVNode)(2,o.Flex.Item,{children:[(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.DmIcon,{height:"160px",icon:f,icon_state:u,style:{"-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"},align:"middle"})}),(0,e.createComponentVNode)(2,o.LabeledList,{m:"5px",children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",children:s})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{m:"5px",fluid:!0,disabled:!d,content:"\u0421\u0442\u0435\u0440\u0435\u0442\u044C PDA",confirmContent:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C?",textAlign:"left",color:"red",tooltip:"C\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0442\u0435\u043B\u0435\u0444\u043E\u043D \u043D\u0430 \u0437\u0430\u0432\u043E\u0434\u0441\u043A\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltipPosition:"top",onClick:function(){function v(){return i("erase_pda")}return v}()})]})})})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:27,children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",flex:"1",children:(0,e.createComponentVNode)(2,o.Section,{title:"\u0426\u0432\u0435\u0442 PDA",flexGrow:"1",scrollable:!0,fill:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:Object.keys(l).map(function(v){return(0,e.createComponentVNode)(2,S,{selectedPda:v,selectedPdaIcon:l[v][0]},v)})})})})})]})})})}return y}(),S=r.PDAColorRow=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.hasPDA,l=c.pdaIcon,d=k.selectedPda;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.DmIcon,{icon:l,icon_state:d,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,disabled:!s,icon:d,content:d,confirmContent:"\u041F\u043E\u043A\u0440\u0430\u0441\u0438\u0442\u044C?",textAlign:"left",onClick:function(){function f(){return i("choose_pda",{selectedPda:d})}return f}()})})]})}return y}()},68654:function(I,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(49968),S=r.Pacman=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.broken,l=c.anchored,d=c.active,f=c.fuel_type,u=c.fuel_usage,C=c.fuel_stored,b=c.fuel_cap,v=c.is_ai,h=c.tmp_current,g=c.tmp_max,N=c.tmp_overheat,x=c.output_max,B=c.power_gen,L=c.output_set,T=c.has_fuel,E=C/b,w=h/g,A=L*B,O=Math.round(C/u),M=Math.round(O/60),P=O>120?M+" minutes":O+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(s||!l)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!s&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!s&&!l&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!s&&!!l&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!T,selected:d,onClick:function(){function R(){return i("toggle_power")}return R}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:L,minValue:1,maxValue:x,step:1,className:"mt-1",onDrag:function(){function R(F,_){return i("change_power",{change_power:_})}return R}()}),"(",(0,m.formatPower)(A),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[h," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[N>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),N>20&&N<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),N>1&&N<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),N===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:d||v||!T,onClick:function(){function R(){return i("eject_fuel")}return R}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:f}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(C/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[u/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!T&&(u?P:"N/A"),!T&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return y}()},33388:function(I,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.PersonalCrafting=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.busy,d=s.category,f=s.display_craftable_only,u=s.display_compact,C=s.prev_cat,b=s.next_cat,v=s.subcategory,h=s.prev_subcat,g=s.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!l&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:d,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:f?"check-square-o":"square-o",selected:f,onClick:function(){function N(){return c("toggle_recipes")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:u?"check-square-o":"square-o",selected:u,onClick:function(){function N(){return c("toggle_compact")}return N}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"arrow-left",onClick:function(){function N(){return c("backwardCat")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:b,icon:"arrow-right",onClick:function(){function N(){return c("forwardCat")}return N}()})]}),v&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function N(){return c("backwardSubCat")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function N(){return c("forwardSubCat")}return N}()})]}),u?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)]})]})})}return k}(),S=function(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.display_craftable_only,d=s.can_craft,f=s.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function C(){return c("make",{make:u.ref})}return C}()}),u.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:u.req_text,content:"Requirements",color:"transparent"}),u.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.tool_text,content:"Tools",color:"transparent"})]},u.name)}),!l&&f.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),u.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:u.req_text,content:"Requirements",color:"transparent"}),u.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.tool_text,content:"Tools",color:"transparent"})]},u.name)})]})})},y=function(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.display_craftable_only,d=s.can_craft,f=s.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[d.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function C(){return c("make",{make:u.ref})}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:u.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:u.req_text}),u.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:u.tool_text})]})},u.name)}),!l&&f.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:u.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:u.req_text}),u.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:u.tool_text})]})},u.name)})]})}},56150:function(I,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(88510),S=n(64795),y=n(25328);function k(s,l){var d=typeof Symbol!="undefined"&&s[Symbol.iterator]||s["@@iterator"];if(d)return(d=d.call(s)).next.bind(d);if(Array.isArray(s)||(d=V(s))||l&&s&&typeof s.length=="number"){d&&(s=d);var f=0;return function(){return f>=s.length?{done:!0}:{done:!1,value:s[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.")}function V(s,l){if(s){if(typeof s=="string")return p(s,l);var d={}.toString.call(s).slice(8,-1);return d==="Object"&&s.constructor&&(d=s.constructor.name),d==="Map"||d==="Set"?Array.from(s):d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?p(s,l):void 0}}function p(s,l){(l==null||l>s.length)&&(l=s.length);for(var d=0,f=Array(l);ds?this.substring(0,s)+"...":this};var i=function(l,d){d===void 0&&(d="");var f=(0,y.createSearch)(d,function(u){return u.altername});return(0,S.flow)([(0,m.filter)(function(u){return u==null?void 0:u.altername}),d&&(0,m.filter)(f),(0,m.sortBy)(function(u){return u.id})])(l)},c=r.Photocopier=function(){function s(l,d){for(var f=(0,a.useBackend)(d),u=f.act,C=f.data,b=C.copies,v=C.maxcopies,h=(0,a.useLocalState)(d,"searchText",""),g=h[0],N=h[1],x=i((0,m.sortBy)(function(P){return P.category})(C.forms||[]),g),B=[],L=k(x),T;!(T=L()).done;){var E=T.value;B.includes(E.category)||B.push(E.category)}var w=(0,a.useLocalState)(d,"number",0),A=w[0],O=w[1],M;return C.category===""?M=x:M=x.filter(function(P){return P.category===C.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:C.ui_theme,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"40%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mt:.3,color:"grey",children:"\u0417\u0430\u0440\u044F\u0434 \u0442\u043E\u043D\u0435\u0440\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,maxValue:30,value:C.toner})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mb:.3,color:"grey",children:"\u0424\u043E\u0440\u043C\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",textAlign:"center",bold:!0,children:C.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":C.form_id})]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!C.copyitem&&!C.mob,icon:C.copyitem||C.mob?"eject":"times",content:C.copyitem?C.copyitem:C.mob?"\u0416\u043E\u043F\u0430 "+C.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function P(){return u("removedocument")}return P}()})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!C.folder,icon:C.folder?"eject":"times",content:C.folder?C.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function P(){return u("removefolder")}return P}()})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"print",disabled:C.toner===0||C.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function P(){return u("print_form")}return P}()})}),!!C.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"image",disabled:C.toner<5,content:"\u0424\u043E\u0442\u043E",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0444\u043E\u0442\u043E \u0441 \u0411\u0430\u0437\u044B \u0414\u0430\u043D\u043D\u044B\u0445",onClick:function(){function P(){return u("ai_pic")}return P}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"copy",content:"\u041A\u043E\u043F\u0438\u044F",disabled:C.toner===0||!C.copyitem&&!C.mob,onClick:function(){function P(){return u("copy")}return P}()})}),!!C.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"i-cursor",content:"\u0422\u0435\u043A\u0441\u0442",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0439 \u0442\u0435\u043A\u0441\u0442",disabled:C.toner===0,onClick:function(){function P(){return u("ai_text")}return P}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:1.5,mt:1.2,width:"50%",color:"grey",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E:"}),(0,e.createComponentVNode)(2,t.Slider,{mt:.75,width:"50%",animated:!0,minValue:1,maxValue:v,value:b,stepPixelSize:10,onChange:function(){function P(R,F){return u("copies",{new:F})}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0411\u044E\u0440\u043E\u043A\u0440\u0430\u0442\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:-.5,icon:"chevron-right",color:"transparent",content:"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",selected:!C.category,onClick:function(){function P(){return u("choose_category",{category:""})}return P}()})}),B.map(function(P){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"chevron-right",mb:-.5,color:"transparent",content:P,selected:C.category===P,onClick:function(){function R(){return u("choose_category",{category:P})}return R}()},P)},P)})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:C.category||"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",buttons:(0,e.createComponentVNode)(2,t.Input,{mr:18.5,width:"100%",placeholder:"\u041F\u043E\u0438\u0441\u043A \u0444\u043E\u0440\u043C\u044B",onInput:function(){function P(R,F){return N(F)}return P}()}),children:M.map(function(P){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:.5,color:"transparent",content:P.altername.trimLongStr(37),tooltip:P.altername,selected:C.form_id===P.id,onClick:function(){function R(){return u("choose_form",{path:P.path,id:P.id})}return R}()})},P.path)})})})]})})})}return s}()},94158:function(I,r,n){"use strict";r.__esModule=!0,r.PodTracking=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.PodTracking=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.pods;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:c.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Position",children:[s.podx,", ",s.pody,", ",s.podz]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pilot",children:s.pilot}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Passengers",children:s.passengers})]})},s.name)})})})}return S}()},70857:function(I,r,n){"use strict";r.__esModule=!0,r.PollListPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.PollListPanel=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.polls||{};return(0,e.createComponentVNode)(2,o.Window,{title:"Poll List Panel",width:700,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Poll List Panel",children:["Currently running polls Note when editing polls or their options changes are not saved until you press Sumbit Poll.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"New Poll",onClick:function(){function s(){return p("newpoll")}return s}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.question,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",onClick:function(){function l(){return p("editpoll",{poll_to_edit:s.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",onClick:function(){function l(){return p("deletepoll",{poll_to_delete:s.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Results",onClick:function(){function l(){return p("resultspoll",{poll_to_result:s.id})}return l}()}),(0,e.createComponentVNode)(2,t.Box,{children:s.description}),(0,e.createComponentVNode)(2,t.Divider)]},"poll")})})]})})})}return S}()},45736:function(I,r,n){"use strict";r.__esModule=!0,r.PollManagement=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(94798),m=n(98595),S=r.PollManagement=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.poll,d=s.has_poll,f=s.poll_types,u=s.interval_types,C=(0,a.useLocalState)(p,"question",l.question),b=C[0],v=C[1],h=(0,a.useLocalState)(p,"poll_type",l.poll_type),g=h[0],N=h[1],x=(0,a.useLocalState)(p,"options_allowed",l.options_allowed),B=x[0],L=x[1],T=(0,a.useLocalState)(p,"admin_only",l.admin_only),E=T[0],w=T[1],A=(0,a.useLocalState)(p,"dont_show",l.dont_show),O=A[0],M=A[1],P=(0,a.useLocalState)(p,"allow_revoting",l.allow_revoting),R=P[0],F=P[1],_=(0,a.useLocalState)(p,"interval",l.interval),U=_[0],W=_[1],$=(0,a.useLocalState)(p,"duration",l.duration),G=$[0],oe=$[1],X=(0,a.useLocalState)(p,"start_datetime",l.start_datetime),pe=X[0],me=X[1],ne=(0,a.useLocalState)(p,"end_datetime",l.end_datetime),re=ne[0],q=ne[1],ae=(0,a.useLocalState)(p,"subtitle",l.subtitle),J=ae[0],Y=ae[1],Q=(0,a.useLocalState)(p,"minimum_playtime",l.minimum_playtime),Z=Q[0],te=Q[1],se=(0,a.useLocalState)(p,"run_duration",l.run_duration),ye=se[0],fe=se[1],Le=(0,a.useLocalState)(p,"run_start",l.run_start),D=Le[0],ie=Le[1],le=(0,a.useLocalState)(p,"clear_votes",l.clear_votes),Ce=le[0],he=le[1];return(0,e.createComponentVNode)(2,m.Window,{title:"Poll Management",width:600,height:640,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Poll Creation",children:[(0,e.createComponentVNode)(2,t.Box,{children:["Question:",(0,e.createComponentVNode)(2,t.Input,{width:40,placeholder:"Question goes here",value:b,onChange:function(){function ve(Be,we){return v(we)}return ve}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{inline:!0,pl:1,children:"Choice:"}),(0,e.createComponentVNode)(2,t.Dropdown,{width:10,disabled:d,options:f,selected:g,onSelected:function(){function ve(Be){return N(Be)}return ve}()}),d&g!=="Multiple Choice"?null:(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:["Mult-choice options allowed:",(0,e.createComponentVNode)(2,t.NumberInput,{width:3,minValue:0,maxValue:100,value:B,onChange:function(){function ve(Be,we){return L(!B)}return ve}()})]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Admin only",checked:E,onClick:function(){function ve(){return w(!E)}return ve}()}),(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Don't show",checked:O,onClick:function(){function ve(){return M(!O)}return ve}()}),(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Allow revoting",checked:R,onClick:function(){function ve(){return F(!R)}return ve}()}),"Min. playtime to vote (in hours):",(0,e.createComponentVNode)(2,t.Box,{inline:!0,ml:1,children:(0,e.createComponentVNode)(2,t.NumberInput,{width:3,placeholder:"Number of hours",value:Z,onChange:function(){function ve(Be,we){return te(we)}return ve}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:[(0,e.createComponentVNode)(2,t.Box,{children:"Duration"}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",py:1,content:ye?"Run for":"Run until",onClick:function(){function ve(){return fe(!ye)}return ve}()}),ye?(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,t.NumberInput,{placeholder:"Amount number",width:3,minValue:0,maxValue:100,value:G,onChange:function(){function ve(Be,we){return oe(we)}return ve}()}),(0,e.createComponentVNode)(2,t.Dropdown,{options:u,selected:U,onSelected:function(){function ve(Be){return W(Be)}return ve}()})]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:["Until:",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Input,{width:15,placeholder:"YYYY-MM-DD HH:MM:SS",value:re||"1970-01-01 00:00:01",onChange:function(){function ve(Be,we){return q(we)}return ve}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Start"}),(0,e.createComponentVNode)(2,t.Button,{content:D?"Now":"At datetime",onClick:function(){function ve(){return ie(!D)}return ve}()}),D?null:(0,e.createComponentVNode)(2,t.Input,{width:15,placeholder:"YYYY-MM-DD HH:MM:SS",value:pe||"1970-01-01 00:00:01",onChange:function(){function ve(Be,we){return me(we)}return ve}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Subtitle (Optional)",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.TextArea,{height:10,width:20,rows:"12",value:J,onChange:function(){function ve(Be,we){return Y(we)}return ve}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:d?(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Clear poll votes",onClick:function(){function ve(){return c("clear_poll_votes")}return ve}()}),l.poll_votes," players have voted"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Clear votes on edit",checked:Ce,onClick:function(){function ve(){return he(!Ce)}return ve}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{p:2,content:"Submit Poll",onClick:function(){function ve(){return c("submit_poll",{question:b,poll_type:g,options_allowed:B,admin_only:E,dont_show:O,allow_revoting:R,interval:U,duration:G,start_datetime:pe,end_datetime:re,subtitle:J,poll_votes:Z,run_duration:ye,run_start:D,clear_votes:Ce})}return ve}()})})]}):(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{p:1,m:2,content:"Initliaze Question",onClick:function(){function ve(){return c("initialize_poll",{question:b,poll_type:g,options_allowed:B,admin_only:E,dont_show:O,allow_revoting:R,interval:U,duration:G,start_datetime:pe,end_datetime:re,subtitle:J,poll_votes:Z,run_duration:ye,run_start:D,clear_votes:Ce})}return ve}()})})})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Questions Manage",children:d?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,t.Box,{children:"First enter the poll question details and press Initialize Question. Then add poll options and press Submit Poll to save and create the question and options. No options are required for Text Reply polls."})})]})})}return k}(),y=function(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.poll,d=l.options,f=(0,a.useLocalState)(p,"poll_type",null),u=f[0],C=f[1];return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Add Option",onClick:function(){function b(){return c("add_poll_option")}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(b){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Option "+b.num,children:[b.text,u==="Rating"?(0,e.createComponentVNode)(2,t.Box,{children:["Minimum value: ",b.min_val," | Maximum value:"," ",b.max_val,"Minimum description: ",b.desc_min,"Middle description: ",b.desc_mid,"Maximum description: ",b.desc_max]}):null,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Edit",onClick:function(){function v(){return c("edit_poll_option",{option_to_edit:b.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",onClick:function(){function v(){return c("delete_poll_option",{option_to_delete:b.id})}return v}()}),(0,e.createComponentVNode)(2,t.Divider)]},"option")})})})]})}},80378:function(I,r,n){"use strict";r.__esModule=!0,r.PollOptionPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(94798),m=n(98595),S=r.PollOptionPanel=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.poll_question,l=c.is_rating,d=c.option,f=(0,a.useLocalState)(V,"text",d.text),u=f[0],C=f[1],b=(0,a.useLocalState)(V,"default_percentage_calc",d.default_percentage_calc),v=b[0],h=b[1],g=(0,a.useLocalState)(V,"min_val",d.min_val),N=g[0],x=g[1],B=(0,a.useLocalState)(V,"max_val",d.max_val),L=B[0],T=B[1],E=(0,a.useLocalState)(V,"desc_min_check",d.desc_min_check),w=E[0],A=E[1],O=(0,a.useLocalState)(V,"desc_mid_check",d.desc_mid_check),M=O[0],P=O[1],R=(0,a.useLocalState)(V,"desc_max_check",d.desc_max_check),F=R[0],_=R[1],U=(0,a.useLocalState)(V,"desc_min_text",d.desc_min_text),W=U[0],$=U[1],G=(0,a.useLocalState)(V,"desc_mid_text",d.desc_min_text),oe=G[0],X=G[1],pe=(0,a.useLocalState)(V,"desc_max_text",d.desc_min_text),me=pe[0],ne=pe[1];return(0,e.createComponentVNode)(2,m.Window,{title:"Poll Option Panel",width:400,height:l?320:180,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:s,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{width:"100%",content:u,onChange:function(){function re(q,ae){return C(ae)}return re}()})}),(0,e.createVNode)(1,"br"),l?(0,e.createComponentVNode)(2,t.Box,{children:["Minimum value",(0,e.createComponentVNode)(2,t.Input,{value:N}),"Maximum Value",(0,e.createComponentVNode)(2,t.Input,{value:L}),(0,e.createComponentVNode)(2,Table,{children:[(0,e.createComponentVNode)(2,Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Minimum description",checked:w,onClick:function(){function re(){return A(!w)}return re}()})}),(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Middle description",checked:M,onClick:function(){function re(){return P(!M)}return re}()})}),(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Maximum description",checked:F,onClick:function(){function re(){return _(!F)}return re}()})})]}),(0,e.createComponentVNode)(2,Table.Row,{children:[(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:W,onEnter:function(){function re(q,ae){return $(ae)}return re}()})}),(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:oe,onEnter:function(){function re(q,ae){return X(ae)}return re}()})}),(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:me,onEnter:function(){function re(q,ae){return ne(ae)}return re}()})})]})]}),(0,e.createVNode)(1,"br")]}):null,(0,e.createComponentVNode)(2,o.ButtonCheckbox,{checked:v,content:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u043F\u0446\u0438\u044E \u0432 \u0440\u0430\u0441\u0447\u0435\u0442 \u043F\u0440\u043E\u0446\u0435\u043D\u0442\u0430 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432 \u043E\u043F\u0440\u043E\u0441\u0430",onClick:function(){function re(){return h(!v)}return re}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Sumbit",onClick:function(){function re(){return i("submit_option",{text:u,default_percentage_calc:v,min_val:N,max_val:L,desc_min_check:w,desc_mid_check:M,desc_max_check:F,desc_min_text:W,desc_mid_text:oe,desc_max_text:me})}return re}()})]})})})}return y}()},84676:function(I,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=["tempKey"];function S(p,i){if(p==null)return{};var c={};for(var s in p)if({}.hasOwnProperty.call(p,s)){if(i.includes(s))continue;c[s]=p[s]}return c}var y={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},k=function(i,c){var s=i.tempKey,l=S(i,m),d=y[s];if(!d)return null;var f=(0,a.useBackend)(c),u=f.data,C=f.act,b=u.currentTemp,v=d.label,h=d.icon,g=s===b,N=function(){C("setTemp",{temp:s})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({selected:g,onClick:N},l,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h}),v]})))},V=r.PoolController=function(){function p(i,c){for(var s=(0,a.useBackend)(c),l=s.data,d=l.emagged,f=l.currentTemp,u=y[f]||y.normal,C=u.label,b=u.color,v=[],h=0,g=Object.entries(y);h50?"battery-half":"battery-quarter")||b==="C"&&"bolt"||b==="F"&&"battery-full"||b==="M"&&"slash",color:b==="N"&&(v>50?"yellow":"red")||b==="C"&&"yellow"||b==="F"&&"green"||b==="M"&&"orange"}),(0,e.createComponentVNode)(2,k.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(v)+"%"})],4)};d.defaultHooks=m.pureComponentHooks;var f=function(C){var b,v,h=C.status;switch(h){case"AOn":b=!0,v=!0;break;case"AOff":b=!0,v=!1;break;case"On":b=!1,v=!0;break;case"Off":b=!1,v=!1;break}var g=(v?"On":"Off")+(" ["+(b?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,k.ColorBox,{color:v?"good":"bad",content:b?void 0:"M",title:g})};f.defaultHooks=m.pureComponentHooks},50992:function(I,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),m=n(3939),S=n(321),y=n(5485),k=n(98595),V=r.PrisonerImplantManager=function(){function p(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.loginState,u=d.prisonerInfo,C=d.chemicalInfo,b=d.trackingInfo,v;if(!f.logged_in)return(0,e.createComponentVNode)(2,k.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,y.LoginScreen)})});var h=[1,5,10];return(0,e.createComponentVNode)(2,k.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:u.name?"eject":"id-card",selected:u.name,content:u.name?u.name:"-----",tooltip:u.name?"Eject ID":"Insert ID",onClick:function(){function g(){return l("id_card")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[u.points!==null?u.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:u.points===null,content:"Reset",onClick:function(){function g(){return l("reset_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[u.goal!==null?u.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:u.goal===null,content:"Edit",onClick:function(){function g(){return(0,m.modalOpen)(c,"set_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:u.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:b.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:g.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:g.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function N(){return(0,m.modalOpen)(c,"warn",{uid:g.uid})}return N}()})})]})]},g.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:C.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:g.volume})}),h.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:g.volume1100?"purple":f>500?"orange":f>250?"yellow":"green"},k=function(f,u){for(var C=[],b=0;b0?"envelope-open-text":"envelope",onClick:function(){function x(){return C("setScreen",{setScreen:6})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Assistance",icon:"hand-paper",onClick:function(){function x(){return C("setScreen",{setScreen:1})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Supplies",icon:"box",onClick:function(){function x(){return C("setScreen",{setScreen:2})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Relay Anonymous Information",icon:"comment",onClick:function(){function x(){return C("setScreen",{setScreen:3})}return x}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print Shipping Label",icon:"tag",onClick:function(){function x(){return C("setScreen",{setScreen:9})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function x(){return C("setScreen",{setScreen:10})}return x}()})})]}),!!h&&(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function x(){return C("setScreen",{setScreen:8})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{content:g?"Speaker Off":"Speaker On",selected:!g,icon:g?"volume-mute":"volume-up",onClick:function(){function x(){return C("toggleSilent")}return x}()})})]})},k=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v=b.department,h,g;switch(d.purpose){case"ASSISTANCE":h=b.assist_dept,g="Request assistance from another department";break;case"SUPPLIES":h=b.supply_dept,g="Request supplies from another department";break;case"INFO":h=b.info_dept,g="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Section,{title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return C("setScreen",{setScreen:0})}return N}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.filter(function(N){return N!==v}).map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function x(){return C("writeInput",{write:N,priority:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function x(){return C("writeInput",{write:N,priority:2})}return x}()})]},N)})})})},V=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v;switch(d.type){case"SUCCESS":v="Message sent successfully";break;case"FAIL":v="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{title:v,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return C("setScreen",{setScreen:0})}return h}()})})},p=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v,h;switch(d.type){case"MESSAGES":v=b.message_log,h="Message Log";break;case"SHIPPING":v=b.shipping_log,h="Shipping label print log";break}return(0,e.createComponentVNode)(2,t.Section,{title:h,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return C("setScreen",{setScreen:0})}return g}()}),children:v.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{className:"RequestConsole__message",children:g},g)})})},i=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v=b.recipient,h=b.message,g=b.msgVerified,N=b.msgStamped;return(0,e.createComponentVNode)(2,t.Section,{title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function x(){return C("setScreen",{setScreen:0})}return x}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:N})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function x(){return C("department",{department:v})}return x}()})]})},c=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v=b.message,h=b.announceAuth;return(0,e.createComponentVNode)(2,t.Section,{title:"Station-Wide Announcement",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return C("setScreen",{setScreen:0})}return g}()}),children:[(0,e.createComponentVNode)(2,t.Button,{content:v||"Edit Message",icon:"edit",onClick:function(){function g(){return C("writeAnnouncement")}return g}()}),h?(0,e.createComponentVNode)(2,t.Box,{mt:1,color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{mt:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(h&&v),onClick:function(){function g(){return C("sendAnnouncement")}return g}()})]})},s=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v=b.shipDest,h=b.msgVerified,g=b.ship_dept;return(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return C("setScreen",{setScreen:0})}return N}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:h})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(v&&h),onClick:function(){function N(){return C("printLabel")}return N}()}),(0,e.createComponentVNode)(2,t.Section,{title:"Destinations",mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:g.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N,children:(0,e.createComponentVNode)(2,t.Button,{content:v===N?"Selected":"Select",selected:v===N,onClick:function(){function x(){return C("shipSelect",{shipSelect:N})}return x}()})},N)})})})]})}},3786:function(I,r,n){"use strict";r.__esModule=!0,r.RequestManager=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(98595);/** + */function s(T,E){T.prototype=Object.create(E.prototype),T.prototype.constructor=T,u(T,E)}function u(T,E){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,A){return w.__proto__=A,w},u(T,E)}function d(T,E){if(T==null)return{};var w={};for(var A in T)if({}.hasOwnProperty.call(T,A)){if(E.includes(A))continue;w[A]=T[A]}return w}var f=r.ColorPickerModal=function(){function T(E,w){var A=(0,t.useBackend)(w),O=A.data,M=O.timeout,P=O.message,R=O.title,F=O.autofocus,_=O.default_color,U=_===void 0?"#000000":_,W=(0,t.useLocalState)(w,"color_picker_choice",(0,y.hexToHsva)(U)),$=W[0],Y=W[1];return(0,e.createComponentVNode)(2,m.Window,{height:400,title:R,width:600,theme:"generic",children:[!!M&&(0,e.createComponentVNode)(2,a.Loader,{value:M}),(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[P&&(0,e.createComponentVNode)(2,o.Stack.Item,{m:1,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",overflow:"hidden",children:P})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[!!F&&(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,l,{color:$,setColor:Y,defaultColor:U})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i.InputButtons,{input:(0,y.hsvaToHex)($)})})]})})]})}return T}(),l=r.ColorSelector=function(){function T(E,w){var A=E.color,O=E.setColor,M=E.defaultColor,P=function(){function _(U){O(function(W){return Object.assign({},W,U)})}return _}(),R=(0,y.hsvaToRgba)(A),F=(0,y.hsvaToHex)(A);return(0,e.createComponentVNode)(2,o.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{mr:2,children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createVNode)(1,"div","react-colorful",[(0,e.createComponentVNode)(2,g,{hsva:A,onChange:P}),(0,e.createComponentVNode)(2,N,{hue:A.h,onChange:P,className:"react-colorful__last-control"})],4)}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Current"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Previous"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Tooltip,{content:F,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:F})}),(0,e.createComponentVNode)(2,o.Tooltip,{content:M,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:M})})]})]})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,fontSize:"15px",lineHeight:"24px",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"Hex:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"24px",children:(0,e.createComponentVNode)(2,v,{fluid:!0,color:(0,y.hsvaToHex)(A).substring(1),onChange:function(){function _(U){p.logger.info(U),O((0,y.hexToHsva)(U))}return _}(),prefixed:!0})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"H:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N,{hue:A.h,onChange:P})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,C,{value:A.h,callback:function(){function _(U,W){return P({h:W})}return _}(),max:360,unit:"\xB0"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"S:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,x,{color:A,onChange:P})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,C,{value:A.s,callback:function(){function _(U,W){return P({s:W})}return _}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"V:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,B,{color:A,onChange:P})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,C,{value:A.v,callback:function(){function _(U,W){return P({v:W})}return _}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"R:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:A,onChange:P,target:"r"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,C,{value:R.r,callback:function(){function _(U,W){R.r=W,P((0,y.rgbaToHsva)(R))}return _}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"G:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:A,onChange:P,target:"g"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,C,{value:R.g,callback:function(){function _(U,W){R.g=W,P((0,y.rgbaToHsva)(R))}return _}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"B:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:A,onChange:P,target:"b"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,C,{value:R.b,callback:function(){function _(U,W){R.b=W,P((0,y.rgbaToHsva)(R))}return _}(),max:255})})]})})]})})]})}return T}(),C=function(E){var w=E.value,A=E.callback,O=E.min,M=O===void 0?0:O,P=E.max,R=P===void 0?100:P,F=E.unit;return(0,e.createComponentVNode)(2,o.NumberInput,{width:"70px",value:Math.round(w),step:1,minValue:M,maxValue:R,onChange:A,unit:F})},b=function(E){return"#"+E},v=r.HexColorInput=function(){function T(E){var w=E.prefixed,A=E.alpha,O=E.color,M=E.fluid,P=E.onChange,R=d(E,c),F=function(){function U(W){return W.replace(/([^0-9A-F]+)/gi,"").substring(0,A?8:6)}return U}(),_=function(){function U(W){return(0,y.validHex)(W,A)}return U}();return(0,e.normalizeProps)((0,e.createComponentVNode)(2,h,Object.assign({},R,{fluid:M,color:O,onChange:P,escape:F,format:w?b:void 0,validate:_})))}return T}(),h=r.ColorInput=function(T){function E(A){var O;return O=T.call(this)||this,O.props=void 0,O.state=void 0,O.handleInput=function(M){var P=O.props.escape(M.currentTarget.value);O.setState({localValue:P})},O.handleBlur=function(M){M.currentTarget&&(O.props.validate(M.currentTarget.value)?O.props.onChange(O.props.escape?O.props.escape(M.currentTarget.value):M.currentTarget.value):O.setState({localValue:O.props.escape(O.props.color)}))},O.props=A,O.state={localValue:O.props.escape(O.props.color)},O}s(E,T);var w=E.prototype;return w.componentDidUpdate=function(){function A(O,M){O.color!==this.props.color&&this.setState({localValue:this.props.escape(this.props.color)})}return A}(),w.render=function(){function A(){return(0,e.createComponentVNode)(2,o.Box,{className:(0,V.classes)(["Input",this.props.fluid&&"Input--fluid"]),children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{value:this.props.format?this.props.format(this.state.localValue):this.state.localValue,spellCheck:"false",onInput:this.handleInput,onBlur:this.handleBlur})]})}return A}(),E}(e.Component),g=function(E){var w=E.hsva,A=E.onChange,O=function(F){A({s:F.left*100,v:100-F.top*100})},M=function(F){A({s:(0,S.clamp)(w.s+F.left*100,0,100),v:(0,S.clamp)(w.v-F.top*100,0,100)})},P={"background-color":(0,y.hsvaToHslString)({h:w.h,s:100,v:100,a:1})+" !important"};return(0,e.createVNode)(1,"div","react-colorful__saturation_value",(0,e.createComponentVNode)(2,k.Interactive,{onMove:O,onKey:M,"aria-label":"Color","aria-valuetext":"Saturation "+Math.round(w.s)+"%, Brightness "+Math.round(w.v)+"%",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation_value-pointer",top:1-w.v/100,left:w.s/100,color:(0,y.hsvaToHslString)(w)})}),2,{style:P})},N=function(E){var w=E.className,A=E.hue,O=E.onChange,M=function(_){O({h:360*_.left})},P=function(_){O({h:(0,S.clamp)(A+_.left*360,0,360)})},R=(0,V.classes)(["react-colorful__hue",w]);return(0,e.createVNode)(1,"div",R,(0,e.createComponentVNode)(2,k.Interactive,{onMove:M,onKey:P,"aria-label":"Hue","aria-valuenow":Math.round(A),"aria-valuemax":"360","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__hue-pointer",left:A/360,color:(0,y.hsvaToHslString)({h:A,s:100,v:100,a:1})})}),2)},x=function(E){var w=E.className,A=E.color,O=E.onChange,M=function(_){O({s:100*_.left})},P=function(_){O({s:(0,S.clamp)(A.s+_.left*100,0,100)})},R=(0,V.classes)(["react-colorful__saturation",w]);return(0,e.createVNode)(1,"div",R,(0,e.createComponentVNode)(2,k.Interactive,{style:{background:"linear-gradient(to right, "+(0,y.hsvaToHslString)({h:A.h,s:0,v:A.v,a:1})+", "+(0,y.hsvaToHslString)({h:A.h,s:100,v:A.v,a:1})+")"},onMove:M,onKey:P,"aria-label":"Saturation","aria-valuenow":Math.round(A.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation-pointer",left:A.s/100,color:(0,y.hsvaToHslString)({h:A.h,s:A.s,v:A.v,a:1})})}),2)},B=function(E){var w=E.className,A=E.color,O=E.onChange,M=function(_){O({v:100*_.left})},P=function(_){O({v:(0,S.clamp)(A.v+_.left*100,0,100)})},R=(0,V.classes)(["react-colorful__value",w]);return(0,e.createVNode)(1,"div",R,(0,e.createComponentVNode)(2,k.Interactive,{style:{background:"linear-gradient(to right, "+(0,y.hsvaToHslString)({h:A.h,s:A.s,v:0,a:1})+", "+(0,y.hsvaToHslString)({h:A.h,s:A.s,v:100,a:1})+")"},onMove:M,onKey:P,"aria-label":"Value","aria-valuenow":Math.round(A.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__value-pointer",left:A.v/100,color:(0,y.hsvaToHslString)({h:A.h,s:A.s,v:A.v,a:1})})}),2)},L=function(E){var w=E.className,A=E.color,O=E.onChange,M=E.target,P=(0,y.hsvaToRgba)(A),R=function(Y){P[M]=Y,O((0,y.rgbaToHsva)(P))},F=function(Y){R(255*Y.left)},_=function(Y){R((0,S.clamp)(P[M]+Y.left*255,0,255))},U=(0,V.classes)(["react-colorful__"+M,w]),W=M==="r"?"rgb("+Math.round(P.r)+",0,0)":M==="g"?"rgb(0,"+Math.round(P.g)+",0)":"rgb(0,0,"+Math.round(P.b)+")";return(0,e.createVNode)(1,"div",U,(0,e.createComponentVNode)(2,k.Interactive,{onMove:F,onKey:_,"aria-valuenow":P[M],"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__"+M+"-pointer",left:P[M]/255,color:W})}),2)}},63818:function(I,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.CommunicationsComputer=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c;i.authenticated?i.is_ai?c="AI":i.authenticated===1?c="Command":i.authenticated===2?c="Captain":c="ERROR: Report This Bug!":c="Not Logged In";var s="View ("+i.messages.length+")",u=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i.is_ai&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access Level",children:"AI"})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authenticated?"sign-out-alt":"id-card",selected:i.authenticated,content:i.authenticated?"Log Out ("+c+")":"Log In",onClick:function(){function x(){return p("auth")}return x}()})})})}),!!i.esc_section&&(0,e.createComponentVNode)(2,t.Section,{title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!i.esc_status&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:i.esc_status}),!!i.esc_callable&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!i.authenticated,onClick:function(){function x(){return p("callshuttle")}return x}()})}),!!i.esc_recallable&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!i.authenticated||i.is_ai,onClick:function(){function x(){return p("cancelshuttle")}return x}()})}),!!i.lastCallLoc&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:i.lastCallLoc})]})})],0),d="Make Priority Announcement";i.msg_cooldown>0&&(d+=" ("+i.msg_cooldown+"s)");var f=i.emagged?"Message [UNKNOWN]":"Message CentComm",l="Request Authentication Codes";i.cc_cooldown>0&&(f+=" ("+i.cc_cooldown+"s)",l+=" ("+i.cc_cooldown+"s)");var C=i.str_security_level,b=i.levels.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{icon:x.icon,content:x.name,disabled:!i.authmax||x.id===i.security_level,onClick:function(){function B(){return p("newalertlevel",{level:x.id})}return B}()},x.name)}),v=i.stat_display.presets.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.label,selected:x.name===i.stat_display.type,disabled:!i.authenticated,onClick:function(){function B(){return p("setstat",{statdisp:x.name})}return B}()},x.name)}),h=i.stat_display.alerts.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.label,selected:x.alert===i.stat_display.icon,disabled:!i.authenticated,onClick:function(){function B(){return p("setstat",{statdisp:"alert",alert:x.alert})}return B}()},x.alert)}),g;if(i.current_message_title)g=(0,e.createComponentVNode)(2,t.Section,{title:i.current_message_title,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!i.authenticated,onClick:function(){function x(){return p("messagelist")}return x}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:i.current_message})});else{var N=i.messages.map(function(x){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:x.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!i.authenticated||i.current_message_title===x.title,onClick:function(){function B(){return p("messagelist",{msgid:x.id})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete",disabled:!i.authenticated,onClick:function(){function B(){return p("delmessage",{msgid:x.id})}return B}()})]},x.id)});g=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function x(){return p("main")}return x}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:N})})}switch(i.menu_state){case 1:return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[u,(0,e.createComponentVNode)(2,t.Section,{title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:i.security_level_color,children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:b}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:d,disabled:!i.authmax||i.msg_cooldown>0,onClick:function(){function x(){return p("announce")}return x}()})}),!!i.emagged&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:f,disabled:!i.authmax||i.cc_cooldown>0,onClick:function(){function x(){return p("MessageSyndicate")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!i.authmax,onClick:function(){function x(){return p("RestoreBackup")}return x}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:f,disabled:!i.authmax||i.cc_cooldown>0,onClick:function(){function x(){return p("MessageCentcomm")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:l,disabled:!i.authmax||i.cc_cooldown>0,onClick:function(){function x(){return p("nukerequest")}return x}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!i.authenticated,onClick:function(){function x(){return p("status")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:s,disabled:!i.authenticated,onClick:function(){function x(){return p("messagelist")}return x}()})})]})})]})});case 2:return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[u,(0,e.createComponentVNode)(2,t.Section,{title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function x(){return p("main")}return x}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:i.stat_display.line_1,disabled:!i.authenticated,onClick:function(){function x(){return p("setmsg1")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:i.stat_display.line_2,disabled:!i.authenticated,onClick:function(){function x(){return p("setmsg2")}return x}()})})]})})]})});case 3:return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[u,g]})});default:return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[u,"ERRROR. Unknown menu_state: ",i.menu_state,"Please report this to NT Technical Support."]})})}}return S}()},21813:function(I,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(73379),S=n(98595);function y(b,v){b.prototype=Object.create(v.prototype),b.prototype.constructor=b,k(b,v)}function k(b,v){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,g){return h.__proto__=g,h},k(b,v)}var V={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},p=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],i=r.Contractor=function(){function b(v,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B;x.unauthorized?B=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,l,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function w(){}return w}()})}):x.load_animation_completed?B=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:x.page===1?(0,e.createComponentVNode)(2,u,{height:"100%"}):(0,e.createComponentVNode)(2,f,{height:"100%"})})],4):B=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,l,{height:"100%",allMessages:p,finishedTimeout:3e3,onFinished:function(){function w(){return N("complete_load_animation")}return w}()})});var L=(0,t.useLocalState)(h,"viewingPhoto",""),T=L[0],E=L[1];return(0,e.createComponentVNode)(2,S.Window,{width:500,height:600,theme:"syndicate",children:[T&&(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,S.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:B})})]})}return b}(),c=function(v,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B=x.tc_available,L=x.tc_paid_out,T=x.completed_contracts,E=x.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[E," Rep"]})},v,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[B," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:B<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function w(){return N("claim")}return w}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[L," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",display:"inline-block",children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},s=function(v,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B=x.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},v,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===1,onClick:function(){function L(){return N("page",{page:1})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===2,onClick:function(){function L(){return N("page",{page:2})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},u=function(v,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B=x.contracts,L=x.contract_active,T=x.can_extract,E=!!L&&B.filter(function(P){return P.status===1})[0],w=E&&E.time_left>0,A=(0,t.useLocalState)(h,"viewingPhoto",""),O=A[0],M=A[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!T||w,icon:"parachute-box",content:["Call Extraction",w&&(0,e.createComponentVNode)(2,m.Countdown,{timeLeft:E.time_left,format:function(){function P(R,F){return" ("+F.substr(3)+")"}return P}()})],onClick:function(){function P(){return N("extract")}return P}()})},v,{children:B.slice().sort(function(P,R){return P.status===1?-1:R.status===1?1:P.status-R.status}).map(function(P){var R;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:P.status===1&&"good",children:P.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:P.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function F(){return M("target_photo_"+P.uid+".png")}return F}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!V[P.status]&&(0,e.createComponentVNode)(2,o.Box,{color:V[P.status][1],display:"inline-block",mt:P.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:V[P.status][0]}),P.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function F(){return N("abort")}return F}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[P.fluff_message,!!P.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",P.completed_time]}),!!P.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!P.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",P.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",d(P)]}),(R=P.difficulties)==null?void 0:R.map(function(F,_){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!L,content:F.name+" ("+F.reward+" TC)",onClick:function(){function U(){return N("activate",{uid:P.uid,difficulty:_+1})}return U}()},_)}),!!P.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[P.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(P.objective.rewards.tc||0)+" TC",",\xA0",(P.objective.rewards.credits||0)+" Credits",")"]})]})]})},P.uid)})})))},d=function(v){if(!(!v.objective||v.status>1)){var h=v.objective.locs.user_area_id,g=v.objective.locs.user_coords,N=v.objective.locs.target_area_id,x=v.objective.locs.target_coords,B=h===N;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:B?"dot-circle-o":"arrow-alt-circle-right-o",color:B?"green":"yellow",rotation:B?null:-(0,a.rad2deg)(Math.atan2(x[1]-g[1],x[0]-g[0])),lineHeight:B?null:"0.85",size:"1.5"})})}},f=function(v,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B=x.rep,L=x.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},v,{children:L.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,buttons:T.refundable&&(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Refund ("+T.cost+" Rep)",onClick:function(){function E(){return N("refund",{uid:T.uid})}return E}()}),children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:B-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},l=function(b){function v(g){var N;return N=b.call(this,g)||this,N.timer=null,N.state={currentIndex:0,currentDisplay:[]},N}y(v,b);var h=v.prototype;return h.tick=function(){function g(){var N=this.props,x=this.state;if(x.currentIndex<=N.allMessages.length){this.setState(function(L){return{currentIndex:L.currentIndex+1}});var B=x.currentDisplay;B.push(N.allMessages[x.currentIndex])}else clearTimeout(this.timer),setTimeout(N.onFinished,N.finishedTimeout)}return g}(),h.componentDidMount=function(){function g(){var N=this,x=this.props.linesPerSecond,B=x===void 0?2.5:x;this.timer=setInterval(function(){return N.tick()},1e3/B)}return g}(),h.componentWillUnmount=function(){function g(){clearTimeout(this.timer)}return g}(),h.render=function(){function g(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(N){return(0,e.createFragment)([N,(0,e.createVNode)(1,"br")],0,N)})})}return g}(),v}(e.Component),C=function(v,h){var g=(0,t.useLocalState)(h,"viewingPhoto",""),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:N}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function B(){return x("")}return B}()})]})}},54151:function(I,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ConveyorSwitch=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.slowFactor,s=i.minSpeed,u=i.maxSpeed,d=i.oneWay,f=i.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:f>0?"forward":f<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!d,onClick:function(){function l(){return p("toggleOneWay")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function l(){return p("slowFactor",{value:c-.5})}return l}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function l(){return p("slowFactor",{value:c-.1})}return l}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:c,fillValue:c,minValue:s,maxValue:u,step:.1,format:function(){function l(C){return C+"s."}return l}(),onChange:function(){function l(C,b){return p("slowFactor",{value:b})}return l}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function l(){return p("slowFactor",{value:c+.1})}return l}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function l(){return p("slowFactor",{value:c+.5})}return l}()})," "]})]})})]})})})})}return S}()},73169:function(I,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(89005),a=n(88510),t=n(25328),o=n(72253),m=n(36036),S=n(36352),y=n(76910),k=n(98595),V=function(C,b){return C.dead?"Deceased":parseInt(C.health,10)<=b?"Critical":parseInt(C.stat,10)===1?"Unconscious":"Living"},p=function(C,b){return C.dead?"red":parseInt(C.health,10)<=b?"orange":parseInt(C.stat,10)===1?"blue":"green"},i=r.CrewMonitor=function(){function l(C,b){var v=(0,o.useBackend)(b),h=v.act,g=v.data,N=(0,o.useLocalState)(b,"tabIndex",g.IndexToggler),x=N[0],B=N[1],L=function(){function T(E){switch(E){case 0:return(0,e.createComponentVNode)(2,u);case 1:return(0,e.createComponentVNode)(2,d);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,f);default:return"WE SHOULDN'T BE HERE!"}}return T}();return(0,e.createComponentVNode)(2,k.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,m.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,m.Tabs,{children:[g.isBS?(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:x===0,onClick:function(){function T(){return B(0)}return T}(),children:[(0,e.createComponentVNode)(2,m.Icon,{name:"table"})," Command Data View"]},"ComDataView"):null,g.isBP?(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:x===1,onClick:function(){function T(){return B(1)}return T}(),children:[(0,e.createComponentVNode)(2,m.Icon,{name:"table"})," Security Data View"]},"SecDataView"):null,(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:x===2,onClick:function(){function T(){return B(2)}return T}(),children:[(0,e.createComponentVNode)(2,m.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:x===3,onClick:function(){function T(){return B(3)}return T}(),children:[(0,e.createComponentVNode)(2,m.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),L(x)]})})})}return l}(),c=function(C){var b=C.crewData,v=C.context,h=(0,o.useBackend)(v),g=h.act,N=h.data,x=(0,a.sortBy)(function(w){return w.name})(b||[]),B=(0,o.useLocalState)(v,"search",""),L=B[0],T=B[1],E=(0,t.createSearch)(L,function(w){return w.name+"|"+w.assignment+"|"+w.area});return(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function w(A,O){return T(O)}return w}()}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,m.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Location"})]}),x.filter(E).map(function(w){return(0,e.createComponentVNode)(2,m.Table.Row,{bold:!!w.is_command,children:[(0,e.createComponentVNode)(2,S.TableCell,{children:[w.name," (",w.assignment,")"]}),(0,e.createComponentVNode)(2,S.TableCell,{children:[(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:p(w,N.critThreshold),children:V(w,N.critThreshold)}),w.sensor_type>=2?(0,e.createComponentVNode)(2,m.Box,{inline:!0,children:["(",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.oxy,children:w.oxy}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.toxin,children:w.tox}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.burn,children:w.fire}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.brute,children:w.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,S.TableCell,{children:w.sensor_type===3?N.isAI?(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"location-arrow",content:w.area+" ("+w.x+", "+w.y+")",onClick:function(){function A(){return g("track",{track:w.ref})}return A}()}):w.area+" ("+w.x+", "+w.y+")":"Not Available"})]},w.ref)})]})]})},s=function(C,b){var v=(0,o.useBackend)(b),h=v.act,g=v.data,N=g.crewmembers||[];return(0,e.createComponentVNode)(2,c,{crewData:N,context:b})},u=function(C,b){var v=(0,o.useBackend)(b),h=v.act,g=v.data,N=g.crewmembers.filter(function(x){return x.is_command})||[];return(0,e.createComponentVNode)(2,c,{crewData:N,context:b})},d=function(C,b){var v=(0,o.useBackend)(b),h=v.act,g=v.data,N=g.crewmembers.filter(function(x){return x.is_security})||[];return(0,e.createComponentVNode)(2,c,{crewData:N,context:b})},f=function(C,b){var v=(0,o.useBackend)(b),h=v.act,g=v.data,N=g.stationLevelNum,x=g.stationLevelName,B=(0,o.useLocalState)(b,"zoom",1),L=B[0],T=B[1],E=(0,o.useLocalState)(b,"z_current",N[0]),w=E[0],A=E[1],O=function(F){return F.is_command&&g.isBS||F.is_security&&g.isBP?"square":"circle"},M=function(F){return F.is_command&&g.isBS||F.is_security&&g.isBP?10:6},P=function(F,_){return F.is_command&&g.isBS||F.is_security&&g.isBP?F.dead?"red":parseInt(F.health,10)<=_?"orange":parseInt(F.stat,10)===1?"blue":"violet":p(F,_)};return(0,e.createComponentVNode)(2,m.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,m.NanoMap,{onZoom:function(){function R(F){return T(F)}return R}(),zLevels:N,zNames:x,z_current:w,setZCurrent:A,children:g.crewmembers.filter(function(R){return R.sensor_type===3}).map(function(R){return(0,e.createComponentVNode)(2,m.NanoMap.Marker,{x:R.x,y:R.y,z:R.z,z_current:w,zoom:L,icon:O(R),size:M(R),tooltip:R.name+" ("+R.assignment+")",color:P(R,g.critThreshold),onClick:function(){function F(){g.isAI&&h("track",{track:R.ref})}return F}()},R.ref)})})})}},63987:function(I,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(89005),a=n(41260),t=n(72253),o=n(36036),m=n(98595),S=[{label:"\u0410\u0441\u0444\u0438\u043A\u0441\u0438\u044F",type:"oxyLoss"},{label:"\u0418\u043D\u0442\u043E\u043A\u0441\u0438\u043A\u0430\u0446\u0438\u044F",type:"toxLoss"},{label:"\u0420\u0430\u043D\u044B",type:"bruteLoss"},{label:"\u041E\u0436\u043E\u0433\u0438",type:"fireLoss"}],y=[["good","\u0412 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u0438"],["average","\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F"],["bad","\u0422\u0420\u0423\u041F"]],k=r.Cryo=function(){function i(c,s){return(0,e.createComponentVNode)(2,m.Window,{width:520,height:490,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return i}(),V=function(c,s){var u=(0,t.useBackend)(s),d=u.act,f=u.data,l=f.isOperating,C=f.hasOccupant,b=f.occupant,v=b===void 0?[]:b,h=f.cellTemperature,g=f.cellTemperatureStatus,N=f.isBeakerLoaded,x=f.auto_eject_healthy,B=f.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:2,children:(0,e.createComponentVNode)(2,o.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",fill:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",onClick:function(){function L(){return d("ejectOccupant")}return L}(),disabled:!C,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"}),children:C?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",children:v.name||"\u0418\u043C\u044F \u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:v.health,max:v.maxHealth,value:v.health/v.maxHealth,color:v.health>0?"good":"average",children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(v.health)})})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",color:y[v.stat][0],children:y[v.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(v.bodyTemperature)})," ","K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),S.map(function(L){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.label,children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:v[L.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(v[L.type])})})},L.id)})]}):(0,e.createComponentVNode)(2,o.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"\u041A\u0440\u0438\u043E\u043A\u0430\u043F\u0441\u0443\u043B\u0430",fill:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function L(){return d("ejectBeaker")}return L}(),disabled:!N,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C"}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0438\u0442\u0430\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",onClick:function(){function L(){return d(l?"switchOff":"switchOn")}return L}(),selected:l,children:l?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",color:g,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:h})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0410\u0432\u0442\u043E\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044B\u0445 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u043E\u0432",children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"toggle-on":"toggle-off",selected:x,onClick:function(){function L(){return d(x?"auto_eject_healthy_off":"auto_eject_healthy_on")}return L}(),children:x?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0410\u0432\u0442\u043E\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u043C\u0451\u0440\u0442\u0432\u044B\u0445 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u043E\u0432",children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function L(){return d(B?"auto_eject_dead_off":"auto_eject_dead_on")}return L}(),children:B?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})})]})})})]})},p=function(c,s){var u=(0,t.useBackend)(s),d=u.act,f=u.data,l=f.isBeakerLoaded,C=f.beakerLabel,b=f.beakerVolume;return l?(0,e.createFragment)([C?"\xAB"+C+"\xBB":(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u043F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u0430"}),(0,e.createComponentVNode)(2,o.Box,{color:!b&&"bad",children:b?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:b,format:function(){function v(h){var g=Math.round(h),N=(0,a.declensionRu)(g,"\u041E\u0441\u0442\u0430\u043B\u0430\u0441\u044C","\u041E\u0441\u0442\u0430\u043B\u0438\u0441\u044C","\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C"),x=(0,a.declensionRu)(g,"\u0435\u0434\u0438\u043D\u0438\u0446\u0430","\u0435\u0434\u0438\u043D\u0438\u0446\u044B","\u0435\u0434\u0438\u043D\u0438\u0446");return N+" "+g+" "+x}return v}()}):"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043F\u0443\u0441\u0442\u0430"})],0):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430"})}},86099:function(I,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(25328),S=r.CryopodConsole=function(){function V(p,i){var c=(0,a.useBackend)(i),s=c.data,u=s.account_name,d=s.allow_items;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(u||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,y),!!d&&(0,e.createComponentVNode)(2,k)]})})}return V}(),y=function(p,i){var c=(0,a.useBackend)(i),s=c.data,u=s.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:u.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(d,f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:d.rank},f)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},k=function(p,i){var c=(0,a.useBackend)(i),s=c.act,u=c.data,d=u.frozen_items,f=function(C){var b=C.toString();return b.startsWith("the ")&&(b=b.slice(4,b.length)),(0,m.toTitleCase)(b)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:d.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f(l.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function C(){return s("one_item",{item:l.uid})}return C}()})},l)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function l(){return s("all_items")}return l}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},94848:function(I,r,n){"use strict";r.__esModule=!0,r.Customat=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(98595),S=function(V,p){var i=(0,t.useBackend)(p),c=i.act,s=i.data,u=V.product,d=s.user,f=s.userMoney,l=s.vend_ready,C=u.price===0,b="ERROR!",v="";C?(b="FREE",v="arrow-circle-down"):(b=u.price,v="shopping-cart");var h=!l||u.stock===0||!C&&u.price>f;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u.icon,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:u.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Box,{color:u.stock<=0&&"bad"||"good",children:[u.stock," in stock"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,disabled:h,icon:v,content:b,textAlign:"left",onClick:function(){function g(){return c("vend",{Key:u.Key})}return g}()})})]})},y=r.Customat=function(){function k(V,p){var i=(0,t.useBackend)(p),c=i.act,s=i.data,u=s.guestNotice,d=s.userMoney,f=s.user,l=s.products,C=s.vend_ready,b=s.panel_open,v=s.speaker;return(0,e.createComponentVNode)(2,m.Window,{width:470,height:600,title:"Customat",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"User",children:f&&(0,e.createComponentVNode)(2,o.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,f.name,0),", ",(0,e.createVNode)(1,"b",null,f.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[d,(0,e.createTextVNode)(" credits")],0),"."]})||(0,e.createComponentVNode)(2,o.Box,{color:"light-grey",children:u})}),!!b&&(0,e.createComponentVNode)(2,o.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,o.Button,{icon:v?"check":"volume-mute",selected:v,content:"Speaker",textAlign:"left",onClick:function(){function h(){return c("toggle_voice",{})}return h}()})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Products",fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:l.map(function(h){return(0,e.createComponentVNode)(2,S,{product:h,productStock:h.stock},h.name)})})})})]})})})}return k}()},12692:function(I,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(3939),S=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],k=[5,10,20,30,50],V=r.DNAModifier=function(){function h(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.irradiating,E=L.dnaBlockSize,w=L.occupant;N.dnaBlockSize=E,N.isDNAInvalid=!w.isViableSubject||!w.uniqueIdentity||!w.structuralEnzymes;var A;return T&&(A=(0,e.createComponentVNode)(2,b,{duration:T})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,m.ComplexModal),A,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i)})]})})]})}return h}(),p=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.locked,E=L.hasOccupant,w=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Engaged":"Disengaged",onClick:function(){function A(){return B("toggleLock")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E||T,icon:"user-slash",content:"Eject",onClick:function(){function A(){return B("ejectOccupant")}return A}()})],4),children:E?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:w.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:w.minHealth,max:w.maxHealth,value:w.health/w.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:S[w.stat][0],children:S[w.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),N.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:w.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:L.occupant.uniqueEnzymes?L.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},i=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.selectedMenuKey,E=L.hasOccupant,w=L.occupant;if(E){if(N.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var A;return T==="ui"?A=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u)],4):T==="se"?A=(0,e.createFragment)([(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,u)],4):T==="buffer"?A=(0,e.createComponentVNode)(2,d):T==="rejuvenators"&&(A=(0,e.createComponentVNode)(2,C)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:y.map(function(O,M){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:O[2],selected:T===O[0],onClick:function(){function P(){return B("selectMenuKey",{key:O[0]})}return P}(),children:O[1]},M)})}),A]})},c=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.selectedUIBlock,E=L.selectedUISubBlock,w=L.selectedUITarget,A=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,v,{dnaString:A.uniqueIdentity,selectedBlock:T,selectedSubblock:E,blockSize:N.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:w,format:function(){function O(M){return M.toString(16).toUpperCase()}return O}(),ml:"0",onChange:function(){function O(M,P){return B("changeUITarget",{value:P})}return O}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function O(){return B("pulseUIRadiation")}return O}()})]})},s=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.selectedSEBlock,E=L.selectedSESubBlock,w=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,v,{dnaString:w.structuralEnzymes,selectedBlock:T,selectedSubblock:E,blockSize:N.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function A(){return B("pulseSERadiation")}return A}()})]})},u=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.radiationIntensity,E=L.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:T,popUpPosition:"right",ml:"0",onChange:function(){function w(A,O){return B("radiationIntensity",{value:O})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:E,popUpPosition:"right",ml:"0",onChange:function(){function w(A,O){return B("radiationDuration",{value:O})}return w}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function w(){return B("pulseRadiation")}return w}()})]})},d=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.buffers,E=T.map(function(w,A){return(0,e.createComponentVNode)(2,f,{id:A+1,name:"Buffer "+(A+1),buffer:w},A)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:E})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,l)})]})},f=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=g.id,E=g.name,w=g.buffer,A=L.isInjectorReady,O=E+(w.data?" - "+w.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:O,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!w.data,icon:"trash",content:"Clear",onClick:function(){function M(){return B("bufferOption",{option:"clear",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.data,icon:"pen",content:"Rename",onClick:function(){function M(){return B("bufferOption",{option:"changeLabel",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.data||!L.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function M(){return B("bufferOption",{option:"saveDisk",id:T})}return M}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"saveUI",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"saveUIAndUE",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"saveSE",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!L.hasDisk||!L.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"loadDisk",id:T})}return M}()})]}),!!w.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:w.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[w.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!w.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!A,icon:A?"syringe":"spinner",iconSpin:!A,content:"Injector",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"createInjector",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,icon:A?"syringe":"spinner",iconSpin:!A,content:"Block Injector",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"createInjector",id:T,block:1})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"transfer",id:T})}return M}()})]})],4)]}),!w.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},l=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.hasDisk,E=L.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!E.data,icon:"trash",content:"Wipe",onClick:function(){function w(){return B("wipeDisk")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function w(){return B("ejectDisk")}return w}()})],4),children:T?E.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:E.label?E.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:E.owner?E.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[E.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!E.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},C=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.isBeakerLoaded,E=L.beakerVolume,w=L.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function A(){return B("ejectBeaker")}return A}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[k.map(function(A,O){return(0,e.createComponentVNode)(2,t.Button,{disabled:A>E,icon:"syringe",content:A,onClick:function(){function M(){return B("injectRejuvenators",{amount:A})}return M}()},O)}),(0,e.createComponentVNode)(2,t.Button,{disabled:E<=0,icon:"syringe",content:"All",onClick:function(){function A(){return B("injectRejuvenators",{amount:E})}return A}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:w||"No label"}),E?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[E," unit",E===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},b=function(g,N){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),g.duration,(0,e.createTextVNode)(" second"),g.duration===1?"":"s"],0)})]})},v=function(g,N){for(var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=g.dnaString,E=g.selectedBlock,w=g.selectedSubblock,A=g.blockSize,O=g.action,M=T.split(""),P=0,R=[],F=function(){for(var W=_/A+1,$=[],Y=function(){var le=ne+1;$.push((0,e.createComponentVNode)(2,t.Button,{selected:E===W&&w===le,content:M[_+ne],mb:"0",onClick:function(){function de(){return B(O,{block:W,subblock:le})}return de}()}))},ne=0;ne0?"Yes":"No",selected:i.com>0,onClick:function(){function s(){return p("toggle_com")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Security",children:c.map(function(s,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.sec===s,content:s,onClick:function(){function d(){return p("set_sec",{set_sec:s})}return d}()},"sec"+s)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Medical",children:c.map(function(s,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.med===s,content:s,onClick:function(){function d(){return p("set_med",{set_med:s})}return d}()},"med"+s)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Engineering",children:c.map(function(s,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.eng===s,content:s,onClick:function(){function d(){return p("set_eng",{set_eng:s})}return d}()},"eng"+s)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Paranormal",children:c.map(function(s,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.par===s,content:s,onClick:function(){function d(){return p("set_par",{set_par:s})}return d}()},"par"+s)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitor",children:c.map(function(s,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.jan===s,content:s,onClick:function(){function d(){return p("set_jan",{set_jan:s})}return d}()},"jan"+s)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cyborg",children:c.map(function(s,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.cyb===s,content:s,onClick:function(){function d(){return p("set_cyb",{set_cyb:s})}return d}()},"cyb"+s)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Slots",children:(0,e.createComponentVNode)(2,t.Box,{color:i.total>i.spawnpoints?"red":"green",children:[i.total," total, versus ",i.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Send ERT",onClick:function(){function s(){return p("dispatch_ert")}return s}()})})]})})]})})}return S}()},82565:function(I,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(98595),S=r.Electropack=function(){function y(k,V){var p=(0,t.useBackend)(V),i=p.act,c=p.data,s=c.power,u=c.code,d=c.frequency,f=c.minFrequency,l=c.maxFrequency;return(0,e.createComponentVNode)(2,m.Window,{width:360,height:150,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,onClick:function(){function C(){return i("power")}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function C(){return i("reset",{reset:"freq"})}return C}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:f/10,maxValue:l/10,value:d/10,format:function(){function C(b){return(0,a.toFixed)(b,1)}return C}(),width:"80px",onChange:function(){function C(b,v){return i("freq",{freq:v})}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function C(){return i("reset",{reset:"code"})}return C}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:u,width:"80px",onChange:function(){function C(b,v){return i("code",{code:v})}return C}()})})]})})})})}return y}()},36730:function(I,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.EvolutionMenu=function(){function k(V,p){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:574,theme:"changeling",children:(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})}return k}(),S=function(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,u=s.evo_points,d=s.can_respec;return(0,e.createComponentVNode)(2,t.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:u}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{ml:2.5,disabled:!d,content:"Readapt",icon:"sync",onClick:function(){function f(){return c("readapt")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})},y=function(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,u=s.evo_points,d=s.ability_list,f=s.purchased_abilities,l=s.view_mode;return(0,e.createComponentVNode)(2,t.Section,{title:"Abilities",flexGrow:"1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:l?"square-o":"check-square-o",selected:!l,content:"Compact",onClick:function(){function C(){return c("set_view_mode",{mode:0})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:l?"check-square-o":"square-o",selected:l,content:"Expanded",onClick:function(){function C(){return c("set_view_mode",{mode:1})}return C}()})],4),children:d.map(function(C,b){return(0,e.createComponentVNode)(2,t.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{ml:.5,color:"#dedede",children:C.name}),f.includes(C.power_path)&&(0,e.createComponentVNode)(2,t.Flex.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,t.Flex.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,t.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,t.Box,{as:"span",bold:!0,color:"#1b945c",children:C.cost})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,t.Button,{mr:.5,disabled:C.cost>u||f.includes(C.power_path),content:"Evolve",onClick:function(){function v(){return c("purchase",{power_path:C.power_path})}return v}()})})]}),!!l&&(0,e.createComponentVNode)(2,t.Flex,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:C.description+" "+C.helptext})]},b)})})}},17370:function(I,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(89005),a=n(35840),t=n(25328),o=n(72253),m=n(36036),S=n(73379),y=n(98595),k=["id","amount","lineDisplay","onClick"];function V(b,v){if(b==null)return{};var h={};for(var g in b)if({}.hasOwnProperty.call(b,g)){if(v.includes(g))continue;h[g]=b[g]}return h}var p=2e3,i={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function b(v,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.building;return(0,e.createComponentVNode)(2,y.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,y.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,u)}),B&&(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f)})]})})]})})})}return b}(),s=function(v,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.materials,L=x.capacity,T=Object.values(B).reduce(function(E,w){return E+w},0);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,m.Box,{color:"label",mt:"0.25rem",children:[(T/L*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(E){return(0,e.createComponentVNode)(2,l,{mt:-2,id:E,bold:E==="metal"||E==="glass",onClick:function(){function w(){return N("withdraw",{id:E})}return w}()},E)})})},u=function(v,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.curCategory,L=x.categories,T=x.designs,E=x.syncing,w=(0,o.useLocalState)(h,"searchText",""),A=w[0],O=w[1],M=(0,t.createSearch)(A,function(R){return R.name}),P=T.filter(M);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,m.Dropdown,{className:"Exofab__dropdown",selected:B,options:L,onSelected:function(){function R(F){return N("category",{cat:F})}return R}()}),buttons:(0,e.createComponentVNode)(2,m.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,m.Button,{icon:"plus",content:"Queue all",onClick:function(){function R(){return N("queueall")}return R}()}),(0,e.createComponentVNode)(2,m.Button,{disabled:E,iconSpin:E,icon:"sync-alt",content:E?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function R(){return N("sync")}return R}()})]}),children:[(0,e.createComponentVNode)(2,m.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function R(F,_){return O(_)}return R}()}),P.map(function(R){return(0,e.createComponentVNode)(2,C,{design:R},R.id)}),P.length===0&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No designs found."})]})},d=function(v,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.building,L=x.buildStart,T=x.buildEnd,E=x.worldTime;return(0,e.createComponentVNode)(2,m.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,m.ProgressBar.Countdown,{start:L,current:E,end:T,children:(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:["Building ",B,"\xA0(",(0,e.createComponentVNode)(2,S.Countdown,{current:E,timeLeft:T-E,format:function(){function w(A,O){return O.substr(3)}return w}()}),")"]})]})})})},f=function(v,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.queue,L=x.processingQueue,T=Object.entries(x.queueDeficit).filter(function(w){return w[1]<0}),E=B.reduce(function(w,A){return w+A.time},0);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:"Process",onClick:function(){function w(){return N("process")}return w}()}),(0,e.createComponentVNode)(2,m.Button,{disabled:B.length===0,icon:"eraser",content:"Clear",onClick:function(){function w(){return N("unqueueall")}return w}()})]}),children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:B.length===0?(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:B.map(function(w,A){return(0,e.createComponentVNode)(2,m.Box,{color:w.notEnough&&"bad",children:[A+1,". ",w.name,A>0&&(0,e.createComponentVNode)(2,m.Button,{icon:"arrow-up",onClick:function(){function O(){return N("queueswap",{from:A+1,to:A})}return O}()}),A0&&(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,m.Divider),"Processing time:",(0,e.createComponentVNode)(2,m.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,bold:!0,children:new Date(E/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,m.Divider),"Lacking materials to complete:",T.map(function(w){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,l,{id:w[0],amount:-w[1],lineDisplay:!0})},w[0])})]})],0)})})},l=function(v,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=v.id,L=v.amount,T=v.lineDisplay,E=v.onClick,w=V(v,k),A=x.materials[B]||0,O=L||A;if(!(O<=0&&!(B==="metal"||B==="glass"))){var M=L&&L>A;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},w,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{className:(0,a.classes)(["materials32x32",B])}),(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__material--amount",color:M&&"bad",ml:0,mr:1,children:O.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,m.Button,{width:"85%",color:"transparent",onClick:E,children:(0,e.createComponentVNode)(2,m.Box,{mt:1,className:(0,a.classes)(["materials32x32",B])})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__material--name",children:B}),(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__material--amount",children:[O.toLocaleString("en-US")," cm\xB3 (",Math.round(O/p*10)/10," ","sheets)"]})]})],4)})))}},C=function(v,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=v.design;return(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,m.Button,{disabled:B.notEnough||x.building,icon:"cog",content:B.name,onClick:function(){function L(){return N("build",{id:B.id})}return L}()}),(0,e.createComponentVNode)(2,m.Button,{icon:"plus-circle",onClick:function(){function L(){return N("queue",{id:B.id})}return L}()}),(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__design--cost",children:Object.entries(B.cost).map(function(L){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,l,{id:L[0],amount:L[1],lineDisplay:!0})},L[0])})}),(0,e.createComponentVNode)(2,m.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"clock"}),B.time>0?(0,e.createFragment)([B.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},97086:function(I,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=0,S=1013,y=function(p){var i="good",c=80,s=95,u=110,d=120;return pu?i="average":p>d&&(i="bad"),i},k=r.ExternalAirlockController=function(){function V(p,i){var c=(0,a.useBackend)(i),s=c.act,u=c.data,d=u.chamber_pressure,f=u.exterior_status,l=u.interior_status,C=u.processing;return(0,e.createComponentVNode)(2,o.Window,{width:470,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:y(d),value:d,minValue:m,maxValue:S,children:[d," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:C,onClick:function(){function b(){return s("cycle_ext")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Cycle to Interior",icon:"arrow-circle-right",disabled:C,onClick:function(){function b(){return s("cycle_int")}return b}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Force Exterior Door",icon:"exclamation-triangle",color:l==="open"?"red":C?"yellow":null,onClick:function(){function b(){return s("force_ext")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Force Interior Door",icon:"exclamation-triangle",color:l==="open"?"red":C?"yellow":null,onClick:function(){function b(){return s("force_int")}return b}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!C,onClick:function(){function b(){return s("abort")}return b}()})})]})]})})}return V}()},96142:function(I,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.FaxMachine=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.scan_name?"eject":"id-card",selected:i.scan_name,content:i.scan_name?i.scan_name:"-----",tooltip:i.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return p("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authenticated?"sign-out-alt":"id-card",selected:i.authenticated,disabled:!i.scan_name&&!i.authenticated,content:i.authenticated?"Log Out":"Log In",onClick:function(){function c(){return p("auth")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:i.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i.paper?"eject":"paperclip",disabled:!i.authenticated&&!i.paper,content:i.paper?i.paper:"-----",onClick:function(){function c(){return p("paper")}return c}()}),!!i.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return p("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:i.destination?i.destination:"-----",disabled:!i.authenticated,onClick:function(){function c(){return p("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:i.sendError?i.sendError:"Send",disabled:!i.paper||!i.destination||!i.authenticated||i.sendError,onClick:function(){function c(){return p("send")}return c}()})})]})})]})})}return S}()},83767:function(I,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=function(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,u=V.icon_state,d=V.direction,f=V.isSelected,l=V.onSelect;return(0,e.createComponentVNode)(2,t.DmIcon,{icon:s.icon,icon_state:u,direction:d,onClick:l,style:{"border-style":f&&"solid"||"none","border-width":"2px","border-color":"orange",padding:f&&"0px"||"2px"}})},S={NORTH:1,SOUTH:2,EAST:4,WEST:8},y=r.FloorPainter=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,u=s.availableStyles,d=s.selectedStyle,f=s.selectedDir;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function l(){return c("cycle_style",{offset:-1})}return l}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:u,selected:d,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function l(C){return c("select_style",{style:C})}return l}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function l(){return c("cycle_style",{offset:1})}return l}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"239px",wrap:"wrap",children:u.map(function(l){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,m,{icon_state:l,isSelected:d===l,onSelect:function(){function C(){return c("select_style",{style:l})}return C}()})},l)})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:[S.NORTH,null,S.SOUTH].map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[l+S.WEST,l,l+S.EAST].map(function(C){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:C===null?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,m,{icon_state:d,direction:C,isSelected:C===f,onSelect:function(){function b(){return c("select_direction",{direction:C})}return b}()})},C)})},l)})})})})]})})})}return k}()},53424:function(I,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(98595),S=function(u){return u?"("+u.join(", ")+")":"ERROR"},y=function(u,d,f){if(!(!u||!d)){if(u[2]!==d[2]||f!==1)return null;var l=Math.atan2(d[1]-u[1],d[0]-u[0]),C=Math.sqrt(Math.pow(d[1]-u[1],2)+Math.pow(d[0]-u[0],2));return{angle:(0,a.rad2deg)(l),distance:C}}},k=r.GPS=function(){function s(u,d){var f=(0,t.useBackend)(d),l=f.data,C=l.emped,b=l.active,v=l.area,h=l.position,g=l.saved;return(0,e.createComponentVNode)(2,m.Window,{width:450,height:700,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:C?(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,V,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,p)}),b?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,i,{area:v,position:h})}),g&&(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,i,{title:"Saved Position",position:g})}),(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,V)],0)})})})}return s}(),V=function(u,d){var f=u.emp;return(0,e.createComponentVNode)(2,o.Section,{mt:"0.5rem",width:"100%",height:"100%",stretchContents:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:f?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),f?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},p=function(u,d){var f=(0,t.useBackend)(d),l=f.act,C=f.data,b=C.active,v=C.tag,h=C.same_z,g=(0,t.useLocalState)(d,"newTag",v),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function B(){return l("toggle")}return B}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:v,onEnter:function(){function B(){return l("tag",{newtag:N})}return B}(),onInput:function(){function B(L,T){return x(T)}return B}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:v===N,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function B(){return l("tag",{newtag:N})}return B}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!h,icon:h?"compress":"expand",content:h?"Local Sector":"Global",onClick:function(){function B(){return l("same_z")}return B}()})})]})})},i=function(u,d){var f=u.title,l=u.area,C=u.position;return(0,e.createComponentVNode)(2,o.Section,{title:f||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[l&&(0,e.createFragment)([l,(0,e.createVNode)(1,"br")],0),S(C)]})})},c=function(u,d){var f=(0,t.useBackend)(d),l=f.data,C=l.position,b=l.signals,v=l.upgraded;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Signals",overflow:"auto"},u,{children:(0,e.createComponentVNode)(2,o.Table,{children:b.map(function(h){return Object.assign({},h,y(C,h.position,v))}).map(function(h,g){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:g%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:h.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:h.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:h.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(h.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:h.distance>0?"arrow-right":"circle",rotation:-h.angle}),"\xA0",Math.floor(h.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:S(h.position)})]},g)})})})))}},68703:function(I,r,n){"use strict";r.__esModule=!0,r.GasAnalyzerHistory=r.GasAnalyzerContent=r.GasAnalyzer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.GasAnalyzerContent=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,u=s.gasmixes,d=s.autoUpdating;return(0,e.createComponentVNode)(2,t.Section,{title:u[0].name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"unlock":"lock",onClick:function(){function f(){return c("autoscantoggle")}return f}(),tooltip:d?"Auto-Update Enabled":"Auto-Update Disabled",fluid:!0,textAlign:"center",selected:d}),children:u[0].total_moles?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Moles",children:(u[0].total_moles?u[0].total_moles:"-")+" mol"}),u[0].oxygen?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:u[0].oxygen.toFixed(2)+" mol ("+(u[0].oxygen/u[0].total_moles).toFixed(2)*100+" %)"}):"",u[0].nitrogen?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:u[0].nitrogen.toFixed(2)+" mol ("+(u[0].nitrogen/u[0].total_moles).toFixed(2)*100+" %)"}):"",u[0].carbon_dioxide?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:u[0].carbon_dioxide.toFixed(2)+" mol ("+(u[0].carbon_dioxide/u[0].total_moles).toFixed(2)*100+" %)"}):"",u[0].toxins?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plasma",children:u[0].toxins.toFixed(2)+" mol ("+(u[0].toxins/u[0].total_moles).toFixed(2)*100+" %)"}):"",u[0].sleeping_agent?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:u[0].sleeping_agent.toFixed(2)+" mol ("+(u[0].sleeping_agent/u[0].total_moles).toFixed(2)*100+" %)"}):"",u[0].agent_b?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Agent B",children:u[0].agent_b.toFixed(2)+" mol ("+(u[0].agent_b/u[0].total_moles).toFixed(2)*100+" %)"}):"",(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(u[0].total_moles?(u[0].temperature-273.15).toFixed(2):"-")+" \xB0C ("+(u[0].total_moles?u[0].temperature.toFixed(2):"-")+" K)"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Volume",children:(u[0].total_moles?u[0].volume:"-")+" L"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(u[0].total_moles?u[0].pressure.toFixed(2):"-")+" kPa"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Heat Capacity",children:u[0].heat_capacity+" / K"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Thermal Energy",children:u[0].thermal_energy})]}):(0,e.createComponentVNode)(2,t.Box,{nowrap:!0,italic:!0,mb:"10px",children:"No Gas Detected!"})},u[0])}return k}(),S=r.GasAnalyzerHistory=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,u=s.historyGasmixes,d=s.historyViewMode,f=s.historyIndex;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Scan History",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"trash",tooltip:"Clear History",onClick:function(){function l(){return c("clearhistory")}return l}(),textAlign:"center",disabled:u.length===0}),children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",children:(0,e.createComponentVNode)(2,t.Flex,{inline:!0,width:"50%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"kPa",onClick:function(){function l(){return c("modekpa")}return l}(),textAlign:"center",selected:d==="kpa"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"mol",onClick:function(){function l(){return c("modemol")}return l}(),textAlign:"center",selected:d==="mol"})})]})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(l,C){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:C+1+". "+(d==="mol"?l[0].total_moles.toFixed(2):l[0].pressure.toFixed(2)),onClick:function(){function b(){return c("input",{target:C+1})}return b}(),textAlign:"left",selected:C+1===f,fluid:!0})},l[0])})})]})}return k}(),y=r.GasAnalyzer=function(){function k(V,p){var i={float:"left",width:"67%"},c={float:"right",width:"33%"};return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,t.Section,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),2,{style:i}),(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,t.Section,{width:"160px",children:(0,e.createComponentVNode)(2,S)}),2,{style:c})]})})}return k}()},27546:function(I,r,n){"use strict";r.__esModule=!0,r.GasFreezer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.GasFreezer=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.on,s=i.pressure,u=i.temperature,d=i.temperatureCelsius,f=i.min,l=i.max,C=i.target,b=i.targetCelsius,v=(u-f)/(l-f);return(0,e.createComponentVNode)(2,o.Window,{width:560,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c?"power-off":"times",content:c?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B",selected:c,onClick:function(){function h(){return p("power")}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[s," \u043A\u041F\u0430"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"65%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:v,ranges:{blue:[-1/0,.5],red:[.5,1/0]},children:"\xA0"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"35%",children:[v<.5&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"blue",ml:1,children:[u," \xB0K (",d," \xB0C)"]}),v>=.5&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"red",ml:1,children:[u," \xB0K (",d," \xB0C)"]})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0426\u0435\u043B\u0435\u0432\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"65%",justify:"end",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:(C-f)/(l-f),children:"\xA0"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"35%",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,ml:1,children:[C," \xB0K (",b," \xB0C)"]})})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0430\u0434\u0430\u0442\u044C \u0446\u0435\u043B\u0435\u0432\u0443\u044E \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0443",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",title:"\u041C\u0438\u043D\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){function h(){return p("temp",{temp:f})}return h}()}),(0,e.createComponentVNode)(2,t.NumberInput,{value:Math.round(C),unit:"\xB0K",minValue:Math.round(f),maxValue:Math.round(l),step:5,stepPixelSize:3,onDrag:function(){function h(g,N){return p("temp",{temp:N})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",title:"\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){function h(){return p("temp",{temp:l})}return h}()})]})]})})})})}return S}()},89124:function(I,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(89005),a=n(72253),t=n(35840),o=n(36036),m=n(3939),S=n(98595),y=r.GeneModder=function(){function d(f,l){var C=(0,a.useBackend)(l),b=C.data,v=b.has_seed;return(0,e.createComponentVNode)(2,S.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,m.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),v===0?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,k)]})})})}return d}(),k=function(f,l){var C=(0,a.useBackend)(l),b=C.act,v=C.data,h=v.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Insert Gene from Disk",disabled:!h||!h.can_insert||h.is_core,icon:"arrow-circle-down",onClick:function(){function g(){return b("insert")}return g}()}),children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,s)]})},V=function(f,l){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,o.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},p=function(f,l){var C=(0,a.useBackend)(l),b=C.act,v=C.data,h=v.has_seed,g=v.seed,N=v.has_disk,x=v.disk,B,L;return h?B=(0,e.createComponentVNode)(2,o.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",(0,t.classes)(["seeds32x32",g.image]),null,1,{style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,o.Button,{content:g.name,onClick:function(){function T(){return b("eject_seed")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function T(){return b("variant_name")}return T}()})]}):B=(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:3.3,content:"None",onClick:function(){function T(){return b("eject_seed")}return T}()})}),N?L=x.name:L="None",(0,e.createComponentVNode)(2,o.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:3.3,content:L,onClick:function(){function T(){return b("eject_disk")}return T}()})})})]})})},i=function(f,l){var C=(0,a.useBackend)(l),b=C.act,v=C.data,h=v.disk,g=v.core_genes;return(0,e.createComponentVNode)(2,o.Collapsible,{title:"Core Genes",open:!0,children:[g.map(function(N){return(0,e.createComponentVNode)(2,o.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",ml:"2px",children:N.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Extract",disabled:!(h!=null&&h.can_extract),icon:"save",onClick:function(){function x(){return b("extract",{id:N.id})}return x}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Replace",disabled:!N.is_type||!h.can_insert,icon:"arrow-circle-down",onClick:function(){function x(){return b("replace",{id:N.id})}return x}()})})]},N)})," ",(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Replace All",disabled:!(h!=null&&h.is_bulk_core),icon:"arrow-circle-down",onClick:function(){function N(){return b("bulk_replace_core")}return N}()})})})]},"Core Genes")},c=function(f,l){var C=(0,a.useBackend)(l),b=C.data,v=b.reagent_genes,h=b.has_reagent;return(0,e.createComponentVNode)(2,u,{title:"Reagent Genes",gene_set:v,do_we_show:h})},s=function(f,l){var C=(0,a.useBackend)(l),b=C.data,v=b.trait_genes,h=b.has_trait;return(0,e.createComponentVNode)(2,u,{title:"Trait Genes",gene_set:v,do_we_show:h})},u=function(f,l){var C=f.title,b=f.gene_set,v=f.do_we_show,h=(0,a.useBackend)(l),g=h.act,N=h.data,x=N.disk;return(0,e.createComponentVNode)(2,o.Collapsible,{title:C,open:!0,children:v?b.map(function(B){return(0,e.createComponentVNode)(2,o.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Extract",disabled:!(x!=null&&x.can_extract),icon:"save",onClick:function(){function L(){return g("extract",{id:B.id})}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Remove",icon:"times",onClick:function(){function L(){return g("remove",{id:B.id})}return L}()})})]},B)}):(0,e.createComponentVNode)(2,o.Stack.Item,{children:"No Genes Detected"})},C)}},73053:function(I,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(41874),m=r.GenericCrewManifest=function(){function S(y,k){return(0,e.createComponentVNode)(2,t.Window,{width:588,height:510,theme:"nologo",children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return S}()},42914:function(I,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.GhostHudPanel=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.data,c=i.security,s=i.medical,u=i.diagnostic,d=i.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,S,{label:"Medical",type:"medical",is_active:s}),(0,e.createComponentVNode)(2,S,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,S,{label:"Diagnostic",type:"diagnostic",is_active:u}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,S,{label:"Antag HUD",is_active:d,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return y}(),S=function(k,V){var p=(0,a.useBackend)(V),i=p.act,c=k.label,s=k.type,u=s===void 0?null:s,d=k.is_active,f=k.act_on,l=f===void 0?"hud_on":f,C=k.act_off,b=C===void 0?"hud_off":C;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:d?"On":"Off",icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function v(){return i(d?b:l,{hud_type:u})}return v}()})})]})}},25825:function(I,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.GlandDispenser=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.glands,s=c===void 0?[]:c;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:s.map(function(u){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:u.color,content:u.amount||"0",disabled:!u.amount,onClick:function(){function d(){return p("dispense",{gland_id:u.id})}return d}()},u.id)})})})})}return S}()},67834:function(I,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=[1,5,10,20,30,50],S=null,y=r.HandheldChemDispenser=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,V)]})})})}return p}(),k=function(i,c){var s=(0,a.useBackend)(c),u=s.act,d=s.data,f=d.amount,l=d.energy,C=d.maxEnergy,b=d.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[l," / ",C," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:m.map(function(v,h){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:f===v,content:v,onClick:function(){function g(){return u("amount",{amount:v})}return g}()})},h)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:b==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function v(){return u("mode",{mode:"dispense"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:b==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function v(){return u("mode",{mode:"remove"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:b==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function v(){return u("mode",{mode:"isolate"})}return v}()})]})})]})})})},V=function(i,c){for(var s=(0,a.useBackend)(c),u=s.act,d=s.data,f=d.chemicals,l=f===void 0?[]:f,C=d.current_reagent,b=[],v=0;v<(l.length+1)%3;v++)b.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:d.glass?"Drink Selector":"Chemical Selector",children:[l.map(function(h,g){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:C===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function N(){return u("dispense",{reagent:h.id})}return N}()},g)}),b.map(function(h,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},g)})]})})}},75926:function(I,r,n){"use strict";r.__esModule=!0,r.ImplantPad=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ImplantPad=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.implant,s=i.contains_case,u=i.tag,d=(0,a.useLocalState)(k,"newTag",u),f=d[0],l=d[1];return(0,e.createComponentVNode)(2,o.Window,{width:410,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject Case",icon:"eject",disabled:!s,onClick:function(){function C(){return p("eject_case")}return C}()})}),children:c&&s?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createComponentVNode)(2,t.DmIcon,{icon:c.icon,icon_state:c.icon_state,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),c.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:c.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:c.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:c.function}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,t.Input,{width:"5.5rem",value:u,onEnter:function(){function C(){return p("tag",{newtag:f})}return C}(),onInput:function(){function C(b,v){return l(v)}return C}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:u===f,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function C(){return p("tag",{newtag:f})}return C}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):s?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"})})})})}return S}()},25471:function(I,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(98595),S=r.Instrument=function(){function i(c,s){var u=(0,t.useBackend)(s),d=u.act,f=u.data;return(0,e.createComponentVNode)(2,m.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,p)]})})]})}return i}(),y=function(c,s){var u=(0,t.useBackend)(s),d=u.act,f=u.data,l=f.help;if(l)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function C(){return d("help")}return C}()})]})})})},k=function(c,s){var u=(0,t.useBackend)(s),d=u.act,f=u.data,l=f.lines,C=f.playing,b=f.repeat,v=f.maxRepeats,h=f.tempo,g=f.minTempo,N=f.maxTempo,x=f.tickLag,B=f.volume,L=f.minVolume,T=f.maxVolume,E=f.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function w(){return d("help")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function w(){return d("newsong")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function w(){return d("import")}return w}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:C,disabled:l.length===0||b<0,icon:"play",content:"Play",onClick:function(){function w(){return d("play")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!C,icon:"stop",content:"Stop",onClick:function(){function w(){return d("stop")}return w}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:v,value:b,stepPixelSize:59,onChange:function(){function w(A,O){return d("repeat",{new:O})}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:h>=N,content:"-",as:"span",mr:"0.5rem",onClick:function(){function w(){return d("tempo",{new:h+x})}return w}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=g,content:"+",as:"span",ml:"0.5rem",onClick:function(){function w(){return d("tempo",{new:h-x})}return w}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:L,maxValue:T,value:B,stepPixelSize:6,onDrag:function(){function w(A,O){return d("setvolume",{new:O})}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:E?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,V)]})},V=function(c,s){var u=(0,t.useBackend)(s),d=u.act,f=u.data,l=f.allowedInstrumentNames,C=f.instrumentLoaded,b=f.instrument,v=f.canNoteShift,h=f.noteShift,g=f.noteShiftMin,N=f.noteShiftMax,x=f.sustainMode,B=f.sustainLinearDuration,L=f.sustainExponentialDropoff,T=f.legacy,E=f.sustainDropoffVolume,w=f.sustainHeldNote,A,O;return x===1?(A="Linear",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:B,step:.5,stepPixelSize:85,format:function(){function M(P){return(0,a.round)(P*100)/100+" seconds"}return M}(),onChange:function(){function M(P,R){return d("setlinearfalloff",{new:R/10})}return M}()})):x===2&&(A="Exponential",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:L,step:.01,format:function(){function M(P){return(0,a.round)(P*1e3)/1e3+"% per decisecond"}return M}(),onChange:function(){function M(P,R){return d("setexpfalloff",{new:R})}return M}()})),l.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:T?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:C?(0,e.createComponentVNode)(2,o.Dropdown,{options:l,selected:b,width:"50%",onSelected:function(){function M(P){return d("switchinstrument",{name:P})}return M}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&v)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:g,maxValue:N,value:h,stepPixelSize:2,format:function(){function M(P){return P+" keys / "+(0,a.round)(P/12*100)/100+" octaves"}return M}(),onChange:function(){function M(P,R){return d("setnoteshift",{new:R})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:A,onSelected:function(){function M(P){return d("setsustainmode",{new:P})}return M}()}),O]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:E,stepPixelSize:6,onChange:function(){function M(P,R){return d("setdropoffvolume",{new:R})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Yes":"No",onClick:function(){function M(){return d("togglesustainhold")}return M}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function M(){return d("reset")}return M}()})]})})})},p=function(c,s){var u=(0,t.useBackend)(s),d=u.act,f=u.data,l=f.playing,C=f.lines,b=f.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!b||l,icon:"plus",content:"Add Line",onClick:function(){function v(){return d("newline",{line:C.length+1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!b,icon:b?"chevron-up":"chevron-down",onClick:function(){function v(){return d("edit")}return v}()})],4),children:!!b&&(C.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:C.map(function(v,h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:l,icon:"pen",onClick:function(){function g(){return d("modifyline",{line:h+1})}return g}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:l,icon:"trash",onClick:function(){function g(){return d("deleteline",{line:h+1})}return g}()})],4),children:v},h)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},65021:function(I,r,n){"use strict";r.__esModule=!0,r.ItemPixelShift=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ItemPixelShift=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.pixel_x,s=i.pixel_y,u=i.max_shift_x,d=i.max_shift_y,f=i.random_drop_on;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"X-coordinates",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",title:"Shifts item leftwards.",disabled:c===-u,onClick:function(){function l(){return p("shift_left")}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:c,minValue:-u,maxValue:u,onChange:function(){function l(C,b){return p("custom_x",{pixel_x:b})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",title:"Shifts item rightwards.",disabled:c===u,onClick:function(){function l(){return p("shift_right")}return l}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Y-coordinates",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-up",title:"Shifts item upwards.",disabled:s===d,onClick:function(){function l(){return p("shift_up")}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:s,minValue:-d,maxValue:d,onChange:function(){function l(C,b){return p("custom_y",{pixel_y:b})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",title:"Shifts item downwards.",disabled:s===-d,onClick:function(){function l(){return p("shift_down")}return l}()})]})]})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"brown",icon:"arrow-up",content:"Move to Top",title:"Tries to place an item on top of the others.",onClick:function(){function l(){return p("move_to_top")}return l}()})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:f?"good":"bad",icon:"power-off",content:f?"Shift Enabled":"Shift Disabled",title:"Enables/Disables item pixel randomization on any drops.",onClick:function(){function l(){return p("toggle")}return l}()})})]})})]})})}return S}()},13618:function(I,r,n){"use strict";r.__esModule=!0,r.KeyComboModal=void 0;var e=n(89005),a=n(70611),t=n(72253),o=n(36036),m=n(98595),S=n(19203),y=n(51057),k=function(u){return u.key!==a.KEY.Alt&&u.key!==a.KEY.Control&&u.key!==a.KEY.Shift&&u.key!==a.KEY.Escape},V={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space",UP:"North"},p=3,i=function(u){var d="";if(u.altKey&&(d+="Alt"),u.ctrlKey&&(d+="Ctrl"),u.shiftKey&&!(u.keyCode>=48&&u.keyCode<=57)&&(d+="Shift"),u.location===p&&(d+="Numpad"),k(u))if(u.shiftKey&&u.keyCode>=48&&u.keyCode<=57){var f=u.keyCode-48;d+="Shift"+f}else{var l=u.key.toUpperCase();d+=V[l]||l}return d},c=r.KeyComboModal=function(){function s(u,d){var f=(0,t.useBackend)(d),l=f.act,C=f.data,b=C.init_value,v=C.large_buttons,h=C.message,g=h===void 0?"":h,N=C.title,x=C.timeout,B=(0,t.useLocalState)(d,"input",b),L=B[0],T=B[1],E=(0,t.useLocalState)(d,"binding",!0),w=E[0],A=E[1],O=function(){function R(F){if(!w){F.key===a.KEY.Enter&&l("submit",{entry:L}),F.key===a.KEY.Escape&&l("cancel");return}if(F.preventDefault(),k(F)){M(i(F)),A(!1);return}else if(F.key===a.KEY.Escape){M(b),A(!1);return}}return R}(),M=function(){function R(F){F!==L&&T(F)}return R}(),P=130+(g.length>30?Math.ceil(g.length/3):0)+(g.length&&v?5:0);return(0,e.createComponentVNode)(2,m.Window,{title:N,width:240,height:P,children:[x&&(0,e.createComponentVNode)(2,y.Loader,{value:x}),(0,e.createComponentVNode)(2,m.Window.Content,{onKeyDown:function(){function R(F){O(F)}return R}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:w,content:w&&w!==null?"Awaiting input...":""+L,width:"100%",textAlign:"center",onClick:function(){function R(){M(b),A(!0)}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,S.InputButtons,{input:L})})]})]})})]})}return s}()},35655:function(I,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.KeycardAuth=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!i.swiping&&!i.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!i.redAvailable,onClick:function(){function u(){return p("triggerevent",{triggerevent:"Red Alert"})}return u}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function u(){return p("triggerevent",{triggerevent:"Emergency Response Team"})}return u}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function u(){return p("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return u}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function u(){return p("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return u}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function u(){return p("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return u}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function u(){return p("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return u}(),content:"Revoke"})]})]})})]})});var s=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!i.hasSwiped&&!i.ertreason&&i.event==="Emergency Response Team"?s=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):i.hasConfirm?s=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):i.isRemote?s=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):i.hasSwiped&&(s=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,i.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:i.ertreason?"":"red",icon:i.ertreason?"check":"pencil-alt",content:i.ertreason?i.ertreason:"-----",disabled:i.busy,onClick:function(){function u(){return p("ert")}return u}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:i.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:i.busy||i.hasConfirm,onClick:function(){function u(){return p("reset")}return u}()}),children:s})]})})}return S}()},40951:function(I,r,n){"use strict";r.__esModule=!0,r.LaborClaimConsole=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(98595),S=r.LaborClaimConsole=function(){function V(p,i){return(0,e.createComponentVNode)(2,m.Window,{width:315,height:470,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,k)]})})}return V}(),y=function(p,i){var c=(0,t.useBackend)(i),s=c.act,u=c.data,d=u.can_go_home,f=u.emagged,l=u.id_inserted,C=u.id_name,b=u.id_points,v=u.id_goal,h=u.unclaimed_points,g=f?0:1,N=f?"ERR0R":d?"Completed!":"Insufficient";return(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:!!l&&(0,e.createComponentVNode)(2,o.ProgressBar,{value:b/v,ranges:{good:[g,1/0],bad:[-1/0,g]},children:b+" / "+v+" "+N})||!!f&&"ERR0R COMPLETED?!@"||"No ID inserted"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Shuttle controls",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Move shuttle",disabled:!d,onClick:function(){function x(){return s("move_shuttle")}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed points",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Claim points ("+h+")",disabled:!l||!h,onClick:function(){function x(){return s("claim_points")}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Inserted ID",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:l?C:"-------------",onClick:function(){function x(){return s("handle_id")}return x}()})})]})})},k=function(p,i){var c=(0,t.useBackend)(i),s=c.data,u=s.ores;return(0,e.createComponentVNode)(2,o.Section,{title:"Material values",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Material"}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"right",children:"Value"})]}),u.map(function(d){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,a.toTitleCase)(d.ore)}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:d.value})})]},d.ore)})]})})}},9525:function(I,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.LawManager=function(){function V(p,i){var c=(0,a.useBackend)(i),s=c.act,u=c.data,d=u.isAdmin,f=u.isSlaved,l=u.isMalf,C=u.isAIMalf,b=u.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:l?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(d&&f)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",f,"."]}),!!(l||C)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:b===0,onClick:function(){function v(){return s("set_view",{set_view:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:b===1,onClick:function(){function v(){return s("set_view",{set_view:1})}return v}()})]}),b===0&&(0,e.createComponentVNode)(2,S),b===1&&(0,e.createComponentVNode)(2,y)]})})}return V}(),S=function(p,i){var c=(0,a.useBackend)(i),s=c.act,u=c.data,d=u.has_zeroth_laws,f=u.zeroth_laws,l=u.has_ion_laws,C=u.ion_laws,b=u.ion_law_nr,v=u.has_inherent_laws,h=u.inherent_laws,g=u.has_supplied_laws,N=u.supplied_laws,x=u.channels,B=u.channel,L=u.isMalf,T=u.isAdmin,E=u.zeroth_law,w=u.ion_law,A=u.inherent_law,O=u.supplied_law,M=u.supplied_law_position;return(0,e.createFragment)([!!d&&(0,e.createComponentVNode)(2,k,{title:"ERR_NULL_VALUE",laws:f,ctx:i}),!!l&&(0,e.createComponentVNode)(2,k,{title:b,laws:C,ctx:i}),!!v&&(0,e.createComponentVNode)(2,k,{title:"Inherent",laws:h,ctx:i}),!!g&&(0,e.createComponentVNode)(2,k,{title:"Supplied",laws:N,ctx:i}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:x.map(function(P){return(0,e.createComponentVNode)(2,t.Button,{content:P.channel,selected:P.channel===B,onClick:function(){function R(){return s("law_channel",{law_channel:P.channel})}return R}()},P.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function P(){return s("state_laws")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function P(){return s("notify_laws")}return P}()})})]})}),!!L&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!d)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return s("change_zeroth_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return s("add_zeroth_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return s("change_ion_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return s("add_ion_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return s("change_inherent_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return s("add_inherent_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:O}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:M,onClick:function(){function P(){return s("change_supplied_law_position")}return P}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return s("change_supplied_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return s("add_supplied_law")}return P}()})]})]})]})})],0)},y=function(p,i){var c=(0,a.useBackend)(i),s=c.act,u=c.data,d=u.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{title:f.name+" - "+f.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function l(){return s("transfer_laws",{transfer_laws:f.ref})}return l}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[f.laws.has_ion_laws>0&&f.laws.ion_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),f.laws.has_zeroth_laws>0&&f.laws.zeroth_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),f.laws.has_inherent_laws>0&&f.laws.inherent_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),f.laws.has_supplied_laws>0&&f.laws.inherent_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)})]})},f.name)})})},k=function(p,i){var c=(0,a.useBackend)(p.ctx),s=c.act,u=c.data,d=u.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:p.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),p.laws.map(function(f){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:f.state?"Yes":"No",selected:f.state,onClick:function(){function l(){return s("state_law",{ref:f.ref,state_law:f.state?0:1})}return l}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function l(){return s("edit_law",{edit_law:f.ref})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function l(){return s("delete_law",{delete_law:f.ref})}return l}()})],4)]})]},f.law)})]})})}},90447:function(I,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),m=n(72253),S=n(92986),y=n(98595),k=r.ListInputModal=function(){function i(c,s){var u=(0,m.useBackend)(s),d=u.act,f=u.data,l=f.items,C=l===void 0?[]:l,b=f.message,v=b===void 0?"":b,h=f.init_value,g=f.timeout,N=f.title,x=(0,m.useLocalState)(s,"selected",C.indexOf(h)),B=x[0],L=x[1],T=(0,m.useLocalState)(s,"searchBarVisible",C.length>10),E=T[0],w=T[1],A=(0,m.useLocalState)(s,"searchQuery",""),O=A[0],M=A[1],P=function(){function ne(G){var le=$.length-1;if(G===S.KEY_DOWN)if(B===null||B===le){var de;L(0),(de=document.getElementById("0"))==null||de.scrollIntoView()}else{var oe;L(B+1),(oe=document.getElementById((B+1).toString()))==null||oe.scrollIntoView()}else if(G===S.KEY_UP)if(B===null||B===0){var re;L(le),(re=document.getElementById(le.toString()))==null||re.scrollIntoView()}else{var q;L(B-1),(q=document.getElementById((B-1).toString()))==null||q.scrollIntoView()}}return ne}(),R=function(){function ne(G){G!==B&&L(G)}return ne}(),F=function(){function ne(){w(!1),w(!0)}return ne}(),_=function(){function ne(G){var le=String.fromCharCode(G),de=C.find(function(q){return q==null?void 0:q.toLowerCase().startsWith(le==null?void 0:le.toLowerCase())});if(de){var oe,re=C.indexOf(de);L(re),(oe=document.getElementById(re.toString()))==null||oe.scrollIntoView()}}return ne}(),U=function(){function ne(G){var le;G!==O&&(M(G),L(0),(le=document.getElementById("0"))==null||le.scrollIntoView())}return ne}(),W=function(){function ne(){w(!E),M("")}return ne}(),$=C.filter(function(ne){return ne==null?void 0:ne.toLowerCase().includes(O.toLowerCase())}),Y=330+Math.ceil(v.length/3);return E||setTimeout(function(){var ne;return(ne=document.getElementById(B.toString()))==null?void 0:ne.focus()},1),(0,e.createComponentVNode)(2,y.Window,{title:N,width:325,height:Y,children:[g&&(0,e.createComponentVNode)(2,a.Loader,{value:g}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function ne(G){var le=window.event?G.which:G.keyCode;(le===S.KEY_DOWN||le===S.KEY_UP)&&(G.preventDefault(),P(le)),le===S.KEY_ENTER&&(G.preventDefault(),d("submit",{entry:$[B]})),!E&&le>=S.KEY_A&&le<=S.KEY_Z&&(G.preventDefault(),_(le)),le===S.KEY_ESCAPE&&(G.preventDefault(),d("cancel"))}return ne}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:E?"search":"font",selected:!0,tooltip:E?"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(){function ne(){return W()}return ne}()}),className:"ListInput__Section",fill:!0,title:v,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V,{filteredItems:$,onClick:R,onFocusSearch:F,searchBarVisible:E,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:E&&(0,e.createComponentVNode)(2,p,{filteredItems:$,onSearch:U,searchQuery:O,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:$[B]})})]})})})]})}return i}(),V=function(c,s){var u=(0,m.useBackend)(s),d=u.act,f=c.filteredItems,l=c.onClick,C=c.onFocusSearch,b=c.searchBarVisible,v=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:f.map(function(h,g){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:g,onClick:function(){function N(){return l(g)}return N}(),onDblClick:function(){function N(x){x.preventDefault(),d("submit",{entry:f[v]})}return N}(),onKeyDown:function(){function N(x){var B=window.event?x.which:x.keyCode;b&&B>=S.KEY_A&&B<=S.KEY_Z&&(x.preventDefault(),C())}return N}(),selected:g===v,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(N){return N.toUpperCase()})},g)})})},p=function(c,s){var u=(0,m.useBackend)(s),d=u.act,f=c.filteredItems,l=c.onSearch,C=c.searchQuery,b=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function v(h){h.preventDefault(),d("submit",{entry:f[b]})}return v}(),onInput:function(){function v(h,g){return l(g)}return v}(),placeholder:"Search...",value:C})}},26826:function(I,r,n){"use strict";r.__esModule=!0,r.Loadout=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(98595),S={Default:function(){function c(s,u){return s.gear.gear_tier-u.gear.gear_tier}return c}(),Alphabetical:function(){function c(s,u){return s.gear.name.toLowerCase().localeCompare(u.gear.name.toLowerCase())}return c}(),Cost:function(){function c(s,u){return s.gear.cost-u.gear.cost}return c}()},y=r.Loadout=function(){function c(s,u){var d=(0,t.useBackend)(u),f=d.act,l=d.data,C=(0,t.useLocalState)(u,"search",!1),b=C[0],v=C[1],h=(0,t.useLocalState)(u,"searchText",""),g=h[0],N=h[1],x=(0,t.useLocalState)(u,"category",Object.keys(l.gears)[0]),B=x[0],L=x[1],T=(0,t.useLocalState)(u,"tweakedGear",""),E=T[0],w=T[1];return(0,e.createComponentVNode)(2,m.Window,{width:975,height:650,children:[E&&(0,e.createComponentVNode)(2,i,{tweakedGear:E,setTweakedGear:w}),(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{category:B,setCategory:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"25%",children:(0,e.createComponentVNode)(2,p,{setTweakedGear:w})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"75%",children:(0,e.createComponentVNode)(2,V,{category:B,search:b,setSearch:v,searchText:g,setSearchText:N})})]})})]})})]})}return c}(),k=function(s,u){var d=(0,t.useBackend)(u),f=d.act,l=d.data,C=s.category,b=s.setCategory;return(0,e.createComponentVNode)(2,o.Tabs,{fluid:!0,textAlign:"center",style:{"flex-wrap":"wrap-reverse"},children:Object.keys(l.gears).map(function(v){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===C,style:{"white-space":"nowrap"},onClick:function(){function h(){return b(v)}return h}(),children:v},v)})})},V=function(s,u){var d=(0,t.useBackend)(u),f=d.act,l=d.data,C=l.user_tier,b=l.gear_slots,v=l.max_gear_slots,h=s.category,g=s.search,N=s.setSearch,x=s.searchText,B=s.setSearchText,L=(0,t.useLocalState)(u,"sortType","Default"),T=L[0],E=L[1],w=(0,t.useLocalState)(u,"sortReverse",!1),A=w[0],O=w[1],M=(0,a.createSearch)(x,function(R){return R.name}),P;return x.length>2?P=Object.entries(l.gears).reduce(function(R,F){var _=F[0],U=F[1];return R.concat(Object.entries(U).map(function(W){var $=W[0],Y=W[1];return{key:$,gear:Y}}))},[]).filter(function(R){var F=R.gear;return M(F)}):P=Object.entries(l.gears[h]).map(function(R){var F=R[0],_=R[1];return{key:F,gear:_}}),P.sort(S[T]),A&&(P=P.reverse()),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:h,buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{height:1.66,selected:T,options:Object.keys(S),onSelected:function(){function R(F){return E(F)}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:A?"arrow-down-wide-short":"arrow-down-short-wide",tooltip:A?"Ascending order":"Descending order",tooltipPosition:"bottom-end",onClick:function(){function R(){return O(!A)}return R}()})}),g&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Input,{width:20,placeholder:"Search...",value:x,onInput:function(){function R(F){return B(F.target.value)}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"magnifying-glass",selected:g,tooltip:"Toggle search field",tooltipPosition:"bottom-end",onClick:function(){function R(){N(!g),B("")}return R}()})})]}),children:P.map(function(R){var F=R.key,_=R.gear,U=12,W=Object.keys(l.selected_gears).includes(F),$=(_.cost===1,_.cost+" Points"),Y=(0,e.createComponentVNode)(2,o.Box,{children:[_.name.length>U&&(0,e.createComponentVNode)(2,o.Box,{children:_.name}),_.gear_tier>C&&(0,e.createComponentVNode)(2,o.Box,{mt:_.name.length>U&&1.5,textColor:"red",children:"That gear is only available at a higher donation tier than you are on."})]}),ne=(0,e.createFragment)([_.allowed_roles&&(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"user",tooltip:(0,e.createComponentVNode)(2,o.Section,{m:-1,title:"Allowed Roles",children:_.allowed_roles.map(function(le){return(0,e.createComponentVNode)(2,o.Box,{children:le},le)})}),tooltipPosition:"left"}),Object.entries(_.tweaks).map(function(le){var de=le[0],oe=le[1];return oe.map(function(re){return(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:re.icon,tooltip:re.tooltip,tooltipPosition:"top"},de)})}),(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"info",tooltip:_.desc,tooltipPosition:"top"})],0),G=(0,e.createComponentVNode)(2,o.Box,{class:"Loadout-InfoBox",children:[(0,e.createComponentVNode)(2,o.Box,{style:{"flex-grow":1},fontSize:1,color:"gold",opacity:.75,children:_.gear_tier>0&&"Tier "+_.gear_tier}),(0,e.createComponentVNode)(2,o.Box,{fontSize:.75,opacity:.66,children:$})]});return(0,e.createComponentVNode)(2,o.ImageButtonTS,{m:.5,imageSize:84,dmIcon:_.icon,dmIconState:_.icon_state,tooltip:(_.name.length>U||_.gear_tier>0)&&Y,tooltipPosition:"bottom",selected:W,disabled:_.gear_tier>C||b+_.cost>v&&!W,buttons:ne,buttonsAlt:G,onClick:function(){function le(){return f("toggle_gear",{gear:_.index_name})}return le}(),children:_.name},F)})})},p=function(s,u){var d=(0,t.useBackend)(u),f=d.act,l=d.data,C=s.setTweakedGear,b=Object.entries(l.gears).reduce(function(v,h){var g=h[0],N=h[1],x=Object.entries(N).filter(function(B){var L=B[0];return Object.keys(l.selected_gears).includes(L)}).map(function(B){var L=B[0],T=B[1];return Object.assign({key:L},T)});return v.concat(x)},[]);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Selected Equipment",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"Clear Loadout",tooltipPosition:"bottom-end",onClick:function(){function v(){return f("clear_loadout")}return v}()}),children:b.map(function(v){var h=l.selected_gears[v.key];return(0,e.createComponentVNode)(2,o.ImageButtonTS,{fluid:!0,imageSize:48,base64:h.icon,dmIcon:h.icon_file?h.icon_file:v.icon,dmIconState:h.icon_state?h.icon_state:v.icon_state,buttons:(0,e.createFragment)([Object.entries(v.tweaks).length>0&&(0,e.createComponentVNode)(2,o.Button,{color:"translucent",icon:"gears",iconColor:"gray",width:"33px",onClick:function(){function g(){return C(v)}return g}()}),(0,e.createComponentVNode)(2,o.Button,{color:"translucent",icon:"times",iconColor:"red",width:"32px",onClick:function(){function g(){return f("toggle_gear",{gear:v.index_name})}return g}()})],0),children:h.name?h.name:v.name},v.key)})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:l.gear_slots,maxValue:l.max_gear_slots,ranges:{bad:[l.max_gear_slots,1/0],average:[l.max_gear_slots*.66,l.max_gear_slots],good:[0,l.max_gear_slots*.66]},children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:["Used points ",l.gear_slots,"/",l.max_gear_slots]})})})})]})},i=function(s,u){var d=(0,t.useBackend)(u),f=d.act,l=d.data,C=s.tweakedGear,b=s.setTweakedGear;return(0,e.createComponentVNode)(2,o.Dimmer,{children:(0,e.createComponentVNode)(2,o.Box,{className:"Loadout-Modal__background",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,width:20,height:20,title:C.name,buttons:(0,e.createComponentVNode)(2,o.Button,{color:"red",icon:"times",tooltip:"Close",tooltipPosition:"top",onClick:function(){function v(){return b("")}return v}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.entries(C.tweaks).map(function(v){var h=v[0],g=v[1];return g.map(function(N){var x=l.selected_gears[C.key][h];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:N.name,color:x?"":"gray",buttons:(0,e.createComponentVNode)(2,o.Button,{color:"transparent",icon:"pen",onClick:function(){function B(){return f("set_tweak",{gear:C.index_name,tweak:h})}return B}()}),children:[x||"Default",(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,width:1,height:1,verticalAlign:"middle",style:{"background-color":""+x}})]},h)})})})})})})}},88832:function(I,r,n){"use strict";r.__esModule=!0,r.MatrixMathTester=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(44879),m=n(98595),S=function(V,p){var i=(0,a.useBackend)(p),c=i.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:V.value,step:.005,format:function(){function s(u){return(0,o.toFixed)(u,3)}return s}(),width:"100%",onChange:function(){function s(u,d){return c("change_var",{var_name:V.varName,var_value:d})}return s}()})},y=r.MatrixMathTester=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,u=s.matrix_a,d=s.matrix_b,f=s.matrix_c,l=s.matrix_d,C=s.matrix_e,b=s.matrix_f,v=s.pixelated,h=(0,a.useLocalState)(p,"scale_x",1),g=h[0],N=h[1],x=(0,a.useLocalState)(p,"scale_y",1),B=x[0],L=x[1],T=(0,a.useLocalState)(p,"translate_x",0),E=T[0],w=T[1],A=(0,a.useLocalState)(p,"translate_y",0),O=A[0],M=A[1],P=(0,a.useLocalState)(p,"shear_x",0),R=P[0],F=P[1],_=(0,a.useLocalState)(p,"shear_y",0),U=_[0],W=_[1],$=(0,a.useLocalState)(p,"angle",0),Y=$[0],ne=$[1];return(0,e.createComponentVNode)(2,m.Window,{title:"Transform Editor",width:290,height:270,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"30%"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"25%",children:"X"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"25%",children:"Y"})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Position(c, f)"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,S,{value:f,varName:"c"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,S,{value:b,varName:"f"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Incline(b, d)"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,S,{value:d,varName:"b"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,S,{value:l,varName:"d"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Scale(a,e)"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,S,{value:u,varName:"a"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,S,{value:C,varName:"e"})})]})]}),(0,e.createComponentVNode)(2,t.Table,{mt:3,children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Action"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"X"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Y"})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"up-right-and-down-left-from-center",content:"Scale",width:"100%",onClick:function(){function G(){return c("scale",{x:g,y:B})}return G}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:g,step:.05,format:function(){function G(le){return(0,o.toFixed)(le,2)}return G}(),width:"100%",onChange:function(){function G(le,de){return N(de)}return G}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:B,step:.05,format:function(){function G(le){return(0,o.toFixed)(le,2)}return G}(),width:"100%",onChange:function(){function G(le,de){return L(de)}return G}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:"Translate",width:"100%",onClick:function(){function G(){return c("translate",{x:E,y:O})}return G}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:E,step:1,format:function(){function G(le){return(0,o.toFixed)(le,0)}return G}(),width:"100%",onChange:function(){function G(le,de){return w(de)}return G}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:O,step:1,format:function(){function G(le){return(0,o.toFixed)(le,0)}return G}(),width:"100%",onChange:function(){function G(le,de){return M(de)}return G}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"maximize",content:"Shear",width:"100%",onClick:function(){function G(){return c("shear",{x:R,y:U})}return G}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:R,step:.005,format:function(){function G(le){return(0,o.toFixed)(le,3)}return G}(),width:"100%",onChange:function(){function G(le,de){return F(de)}return G}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:U,step:.005,format:function(){function G(le){return(0,o.toFixed)(le,3)}return G}(),width:"100%",onChange:function(){function G(le,de){return W(de)}return G}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"rotate-right",content:"Rotate",width:"100%",onClick:function(){function G(){return c("turn",{angle:Y})}return G}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:Y,step:.5,maxValue:360,minValue:-360,format:function(){function G(le){return(0,o.toFixed)(le,1)}return G}(),width:"100%",onChange:function(){function G(le,de){return ne(de)}return G}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"dog",color:"bad",selected:v,content:"PET",tooltip:"Pixel Enhanced Transforming",tooltipPosition:"bottom",width:"100%",onClick:function(){function G(){return c("toggle_pixel")}return G}()})})]})]})]})})})}return k}()},72106:function(I,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.MechBayConsole=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.recharge_port,s=c&&c.mech,u=s&&s.cell,d=s&&s.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:d?"Mech status: "+d:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function f(){return p("reconnect")}return f}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!s&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.health/s.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!s&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!u&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:u.charge/u.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:u.charge})," / "+u.maxcharge]})})]})})})})}return S}()},7466:function(I,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(98595),S=n(25328),y=r.MechaControlConsole=function(){function k(V,p){var i=(0,t.useBackend)(p),c=i.act,s=i.data,u=s.beacons,d=s.stored_data;return d.length?(0,e.createComponentVNode)(2,m.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function f(){return c("clear_log")}return f}()}),children:d.map(function(f){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",f.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,S.decodeHtmlEntities)(f.message)})]},f.time)})})})}):(0,e.createComponentVNode)(2,m.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:u.length&&u.map(function(f){return(0,e.createComponentVNode)(2,o.Section,{title:f.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function l(){return c("send_message",{mt:f.uid})}return l}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function l(){return c("get_log",{mt:f.uid})}return l}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){function l(){return c("shock",{mt:f.uid})}return l}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[f.maxHealth*.75,1/0],average:[f.maxHealth*.5,f.maxHealth*.75],bad:[-1/0,f.maxHealth*.5]},value:f.health,maxValue:f.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:f.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[f.cellMaxCharge*.75,1/0],average:[f.cellMaxCharge*.5,f.cellMaxCharge*.75],bad:[-1/0,f.cellMaxCharge*.5]},value:f.cellCharge,maxValue:f.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[f.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:f.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,S.toTitleCase)(f.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:f.active||"None"}),f.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[f.cargoMax*.75,1/0],average:[f.cargoMax*.5,f.cargoMax*.75],good:[-1/0,f.cargoMax*.5]},value:f.cargoUsed,maxValue:f.cargoMax})})||null]})},f.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return k}()},79625:function(I,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(3939),S=n(98595),y=n(321),k=n(5485),V=n(22091),p={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},i={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(T,E){(0,m.modalOpen)(T,"edit",{field:E.edit,value:E.value})},s=function(T,E){var w=T.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:w.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:w.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[w.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:w.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:w.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:p[w.severity],children:w.severity})]})})})},u=r.MedicalRecords=function(){function L(T,E){var w=(0,t.useBackend)(E),A=w.data,O=A.loginState,M=A.screen;if(!O.logged_in)return(0,e.createComponentVNode)(2,S.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var P;return M===2?P=(0,e.createComponentVNode)(2,d):M===3?P=(0,e.createComponentVNode)(2,f):M===4?P=(0,e.createComponentVNode)(2,l):M===5?P=(0,e.createComponentVNode)(2,h):M===6&&(P=(0,e.createComponentVNode)(2,g)),(0,e.createComponentVNode)(2,S.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,V.TemporaryNotice),(0,e.createComponentVNode)(2,B),P]})})]})}return L}(),d=function(T,E){var w=(0,t.useBackend)(E),A=w.act,O=w.data,M=O.records,P=(0,t.useLocalState)(E,"searchText",""),R=P[0],F=P[1],_=(0,t.useLocalState)(E,"sortId","name"),U=_[0],W=_[1],$=(0,t.useLocalState)(E,"sortOrder",!0),Y=$[0],ne=$[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function G(){return A("screen",{screen:3})}return G}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onInput:function(){function G(le,de){return F(de)}return G}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,N,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,N,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,N,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,N,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,N,{id:"m_stat",children:"Mental Status"})]}),M.filter((0,a.createSearch)(R,function(G){return G.name+"|"+G.id+"|"+G.rank+"|"+G.p_stat+"|"+G.m_stat})).sort(function(G,le){var de=Y?1:-1;return G[U].localeCompare(le[U])*de}).map(function(G){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+i[G.p_stat],onClick:function(){function le(){return A("view_record",{view_record:G.ref})}return le}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",G.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:G.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:G.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:G.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:G.m_stat})]},G.id)})]})})})],4)},f=function(T,E){var w=(0,t.useBackend)(E),A=w.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,lineHeight:3,icon:"trash",color:"translucent",content:"Delete All Medical Records",onClick:function(){function O(){return A("del_all")}return O}()})})]})})},l=function(T,E){var w=(0,t.useBackend)(E),A=w.act,O=w.data,M=O.medical,P=O.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:P?"spinner":"print",disabled:P,iconSpin:!!P,content:"Print Record",ml:"0.5rem",onClick:function(){function R(){return A("print_record")}return R}()}),children:(0,e.createComponentVNode)(2,C)})}),!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function R(){return A("new")}return R}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!M.empty,content:"Delete Medical Record",onClick:function(){function R(){return A("del_r")}return R}()}),children:(0,e.createComponentVNode)(2,b)})}),(0,e.createComponentVNode)(2,v)],4)],0)},C=function(T,E){var w=(0,t.useBackend)(E),A=w.data,O=A.general;return!O||!O.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:O.fields.map(function(M,P){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:M.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:M.value}),!!M.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function R(){return c(E,M)}return R}()})]},P)})})}),!!O.has_photos&&O.photos.map(function(M,P){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:M,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",P+1]},P)})]})},b=function(T,E){var w=(0,t.useBackend)(E),A=w.act,O=w.data,M=O.medical;return!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:M.fields.map(function(P,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:P.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(P.value),!!P.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:P.line_break?"1rem":"initial",onClick:function(){function F(){return c(E,P)}return F}()})]},R)})})})})},v=function(T,E){var w=(0,t.useBackend)(E),A=w.act,O=w.data,M=O.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function P(){return(0,m.modalOpen)(E,"add_comment")}return P}()}),children:M.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):M.comments.map(function(P,R){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:P.header}),(0,e.createVNode)(1,"br"),P.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function F(){return A("del_c",{del_c:R+1})}return F}()})]},R)})})})},h=function(T,E){var w=(0,t.useBackend)(E),A=w.act,O=w.data,M=O.virus,P=(0,t.useLocalState)(E,"searchText",""),R=P[0],F=P[1],_=(0,t.useLocalState)(E,"sortId2","name"),U=_[0],W=_[1],$=(0,t.useLocalState)(E,"sortOrder2",!0),Y=$[0],ne=$[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function G(le,de){return F(de)}return G}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,x,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,x,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,x,{id:"severity",children:"Severity"})]}),M.filter((0,a.createSearch)(R,function(G){return G.name+"|"+G.max_stages+"|"+G.severity})).sort(function(G,le){var de=Y?1:-1;return G[U].localeCompare(le[U])*de}).map(function(G){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+G.severity,onClick:function(){function le(){return A("vir",{vir:G.D})}return le}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",G.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:G.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:p[G.severity],children:G.severity})]},G.id)})]})})})})],4)},g=function(T,E){var w=(0,t.useBackend)(E),A=w.act,O=w.data,M=O.medbots;return M.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),M.map(function(P){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+P.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",P.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[P.area||"Unknown"," (",P.x,", ",P.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.use_beaker?"Reservoir: "+P.total_volume+"/"+P.maximum_volume:"Using internal synthesizer"})]},P.id)})]})})})},N=function(T,E){var w=(0,t.useLocalState)(E,"sortId","name"),A=w[0],O=w[1],M=(0,t.useLocalState)(E,"sortOrder",!0),P=M[0],R=M[1],F=T.id,_=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:A!==F&&"transparent",onClick:function(){function U(){A===F?R(!P):(O(F),R(!0))}return U}(),children:[_,A===F&&(0,e.createComponentVNode)(2,o.Icon,{name:P?"sort-up":"sort-down",ml:"0.25rem;"})]})})},x=function(T,E){var w=(0,t.useLocalState)(E,"sortId2","name"),A=w[0],O=w[1],M=(0,t.useLocalState)(E,"sortOrder2",!0),P=M[0],R=M[1],F=T.id,_=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:A!==F&&"transparent",onClick:function(){function U(){A===F?R(!P):(O(F),R(!0))}return U}(),children:[_,A===F&&(0,e.createComponentVNode)(2,o.Icon,{name:P?"sort-up":"sort-down",ml:"0.25rem;"})]})})},B=function(T,E){var w=(0,t.useBackend)(E),A=w.act,O=w.data,M=O.screen,P=O.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:M===2,onClick:function(){function R(){A("screen",{screen:2})}return R}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:M===5,onClick:function(){function R(){A("screen",{screen:5})}return R}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:M===6,onClick:function(){function R(){return A("screen",{screen:6})}return R}(),children:"Medibot Tracking"}),M===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:M===3,children:"Record Maintenance"}),M===4&&P&&!P.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:M===4,children:["Record: ",P.fields[0].value]})]})})};(0,m.modalRegisterBodyOverride)("virus",s)},52306:function(I,r,n){"use strict";r.__esModule=!0,r.Mimicking=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.Mimicking=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.slots||[];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,fill:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:[c.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:s.name,level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Choose",selected:s.selected,onClick:function(){function u(){return p("Choose",{id:s.id})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",color:"bad",onClick:function(){function u(){return p("Delete",{id:s.id})}return u}()})],4),children:(0,e.createComponentVNode)(2,t.Box,{preserveWhitespace:!0,textColor:"#878787",fontSize:"14px",children:["Voice: ",s.voice]})},s.id)}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Add",onClick:function(){function s(){return p("Add")}return s}()})]})})})})}return S}()},66238:function(I,r,n){"use strict";r.__esModule=!0,r.Minesweeper=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.Minesweeper=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.matrix,s=i.showMessage,u=i.tokens,d=i.uiWidth,f={1:"blue",2:"green",3:"red",4:"darkblue",5:"brown",6:"lightblue",7:"black",8:"white"};document.addEventListener("contextmenu",function(g){return g.preventDefault()});var l=function(){function g(N,x,B){N.button!==0&&N.button!==2||p("Square",{X:x,Y:B,mode:N.button===2?h[b]:b})}return g}(),C=(0,a.useLocalState)(k,"mode","bomb"),b=C[0],v=C[1],h={flag:"bomb",bomb:"flag"};return(0,e.createComponentVNode)(2,o.Window,{theme:"ntOS95",width:d+80,height:750,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0418\u0433\u0440\u043E\u0432\u043E\u0435 \u043F\u043E\u043B\u0435",textAlign:"center",fill:!0,fitted:!0,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",iconColor:"black",selected:b==="bomb",onClick:function(){function g(){return v("bomb")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"flag",iconColor:"red",selected:b==="flag",onClick:function(){function g(){return v("flag")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",onClick:function(){function g(){return p("Mode",{mode:"16x30"})}return g}()})],4),children:[(0,e.createVNode)(1,"p"),Object.keys(c).map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:Object.keys(c[g]).map(function(N){return(0,e.createComponentVNode)(2,t.Button,{m:"1px",height:"30px",width:"30px",className:c[g][N].open?"Minesweeper__open":"Minesweeper__closed",bold:!0,color:"transparent",icon:c[g][N].open?c[g][N].bomb?"bomb":"":c[g][N].flag?"flag":"",textColor:c[g][N].open?c[g][N].bomb?"black":f[c[g][N].around]:c[g][N].flag?"red":"gray",onMouseDown:function(){function x(B){return l(B,g,N)}return x}(),children:c[g][N].open&&!c[g][N].bomb&&c[g][N].around?c[g][N].around:" "},N)})},g)}),(0,e.createVNode)(1,"p"),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",className:"Minesweeper__message",children:["\u0414\u043B\u044F \u043F\u043E\u0431\u0435\u0434\u044B \u043D\u0443\u0436\u043D\u043E \u043F\u043E\u043C\u0435\u0442\u0438\u0442\u044C \u0444\u043B\u0430\u0436\u043A\u0430\u043C\u0438 \u0432\u0441\u0435 \u0431\u043E\u043C\u0431\u044B, \u0430 \u0442\u0430\u043A\u0436\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0432\u0441\u0435 \u043F\u0443\u0441\u0442\u044B\u0435 \u043A\u043B\u0435\u0442\u043A\u0438.",(0,e.createVNode)(1,"br"),"\u0411\u0430\u043B\u0430\u043D\u0441 \u0442\u043E\u043A\u0435\u043D\u043E\u0432: ",u,(0,e.createVNode)(1,"br"),s]})]})})})})}return S}()},21385:function(I,r,n){"use strict";r.__esModule=!0,r.MiniGamesMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.MiniGamesMenu=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.spawners||[],s=i.thunderdome_eligible,u=i.notifications_enabled;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",tooltip:s?"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",tooltipPosition:"bottom",content:s?"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",color:s?"good":"bad",onClick:function(){function d(){return p("toggle_minigames")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",tooltip:u?"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",tooltipPosition:"bottom",content:u?"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",color:u?"good":"bad",onClick:function(){function d(){return p("toggle_notifications")}return d}()}),(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:d.name,level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function f(){return p("jump",{ID:d.uids})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Start",onClick:function(){function f(){return p("spawn",{ID:d.uids})}return f}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:d.desc}),!!d.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:d.fluff}),!!d.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:d.important_info})]},d.name)})})]})})}return S}()},87684:function(I,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(98595),S=["title","items"];function y(u,d){if(u==null)return{};var f={};for(var l in u)if({}.hasOwnProperty.call(u,l)){if(d.includes(l))continue;f[l]=u[l]}return f}var k={Alphabetical:function(){function u(d,f){return d-f}return u}(),Availability:function(){function u(d,f){return-(d.affordable-f.affordable)}return u}(),Price:function(){function u(d,f){return d.price-f.price}return u}()},V=r.MiningVendor=function(){function u(d,f){return(0,e.createComponentVNode)(2,m.Window,{width:400,height:450,children:(0,e.createComponentVNode)(2,m.Window.Content,{className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})})}return u}(),p=function(d,f){var l=(0,t.useBackend)(f),C=l.act,b=l.data,v=b.has_id,h=b.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:v,children:v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",h.name,".",(0,e.createVNode)(1,"br"),"You have ",h.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function g(){return C("logoff")}return g}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},i=function(d,f){var l=(0,t.useBackend)(f),C=l.act,b=l.data,v=b.has_id,h=b.id,g=b.items,N=(0,t.useLocalState)(f,"search",""),x=N[0],B=N[1],L=(0,t.useLocalState)(f,"sort","Alphabetical"),T=L[0],E=L[1],w=(0,t.useLocalState)(f,"descending",!1),A=w[0],O=w[1],M=(0,a.createSearch)(x,function(F){return F[0]}),P=!1,R=Object.entries(g).map(function(F,_){var U=Object.entries(F[1]).filter(M).map(function(W){return W[1].affordable=v&&h.points>=W[1].price,W[1]}).sort(k[T]);if(U.length!==0)return A&&(U=U.reverse()),P=!0,(0,e.createComponentVNode)(2,s,{title:F[0],items:U},F[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:P?R:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(d,f){var l=(0,t.useLocalState)(f,"search",""),C=l[0],b=l[1],v=(0,t.useLocalState)(f,"sort",""),h=v[0],g=v[1],N=(0,t.useLocalState)(f,"descending",!1),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function L(T,E){return b(E)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(k),width:"100%",onSelected:function(){function L(T){return g(T)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"arrow-down":"arrow-up",height:"21px",tooltip:x?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function L(){return B(!x)}return L}()})})]})})},s=function(d,f){var l=(0,t.useBackend)(f),C=l.act,b=l.data,v=d.title,h=d.items,g=y(d,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},g,{children:h.map(function(N){return(0,e.createComponentVNode)(2,o.ImageButton,{bold:!0,asset:!0,color:"brown",imageSize:"64px",image:N.imageId,imageAsset:"mining_vendor64x64",content:N.name,children:(0,e.createComponentVNode)(2,o.ImageButton.Item,{bold:!0,horizontal:!0,width:"64px",fontSize:1,content:N.price,icon:"shopping-cart",iconSize:1,iconColor:!b.has_id||b.id.points"})}),!!O&&(0,e.createComponentVNode)(2,d,{mt:1.1,label:"ID tag",compactLabel:!0,wrapContent:R?(0,e.createComponentVNode)(2,s,{text:P,defaultText:"",color:"silver"}):(0,e.createComponentVNode)(2,o.Box,{as:"span",fontSize:"0.9rem",color:"red",italic:!0,nowrap:!0,children:"Not supported"})})]})})]})})})}return x}(),i=function(B,L){var T=B.iconName,E=B.machineName,w=B.noMachine,A=B.noMachineText,O=B.noMachineElem,M="Unknown machine",P=w?A:E||"Unknown machine",R=P===A,F=P===A||P===M;return w&&O?O:(0,e.createComponentVNode)(2,o.Flex,{mt:.1,mb:1.9,children:[!w&&(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,align:"center",children:(0,e.createComponentVNode)(2,o.Icon,{mr:1,size:1.1,name:T})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,wordWrap:"break-word",children:(0,e.createComponentVNode)(2,o.Box,{as:"span",wordWrap:"break-word",color:R?"label":"silver",fontSize:"1.1rem",bold:!0,italic:F,children:P})})]})},c=function(B,L){var T=B.text;return(0,e.createComponentVNode)(2,o.Box,{as:"span",fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:T})},s=function(B,L){var T=B.text,E=B.defaultText,w=V(B,S);return T?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"span",wordWrap:"break-word"},w,{children:T}))):(0,e.createComponentVNode)(2,c,{text:E})},u=function(B,L){var T=B.noConfirm,E=T===void 0?!1:T,w=V(B,y);return E?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button,Object.assign({},w))):(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button.Confirm,Object.assign({},w)))},d=function(B,L){var T=B.label,E=B.wrapContent,w=B.noWrapContent,A=B.compactLabel,O=A===void 0?!1:A,M=V(B,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Flex,Object.assign({my:.5,mr:"0.5%",spacing:1,align:"center"},M,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:O?0:1,shrink:0,textOverflow:"ellipsis",overflow:"hidden",basis:O?"auto":0,maxWidth:O?"none":20,color:"label",nowrap:!0,children:T}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,textAlign:"center",wordWrap:"break-word",children:E}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:.1}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,nowrap:!0,children:w})]})))},f=function(B,L){var T=(0,t.useBackend)(L),E=T.act,w=T.data;return(0,e.createComponentVNode)(2,o.Box,{mt:1.5,fontSize:"0.9rem",color:"silver",italic:!0,children:"No options"})},l=function(B,L){var T=(0,t.useBackend)(L),E=T.act,w=T.data;return(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.1rem",color:"red",bold:!0,italic:!0,children:"ACCESS DENIED"})},C=function(B,L){var T=(0,t.useBackend)(L),E=T.act,w=T.data,A=w.attachedTag;return(0,e.createComponentVNode)(2,d,{label:"ID tag",wrapContent:(0,e.createComponentVNode)(2,s,{text:A,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Set",icon:"wrench",onClick:function(){function O(){return E("set_tag")}return O}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Clear",icon:"times-circle",color:"red",disabled:!A,onClick:function(){function O(){return E("clear_tag")}return O}()})],4)})},b=function(B,L){var T=(0,t.useBackend)(L),E=T.act,w=T.data,A=w.frequency,O=w.minFrequency,M=w.maxFrequency,P=w.canReset;return(0,e.createComponentVNode)(2,d,{label:"Frequency",noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.1,stepPixelSize:10,minValue:O/10,maxValue:M/10,value:A/10,format:function(){function R(F){return(0,a.toFixed)(F,1)}return R}(),onChange:function(){function R(F,_){return E("set_frequency",{frequency:_*10})}return R}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",content:"",disabled:!P,tooltip:"Reset",onClick:function(){function R(){return E("reset_frequency")}return R}()})],4)})},v=function(B,L){var T=(0,t.useBackend)(L),E=T.act,w=T.data,A=w.attachedTags;return(0,e.createComponentVNode)(2,o.Section,{mt:1.7,ml:.5,mr:1,px:.5,title:"Linked tags",buttons:(0,e.createComponentVNode)(2,o.Button,{mr:1,pl:2.1,content:"Add tag",icon:"plus",iconRight:!0,onClick:function(){function O(){return E("add_tag")}return O}()}),children:A.map(function(O,M){return(0,e.createComponentVNode)(2,d,{mr:0,label:(0,e.createComponentVNode)(2,o.Icon,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{align:"center",spacing:1,children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:O})}),noWrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:(0,e.createComponentVNode)(2,o.Button,{icon:"minus",color:"red",onClick:function(){function P(){return E("remove_tag",{tag_index:M})}return P}()})})})},M)})})},h=function(B,L){var T=(0,t.useBackend)(L),E=T.act,w=T.data,A=w.bolts,O=w.pressureCheck,M=w.temperatureCheck,P=w.oxygenCheck,R=w.toxinsCheck,F=w.nitrogenCheck,_=w.carbonDioxideCheck,U=[{bitflag:1,checked:O,label:"Monitor pressure"},{bitflag:2,checked:M,label:"Monitor temperature"},{bitflag:4,checked:P,label:"Monitor oxygen concentration"},{bitflag:8,checked:R,label:"Monitor plasma concentration"},{bitflag:16,checked:F,label:"Monitor nitrogen concentration"},{bitflag:32,checked:_,label:"Monitor carbon dioxide concentration"}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,d,{label:"Floor bolts",noWrapContent:(0,e.createComponentVNode)(2,o.Button,{icon:A?"check":"times",selected:A,content:A?"YES":"NO",onClick:function(){function W(){return E("toggle_bolts")}return W}()})}),U.map(function(W){return(0,e.createComponentVNode)(2,d,{label:W.label,noWrapContent:(0,e.createComponentVNode)(2,o.Button.Checkbox,{checked:W.checked,onClick:function(){function $(){return E("toggle_flag",{bitflag:W.bitflag})}return $}()})},W.bitflag)})],0)},g=function(B,L){var T=(0,t.useBackend)(L),E=T.act,w=T.data,A=w.sensors;return(0,e.createComponentVNode)(2,o.Section,{mt:1.7,ml:.5,mr:1,px:.5,title:"Sensors",buttons:(0,e.createComponentVNode)(2,o.Button,{mr:1,pl:2.1,content:"Add sensor",icon:"plus",iconRight:!0,onClick:function(){function O(){return E("add_sensor")}return O}()}),children:[(0,e.createComponentVNode)(2,d,{mr:0,compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{width:1}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"ID tag"}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"Label"}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:11.3})]})}),Object.keys(A).map(function(O){return(0,e.createComponentVNode)(2,d,{mr:0,label:(0,e.createComponentVNode)(2,o.Icon,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{align:"center",spacing:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:O}),A[O]?(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:A[O]}):(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:""})]}),noWrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:[(0,e.createComponentVNode)(2,o.Button,{content:"Label",icon:"edit",onClick:function(){function M(){return E("change_label",{sensor_tag:O})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Label",icon:"times-circle",color:"orange",disabled:!A[O],onClick:function(){function M(){return E("clear_label",{sensor_tag:O})}return M}()})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:.5}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:(0,e.createComponentVNode)(2,o.Button,{px:1.2,icon:"minus",color:"red",onClick:function(){function M(){return E("del_sensor",{sensor_tag:O})}return M}()})})]})},O)})]})},N=function(B,L){var T=(0,t.useBackend)(L),E=T.act,w=T.data,A=w.inputTag,O=w.outputTag,M=w.bufferTag,P=w.bufferFitsInput,R=w.bufferFitsOutput,F=w.doNotLinkAndNotify;return(0,e.createFragment)([(0,e.createComponentVNode)(2,d,{label:"Input",labelWidth:6,wrapContent:(0,e.createComponentVNode)(2,s,{text:A,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,u,{noConfirm:F||!A,confirmContent:"This will change the intput device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:A&&M===A,disabled:!P,onClick:function(){function _(){return E("link_input")}return _}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"This will unlink the intput device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!A,onClick:function(){function _(){return E("unlink_input")}return _}()})],4)}),(0,e.createComponentVNode)(2,d,{label:"Output",labelWidth:6,wrapContent:(0,e.createComponentVNode)(2,s,{text:O,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,u,{noConfirm:F||!O,confirmContent:"This will change the output device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:O&&M===O,disabled:!R,onClick:function(){function _(){return E("link_output")}return _}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"This will unlink the output device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!O,onClick:function(){function _(){return E("unlink_output")}return _}()})],4)})],4)}},64713:function(I,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(76910),S=n(98595),y=n(3939),k=n(22091),V=["icon","iconSpin","selected","security","onClick","title","children"],p=["name"];function i(B,L){if(B==null)return{};var T={};for(var E in B)if({}.hasOwnProperty.call(B,E)){if(L.includes(E))continue;T[E]=B[E]}return T}var c=128,s=["security","engineering","medical","science","service","supply"],u={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},d=r.Newscaster=function(){function B(L,T){var E=(0,t.useBackend)(T),w=E.act,A=E.data,O=A.is_security,M=A.is_admin,P=A.is_silent,R=A.is_printing,F=A.screen,_=A.channels,U=A.channel_idx,W=U===void 0?-1:U,$=(0,t.useLocalState)(T,"menuOpen",!1),Y=$[0],ne=$[1],G=(0,t.useLocalState)(T,"viewingPhoto",""),le=G[0],de=G[1],oe=(0,t.useLocalState)(T,"censorMode",!1),re=oe[0],q=oe[1],ae;F===0||F===2?ae=(0,e.createComponentVNode)(2,l):F===1&&(ae=(0,e.createComponentVNode)(2,C));var J=_.reduce(function(X,Q){return X+Q.unread},0);return(0,e.createComponentVNode)(2,S.Window,{theme:O&&"security",width:800,height:600,children:[le?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,y.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Section,{fill:!0,className:(0,a.classes)(["Newscaster__menu",Y&&"Newscaster__menu--open"]),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,f,{icon:"bars",title:"Toggle Menu",onClick:function(){function X(){return ne(!Y)}return X}()}),(0,e.createComponentVNode)(2,f,{icon:"newspaper",title:"Headlines",selected:F===0,onClick:function(){function X(){return w("headlines")}return X}(),children:J>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:J>=10?"9+":J})}),(0,e.createComponentVNode)(2,f,{icon:"briefcase",title:"Job Openings",selected:F===1,onClick:function(){function X(){return w("jobs")}return X}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:_.map(function(X){return(0,e.createComponentVNode)(2,f,{icon:X.icon,title:X.name,selected:F===2&&_[W-1]===X,onClick:function(){function Q(){return w("channel",{uid:X.uid})}return Q}(),children:X.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:X.unread>=10?"9+":X.unread})},X)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!O||!!M)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function X(){return(0,y.modalOpen)(T,"wanted_notice")}return X}()}),(0,e.createComponentVNode)(2,f,{security:!0,icon:re?"minus-square":"minus-square-o",title:"Censor Mode: "+(re?"On":"Off"),mb:"0.5rem",onClick:function(){function X(){return q(!re)}return X}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,f,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function X(){return(0,y.modalOpen)(T,"create_story")}return X}()}),(0,e.createComponentVNode)(2,f,{icon:"plus-circle",title:"New Channel",onClick:function(){function X(){return(0,y.modalOpen)(T,"create_channel")}return X}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,f,{icon:R?"spinner":"print",iconSpin:R,title:R?"Printing...":"Print Newspaper",onClick:function(){function X(){return w("print_newspaper")}return X}()}),(0,e.createComponentVNode)(2,f,{icon:P?"volume-mute":"volume-up",title:"Mute: "+(P?"On":"Off"),onClick:function(){function X(){return w("toggle_mute")}return X}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,k.TemporaryNotice),ae]})]})})]})}return B}(),f=function(L,T){var E=(0,t.useBackend)(T),w=E.act,A=L.icon,O=A===void 0?"":A,M=L.iconSpin,P=L.selected,R=P===void 0?!1:P,F=L.security,_=F===void 0?!1:F,U=L.onClick,W=L.title,$=L.children,Y=i(L,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",R&&"Newscaster__menuButton--selected",_&&"Newscaster__menuButton--security"]),onClick:U},Y,{children:[R&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:O,spin:M,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:W}),$]})))},l=function(L,T){var E=(0,t.useBackend)(T),w=E.act,A=E.data,O=A.screen,M=A.is_admin,P=A.channel_idx,R=A.channel_can_manage,F=A.channels,_=A.stories,U=A.wanted,W=(0,t.useLocalState)(T,"fullStories",[]),$=W[0],Y=W[1],ne=(0,t.useLocalState)(T,"censorMode",!1),G=ne[0],le=ne[1],de=O===2&&P>-1?F[P-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!U&&(0,e.createComponentVNode)(2,b,{story:U,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:de?de.icon:"newspaper",mr:"0.5rem"}),de?de.name:"Headlines"],0),children:_.length>0?_.slice().reverse().map(function(oe){return!$.includes(oe.uid)&&oe.body.length+3>c?Object.assign({},oe,{body_short:oe.body.substr(0,c-4)+"..."}):oe}).map(function(oe,re){return(0,e.createComponentVNode)(2,b,{story:oe},re)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!de&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([G&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!de.admin&&!M,selected:de.censored,icon:de.censored?"comment-slash":"comment",content:de.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function oe(){return w("censor_channel",{uid:de.uid})}return oe}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!R,icon:"cog",content:"Manage",onClick:function(){function oe(){return(0,y.modalOpen)(T,"manage_channel",{uid:de.uid})}return oe}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:de.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:de.author||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:de.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),_.reduce(function(oe,re){return oe+re.view_count},0).toLocaleString()]})]})})]})},C=function(L,T){var E=(0,t.useBackend)(T),w=E.act,A=E.data,O=A.jobs,M=A.wanted,P=Object.entries(O).reduce(function(R,F){var _=F[0],U=F[1];return R+U.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!M&&(0,e.createComponentVNode)(2,b,{story:M,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:P>0?s.map(function(R){return Object.assign({},u[R],{id:R,jobs:O[R]})}).filter(function(R){return!!R&&R.jobs.length>0}).map(function(R){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+R.id]),title:R.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:R.fluff_text}),children:R.jobs.map(function(F){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!F.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",F.title]},F.title)})},R.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the"," ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},b=function(L,T){var E=(0,t.useBackend)(T),w=E.act,A=E.data,O=L.story,M=L.wanted,P=M===void 0?!1:M,R=(0,t.useLocalState)(T,"fullStories",[]),F=R[0],_=R[1],U=(0,t.useLocalState)(T,"censorMode",!1),W=U[0],$=U[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",P&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([P&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),O.censor_flags&2&&"[REDACTED]"||O.title||"News from "+O.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!P&&W&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:O.censor_flags&2,icon:O.censor_flags&2?"comment-slash":"comment",content:O.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function Y(){return w("censor_story",{uid:O.uid})}return Y}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.author," |\xA0",!P&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),O.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,m.timeAgo)(O.publish_time,A.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:O.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!O.has_photo&&(0,e.createComponentVNode)(2,v,{name:"story_photo_"+O.uid+".png",float:"right",ml:"0.5rem"}),(O.body_short||O.body).split("\n").map(function(Y,ne){return(0,e.createComponentVNode)(2,o.Box,{children:Y||(0,e.createVNode)(1,"br")},ne)}),O.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function Y(){return _([].concat(F,[O.uid]))}return Y}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},v=function(L,T){var E=L.name,w=i(L,p),A=(0,t.useLocalState)(T,"viewingPhoto",""),O=A[0],M=A[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:E,onClick:function(){function P(){return M(E)}return P}()},w)))},h=function(L,T){var E=(0,t.useLocalState)(T,"viewingPhoto",""),w=E[0],A=E[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:w}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function O(){return A("")}return O}()})]})},g=function(L,T){var E=(0,t.useBackend)(T),w=E.act,A=E.data,O=!!L.args.uid&&A.channels.filter(function(te){return te.uid===L.args.uid}).pop();if(L.id==="manage_channel"&&!O){(0,y.modalClose)(T);return}var M=L.id==="manage_channel",P=!!L.args.is_admin,R=L.args.scanned_user,F=(0,t.useLocalState)(T,"author",(O==null?void 0:O.author)||R||"Unknown"),_=F[0],U=F[1],W=(0,t.useLocalState)(T,"name",(O==null?void 0:O.name)||""),$=W[0],Y=W[1],ne=(0,t.useLocalState)(T,"description",(O==null?void 0:O.description)||""),G=ne[0],le=ne[1],de=(0,t.useLocalState)(T,"icon",(O==null?void 0:O.icon)||"newspaper"),oe=de[0],re=de[1],q=(0,t.useLocalState)(T,"isPublic",M?!!(O!=null&&O.public):!1),ae=q[0],J=q[1],X=(0,t.useLocalState)(T,"adminLocked",(O==null?void 0:O.admin)===1||!1),Q=X[0],Z=X[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:M?"Manage "+O.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!P,width:"100%",value:_,onInput:function(){function te(fe,ye){return U(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:$,onInput:function(){function te(fe,ye){return Y(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:G,onInput:function(){function te(fe,ye){return le(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!P,value:oe,width:"35%",mr:"0.5rem",onInput:function(){function te(fe,ye){return re(ye)}return te}()}),(0,e.createComponentVNode)(2,o.Icon,{name:oe,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:ae,icon:ae?"toggle-on":"toggle-off",content:ae?"Yes":"No",onClick:function(){function te(){return J(!ae)}return te}()})}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:Q,icon:Q?"lock":"lock-open",content:Q?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function te(){return Z(!Q)}return te}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:_.trim().length===0||$.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function te(){(0,y.modalAnswer)(T,L.id,"",{author:_,name:$.substr(0,49),description:G.substr(0,128),icon:oe,public:ae?1:0,admin_locked:Q?1:0})}return te}()})]})},N=function(L,T){var E=(0,t.useBackend)(T),w=E.act,A=E.data,O=A.photo,M=A.channels,P=A.channel_idx,R=P===void 0?-1:P,F=!!L.args.is_admin,_=L.args.scanned_user,U=M.slice().sort(function(te,fe){if(R<0)return 0;var ye=M[R-1];if(ye.uid===te.uid)return-1;if(ye.uid===fe.uid)return 1}).filter(function(te){return F||!te.frozen&&(te.author===_||!!te.public)}),W=(0,t.useLocalState)(T,"author",_||"Unknown"),$=W[0],Y=W[1],ne=(0,t.useLocalState)(T,"channel",U.length>0?U[0].name:""),G=ne[0],le=ne[1],de=(0,t.useLocalState)(T,"title",""),oe=de[0],re=de[1],q=(0,t.useLocalState)(T,"body",""),ae=q[0],J=q[1],X=(0,t.useLocalState)(T,"adminLocked",!1),Q=X[0],Z=X[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!F,width:"100%",value:$,onInput:function(){function te(fe,ye){return Y(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:G,options:U.map(function(te){return te.name}),mb:"0",width:"100%",onSelected:function(){function te(fe){return le(fe)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:oe,onInput:function(){function te(fe,ye){return re(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:ae,onInput:function(){function te(fe,ye){return J(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function te(){return w(O?"eject_photo":"attach_photo")}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:oe,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!O&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+O.uid+".png",float:"right"}),ae.split("\n").map(function(te,fe){return(0,e.createComponentVNode)(2,o.Box,{children:te||(0,e.createVNode)(1,"br")},fe)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),F&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:Q,icon:Q?"lock":"lock-open",content:Q?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function te(){return Z(!Q)}return te}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:$.trim().length===0||G.trim().length===0||oe.trim().length===0||ae.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function te(){(0,y.modalAnswer)(T,"create_story","",{author:$,channel:G,title:oe.substr(0,127),body:ae.substr(0,1023),admin_locked:Q?1:0})}return te}()})]})},x=function(L,T){var E=(0,t.useBackend)(T),w=E.act,A=E.data,O=A.photo,M=A.wanted,P=!!L.args.is_admin,R=L.args.scanned_user,F=(0,t.useLocalState)(T,"author",(M==null?void 0:M.author)||R||"Unknown"),_=F[0],U=F[1],W=(0,t.useLocalState)(T,"name",(M==null?void 0:M.title.substr(8))||""),$=W[0],Y=W[1],ne=(0,t.useLocalState)(T,"description",(M==null?void 0:M.body)||""),G=ne[0],le=ne[1],de=(0,t.useLocalState)(T,"adminLocked",(M==null?void 0:M.admin_locked)===1||!1),oe=de[0],re=de[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!P,width:"100%",value:_,onInput:function(){function q(ae,J){return U(J)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:$,maxLength:"128",onInput:function(){function q(ae,J){return Y(J)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:G,maxLength:"512",rows:"4",onInput:function(){function q(ae,J){return le(J)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function q(){return w(O?"eject_photo":"attach_photo")}return q}()}),!!O&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+O.uid+".png",float:"right"})]}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return re(!oe)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!M,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function q(){w("clear_wanted_notice"),(0,y.modalClose)(T)}return q}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:_.trim().length===0||$.trim().length===0||G.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,y.modalAnswer)(T,L.id,"",{author:_,name:$.substr(0,127),description:G.substr(0,511),admin_locked:oe?1:0})}return q}()})]})};(0,y.modalRegisterBodyOverride)("create_channel",g),(0,y.modalRegisterBodyOverride)("manage_channel",g),(0,y.modalRegisterBodyOverride)("create_story",N),(0,y.modalRegisterBodyOverride)("wanted_notice",x)},97351:function(I,r,n){"use strict";r.__esModule=!0,r.NinjaBloodScan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(39473),m=n(98595),S=r.NinjaBloodScan=function(){function V(p,i){var c=(0,a.useBackend)(i),s=c.act,u=c.data;return(0,e.createComponentVNode)(2,m.Window,{width:500,height:400,theme:"spider_clan",children:(0,e.createComponentVNode)(2,m.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,k)]})})}return V}(),y=function(p,i){var c=(0,a.useBackend)(i),s=c.act,u=c.data,d=u.vialIcons,f=u.noVialIcon,l=u.bloodOwnerNames,C=u.bloodOwnerSpecies,b=u.bloodOwnerTypes,v=u.blockButtons,h=u.scanStates,g={blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"},N=["NoticeBox_red","NoticeBox","NoticeBox_blue"],x=[1,2,3];return(0,e.createComponentVNode)(2,t.Flex,{direction:"column",shrink:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0431\u0440\u0430\u0437\u0446\u044B",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u0442\u0440\u0438 \u043E\u0431\u0440\u0430\u0437\u0446\u0430 \u043A\u0440\u043E\u0432\u0438. \u041C\u0430\u0448\u0438\u043D\u0430 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0430 \u043D\u0430 \u0440\u0430\u0431\u043E\u0442\u0443 \u0441 \u043A\u0440\u043E\u0432\u044C\u044E \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u0438 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u043C\u0438 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u043E\u0441\u0442\u0430\u0432\u0438\u043B \u0432\u0430\u043C \u043A\u043B\u0430\u043D. \u0420\u0435\u0430\u0433\u0435\u043D\u0442\u044B \u0438\u043C \u043D\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0435 \u043D\u0435 \u043F\u0440\u0438\u043C\u0443\u0442\u0441\u044F \u0438\u043B\u0438 \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u043F\u0435\u0448\u043D\u044B\u043C",tooltipPosition:"bottom-start"}),children:[(0,e.createComponentVNode)(2,t.Flex,{direction:"row",shrink:1,alignContent:"center",children:x.map(function(B,L){return(0,e.createComponentVNode)(2,o.FlexItem,{direction:"column",width:"33.3%",ml:L?2:0,children:[(0,e.createComponentVNode)(2,t.Section,{title:l[L]?"\u041A\u0440\u043E\u0432\u044C":"\u041D\u0435\u0442 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u0430",style:{"text-align":"left",background:"rgba(53, 94, 163, 0.5)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:N[h[L]],success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{className:v?g.disabled:g.blue,height:"100%",width:"100%",disabled:v,onClick:function(){function T(){return s("vial_out",{button_num:L+1})}return T}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+(d[L]||f),style:{"margin-left":"3px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:l[L]||" - ",content:"\u0420\u0430\u0441\u0430: "+(C[L]||" - ")+"\n"+("\u0422\u0438\u043F \u043A\u0440\u043E\u0432\u0438: "+(b[L]||" - ")),position:"bottom"})]})})]},L)})}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{className:v===0?"":"Button_disabled",content:"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",width:"250px",textAlign:"center",disabled:v,tooltip:"\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442 \u043A\u0440\u043E\u0432\u044C \u0438 \u043F\u0435\u0440\u0435\u0441\u044B\u043B\u0430\u0435\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043D\u0443\u044E \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043A\u043B\u0430\u043D\u0443.",tooltipPosition:"bottom",onClick:function(){function B(){return s("scan_blood")}return B}()})})]})})},k=function(p,i){var c=(0,a.useBackend)(i),s=c.data,u=s.progressBar;return(0,e.createComponentVNode)(2,t.Section,{stretchContents:!0,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"green",value:u,minValue:0,maxValue:100,children:(0,e.createVNode)(1,"center",null,(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_green",mt:1,children:u?"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 "+(u+"%"):"\u0420\u0435\u0436\u0438\u043C \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F"}),2)})})}},32989:function(I,r,n){"use strict";r.__esModule=!0,r.NinjaMindScan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.NinjaMindScan=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,theme:"spider_clan",children:(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,S)})})}return y}(),S=function(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.occupantIcon,u=c.occupant_name,d=c.occupant_health,f=c.scanned_occupants,l=u==="none"?1:0;return(0,e.createComponentVNode)(2,t.Flex,{direction:"column",shrink:1,alignContent:"left",children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0432\u043D\u0435\u0448\u043D\u0435\u0433\u043E \u0432\u0438\u0434\u0430 \u0438 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0432 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435.",tooltipPosition:"left"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",shrink:1,alignContent:"left",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{shrink:1,alignContent:"left",children:(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,width:"90px",align:"left",children:(0,e.createComponentVNode)(2,t.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},align:"left",children:(0,e.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+s,style:{"margin-left":"-28px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,alignContent:"right",children:[(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_green",success:0,danger:0,align:"left",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0418\u043C\u044F",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435",children:d})]})}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",mt:2.5,success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:l===0?"":"Button_disabled",content:"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",width:"250px",textAlign:"center",disabled:l,tooltip:"\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0438 \u043F\u044B\u0442\u0430\u0435\u0442\u0441\u044F \u0434\u043E\u0431\u044B\u0442\u044C \u0438\u0437 \u0435\u0433\u043E \u0440\u0430\u0437\u0443\u043C\u0430 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u0443\u044E \u043A\u043B\u0430\u043D\u0443 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E.",tooltipPosition:"bottom-start",onClick:function(){function C(){return i("scan_occupant")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{className:l===0?"":"Button_disabled",content:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E",width:"250px",textAlign:"center",disabled:l,tooltip:"\u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E, \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0438\u0437 \u043A\u0430\u043F\u0441\u0443\u043B\u044B",tooltipPosition:"bottom-start",onClick:function(){function C(){return i("go_out")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{className:l===0?"":"Button_disabled",content:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",width:"250px",textAlign:"center",disabled:l,tooltip:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u043E\u0431\u0440\u0430\u0442\u043D\u043E \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442 \u0441 \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u043E\u043D \u0431\u044B\u043B \u043F\u043E\u0445\u0438\u0449\u0435\u043D. \u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C \u043A\u0430\u043A \u0441\u043B\u0435\u0434\u0443\u0435\u0442 \u0435\u0433\u043E \u0437\u0430\u043F\u0443\u0433\u0430\u0442\u044C \u043F\u0435\u0440\u0435\u0434 \u044D\u0442\u0438\u043C, \u0447\u0442\u043E\u0431\u044B \u043E\u043D \u043D\u0435 \u0440\u0430\u0437\u0431\u043E\u043B\u0442\u0430\u043B \u043E \u0432\u0430\u0441.",tooltipPosition:"bottom-start",onClick:function(){function C(){return i("teleport_out")}return C}()})]})]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043F\u0438\u0441\u043E\u043A \u0443\u0436\u0435 \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0432\u0430\u043C\u0438 \u043B\u044E\u0434\u0435\u0439",align:"center",backgroundColor:"rgba(0, 0, 0, 0.4)",children:(0,e.createComponentVNode)(2,t.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:f.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Box,{children:C.scanned_occupant})})},C.scanned_occupant)})})})})]})}},41166:function(I,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.NuclearBomb=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data;return i.extended?(0,e.createComponentVNode)(2,o.Window,{width:450,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authdisk?"eject":"id-card",selected:i.authdisk,content:i.diskname?i.diskname:"-----",tooltip:i.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return p("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!i.authdisk,selected:i.authcode,content:i.codemsg,onClick:function(){function c(){return p("code")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.anchored?"check":"times",selected:i.anchored,disabled:!i.authfull,content:i.anchored?"YES":"NO",onClick:function(){function c(){return p("toggle_anchor")}return c}()})}),i.authfull&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:i.time,disabled:!i.authfull,tooltip:"Set Timer",onClick:function(){function c(){return p("set_time")}return c}()})})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",color:i.timer?"red":"",children:i.time+"s"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.safety?"check":"times",selected:i.safety,disabled:!i.authfull,content:i.safety?"ON":"OFF",tooltip:i.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return p("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(i.timer,"bomb"),disabled:i.safety||!i.authfull,color:"red",content:i.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return p("toggle_armed")}return c}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:450,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function c(){return p("deploy")}return c}()})})})})}return S}()},52416:function(I,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(92986),m=n(72253),S=n(36036),y=n(98595),k=r.NumberInputModal=function(){function p(i,c){var s=(0,m.useBackend)(c),u=s.act,d=s.data,f=d.init_value,l=d.large_buttons,C=d.message,b=C===void 0?"":C,v=d.timeout,h=d.title,g=(0,m.useLocalState)(c,"input",f),N=g[0],x=g[1],B=function(){function E(w){w!==N&&x(w)}return E}(),L=function(){function E(w){w!==N&&x(w)}return E}(),T=140+Math.max(Math.ceil(b.length/3),b.length>0&&l?5:0);return(0,e.createComponentVNode)(2,y.Window,{title:h,width:270,height:T,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function E(w){var A=window.event?w.which:w.keyCode;A===o.KEY_ENTER&&u("submit",{entry:N}),A===o.KEY_ESCAPE&&u("cancel")}return E}(),children:(0,e.createComponentVNode)(2,S.Section,{fill:!0,children:(0,e.createComponentVNode)(2,S.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,S.Box,{color:"label",children:b})}),(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,V,{input:N,onClick:L,onChange:B})}),(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:N})})]})})})]})}return p}(),V=function(i,c){var s=(0,m.useBackend)(c),u=s.act,d=s.data,f=d.min_value,l=d.max_value,C=d.init_value,b=d.round_value,v=i.input,h=i.onClick,g=i.onChange,N=Math.round(v!==f?Math.max(v/2,f):l/2),x=v===f&&f>0||v===1;return(0,e.createComponentVNode)(2,S.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,S.Button,{disabled:v===f,icon:"angle-double-left",onClick:function(){function B(){return h(f)}return B}(),tooltip:v===f?"Min":"Min ("+f+")"})}),(0,e.createComponentVNode)(2,S.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,S.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!b,minValue:f,maxValue:l,onChange:function(){function B(L,T){return g(T)}return B}(),onEnter:function(){function B(L,T){return u("submit",{entry:T})}return B}(),value:v})}),(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,S.Button,{disabled:v===l,icon:"angle-double-right",onClick:function(){function B(){return h(l)}return B}(),tooltip:v===l?"Max":"Max ("+l+")"})}),(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,S.Button,{disabled:x,icon:"divide",onClick:function(){function B(){return h(N)}return B}(),tooltip:x?"Split":"Split ("+N+")"})}),(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,S.Button,{disabled:v===C,icon:"redo",onClick:function(){function B(){return h(C)}return B}(),tooltip:C?"Reset ("+C+")":"Reset"})})]})}},1218:function(I,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(98595),m=n(36036),S=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],k={average:[.25,.5],bad:[.5,1/0]},V=["bad","average","average","good","average","average","bad"],p=r.OperatingComputer=function(){function u(d,f){var l=(0,t.useBackend)(f),C=l.act,b=l.data,v=b.hasOccupant,h=b.choice,g;return h?g=(0,e.createComponentVNode)(2,s):g=v?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:!h,icon:"user",onClick:function(){function N(){return C("choiceOff")}return N}(),children:"Patient"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function N(){return C("choiceOn")}return N}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,children:g})})]})})})}return u}(),i=function(d,f){var l=(0,t.useBackend)(f),C=l.data,b=C.occupant;return(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Name",children:b.name}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Status",color:S[b.stat][0],children:S[b.stat][1]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:b.maxHealth,value:b.health/b.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),y.map(function(v,h){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:v[0]+" Damage",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:"100",value:b[v[1]]/100,ranges:k,children:(0,a.round)(b[v[1]])},h)},h)}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:b.maxTemp,value:b.bodyTemperature/b.maxTemp,color:V[b.temperatureSuitability+3],children:[(0,a.round)(b.btCelsius),"\xB0C, ",(0,a.round)(b.btFaren),"\xB0F"]})}),!!b.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:b.bloodMax,value:b.bloodLevel/b.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[b.bloodPercent,"%, ",b.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Pulse",children:[b.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:"Current Procedures",level:"2",children:b.inSurgery?b.surgeries.map(function(v){var h=v.bodypartName,g=v.surgeryName,N=v.stepName;return(0,e.createComponentVNode)(2,m.Section,{title:h,level:"4",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Procedure",children:g}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Next Step",children:N})]})},h)}):(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},s=function(d,f){var l=(0,t.useBackend)(f),C=l.act,b=l.data,v=b.verbose,h=b.health,g=b.healthAlarm,N=b.oxy,x=b.oxyAlarm,B=b.crit;return(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,m.Button,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"On":"Off",onClick:function(){function L(){return C(v?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,m.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function L(){return C(h?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,m.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:g,stepPixelSize:5,ml:"0",onChange:function(){function L(T,E){return C("health_adj",{new:E})}return L}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,m.Button,{selected:N,icon:N?"toggle-on":"toggle-off",content:N?"On":"Off",onClick:function(){function L(){return C(N?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,m.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:x,stepPixelSize:5,ml:"0",onChange:function(){function L(T,E){return C("oxy_adj",{new:E})}return L}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,m.Button,{selected:B,icon:B?"toggle-on":"toggle-off",content:B?"On":"Off",onClick:function(){function L(){return C(B?"critOff":"critOn")}return L}()})})]})}},46892:function(I,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(98595);function S(f,l){var C=typeof Symbol!="undefined"&&f[Symbol.iterator]||f["@@iterator"];if(C)return(C=C.call(f)).next.bind(C);if(Array.isArray(f)||(C=y(f))||l&&f&&typeof f.length=="number"){C&&(f=C);var b=0;return function(){return b>=f.length?{done:!0}:{done:!1,value:f[b++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(f,l){if(f){if(typeof f=="string")return k(f,l);var C={}.toString.call(f).slice(8,-1);return C==="Object"&&f.constructor&&(C=f.constructor.name),C==="Map"||C==="Set"?Array.from(f):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?k(f,l):void 0}}function k(f,l){(l==null||l>f.length)&&(l=f.length);for(var C=0,b=Array(l);CC},c=function(l,C){var b=l.name,v=C.name;if(!b||!v)return 0;var h=b.match(V),g=v.match(V);if(h&&g&&b.replace(V,"")===v.replace(V,"")){var N=parseInt(h[1],10),x=parseInt(g[1],10);return N-x}return i(b,v)},s=function(l,C){var b=(0,t.useBackend)(C),v=b.act,h=l.searchText,g=l.source,N=l.title,x=g.filter(p(h));return x.sort(c),g.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:N+" - ("+g.length+")",children:x.map(function(B){return(0,e.createComponentVNode)(2,o.Button,{content:B.name,onClick:function(){function L(){return v("orbit",{ref:B.ref})}return L}()},B.name)})})},u=function(l,C){var b=(0,t.useBackend)(C),v=b.act,h=l.color,g=l.thing;return(0,e.createComponentVNode)(2,o.Button,{color:h,onClick:function(){function N(){return v("orbit",{ref:g.ref})}return N}(),children:g.name})},d=r.Orbit=function(){function f(l,C){for(var b=(0,t.useBackend)(C),v=b.act,h=b.data,g=h.alive,N=h.antagonists,x=h.highlights,B=h.auto_observe,L=h.dead,T=h.ghosts,E=h.misc,w=h.npcs,A=(0,t.useLocalState)(C,"searchText",""),O=A[0],M=A[1],P={},R=S(N),F;!(F=R()).done;){var _=F.value;P[_.antag]===void 0&&(P[_.antag]=[]),P[_.antag].push(_)}var U=Object.entries(P);U.sort(function($,Y){return i($[0],Y[0])});var W=function(){function $(Y){for(var ne=0,G=[U.map(function(oe){var re=oe[0],q=oe[1];return q}),x,g,T,L,w,E];ne0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:U.map(function($){var Y=$[0],ne=$[1];return(0,e.createComponentVNode)(2,o.Section,{title:Y,level:2,children:ne.filter(p(O)).sort(c).map(function(G){return(0,e.createComponentVNode)(2,u,{color:"bad",thing:G},G.name)})},Y)})}),x.length>0&&(0,e.createComponentVNode)(2,s,{title:"Highlights",source:x,searchText:O,color:"teal"}),(0,e.createComponentVNode)(2,o.Section,{title:"Alive - ("+g.length+")",children:g.filter(p(O)).sort(c).map(function($){return(0,e.createComponentVNode)(2,u,{color:"good",thing:$},$.name)})}),(0,e.createComponentVNode)(2,o.Section,{title:"Ghosts - ("+T.length+")",children:T.filter(p(O)).sort(c).map(function($){return(0,e.createComponentVNode)(2,u,{color:"grey",thing:$},$.name)})}),(0,e.createComponentVNode)(2,s,{title:"Dead",source:L,searchText:O}),(0,e.createComponentVNode)(2,s,{title:"NPCs",source:w,searchText:O}),(0,e.createComponentVNode)(2,s,{title:"Misc",source:E,searchText:O})]})})}return f}()},15421:function(I,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(98595),S=n(9394);function y(l){if(l==null)throw new TypeError("Cannot destructure "+l)}var k=(0,S.createLogger)("OreRedemption"),V=function(C){return C.toLocaleString("en-US")+" pts"},p=r.OreRedemption=function(){function l(C,b){return(0,e.createComponentVNode)(2,m.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,s)]})})})}return l}(),i=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.id,x=g.points,B=g.disk,L=Object.assign({},(y(C),C));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID card",children:N?(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:N.name,tooltip:"Ejects the ID card.",onClick:function(){function T(){return h("eject_id")}return T}(),style:{"white-space":"pre-wrap"}}):(0,e.createComponentVNode)(2,o.Button,{icon:"sign-in-alt",content:"Insert",tooltip:"Hold the ID card in your hand to insert.",onClick:function(){function T(){return h("insert_id")}return T}()})}),N&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:V(N.points)})}),N&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:V(N.total_points)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:x>0?"good":"grey",bold:x>0&&"good",children:V(x)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!N,icon:"hand-holding-usd",content:"Claim",onClick:function(){function T(){return h("claim")}return T}()})})]}),(0,e.createComponentVNode)(2,o.Divider),B?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:B.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return h("eject_disk")}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:B.design&&(B.compatible?"good":"bad"),children:B.design||"N/A"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!B.design||!B.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return h("download")}return T}()})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.sheets,x=Object.assign({},(y(C),C));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},x,{children:[(0,e.createComponentVNode)(2,u,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),N.map(function(B){return(0,e.createComponentVNode)(2,d,{ore:B},B.id)})]})))})},s=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.alloys,x=Object.assign({},(y(C),C));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},x,{children:[(0,e.createComponentVNode)(2,u,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),N.map(function(B){return(0,e.createComponentVNode)(2,f,{ore:B},B.id)})]})))})},u=function(C,b){var v;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:C.title}),(v=C.columns)==null?void 0:v.map(function(h){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:h[1],textAlign:"center",color:"label",bold:!0,children:h[0]},h)})]})})},d=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=C.ore;if(!(g.value&&g.amount<=0&&!(["metal","glass"].indexOf(g.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",g.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:g.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:g.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function N(x,B){return h(g.value?"sheet":"alloy",{id:g.id,amount:B})}return N}()})})]})})},f=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=C.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",g.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:g.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:g.amount>=1?"good":"gray",align:"center",children:g.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function N(x,B){return h(g.value?"sheet":"alloy",{id:g.id,amount:B})}return N}()})})]})})}},30373:function(I,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(71253),S=n(70752),y=function(p){var i;try{i=S("./"+p+".js")}catch(s){if(s.code==="MODULE_NOT_FOUND")return(0,m.routingError)("notFound",p);throw s}var c=i[p];return c||(0,m.routingError)("missingExport",p)},k=r.PAI=function(){function V(p,i){var c=(0,a.useBackend)(i),s=c.act,u=c.data,d=u.app_template,f=u.app_icon,l=u.app_title,C=y(d);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:f,mr:1}),l,d!=="pai_main_menu"&&(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Home",icon:"arrow-up",onClick:function(){function b(){return s("MASTER_back")}return b}()})]}),p:1,children:(0,e.createComponentVNode)(2,C)})})})}return V}()},85175:function(I,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(71253),S=n(59395),y=function(c){var s;try{s=S("./"+c+".js")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,m.routingError)("notFound",c);throw d}var u=s[c];return u||(0,m.routingError)("missingExport",c)},k=r.PDA=function(){function i(c,s){var u=(0,a.useBackend)(s),d=u.act,f=u.data,l=f.app,C=f.owner;if(!C)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var b=y(l.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,V)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:l.icon,mr:1}),l.name]}),children:(0,e.createComponentVNode)(2,b)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,p)})]})})})}return i}(),V=function(c,s){var u=(0,a.useBackend)(s),d=u.act,f=u.data,l=f.idInserted,C=f.idLink,b=f.stationTime,v=f.cartridge_name,h=f.request_cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function g(){return d("Authenticate")}return g}(),content:l?C:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function g(){return d("Eject")}return g}(),content:v?["Eject "+v]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function g(){return d("Eject_Request")}return g}(),content:h?["Eject "+h]:"No Request Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:b})]})},p=function(c,s){var u=(0,a.useBackend)(s),d=u.act,f=u.data,l=f.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!l.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:l.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function C(){return d("Back")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:l.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:l.is_home?"disabled":"white",icon:"home",onClick:function(){function C(){d("Home")}return C}()})})]})})}},38280:function(I,r,n){"use strict";r.__esModule=!0,r.PDAPainter=r.PDAColorRow=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),m=r.PDAPainter=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.statusLabel,u=c.pdaTypes,d=c.hasPDA,f=c.pdaIcon,l=c.pdaIconState,C=c.pdaOwnerName,b=c.pdaJobName;return(0,e.createComponentVNode)(2,t.Window,{width:545,height:350,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{spacing:1,direction:"row",height:"100%",flex:"1",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{width:24,shrink:0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u0431\u0449\u0435\u0435",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:d?"eject":"exclamation-triangle",selected:d,content:d?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C":"-----",tooltip:d?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C PDA":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C PDA",tooltipPosition:"left",onClick:function(){function v(){return i(d?"eject_pda":"insert_pda")}return v}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0418\u043C\u044F",children:C||"\u041D/\u0414"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C",children:b||"\u041D/\u0414"})]})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",direction:"column",flex:"1",children:(0,e.createComponentVNode)(2,o.Flex.Item,{children:[(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.DmIcon,{height:"160px",icon:f,icon_state:l,style:{"-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"},align:"middle"})}),(0,e.createComponentVNode)(2,o.LabeledList,{m:"5px",children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",children:s})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{m:"5px",fluid:!0,disabled:!d,content:"\u0421\u0442\u0435\u0440\u0435\u0442\u044C PDA",confirmContent:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C?",textAlign:"left",color:"red",tooltip:"C\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0442\u0435\u043B\u0435\u0444\u043E\u043D \u043D\u0430 \u0437\u0430\u0432\u043E\u0434\u0441\u043A\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltipPosition:"top",onClick:function(){function v(){return i("erase_pda")}return v}()})]})})})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:27,children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",flex:"1",children:(0,e.createComponentVNode)(2,o.Section,{title:"\u0426\u0432\u0435\u0442 PDA",flexGrow:"1",scrollable:!0,fill:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:Object.keys(u).map(function(v){return(0,e.createComponentVNode)(2,S,{selectedPda:v,selectedPdaIcon:u[v][0]},v)})})})})})]})})})}return y}(),S=r.PDAColorRow=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.hasPDA,u=c.pdaIcon,d=k.selectedPda;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.DmIcon,{icon:u,icon_state:d,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,disabled:!s,icon:d,content:d,confirmContent:"\u041F\u043E\u043A\u0440\u0430\u0441\u0438\u0442\u044C?",textAlign:"left",onClick:function(){function f(){return i("choose_pda",{selectedPda:d})}return f}()})})]})}return y}()},68654:function(I,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(49968),S=r.Pacman=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.broken,u=c.anchored,d=c.active,f=c.fuel_type,l=c.fuel_usage,C=c.fuel_stored,b=c.fuel_cap,v=c.is_ai,h=c.tmp_current,g=c.tmp_max,N=c.tmp_overheat,x=c.output_max,B=c.power_gen,L=c.output_set,T=c.has_fuel,E=C/b,w=h/g,A=L*B,O=Math.round(C/l),M=Math.round(O/60),P=O>120?M+" minutes":O+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(s||!u)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!s&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!s&&!u&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!s&&!!u&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!T,selected:d,onClick:function(){function R(){return i("toggle_power")}return R}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:L,minValue:1,maxValue:x,step:1,className:"mt-1",onDrag:function(){function R(F,_){return i("change_power",{change_power:_})}return R}()}),"(",(0,m.formatPower)(A),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[h," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[N>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),N>20&&N<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),N>1&&N<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),N===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:d||v||!T,onClick:function(){function R(){return i("eject_fuel")}return R}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:f}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(C/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[l/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!T&&(l?P:"N/A"),!T&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return y}()},33388:function(I,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.PersonalCrafting=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,u=s.busy,d=s.category,f=s.display_craftable_only,l=s.display_compact,C=s.prev_cat,b=s.next_cat,v=s.subcategory,h=s.prev_subcat,g=s.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:d,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:f?"check-square-o":"square-o",selected:f,onClick:function(){function N(){return c("toggle_recipes")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:l?"check-square-o":"square-o",selected:l,onClick:function(){function N(){return c("toggle_compact")}return N}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"arrow-left",onClick:function(){function N(){return c("backwardCat")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:b,icon:"arrow-right",onClick:function(){function N(){return c("forwardCat")}return N}()})]}),v&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function N(){return c("backwardSubCat")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function N(){return c("forwardSubCat")}return N}()})]}),l?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)]})]})})}return k}(),S=function(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,u=s.display_craftable_only,d=s.can_craft,f=s.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function C(){return c("make",{make:l.ref})}return C}()}),l.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:l.req_text,content:"Requirements",color:"transparent"}),l.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.tool_text,content:"Tools",color:"transparent"})]},l.name)}),!u&&f.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),l.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:l.req_text,content:"Requirements",color:"transparent"}),l.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.tool_text,content:"Tools",color:"transparent"})]},l.name)})]})})},y=function(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,u=s.display_craftable_only,d=s.can_craft,f=s.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[d.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function C(){return c("make",{make:l.ref})}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[l.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:l.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:l.req_text}),l.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:l.tool_text})]})},l.name)}),!u&&f.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[l.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:l.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:l.req_text}),l.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:l.tool_text})]})},l.name)})]})}},56150:function(I,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(88510),S=n(64795),y=n(25328);function k(s,u){var d=typeof Symbol!="undefined"&&s[Symbol.iterator]||s["@@iterator"];if(d)return(d=d.call(s)).next.bind(d);if(Array.isArray(s)||(d=V(s))||u&&s&&typeof s.length=="number"){d&&(s=d);var f=0;return function(){return f>=s.length?{done:!0}:{done:!1,value:s[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.")}function V(s,u){if(s){if(typeof s=="string")return p(s,u);var d={}.toString.call(s).slice(8,-1);return d==="Object"&&s.constructor&&(d=s.constructor.name),d==="Map"||d==="Set"?Array.from(s):d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?p(s,u):void 0}}function p(s,u){(u==null||u>s.length)&&(u=s.length);for(var d=0,f=Array(u);ds?this.substring(0,s)+"...":this};var i=function(u,d){d===void 0&&(d="");var f=(0,y.createSearch)(d,function(l){return l.altername});return(0,S.flow)([(0,m.filter)(function(l){return l==null?void 0:l.altername}),d&&(0,m.filter)(f),(0,m.sortBy)(function(l){return l.id})])(u)},c=r.Photocopier=function(){function s(u,d){for(var f=(0,a.useBackend)(d),l=f.act,C=f.data,b=C.copies,v=C.maxcopies,h=(0,a.useLocalState)(d,"searchText",""),g=h[0],N=h[1],x=i((0,m.sortBy)(function(P){return P.category})(C.forms||[]),g),B=[],L=k(x),T;!(T=L()).done;){var E=T.value;B.includes(E.category)||B.push(E.category)}var w=(0,a.useLocalState)(d,"number",0),A=w[0],O=w[1],M;return C.category===""?M=x:M=x.filter(function(P){return P.category===C.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:C.ui_theme,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"40%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mt:.3,color:"grey",children:"\u0417\u0430\u0440\u044F\u0434 \u0442\u043E\u043D\u0435\u0440\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,maxValue:30,value:C.toner})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mb:.3,color:"grey",children:"\u0424\u043E\u0440\u043C\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",textAlign:"center",bold:!0,children:C.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":C.form_id})]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!C.copyitem&&!C.mob,icon:C.copyitem||C.mob?"eject":"times",content:C.copyitem?C.copyitem:C.mob?"\u0416\u043E\u043F\u0430 "+C.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function P(){return l("removedocument")}return P}()})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!C.folder,icon:C.folder?"eject":"times",content:C.folder?C.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function P(){return l("removefolder")}return P}()})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"print",disabled:C.toner===0||C.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function P(){return l("print_form")}return P}()})}),!!C.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"image",disabled:C.toner<5,content:"\u0424\u043E\u0442\u043E",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0444\u043E\u0442\u043E \u0441 \u0411\u0430\u0437\u044B \u0414\u0430\u043D\u043D\u044B\u0445",onClick:function(){function P(){return l("ai_pic")}return P}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"copy",content:"\u041A\u043E\u043F\u0438\u044F",disabled:C.toner===0||!C.copyitem&&!C.mob,onClick:function(){function P(){return l("copy")}return P}()})}),!!C.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"i-cursor",content:"\u0422\u0435\u043A\u0441\u0442",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0439 \u0442\u0435\u043A\u0441\u0442",disabled:C.toner===0,onClick:function(){function P(){return l("ai_text")}return P}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:1.5,mt:1.2,width:"50%",color:"grey",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E:"}),(0,e.createComponentVNode)(2,t.Slider,{mt:.75,width:"50%",animated:!0,minValue:1,maxValue:v,value:b,stepPixelSize:10,onChange:function(){function P(R,F){return l("copies",{new:F})}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0411\u044E\u0440\u043E\u043A\u0440\u0430\u0442\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:-.5,icon:"chevron-right",color:"transparent",content:"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",selected:!C.category,onClick:function(){function P(){return l("choose_category",{category:""})}return P}()})}),B.map(function(P){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"chevron-right",mb:-.5,color:"transparent",content:P,selected:C.category===P,onClick:function(){function R(){return l("choose_category",{category:P})}return R}()},P)},P)})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:C.category||"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",buttons:(0,e.createComponentVNode)(2,t.Input,{mr:18.5,width:"100%",placeholder:"\u041F\u043E\u0438\u0441\u043A \u0444\u043E\u0440\u043C\u044B",onInput:function(){function P(R,F){return N(F)}return P}()}),children:M.map(function(P){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:.5,color:"transparent",content:P.altername.trimLongStr(37),tooltip:P.altername,selected:C.form_id===P.id,onClick:function(){function R(){return l("choose_form",{path:P.path,id:P.id})}return R}()})},P.path)})})})]})})})}return s}()},94158:function(I,r,n){"use strict";r.__esModule=!0,r.PodTracking=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.PodTracking=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.pods;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:c.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Position",children:[s.podx,", ",s.pody,", ",s.podz]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pilot",children:s.pilot}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Passengers",children:s.passengers})]})},s.name)})})})}return S}()},70857:function(I,r,n){"use strict";r.__esModule=!0,r.PollListPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.PollListPanel=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.polls||{};return(0,e.createComponentVNode)(2,o.Window,{title:"Poll List Panel",width:700,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Poll List Panel",children:["Currently running polls Note when editing polls or their options changes are not saved until you press Sumbit Poll.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"New Poll",onClick:function(){function s(){return p("newpoll")}return s}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.question,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",onClick:function(){function u(){return p("editpoll",{poll_to_edit:s.id})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",onClick:function(){function u(){return p("deletepoll",{poll_to_delete:s.id})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Results",onClick:function(){function u(){return p("resultspoll",{poll_to_result:s.id})}return u}()}),(0,e.createComponentVNode)(2,t.Box,{children:s.description}),(0,e.createComponentVNode)(2,t.Divider)]},"poll")})})]})})})}return S}()},45736:function(I,r,n){"use strict";r.__esModule=!0,r.PollManagement=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(94798),m=n(98595),S=r.PollManagement=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,u=s.poll,d=s.has_poll,f=s.poll_types,l=s.interval_types,C=(0,a.useLocalState)(p,"question",u.question),b=C[0],v=C[1],h=(0,a.useLocalState)(p,"poll_type",u.poll_type),g=h[0],N=h[1],x=(0,a.useLocalState)(p,"options_allowed",u.options_allowed),B=x[0],L=x[1],T=(0,a.useLocalState)(p,"admin_only",u.admin_only),E=T[0],w=T[1],A=(0,a.useLocalState)(p,"dont_show",u.dont_show),O=A[0],M=A[1],P=(0,a.useLocalState)(p,"allow_revoting",u.allow_revoting),R=P[0],F=P[1],_=(0,a.useLocalState)(p,"interval",u.interval),U=_[0],W=_[1],$=(0,a.useLocalState)(p,"duration",u.duration),Y=$[0],ne=$[1],G=(0,a.useLocalState)(p,"start_datetime",u.start_datetime),le=G[0],de=G[1],oe=(0,a.useLocalState)(p,"end_datetime",u.end_datetime),re=oe[0],q=oe[1],ae=(0,a.useLocalState)(p,"subtitle",u.subtitle),J=ae[0],X=ae[1],Q=(0,a.useLocalState)(p,"minimum_playtime",u.minimum_playtime),Z=Q[0],te=Q[1],fe=(0,a.useLocalState)(p,"run_duration",u.run_duration),ye=fe[0],pe=fe[1],Le=(0,a.useLocalState)(p,"run_start",u.run_start),D=Le[0],ie=Le[1],se=(0,a.useLocalState)(p,"clear_votes",u.clear_votes),Ce=se[0],he=se[1];return(0,e.createComponentVNode)(2,m.Window,{title:"Poll Management",width:600,height:640,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Poll Creation",children:[(0,e.createComponentVNode)(2,t.Box,{children:["Question:",(0,e.createComponentVNode)(2,t.Input,{width:40,placeholder:"Question goes here",value:b,onChange:function(){function ve(Be,we){return v(we)}return ve}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{inline:!0,pl:1,children:"Choice:"}),(0,e.createComponentVNode)(2,t.Dropdown,{width:10,disabled:d,options:f,selected:g,onSelected:function(){function ve(Be){return N(Be)}return ve}()}),d&g!=="Multiple Choice"?null:(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:["Mult-choice options allowed:",(0,e.createComponentVNode)(2,t.NumberInput,{width:3,minValue:0,maxValue:100,value:B,onChange:function(){function ve(Be,we){return L(!B)}return ve}()})]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Admin only",checked:E,onClick:function(){function ve(){return w(!E)}return ve}()}),(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Don't show",checked:O,onClick:function(){function ve(){return M(!O)}return ve}()}),(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Allow revoting",checked:R,onClick:function(){function ve(){return F(!R)}return ve}()}),"Min. playtime to vote (in hours):",(0,e.createComponentVNode)(2,t.Box,{inline:!0,ml:1,children:(0,e.createComponentVNode)(2,t.NumberInput,{width:3,placeholder:"Number of hours",value:Z,onChange:function(){function ve(Be,we){return te(we)}return ve}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:[(0,e.createComponentVNode)(2,t.Box,{children:"Duration"}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",py:1,content:ye?"Run for":"Run until",onClick:function(){function ve(){return pe(!ye)}return ve}()}),ye?(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,t.NumberInput,{placeholder:"Amount number",width:3,minValue:0,maxValue:100,value:Y,onChange:function(){function ve(Be,we){return ne(we)}return ve}()}),(0,e.createComponentVNode)(2,t.Dropdown,{options:l,selected:U,onSelected:function(){function ve(Be){return W(Be)}return ve}()})]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:["Until:",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Input,{width:15,placeholder:"YYYY-MM-DD HH:MM:SS",value:re||"1970-01-01 00:00:01",onChange:function(){function ve(Be,we){return q(we)}return ve}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Start"}),(0,e.createComponentVNode)(2,t.Button,{content:D?"Now":"At datetime",onClick:function(){function ve(){return ie(!D)}return ve}()}),D?null:(0,e.createComponentVNode)(2,t.Input,{width:15,placeholder:"YYYY-MM-DD HH:MM:SS",value:le||"1970-01-01 00:00:01",onChange:function(){function ve(Be,we){return de(we)}return ve}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Subtitle (Optional)",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.TextArea,{height:10,width:20,rows:"12",value:J,onChange:function(){function ve(Be,we){return X(we)}return ve}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:d?(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Clear poll votes",onClick:function(){function ve(){return c("clear_poll_votes")}return ve}()}),u.poll_votes," players have voted"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Clear votes on edit",checked:Ce,onClick:function(){function ve(){return he(!Ce)}return ve}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{p:2,content:"Submit Poll",onClick:function(){function ve(){return c("submit_poll",{question:b,poll_type:g,options_allowed:B,admin_only:E,dont_show:O,allow_revoting:R,interval:U,duration:Y,start_datetime:le,end_datetime:re,subtitle:J,poll_votes:Z,run_duration:ye,run_start:D,clear_votes:Ce})}return ve}()})})]}):(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{p:1,m:2,content:"Initliaze Question",onClick:function(){function ve(){return c("initialize_poll",{question:b,poll_type:g,options_allowed:B,admin_only:E,dont_show:O,allow_revoting:R,interval:U,duration:Y,start_datetime:le,end_datetime:re,subtitle:J,poll_votes:Z,run_duration:ye,run_start:D,clear_votes:Ce})}return ve}()})})})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Questions Manage",children:d?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,t.Box,{children:"First enter the poll question details and press Initialize Question. Then add poll options and press Submit Poll to save and create the question and options. No options are required for Text Reply polls."})})]})})}return k}(),y=function(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,u=s.poll,d=u.options,f=(0,a.useLocalState)(p,"poll_type",null),l=f[0],C=f[1];return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Add Option",onClick:function(){function b(){return c("add_poll_option")}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(b){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Option "+b.num,children:[b.text,l==="Rating"?(0,e.createComponentVNode)(2,t.Box,{children:["Minimum value: ",b.min_val," | Maximum value:"," ",b.max_val,"Minimum description: ",b.desc_min,"Middle description: ",b.desc_mid,"Maximum description: ",b.desc_max]}):null,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Edit",onClick:function(){function v(){return c("edit_poll_option",{option_to_edit:b.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",onClick:function(){function v(){return c("delete_poll_option",{option_to_delete:b.id})}return v}()}),(0,e.createComponentVNode)(2,t.Divider)]},"option")})})})]})}},80378:function(I,r,n){"use strict";r.__esModule=!0,r.PollOptionPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(94798),m=n(98595),S=r.PollOptionPanel=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.poll_question,u=c.is_rating,d=c.option,f=(0,a.useLocalState)(V,"text",d.text),l=f[0],C=f[1],b=(0,a.useLocalState)(V,"default_percentage_calc",d.default_percentage_calc),v=b[0],h=b[1],g=(0,a.useLocalState)(V,"min_val",d.min_val),N=g[0],x=g[1],B=(0,a.useLocalState)(V,"max_val",d.max_val),L=B[0],T=B[1],E=(0,a.useLocalState)(V,"desc_min_check",d.desc_min_check),w=E[0],A=E[1],O=(0,a.useLocalState)(V,"desc_mid_check",d.desc_mid_check),M=O[0],P=O[1],R=(0,a.useLocalState)(V,"desc_max_check",d.desc_max_check),F=R[0],_=R[1],U=(0,a.useLocalState)(V,"desc_min_text",d.desc_min_text),W=U[0],$=U[1],Y=(0,a.useLocalState)(V,"desc_mid_text",d.desc_min_text),ne=Y[0],G=Y[1],le=(0,a.useLocalState)(V,"desc_max_text",d.desc_min_text),de=le[0],oe=le[1];return(0,e.createComponentVNode)(2,m.Window,{title:"Poll Option Panel",width:400,height:u?320:180,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:s,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{width:"100%",content:l,onChange:function(){function re(q,ae){return C(ae)}return re}()})}),(0,e.createVNode)(1,"br"),u?(0,e.createComponentVNode)(2,t.Box,{children:["Minimum value",(0,e.createComponentVNode)(2,t.Input,{value:N}),"Maximum Value",(0,e.createComponentVNode)(2,t.Input,{value:L}),(0,e.createComponentVNode)(2,Table,{children:[(0,e.createComponentVNode)(2,Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Minimum description",checked:w,onClick:function(){function re(){return A(!w)}return re}()})}),(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Middle description",checked:M,onClick:function(){function re(){return P(!M)}return re}()})}),(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Maximum description",checked:F,onClick:function(){function re(){return _(!F)}return re}()})})]}),(0,e.createComponentVNode)(2,Table.Row,{children:[(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:W,onEnter:function(){function re(q,ae){return $(ae)}return re}()})}),(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:ne,onEnter:function(){function re(q,ae){return G(ae)}return re}()})}),(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:de,onEnter:function(){function re(q,ae){return oe(ae)}return re}()})})]})]}),(0,e.createVNode)(1,"br")]}):null,(0,e.createComponentVNode)(2,o.ButtonCheckbox,{checked:v,content:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u043F\u0446\u0438\u044E \u0432 \u0440\u0430\u0441\u0447\u0435\u0442 \u043F\u0440\u043E\u0446\u0435\u043D\u0442\u0430 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432 \u043E\u043F\u0440\u043E\u0441\u0430",onClick:function(){function re(){return h(!v)}return re}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Sumbit",onClick:function(){function re(){return i("submit_option",{text:l,default_percentage_calc:v,min_val:N,max_val:L,desc_min_check:w,desc_mid_check:M,desc_max_check:F,desc_min_text:W,desc_mid_text:ne,desc_max_text:de})}return re}()})]})})})}return y}()},84676:function(I,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=["tempKey"];function S(p,i){if(p==null)return{};var c={};for(var s in p)if({}.hasOwnProperty.call(p,s)){if(i.includes(s))continue;c[s]=p[s]}return c}var y={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},k=function(i,c){var s=i.tempKey,u=S(i,m),d=y[s];if(!d)return null;var f=(0,a.useBackend)(c),l=f.data,C=f.act,b=l.currentTemp,v=d.label,h=d.icon,g=s===b,N=function(){C("setTemp",{temp:s})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({selected:g,onClick:N},u,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h}),v]})))},V=r.PoolController=function(){function p(i,c){for(var s=(0,a.useBackend)(c),u=s.data,d=u.emagged,f=u.currentTemp,l=y[f]||y.normal,C=l.label,b=l.color,v=[],h=0,g=Object.entries(y);h50?"battery-half":"battery-quarter")||b==="C"&&"bolt"||b==="F"&&"battery-full"||b==="M"&&"slash",color:b==="N"&&(v>50?"yellow":"red")||b==="C"&&"yellow"||b==="F"&&"green"||b==="M"&&"orange"}),(0,e.createComponentVNode)(2,k.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(v)+"%"})],4)};d.defaultHooks=m.pureComponentHooks;var f=function(C){var b,v,h=C.status;switch(h){case"AOn":b=!0,v=!0;break;case"AOff":b=!0,v=!1;break;case"On":b=!1,v=!0;break;case"Off":b=!1,v=!1;break}var g=(v?"On":"Off")+(" ["+(b?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,k.ColorBox,{color:v?"good":"bad",content:b?void 0:"M",title:g})};f.defaultHooks=m.pureComponentHooks},50992:function(I,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),m=n(3939),S=n(321),y=n(5485),k=n(98595),V=r.PrisonerImplantManager=function(){function p(i,c){var s=(0,a.useBackend)(c),u=s.act,d=s.data,f=d.loginState,l=d.prisonerInfo,C=d.chemicalInfo,b=d.trackingInfo,v;if(!f.logged_in)return(0,e.createComponentVNode)(2,k.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,y.LoginScreen)})});var h=[1,5,10];return(0,e.createComponentVNode)(2,k.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.name?"eject":"id-card",selected:l.name,content:l.name?l.name:"-----",tooltip:l.name?"Eject ID":"Insert ID",onClick:function(){function g(){return u("id_card")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[l.points!==null?l.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:l.points===null,content:"Reset",onClick:function(){function g(){return u("reset_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[l.goal!==null?l.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:l.goal===null,content:"Edit",onClick:function(){function g(){return(0,m.modalOpen)(c,"set_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:l.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:b.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:g.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:g.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function N(){return(0,m.modalOpen)(c,"warn",{uid:g.uid})}return N}()})})]})]},g.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:C.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:g.volume})}),h.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:g.volume1100?"purple":f>500?"orange":f>250?"yellow":"green"},k=function(f,l){for(var C=[],b=0;b0?"envelope-open-text":"envelope",onClick:function(){function x(){return C("setScreen",{setScreen:6})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Assistance",icon:"hand-paper",onClick:function(){function x(){return C("setScreen",{setScreen:1})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Supplies",icon:"box",onClick:function(){function x(){return C("setScreen",{setScreen:2})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Relay Anonymous Information",icon:"comment",onClick:function(){function x(){return C("setScreen",{setScreen:3})}return x}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print Shipping Label",icon:"tag",onClick:function(){function x(){return C("setScreen",{setScreen:9})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function x(){return C("setScreen",{setScreen:10})}return x}()})})]}),!!h&&(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function x(){return C("setScreen",{setScreen:8})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{content:g?"Speaker Off":"Speaker On",selected:!g,icon:g?"volume-mute":"volume-up",onClick:function(){function x(){return C("toggleSilent")}return x}()})})]})},k=function(d,f){var l=(0,a.useBackend)(f),C=l.act,b=l.data,v=b.department,h,g;switch(d.purpose){case"ASSISTANCE":h=b.assist_dept,g="Request assistance from another department";break;case"SUPPLIES":h=b.supply_dept,g="Request supplies from another department";break;case"INFO":h=b.info_dept,g="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Section,{title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return C("setScreen",{setScreen:0})}return N}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.filter(function(N){return N!==v}).map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function x(){return C("writeInput",{write:N,priority:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function x(){return C("writeInput",{write:N,priority:2})}return x}()})]},N)})})})},V=function(d,f){var l=(0,a.useBackend)(f),C=l.act,b=l.data,v;switch(d.type){case"SUCCESS":v="Message sent successfully";break;case"FAIL":v="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{title:v,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return C("setScreen",{setScreen:0})}return h}()})})},p=function(d,f){var l=(0,a.useBackend)(f),C=l.act,b=l.data,v,h;switch(d.type){case"MESSAGES":v=b.message_log,h="Message Log";break;case"SHIPPING":v=b.shipping_log,h="Shipping label print log";break}return(0,e.createComponentVNode)(2,t.Section,{title:h,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return C("setScreen",{setScreen:0})}return g}()}),children:v.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{className:"RequestConsole__message",children:g},g)})})},i=function(d,f){var l=(0,a.useBackend)(f),C=l.act,b=l.data,v=b.recipient,h=b.message,g=b.msgVerified,N=b.msgStamped;return(0,e.createComponentVNode)(2,t.Section,{title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function x(){return C("setScreen",{setScreen:0})}return x}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:N})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function x(){return C("department",{department:v})}return x}()})]})},c=function(d,f){var l=(0,a.useBackend)(f),C=l.act,b=l.data,v=b.message,h=b.announceAuth;return(0,e.createComponentVNode)(2,t.Section,{title:"Station-Wide Announcement",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return C("setScreen",{setScreen:0})}return g}()}),children:[(0,e.createComponentVNode)(2,t.Button,{content:v||"Edit Message",icon:"edit",onClick:function(){function g(){return C("writeAnnouncement")}return g}()}),h?(0,e.createComponentVNode)(2,t.Box,{mt:1,color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{mt:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(h&&v),onClick:function(){function g(){return C("sendAnnouncement")}return g}()})]})},s=function(d,f){var l=(0,a.useBackend)(f),C=l.act,b=l.data,v=b.shipDest,h=b.msgVerified,g=b.ship_dept;return(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return C("setScreen",{setScreen:0})}return N}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:h})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(v&&h),onClick:function(){function N(){return C("printLabel")}return N}()}),(0,e.createComponentVNode)(2,t.Section,{title:"Destinations",mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:g.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N,children:(0,e.createComponentVNode)(2,t.Button,{content:v===N?"Selected":"Select",selected:v===N,onClick:function(){function x(){return C("shipSelect",{shipSelect:N})}return x}()})},N)})})})]})}},3786:function(I,r,n){"use strict";r.__esModule=!0,r.RequestManager=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(98595);/** * @file * @copyright 2021 bobbahbrown (https://github.com/bobbahbrown) * @coauthor 2022 BeebBeebBoob (https://github.com/BeebBeebBoob) * @license MIT - */var S=r.RequestManager=function(){function p(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.requests,u=(0,t.useLocalState)(c,"filteredTypes",Object.fromEntries(Object.entries(y).map(function(B){var L=B[0],T=B[1];return[L,!0]}))),C=u[0],b=u[1],v=(0,t.useLocalState)(c,"searchText"),h=v[0],g=v[1],N=f.filter(function(B){return C[B.req_type]});if(h){var x=h.toLowerCase();N=N.filter(function(B){return(0,a.decodeHtmlEntities)(B.message).toLowerCase().includes(x)||B.owner_name.toLowerCase().includes(x)})}return(0,e.createComponentVNode)(2,m.Window,{title:"Request Manager",width:575,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Requests",buttons:(0,e.createComponentVNode)(2,o.Input,{value:h,onInput:function(){function B(L,T){return g(T)}return B}(),placeholder:"Search...",mr:1}),children:N.map(function(B){return(0,e.createVNode)(1,"div","RequestManager__row",[(0,e.createVNode)(1,"div","RequestManager__rowContents",[(0,e.createVNode)(1,"h2","RequestManager__header",[(0,e.createVNode)(1,"span","RequestManager__headerText",[B.owner_name,B.owner===null&&" [DC]"],0),(0,e.createVNode)(1,"span","RequestManager__timestamp",B.timestamp_str,0)],4),(0,e.createVNode)(1,"div","RequestManager__message",[(0,e.createComponentVNode)(2,k,{requestType:B.req_type}),(0,a.decodeHtmlEntities)(B.message)],0)],4),B.owner!==null&&(0,e.createComponentVNode)(2,V,{request:B})],0,null,B.id)})})})})}return p}(),y={request_prayer:"PRAYER",request_centcom:"CENTCOM",request_syndicate:"SYNDICATE",request_honk:"HONK",request_ert:"ERT",request_nuke:"NUKE CODE"},k=function(i){var c=i.requestType;return(0,e.createVNode)(1,"b","RequestManager__"+c,[y[c],(0,e.createTextVNode)(":")],0)},V=function(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s._,f=i.request;return(0,e.createVNode)(1,"div","RequestManager__controlsContainer",[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("pp",{id:f.id})}return u}(),children:"PP"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("vv",{id:f.id})}return u}(),children:"VV"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("sm",{id:f.id})}return u}(),children:"SM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("tp",{id:f.id})}return u}(),children:"TP"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("logs",{id:f.id})}return u}(),children:"LOGS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("bless",{id:f.id})}return u}(),children:"BLESS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("smite",{id:f.id})}return u}(),children:"SMITE"}),f.req_type!=="request_prayer"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("rply",{id:f.id})}return u}(),children:"RPLY"}),f.req_type==="request_ert"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("ertreply",{id:f.id})}return u}(),children:"ERTREPLY"}),f.req_type==="request_nuke"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("getcode",{id:f.id})}return u}(),children:"GETCODE"})],0)}},16475:function(I,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),m=n(13472),S=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},y=r.SUBMENU={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},k=r.RndConsole=function(){function V(p,i){var c=(0,a.useBackend)(i),s=c.data,l=s.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,theme:s.ui_theme,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,m.RndNavbar),(0,e.createComponentVNode)(2,m.RndRoute,{menu:S.MAIN,render:function(){function d(){return(0,e.createComponentVNode)(2,m.MainMenu)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:S.LEVELS,render:function(){function d(){return(0,e.createComponentVNode)(2,m.CurrentLevels)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:S.DISK,render:function(){function d(){return(0,e.createComponentVNode)(2,m.DataDiskMenu)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:S.DESTROY,render:function(){function d(){return(0,e.createComponentVNode)(2,m.DeconstructionMenu)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:function(){function d(f){return f===S.LATHE||f===S.IMPRINTER}return d}(),render:function(){function d(){return(0,e.createComponentVNode)(2,m.LatheMenu)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:S.SETTINGS,render:function(){function d(){return(0,e.createComponentVNode)(2,m.SettingsMenu)}return d}()}),l?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:l})})}):null]})})})}return V}()},93098:function(I,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.CurrentLevels=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data,p=V.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),p.map(function(i,c){var s=i.name,l=i.level,d=i.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[c>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:s}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",l]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",d]})]},s)})]})}return m}()},19192:function(I,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),m=n(16475),S="design",y="tech",k=function(f,u){var C=(0,a.useBackend)(u),b=C.data,v=C.act,h=b.disk_data;return h?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:h.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:h.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function g(){return v("updt_tech")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function g(){return v("clear_tech")}return g}()}),(0,e.createComponentVNode)(2,i)]})]}):null},V=function(f,u){var C=(0,a.useBackend)(u),b=C.data,v=C.act,h=b.disk_data;if(!h)return null;var g=h.name,N=h.lathe_types,x=h.materials,B=N.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:g}),B?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:B}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),x.map(function(L){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,L.name,0,{style:{"text-transform":"capitalize"}})," x ",L.amount]},L.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function L(){return v("updt_design")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function L(){return v("clear_design")}return L}()}),(0,e.createComponentVNode)(2,i)]})]})},p=function(f,u){var C=(0,a.useBackend)(u),b=C.data,v=b.disk_type;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"This disk is empty."}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{submenu:m.SUBMENU.DISK_COPY,icon:"arrow-down",content:v===y?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,i)]})]})},i=function(f,u){var C=(0,a.useBackend)(u),b=C.data,v=C.act,h=b.disk_type;return h?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function g(){var N=h===y?"eject_tech":"eject_design";v(N)}return g}()}):null},c=function(f,u){var C=(0,a.useBackend)(u),b=C.data,v=b.disk_data,h=b.disk_type,g=function(){if(!v)return(0,e.createComponentVNode)(2,p);switch(h){case S:return(0,e.createComponentVNode)(2,V);case y:return(0,e.createComponentVNode)(2,k);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:g()})},s=function(f,u){var C=(0,a.useBackend)(u),b=C.data,v=C.act,h=b.disk_type,g=b.to_copy;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:g.sort(function(N,x){return N.name.localeCompare(x.name)}).map(function(N){var x=N.name,B=N.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:x,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function L(){h===y?v("copy_tech",{id:B}):v("copy_design",{id:B})}return L}()})},B)})})})})},l=r.DataDiskMenu=function(){function d(f,u){var C=(0,a.useBackend)(u),b=C.data,v=b.disk_type;return v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,c)}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.DISK_COPY,render:function(){function h(){return(0,e.createComponentVNode)(2,s)}return h}()})],4):null}return d}()},20887:function(I,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.DeconstructionMenu=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data,p=k.act,i=V.loaded_item,c=V.linked_destroy;return c?i?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",i.name]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:i.origin_tech.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+s.name,children:[s.object_level," ",s.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),s.current_level,(0,e.createTextVNode)(")")],0):null]},s.name)})}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Options:",16)}),(0,e.createComponentVNode)(2,t.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){function s(){p("deconstruct")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function s(){p("eject_item")}return s}()})]}):(0,e.createComponentVNode)(2,t.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,t.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return m}()},10666:function(I,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),m=r.LatheCategory=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.data,i=V.act,c=p.category,s=p.matching_designs,l=p.menu,d=l===4,f=d?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:c,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:s.map(function(u){var C=u.id,b=u.name,v=u.can_build,h=u.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:b,disabled:v<1,onClick:function(){function g(){return i(f,{id:C,amount:1})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function g(){return i(f,{id:C,amount:5})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function g(){return i(f,{id:C,amount:10})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.map(function(g){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",g.is_red?"color-red":null,[g.amount,(0,e.createTextVNode)(" "),g.name],0)],0)})})]},C)})})]})}return S}()},52285:function(I,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheChemicalStorage=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data,p=k.act,i=V.loaded_chemicals,c=V.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function s(){var l=c?"disposeallP":"disposeallI";p(l)}return s}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(s){var l=s.volume,d=s.name,f=s.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+l+" of "+d,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function u(){var C=c?"disposeP":"disposeI";p(C,{id:f})}return u}()})},f)})})]})}return m}()},71964:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),m=r.LatheMainMenu=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.data,i=V.act,c=p.menu,s=p.categories,l=c===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:l+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,o.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:s.map(function(d){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:d,onClick:function(){function f(){i("setCategory",{category:d})}return f}()})},d)})})]})}return S}()},17906:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterialStorage=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data,p=k.act,i=V.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:i.map(function(c){var s=c.id,l=c.amount,d=c.name,f=function(){function v(h){var g=V.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";p(g,{id:s,amount:h})}return v}(),u=Math.floor(l/2e3),C=l<1,b=u===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:C?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",l," of ",d]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",u," sheet",b,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function v(){return f(1)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function v(){return f("custom")}return v}()}),l>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function v(){return f(5)}return v}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function v(){return f(50)}return v}()})],0):null})]},s)})})})}return m}()},83706:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterials=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data,p=V.total_materials,i=V.max_materials,c=V.max_chemicals,s=V.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p}),i?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+i}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return m}()},76749:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(89005),a=n(72253),t=n(12059),o=n(13472),m=n(36036),S=n(16475),y=r.LatheMenu=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.data,s=c.menu,l=c.linked_lathe,d=c.linked_imprinter;return s===4&&!l?(0,e.createComponentVNode)(2,m.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):s===5&&!d?(0,e.createComponentVNode)(2,m.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:S.SUBMENU.MAIN,render:function(){function f(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return f}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:S.SUBMENU.LATHE_CATEGORY,render:function(){function f(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return f}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:S.SUBMENU.LATHE_MAT_STORAGE,render:function(){function f(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return f}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:S.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function f(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return f}()})]})}return k}()},74698:function(I,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheSearch=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function p(i,c){return V("search",{to_search:c})}return p}()})})}return m}()},17180:function(I,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),m=n(16475),S=r.MainMenu=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.data,c=i.disk_type,s=i.linked_destroy,l=i.linked_lathe,d=i.linked_imprinter,f=i.tech_levels;return(0,e.createComponentVNode)(2,t.Section,{title:"Main Menu",children:[(0,e.createComponentVNode)(2,t.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!c,menu:m.MENU.DISK,submenu:m.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!s,menu:m.MENU.DESTROY,submenu:m.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!l,menu:m.MENU.LATHE,submenu:m.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!d,menu:m.MENU.IMPRINTER,submenu:m.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:m.MENU.SETTINGS,submenu:m.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"12px"}),(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:f.map(function(u){var C=u.name,b=u.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:C,children:b},C)})})]})}return y}()},63459:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.RndNavButton=function(){function m(S,y){var k=S.icon,V=S.children,p=S.disabled,i=S.content,c=(0,a.useBackend)(y),s=c.data,l=c.act,d=s.menu,f=s.submenu,u=d,C=f;return S.menu!==null&&S.menu!==void 0&&(u=S.menu),S.submenu!==null&&S.submenu!==void 0&&(C=S.submenu),(0,e.createComponentVNode)(2,t.Button,{content:i,icon:k,disabled:p,onClick:function(){function b(){l("nav",{menu:u,submenu:C})}return b}(),children:V})}return m}()},94942:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(89005),a=n(13472),t=n(36036),o=n(16475),m=r.RndNavbar=function(){function S(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function y(k){return k!==o.MENU.MAIN}return y}(),render:function(){function y(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return y}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function y(k){return k!==o.SUBMENU.MAIN}return y}(),render:function(){function y(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.DISK,render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.LATHE,render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.IMPRINTER,render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.SETTINGS,render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}return k}()})]})}return y}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function y(k){return k===o.MENU.LATHE||k===o.MENU.IMPRINTER}return y}(),submenu:o.SUBMENU.MAIN,render:function(){function y(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}return y}()})]})}return S}()},12059:function(I,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(72253),a=r.RndRoute=function(){function t(o,m){var S=o.render,y=(0,e.useBackend)(m),k=y.data,V=k.menu,p=k.submenu,i=function(){function s(l,d){return l==null?!0:typeof l=="function"?l(d):l===d}return s}(),c=i(o.menu,V)&&i(o.submenu,p);return c?S():null}return t}()},52580:function(I,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),m=n(16475),S=r.SettingsMenu=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.data,c=p.act,s=i.sync,l=i.admin,d=i.linked_destroy,f=i.linked_lathe,u=i.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.MAIN,render:function(){function C(){return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Sync Database with Network",icon:"sync",disabled:!s,onClick:function(){function b(){c("sync")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:s,onClick:function(){function b(){c("togglesync")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!s,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function b(){c("togglesync")}return b}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!s,content:"Device Linkage Menu",icon:"link",menu:m.MENU.SETTINGS,submenu:m.SUBMENU.SETTINGS_DEVICES}),l===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function b(){return c("maxresearch")}return b}()}):null]})})}return C}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.SETTINGS_DEVICES,render:function(){function C(){return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage Menu",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function b(){return c("find_device")}return b}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",children:(0,e.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function b(){return c("disconnect",{item:"destroy"})}return b}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),f?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function b(){c("disconnect",{item:"lathe"})}return b}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function b(){return c("disconnect",{item:"imprinter"})}return b}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return C}()})]})}return y}()},13472:function(I,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=r.RndRoute=r.RndNavbar=r.RndNavButton=r.MainMenu=r.LatheSearch=r.LatheMenu=r.LatheMaterials=r.LatheMaterialStorage=r.LatheMainMenu=r.LatheChemicalStorage=r.LatheCategory=r.DeconstructionMenu=r.DataDiskMenu=r.CurrentLevels=void 0;var e=n(93098);r.CurrentLevels=e.CurrentLevels;var a=n(19192);r.DataDiskMenu=a.DataDiskMenu;var t=n(20887);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(10666);r.LatheCategory=o.LatheCategory;var m=n(52285);r.LatheChemicalStorage=m.LatheChemicalStorage;var S=n(71964);r.LatheMainMenu=S.LatheMainMenu;var y=n(83706);r.LatheMaterials=y.LatheMaterials;var k=n(17906);r.LatheMaterialStorage=k.LatheMaterialStorage;var V=n(76749);r.LatheMenu=V.LatheMenu;var p=n(74698);r.LatheSearch=p.LatheSearch;var i=n(17180);r.MainMenu=i.MainMenu;var c=n(94942);r.RndNavbar=c.RndNavbar;var s=n(63459);r.RndNavButton=s.RndNavButton;var l=n(12059);r.RndRoute=l.RndRoute;var d=n(52580);r.SettingsMenu=d.SettingsMenu},40026:function(I,r,n){"use strict";r.__esModule=!0,r.RoboQuest=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(98595),S=r.RoboQuest=function(){function y(k,V){var p=(0,t.useBackend)(V),i=p.act,c=p.data,s=c.hasID,l=c.name,d=c.questInfo,f=c.hasTask,u=c.canCheck,C=c.canSend,b=c.checkMessage,v=c.style,h=c.cooldown,g=c.instant_teleport,N=c.shopItems,x=c.points,B=c.cats,L=(0,t.useLocalState)(V,"shopState",!1),T=L[0],E=L[1],w={medical:"blue",working:"brown",security:"red",working_medical:"olive",medical_security:"violet",working_medical_security:"grey"};return(0,e.createComponentVNode)(2,m.Window,{theme:v,width:1e3,height:540,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:40,children:[!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0437\u0430\u043A\u0430\u0437",buttons:(0,e.createComponentVNode)(2,o.Button,{content:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u043C\u0435\u0445\u0430",icon:"search",tooltipPosition:"bottom",tooltip:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u043D\u0430 \u043D\u0430\u043B\u0438\u0447\u0438\u0435 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0445 \u0434\u043B\u044F \u0437\u0430\u043A\u0430\u0437\u0430 \u043C\u043E\u0434\u0443\u043B\u0435\u0439.",disabled:!s||!f||!u||h,onClick:function(){function A(){return i("Check")}return A}()}),children:[(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:60,textAlign:"center",align:"center",children:!!f&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest_large128x128",d.icon]))}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Divider,{vertical:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:42,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!f&&d.modules.map(function(A){return A.id<4&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest64x64",A.icon]),null,1,null,A.id)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!f&&d.modules.map(function(A){return A.id>3&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest64x64",A.icon]),null,1,null,A.id)})})]})})]}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Divider),(0,e.createVNode)(1,"b",null,b,0)],4),!!h&&(0,e.createFragment)([(0,e.createVNode)(1,"b",null,"\u0417\u0430 \u043E\u0442\u043A\u0430\u0437 \u043E\u0442 \u0437\u0430\u043A\u0430\u0437\u0430, \u0432\u044B \u0431\u044B\u043B\u0438 \u043E\u0442\u0441\u0442\u0440\u0430\u043D\u0435\u043D\u044B \u043E\u0442 \u0440\u0430\u0431\u043E\u0442\u044B \u043D\u0430 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u0432\u0440\u0435\u043C\u044F.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,h,0)],4)]}),!!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:(0,e.createComponentVNode)(2,o.Box,{children:["\u041C\u0430\u0433\u0430\u0437\u0438\u043D \u0447\u0435\u0440\u0442\u0435\u0436\u0435\u0439",(0,e.createComponentVNode)(2,o.Box,{children:["\u041E\u0447\u043A\u0438: ",(0,e.createVNode)(1,"b",null,x.working,0,{style:{color:"brown"}}),"|",(0,e.createVNode)(1,"b",null,x.medical,0,{style:{color:"lightblue"}}),"|",(0,e.createVNode)(1,"b",null,x.security,0,{style:{color:"red"}})]})]}),children:Object.keys(N).map(function(A){return(0,e.createFragment)(!(N[A]===void 0||N[A].length===0||A==="robo")&&N[A].map(function(O){return(0,e.createComponentVNode)(2,o.ImageButton,{asset:!0,color:w[A],image:O.icon,imageAsset:"roboquest64x64",title:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,inline:!0,children:[O.name," ",(0,e.createVNode)(1,"b",null,O.cost.working,0,{style:{color:"brown"}}),"|",(0,e.createVNode)(1,"b",null,O.cost.medical,0,{style:{color:"lightblue"}}),"|",(0,e.createVNode)(1,"b",null,O.cost.security,0,{style:{color:"red"}})]}),content:O.desc,onClick:function(){function M(){return i("buyItem",{item:O.path})}return M}()},O.path)}),0,A)})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:20,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0414\u0440\u0443\u0433\u043E\u0435",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"\u041C\u0430\u0433\u0430\u0437\u0438\u043D",width:"7rem",icon:"shopping-cart",onClick:function(){function A(){return E(!T)}return A}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"cog",tooltipPosition:"bottom",tooltip:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u0441\u0442\u0438\u043B\u044F \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.",onClick:function(){function A(){return i("ChangeStyle")}return A}()})],4),children:[!!l&&(0,e.createFragment)([(0,e.createTextVNode)("\u0417\u0434\u0440\u0430\u0441\u0442\u0432\u0443\u0439\u0442\u0435,"),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,l,0),(0,e.createVNode)(1,"br")],4),(0,e.createFragment)([(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u041F\u0440\u0438 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0438 \u0437\u0430\u043A\u0430\u0437\u0430 \u043D\u0430 \u044D\u043A\u0437\u043A\u043E\u0441\u0442\u044E\u043C, \u0432\u044B\u0431\u043E\u0440 \u043F\u043E\u0434\u0442\u0438\u043F\u0430 \u043C\u0435\u0445\u0430 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u044F\u0435\u0442 \u0442\u0438\u043F \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u043E\u0447\u043A\u043E\u0432, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0431\u0443\u0434\u0443\u0442 \u043D\u0430\u0447\u0438\u0441\u043B\u0435\u043D\u044B \u0437\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0437\u0430\u043A\u0430\u0437\u0430."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u0420\u0430\u0431\u043E\u0447\u0438\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"brown",children:[" ","\u043A\u043E\u0440\u0438\u0447\u043D\u0435\u0432\u044B\u0435"]}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u043E\u0447\u043A\u0438. \u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"teal",children:[" ","\u0433\u043E\u043B\u0443\u0431\u044B\u0435"]}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u043E\u0447\u043A\u0438. \u0411\u043E\u0435\u0432\u044B\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"red",children:[" ","\u043A\u0440\u0430\u0441\u043D\u044B\u0435"]}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u043E\u0447\u043A\u0438."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u041A\u0430\u0436\u0434\u044B\u0439 \u043C\u0435\u0445, \u0432\u043D\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u043F\u043E\u0434\u0442\u0438\u043F\u0430, \u043F\u0440\u0438\u043D\u043E\u0441\u0438\u0442 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043E\u0447\u043A\u043E\u0432 \u0434\u043B\u044F \u043C\u0430\u0433\u0430\u0437\u0438\u043D\u0430 \u043E\u0441\u043E\u0431\u044B\u0445 \u043D\u0430\u0433\u0440\u0430\u0434.")],0)]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:38,children:[!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"\u0418\u043D\u0444\u043E",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"id-card",content:"\u0412\u044B\u043D\u0443\u0442\u044C ID",disabled:!s,onClick:function(){function A(){return i("RemoveID")}return A}()}),!f&&(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-down",content:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043C\u0435\u0445",disabled:!s||h,onClick:function(){function A(){return i("GetTask")}return A}()}),!!f&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"\u041F\u0435\u0447\u0430\u0442\u044C",icon:"print",onClick:function(){function A(){return i("printOrder")}return A}(),disabled:!f}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"\u041E\u0442\u043A\u0430\u0437\u0430\u0442\u044C\u0441\u044F",disabled:!s||h,onClick:function(){function A(){return i("RemoveTask")}return A}()})],4)],0),children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",mb:"1rem",children:[(0,e.createVNode)(1,"b",null,"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435: ",16),d.name,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435: ",16),d.desc]}),(0,e.createComponentVNode)(2,o.Section,{title:"\u0422\u0440\u0435\u0431\u0443\u0435\u043C\u044B\u0435 \u041C\u043E\u0434\u0443\u043B\u0438:",level:2,children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",mb:"0.5rem",children:!!f&&d.modules.map(function(A){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Module "),A.id],0),(0,e.createTextVNode)(": "),A.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br")],0,A.id)})})}),(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"14rem",bold:!0,content:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043C\u0435\u0445",textAlign:"center",tooltipPosition:"top",tooltip:"\u041E\u0442\u043F\u0440\u0430\u0432\u043A\u0430 \u043C\u0435\u0445\u0430 \u043D\u0430 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0432\u0430\u043C\u0438 \u0442\u0435\u043B\u0435\u043F\u0430\u0434.",disabled:!s||!f||!C||h,onClick:function(){function A(){return i("SendMech",{type:"send"})}return A}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"14rem",bold:!0,content:"\u0423\u043F\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u043C\u0435\u0445",textAlign:"center",tooltipPosition:"top",tooltip:"\u0423\u043F\u0430\u043A\u043E\u0432\u043A\u0430 \u043C\u0435\u0445\u0430 \u0434\u043B\u044F \u0441\u0430\u043C\u043E\u0441\u0442\u043E\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0434\u043E\u0441\u0442\u0430\u0432\u043A\u0438 \u0432 \u043A\u0430\u0440\u0433\u043E.",disabled:!s||!f||!C||h,onClick:function(){function A(){return i("SendMech",{type:"only_packing"})}return A}()})]}),(0,e.createVNode)(1,"box",null,(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"30rem",bold:!0,content:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043C\u0435\u0445",textAlign:"center",tooltipPosition:"bottom",tooltip:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u0430\u044F \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u043C\u0435\u0445\u0430 \u0437\u0430\u043A\u0430\u0437\u0447\u0438\u043A\u0443.",disabled:!s||!f||!C||h||!g,onClick:function(){function A(){return i("SendMech",{type:"instant"})}return A}()}),2,{mb:"1.5rem",textAlign:"center"})]}),!!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createTextVNode)("\u041C\u0430\u0433\u0430\u0437\u0438\u043D \u043E\u0441\u043E\u0431\u044B\u0445 \u043D\u0430\u0433\u0440\u0430\u0434"),(0,e.createComponentVNode)(2,o.Box,{children:["\u041E\u0447\u043A\u0438: ",x.robo]})],4),children:N.robo.map(function(A){return(!A.emagOnly||v==="syndicate")&&(0,e.createComponentVNode)(2,o.ImageButton,{asset:!0,color:"purple",image:A.icon,imageAsset:"roboquest64x64",title:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,inline:!0,children:[A.name," ",(0,e.createVNode)(1,"b",null,A.cost.robo,0,{style:{color:"purple"}})]}),content:A.desc,onClick:function(){function O(){return i("buyItem",{item:A.path})}return O}()},A.name)})})]})]})})})}return y}()},26109:function(I,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(25328),S=function(V,p){var i=V/p;return i<=.2?"good":i<=.5?"average":"bad"},y=r.RobotSelfDiagnosis=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.data,s=c.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:s.map(function(l,d){return(0,e.createComponentVNode)(2,t.Section,{title:(0,m.capitalize)(l.name),children:l.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:l.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:S(l.brute_damage,l.max_damage),children:l.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:S(l.electronic_damage,l.max_damage),children:l.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:l.powered?"good":"bad",children:l.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:l.status?"good":"bad",children:l.status?"Yes":"No"})]})})]})},d)})})})}return k}()},97997:function(I,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.RoboticsControlConsole=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.can_hack,l=c.safety,d=c.show_detonate_all,f=c.cyborgs,u=f===void 0?[]:f;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Self Destruct",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l?"lock":"unlock",content:l?"Disable Safety":"Enable Safety",selected:l,onClick:function(){function C(){return i("arm",{})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",disabled:l,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){function C(){return i("nuke",{})}return C}()})]}),(0,e.createComponentVNode)(2,S,{cyborgs:u,can_hack:s})]})})}return y}(),S=function(k,V){var p=k.cyborgs,i=k.can_hack,c=(0,a.useBackend)(V),s=c.act,l=c.data;return p.length?p.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d.name,buttons:(0,e.createFragment)([!!d.hackable&&!d.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function f(){return s("hackbot",{uid:d.uid})}return f}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:d.locked_down?"unlock":"lock",color:d.locked_down?"good":"default",content:d.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){function f(){return s("stopbot",{uid:d.uid})}return f}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!l.auth,color:"bad",onClick:function(){function f(){return s("killbot",{uid:d.uid})}return f}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:d.status?"bad":d.locked_down?"average":"good",children:d.status?"Not Responding":d.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:d.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:d.health>50?"good":"bad",value:d.health/100})}),typeof d.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:d.charge>30?"good":"bad",value:d.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:d.cell_capacity<3e4?"average":"good",children:d.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!d.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:d.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:d.synchronization?"default":"average",children:d.synchronization||"None"})})]})},d.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},54431:function(I,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(89005),a=n(79140),t=n(72253),o=n(36036),m=n(98595),S=r.Safe=function(){function p(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.dial,u=d.open,C=d.locked,b=d.contents;return(0,e.createComponentVNode)(2,m.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,o.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),u?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,o.Box,{as:"img",className:"Safe--dial",src:(0,a.resolveAsset)("safe_dial.png"),style:{transform:"rotate(-"+3.6*f+"deg)","z-index":0}})]}),!u&&(0,e.createComponentVNode)(2,V)]})})}return p}(),y=function(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.dial,u=d.open,C=d.locked,b=function(h,g){return(0,e.createComponentVNode)(2,o.Button,{disabled:u||g&&!C,icon:"arrow-"+(g?"right":"left"),content:(g?"Right":"Left")+" "+h,iconRight:g,onClick:function(){function N(){return l(g?"turnleft":"turnright",{num:h})}return N}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:C,icon:u?"lock":"lock-open",content:u?"Close":"Open",mb:"0.5rem",onClick:function(){function v(){return l("open")}return v}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{position:"absolute",children:[b(50),b(10),b(1)]}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[b(1,!0),b(10,!0),b(50,!0)]}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer--number",children:f})]})},k=function(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.contents;return(0,e.createComponentVNode)(2,o.Box,{className:"Safe--contents",overflow:"auto",children:f.map(function(u,C){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{mb:"0.5rem",onClick:function(){function b(){return l("retrieve",{index:C+1})}return b}(),children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:u.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),u.name]}),(0,e.createVNode)(1,"br")],4,u)})})},V=function(i,c){return(0,e.createComponentVNode)(2,o.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,o.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},29740:function(I,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.SatelliteControl=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.satellites,s=i.notice,l=i.meteor_shield,d=i.meteor_shield_coverage,f=i.meteor_shield_coverage_max,u=i.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[l&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:u>=100?"good":"average",value:d,maxValue:f,children:[u," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:i.notice}),c.map(function(C){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+C.id,children:[C.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:C.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function b(){return p("toggle",{id:C.id})}return b}()})]},C.id)})]})})]})})}return S}()},44162:function(I,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.SecureStorage=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.emagged,s=i.locked,l=i.l_set,d=i.l_setshort,f=i.current_code,u=function(){function C(b){var v=b.buttonValue,h=b.color;return h||(h="default"),(0,e.createComponentVNode)(2,t.Button,{disabled:c||d,type:"button",color:h,onClick:function(){function g(){return p("setnumber",{buttonValue:v})}return g}(),children:v})}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:520,height:200,children:(0,e.createComponentVNode)(2,t.Flex,{spacing:"1",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:16,shrink:0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Code Panel",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,u,{buttonValue:"1"}),(0,e.createComponentVNode)(2,u,{buttonValue:"2"}),(0,e.createComponentVNode)(2,u,{buttonValue:"3"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,u,{buttonValue:"4"}),(0,e.createComponentVNode)(2,u,{buttonValue:"5"}),(0,e.createComponentVNode)(2,u,{buttonValue:"6"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,u,{buttonValue:"7"}),(0,e.createComponentVNode)(2,u,{buttonValue:"8"}),(0,e.createComponentVNode)(2,u,{buttonValue:"9"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,u,{buttonValue:"R",color:"red"}),(0,e.createComponentVNode)(2,u,{buttonValue:"0"}),(0,e.createComponentVNode)(2,u,{buttonValue:"E",color:"green"})]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Current Status",children:c||d?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lock Status",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:c?"LOCKING SYSTEM ERROR - 1701":"ALERT: MEMORY SYSTEM ERROR - 6040 201"})}),c?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Code",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"NEW INPUT, ASSHOLE"})}):""]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Secure Code",children:(0,e.createComponentVNode)(2,t.Box,{color:l?"red":"green",children:l?"*****":"NOT SET. ENTER NEW."})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lock Status",children:(0,e.createComponentVNode)(2,t.Box,{color:s?"red":"green",children:s?"Locked":"Unlocked"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Code",children:(0,e.createComponentVNode)(2,t.Box,{children:f||"Waiting for input"})}),(0,e.createComponentVNode)(2,t.Button,{top:".35em",left:".5em",disabled:s,color:"red",content:"Lock",icon:"lock",onClick:function(){function C(){return p("close")}return C}()})]})})]})})}return S}()},6272:function(I,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(98595),S=n(3939),y=n(321),k=n(5485),V=n(22091),p={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},i=function(g,N){(0,S.modalOpen)(g,"edit",{field:N.edit,value:N.value})},c=r.SecurityRecords=function(){function h(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.loginState,E=L.currentPage,w;if(T.logged_in)E===1?w=(0,e.createComponentVNode)(2,l):E===2?w=(0,e.createComponentVNode)(2,u):E===3&&(w=(0,e.createComponentVNode)(2,C));else return(0,e.createComponentVNode)(2,m.Window,{width:800,height:900,theme:"security",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});return(0,e.createComponentVNode)(2,m.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,V.TemporaryNotice),(0,e.createComponentVNode)(2,s),w]})})]})}return h}(),s=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.currentPage,E=L.general;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:T===1,onClick:function(){function w(){return B("page",{page:1})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"list"}),"List Records"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:T===2,onClick:function(){function w(){return B("page",{page:2})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wrench"}),"Record Maintenance"]}),T===3&&E&&!E.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:T===3,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"file"}),"Record: ",E.fields[0].value]})]})},l=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.records,E=(0,t.useLocalState)(N,"searchText",""),w=E[0],A=E[1],O=(0,t.useLocalState)(N,"sortId","name"),M=O[0],P=O[1],R=(0,t.useLocalState)(N,"sortOrder",!0),F=R[0],_=R[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,d,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,d,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,d,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,d,{id:"status",children:"Criminal Status"})]}),T.filter((0,a.createSearch)(w,function(U){return U.name+"|"+U.id+"|"+U.rank+"|"+U.fingerprint+"|"+U.status})).sort(function(U,W){var $=F?1:-1;return U[M].localeCompare(W[M])*$}).map(function(U){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+p[U.status],onClick:function(){function W(){return B("view",{uid_gen:U.uid_gen,uid_sec:U.uid_sec})}return W}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",U.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.status})]},U.id)})]})})})],4)},d=function(g,N){var x=(0,t.useLocalState)(N,"sortId","name"),B=x[0],L=x[1],T=(0,t.useLocalState)(N,"sortOrder",!0),E=T[0],w=T[1],A=g.id,O=g.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:B!==A&&"transparent",fluid:!0,onClick:function(){function M(){B===A?w(!E):(L(A),w(!0))}return M}(),children:[O,B===A&&(0,e.createComponentVNode)(2,o.Icon,{name:E?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},f=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.isPrinting,E=(0,t.useLocalState)(N,"searchText",""),w=E[0],A=E[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function O(){return B("new_general")}return O}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:T,icon:T?"spinner":"print",iconSpin:!!T,content:"Print Cell Log",onClick:function(){function O(){return(0,S.modalOpen)(N,"print_cell_log")}return O}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function O(M,P){return A(P)}return O}()})})]})},u=function(g,N){var x=(0,t.useBackend)(N),B=x.act;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"download",content:"Backup to Disk",tooltip:"This feature is not available.",tooltipPosition:"right"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"upload",content:"Upload from Disk",tooltip:"This feature is not available.",tooltipPosition:"right",my:"0.5rem"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){function L(){return B("delete_security_all")}return L}(),mb:"0.5rem"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",content:"Delete All Cell Logs",onClick:function(){function L(){return B("delete_cell_logs")}return L}()})]})},C=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.isPrinting,E=L.general,w=L.security;return!E||!E.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,level:2,mt:"-6px",title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:T,icon:T?"spinner":"print",iconSpin:!!T,content:"Print Record",onClick:function(){function A(){return B("print_record")}return A}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function A(){return B("delete_general")}return A}()})],4),children:(0,e.createComponentVNode)(2,b)})}),!w||!w.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function A(){return B("new_security")}return A}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:w.empty,content:"Delete Record",onClick:function(){function A(){return B("delete_security")}return A}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:w.fields.map(function(A,O){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:A.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(A.value),!!A.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:A.line_break?"1rem":"initial",onClick:function(){function M(){return i(N,A)}return M}()})]},O)})})})})}),(0,e.createComponentVNode)(2,v)],4)],0)},b=function(g,N){var x=(0,t.useBackend)(N),B=x.data,L=B.general;return!L||!L.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:L.fields.map(function(T,E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:T.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+T.value),!!T.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:T.line_break?"1rem":"initial",onClick:function(){function w(){return i(N,T)}return w}()})]},E)})})}),!!L.has_photos&&L.photos.map(function(T,E){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:T,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",E+1]},E)})]})},v=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function E(){return(0,S.modalOpen)(N,"comment_add")}return E}()}),children:T.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):T.comments.map(function(E,w){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:E.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),E.text||E,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function A(){return B("comment_delete",{id:w+1})}return A}()})]},w)})})})}},5099:function(I,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(89005),a=n(25328),t=n(35840),o=n(72253),m=n(36036),S=n(98595),y=n(3939);function k(f,u){var C=typeof Symbol!="undefined"&&f[Symbol.iterator]||f["@@iterator"];if(C)return(C=C.call(f)).next.bind(C);if(Array.isArray(f)||(C=V(f))||u&&f&&typeof f.length=="number"){C&&(f=C);var b=0;return function(){return b>=f.length?{done:!0}:{done:!1,value:f[b++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(f,u){if(f){if(typeof f=="string")return p(f,u);var C={}.toString.call(f).slice(8,-1);return C==="Object"&&f.constructor&&(C=f.constructor.name),C==="Map"||C==="Set"?Array.from(f):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?p(f,u):void 0}}function p(f,u){(u==null||u>f.length)&&(u=f.length);for(var C=0,b=Array(u);C=w},v=function(E,w){return E<=w},h=u.split(" "),g=[],N=function(){var E=L.value,w=E.split(":");if(w.length===0)return 0;if(w.length===1)return g.push(function(M){return(M.name+" ("+M.variant+")").toLocaleLowerCase().includes(w[0].toLocaleLowerCase())}),0;if(w.length>2)return{v:function(){function M(P){return!1}return M}()};var A,O=C;if(w[1][w[1].length-1]==="-"?(O=v,A=Number(w[1].substring(0,w[1].length-1))):w[1][w[1].length-1]==="+"?(O=b,A=Number(w[1].substring(0,w[1].length-1))):A=Number(w[1]),isNaN(A))return{v:function(){function M(P){return!1}return M}()};switch(w[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":g.push(function(M){return O(M.lifespan,A)});break;case"e":case"end":case"endurance":g.push(function(M){return O(M.endurance,A)});break;case"m":case"mat":case"maturation":g.push(function(M){return O(M.maturation,A)});break;case"pr":case"prod":case"production":g.push(function(M){return O(M.production,A)});break;case"y":case"yield":g.push(function(M){return O(M.yield,A)});break;case"po":case"pot":case"potency":g.push(function(M){return O(M.potency,A)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":g.push(function(M){return O(M.amount,A)});break;default:return{v:function(){function M(P){return!1}return M}()}}},x,B=k(h),L;!(L=B()).done;)if(x=N(),x!==0&&x)return x.v;return function(T){for(var E=0,w=g;E=1?Number(O):1)}return w}()})]})]})}},2916:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleConsoleContent=r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ShuttleConsole=function(){function p(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=i.type,u=f===void 0?"shuttle":f,C=i.blind_drop,b=d.authorization_required;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:240,children:[!!b&&(0,e.createComponentVNode)(2,t.Modal,{ml:1,mt:1,width:26,height:12,fontSize:"28px",fontFamily:"monospace",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2,children:(0,e.createComponentVNode)(2,t.Icon,{name:"minus-circle"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2,ml:2,color:"bad",children:u==="shuttle"?"SHUTTLE LOCKED":"BASE LOCKED"})]}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"18px",mt:4,children:(0,e.createComponentVNode)(2,t.Button,{lineHeight:"40px",icon:"arrow-circle-right",content:"Request Authorization",color:"bad",onClick:function(){function v(){return l("request")}return v}()})})]}),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,V,{type:u,blind_drop:C})})]})}return p}(),S=function(i,c){var s;return i==null||(s=i.find(function(l){return l.id===c}))==null?void 0:s.name},y=function(i,c){var s;return i==null||(s=i.find(function(l){return l.name===c}))==null?void 0:s.id},k={"In Transit":"good",Idle:"average",Igniting:"average",Recharging:"average",Missing:"bad","Unauthorized Access":"bad",Locked:"bad"},V=r.ShuttleConsoleContent=function(){function p(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=i.type,u=i.blind_drop,C=d.status,b=d.locked,v=d.authorization_required,h=d.destination,g=d.docked_location,N=d.timer_str,x=d.locations,B=x===void 0?[]:x;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,fontSize:"26px",textAlign:"center",fontFamily:"monospace",children:N||"00:00"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",fontSize:"14px",mb:1,children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,bold:!0,children:"STATUS:"}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:k[C]||"bad",ml:1,children:C||"Not Available"})]}),(0,e.createComponentVNode)(2,t.Section,{title:f==="shuttle"?"Shuttle Controls":"Base Launch Controls",level:2,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:g||"Not Available"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",buttons:f!=="shuttle"&&B.length===0&&!!u&&(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"exclamation-triangle",disabled:v||!u,content:"Blind Drop",onClick:function(){function L(){return l("random")}return L}()}),children:B.length===0&&(0,e.createComponentVNode)(2,t.Box,{mb:1.7,color:"bad",children:"Not Available"})||B.length===1&&(0,e.createComponentVNode)(2,t.Box,{mb:1.7,color:"average",children:S(B,h)})||(0,e.createComponentVNode)(2,t.Dropdown,{mb:1.7,over:!0,width:"240px",options:B.map(function(L){return L.name}),disabled:b||v,selected:S(B,h)||"Select a Destination",onSelected:function(){function L(T){return l("set_destination",{destination:y(B,T)})}return L}()})})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Depart",disabled:!S(B,h)||b||v||C!=="Idle",icon:"arrow-up",textAlign:"center",onClick:function(){function L(){return l("move",{shuttle_id:h})}return L}()})]})]})}return p}()},39401:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ShuttleManipulator=function(){function V(p,i){var c=(0,a.useLocalState)(i,"tabIndex",0),s=c[0],l=c[1],d=function(){function f(u){switch(u){case 0:return(0,e.createComponentVNode)(2,S);case 1:return(0,e.createComponentVNode)(2,y);case 2:return(0,e.createComponentVNode)(2,k);default:return"WE SHOULDN'T BE HERE!"}}return f}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===0,onClick:function(){function f(){return l(0)}return f}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===1,onClick:function(){function f(){return l(1)}return f}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===2,onClick:function(){function f(){return l(2)}return f}(),icon:"tools",children:"Modification"},"Modification")]}),d(s)]})})})}return V}(),S=function(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{title:f.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:f.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:f.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:f.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:f.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function u(){return s("jump_to",{type:"mobile",id:f.id})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function u(){return s("fast_travel",{id:f.id})}return u}()})]})]})},f.name)})})},y=function(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.templates_tabs,f=l.existing_shuttle,u=l.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:d.map(function(C){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===f.id,icon:"file",onClick:function(){function b(){return s("select_template_category",{cat:C})}return b}(),children:C},C)})}),!!f&&u[f.id].templates.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[C.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:C.description}),C.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:C.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function b(){return s("select_template",{shuttle_id:C.shuttle_id})}return b}()})})]})},C.name)})]})},k=function(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.existing_shuttle,f=l.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[d?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+d.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d.status}),d.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:d.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function u(){return s("jump_to",{type:"mobile",id:d.id})}return u}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),f?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+f.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[f.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:f.description}),f.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:f.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function u(){return s("preview",{shuttle_id:f.shuttle_id})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function u(){return s("load",{shuttle_id:f.shuttle_id})}return u}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},88284:function(I,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(98595),S=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],k={average:[.25,.5],bad:[.5,1/0]},V=["bad","average","average","good","average","average","bad"],p=r.Sleeper=function(){function u(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.hasOccupant,x=N?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,f);return(0,e.createComponentVNode)(2,m.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:x}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l)})]})})})}return u}(),i=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,d)],4)},c=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.occupant,x=g.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:x?"toggle-on":"toggle-off",selected:x,content:x?"On":"Off",onClick:function(){function B(){return h("auto_eject_dead_"+(x?"off":"on"))}return B}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function B(){return h("ejectify")}return B}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:N.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.maxHealth,value:N.health/N.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(N.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:S[N.stat][0],children:S[N.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.maxTemp,value:N.bodyTemperature/N.maxTemp,color:V[N.temperatureSuitability+3],children:[(0,a.round)(N.btCelsius,0),"\xB0C,",(0,a.round)(N.btFaren,0),"\xB0F"]})}),!!N.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.bloodMax,value:N.bloodLevel/N.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[N.bloodPercent,"%, ",N.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[N.pulse," BPM"]})],4)]})})},s=function(C,b){var v=(0,t.useBackend)(b),h=v.data,g=h.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:y.map(function(N,x){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:N[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:g[N[1]]/100,ranges:k,children:(0,a.round)(g[N[1]],0)},x)},x)})})})},l=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.hasOccupant,x=g.isBeakerLoaded,B=g.beakerMaxSpace,L=g.beakerFreeSpace,T=g.dialysis,E=T&&L>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!x||L<=0||!N,selected:E,icon:E?"toggle-on":"toggle-off",content:E?"Active":"Inactive",onClick:function(){function w(){return h("togglefilter")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!x,icon:"eject",content:"Eject",onClick:function(){function w(){return h("removebeaker")}return w}()})],4),children:x?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B,value:L/B,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[L,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},d=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.occupant,x=g.chemicals,B=g.maxchem,L=g.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:x.map(function(T,E){var w="",A;return T.overdosing?(w="bad",A=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):T.od_warning&&(w="average",A=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:T.title,level:"3",mx:"0",lineHeight:"18px",buttons:A,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B,value:T.occ_amount/B,color:w,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[T.pretty_amount,"/",B,"u"]}),L.map(function(O,M){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+O>B||N.stat===2,icon:"syringe",content:"Inject "+O+"u",title:"Inject "+O+"u of "+T.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function P(){return h("chemical",{chemid:T.id,amount:O})}return P}()},M)})]})})},E)})})},f=function(C,b){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},21597:function(I,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.SlotMachine=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data;if(i.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var c;return i.plays===1?c=i.plays+" player has tried their luck today!":c=i.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:c}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"50 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:i.working,content:i.working?"Spinning...":"Spin",onClick:function(){function s(){return p("spin")}return s}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:i.resultlvl,children:i.result})]})})})}return S}()},46348:function(I,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.Smartfridge=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.secure,s=i.can_dry,l=i.drying,d=i.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:s?"Drying rack":"Contents",buttons:!!s&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:l?"power-off":"times",content:l?"On":"Off",selected:l,onClick:function(){function f(){return p("drying")}return f}()}),children:[!d&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!d&&d.slice().sort(function(f,u){return f.display_name.localeCompare(u.display_name)}).map(function(f){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:f.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",f.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function u(){return p("vend",{index:f.vend,amount:1})}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:f.quantity,step:1,stepPixelSize:3,onChange:function(){function u(C,b){return p("vend",{index:f.vend,amount:b})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function u(){return p("vend",{index:f.vend,amount:f.quantity})}return u}()})]})]},f)})]})]})})})}return S}()},86162:function(I,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(49968),m=n(98595),S=1e3,y=r.Smes=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.capacityPercent,d=s.capacity,f=s.charge,u=s.inputAttempt,C=s.inputting,b=s.inputLevel,v=s.inputLevelMax,h=s.inputAvailable,g=s.outputPowernet,N=s.outputAttempt,x=s.outputting,B=s.outputLevel,L=s.outputLevelMax,T=s.outputUsed,E=l>=100&&"good"||C&&"average"||"bad",w=x&&"good"||f>0&&"average"||"bad";return(0,e.createComponentVNode)(2,m.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u?"sync-alt":"times",selected:u,onClick:function(){function A(){return c("tryinput")}return A}(),children:u?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:E,children:l>=100&&"Fully Charged"||C&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:b===0,onClick:function(){function A(){return c("input",{target:"min"})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:b===0,onClick:function(){function A(){return c("input",{adjust:-1e4})}return A}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:b/S,fillValue:h/S,minValue:0,maxValue:v/S,step:5,stepPixelSize:4,format:function(){function A(O){return(0,o.formatPower)(O*S,1)}return A}(),onChange:function(){function A(O,M){return c("input",{target:M*S})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:b===v,onClick:function(){function A(){return c("input",{adjust:1e4})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:b===v,onClick:function(){function A(){return c("input",{target:"max"})}return A}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(h)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:N?"power-off":"times",selected:N,onClick:function(){function A(){return c("tryoutput")}return A}(),children:N?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:w,children:g?x?"Sending":f>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:B===0,onClick:function(){function A(){return c("output",{target:"min"})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:B===0,onClick:function(){function A(){return c("output",{adjust:-1e4})}return A}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:B/S,minValue:0,maxValue:L/S,step:5,stepPixelSize:4,format:function(){function A(O){return(0,o.formatPower)(O*S,1)}return A}(),onChange:function(){function A(O,M){return c("output",{target:M*S})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:B===L,onClick:function(){function A(){return c("output",{adjust:1e4})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:B===L,onClick:function(){function A(){return c("output",{target:"max"})}return A}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(T)})]})})]})})})}return k}()},63584:function(I,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.SolarControl=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=0,s=1,l=2,d=i.generated,f=i.generated_ratio,u=i.tracking_state,C=i.tracking_rate,b=i.connected_panels,v=i.connected_tracker,h=i.cdir,g=i.direction,N=i.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function x(){return p("refresh")}return x}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:v?"good":"bad",children:v?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:b>0?"good":"bad",children:b})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:f,children:d+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[h,"\xB0 (",g,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[u===l&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),u===s&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",C,"\xB0/h (",N,")"," "]}),u===c&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[u!==l&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:h,onDrag:function(){function x(B,L){return p("cdir",{cdir:L})}return x}()}),u===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:u===c,onClick:function(){function x(){return p("track",{track:c})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:u===s,onClick:function(){function x(){return p("track",{track:s})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:u===l,disabled:!v,onClick:function(){function x(){return p("track",{track:l})}return x}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[u===s&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:C,format:function(){function x(B){var L=Math.sign(B)>0?"+":"-";return L+Math.abs(B)}return x}(),onDrag:function(){function x(B,L){return p("tdir",{tdir:L})}return x}()}),u===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),u===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return S}()},38096:function(I,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.SpawnersMenu=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:s.name+" ("+s.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function l(){return p("jump",{ID:s.uids})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function l(){return p("spawn",{ID:s.uids})}return l}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:s.desc}),!!s.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:s.fluff}),!!s.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:s.important_info})]},s.name)})})})})}return S}()},7957:function(I,r,n){"use strict";r.__esModule=!0,r.SpiderOS=r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),m=n(98595);function S(f,u){f.prototype=Object.create(u.prototype),f.prototype.constructor=f,y(f,u)}function y(f,u){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,b){return C.__proto__=b,C},y(f,u)}var k=r.SpiderOS=function(){function f(u,C){var b=(0,a.useBackend)(C),v=b.act,h=b.data,g;return h.suit_tgui_state===0?g=(0,e.createComponentVNode)(2,t.Flex,{direction:"row",spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex,{direction:"column",width:"60%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{backgroundColor:"rgba(0, 0, 0, 0)",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2.2,backgroundColor:"rgba(0, 0, 0, 0)",children:(0,e.createComponentVNode)(2,s)})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"40%",height:"190px",grow:1,backgroundColor:"rgba(0, 0, 0, 0)",children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,p)]})]}):h.suit_tgui_state===1&&(g=(0,e.createComponentVNode)(2,t.Flex,{width:"100%",height:"100%",direction:"column",shrink:1,spacing:1,children:(0,e.createComponentVNode)(2,t.Flex.Item,{backgroundColor:"rgba(0, 0, 0, 0.8)",height:"100%",children:[(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,d,{allMessages:h.current_load_text,finishedTimeout:3e3,current_initialisation_phase:h.current_initialisation_phase,end_terminal:h.end_terminal,onFinished:function(){function N(){return v("set_UI_state",{suit_tgui_state:0})}return N}()})]})})),(0,e.createComponentVNode)(2,m.Window,{width:800,height:630,theme:"spider_clan",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",spacing:1,children:g})})})}return f}(),V=function(u,C){var b=(0,a.useBackend)(C),v=b.data,h=v.stylesIcon,g=v.style_preview_icon_state;return(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u043A\u043E\u0441\u0442\u044E\u043C\u0430",style:{"text-align":"center"},m:"0px",width:"100%",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0432\u043D\u0435\u0448\u043D\u0435\u0433\u043E \u0432\u0438\u0434\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430! \u041D\u0430\u0448\u0438 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0442 \u0432\u0430\u043C \u043F\u043E\u0434\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C \u043F\u043E\u0434 \u0441\u0435\u0431\u044F, \u043F\u0440\u0438 \u044D\u0442\u043E\u043C \u043D\u0435 \u0442\u0435\u0440\u044F\u044F \u043E\u0431\u043E\u0440\u043E\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0445 \u043A\u0430\u0447\u0435\u0441\u0442\u0432. \u041F\u043E\u0442\u043E\u043C\u0443 \u0447\u0442\u043E \u0443\u0434\u043E\u0431\u0441\u0442\u0432\u043E \u043F\u0440\u0438 \u043D\u043E\u0448\u0435\u043D\u0438\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430, \u0436\u0438\u0437\u043D\u0435\u043D\u043D\u043E \u0432\u0430\u0436\u043D\u043E \u0434\u043B\u044F \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0435\u0433\u043E \u0443\u0431\u0438\u0439\u0446\u044B.",tooltipPosition:"bottom-start"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",grow:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},mr:10,ml:10,children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"128px",width:"128px",icon:h,icon_state:g,style:{"margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})})})})},p=function(u,C){var b=(0,a.useBackend)(C),v=b.act,h=b.data,g=h.designs,N=h.design_choice,x=h.scarf_design_choice,B=h.colors,L=h.color_choice,T=h.genders,E=h.preferred_clothes_gender,w=h.suit_state,A=h.preferred_scarf_over_hood,O=h.show_charge_UI,M=h.has_martial_art,P=h.show_concentration_UI,R;w===0?R="\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C":R="\u0414\u0435\u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C";var F;A===0?F="\u041A\u0430\u043F\u044E\u0448\u043E\u043D":F="\u0428\u0430\u0440\u0444";var _;A===1?_=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0442\u0438\u043B\u044C \u0448\u0430\u0440\u0444\u0430",content:(0,e.createComponentVNode)(2,t.Dropdown,{options:g,selected:x,onSelected:function(){function W($){return v("set_scarf_design",{scarf_design_choice:$})}return W}()})}):_=null;var U;return M?U=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041A\u043E\u043D\u0446\u0435\u043D\u0442\u0440\u0430\u0446\u0438\u044F",content:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{selected:P,width:"78px",textAlign:"left",content:P?"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C":"\u0421\u043A\u0440\u044B\u0442\u044C",onClick:function(){function W(){return v("toggle_ui_concentration")}return W}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",content:"?",tooltip:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0449\u0435\u0433\u043E \u0441\u043A\u043E\u043D\u0446\u0435\u043D\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u044B \u043B\u0438 \u0432\u044B \u0434\u043B\u044F \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0431\u043E\u0435\u0432\u043E\u0433\u043E \u0438\u0441\u0441\u043A\u0443\u0441\u0442\u0432\u0430.",tooltipPosition:"top-start"})]})}):U=null,(0,e.createComponentVNode)(2,t.Flex,{direction:"row",grow:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,width:"100%",children:[(0,e.createComponentVNode)(2,t.NoticeBox,{success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0442\u0438\u043B\u044C",children:(0,e.createComponentVNode)(2,t.Dropdown,{options:g,selected:N,onSelected:function(){function W($){return v("set_design",{design_choice:$})}return W}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0426\u0432\u0435\u0442",children:(0,e.createComponentVNode)(2,t.Dropdown,{options:B,selected:L,onSelected:function(){function W($){return v("set_color",{color_choice:$})}return W}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0416\u0435\u043D\u0441\u043A\u0438\u0439/\u041C\u0443\u0436\u0441\u043A\u043E\u0439",children:(0,e.createComponentVNode)(2,t.Dropdown,{options:T,selected:E,onSelected:function(){function W($){return v("set_gender",{preferred_clothes_gender:$})}return W}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0428\u0430\u0440\u0444/\u041A\u0430\u043F\u044E\u0448\u043E\u043D",children:[(0,e.createComponentVNode)(2,t.Button,{className:w===0?"":"Button_disabled",width:"90px",selected:A,disabled:w,textAlign:"left",content:F,onClick:function(){function W(){return v("toggle_scarf")}return W}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",content:"?",tooltip:'\u0421 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u043E\u0439 "\u0428\u0430\u0440\u0444" \u0432\u0430\u0448 \u043A\u0430\u043F\u044E\u0448\u043E\u043D \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u0438\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0432\u043E\u043B\u043E\u0441\u044B. \u041D\u043E \u044D\u0442\u043E \u043D\u0435 \u0437\u043D\u0430\u0447\u0438\u0442, \u0447\u0442\u043E \u0432\u0430\u0448\u0430 \u0433\u043E\u043B\u043E\u0432\u0430 \u043D\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043D\u0430! \u0410\u0434\u0430\u043F\u0442\u0438\u0432\u043D\u044B\u0435 \u043D\u0430\u043D\u043E-\u0432\u043E\u043B\u043E\u043A\u043D\u0430 \u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u0432\u0441\u0451 \u0435\u0449\u0451 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u044E\u0442 \u043D\u0430 \u043F\u043E\u0442\u0435\u043D\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0435 \u0443\u0433\u0440\u043E\u0437\u044B \u043F\u0440\u0438\u043A\u0440\u044B\u0432\u0430\u044F \u0432\u0430\u0448\u0443 \u0433\u043E\u043B\u043E\u0432\u0443! \u0423\u0442\u043E\u0447\u043D\u0435\u043D\u0438\u0435: \u043D\u0430\u043D\u043E\u0432\u043E\u043B\u043E\u043A\u043D\u0430 \u0442\u0430\u043A \u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u043F\u0440\u0438\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0443 \u0433\u043E\u043B\u043E\u0432\u0443 \u0438 \u043E\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u0433\u043E\u043B\u043E\u0432\u043D\u044B\u0445 \u0443\u0431\u043E\u0440\u043E\u0432 \u0441 \u0446\u0435\u043B\u044C\u044E \u0443\u043C\u0435\u043D\u044C\u0448\u0435\u043D\u0438\u044F \u043F\u043E\u043C\u0435\u0445 \u0432 \u0438\u0445 \u0440\u0430\u0431\u043E\u0442\u0435.',tooltipPosition:"top-start"})]}),_,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0430\u0440\u044F\u0434 \u043A\u043E\u0441\u0442\u044E\u043C\u0430",children:[(0,e.createComponentVNode)(2,t.Button,{selected:O,width:"90px",textAlign:"left",content:O?"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C":"\u0421\u043A\u0440\u044B\u0442\u044C",onClick:function(){function W(){return v("toggle_ui_charge")}return W}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",content:"?",tooltip:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0449\u0435\u0433\u043E \u0437\u0430\u0440\u044F\u0434 \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430.",tooltipPosition:"top-start"})]}),U]})}),(0,e.createComponentVNode)(2,t.NoticeBox,{success:0,danger:0,mt:-1.3,mb:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{width:"80%",icon:"power-off",textAlign:"center",content:R,backgroundColor:L,tooltip:"\u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044E \u0432\u0441\u0435\u0445 \u0444\u0443\u043D\u043A\u0446\u0438\u0439 \u0432 \u043D\u0451\u043C \u0437\u0430\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0445. \n\u0423\u0447\u0442\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0441\u0442\u0438 \u043B\u044E\u0431\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438, \u043A\u043E\u0433\u0434\u0430 \u043A\u043E\u0441\u0442\u044E\u043C \u0431\u0443\u0434\u0435\u0442 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D. \n\u0422\u0430\u043A \u0436\u0435 \u0432\u043A\u043B\u044E\u0447\u0451\u043D\u043D\u044B\u0439 \u043A\u043E\u0441\u0442\u044E\u043C \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u043E \u043F\u043E\u0442\u0440\u0435\u0431\u043B\u044F\u0435\u0442 \u0437\u0430\u0440\u044F\u0434 \u0434\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0440\u0430\u0431\u043E\u0442\u044B \u0432\u0441\u0435\u0445 \u0444\u0443\u043D\u043A\u0446\u0438\u0439 \u0438 \u043C\u043E\u0434\u0443\u043B\u0435\u0439. \n\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u043A\u043E\u0441\u0442\u044E\u043C \u043D\u0435\u043B\u044C\u0437\u044F \u0441\u043D\u044F\u0442\u044C \u043E\u0431\u044B\u0447\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C, \u043F\u043E\u043A\u0430 \u043E\u043D \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D. \n\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u043E\u0432\u043D\u043E \u043A\u0430\u043A \u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u043C\u043D\u043E\u0433\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u0438. \u041F\u043E\u0434\u0443\u043C\u0430\u0439\u0442\u0435 \u0434\u0432\u0430\u0436\u0434\u044B \u043F\u0440\u0435\u0436\u0434\u0435, \u0447\u0435\u043C \u0432\u044B\u043A\u043B\u044E\u0447\u0430\u0442\u044C \u0435\u0433\u043E \u043D\u0430 \u0442\u0435\u0440\u0440\u0438\u0442\u043E\u0440\u0438\u0438 \u0432\u0440\u0430\u0433\u0430!",tooltipPosition:"top-start",onClick:function(){function W(){return v("initialise_suit")}return W}()})})]})})},i=function(u,C){var b=(0,a.useBackend)(C),v=b.data,h=v.actionsIcon;return(0,e.createComponentVNode)(2,t.Section,{m:"0",title:"\u0421\u043E\u0432\u0435\u0442\u044B \u0438 \u043F\u043E\u0434\u0441\u043A\u0430\u0437\u043A\u0438",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041C\u043E\u043B\u043E\u0434\u044B\u043C \u0443\u0431\u0438\u0439\u0446\u0430\u043C \u0447\u0430\u0441\u0442\u043E \u043D\u0435 \u043B\u0435\u0433\u043A\u043E \u043E\u0441\u0432\u043E\u0438\u0442\u0441\u044F \u0432 \u043F\u043E\u043B\u0435\u0432\u044B\u0445 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445, \u0434\u0430\u0436\u0435 \u043F\u043E\u0441\u043B\u0435 \u0438\u043D\u0442\u0435\u043D\u0441\u0438\u0432\u043D\u044B\u0445 \u0442\u0440\u0435\u043D\u0438\u0440\u043E\u0432\u043E\u043A. \n\u042D\u0442\u043E\u0442 \u0440\u0430\u0437\u0434\u0435\u043B \u043F\u0440\u0438\u0437\u0432\u0430\u043D \u043F\u043E\u043C\u043E\u0447\u044C \u0432\u0430\u043C \u0441\u043E\u0432\u0435\u0442\u0430\u043C\u0438 \u043F\u043E \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u044B\u043C \u0447\u0430\u0441\u0442\u043E \u0432\u043E\u0437\u043D\u0438\u043A\u0430\u044E\u0449\u0438\u043C \u0432\u043E\u043F\u0440\u043E\u0441\u0430\u043C \u043A\u0430\u0441\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u044B\u0445 \u043C\u0438\u0441\u0441\u0438\u0439 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0432\u0430\u043C \u0432\u044B\u0434\u0430\u0434\u0443\u0442 \u0438\u043B\u0438 \u0440\u0430\u0441\u0441\u043A\u0430\u0437\u0430\u0442\u044C \u043E \u043C\u0430\u043B\u043E\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438 \u043A\u043E\u0442\u043E\u0440\u0443\u044E \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043E\u0431\u0435\u0440\u043D\u0443\u0442\u044C \u0432 \u0441\u0432\u043E\u044E \u043F\u043E\u043B\u044C\u0437\u0443.",tooltipPosition:"bottom-start"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",grow:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"ninja_teleport",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u0438 \u0448\u0430\u0442\u0442\u043B",content:"\u0412 \u0432\u0430\u0448\u0435\u043C \u0414\u043E\u0434\u0437\u0451 \u0435\u0441\u0442\u044C \u043B\u0438\u0447\u043D\u044B\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430 \u0434\u043B\u044F \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u0438 \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0422\u043E\u0447\u043A\u0430 \u043D\u0430\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u0430\u044F, \u043D\u043E \u043F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442 \u0438\u0434\u0451\u0442 \u043D\u0430 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0442\u043E\u043D\u043D\u0435\u043B\u0438 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0438\u043B\u0438 \u043C\u0430\u043B\u043E\u043F\u043E\u0441\u0435\u0449\u0430\u0435\u043C\u044B\u0435 \u043C\u0435\u0441\u0442\u0430. \n\u042D\u0442\u043E \u043E\u0442\u043B\u0438\u0447\u043D\u044B\u0439 \u0441\u043F\u043E\u0441\u043E\u0431 \u0431\u044B\u0441\u0442\u0440\u043E \u043F\u0440\u0438\u0441\u0442\u0443\u043F\u0438\u0442\u044C \u043A \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044E \u0437\u0430\u0434\u0430\u043D\u0438\u044F. \n\u041F\u043E\u043B\u044C\u0437\u0443\u044F\u0441\u044C \u0432\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u043C \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440\u043E\u043C \u0448\u0430\u0442\u0442\u043B\u0430, \u0432\u044B \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u0435\u0433\u043E \u043A \u0441\u0435\u0431\u0435 \u0438 \u0432\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430\u0437\u0430\u0434. \n\u0422\u0430\u043A \u0436\u0435 \u0432 \u0441\u043B\u0443\u0447\u0430\u0435 \u0435\u0441\u043B\u0438 \u0432\u044B \u0440\u0435\u0448\u0438\u0442\u0435 \u043F\u043E\u043B\u0435\u0442\u0435\u0442\u044C \u043D\u0430 \u0448\u0430\u0442\u0442\u043B\u0435, \u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u0435\u043C \u0432\u0430\u043C, \u0447\u0442\u043E \u0432\u043E \u0438\u0437\u0431\u0435\u0436\u0430\u043D\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043E \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0438\u044F \u0438\u043B\u0438 \u043A\u0440\u0430\u0436\u0438 \u0448\u0430\u0442\u0442\u043B\u0430 \u0438 \u043F\u043E\u043F\u0430\u0434\u0430\u043D\u0438\u044F \u043D\u0430 \u0432\u0430\u0448\u0443 \u0431\u0430\u0437\u0443 \u043F\u043E\u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0438\u0445 \u043B\u0438\u0446, \u043E\u0442\u043B\u0438\u0447\u043D\u043E\u0439 \u043F\u0440\u0430\u043A\u0442\u0438\u043A\u043E\u0439 \u0431\u0443\u0434\u0435\u0442 \u043E\u0442\u043E\u0437\u0432\u0430\u0442\u044C \u0435\u0433\u043E.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"headset_green",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0430\u0448 \u043D\u0430\u0443\u0448\u043D\u0438\u043A",content:"\u0412 \u043E\u0442\u043B\u0438\u0447\u0438\u0438 \u043E\u0442 \u0441\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u044B\u0445 \u043D\u0430\u0443\u0448\u043D\u0438\u043A\u043E\u0432 \u0431\u043E\u043B\u044C\u0448\u0438\u043D\u0441\u0442\u0432\u0430 \u043A\u043E\u0440\u043F\u043E\u0440\u0430\u0446\u0438\u0439, \u043D\u0430\u0448 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u0441\u043E\u0437\u0434\u0430\u043D \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u043E \u0434\u043B\u044F \u043F\u043E\u043C\u043E\u0449\u0438 \u0432 \u0432\u0430\u0448\u0435\u043C \u0432\u043D\u0435\u0434\u0440\u0435\u043D\u0438\u0438. \u0412 \u043D\u0435\u0433\u043E \u0432\u0441\u0442\u0440\u043E\u0435\u043D \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0439 \u043A\u0430\u043D\u0430\u043B \u0434\u043B\u044F \u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0441 \u0432\u0430\u0448\u0438\u043C \u0431\u043E\u0440\u0433\u043E\u043C \u0438\u043B\u0438 \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u0447\u043B\u0435\u043D\u0430\u043C\u0438 \u043A\u043B\u0430\u043D\u0430. \n\u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u043E\u043D \u0441\u043F\u043E\u0441\u043E\u0431\u0435\u043D \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043B\u044E\u0431\u044B\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043D\u0430\u0443\u0448\u043D\u0438\u043A\u0438 \u0438 \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0434\u043B\u044F \u043F\u0440\u043E\u0441\u043B\u0443\u0448\u043A\u0438 \u0438/\u0438\u043B\u0438 \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440\u0430 \u043A\u0430\u043D\u0430\u043B\u044B \u0438\u0445 \u043A\u043B\u044E\u0447\u0435\u0439. \u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u044F \u044D\u0442\u043E\u043C\u0443 \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0441\u0442\u0435\u043F\u0435\u043D\u043D\u043E \u043D\u0430\u043A\u0430\u043F\u043B\u0438\u0432\u0430\u0442\u044C \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0435 \u0432\u0430\u043C \u043C\u0435\u0441\u0442\u043D\u044B\u0435 \u043A\u0430\u043D\u0430\u043B\u044B \u0441\u0432\u044F\u0437\u0438 \u0434\u043B\u044F \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043B\u044E\u0431\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438. \n\u0422\u0430\u043A \u0436\u0435 \u0432\u0430\u0448 \u043D\u0430\u0443\u0448\u043D\u0438\u043A \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438- \u0447\u0435\u0441\u043A\u0438 \u0443\u043B\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442 \u0438 \u043F\u0435\u0440\u0435\u0432\u043E\u0434\u0438\u0442 \u0431\u0438\u043D\u0430\u0440\u043D\u044B\u0435 \u0441\u0438\u0433\u043D\u0430\u043B\u044B \u0433\u0435\u043D\u0435\u0440\u0438\u0440\u0443\u0435\u043C\u044B\u0435 \u0441\u0438\u043D\u0442\u0435\u0442\u0438\u043A\u0430\u043C\u0438 \u043F\u0440\u0438 \u043E\u0431\u0449\u0435\u043D\u0438\u0438 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043E\u043C. \u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044F \u0432\u0430\u043C \u0441\u0430\u043C\u0438\u043C \u043E\u0431\u0449\u0430\u0442\u044C\u0441\u044F \u0441 \u043D\u0438\u043C\u0438.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"ninja_sleeper",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041F\u043E\u0445\u0438\u0449\u0435\u043D\u0438\u0435 \u044D\u043A\u0438\u043F\u0430\u0436\u0430",content:"\u041F\u043E\u0440\u043E\u0439 \u043A\u043B\u0430\u043D\u0443 \u043D\u0443\u0436\u043D\u044B \u0441\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u043A\u043E\u0442\u043E\u0440\u044B\u043C\u0438 \u043C\u043E\u0433\u0443\u0442 \u043E\u0431\u043B\u0430\u0434\u0430\u0442\u044C \u043B\u044E\u0434\u0438 \u0440\u0430\u0431\u043E\u0442\u0430\u044E\u0449\u0438\u0435 \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0435 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0412 \u0442\u0430\u043A\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0432\u0430\u043C \u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0441\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E \u043E\u0441\u043E\u0431\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0447\u0443\u0436\u043E\u0433\u043E \u0440\u0430\u0437\u0443\u043C\u0430. \u0414\u0430\u0436\u0435 \u0435\u0441\u043B\u0438 \u0432\u0430\u043C \u043D\u0435 \u0443\u0434\u0430\u0441\u0442\u0441\u044F \u043D\u0430\u0439\u0442\u0438 \u043E\u0431\u043B\u0430\u0434\u0430\u044E\u0449\u0435\u0433\u043E \u0432\u0441\u0435\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439 \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430, \u043C\u043E\u0436\u043D\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043E\u0431\u0440\u0430\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043F\u043E \u043A\u0440\u0443\u043F\u0438\u0446\u0430\u043C \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u044F \u043F\u043E\u0445\u0438\u0449\u0430\u0442\u044C \u043B\u044E\u0434\u0435\u0439. \n\u0414\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043F\u043E\u0445\u0438- \u0442\u0438\u0442\u044C \u043B\u044E\u0434\u0435\u0439. \u0423 \u0432\u0430\u0441 \u043D\u0430 \u0448\u0430\u0442\u0442\u043B\u0435 \u0435\u0441\u0442\u044C \u0441\u043A\u0430\u0444\u0430\u043D\u0434\u0440\u044B, \u0430 \u043D\u0430 \u0431\u0430\u0437\u0435 \u0437\u0430\u043F\u0430\u0441 \u043D\u0430- \u0440\u0443\u0447\u043D\u0438\u043A\u043E\u0432, \u043A\u0438\u0441\u043B\u043E\u0440\u043E\u0434\u0430 \u0438 \u0431\u0430\u043B\u043B\u043E- \u043D\u043E\u0432. \n\u0422\u0430\u043A \u0436\u0435 \u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u0435\u043C, \u0447\u0442\u043E \u0432\u0430\u0448\u0438 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u044B \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u0432 \u043B\u044E\u0434\u0435\u0439 \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0438\u043C\u043F\u0443\u043B\u044C\u0441, \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E \u0441\u0442\u0430\u043D\u044F \u0438\u0445 \u043D\u0430 \u043A\u043E\u0440\u043E\u0442\u043A\u043E\u0435 \u0432\u0440\u0435\u043C\u044F. ",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"ai_face",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0430\u0431\u043E\u0442\u0430\u0436 \u0418\u0418",content:"\u0418\u043D\u043E\u0433\u0434\u0430 \u0443 \u043D\u0430\u0441 \u0437\u0430\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0442 \u0441\u0430\u0431\u043E- \u0442\u0430\u0436 \u0418\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u0438\u043D\u0442\u0435\u043B\u043B\u0435\u043A\u0442\u0430 \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0430\u0445 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438. \u042D\u0442\u043E \u043F\u0440\u043E- \u0446\u0435\u0441\u0441 \u0441\u043B\u043E\u0436\u043D\u044B\u0439 \u0438 \u0442\u0440\u0435\u0431\u0443\u044E\u0449\u0438\u0439 \u043E\u0442 \u043D\u0430\u0441 \u043E\u0441\u043D\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u043F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0438. \n\u041F\u0440\u0435\u0434\u043F\u043E\u0447\u0438\u0442\u0430\u0435\u043C\u044B\u0439 \u043A\u043B\u0430\u043D\u043E\u043C \u043C\u0435\u0442\u043E\u0434 \u044D\u0442\u043E \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u0435 \u0443\u044F\u0437\u0432\u0438\u043C\u043E\u0441\u0442\u0438 \u043F\u0440\u044F\u043C\u043E \u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043E\u0447\u043D\u043E\u0439 \u0434\u043B\u044F \u0437\u0430\u043A\u043E\u043D\u043E\u0432 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0435\u0439 \u0432\u044B\u0432\u0435\u0441\u0442\u0438 \u0418\u0418 \u0438\u0437 \u0441\u0442\u0440\u043E\u044F. \u0412 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0435 \u0442\u0430\u043A\u043E\u0433\u043E \u043C\u0435\u0442\u043E\u0434\u0430 \u043C\u044B \u043C\u043E\u0436\u0435\u043C \u043B\u0435\u0433\u043A\u043E \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0418\u0418 \u0430\u0431\u0441\u0443\u0440\u0434\u043D\u044B\u043C\u0438 \u0437\u0430\u043A\u043E\u043D\u0430\u043C\u0438, \u043D\u043E \u044D\u0442\u043E \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043D\u0430\u0441 \u0432 \u0442\u043E\u043C \u043F\u043B\u0430\u043D\u0435, \u0447\u0442\u043E \u0434\u043B\u044F \u0432\u0437\u043B\u043E\u043C\u0430 \u0432 \u0438\u0442\u043E\u0433\u0435 \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0442 \u0442\u043E\u043B\u044C\u043A\u043E \u043A\u043E\u043D\u0441\u043E\u043B\u0438 \u0432 \u0441\u0430\u043C\u043E\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043E\u0447\u043D\u043E\u0439. \u0422\u0430\u043A \u0436\u0435 \u0432\u0437\u043B\u043E\u043C \u0437\u0430\u0434\u0430\u0447\u0430 \u043D\u0435\u043B\u0451\u0433\u043A\u0430\u044F - \u0441\u0438\u0441\u0442\u0435\u043C\u044B \u0437\u0430\u0449\u0438\u0442\u044B \u0435\u0441\u0442\u044C \u0432\u0435\u0437\u0434\u0435. \u0410 \u043F\u0440\u043E\u0446\u0435\u0441\u0441 \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u0432\u0440\u0435\u043C\u044F. \u041D\u0435 \u0443\u0434\u0438\u0432\u043B\u044F\u0439\u0442\u0435\u0441\u044C \u0435\u0441\u043B\u0438 \u0418\u0418 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u043E\u0442\u0438\u0432\u043E\u0434\u0435\u0439\u0441\u0442- \u0432\u043E\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0438\u043C \u043F\u043E\u043F\u044B\u0442\u043A\u0430\u043C \u0435\u0433\u043E \u0441\u043B\u043E\u043C\u0430\u0442\u044C.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"ninja_borg",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0430\u0431\u043E\u0442\u0430\u0436 \u0440\u043E\u0431\u043E\u0442\u043E\u0432",content:'\u0418\u043D\u043E\u0433\u0434\u0430 \u043E\u0446\u0435\u043D\u0438\u0432\u0430\u044F \u0432\u0430\u0448\u0438 \u0448\u0430\u043D\u0441\u044B \u043D\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u043C\u0438\u0441\u0441\u0438\u0438 \u0434\u043B\u044F \u0438\u0445 \u0443\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u044F \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0430\u0445, \u0447\u0442\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442 \u0440\u043E\u0431\u043E\u0442\u043E\u0432 \u0434\u043B\u044F \u0441\u0432\u043E\u0438\u0445 \u0446\u0435\u043B\u0435\u0439, \u043C\u044B \u0434\u0430\u0451\u043C \u0432\u0430\u043C \u043E\u0441\u043E\u0431\u044B\u0439 "\u0423\u043B\u0443\u0447\u0448\u0430\u044E\u0449\u0438\u0439" \u0438\u0445 \u043F\u0440\u0438\u0431\u043E\u0440, \u0432\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u0439 \u0432 \u0432\u0430\u0448\u0438 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438. \n\u041F\u0440\u0438 \u0432\u0437\u043B\u043E\u043C\u0435 \u043A\u0438\u0431\u043E\u0440\u0433\u0430 \u0442\u0430\u043A\u0438\u043C \u043F\u0440\u0438\u0431\u043E\u0440\u043E\u043C(\u0412\u0437\u043B\u043E\u043C \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u0432\u0440\u0435\u043C\u044F) \u0432\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 \u043B\u043E\u044F\u043B\u044C\u043D\u043E\u0433\u043E \u043A\u043B\u0430\u043D\u0443 \u0438 \u0432\u0430\u043C \u043B\u0438\u0447\u043D\u043E \u0441\u043B\u0443\u0433\u0443 \u0441\u043F\u043E\u0441\u043E\u0431- \u043D\u043E\u0433\u043E \u043D\u0430 \u043E\u043A\u0430\u0437\u0430\u043D\u0438\u0435 \u043F\u043E\u043C\u043E\u0449\u0438 \u043A\u0430\u043A \u0432 \u0441\u0430\u0431\u043E\u0442\u0430\u0436\u0435 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0442\u0430\u043A \u0438 \u0432 \u0432\u0430\u0448\u0435\u043C \u043B\u0435\u0447\u0435\u043D\u0438\u0438. \n\u0422\u0430\u043A \u0436\u0435 \u0440\u043E\u0431\u043E\u0442 \u0431\u0443\u0434\u0435\u0442 \u043E\u0441\u043D\u0430\u0449\u0451\u043D \u043B\u0438\u0447\u043D\u043E\u0439 \u043A\u0430\u0442\u0430\u043D\u043E\u0439, \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E\u043C \u043C\u0430\u0441\u043A\u0438\u0440\u043E\u0432\u043A\u0438, \u043F\u0438\u043D\u043F\u043E\u0438\u043D\u0442\u0435\u0440\u043E\u043C \u0443\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0449\u0438\u043C \u0435\u043C\u0443 \u043D\u0430 \u0432\u0430\u0441 \u0438 \u0433\u0435\u043D\u0435\u0440\u0430\u0442\u043E\u0440\u043E\u043C \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u0441\u044E\u0440\u0438\u043A\u0435\u043D\u043E\u0432. \u041F\u043E\u043C\u043D\u0438\u0442\u0435, \u0447\u0442\u043E \u043A\u0430\u0442\u0430\u043D\u0430 \u0440\u043E\u0431\u043E\u0442\u0430 \u043D\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u0430 \u043E\u0431\u0435\u0441\u043F\u0435\u0447\u0438\u0442\u044C \u0435\u0433\u043E \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0442\u0440\u0430\u043D\u0441\u043B\u043E\u043A\u0430\u0446\u0438\u044E!',position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"server",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0430\u0431\u043E\u0442\u0430\u0436 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0439",content:"\u041D\u0430 \u043D\u0430\u0443\u0447\u043D\u044B\u0445 \u043E\u0431\u044C\u0435\u043A\u0442\u0430\u0445 \u0432\u0441\u0435\u0433\u0434\u0430 \u0435\u0441\u0442\u044C \u0441\u0432\u043E\u044F \u043A\u043E\u043C\u0430\u043D\u0434\u0430 \u0443\u0447\u0451\u043D\u044B\u0445 \u0438 \u043C\u043D\u043E- \u0436\u0435\u0441\u0442\u0432\u043E \u0434\u0430\u043D\u043D\u044B\u0445 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u0440\u0438\u0445\u043E- \u0434\u0438\u0442\u0441\u044F \u0433\u0434\u0435 \u0442\u043E \u0445\u0440\u0430\u043D\u0438\u0442\u044C. \u0412 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0430\u043A\u043E\u0433\u043E \u043E\u0431\u044C\u0435\u043A\u0442\u0430 \u043E\u0431\u044B\u0447\u043D\u043E \u0432\u044B\u0441\u0442\u0443- \u043F\u0430\u044E\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0410 \u043A\u0430\u043A \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u043A\u043E\u0440\u043F\u043E\u0440\u0430\u0446\u0438\u0438 \u0432\u0435\u0447\u043D\u043E \u0433\u0440\u044B\u0437\u0443\u0442\u0441\u044F \u0437\u0430 \u0437\u043D\u0430\u043D\u0438\u044F. \u0427\u0442\u043E \u043D\u0430\u043C \u043D\u0430 \u0440\u0443\u043A\u0443. \n\u041C\u044B \u0440\u0430\u0437\u0440\u0430\u0431\u043E\u0442\u0430\u043B\u0438 \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0439 \u0432\u0438\u0440\u0443\u0441 \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043F\u0438\u0441\u0430\u043D \u043D\u0430 \u0432\u0430\u0448\u0438 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 \u043F\u0435\u0440\u0435\u0434 \u043C\u0438\u0441\u0441\u0438\u0435\u0439 \u0442\u0430\u043A\u043E\u0433\u043E \u0440\u043E\u0434\u0430. \u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u0431\u0443\u0434\u0435\u0442 \u043B\u0438\u0448\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0435\u0433\u043E \u043D\u0430\u043F\u0440\u044F\u043C\u0443\u044E \u043D\u0430 \u0438\u0445 \u043D\u0430\u0443\u0447\u043D\u044B\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u0432\u0441\u0435 \u0438\u0445 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u044F \u0431\u0443\u0434\u0443\u0442 \u0443\u0442\u0435\u0440\u044F\u043D\u044B. \n\u041D\u043E \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0432\u0438\u0440\u0443\u0441\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u0440\u0435\u043C\u0435\u043D\u0438, \u0438 \u0441\u0438\u0441\u0442\u0435\u043C\u044B \u0437\u0430\u0449\u0438\u0442\u044B \u043C\u043D\u043E\u0433\u0438\u0445 \u043E\u0431\u044C\u0435\u043A\u0442\u043E\u0432 \u043D\u0435 \u0434\u0440\u0435\u043C\u043B\u044E\u0442. \u0421\u043A\u043E\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043E \u043E \u0432\u0430\u0448\u0435\u0439 \u043F\u043E\u043F\u044B\u0442\u043A\u0435 \u0432\u0437\u043B\u043E\u043C\u0430 \u0431\u0443\u0434\u0435\u0442 \u043E\u043F\u043E\u0432\u0435\u0449\u0451\u043D \u043C\u0435\u0441\u0442\u043D\u044B\u0439 \u0418\u0418. \u0411\u0443\u0434\u044C\u0442\u0435 \u0433\u043E\u0442\u043E\u0432\u044B \u043A \u044D\u0442\u043E\u043C\u0443.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"buckler",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0417\u0430\u0449\u0438\u0442\u0430 \u0446\u0435\u043B\u0438",content:'\u0418\u043D\u043E\u0433\u0434\u0430 \u0431\u043E\u0433\u0430\u0442\u044B\u0435 \u0448\u0438\u0448\u043A\u0438 \u043F\u043B\u0430\u0442\u044F\u0442 \u0437\u0430 \u0443\u0441\u043B\u0443\u0433\u0438 \u0437\u0430\u0449\u0438\u0442\u044B \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u0433\u043E \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430. \u0415\u0441\u043B\u0438 \u0432\u0430\u043C \u0434\u043E\u0441\u0442\u0430\u043B\u0430\u0441\u044C \u0442\u0430\u043A\u0430\u044F \u0446\u0435\u043B\u044C \u043F\u043E\u043C\u043D\u0438\u0442\u0435 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435: \n * \u0417\u0430\u0449\u0438\u0449\u0430\u0435\u043C\u044B\u0439 \u043E\u0431\u044F\u0437\u0430\u043D \u0434\u043E\u0436\u0438\u0442\u044C \u0434\u043E \u043A\u043E\u043D\u0446\u0430 \u0441\u043C\u0435\u043D\u044B! \n * \u0421\u043A\u043E\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043E \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043C\u044B\u0439 \u043D\u0435 \u0437\u043D\u0430\u0435\u0442 \u043E \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0435. \u0418 \u043B\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043E \u0447\u0442\u043E\u0431\u044B \u043E\u043D \u0438 \u0434\u0430\u043B\u044C\u0448\u0435 \u043D\u0435 \u0437\u043D\u0430\u043B! \n * \u041D\u0435 \u0432\u0430\u0436\u043D\u043E \u043A\u0442\u043E \u0438\u043B\u0438 \u0447\u0442\u043E \u043E\u0445\u043E\u0442\u0438\u0442\u0441\u044F \u043D\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u043F\u043E\u0434\u0437\u0430\u0449\u0438\u0442\u043D\u043E\u0433\u043E, \u043D\u043E \u0434\u043B\u044F \u043E\u0431\u044C\u0435\u043A\u0442\u0430 \u0433\u0434\u0435 \u043F\u0440\u043E\u0445\u043E\u0434\u0438\u0442 \u043C\u0438\u0441\u0441\u0438\u044F \u0432\u044B \u0432\u0441\u0435\u0433\u0434\u0430 \u043D\u0435\u0436\u0435\u043B\u0430\u043D\u043D\u043E\u0435 \u043B\u0438\u0446\u043E. \u041D\u0435 \u0440\u0430\u0441\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435 \u0441\u0435\u0431\u044F \u0431\u0435\u0437 \u043D\u0443\u0436\u0434\u044B, \u0447\u0442\u043E\u0431\u044B \u0443\u043F\u0440\u043E\u0441\u0442\u0438\u0442\u044C \u0441\u0435\u0431\u0435 \u0436\u0435 \u0440\u0430\u0431\u043E\u0442\u0443 \u0438 \u043D\u0430 \u0432\u0430\u0441 \u0441\u0430\u043C\u0438\u0445 \u043D\u0435 \u0432\u0435\u043B\u0438 \u043E\u0445\u043E\u0442\u0443! \n\u0422\u0430\u043A \u0436\u0435 \u043C\u044B \u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u0435\u043C, \u0447\u0442\u043E \u043A\u043B\u0430\u043D \u043D\u0435 \u043E\u0434\u043E\u0431\u0440\u044F\u0435\u0442 \u0432\u0430\u0440\u0432\u0430\u0440\u0441\u043A\u0438\u0435 \u043C\u0435\u0442\u043E\u0434\u044B "\u0417\u0430\u0449\u0438\u0442\u044B" \u0446\u0435\u043B\u0438. \u041D\u0435\u0442 \u0432\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0441\u0430\u0434\u0438\u0442\u044C \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043C\u043E\u0433\u043E \u0432 \u043A\u043B\u0435\u0442\u043A\u0443 \u0438 \u0441\u043B\u0435\u0434\u0438\u0442\u044C \u0437\u0430 \u043D\u0438\u043C \u0442\u0430\u043C! \u041D\u0435 \u043F\u043E\u0440\u0442\u0438\u0442\u0435 \u043D\u0430\u0448\u0443 \u0440\u0435\u043F\u0443\u0442\u0430\u0446\u0438\u044E \u0432 \u0433\u043B\u0430\u0437\u0430\u0445 \u043D\u0430\u0448\u0438\u0445 \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u0432!',position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"cash",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041A\u0440\u0430\u0436\u0430 \u0434\u0435\u043D\u0435\u0433",content:"\u041A\u0430\u043A \u0431\u044B \u044D\u0442\u043E \u043D\u0435 \u0431\u044B\u043B\u043E \u0442\u0440\u0438\u0432\u0438\u0430\u043B\u044C\u043D\u043E. \u0418\u043D\u043E\u0433\u0434\u0430 \u043A\u043B\u0430\u043D \u043D\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044F \u0432 \u0434\u0435\u043D\u044C- \u0433\u0430\u0445. \u0418\u043B\u0438 \u0434\u0430\u0436\u0435 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u0432\u044B \u0437\u0430\u0434\u043E\u043B\u0436\u0430\u043B\u0438 \u043D\u0430\u043C. \u0412 \u0442\u0430\u043A\u043E\u043C \u0441\u043B\u0443\u0447\u0430\u0435 \u043C\u044B \u0441\u043A\u043E\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043E \u0434\u0430\u0434\u0438\u043C \u0432\u0430\u043C \u0437\u0430\u0434\u0430\u0447\u0443 \u0434\u043E\u0441\u0442\u0430\u0442\u044C \u0434\u043B\u044F \u043D\u0430\u0441 \u044D\u0442\u0438 \u0434\u0435\u043D\u044C\u0433\u0438 \u043D\u0430 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \n\u0414\u043B\u044F \u0432\u0430\u0441 \u044D\u0442\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043D\u0435 \u0442\u0440\u0443\u0434\u043D\u0430\u044F, \u043D\u043E \u0432\u0440\u0435\u043C\u044F\u0437\u0430\u0442\u0440\u0430\u0442\u043D\u0430\u044F. \u041F\u043E\u043C\u043D\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u043D\u0430\u0442\u0440\u0435\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u044B \u0432 \u0438\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u0435 \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u044B\u0445 \u043A\u0430\u0440\u043C\u0430\u043D\u043D\u044B\u0445 \u043A\u0440\u0430\u0436. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u044D\u0442\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0434\u043B\u044F \u043A\u0440\u0430\u0436\u0438 \u0447\u0443\u0436\u0438\u0445 \u043A\u0430\u0440\u0442 \u0438 \u043E\u0431\u043D\u0430\u043B\u0438\u0447\u0438- \u0432\u0430\u043D\u0438\u044F \u0438\u0445 \u0441\u0447\u0435\u0442\u043E\u0432. \u041B\u0438\u0431\u043E \u043C\u043E\u0436\u0435\u0442\u0435 \u043C\u0435\u0442\u0438\u0442\u044C \u0432\u044B\u0448\u0435 \u0438 \u043E\u0433\u0440\u0430\u0431\u0438\u0442\u044C \u0445\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0430 \u0438\u043B\u0438 \u0441\u0447\u0435\u0442\u0430 \u0441\u0430\u043C\u043E\u0433\u043E \u043E\u0431\u044C\u0435\u043A\u0442\u0430 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0421\u0430\u043C\u043E\u0435 \u0433\u043B\u0430\u0432\u043D\u043E\u0435. \u0414\u043E\u0441\u0442\u0430\u043D\u044C\u0442\u0435 \u044D\u0442\u0438 \u0434\u0435\u043D\u044C\u0433\u0438!",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"handcuff",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041F\u043E\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430",content:"\u0412 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u044B\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044F\u0445 \u0447\u0443\u0436\u043E\u0439 \u043F\u043E\u0437\u043E\u0440 \u0434\u043B\u044F \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u0432 \u0433\u043E\u0440\u0430\u0437\u0434\u043E \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u043D\u0435\u0435 \u0447\u0435\u043C \u0441\u043C\u0435\u0440\u0442\u044C. \u0412 \u0442\u0430\u043A\u0438\u0445 \u0441\u043B\u0443\u0447\u0430\u044F\u0445 \u0432\u0430\u043C \u043F\u0440\u0438\u0439\u0434\u0451\u0442\u0441\u044F \u043F\u0440\u043E\u044F\u0432\u0438\u0442\u044C \u043A\u0440\u0435\u0430\u0442\u0438\u0432\u043D\u043E\u0441\u0442\u044C \u0438 \u0434\u043E\u0431\u0438\u0442\u044C\u0441\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u0432\u0430\u0448\u0443 \u0436\u0435\u0440\u0442\u0432\u0443 \u043F\u043E \u0437\u0430\u043A\u043E\u043D\u043D\u044B\u043C \u043E\u0441\u043D\u043E\u0432\u0430\u043D\u0438\u044F\u043C \u0443\u043F\u0435\u043A\u043B\u0438 \u0437\u0430 \u0440\u0435\u0448\u0451\u0442\u043A\u0443 \u0421\u0430\u043C\u043E\u0435 \u0433\u043B\u0430\u0432\u043D\u043E\u0435 \u0447\u0442\u043E\u0431\u044B \u0432 \u043A\u0440\u0438\u043C\u0438\u043D\u0430\u043B\u044C\u043D\u043E\u0439 \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0446\u0435\u043B\u0438 \u043E\u0441\u0442\u0430\u043B\u0441\u044F \u0441\u043B\u0435\u0434. \u041D\u043E \u0432 \u0442\u043E \u0436\u0435 \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u0442\u043E \u043F\u0440\u0438\u0439\u0442\u0438 \u0438 \u0432\u043F\u0438\u0441\u0430\u0442\u044C \u0446\u0435\u043B\u0438 \u0441\u0440\u043E\u043A \u0432 \u043A\u043E\u043D\u0441\u043E\u043B\u0438 - \u043D\u0435 \u0440\u0430\u0431\u043E\u0447\u0438\u0439 \u043C\u0435\u0442\u043E\u0434. \u0426\u0435\u043B\u044C \u043B\u0435\u0433\u043A\u043E \u043E\u043F\u0440\u0430\u0432\u0434\u0430\u044E\u0442 \u0432 \u0441\u0443\u0434\u0435, \u0447\u0442\u043E \u043D\u0435 \u0443\u0441\u0442\u0440\u043E\u0438\u0442 \u043A\u043B\u0438\u0435\u043D\u0442\u0430. \n \u0423 \u0432\u0430\u0441 \u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u043E \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432, \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0442\u0443\u043F\u043B\u0435\u043D\u0438\u0435 \u043F\u043E\u0434 \u043B\u0438\u0447\u0438\u043D\u043E\u0439 \u0446\u0435\u043B\u0438. \u0413\u043B\u0430\u0432\u043D\u043E\u0435 \u043F\u043E\u0441\u0442\u0430\u0440\u0430\u0439\u0442\u0435\u0441\u044C \u043E\u0431\u043E\u0439\u0442\u0438\u0441\u044C \u0431\u0435\u0437 \u0441\u043B\u0438\u0448- \u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u043F\u043E\u0441\u043B\u0435\u0434\u0441\u0442\u0432\u0438\u0439. \u041B\u0438\u0448\u043D\u044F\u044F \u0434\u044B\u0440\u0430 \u0432 \u043E\u0431\u0448\u0438\u0432\u043A\u0435 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0438\u043B\u0438 \u0442\u0440\u0443\u043F\u044B - \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u044E\u0442 \u0448\u0430\u043D\u0441\u044B \u043F\u0440\u043E\u0432\u0430\u043B\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u043F\u043B\u0430\u043D\u0430.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"spider_charge",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041F\u043E\u0434\u0440\u044B\u0432 \u043E\u0442\u0434\u0435\u043B\u0430",content:"\u0421\u0442\u0430\u0440\u044B\u0435 \u0434\u043E\u0431\u0440\u044B\u0435 \u0431\u043E\u043C\u0431\u044B. \u042D\u0444\u0444\u0435\u043A- \u0442\u0438\u0432\u043D\u044B\u0435 \u043E\u0440\u0443\u0434\u0438\u044F \u0443\u043D\u0438\u0447\u0442\u043E\u0436\u0435\u043D\u0438\u044F \u0432\u0441\u0435\u0433\u043E \u0436\u0438\u0432\u043E\u0433\u043E \u0438 \u043D\u0435\u0436\u0438\u0432\u043E\u0433\u043E \u0432 \u0431\u043E\u043B\u044C\u0448\u043E\u043C \u0440\u0430\u0434\u0438\u0443\u0441\u0435. \u041A\u043E\u0433\u0434\u0430 \u043A\u043B\u0438\u0435\u043D\u0442\u044B \u043F\u0440\u043E\u0441\u044F\u0442 \u043F\u043E\u0434\u043E\u0440\u0432\u0430\u0442\u044C \u043E\u0431\u044C\u0435\u043A\u0442, \u043E\u043D\u0438 \u0447\u0430\u0441\u0442\u043E \u043D\u0435 \u0437\u043D\u0430\u044E\u0442 \u043D\u0430\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0434\u043E\u0440\u043E\u0433\u043E \u0441\u0442\u043E\u0438\u0442 \u0442\u0430\u043A\u0430\u044F \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044F. \u041D\u043E \u0440\u0435\u0434\u043A\u043E \u0433\u043E\u0442\u043E\u0432\u044B \u0441\u0434\u0430\u0442\u044C\u0441\u044F. \u041A\u0430\u043A \u0440\u0430\u0437 \u043F\u043E\u044D\u0442\u043E\u043C\u0443 \u043C\u043D\u043E\u0433\u0438\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u043D\u044B \u043D\u0430 \u043F\u043E\u0434\u0440\u044B\u0432 \u043E\u0434\u043D\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0438\u043B\u0438 \u043E\u0442\u0434\u0435\u043B\u0430. \n\u0411\u0443\u0434\u044C\u0442\u0435 \u0433\u043E\u0442\u043E\u0432\u044B \u043A \u0442\u043E\u043C\u0443, \u0447\u0442\u043E \u043F\u043E\u0441\u043B\u0435 \u0432\u0437\u0440\u044B\u0432\u0430 \u043D\u0430 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u0435\u0441\u0442\u0438\u0441\u044C \u043E\u0445\u043E\u0442\u0430. \n \u041D\u0430\u0448\u0438 \u0431\u043E\u043C\u0431\u044B \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u043E \u0438\u0437\u0433\u043E\u0442\u043E\u0432\u043B\u0435\u043D\u044B \u0441 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0438\u0442\u0435\u043B\u044F\u043C\u0438. \u041D\u0438\u043A\u0442\u043E \u043A\u0440\u043E\u043C\u0435 \u0432\u0430\u0441 \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u0442 \u0438\u0445 \u043F\u043E\u0434\u043E\u0440\u0432\u0430\u0442\u044C \u0438 \u0434\u0430\u0436\u0435 \u0432\u044B \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0445 \u043B\u0438\u0448\u044C \u0432 \u0437\u043E\u043D\u0435 \u0437\u0430\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0439 \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C. \u0421\u043E\u0432\u0435\u0442\u0443\u0435\u043C \u0441\u0440\u0430\u0437\u0443 \u0431\u0435\u0436\u0430\u0442\u044C \u043F\u043E\u0434\u0430\u043B\u044C\u0448\u0435 \u043F\u043E\u0441\u043B\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438. \u0425\u043E\u0442\u044F \u044D\u0442\u043E \u0438 \u0442\u0430\u043A \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0434\u043B\u044F \u0432\u0430\u0441 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u043E.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"BSM",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0410\u043D\u0430\u043B\u0438\u0437 \u043A\u0440\u043E\u0432\u0438",content:'"\u0417\u043D\u0430\u0439 \u0441\u0432\u043E\u0435\u0433\u043E \u0432\u0440\u0430\u0433\u0430" - \u043F\u0440\u043E\u0441\u0442\u0430\u044F \u0438\u0441\u0442\u0438\u043D\u0430. \n\u0417\u0430 \u0433\u043E\u0434\u044B \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u043D\u0438\u044F \u043A\u043B\u0430\u043D\u0430 \u043C\u044B \u0438\u0437\u0443\u0447\u0438\u043B\u0438 \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0440\u0430\u0437\u043D\u044B\u0445 \u043E\u043F\u0430\u0441\u043D\u044B\u0445 \u0442\u0432\u0430\u0440\u0435\u0439. \u0418 \u0434\u043E \u0441\u0438\u0445 \u043F\u043E\u0440 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u0435\u043C \u0438\u0437\u0443\u0447\u0435\u043D\u0438\u0435 \u043D\u0435\u043A\u043E- \u0442\u043E\u0440\u044B\u0445. \u0410 \u0447\u0442\u043E\u0431\u044B \u0431\u044B\u043B\u043E, \u0447\u0442\u043E \u0438\u0437\u0443\u0447\u0430\u0442\u044C, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u044B\u0432\u0430\u0442\u044C \u043E\u0431\u0440\u0430\u0437\u0446\u044B. \u041A\u0440\u043E\u0432\u044C \u043E\u0434\u0438\u043D \u0438\u0437 \u0441\u0430\u043C\u044B\u0445 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u044B\u0445 \u043F\u0440\u0438\u043C\u0435\u0440\u043E\u0432 \u0442\u043E\u0433\u043E, \u0447\u0442\u043E \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043F\u043E\u043B\u0435\u0437\u043D\u043E \u043D\u0430\u0448\u0438\u043C \u0443\u0447\u0451\u043D\u044B\u043C. \n\u0418\u043C\u0435\u044E\u0449\u0430\u044F\u0441\u044F \u0443 \u0432\u0430\u0441 \u043D\u0430 \u0431\u0430\u0437\u0435 \u0446\u0435\u043D\u0442\u0440\u0438\u0444\u0443\u0433\u0430 \u0434\u043B\u044F \u043A\u0440\u043E\u0432\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u0430 \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E \u043F\u0440\u043E\u0430\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0431\u0440\u0430\u0437\u0446\u044B \u043D\u0435 \u043F\u043E\u0432\u0440\u0435\u0434\u0438\u0432 \u0438\u0445 \u0438 \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043D\u0430\u043C. \n\u0414\u043B\u044F \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E\u0433\u043E \u0430\u043D\u0430\u043B\u0438\u0437\u0430 \u043A\u0440\u043E\u0432\u0438 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0441\u043E\u0431\u0440\u0430\u0442\u044C 3 \u0443\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0445 \u043E\u0431\u0440\u0430\u0437\u0446\u0430. \u0418 \u043F\u043E\u043C\u0435- \u0441\u0442\u0438\u0442\u044C \u0438\u0445 \u0432 \u043F\u0440\u043E\u0431\u0438\u0440\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u043E\u0442\u043E\u043C \u043D\u0430\u0434\u043E \u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C \u0432 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E. \n\u041F\u0440\u0438\u043C\u0435\u0441\u0438 \u043F\u0440\u0438\u043D\u044F\u0442\u044B \u043D\u0435 \u0431\u0443\u0434\u0443\u0442!',position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"changeling",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0413\u0435\u043D\u043E\u043A\u0440\u0430\u0434\u044B",content:"\u0427\u0435\u0440\u0432\u0438 \u0432\u043E\u0437\u043E\u043C\u043D\u0438\u0432\u0448\u0438\u0435 \u0441\u0435\u0431\u044F \u0432\u044B\u0448\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0432\u0438\u0434\u043E\u0432 \u043F\u043E\u0442\u043E\u043C\u0443, \u0447\u0442\u043E \u0443\u043C\u0435\u044E\u0442 \u043A\u0440\u0430\u0441\u0442\u044C \u0433\u0435\u043D\u044B \u0438 \u0438\u043C\u0438\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0445. \n\u0421\u0432\u043E\u0438\u043C \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u043D\u0438\u0435\u043C \u043E\u043D\u0438 \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442 \u0433\u043E\u0440\u0430\u0437\u0434\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u043F\u0440\u043E\u0431- \u043B\u0435\u043C, \u0447\u0435\u043C \u043F\u043E\u043B\u044C\u0437\u044B. \n\u042D\u0442\u0438 \u0442\u0432\u0430\u0440\u0438 \u0441\u0442\u043E\u043B\u044C \u0436\u0435 \u0445\u0438\u0442\u0440\u044B \u0441\u043A\u043E\u043B\u044C \u0438 \u0441\u043A\u0440\u044B\u0442\u043D\u044B. \u041D\u0435 \u0434\u043E\u0433\u043E\u0432\u0430\u0440\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0441 \u043D\u0438\u043C\u0438 \u043D\u0438 \u043E \u0447\u0451\u043C! \n\u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E \u0434\u0430\u0436\u0435 \u043D\u0430\u043C \u0441\u043B\u043E\u0436\u043D\u043E \u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u0442\u044C \u0433\u0435\u043D\u043E\u043A\u0440\u0430\u0434\u0430 \u043D\u0435 \u0437\u0430\u043F\u0438\u0445- \u043D\u0443\u0432 \u0435\u0433\u043E \u0432 \u043B\u0430\u0431\u043E\u0440\u0430\u0442\u043E\u0440\u0438\u044E \u0438 \u043D\u0435 \u043F\u0440\u043E\u0432\u0435\u0434\u044F \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0442\u0435\u0441\u0442\u043E\u0432. \u041D\u043E \u043E\u043D\u0438 \u0438\u043D\u043E\u0433\u0434\u0430 \u0432\u044B\u0434\u0430\u044E\u0442 \u0441\u0435\u0431\u044F \u0441\u0432\u043E\u0438\u043C\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u043C\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F\u043C\u0438. \u0418 \u0442\u0430\u043A \u0436\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E \u043B\u043E\u0436\u0430\u0442\u0441\u044F \u043D\u0430 \u0434\u043D\u043E \u0432 \u0441\u043B\u0443\u0447\u0430\u0435 \u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438. \u0427\u0442\u043E\u0431\u044B \u0431\u044B\u043B\u043E \u043B\u0435\u0433\u0447\u0435 \u0438\u0445 \u043F\u043E\u0439\u043C\u0430\u0442\u044C \u0434\u0430\u0439\u0442\u0435 \u0438\u043C \u043F\u043E\u043F\u043B\u044F\u0441\u0430\u0442\u044C, \u043F\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043C \u0432\u044B\u0445\u043E\u0434\u0438\u0442\u044C \u043D\u0430 \u0441\u0446\u0435\u043D\u0443. \u0418 \u0432\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0441\u043B\u0443\u0448\u0430\u0439\u0442\u0435 \u0440\u0430\u0434\u0438\u043E \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0435. \u0412\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u043C\u0435\u0441\u0442\u043D\u0430\u044F \u043E\u0445\u0440\u0430\u043D\u0430 \u0443\u0436\u0435 \u043E\u0445\u043E\u0442\u0438\u0442\u0441\u044F \u0437\u0430 \u043E\u0434\u043D\u0438\u043C \u0438\u0437 \u043D\u0438\u0445. \n\u041D\u0438\u043A\u0442\u043E \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u043E\u0442\u0438\u0432 \u0435\u0441\u043B\u0438 \u0432\u044B \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u043E \u043F\u043E\u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u043C \u0441 \u044D\u0442\u0438\u043C...",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"vampire",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0430\u043C\u043F\u0438\u0440\u044B",content:"\u0414\u0435\u0448\u0451\u0432\u044B\u0435 \u0440\u043E\u043C\u0430\u043D\u044B, \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0438 \u0441\u043A\u0430\u0437\u043A\u0438 \u043F\u0440\u043E\u0448\u043B\u043E\u0433\u043E \u043E\u043F\u0438\u0441\u044B\u0432\u0430\u043B\u0438 \u0432\u0430\u043C\u043F\u0438\u0440\u043E\u0432 \u043A\u0430\u043A \u0445\u0438\u0449\u043D\u0438\u043A\u043E\u0432 \u043F\u044C\u044E\u0449\u0438\u0445 \u043A\u0440\u043E\u0432\u044C \u043B\u044E\u0434\u0435\u0439 \u0432 \u043D\u043E\u0447\u0438 \u0438 \u043E\u0431\u043B\u0430\u0434\u0430\u044E- \u0449\u0438\u0445 \u043C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u043C\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E- \u0441\u0442\u044F\u043C\u0438. \u0418\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u043C\u0435\u043D\u0435\u0435 \u0440\u043E\u043C\u0430\u043D\u0442\u0438\u0447\u043D\u044B... \n\u041C\u044B \u043F\u043E\u043A\u0430 \u043D\u0435 \u0437\u043D\u0430\u0435\u043C, \u0447\u0442\u043E \u0432\u044B\u0437\u044B\u0432\u0430\u0435\u0442 \u0438\u0445 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435, \u043D\u043E \u043D\u0430\u0448\u0438 \u043F\u043E\u0434\u043E\u0437\u0440\u0435- \u043D\u0438\u044F \u043F\u0430\u0434\u0430\u044E\u0442 \u043D\u0430 \u0432\u043B\u0438\u044F\u043D\u0438\u0435 \u043D\u0435\u043A\u043E\u0439 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0441\u0443\u0449\u043D\u043E\u0441\u0442\u0438. \u0422\u0430\u043A \u0438\u043B\u0438 \u0438\u043D\u0430\u0447\u0435, \u0434\u043E \u0442\u0435\u0445 \u043F\u043E\u0440 \u043F\u043E\u043A\u0430 \u0432\u0430\u043C\u043F\u0438\u0440 \u043D\u0435 \u043C\u0435\u0448\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438 \u0438\u043B\u0438 \u0443\u0433\u0440\u043E\u0436\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0439 \u0436\u0438\u0437\u043D\u0438. \u0412\u044B \u0432\u043E\u043B\u044C\u043D\u044B \u0435\u0433\u043E \u0438\u0433\u043D\u043E\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C. \n\u0412\u0430\u043C\u043F\u0438\u0440\u044B \u043E\u0447\u0435\u043D\u044C \u043E\u043F\u0430\u0441\u043D\u044B \u0432 \u043F\u0440\u044F\u043C\u043E\u043C \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u0438, \u043E\u043D\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u044B \u043E\u0433\u043B\u0443\u0448\u0430\u0442\u044C \u0432\u0437\u0433\u043B\u044F\u0434\u043E\u043C \u0438 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0430\u0442\u044C \u0440\u0430\u0437\u0443\u043C \u0441\u0432\u043E\u0438\u0445 \u0436\u0435\u0440\u0442\u0432. \u041D\u0435 \u0434\u043E\u0432\u0435\u0440\u044F\u0439\u0442\u0435 \u0438\u043C, \u043D\u043E \u0442\u0430\u043A \u0436\u0435 \u043F\u043E\u043C\u043D\u0438\u0442\u0435 - \u043E\u043D\u0438 \u043B\u0438\u0448\u044C \u0436\u0435\u0440\u0442\u0432\u044B \u0441\u0442\u0435\u0447\u0435\u043D\u0438\u044F \u043E\u0431\u0441\u0442\u043E\u044F\u0442\u0435\u043B\u044C\u0441\u0442\u0432. \u0418 \u044D\u0442\u043E \u043C\u043E\u0436\u043D\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0432 \u0441\u0432\u043E\u044E \u043F\u043E\u043B\u044C\u0437\u0443...",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"syndicate",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442",content:"\u041D\u0430\u0448\u0438 \u0445\u043E\u0440\u043E\u0448\u0438\u0435 \u0437\u043D\u0430\u043A\u043E\u043C\u044B\u0435. \u0421\u0431\u043E\u0440\u0438\u0449\u0435 \u043C\u043E\u0433\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0445 \u0444\u0438\u0433\u0443\u0440 \u0432 \u043F\u043E\u0434\u043F\u043E\u043B\u044C\u043D\u043E\u043C \u043C\u0438\u0440\u0435 \u0441 \u0437\u0430\u043A\u0440\u044B\u0442\u043E\u0439 \u0441\u0438\u0441\u0442\u0435\u043C\u043E\u0439 \u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0441\u0442\u0432\u0430 \u043E \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u043C\u0430\u043B\u043E... \n\u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442 \u043F\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 \u0438 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442 \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0437\u0430\u043A\u0430\u0437\u043E\u0432. \u041D\u043E \u0441\u0430\u043C\u043E\u0439 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u043E\u0439, \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u043A\u0442\u043E \u043A\u0430\u043A \u0441\u043B\u0435\u0434\u0443\u0435\u0442 \u0438\u0445 \u0438\u0437\u0443\u0447\u0438\u0442, \u0447\u0435\u0440\u0442\u043E\u0439 \u044D\u0442\u043E\u0439 \u0433\u0440\u0443\u043F\u043F\u044B - \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043E\u0433\u0440\u043E\u043C\u043D\u0430\u044F \u043D\u0435\u043D\u0430\u0432\u0438\u0441\u0442\u044C \u043A \u041D\u0422. \n\u0412 \u0441\u043B\u0443\u0447\u0430\u0435 \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u044F \u0441 \u0430\u0433\u0435\u043D\u0442\u0430\u043C\u0438 \u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442\u0430 \u043F\u043E\u043B\u0438\u0442\u0438\u043A\u0430 \u043D\u0430\u0448\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043F\u0440\u043E\u0441\u0442\u0430. \n\u0415\u0441\u043B\u0438 \u043E\u043D\u0438 \u043D\u0435 \u043C\u0435\u0448\u0430\u044E\u0442 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044E \u0437\u0430\u0434\u0430\u043D\u0438\u044F. \u041C\u044B \u043D\u0435 \u043C\u0435\u0448\u0430\u0435\u043C \u0438\u043C.",position:"bottom-start"})]})]})})})},c=function(u,C){var b=(0,a.useBackend)(C),v=b.act,h=b.data,g=h.actionsIcon,N=h.blocked_TGUI_rows,x=[{blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"}];return(0,e.createComponentVNode)(2,t.Section,{title:"\u041C\u043E\u0434\u0443\u043B\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0423\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u0443\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430! \u0414\u0435\u043B\u044F\u0442\u0441\u044F \u043D\u0430 3 \u0440\u0430\u0437\u043D\u044B\u0445 \u043F\u043E\u0434\u0445\u043E\u0434\u0430 \u0434\u043B\u044F \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0418\u0437-\u0437\u0430 \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u0439 \u043F\u043E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044E \u0440\u0430\u0431\u043E\u0442\u043E\u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430, \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0435\u043D\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043C\u043E\u0434\u0443\u043B\u044F, \u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0435\u0442 \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0435\u043D\u0438\u0435 \u043C\u043E\u0434\u0443\u043B\u0435\u0439 \u043E\u0434\u043D\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F \u0438\u0437 \u0441\u043E\u0441\u0435\u0434\u043D\u0438\u0445 \u0441\u0442\u043E\u043B\u0431\u0446\u043E\u0432",tooltipPosition:"bottom"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",alignContent:"center",ml:1.5,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"33%",shrink:1,children:[(0,e.createComponentVNode)(2,t.Section,{width:"100%",title:"\u041F\u0440\u0438\u0437\u0440\u0430\u043A",ml:"0px",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0421\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0441\u0440\u0435\u0434\u0438 \u0432\u0440\u0430\u0433\u043E\u0432, \u043D\u0430\u043F\u0430\u0434\u0430\u0439\u0442\u0435 \u0438\u0437 \u0442\u0435\u043D\u0438 \u0438 \u0431\u0443\u0434\u044C\u0442\u0435 \u043D\u0435\u0437\u0440\u0438\u043C\u043E\u0439 \u0443\u0433\u0440\u043E\u0437\u043E\u0439, \u0432\u0441\u0451 \u0434\u043B\u044F \u0442\u043E\u0433\u043E \u0447\u0442\u043E\u0431\u044B \u043E \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438 \u043D\u0438\u043A\u0442\u043E \u043D\u0435 \u0443\u0437\u043D\u0430\u043B! \u0411\u0443\u0434\u044C\u0442\u0435 \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u044B \u043A\u0430\u043A \u043F\u0440\u0438\u0437\u0440\u0430\u043A!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(53, 94, 163, 0.8)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:N[0]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[0],onClick:function(){function B(){return v("give_ability",{style:"smoke",row:"1"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"smoke",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0414\u042B\u041C\u041E\u0412\u0410\u042F \u0417\u0410\u0412\u0415\u0421\u0410",content:"\u0412\u044B \u0441\u043E\u0437\u0434\u0430\u0451\u0442\u0435 \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u043E\u0431\u043B\u0430\u043A\u043E \u0434\u044B\u043C\u0430 \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u043F\u0443\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0438\u0445 \u0432\u0440\u0430\u0433\u043E\u0432. \n\u042D\u0442\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u043E\u0442\u043B\u0438\u0447\u043D\u043E \u0441\u043E\u0447\u0435\u0442\u0430\u0435\u0442\u0441\u044F \u0441 \u0432\u0430\u0448\u0438\u043C \u0432\u0438\u0437\u043E\u0440\u043E\u043C \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u0442\u0435\u0440\u043C\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0441\u043A\u0430\u043D\u0435\u0440\u0430. \n\u0410 \u0442\u0430\u043A \u0436\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u043F\u0440\u0438\u043C\u0435\u043D\u044F\u0435\u0442\u0441\u044F \u043C\u043D\u043E\u0433\u0438\u043C\u0438 \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u043C\u043E\u0434\u0443\u043B\u044F\u043C\u0438 \u0435\u0441\u043B\u0438 \u0432\u044B \u0442\u043E\u0433\u043E \u043F\u043E\u0436\u0435\u043B\u0430\u0435\u0442\u0435. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 250 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 3 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[1]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[1],onClick:function(){function B(){return v("give_ability",{style:"ninja_cloak",row:"2"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"ninja_cloak",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041D\u0415\u0412\u0418\u0414\u0418\u041C\u041E\u0421\u0422\u042C",content:"\u0412\u044B \u0444\u043E\u0440\u043C\u0438\u0440\u0443\u0435\u0442\u0435 \u0432\u043E\u043A\u0440\u0443\u0433 \u0441\u0435\u0431\u044F \u043C\u0430\u0441\u043A\u0438\u0440\u043E\u0432\u043E\u0447\u043D\u043E\u0435 \u043F\u043E\u043B\u0435 \u0441\u043A\u0440\u044B\u0432\u0430- \u044E\u0449\u0435\u0435 \u0432\u0430\u0441 \u0438\u0437 \u0432\u0438\u0434\u0443 \u0438 \u043F\u0440\u0438\u0433\u043B\u0443\u0448\u0430- \u044E\u0449\u0435\u0435 \u0432\u0430\u0448\u0438 \u0448\u0430\u0433\u0438. \n\u041F\u043E\u043B\u0435 \u0434\u043E\u0432\u043E\u043B\u044C\u043D\u043E \u0445\u0440\u0443\u043F\u043A\u043E\u0435 \u0438 \u043C\u043E\u0436\u0435\u0442 \u0440\u0430\u0437\u043B\u0435\u0442\u0435\u0442\u044C\u0441\u044F \u043E\u0442 \u043B\u044E\u0431\u043E\u0433\u043E \u0440\u0435\u0437\u043A\u043E\u0433\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0438\u043B\u0438 \u0443\u0434\u0430\u0440\u0430. \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u043F\u043E\u043B\u044F \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 2 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \u0425\u043E\u0442\u044C \u043F\u043E\u043B\u0435 \u0438 \u0441\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0441 \u043F\u043E\u043B\u043D\u043E\u0441\u0442\u044C\u044E, \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u0439 \u0443\u0431\u0438\u0439\u0446\u0430 \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0445\u043B\u0430\u0434\u043D\u043E\u043A\u0440\u043E\u0432\u0435\u043D. \n\u041D\u0435 \u0441\u0442\u043E\u0438\u0442 \u043D\u0435\u0434\u043E\u043E\u0446\u0435\u043D\u0438\u0432\u0430\u0442\u044C \u0432\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0434\u0440\u0443\u0433\u0438\u0445 \u043B\u044E\u0434\u0435\u0439. \n\u0410\u043A\u0442\u0438\u0432\u043D\u0430\u044F \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C \u0441\u043B\u0430\u0431\u043E \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0439 \u0440\u0430\u0441\u0445\u043E\u0434 \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 15 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[2]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[2],onClick:function(){function B(){return v("give_ability",{style:"ninja_clones",row:"3"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"ninja_clones",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041D\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041A\u0418\u0415 \u041A\u041B\u041E\u041D\u042B",content:"\u0421\u043E\u0437\u0434\u0430\u0451\u0442 \u0434\u0432\u0443\u0445 \u043A\u043B\u043E\u043D\u043E\u0432 \u0433\u043E\u0442\u043E\u0432\u044B\u0445 \u043F\u043E\u043C\u043E\u0447\u044C \u0432 \u0431\u0438\u0442\u0432\u0435 \u0438 \u0434\u0435\u0437\u043E\u0440\u0438\u0435\u043D\u0442\u0438- \u0440\u043E\u0432\u0430\u0442\u044C \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u0430 \n\u0422\u0430\u043A \u0436\u0435 \u0432 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0435 \u0441\u043C\u0435\u0449\u0430\u0435\u0442 \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0438\u0445 \u043A\u043B\u043E\u043D\u043E\u0432 \u0432 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u043E\u043C \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0438 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u043F\u0430\u0440\u044B \u043C\u0435\u0442\u0440\u043E\u0432. \n\u041F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435\u0441\u044C \u043E\u0441\u0442\u043E\u0440\u043E\u0436\u043D\u043E. \u0421\u043B\u0443\u0447\u0430\u0439\u043D\u043E\u0435 \u0441\u043C\u0435\u0449\u0435\u043D\u0438\u0435 \u043C\u043E\u0436\u0435\u0442 \u0437\u0430\u043F\u0435\u0440\u0435\u0442\u044C \u0432\u0430\u0441 \u0437\u0430 4-\u043C\u044F \u0441\u0442\u0435\u043D\u0430\u043C\u0438. \u0411\u0443\u0434\u044C\u0442\u0435 \u043A \u044D\u0442\u043E\u043C\u0443 \u0433\u043E\u0442\u043E\u0432\u044B. \n\u041A\u043B\u043E\u043D\u044B \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0442 \u043F\u0440\u0438\u043C\u0435\u0440\u043D\u043E 20 \u0441\u0435\u043A\u0443\u043D\u0434. \u041A\u043B\u043E\u043D\u044B \u0438\u043C\u0435\u044E\u0442 \u0448\u0430\u043D\u0441 \u0440\u0430\u0437\u043C\u043D\u043E\u0436\u0438\u0442\u0441\u044F \u0430\u0442\u0430\u043A\u0443\u044F \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u043E\u0432. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 4000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 8 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[3]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[3],onClick:function(){function B(){return v("give_ability",{style:"chameleon",row:"4"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"chameleon",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0425\u0410\u041C\u0415\u041B\u0415\u041E\u041D",content:"\u0412\u044B \u0444\u043E\u0440\u043C\u0438\u0440\u0443\u0435\u0442\u0435 \u0432\u043E\u043A\u0440\u0443\u0433 \u0441\u0435\u0431\u044F \u0433\u043E\u043B\u043E\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u043E\u043B\u0435 \u0438\u0441\u043A\u0430\u0436\u0430\u044E\u0449\u0435\u0435 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E\u0435 \u0438 \u0441\u043B\u0443\u0445\u043E\u0432\u043E\u0435 \u0432\u043E\u0441\u043F\u0440\u0438\u044F\u0442\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432. \n\u0412\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 \u0432\u0438\u0434\u0435\u0442\u044C \u0438 \u0441\u043B\u044B\u0448\u0430\u0442\u044C \u043A\u0430\u043A \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430 \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u0432\u044B \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442\u0435 \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u043C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E\u043C. \n\u042D\u0442\u043E \u0434\u0430\u0451\u0442 \u0432\u0430\u043C \u043E\u0433\u0440\u043E\u043C\u043D\u044B\u0439 \u043F\u0440\u043E\u0441\u0442\u043E\u0440 \u043F\u043E \u0432\u043D\u0435\u0434\u0440\u0435\u043D\u0438\u044E \u0438 \u0438\u043C\u0438\u0442\u0430\u0446\u0438\u0438 \u043B\u044E\u0431\u043E\u0433\u043E \u0447\u043B\u0435\u043D\u0430 \u044D\u043A\u0438\u043F\u0430\u0436\u0430. \n\u041F\u043E\u043B\u0435 \u0434\u043E\u0432\u043E\u043B\u044C\u043D\u043E \u0445\u0440\u0443\u043F\u043A\u043E\u0435 \u0438 \u043C\u043E\u0436\u0435\u0442 \u0440\u0430\u0437\u043B\u0435\u0442\u0435\u0442\u044C\u0441\u044F \u043E\u0442 \u043B\u044E\u0431\u043E\u0433\u043E \u0440\u0435\u0437\u043A\u043E\u0433\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0438\u043B\u0438 \u0443\u0434\u0430\u0440\u0430. \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u043F\u043E\u043B\u044F \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 2 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \n\u0410\u043A\u0442\u0438\u0432\u043D\u044B\u0439 \u0445\u0430\u043C\u0435\u043B\u0435\u043E\u043D \u0441\u043B\u0430\u0431\u043E \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0439 \u0440\u0430\u0441\u0445\u043E\u0434 \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: \u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[4]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[4],onClick:function(){function B(){return v("give_ability",{style:"ninja_spirit_form",row:"5"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"ninja_spirit_form",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0424\u041E\u0420\u041C\u0410 \u0414\u0423\u0425\u0410",content:"\u0412\u044B \u0432\u043E\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442\u0435 \u043D\u0430 \u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u0442\u0435\u043B\u0430 \u043F\u043E\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043E\u043C \u044D\u0442\u043E\u0439 \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u043E\u0439 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0438. \n\u0414\u0435\u043B\u0430\u044F \u0432\u0430\u0448\u0435 \u0442\u0435\u043B\u043E \u043D\u0435\u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u044B\u043C \u044D\u0442\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0434\u0430\u0440\u0443\u0435\u0442 \u0432\u0430\u043C \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u043F\u0440\u043E\u0445\u043E\u0434\u0438\u0442\u044C \u0441\u043A\u0432\u043E\u0437\u044C \u0441\u0442\u0435\u043D\u044B. \n\u042D\u0442\u0430 \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u044F \u043D\u0435 \u0441\u0434\u0435\u043B\u0430\u0435\u0442 \u0432\u0430\u0441 \u043D\u0435\u0443\u044F\u0437\u0432\u0438\u043C\u044B\u043C \u0434\u043B\u044F \u043F\u0443\u043B\u044C \u0438 \u043B\u0435\u0437\u0432\u0438\u0439! \n\u041D\u043E \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u0441\u043D\u044F\u0442\u044C \u0441 \u0441\u0435\u0431\u044F \u043D\u0430\u0440\u0443\u0447\u043D\u0438\u043A\u0438, \u0431\u043E\u043B\u044B \u0438 \u0434\u0430\u0436\u0435 \u0432\u044B\u043B\u0435\u0437\u0442\u0438 \u0438\u0437 \u0433\u0440\u043E\u0431\u0430 \u0438\u043B\u0438 \u044F\u0449\u0438\u043A\u0430, \u043E\u043A\u0430\u0436\u0438\u0441\u044C \u0432\u044B \u0442\u0430\u043C \u0437\u0430\u043F\u0435\u0440\u0442\u044B... \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u043C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u0430. \n\u0410\u043A\u0442\u0438\u0432\u043D\u0430\u044F \u0444\u043E\u0440\u043C\u0430 \u0434\u0443\u0445\u0430 \u0437\u043D\u0430\u0447\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0439 \u0440\u0430\u0441\u0445\u043E\u0434 \u044D\u043D\u0435\u0440\u0433\u0438\u0438! \u041F\u043E\u0442\u0440\u0435\u0431\u043B\u0435\u043D\u0438\u0435 \u043E\u0434\u0438\u043D\u0430\u043A\u043E\u0432\u043E \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0432\u043D\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u043E\u0431\u044A\u0451\u043C\u0430 \u0431\u0430\u0442\u0430\u0440\u0435\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 25 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"right"})]})]})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"33%",shrink:1,children:[(0,e.createComponentVNode)(2,t.Section,{ml:"0px",width:"100%",title:"\u0417\u043C\u0435\u0439",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0423\u0434\u0438\u0432\u043B\u044F\u0439\u0442\u0435! \u0422\u0440\u044E\u043A\u0438, \u043B\u043E\u0432\u0443\u0448\u043A\u0438, \u0449\u0438\u0442\u044B. \u041F\u043E\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043C, \u0447\u0442\u043E \u0442\u0430\u043A\u043E\u0435 \u0431\u043E\u0439 \u0441 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u043C \u0443\u0431\u0438\u0439\u0446\u0435\u0439. \u0418\u0437\u0432\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0438 \u0438\u0437\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u043D\u0430\u0445\u043E\u0434\u044F \u0432\u044B\u0445\u043E\u0434 \u0438\u0437 \u043B\u044E\u0431\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438. \u0412\u0440\u0430\u0433\u0438 \u0432\u0441\u0435\u0433\u043E \u043B\u0438\u0448\u044C \u0433\u0440\u044B\u0437\u0443\u043D\u044B, \u0447\u044C\u0451 \u043B\u043E\u0433\u043E\u0432\u043E \u043D\u0430\u0432\u0435\u0441\u0442\u0438\u043B \u0437\u043C\u0435\u0439!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(0, 174, 208, 0.15)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:N[0]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[0],onClick:function(){function B(){return v("give_ability",{style:"kunai",row:"1"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"kunai",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0421\u0422\u0420\u041E\u0415\u041D\u041D\u041E\u0415 \u0414\u0416\u041E\u0425\u042C\u0401",content:"\u0422\u0430\u043A \u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u043A\u0430\u043A \u0428\u044D\u043D\u0431\u044F\u043E \u0438\u043B\u0438 \u043F\u0440\u043E\u0441\u0442\u043E \u041A\u0438\u043D\u0436\u0430\u043B \u043D\u0430 \u0446\u0435\u043F\u0438. \n\u0418\u043D\u0442\u0435\u0433\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0435 \u0432 \u043A\u043E\u0441\u0442\u044E\u043C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0437\u0430\u043F\u0443\u0441\u043A\u0430 \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u043F\u043E\u0439\u043C\u0430\u0442\u044C \u0438 \u043F\u0440\u0438\u0442\u044F\u043D\u0443\u0442\u044C \u043A \u0441\u0435\u0431\u0435 \u0436\u0435\u0440\u0442\u0432\u0443 \u0437\u0430 \u0434\u043E\u043B\u0438 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \n\u041E\u0440\u0443\u0436\u0438\u0435 \u043D\u0435 \u043E\u0447\u0435\u043D\u044C \u0433\u043E\u0434\u0438\u0442\u0441\u044F \u0434\u043B\u044F \u0434\u043E\u043B\u0433\u0438\u0445 \u0431\u043E\u0451\u0432, \u043D\u043E \u043E\u0442\u043B\u0438\u0447\u043D\u043E \u043F\u043E\u0434\u0445\u043E\u0434\u0438\u0442 \u0434\u043B\u044F \u0432\u044B\u0442\u044F\u0433\u0438\u0432\u0430\u043D\u0438\u044F \u043E\u0434\u043D\u043E\u0439 \u0436\u0435\u0440\u0442\u0432\u044B - \u043D\u0430 \u0440\u0430\u0441\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u0443\u0434\u0430\u0440\u0430! \n\u0413\u043B\u0430\u0432\u043D\u043E\u0435 \u043D\u0435 \u043F\u0440\u043E\u043C\u0430\u0445\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u0438 \u0441\u0442\u0440\u0435\u043B\u044C\u0431\u0435. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0432\u044B\u0441\u0442\u0440\u0435\u043B\u0430: 500 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 5 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[1]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[1],onClick:function(){function B(){return v("give_ability",{style:"chem_injector",row:"2"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"chem_injector",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0418\u0421\u0426\u0415\u041B\u042F\u042E\u0429\u0418\u0419 \u041A\u041E\u041A\u0422\u0415\u0419\u041B\u042C",content:"\u0412\u0432\u043E\u0434\u0438\u0442 \u0432 \u0432\u0430\u0441 \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u0443\u044E \u043B\u0435\u0447\u0435\u0431\u043D\u0443\u044E \u0441\u043C\u0435\u0441\u044C. \u0421\u043F\u043E\u0441\u043E\u0431\u043D\u0443\u044E \u0437\u0430\u043B\u0435\u0447\u0438\u0442\u044C \u0434\u0430\u0436\u0435 \u0441\u043B\u043E\u043C\u0430\u043D\u043D\u044B\u0435 \u043A\u043E\u0441\u0442\u0438 \u0438 \u043E\u0442\u043E\u0440\u0432\u0430\u043D\u043D\u044B\u0435 \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438. \n\u041F\u0440\u0435\u043F\u0430\u0440\u0430\u0442 \u0432\u044B\u0437\u044B\u0432\u0430\u0435\u0442 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442- \n\u0432\u0435\u043D\u043D\u043E-\u0432\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435 \u043F\u0430\u0440\u0430\u0434\u043E\u043A\u0441\u044B \u0438 \u043E\u0447\u0435\u043D\u044C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E \u0432\u044B\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0438\u0437 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043C\u0430! \n\u041F\u0440\u0438 \u043F\u0435\u0440\u0435\u0434\u043E\u0437\u0438\u0440\u043E\u0432\u043A\u0435 \u043E\u043D\u0438 \u0441\u0442\u0430\u043D\u043E\u0432\u044F\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043E\u043F\u0430\u0441\u043D\u044B \u0434\u043B\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \u041D\u0435 \u0432\u0432\u043E\u0434\u0438\u0442\u0435 \u0431\u043E\u043B\u044C\u0448\u0435 30 \u0435\u0434. \u043F\u0440\u0435\u043F\u0430\u0440\u0430\u0442\u0430 \u0432 \u0432\u0430\u0448 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043C! \n\u0412\u043C\u0435\u0441\u0442\u043E \u0442\u0440\u0430\u0442\u044B \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u0438\u043C\u0435\u0435\u0442 3 \u0437\u0430\u0440\u044F\u0434\u0430. \u0418\u0445 \u043C\u043E\u0436\u043D\u043E \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0432\u0440\u0443\u0447\u043D\u0443\u044E \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0446\u0435\u043B\u044C\u043D\u044B\u0445 \u043A\u0443\u0441\u043A\u043E\u0432 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u043A\u0440\u0438\u0441\u0442\u0430\u043B\u043B\u043E\u0432 \u043F\u043E\u043C\u0435\u0449\u0451\u043D\u043D\u044B\u0445 \u0432 \u043A\u043E\u0441\u0442\u044E\u043C.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[2]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[2],onClick:function(){function B(){return v("give_ability",{style:"emergency_blink",row:"3"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"emergency_blink",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041A\u0421\u0422\u0420\u0415\u041D\u041D\u0410\u042F \u0422\u0415\u041B\u0415\u041F\u041E\u0420\u0422\u0410\u0426\u0418\u042F",content:"\u041F\u0440\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0438 \u043C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u0432 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u0443\u044E \u0437\u043E\u043D\u0443 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u043E\u043A\u043E\u043B\u043E \u0434\u0432\u0443\u0445 \u0434\u0435\u0441\u044F\u0442\u043A\u043E\u0432 \u043C\u0435\u0442\u0440\u043E\u0432. \n\u0414\u043B\u044F \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442\u0441\u044F \u043C\u043E\u0437\u0433\u043E\u0432\u044B\u0435 \u0438\u043C\u043F\u0443\u043B\u044C\u0441\u044B \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \u041F\u043E\u044D\u0442\u043E\u043C\u0443 \u043E\u043F\u044B\u0442\u043D\u044B\u0435 \u0432\u043E\u0438\u043D\u044B \u043A\u043B\u0430\u043D\u0430, \u043C\u043E\u0433\u0443\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0435\u0451 \u0434\u0430\u0436\u0435 \u0432\u043E \u0441\u043D\u0435. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1500 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 3 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[3]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[3],onClick:function(){function B(){return v("give_ability",{style:"caltrop",row:"4"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"caltrop",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041B\u0415\u041A\u0422\u0420\u041E-\u0427\u0415\u0421\u041D\u041E\u041A",content:"\u0427\u0430\u0449\u0435 \u0438\u0445 \u043D\u0430\u0437\u044B\u0432\u0430\u044E\u0442 \u043F\u0440\u043E\u0441\u0442\u043E \u043A\u0430\u043B\u0442\u0440\u043E\u043F\u044B, \u0438\u0437-\u0437\u0430 \u0437\u0430\u043F\u0443\u0442\u044B\u0432\u0430\u044E\u0449\u0438\u0445 \u0430\u0441\u0441\u043E\u0446\u0438\u0430\u0446\u0438\u0439 \u0441 \u0431\u043E\u043B\u0435\u0435 \u0441\u044A\u0435\u0441\u0442\u043D\u044B\u043C \u0447\u0435\u0441\u043D\u043E\u043A\u043E\u043C. \n\u041F\u0440\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0438 \u0440\u0430\u0441\u043A\u0438\u0434\u044B\u0432\u0430\u0435\u0442 \u043F\u043E\u0437\u0430\u0434\u0438 \u0432\u0430\u0441 \u0441\u0434\u0435\u043B\u0430\u043D\u043D\u044B\u0435 \u0438\u0437 \u0441\u043F\u0440\u0435\u0441\u0441\u043E\u0432\u0430\u043D\u043D\u043E\u0439 \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u043B\u043E\u0432\u0443\u0448\u043A\u0438. \n\u041B\u043E\u0432\u0443\u0448\u043A\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0442 \u043F\u0440\u0438\u043C\u0435\u0440\u043D\u043E 10 \u0441\u0435\u043A\u0443\u043D\u0434. \u0422\u0430\u043A \u0436\u0435 \u043E\u043D\u0438 \u043F\u0440\u043E\u043F\u0430\u0434\u0430\u044E\u0442 - \u0435\u0441\u043B\u0438 \u043D\u0430 \u043D\u0438\u0445 \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0442\u044C. \n\u0411\u043E\u043B\u044C \u043E\u0442 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u043E\u0433\u043E \u0448\u0430\u0433\u0430 \u043D\u0430 \u043D\u0438\u0445 \u043D\u0430\u0441\u0442\u0438\u0433\u043D\u0435\u0442 \u0434\u0430\u0436\u0435 \u0440\u043E\u0431\u043E\u0442\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D- \u043D\u044B\u0435 \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438. \n\u0412\u044B \u043D\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043D\u044B \u043E\u0442 \u043D\u0438\u0445. \u041D\u0435 \u043D\u0430\u0441\u0442\u0443\u043F\u0430\u0439\u0442\u0435 \u043D\u0430 \u0441\u0432\u043E\u0438 \u0436\u0435 \u043B\u043E\u0432\u0443\u0448\u043A\u0438! \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1500 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 1 \u0441\u0435\u043A\u0443\u043D\u0434\u0430.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[4]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[4],onClick:function(){function B(){return v("give_ability",{style:"cloning",row:"5"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"cloning",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0422\u041E\u0420\u041E\u0419 \u0428\u0410\u041D\u0421",content:"\u0412 \u043F\u0440\u043E\u0448\u043B\u043E\u043C \u043C\u043D\u043E\u0433\u0438\u0435 \u0443\u0431\u0438\u0439\u0446\u044B \u043F\u0440\u043E\u0432\u0430\u043B\u0438\u0432\u0430\u044F \u0441\u0432\u043E\u0438 \u043C\u0438\u0441\u0441\u0438\u0438 \u0441\u043E\u0432\u0435\u0440\u0448\u0430\u043B\u0438 \u0441\u0430\u043C\u043E\u0443\u0431\u0438\u0439\u0441\u0442\u0432\u0430 \u0438\u043B\u0438 \u043E\u043A\u0430\u0437\u044B\u0432\u0430\u043B\u0438\u0441\u044C \u0432 \u043B\u0430\u043F\u0430\u0445 \u0432\u0440\u0430\u0433\u0430. \n\u0421\u0435\u0439\u0447\u0430\u0441 \u0436\u0435 \u0435\u0441\u0442\u044C \u0434\u043E\u0432\u043E\u043B\u044C\u043D\u043E \u0434\u043E\u0440\u043E\u0433\u0430\u044F \u0430\u043B\u044C\u0442\u0435\u0440\u043D\u0430\u0442\u0438\u0432\u0430. \u041C\u043E\u0449\u043D\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0435 \u0434\u043E\u0441\u0442\u0430\u0442\u044C \u0432\u0430\u0441 \u043F\u0440\u0430\u043A\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441 \u0442\u043E\u0433\u043E \u0441\u0432\u0435\u0442\u0430. \n\u042D\u0442\u0430 \u043C\u0430\u0448\u0438\u043D\u0430 \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0432\u0442\u043E\u0440\u043E\u0439 \u0448\u0430\u043D\u0441, \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0432 \u0432\u0430\u0441 \u043A \u0441\u0435\u0431\u0435 \u0438 \u0438\u0437\u043B\u0435\u0447\u0438\u0432 \u043B\u044E\u0431\u044B\u0435 \u0442\u0440\u0430\u0432\u043C\u044B. \n\u041C\u044B \u0441\u043B\u044B\u0448\u0430\u043B\u0438 \u043F\u0440\u043E \u0441\u043E\u043C\u043D\u0435\u043D\u0438\u044F \u0437\u0430\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0435 \u043D\u0430 \u0438\u0434\u0435\u0435, \u0447\u0442\u043E \u044D\u0442\u043E \u043F\u0440\u043E\u0441\u0442\u043E \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u043A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0447\u043B\u0435\u043D\u043E\u0432 \u043A\u043B\u0430\u043D\u0430. \u041D\u043E \u0443\u0432\u0435\u0440\u044F\u0435\u043C \u0432\u0430\u0441, \u044D\u0442\u043E \u043D\u0435 \u0442\u0430\u043A. \n\u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E \u0438\u0437-\u0437\u0430 \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u0437\u0430\u0442\u0440\u0430\u0442 \u043D\u0430 \u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0438 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044E. \u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u043F\u0430\u0441\u0451\u0442 \u0432\u0430\u0441 \u043B\u0438\u0448\u044C \u043E\u0434\u0438\u043D \u0440\u0430\u0437. \n\u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438, \u043A\u043E\u0433\u0434\u0430 \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u0440\u0442\u0438.",position:"right"})]})]})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"33%",shrink:1,children:[(0,e.createComponentVNode)(2,t.Section,{ml:"0px",width:"100%",title:"\u0421\u0442\u0430\u043B\u044C",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u042F\u0440\u043E\u0441\u0442\u044C \u043D\u0435 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u043E\u0431\u044B\u0447\u043D\u044B\u043C \u043B\u044E\u0434\u044F\u043C. \u0421\u0438\u043B\u0430, \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0438 \u043E\u0440\u0443\u0434\u0438\u044F \u0432\u044B\u0448\u0435 \u0438\u0445 \u043F\u043E\u043D\u0438\u043C\u0430\u043D\u0438\u044F. \u0420\u0430\u0437\u0438\u0442\u0435 \u0438\u0445 \u043A\u0430\u043A \u0445\u0438\u0449\u043D\u0438\u043A \u0447\u0442\u043E \u0440\u0430\u0437\u0438\u0442 \u0441\u0432\u043E\u044E \u0434\u043E\u0431\u044B\u0447\u0443. \u041F\u043E\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043C \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0432\u043A\u0443\u0441 \u0441\u0442\u0430\u043B\u0438!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(80, 20, 20, 1)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:N[0]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[0],onClick:function(){function B(){return v("give_ability",{style:"shuriken",row:"1"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"shuriken",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041D\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041A\u0418\u0415 \u0421\u042E\u0420\u0418\u041A\u0415\u041D\u042B",content:"\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442 \u043F\u0443\u0441\u043A\u043E\u0432\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u043A\u0440\u044B\u0442\u043E\u0435 \u0432 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0430\u0445 \u043A\u043E\u0441\u0442\u044E\u043C\u0430. \n\u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u0435\u0442 \u043F\u043E \u0442\u0440\u0438 \u0441\u044E\u0440\u0438\u043A\u0435\u043D\u0430, \u0441\u0434\u0435\u043B\u0430\u043D\u043D\u044B\u0445 \u0438\u0437 \u0441\u0436\u0430\u0442\u043E\u0439 \u044D\u043D\u0435\u0440\u0433\u0438\u0438, \u043E\u0447\u0435\u0440\u0435\u0434\u044C\u044E. \n\u0421\u044E\u0440\u0438\u043A\u0435\u043D\u044B \u043F\u043E\u0441\u0442\u0435\u043F\u0435\u043D\u043D\u043E \u0438\u0437\u043D\u0443\u0440\u044F\u044E\u0442 \u0432\u0440\u0430\u0433\u043E\u0432 \u0438 \u043D\u0430\u043D\u043E\u0441\u044F\u0442 \u0441\u043B\u0430\u0431\u044B\u0439 \u043E\u0436\u043E\u0433\u043E\u0432\u044B\u0439 \u0443\u0440\u043E\u043D. \n\u0422\u0430\u043A \u0436\u0435 \u043E\u043D\u0438 \u043F\u0440\u043E\u043B\u0435\u0442\u0430\u044E\u0442 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0435\u043A\u043B\u043E, \u043A\u0430\u043A \u0438 \u043E\u0431\u044B\u0447\u043D\u044B\u0435 \u043B\u0430\u0437\u0435\u0440\u043D\u044B\u0435 \u0441\u043D\u0430\u0440\u044F\u0434\u044B. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0432\u044B\u0441\u0442\u0440\u0435\u043B\u0430: 300 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[1]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[1],onClick:function(){function B(){return v("give_ability",{style:"adrenal",row:"2"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"adrenal",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0421\u041F\u041B\u0415\u0421\u041A \u0410\u0414\u0420\u0415\u041D\u0410\u041B\u0418\u041D\u0410",content:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u0432\u0432\u043E\u0434\u0438\u0442 \u0432 \u0432\u0430\u0441 \u043C\u043E\u0449\u043D\u0443\u044E \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u0443\u044E \u0441\u044B\u0432\u043E\u0440\u043E\u0442\u043A\u0443 \u0443\u0441\u043A\u043E\u0440\u044F\u044E\u0449\u0443\u044E \u0432\u0430\u0441 \u0432 \u0431\u043E\u044E \u0438 \u043F\u043E\u043C\u043E\u0433\u0430\u044E\u0449\u0443\u044E \u0431\u044B\u0441\u0442\u0440\u0435\u0435 \u043E\u043A\u043B\u0435\u043C\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0445 \u044D\u0444\u0444\u0435\u043A\u0442\u043E\u0432. \n\u041A\u043E\u0441\u0442\u044E\u043C \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442 \u0441\u044B\u0432\u043E\u0440\u043E\u0442\u043A\u0443 \u0441 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435\u043C \u0443\u0440\u0430\u043D\u0430. \u0427\u0442\u043E \u043A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E \u0434\u0430\u0451\u0442 \u043D\u0435\u043F\u0440\u0438\u044F\u0442\u043D\u044B\u0439 \u043D\u0435\u0433\u0430\u0442\u0438\u0432\u043D\u044B\u0439 \u044D\u0444\u0444\u0435\u043A\u0442, \u0432 \u0432\u0438\u0434\u0435 \u043D\u0430\u043A\u043E\u043F\u043B\u0435\u043D\u0438\u044F \u0440\u0430\u0434\u0438\u044F \u0432 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043C\u0435 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \n\u0412\u043C\u0435\u0441\u0442\u043E \u0442\u0440\u0430\u0442\u044B \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u043B\u0438\u0448\u044C \u043E\u0434\u0438\u043D \u0440\u0430\u0437, \u043F\u043E\u043A\u0430 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0436\u0435\u043D\u043E \u0432\u0440\u0443\u0447\u043D\u0443\u044E \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0446\u0435\u043B\u044C\u043D\u044B\u0445 \u043A\u0443\u0441\u043A\u043E\u0432 \u0443\u0440\u0430\u043D\u0430 \u043F\u043E\u043C\u0435\u0449\u0451\u043D\u043D\u044B\u0445 \u0432 \u043A\u043E\u0441\u0442\u044E\u043C.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[2]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[2],onClick:function(){function B(){return v("give_ability",{style:"emp",row:"3"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"emp",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041B\u0415\u041A\u0422\u0420\u041E\u041C\u0410\u0413\u041D\u0418\u0422\u041D\u042B\u0419 \u0412\u0417\u0420\u042B\u0412",content:"\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043C\u0430\u0433\u043D\u0438\u0442\u043D\u044B\u0435 \u0432\u043E\u043B\u043D\u044B \u0432\u044B\u043A\u043B\u044E\u0447\u0430\u044E\u0442, \u043F\u043E\u0434\u0440\u044B\u0432\u0430\u044E\u0442 \u0438\u043B\u0438 \u0438\u043D\u0430\u0447\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0430\u044E\u0442 - \u043A\u0438\u0431\u043E\u0440\u0433\u043E\u0432, \u0434\u0440\u043E\u043D\u043E\u0432, \u041A\u041F\u0411, \u044D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043E\u0440\u0443\u0436\u0438\u0435, \u043F\u043E\u0440\u0442\u0430\u0442\u0438\u0432\u043D\u044B\u0435 \u0421\u0432\u0435\u0442\u043E\u0448\u0443\u043C\u043E\u0432\u044B\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430, \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430 \u0441\u0432\u044F\u0437\u0438 \u0438 \u0442.\u0434. \n\u042D\u0442\u043E\u0442 \u0432\u0437\u0440\u044B\u0432 \u043C\u043E\u0436\u0435\u0442 \u043A\u0430\u043A \u043F\u043E\u043C\u043E\u0447\u044C \u0432\u0430\u043C \u0432 \u0431\u043E\u044E, \u0442\u0430\u043A \u0438 \u043D\u0435\u0432\u0435\u0440\u043E\u044F\u0442\u043D\u043E \u043D\u0430\u0432\u0440\u0435\u0434\u0438\u0442\u044C. \u0412\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u043E\u0441\u043C\u0430\u0442\u0440\u0438\u0432\u0430\u0439\u0442\u0435 \u043C\u0435\u0441\u0442\u043D\u043E\u0441\u0442\u044C \u043F\u0435\u0440\u0435\u0434 \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u0435\u043C. \n\u041D\u0435 \u0437\u0430\u0431\u044B\u0432\u0430\u0439\u0442\u0435 \u043E \u0437\u0430\u0449\u0438\u0449\u0430\u044E\u0449\u0435\u043C \u043E\u0442 \u0441\u0432\u0435\u0442\u0430 \u0440\u0435\u0436\u0438\u043C\u0435 \u0432\u0430\u0448\u0435\u0433\u043E \u0432\u0438\u0437\u043E\u0440\u0430. \u041E\u043D \u043C\u043E\u0436\u0435\u0442 \u043F\u043E\u043C\u043E\u0447\u044C \u043D\u0435 \u043E\u0441\u043B\u0435\u043F\u043D\u0443\u0442\u044C, \u043F\u0440\u0438 \u043F\u043E\u0434\u0440\u044B\u0432\u0435 \u043F\u043E\u0434\u043E\u0431\u043D\u044B\u0445 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432. \n\u0412\u0437\u0440\u044B\u0432 - \u043F\u0440\u0435\u0440\u044B\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B \u043D\u0430\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0435 \u043D\u0430 \u0432\u0430\u0441. \u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 5000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 4 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[3]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[3],onClick:function(){function B(){return v("give_ability",{style:"energynet",row:"4"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"energynet",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041D\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041A\u0410\u042F \u0421\u0415\u0422\u042C",content:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u043B\u043E\u0432\u0438\u0442 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u0443\u044E \u0432\u0430\u043C\u0438 \u0446\u0435\u043B\u044C \u0432 \u043E\u0431\u0435\u0437\u0434\u0432\u0438\u0436\u0438\u0432\u0430\u044E\u0449\u0443\u044E \u043B\u043E\u0432\u0443\u0448\u043A\u0443. \n\u0418\u0437 \u043B\u043E\u0432\u0443\u0448\u043A\u0438 \u043B\u0435\u0433\u043A\u043E \u0432\u044B\u0431\u0440\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u043E\u0441\u0442\u043E \u0441\u043B\u043E\u043C\u0430\u0432 \u0435\u0451 \u043B\u044E\u0431\u044B\u043C \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u043C. \n\u041E\u0442\u043B\u0438\u0447\u043D\u043E \u043F\u043E\u0434\u0445\u043E\u0434\u0438\u0442 \u0434\u043B\u044F \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043D\u0435\u0439\u0442\u0440\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u043E\u0434\u043D\u043E\u0433\u043E \u0432\u0440\u0430\u0433\u0430. \n\u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u0432 \u043D\u0435\u0451 \u043C\u043E\u0436\u043D\u043E \u043F\u043E\u0439\u043C\u0430\u0442\u044C \u0430\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043D\u044B\u0445 \u0436\u0438\u0432\u043E\u0442\u043D\u044B\u0445 \u0438\u043B\u0438 \u043D\u0430\u0434\u043E\u0435\u0434\u043B\u0438\u0432\u044B\u0445 \u043E\u0445\u0440\u0430\u043D\u043D\u044B\u0445 \u0431\u043E\u0442\u043E\u0432. \n\u0423\u0447\u0438\u0442\u044B\u0432\u0430\u0439\u0442\u0435, \u0447\u0442\u043E \u0441\u0435\u0442\u044C \u043D\u0435 \u043C\u0435\u0448\u0430\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0435 \u043E\u0442\u0441\u0442\u0440\u0435\u043B\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u0432\u0430\u0441. \n\u0422\u0430\u043A \u0436\u0435 \u0441\u0435\u0442\u044C \u043B\u0435\u0433\u043A\u043E \u043F\u043E\u043A\u0438\u043D\u0443\u0442\u044C \u0434\u0440\u0443\u0433\u0438\u043C \u043F\u0443\u0442\u0451\u043C, \u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u0435\u0439. \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u0435\u0442\u0438 - \u043F\u0440\u0435\u0440\u044B\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B \u043D\u0430\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0435 \u043D\u0430 \u0432\u0430\u0441. \u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 4000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[4]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[4],onClick:function(){function B(){return v("give_ability",{style:"spider_red",row:"5"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"spider_red",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0411\u041E\u0415\u0412\u041E\u0415 \u0418\u0421\u041A\u0423\u0421\u0421\u0422\u0412\u041E \n\u041F\u041E\u041B\u0417\u0423\u0427\u0415\u0419 \u0412\u0414\u041E\u0412\u042B",content:"\u0411\u043E\u0435\u0432\u043E\u0435 \u0438\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u043E \u043D\u0438\u043D\u0434\u0437\u044F \u0441\u043E\u0441\u0440\u0435\u0434\u043E\u0442\u043E\u0447\u0435\u043D\u043D\u043E\u0435 \u043D\u0430 \u043D\u0430\u043A\u043E\u043F\u043B\u0435\u043D\u0438\u0438 \u043A\u043E\u043D\u0446\u0435\u043D\u0442\u0440\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u043F\u0440\u0438\u0451\u043C\u043E\u0432. \n\u0412 \u0443\u0447\u0435\u043D\u0438\u0435 \u0432\u0445\u043E\u0434\u044F\u0442 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u043F\u0440\u0438\u0451\u043C\u044B: \n\u0412\u044B\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u043D\u0438\u0435 \u0440\u0443\u043A\u0438 - \u0437\u0430\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0443 \u0432\u044B\u0440\u043E\u043D\u0438\u0442\u044C \u0441\u0432\u043E\u0451 \u043E\u0440\u0443\u0436\u0438\u0435. \n\u0423\u0434\u0430\u0440 \u043B\u0430\u0434\u043E\u043D\u044C\u044E - \u043E\u0442\u043A\u0438\u0434\u044B\u0432\u0430\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0443 \u043D\u0430 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043C\u0435\u0442\u0440\u043E\u0432 \u043E\u0442 \u0432\u0430\u0441, \u043B\u0438\u0448\u0430\u044F \u0440\u0430\u0432\u043D\u043E\u0432\u0435\u0441\u0438\u044F. \n\u041F\u0435\u0440\u0435\u0440\u0435\u0437\u0430\u043D\u0438\u0435 \u0448\u0435\u0438 - \u043C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u043E\u0431\u0435\u0437\u0433\u043B\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442 \u043B\u0435\u0436\u0430\u0447\u0443\u044E \u0436\u0435\u0440\u0442\u0432\u0443 \u043A\u0430\u0442\u0430\u043D\u043E\u0439 \u0432\u043E \u0432\u0441\u043F\u043E\u043C\u043E\u0433\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0440\u0443\u043A\u0435. \n\u042D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0442\u043E\u0440\u043D\u0430\u0434\u043E - \u0440\u0430\u0441\u043A\u0438\u0434\u044B\u0432\u0430\u0435\u0442 \u0432\u0440\u0430\u0433\u043E\u0432 \u0432\u043E\u043A\u0440\u0443\u0433 \u0432\u0430\u0441 \u0438 \u0441\u043E\u0437\u0434\u0430\u0451\u0442 \u043E\u0431\u043B\u0430\u043A\u043E \u0434\u044B\u043C\u0430 \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u043E\u0433\u043E \u0434\u044B\u043C\u043E\u0432\u043E\u0433\u043E \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430 \u0438 \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u0422\u0430\u043A \u0436\u0435 \u0432\u044B \u043E\u0431\u0443\u0447\u0430\u0435\u0442\u0435\u0441\u044C \u0441 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u044B\u043C \u0448\u0430\u043D\u0441\u043E\u043C \u043E\u0442\u0440\u0430\u0436\u0430\u0442\u044C \u0441\u043D\u044F\u0440\u044F\u0434\u044B \u0432\u0440\u0430\u0433\u043E\u0432 \u043E\u0431\u0440\u0430\u0442\u043D\u043E.",position:"right"})]})]})]})]})})},s=r.ShuttleConsole=function(){function f(u,C){var b=(0,a.useBackend)(C),v=b.act,h=b.data;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0448\u0430\u0442\u0442\u043B\u043E\u043C",mr:"5px",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041F\u0430\u043D\u0435\u043B\u044C \u0434\u043B\u044F \u0443\u0434\u0430\u043B\u0451\u043D\u043D\u043E\u0433\u043E \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0432\u0430\u0448\u0438\u043C \u043B\u0438\u0447\u043D\u044B\u043C \u0448\u0430\u0442\u0442\u043B\u043E\u043C. \u0422\u0430\u043A \u0436\u0435 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u0442\u0435\u043A\u0443\u0449\u0443\u044E \u043F\u043E\u0437\u0438\u0446\u0438\u044E \u0438 \u043F\u043E\u0437\u0438\u0446\u0438\u044E \u0441\u0430\u043C\u043E\u0433\u043E \u0448\u0430\u0442\u0442\u043B\u0430!",tooltipPosition:"right"}),children:(0,e.createComponentVNode)(2,t.Flex,{ml:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0437\u0438\u0446\u0438\u044F",children:h.status?h.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0430\u0448\u0430 \u043F\u043E\u0437\u0438\u0446\u0438\u044F",children:h.player_pos}),!!h.shuttle&&(!!h.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0448\u0430\u0442\u0442\u043B",children:h.docking_ports.map(function(g){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:g.name,onClick:function(){function N(){return v("move",{move:g.id})}return N}()},g.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledListItem,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!h.admin_controlled&&(0,e.createComponentVNode)(2,o.LabeledListItem,{label:"\u0410\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044E",disabled:!h.status,onClick:function(){function g(){return v("request")}return g}()})})],0))]})})})}return f}(),l=function(u,C){var b=(0,a.useBackend)(C),v=b.data,h=v.randomPercent,g=v.actionsIcon,N=v.color_choice;return(0,e.createComponentVNode)(2,t.Section,{stretchContents:!0,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:N,value:h,minValue:0,maxValue:100,children:(0,e.createVNode)(1,"center",null,(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_"+N,mt:1,children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"spider_"+N,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Loading ",h+"%"]}),2)})})},d=function(f){function u(b){var v;return v=f.call(this,b)||this,v.timer=null,v.state={lastText:"text do be there",currentDisplay:[]},v}S(u,f);var C=u.prototype;return C.tick=function(){function b(){var v=this.props,h=this.state;if(v.allMessages!==h.lastText&&!v.end_terminal){var g=h.currentDisplay;g.push(v.allMessages),h.lastText=v.allMessages}else v.end_terminal&&(clearTimeout(this.timer),setTimeout(v.onFinished,v.finishedTimeout))}return b}(),C.componentDidMount=function(){function b(){var v=this,h=this.props.linesPerSecond,g=h===void 0?2.5:h;this.timer=setInterval(function(){return v.tick()},1e3/g)}return b}(),C.componentWillUnmount=function(){function b(){clearTimeout(this.timer)}return b}(),C.render=function(){function b(){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:this.state.currentDisplay.map(function(v){return(0,e.createFragment)([v,(0,e.createVNode)(1,"br")],0,v)})})}return b}(),u}(e.Component)},38307:function(I,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.StationAlertConsole=function(){function y(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,S)})})}return y}(),S=r.StationAlertConsoleContent=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.data,c=i.alarms||[];return Object.keys(c).map(function(s){var l,d;return(0,e.createComponentVNode)(2,t.Section,{title:s+" Alarms",children:(0,e.createVNode)(1,"ul",null,((l=c[s])==null?void 0:l.length)===0?(0,e.createVNode)(1,"li","color-good","Systems Nominal",16):(d=c[s])==null?void 0:d.map(function(f){return(0,e.createVNode)(1,"li","color-average",f,0,null,f)}),0)},s)})}return y}()},39409:function(I,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(89005),a=n(88510),t=n(79140),o=n(72253),m=n(36036),S=n(98595),y=5,k=9,V=function(b){return b===0?5:9},p="64px",i=function(b){return b[0]+"/"+b[1]},c=function(b){var v=b.align,h=b.children;return(0,e.createComponentVNode)(2,m.Box,{style:{position:"absolute",left:v==="left"?"6px":"48px","text-align":v,"text-shadow":"2px 2px 2px #000",top:"2px"},children:h})},s={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},l={neck:{displayName:"neck",gridSpot:i([0,0]),image:"inventory-neck.png"},eyes:{displayName:"eyewear",gridSpot:i([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:i([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:i([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:i([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:i([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:i([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:i([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:i([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:i([1,4])},jumpsuit:{displayName:"uniform",gridSpot:i([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:i([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:i([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:i([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:i([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:i([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:i([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:i([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:i([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:i([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:i([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:i([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:i([4,4]),image:"inventory-pda.png"}},d={neck:{displayName:"neck",gridSpot:i([0,0]),image:"inventory-neck.png"},eyes:{displayName:"eyewear",gridSpot:i([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:i([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:i([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:i([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:i([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:i([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:i([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:i([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:i([1,4])},jumpsuit:{displayName:"uniform",gridSpot:i([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:i([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:i([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:i([4,4]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:i([4,5]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:i([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:i([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:i([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:i([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:i([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:i([4,7]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:i([4,6]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:i([4,8]),image:"inventory-pda.png"}},f=function(C){return C[C.Completely=1]="Completely",C[C.Hidden=2]="Hidden",C}(f||{}),u=r.StripMenu=function(){function C(b,v){var h=(0,o.useBackend)(v),g=h.act,N=h.data,x=new Map;if(N.show_mode===0)for(var B=0,L=Object.keys(N.items);B300?"bad":s>150?"average":"good"},k=function(s){return s>5e3?"bad":s>4e3?"average":"good"},V=function(s){return s>1e4?"bad":s>5e3?"average":"good"},p=function(s,l){var d=(0,a.useBackend)(l),f=d.act,u=d.data;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Detected Supermatter Shards",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Refresh",onClick:function(){function C(){return f("refresh")}return C}()}),children:(0,e.createComponentVNode)(2,t.Box,{m:1,children:u.supermatters.length===0?(0,e.createVNode)(1,"h3",null,"No shards detected",16):(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,m.TableCell,{children:"Area"}),(0,e.createComponentVNode)(2,m.TableCell,{children:"Integrity"}),(0,e.createComponentVNode)(2,m.TableCell,{children:"Details"})]}),u.supermatters.map(function(C){return(0,e.createComponentVNode)(2,m.TableRow,{children:[(0,e.createComponentVNode)(2,m.TableCell,{children:C.area_name}),(0,e.createComponentVNode)(2,m.TableCell,{children:[C.integrity,"%"]}),(0,e.createComponentVNode)(2,m.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"View",onClick:function(){function b(){return f("view",{view:C.uid})}return b}()})})]},C)})]})})})})})},i=function(s,l){var d=(0,a.useBackend)(l),f=d.act,u=d.data;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Crystal Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"caret-square-left",content:"Back",onClick:function(){function C(){return f("back")}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[95,1/0],average:[80,94],bad:[-1/0,79]},minValue:"0",maxValue:"100",value:u.SM_integrity,children:[u.SM_integrity,"%"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,t.Box,{color:y(u.SM_power),children:[u.SM_power," MeV/cm3"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:k(u.SM_ambienttemp),children:[u.SM_ambienttemp," K"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:V(u.SM_ambientpressure),children:[u.SM_ambientpressure," kPa"]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Gas Composition",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:[u.SM_gas_O2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:[u.SM_gas_CO2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:[u.SM_gas_N2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plasma",children:[u.SM_gas_PL,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[u.SM_gas_OTHER,"%"]})]})})]})})}},46029:function(I,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),m=n(98595),S=r.SyndicateComputerSimple=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:400,theme:"syndicate",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:c.rows.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:s.buttontitle,disabled:s.buttondisabled,tooltip:s.buttontooltip,tooltipPosition:"left",onClick:function(){function l(){return i(s.buttonact)}return l}()}),children:[s.status,!!s.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:s.bullets.map(function(l){return(0,e.createComponentVNode)(2,t.Box,{children:l},l)})})]},s.title)})})})}return y}()},99279:function(I,r,n){"use strict";r.__esModule=!0,r.SyndieCargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),m=n(36036),S=n(98595),y=n(29319),k=n(25328),V=r.SyndieCargoConsole=function(){function l(d,f){return(0,e.createComponentVNode)(2,S.Window,{width:900,height:800,theme:"syndicate",children:(0,e.createComponentVNode)(2,S.Window.Content,{children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,s)]})})}return l}(),p=function(d,f){var u=(0,o.useLocalState)(f,"contentsModal",null),C=u[0],b=u[1],v=(0,o.useLocalState)(f,"contentsModalTitle",null),h=v[0],g=v[1];if(C!==null&&h!==null)return(0,e.createComponentVNode)(2,m.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,m.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[h,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,m.Box,{children:C.map(function(N){return(0,e.createComponentVNode)(2,m.Box,{children:["- ",N]},N)})}),(0,e.createComponentVNode)(2,m.Box,{m:2,children:(0,e.createComponentVNode)(2,m.Button,{content:"Close",onClick:function(){function N(){b(null),g(null)}return N}()})})]})},i=function(d,f){var u=(0,o.useBackend)(f),C=u.act,b=u.data,v=b.is_public,h=v===void 0?0:v,g=b.cash,N=b.wait_time,x=b.is_cooldown,B=b.telepads_status,L=b.adminAddCash,T=B,E="",w=0,A="";return B==="Pads not linked!"?(w=0,E="Attempts to link telepads to the console.",A="Link pads"):x?x&&(A="Cooldown...",E="Pads are cooling off...",w=1,N!==1?T=""+B+" (ETA: "+N+" seconds)":T=""+B+" (ETA: "+N+" second)"):(w=0,E="Teleports your crates to the market. A reminder, some of the crates are directly stolen from NT trading routes. That means they can be locked. We are NOT sorry for the inconvenience",A="Teleport"),(0,e.createComponentVNode)(2,m.Section,{title:"Status",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[h===0&&(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Money Available",children:[g,(0,e.createComponentVNode)(2,m.Button,{tooltip:"Withdraw money from the console",content:"Withdraw",onClick:function(){function O(){return C("withdraw",{cash:g})}return O}()}),(0,e.createComponentVNode)(2,m.Button,{content:L,tooltip:"Bless the players with da money!",onClick:function(){function O(){return C("add_money",{cash:g})}return O}()})]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Telepads Status",children:T}),h===0&&(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,m.Button,{content:A,tooltip:E,disabled:w,onClick:function(){function O(){return C("teleport")}return O}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Syndicate Black Market Log",onClick:function(){function O(){return C("showMessages")}return O}()})]})]})})},c=function(d,f){var u=(0,o.useBackend)(f),C=u.act,b=u.data,v=b.categories,h=b.supply_packs,g=(0,o.useSharedState)(f,"category","Emergency"),N=g[0],x=g[1],B=(0,o.useSharedState)(f,"search_text",""),L=B[0],T=B[1],E=(0,o.useLocalState)(f,"contentsModal",null),w=E[0],A=E[1],O=(0,o.useLocalState)(f,"contentsModalTitle",null),M=O[0],P=O[1],R=(0,k.createSearch)(L,function(U){return U.name}),F=(0,a.flow)([(0,t.filter)(function(U){return U.cat===v.filter(function(W){return W.name===N})[0].category||L}),L&&(0,t.filter)(R),(0,t.sortBy)(function(U){return U.name.toLowerCase()})])(h),_="Crate Catalogue";return L?_="Results for '"+L+"':":N&&(_="Browsing "+N),(0,e.createComponentVNode)(2,m.Section,{title:_,buttons:(0,e.createComponentVNode)(2,m.Dropdown,{width:"190px",options:v.map(function(U){return U.name}),selected:N,onSelected:function(){function U(W){return x(W)}return U}()}),children:[(0,e.createComponentVNode)(2,m.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function U(W,$){return T($)}return U}(),mb:1}),(0,e.createComponentVNode)(2,m.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:F.map(function(U){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{bold:!0,children:[U.name," (",U.cost," Credits)"]}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,m.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){function W(){return C("order",{crate:U.ref,multiple:0})}return W}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){function W(){return C("order",{crate:U.ref,multiple:1})}return W}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Contents",icon:"search",onClick:function(){function W(){A(U.contents),P(U.name)}return W}()})]})]},U.name)})})})]})},s=function(d,f){var u=(0,o.useBackend)(f),C=u.act,b=u.data,v=b.requests,h=b.canapprove,g=b.orders;return(0,e.createComponentVNode)(2,m.Section,{title:"Details",children:(0,e.createComponentVNode)(2,m.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:[(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:v.map(function(N){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",N.ordernum,": ",N.supply_type," for ",(0,e.createVNode)(1,"b",null,N.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",N.comment]})]}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,m.Button,{content:"Approve",color:"green",disabled:!h,onClick:function(){function x(){return C("approve",{ordernum:N.ordernum})}return x}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Deny",color:"red",onClick:function(){function x(){return C("deny",{ordernum:N.ordernum})}return x}()})]})]},N.ordernum)})}),(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Confirmed Orders"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:g.map(function(N){return(0,e.createComponentVNode)(2,m.Table.Row,{children:(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",N.ordernum,": ",N.supply_type," for ",(0,e.createVNode)(1,"b",null,N.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",N.comment]})]})},N.ordernum)})})]})})}},44852:function(I,r,n){"use strict";r.__esModule=!0,r.TTSSeedsExplorerContent=r.TTSSeedsExplorer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m={0:"\u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u044B\u0435",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV"},S={\u041C\u0443\u0436\u0441\u043A\u043E\u0439:{icon:"mars",color:"blue"},\u0416\u0435\u043D\u0441\u043A\u0438\u0439:{icon:"venus",color:"purple"},\u041B\u044E\u0431\u043E\u0439:{icon:"venus-mars",color:"white"}},y=function(i,c,s,l){return l===void 0&&(l=null),i.map(function(d){var f,u=(f=d[l])!=null?f:d;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:c.includes(d),content:u,onClick:function(){function C(){c.includes(d)?s(c.filter(function(b){var v;return((v=b[l])!=null?v:b)!==d})):s([d].concat(c))}return C}()},u)})},k=r.TTSSeedsExplorer=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return p}(),V=r.TTSSeedsExplorerContent=function(){function p(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.providers,u=d.seeds,C=d.selected_seed,b=d.phrases,v=d.donator_level,h=u.map(function(Y){return Y.category}).filter(function(Y,Q,Z){return Z.indexOf(Y)===Q}),g=u.map(function(Y){return Y.gender}).filter(function(Y,Q,Z){return Z.indexOf(Y)===Q}),N=u.map(function(Y){return Y.donator_level}).filter(function(Y,Q,Z){return Z.indexOf(Y)===Q}).map(function(Y){return m[Y]}),x=(0,a.useLocalState)(c,"selectedProviders",f),B=x[0],L=x[1],T=(0,a.useLocalState)(c,"selectedGenders",g),E=T[0],w=T[1],A=(0,a.useLocalState)(c,"selectedCategories",h),O=A[0],M=A[1],P=(0,a.useLocalState)(c,"selectedDonatorLevels",N),R=P[0],F=P[1],_=(0,a.useLocalState)(c,"selectedPhrase",b[0]),U=_[0],W=_[1],$=(0,a.useLocalState)(c,"searchtext",""),G=$[0],oe=$[1],X=y(f,B,L,"name"),pe=y(g,E,w),me=y(h,O,M),ne=y(N,R,F),re=(0,e.createComponentVNode)(2,t.Dropdown,{options:b,selected:U.replace(/(.{25})..+/,"$1..."),width:"220px",onSelected:function(){function Y(Q){return W(Q)}return Y}()}),q=(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",fluid:!0,onInput:function(){function Y(Q,Z){return oe(Z)}return Y}()}),ae=u.sort(function(Y,Q){var Z=Y.name.toLowerCase(),te=Q.name.toLowerCase();return Z>te?1:Z0&&C!==Y.name?"orange":"white",children:Y.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:C===Y.name?.5:.25,textAlign:"left",children:Y.category}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:C===Y.name?"white":S[Y.gender].color,textAlign:"left",children:(0,e.createComponentVNode)(2,t.Icon,{mx:1,size:1.2,name:S[Y.gender].icon})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:Y.donator_level>0&&(0,e.createFragment)([m[Y.donator_level],(0,e.createComponentVNode)(2,t.Icon,{ml:1,mr:2,name:"coins"})],0)})]},Y.name)});return(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",fill:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u044B",children:X}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u043B",children:pe}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438",children:me}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438",children:ne}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:re}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0438\u0441\u043A",children:q})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{scrollable:!0,fill:!0,title:"\u0413\u043E\u043B\u043E\u0441\u0430 ("+ae.length+"/"+u.length+")",children:(0,e.createComponentVNode)(2,t.Table,{children:J})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.BlockQuote,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0414\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044F \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445 \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0445 \u0440\u0430\u0441\u0445\u043E\u0434\u043E\u0432 \u0447\u0430\u0441\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432 \u043F\u0440\u0438\u0448\u043B\u043E\u0441\u044C \u0441\u0434\u0435\u043B\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u043C\u0438 \u0442\u043E\u043B\u044C\u043A\u043E \u0437\u0430 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044C\u043D\u0443\u044E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430."}),(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435 \u043E\u0431 \u044D\u0442\u043E\u043C \u043C\u043E\u0436\u043D\u043E \u0443\u0437\u043D\u0430\u0442\u044C \u0432 \u043D\u0430\u0448\u0435\u043C Discord-\u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0435."})]})})})]})}return p}()},56441:function(I,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.TachyonArray=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.records,l=s===void 0?[]:s,d=c.explosion_target,f=c.toxins_tech,u=c.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:f}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!l.length||u,align:"center",onClick:function(){function C(){return i("print_logs")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!l.length,color:"bad",align:"center",onClick:function(){function C(){return i("delete_logs")}return C}()})]})]})}),l.length?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return y}(),S=r.TachyonArrayContent=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.records,l=s===void 0?[]:s;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function f(){return i("delete_record",{index:d.index})}return f}()})})]},d.index)})]})})})})}return y}()},1754:function(I,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.Tank=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c;return i.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.connected?"check":"times",content:i.connected?"Internals On":"Internals Off",selected:i.connected,onClick:function(){function s(){return p("internals")}return s}()})}):c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:300,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:i.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:i.ReleasePressure===i.minReleasePressure,tooltip:"Min",onClick:function(){function s(){return p("pressure",{pressure:"min"})}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(i.releasePressure),width:"65px",unit:"kPa",minValue:i.minReleasePressure,maxValue:i.maxReleasePressure,onChange:function(){function s(l,d){return p("pressure",{pressure:d})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:i.ReleasePressure===i.maxReleasePressure,tooltip:"Max",onClick:function(){function s(){return p("pressure",{pressure:"max"})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:i.ReleasePressure===i.defaultReleasePressure,tooltip:"Reset",onClick:function(){function s(){return p("pressure",{pressure:"reset"})}return s}()})]}),c]})})})})}return S}()},7579:function(I,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.TankDispenser=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.o_tanks,s=i.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:275,height:100,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Dispense Oxygen Tank ("+c+")",disabled:c===0,icon:"arrow-circle-down",onClick:function(){function l(){return p("oxygen")}return l}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Dispense Plasma Tank ("+s+")",disabled:s===0,icon:"arrow-circle-down",onClick:function(){function l(){return p("plasma")}return l}()})})]})})}return S}()},16136:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.TcommsCore=function(){function p(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.ion,u=(0,a.useLocalState)(c,"tabIndex",0),C=u[0],b=u[1],v=function(){function h(g){switch(g){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,V);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[f===1&&(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===0,onClick:function(){function h(){return b(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"wrench"}),"Configuration"]},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===1,onClick:function(){function h(){return b(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"link"}),"Device Linkage"]},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===2,onClick:function(){function h(){return b(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-times"}),"User Filtering"]},"FilterPage")]}),v(C)]})})}return p}(),S=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},y=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.active,u=d.sectors_available,C=d.nttc_toggle_jobs,b=d.nttc_toggle_job_color,v=d.nttc_toggle_name_color,h=d.nttc_toggle_command_bold,g=d.nttc_job_indicator_type,N=d.nttc_setting_language,x=d.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:f?"On":"Off",selected:f,icon:"power-off",onClick:function(){function B(){return l("toggle_active")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:u})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"user-tag",onClick:function(){function B(){return l("nttc_toggle_jobs")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:b?"On":"Off",selected:b,icon:"clipboard-list",onClick:function(){function B(){return l("nttc_toggle_job_color")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function B(){return l("nttc_toggle_name_color")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"volume-up",onClick:function(){function B(){return l("nttc_toggle_command_bold")}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:g||"Unset",selected:g,icon:"pencil-alt",onClick:function(){function B(){return l("nttc_job_indicator_type")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:N||"Unset",selected:N,icon:"globe",onClick:function(){function B(){return l("nttc_setting_language")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:x||"Unset",selected:x,icon:"server",onClick:function(){function B(){return l("network_id")}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function B(){return l("import")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function B(){return l("export")}return B}()})]})],4)},k=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.link_password,u=d.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:f||"Unset",selected:f,icon:"lock",onClick:function(){function C(){return l("change_password")}return C}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),u.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function b(){return l("unlink",{addr:C.addr})}return b}()})})]},C.addr)})]})]})},V=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function u(){return l("add_filter")}return u}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),f.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function C(){return l("remove_filter",{user:u})}return C}()})})]},u)})]})})}},88046:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.TcommsRelay=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.linked,d=s.active,f=s.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:d?"On":"Off",selected:d,icon:"power-off",onClick:function(){function u(){return c("toggle_active")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:f||"Unset",selected:f,icon:"server",onClick:function(){function u(){return c("network_id")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:l===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),l===1?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)]})})}return k}(),S=function(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.linked_core_id,d=s.linked_core_addr,f=s.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:f?"Yes":"No",icon:f?"eye-slash":"eye",selected:f,onClick:function(){function u(){return c("toggle_hidden_link")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function u(){return c("unlink")}return u}()})})]})})},y=function(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function f(){return c("link",{addr:d.addr})}return f}()})})]},d.addr)})]})})}},20802:function(I,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(79646),S=r.Teleporter=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.targetsTeleport?c.targetsTeleport:{},l=0,d=1,f=2,u=c.calibrated,C=c.calibrating,b=c.powerstation,v=c.regime,h=c.teleporterhub,g=c.target,N=c.locked,x=c.accuracy;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(!b||!h)&&(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[h,!b&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),b&&!h&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),b&&h&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Regime",children:[(0,e.createComponentVNode)(2,t.Button,{tooltip:"Teleport to another teleport hub. ",color:v===d?"good":null,onClick:function(){function B(){return i("setregime",{regime:d})}return B}(),children:"Gate"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"One-way teleport. ",color:v===l?"good":null,onClick:function(){function B(){return i("setregime",{regime:l})}return B}(),children:"Teleporter"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"Teleport to a location stored in a GPS device. ",color:v===f?"good":null,disabled:!N,onClick:function(){function B(){return i("setregime",{regime:f})}return B}(),children:"GPS"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Teleport target",children:[v===l&&(0,e.createComponentVNode)(2,t.Dropdown,{width:"220px",selected:g,options:Object.keys(s),color:g!=="None"?"default":"bad",onSelected:function(){function B(L){return i("settarget",{x:s[L].x,y:s[L].y,z:s[L].z})}return B}()}),v===d&&(0,e.createComponentVNode)(2,t.Dropdown,{width:"220px",selected:g,options:Object.keys(s),color:g!=="None"?"default":"bad",onSelected:function(){function B(L){return i("settarget",{x:s[L].x,y:s[L].y,z:s[L].z})}return B}()}),v===f&&(0,e.createComponentVNode)(2,t.Box,{children:g})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Calibration",children:[g!=="None"&&(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,m.GridColumn,{size:"2",children:C&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||(u||x>=3)&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,m.GridColumn,{size:"3",children:(0,e.createComponentVNode)(2,t.Box,{class:"ml-1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",disabled:!!(u||C),onClick:function(){function B(){return i("calibrate")}return B}()})})})]}),g==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})}),!!(N&&b&&h&&v===f)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",justify:"space-around",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function B(){return i("load")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function B(){return i("eject")}return B}()})]})})]})})}return y}()},24410:function(I,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(72253),m=n(92986),S=n(36036),y=n(98595),k=r.sanitizeMultiline=function(){function c(s){return s.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),V=r.removeAllSkiplines=function(){function c(s){return s.replace(/[\r\n]+/,"")}return c}(),p=r.TextInputModal=function(){function c(s,l){var d=(0,o.useBackend)(l),f=d.act,u=d.data,C=u.max_length,b=u.message,v=b===void 0?"":b,h=u.multiline,g=u.placeholder,N=u.timeout,x=u.title,B=(0,o.useLocalState)(l,"input",g||""),L=B[0],T=B[1],E=function(){function O(M){if(M!==L){var P=h?k(M):V(M);T(P)}}return O}(),w=h||L.length>=40,A=130+(v.length>40?Math.ceil(v.length/4):0)+(w?80:0);return(0,e.createComponentVNode)(2,y.Window,{title:x,width:325,height:A,children:[N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function O(M){var P=window.event?M.which:M.keyCode;P===m.KEY_ENTER&&(!w||!M.shiftKey)&&f("submit",{entry:L}),P===m.KEY_ESCAPE&&f("cancel")}return O}(),children:(0,e.createComponentVNode)(2,S.Section,{fill:!0,children:(0,e.createComponentVNode)(2,S.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,S.Box,{color:"label",children:v})}),(0,e.createComponentVNode)(2,S.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{input:L,onType:E})}),(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:L,message:L.length+"/"+C})})]})})})]})}return c}(),i=function(s,l){var d=(0,o.useBackend)(l),f=d.act,u=d.data,C=u.max_length,b=u.multiline,v=s.input,h=s.onType,g=b||v.length>=40;return(0,e.createComponentVNode)(2,S.TextArea,{autoFocus:!0,autoSelect:!0,height:b||v.length>=40?"100%":"1.8rem",maxLength:C,onEscape:function(){function N(){return f("cancel")}return N}(),onEnter:function(){function N(x){g&&x.shiftKey||(x.preventDefault(),f("submit",{entry:v}))}return N}(),onInput:function(){function N(x,B){return h(B)}return N}(),placeholder:"Type something...",value:v})}},69566:function(I,r,n){"use strict";r.__esModule=!0,r.ThiefKit=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ThiefKit=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.uses,s=i.possible_uses,l=i.multi_uses,d=i.kits,f=i.choosen_kits;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:900,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u041D\u0430\u0431\u043E\u0440 \u0413\u0438\u043B\u044C\u0434\u0438\u0438 \u0412\u043E\u0440\u043E\u0432:",children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:[(0,e.createVNode)(1,"i",null,"\u0423\u0432\u0435\u0441\u0438\u0441\u0442\u0430\u044F \u043A\u043E\u0440\u043E\u0431\u043A\u0430, \u0432 \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u043B\u0435\u0436\u0438\u0442 \u0441\u043D\u0430\u0440\u044F\u0436\u0435\u043D\u0438\u0435 \u0433\u0438\u043B\u044C\u0434\u0438\u0438 \u0432\u043E\u0440\u043E\u0432.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"i",null,"\u041D\u0430\u0431\u043E\u0440 \u0432\u043E\u0440\u0430-\u0448\u0440\u0435\u0434\u0438\u043D\u0433\u0435\u0440\u0430. \u041D\u0435\u043B\u044C\u0437\u044F \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u0447\u0442\u043E \u0432 \u043D\u0451\u043C, \u043F\u043E\u043A\u0430 \u043D\u0435 \u0437\u0430\u0433\u043B\u044F\u043D\u0435\u0448\u044C \u0432\u043D\u0443\u0442\u0440\u044C.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"p",null,(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043A\u043E\u0435 \u0441\u043D\u0430\u0440\u044F\u0436\u0435\u043D\u0438\u0435 \u0432 \u043D\u0451\u043C \u043B\u0435\u0436\u0438\u0442?:",16),2),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("\u041E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043E \u043D\u0430\u0431\u043E\u0440\u043E\u0432:"),(0,e.createComponentVNode)(2,t.Box,{as:"span",color:c<=0?"good":c=s,onClick:function(){function u(){return p("randomKit")}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d&&d.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,buttons:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"upload",content:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",disabled:u.was_taken||c>=s,onClick:function(){function C(){return p("takeKit",{item:u.type})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",disabled:!u.was_taken,onClick:function(){function C(){return p("undoKit",{item:u.type})}return C}()})]}),children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:u.desc})},u.type)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 \u043D\u0430\u0431\u043E\u0440\u044B:",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:f&&f.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440",onClick:function(){function C(){return p("undoKit",{item:u.type})}return C}()}),children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:" "})},u.type)})})}),(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440",color:c0?(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("[Left:"),x.contractor.available_offers,(0,e.createTextVNode)("]")],0):(0,e.createVNode)(1,"i",null,"[Offers over]",16):"",x.contractor.accepted?(0,e.createVNode)(1,"i",null,"\xA0(Accepted)",16):!x.contractor.is_admin_forced&&x.contractor.available_offers<=0?"":(0,e.createComponentVNode)(2,m.Countdown,{timeLeft:x.contractor.time_left,format:function(){function M(P,R){return" ("+R+")"}return M}(),bold:!0})]},"BecomeContractor"),(0,e.createComponentVNode)(2,y.Tabs.Tab,{onClick:function(){function M(){return N("lock")}return M}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:p(T)})]})})]})}return b}(),c=function(v,h){var g=(0,S.useBackend)(h),N=g.act,x=g.data,B=x.crystals,L=x.cats,T=(0,S.useLocalState)(h,"uplinkItems",L[0].items),E=T[0],w=T[1],A=(0,S.useLocalState)(h,"searchText",""),O=A[0],M=A[1],P=function($,G){G===void 0&&(G="");var oe=(0,o.createSearch)(G,function(X){var pe=X.hijack_only===1?"|hijack":"";return X.name+"|"+X.desc+"|"+X.cost+"tc"+pe});return(0,t.flow)([(0,a.filter)(function(X){return X==null?void 0:X.name}),G&&(0,a.filter)(oe),(0,a.sortBy)(function(X){return X==null?void 0:X.name})])($)},R=function($){if(M($),$==="")return w(L[0].items);w(P(L.map(function(G){return G.items}).flat(),$))},F=(0,S.useLocalState)(h,"showDesc",1),_=F[0],U=F[1];return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Button.Checkbox,{content:"Show Descriptions",checked:_,onClick:function(){function W(){return U(!_)}return W}()}),(0,e.createComponentVNode)(2,y.Button,{content:"Random Item",icon:"question",onClick:function(){function W(){return N("buyRandom")}return W}()}),(0,e.createComponentVNode)(2,y.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function W(){return N("refund")}return W}()})],4),children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function W($,G){R(G)}return W}(),value:O})})})}),(0,e.createComponentVNode)(2,y.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,y.Tabs,{vertical:!0,children:L.map(function(W){return(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:O!==""?!1:W.items===E,onClick:function(){function $(){w(W.items),M("")}return $}(),children:W.cat},W)})})})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,y.Stack,{vertical:!0,children:E.map(function(W){return(0,e.createComponentVNode)(2,y.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:W,showDecription:_},(0,o.decodeHtmlEntities)(W.name))},(0,o.decodeHtmlEntities)(W.name))})})})})]})]})},s=function(v,h){var g=(0,S.useBackend)(h),N=g.act,x=g.data,B=x.cart,L=x.crystals,T=x.cart_price,E=(0,S.useLocalState)(h,"showDesc",0),w=E[0],A=E[1];return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+L+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Button.Checkbox,{content:"Show Descriptions",checked:w,onClick:function(){function O(){return A(!w)}return O}()}),(0,e.createComponentVNode)(2,y.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function O(){return N("empty_cart")}return O}(),disabled:!B}),(0,e.createComponentVNode)(2,y.Button,{content:"Purchase Cart ("+T+"TC)",icon:"shopping-cart",onClick:function(){function O(){return N("purchase_cart")}return O}(),disabled:!B||T>L})],4),children:(0,e.createComponentVNode)(2,y.Stack,{vertical:!0,children:B?B.map(function(O){return(0,e.createComponentVNode)(2,y.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:O,showDecription:w,buttons:(0,e.createComponentVNode)(2,u,{i:O})})},(0,o.decodeHtmlEntities)(O.name))}):(0,e.createComponentVNode)(2,y.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,l)]})},l=function(v,h){var g=(0,S.useBackend)(h),N=g.act,x=g.data,B=x.cats,L=x.lucky_numbers;return(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,y.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function T(){return N("shuffle_lucky_numbers")}return T}()}),children:(0,e.createComponentVNode)(2,y.Stack,{wrap:!0,children:L.map(function(T){return B[T.cat].items[T.item]}).filter(function(T){return T!=null}).map(function(T,E){return(0,e.createComponentVNode)(2,y.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,d,{grow:!0,i:T})},E)})})})})},d=function(v,h){var g=v.i,N=v.showDecription,x=N===void 0?1:N,B=v.buttons,L=B===void 0?(0,e.createComponentVNode)(2,f,{i:g}):B;return(0,e.createComponentVNode)(2,y.Section,{title:(0,o.decodeHtmlEntities)(g.name),showBottom:x,buttons:L,children:x?(0,e.createComponentVNode)(2,y.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(g.desc)}):null})},f=function(v,h){var g=(0,S.useBackend)(h),N=g.act,x=g.data,B=v.i,L=x.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function T(){return N("add_to_cart",{item:B.obj_path})}return T}(),disabled:B.cost>L}),(0,e.createComponentVNode)(2,y.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function T(){return N("buyItem",{item:B.obj_path})}return T}(),disabled:B.cost>L})],4)},u=function(v,h){var g=(0,S.useBackend)(h),N=g.act,x=g.data,B=v.i,L=x.exploitable;return(0,e.createComponentVNode)(2,y.Stack,{children:[(0,e.createComponentVNode)(2,y.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function T(){return N("remove_from_cart",{item:B.obj_path})}return T}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function T(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return T}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,y.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function T(E,w){return N("set_cart_item_quantity",{item:B.obj_path,quantity:w})}return T}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,y.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function T(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return T}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},C=function(v,h){var g=(0,S.useBackend)(h),N=g.act,x=g.data,B=x.exploitable,L=(0,S.useLocalState)(h,"selectedRecord",B[0]),T=L[0],E=L[1],w=(0,S.useLocalState)(h,"searchText",""),A=w[0],O=w[1],M=function(F,_){_===void 0&&(_="");var U=(0,o.createSearch)(_,function(W){return W.name});return(0,t.flow)([(0,a.filter)(function(W){return W==null?void 0:W.name}),_&&(0,a.filter)(U),(0,a.sortBy)(function(W){return W.name})])(F)},P=M(B,A);return(0,e.createComponentVNode)(2,y.Section,{fill:!0,title:"Exploitable Records",children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{width:"30%",fill:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,y.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function R(F,_){return O(_)}return R}()}),(0,e.createComponentVNode)(2,y.Tabs,{vertical:!0,children:P.map(function(R){return(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:R===T,onClick:function(){function F(){return E(R)}return F}(),children:R.name},R)})})]})}),(0,e.createComponentVNode)(2,y.Divider,{vertical:!0}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,title:T.name,scrollable:!0,children:(0,e.createComponentVNode)(2,y.LabeledList,{children:[(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Age",children:T.age}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Fingerprint",children:T.fingerprint}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Rank",children:T.rank}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Sex",children:T.sex}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Species",children:T.species}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Records",children:T.exploit_record})]})})})]})})};(0,V.modalRegisterBodyOverride)("become_contractor",function(b,v){var h,g,N,x,B=(0,S.useBackend)(v),L=B.data,T=L.contractor||{},E=T.time_left,w=!!(L!=null&&(h=L.contractor)!=null&&h.available),A=!!(L!=null&&(g=L.contractor)!=null&&g.affordable),O=!!(L!=null&&(N=L.contractor)!=null&&N.accepted),M=L.contractor||{},P=M.available_offers,R=!!(L!=null&&(x=L.contractor)!=null&&x.is_admin_forced);return(0,e.createComponentVNode)(2,y.Section,{height:"65%",level:"2",m:"-1rem",pb:"1rem",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Icon,{name:"suitcase"}),(0,e.createTextVNode)("\xA0 Contracting Opportunity")],4),children:[(0,e.createComponentVNode)(2,y.Box,{mx:"0.5rem",mb:"0.5rem",children:[(0,e.createVNode)(1,"b",null,"Your achievements for the Syndicate have not gone unnoticed, agent. We have decided to give you the rare opportunity of becoming a Contractor.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),"For the small price of 20 telecrystals, we will upgrade your rank to that of a Contractor, allowing you to undertake kidnapping contracts for TC and credits.",(0,e.createVNode)(1,"br"),"In addition, you will be supplied with a Contractor Kit which contains a Contractor Uplink, standard issue contractor gear and three random low cost items.",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),"More detailed instructions can be found within your kit, should you accept this offer.",R?"":(0,e.createComponentVNode)(2,y.Box,{children:["Hurry up. You are not the only one who received this offer. Their number is limited. If other traitors accept all offers before you, you will not be able to accept one of them.",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Available offers: "),P],0)]})]}),(0,e.createComponentVNode)(2,y.Button.Confirm,{disabled:!w||O,italic:!w,bold:w,icon:w&&!O&&"check",color:"good",content:O?"Accepted":w?["Accept Offer",(0,e.createComponentVNode)(2,m.Countdown,{timeLeft:E,format:function(){function F(_,U){return" ("+U+")"}return F}()},"countdown")]:A?L.contractor.is_admin_forced?"Offer expired":L.contractor.available_offers>0?(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("[Left:"),L.contractor.available_offers,(0,e.createTextVNode)("]")],0):(0,e.createVNode)(1,"i",null,"[Offers are over]",16):"Insufficient TC",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function F(){return(0,V.modalAnswer)(v,b.id,1)}return F}()})]})})},80949:function(I,r,n){"use strict";r.__esModule=!0,r.UploadPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.UploadPanel=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.selected_target,s=i.new_law,l=i.id,d=i.transmitting,f=i.hacked;return(0,e.createComponentVNode)(2,o.Window,{width:900,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Silicon Law Upload",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Target",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d,selected:!!c,content:c||"No target selected",onClick:function(){function u(){return p("choose_silicon")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Law",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d,selected:!!s,content:s||"No module installed",onClick:function(){function u(){return p("insert_module")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{selected:!!l,content:l||(f?"$@!ERR0R!@#":"No ID card inserted"),onClick:function(){function u(){return p("authorization")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upload Laws",children:(0,e.createComponentVNode)(2,t.Button,{disabled:!c||!s||(f?!1:!l),selected:!!d,content:d?"STOP UPLOAD":"START UPLOAD",onClick:function(){function u(){return p("change_laws")}return u}()})})]})})})})}return S}()},8946:function(I,r,n){"use strict";r.__esModule=!0,r.VampireSpecMenu=r.UmbrMenu=r.HemoMenu=r.GarMenu=r.DantMenu=r.BestMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.VampireSpecMenu=function(){function i(c,s){var l=(0,a.useBackend)(s),d=l.act,f=(0,a.useLocalState)(s,"activeTab","hemomancer"),u=f[0],C=f[1],b=function(){function v(){switch(u){case"hemomancer":return(0,e.createComponentVNode)(2,S,{act:d});case"umbrae":return(0,e.createComponentVNode)(2,y,{act:d});case"gargantua":return(0,e.createComponentVNode)(2,k,{act:d});case"dantalion":return(0,e.createComponentVNode)(2,V,{act:d});case"bestia":return(0,e.createComponentVNode)(2,p,{act:d});default:return null}}return v}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:890,resizable:!0,theme:"ntos_spooky",children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",onClick:function(){function v(){return C("hemomancer")}return v}(),selected:u==="hemomancer"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0423\u043C\u0431\u0440\u0430",onClick:function(){function v(){return C("umbrae")}return v}(),selected:u==="umbrae"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",onClick:function(){function v(){return C("gargantua")}return v}(),selected:u==="gargantua"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",onClick:function(){function v(){return C("dantalion")}return v}(),selected:u==="dantalion"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0411\u0435\u0441\u0442\u0438\u044F",onClick:function(){function v(){return C("bestia")}return v}(),selected:u==="bestia"})]}),(0,e.createComponentVNode)(2,t.Divider),b()]})})}return i}(),S=r.HemoMenu=function(){function i(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.hemomancer;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:u[0],icon_state:u[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043C\u0430\u0433\u0438\u0438 \u043A\u0440\u043E\u0432\u0438 \u0438 \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0438 \u0435\u044E.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u043E\u0433\u0442\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u043F\u0430\u0440\u0443 \u0441\u043C\u0435\u0440\u0442\u043E\u043D\u043E\u0441\u043D\u044B\u0445 \u043A\u043E\u0433\u0442\u0435\u0439, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0438\u0445 \u0431\u044B\u0441\u0442\u0440\u043E \u0430\u0442\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u0446\u0435\u043B\u044C, \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u044F \u0435\u0435 \u043A\u0440\u043E\u0432\u044C \u0438 \u0440\u0435\u0433\u0435\u043D\u0435\u0440\u0438\u0440\u0443\u044F \u0441\u0432\u043E\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u0435.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0431\u0430\u0440\u044C\u0435\u0440",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u044B\u0431\u0440\u0430\u0442\u044C \u0434\u0432\u0435 \u043F\u043E\u0437\u0438\u0446\u0438\u0438 \u0434\u043B\u044F \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u043C\u0435\u0436\u0434\u0443 \u043D\u0438\u043C\u0438 \u0441\u0442\u0435\u043D\u044B.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0435 \u0449\u0443\u043F\u0430\u043B\u044C\u0446\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0441\u043B\u0435 \u043D\u0435\u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0437\u0430\u043C\u0435\u0434\u043B\u0438\u0442\u044C \u0432\u0441\u0435\u0445 \u0432\u043D\u0443\u0442\u0440\u0438 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 3x3.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0433\u0440\u0443\u0436\u0435\u043D\u0438\u0435 \u0432 \u043A\u0440\u043E\u0432\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043D\u0435\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u043F\u0435\u0440\u0435\u0434\u0432\u0438\u0433\u0430\u0442\u044C\u0441\u044F \u0441 \u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C\u044E, \u0438\u0433\u043D\u043E\u0440\u0438\u0440\u0443\u044F \u0432\u0441\u0435 \u043F\u0440\u0435\u043F\u044F\u0442\u0441\u0442\u0432\u0438\u044F, \u043A\u0440\u043E\u043C\u0435 \u0441\u0442\u0435\u043D \u0438 \u043A\u043E\u0441\u043C\u043E\u0441\u0430, \u0430 \u0442\u0430\u043A\u0436\u0435 \u043E\u0441\u0442\u0430\u0432\u043B\u044F\u044F \u0437\u0430 \u0441\u043E\u0431\u043E\u0439 \u043A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0441\u043B\u0435\u0434.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0427\u0443\u0442\u044C\u0451 \u0445\u0438\u0449\u043D\u0438\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0447\u0443\u0432\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0433\u043E-\u0443\u0433\u043E\u0434\u043D\u043E \u0432 \u043F\u0440\u0435\u0434\u0435\u043B\u0430\u0445 \u0432\u0430\u0448\u0435\u0433\u043E \u0441\u0435\u043A\u0442\u043E\u0440\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0418\u0437\u0432\u0435\u0440\u0436\u0435\u043D\u0438\u0435 \u043A\u0440\u043E\u0432\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("800 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043C\u0430\u043D\u0438\u043F\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u043C\u0438 \u0432\u0430\u0441 \u043B\u0443\u0436\u0430\u043C\u0438 \u043A\u0440\u043E\u0432\u0438 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u0447\u0435\u0442\u044B\u0440\u0435\u0445 \u043C\u0435\u0442\u0440\u043E\u0432, \u043F\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044F \u0438\u0445 \u0432 \u0448\u0438\u043F\u044B, \u043F\u0440\u043E\u0442\u044B\u043A\u0430\u044E\u0449\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0432\u0448\u0435\u0433\u043E \u043D\u0430 \u043D\u0438\u0445.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u043E\u0431\u0440\u044F\u0434",16),(0,e.createTextVNode)(": \u0411\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u0442\u044C \u043A\u0440\u043E\u0432\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0430\u0441 \u0441\u0443\u0449\u0435\u0441\u0442\u0432, \u0431\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u044F \u0447\u0435\u043C\u0443 \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E \u043B\u0435\u0447\u0438\u0442\u044C\u0441\u044F \u0438 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u043A\u0430\u043A\u0438\u0445-\u043B\u0438\u0431\u043E \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0445 \u044D\u0444\u0444\u0435\u043A\u0442\u043E\u0432.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",onClick:function(){function C(){return d("hemomancer")}return C}()})]})}return i}(),y=r.UmbrMenu=function(){function i(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.umbrae;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043C\u0431\u0440\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:u[0],icon_state:u[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u0442\u0435\u043C\u043D\u043E\u0442\u0435, \u0437\u0430\u0441\u0430\u0434\u0430\u0445 \u0438 \u0441\u043A\u0440\u044B\u0442\u043D\u043E\u043C \u043F\u0435\u0440\u0435\u043C\u0435\u0449\u0435\u043D\u0438\u0438.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043A\u0440\u043E\u0432 \u0442\u044C\u043C\u044B",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0431\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0431\u044B\u0442\u044C \u043F\u043E\u0447\u0442\u0438 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u044B\u043C \u0438 \u0431\u044B\u0441\u0442\u0440\u043E \u043F\u0435\u0440\u0435\u0434\u0432\u0438\u0433\u0430\u0442\u044C\u0441\u044F \u0432 \u0442\u0435\u043C\u043D\u044B\u0445 \u0443\u0447\u0430\u0441\u0442\u043A\u0430\u0445 \u0441\u0442\u0430\u043D\u0446\u0438\u0438. \u0422\u0430\u043A\u0436\u0435, \u0431\u0443\u0434\u0443\u0447\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u043C, \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043B\u044E\u0431\u043E\u0439 \u0443\u0440\u043E\u043D \u043E\u0442 \u043E\u0436\u043E\u0433\u043E\u0432 \u043F\u043E \u0432\u0430\u043C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0422\u0435\u043D\u0435\u0432\u043E\u0439 \u044F\u043A\u043E\u0440\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u043D\u0430 \u043C\u0435\u0441\u0442\u0435 \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u043C\u0430\u044F\u043A \u043F\u043E\u0441\u043B\u0435 \u043D\u0435\u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438. \u041F\u043E\u0432\u0442\u043E\u0440\u043D\u043E\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u0432\u0430\u0441 \u043E\u0431\u0440\u0430\u0442\u043D\u043E \u043A \u043C\u0430\u044F\u043A\u0443. \u0415\u0441\u043B\u0438 \u0441\u043F\u0443\u0441\u0442\u044F \u0434\u0432\u0435 \u043C\u0438\u043D\u0443\u0442\u044B \u043F\u043E\u0441\u043B\u0435 \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u043D\u0435 \u0431\u044B\u043B\u0430 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043D\u043E\u0432\u0430, \u0442\u043E \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0435\u043D\u044B \u043A \u043C\u0430\u044F\u043A\u0443. \u041C\u0430\u044F\u043A \u043D\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u0435\u043D \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0430\u0441 \u043C\u0435\u0436\u0434\u0443 \u0441\u0435\u043A\u0442\u043E\u0440\u0430\u043C\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0422\u0435\u043D\u0435\u0432\u0430\u044F \u043B\u043E\u0432\u0443\u0448\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0441\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C \u043B\u043E\u0432\u0443\u0448\u043A\u0438, \u0442\u0440\u0430\u0432\u043C\u0438\u0440\u0443\u044E\u0449\u0438\u0435 \u0438 \u043E\u0441\u043B\u0435\u043F\u043B\u044F\u044E\u0449\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0432\u0448\u0435\u0433\u043E \u0432 \u043D\u0438\u0445. \u041B\u043E\u0432\u0443\u0448\u043A\u0443 \u0442\u044F\u0436\u0435\u043B\u043E \u0437\u0430\u043C\u0435\u0442\u0438\u0442\u044C, \u043D\u043E \u043E\u043D\u0430 \u0438\u0441\u0447\u0435\u0437\u0430\u0435\u0442 \u043F\u043E\u0434 \u0432\u043E\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043C \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u043E\u0432 \u044F\u0440\u043A\u043E\u0433\u043E \u0441\u0432\u0435\u0442\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0428\u0430\u0433 \u0432 \u0442\u0435\u043D\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u043B\u044E\u0431\u043E\u0435 \u043C\u0435\u0441\u0442\u043E \u0432 \u043F\u0440\u0435\u0434\u0435\u043B\u0430\u0445 \u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0433\u0430\u0441\u0438\u0442\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u044B\u0432\u043E\u0434\u0438\u0442\u044C \u0438\u0437 \u0441\u0442\u0440\u043E\u044F \u043B\u044E\u0431\u044B\u0435 \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0438 \u0441\u0432\u0435\u0442\u0430, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0433\u043B\u043E\u0443\u0448\u0440\u0443\u043C\u044B.")],0),(0,e.createVNode)(1,"b",null,"\u0411\u043E\u0439 \u0441 \u0442\u0435\u043D\u044C\u044E",16),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("800 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),", \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u0442\u0435\u043D\u0435\u0432\u044B\u0445 \u043A\u043B\u043E\u043D\u043E\u0432, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0431\u0443\u0434\u0443\u0442 \u0430\u0442\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u0446\u0435\u043B\u044C, \u043F\u043E\u043A\u0430 \u0432\u044B \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u0435\u0441\u044C \u0440\u044F\u0434\u043E\u043C.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u0412\u0435\u0447\u043D\u0430\u044F \u0442\u044C\u043C\u0430",16),(0,e.createTextVNode)(": \u043F\u043E\u0441\u043B\u0435 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u0432\u044B \u0440\u0430\u0441\u0441\u0442\u0432\u043E\u0440\u044F\u0435\u0442\u0435\u0441\u044C \u0432 \u043D\u0435\u0447\u0435\u0441\u0442\u0438\u0432\u043E\u0439 \u0442\u0435\u043C\u043D\u043E\u0442\u0435, \u0432 \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u0435\u043D \u043B\u0438\u0448\u044C \u0441\u0438\u043B\u044C\u043D\u0435\u0439\u0448\u0438\u0439 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0441\u0432\u0435\u0442\u0430. \u0425\u043E\u043B\u043E\u0434, \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0435\u0439 \u0432\u0430\u0441 \u0442\u044C\u043C\u044B \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043C\u043E\u0440\u0430\u0436\u0438\u0432\u0430\u0442\u044C \u0432\u0441\u0435\u0445 \u0436\u0438\u0432\u044B\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u043F\u043E\u0431\u043B\u0438\u0437\u043E\u0441\u0442\u0438.")],4),(0,e.createVNode)(1,"p",null,"\u0412\u044B \u0442\u0430\u043A\u0436\u0435 \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442\u0435 X-ray \u0437\u0440\u0435\u043D\u0438\u0435",16),(0,e.createComponentVNode)(2,t.Button,{content:"\u0423\u043C\u0431\u0440\u0430",onClick:function(){function C(){return d("umbrae")}return C}()})]})}return i}(),k=r.GarMenu=function(){function i(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.gargantua;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:u[0],icon_state:u[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u0441\u0442\u043E\u0439\u043A\u043E\u0441\u0442\u0438 \u0438 \u0431\u043B\u0438\u0436\u043D\u0435\u043C \u0431\u043E\u0435.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u0411\u0443\u0434\u0435\u0442 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u0435 \u0442\u0435\u043C \u0441\u0438\u043B\u044C\u043D\u0435\u0435, \u0447\u0435\u043C \u0431\u043E\u043B\u044C\u0448\u0435 \u0443\u0440\u043E\u043D\u0430 \u0432\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0432\u0430\u043B",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 150"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0435 \u0441\u043E\u043F\u0440\u043E\u0442\u0438\u0432\u043B\u0435\u043D\u0438\u0435 \u043E\u0433\u043B\u0443\u0448\u0435\u043D\u0438\u044E, \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u043E\u043C\u0443 \u0438 \u0441\u0442\u0430\u043C\u0438\u043D\u0430 \u0443\u0440\u043E\u043D\u0443. \u0412\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0441\u0442\u0440\u0435\u043B\u044F\u0442\u044C \u043F\u043E\u043A\u0430 \u0430\u043A\u0442\u0438\u0432\u043D\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0423\u0434\u0430\u0440\u043D\u0430\u044F \u0432\u043E\u043B\u043D\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 250"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0441\u043E\u0442\u0440\u044F\u0441\u0430\u0442\u044C \u0437\u0435\u043C\u043B\u044E \u043F\u043E\u0434 \u043D\u043E\u0433\u0430\u043C\u0438, \u0447\u0442\u043E\u0431\u044B \u043E\u0433\u043B\u0443\u0448\u0438\u0442\u044C \u0438 \u043E\u0442\u0442\u043E\u043B\u043A\u043D\u0443\u0442\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0440\u0430\u0433\u043E\u0432.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0434\u0440\u0430\u0439\u0432",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 250"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0434\u0430\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u0438\u0431\u0430\u0432\u043A\u0443 \u043A \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u0438 \u043D\u0430 \u043A\u043E\u0440\u043E\u0442\u043A\u043E\u0435 \u0432\u0440\u0435\u043C\u044F.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0432\u0430\u043B II",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 400"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u0435\u0441\u044C \u0443\u0440\u043E\u043D \u0432 \u0431\u043B\u0438\u0436\u043D\u0435\u043C \u0431\u043E\u044E \u043D\u0430 10.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041D\u0435\u0443\u0434\u0435\u0440\u0436\u0438\u043C\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 600"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0431\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043E\u0442\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0434\u0432\u0435\u0440\u0438 \u043F\u0440\u0438 \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u0438, \u0434\u0430\u0436\u0435 \u043D\u0435 \u0438\u043C\u0435\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430. \u0412\u0430\u0441 \u0442\u0430\u043A\u0436\u0435 \u043D\u0435 \u043C\u043E\u0433\u0443\u0442 \u0442\u043E\u043B\u043A\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0442\u0430\u0449\u0438\u0442\u044C, \u043F\u043E\u043A\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u043D\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0414\u0435\u043C\u043E\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0445\u0432\u0430\u0442\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 800"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A \u0446\u0435\u043B\u0438 \u0434\u0435\u043C\u043E\u043D\u0438\u0447\u0435\u0441\u043A\u0443\u044E \u0440\u0443\u043A\u0443. \u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u0438\u043D\u0442\u0435\u043D\u0442\u0430, disarm/grab, \u0432\u044B \u043E\u0442\u0442\u043E\u043B\u043A\u043D\u0435\u0442\u0435/\u043F\u0440\u0438\u0442\u044F\u043D\u0435\u0442\u0435 \u0446\u0435\u043B\u044C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u0420\u044B\u0432\u043E\u043A",16),(0,e.createTextVNode)(": \u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0434\u0435\u043B\u0430\u0442\u044C \u0440\u044B\u0432\u043E\u043A \u0432 \u0432\u0430\u0448\u0443 \u0446\u0435\u043B\u044C, \u0440\u0430\u0437\u0440\u0443\u0448\u0430\u044F \u0438 \u043E\u0442\u0442\u0430\u043B\u043A\u0438\u0432\u0430\u044F \u0432\u0441\u0435, \u0432\u043E \u0447\u0442\u043E \u0432\u0440\u0435\u0436\u0435\u0442\u0435\u0441\u044C.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",onClick:function(){function C(){return d("gargantua")}return C}()})]})}return i}(),V=r.DantMenu=function(){function i(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.dantalion;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:u[0],icon_state:u[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u0438\u0438 \u0438 \u0438\u043B\u043B\u044E\u0437\u0438\u044F\u0445.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0434\u0447\u0438\u043D\u0435\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0434\u0447\u0438\u043D\u044F\u0435\u0442 \u0446\u0435\u043B\u044C \u0432\u0430\u0448\u0435\u0439 \u0432\u043E\u043B\u0435, \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043E\u0442 \u0432\u0430\u0441 \u043D\u0435 \u0448\u0435\u0432\u0435\u043B\u0438\u0442\u044C\u0441\u044F \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u0438\u044F. \u041D\u0435 \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u043D\u0430 \u043D\u043E\u0441\u0438\u0442\u0435\u043B\u0435\u0439 \u0438\u043C\u043F\u043B\u0430\u043D\u0442\u0430 \u0437\u0430\u0449\u0438\u0442\u044B \u0440\u0430\u0437\u0443\u043C\u0430 \u0438 \u043D\u0430 \u0443\u0436\u0435 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u043D\u044B\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0435\u0434\u0435\u043B \u0440\u0430\u0431\u043E\u0432",16),(0,e.createTextVNode)(": \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0440\u0430\u0431\u043E\u0442\u0438\u0442\u044C \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C \u043E\u0434\u043D\u043E\u0433\u043E \u0440\u0430\u0431\u0430 \u0437\u0430 \u0440\u0430\u0437. \u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0440\u0430\u0431\u043E\u0432 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0442\u0438 \u043F\u0440\u0438 \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u0438"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(","),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u0438 \u043F\u043E\u043B\u043D\u043E\u0439 \u0441\u0438\u043B\u044B \u0441 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C\u043E\u043C \u0432 4 \u0440\u0430\u0431\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0422\u0435\u043B\u0435\u043F\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0441\u0432\u044F\u0437\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0440\u0430\u0437\u0433\u043E\u0432\u0430\u0440\u0438\u0432\u0430\u0442\u044C \u0441 \u0432\u0430\u0448\u0438\u043C\u0438 \u0440\u0430\u0431\u0430\u043C\u0438, \u0432\u0430\u0448\u0438 \u0440\u0430\u0431\u044B \u0442\u0430\u043A\u0436\u0435 \u043C\u043E\u0433\u0443\u0442 \u043E\u0442\u0432\u0435\u0447\u0430\u0442\u044C \u0432\u0430\u043C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0434\u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u043E\u0431\u043C\u0435\u043D",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043C\u0435\u043D\u044F\u0442\u044C\u0441\u044F \u043C\u0435\u0441\u0442\u0430\u043C\u0438 \u0441 \u0446\u0435\u043B\u044C\u044E.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0423\u043C\u0438\u0440\u043E\u0442\u0432\u043E\u0440\u0435\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0443\u0441\u043F\u043E\u043A\u043E\u0438\u0442\u044C \u0446\u0435\u043B\u044C, \u043E\u0442\u043E\u0431\u0440\u0430\u0432 \u0443 \u043D\u0435\u0435 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u043D\u0430\u043D\u0435\u0441\u0442\u0438 \u0432\u0440\u0435\u0434 \u043A\u043E\u043C\u0443-\u043B\u0438\u0431\u043E \u0432 \u0442\u0435\u0447\u0435\u043D\u0438\u0435 40 \u0441\u0435\u043A\u0443\u043D\u0434.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0438\u043C\u0430\u043D\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043D\u0435\u043D\u0430\u0434\u043E\u043B\u0433\u043E \u0434\u0435\u043B\u0430\u0435\u0442 \u0432\u0430\u0441 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u044B\u043C \u0438 \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u043A\u043E\u043F\u0438\u044E \u043E\u0431\u043C\u0430\u043D\u043A\u0443.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0421\u043F\u043B\u043E\u0442\u0438\u0442\u044C \u0440\u0430\u0431\u043E\u0432",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0441\u043D\u0438\u043C\u0430\u0435\u0442 \u0441 \u0431\u043B\u0438\u0437\u0441\u0442\u043E\u044F\u0449\u0438\u0445 \u0440\u0430\u0431\u043E\u0432 \u043B\u044E\u0431\u044B\u0435 \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0435 \u0443\u0437\u044B",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("800 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0441\u0432\u044F\u0437\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0441 \u0441\u043E \u0432\u0441\u0435\u043C\u0438 \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u043C\u0438 \u0432\u0430\u0441 \u0440\u0430\u0431\u0430\u043C\u0438, \u0435\u0441\u043B\u0438 \u043A\u0442\u043E-\u043B\u0438\u0431\u043E \u0432 \u0441\u0432\u044F\u0437\u043A\u0435 \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442 \u0443\u0440\u043E\u043D, \u0442\u043E \u043E\u043D \u0434\u0435\u043B\u0438\u0442\u0441\u044F \u043C\u0435\u0436\u0434\u0443 \u0432\u0441\u0435\u043C\u0438 \u043E\u0441\u0442\u0430\u043B\u044C\u043D\u044B\u043C\u0438. \u0415\u0441\u043B\u0438 \u0440\u0430\u0431 \u0443\u0445\u043E\u0434\u0438\u0442 \u0434\u0430\u043B\u0435\u043A\u043E \u043E\u0442 \u0432\u0430\u0441, \u0442\u043E \u0432\u044B \u0442\u0435\u0440\u044F\u0435\u0442\u0435 \u0441\u0432\u044F\u0437\u044C \u0441 \u043D\u0438\u043C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u041C\u0430\u0441\u0441\u043E\u0432\u0430\u044F \u0438\u0441\u0442\u0435\u0440\u0438\u044F",16),(0,e.createTextVNode)(": \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u043C\u0430\u0441\u0441\u043E\u0432\u0443\u044E \u0433\u0430\u043B\u043B\u044E\u0446\u0438\u043D\u0430\u0446\u0438\u044E, \u043E\u0441\u043B\u0435\u043F\u0438\u0432 \u0432\u0441\u0435\u0445 \u043F\u043E\u0431\u043B\u0438\u0437\u043E\u0441\u0442\u0438, \u0430 \u0437\u0430\u0442\u0435\u043C \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0432 \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0438\u0434\u0435\u0442\u044C \u0434\u0440\u0443\u0433 \u0432 \u0434\u0440\u0443\u0433\u0435 \u0440\u0430\u0437\u043B\u0438\u0447\u043D\u044B\u0445 \u0436\u0438\u0432\u043E\u0442\u043D\u044B\u0445.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",onClick:function(){function C(){return d("dantalion")}return C}()})]})}return i}(),p=r.BestMenu=function(){function i(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.bestia;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0411\u0435\u0441\u0442\u0438\u044F",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:u[0],icon_state:u[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043F\u0440\u0435\u0432\u0440\u0430\u0449\u0435\u043D\u0438\u0438 \u0438 \u0434\u043E\u0431\u044B\u0447\u0435 \u0442\u0440\u043E\u0444\u0435\u0435\u0432.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0442\u0440\u043E\u0444\u0435\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0442\u0440\u043E\u0444\u0435\u0435\u0432, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0432\u0441\u0435 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B, \u0447\u0442\u043E \u043E\u043D\u0438 \u0434\u0430\u044E\u0442.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0435\u043F\u0430\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0432\u0434\u043E\u0431\u0430\u0432\u043E\u043A \u043A \u043A\u0440\u043E\u0432\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u0442\u044C \u043E\u0440\u0433\u0430\u043D\u044B \u0432 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0440\u043E\u0444\u0435\u0435\u0432 \u0434\u043B\u044F \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u044F \u0432\u0430\u0448\u0438\u0445 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u0435\u0439.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0435\u0434\u0435\u043B \u043F\u0440\u0435\u043F\u0430\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0439",16),(0,e.createTextVNode)(": \u0437\u0430 \u0440\u0430\u0437 \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0433\u043B\u043E\u0442\u0438\u0442\u044C \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C \u043E\u0434\u0438\u043D \u043E\u0440\u0433\u0430\u043D. \u041F\u0440\u0435\u0434\u0435\u043B \u0431\u0443\u0434\u0435\u0442 \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u0438 \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u0438"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u0438 \u043F\u043E\u043B\u043D\u043E\u0439 \u0441\u0438\u043B\u044B \u0441 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C\u043E\u043C \u0432 \u0442\u0440\u0438 \u043E\u0440\u0433\u0430\u043D\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0417\u0430\u0440\u0430\u0436\u0435\u043D\u043D\u044B\u0439 \u0442\u0440\u043E\u0444\u0435\u0439",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0433\u043B\u0443\u0448\u0430\u0442\u044C \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u043E\u0432 \u0441 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0439 \u0434\u0438\u0441\u0442\u0430\u043D\u0446\u0438\u0438, \u0437\u0430\u0440\u0430\u0436\u0430\u044F \u0438\u0445 \u043C\u043E\u0433\u0438\u043B\u044C\u043D\u043E\u0439 \u043B\u0438\u0445\u043E\u0440\u0430\u0434\u043A\u043E\u0439.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0420\u044B\u0432\u043E\u043A",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0431\u044B\u0441\u0442\u0440\u043E \u0441\u043E\u043A\u0440\u0430\u0442\u0438\u0442\u044C \u0440\u0430\u0441\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u043C\u0435\u0436\u0434\u0443 \u0432\u0430\u043C\u0438 \u0438 \u0446\u0435\u043B\u044C\u044E \u0438\u043B\u0438 \u0441\u0431\u0435\u0436\u0430\u0442\u044C \u0438\u0437 \u043E\u043F\u0430\u0441\u043D\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043C\u0435\u0442\u0438\u0442\u044C \u0434\u043E\u0431\u044B\u0447\u0443",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0442\u043C\u0435\u0442\u0438\u0442\u044C \u0436\u0435\u0440\u0442\u0432\u0443, \u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0432 \u0435\u0435 \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0432 \u0435\u0435 \u043F\u0443\u0442\u0430\u0442\u044C\u0441\u044F \u0432 \u043D\u043E\u0433\u0430\u0445.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041C\u0435\u0442\u0430\u043C\u043E\u0440\u0444\u043E\u0437\u0430 - \u041B\u0435\u0442\u0443\u0447\u0438\u0435 \u043C\u044B\u0448\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0441\u043C\u0435\u0440\u0442\u043E\u043D\u043E\u0441\u043D\u044B\u043C\u0438 \u043A\u043E\u0441\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u043C\u0438 \u043B\u0435\u0442\u0443\u0447\u0438\u043C\u0438 \u043C\u044B\u0448\u0430\u043C\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0410\u043D\u0430\u0431\u0438\u043E\u0437",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0434\u0440\u0435\u0432\u043D\u044F\u044F \u0442\u0435\u0445\u043D\u0438\u043A\u0430, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0430\u044F \u0432\u0430\u043C \u0437\u0430\u043B\u0435\u0447\u0438\u0442\u044C \u043F\u043E\u0447\u0442\u0438 \u043B\u044E\u0431\u044B\u0435 \u0440\u0430\u043D\u0435\u043D\u0438\u044F \u0437\u0430 \u0441\u0447\u0435\u0442 \u0441\u043D\u0430 \u0432 \u0433\u0440\u043E\u0431\u0443.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0438\u0437\u044B\u0432 \u043B\u0435\u0442\u0443\u0447\u0438\u0445 \u043C\u044B\u0448\u0435\u0439",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0435\u0442\u0443\u0447\u0438\u0445 \u043C\u044B\u0448\u0435\u0439 \u0434\u043B\u044F \u043F\u043E\u043C\u043E\u0449\u0438 \u0432 \u0431\u043E\u044E.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u041C\u0435\u0442\u0430\u043C\u043E\u0440\u0444\u043E\u0437\u0430 - \u0413\u043E\u043D\u0447\u0430\u044F",16),(0,e.createTextVNode)(": \u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0432 \u0441\u043E\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u0443\u044E \u0444\u043E\u0440\u043C\u0443 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0441\u0443\u0449\u043D\u043E\u0441\u0442\u0438, \u0437\u0430\u0432\u043B\u0430\u0434\u0435\u0432\u0448\u0435\u0439 \u0432\u0430\u0448\u0435\u0439 \u0434\u0443\u0448\u043E\u0439.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0411\u0435\u0441\u0442\u0438\u044F",onClick:function(){function C(){return d("bestia")}return C}()})]})}return i}()},45770:function(I,r,n){"use strict";r.__esModule=!0,r.VampireTrophiesStatus=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=function(b){return(Math.round(b*10)/10).toFixed(1)},S=r.VampireTrophiesStatus=function(){function C(b,v){return(0,e.createComponentVNode)(2,o.Window,{theme:"ntos_spooky",width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,u)]})})})}return C}(),y=function(b,v){var h=(0,a.useBackend)(v),g=h.act,N=h.data,x=N.hearts,B=N.lungs,L=N.livers,T=N.kidneys,E=N.eyes,w=N.ears,A=N.trophies_max_gen,O=N.trophies_max_crit,M=N.organs_icon,P=N.icon_hearts,R=N.icon_lungs,F=N.icon_livers,_=N.icon_kidneys,U=N.icon_eyes,W=N.icon_ears;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0422\u0440\u043E\u0444\u0435\u0438",color:"red",textAlign:"center",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,width:"16.6%",children:[(0,e.createComponentVNode)(2,t.DmIcon,{icon:M,icon_state:P,verticalAlign:"middle",style:{"margin-left":"-32px","margin-right":"-48px","margin-top":"-32px","margin-bottom":"-48px",height:"128px",width:"128px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,textColor:xv;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.DmIcon,{verticalAlign:"middle",icon:f,icon_state:u,fallback:(0,e.createComponentVNode)(2,o.Icon,{p:.66,name:"spinner",size:2,spin:!0})})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:l.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Box,{color:d<=0&&"bad"||d<=l.max_amount/2&&"average"||"good",children:[d," in stock"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,disabled:T,icon:L,content:B,textAlign:"left",onClick:function(){function E(){return c("vend",{inum:l.inum})}return E}()})})]})},y=r.Vending=function(){function k(V,p){var i=(0,t.useBackend)(p),c=i.act,s=i.data,l=s.user,d=s.guestNotice,f=s.userMoney,u=s.chargesMoney,C=s.product_records,b=C===void 0?[]:C,v=s.coin_records,h=v===void 0?[]:v,g=s.hidden_records,N=g===void 0?[]:g,x=s.stock,B=s.vend_ready,L=s.coin_name,T=s.inserted_item_name,E=s.panel_open,w=s.speaker,A=s.imagelist,O;return O=[].concat(b,h),s.extended_inventory&&(O=[].concat(O,N)),O=O.filter(function(M){return!!M}),(0,e.createComponentVNode)(2,m.Window,{width:470,height:100+Math.min(b.length*38,500),title:"Vending Machine",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[!!u&&(0,e.createComponentVNode)(2,o.Section,{title:"User",children:l&&(0,e.createComponentVNode)(2,o.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,l.name,0),","," ",(0,e.createVNode)(1,"b",null,l.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[f,(0,e.createTextVNode)(" credits")],0),"."]})||(0,e.createComponentVNode)(2,o.Box,{color:"light-grey",children:d})}),!!L&&(0,e.createComponentVNode)(2,o.Section,{title:"Coin",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Remove Coin",onClick:function(){function M(){return c("remove_coin",{})}return M}()}),children:(0,e.createComponentVNode)(2,o.Box,{children:L})}),!!T&&(0,e.createComponentVNode)(2,o.Section,{title:"Item",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject Item",onClick:function(){function M(){return c("eject_item",{})}return M}()}),children:(0,e.createComponentVNode)(2,o.Box,{children:T})}),!!E&&(0,e.createComponentVNode)(2,o.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,o.Button,{icon:w?"check":"volume-mute",selected:w,content:"Speaker",textAlign:"left",onClick:function(){function M(){return c("toggle_voice",{})}return M}()})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Products",fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:O.map(function(M){return(0,e.createComponentVNode)(2,S,{product:M,productStock:x[M.name],productIcon:M.icon,productIconState:M.icon_state},M.name)})})})})]})})})}return k}()},68971:function(I,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.VolumeMixer=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+c.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:c.map(function(s,l){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:l>0&&"0.5rem",children:s.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return p("volume",{channel:s.num,volume:0})}return d}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:s.volume,onChange:function(){function d(f,u){return p("volume",{channel:s.num,volume:u})}return d}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return p("volume",{channel:s.num,volume:100})}return d}()})})})]})})],4,s.num)})})})})}return S}()},2510:function(I,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.VotePanel=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.remaining,s=i.question,l=i.choices,d=i.user_vote,f=i.counts,u=i.show_counts,C=i.show_cancel;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:s,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1,children:["Time remaining: ",Math.round(c/10),"s"]}),l.map(function(b){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:b+(u?" ("+(f[b]||0)+")":""),onClick:function(){function v(){return p("vote",{target:b})}return v}(),selected:b===d})},b)}),!!C&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Cancel",onClick:function(){function b(){return p("cancel")}return b}()})},"Cancel")]})})})}return S}()},30138:function(I,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.Wires=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.wires||[],s=i.status||[],l=56+c.length*23+(status?0:15+s.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:l,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:d.color_name,labelColor:d.seen_color,color:d.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:d.cut?"Mend":"Cut",onClick:function(){function f(){return p("cut",{wire:d.color})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function f(){return p("pulse",{wire:d.color})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{content:d.attached?"Detach":"Attach",onClick:function(){function f(){return p("attach",{wire:d.color})}return f}()})],4),children:!!d.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),d.wire,(0,e.createTextVNode)(")")],0)},d.seen_color)})})})}),!!s.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:s.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:d},d)})})})]})})})}return S}()},30995:function(I,r,n){"use strict";r.__esModule=!0,r.Workshop=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(73379),S=n(98595),y=["title","items"];function k(l,d){if(l==null)return{};var f={};for(var u in l)if({}.hasOwnProperty.call(l,u)){if(d.includes(u))continue;f[u]=l[u]}return f}var V=function(d,f,u){return d.requirements===null?!0:!(d.requirements.brass>f||d.requirements.power>u)},p=r.Workshop=function(){function l(d,f){var u=(0,t.useBackend)(f),C=u.act,b=u.data,v=b.brass_amount,h=b.power_amount,g=b.building,N=b.buildStart,x=b.buildEnd,B=b.worldTime,L=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),T=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),E={float:"left",width:"60%"},w={float:"right",width:"39%"};return(0,e.createComponentVNode)(2,S.Window,{width:400,height:500,theme:"clockwork",children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,o.Section,{title:"Materials",children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Brass",children:[L,(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-down",height:"19px",tooltip:"Dispense Brass",tooltipPosition:"bottom-start",ml:"0.5rem",onClick:function(){function A(){return C("dispense")}return A}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:T})]}),g&&(0,e.createComponentVNode)(2,o.ProgressBar.Countdown,{mt:2,start:N,current:B,end:x,bold:!0,children:["Building ",g,"\xA0(",(0,e.createComponentVNode)(2,m.Countdown,{current:B,timeLeft:x-B,format:function(){function A(O,M){return M.substr(3)}return A}()}),")"]})]})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,c)})})]})})})}return l}(),i=function(d,f){var u=(0,t.useLocalState)(f,"search",""),C=u[0],b=u[1],v=(0,t.useLocalState)(f,"sort",""),h=v[0],g=v[1],N=(0,t.useLocalState)(f,"descending",!1),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Stack,{width:"100%",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:"1",mr:"0.5rem",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function L(T,E){return b(E)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"arrow-down":"arrow-up",height:"19px",tooltip:x?"Descending order":"Ascending order",tooltipPosition:"bottom-start",ml:"0.5rem",onClick:function(){function L(){return B(!x)}return L}()})})]})})},c=function(d,f){var u=(0,t.useBackend)(f),C=u.act,b=u.data,v=b.items,h=(0,t.useLocalState)(f,"search",""),g=h[0],N=h[1],x=(0,t.useLocalState)(f,"sort","Alphabetical"),B=x[0],L=x[1],T=(0,t.useLocalState)(f,"descending",!1),E=T[0],w=T[1],A=(0,a.createSearch)(g,function(P){return P[0]}),O=!1,M=Object.entries(v).map(function(P,R){var F=Object.entries(P[1]).filter(A).map(function(_){return _[1].affordable=V(_[1],b.brass_amount,b.power_amount),_[1]});if(F.length!==0)return E&&(F=F.reverse()),O=!0,(0,e.createComponentVNode)(2,s,{title:P[0],items:F},P[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:"1",children:(0,e.createComponentVNode)(2,o.Section,{children:O?M:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},s=function(d,f){var u=(0,t.useBackend)(f),C=u.act,b=u.data,v=d.title,h=d.items,g=k(d,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},g,{children:h.map(function(N){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.DmIcon,{icon:N.icon,icon_state:N.icon_state,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,o.Button,{icon:"hammer",disabled:!V(N,b.brass_amount,b.power_amount),onClick:function(){function x(){return C("make",{cat:v,name:N.name})}return x}(),children:(0,a.toTitleCase)((0,a.toTitleCase)(N.name))}),(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"right"},children:N.requirements&&Object.keys(N.requirements).map(function(x){return(0,a.toTitleCase)(x)+": "+N.requirements[x]}).join(", ")||(0,e.createComponentVNode)(2,o.Box,{children:"No resources required."})}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})]},N.name)})})))}},49148:function(I,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036);function m(p,i){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=S(p))||i&&p&&typeof p.length=="number"){c&&(p=c);var s=0;return function(){return s>=p.length?{done:!0}:{done:!1,value:p[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(p,i){if(p){if(typeof p=="string")return y(p,i);var c={}.toString.call(p).slice(8,-1);return c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set"?Array.from(p):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?y(p,i):void 0}}function y(p,i){(i==null||i>p.length)&&(i=p.length);for(var c=0,s=Array(i);c0&&!N.includes(F.ref)&&!h.includes(F.ref),checked:h.includes(F.ref),onClick:function(){function _(){return x(F.ref)}return _}()},F.desc)})]})]})})}return p}()},26991:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),m=function(k,V,p,i,c){return ki?"average":k>c?"bad":"good"},S=r.AtmosScan=function(){function y(k,V){var p=k.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(i){return i.val!=="0"||i.entry==="Pressure"||i.entry==="Temperature"})(p).map(function(i){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:i.entry,color:m(i.val,i.bad_low,i.poor_low,i.poor_high,i.bad_high),children:[i.val,i.units]},i.entry)})})})}return y}()},85870:function(I,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(89005),a=n(36036),t=n(15964),o=function(y){return y+" unit"+(y===1?"":"s")},m=r.BeakerContents=function(){function S(y){var k=y.beakerLoaded,V=y.beakerContents,p=V===void 0?[]:V,i=y.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!k&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||p.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),p.map(function(c,s){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(c.volume)," of ",c.name]},c.name),!!i&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:i(c,s)})]},c.name)})]})}return S}();m.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},3939:function(I,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(89005),a=n(72253),t=n(36036),o={},m=r.modalOpen=function(){function p(i,c,s){var l=(0,a.useBackend)(i),d=l.act,f=l.data,u=Object.assign(f.modal?f.modal.args:{},s||{});d("modal_open",{id:c,arguments:JSON.stringify(u)})}return p}(),S=r.modalRegisterBodyOverride=function(){function p(i,c){o[i]=c}return p}(),y=r.modalAnswer=function(){function p(i,c,s,l){var d=(0,a.useBackend)(i),f=d.act,u=d.data;if(u.modal){var C=Object.assign(u.modal.args||{},l||{});f("modal_answer",{id:c,answer:s,arguments:JSON.stringify(C)})}}return p}(),k=r.modalClose=function(){function p(i,c){var s=(0,a.useBackend)(i),l=s.act;l("modal_close",{id:c})}return p}(),V=r.ComplexModal=function(){function p(i,c){var s=(0,a.useBackend)(c),l=s.data;if(l.modal){var d=l.modal,f=d.id,u=d.text,C=d.type,b,v=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function L(){return k(c)}return L}()}),h,g,N="auto";if(o[f])h=o[f](l.modal,c);else if(C==="input"){var x=l.modal.value;b=function(){function L(T){return y(c,f,x)}return L}(),h=(0,e.createComponentVNode)(2,t.Input,{value:l.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function L(T,E){x=E}return L}()}),g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function L(){return k(c)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function L(){return y(c,f,x)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(C==="choice"){var B=typeof l.modal.choices=="object"?Object.values(l.modal.choices):l.modal.choices;h=(0,e.createComponentVNode)(2,t.Dropdown,{options:B,selected:l.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function L(T){return y(c,f,T)}return L}()}),N="initial"}else C==="bento"?h=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:l.modal.choices.map(function(L,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(l.modal.value,10),onClick:function(){function E(){return y(c,f,T+1)}return E}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:L})})},T)})}):C==="boolean"&&(g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function L(){return y(c,f,0)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:l.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function L(){return y(c,f,1)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:i.maxWidth||window.innerWidth/2+"px",maxHeight:i.maxHeight||window.innerHeight/2+"px",onEnter:b,mx:"auto",overflowY:N,"padding-bottom":"5px",children:[u&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:u}),o[f]&&v,h,g]})}}return p}()},41874:function(I,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25328),m=n(76910),S=m.COLORS.department,y=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],k=function(s){return y.indexOf(s)!==-1?"green":"orange"},V=function(s){if(y.indexOf(s)!==-1)return!0},p=function(s){return s.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),s.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{color:k(l.real_rank),bold:V(l.real_rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.active})]},l.name+l.rank)})]})},i=r.CrewManifest=function(){function c(s,l){var d=(0,a.useBackend)(l),f=d.act,u;if(s.data)u=s.data;else{var C=(0,a.useBackend)(l),b=C.data;u=b}var v=u,h=v.manifest,g=h.heads,N=h.pro,x=h.sec,B=h.eng,L=h.med,T=h.sci,E=h.ser,w=h.sup,A=h.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:p(g)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.procedure,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Procedure"})}),level:2,children:p(N)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:p(x)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:p(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:p(L)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:p(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:p(E)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:p(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:p(A)})]})}return c}()},19203:function(I,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(89005),a=n(36036),t=n(72253),o=r.InputButtons=function(){function m(S,y){var k=(0,t.useBackend)(y),V=k.act,p=k.data,i=p.large_buttons,c=p.swapped_buttons,s=S.input,l=S.message,d=S.disabled,f=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!i,fluid:!!i,onClick:function(){function C(){return V("submit",{entry:s})}return C}(),textAlign:"center",tooltip:i&&l,disabled:d,width:!i&&6}),u=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!i,fluid:!!i,onClick:function(){function C(){return V("cancel")}return C}(),textAlign:"center",width:!i&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:u}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:u}),!i&&l&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:l})}),i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:f}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:f})]})}return m}()},195:function(I,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.InterfaceLockNoticeBox=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=S.siliconUser,c=i===void 0?p.siliconUser:i,s=S.locked,l=s===void 0?p.locked:s,d=S.normallyLocked,f=d===void 0?p.normallyLocked:d,u=S.onLockStatusChange,C=u===void 0?function(){return V("lock")}:u,b=S.accessText,v=b===void 0?"an ID card":b;return c?(0,e.createComponentVNode)(2,t.NoticeBox,{color:c&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:f?"red":"green",icon:f?"lock":"unlock",content:f?"Locked":"Unlocked",onClick:function(){function h(){C&&C(!l)}return h}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",v," to ",l?"unlock":"lock"," this interface."]})}return m}()},51057:function(I,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(89005),a=n(44879),t=n(36036),o=r.Loader=function(){function m(S){var y=S.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(y)*100+"%"}}),2)}return m}()},321:function(I,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginInfo=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.loginState;if(p)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",i.name," (",i.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return V("login_logout")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!i.id,content:"Eject ID",color:"good",onClick:function(){function c(){return V("login_eject")}return c}()})]})]})})}return m}()},5485:function(I,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginScreen=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.loginState,c=p.isAI,s=p.isRobot,l=p.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:i.id?i.id:"----------",ml:"0.5rem",onClick:function(){function d(){return V("login_insert")}return d}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!i.id,content:"Login",onClick:function(){function d(){return V("login_login",{login_type:1})}return d}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function d(){return V("login_login",{login_type:2})}return d}()}),!!s&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function d(){return V("login_login",{login_type:3})}return d}()}),!!l&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function d(){return V("login_login",{login_type:4})}return d}()})]})})})}return m}()},62411:function(I,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(89005),a=n(36036),t=n(15964),o=r.Operating=function(){function m(S){var y=S.operating,k=S.name;if(y)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",k," is processing..."]})})})}return m}();o.propTypes={operating:t.bool,name:t.string}},13545:function(I,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=r.Signaler=function(){function S(y,k){var V=(0,t.useBackend)(k),p=V.act,i=y.data,c=i.code,s=i.frequency,l=i.minFrequency,d=i.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:l/10,maxValue:d/10,value:s/10,format:function(){function f(u){return(0,a.toFixed)(u,1)}return f}(),width:"80px",onDrag:function(){function f(u,C){return p("freq",{freq:C})}return f}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(){function f(u,C){return p("code",{code:C})}return f}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function f(){return p("signal")}return f}()})]})}return S}()},41984:function(I,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(89005),a=n(72253),t=n(25328),o=n(64795),m=n(88510),S=n(36036),y=r.SimpleRecords=function(){function p(i,c){var s=i.data.records;return(0,e.createComponentVNode)(2,S.Box,{children:s?(0,e.createComponentVNode)(2,V,{data:i.data,recordType:i.recordType}):(0,e.createComponentVNode)(2,k,{data:i.data})})}return p}(),k=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=i.data.recordsList,f=(0,a.useLocalState)(c,"searchText",""),u=f[0],C=f[1],b=function(g,N){N===void 0&&(N="");var x=(0,t.createSearch)(N,function(B){return B.Name});return(0,o.flow)([(0,m.filter)(function(B){return B==null?void 0:B.Name}),N&&(0,m.filter)(x),(0,m.sortBy)(function(B){return B.Name})])(d)},v=b(d,u);return(0,e.createComponentVNode)(2,S.Box,{children:[(0,e.createComponentVNode)(2,S.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function h(g,N){return C(N)}return h}()}),v.map(function(h){return(0,e.createComponentVNode)(2,S.Box,{children:(0,e.createComponentVNode)(2,S.Button,{mb:.5,content:h.Name,icon:"user",onClick:function(){function g(){return l("Records",{target:h.uid})}return g}()})},h)})]})},V=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=i.data.records,f=d.general,u=d.medical,C=d.security,b;switch(i.recordType){case"MED":b=(0,e.createComponentVNode)(2,S.Section,{level:2,title:"Medical Data",children:u?(0,e.createComponentVNode)(2,S.LabeledList,{children:[(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Blood Type",children:u.blood_type}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Minor Disabilities",children:u.mi_dis}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Details",children:u.mi_dis_d}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Major Disabilities",children:u.ma_dis}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Details",children:u.ma_dis_d}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Allergies",children:u.alg}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Details",children:u.alg_d}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Current Diseases",children:u.cdi}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Details",children:u.cdi_d}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:u.notes})]}):(0,e.createComponentVNode)(2,S.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":b=(0,e.createComponentVNode)(2,S.Section,{level:2,title:"Security Data",children:C?(0,e.createComponentVNode)(2,S.LabeledList,{children:[(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Criminal Status",children:C.criminal}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Minor Crimes",children:C.mi_crim}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Details",children:C.mi_crim_d}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Major Crimes",children:C.ma_crim}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Details",children:C.ma_crim_d}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:C.notes})]}):(0,e.createComponentVNode)(2,S.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,S.Box,{children:[(0,e.createComponentVNode)(2,S.Section,{title:"General Data",children:f?(0,e.createComponentVNode)(2,S.LabeledList,{children:[(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Name",children:f.name}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Sex",children:f.sex}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Species",children:f.species}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Age",children:f.age}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Rank",children:f.rank}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Fingerprint",children:f.fingerprint}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Physical Status",children:f.p_stat}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Mental Status",children:f.m_stat})]}):(0,e.createComponentVNode)(2,S.Box,{color:"red",bold:!0,children:"General record lost!"})}),b]})}},22091:function(I,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TemporaryNotice=function(){function m(S,y){var k,V=(0,a.useBackend)(y),p=V.act,i=V.data,c=i.temp;if(c){var s=(k={},k[c.style]=!0,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},s,{children:[(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",verticalAlign:"middle",children:c.text}),(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",float:"right",onClick:function(){function l(){return p("cleartemp")}return l}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})))}}return m}()},25443:function(I,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(20342),m=n(98595),S=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],y=["good","average","bad","black","white"],k=[{title:"Button",component:function(){function h(){return p}return h}()},{title:"Box",component:function(){function h(){return i}return h}()},{title:"ProgressBar",component:function(){function h(){return c}return h}()},{title:"Tabs",component:function(){function h(){return s}return h}()},{title:"Tooltip",component:function(){function h(){return l}return h}()},{title:"Input / Control",component:function(){function h(){return d}return h}()},{title:"Collapsible",component:function(){function h(){return f}return h}()},{title:"BlockQuote",component:function(){function h(){return C}return h}()},{title:"ByondUi",component:function(){function h(){return b}return h}()},{title:"Themes",component:function(){function h(){return v}return h}()}],V=r.KitchenSink=function(){function h(g,N){var x=(0,a.useLocalState)(N,"kitchenSinkTheme"),B=x[0],L=(0,a.useLocalState)(N,"pageIndex",0),T=L[0],E=L[1],w=k[T].component();return(0,e.createComponentVNode)(2,m.Window,{theme:B,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:k.map(function(A,O){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:O===T,onClick:function(){function M(){return E(O)}return M}(),children:A.title},O)})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,w)})]})})})})}return h}(),p=function(g){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{mb:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,t.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,t.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"})]}),(0,e.createComponentVNode)(2,t.Box,{mb:1,children:[y.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{color:N,content:N},N)}),(0,e.createVNode)(1,"br"),S.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{color:N,content:N},N)}),(0,e.createVNode)(1,"br"),S.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:"7px",color:N,children:N},N)})]})]})},i=function(g){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"bold"}),(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"italic"}),(0,e.createComponentVNode)(2,t.Box,{opacity:.5,children:"opacity 0.5"}),(0,e.createComponentVNode)(2,t.Box,{opacity:.25,children:"opacity 0.25"}),(0,e.createComponentVNode)(2,t.Box,{m:2,children:"m: 2"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:"left"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"center"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"right",children:"right"})]})},c=function(g,N){var x=(0,a.useLocalState)(N,"progress",.5),B=x[0],L=x[1];return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:B,children:["Value: ",Number(B).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function T(){return L(B-.1)}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function T(){return L(B+.1)}return T}()})]})]})},s=function(g,N){var x=(0,a.useLocalState)(N,"tabIndex",0),B=x[0],L=x[1],T=(0,a.useLocalState)(N,"tabVert"),E=T[0],w=T[1],A=(0,a.useLocalState)(N,"tabAlt"),O=A[0],M=A[1],P=[1,2,3,4,5];return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{mb:2,children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:E,onClick:function(){function R(){return w(!E)}return R}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"altSelection",checked:O,onClick:function(){function R(){return M(!O)}return R}()})]}),(0,e.createComponentVNode)(2,t.Tabs,{vertical:E,children:P.map(function(R,F){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{altSelection:O,selected:F===B,onClick:function(){function _(){return L(F)}return _}(),children:["Tab #",R]},F)})})]})},l=function(g){var N=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",mr:1,children:["Box (hover me).",(0,e.createComponentVNode)(2,t.Tooltip,{content:"Tooltip text."})]}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"Tooltip text.",content:"Button"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:N.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:x,content:x},x)})})],4)},d=function(g,N){var x=(0,a.useLocalState)(N,"number",0),B=x[0],L=x[1],T=(0,a.useLocalState)(N,"text","Sample text"),E=T[0],w=T[1];return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:E,onChange:function(){function A(O,M){return w(M)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:E,onInput:function(){function A(O,M){return w(M)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:B,minValue:-100,maxValue:100,onChange:function(){function A(O,M){return L(M)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:B,minValue:-100,maxValue:100,onDrag:function(){function A(O,M){return L(M)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:B,minValue:-100,maxValue:100,onDrag:function(){function A(O,M){return L(M)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:B,minValue:-100,maxValue:100,onDrag:function(){function A(O,M){return L(M)}return A}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:B,minValue:-100,maxValue:100,onDrag:function(){function A(O,M){return L(M)}return A}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,o.DraggableControl,{value:B,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function A(O,M){return L(M)}return A}(),children:function(){function A(O){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:O.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:O.displayValue*4}),O.inputElement]})}return A}()})})})]})})},f=function(g){return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,u)})})},u=function(g){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({},g,{children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,t.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))},C=function(g){return(0,e.createComponentVNode)(2,t.BlockQuote,{children:(0,e.createComponentVNode)(2,u)})},b=function(g,N){var x=(0,a.useBackend)(N),B=x.config;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Button",level:2,children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",parent:B.window,text:"Button"}})})})},v=function(g,N){var x=(0,a.useLocalState)(N,"kitchenSinkTheme"),B=x[0],L=x[1];return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:B,onInput:function(){function T(E,w){return L(w)}return T}()})})})})}},96572:function(I,r,n){"use strict";r.__esModule=!0,r.pai_advsecrecords=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_advsecrecords=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Special Syndicate options:",children:(0,e.createComponentVNode)(2,t.Button,{content:"Select Records",onClick:function(){function i(){return V("ui_interact")}return i}()})})})}return m}()},80818:function(I,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pai_atmosphere=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:p.app_data})}return m}()},23903:function(I,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_bioscan=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.app_data,c=i.holder,s=i.dead,l=i.health,d=i.brute,f=i.oxy,u=i.tox,C=i.burn,b=i.reagents,v=i.addictions,h=i.fractures,g=i.internal_bleeding;return c?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:s?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:l/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:f})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:u})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:C})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:d})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagents",children:b?b.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.title,children:(0,e.createComponentVNode)(2,t.Box,{color:N.overdosed?"bad":"good",children:[" ",N.volume," ",N.overdosed?"OVERDOSED":""," "]})},N.id)}):"Reagents not found."}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Addictions",children:v?v.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.addiction_name,children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[" Stage: ",N.stage," "]})},N.id)}):(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Addictions not found."})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fractures",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:["Fractures ",h?"":"not"," detected."]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Bleedings",children:(0,e.createComponentVNode)(2,t.Box,{color:g?"bad":"good",children:["Internal Bleedings ",g?"":"not"," detected."]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return m}()},79592:function(I,r,n){"use strict";r.__esModule=!0,r.pai_camera_bug=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_camera_bug=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Special Syndicate options",children:(0,e.createComponentVNode)(2,t.Button,{content:"Select Monitor",onClick:function(){function i(){return V("ui_interact")}return i}()})})})}return m}()},64988:function(I,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_directives=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.app_data,c=i.master,s=i.dna,l=i.prime,d=i.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:c?c+" ("+s+")":"None"}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function f(){return V("getdna")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:d||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return m}()},13813:function(I,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_doorjack=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.app_data,c=i.cable,s=i.machine,l=i.inprogress,d=i.progress,f=i.aborted,u;s?u=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):u=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function b(){return V("cable")}return b}()});var C;return s&&(C=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.Box,{color:l?"green":"red",children:[" ","In progress: ",l?"Yes":"No"," "]}),l?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function b(){return V("cancel")}return b}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function b(){return V("jack")}return b}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:u}),C]})}return m}()},43816:function(I,r,n){"use strict";r.__esModule=!0,r.pai_encoder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_encoder=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.app_data,c=i.radio_name,s=i.radio_rank;return(0,e.createComponentVNode)(2,t.Section,{title:"Your name and rank in radio channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Your current name and rank",children:[c,", ",s]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Set new name",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function l(d,f){return V("set_newname",{newname:f})}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Set new rank",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function l(d,f){return V("set_newrank",{newrank:f})}return l}()})})]})})}return m}()},88895:function(I,r,n){"use strict";r.__esModule=!0,r.pai_gps_module=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_gps_module=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"GPS menu",children:(0,e.createComponentVNode)(2,t.Button,{content:"Open GPS",onClick:function(){function i(){return V("ui_interact")}return i}()})})})}return m}()},66025:function(I,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_main_menu=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.app_data,c=i.available_software,s=i.installed_software,l=i.installed_toggles,d=i.available_ram,f=i.emotions,u=i.current_emotion,C=[];return s.map(function(b){return C[b.key]=b.name}),l.map(function(b){return C[b.key]=b.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[c.filter(function(b){return!C[b.key]}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{color:b.syndi?"red":"default",content:b.name+" ("+b.cost+")",icon:b.icon,disabled:b.cost>d,onClick:function(){function v(){return V("purchaseSoftware",{key:b.key})}return v}()},b.key)}),c.filter(function(b){return!C[b.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[s.filter(function(b){return b.key!=="mainmenu"}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,onClick:function(){function v(){return V("startSoftware",{software_key:b.key})}return v}()},b.key)}),s.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[l.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,selected:b.active,onClick:function(){function v(){return V("setToggle",{toggle_key:b.key})}return v}()},b.key)}),l.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:f.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{color:b.syndi?"red":"default",content:b.name,selected:b.id===u,onClick:function(){function v(){return V("setEmotion",{emotion:b.id})}return v}()},b.id)})})]})})}return m}()},2983:function(I,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pai_manifest=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:p.app_data})}return m}()},40758:function(I,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_medrecords=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:V.app_data,recordType:"MED"})}return m}()},98599:function(I,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(89005),a=n(72253),t=n(77595),o=r.pai_messenger=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.app_data.active_convo;return i?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:p.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:p.app_data})}return m}()},50775:function(I,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),m=r.pai_radio=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.app_data,s=c.minFrequency,l=c.maxFrequency,d=c.frequency,f=c.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:s/10,maxValue:l/10,value:d/10,format:function(){function u(C){return(0,t.toFixed)(C,1)}return u}(),onChange:function(){function u(C,b){return p("freq",{freq:b})}return u}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function u(){return p("freq",{freq:"145.9"})}return u}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return p("toggleBroadcast")}return u}(),selected:f,content:f?"Enabled":"Disabled"})})]})}return S}()},19873:function(I,r,n){"use strict";r.__esModule=!0,r.pai_sec_chem=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_sec_chem=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.app_data,c=i.holder,s=i.dead,l=i.health,d=i.current_chemicals,f=i.available_chemicals;return c?(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:s?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:l/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Chemicals",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Chemicals",children:[f.map(function(u){return(0,e.createComponentVNode)(2,t.Button,{content:u.name+" ("+u.cost+")",tooltip:u.desc,disabled:u.cost>d,onClick:function(){function C(){return V("secreteChemicals",{key:u.key})}return C}()},u.key)}),f.length===0&&"No chemicals available!"]})]})}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return m}()},48623:function(I,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_secrecords=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:V.app_data,recordType:"SEC"})}return m}()},47297:function(I,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pai_signaler=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p.app_data})}return m}()},78532:function(I,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pda_atmos_scan=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:V})}return m}()},40253:function(I,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_janitor=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.janitor,c=i.user_loc,s=i.mops,l=i.buckets,d=i.cleanbots,f=i.carts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:s.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:[u.x,",",u.y," (",u.dir,") - ",u.status]},u)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:l.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:[u.x,",",u.y," (",u.dir,") - [",u.volume,"/",u.max_volume,"]"]},u)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:[u.x,",",u.y," (",u.dir,") - ",u.status]},u)})}),f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:f.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:[u.x,",",u.y," (",u.dir,") - [",u.volume,"/",u.max_volume,"]"]},u)})})]})}return m}()},58293:function(I,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=r.pda_main_menu=function(){function S(y,k){var V=(0,t.useBackend)(k),p=V.act,i=V.data,c=i.owner,s=i.ownjob,l=i.idInserted,d=i.categories,f=i.pai,u=i.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[c,", ",s]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!l,onClick:function(){function C(){return p("UpdateInfo")}return C}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:d.map(function(C){var b=i.apps[C];return!b||!b.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:C,children:b.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{icon:v.uid in u?v.notify_icon:v.icon,iconSpin:v.uid in u,color:v.uid in u?"red":"transparent",content:v.name,onClick:function(){function h(){return p("StartProgram",{program:v.uid})}return h}()},v.uid)})},C)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!f&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function C(){return p("pai",{option:1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function C(){return p("pai",{option:2})}return C}()})]})})]})}return S}()},58059:function(I,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pda_manifest=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return m}()},18147:function(I,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_medical=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:V,recordType:"MED"})}return m}()},77595:function(I,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),m=r.pda_messenger=function(){function V(p,i){var c=(0,t.useBackend)(i),s=c.act,l=c.data,d=l.active_convo;return d?(0,e.createComponentVNode)(2,S,{data:l}):(0,e.createComponentVNode)(2,y,{data:l})}return V}(),S=r.ActiveConversation=function(){function V(p,i){var c=(0,t.useBackend)(i),s=c.act,l=p.data,d=l.convo_device,f=l.messages,u=l.active_convo,C=(0,t.useLocalState)(i,"clipboardMode",!1),b=C[0],v=C[1],h=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:b,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function g(){return v(!b)}return g}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function g(){return s("Message",{target:u})}return g}(),content:"Reply"})],4),children:(0,a.filter)(function(g){return g.target===u})(f).map(function(g,N){return(0,e.createComponentVNode)(2,o.Box,{textAlign:g.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:g.sent?"#4d9121":"#cd7a0d",position:"absolute",left:g.sent?null:"0px",right:g.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:g.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:g.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:g.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[g.sent?"You:":"Them:"," ",g.message]})]},N)})});return b&&(h=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:b,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function g(){return v(!b)}return g}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function g(){return s("Message",{target:u})}return g}(),content:"Reply"})],4),children:(0,a.filter)(function(g){return g.target===u})(f).map(function(g,N){return(0,e.createComponentVNode)(2,o.Box,{color:g.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[g.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:g.message})]},N)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function g(){return s("Clear",{option:"Convo"})}return g}()})})})}),h]})}return V}(),y=r.MessengerList=function(){function V(p,i){var c=(0,t.useBackend)(i),s=c.act,l=p.data,d=l.convopdas,f=l.pdas,u=l.charges,C=l.silent,b=l.toff,v=(0,t.useLocalState)(i,"searchTerm",""),h=v[0],g=v[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!C,icon:C?"volume-mute":"volume-up",onClick:function(){function N(){return s("Toggle Ringer")}return N}(),children:["Ringer: ",C?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:b?"bad":"green",icon:"power-off",onClick:function(){function N(){return s("Toggle Messenger")}return N}(),children:["Messenger: ",b?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function N(){return s("Ringtone")}return N}(),children:"Set Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function N(){return s("Clear",{option:"All"})}return N}(),children:"Delete All Conversations"})]})}),!b&&(0,e.createComponentVNode)(2,o.Box,{children:[!!u&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[u," charges left."]})})}),!d.length&&!f.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:h,onInput:function(){function N(x,B){g(B)}return N}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,k,{title:"Current Conversations",data:l,pdas:d,msgAct:"Select Conversation",searchTerm:h}),(0,e.createComponentVNode)(2,k,{title:"Other PDAs",pdas:f,msgAct:"Message",data:l,searchTerm:h})]})}return V}(),k=function(p,i){var c=(0,t.useBackend)(i),s=c.act,l=p.data,d=p.pdas,f=p.title,u=p.msgAct,C=p.searchTerm,b=l.charges,v=l.plugins;return!d||!d.length?(0,e.createComponentVNode)(2,o.Section,{title:f,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:f,children:d.filter(function(h){return h.Name.toLowerCase().includes(C.toLowerCase())}).map(function(h){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:h.Name,onClick:function(){function g(){return s(u,{target:h.uid})}return g}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!b&&v.map(function(g){return(0,e.createComponentVNode)(2,o.Button,{icon:g.icon,content:g.name,onClick:function(){function N(){return s("Messenger Plugin",{plugin:g.uid,target:h.uid})}return N}()},g.uid)})})]},h.uid)})})}},24635:function(I,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_mule=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.mulebot,l=s.active;return(0,e.createComponentVNode)(2,t.Box,{children:l?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,m)})}return y}(),m=function(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.mulebot,l=s.bots;return(0,e.createComponentVNode)(2,t.Box,{children:[l.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function f(){return i("AccessBot",{uid:d.uid})}return f}()})},d.Name)}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"rss",content:"Re-scan for bots",onClick:function(){function d(){return i("Rescan")}return d}()})})]})},S=function(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.mulebot,l=s.botstatus,d=s.active,f=l.mode,u=l.loca,C=l.load,b=l.powr,v=l.dest,h=l.home,g=l.retn,N=l.pick,x;switch(f){case 0:x="Ready";break;case 1:x="Loading/Unloading";break;case 2:case 12:x="Navigating to delivery location";break;case 3:x="Navigating to Home";break;case 4:x="Waiting for clear path";break;case 5:case 6:x="Calculating navigation path";break;case 7:x="Unable to locate destination";break;default:x=f;break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[f===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:x}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[b,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Set)":"None (Set)",onClick:function(){function B(){return i("SetDest")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:C?C+" (Unload)":"None",disabled:!C,onClick:function(){function B(){return i("Unload")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:N?"Yes":"No",selected:N,onClick:function(){function B(){return i("SetAutoPickup",{autoPickupType:N?"pickoff":"pickon"})}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"Yes":"No",selected:g,onClick:function(){function B(){return i("SetAutoReturn",{autoReturnType:g?"retoff":"reton"})}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function B(){return i("Stop")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function B(){return i("Start")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function B(){return i("ReturnHome")}return B}()})]})]})]})}},97085:function(I,r,n){"use strict";r.__esModule=!0,r.pda_notes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_notes=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.note;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{children:i}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function c(){return V("Edit")}return c}(),content:"Edit"})]})}return m}()},57513:function(I,r,n){"use strict";r.__esModule=!0,r.pda_power=void 0;var e=n(89005),a=n(72253),t=n(61631),o=r.pda_power=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.PowerMonitorMainContent)}return m}()},57635:function(I,r,n){"use strict";r.__esModule=!0,r.pda_request_console=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25472),m=r.pda_request_console=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.screen,s=i.selected_console,l=i.consoles_data,d=i.app;return s?(0,e.createComponentVNode)(2,t.Box,{children:[(o.pages[c]||o.pages.default)(),c===0?(0,e.createComponentVNode)(2,t.Button,{content:"Back to console selection",icon:"arrow-left",onClick:function(){function f(){return p("back")}return f}()}):""]}):(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:l.map(function(f){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{color:f.priority===1?"green":f.priority===2?"red":"default",content:f.name,onClick:function(){function u(){return p("select",{name:f.name})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:f.muted?"volume-mute":"volume-up",onClick:function(){function u(){return p("mute",{name:f.name})}return u}()})]})})},f.name)})})})}return S}()},99808:function(I,r,n){"use strict";r.__esModule=!0,r.pda_secbot=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_secbot=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.beepsky,l=s.active;return(0,e.createComponentVNode)(2,t.Box,{children:l?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,m)})}return y}(),m=function(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.beepsky,l=s.bots;return(0,e.createComponentVNode)(2,t.Box,{children:[l.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function f(){return i("AccessBot",{uid:d.uid})}return f}()})},d.Name)}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"rss",content:"Re-scan for bots",onClick:function(){function d(){return i("Rescan")}return d}()})})]})},S=function(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.beepsky,l=s.botstatus,d=s.active,f=l.mode,u=l.loca,C;switch(f){case 0:C="Ready";break;case 1:C="Apprehending target";break;case 2:case 3:C="Arresting target";break;case 4:C="Starting patrol";break;case 5:C="On patrol";break;case 6:C="Responding to summons";break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[f===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Go",icon:"play",onClick:function(){function b(){return i("Go")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function b(){return i("Stop")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Summon",icon:"arrow-down",onClick:function(){function b(){return i("Summon")}return b}()})]})]})]})}},77168:function(I,r,n){"use strict";r.__esModule=!0,r.pda_security=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_security=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:V,recordType:"SEC"})}return m}()},21773:function(I,r,n){"use strict";r.__esModule=!0,r.pda_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pda_signaler=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p})}return m}()},81857:function(I,r,n){"use strict";r.__esModule=!0,r.pda_status_display=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_status_display=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.records;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Code",children:[(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"trash",content:"Clear",onClick:function(){function c(){return V("Status",{statdisp:"blank"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"clock",content:"Evac ETA",onClick:function(){function c(){return V("Status",{statdisp:"shuttle"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"edit",content:"Message",onClick:function(){function c(){return V("Status",{statdisp:"message"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"exclamation-triangle",content:"Red Alert",onClick:function(){function c(){return V("Status",{statdisp:"alert",alert:"redalert"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"boxes",content:"NT Logo",onClick:function(){function c(){return V("Status",{statdisp:"alert",alert:"default"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lock",content:"Lockdown",onClick:function(){function c(){return V("Status",{statdisp:"alert",alert:"lockdown"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"biohazard",content:"Biohazard",onClick:function(){function c(){return V("Status",{statdisp:"alert",alert:"biohazard"})}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message line 1",children:(0,e.createComponentVNode)(2,t.Button,{content:i.message1+" (set)",icon:"pen",onClick:function(){function c(){return V("Status",{statdisp:"setmsg1"})}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message line 2",children:(0,e.createComponentVNode)(2,t.Button,{content:i.message2+" (set)",icon:"pen",onClick:function(){function c(){return V("Status",{statdisp:"setmsg2"})}return c}()})})]})})}return m}()},70287:function(I,r,n){"use strict";r.__esModule=!0,r.pda_supplyrecords=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_supplyrecords=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.supply,c=i.shuttle_loc,s=i.shuttle_time,l=i.shuttle_moving,d=i.approved,f=i.approved_count,u=i.requests,C=i.requests_count;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:l?(0,e.createComponentVNode)(2,t.Box,{children:["In transit ",s]}):(0,e.createComponentVNode)(2,t.Box,{children:c})})}),(0,e.createComponentVNode)(2,t.Section,{mt:1,title:"Requested Orders",children:C>0&&u.map(function(b){return(0,e.createComponentVNode)(2,t.Box,{children:["#",b.Number,' - "',b.Name,'" for "',b.OrderedBy,'"']},b)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:f>0&&d.map(function(b){return(0,e.createComponentVNode)(2,t.Box,{children:["#",b.Number,' - "',b.Name,'" for "',b.ApprovedBy,'"']},b)})})]})}return m}()},17617:function(I,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(24826),m=["className","theme","children"],S=["className","scrollable","children"];/** + */var S=r.RequestManager=function(){function p(i,c){var s=(0,t.useBackend)(c),u=s.act,d=s.data,f=d.requests,l=(0,t.useLocalState)(c,"filteredTypes",Object.fromEntries(Object.entries(y).map(function(B){var L=B[0],T=B[1];return[L,!0]}))),C=l[0],b=l[1],v=(0,t.useLocalState)(c,"searchText"),h=v[0],g=v[1],N=f.filter(function(B){return C[B.req_type]});if(h){var x=h.toLowerCase();N=N.filter(function(B){return(0,a.decodeHtmlEntities)(B.message).toLowerCase().includes(x)||B.owner_name.toLowerCase().includes(x)})}return(0,e.createComponentVNode)(2,m.Window,{title:"Request Manager",width:575,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Requests",buttons:(0,e.createComponentVNode)(2,o.Input,{value:h,onInput:function(){function B(L,T){return g(T)}return B}(),placeholder:"Search...",mr:1}),children:N.map(function(B){return(0,e.createVNode)(1,"div","RequestManager__row",[(0,e.createVNode)(1,"div","RequestManager__rowContents",[(0,e.createVNode)(1,"h2","RequestManager__header",[(0,e.createVNode)(1,"span","RequestManager__headerText",[B.owner_name,B.owner===null&&" [DC]"],0),(0,e.createVNode)(1,"span","RequestManager__timestamp",B.timestamp_str,0)],4),(0,e.createVNode)(1,"div","RequestManager__message",[(0,e.createComponentVNode)(2,k,{requestType:B.req_type}),(0,a.decodeHtmlEntities)(B.message)],0)],4),B.owner!==null&&(0,e.createComponentVNode)(2,V,{request:B})],0,null,B.id)})})})})}return p}(),y={request_prayer:"PRAYER",request_centcom:"CENTCOM",request_syndicate:"SYNDICATE",request_honk:"HONK",request_ert:"ERT",request_nuke:"NUKE CODE"},k=function(i){var c=i.requestType;return(0,e.createVNode)(1,"b","RequestManager__"+c,[y[c],(0,e.createTextVNode)(":")],0)},V=function(i,c){var s=(0,t.useBackend)(c),u=s.act,d=s._,f=i.request;return(0,e.createVNode)(1,"div","RequestManager__controlsContainer",[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return u("pp",{id:f.id})}return l}(),children:"PP"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return u("vv",{id:f.id})}return l}(),children:"VV"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return u("sm",{id:f.id})}return l}(),children:"SM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return u("tp",{id:f.id})}return l}(),children:"TP"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return u("logs",{id:f.id})}return l}(),children:"LOGS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return u("bless",{id:f.id})}return l}(),children:"BLESS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return u("smite",{id:f.id})}return l}(),children:"SMITE"}),f.req_type!=="request_prayer"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return u("rply",{id:f.id})}return l}(),children:"RPLY"}),f.req_type==="request_ert"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return u("ertreply",{id:f.id})}return l}(),children:"ERTREPLY"}),f.req_type==="request_nuke"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return u("getcode",{id:f.id})}return l}(),children:"GETCODE"})],0)}},16475:function(I,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),m=n(13472),S=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},y=r.SUBMENU={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},k=r.RndConsole=function(){function V(p,i){var c=(0,a.useBackend)(i),s=c.data,u=s.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,theme:s.ui_theme,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,m.RndNavbar),(0,e.createComponentVNode)(2,m.RndRoute,{menu:S.MAIN,render:function(){function d(){return(0,e.createComponentVNode)(2,m.MainMenu)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:S.LEVELS,render:function(){function d(){return(0,e.createComponentVNode)(2,m.CurrentLevels)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:S.DISK,render:function(){function d(){return(0,e.createComponentVNode)(2,m.DataDiskMenu)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:S.DESTROY,render:function(){function d(){return(0,e.createComponentVNode)(2,m.DeconstructionMenu)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:function(){function d(f){return f===S.LATHE||f===S.IMPRINTER}return d}(),render:function(){function d(){return(0,e.createComponentVNode)(2,m.LatheMenu)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:S.SETTINGS,render:function(){function d(){return(0,e.createComponentVNode)(2,m.SettingsMenu)}return d}()}),u?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:u})})}):null]})})})}return V}()},93098:function(I,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.CurrentLevels=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data,p=V.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),p.map(function(i,c){var s=i.name,u=i.level,d=i.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[c>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:s}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",u]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",d]})]},s)})]})}return m}()},19192:function(I,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),m=n(16475),S="design",y="tech",k=function(f,l){var C=(0,a.useBackend)(l),b=C.data,v=C.act,h=b.disk_data;return h?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:h.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:h.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function g(){return v("updt_tech")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function g(){return v("clear_tech")}return g}()}),(0,e.createComponentVNode)(2,i)]})]}):null},V=function(f,l){var C=(0,a.useBackend)(l),b=C.data,v=C.act,h=b.disk_data;if(!h)return null;var g=h.name,N=h.lathe_types,x=h.materials,B=N.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:g}),B?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:B}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),x.map(function(L){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,L.name,0,{style:{"text-transform":"capitalize"}})," x ",L.amount]},L.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function L(){return v("updt_design")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function L(){return v("clear_design")}return L}()}),(0,e.createComponentVNode)(2,i)]})]})},p=function(f,l){var C=(0,a.useBackend)(l),b=C.data,v=b.disk_type;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"This disk is empty."}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{submenu:m.SUBMENU.DISK_COPY,icon:"arrow-down",content:v===y?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,i)]})]})},i=function(f,l){var C=(0,a.useBackend)(l),b=C.data,v=C.act,h=b.disk_type;return h?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function g(){var N=h===y?"eject_tech":"eject_design";v(N)}return g}()}):null},c=function(f,l){var C=(0,a.useBackend)(l),b=C.data,v=b.disk_data,h=b.disk_type,g=function(){if(!v)return(0,e.createComponentVNode)(2,p);switch(h){case S:return(0,e.createComponentVNode)(2,V);case y:return(0,e.createComponentVNode)(2,k);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:g()})},s=function(f,l){var C=(0,a.useBackend)(l),b=C.data,v=C.act,h=b.disk_type,g=b.to_copy;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:g.sort(function(N,x){return N.name.localeCompare(x.name)}).map(function(N){var x=N.name,B=N.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:x,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function L(){h===y?v("copy_tech",{id:B}):v("copy_design",{id:B})}return L}()})},B)})})})})},u=r.DataDiskMenu=function(){function d(f,l){var C=(0,a.useBackend)(l),b=C.data,v=b.disk_type;return v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,c)}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.DISK_COPY,render:function(){function h(){return(0,e.createComponentVNode)(2,s)}return h}()})],4):null}return d}()},20887:function(I,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.DeconstructionMenu=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data,p=k.act,i=V.loaded_item,c=V.linked_destroy;return c?i?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",i.name]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:i.origin_tech.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+s.name,children:[s.object_level," ",s.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),s.current_level,(0,e.createTextVNode)(")")],0):null]},s.name)})}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Options:",16)}),(0,e.createComponentVNode)(2,t.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){function s(){p("deconstruct")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function s(){p("eject_item")}return s}()})]}):(0,e.createComponentVNode)(2,t.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,t.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return m}()},10666:function(I,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),m=r.LatheCategory=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.data,i=V.act,c=p.category,s=p.matching_designs,u=p.menu,d=u===4,f=d?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:c,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:s.map(function(l){var C=l.id,b=l.name,v=l.can_build,h=l.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:b,disabled:v<1,onClick:function(){function g(){return i(f,{id:C,amount:1})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function g(){return i(f,{id:C,amount:5})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function g(){return i(f,{id:C,amount:10})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.map(function(g){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",g.is_red?"color-red":null,[g.amount,(0,e.createTextVNode)(" "),g.name],0)],0)})})]},C)})})]})}return S}()},52285:function(I,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheChemicalStorage=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data,p=k.act,i=V.loaded_chemicals,c=V.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function s(){var u=c?"disposeallP":"disposeallI";p(u)}return s}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(s){var u=s.volume,d=s.name,f=s.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+u+" of "+d,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function l(){var C=c?"disposeP":"disposeI";p(C,{id:f})}return l}()})},f)})})]})}return m}()},71964:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),m=r.LatheMainMenu=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.data,i=V.act,c=p.menu,s=p.categories,u=c===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:u+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,o.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:s.map(function(d){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:d,onClick:function(){function f(){i("setCategory",{category:d})}return f}()})},d)})})]})}return S}()},17906:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterialStorage=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data,p=k.act,i=V.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:i.map(function(c){var s=c.id,u=c.amount,d=c.name,f=function(){function v(h){var g=V.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";p(g,{id:s,amount:h})}return v}(),l=Math.floor(u/2e3),C=u<1,b=l===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:C?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",u," of ",d]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",l," sheet",b,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function v(){return f(1)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function v(){return f("custom")}return v}()}),u>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function v(){return f(5)}return v}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function v(){return f(50)}return v}()})],0):null})]},s)})})})}return m}()},83706:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterials=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data,p=V.total_materials,i=V.max_materials,c=V.max_chemicals,s=V.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p}),i?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+i}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return m}()},76749:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(89005),a=n(72253),t=n(12059),o=n(13472),m=n(36036),S=n(16475),y=r.LatheMenu=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.data,s=c.menu,u=c.linked_lathe,d=c.linked_imprinter;return s===4&&!u?(0,e.createComponentVNode)(2,m.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):s===5&&!d?(0,e.createComponentVNode)(2,m.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:S.SUBMENU.MAIN,render:function(){function f(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return f}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:S.SUBMENU.LATHE_CATEGORY,render:function(){function f(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return f}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:S.SUBMENU.LATHE_MAT_STORAGE,render:function(){function f(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return f}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:S.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function f(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return f}()})]})}return k}()},74698:function(I,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheSearch=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function p(i,c){return V("search",{to_search:c})}return p}()})})}return m}()},17180:function(I,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),m=n(16475),S=r.MainMenu=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.data,c=i.disk_type,s=i.linked_destroy,u=i.linked_lathe,d=i.linked_imprinter,f=i.tech_levels;return(0,e.createComponentVNode)(2,t.Section,{title:"Main Menu",children:[(0,e.createComponentVNode)(2,t.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!c,menu:m.MENU.DISK,submenu:m.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!s,menu:m.MENU.DESTROY,submenu:m.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!u,menu:m.MENU.LATHE,submenu:m.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!d,menu:m.MENU.IMPRINTER,submenu:m.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:m.MENU.SETTINGS,submenu:m.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"12px"}),(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:f.map(function(l){var C=l.name,b=l.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:C,children:b},C)})})]})}return y}()},63459:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.RndNavButton=function(){function m(S,y){var k=S.icon,V=S.children,p=S.disabled,i=S.content,c=(0,a.useBackend)(y),s=c.data,u=c.act,d=s.menu,f=s.submenu,l=d,C=f;return S.menu!==null&&S.menu!==void 0&&(l=S.menu),S.submenu!==null&&S.submenu!==void 0&&(C=S.submenu),(0,e.createComponentVNode)(2,t.Button,{content:i,icon:k,disabled:p,onClick:function(){function b(){u("nav",{menu:l,submenu:C})}return b}(),children:V})}return m}()},94942:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(89005),a=n(13472),t=n(36036),o=n(16475),m=r.RndNavbar=function(){function S(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function y(k){return k!==o.MENU.MAIN}return y}(),render:function(){function y(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return y}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function y(k){return k!==o.SUBMENU.MAIN}return y}(),render:function(){function y(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.DISK,render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.LATHE,render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.IMPRINTER,render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.SETTINGS,render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}return k}()})]})}return y}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function y(k){return k===o.MENU.LATHE||k===o.MENU.IMPRINTER}return y}(),submenu:o.SUBMENU.MAIN,render:function(){function y(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}return y}()})]})}return S}()},12059:function(I,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(72253),a=r.RndRoute=function(){function t(o,m){var S=o.render,y=(0,e.useBackend)(m),k=y.data,V=k.menu,p=k.submenu,i=function(){function s(u,d){return u==null?!0:typeof u=="function"?u(d):u===d}return s}(),c=i(o.menu,V)&&i(o.submenu,p);return c?S():null}return t}()},52580:function(I,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),m=n(16475),S=r.SettingsMenu=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.data,c=p.act,s=i.sync,u=i.admin,d=i.linked_destroy,f=i.linked_lathe,l=i.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.MAIN,render:function(){function C(){return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Sync Database with Network",icon:"sync",disabled:!s,onClick:function(){function b(){c("sync")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:s,onClick:function(){function b(){c("togglesync")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!s,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function b(){c("togglesync")}return b}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!s,content:"Device Linkage Menu",icon:"link",menu:m.MENU.SETTINGS,submenu:m.SUBMENU.SETTINGS_DEVICES}),u===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function b(){return c("maxresearch")}return b}()}):null]})})}return C}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.SETTINGS_DEVICES,render:function(){function C(){return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage Menu",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function b(){return c("find_device")}return b}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",children:(0,e.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function b(){return c("disconnect",{item:"destroy"})}return b}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),f?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function b(){c("disconnect",{item:"lathe"})}return b}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),l?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function b(){return c("disconnect",{item:"imprinter"})}return b}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return C}()})]})}return y}()},13472:function(I,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=r.RndRoute=r.RndNavbar=r.RndNavButton=r.MainMenu=r.LatheSearch=r.LatheMenu=r.LatheMaterials=r.LatheMaterialStorage=r.LatheMainMenu=r.LatheChemicalStorage=r.LatheCategory=r.DeconstructionMenu=r.DataDiskMenu=r.CurrentLevels=void 0;var e=n(93098);r.CurrentLevels=e.CurrentLevels;var a=n(19192);r.DataDiskMenu=a.DataDiskMenu;var t=n(20887);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(10666);r.LatheCategory=o.LatheCategory;var m=n(52285);r.LatheChemicalStorage=m.LatheChemicalStorage;var S=n(71964);r.LatheMainMenu=S.LatheMainMenu;var y=n(83706);r.LatheMaterials=y.LatheMaterials;var k=n(17906);r.LatheMaterialStorage=k.LatheMaterialStorage;var V=n(76749);r.LatheMenu=V.LatheMenu;var p=n(74698);r.LatheSearch=p.LatheSearch;var i=n(17180);r.MainMenu=i.MainMenu;var c=n(94942);r.RndNavbar=c.RndNavbar;var s=n(63459);r.RndNavButton=s.RndNavButton;var u=n(12059);r.RndRoute=u.RndRoute;var d=n(52580);r.SettingsMenu=d.SettingsMenu},40026:function(I,r,n){"use strict";r.__esModule=!0,r.RoboQuest=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(98595),S=r.RoboQuest=function(){function y(k,V){var p=(0,t.useBackend)(V),i=p.act,c=p.data,s=c.hasID,u=c.name,d=c.questInfo,f=c.hasTask,l=c.canCheck,C=c.canSend,b=c.checkMessage,v=c.style,h=c.cooldown,g=c.instant_teleport,N=c.shopItems,x=c.points,B=c.cats,L=(0,t.useLocalState)(V,"shopState",!1),T=L[0],E=L[1],w={medical:"blue",working:"brown",security:"red",working_medical:"olive",medical_security:"violet",working_medical_security:"grey"};return(0,e.createComponentVNode)(2,m.Window,{theme:v,width:1e3,height:540,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:40,children:[!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0437\u0430\u043A\u0430\u0437",buttons:(0,e.createComponentVNode)(2,o.Button,{content:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u043C\u0435\u0445\u0430",icon:"search",tooltipPosition:"bottom",tooltip:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u043D\u0430 \u043D\u0430\u043B\u0438\u0447\u0438\u0435 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0445 \u0434\u043B\u044F \u0437\u0430\u043A\u0430\u0437\u0430 \u043C\u043E\u0434\u0443\u043B\u0435\u0439.",disabled:!s||!f||!l||h,onClick:function(){function A(){return i("Check")}return A}()}),children:[(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:60,textAlign:"center",align:"center",children:!!f&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest_large128x128",d.icon]))}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Divider,{vertical:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:42,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!f&&d.modules.map(function(A){return A.id<4&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest64x64",A.icon]),null,1,null,A.id)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!f&&d.modules.map(function(A){return A.id>3&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest64x64",A.icon]),null,1,null,A.id)})})]})})]}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Divider),(0,e.createVNode)(1,"b",null,b,0)],4),!!h&&(0,e.createFragment)([(0,e.createVNode)(1,"b",null,"\u0417\u0430 \u043E\u0442\u043A\u0430\u0437 \u043E\u0442 \u0437\u0430\u043A\u0430\u0437\u0430, \u0432\u044B \u0431\u044B\u043B\u0438 \u043E\u0442\u0441\u0442\u0440\u0430\u043D\u0435\u043D\u044B \u043E\u0442 \u0440\u0430\u0431\u043E\u0442\u044B \u043D\u0430 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u0432\u0440\u0435\u043C\u044F.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,h,0)],4)]}),!!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:(0,e.createComponentVNode)(2,o.Box,{children:["\u041C\u0430\u0433\u0430\u0437\u0438\u043D \u0447\u0435\u0440\u0442\u0435\u0436\u0435\u0439",(0,e.createComponentVNode)(2,o.Box,{children:["\u041E\u0447\u043A\u0438: ",(0,e.createVNode)(1,"b",null,x.working,0,{style:{color:"brown"}}),"|",(0,e.createVNode)(1,"b",null,x.medical,0,{style:{color:"lightblue"}}),"|",(0,e.createVNode)(1,"b",null,x.security,0,{style:{color:"red"}})]})]}),children:Object.keys(N).map(function(A){return(0,e.createFragment)(!(N[A]===void 0||N[A].length===0||A==="robo")&&N[A].map(function(O){return(0,e.createComponentVNode)(2,o.ImageButton,{asset:!0,color:w[A],image:O.icon,imageAsset:"roboquest64x64",title:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,inline:!0,children:[O.name," ",(0,e.createVNode)(1,"b",null,O.cost.working,0,{style:{color:"brown"}}),"|",(0,e.createVNode)(1,"b",null,O.cost.medical,0,{style:{color:"lightblue"}}),"|",(0,e.createVNode)(1,"b",null,O.cost.security,0,{style:{color:"red"}})]}),content:O.desc,onClick:function(){function M(){return i("buyItem",{item:O.path})}return M}()},O.path)}),0,A)})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:20,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0414\u0440\u0443\u0433\u043E\u0435",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"\u041C\u0430\u0433\u0430\u0437\u0438\u043D",width:"7rem",icon:"shopping-cart",onClick:function(){function A(){return E(!T)}return A}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"cog",tooltipPosition:"bottom",tooltip:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u0441\u0442\u0438\u043B\u044F \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.",onClick:function(){function A(){return i("ChangeStyle")}return A}()})],4),children:[!!u&&(0,e.createFragment)([(0,e.createTextVNode)("\u0417\u0434\u0440\u0430\u0441\u0442\u0432\u0443\u0439\u0442\u0435,"),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,u,0),(0,e.createVNode)(1,"br")],4),(0,e.createFragment)([(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u041F\u0440\u0438 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0438 \u0437\u0430\u043A\u0430\u0437\u0430 \u043D\u0430 \u044D\u043A\u0437\u043A\u043E\u0441\u0442\u044E\u043C, \u0432\u044B\u0431\u043E\u0440 \u043F\u043E\u0434\u0442\u0438\u043F\u0430 \u043C\u0435\u0445\u0430 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u044F\u0435\u0442 \u0442\u0438\u043F \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u043E\u0447\u043A\u043E\u0432, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0431\u0443\u0434\u0443\u0442 \u043D\u0430\u0447\u0438\u0441\u043B\u0435\u043D\u044B \u0437\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0437\u0430\u043A\u0430\u0437\u0430."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u0420\u0430\u0431\u043E\u0447\u0438\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"brown",children:[" ","\u043A\u043E\u0440\u0438\u0447\u043D\u0435\u0432\u044B\u0435"]}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u043E\u0447\u043A\u0438. \u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"teal",children:[" ","\u0433\u043E\u043B\u0443\u0431\u044B\u0435"]}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u043E\u0447\u043A\u0438. \u0411\u043E\u0435\u0432\u044B\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"red",children:[" ","\u043A\u0440\u0430\u0441\u043D\u044B\u0435"]}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u043E\u0447\u043A\u0438."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u041A\u0430\u0436\u0434\u044B\u0439 \u043C\u0435\u0445, \u0432\u043D\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u043F\u043E\u0434\u0442\u0438\u043F\u0430, \u043F\u0440\u0438\u043D\u043E\u0441\u0438\u0442 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043E\u0447\u043A\u043E\u0432 \u0434\u043B\u044F \u043C\u0430\u0433\u0430\u0437\u0438\u043D\u0430 \u043E\u0441\u043E\u0431\u044B\u0445 \u043D\u0430\u0433\u0440\u0430\u0434.")],0)]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:38,children:[!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"\u0418\u043D\u0444\u043E",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"id-card",content:"\u0412\u044B\u043D\u0443\u0442\u044C ID",disabled:!s,onClick:function(){function A(){return i("RemoveID")}return A}()}),!f&&(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-down",content:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043C\u0435\u0445",disabled:!s||h,onClick:function(){function A(){return i("GetTask")}return A}()}),!!f&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"\u041F\u0435\u0447\u0430\u0442\u044C",icon:"print",onClick:function(){function A(){return i("printOrder")}return A}(),disabled:!f}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"\u041E\u0442\u043A\u0430\u0437\u0430\u0442\u044C\u0441\u044F",disabled:!s||h,onClick:function(){function A(){return i("RemoveTask")}return A}()})],4)],0),children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",mb:"1rem",children:[(0,e.createVNode)(1,"b",null,"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435: ",16),d.name,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435: ",16),d.desc]}),(0,e.createComponentVNode)(2,o.Section,{title:"\u0422\u0440\u0435\u0431\u0443\u0435\u043C\u044B\u0435 \u041C\u043E\u0434\u0443\u043B\u0438:",level:2,children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",mb:"0.5rem",children:!!f&&d.modules.map(function(A){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Module "),A.id],0),(0,e.createTextVNode)(": "),A.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br")],0,A.id)})})}),(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"14rem",bold:!0,content:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043C\u0435\u0445",textAlign:"center",tooltipPosition:"top",tooltip:"\u041E\u0442\u043F\u0440\u0430\u0432\u043A\u0430 \u043C\u0435\u0445\u0430 \u043D\u0430 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0432\u0430\u043C\u0438 \u0442\u0435\u043B\u0435\u043F\u0430\u0434.",disabled:!s||!f||!C||h,onClick:function(){function A(){return i("SendMech",{type:"send"})}return A}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"14rem",bold:!0,content:"\u0423\u043F\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u043C\u0435\u0445",textAlign:"center",tooltipPosition:"top",tooltip:"\u0423\u043F\u0430\u043A\u043E\u0432\u043A\u0430 \u043C\u0435\u0445\u0430 \u0434\u043B\u044F \u0441\u0430\u043C\u043E\u0441\u0442\u043E\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0434\u043E\u0441\u0442\u0430\u0432\u043A\u0438 \u0432 \u043A\u0430\u0440\u0433\u043E.",disabled:!s||!f||!C||h,onClick:function(){function A(){return i("SendMech",{type:"only_packing"})}return A}()})]}),(0,e.createVNode)(1,"box",null,(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"30rem",bold:!0,content:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043C\u0435\u0445",textAlign:"center",tooltipPosition:"bottom",tooltip:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u0430\u044F \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u043C\u0435\u0445\u0430 \u0437\u0430\u043A\u0430\u0437\u0447\u0438\u043A\u0443.",disabled:!s||!f||!C||h||!g,onClick:function(){function A(){return i("SendMech",{type:"instant"})}return A}()}),2,{mb:"1.5rem",textAlign:"center"})]}),!!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createTextVNode)("\u041C\u0430\u0433\u0430\u0437\u0438\u043D \u043E\u0441\u043E\u0431\u044B\u0445 \u043D\u0430\u0433\u0440\u0430\u0434"),(0,e.createComponentVNode)(2,o.Box,{children:["\u041E\u0447\u043A\u0438: ",x.robo]})],4),children:N.robo.map(function(A){return(!A.emagOnly||v==="syndicate")&&(0,e.createComponentVNode)(2,o.ImageButton,{asset:!0,color:"purple",image:A.icon,imageAsset:"roboquest64x64",title:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,inline:!0,children:[A.name," ",(0,e.createVNode)(1,"b",null,A.cost.robo,0,{style:{color:"purple"}})]}),content:A.desc,onClick:function(){function O(){return i("buyItem",{item:A.path})}return O}()},A.name)})})]})]})})})}return y}()},26109:function(I,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(25328),S=function(V,p){var i=V/p;return i<=.2?"good":i<=.5?"average":"bad"},y=r.RobotSelfDiagnosis=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.data,s=c.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:s.map(function(u,d){return(0,e.createComponentVNode)(2,t.Section,{title:(0,m.capitalize)(u.name),children:u.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:u.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:S(u.brute_damage,u.max_damage),children:u.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:S(u.electronic_damage,u.max_damage),children:u.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:u.powered?"good":"bad",children:u.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:u.status?"good":"bad",children:u.status?"Yes":"No"})]})})]})},d)})})})}return k}()},97997:function(I,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.RoboticsControlConsole=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.can_hack,u=c.safety,d=c.show_detonate_all,f=c.cyborgs,l=f===void 0?[]:f;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Self Destruct",children:[(0,e.createComponentVNode)(2,t.Button,{icon:u?"lock":"unlock",content:u?"Disable Safety":"Enable Safety",selected:u,onClick:function(){function C(){return i("arm",{})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",disabled:u,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){function C(){return i("nuke",{})}return C}()})]}),(0,e.createComponentVNode)(2,S,{cyborgs:l,can_hack:s})]})})}return y}(),S=function(k,V){var p=k.cyborgs,i=k.can_hack,c=(0,a.useBackend)(V),s=c.act,u=c.data;return p.length?p.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d.name,buttons:(0,e.createFragment)([!!d.hackable&&!d.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function f(){return s("hackbot",{uid:d.uid})}return f}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:d.locked_down?"unlock":"lock",color:d.locked_down?"good":"default",content:d.locked_down?"Release":"Lockdown",disabled:!u.auth,onClick:function(){function f(){return s("stopbot",{uid:d.uid})}return f}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!u.auth,color:"bad",onClick:function(){function f(){return s("killbot",{uid:d.uid})}return f}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:d.status?"bad":d.locked_down?"average":"good",children:d.status?"Not Responding":d.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:d.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:d.health>50?"good":"bad",value:d.health/100})}),typeof d.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:d.charge>30?"good":"bad",value:d.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:d.cell_capacity<3e4?"average":"good",children:d.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!d.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:d.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:d.synchronization?"default":"average",children:d.synchronization||"None"})})]})},d.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},54431:function(I,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(89005),a=n(79140),t=n(72253),o=n(36036),m=n(98595),S=r.Safe=function(){function p(i,c){var s=(0,t.useBackend)(c),u=s.act,d=s.data,f=d.dial,l=d.open,C=d.locked,b=d.contents;return(0,e.createComponentVNode)(2,m.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,o.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),l?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,o.Box,{as:"img",className:"Safe--dial",src:(0,a.resolveAsset)("safe_dial.png"),style:{transform:"rotate(-"+3.6*f+"deg)","z-index":0}})]}),!l&&(0,e.createComponentVNode)(2,V)]})})}return p}(),y=function(i,c){var s=(0,t.useBackend)(c),u=s.act,d=s.data,f=d.dial,l=d.open,C=d.locked,b=function(h,g){return(0,e.createComponentVNode)(2,o.Button,{disabled:l||g&&!C,icon:"arrow-"+(g?"right":"left"),content:(g?"Right":"Left")+" "+h,iconRight:g,onClick:function(){function N(){return u(g?"turnleft":"turnright",{num:h})}return N}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:C,icon:l?"lock":"lock-open",content:l?"Close":"Open",mb:"0.5rem",onClick:function(){function v(){return u("open")}return v}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{position:"absolute",children:[b(50),b(10),b(1)]}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[b(1,!0),b(10,!0),b(50,!0)]}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer--number",children:f})]})},k=function(i,c){var s=(0,t.useBackend)(c),u=s.act,d=s.data,f=d.contents;return(0,e.createComponentVNode)(2,o.Box,{className:"Safe--contents",overflow:"auto",children:f.map(function(l,C){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{mb:"0.5rem",onClick:function(){function b(){return u("retrieve",{index:C+1})}return b}(),children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:l.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),l.name]}),(0,e.createVNode)(1,"br")],4,l)})})},V=function(i,c){return(0,e.createComponentVNode)(2,o.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,o.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},29740:function(I,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.SatelliteControl=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.satellites,s=i.notice,u=i.meteor_shield,d=i.meteor_shield_coverage,f=i.meteor_shield_coverage_max,l=i.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[u&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:l>=100?"good":"average",value:d,maxValue:f,children:[l," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:i.notice}),c.map(function(C){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+C.id,children:[C.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:C.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function b(){return p("toggle",{id:C.id})}return b}()})]},C.id)})]})})]})})}return S}()},44162:function(I,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.SecureStorage=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.emagged,s=i.locked,u=i.l_set,d=i.l_setshort,f=i.current_code,l=function(){function C(b){var v=b.buttonValue,h=b.color;return h||(h="default"),(0,e.createComponentVNode)(2,t.Button,{disabled:c||d,type:"button",color:h,onClick:function(){function g(){return p("setnumber",{buttonValue:v})}return g}(),children:v})}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:520,height:200,children:(0,e.createComponentVNode)(2,t.Flex,{spacing:"1",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:16,shrink:0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Code Panel",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,l,{buttonValue:"1"}),(0,e.createComponentVNode)(2,l,{buttonValue:"2"}),(0,e.createComponentVNode)(2,l,{buttonValue:"3"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,l,{buttonValue:"4"}),(0,e.createComponentVNode)(2,l,{buttonValue:"5"}),(0,e.createComponentVNode)(2,l,{buttonValue:"6"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,l,{buttonValue:"7"}),(0,e.createComponentVNode)(2,l,{buttonValue:"8"}),(0,e.createComponentVNode)(2,l,{buttonValue:"9"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,l,{buttonValue:"R",color:"red"}),(0,e.createComponentVNode)(2,l,{buttonValue:"0"}),(0,e.createComponentVNode)(2,l,{buttonValue:"E",color:"green"})]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Current Status",children:c||d?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lock Status",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:c?"LOCKING SYSTEM ERROR - 1701":"ALERT: MEMORY SYSTEM ERROR - 6040 201"})}),c?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Code",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"NEW INPUT, ASSHOLE"})}):""]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Secure Code",children:(0,e.createComponentVNode)(2,t.Box,{color:u?"red":"green",children:u?"*****":"NOT SET. ENTER NEW."})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lock Status",children:(0,e.createComponentVNode)(2,t.Box,{color:s?"red":"green",children:s?"Locked":"Unlocked"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Code",children:(0,e.createComponentVNode)(2,t.Box,{children:f||"Waiting for input"})}),(0,e.createComponentVNode)(2,t.Button,{top:".35em",left:".5em",disabled:s,color:"red",content:"Lock",icon:"lock",onClick:function(){function C(){return p("close")}return C}()})]})})]})})}return S}()},6272:function(I,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(98595),S=n(3939),y=n(321),k=n(5485),V=n(22091),p={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},i=function(g,N){(0,S.modalOpen)(g,"edit",{field:N.edit,value:N.value})},c=r.SecurityRecords=function(){function h(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.loginState,E=L.currentPage,w;if(T.logged_in)E===1?w=(0,e.createComponentVNode)(2,u):E===2?w=(0,e.createComponentVNode)(2,l):E===3&&(w=(0,e.createComponentVNode)(2,C));else return(0,e.createComponentVNode)(2,m.Window,{width:800,height:900,theme:"security",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});return(0,e.createComponentVNode)(2,m.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,V.TemporaryNotice),(0,e.createComponentVNode)(2,s),w]})})]})}return h}(),s=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.currentPage,E=L.general;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:T===1,onClick:function(){function w(){return B("page",{page:1})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"list"}),"List Records"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:T===2,onClick:function(){function w(){return B("page",{page:2})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wrench"}),"Record Maintenance"]}),T===3&&E&&!E.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:T===3,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"file"}),"Record: ",E.fields[0].value]})]})},u=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.records,E=(0,t.useLocalState)(N,"searchText",""),w=E[0],A=E[1],O=(0,t.useLocalState)(N,"sortId","name"),M=O[0],P=O[1],R=(0,t.useLocalState)(N,"sortOrder",!0),F=R[0],_=R[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,d,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,d,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,d,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,d,{id:"status",children:"Criminal Status"})]}),T.filter((0,a.createSearch)(w,function(U){return U.name+"|"+U.id+"|"+U.rank+"|"+U.fingerprint+"|"+U.status})).sort(function(U,W){var $=F?1:-1;return U[M].localeCompare(W[M])*$}).map(function(U){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+p[U.status],onClick:function(){function W(){return B("view",{uid_gen:U.uid_gen,uid_sec:U.uid_sec})}return W}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",U.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.status})]},U.id)})]})})})],4)},d=function(g,N){var x=(0,t.useLocalState)(N,"sortId","name"),B=x[0],L=x[1],T=(0,t.useLocalState)(N,"sortOrder",!0),E=T[0],w=T[1],A=g.id,O=g.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:B!==A&&"transparent",fluid:!0,onClick:function(){function M(){B===A?w(!E):(L(A),w(!0))}return M}(),children:[O,B===A&&(0,e.createComponentVNode)(2,o.Icon,{name:E?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},f=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.isPrinting,E=(0,t.useLocalState)(N,"searchText",""),w=E[0],A=E[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function O(){return B("new_general")}return O}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:T,icon:T?"spinner":"print",iconSpin:!!T,content:"Print Cell Log",onClick:function(){function O(){return(0,S.modalOpen)(N,"print_cell_log")}return O}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function O(M,P){return A(P)}return O}()})})]})},l=function(g,N){var x=(0,t.useBackend)(N),B=x.act;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"download",content:"Backup to Disk",tooltip:"This feature is not available.",tooltipPosition:"right"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"upload",content:"Upload from Disk",tooltip:"This feature is not available.",tooltipPosition:"right",my:"0.5rem"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){function L(){return B("delete_security_all")}return L}(),mb:"0.5rem"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",content:"Delete All Cell Logs",onClick:function(){function L(){return B("delete_cell_logs")}return L}()})]})},C=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.isPrinting,E=L.general,w=L.security;return!E||!E.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,level:2,mt:"-6px",title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:T,icon:T?"spinner":"print",iconSpin:!!T,content:"Print Record",onClick:function(){function A(){return B("print_record")}return A}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function A(){return B("delete_general")}return A}()})],4),children:(0,e.createComponentVNode)(2,b)})}),!w||!w.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function A(){return B("new_security")}return A}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:w.empty,content:"Delete Record",onClick:function(){function A(){return B("delete_security")}return A}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:w.fields.map(function(A,O){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:A.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(A.value),!!A.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:A.line_break?"1rem":"initial",onClick:function(){function M(){return i(N,A)}return M}()})]},O)})})})})}),(0,e.createComponentVNode)(2,v)],4)],0)},b=function(g,N){var x=(0,t.useBackend)(N),B=x.data,L=B.general;return!L||!L.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:L.fields.map(function(T,E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:T.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+T.value),!!T.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:T.line_break?"1rem":"initial",onClick:function(){function w(){return i(N,T)}return w}()})]},E)})})}),!!L.has_photos&&L.photos.map(function(T,E){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:T,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",E+1]},E)})]})},v=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function E(){return(0,S.modalOpen)(N,"comment_add")}return E}()}),children:T.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):T.comments.map(function(E,w){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:E.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),E.text||E,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function A(){return B("comment_delete",{id:w+1})}return A}()})]},w)})})})}},5099:function(I,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(89005),a=n(25328),t=n(35840),o=n(72253),m=n(36036),S=n(98595),y=n(3939);function k(f,l){var C=typeof Symbol!="undefined"&&f[Symbol.iterator]||f["@@iterator"];if(C)return(C=C.call(f)).next.bind(C);if(Array.isArray(f)||(C=V(f))||l&&f&&typeof f.length=="number"){C&&(f=C);var b=0;return function(){return b>=f.length?{done:!0}:{done:!1,value:f[b++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(f,l){if(f){if(typeof f=="string")return p(f,l);var C={}.toString.call(f).slice(8,-1);return C==="Object"&&f.constructor&&(C=f.constructor.name),C==="Map"||C==="Set"?Array.from(f):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?p(f,l):void 0}}function p(f,l){(l==null||l>f.length)&&(l=f.length);for(var C=0,b=Array(l);C=w},v=function(E,w){return E<=w},h=l.split(" "),g=[],N=function(){var E=L.value,w=E.split(":");if(w.length===0)return 0;if(w.length===1)return g.push(function(M){return(M.name+" ("+M.variant+")").toLocaleLowerCase().includes(w[0].toLocaleLowerCase())}),0;if(w.length>2)return{v:function(){function M(P){return!1}return M}()};var A,O=C;if(w[1][w[1].length-1]==="-"?(O=v,A=Number(w[1].substring(0,w[1].length-1))):w[1][w[1].length-1]==="+"?(O=b,A=Number(w[1].substring(0,w[1].length-1))):A=Number(w[1]),isNaN(A))return{v:function(){function M(P){return!1}return M}()};switch(w[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":g.push(function(M){return O(M.lifespan,A)});break;case"e":case"end":case"endurance":g.push(function(M){return O(M.endurance,A)});break;case"m":case"mat":case"maturation":g.push(function(M){return O(M.maturation,A)});break;case"pr":case"prod":case"production":g.push(function(M){return O(M.production,A)});break;case"y":case"yield":g.push(function(M){return O(M.yield,A)});break;case"po":case"pot":case"potency":g.push(function(M){return O(M.potency,A)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":g.push(function(M){return O(M.amount,A)});break;default:return{v:function(){function M(P){return!1}return M}()}}},x,B=k(h),L;!(L=B()).done;)if(x=N(),x!==0&&x)return x.v;return function(T){for(var E=0,w=g;E=1?Number(O):1)}return w}()})]})]})}},2916:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleConsoleContent=r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ShuttleConsole=function(){function p(i,c){var s=(0,a.useBackend)(c),u=s.act,d=s.data,f=i.type,l=f===void 0?"shuttle":f,C=i.blind_drop,b=d.authorization_required;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:240,children:[!!b&&(0,e.createComponentVNode)(2,t.Modal,{ml:1,mt:1,width:26,height:12,fontSize:"28px",fontFamily:"monospace",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2,children:(0,e.createComponentVNode)(2,t.Icon,{name:"minus-circle"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2,ml:2,color:"bad",children:l==="shuttle"?"SHUTTLE LOCKED":"BASE LOCKED"})]}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"18px",mt:4,children:(0,e.createComponentVNode)(2,t.Button,{lineHeight:"40px",icon:"arrow-circle-right",content:"Request Authorization",color:"bad",onClick:function(){function v(){return u("request")}return v}()})})]}),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,V,{type:l,blind_drop:C})})]})}return p}(),S=function(i,c){var s;return i==null||(s=i.find(function(u){return u.id===c}))==null?void 0:s.name},y=function(i,c){var s;return i==null||(s=i.find(function(u){return u.name===c}))==null?void 0:s.id},k={"In Transit":"good",Idle:"average",Igniting:"average",Recharging:"average",Missing:"bad","Unauthorized Access":"bad",Locked:"bad"},V=r.ShuttleConsoleContent=function(){function p(i,c){var s=(0,a.useBackend)(c),u=s.act,d=s.data,f=i.type,l=i.blind_drop,C=d.status,b=d.locked,v=d.authorization_required,h=d.destination,g=d.docked_location,N=d.timer_str,x=d.locations,B=x===void 0?[]:x;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,fontSize:"26px",textAlign:"center",fontFamily:"monospace",children:N||"00:00"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",fontSize:"14px",mb:1,children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,bold:!0,children:"STATUS:"}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:k[C]||"bad",ml:1,children:C||"Not Available"})]}),(0,e.createComponentVNode)(2,t.Section,{title:f==="shuttle"?"Shuttle Controls":"Base Launch Controls",level:2,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:g||"Not Available"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",buttons:f!=="shuttle"&&B.length===0&&!!l&&(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"exclamation-triangle",disabled:v||!l,content:"Blind Drop",onClick:function(){function L(){return u("random")}return L}()}),children:B.length===0&&(0,e.createComponentVNode)(2,t.Box,{mb:1.7,color:"bad",children:"Not Available"})||B.length===1&&(0,e.createComponentVNode)(2,t.Box,{mb:1.7,color:"average",children:S(B,h)})||(0,e.createComponentVNode)(2,t.Dropdown,{mb:1.7,over:!0,width:"240px",options:B.map(function(L){return L.name}),disabled:b||v,selected:S(B,h)||"Select a Destination",onSelected:function(){function L(T){return u("set_destination",{destination:y(B,T)})}return L}()})})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Depart",disabled:!S(B,h)||b||v||C!=="Idle",icon:"arrow-up",textAlign:"center",onClick:function(){function L(){return u("move",{shuttle_id:h})}return L}()})]})]})}return p}()},39401:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ShuttleManipulator=function(){function V(p,i){var c=(0,a.useLocalState)(i,"tabIndex",0),s=c[0],u=c[1],d=function(){function f(l){switch(l){case 0:return(0,e.createComponentVNode)(2,S);case 1:return(0,e.createComponentVNode)(2,y);case 2:return(0,e.createComponentVNode)(2,k);default:return"WE SHOULDN'T BE HERE!"}}return f}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===0,onClick:function(){function f(){return u(0)}return f}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===1,onClick:function(){function f(){return u(1)}return f}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===2,onClick:function(){function f(){return u(2)}return f}(),icon:"tools",children:"Modification"},"Modification")]}),d(s)]})})})}return V}(),S=function(p,i){var c=(0,a.useBackend)(i),s=c.act,u=c.data,d=u.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{title:f.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:f.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:f.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:f.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:f.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function l(){return s("jump_to",{type:"mobile",id:f.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function l(){return s("fast_travel",{id:f.id})}return l}()})]})]})},f.name)})})},y=function(p,i){var c=(0,a.useBackend)(i),s=c.act,u=c.data,d=u.templates_tabs,f=u.existing_shuttle,l=u.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:d.map(function(C){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===f.id,icon:"file",onClick:function(){function b(){return s("select_template_category",{cat:C})}return b}(),children:C},C)})}),!!f&&l[f.id].templates.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[C.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:C.description}),C.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:C.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function b(){return s("select_template",{shuttle_id:C.shuttle_id})}return b}()})})]})},C.name)})]})},k=function(p,i){var c=(0,a.useBackend)(i),s=c.act,u=c.data,d=u.existing_shuttle,f=u.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[d?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+d.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d.status}),d.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:d.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function l(){return s("jump_to",{type:"mobile",id:d.id})}return l}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),f?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+f.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[f.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:f.description}),f.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:f.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function l(){return s("preview",{shuttle_id:f.shuttle_id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function l(){return s("load",{shuttle_id:f.shuttle_id})}return l}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},88284:function(I,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(98595),S=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],k={average:[.25,.5],bad:[.5,1/0]},V=["bad","average","average","good","average","average","bad"],p=r.Sleeper=function(){function l(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.hasOccupant,x=N?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,f);return(0,e.createComponentVNode)(2,m.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:x}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,u)})]})})})}return l}(),i=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,d)],4)},c=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.occupant,x=g.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:x?"toggle-on":"toggle-off",selected:x,content:x?"On":"Off",onClick:function(){function B(){return h("auto_eject_dead_"+(x?"off":"on"))}return B}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function B(){return h("ejectify")}return B}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:N.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.maxHealth,value:N.health/N.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(N.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:S[N.stat][0],children:S[N.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.maxTemp,value:N.bodyTemperature/N.maxTemp,color:V[N.temperatureSuitability+3],children:[(0,a.round)(N.btCelsius,0),"\xB0C,",(0,a.round)(N.btFaren,0),"\xB0F"]})}),!!N.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.bloodMax,value:N.bloodLevel/N.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[N.bloodPercent,"%, ",N.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[N.pulse," BPM"]})],4)]})})},s=function(C,b){var v=(0,t.useBackend)(b),h=v.data,g=h.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:y.map(function(N,x){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:N[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:g[N[1]]/100,ranges:k,children:(0,a.round)(g[N[1]],0)},x)},x)})})})},u=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.hasOccupant,x=g.isBeakerLoaded,B=g.beakerMaxSpace,L=g.beakerFreeSpace,T=g.dialysis,E=T&&L>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!x||L<=0||!N,selected:E,icon:E?"toggle-on":"toggle-off",content:E?"Active":"Inactive",onClick:function(){function w(){return h("togglefilter")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!x,icon:"eject",content:"Eject",onClick:function(){function w(){return h("removebeaker")}return w}()})],4),children:x?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B,value:L/B,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[L,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},d=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.occupant,x=g.chemicals,B=g.maxchem,L=g.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:x.map(function(T,E){var w="",A;return T.overdosing?(w="bad",A=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):T.od_warning&&(w="average",A=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:T.title,level:"3",mx:"0",lineHeight:"18px",buttons:A,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B,value:T.occ_amount/B,color:w,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[T.pretty_amount,"/",B,"u"]}),L.map(function(O,M){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+O>B||N.stat===2,icon:"syringe",content:"Inject "+O+"u",title:"Inject "+O+"u of "+T.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function P(){return h("chemical",{chemid:T.id,amount:O})}return P}()},M)})]})})},E)})})},f=function(C,b){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},21597:function(I,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.SlotMachine=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data;if(i.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var c;return i.plays===1?c=i.plays+" player has tried their luck today!":c=i.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:c}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"50 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:i.working,content:i.working?"Spinning...":"Spin",onClick:function(){function s(){return p("spin")}return s}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:i.resultlvl,children:i.result})]})})})}return S}()},46348:function(I,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.Smartfridge=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.secure,s=i.can_dry,u=i.drying,d=i.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:s?"Drying rack":"Contents",buttons:!!s&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:u?"power-off":"times",content:u?"On":"Off",selected:u,onClick:function(){function f(){return p("drying")}return f}()}),children:[!d&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!d&&d.slice().sort(function(f,l){return f.display_name.localeCompare(l.display_name)}).map(function(f){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:f.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",f.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function l(){return p("vend",{index:f.vend,amount:1})}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:f.quantity,step:1,stepPixelSize:3,onChange:function(){function l(C,b){return p("vend",{index:f.vend,amount:b})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function l(){return p("vend",{index:f.vend,amount:f.quantity})}return l}()})]})]},f)})]})]})})})}return S}()},86162:function(I,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(49968),m=n(98595),S=1e3,y=r.Smes=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,u=s.capacityPercent,d=s.capacity,f=s.charge,l=s.inputAttempt,C=s.inputting,b=s.inputLevel,v=s.inputLevelMax,h=s.inputAvailable,g=s.outputPowernet,N=s.outputAttempt,x=s.outputting,B=s.outputLevel,L=s.outputLevelMax,T=s.outputUsed,E=u>=100&&"good"||C&&"average"||"bad",w=x&&"good"||f>0&&"average"||"bad";return(0,e.createComponentVNode)(2,m.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:u*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:l?"sync-alt":"times",selected:l,onClick:function(){function A(){return c("tryinput")}return A}(),children:l?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:E,children:u>=100&&"Fully Charged"||C&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:b===0,onClick:function(){function A(){return c("input",{target:"min"})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:b===0,onClick:function(){function A(){return c("input",{adjust:-1e4})}return A}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:b/S,fillValue:h/S,minValue:0,maxValue:v/S,step:5,stepPixelSize:4,format:function(){function A(O){return(0,o.formatPower)(O*S,1)}return A}(),onChange:function(){function A(O,M){return c("input",{target:M*S})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:b===v,onClick:function(){function A(){return c("input",{adjust:1e4})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:b===v,onClick:function(){function A(){return c("input",{target:"max"})}return A}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(h)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:N?"power-off":"times",selected:N,onClick:function(){function A(){return c("tryoutput")}return A}(),children:N?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:w,children:g?x?"Sending":f>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:B===0,onClick:function(){function A(){return c("output",{target:"min"})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:B===0,onClick:function(){function A(){return c("output",{adjust:-1e4})}return A}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:B/S,minValue:0,maxValue:L/S,step:5,stepPixelSize:4,format:function(){function A(O){return(0,o.formatPower)(O*S,1)}return A}(),onChange:function(){function A(O,M){return c("output",{target:M*S})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:B===L,onClick:function(){function A(){return c("output",{adjust:1e4})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:B===L,onClick:function(){function A(){return c("output",{target:"max"})}return A}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(T)})]})})]})})})}return k}()},63584:function(I,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.SolarControl=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=0,s=1,u=2,d=i.generated,f=i.generated_ratio,l=i.tracking_state,C=i.tracking_rate,b=i.connected_panels,v=i.connected_tracker,h=i.cdir,g=i.direction,N=i.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function x(){return p("refresh")}return x}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:v?"good":"bad",children:v?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:b>0?"good":"bad",children:b})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:f,children:d+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[h,"\xB0 (",g,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[l===u&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),l===s&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",C,"\xB0/h (",N,")"," "]}),l===c&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[l!==u&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:h,onDrag:function(){function x(B,L){return p("cdir",{cdir:L})}return x}()}),l===u&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:l===c,onClick:function(){function x(){return p("track",{track:c})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:l===s,onClick:function(){function x(){return p("track",{track:s})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:l===u,disabled:!v,onClick:function(){function x(){return p("track",{track:u})}return x}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[l===s&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:C,format:function(){function x(B){var L=Math.sign(B)>0?"+":"-";return L+Math.abs(B)}return x}(),onDrag:function(){function x(B,L){return p("tdir",{tdir:L})}return x}()}),l===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),l===u&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return S}()},38096:function(I,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.SpawnersMenu=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:s.name+" ("+s.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function u(){return p("jump",{ID:s.uids})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function u(){return p("spawn",{ID:s.uids})}return u}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:s.desc}),!!s.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:s.fluff}),!!s.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:s.important_info})]},s.name)})})})})}return S}()},7957:function(I,r,n){"use strict";r.__esModule=!0,r.SpiderOS=r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),m=n(98595);function S(f,l){f.prototype=Object.create(l.prototype),f.prototype.constructor=f,y(f,l)}function y(f,l){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,b){return C.__proto__=b,C},y(f,l)}var k=r.SpiderOS=function(){function f(l,C){var b=(0,a.useBackend)(C),v=b.act,h=b.data,g;return h.suit_tgui_state===0?g=(0,e.createComponentVNode)(2,t.Flex,{direction:"row",spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex,{direction:"column",width:"60%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{backgroundColor:"rgba(0, 0, 0, 0)",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2.2,backgroundColor:"rgba(0, 0, 0, 0)",children:(0,e.createComponentVNode)(2,s)})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"40%",height:"190px",grow:1,backgroundColor:"rgba(0, 0, 0, 0)",children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,p)]})]}):h.suit_tgui_state===1&&(g=(0,e.createComponentVNode)(2,t.Flex,{width:"100%",height:"100%",direction:"column",shrink:1,spacing:1,children:(0,e.createComponentVNode)(2,t.Flex.Item,{backgroundColor:"rgba(0, 0, 0, 0.8)",height:"100%",children:[(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,d,{allMessages:h.current_load_text,finishedTimeout:3e3,current_initialisation_phase:h.current_initialisation_phase,end_terminal:h.end_terminal,onFinished:function(){function N(){return v("set_UI_state",{suit_tgui_state:0})}return N}()})]})})),(0,e.createComponentVNode)(2,m.Window,{width:800,height:630,theme:"spider_clan",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",spacing:1,children:g})})})}return f}(),V=function(l,C){var b=(0,a.useBackend)(C),v=b.data,h=v.stylesIcon,g=v.style_preview_icon_state;return(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u043A\u043E\u0441\u0442\u044E\u043C\u0430",style:{"text-align":"center"},m:"0px",width:"100%",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0432\u043D\u0435\u0448\u043D\u0435\u0433\u043E \u0432\u0438\u0434\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430! \u041D\u0430\u0448\u0438 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0442 \u0432\u0430\u043C \u043F\u043E\u0434\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C \u043F\u043E\u0434 \u0441\u0435\u0431\u044F, \u043F\u0440\u0438 \u044D\u0442\u043E\u043C \u043D\u0435 \u0442\u0435\u0440\u044F\u044F \u043E\u0431\u043E\u0440\u043E\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0445 \u043A\u0430\u0447\u0435\u0441\u0442\u0432. \u041F\u043E\u0442\u043E\u043C\u0443 \u0447\u0442\u043E \u0443\u0434\u043E\u0431\u0441\u0442\u0432\u043E \u043F\u0440\u0438 \u043D\u043E\u0448\u0435\u043D\u0438\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430, \u0436\u0438\u0437\u043D\u0435\u043D\u043D\u043E \u0432\u0430\u0436\u043D\u043E \u0434\u043B\u044F \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0435\u0433\u043E \u0443\u0431\u0438\u0439\u0446\u044B.",tooltipPosition:"bottom-start"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",grow:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},mr:10,ml:10,children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"128px",width:"128px",icon:h,icon_state:g,style:{"margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})})})})},p=function(l,C){var b=(0,a.useBackend)(C),v=b.act,h=b.data,g=h.designs,N=h.design_choice,x=h.scarf_design_choice,B=h.colors,L=h.color_choice,T=h.genders,E=h.preferred_clothes_gender,w=h.suit_state,A=h.preferred_scarf_over_hood,O=h.show_charge_UI,M=h.has_martial_art,P=h.show_concentration_UI,R;w===0?R="\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C":R="\u0414\u0435\u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C";var F;A===0?F="\u041A\u0430\u043F\u044E\u0448\u043E\u043D":F="\u0428\u0430\u0440\u0444";var _;A===1?_=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0442\u0438\u043B\u044C \u0448\u0430\u0440\u0444\u0430",content:(0,e.createComponentVNode)(2,t.Dropdown,{options:g,selected:x,onSelected:function(){function W($){return v("set_scarf_design",{scarf_design_choice:$})}return W}()})}):_=null;var U;return M?U=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041A\u043E\u043D\u0446\u0435\u043D\u0442\u0440\u0430\u0446\u0438\u044F",content:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{selected:P,width:"78px",textAlign:"left",content:P?"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C":"\u0421\u043A\u0440\u044B\u0442\u044C",onClick:function(){function W(){return v("toggle_ui_concentration")}return W}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",content:"?",tooltip:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0449\u0435\u0433\u043E \u0441\u043A\u043E\u043D\u0446\u0435\u043D\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u044B \u043B\u0438 \u0432\u044B \u0434\u043B\u044F \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0431\u043E\u0435\u0432\u043E\u0433\u043E \u0438\u0441\u0441\u043A\u0443\u0441\u0442\u0432\u0430.",tooltipPosition:"top-start"})]})}):U=null,(0,e.createComponentVNode)(2,t.Flex,{direction:"row",grow:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,width:"100%",children:[(0,e.createComponentVNode)(2,t.NoticeBox,{success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0442\u0438\u043B\u044C",children:(0,e.createComponentVNode)(2,t.Dropdown,{options:g,selected:N,onSelected:function(){function W($){return v("set_design",{design_choice:$})}return W}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0426\u0432\u0435\u0442",children:(0,e.createComponentVNode)(2,t.Dropdown,{options:B,selected:L,onSelected:function(){function W($){return v("set_color",{color_choice:$})}return W}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0416\u0435\u043D\u0441\u043A\u0438\u0439/\u041C\u0443\u0436\u0441\u043A\u043E\u0439",children:(0,e.createComponentVNode)(2,t.Dropdown,{options:T,selected:E,onSelected:function(){function W($){return v("set_gender",{preferred_clothes_gender:$})}return W}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0428\u0430\u0440\u0444/\u041A\u0430\u043F\u044E\u0448\u043E\u043D",children:[(0,e.createComponentVNode)(2,t.Button,{className:w===0?"":"Button_disabled",width:"90px",selected:A,disabled:w,textAlign:"left",content:F,onClick:function(){function W(){return v("toggle_scarf")}return W}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",content:"?",tooltip:'\u0421 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u043E\u0439 "\u0428\u0430\u0440\u0444" \u0432\u0430\u0448 \u043A\u0430\u043F\u044E\u0448\u043E\u043D \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u0438\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0432\u043E\u043B\u043E\u0441\u044B. \u041D\u043E \u044D\u0442\u043E \u043D\u0435 \u0437\u043D\u0430\u0447\u0438\u0442, \u0447\u0442\u043E \u0432\u0430\u0448\u0430 \u0433\u043E\u043B\u043E\u0432\u0430 \u043D\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043D\u0430! \u0410\u0434\u0430\u043F\u0442\u0438\u0432\u043D\u044B\u0435 \u043D\u0430\u043D\u043E-\u0432\u043E\u043B\u043E\u043A\u043D\u0430 \u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u0432\u0441\u0451 \u0435\u0449\u0451 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u044E\u0442 \u043D\u0430 \u043F\u043E\u0442\u0435\u043D\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0435 \u0443\u0433\u0440\u043E\u0437\u044B \u043F\u0440\u0438\u043A\u0440\u044B\u0432\u0430\u044F \u0432\u0430\u0448\u0443 \u0433\u043E\u043B\u043E\u0432\u0443! \u0423\u0442\u043E\u0447\u043D\u0435\u043D\u0438\u0435: \u043D\u0430\u043D\u043E\u0432\u043E\u043B\u043E\u043A\u043D\u0430 \u0442\u0430\u043A \u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u043F\u0440\u0438\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0443 \u0433\u043E\u043B\u043E\u0432\u0443 \u0438 \u043E\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u0433\u043E\u043B\u043E\u0432\u043D\u044B\u0445 \u0443\u0431\u043E\u0440\u043E\u0432 \u0441 \u0446\u0435\u043B\u044C\u044E \u0443\u043C\u0435\u043D\u044C\u0448\u0435\u043D\u0438\u044F \u043F\u043E\u043C\u0435\u0445 \u0432 \u0438\u0445 \u0440\u0430\u0431\u043E\u0442\u0435.',tooltipPosition:"top-start"})]}),_,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0430\u0440\u044F\u0434 \u043A\u043E\u0441\u0442\u044E\u043C\u0430",children:[(0,e.createComponentVNode)(2,t.Button,{selected:O,width:"90px",textAlign:"left",content:O?"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C":"\u0421\u043A\u0440\u044B\u0442\u044C",onClick:function(){function W(){return v("toggle_ui_charge")}return W}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",content:"?",tooltip:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0449\u0435\u0433\u043E \u0437\u0430\u0440\u044F\u0434 \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430.",tooltipPosition:"top-start"})]}),U]})}),(0,e.createComponentVNode)(2,t.NoticeBox,{success:0,danger:0,mt:-1.3,mb:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{width:"80%",icon:"power-off",textAlign:"center",content:R,backgroundColor:L,tooltip:"\u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044E \u0432\u0441\u0435\u0445 \u0444\u0443\u043D\u043A\u0446\u0438\u0439 \u0432 \u043D\u0451\u043C \u0437\u0430\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0445. \n\u0423\u0447\u0442\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0441\u0442\u0438 \u043B\u044E\u0431\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438, \u043A\u043E\u0433\u0434\u0430 \u043A\u043E\u0441\u0442\u044E\u043C \u0431\u0443\u0434\u0435\u0442 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D. \n\u0422\u0430\u043A \u0436\u0435 \u0432\u043A\u043B\u044E\u0447\u0451\u043D\u043D\u044B\u0439 \u043A\u043E\u0441\u0442\u044E\u043C \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u043E \u043F\u043E\u0442\u0440\u0435\u0431\u043B\u044F\u0435\u0442 \u0437\u0430\u0440\u044F\u0434 \u0434\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0440\u0430\u0431\u043E\u0442\u044B \u0432\u0441\u0435\u0445 \u0444\u0443\u043D\u043A\u0446\u0438\u0439 \u0438 \u043C\u043E\u0434\u0443\u043B\u0435\u0439. \n\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u043A\u043E\u0441\u0442\u044E\u043C \u043D\u0435\u043B\u044C\u0437\u044F \u0441\u043D\u044F\u0442\u044C \u043E\u0431\u044B\u0447\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C, \u043F\u043E\u043A\u0430 \u043E\u043D \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D. \n\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u043E\u0432\u043D\u043E \u043A\u0430\u043A \u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u043C\u043D\u043E\u0433\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u0438. \u041F\u043E\u0434\u0443\u043C\u0430\u0439\u0442\u0435 \u0434\u0432\u0430\u0436\u0434\u044B \u043F\u0440\u0435\u0436\u0434\u0435, \u0447\u0435\u043C \u0432\u044B\u043A\u043B\u044E\u0447\u0430\u0442\u044C \u0435\u0433\u043E \u043D\u0430 \u0442\u0435\u0440\u0440\u0438\u0442\u043E\u0440\u0438\u0438 \u0432\u0440\u0430\u0433\u0430!",tooltipPosition:"top-start",onClick:function(){function W(){return v("initialise_suit")}return W}()})})]})})},i=function(l,C){var b=(0,a.useBackend)(C),v=b.data,h=v.actionsIcon;return(0,e.createComponentVNode)(2,t.Section,{m:"0",title:"\u0421\u043E\u0432\u0435\u0442\u044B \u0438 \u043F\u043E\u0434\u0441\u043A\u0430\u0437\u043A\u0438",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041C\u043E\u043B\u043E\u0434\u044B\u043C \u0443\u0431\u0438\u0439\u0446\u0430\u043C \u0447\u0430\u0441\u0442\u043E \u043D\u0435 \u043B\u0435\u0433\u043A\u043E \u043E\u0441\u0432\u043E\u0438\u0442\u0441\u044F \u0432 \u043F\u043E\u043B\u0435\u0432\u044B\u0445 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445, \u0434\u0430\u0436\u0435 \u043F\u043E\u0441\u043B\u0435 \u0438\u043D\u0442\u0435\u043D\u0441\u0438\u0432\u043D\u044B\u0445 \u0442\u0440\u0435\u043D\u0438\u0440\u043E\u0432\u043E\u043A. \n\u042D\u0442\u043E\u0442 \u0440\u0430\u0437\u0434\u0435\u043B \u043F\u0440\u0438\u0437\u0432\u0430\u043D \u043F\u043E\u043C\u043E\u0447\u044C \u0432\u0430\u043C \u0441\u043E\u0432\u0435\u0442\u0430\u043C\u0438 \u043F\u043E \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u044B\u043C \u0447\u0430\u0441\u0442\u043E \u0432\u043E\u0437\u043D\u0438\u043A\u0430\u044E\u0449\u0438\u043C \u0432\u043E\u043F\u0440\u043E\u0441\u0430\u043C \u043A\u0430\u0441\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u044B\u0445 \u043C\u0438\u0441\u0441\u0438\u0439 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0432\u0430\u043C \u0432\u044B\u0434\u0430\u0434\u0443\u0442 \u0438\u043B\u0438 \u0440\u0430\u0441\u0441\u043A\u0430\u0437\u0430\u0442\u044C \u043E \u043C\u0430\u043B\u043E\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438 \u043A\u043E\u0442\u043E\u0440\u0443\u044E \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043E\u0431\u0435\u0440\u043D\u0443\u0442\u044C \u0432 \u0441\u0432\u043E\u044E \u043F\u043E\u043B\u044C\u0437\u0443.",tooltipPosition:"bottom-start"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",grow:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"ninja_teleport",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u0438 \u0448\u0430\u0442\u0442\u043B",content:"\u0412 \u0432\u0430\u0448\u0435\u043C \u0414\u043E\u0434\u0437\u0451 \u0435\u0441\u0442\u044C \u043B\u0438\u0447\u043D\u044B\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430 \u0434\u043B\u044F \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u0438 \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0422\u043E\u0447\u043A\u0430 \u043D\u0430\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u0430\u044F, \u043D\u043E \u043F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442 \u0438\u0434\u0451\u0442 \u043D\u0430 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0442\u043E\u043D\u043D\u0435\u043B\u0438 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0438\u043B\u0438 \u043C\u0430\u043B\u043E\u043F\u043E\u0441\u0435\u0449\u0430\u0435\u043C\u044B\u0435 \u043C\u0435\u0441\u0442\u0430. \n\u042D\u0442\u043E \u043E\u0442\u043B\u0438\u0447\u043D\u044B\u0439 \u0441\u043F\u043E\u0441\u043E\u0431 \u0431\u044B\u0441\u0442\u0440\u043E \u043F\u0440\u0438\u0441\u0442\u0443\u043F\u0438\u0442\u044C \u043A \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044E \u0437\u0430\u0434\u0430\u043D\u0438\u044F. \n\u041F\u043E\u043B\u044C\u0437\u0443\u044F\u0441\u044C \u0432\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u043C \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440\u043E\u043C \u0448\u0430\u0442\u0442\u043B\u0430, \u0432\u044B \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u0435\u0433\u043E \u043A \u0441\u0435\u0431\u0435 \u0438 \u0432\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430\u0437\u0430\u0434. \n\u0422\u0430\u043A \u0436\u0435 \u0432 \u0441\u043B\u0443\u0447\u0430\u0435 \u0435\u0441\u043B\u0438 \u0432\u044B \u0440\u0435\u0448\u0438\u0442\u0435 \u043F\u043E\u043B\u0435\u0442\u0435\u0442\u044C \u043D\u0430 \u0448\u0430\u0442\u0442\u043B\u0435, \u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u0435\u043C \u0432\u0430\u043C, \u0447\u0442\u043E \u0432\u043E \u0438\u0437\u0431\u0435\u0436\u0430\u043D\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043E \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0438\u044F \u0438\u043B\u0438 \u043A\u0440\u0430\u0436\u0438 \u0448\u0430\u0442\u0442\u043B\u0430 \u0438 \u043F\u043E\u043F\u0430\u0434\u0430\u043D\u0438\u044F \u043D\u0430 \u0432\u0430\u0448\u0443 \u0431\u0430\u0437\u0443 \u043F\u043E\u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0438\u0445 \u043B\u0438\u0446, \u043E\u0442\u043B\u0438\u0447\u043D\u043E\u0439 \u043F\u0440\u0430\u043A\u0442\u0438\u043A\u043E\u0439 \u0431\u0443\u0434\u0435\u0442 \u043E\u0442\u043E\u0437\u0432\u0430\u0442\u044C \u0435\u0433\u043E.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"headset_green",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0430\u0448 \u043D\u0430\u0443\u0448\u043D\u0438\u043A",content:"\u0412 \u043E\u0442\u043B\u0438\u0447\u0438\u0438 \u043E\u0442 \u0441\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u044B\u0445 \u043D\u0430\u0443\u0448\u043D\u0438\u043A\u043E\u0432 \u0431\u043E\u043B\u044C\u0448\u0438\u043D\u0441\u0442\u0432\u0430 \u043A\u043E\u0440\u043F\u043E\u0440\u0430\u0446\u0438\u0439, \u043D\u0430\u0448 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u0441\u043E\u0437\u0434\u0430\u043D \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u043E \u0434\u043B\u044F \u043F\u043E\u043C\u043E\u0449\u0438 \u0432 \u0432\u0430\u0448\u0435\u043C \u0432\u043D\u0435\u0434\u0440\u0435\u043D\u0438\u0438. \u0412 \u043D\u0435\u0433\u043E \u0432\u0441\u0442\u0440\u043E\u0435\u043D \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0439 \u043A\u0430\u043D\u0430\u043B \u0434\u043B\u044F \u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0441 \u0432\u0430\u0448\u0438\u043C \u0431\u043E\u0440\u0433\u043E\u043C \u0438\u043B\u0438 \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u0447\u043B\u0435\u043D\u0430\u043C\u0438 \u043A\u043B\u0430\u043D\u0430. \n\u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u043E\u043D \u0441\u043F\u043E\u0441\u043E\u0431\u0435\u043D \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043B\u044E\u0431\u044B\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043D\u0430\u0443\u0448\u043D\u0438\u043A\u0438 \u0438 \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0434\u043B\u044F \u043F\u0440\u043E\u0441\u043B\u0443\u0448\u043A\u0438 \u0438/\u0438\u043B\u0438 \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440\u0430 \u043A\u0430\u043D\u0430\u043B\u044B \u0438\u0445 \u043A\u043B\u044E\u0447\u0435\u0439. \u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u044F \u044D\u0442\u043E\u043C\u0443 \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0441\u0442\u0435\u043F\u0435\u043D\u043D\u043E \u043D\u0430\u043A\u0430\u043F\u043B\u0438\u0432\u0430\u0442\u044C \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0435 \u0432\u0430\u043C \u043C\u0435\u0441\u0442\u043D\u044B\u0435 \u043A\u0430\u043D\u0430\u043B\u044B \u0441\u0432\u044F\u0437\u0438 \u0434\u043B\u044F \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043B\u044E\u0431\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438. \n\u0422\u0430\u043A \u0436\u0435 \u0432\u0430\u0448 \u043D\u0430\u0443\u0448\u043D\u0438\u043A \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438- \u0447\u0435\u0441\u043A\u0438 \u0443\u043B\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442 \u0438 \u043F\u0435\u0440\u0435\u0432\u043E\u0434\u0438\u0442 \u0431\u0438\u043D\u0430\u0440\u043D\u044B\u0435 \u0441\u0438\u0433\u043D\u0430\u043B\u044B \u0433\u0435\u043D\u0435\u0440\u0438\u0440\u0443\u0435\u043C\u044B\u0435 \u0441\u0438\u043D\u0442\u0435\u0442\u0438\u043A\u0430\u043C\u0438 \u043F\u0440\u0438 \u043E\u0431\u0449\u0435\u043D\u0438\u0438 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043E\u043C. \u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044F \u0432\u0430\u043C \u0441\u0430\u043C\u0438\u043C \u043E\u0431\u0449\u0430\u0442\u044C\u0441\u044F \u0441 \u043D\u0438\u043C\u0438.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"ninja_sleeper",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041F\u043E\u0445\u0438\u0449\u0435\u043D\u0438\u0435 \u044D\u043A\u0438\u043F\u0430\u0436\u0430",content:"\u041F\u043E\u0440\u043E\u0439 \u043A\u043B\u0430\u043D\u0443 \u043D\u0443\u0436\u043D\u044B \u0441\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u043A\u043E\u0442\u043E\u0440\u044B\u043C\u0438 \u043C\u043E\u0433\u0443\u0442 \u043E\u0431\u043B\u0430\u0434\u0430\u0442\u044C \u043B\u044E\u0434\u0438 \u0440\u0430\u0431\u043E\u0442\u0430\u044E\u0449\u0438\u0435 \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0435 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0412 \u0442\u0430\u043A\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0432\u0430\u043C \u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0441\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E \u043E\u0441\u043E\u0431\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0447\u0443\u0436\u043E\u0433\u043E \u0440\u0430\u0437\u0443\u043C\u0430. \u0414\u0430\u0436\u0435 \u0435\u0441\u043B\u0438 \u0432\u0430\u043C \u043D\u0435 \u0443\u0434\u0430\u0441\u0442\u0441\u044F \u043D\u0430\u0439\u0442\u0438 \u043E\u0431\u043B\u0430\u0434\u0430\u044E\u0449\u0435\u0433\u043E \u0432\u0441\u0435\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439 \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430, \u043C\u043E\u0436\u043D\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043E\u0431\u0440\u0430\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043F\u043E \u043A\u0440\u0443\u043F\u0438\u0446\u0430\u043C \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u044F \u043F\u043E\u0445\u0438\u0449\u0430\u0442\u044C \u043B\u044E\u0434\u0435\u0439. \n\u0414\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043F\u043E\u0445\u0438- \u0442\u0438\u0442\u044C \u043B\u044E\u0434\u0435\u0439. \u0423 \u0432\u0430\u0441 \u043D\u0430 \u0448\u0430\u0442\u0442\u043B\u0435 \u0435\u0441\u0442\u044C \u0441\u043A\u0430\u0444\u0430\u043D\u0434\u0440\u044B, \u0430 \u043D\u0430 \u0431\u0430\u0437\u0435 \u0437\u0430\u043F\u0430\u0441 \u043D\u0430- \u0440\u0443\u0447\u043D\u0438\u043A\u043E\u0432, \u043A\u0438\u0441\u043B\u043E\u0440\u043E\u0434\u0430 \u0438 \u0431\u0430\u043B\u043B\u043E- \u043D\u043E\u0432. \n\u0422\u0430\u043A \u0436\u0435 \u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u0435\u043C, \u0447\u0442\u043E \u0432\u0430\u0448\u0438 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u044B \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u0432 \u043B\u044E\u0434\u0435\u0439 \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0438\u043C\u043F\u0443\u043B\u044C\u0441, \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E \u0441\u0442\u0430\u043D\u044F \u0438\u0445 \u043D\u0430 \u043A\u043E\u0440\u043E\u0442\u043A\u043E\u0435 \u0432\u0440\u0435\u043C\u044F. ",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"ai_face",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0430\u0431\u043E\u0442\u0430\u0436 \u0418\u0418",content:"\u0418\u043D\u043E\u0433\u0434\u0430 \u0443 \u043D\u0430\u0441 \u0437\u0430\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0442 \u0441\u0430\u0431\u043E- \u0442\u0430\u0436 \u0418\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u0438\u043D\u0442\u0435\u043B\u043B\u0435\u043A\u0442\u0430 \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0430\u0445 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438. \u042D\u0442\u043E \u043F\u0440\u043E- \u0446\u0435\u0441\u0441 \u0441\u043B\u043E\u0436\u043D\u044B\u0439 \u0438 \u0442\u0440\u0435\u0431\u0443\u044E\u0449\u0438\u0439 \u043E\u0442 \u043D\u0430\u0441 \u043E\u0441\u043D\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u043F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0438. \n\u041F\u0440\u0435\u0434\u043F\u043E\u0447\u0438\u0442\u0430\u0435\u043C\u044B\u0439 \u043A\u043B\u0430\u043D\u043E\u043C \u043C\u0435\u0442\u043E\u0434 \u044D\u0442\u043E \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u0435 \u0443\u044F\u0437\u0432\u0438\u043C\u043E\u0441\u0442\u0438 \u043F\u0440\u044F\u043C\u043E \u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043E\u0447\u043D\u043E\u0439 \u0434\u043B\u044F \u0437\u0430\u043A\u043E\u043D\u043E\u0432 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0435\u0439 \u0432\u044B\u0432\u0435\u0441\u0442\u0438 \u0418\u0418 \u0438\u0437 \u0441\u0442\u0440\u043E\u044F. \u0412 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0435 \u0442\u0430\u043A\u043E\u0433\u043E \u043C\u0435\u0442\u043E\u0434\u0430 \u043C\u044B \u043C\u043E\u0436\u0435\u043C \u043B\u0435\u0433\u043A\u043E \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0418\u0418 \u0430\u0431\u0441\u0443\u0440\u0434\u043D\u044B\u043C\u0438 \u0437\u0430\u043A\u043E\u043D\u0430\u043C\u0438, \u043D\u043E \u044D\u0442\u043E \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043D\u0430\u0441 \u0432 \u0442\u043E\u043C \u043F\u043B\u0430\u043D\u0435, \u0447\u0442\u043E \u0434\u043B\u044F \u0432\u0437\u043B\u043E\u043C\u0430 \u0432 \u0438\u0442\u043E\u0433\u0435 \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0442 \u0442\u043E\u043B\u044C\u043A\u043E \u043A\u043E\u043D\u0441\u043E\u043B\u0438 \u0432 \u0441\u0430\u043C\u043E\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043E\u0447\u043D\u043E\u0439. \u0422\u0430\u043A \u0436\u0435 \u0432\u0437\u043B\u043E\u043C \u0437\u0430\u0434\u0430\u0447\u0430 \u043D\u0435\u043B\u0451\u0433\u043A\u0430\u044F - \u0441\u0438\u0441\u0442\u0435\u043C\u044B \u0437\u0430\u0449\u0438\u0442\u044B \u0435\u0441\u0442\u044C \u0432\u0435\u0437\u0434\u0435. \u0410 \u043F\u0440\u043E\u0446\u0435\u0441\u0441 \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u0432\u0440\u0435\u043C\u044F. \u041D\u0435 \u0443\u0434\u0438\u0432\u043B\u044F\u0439\u0442\u0435\u0441\u044C \u0435\u0441\u043B\u0438 \u0418\u0418 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u043E\u0442\u0438\u0432\u043E\u0434\u0435\u0439\u0441\u0442- \u0432\u043E\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0438\u043C \u043F\u043E\u043F\u044B\u0442\u043A\u0430\u043C \u0435\u0433\u043E \u0441\u043B\u043E\u043C\u0430\u0442\u044C.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"ninja_borg",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0430\u0431\u043E\u0442\u0430\u0436 \u0440\u043E\u0431\u043E\u0442\u043E\u0432",content:'\u0418\u043D\u043E\u0433\u0434\u0430 \u043E\u0446\u0435\u043D\u0438\u0432\u0430\u044F \u0432\u0430\u0448\u0438 \u0448\u0430\u043D\u0441\u044B \u043D\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u043C\u0438\u0441\u0441\u0438\u0438 \u0434\u043B\u044F \u0438\u0445 \u0443\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u044F \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0430\u0445, \u0447\u0442\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442 \u0440\u043E\u0431\u043E\u0442\u043E\u0432 \u0434\u043B\u044F \u0441\u0432\u043E\u0438\u0445 \u0446\u0435\u043B\u0435\u0439, \u043C\u044B \u0434\u0430\u0451\u043C \u0432\u0430\u043C \u043E\u0441\u043E\u0431\u044B\u0439 "\u0423\u043B\u0443\u0447\u0448\u0430\u044E\u0449\u0438\u0439" \u0438\u0445 \u043F\u0440\u0438\u0431\u043E\u0440, \u0432\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u0439 \u0432 \u0432\u0430\u0448\u0438 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438. \n\u041F\u0440\u0438 \u0432\u0437\u043B\u043E\u043C\u0435 \u043A\u0438\u0431\u043E\u0440\u0433\u0430 \u0442\u0430\u043A\u0438\u043C \u043F\u0440\u0438\u0431\u043E\u0440\u043E\u043C(\u0412\u0437\u043B\u043E\u043C \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u0432\u0440\u0435\u043C\u044F) \u0432\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 \u043B\u043E\u044F\u043B\u044C\u043D\u043E\u0433\u043E \u043A\u043B\u0430\u043D\u0443 \u0438 \u0432\u0430\u043C \u043B\u0438\u0447\u043D\u043E \u0441\u043B\u0443\u0433\u0443 \u0441\u043F\u043E\u0441\u043E\u0431- \u043D\u043E\u0433\u043E \u043D\u0430 \u043E\u043A\u0430\u0437\u0430\u043D\u0438\u0435 \u043F\u043E\u043C\u043E\u0449\u0438 \u043A\u0430\u043A \u0432 \u0441\u0430\u0431\u043E\u0442\u0430\u0436\u0435 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0442\u0430\u043A \u0438 \u0432 \u0432\u0430\u0448\u0435\u043C \u043B\u0435\u0447\u0435\u043D\u0438\u0438. \n\u0422\u0430\u043A \u0436\u0435 \u0440\u043E\u0431\u043E\u0442 \u0431\u0443\u0434\u0435\u0442 \u043E\u0441\u043D\u0430\u0449\u0451\u043D \u043B\u0438\u0447\u043D\u043E\u0439 \u043A\u0430\u0442\u0430\u043D\u043E\u0439, \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E\u043C \u043C\u0430\u0441\u043A\u0438\u0440\u043E\u0432\u043A\u0438, \u043F\u0438\u043D\u043F\u043E\u0438\u043D\u0442\u0435\u0440\u043E\u043C \u0443\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0449\u0438\u043C \u0435\u043C\u0443 \u043D\u0430 \u0432\u0430\u0441 \u0438 \u0433\u0435\u043D\u0435\u0440\u0430\u0442\u043E\u0440\u043E\u043C \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u0441\u044E\u0440\u0438\u043A\u0435\u043D\u043E\u0432. \u041F\u043E\u043C\u043D\u0438\u0442\u0435, \u0447\u0442\u043E \u043A\u0430\u0442\u0430\u043D\u0430 \u0440\u043E\u0431\u043E\u0442\u0430 \u043D\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u0430 \u043E\u0431\u0435\u0441\u043F\u0435\u0447\u0438\u0442\u044C \u0435\u0433\u043E \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0442\u0440\u0430\u043D\u0441\u043B\u043E\u043A\u0430\u0446\u0438\u044E!',position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"server",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0430\u0431\u043E\u0442\u0430\u0436 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0439",content:"\u041D\u0430 \u043D\u0430\u0443\u0447\u043D\u044B\u0445 \u043E\u0431\u044C\u0435\u043A\u0442\u0430\u0445 \u0432\u0441\u0435\u0433\u0434\u0430 \u0435\u0441\u0442\u044C \u0441\u0432\u043E\u044F \u043A\u043E\u043C\u0430\u043D\u0434\u0430 \u0443\u0447\u0451\u043D\u044B\u0445 \u0438 \u043C\u043D\u043E- \u0436\u0435\u0441\u0442\u0432\u043E \u0434\u0430\u043D\u043D\u044B\u0445 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u0440\u0438\u0445\u043E- \u0434\u0438\u0442\u0441\u044F \u0433\u0434\u0435 \u0442\u043E \u0445\u0440\u0430\u043D\u0438\u0442\u044C. \u0412 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0430\u043A\u043E\u0433\u043E \u043E\u0431\u044C\u0435\u043A\u0442\u0430 \u043E\u0431\u044B\u0447\u043D\u043E \u0432\u044B\u0441\u0442\u0443- \u043F\u0430\u044E\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0410 \u043A\u0430\u043A \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u043A\u043E\u0440\u043F\u043E\u0440\u0430\u0446\u0438\u0438 \u0432\u0435\u0447\u043D\u043E \u0433\u0440\u044B\u0437\u0443\u0442\u0441\u044F \u0437\u0430 \u0437\u043D\u0430\u043D\u0438\u044F. \u0427\u0442\u043E \u043D\u0430\u043C \u043D\u0430 \u0440\u0443\u043A\u0443. \n\u041C\u044B \u0440\u0430\u0437\u0440\u0430\u0431\u043E\u0442\u0430\u043B\u0438 \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0439 \u0432\u0438\u0440\u0443\u0441 \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043F\u0438\u0441\u0430\u043D \u043D\u0430 \u0432\u0430\u0448\u0438 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 \u043F\u0435\u0440\u0435\u0434 \u043C\u0438\u0441\u0441\u0438\u0435\u0439 \u0442\u0430\u043A\u043E\u0433\u043E \u0440\u043E\u0434\u0430. \u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u0431\u0443\u0434\u0435\u0442 \u043B\u0438\u0448\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0435\u0433\u043E \u043D\u0430\u043F\u0440\u044F\u043C\u0443\u044E \u043D\u0430 \u0438\u0445 \u043D\u0430\u0443\u0447\u043D\u044B\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u0432\u0441\u0435 \u0438\u0445 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u044F \u0431\u0443\u0434\u0443\u0442 \u0443\u0442\u0435\u0440\u044F\u043D\u044B. \n\u041D\u043E \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0432\u0438\u0440\u0443\u0441\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u0440\u0435\u043C\u0435\u043D\u0438, \u0438 \u0441\u0438\u0441\u0442\u0435\u043C\u044B \u0437\u0430\u0449\u0438\u0442\u044B \u043C\u043D\u043E\u0433\u0438\u0445 \u043E\u0431\u044C\u0435\u043A\u0442\u043E\u0432 \u043D\u0435 \u0434\u0440\u0435\u043C\u043B\u044E\u0442. \u0421\u043A\u043E\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043E \u043E \u0432\u0430\u0448\u0435\u0439 \u043F\u043E\u043F\u044B\u0442\u043A\u0435 \u0432\u0437\u043B\u043E\u043C\u0430 \u0431\u0443\u0434\u0435\u0442 \u043E\u043F\u043E\u0432\u0435\u0449\u0451\u043D \u043C\u0435\u0441\u0442\u043D\u044B\u0439 \u0418\u0418. \u0411\u0443\u0434\u044C\u0442\u0435 \u0433\u043E\u0442\u043E\u0432\u044B \u043A \u044D\u0442\u043E\u043C\u0443.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"buckler",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0417\u0430\u0449\u0438\u0442\u0430 \u0446\u0435\u043B\u0438",content:'\u0418\u043D\u043E\u0433\u0434\u0430 \u0431\u043E\u0433\u0430\u0442\u044B\u0435 \u0448\u0438\u0448\u043A\u0438 \u043F\u043B\u0430\u0442\u044F\u0442 \u0437\u0430 \u0443\u0441\u043B\u0443\u0433\u0438 \u0437\u0430\u0449\u0438\u0442\u044B \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u0433\u043E \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430. \u0415\u0441\u043B\u0438 \u0432\u0430\u043C \u0434\u043E\u0441\u0442\u0430\u043B\u0430\u0441\u044C \u0442\u0430\u043A\u0430\u044F \u0446\u0435\u043B\u044C \u043F\u043E\u043C\u043D\u0438\u0442\u0435 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435: \n * \u0417\u0430\u0449\u0438\u0449\u0430\u0435\u043C\u044B\u0439 \u043E\u0431\u044F\u0437\u0430\u043D \u0434\u043E\u0436\u0438\u0442\u044C \u0434\u043E \u043A\u043E\u043D\u0446\u0430 \u0441\u043C\u0435\u043D\u044B! \n * \u0421\u043A\u043E\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043E \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043C\u044B\u0439 \u043D\u0435 \u0437\u043D\u0430\u0435\u0442 \u043E \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0435. \u0418 \u043B\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043E \u0447\u0442\u043E\u0431\u044B \u043E\u043D \u0438 \u0434\u0430\u043B\u044C\u0448\u0435 \u043D\u0435 \u0437\u043D\u0430\u043B! \n * \u041D\u0435 \u0432\u0430\u0436\u043D\u043E \u043A\u0442\u043E \u0438\u043B\u0438 \u0447\u0442\u043E \u043E\u0445\u043E\u0442\u0438\u0442\u0441\u044F \u043D\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u043F\u043E\u0434\u0437\u0430\u0449\u0438\u0442\u043D\u043E\u0433\u043E, \u043D\u043E \u0434\u043B\u044F \u043E\u0431\u044C\u0435\u043A\u0442\u0430 \u0433\u0434\u0435 \u043F\u0440\u043E\u0445\u043E\u0434\u0438\u0442 \u043C\u0438\u0441\u0441\u0438\u044F \u0432\u044B \u0432\u0441\u0435\u0433\u0434\u0430 \u043D\u0435\u0436\u0435\u043B\u0430\u043D\u043D\u043E\u0435 \u043B\u0438\u0446\u043E. \u041D\u0435 \u0440\u0430\u0441\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435 \u0441\u0435\u0431\u044F \u0431\u0435\u0437 \u043D\u0443\u0436\u0434\u044B, \u0447\u0442\u043E\u0431\u044B \u0443\u043F\u0440\u043E\u0441\u0442\u0438\u0442\u044C \u0441\u0435\u0431\u0435 \u0436\u0435 \u0440\u0430\u0431\u043E\u0442\u0443 \u0438 \u043D\u0430 \u0432\u0430\u0441 \u0441\u0430\u043C\u0438\u0445 \u043D\u0435 \u0432\u0435\u043B\u0438 \u043E\u0445\u043E\u0442\u0443! \n\u0422\u0430\u043A \u0436\u0435 \u043C\u044B \u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u0435\u043C, \u0447\u0442\u043E \u043A\u043B\u0430\u043D \u043D\u0435 \u043E\u0434\u043E\u0431\u0440\u044F\u0435\u0442 \u0432\u0430\u0440\u0432\u0430\u0440\u0441\u043A\u0438\u0435 \u043C\u0435\u0442\u043E\u0434\u044B "\u0417\u0430\u0449\u0438\u0442\u044B" \u0446\u0435\u043B\u0438. \u041D\u0435\u0442 \u0432\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0441\u0430\u0434\u0438\u0442\u044C \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043C\u043E\u0433\u043E \u0432 \u043A\u043B\u0435\u0442\u043A\u0443 \u0438 \u0441\u043B\u0435\u0434\u0438\u0442\u044C \u0437\u0430 \u043D\u0438\u043C \u0442\u0430\u043C! \u041D\u0435 \u043F\u043E\u0440\u0442\u0438\u0442\u0435 \u043D\u0430\u0448\u0443 \u0440\u0435\u043F\u0443\u0442\u0430\u0446\u0438\u044E \u0432 \u0433\u043B\u0430\u0437\u0430\u0445 \u043D\u0430\u0448\u0438\u0445 \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u0432!',position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"cash",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041A\u0440\u0430\u0436\u0430 \u0434\u0435\u043D\u0435\u0433",content:"\u041A\u0430\u043A \u0431\u044B \u044D\u0442\u043E \u043D\u0435 \u0431\u044B\u043B\u043E \u0442\u0440\u0438\u0432\u0438\u0430\u043B\u044C\u043D\u043E. \u0418\u043D\u043E\u0433\u0434\u0430 \u043A\u043B\u0430\u043D \u043D\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044F \u0432 \u0434\u0435\u043D\u044C- \u0433\u0430\u0445. \u0418\u043B\u0438 \u0434\u0430\u0436\u0435 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u0432\u044B \u0437\u0430\u0434\u043E\u043B\u0436\u0430\u043B\u0438 \u043D\u0430\u043C. \u0412 \u0442\u0430\u043A\u043E\u043C \u0441\u043B\u0443\u0447\u0430\u0435 \u043C\u044B \u0441\u043A\u043E\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043E \u0434\u0430\u0434\u0438\u043C \u0432\u0430\u043C \u0437\u0430\u0434\u0430\u0447\u0443 \u0434\u043E\u0441\u0442\u0430\u0442\u044C \u0434\u043B\u044F \u043D\u0430\u0441 \u044D\u0442\u0438 \u0434\u0435\u043D\u044C\u0433\u0438 \u043D\u0430 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \n\u0414\u043B\u044F \u0432\u0430\u0441 \u044D\u0442\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043D\u0435 \u0442\u0440\u0443\u0434\u043D\u0430\u044F, \u043D\u043E \u0432\u0440\u0435\u043C\u044F\u0437\u0430\u0442\u0440\u0430\u0442\u043D\u0430\u044F. \u041F\u043E\u043C\u043D\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u043D\u0430\u0442\u0440\u0435\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u044B \u0432 \u0438\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u0435 \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u044B\u0445 \u043A\u0430\u0440\u043C\u0430\u043D\u043D\u044B\u0445 \u043A\u0440\u0430\u0436. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u044D\u0442\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0434\u043B\u044F \u043A\u0440\u0430\u0436\u0438 \u0447\u0443\u0436\u0438\u0445 \u043A\u0430\u0440\u0442 \u0438 \u043E\u0431\u043D\u0430\u043B\u0438\u0447\u0438- \u0432\u0430\u043D\u0438\u044F \u0438\u0445 \u0441\u0447\u0435\u0442\u043E\u0432. \u041B\u0438\u0431\u043E \u043C\u043E\u0436\u0435\u0442\u0435 \u043C\u0435\u0442\u0438\u0442\u044C \u0432\u044B\u0448\u0435 \u0438 \u043E\u0433\u0440\u0430\u0431\u0438\u0442\u044C \u0445\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0430 \u0438\u043B\u0438 \u0441\u0447\u0435\u0442\u0430 \u0441\u0430\u043C\u043E\u0433\u043E \u043E\u0431\u044C\u0435\u043A\u0442\u0430 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0421\u0430\u043C\u043E\u0435 \u0433\u043B\u0430\u0432\u043D\u043E\u0435. \u0414\u043E\u0441\u0442\u0430\u043D\u044C\u0442\u0435 \u044D\u0442\u0438 \u0434\u0435\u043D\u044C\u0433\u0438!",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"handcuff",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041F\u043E\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430",content:"\u0412 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u044B\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044F\u0445 \u0447\u0443\u0436\u043E\u0439 \u043F\u043E\u0437\u043E\u0440 \u0434\u043B\u044F \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u0432 \u0433\u043E\u0440\u0430\u0437\u0434\u043E \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u043D\u0435\u0435 \u0447\u0435\u043C \u0441\u043C\u0435\u0440\u0442\u044C. \u0412 \u0442\u0430\u043A\u0438\u0445 \u0441\u043B\u0443\u0447\u0430\u044F\u0445 \u0432\u0430\u043C \u043F\u0440\u0438\u0439\u0434\u0451\u0442\u0441\u044F \u043F\u0440\u043E\u044F\u0432\u0438\u0442\u044C \u043A\u0440\u0435\u0430\u0442\u0438\u0432\u043D\u043E\u0441\u0442\u044C \u0438 \u0434\u043E\u0431\u0438\u0442\u044C\u0441\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u0432\u0430\u0448\u0443 \u0436\u0435\u0440\u0442\u0432\u0443 \u043F\u043E \u0437\u0430\u043A\u043E\u043D\u043D\u044B\u043C \u043E\u0441\u043D\u043E\u0432\u0430\u043D\u0438\u044F\u043C \u0443\u043F\u0435\u043A\u043B\u0438 \u0437\u0430 \u0440\u0435\u0448\u0451\u0442\u043A\u0443 \u0421\u0430\u043C\u043E\u0435 \u0433\u043B\u0430\u0432\u043D\u043E\u0435 \u0447\u0442\u043E\u0431\u044B \u0432 \u043A\u0440\u0438\u043C\u0438\u043D\u0430\u043B\u044C\u043D\u043E\u0439 \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0446\u0435\u043B\u0438 \u043E\u0441\u0442\u0430\u043B\u0441\u044F \u0441\u043B\u0435\u0434. \u041D\u043E \u0432 \u0442\u043E \u0436\u0435 \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u0442\u043E \u043F\u0440\u0438\u0439\u0442\u0438 \u0438 \u0432\u043F\u0438\u0441\u0430\u0442\u044C \u0446\u0435\u043B\u0438 \u0441\u0440\u043E\u043A \u0432 \u043A\u043E\u043D\u0441\u043E\u043B\u0438 - \u043D\u0435 \u0440\u0430\u0431\u043E\u0447\u0438\u0439 \u043C\u0435\u0442\u043E\u0434. \u0426\u0435\u043B\u044C \u043B\u0435\u0433\u043A\u043E \u043E\u043F\u0440\u0430\u0432\u0434\u0430\u044E\u0442 \u0432 \u0441\u0443\u0434\u0435, \u0447\u0442\u043E \u043D\u0435 \u0443\u0441\u0442\u0440\u043E\u0438\u0442 \u043A\u043B\u0438\u0435\u043D\u0442\u0430. \n \u0423 \u0432\u0430\u0441 \u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u043E \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432, \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0442\u0443\u043F\u043B\u0435\u043D\u0438\u0435 \u043F\u043E\u0434 \u043B\u0438\u0447\u0438\u043D\u043E\u0439 \u0446\u0435\u043B\u0438. \u0413\u043B\u0430\u0432\u043D\u043E\u0435 \u043F\u043E\u0441\u0442\u0430\u0440\u0430\u0439\u0442\u0435\u0441\u044C \u043E\u0431\u043E\u0439\u0442\u0438\u0441\u044C \u0431\u0435\u0437 \u0441\u043B\u0438\u0448- \u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u043F\u043E\u0441\u043B\u0435\u0434\u0441\u0442\u0432\u0438\u0439. \u041B\u0438\u0448\u043D\u044F\u044F \u0434\u044B\u0440\u0430 \u0432 \u043E\u0431\u0448\u0438\u0432\u043A\u0435 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0438\u043B\u0438 \u0442\u0440\u0443\u043F\u044B - \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u044E\u0442 \u0448\u0430\u043D\u0441\u044B \u043F\u0440\u043E\u0432\u0430\u043B\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u043F\u043B\u0430\u043D\u0430.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"spider_charge",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041F\u043E\u0434\u0440\u044B\u0432 \u043E\u0442\u0434\u0435\u043B\u0430",content:"\u0421\u0442\u0430\u0440\u044B\u0435 \u0434\u043E\u0431\u0440\u044B\u0435 \u0431\u043E\u043C\u0431\u044B. \u042D\u0444\u0444\u0435\u043A- \u0442\u0438\u0432\u043D\u044B\u0435 \u043E\u0440\u0443\u0434\u0438\u044F \u0443\u043D\u0438\u0447\u0442\u043E\u0436\u0435\u043D\u0438\u044F \u0432\u0441\u0435\u0433\u043E \u0436\u0438\u0432\u043E\u0433\u043E \u0438 \u043D\u0435\u0436\u0438\u0432\u043E\u0433\u043E \u0432 \u0431\u043E\u043B\u044C\u0448\u043E\u043C \u0440\u0430\u0434\u0438\u0443\u0441\u0435. \u041A\u043E\u0433\u0434\u0430 \u043A\u043B\u0438\u0435\u043D\u0442\u044B \u043F\u0440\u043E\u0441\u044F\u0442 \u043F\u043E\u0434\u043E\u0440\u0432\u0430\u0442\u044C \u043E\u0431\u044C\u0435\u043A\u0442, \u043E\u043D\u0438 \u0447\u0430\u0441\u0442\u043E \u043D\u0435 \u0437\u043D\u0430\u044E\u0442 \u043D\u0430\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0434\u043E\u0440\u043E\u0433\u043E \u0441\u0442\u043E\u0438\u0442 \u0442\u0430\u043A\u0430\u044F \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044F. \u041D\u043E \u0440\u0435\u0434\u043A\u043E \u0433\u043E\u0442\u043E\u0432\u044B \u0441\u0434\u0430\u0442\u044C\u0441\u044F. \u041A\u0430\u043A \u0440\u0430\u0437 \u043F\u043E\u044D\u0442\u043E\u043C\u0443 \u043C\u043D\u043E\u0433\u0438\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u043D\u044B \u043D\u0430 \u043F\u043E\u0434\u0440\u044B\u0432 \u043E\u0434\u043D\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0438\u043B\u0438 \u043E\u0442\u0434\u0435\u043B\u0430. \n\u0411\u0443\u0434\u044C\u0442\u0435 \u0433\u043E\u0442\u043E\u0432\u044B \u043A \u0442\u043E\u043C\u0443, \u0447\u0442\u043E \u043F\u043E\u0441\u043B\u0435 \u0432\u0437\u0440\u044B\u0432\u0430 \u043D\u0430 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u0435\u0441\u0442\u0438\u0441\u044C \u043E\u0445\u043E\u0442\u0430. \n \u041D\u0430\u0448\u0438 \u0431\u043E\u043C\u0431\u044B \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u043E \u0438\u0437\u0433\u043E\u0442\u043E\u0432\u043B\u0435\u043D\u044B \u0441 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0438\u0442\u0435\u043B\u044F\u043C\u0438. \u041D\u0438\u043A\u0442\u043E \u043A\u0440\u043E\u043C\u0435 \u0432\u0430\u0441 \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u0442 \u0438\u0445 \u043F\u043E\u0434\u043E\u0440\u0432\u0430\u0442\u044C \u0438 \u0434\u0430\u0436\u0435 \u0432\u044B \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0445 \u043B\u0438\u0448\u044C \u0432 \u0437\u043E\u043D\u0435 \u0437\u0430\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0439 \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C. \u0421\u043E\u0432\u0435\u0442\u0443\u0435\u043C \u0441\u0440\u0430\u0437\u0443 \u0431\u0435\u0436\u0430\u0442\u044C \u043F\u043E\u0434\u0430\u043B\u044C\u0448\u0435 \u043F\u043E\u0441\u043B\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438. \u0425\u043E\u0442\u044F \u044D\u0442\u043E \u0438 \u0442\u0430\u043A \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0434\u043B\u044F \u0432\u0430\u0441 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u043E.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"BSM",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0410\u043D\u0430\u043B\u0438\u0437 \u043A\u0440\u043E\u0432\u0438",content:'"\u0417\u043D\u0430\u0439 \u0441\u0432\u043E\u0435\u0433\u043E \u0432\u0440\u0430\u0433\u0430" - \u043F\u0440\u043E\u0441\u0442\u0430\u044F \u0438\u0441\u0442\u0438\u043D\u0430. \n\u0417\u0430 \u0433\u043E\u0434\u044B \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u043D\u0438\u044F \u043A\u043B\u0430\u043D\u0430 \u043C\u044B \u0438\u0437\u0443\u0447\u0438\u043B\u0438 \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0440\u0430\u0437\u043D\u044B\u0445 \u043E\u043F\u0430\u0441\u043D\u044B\u0445 \u0442\u0432\u0430\u0440\u0435\u0439. \u0418 \u0434\u043E \u0441\u0438\u0445 \u043F\u043E\u0440 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u0435\u043C \u0438\u0437\u0443\u0447\u0435\u043D\u0438\u0435 \u043D\u0435\u043A\u043E- \u0442\u043E\u0440\u044B\u0445. \u0410 \u0447\u0442\u043E\u0431\u044B \u0431\u044B\u043B\u043E, \u0447\u0442\u043E \u0438\u0437\u0443\u0447\u0430\u0442\u044C, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u044B\u0432\u0430\u0442\u044C \u043E\u0431\u0440\u0430\u0437\u0446\u044B. \u041A\u0440\u043E\u0432\u044C \u043E\u0434\u0438\u043D \u0438\u0437 \u0441\u0430\u043C\u044B\u0445 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u044B\u0445 \u043F\u0440\u0438\u043C\u0435\u0440\u043E\u0432 \u0442\u043E\u0433\u043E, \u0447\u0442\u043E \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043F\u043E\u043B\u0435\u0437\u043D\u043E \u043D\u0430\u0448\u0438\u043C \u0443\u0447\u0451\u043D\u044B\u043C. \n\u0418\u043C\u0435\u044E\u0449\u0430\u044F\u0441\u044F \u0443 \u0432\u0430\u0441 \u043D\u0430 \u0431\u0430\u0437\u0435 \u0446\u0435\u043D\u0442\u0440\u0438\u0444\u0443\u0433\u0430 \u0434\u043B\u044F \u043A\u0440\u043E\u0432\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u0430 \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E \u043F\u0440\u043E\u0430\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0431\u0440\u0430\u0437\u0446\u044B \u043D\u0435 \u043F\u043E\u0432\u0440\u0435\u0434\u0438\u0432 \u0438\u0445 \u0438 \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043D\u0430\u043C. \n\u0414\u043B\u044F \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E\u0433\u043E \u0430\u043D\u0430\u043B\u0438\u0437\u0430 \u043A\u0440\u043E\u0432\u0438 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0441\u043E\u0431\u0440\u0430\u0442\u044C 3 \u0443\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0445 \u043E\u0431\u0440\u0430\u0437\u0446\u0430. \u0418 \u043F\u043E\u043C\u0435- \u0441\u0442\u0438\u0442\u044C \u0438\u0445 \u0432 \u043F\u0440\u043E\u0431\u0438\u0440\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u043E\u0442\u043E\u043C \u043D\u0430\u0434\u043E \u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C \u0432 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E. \n\u041F\u0440\u0438\u043C\u0435\u0441\u0438 \u043F\u0440\u0438\u043D\u044F\u0442\u044B \u043D\u0435 \u0431\u0443\u0434\u0443\u0442!',position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"changeling",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0413\u0435\u043D\u043E\u043A\u0440\u0430\u0434\u044B",content:"\u0427\u0435\u0440\u0432\u0438 \u0432\u043E\u0437\u043E\u043C\u043D\u0438\u0432\u0448\u0438\u0435 \u0441\u0435\u0431\u044F \u0432\u044B\u0448\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0432\u0438\u0434\u043E\u0432 \u043F\u043E\u0442\u043E\u043C\u0443, \u0447\u0442\u043E \u0443\u043C\u0435\u044E\u0442 \u043A\u0440\u0430\u0441\u0442\u044C \u0433\u0435\u043D\u044B \u0438 \u0438\u043C\u0438\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0445. \n\u0421\u0432\u043E\u0438\u043C \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u043D\u0438\u0435\u043C \u043E\u043D\u0438 \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442 \u0433\u043E\u0440\u0430\u0437\u0434\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u043F\u0440\u043E\u0431- \u043B\u0435\u043C, \u0447\u0435\u043C \u043F\u043E\u043B\u044C\u0437\u044B. \n\u042D\u0442\u0438 \u0442\u0432\u0430\u0440\u0438 \u0441\u0442\u043E\u043B\u044C \u0436\u0435 \u0445\u0438\u0442\u0440\u044B \u0441\u043A\u043E\u043B\u044C \u0438 \u0441\u043A\u0440\u044B\u0442\u043D\u044B. \u041D\u0435 \u0434\u043E\u0433\u043E\u0432\u0430\u0440\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0441 \u043D\u0438\u043C\u0438 \u043D\u0438 \u043E \u0447\u0451\u043C! \n\u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E \u0434\u0430\u0436\u0435 \u043D\u0430\u043C \u0441\u043B\u043E\u0436\u043D\u043E \u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u0442\u044C \u0433\u0435\u043D\u043E\u043A\u0440\u0430\u0434\u0430 \u043D\u0435 \u0437\u0430\u043F\u0438\u0445- \u043D\u0443\u0432 \u0435\u0433\u043E \u0432 \u043B\u0430\u0431\u043E\u0440\u0430\u0442\u043E\u0440\u0438\u044E \u0438 \u043D\u0435 \u043F\u0440\u043E\u0432\u0435\u0434\u044F \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0442\u0435\u0441\u0442\u043E\u0432. \u041D\u043E \u043E\u043D\u0438 \u0438\u043D\u043E\u0433\u0434\u0430 \u0432\u044B\u0434\u0430\u044E\u0442 \u0441\u0435\u0431\u044F \u0441\u0432\u043E\u0438\u043C\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u043C\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F\u043C\u0438. \u0418 \u0442\u0430\u043A \u0436\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E \u043B\u043E\u0436\u0430\u0442\u0441\u044F \u043D\u0430 \u0434\u043D\u043E \u0432 \u0441\u043B\u0443\u0447\u0430\u0435 \u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438. \u0427\u0442\u043E\u0431\u044B \u0431\u044B\u043B\u043E \u043B\u0435\u0433\u0447\u0435 \u0438\u0445 \u043F\u043E\u0439\u043C\u0430\u0442\u044C \u0434\u0430\u0439\u0442\u0435 \u0438\u043C \u043F\u043E\u043F\u043B\u044F\u0441\u0430\u0442\u044C, \u043F\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043C \u0432\u044B\u0445\u043E\u0434\u0438\u0442\u044C \u043D\u0430 \u0441\u0446\u0435\u043D\u0443. \u0418 \u0432\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0441\u043B\u0443\u0448\u0430\u0439\u0442\u0435 \u0440\u0430\u0434\u0438\u043E \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0435. \u0412\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u043C\u0435\u0441\u0442\u043D\u0430\u044F \u043E\u0445\u0440\u0430\u043D\u0430 \u0443\u0436\u0435 \u043E\u0445\u043E\u0442\u0438\u0442\u0441\u044F \u0437\u0430 \u043E\u0434\u043D\u0438\u043C \u0438\u0437 \u043D\u0438\u0445. \n\u041D\u0438\u043A\u0442\u043E \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u043E\u0442\u0438\u0432 \u0435\u0441\u043B\u0438 \u0432\u044B \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u043E \u043F\u043E\u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u043C \u0441 \u044D\u0442\u0438\u043C...",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"vampire",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0430\u043C\u043F\u0438\u0440\u044B",content:"\u0414\u0435\u0448\u0451\u0432\u044B\u0435 \u0440\u043E\u043C\u0430\u043D\u044B, \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0438 \u0441\u043A\u0430\u0437\u043A\u0438 \u043F\u0440\u043E\u0448\u043B\u043E\u0433\u043E \u043E\u043F\u0438\u0441\u044B\u0432\u0430\u043B\u0438 \u0432\u0430\u043C\u043F\u0438\u0440\u043E\u0432 \u043A\u0430\u043A \u0445\u0438\u0449\u043D\u0438\u043A\u043E\u0432 \u043F\u044C\u044E\u0449\u0438\u0445 \u043A\u0440\u043E\u0432\u044C \u043B\u044E\u0434\u0435\u0439 \u0432 \u043D\u043E\u0447\u0438 \u0438 \u043E\u0431\u043B\u0430\u0434\u0430\u044E- \u0449\u0438\u0445 \u043C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u043C\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E- \u0441\u0442\u044F\u043C\u0438. \u0418\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u043C\u0435\u043D\u0435\u0435 \u0440\u043E\u043C\u0430\u043D\u0442\u0438\u0447\u043D\u044B... \n\u041C\u044B \u043F\u043E\u043A\u0430 \u043D\u0435 \u0437\u043D\u0430\u0435\u043C, \u0447\u0442\u043E \u0432\u044B\u0437\u044B\u0432\u0430\u0435\u0442 \u0438\u0445 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435, \u043D\u043E \u043D\u0430\u0448\u0438 \u043F\u043E\u0434\u043E\u0437\u0440\u0435- \u043D\u0438\u044F \u043F\u0430\u0434\u0430\u044E\u0442 \u043D\u0430 \u0432\u043B\u0438\u044F\u043D\u0438\u0435 \u043D\u0435\u043A\u043E\u0439 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0441\u0443\u0449\u043D\u043E\u0441\u0442\u0438. \u0422\u0430\u043A \u0438\u043B\u0438 \u0438\u043D\u0430\u0447\u0435, \u0434\u043E \u0442\u0435\u0445 \u043F\u043E\u0440 \u043F\u043E\u043A\u0430 \u0432\u0430\u043C\u043F\u0438\u0440 \u043D\u0435 \u043C\u0435\u0448\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438 \u0438\u043B\u0438 \u0443\u0433\u0440\u043E\u0436\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0439 \u0436\u0438\u0437\u043D\u0438. \u0412\u044B \u0432\u043E\u043B\u044C\u043D\u044B \u0435\u0433\u043E \u0438\u0433\u043D\u043E\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C. \n\u0412\u0430\u043C\u043F\u0438\u0440\u044B \u043E\u0447\u0435\u043D\u044C \u043E\u043F\u0430\u0441\u043D\u044B \u0432 \u043F\u0440\u044F\u043C\u043E\u043C \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u0438, \u043E\u043D\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u044B \u043E\u0433\u043B\u0443\u0448\u0430\u0442\u044C \u0432\u0437\u0433\u043B\u044F\u0434\u043E\u043C \u0438 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0430\u0442\u044C \u0440\u0430\u0437\u0443\u043C \u0441\u0432\u043E\u0438\u0445 \u0436\u0435\u0440\u0442\u0432. \u041D\u0435 \u0434\u043E\u0432\u0435\u0440\u044F\u0439\u0442\u0435 \u0438\u043C, \u043D\u043E \u0442\u0430\u043A \u0436\u0435 \u043F\u043E\u043C\u043D\u0438\u0442\u0435 - \u043E\u043D\u0438 \u043B\u0438\u0448\u044C \u0436\u0435\u0440\u0442\u0432\u044B \u0441\u0442\u0435\u0447\u0435\u043D\u0438\u044F \u043E\u0431\u0441\u0442\u043E\u044F\u0442\u0435\u043B\u044C\u0441\u0442\u0432. \u0418 \u044D\u0442\u043E \u043C\u043E\u0436\u043D\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0432 \u0441\u0432\u043E\u044E \u043F\u043E\u043B\u044C\u0437\u0443...",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"syndicate",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442",content:"\u041D\u0430\u0448\u0438 \u0445\u043E\u0440\u043E\u0448\u0438\u0435 \u0437\u043D\u0430\u043A\u043E\u043C\u044B\u0435. \u0421\u0431\u043E\u0440\u0438\u0449\u0435 \u043C\u043E\u0433\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0445 \u0444\u0438\u0433\u0443\u0440 \u0432 \u043F\u043E\u0434\u043F\u043E\u043B\u044C\u043D\u043E\u043C \u043C\u0438\u0440\u0435 \u0441 \u0437\u0430\u043A\u0440\u044B\u0442\u043E\u0439 \u0441\u0438\u0441\u0442\u0435\u043C\u043E\u0439 \u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0441\u0442\u0432\u0430 \u043E \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u043C\u0430\u043B\u043E... \n\u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442 \u043F\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 \u0438 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442 \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0437\u0430\u043A\u0430\u0437\u043E\u0432. \u041D\u043E \u0441\u0430\u043C\u043E\u0439 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u043E\u0439, \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u043A\u0442\u043E \u043A\u0430\u043A \u0441\u043B\u0435\u0434\u0443\u0435\u0442 \u0438\u0445 \u0438\u0437\u0443\u0447\u0438\u0442, \u0447\u0435\u0440\u0442\u043E\u0439 \u044D\u0442\u043E\u0439 \u0433\u0440\u0443\u043F\u043F\u044B - \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043E\u0433\u0440\u043E\u043C\u043D\u0430\u044F \u043D\u0435\u043D\u0430\u0432\u0438\u0441\u0442\u044C \u043A \u041D\u0422. \n\u0412 \u0441\u043B\u0443\u0447\u0430\u0435 \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u044F \u0441 \u0430\u0433\u0435\u043D\u0442\u0430\u043C\u0438 \u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442\u0430 \u043F\u043E\u043B\u0438\u0442\u0438\u043A\u0430 \u043D\u0430\u0448\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043F\u0440\u043E\u0441\u0442\u0430. \n\u0415\u0441\u043B\u0438 \u043E\u043D\u0438 \u043D\u0435 \u043C\u0435\u0448\u0430\u044E\u0442 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044E \u0437\u0430\u0434\u0430\u043D\u0438\u044F. \u041C\u044B \u043D\u0435 \u043C\u0435\u0448\u0430\u0435\u043C \u0438\u043C.",position:"bottom-start"})]})]})})})},c=function(l,C){var b=(0,a.useBackend)(C),v=b.act,h=b.data,g=h.actionsIcon,N=h.blocked_TGUI_rows,x=[{blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"}];return(0,e.createComponentVNode)(2,t.Section,{title:"\u041C\u043E\u0434\u0443\u043B\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0423\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u0443\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430! \u0414\u0435\u043B\u044F\u0442\u0441\u044F \u043D\u0430 3 \u0440\u0430\u0437\u043D\u044B\u0445 \u043F\u043E\u0434\u0445\u043E\u0434\u0430 \u0434\u043B\u044F \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0418\u0437-\u0437\u0430 \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u0439 \u043F\u043E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044E \u0440\u0430\u0431\u043E\u0442\u043E\u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430, \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0435\u043D\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043C\u043E\u0434\u0443\u043B\u044F, \u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0435\u0442 \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0435\u043D\u0438\u0435 \u043C\u043E\u0434\u0443\u043B\u0435\u0439 \u043E\u0434\u043D\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F \u0438\u0437 \u0441\u043E\u0441\u0435\u0434\u043D\u0438\u0445 \u0441\u0442\u043E\u043B\u0431\u0446\u043E\u0432",tooltipPosition:"bottom"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",alignContent:"center",ml:1.5,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"33%",shrink:1,children:[(0,e.createComponentVNode)(2,t.Section,{width:"100%",title:"\u041F\u0440\u0438\u0437\u0440\u0430\u043A",ml:"0px",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0421\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0441\u0440\u0435\u0434\u0438 \u0432\u0440\u0430\u0433\u043E\u0432, \u043D\u0430\u043F\u0430\u0434\u0430\u0439\u0442\u0435 \u0438\u0437 \u0442\u0435\u043D\u0438 \u0438 \u0431\u0443\u0434\u044C\u0442\u0435 \u043D\u0435\u0437\u0440\u0438\u043C\u043E\u0439 \u0443\u0433\u0440\u043E\u0437\u043E\u0439, \u0432\u0441\u0451 \u0434\u043B\u044F \u0442\u043E\u0433\u043E \u0447\u0442\u043E\u0431\u044B \u043E \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438 \u043D\u0438\u043A\u0442\u043E \u043D\u0435 \u0443\u0437\u043D\u0430\u043B! \u0411\u0443\u0434\u044C\u0442\u0435 \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u044B \u043A\u0430\u043A \u043F\u0440\u0438\u0437\u0440\u0430\u043A!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(53, 94, 163, 0.8)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:N[0]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[0],onClick:function(){function B(){return v("give_ability",{style:"smoke",row:"1"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"smoke",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0414\u042B\u041C\u041E\u0412\u0410\u042F \u0417\u0410\u0412\u0415\u0421\u0410",content:"\u0412\u044B \u0441\u043E\u0437\u0434\u0430\u0451\u0442\u0435 \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u043E\u0431\u043B\u0430\u043A\u043E \u0434\u044B\u043C\u0430 \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u043F\u0443\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0438\u0445 \u0432\u0440\u0430\u0433\u043E\u0432. \n\u042D\u0442\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u043E\u0442\u043B\u0438\u0447\u043D\u043E \u0441\u043E\u0447\u0435\u0442\u0430\u0435\u0442\u0441\u044F \u0441 \u0432\u0430\u0448\u0438\u043C \u0432\u0438\u0437\u043E\u0440\u043E\u043C \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u0442\u0435\u0440\u043C\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0441\u043A\u0430\u043D\u0435\u0440\u0430. \n\u0410 \u0442\u0430\u043A \u0436\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u043F\u0440\u0438\u043C\u0435\u043D\u044F\u0435\u0442\u0441\u044F \u043C\u043D\u043E\u0433\u0438\u043C\u0438 \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u043C\u043E\u0434\u0443\u043B\u044F\u043C\u0438 \u0435\u0441\u043B\u0438 \u0432\u044B \u0442\u043E\u0433\u043E \u043F\u043E\u0436\u0435\u043B\u0430\u0435\u0442\u0435. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 250 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 3 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[1]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[1],onClick:function(){function B(){return v("give_ability",{style:"ninja_cloak",row:"2"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"ninja_cloak",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041D\u0415\u0412\u0418\u0414\u0418\u041C\u041E\u0421\u0422\u042C",content:"\u0412\u044B \u0444\u043E\u0440\u043C\u0438\u0440\u0443\u0435\u0442\u0435 \u0432\u043E\u043A\u0440\u0443\u0433 \u0441\u0435\u0431\u044F \u043C\u0430\u0441\u043A\u0438\u0440\u043E\u0432\u043E\u0447\u043D\u043E\u0435 \u043F\u043E\u043B\u0435 \u0441\u043A\u0440\u044B\u0432\u0430- \u044E\u0449\u0435\u0435 \u0432\u0430\u0441 \u0438\u0437 \u0432\u0438\u0434\u0443 \u0438 \u043F\u0440\u0438\u0433\u043B\u0443\u0448\u0430- \u044E\u0449\u0435\u0435 \u0432\u0430\u0448\u0438 \u0448\u0430\u0433\u0438. \n\u041F\u043E\u043B\u0435 \u0434\u043E\u0432\u043E\u043B\u044C\u043D\u043E \u0445\u0440\u0443\u043F\u043A\u043E\u0435 \u0438 \u043C\u043E\u0436\u0435\u0442 \u0440\u0430\u0437\u043B\u0435\u0442\u0435\u0442\u044C\u0441\u044F \u043E\u0442 \u043B\u044E\u0431\u043E\u0433\u043E \u0440\u0435\u0437\u043A\u043E\u0433\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0438\u043B\u0438 \u0443\u0434\u0430\u0440\u0430. \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u043F\u043E\u043B\u044F \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 2 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \u0425\u043E\u0442\u044C \u043F\u043E\u043B\u0435 \u0438 \u0441\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0441 \u043F\u043E\u043B\u043D\u043E\u0441\u0442\u044C\u044E, \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u0439 \u0443\u0431\u0438\u0439\u0446\u0430 \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0445\u043B\u0430\u0434\u043D\u043E\u043A\u0440\u043E\u0432\u0435\u043D. \n\u041D\u0435 \u0441\u0442\u043E\u0438\u0442 \u043D\u0435\u0434\u043E\u043E\u0446\u0435\u043D\u0438\u0432\u0430\u0442\u044C \u0432\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0434\u0440\u0443\u0433\u0438\u0445 \u043B\u044E\u0434\u0435\u0439. \n\u0410\u043A\u0442\u0438\u0432\u043D\u0430\u044F \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C \u0441\u043B\u0430\u0431\u043E \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0439 \u0440\u0430\u0441\u0445\u043E\u0434 \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 15 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[2]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[2],onClick:function(){function B(){return v("give_ability",{style:"ninja_clones",row:"3"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"ninja_clones",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041D\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041A\u0418\u0415 \u041A\u041B\u041E\u041D\u042B",content:"\u0421\u043E\u0437\u0434\u0430\u0451\u0442 \u0434\u0432\u0443\u0445 \u043A\u043B\u043E\u043D\u043E\u0432 \u0433\u043E\u0442\u043E\u0432\u044B\u0445 \u043F\u043E\u043C\u043E\u0447\u044C \u0432 \u0431\u0438\u0442\u0432\u0435 \u0438 \u0434\u0435\u0437\u043E\u0440\u0438\u0435\u043D\u0442\u0438- \u0440\u043E\u0432\u0430\u0442\u044C \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u0430 \n\u0422\u0430\u043A \u0436\u0435 \u0432 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0435 \u0441\u043C\u0435\u0449\u0430\u0435\u0442 \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0438\u0445 \u043A\u043B\u043E\u043D\u043E\u0432 \u0432 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u043E\u043C \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0438 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u043F\u0430\u0440\u044B \u043C\u0435\u0442\u0440\u043E\u0432. \n\u041F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435\u0441\u044C \u043E\u0441\u0442\u043E\u0440\u043E\u0436\u043D\u043E. \u0421\u043B\u0443\u0447\u0430\u0439\u043D\u043E\u0435 \u0441\u043C\u0435\u0449\u0435\u043D\u0438\u0435 \u043C\u043E\u0436\u0435\u0442 \u0437\u0430\u043F\u0435\u0440\u0435\u0442\u044C \u0432\u0430\u0441 \u0437\u0430 4-\u043C\u044F \u0441\u0442\u0435\u043D\u0430\u043C\u0438. \u0411\u0443\u0434\u044C\u0442\u0435 \u043A \u044D\u0442\u043E\u043C\u0443 \u0433\u043E\u0442\u043E\u0432\u044B. \n\u041A\u043B\u043E\u043D\u044B \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0442 \u043F\u0440\u0438\u043C\u0435\u0440\u043D\u043E 20 \u0441\u0435\u043A\u0443\u043D\u0434. \u041A\u043B\u043E\u043D\u044B \u0438\u043C\u0435\u044E\u0442 \u0448\u0430\u043D\u0441 \u0440\u0430\u0437\u043C\u043D\u043E\u0436\u0438\u0442\u0441\u044F \u0430\u0442\u0430\u043A\u0443\u044F \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u043E\u0432. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 4000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 8 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[3]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[3],onClick:function(){function B(){return v("give_ability",{style:"chameleon",row:"4"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"chameleon",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0425\u0410\u041C\u0415\u041B\u0415\u041E\u041D",content:"\u0412\u044B \u0444\u043E\u0440\u043C\u0438\u0440\u0443\u0435\u0442\u0435 \u0432\u043E\u043A\u0440\u0443\u0433 \u0441\u0435\u0431\u044F \u0433\u043E\u043B\u043E\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u043E\u043B\u0435 \u0438\u0441\u043A\u0430\u0436\u0430\u044E\u0449\u0435\u0435 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E\u0435 \u0438 \u0441\u043B\u0443\u0445\u043E\u0432\u043E\u0435 \u0432\u043E\u0441\u043F\u0440\u0438\u044F\u0442\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432. \n\u0412\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 \u0432\u0438\u0434\u0435\u0442\u044C \u0438 \u0441\u043B\u044B\u0448\u0430\u0442\u044C \u043A\u0430\u043A \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430 \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u0432\u044B \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442\u0435 \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u043C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E\u043C. \n\u042D\u0442\u043E \u0434\u0430\u0451\u0442 \u0432\u0430\u043C \u043E\u0433\u0440\u043E\u043C\u043D\u044B\u0439 \u043F\u0440\u043E\u0441\u0442\u043E\u0440 \u043F\u043E \u0432\u043D\u0435\u0434\u0440\u0435\u043D\u0438\u044E \u0438 \u0438\u043C\u0438\u0442\u0430\u0446\u0438\u0438 \u043B\u044E\u0431\u043E\u0433\u043E \u0447\u043B\u0435\u043D\u0430 \u044D\u043A\u0438\u043F\u0430\u0436\u0430. \n\u041F\u043E\u043B\u0435 \u0434\u043E\u0432\u043E\u043B\u044C\u043D\u043E \u0445\u0440\u0443\u043F\u043A\u043E\u0435 \u0438 \u043C\u043E\u0436\u0435\u0442 \u0440\u0430\u0437\u043B\u0435\u0442\u0435\u0442\u044C\u0441\u044F \u043E\u0442 \u043B\u044E\u0431\u043E\u0433\u043E \u0440\u0435\u0437\u043A\u043E\u0433\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0438\u043B\u0438 \u0443\u0434\u0430\u0440\u0430. \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u043F\u043E\u043B\u044F \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 2 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \n\u0410\u043A\u0442\u0438\u0432\u043D\u044B\u0439 \u0445\u0430\u043C\u0435\u043B\u0435\u043E\u043D \u0441\u043B\u0430\u0431\u043E \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0439 \u0440\u0430\u0441\u0445\u043E\u0434 \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: \u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[4]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[4],onClick:function(){function B(){return v("give_ability",{style:"ninja_spirit_form",row:"5"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"ninja_spirit_form",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0424\u041E\u0420\u041C\u0410 \u0414\u0423\u0425\u0410",content:"\u0412\u044B \u0432\u043E\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442\u0435 \u043D\u0430 \u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u0442\u0435\u043B\u0430 \u043F\u043E\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043E\u043C \u044D\u0442\u043E\u0439 \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u043E\u0439 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0438. \n\u0414\u0435\u043B\u0430\u044F \u0432\u0430\u0448\u0435 \u0442\u0435\u043B\u043E \u043D\u0435\u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u044B\u043C \u044D\u0442\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0434\u0430\u0440\u0443\u0435\u0442 \u0432\u0430\u043C \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u043F\u0440\u043E\u0445\u043E\u0434\u0438\u0442\u044C \u0441\u043A\u0432\u043E\u0437\u044C \u0441\u0442\u0435\u043D\u044B. \n\u042D\u0442\u0430 \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u044F \u043D\u0435 \u0441\u0434\u0435\u043B\u0430\u0435\u0442 \u0432\u0430\u0441 \u043D\u0435\u0443\u044F\u0437\u0432\u0438\u043C\u044B\u043C \u0434\u043B\u044F \u043F\u0443\u043B\u044C \u0438 \u043B\u0435\u0437\u0432\u0438\u0439! \n\u041D\u043E \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u0441\u043D\u044F\u0442\u044C \u0441 \u0441\u0435\u0431\u044F \u043D\u0430\u0440\u0443\u0447\u043D\u0438\u043A\u0438, \u0431\u043E\u043B\u044B \u0438 \u0434\u0430\u0436\u0435 \u0432\u044B\u043B\u0435\u0437\u0442\u0438 \u0438\u0437 \u0433\u0440\u043E\u0431\u0430 \u0438\u043B\u0438 \u044F\u0449\u0438\u043A\u0430, \u043E\u043A\u0430\u0436\u0438\u0441\u044C \u0432\u044B \u0442\u0430\u043C \u0437\u0430\u043F\u0435\u0440\u0442\u044B... \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u043C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u0430. \n\u0410\u043A\u0442\u0438\u0432\u043D\u0430\u044F \u0444\u043E\u0440\u043C\u0430 \u0434\u0443\u0445\u0430 \u0437\u043D\u0430\u0447\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0439 \u0440\u0430\u0441\u0445\u043E\u0434 \u044D\u043D\u0435\u0440\u0433\u0438\u0438! \u041F\u043E\u0442\u0440\u0435\u0431\u043B\u0435\u043D\u0438\u0435 \u043E\u0434\u0438\u043D\u0430\u043A\u043E\u0432\u043E \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0432\u043D\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u043E\u0431\u044A\u0451\u043C\u0430 \u0431\u0430\u0442\u0430\u0440\u0435\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 25 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"right"})]})]})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"33%",shrink:1,children:[(0,e.createComponentVNode)(2,t.Section,{ml:"0px",width:"100%",title:"\u0417\u043C\u0435\u0439",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0423\u0434\u0438\u0432\u043B\u044F\u0439\u0442\u0435! \u0422\u0440\u044E\u043A\u0438, \u043B\u043E\u0432\u0443\u0448\u043A\u0438, \u0449\u0438\u0442\u044B. \u041F\u043E\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043C, \u0447\u0442\u043E \u0442\u0430\u043A\u043E\u0435 \u0431\u043E\u0439 \u0441 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u043C \u0443\u0431\u0438\u0439\u0446\u0435\u0439. \u0418\u0437\u0432\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0438 \u0438\u0437\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u043D\u0430\u0445\u043E\u0434\u044F \u0432\u044B\u0445\u043E\u0434 \u0438\u0437 \u043B\u044E\u0431\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438. \u0412\u0440\u0430\u0433\u0438 \u0432\u0441\u0435\u0433\u043E \u043B\u0438\u0448\u044C \u0433\u0440\u044B\u0437\u0443\u043D\u044B, \u0447\u044C\u0451 \u043B\u043E\u0433\u043E\u0432\u043E \u043D\u0430\u0432\u0435\u0441\u0442\u0438\u043B \u0437\u043C\u0435\u0439!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(0, 174, 208, 0.15)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:N[0]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[0],onClick:function(){function B(){return v("give_ability",{style:"kunai",row:"1"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"kunai",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0421\u0422\u0420\u041E\u0415\u041D\u041D\u041E\u0415 \u0414\u0416\u041E\u0425\u042C\u0401",content:"\u0422\u0430\u043A \u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u043A\u0430\u043A \u0428\u044D\u043D\u0431\u044F\u043E \u0438\u043B\u0438 \u043F\u0440\u043E\u0441\u0442\u043E \u041A\u0438\u043D\u0436\u0430\u043B \u043D\u0430 \u0446\u0435\u043F\u0438. \n\u0418\u043D\u0442\u0435\u0433\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0435 \u0432 \u043A\u043E\u0441\u0442\u044E\u043C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0437\u0430\u043F\u0443\u0441\u043A\u0430 \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u043F\u043E\u0439\u043C\u0430\u0442\u044C \u0438 \u043F\u0440\u0438\u0442\u044F\u043D\u0443\u0442\u044C \u043A \u0441\u0435\u0431\u0435 \u0436\u0435\u0440\u0442\u0432\u0443 \u0437\u0430 \u0434\u043E\u043B\u0438 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \n\u041E\u0440\u0443\u0436\u0438\u0435 \u043D\u0435 \u043E\u0447\u0435\u043D\u044C \u0433\u043E\u0434\u0438\u0442\u0441\u044F \u0434\u043B\u044F \u0434\u043E\u043B\u0433\u0438\u0445 \u0431\u043E\u0451\u0432, \u043D\u043E \u043E\u0442\u043B\u0438\u0447\u043D\u043E \u043F\u043E\u0434\u0445\u043E\u0434\u0438\u0442 \u0434\u043B\u044F \u0432\u044B\u0442\u044F\u0433\u0438\u0432\u0430\u043D\u0438\u044F \u043E\u0434\u043D\u043E\u0439 \u0436\u0435\u0440\u0442\u0432\u044B - \u043D\u0430 \u0440\u0430\u0441\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u0443\u0434\u0430\u0440\u0430! \n\u0413\u043B\u0430\u0432\u043D\u043E\u0435 \u043D\u0435 \u043F\u0440\u043E\u043C\u0430\u0445\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u0438 \u0441\u0442\u0440\u0435\u043B\u044C\u0431\u0435. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0432\u044B\u0441\u0442\u0440\u0435\u043B\u0430: 500 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 5 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[1]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[1],onClick:function(){function B(){return v("give_ability",{style:"chem_injector",row:"2"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"chem_injector",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0418\u0421\u0426\u0415\u041B\u042F\u042E\u0429\u0418\u0419 \u041A\u041E\u041A\u0422\u0415\u0419\u041B\u042C",content:"\u0412\u0432\u043E\u0434\u0438\u0442 \u0432 \u0432\u0430\u0441 \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u0443\u044E \u043B\u0435\u0447\u0435\u0431\u043D\u0443\u044E \u0441\u043C\u0435\u0441\u044C. \u0421\u043F\u043E\u0441\u043E\u0431\u043D\u0443\u044E \u0437\u0430\u043B\u0435\u0447\u0438\u0442\u044C \u0434\u0430\u0436\u0435 \u0441\u043B\u043E\u043C\u0430\u043D\u043D\u044B\u0435 \u043A\u043E\u0441\u0442\u0438 \u0438 \u043E\u0442\u043E\u0440\u0432\u0430\u043D\u043D\u044B\u0435 \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438. \n\u041F\u0440\u0435\u043F\u0430\u0440\u0430\u0442 \u0432\u044B\u0437\u044B\u0432\u0430\u0435\u0442 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442- \n\u0432\u0435\u043D\u043D\u043E-\u0432\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435 \u043F\u0430\u0440\u0430\u0434\u043E\u043A\u0441\u044B \u0438 \u043E\u0447\u0435\u043D\u044C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E \u0432\u044B\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0438\u0437 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043C\u0430! \n\u041F\u0440\u0438 \u043F\u0435\u0440\u0435\u0434\u043E\u0437\u0438\u0440\u043E\u0432\u043A\u0435 \u043E\u043D\u0438 \u0441\u0442\u0430\u043D\u043E\u0432\u044F\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043E\u043F\u0430\u0441\u043D\u044B \u0434\u043B\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \u041D\u0435 \u0432\u0432\u043E\u0434\u0438\u0442\u0435 \u0431\u043E\u043B\u044C\u0448\u0435 30 \u0435\u0434. \u043F\u0440\u0435\u043F\u0430\u0440\u0430\u0442\u0430 \u0432 \u0432\u0430\u0448 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043C! \n\u0412\u043C\u0435\u0441\u0442\u043E \u0442\u0440\u0430\u0442\u044B \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u0438\u043C\u0435\u0435\u0442 3 \u0437\u0430\u0440\u044F\u0434\u0430. \u0418\u0445 \u043C\u043E\u0436\u043D\u043E \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0432\u0440\u0443\u0447\u043D\u0443\u044E \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0446\u0435\u043B\u044C\u043D\u044B\u0445 \u043A\u0443\u0441\u043A\u043E\u0432 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u043A\u0440\u0438\u0441\u0442\u0430\u043B\u043B\u043E\u0432 \u043F\u043E\u043C\u0435\u0449\u0451\u043D\u043D\u044B\u0445 \u0432 \u043A\u043E\u0441\u0442\u044E\u043C.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[2]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[2],onClick:function(){function B(){return v("give_ability",{style:"emergency_blink",row:"3"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"emergency_blink",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041A\u0421\u0422\u0420\u0415\u041D\u041D\u0410\u042F \u0422\u0415\u041B\u0415\u041F\u041E\u0420\u0422\u0410\u0426\u0418\u042F",content:"\u041F\u0440\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0438 \u043C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u0432 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u0443\u044E \u0437\u043E\u043D\u0443 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u043E\u043A\u043E\u043B\u043E \u0434\u0432\u0443\u0445 \u0434\u0435\u0441\u044F\u0442\u043A\u043E\u0432 \u043C\u0435\u0442\u0440\u043E\u0432. \n\u0414\u043B\u044F \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442\u0441\u044F \u043C\u043E\u0437\u0433\u043E\u0432\u044B\u0435 \u0438\u043C\u043F\u0443\u043B\u044C\u0441\u044B \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \u041F\u043E\u044D\u0442\u043E\u043C\u0443 \u043E\u043F\u044B\u0442\u043D\u044B\u0435 \u0432\u043E\u0438\u043D\u044B \u043A\u043B\u0430\u043D\u0430, \u043C\u043E\u0433\u0443\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0435\u0451 \u0434\u0430\u0436\u0435 \u0432\u043E \u0441\u043D\u0435. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1500 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 3 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[3]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[3],onClick:function(){function B(){return v("give_ability",{style:"caltrop",row:"4"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"caltrop",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041B\u0415\u041A\u0422\u0420\u041E-\u0427\u0415\u0421\u041D\u041E\u041A",content:"\u0427\u0430\u0449\u0435 \u0438\u0445 \u043D\u0430\u0437\u044B\u0432\u0430\u044E\u0442 \u043F\u0440\u043E\u0441\u0442\u043E \u043A\u0430\u043B\u0442\u0440\u043E\u043F\u044B, \u0438\u0437-\u0437\u0430 \u0437\u0430\u043F\u0443\u0442\u044B\u0432\u0430\u044E\u0449\u0438\u0445 \u0430\u0441\u0441\u043E\u0446\u0438\u0430\u0446\u0438\u0439 \u0441 \u0431\u043E\u043B\u0435\u0435 \u0441\u044A\u0435\u0441\u0442\u043D\u044B\u043C \u0447\u0435\u0441\u043D\u043E\u043A\u043E\u043C. \n\u041F\u0440\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0438 \u0440\u0430\u0441\u043A\u0438\u0434\u044B\u0432\u0430\u0435\u0442 \u043F\u043E\u0437\u0430\u0434\u0438 \u0432\u0430\u0441 \u0441\u0434\u0435\u043B\u0430\u043D\u043D\u044B\u0435 \u0438\u0437 \u0441\u043F\u0440\u0435\u0441\u0441\u043E\u0432\u0430\u043D\u043D\u043E\u0439 \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u043B\u043E\u0432\u0443\u0448\u043A\u0438. \n\u041B\u043E\u0432\u0443\u0448\u043A\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0442 \u043F\u0440\u0438\u043C\u0435\u0440\u043D\u043E 10 \u0441\u0435\u043A\u0443\u043D\u0434. \u0422\u0430\u043A \u0436\u0435 \u043E\u043D\u0438 \u043F\u0440\u043E\u043F\u0430\u0434\u0430\u044E\u0442 - \u0435\u0441\u043B\u0438 \u043D\u0430 \u043D\u0438\u0445 \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0442\u044C. \n\u0411\u043E\u043B\u044C \u043E\u0442 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u043E\u0433\u043E \u0448\u0430\u0433\u0430 \u043D\u0430 \u043D\u0438\u0445 \u043D\u0430\u0441\u0442\u0438\u0433\u043D\u0435\u0442 \u0434\u0430\u0436\u0435 \u0440\u043E\u0431\u043E\u0442\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D- \u043D\u044B\u0435 \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438. \n\u0412\u044B \u043D\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043D\u044B \u043E\u0442 \u043D\u0438\u0445. \u041D\u0435 \u043D\u0430\u0441\u0442\u0443\u043F\u0430\u0439\u0442\u0435 \u043D\u0430 \u0441\u0432\u043E\u0438 \u0436\u0435 \u043B\u043E\u0432\u0443\u0448\u043A\u0438! \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1500 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 1 \u0441\u0435\u043A\u0443\u043D\u0434\u0430.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[4]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[4],onClick:function(){function B(){return v("give_ability",{style:"cloning",row:"5"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"cloning",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0422\u041E\u0420\u041E\u0419 \u0428\u0410\u041D\u0421",content:"\u0412 \u043F\u0440\u043E\u0448\u043B\u043E\u043C \u043C\u043D\u043E\u0433\u0438\u0435 \u0443\u0431\u0438\u0439\u0446\u044B \u043F\u0440\u043E\u0432\u0430\u043B\u0438\u0432\u0430\u044F \u0441\u0432\u043E\u0438 \u043C\u0438\u0441\u0441\u0438\u0438 \u0441\u043E\u0432\u0435\u0440\u0448\u0430\u043B\u0438 \u0441\u0430\u043C\u043E\u0443\u0431\u0438\u0439\u0441\u0442\u0432\u0430 \u0438\u043B\u0438 \u043E\u043A\u0430\u0437\u044B\u0432\u0430\u043B\u0438\u0441\u044C \u0432 \u043B\u0430\u043F\u0430\u0445 \u0432\u0440\u0430\u0433\u0430. \n\u0421\u0435\u0439\u0447\u0430\u0441 \u0436\u0435 \u0435\u0441\u0442\u044C \u0434\u043E\u0432\u043E\u043B\u044C\u043D\u043E \u0434\u043E\u0440\u043E\u0433\u0430\u044F \u0430\u043B\u044C\u0442\u0435\u0440\u043D\u0430\u0442\u0438\u0432\u0430. \u041C\u043E\u0449\u043D\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0435 \u0434\u043E\u0441\u0442\u0430\u0442\u044C \u0432\u0430\u0441 \u043F\u0440\u0430\u043A\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441 \u0442\u043E\u0433\u043E \u0441\u0432\u0435\u0442\u0430. \n\u042D\u0442\u0430 \u043C\u0430\u0448\u0438\u043D\u0430 \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0432\u0442\u043E\u0440\u043E\u0439 \u0448\u0430\u043D\u0441, \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0432 \u0432\u0430\u0441 \u043A \u0441\u0435\u0431\u0435 \u0438 \u0438\u0437\u043B\u0435\u0447\u0438\u0432 \u043B\u044E\u0431\u044B\u0435 \u0442\u0440\u0430\u0432\u043C\u044B. \n\u041C\u044B \u0441\u043B\u044B\u0448\u0430\u043B\u0438 \u043F\u0440\u043E \u0441\u043E\u043C\u043D\u0435\u043D\u0438\u044F \u0437\u0430\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0435 \u043D\u0430 \u0438\u0434\u0435\u0435, \u0447\u0442\u043E \u044D\u0442\u043E \u043F\u0440\u043E\u0441\u0442\u043E \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u043A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0447\u043B\u0435\u043D\u043E\u0432 \u043A\u043B\u0430\u043D\u0430. \u041D\u043E \u0443\u0432\u0435\u0440\u044F\u0435\u043C \u0432\u0430\u0441, \u044D\u0442\u043E \u043D\u0435 \u0442\u0430\u043A. \n\u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E \u0438\u0437-\u0437\u0430 \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u0437\u0430\u0442\u0440\u0430\u0442 \u043D\u0430 \u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0438 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044E. \u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u043F\u0430\u0441\u0451\u0442 \u0432\u0430\u0441 \u043B\u0438\u0448\u044C \u043E\u0434\u0438\u043D \u0440\u0430\u0437. \n\u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438, \u043A\u043E\u0433\u0434\u0430 \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u0440\u0442\u0438.",position:"right"})]})]})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"33%",shrink:1,children:[(0,e.createComponentVNode)(2,t.Section,{ml:"0px",width:"100%",title:"\u0421\u0442\u0430\u043B\u044C",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u042F\u0440\u043E\u0441\u0442\u044C \u043D\u0435 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u043E\u0431\u044B\u0447\u043D\u044B\u043C \u043B\u044E\u0434\u044F\u043C. \u0421\u0438\u043B\u0430, \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0438 \u043E\u0440\u0443\u0434\u0438\u044F \u0432\u044B\u0448\u0435 \u0438\u0445 \u043F\u043E\u043D\u0438\u043C\u0430\u043D\u0438\u044F. \u0420\u0430\u0437\u0438\u0442\u0435 \u0438\u0445 \u043A\u0430\u043A \u0445\u0438\u0449\u043D\u0438\u043A \u0447\u0442\u043E \u0440\u0430\u0437\u0438\u0442 \u0441\u0432\u043E\u044E \u0434\u043E\u0431\u044B\u0447\u0443. \u041F\u043E\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043C \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0432\u043A\u0443\u0441 \u0441\u0442\u0430\u043B\u0438!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(80, 20, 20, 1)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:N[0]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[0],onClick:function(){function B(){return v("give_ability",{style:"shuriken",row:"1"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"shuriken",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041D\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041A\u0418\u0415 \u0421\u042E\u0420\u0418\u041A\u0415\u041D\u042B",content:"\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442 \u043F\u0443\u0441\u043A\u043E\u0432\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u043A\u0440\u044B\u0442\u043E\u0435 \u0432 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0430\u0445 \u043A\u043E\u0441\u0442\u044E\u043C\u0430. \n\u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u0435\u0442 \u043F\u043E \u0442\u0440\u0438 \u0441\u044E\u0440\u0438\u043A\u0435\u043D\u0430, \u0441\u0434\u0435\u043B\u0430\u043D\u043D\u044B\u0445 \u0438\u0437 \u0441\u0436\u0430\u0442\u043E\u0439 \u044D\u043D\u0435\u0440\u0433\u0438\u0438, \u043E\u0447\u0435\u0440\u0435\u0434\u044C\u044E. \n\u0421\u044E\u0440\u0438\u043A\u0435\u043D\u044B \u043F\u043E\u0441\u0442\u0435\u043F\u0435\u043D\u043D\u043E \u0438\u0437\u043D\u0443\u0440\u044F\u044E\u0442 \u0432\u0440\u0430\u0433\u043E\u0432 \u0438 \u043D\u0430\u043D\u043E\u0441\u044F\u0442 \u0441\u043B\u0430\u0431\u044B\u0439 \u043E\u0436\u043E\u0433\u043E\u0432\u044B\u0439 \u0443\u0440\u043E\u043D. \n\u0422\u0430\u043A \u0436\u0435 \u043E\u043D\u0438 \u043F\u0440\u043E\u043B\u0435\u0442\u0430\u044E\u0442 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0435\u043A\u043B\u043E, \u043A\u0430\u043A \u0438 \u043E\u0431\u044B\u0447\u043D\u044B\u0435 \u043B\u0430\u0437\u0435\u0440\u043D\u044B\u0435 \u0441\u043D\u0430\u0440\u044F\u0434\u044B. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0432\u044B\u0441\u0442\u0440\u0435\u043B\u0430: 300 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[1]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[1],onClick:function(){function B(){return v("give_ability",{style:"adrenal",row:"2"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"adrenal",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0421\u041F\u041B\u0415\u0421\u041A \u0410\u0414\u0420\u0415\u041D\u0410\u041B\u0418\u041D\u0410",content:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u0432\u0432\u043E\u0434\u0438\u0442 \u0432 \u0432\u0430\u0441 \u043C\u043E\u0449\u043D\u0443\u044E \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u0443\u044E \u0441\u044B\u0432\u043E\u0440\u043E\u0442\u043A\u0443 \u0443\u0441\u043A\u043E\u0440\u044F\u044E\u0449\u0443\u044E \u0432\u0430\u0441 \u0432 \u0431\u043E\u044E \u0438 \u043F\u043E\u043C\u043E\u0433\u0430\u044E\u0449\u0443\u044E \u0431\u044B\u0441\u0442\u0440\u0435\u0435 \u043E\u043A\u043B\u0435\u043C\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0445 \u044D\u0444\u0444\u0435\u043A\u0442\u043E\u0432. \n\u041A\u043E\u0441\u0442\u044E\u043C \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442 \u0441\u044B\u0432\u043E\u0440\u043E\u0442\u043A\u0443 \u0441 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435\u043C \u0443\u0440\u0430\u043D\u0430. \u0427\u0442\u043E \u043A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E \u0434\u0430\u0451\u0442 \u043D\u0435\u043F\u0440\u0438\u044F\u0442\u043D\u044B\u0439 \u043D\u0435\u0433\u0430\u0442\u0438\u0432\u043D\u044B\u0439 \u044D\u0444\u0444\u0435\u043A\u0442, \u0432 \u0432\u0438\u0434\u0435 \u043D\u0430\u043A\u043E\u043F\u043B\u0435\u043D\u0438\u044F \u0440\u0430\u0434\u0438\u044F \u0432 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043C\u0435 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \n\u0412\u043C\u0435\u0441\u0442\u043E \u0442\u0440\u0430\u0442\u044B \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u043B\u0438\u0448\u044C \u043E\u0434\u0438\u043D \u0440\u0430\u0437, \u043F\u043E\u043A\u0430 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0436\u0435\u043D\u043E \u0432\u0440\u0443\u0447\u043D\u0443\u044E \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0446\u0435\u043B\u044C\u043D\u044B\u0445 \u043A\u0443\u0441\u043A\u043E\u0432 \u0443\u0440\u0430\u043D\u0430 \u043F\u043E\u043C\u0435\u0449\u0451\u043D\u043D\u044B\u0445 \u0432 \u043A\u043E\u0441\u0442\u044E\u043C.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[2]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[2],onClick:function(){function B(){return v("give_ability",{style:"emp",row:"3"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"emp",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041B\u0415\u041A\u0422\u0420\u041E\u041C\u0410\u0413\u041D\u0418\u0422\u041D\u042B\u0419 \u0412\u0417\u0420\u042B\u0412",content:"\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043C\u0430\u0433\u043D\u0438\u0442\u043D\u044B\u0435 \u0432\u043E\u043B\u043D\u044B \u0432\u044B\u043A\u043B\u044E\u0447\u0430\u044E\u0442, \u043F\u043E\u0434\u0440\u044B\u0432\u0430\u044E\u0442 \u0438\u043B\u0438 \u0438\u043D\u0430\u0447\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0430\u044E\u0442 - \u043A\u0438\u0431\u043E\u0440\u0433\u043E\u0432, \u0434\u0440\u043E\u043D\u043E\u0432, \u041A\u041F\u0411, \u044D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043E\u0440\u0443\u0436\u0438\u0435, \u043F\u043E\u0440\u0442\u0430\u0442\u0438\u0432\u043D\u044B\u0435 \u0421\u0432\u0435\u0442\u043E\u0448\u0443\u043C\u043E\u0432\u044B\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430, \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430 \u0441\u0432\u044F\u0437\u0438 \u0438 \u0442.\u0434. \n\u042D\u0442\u043E\u0442 \u0432\u0437\u0440\u044B\u0432 \u043C\u043E\u0436\u0435\u0442 \u043A\u0430\u043A \u043F\u043E\u043C\u043E\u0447\u044C \u0432\u0430\u043C \u0432 \u0431\u043E\u044E, \u0442\u0430\u043A \u0438 \u043D\u0435\u0432\u0435\u0440\u043E\u044F\u0442\u043D\u043E \u043D\u0430\u0432\u0440\u0435\u0434\u0438\u0442\u044C. \u0412\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u043E\u0441\u043C\u0430\u0442\u0440\u0438\u0432\u0430\u0439\u0442\u0435 \u043C\u0435\u0441\u0442\u043D\u043E\u0441\u0442\u044C \u043F\u0435\u0440\u0435\u0434 \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u0435\u043C. \n\u041D\u0435 \u0437\u0430\u0431\u044B\u0432\u0430\u0439\u0442\u0435 \u043E \u0437\u0430\u0449\u0438\u0449\u0430\u044E\u0449\u0435\u043C \u043E\u0442 \u0441\u0432\u0435\u0442\u0430 \u0440\u0435\u0436\u0438\u043C\u0435 \u0432\u0430\u0448\u0435\u0433\u043E \u0432\u0438\u0437\u043E\u0440\u0430. \u041E\u043D \u043C\u043E\u0436\u0435\u0442 \u043F\u043E\u043C\u043E\u0447\u044C \u043D\u0435 \u043E\u0441\u043B\u0435\u043F\u043D\u0443\u0442\u044C, \u043F\u0440\u0438 \u043F\u043E\u0434\u0440\u044B\u0432\u0435 \u043F\u043E\u0434\u043E\u0431\u043D\u044B\u0445 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432. \n\u0412\u0437\u0440\u044B\u0432 - \u043F\u0440\u0435\u0440\u044B\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B \u043D\u0430\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0435 \u043D\u0430 \u0432\u0430\u0441. \u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 5000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 4 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[3]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[3],onClick:function(){function B(){return v("give_ability",{style:"energynet",row:"4"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"energynet",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041D\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041A\u0410\u042F \u0421\u0415\u0422\u042C",content:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u043B\u043E\u0432\u0438\u0442 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u0443\u044E \u0432\u0430\u043C\u0438 \u0446\u0435\u043B\u044C \u0432 \u043E\u0431\u0435\u0437\u0434\u0432\u0438\u0436\u0438\u0432\u0430\u044E\u0449\u0443\u044E \u043B\u043E\u0432\u0443\u0448\u043A\u0443. \n\u0418\u0437 \u043B\u043E\u0432\u0443\u0448\u043A\u0438 \u043B\u0435\u0433\u043A\u043E \u0432\u044B\u0431\u0440\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u043E\u0441\u0442\u043E \u0441\u043B\u043E\u043C\u0430\u0432 \u0435\u0451 \u043B\u044E\u0431\u044B\u043C \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u043C. \n\u041E\u0442\u043B\u0438\u0447\u043D\u043E \u043F\u043E\u0434\u0445\u043E\u0434\u0438\u0442 \u0434\u043B\u044F \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043D\u0435\u0439\u0442\u0440\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u043E\u0434\u043D\u043E\u0433\u043E \u0432\u0440\u0430\u0433\u0430. \n\u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u0432 \u043D\u0435\u0451 \u043C\u043E\u0436\u043D\u043E \u043F\u043E\u0439\u043C\u0430\u0442\u044C \u0430\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043D\u044B\u0445 \u0436\u0438\u0432\u043E\u0442\u043D\u044B\u0445 \u0438\u043B\u0438 \u043D\u0430\u0434\u043E\u0435\u0434\u043B\u0438\u0432\u044B\u0445 \u043E\u0445\u0440\u0430\u043D\u043D\u044B\u0445 \u0431\u043E\u0442\u043E\u0432. \n\u0423\u0447\u0438\u0442\u044B\u0432\u0430\u0439\u0442\u0435, \u0447\u0442\u043E \u0441\u0435\u0442\u044C \u043D\u0435 \u043C\u0435\u0448\u0430\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0435 \u043E\u0442\u0441\u0442\u0440\u0435\u043B\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u0432\u0430\u0441. \n\u0422\u0430\u043A \u0436\u0435 \u0441\u0435\u0442\u044C \u043B\u0435\u0433\u043A\u043E \u043F\u043E\u043A\u0438\u043D\u0443\u0442\u044C \u0434\u0440\u0443\u0433\u0438\u043C \u043F\u0443\u0442\u0451\u043C, \u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u0435\u0439. \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u0435\u0442\u0438 - \u043F\u0440\u0435\u0440\u044B\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B \u043D\u0430\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0435 \u043D\u0430 \u0432\u0430\u0441. \u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 4000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[4]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[4],onClick:function(){function B(){return v("give_ability",{style:"spider_red",row:"5"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"spider_red",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0411\u041E\u0415\u0412\u041E\u0415 \u0418\u0421\u041A\u0423\u0421\u0421\u0422\u0412\u041E \n\u041F\u041E\u041B\u0417\u0423\u0427\u0415\u0419 \u0412\u0414\u041E\u0412\u042B",content:"\u0411\u043E\u0435\u0432\u043E\u0435 \u0438\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u043E \u043D\u0438\u043D\u0434\u0437\u044F \u0441\u043E\u0441\u0440\u0435\u0434\u043E\u0442\u043E\u0447\u0435\u043D\u043D\u043E\u0435 \u043D\u0430 \u043D\u0430\u043A\u043E\u043F\u043B\u0435\u043D\u0438\u0438 \u043A\u043E\u043D\u0446\u0435\u043D\u0442\u0440\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u043F\u0440\u0438\u0451\u043C\u043E\u0432. \n\u0412 \u0443\u0447\u0435\u043D\u0438\u0435 \u0432\u0445\u043E\u0434\u044F\u0442 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u043F\u0440\u0438\u0451\u043C\u044B: \n\u0412\u044B\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u043D\u0438\u0435 \u0440\u0443\u043A\u0438 - \u0437\u0430\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0443 \u0432\u044B\u0440\u043E\u043D\u0438\u0442\u044C \u0441\u0432\u043E\u0451 \u043E\u0440\u0443\u0436\u0438\u0435. \n\u0423\u0434\u0430\u0440 \u043B\u0430\u0434\u043E\u043D\u044C\u044E - \u043E\u0442\u043A\u0438\u0434\u044B\u0432\u0430\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0443 \u043D\u0430 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043C\u0435\u0442\u0440\u043E\u0432 \u043E\u0442 \u0432\u0430\u0441, \u043B\u0438\u0448\u0430\u044F \u0440\u0430\u0432\u043D\u043E\u0432\u0435\u0441\u0438\u044F. \n\u041F\u0435\u0440\u0435\u0440\u0435\u0437\u0430\u043D\u0438\u0435 \u0448\u0435\u0438 - \u043C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u043E\u0431\u0435\u0437\u0433\u043B\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442 \u043B\u0435\u0436\u0430\u0447\u0443\u044E \u0436\u0435\u0440\u0442\u0432\u0443 \u043A\u0430\u0442\u0430\u043D\u043E\u0439 \u0432\u043E \u0432\u0441\u043F\u043E\u043C\u043E\u0433\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0440\u0443\u043A\u0435. \n\u042D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0442\u043E\u0440\u043D\u0430\u0434\u043E - \u0440\u0430\u0441\u043A\u0438\u0434\u044B\u0432\u0430\u0435\u0442 \u0432\u0440\u0430\u0433\u043E\u0432 \u0432\u043E\u043A\u0440\u0443\u0433 \u0432\u0430\u0441 \u0438 \u0441\u043E\u0437\u0434\u0430\u0451\u0442 \u043E\u0431\u043B\u0430\u043A\u043E \u0434\u044B\u043C\u0430 \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u043E\u0433\u043E \u0434\u044B\u043C\u043E\u0432\u043E\u0433\u043E \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430 \u0438 \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u0422\u0430\u043A \u0436\u0435 \u0432\u044B \u043E\u0431\u0443\u0447\u0430\u0435\u0442\u0435\u0441\u044C \u0441 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u044B\u043C \u0448\u0430\u043D\u0441\u043E\u043C \u043E\u0442\u0440\u0430\u0436\u0430\u0442\u044C \u0441\u043D\u044F\u0440\u044F\u0434\u044B \u0432\u0440\u0430\u0433\u043E\u0432 \u043E\u0431\u0440\u0430\u0442\u043D\u043E.",position:"right"})]})]})]})]})})},s=r.ShuttleConsole=function(){function f(l,C){var b=(0,a.useBackend)(C),v=b.act,h=b.data;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0448\u0430\u0442\u0442\u043B\u043E\u043C",mr:"5px",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041F\u0430\u043D\u0435\u043B\u044C \u0434\u043B\u044F \u0443\u0434\u0430\u043B\u0451\u043D\u043D\u043E\u0433\u043E \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0432\u0430\u0448\u0438\u043C \u043B\u0438\u0447\u043D\u044B\u043C \u0448\u0430\u0442\u0442\u043B\u043E\u043C. \u0422\u0430\u043A \u0436\u0435 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u0442\u0435\u043A\u0443\u0449\u0443\u044E \u043F\u043E\u0437\u0438\u0446\u0438\u044E \u0438 \u043F\u043E\u0437\u0438\u0446\u0438\u044E \u0441\u0430\u043C\u043E\u0433\u043E \u0448\u0430\u0442\u0442\u043B\u0430!",tooltipPosition:"right"}),children:(0,e.createComponentVNode)(2,t.Flex,{ml:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0437\u0438\u0446\u0438\u044F",children:h.status?h.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0430\u0448\u0430 \u043F\u043E\u0437\u0438\u0446\u0438\u044F",children:h.player_pos}),!!h.shuttle&&(!!h.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0448\u0430\u0442\u0442\u043B",children:h.docking_ports.map(function(g){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:g.name,onClick:function(){function N(){return v("move",{move:g.id})}return N}()},g.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledListItem,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!h.admin_controlled&&(0,e.createComponentVNode)(2,o.LabeledListItem,{label:"\u0410\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044E",disabled:!h.status,onClick:function(){function g(){return v("request")}return g}()})})],0))]})})})}return f}(),u=function(l,C){var b=(0,a.useBackend)(C),v=b.data,h=v.randomPercent,g=v.actionsIcon,N=v.color_choice;return(0,e.createComponentVNode)(2,t.Section,{stretchContents:!0,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:N,value:h,minValue:0,maxValue:100,children:(0,e.createVNode)(1,"center",null,(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_"+N,mt:1,children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"spider_"+N,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Loading ",h+"%"]}),2)})})},d=function(f){function l(b){var v;return v=f.call(this,b)||this,v.timer=null,v.state={lastText:"text do be there",currentDisplay:[]},v}S(l,f);var C=l.prototype;return C.tick=function(){function b(){var v=this.props,h=this.state;if(v.allMessages!==h.lastText&&!v.end_terminal){var g=h.currentDisplay;g.push(v.allMessages),h.lastText=v.allMessages}else v.end_terminal&&(clearTimeout(this.timer),setTimeout(v.onFinished,v.finishedTimeout))}return b}(),C.componentDidMount=function(){function b(){var v=this,h=this.props.linesPerSecond,g=h===void 0?2.5:h;this.timer=setInterval(function(){return v.tick()},1e3/g)}return b}(),C.componentWillUnmount=function(){function b(){clearTimeout(this.timer)}return b}(),C.render=function(){function b(){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:this.state.currentDisplay.map(function(v){return(0,e.createFragment)([v,(0,e.createVNode)(1,"br")],0,v)})})}return b}(),l}(e.Component)},38307:function(I,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.StationAlertConsole=function(){function y(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,S)})})}return y}(),S=r.StationAlertConsoleContent=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.data,c=i.alarms||[];return Object.keys(c).map(function(s){var u,d;return(0,e.createComponentVNode)(2,t.Section,{title:s+" Alarms",children:(0,e.createVNode)(1,"ul",null,((u=c[s])==null?void 0:u.length)===0?(0,e.createVNode)(1,"li","color-good","Systems Nominal",16):(d=c[s])==null?void 0:d.map(function(f){return(0,e.createVNode)(1,"li","color-average",f,0,null,f)}),0)},s)})}return y}()},39409:function(I,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(89005),a=n(88510),t=n(79140),o=n(72253),m=n(36036),S=n(98595),y=5,k=9,V=function(b){return b===0?5:9},p="64px",i=function(b){return b[0]+"/"+b[1]},c=function(b){var v=b.align,h=b.children;return(0,e.createComponentVNode)(2,m.Box,{style:{position:"absolute",left:v==="left"?"6px":"48px","text-align":v,"text-shadow":"2px 2px 2px #000",top:"2px"},children:h})},s={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},u={neck:{displayName:"neck",gridSpot:i([0,0]),image:"inventory-neck.png"},eyes:{displayName:"eyewear",gridSpot:i([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:i([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:i([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:i([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:i([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:i([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:i([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:i([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:i([1,4])},jumpsuit:{displayName:"uniform",gridSpot:i([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:i([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:i([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:i([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:i([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:i([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:i([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:i([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:i([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:i([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:i([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:i([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:i([4,4]),image:"inventory-pda.png"}},d={neck:{displayName:"neck",gridSpot:i([0,0]),image:"inventory-neck.png"},eyes:{displayName:"eyewear",gridSpot:i([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:i([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:i([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:i([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:i([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:i([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:i([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:i([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:i([1,4])},jumpsuit:{displayName:"uniform",gridSpot:i([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:i([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:i([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:i([4,4]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:i([4,5]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:i([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:i([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:i([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:i([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:i([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:i([4,7]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:i([4,6]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:i([4,8]),image:"inventory-pda.png"}},f=function(C){return C[C.Completely=1]="Completely",C[C.Hidden=2]="Hidden",C}(f||{}),l=r.StripMenu=function(){function C(b,v){var h=(0,o.useBackend)(v),g=h.act,N=h.data,x=new Map;if(N.show_mode===0)for(var B=0,L=Object.keys(N.items);B300?"bad":s>150?"average":"good"},k=function(s){return s>5e3?"bad":s>4e3?"average":"good"},V=function(s){return s>1e4?"bad":s>5e3?"average":"good"},p=function(s,u){var d=(0,a.useBackend)(u),f=d.act,l=d.data;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Detected Supermatter Shards",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Refresh",onClick:function(){function C(){return f("refresh")}return C}()}),children:(0,e.createComponentVNode)(2,t.Box,{m:1,children:l.supermatters.length===0?(0,e.createVNode)(1,"h3",null,"No shards detected",16):(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,m.TableCell,{children:"Area"}),(0,e.createComponentVNode)(2,m.TableCell,{children:"Integrity"}),(0,e.createComponentVNode)(2,m.TableCell,{children:"Details"})]}),l.supermatters.map(function(C){return(0,e.createComponentVNode)(2,m.TableRow,{children:[(0,e.createComponentVNode)(2,m.TableCell,{children:C.area_name}),(0,e.createComponentVNode)(2,m.TableCell,{children:[C.integrity,"%"]}),(0,e.createComponentVNode)(2,m.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"View",onClick:function(){function b(){return f("view",{view:C.uid})}return b}()})})]},C)})]})})})})})},i=function(s,u){var d=(0,a.useBackend)(u),f=d.act,l=d.data;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Crystal Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"caret-square-left",content:"Back",onClick:function(){function C(){return f("back")}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[95,1/0],average:[80,94],bad:[-1/0,79]},minValue:"0",maxValue:"100",value:l.SM_integrity,children:[l.SM_integrity,"%"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,t.Box,{color:y(l.SM_power),children:[l.SM_power," MeV/cm3"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:k(l.SM_ambienttemp),children:[l.SM_ambienttemp," K"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:V(l.SM_ambientpressure),children:[l.SM_ambientpressure," kPa"]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Gas Composition",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:[l.SM_gas_O2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:[l.SM_gas_CO2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:[l.SM_gas_N2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plasma",children:[l.SM_gas_PL,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[l.SM_gas_OTHER,"%"]})]})})]})})}},46029:function(I,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),m=n(98595),S=r.SyndicateComputerSimple=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:400,theme:"syndicate",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:c.rows.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:s.buttontitle,disabled:s.buttondisabled,tooltip:s.buttontooltip,tooltipPosition:"left",onClick:function(){function u(){return i(s.buttonact)}return u}()}),children:[s.status,!!s.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:s.bullets.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:u},u)})})]},s.title)})})})}return y}()},99279:function(I,r,n){"use strict";r.__esModule=!0,r.SyndieCargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),m=n(36036),S=n(98595),y=n(29319),k=n(25328),V=r.SyndieCargoConsole=function(){function u(d,f){return(0,e.createComponentVNode)(2,S.Window,{width:900,height:800,theme:"syndicate",children:(0,e.createComponentVNode)(2,S.Window.Content,{children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,s)]})})}return u}(),p=function(d,f){var l=(0,o.useLocalState)(f,"contentsModal",null),C=l[0],b=l[1],v=(0,o.useLocalState)(f,"contentsModalTitle",null),h=v[0],g=v[1];if(C!==null&&h!==null)return(0,e.createComponentVNode)(2,m.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,m.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[h,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,m.Box,{children:C.map(function(N){return(0,e.createComponentVNode)(2,m.Box,{children:["- ",N]},N)})}),(0,e.createComponentVNode)(2,m.Box,{m:2,children:(0,e.createComponentVNode)(2,m.Button,{content:"Close",onClick:function(){function N(){b(null),g(null)}return N}()})})]})},i=function(d,f){var l=(0,o.useBackend)(f),C=l.act,b=l.data,v=b.is_public,h=v===void 0?0:v,g=b.cash,N=b.wait_time,x=b.is_cooldown,B=b.telepads_status,L=b.adminAddCash,T=B,E="",w=0,A="";return B==="Pads not linked!"?(w=0,E="Attempts to link telepads to the console.",A="Link pads"):x?x&&(A="Cooldown...",E="Pads are cooling off...",w=1,N!==1?T=""+B+" (ETA: "+N+" seconds)":T=""+B+" (ETA: "+N+" second)"):(w=0,E="Teleports your crates to the market. A reminder, some of the crates are directly stolen from NT trading routes. That means they can be locked. We are NOT sorry for the inconvenience",A="Teleport"),(0,e.createComponentVNode)(2,m.Section,{title:"Status",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[h===0&&(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Money Available",children:[g,(0,e.createComponentVNode)(2,m.Button,{tooltip:"Withdraw money from the console",content:"Withdraw",onClick:function(){function O(){return C("withdraw",{cash:g})}return O}()}),(0,e.createComponentVNode)(2,m.Button,{content:L,tooltip:"Bless the players with da money!",onClick:function(){function O(){return C("add_money",{cash:g})}return O}()})]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Telepads Status",children:T}),h===0&&(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,m.Button,{content:A,tooltip:E,disabled:w,onClick:function(){function O(){return C("teleport")}return O}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Syndicate Black Market Log",onClick:function(){function O(){return C("showMessages")}return O}()})]})]})})},c=function(d,f){var l=(0,o.useBackend)(f),C=l.act,b=l.data,v=b.categories,h=b.supply_packs,g=(0,o.useSharedState)(f,"category","Emergency"),N=g[0],x=g[1],B=(0,o.useSharedState)(f,"search_text",""),L=B[0],T=B[1],E=(0,o.useLocalState)(f,"contentsModal",null),w=E[0],A=E[1],O=(0,o.useLocalState)(f,"contentsModalTitle",null),M=O[0],P=O[1],R=(0,k.createSearch)(L,function(U){return U.name}),F=(0,a.flow)([(0,t.filter)(function(U){return U.cat===v.filter(function(W){return W.name===N})[0].category||L}),L&&(0,t.filter)(R),(0,t.sortBy)(function(U){return U.name.toLowerCase()})])(h),_="Crate Catalogue";return L?_="Results for '"+L+"':":N&&(_="Browsing "+N),(0,e.createComponentVNode)(2,m.Section,{title:_,buttons:(0,e.createComponentVNode)(2,m.Dropdown,{width:"190px",options:v.map(function(U){return U.name}),selected:N,onSelected:function(){function U(W){return x(W)}return U}()}),children:[(0,e.createComponentVNode)(2,m.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function U(W,$){return T($)}return U}(),mb:1}),(0,e.createComponentVNode)(2,m.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:F.map(function(U){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{bold:!0,children:[U.name," (",U.cost," Credits)"]}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,m.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){function W(){return C("order",{crate:U.ref,multiple:0})}return W}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){function W(){return C("order",{crate:U.ref,multiple:1})}return W}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Contents",icon:"search",onClick:function(){function W(){A(U.contents),P(U.name)}return W}()})]})]},U.name)})})})]})},s=function(d,f){var l=(0,o.useBackend)(f),C=l.act,b=l.data,v=b.requests,h=b.canapprove,g=b.orders;return(0,e.createComponentVNode)(2,m.Section,{title:"Details",children:(0,e.createComponentVNode)(2,m.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:[(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:v.map(function(N){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",N.ordernum,": ",N.supply_type," for ",(0,e.createVNode)(1,"b",null,N.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",N.comment]})]}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,m.Button,{content:"Approve",color:"green",disabled:!h,onClick:function(){function x(){return C("approve",{ordernum:N.ordernum})}return x}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Deny",color:"red",onClick:function(){function x(){return C("deny",{ordernum:N.ordernum})}return x}()})]})]},N.ordernum)})}),(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Confirmed Orders"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:g.map(function(N){return(0,e.createComponentVNode)(2,m.Table.Row,{children:(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",N.ordernum,": ",N.supply_type," for ",(0,e.createVNode)(1,"b",null,N.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",N.comment]})]})},N.ordernum)})})]})})}},44852:function(I,r,n){"use strict";r.__esModule=!0,r.TTSSeedsExplorerContent=r.TTSSeedsExplorer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m={0:"\u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u044B\u0435",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV"},S={\u041C\u0443\u0436\u0441\u043A\u043E\u0439:{icon:"mars",color:"blue"},\u0416\u0435\u043D\u0441\u043A\u0438\u0439:{icon:"venus",color:"purple"},\u041B\u044E\u0431\u043E\u0439:{icon:"venus-mars",color:"white"}},y=function(i,c,s,u){return u===void 0&&(u=null),i.map(function(d){var f,l=(f=d[u])!=null?f:d;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:c.includes(d),content:l,onClick:function(){function C(){c.includes(d)?s(c.filter(function(b){var v;return((v=b[u])!=null?v:b)!==d})):s([d].concat(c))}return C}()},l)})},k=r.TTSSeedsExplorer=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return p}(),V=r.TTSSeedsExplorerContent=function(){function p(i,c){var s=(0,a.useBackend)(c),u=s.act,d=s.data,f=d.providers,l=d.seeds,C=d.selected_seed,b=d.phrases,v=d.donator_level,h=l.map(function(X){return X.category}).filter(function(X,Q,Z){return Z.indexOf(X)===Q}),g=l.map(function(X){return X.gender}).filter(function(X,Q,Z){return Z.indexOf(X)===Q}),N=l.map(function(X){return X.donator_level}).filter(function(X,Q,Z){return Z.indexOf(X)===Q}).map(function(X){return m[X]}),x=(0,a.useLocalState)(c,"selectedProviders",f),B=x[0],L=x[1],T=(0,a.useLocalState)(c,"selectedGenders",g),E=T[0],w=T[1],A=(0,a.useLocalState)(c,"selectedCategories",h),O=A[0],M=A[1],P=(0,a.useLocalState)(c,"selectedDonatorLevels",N),R=P[0],F=P[1],_=(0,a.useLocalState)(c,"selectedPhrase",b[0]),U=_[0],W=_[1],$=(0,a.useLocalState)(c,"searchtext",""),Y=$[0],ne=$[1],G=y(f,B,L,"name"),le=y(g,E,w),de=y(h,O,M),oe=y(N,R,F),re=(0,e.createComponentVNode)(2,t.Dropdown,{options:b,selected:U.replace(/(.{25})..+/,"$1..."),width:"220px",onSelected:function(){function X(Q){return W(Q)}return X}()}),q=(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",fluid:!0,onInput:function(){function X(Q,Z){return ne(Z)}return X}()}),ae=l.sort(function(X,Q){var Z=X.name.toLowerCase(),te=Q.name.toLowerCase();return Z>te?1:Z0&&C!==X.name?"orange":"white",children:X.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:C===X.name?.5:.25,textAlign:"left",children:X.category}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:C===X.name?"white":S[X.gender].color,textAlign:"left",children:(0,e.createComponentVNode)(2,t.Icon,{mx:1,size:1.2,name:S[X.gender].icon})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:X.donator_level>0&&(0,e.createFragment)([m[X.donator_level],(0,e.createComponentVNode)(2,t.Icon,{ml:1,mr:2,name:"coins"})],0)})]},X.name)});return(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",fill:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u044B",children:G}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u043B",children:le}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438",children:de}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438",children:oe}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:re}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0438\u0441\u043A",children:q})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{scrollable:!0,fill:!0,title:"\u0413\u043E\u043B\u043E\u0441\u0430 ("+ae.length+"/"+l.length+")",children:(0,e.createComponentVNode)(2,t.Table,{children:J})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.BlockQuote,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0414\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044F \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445 \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0445 \u0440\u0430\u0441\u0445\u043E\u0434\u043E\u0432 \u0447\u0430\u0441\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432 \u043F\u0440\u0438\u0448\u043B\u043E\u0441\u044C \u0441\u0434\u0435\u043B\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u043C\u0438 \u0442\u043E\u043B\u044C\u043A\u043E \u0437\u0430 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044C\u043D\u0443\u044E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430."}),(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435 \u043E\u0431 \u044D\u0442\u043E\u043C \u043C\u043E\u0436\u043D\u043E \u0443\u0437\u043D\u0430\u0442\u044C \u0432 \u043D\u0430\u0448\u0435\u043C Discord-\u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0435."})]})})})]})}return p}()},56441:function(I,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.TachyonArray=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.records,u=s===void 0?[]:s,d=c.explosion_target,f=c.toxins_tech,l=c.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:f}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!u.length||l,align:"center",onClick:function(){function C(){return i("print_logs")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!u.length,color:"bad",align:"center",onClick:function(){function C(){return i("delete_logs")}return C}()})]})]})}),u.length?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return y}(),S=r.TachyonArrayContent=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.records,u=s===void 0?[]:s;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),u.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function f(){return i("delete_record",{index:d.index})}return f}()})})]},d.index)})]})})})})}return y}()},1754:function(I,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.Tank=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c;return i.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.connected?"check":"times",content:i.connected?"Internals On":"Internals Off",selected:i.connected,onClick:function(){function s(){return p("internals")}return s}()})}):c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:300,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:i.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:i.ReleasePressure===i.minReleasePressure,tooltip:"Min",onClick:function(){function s(){return p("pressure",{pressure:"min"})}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(i.releasePressure),width:"65px",unit:"kPa",minValue:i.minReleasePressure,maxValue:i.maxReleasePressure,onChange:function(){function s(u,d){return p("pressure",{pressure:d})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:i.ReleasePressure===i.maxReleasePressure,tooltip:"Max",onClick:function(){function s(){return p("pressure",{pressure:"max"})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:i.ReleasePressure===i.defaultReleasePressure,tooltip:"Reset",onClick:function(){function s(){return p("pressure",{pressure:"reset"})}return s}()})]}),c]})})})})}return S}()},7579:function(I,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.TankDispenser=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.o_tanks,s=i.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:275,height:100,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Dispense Oxygen Tank ("+c+")",disabled:c===0,icon:"arrow-circle-down",onClick:function(){function u(){return p("oxygen")}return u}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Dispense Plasma Tank ("+s+")",disabled:s===0,icon:"arrow-circle-down",onClick:function(){function u(){return p("plasma")}return u}()})})]})})}return S}()},16136:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.TcommsCore=function(){function p(i,c){var s=(0,a.useBackend)(c),u=s.act,d=s.data,f=d.ion,l=(0,a.useLocalState)(c,"tabIndex",0),C=l[0],b=l[1],v=function(){function h(g){switch(g){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,V);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[f===1&&(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===0,onClick:function(){function h(){return b(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"wrench"}),"Configuration"]},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===1,onClick:function(){function h(){return b(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"link"}),"Device Linkage"]},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===2,onClick:function(){function h(){return b(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-times"}),"User Filtering"]},"FilterPage")]}),v(C)]})})}return p}(),S=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},y=function(i,c){var s=(0,a.useBackend)(c),u=s.act,d=s.data,f=d.active,l=d.sectors_available,C=d.nttc_toggle_jobs,b=d.nttc_toggle_job_color,v=d.nttc_toggle_name_color,h=d.nttc_toggle_command_bold,g=d.nttc_job_indicator_type,N=d.nttc_setting_language,x=d.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:f?"On":"Off",selected:f,icon:"power-off",onClick:function(){function B(){return u("toggle_active")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:l})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"user-tag",onClick:function(){function B(){return u("nttc_toggle_jobs")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:b?"On":"Off",selected:b,icon:"clipboard-list",onClick:function(){function B(){return u("nttc_toggle_job_color")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function B(){return u("nttc_toggle_name_color")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"volume-up",onClick:function(){function B(){return u("nttc_toggle_command_bold")}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:g||"Unset",selected:g,icon:"pencil-alt",onClick:function(){function B(){return u("nttc_job_indicator_type")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:N||"Unset",selected:N,icon:"globe",onClick:function(){function B(){return u("nttc_setting_language")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:x||"Unset",selected:x,icon:"server",onClick:function(){function B(){return u("network_id")}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function B(){return u("import")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function B(){return u("export")}return B}()})]})],4)},k=function(i,c){var s=(0,a.useBackend)(c),u=s.act,d=s.data,f=d.link_password,l=d.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:f||"Unset",selected:f,icon:"lock",onClick:function(){function C(){return u("change_password")}return C}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),l.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function b(){return u("unlink",{addr:C.addr})}return b}()})})]},C.addr)})]})]})},V=function(i,c){var s=(0,a.useBackend)(c),u=s.act,d=s.data,f=d.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function l(){return u("add_filter")}return l}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),f.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function C(){return u("remove_filter",{user:l})}return C}()})})]},l)})]})})}},88046:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.TcommsRelay=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,u=s.linked,d=s.active,f=s.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:d?"On":"Off",selected:d,icon:"power-off",onClick:function(){function l(){return c("toggle_active")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:f||"Unset",selected:f,icon:"server",onClick:function(){function l(){return c("network_id")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:u===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),u===1?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)]})})}return k}(),S=function(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,u=s.linked_core_id,d=s.linked_core_addr,f=s.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:f?"Yes":"No",icon:f?"eye-slash":"eye",selected:f,onClick:function(){function l(){return c("toggle_hidden_link")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function l(){return c("unlink")}return l}()})})]})})},y=function(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,u=s.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),u.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function f(){return c("link",{addr:d.addr})}return f}()})})]},d.addr)})]})})}},20802:function(I,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(79646),S=r.Teleporter=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.targetsTeleport?c.targetsTeleport:{},u=0,d=1,f=2,l=c.calibrated,C=c.calibrating,b=c.powerstation,v=c.regime,h=c.teleporterhub,g=c.target,N=c.locked,x=c.accuracy;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(!b||!h)&&(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[h,!b&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),b&&!h&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),b&&h&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Regime",children:[(0,e.createComponentVNode)(2,t.Button,{tooltip:"Teleport to another teleport hub. ",color:v===d?"good":null,onClick:function(){function B(){return i("setregime",{regime:d})}return B}(),children:"Gate"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"One-way teleport. ",color:v===u?"good":null,onClick:function(){function B(){return i("setregime",{regime:u})}return B}(),children:"Teleporter"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"Teleport to a location stored in a GPS device. ",color:v===f?"good":null,disabled:!N,onClick:function(){function B(){return i("setregime",{regime:f})}return B}(),children:"GPS"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Teleport target",children:[v===u&&(0,e.createComponentVNode)(2,t.Dropdown,{width:"220px",selected:g,options:Object.keys(s),color:g!=="None"?"default":"bad",onSelected:function(){function B(L){return i("settarget",{x:s[L].x,y:s[L].y,z:s[L].z})}return B}()}),v===d&&(0,e.createComponentVNode)(2,t.Dropdown,{width:"220px",selected:g,options:Object.keys(s),color:g!=="None"?"default":"bad",onSelected:function(){function B(L){return i("settarget",{x:s[L].x,y:s[L].y,z:s[L].z})}return B}()}),v===f&&(0,e.createComponentVNode)(2,t.Box,{children:g})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Calibration",children:[g!=="None"&&(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,m.GridColumn,{size:"2",children:C&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||(l||x>=3)&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,m.GridColumn,{size:"3",children:(0,e.createComponentVNode)(2,t.Box,{class:"ml-1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",disabled:!!(l||C),onClick:function(){function B(){return i("calibrate")}return B}()})})})]}),g==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})}),!!(N&&b&&h&&v===f)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",justify:"space-around",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function B(){return i("load")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function B(){return i("eject")}return B}()})]})})]})})}return y}()},24410:function(I,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(72253),m=n(92986),S=n(36036),y=n(98595),k=r.sanitizeMultiline=function(){function c(s){return s.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),V=r.removeAllSkiplines=function(){function c(s){return s.replace(/[\r\n]+/,"")}return c}(),p=r.TextInputModal=function(){function c(s,u){var d=(0,o.useBackend)(u),f=d.act,l=d.data,C=l.max_length,b=l.message,v=b===void 0?"":b,h=l.multiline,g=l.placeholder,N=l.timeout,x=l.title,B=(0,o.useLocalState)(u,"input",g||""),L=B[0],T=B[1],E=function(){function O(M){if(M!==L){var P=h?k(M):V(M);T(P)}}return O}(),w=h||L.length>=40,A=130+(v.length>40?Math.ceil(v.length/4):0)+(w?80:0);return(0,e.createComponentVNode)(2,y.Window,{title:x,width:325,height:A,children:[N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function O(M){var P=window.event?M.which:M.keyCode;P===m.KEY_ENTER&&(!w||!M.shiftKey)&&f("submit",{entry:L}),P===m.KEY_ESCAPE&&f("cancel")}return O}(),children:(0,e.createComponentVNode)(2,S.Section,{fill:!0,children:(0,e.createComponentVNode)(2,S.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,S.Box,{color:"label",children:v})}),(0,e.createComponentVNode)(2,S.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{input:L,onType:E})}),(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:L,message:L.length+"/"+C})})]})})})]})}return c}(),i=function(s,u){var d=(0,o.useBackend)(u),f=d.act,l=d.data,C=l.max_length,b=l.multiline,v=s.input,h=s.onType,g=b||v.length>=40;return(0,e.createComponentVNode)(2,S.TextArea,{autoFocus:!0,autoSelect:!0,height:b||v.length>=40?"100%":"1.8rem",maxLength:C,onEscape:function(){function N(){return f("cancel")}return N}(),onEnter:function(){function N(x){g&&x.shiftKey||(x.preventDefault(),f("submit",{entry:v}))}return N}(),onInput:function(){function N(x,B){return h(B)}return N}(),placeholder:"Type something...",value:v})}},69566:function(I,r,n){"use strict";r.__esModule=!0,r.ThiefKit=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ThiefKit=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.uses,s=i.possible_uses,u=i.multi_uses,d=i.kits,f=i.choosen_kits;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:900,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u041D\u0430\u0431\u043E\u0440 \u0413\u0438\u043B\u044C\u0434\u0438\u0438 \u0412\u043E\u0440\u043E\u0432:",children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:[(0,e.createVNode)(1,"i",null,"\u0423\u0432\u0435\u0441\u0438\u0441\u0442\u0430\u044F \u043A\u043E\u0440\u043E\u0431\u043A\u0430, \u0432 \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u043B\u0435\u0436\u0438\u0442 \u0441\u043D\u0430\u0440\u044F\u0436\u0435\u043D\u0438\u0435 \u0433\u0438\u043B\u044C\u0434\u0438\u0438 \u0432\u043E\u0440\u043E\u0432.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"i",null,"\u041D\u0430\u0431\u043E\u0440 \u0432\u043E\u0440\u0430-\u0448\u0440\u0435\u0434\u0438\u043D\u0433\u0435\u0440\u0430. \u041D\u0435\u043B\u044C\u0437\u044F \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u0447\u0442\u043E \u0432 \u043D\u0451\u043C, \u043F\u043E\u043A\u0430 \u043D\u0435 \u0437\u0430\u0433\u043B\u044F\u043D\u0435\u0448\u044C \u0432\u043D\u0443\u0442\u0440\u044C.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"p",null,(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043A\u043E\u0435 \u0441\u043D\u0430\u0440\u044F\u0436\u0435\u043D\u0438\u0435 \u0432 \u043D\u0451\u043C \u043B\u0435\u0436\u0438\u0442?:",16),2),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("\u041E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043E \u043D\u0430\u0431\u043E\u0440\u043E\u0432:"),(0,e.createComponentVNode)(2,t.Box,{as:"span",color:c<=0?"good":c=s,onClick:function(){function l(){return p("randomKit")}return l}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d&&d.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.name,buttons:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"upload",content:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",disabled:l.was_taken||c>=s,onClick:function(){function C(){return p("takeKit",{item:l.type})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",disabled:!l.was_taken,onClick:function(){function C(){return p("undoKit",{item:l.type})}return C}()})]}),children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:l.desc})},l.type)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 \u043D\u0430\u0431\u043E\u0440\u044B:",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:f&&f.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440",onClick:function(){function C(){return p("undoKit",{item:l.type})}return C}()}),children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:" "})},l.type)})})}),(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440",color:c0?(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("[Left:"),x.contractor.available_offers,(0,e.createTextVNode)("]")],0):(0,e.createVNode)(1,"i",null,"[Offers over]",16):"",x.contractor.accepted?(0,e.createVNode)(1,"i",null,"\xA0(Accepted)",16):!x.contractor.is_admin_forced&&x.contractor.available_offers<=0?"":(0,e.createComponentVNode)(2,m.Countdown,{timeLeft:x.contractor.time_left,format:function(){function M(P,R){return" ("+R+")"}return M}(),bold:!0})]},"BecomeContractor"),(0,e.createComponentVNode)(2,y.Tabs.Tab,{onClick:function(){function M(){return N("lock")}return M}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:p(T)})]})})]})}return b}(),c=function(v,h){var g=(0,S.useBackend)(h),N=g.act,x=g.data,B=x.crystals,L=x.cats,T=(0,S.useLocalState)(h,"uplinkItems",L[0].items),E=T[0],w=T[1],A=(0,S.useLocalState)(h,"searchText",""),O=A[0],M=A[1],P=function($,Y){Y===void 0&&(Y="");var ne=(0,o.createSearch)(Y,function(G){var le=G.hijack_only===1?"|hijack":"";return G.name+"|"+G.desc+"|"+G.cost+"tc"+le});return(0,t.flow)([(0,a.filter)(function(G){return G==null?void 0:G.name}),Y&&(0,a.filter)(ne),(0,a.sortBy)(function(G){return G==null?void 0:G.name})])($)},R=function($){if(M($),$==="")return w(L[0].items);w(P(L.map(function(Y){return Y.items}).flat(),$))},F=(0,S.useLocalState)(h,"showDesc",1),_=F[0],U=F[1];return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Button.Checkbox,{content:"Show Descriptions",checked:_,onClick:function(){function W(){return U(!_)}return W}()}),(0,e.createComponentVNode)(2,y.Button,{content:"Random Item",icon:"question",onClick:function(){function W(){return N("buyRandom")}return W}()}),(0,e.createComponentVNode)(2,y.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function W(){return N("refund")}return W}()})],4),children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function W($,Y){R(Y)}return W}(),value:O})})})}),(0,e.createComponentVNode)(2,y.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,y.Tabs,{vertical:!0,children:L.map(function(W){return(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:O!==""?!1:W.items===E,onClick:function(){function $(){w(W.items),M("")}return $}(),children:W.cat},W)})})})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,y.Stack,{vertical:!0,children:E.map(function(W){return(0,e.createComponentVNode)(2,y.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:W,showDecription:_},(0,o.decodeHtmlEntities)(W.name))},(0,o.decodeHtmlEntities)(W.name))})})})})]})]})},s=function(v,h){var g=(0,S.useBackend)(h),N=g.act,x=g.data,B=x.cart,L=x.crystals,T=x.cart_price,E=(0,S.useLocalState)(h,"showDesc",0),w=E[0],A=E[1];return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+L+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Button.Checkbox,{content:"Show Descriptions",checked:w,onClick:function(){function O(){return A(!w)}return O}()}),(0,e.createComponentVNode)(2,y.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function O(){return N("empty_cart")}return O}(),disabled:!B}),(0,e.createComponentVNode)(2,y.Button,{content:"Purchase Cart ("+T+"TC)",icon:"shopping-cart",onClick:function(){function O(){return N("purchase_cart")}return O}(),disabled:!B||T>L})],4),children:(0,e.createComponentVNode)(2,y.Stack,{vertical:!0,children:B?B.map(function(O){return(0,e.createComponentVNode)(2,y.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:O,showDecription:w,buttons:(0,e.createComponentVNode)(2,l,{i:O})})},(0,o.decodeHtmlEntities)(O.name))}):(0,e.createComponentVNode)(2,y.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,u)]})},u=function(v,h){var g=(0,S.useBackend)(h),N=g.act,x=g.data,B=x.cats,L=x.lucky_numbers;return(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,y.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function T(){return N("shuffle_lucky_numbers")}return T}()}),children:(0,e.createComponentVNode)(2,y.Stack,{wrap:!0,children:L.map(function(T){return B[T.cat].items[T.item]}).filter(function(T){return T!=null}).map(function(T,E){return(0,e.createComponentVNode)(2,y.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,d,{grow:!0,i:T})},E)})})})})},d=function(v,h){var g=v.i,N=v.showDecription,x=N===void 0?1:N,B=v.buttons,L=B===void 0?(0,e.createComponentVNode)(2,f,{i:g}):B;return(0,e.createComponentVNode)(2,y.Section,{title:(0,o.decodeHtmlEntities)(g.name),showBottom:x,buttons:L,children:x?(0,e.createComponentVNode)(2,y.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(g.desc)}):null})},f=function(v,h){var g=(0,S.useBackend)(h),N=g.act,x=g.data,B=v.i,L=x.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function T(){return N("add_to_cart",{item:B.obj_path})}return T}(),disabled:B.cost>L}),(0,e.createComponentVNode)(2,y.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function T(){return N("buyItem",{item:B.obj_path})}return T}(),disabled:B.cost>L})],4)},l=function(v,h){var g=(0,S.useBackend)(h),N=g.act,x=g.data,B=v.i,L=x.exploitable;return(0,e.createComponentVNode)(2,y.Stack,{children:[(0,e.createComponentVNode)(2,y.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function T(){return N("remove_from_cart",{item:B.obj_path})}return T}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function T(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return T}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,y.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function T(E,w){return N("set_cart_item_quantity",{item:B.obj_path,quantity:w})}return T}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,y.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function T(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return T}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},C=function(v,h){var g=(0,S.useBackend)(h),N=g.act,x=g.data,B=x.exploitable,L=(0,S.useLocalState)(h,"selectedRecord",B[0]),T=L[0],E=L[1],w=(0,S.useLocalState)(h,"searchText",""),A=w[0],O=w[1],M=function(F,_){_===void 0&&(_="");var U=(0,o.createSearch)(_,function(W){return W.name});return(0,t.flow)([(0,a.filter)(function(W){return W==null?void 0:W.name}),_&&(0,a.filter)(U),(0,a.sortBy)(function(W){return W.name})])(F)},P=M(B,A);return(0,e.createComponentVNode)(2,y.Section,{fill:!0,title:"Exploitable Records",children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{width:"30%",fill:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,y.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function R(F,_){return O(_)}return R}()}),(0,e.createComponentVNode)(2,y.Tabs,{vertical:!0,children:P.map(function(R){return(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:R===T,onClick:function(){function F(){return E(R)}return F}(),children:R.name},R)})})]})}),(0,e.createComponentVNode)(2,y.Divider,{vertical:!0}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,title:T.name,scrollable:!0,children:(0,e.createComponentVNode)(2,y.LabeledList,{children:[(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Age",children:T.age}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Fingerprint",children:T.fingerprint}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Rank",children:T.rank}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Sex",children:T.sex}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Species",children:T.species}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Records",children:T.exploit_record})]})})})]})})};(0,V.modalRegisterBodyOverride)("become_contractor",function(b,v){var h,g,N,x,B=(0,S.useBackend)(v),L=B.data,T=L.contractor||{},E=T.time_left,w=!!(L!=null&&(h=L.contractor)!=null&&h.available),A=!!(L!=null&&(g=L.contractor)!=null&&g.affordable),O=!!(L!=null&&(N=L.contractor)!=null&&N.accepted),M=L.contractor||{},P=M.available_offers,R=!!(L!=null&&(x=L.contractor)!=null&&x.is_admin_forced);return(0,e.createComponentVNode)(2,y.Section,{height:"65%",level:"2",m:"-1rem",pb:"1rem",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Icon,{name:"suitcase"}),(0,e.createTextVNode)("\xA0 Contracting Opportunity")],4),children:[(0,e.createComponentVNode)(2,y.Box,{mx:"0.5rem",mb:"0.5rem",children:[(0,e.createVNode)(1,"b",null,"Your achievements for the Syndicate have not gone unnoticed, agent. We have decided to give you the rare opportunity of becoming a Contractor.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),"For the small price of 20 telecrystals, we will upgrade your rank to that of a Contractor, allowing you to undertake kidnapping contracts for TC and credits.",(0,e.createVNode)(1,"br"),"In addition, you will be supplied with a Contractor Kit which contains a Contractor Uplink, standard issue contractor gear and three random low cost items.",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),"More detailed instructions can be found within your kit, should you accept this offer.",R?"":(0,e.createComponentVNode)(2,y.Box,{children:["Hurry up. You are not the only one who received this offer. Their number is limited. If other traitors accept all offers before you, you will not be able to accept one of them.",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Available offers: "),P],0)]})]}),(0,e.createComponentVNode)(2,y.Button.Confirm,{disabled:!w||O,italic:!w,bold:w,icon:w&&!O&&"check",color:"good",content:O?"Accepted":w?["Accept Offer",(0,e.createComponentVNode)(2,m.Countdown,{timeLeft:E,format:function(){function F(_,U){return" ("+U+")"}return F}()},"countdown")]:A?L.contractor.is_admin_forced?"Offer expired":L.contractor.available_offers>0?(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("[Left:"),L.contractor.available_offers,(0,e.createTextVNode)("]")],0):(0,e.createVNode)(1,"i",null,"[Offers are over]",16):"Insufficient TC",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function F(){return(0,V.modalAnswer)(v,b.id,1)}return F}()})]})})},80949:function(I,r,n){"use strict";r.__esModule=!0,r.UploadPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.UploadPanel=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.selected_target,s=i.new_law,u=i.id,d=i.transmitting,f=i.hacked;return(0,e.createComponentVNode)(2,o.Window,{width:900,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Silicon Law Upload",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Target",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d,selected:!!c,content:c||"No target selected",onClick:function(){function l(){return p("choose_silicon")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Law",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d,selected:!!s,content:s||"No module installed",onClick:function(){function l(){return p("insert_module")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{selected:!!u,content:u||(f?"$@!ERR0R!@#":"No ID card inserted"),onClick:function(){function l(){return p("authorization")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upload Laws",children:(0,e.createComponentVNode)(2,t.Button,{disabled:!c||!s||(f?!1:!u),selected:!!d,content:d?"STOP UPLOAD":"START UPLOAD",onClick:function(){function l(){return p("change_laws")}return l}()})})]})})})})}return S}()},8946:function(I,r,n){"use strict";r.__esModule=!0,r.VampireSpecMenu=r.UmbrMenu=r.HemoMenu=r.GarMenu=r.DantMenu=r.BestMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.VampireSpecMenu=function(){function i(c,s){var u=(0,a.useBackend)(s),d=u.act,f=(0,a.useLocalState)(s,"activeTab","hemomancer"),l=f[0],C=f[1],b=function(){function v(){switch(l){case"hemomancer":return(0,e.createComponentVNode)(2,S,{act:d});case"umbrae":return(0,e.createComponentVNode)(2,y,{act:d});case"gargantua":return(0,e.createComponentVNode)(2,k,{act:d});case"dantalion":return(0,e.createComponentVNode)(2,V,{act:d});case"bestia":return(0,e.createComponentVNode)(2,p,{act:d});default:return null}}return v}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:890,resizable:!0,theme:"ntos_spooky",children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",onClick:function(){function v(){return C("hemomancer")}return v}(),selected:l==="hemomancer"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0423\u043C\u0431\u0440\u0430",onClick:function(){function v(){return C("umbrae")}return v}(),selected:l==="umbrae"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",onClick:function(){function v(){return C("gargantua")}return v}(),selected:l==="gargantua"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",onClick:function(){function v(){return C("dantalion")}return v}(),selected:l==="dantalion"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0411\u0435\u0441\u0442\u0438\u044F",onClick:function(){function v(){return C("bestia")}return v}(),selected:l==="bestia"})]}),(0,e.createComponentVNode)(2,t.Divider),b()]})})}return i}(),S=r.HemoMenu=function(){function i(c,s){var u=(0,a.useBackend)(s),d=u.act,f=u.data,l=f.hemomancer;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:l[0],icon_state:l[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043C\u0430\u0433\u0438\u0438 \u043A\u0440\u043E\u0432\u0438 \u0438 \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0438 \u0435\u044E.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u043E\u0433\u0442\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u043F\u0430\u0440\u0443 \u0441\u043C\u0435\u0440\u0442\u043E\u043D\u043E\u0441\u043D\u044B\u0445 \u043A\u043E\u0433\u0442\u0435\u0439, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0438\u0445 \u0431\u044B\u0441\u0442\u0440\u043E \u0430\u0442\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u0446\u0435\u043B\u044C, \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u044F \u0435\u0435 \u043A\u0440\u043E\u0432\u044C \u0438 \u0440\u0435\u0433\u0435\u043D\u0435\u0440\u0438\u0440\u0443\u044F \u0441\u0432\u043E\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u0435.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0431\u0430\u0440\u044C\u0435\u0440",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u044B\u0431\u0440\u0430\u0442\u044C \u0434\u0432\u0435 \u043F\u043E\u0437\u0438\u0446\u0438\u0438 \u0434\u043B\u044F \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u043C\u0435\u0436\u0434\u0443 \u043D\u0438\u043C\u0438 \u0441\u0442\u0435\u043D\u044B.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0435 \u0449\u0443\u043F\u0430\u043B\u044C\u0446\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0441\u043B\u0435 \u043D\u0435\u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0437\u0430\u043C\u0435\u0434\u043B\u0438\u0442\u044C \u0432\u0441\u0435\u0445 \u0432\u043D\u0443\u0442\u0440\u0438 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 3x3.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0433\u0440\u0443\u0436\u0435\u043D\u0438\u0435 \u0432 \u043A\u0440\u043E\u0432\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043D\u0435\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u043F\u0435\u0440\u0435\u0434\u0432\u0438\u0433\u0430\u0442\u044C\u0441\u044F \u0441 \u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C\u044E, \u0438\u0433\u043D\u043E\u0440\u0438\u0440\u0443\u044F \u0432\u0441\u0435 \u043F\u0440\u0435\u043F\u044F\u0442\u0441\u0442\u0432\u0438\u044F, \u043A\u0440\u043E\u043C\u0435 \u0441\u0442\u0435\u043D \u0438 \u043A\u043E\u0441\u043C\u043E\u0441\u0430, \u0430 \u0442\u0430\u043A\u0436\u0435 \u043E\u0441\u0442\u0430\u0432\u043B\u044F\u044F \u0437\u0430 \u0441\u043E\u0431\u043E\u0439 \u043A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0441\u043B\u0435\u0434.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0427\u0443\u0442\u044C\u0451 \u0445\u0438\u0449\u043D\u0438\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0447\u0443\u0432\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0433\u043E-\u0443\u0433\u043E\u0434\u043D\u043E \u0432 \u043F\u0440\u0435\u0434\u0435\u043B\u0430\u0445 \u0432\u0430\u0448\u0435\u0433\u043E \u0441\u0435\u043A\u0442\u043E\u0440\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0418\u0437\u0432\u0435\u0440\u0436\u0435\u043D\u0438\u0435 \u043A\u0440\u043E\u0432\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("800 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043C\u0430\u043D\u0438\u043F\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u043C\u0438 \u0432\u0430\u0441 \u043B\u0443\u0436\u0430\u043C\u0438 \u043A\u0440\u043E\u0432\u0438 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u0447\u0435\u0442\u044B\u0440\u0435\u0445 \u043C\u0435\u0442\u0440\u043E\u0432, \u043F\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044F \u0438\u0445 \u0432 \u0448\u0438\u043F\u044B, \u043F\u0440\u043E\u0442\u044B\u043A\u0430\u044E\u0449\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0432\u0448\u0435\u0433\u043E \u043D\u0430 \u043D\u0438\u0445.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u043E\u0431\u0440\u044F\u0434",16),(0,e.createTextVNode)(": \u0411\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u0442\u044C \u043A\u0440\u043E\u0432\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0430\u0441 \u0441\u0443\u0449\u0435\u0441\u0442\u0432, \u0431\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u044F \u0447\u0435\u043C\u0443 \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E \u043B\u0435\u0447\u0438\u0442\u044C\u0441\u044F \u0438 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u043A\u0430\u043A\u0438\u0445-\u043B\u0438\u0431\u043E \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0445 \u044D\u0444\u0444\u0435\u043A\u0442\u043E\u0432.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",onClick:function(){function C(){return d("hemomancer")}return C}()})]})}return i}(),y=r.UmbrMenu=function(){function i(c,s){var u=(0,a.useBackend)(s),d=u.act,f=u.data,l=f.umbrae;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043C\u0431\u0440\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:l[0],icon_state:l[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u0442\u0435\u043C\u043D\u043E\u0442\u0435, \u0437\u0430\u0441\u0430\u0434\u0430\u0445 \u0438 \u0441\u043A\u0440\u044B\u0442\u043D\u043E\u043C \u043F\u0435\u0440\u0435\u043C\u0435\u0449\u0435\u043D\u0438\u0438.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043A\u0440\u043E\u0432 \u0442\u044C\u043C\u044B",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0431\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0431\u044B\u0442\u044C \u043F\u043E\u0447\u0442\u0438 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u044B\u043C \u0438 \u0431\u044B\u0441\u0442\u0440\u043E \u043F\u0435\u0440\u0435\u0434\u0432\u0438\u0433\u0430\u0442\u044C\u0441\u044F \u0432 \u0442\u0435\u043C\u043D\u044B\u0445 \u0443\u0447\u0430\u0441\u0442\u043A\u0430\u0445 \u0441\u0442\u0430\u043D\u0446\u0438\u0438. \u0422\u0430\u043A\u0436\u0435, \u0431\u0443\u0434\u0443\u0447\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u043C, \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043B\u044E\u0431\u043E\u0439 \u0443\u0440\u043E\u043D \u043E\u0442 \u043E\u0436\u043E\u0433\u043E\u0432 \u043F\u043E \u0432\u0430\u043C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0422\u0435\u043D\u0435\u0432\u043E\u0439 \u044F\u043A\u043E\u0440\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u043D\u0430 \u043C\u0435\u0441\u0442\u0435 \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u043C\u0430\u044F\u043A \u043F\u043E\u0441\u043B\u0435 \u043D\u0435\u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438. \u041F\u043E\u0432\u0442\u043E\u0440\u043D\u043E\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u0432\u0430\u0441 \u043E\u0431\u0440\u0430\u0442\u043D\u043E \u043A \u043C\u0430\u044F\u043A\u0443. \u0415\u0441\u043B\u0438 \u0441\u043F\u0443\u0441\u0442\u044F \u0434\u0432\u0435 \u043C\u0438\u043D\u0443\u0442\u044B \u043F\u043E\u0441\u043B\u0435 \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u043D\u0435 \u0431\u044B\u043B\u0430 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043D\u043E\u0432\u0430, \u0442\u043E \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0435\u043D\u044B \u043A \u043C\u0430\u044F\u043A\u0443. \u041C\u0430\u044F\u043A \u043D\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u0435\u043D \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0430\u0441 \u043C\u0435\u0436\u0434\u0443 \u0441\u0435\u043A\u0442\u043E\u0440\u0430\u043C\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0422\u0435\u043D\u0435\u0432\u0430\u044F \u043B\u043E\u0432\u0443\u0448\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0441\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C \u043B\u043E\u0432\u0443\u0448\u043A\u0438, \u0442\u0440\u0430\u0432\u043C\u0438\u0440\u0443\u044E\u0449\u0438\u0435 \u0438 \u043E\u0441\u043B\u0435\u043F\u043B\u044F\u044E\u0449\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0432\u0448\u0435\u0433\u043E \u0432 \u043D\u0438\u0445. \u041B\u043E\u0432\u0443\u0448\u043A\u0443 \u0442\u044F\u0436\u0435\u043B\u043E \u0437\u0430\u043C\u0435\u0442\u0438\u0442\u044C, \u043D\u043E \u043E\u043D\u0430 \u0438\u0441\u0447\u0435\u0437\u0430\u0435\u0442 \u043F\u043E\u0434 \u0432\u043E\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043C \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u043E\u0432 \u044F\u0440\u043A\u043E\u0433\u043E \u0441\u0432\u0435\u0442\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0428\u0430\u0433 \u0432 \u0442\u0435\u043D\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u043B\u044E\u0431\u043E\u0435 \u043C\u0435\u0441\u0442\u043E \u0432 \u043F\u0440\u0435\u0434\u0435\u043B\u0430\u0445 \u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0433\u0430\u0441\u0438\u0442\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u044B\u0432\u043E\u0434\u0438\u0442\u044C \u0438\u0437 \u0441\u0442\u0440\u043E\u044F \u043B\u044E\u0431\u044B\u0435 \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0438 \u0441\u0432\u0435\u0442\u0430, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0433\u043B\u043E\u0443\u0448\u0440\u0443\u043C\u044B.")],0),(0,e.createVNode)(1,"b",null,"\u0411\u043E\u0439 \u0441 \u0442\u0435\u043D\u044C\u044E",16),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("800 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),", \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u0442\u0435\u043D\u0435\u0432\u044B\u0445 \u043A\u043B\u043E\u043D\u043E\u0432, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0431\u0443\u0434\u0443\u0442 \u0430\u0442\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u0446\u0435\u043B\u044C, \u043F\u043E\u043A\u0430 \u0432\u044B \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u0435\u0441\u044C \u0440\u044F\u0434\u043E\u043C.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u0412\u0435\u0447\u043D\u0430\u044F \u0442\u044C\u043C\u0430",16),(0,e.createTextVNode)(": \u043F\u043E\u0441\u043B\u0435 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u0432\u044B \u0440\u0430\u0441\u0441\u0442\u0432\u043E\u0440\u044F\u0435\u0442\u0435\u0441\u044C \u0432 \u043D\u0435\u0447\u0435\u0441\u0442\u0438\u0432\u043E\u0439 \u0442\u0435\u043C\u043D\u043E\u0442\u0435, \u0432 \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u0435\u043D \u043B\u0438\u0448\u044C \u0441\u0438\u043B\u044C\u043D\u0435\u0439\u0448\u0438\u0439 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0441\u0432\u0435\u0442\u0430. \u0425\u043E\u043B\u043E\u0434, \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0435\u0439 \u0432\u0430\u0441 \u0442\u044C\u043C\u044B \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043C\u043E\u0440\u0430\u0436\u0438\u0432\u0430\u0442\u044C \u0432\u0441\u0435\u0445 \u0436\u0438\u0432\u044B\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u043F\u043E\u0431\u043B\u0438\u0437\u043E\u0441\u0442\u0438.")],4),(0,e.createVNode)(1,"p",null,"\u0412\u044B \u0442\u0430\u043A\u0436\u0435 \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442\u0435 X-ray \u0437\u0440\u0435\u043D\u0438\u0435",16),(0,e.createComponentVNode)(2,t.Button,{content:"\u0423\u043C\u0431\u0440\u0430",onClick:function(){function C(){return d("umbrae")}return C}()})]})}return i}(),k=r.GarMenu=function(){function i(c,s){var u=(0,a.useBackend)(s),d=u.act,f=u.data,l=f.gargantua;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:l[0],icon_state:l[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u0441\u0442\u043E\u0439\u043A\u043E\u0441\u0442\u0438 \u0438 \u0431\u043B\u0438\u0436\u043D\u0435\u043C \u0431\u043E\u0435.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u0411\u0443\u0434\u0435\u0442 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u0435 \u0442\u0435\u043C \u0441\u0438\u043B\u044C\u043D\u0435\u0435, \u0447\u0435\u043C \u0431\u043E\u043B\u044C\u0448\u0435 \u0443\u0440\u043E\u043D\u0430 \u0432\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0432\u0430\u043B",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 150"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0435 \u0441\u043E\u043F\u0440\u043E\u0442\u0438\u0432\u043B\u0435\u043D\u0438\u0435 \u043E\u0433\u043B\u0443\u0448\u0435\u043D\u0438\u044E, \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u043E\u043C\u0443 \u0438 \u0441\u0442\u0430\u043C\u0438\u043D\u0430 \u0443\u0440\u043E\u043D\u0443. \u0412\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0441\u0442\u0440\u0435\u043B\u044F\u0442\u044C \u043F\u043E\u043A\u0430 \u0430\u043A\u0442\u0438\u0432\u043D\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0423\u0434\u0430\u0440\u043D\u0430\u044F \u0432\u043E\u043B\u043D\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 250"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0441\u043E\u0442\u0440\u044F\u0441\u0430\u0442\u044C \u0437\u0435\u043C\u043B\u044E \u043F\u043E\u0434 \u043D\u043E\u0433\u0430\u043C\u0438, \u0447\u0442\u043E\u0431\u044B \u043E\u0433\u043B\u0443\u0448\u0438\u0442\u044C \u0438 \u043E\u0442\u0442\u043E\u043B\u043A\u043D\u0443\u0442\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0440\u0430\u0433\u043E\u0432.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0434\u0440\u0430\u0439\u0432",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 250"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0434\u0430\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u0438\u0431\u0430\u0432\u043A\u0443 \u043A \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u0438 \u043D\u0430 \u043A\u043E\u0440\u043E\u0442\u043A\u043E\u0435 \u0432\u0440\u0435\u043C\u044F.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0432\u0430\u043B II",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 400"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u0435\u0441\u044C \u0443\u0440\u043E\u043D \u0432 \u0431\u043B\u0438\u0436\u043D\u0435\u043C \u0431\u043E\u044E \u043D\u0430 10.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041D\u0435\u0443\u0434\u0435\u0440\u0436\u0438\u043C\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 600"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0431\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043E\u0442\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0434\u0432\u0435\u0440\u0438 \u043F\u0440\u0438 \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u0438, \u0434\u0430\u0436\u0435 \u043D\u0435 \u0438\u043C\u0435\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430. \u0412\u0430\u0441 \u0442\u0430\u043A\u0436\u0435 \u043D\u0435 \u043C\u043E\u0433\u0443\u0442 \u0442\u043E\u043B\u043A\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0442\u0430\u0449\u0438\u0442\u044C, \u043F\u043E\u043A\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u043D\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0414\u0435\u043C\u043E\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0445\u0432\u0430\u0442\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 800"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A \u0446\u0435\u043B\u0438 \u0434\u0435\u043C\u043E\u043D\u0438\u0447\u0435\u0441\u043A\u0443\u044E \u0440\u0443\u043A\u0443. \u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u0438\u043D\u0442\u0435\u043D\u0442\u0430, disarm/grab, \u0432\u044B \u043E\u0442\u0442\u043E\u043B\u043A\u043D\u0435\u0442\u0435/\u043F\u0440\u0438\u0442\u044F\u043D\u0435\u0442\u0435 \u0446\u0435\u043B\u044C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u0420\u044B\u0432\u043E\u043A",16),(0,e.createTextVNode)(": \u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0434\u0435\u043B\u0430\u0442\u044C \u0440\u044B\u0432\u043E\u043A \u0432 \u0432\u0430\u0448\u0443 \u0446\u0435\u043B\u044C, \u0440\u0430\u0437\u0440\u0443\u0448\u0430\u044F \u0438 \u043E\u0442\u0442\u0430\u043B\u043A\u0438\u0432\u0430\u044F \u0432\u0441\u0435, \u0432\u043E \u0447\u0442\u043E \u0432\u0440\u0435\u0436\u0435\u0442\u0435\u0441\u044C.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",onClick:function(){function C(){return d("gargantua")}return C}()})]})}return i}(),V=r.DantMenu=function(){function i(c,s){var u=(0,a.useBackend)(s),d=u.act,f=u.data,l=f.dantalion;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:l[0],icon_state:l[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u0438\u0438 \u0438 \u0438\u043B\u043B\u044E\u0437\u0438\u044F\u0445.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0434\u0447\u0438\u043D\u0435\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0434\u0447\u0438\u043D\u044F\u0435\u0442 \u0446\u0435\u043B\u044C \u0432\u0430\u0448\u0435\u0439 \u0432\u043E\u043B\u0435, \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043E\u0442 \u0432\u0430\u0441 \u043D\u0435 \u0448\u0435\u0432\u0435\u043B\u0438\u0442\u044C\u0441\u044F \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u0438\u044F. \u041D\u0435 \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u043D\u0430 \u043D\u043E\u0441\u0438\u0442\u0435\u043B\u0435\u0439 \u0438\u043C\u043F\u043B\u0430\u043D\u0442\u0430 \u0437\u0430\u0449\u0438\u0442\u044B \u0440\u0430\u0437\u0443\u043C\u0430 \u0438 \u043D\u0430 \u0443\u0436\u0435 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u043D\u044B\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0435\u0434\u0435\u043B \u0440\u0430\u0431\u043E\u0432",16),(0,e.createTextVNode)(": \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0440\u0430\u0431\u043E\u0442\u0438\u0442\u044C \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C \u043E\u0434\u043D\u043E\u0433\u043E \u0440\u0430\u0431\u0430 \u0437\u0430 \u0440\u0430\u0437. \u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0440\u0430\u0431\u043E\u0432 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0442\u0438 \u043F\u0440\u0438 \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u0438"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(","),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u0438 \u043F\u043E\u043B\u043D\u043E\u0439 \u0441\u0438\u043B\u044B \u0441 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C\u043E\u043C \u0432 4 \u0440\u0430\u0431\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0422\u0435\u043B\u0435\u043F\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0441\u0432\u044F\u0437\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0440\u0430\u0437\u0433\u043E\u0432\u0430\u0440\u0438\u0432\u0430\u0442\u044C \u0441 \u0432\u0430\u0448\u0438\u043C\u0438 \u0440\u0430\u0431\u0430\u043C\u0438, \u0432\u0430\u0448\u0438 \u0440\u0430\u0431\u044B \u0442\u0430\u043A\u0436\u0435 \u043C\u043E\u0433\u0443\u0442 \u043E\u0442\u0432\u0435\u0447\u0430\u0442\u044C \u0432\u0430\u043C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0434\u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u043E\u0431\u043C\u0435\u043D",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043C\u0435\u043D\u044F\u0442\u044C\u0441\u044F \u043C\u0435\u0441\u0442\u0430\u043C\u0438 \u0441 \u0446\u0435\u043B\u044C\u044E.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0423\u043C\u0438\u0440\u043E\u0442\u0432\u043E\u0440\u0435\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0443\u0441\u043F\u043E\u043A\u043E\u0438\u0442\u044C \u0446\u0435\u043B\u044C, \u043E\u0442\u043E\u0431\u0440\u0430\u0432 \u0443 \u043D\u0435\u0435 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u043D\u0430\u043D\u0435\u0441\u0442\u0438 \u0432\u0440\u0435\u0434 \u043A\u043E\u043C\u0443-\u043B\u0438\u0431\u043E \u0432 \u0442\u0435\u0447\u0435\u043D\u0438\u0435 40 \u0441\u0435\u043A\u0443\u043D\u0434.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0438\u043C\u0430\u043D\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043D\u0435\u043D\u0430\u0434\u043E\u043B\u0433\u043E \u0434\u0435\u043B\u0430\u0435\u0442 \u0432\u0430\u0441 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u044B\u043C \u0438 \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u043A\u043E\u043F\u0438\u044E \u043E\u0431\u043C\u0430\u043D\u043A\u0443.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0421\u043F\u043B\u043E\u0442\u0438\u0442\u044C \u0440\u0430\u0431\u043E\u0432",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0441\u043D\u0438\u043C\u0430\u0435\u0442 \u0441 \u0431\u043B\u0438\u0437\u0441\u0442\u043E\u044F\u0449\u0438\u0445 \u0440\u0430\u0431\u043E\u0432 \u043B\u044E\u0431\u044B\u0435 \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0435 \u0443\u0437\u044B",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("800 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0441\u0432\u044F\u0437\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0441 \u0441\u043E \u0432\u0441\u0435\u043C\u0438 \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u043C\u0438 \u0432\u0430\u0441 \u0440\u0430\u0431\u0430\u043C\u0438, \u0435\u0441\u043B\u0438 \u043A\u0442\u043E-\u043B\u0438\u0431\u043E \u0432 \u0441\u0432\u044F\u0437\u043A\u0435 \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442 \u0443\u0440\u043E\u043D, \u0442\u043E \u043E\u043D \u0434\u0435\u043B\u0438\u0442\u0441\u044F \u043C\u0435\u0436\u0434\u0443 \u0432\u0441\u0435\u043C\u0438 \u043E\u0441\u0442\u0430\u043B\u044C\u043D\u044B\u043C\u0438. \u0415\u0441\u043B\u0438 \u0440\u0430\u0431 \u0443\u0445\u043E\u0434\u0438\u0442 \u0434\u0430\u043B\u0435\u043A\u043E \u043E\u0442 \u0432\u0430\u0441, \u0442\u043E \u0432\u044B \u0442\u0435\u0440\u044F\u0435\u0442\u0435 \u0441\u0432\u044F\u0437\u044C \u0441 \u043D\u0438\u043C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u041C\u0430\u0441\u0441\u043E\u0432\u0430\u044F \u0438\u0441\u0442\u0435\u0440\u0438\u044F",16),(0,e.createTextVNode)(": \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u043C\u0430\u0441\u0441\u043E\u0432\u0443\u044E \u0433\u0430\u043B\u043B\u044E\u0446\u0438\u043D\u0430\u0446\u0438\u044E, \u043E\u0441\u043B\u0435\u043F\u0438\u0432 \u0432\u0441\u0435\u0445 \u043F\u043E\u0431\u043B\u0438\u0437\u043E\u0441\u0442\u0438, \u0430 \u0437\u0430\u0442\u0435\u043C \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0432 \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0438\u0434\u0435\u0442\u044C \u0434\u0440\u0443\u0433 \u0432 \u0434\u0440\u0443\u0433\u0435 \u0440\u0430\u0437\u043B\u0438\u0447\u043D\u044B\u0445 \u0436\u0438\u0432\u043E\u0442\u043D\u044B\u0445.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",onClick:function(){function C(){return d("dantalion")}return C}()})]})}return i}(),p=r.BestMenu=function(){function i(c,s){var u=(0,a.useBackend)(s),d=u.act,f=u.data,l=f.bestia;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0411\u0435\u0441\u0442\u0438\u044F",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:l[0],icon_state:l[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043F\u0440\u0435\u0432\u0440\u0430\u0449\u0435\u043D\u0438\u0438 \u0438 \u0434\u043E\u0431\u044B\u0447\u0435 \u0442\u0440\u043E\u0444\u0435\u0435\u0432.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0442\u0440\u043E\u0444\u0435\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0442\u0440\u043E\u0444\u0435\u0435\u0432, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0432\u0441\u0435 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B, \u0447\u0442\u043E \u043E\u043D\u0438 \u0434\u0430\u044E\u0442.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0435\u043F\u0430\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0432\u0434\u043E\u0431\u0430\u0432\u043E\u043A \u043A \u043A\u0440\u043E\u0432\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u0442\u044C \u043E\u0440\u0433\u0430\u043D\u044B \u0432 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0440\u043E\u0444\u0435\u0435\u0432 \u0434\u043B\u044F \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u044F \u0432\u0430\u0448\u0438\u0445 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u0435\u0439.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0435\u0434\u0435\u043B \u043F\u0440\u0435\u043F\u0430\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0439",16),(0,e.createTextVNode)(": \u0437\u0430 \u0440\u0430\u0437 \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0433\u043B\u043E\u0442\u0438\u0442\u044C \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C \u043E\u0434\u0438\u043D \u043E\u0440\u0433\u0430\u043D. \u041F\u0440\u0435\u0434\u0435\u043B \u0431\u0443\u0434\u0435\u0442 \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u0438 \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u0438"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u0438 \u043F\u043E\u043B\u043D\u043E\u0439 \u0441\u0438\u043B\u044B \u0441 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C\u043E\u043C \u0432 \u0442\u0440\u0438 \u043E\u0440\u0433\u0430\u043D\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0417\u0430\u0440\u0430\u0436\u0435\u043D\u043D\u044B\u0439 \u0442\u0440\u043E\u0444\u0435\u0439",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0433\u043B\u0443\u0448\u0430\u0442\u044C \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u043E\u0432 \u0441 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0439 \u0434\u0438\u0441\u0442\u0430\u043D\u0446\u0438\u0438, \u0437\u0430\u0440\u0430\u0436\u0430\u044F \u0438\u0445 \u043C\u043E\u0433\u0438\u043B\u044C\u043D\u043E\u0439 \u043B\u0438\u0445\u043E\u0440\u0430\u0434\u043A\u043E\u0439.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0420\u044B\u0432\u043E\u043A",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0431\u044B\u0441\u0442\u0440\u043E \u0441\u043E\u043A\u0440\u0430\u0442\u0438\u0442\u044C \u0440\u0430\u0441\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u043C\u0435\u0436\u0434\u0443 \u0432\u0430\u043C\u0438 \u0438 \u0446\u0435\u043B\u044C\u044E \u0438\u043B\u0438 \u0441\u0431\u0435\u0436\u0430\u0442\u044C \u0438\u0437 \u043E\u043F\u0430\u0441\u043D\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043C\u0435\u0442\u0438\u0442\u044C \u0434\u043E\u0431\u044B\u0447\u0443",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0442\u043C\u0435\u0442\u0438\u0442\u044C \u0436\u0435\u0440\u0442\u0432\u0443, \u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0432 \u0435\u0435 \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0432 \u0435\u0435 \u043F\u0443\u0442\u0430\u0442\u044C\u0441\u044F \u0432 \u043D\u043E\u0433\u0430\u0445.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041C\u0435\u0442\u0430\u043C\u043E\u0440\u0444\u043E\u0437\u0430 - \u041B\u0435\u0442\u0443\u0447\u0438\u0435 \u043C\u044B\u0448\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0441\u043C\u0435\u0440\u0442\u043E\u043D\u043E\u0441\u043D\u044B\u043C\u0438 \u043A\u043E\u0441\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u043C\u0438 \u043B\u0435\u0442\u0443\u0447\u0438\u043C\u0438 \u043C\u044B\u0448\u0430\u043C\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0410\u043D\u0430\u0431\u0438\u043E\u0437",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0434\u0440\u0435\u0432\u043D\u044F\u044F \u0442\u0435\u0445\u043D\u0438\u043A\u0430, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0430\u044F \u0432\u0430\u043C \u0437\u0430\u043B\u0435\u0447\u0438\u0442\u044C \u043F\u043E\u0447\u0442\u0438 \u043B\u044E\u0431\u044B\u0435 \u0440\u0430\u043D\u0435\u043D\u0438\u044F \u0437\u0430 \u0441\u0447\u0435\u0442 \u0441\u043D\u0430 \u0432 \u0433\u0440\u043E\u0431\u0443.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0438\u0437\u044B\u0432 \u043B\u0435\u0442\u0443\u0447\u0438\u0445 \u043C\u044B\u0448\u0435\u0439",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0435\u0442\u0443\u0447\u0438\u0445 \u043C\u044B\u0448\u0435\u0439 \u0434\u043B\u044F \u043F\u043E\u043C\u043E\u0449\u0438 \u0432 \u0431\u043E\u044E.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u041C\u0435\u0442\u0430\u043C\u043E\u0440\u0444\u043E\u0437\u0430 - \u0413\u043E\u043D\u0447\u0430\u044F",16),(0,e.createTextVNode)(": \u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0432 \u0441\u043E\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u0443\u044E \u0444\u043E\u0440\u043C\u0443 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0441\u0443\u0449\u043D\u043E\u0441\u0442\u0438, \u0437\u0430\u0432\u043B\u0430\u0434\u0435\u0432\u0448\u0435\u0439 \u0432\u0430\u0448\u0435\u0439 \u0434\u0443\u0448\u043E\u0439.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0411\u0435\u0441\u0442\u0438\u044F",onClick:function(){function C(){return d("bestia")}return C}()})]})}return i}()},45770:function(I,r,n){"use strict";r.__esModule=!0,r.VampireTrophiesStatus=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=function(b){return(Math.round(b*10)/10).toFixed(1)},S=r.VampireTrophiesStatus=function(){function C(b,v){return(0,e.createComponentVNode)(2,o.Window,{theme:"ntos_spooky",width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,l)]})})})}return C}(),y=function(b,v){var h=(0,a.useBackend)(v),g=h.act,N=h.data,x=N.hearts,B=N.lungs,L=N.livers,T=N.kidneys,E=N.eyes,w=N.ears,A=N.trophies_max_gen,O=N.trophies_max_crit,M=N.organs_icon,P=N.icon_hearts,R=N.icon_lungs,F=N.icon_livers,_=N.icon_kidneys,U=N.icon_eyes,W=N.icon_ears;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0422\u0440\u043E\u0444\u0435\u0438",color:"red",textAlign:"center",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,width:"16.6%",children:[(0,e.createComponentVNode)(2,t.DmIcon,{icon:M,icon_state:P,verticalAlign:"middle",style:{"margin-left":"-32px","margin-right":"-48px","margin-top":"-32px","margin-bottom":"-48px",height:"128px",width:"128px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,textColor:xv;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.DmIcon,{verticalAlign:"middle",icon:f,icon_state:l,fallback:(0,e.createComponentVNode)(2,o.Icon,{p:.66,name:"spinner",size:2,spin:!0})})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:u.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Box,{color:d<=0&&"bad"||d<=u.max_amount/2&&"average"||"good",children:[d," in stock"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,disabled:T,icon:L,content:B,textAlign:"left",onClick:function(){function E(){return c("vend",{inum:u.inum})}return E}()})})]})},y=r.Vending=function(){function k(V,p){var i=(0,t.useBackend)(p),c=i.act,s=i.data,u=s.user,d=s.guestNotice,f=s.userMoney,l=s.chargesMoney,C=s.product_records,b=C===void 0?[]:C,v=s.coin_records,h=v===void 0?[]:v,g=s.hidden_records,N=g===void 0?[]:g,x=s.stock,B=s.vend_ready,L=s.coin_name,T=s.inserted_item_name,E=s.panel_open,w=s.speaker,A=s.imagelist,O;return O=[].concat(b,h),s.extended_inventory&&(O=[].concat(O,N)),O=O.filter(function(M){return!!M}),(0,e.createComponentVNode)(2,m.Window,{width:470,height:100+Math.min(b.length*38,500),title:"Vending Machine",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[!!l&&(0,e.createComponentVNode)(2,o.Section,{title:"User",children:u&&(0,e.createComponentVNode)(2,o.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,u.name,0),","," ",(0,e.createVNode)(1,"b",null,u.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[f,(0,e.createTextVNode)(" credits")],0),"."]})||(0,e.createComponentVNode)(2,o.Box,{color:"light-grey",children:d})}),!!L&&(0,e.createComponentVNode)(2,o.Section,{title:"Coin",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Remove Coin",onClick:function(){function M(){return c("remove_coin",{})}return M}()}),children:(0,e.createComponentVNode)(2,o.Box,{children:L})}),!!T&&(0,e.createComponentVNode)(2,o.Section,{title:"Item",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject Item",onClick:function(){function M(){return c("eject_item",{})}return M}()}),children:(0,e.createComponentVNode)(2,o.Box,{children:T})}),!!E&&(0,e.createComponentVNode)(2,o.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,o.Button,{icon:w?"check":"volume-mute",selected:w,content:"Speaker",textAlign:"left",onClick:function(){function M(){return c("toggle_voice",{})}return M}()})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Products",fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:O.map(function(M){return(0,e.createComponentVNode)(2,S,{product:M,productStock:x[M.name],productIcon:M.icon,productIconState:M.icon_state},M.name)})})})})]})})})}return k}()},68971:function(I,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.VolumeMixer=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+c.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:c.map(function(s,u){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:u>0&&"0.5rem",children:s.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return p("volume",{channel:s.num,volume:0})}return d}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:s.volume,onChange:function(){function d(f,l){return p("volume",{channel:s.num,volume:l})}return d}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return p("volume",{channel:s.num,volume:100})}return d}()})})})]})})],4,s.num)})})})})}return S}()},2510:function(I,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.VotePanel=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.remaining,s=i.question,u=i.choices,d=i.user_vote,f=i.counts,l=i.show_counts,C=i.show_cancel;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:s,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1,children:["Time remaining: ",Math.round(c/10),"s"]}),u.map(function(b){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:b+(l?" ("+(f[b]||0)+")":""),onClick:function(){function v(){return p("vote",{target:b})}return v}(),selected:b===d})},b)}),!!C&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Cancel",onClick:function(){function b(){return p("cancel")}return b}()})},"Cancel")]})})})}return S}()},30138:function(I,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.Wires=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.wires||[],s=i.status||[],u=56+c.length*23+(status?0:15+s.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:u,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:d.color_name,labelColor:d.seen_color,color:d.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:d.cut?"Mend":"Cut",onClick:function(){function f(){return p("cut",{wire:d.color})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function f(){return p("pulse",{wire:d.color})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{content:d.attached?"Detach":"Attach",onClick:function(){function f(){return p("attach",{wire:d.color})}return f}()})],4),children:!!d.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),d.wire,(0,e.createTextVNode)(")")],0)},d.seen_color)})})})}),!!s.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:s.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:d},d)})})})]})})})}return S}()},30995:function(I,r,n){"use strict";r.__esModule=!0,r.Workshop=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(73379),S=n(98595),y=["title","items"];function k(u,d){if(u==null)return{};var f={};for(var l in u)if({}.hasOwnProperty.call(u,l)){if(d.includes(l))continue;f[l]=u[l]}return f}var V=function(d,f,l){return d.requirements===null?!0:!(d.requirements.brass>f||d.requirements.power>l)},p=r.Workshop=function(){function u(d,f){var l=(0,t.useBackend)(f),C=l.act,b=l.data,v=b.brass_amount,h=b.power_amount,g=b.building,N=b.buildStart,x=b.buildEnd,B=b.worldTime,L=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),T=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),E={float:"left",width:"60%"},w={float:"right",width:"39%"};return(0,e.createComponentVNode)(2,S.Window,{width:400,height:500,theme:"clockwork",children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,o.Section,{title:"Materials",children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Brass",children:[L,(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-down",height:"19px",tooltip:"Dispense Brass",tooltipPosition:"bottom-start",ml:"0.5rem",onClick:function(){function A(){return C("dispense")}return A}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:T})]}),g&&(0,e.createComponentVNode)(2,o.ProgressBar.Countdown,{mt:2,start:N,current:B,end:x,bold:!0,children:["Building ",g,"\xA0(",(0,e.createComponentVNode)(2,m.Countdown,{current:B,timeLeft:x-B,format:function(){function A(O,M){return M.substr(3)}return A}()}),")"]})]})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,c)})})]})})})}return u}(),i=function(d,f){var l=(0,t.useLocalState)(f,"search",""),C=l[0],b=l[1],v=(0,t.useLocalState)(f,"sort",""),h=v[0],g=v[1],N=(0,t.useLocalState)(f,"descending",!1),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Stack,{width:"100%",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:"1",mr:"0.5rem",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function L(T,E){return b(E)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"arrow-down":"arrow-up",height:"19px",tooltip:x?"Descending order":"Ascending order",tooltipPosition:"bottom-start",ml:"0.5rem",onClick:function(){function L(){return B(!x)}return L}()})})]})})},c=function(d,f){var l=(0,t.useBackend)(f),C=l.act,b=l.data,v=b.items,h=(0,t.useLocalState)(f,"search",""),g=h[0],N=h[1],x=(0,t.useLocalState)(f,"sort","Alphabetical"),B=x[0],L=x[1],T=(0,t.useLocalState)(f,"descending",!1),E=T[0],w=T[1],A=(0,a.createSearch)(g,function(P){return P[0]}),O=!1,M=Object.entries(v).map(function(P,R){var F=Object.entries(P[1]).filter(A).map(function(_){return _[1].affordable=V(_[1],b.brass_amount,b.power_amount),_[1]});if(F.length!==0)return E&&(F=F.reverse()),O=!0,(0,e.createComponentVNode)(2,s,{title:P[0],items:F},P[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:"1",children:(0,e.createComponentVNode)(2,o.Section,{children:O?M:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},s=function(d,f){var l=(0,t.useBackend)(f),C=l.act,b=l.data,v=d.title,h=d.items,g=k(d,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},g,{children:h.map(function(N){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.DmIcon,{icon:N.icon,icon_state:N.icon_state,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,o.Button,{icon:"hammer",disabled:!V(N,b.brass_amount,b.power_amount),onClick:function(){function x(){return C("make",{cat:v,name:N.name})}return x}(),children:(0,a.toTitleCase)((0,a.toTitleCase)(N.name))}),(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"right"},children:N.requirements&&Object.keys(N.requirements).map(function(x){return(0,a.toTitleCase)(x)+": "+N.requirements[x]}).join(", ")||(0,e.createComponentVNode)(2,o.Box,{children:"No resources required."})}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})]},N.name)})})))}},49148:function(I,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036);function m(p,i){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=S(p))||i&&p&&typeof p.length=="number"){c&&(p=c);var s=0;return function(){return s>=p.length?{done:!0}:{done:!1,value:p[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(p,i){if(p){if(typeof p=="string")return y(p,i);var c={}.toString.call(p).slice(8,-1);return c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set"?Array.from(p):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?y(p,i):void 0}}function y(p,i){(i==null||i>p.length)&&(i=p.length);for(var c=0,s=Array(i);c0&&!N.includes(F.ref)&&!h.includes(F.ref),checked:h.includes(F.ref),onClick:function(){function _(){return x(F.ref)}return _}()},F.desc)})]})]})})}return p}()},26991:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),m=function(k,V,p,i,c){return ki?"average":k>c?"bad":"good"},S=r.AtmosScan=function(){function y(k,V){var p=k.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(i){return i.val!=="0"||i.entry==="Pressure"||i.entry==="Temperature"})(p).map(function(i){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:i.entry,color:m(i.val,i.bad_low,i.poor_low,i.poor_high,i.bad_high),children:[i.val,i.units]},i.entry)})})})}return y}()},85870:function(I,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(89005),a=n(36036),t=n(15964),o=function(y){return y+" unit"+(y===1?"":"s")},m=r.BeakerContents=function(){function S(y){var k=y.beakerLoaded,V=y.beakerContents,p=V===void 0?[]:V,i=y.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!k&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||p.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),p.map(function(c,s){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(c.volume)," of ",c.name]},c.name),!!i&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:i(c,s)})]},c.name)})]})}return S}();m.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},3939:function(I,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(89005),a=n(72253),t=n(36036),o={},m=r.modalOpen=function(){function p(i,c,s){var u=(0,a.useBackend)(i),d=u.act,f=u.data,l=Object.assign(f.modal?f.modal.args:{},s||{});d("modal_open",{id:c,arguments:JSON.stringify(l)})}return p}(),S=r.modalRegisterBodyOverride=function(){function p(i,c){o[i]=c}return p}(),y=r.modalAnswer=function(){function p(i,c,s,u){var d=(0,a.useBackend)(i),f=d.act,l=d.data;if(l.modal){var C=Object.assign(l.modal.args||{},u||{});f("modal_answer",{id:c,answer:s,arguments:JSON.stringify(C)})}}return p}(),k=r.modalClose=function(){function p(i,c){var s=(0,a.useBackend)(i),u=s.act;u("modal_close",{id:c})}return p}(),V=r.ComplexModal=function(){function p(i,c){var s=(0,a.useBackend)(c),u=s.data;if(u.modal){var d=u.modal,f=d.id,l=d.text,C=d.type,b,v=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function L(){return k(c)}return L}()}),h,g,N="auto";if(o[f])h=o[f](u.modal,c);else if(C==="input"){var x=u.modal.value;b=function(){function L(T){return y(c,f,x)}return L}(),h=(0,e.createComponentVNode)(2,t.Input,{value:u.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function L(T,E){x=E}return L}()}),g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function L(){return k(c)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function L(){return y(c,f,x)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(C==="choice"){var B=typeof u.modal.choices=="object"?Object.values(u.modal.choices):u.modal.choices;h=(0,e.createComponentVNode)(2,t.Dropdown,{options:B,selected:u.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function L(T){return y(c,f,T)}return L}()}),N="initial"}else C==="bento"?h=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:u.modal.choices.map(function(L,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(u.modal.value,10),onClick:function(){function E(){return y(c,f,T+1)}return E}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:L})})},T)})}):C==="boolean"&&(g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:u.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function L(){return y(c,f,0)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:u.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function L(){return y(c,f,1)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:i.maxWidth||window.innerWidth/2+"px",maxHeight:i.maxHeight||window.innerHeight/2+"px",onEnter:b,mx:"auto",overflowY:N,"padding-bottom":"5px",children:[l&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:l}),o[f]&&v,h,g]})}}return p}()},41874:function(I,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25328),m=n(76910),S=m.COLORS.department,y=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],k=function(s){return y.indexOf(s)!==-1?"green":"orange"},V=function(s){if(y.indexOf(s)!==-1)return!0},p=function(s){return s.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),s.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{color:k(u.real_rank),bold:V(u.real_rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(u.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(u.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.active})]},u.name+u.rank)})]})},i=r.CrewManifest=function(){function c(s,u){var d=(0,a.useBackend)(u),f=d.act,l;if(s.data)l=s.data;else{var C=(0,a.useBackend)(u),b=C.data;l=b}var v=l,h=v.manifest,g=h.heads,N=h.pro,x=h.sec,B=h.eng,L=h.med,T=h.sci,E=h.ser,w=h.sup,A=h.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:p(g)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.procedure,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Procedure"})}),level:2,children:p(N)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:p(x)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:p(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:p(L)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:p(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:p(E)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:p(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:p(A)})]})}return c}()},19203:function(I,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(89005),a=n(36036),t=n(72253),o=r.InputButtons=function(){function m(S,y){var k=(0,t.useBackend)(y),V=k.act,p=k.data,i=p.large_buttons,c=p.swapped_buttons,s=S.input,u=S.message,d=S.disabled,f=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!i,fluid:!!i,onClick:function(){function C(){return V("submit",{entry:s})}return C}(),textAlign:"center",tooltip:i&&u,disabled:d,width:!i&&6}),l=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!i,fluid:!!i,onClick:function(){function C(){return V("cancel")}return C}(),textAlign:"center",width:!i&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:l}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:l}),!i&&u&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:u})}),i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:f}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:f})]})}return m}()},195:function(I,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.InterfaceLockNoticeBox=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=S.siliconUser,c=i===void 0?p.siliconUser:i,s=S.locked,u=s===void 0?p.locked:s,d=S.normallyLocked,f=d===void 0?p.normallyLocked:d,l=S.onLockStatusChange,C=l===void 0?function(){return V("lock")}:l,b=S.accessText,v=b===void 0?"an ID card":b;return c?(0,e.createComponentVNode)(2,t.NoticeBox,{color:c&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:f?"red":"green",icon:f?"lock":"unlock",content:f?"Locked":"Unlocked",onClick:function(){function h(){C&&C(!u)}return h}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",v," to ",u?"unlock":"lock"," this interface."]})}return m}()},51057:function(I,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(89005),a=n(44879),t=n(36036),o=r.Loader=function(){function m(S){var y=S.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(y)*100+"%"}}),2)}return m}()},321:function(I,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginInfo=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.loginState;if(p)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",i.name," (",i.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return V("login_logout")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!i.id,content:"Eject ID",color:"good",onClick:function(){function c(){return V("login_eject")}return c}()})]})]})})}return m}()},5485:function(I,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginScreen=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.loginState,c=p.isAI,s=p.isRobot,u=p.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:i.id?i.id:"----------",ml:"0.5rem",onClick:function(){function d(){return V("login_insert")}return d}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!i.id,content:"Login",onClick:function(){function d(){return V("login_login",{login_type:1})}return d}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function d(){return V("login_login",{login_type:2})}return d}()}),!!s&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function d(){return V("login_login",{login_type:3})}return d}()}),!!u&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function d(){return V("login_login",{login_type:4})}return d}()})]})})})}return m}()},62411:function(I,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(89005),a=n(36036),t=n(15964),o=r.Operating=function(){function m(S){var y=S.operating,k=S.name;if(y)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",k," is processing..."]})})})}return m}();o.propTypes={operating:t.bool,name:t.string}},13545:function(I,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=r.Signaler=function(){function S(y,k){var V=(0,t.useBackend)(k),p=V.act,i=y.data,c=i.code,s=i.frequency,u=i.minFrequency,d=i.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:u/10,maxValue:d/10,value:s/10,format:function(){function f(l){return(0,a.toFixed)(l,1)}return f}(),width:"80px",onDrag:function(){function f(l,C){return p("freq",{freq:C})}return f}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(){function f(l,C){return p("code",{code:C})}return f}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function f(){return p("signal")}return f}()})]})}return S}()},41984:function(I,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(89005),a=n(72253),t=n(25328),o=n(64795),m=n(88510),S=n(36036),y=r.SimpleRecords=function(){function p(i,c){var s=i.data.records;return(0,e.createComponentVNode)(2,S.Box,{children:s?(0,e.createComponentVNode)(2,V,{data:i.data,recordType:i.recordType}):(0,e.createComponentVNode)(2,k,{data:i.data})})}return p}(),k=function(i,c){var s=(0,a.useBackend)(c),u=s.act,d=i.data.recordsList,f=(0,a.useLocalState)(c,"searchText",""),l=f[0],C=f[1],b=function(g,N){N===void 0&&(N="");var x=(0,t.createSearch)(N,function(B){return B.Name});return(0,o.flow)([(0,m.filter)(function(B){return B==null?void 0:B.Name}),N&&(0,m.filter)(x),(0,m.sortBy)(function(B){return B.Name})])(d)},v=b(d,l);return(0,e.createComponentVNode)(2,S.Box,{children:[(0,e.createComponentVNode)(2,S.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function h(g,N){return C(N)}return h}()}),v.map(function(h){return(0,e.createComponentVNode)(2,S.Box,{children:(0,e.createComponentVNode)(2,S.Button,{mb:.5,content:h.Name,icon:"user",onClick:function(){function g(){return u("Records",{target:h.uid})}return g}()})},h)})]})},V=function(i,c){var s=(0,a.useBackend)(c),u=s.act,d=i.data.records,f=d.general,l=d.medical,C=d.security,b;switch(i.recordType){case"MED":b=(0,e.createComponentVNode)(2,S.Section,{level:2,title:"Medical Data",children:l?(0,e.createComponentVNode)(2,S.LabeledList,{children:[(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Blood Type",children:l.blood_type}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Minor Disabilities",children:l.mi_dis}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Details",children:l.mi_dis_d}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Major Disabilities",children:l.ma_dis}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Details",children:l.ma_dis_d}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Allergies",children:l.alg}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Details",children:l.alg_d}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Current Diseases",children:l.cdi}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Details",children:l.cdi_d}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:l.notes})]}):(0,e.createComponentVNode)(2,S.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":b=(0,e.createComponentVNode)(2,S.Section,{level:2,title:"Security Data",children:C?(0,e.createComponentVNode)(2,S.LabeledList,{children:[(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Criminal Status",children:C.criminal}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Minor Crimes",children:C.mi_crim}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Details",children:C.mi_crim_d}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Major Crimes",children:C.ma_crim}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Details",children:C.ma_crim_d}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:C.notes})]}):(0,e.createComponentVNode)(2,S.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,S.Box,{children:[(0,e.createComponentVNode)(2,S.Section,{title:"General Data",children:f?(0,e.createComponentVNode)(2,S.LabeledList,{children:[(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Name",children:f.name}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Sex",children:f.sex}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Species",children:f.species}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Age",children:f.age}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Rank",children:f.rank}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Fingerprint",children:f.fingerprint}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Physical Status",children:f.p_stat}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Mental Status",children:f.m_stat})]}):(0,e.createComponentVNode)(2,S.Box,{color:"red",bold:!0,children:"General record lost!"})}),b]})}},22091:function(I,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TemporaryNotice=function(){function m(S,y){var k,V=(0,a.useBackend)(y),p=V.act,i=V.data,c=i.temp;if(c){var s=(k={},k[c.style]=!0,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},s,{children:[(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",verticalAlign:"middle",children:c.text}),(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",float:"right",onClick:function(){function u(){return p("cleartemp")}return u}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})))}}return m}()},25443:function(I,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(20342),m=n(98595),S=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],y=["good","average","bad","black","white"],k=[{title:"Button",component:function(){function h(){return p}return h}()},{title:"Box",component:function(){function h(){return i}return h}()},{title:"ProgressBar",component:function(){function h(){return c}return h}()},{title:"Tabs",component:function(){function h(){return s}return h}()},{title:"Tooltip",component:function(){function h(){return u}return h}()},{title:"Input / Control",component:function(){function h(){return d}return h}()},{title:"Collapsible",component:function(){function h(){return f}return h}()},{title:"BlockQuote",component:function(){function h(){return C}return h}()},{title:"ByondUi",component:function(){function h(){return b}return h}()},{title:"Themes",component:function(){function h(){return v}return h}()}],V=r.KitchenSink=function(){function h(g,N){var x=(0,a.useLocalState)(N,"kitchenSinkTheme"),B=x[0],L=(0,a.useLocalState)(N,"pageIndex",0),T=L[0],E=L[1],w=k[T].component();return(0,e.createComponentVNode)(2,m.Window,{theme:B,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:k.map(function(A,O){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:O===T,onClick:function(){function M(){return E(O)}return M}(),children:A.title},O)})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,w)})]})})})})}return h}(),p=function(g){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{mb:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,t.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,t.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"})]}),(0,e.createComponentVNode)(2,t.Box,{mb:1,children:[y.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{color:N,content:N},N)}),(0,e.createVNode)(1,"br"),S.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{color:N,content:N},N)}),(0,e.createVNode)(1,"br"),S.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:"7px",color:N,children:N},N)})]})]})},i=function(g){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"bold"}),(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"italic"}),(0,e.createComponentVNode)(2,t.Box,{opacity:.5,children:"opacity 0.5"}),(0,e.createComponentVNode)(2,t.Box,{opacity:.25,children:"opacity 0.25"}),(0,e.createComponentVNode)(2,t.Box,{m:2,children:"m: 2"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:"left"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"center"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"right",children:"right"})]})},c=function(g,N){var x=(0,a.useLocalState)(N,"progress",.5),B=x[0],L=x[1];return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:B,children:["Value: ",Number(B).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function T(){return L(B-.1)}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function T(){return L(B+.1)}return T}()})]})]})},s=function(g,N){var x=(0,a.useLocalState)(N,"tabIndex",0),B=x[0],L=x[1],T=(0,a.useLocalState)(N,"tabVert"),E=T[0],w=T[1],A=(0,a.useLocalState)(N,"tabAlt"),O=A[0],M=A[1],P=[1,2,3,4,5];return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{mb:2,children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:E,onClick:function(){function R(){return w(!E)}return R}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"altSelection",checked:O,onClick:function(){function R(){return M(!O)}return R}()})]}),(0,e.createComponentVNode)(2,t.Tabs,{vertical:E,children:P.map(function(R,F){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{altSelection:O,selected:F===B,onClick:function(){function _(){return L(F)}return _}(),children:["Tab #",R]},F)})})]})},u=function(g){var N=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",mr:1,children:["Box (hover me).",(0,e.createComponentVNode)(2,t.Tooltip,{content:"Tooltip text."})]}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"Tooltip text.",content:"Button"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:N.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:x,content:x},x)})})],4)},d=function(g,N){var x=(0,a.useLocalState)(N,"number",0),B=x[0],L=x[1],T=(0,a.useLocalState)(N,"text","Sample text"),E=T[0],w=T[1];return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:E,onChange:function(){function A(O,M){return w(M)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:E,onInput:function(){function A(O,M){return w(M)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:B,minValue:-100,maxValue:100,onChange:function(){function A(O,M){return L(M)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:B,minValue:-100,maxValue:100,onDrag:function(){function A(O,M){return L(M)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:B,minValue:-100,maxValue:100,onDrag:function(){function A(O,M){return L(M)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:B,minValue:-100,maxValue:100,onDrag:function(){function A(O,M){return L(M)}return A}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:B,minValue:-100,maxValue:100,onDrag:function(){function A(O,M){return L(M)}return A}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,o.DraggableControl,{value:B,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function A(O,M){return L(M)}return A}(),children:function(){function A(O){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:O.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:O.displayValue*4}),O.inputElement]})}return A}()})})})]})})},f=function(g){return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,l)})})},l=function(g){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({},g,{children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,t.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))},C=function(g){return(0,e.createComponentVNode)(2,t.BlockQuote,{children:(0,e.createComponentVNode)(2,l)})},b=function(g,N){var x=(0,a.useBackend)(N),B=x.config;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Button",level:2,children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",parent:B.window,text:"Button"}})})})},v=function(g,N){var x=(0,a.useLocalState)(N,"kitchenSinkTheme"),B=x[0],L=x[1];return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:B,onInput:function(){function T(E,w){return L(w)}return T}()})})})})}},96572:function(I,r,n){"use strict";r.__esModule=!0,r.pai_advsecrecords=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_advsecrecords=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Special Syndicate options:",children:(0,e.createComponentVNode)(2,t.Button,{content:"Select Records",onClick:function(){function i(){return V("ui_interact")}return i}()})})})}return m}()},80818:function(I,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pai_atmosphere=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:p.app_data})}return m}()},23903:function(I,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_bioscan=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.app_data,c=i.holder,s=i.dead,u=i.health,d=i.brute,f=i.oxy,l=i.tox,C=i.burn,b=i.reagents,v=i.addictions,h=i.fractures,g=i.internal_bleeding;return c?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:s?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:u/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:f})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:l})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:C})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:d})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagents",children:b?b.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.title,children:(0,e.createComponentVNode)(2,t.Box,{color:N.overdosed?"bad":"good",children:[" ",N.volume," ",N.overdosed?"OVERDOSED":""," "]})},N.id)}):"Reagents not found."}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Addictions",children:v?v.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.addiction_name,children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[" Stage: ",N.stage," "]})},N.id)}):(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Addictions not found."})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fractures",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:["Fractures ",h?"":"not"," detected."]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Bleedings",children:(0,e.createComponentVNode)(2,t.Box,{color:g?"bad":"good",children:["Internal Bleedings ",g?"":"not"," detected."]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return m}()},79592:function(I,r,n){"use strict";r.__esModule=!0,r.pai_camera_bug=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_camera_bug=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Special Syndicate options",children:(0,e.createComponentVNode)(2,t.Button,{content:"Select Monitor",onClick:function(){function i(){return V("ui_interact")}return i}()})})})}return m}()},64988:function(I,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_directives=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.app_data,c=i.master,s=i.dna,u=i.prime,d=i.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:c?c+" ("+s+")":"None"}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function f(){return V("getdna")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:d||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return m}()},13813:function(I,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_doorjack=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.app_data,c=i.cable,s=i.machine,u=i.inprogress,d=i.progress,f=i.aborted,l;s?l=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):l=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function b(){return V("cable")}return b}()});var C;return s&&(C=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.Box,{color:u?"green":"red",children:[" ","In progress: ",u?"Yes":"No"," "]}),u?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function b(){return V("cancel")}return b}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function b(){return V("jack")}return b}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:l}),C]})}return m}()},43816:function(I,r,n){"use strict";r.__esModule=!0,r.pai_encoder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_encoder=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.app_data,c=i.radio_name,s=i.radio_rank;return(0,e.createComponentVNode)(2,t.Section,{title:"Your name and rank in radio channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Your current name and rank",children:[c,", ",s]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Set new name",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function u(d,f){return V("set_newname",{newname:f})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Set new rank",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function u(d,f){return V("set_newrank",{newrank:f})}return u}()})})]})})}return m}()},88895:function(I,r,n){"use strict";r.__esModule=!0,r.pai_gps_module=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_gps_module=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"GPS menu",children:(0,e.createComponentVNode)(2,t.Button,{content:"Open GPS",onClick:function(){function i(){return V("ui_interact")}return i}()})})})}return m}()},66025:function(I,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_main_menu=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.app_data,c=i.available_software,s=i.installed_software,u=i.installed_toggles,d=i.available_ram,f=i.emotions,l=i.current_emotion,C=[];return s.map(function(b){return C[b.key]=b.name}),u.map(function(b){return C[b.key]=b.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[c.filter(function(b){return!C[b.key]}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{color:b.syndi?"red":"default",content:b.name+" ("+b.cost+")",icon:b.icon,disabled:b.cost>d,onClick:function(){function v(){return V("purchaseSoftware",{key:b.key})}return v}()},b.key)}),c.filter(function(b){return!C[b.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[s.filter(function(b){return b.key!=="mainmenu"}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,onClick:function(){function v(){return V("startSoftware",{software_key:b.key})}return v}()},b.key)}),s.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[u.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,selected:b.active,onClick:function(){function v(){return V("setToggle",{toggle_key:b.key})}return v}()},b.key)}),u.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:f.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{color:b.syndi?"red":"default",content:b.name,selected:b.id===l,onClick:function(){function v(){return V("setEmotion",{emotion:b.id})}return v}()},b.id)})})]})})}return m}()},2983:function(I,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pai_manifest=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:p.app_data})}return m}()},40758:function(I,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_medrecords=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:V.app_data,recordType:"MED"})}return m}()},98599:function(I,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(89005),a=n(72253),t=n(77595),o=r.pai_messenger=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.app_data.active_convo;return i?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:p.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:p.app_data})}return m}()},50775:function(I,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),m=r.pai_radio=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.app_data,s=c.minFrequency,u=c.maxFrequency,d=c.frequency,f=c.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:s/10,maxValue:u/10,value:d/10,format:function(){function l(C){return(0,t.toFixed)(C,1)}return l}(),onChange:function(){function l(C,b){return p("freq",{freq:b})}return l}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function l(){return p("freq",{freq:"145.9"})}return l}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return p("toggleBroadcast")}return l}(),selected:f,content:f?"Enabled":"Disabled"})})]})}return S}()},19873:function(I,r,n){"use strict";r.__esModule=!0,r.pai_sec_chem=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_sec_chem=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.app_data,c=i.holder,s=i.dead,u=i.health,d=i.current_chemicals,f=i.available_chemicals;return c?(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:s?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:u/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Chemicals",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Chemicals",children:[f.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{content:l.name+" ("+l.cost+")",tooltip:l.desc,disabled:l.cost>d,onClick:function(){function C(){return V("secreteChemicals",{key:l.key})}return C}()},l.key)}),f.length===0&&"No chemicals available!"]})]})}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return m}()},48623:function(I,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_secrecords=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:V.app_data,recordType:"SEC"})}return m}()},47297:function(I,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pai_signaler=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p.app_data})}return m}()},78532:function(I,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pda_atmos_scan=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:V})}return m}()},40253:function(I,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_janitor=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.janitor,c=i.user_loc,s=i.mops,u=i.buckets,d=i.cleanbots,f=i.carts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:s.map(function(l){return(0,e.createComponentVNode)(2,t.Box,{children:[l.x,",",l.y," (",l.dir,") - ",l.status]},l)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:u.map(function(l){return(0,e.createComponentVNode)(2,t.Box,{children:[l.x,",",l.y," (",l.dir,") - [",l.volume,"/",l.max_volume,"]"]},l)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:d.map(function(l){return(0,e.createComponentVNode)(2,t.Box,{children:[l.x,",",l.y," (",l.dir,") - ",l.status]},l)})}),f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:f.map(function(l){return(0,e.createComponentVNode)(2,t.Box,{children:[l.x,",",l.y," (",l.dir,") - [",l.volume,"/",l.max_volume,"]"]},l)})})]})}return m}()},58293:function(I,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=r.pda_main_menu=function(){function S(y,k){var V=(0,t.useBackend)(k),p=V.act,i=V.data,c=i.owner,s=i.ownjob,u=i.idInserted,d=i.categories,f=i.pai,l=i.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[c,", ",s]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!u,onClick:function(){function C(){return p("UpdateInfo")}return C}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:d.map(function(C){var b=i.apps[C];return!b||!b.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:C,children:b.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{icon:v.uid in l?v.notify_icon:v.icon,iconSpin:v.uid in l,color:v.uid in l?"red":"transparent",content:v.name,onClick:function(){function h(){return p("StartProgram",{program:v.uid})}return h}()},v.uid)})},C)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!f&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function C(){return p("pai",{option:1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function C(){return p("pai",{option:2})}return C}()})]})})]})}return S}()},58059:function(I,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pda_manifest=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return m}()},18147:function(I,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_medical=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:V,recordType:"MED"})}return m}()},77595:function(I,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),m=r.pda_messenger=function(){function V(p,i){var c=(0,t.useBackend)(i),s=c.act,u=c.data,d=u.active_convo;return d?(0,e.createComponentVNode)(2,S,{data:u}):(0,e.createComponentVNode)(2,y,{data:u})}return V}(),S=r.ActiveConversation=function(){function V(p,i){var c=(0,t.useBackend)(i),s=c.act,u=p.data,d=u.convo_device,f=u.messages,l=u.active_convo,C=(0,t.useLocalState)(i,"clipboardMode",!1),b=C[0],v=C[1],h=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:b,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function g(){return v(!b)}return g}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function g(){return s("Message",{target:l})}return g}(),content:"Reply"})],4),children:(0,a.filter)(function(g){return g.target===l})(f).map(function(g,N){return(0,e.createComponentVNode)(2,o.Box,{textAlign:g.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:g.sent?"#4d9121":"#cd7a0d",position:"absolute",left:g.sent?null:"0px",right:g.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:g.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:g.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:g.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[g.sent?"You:":"Them:"," ",g.message]})]},N)})});return b&&(h=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:b,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function g(){return v(!b)}return g}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function g(){return s("Message",{target:l})}return g}(),content:"Reply"})],4),children:(0,a.filter)(function(g){return g.target===l})(f).map(function(g,N){return(0,e.createComponentVNode)(2,o.Box,{color:g.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[g.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:g.message})]},N)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function g(){return s("Clear",{option:"Convo"})}return g}()})})})}),h]})}return V}(),y=r.MessengerList=function(){function V(p,i){var c=(0,t.useBackend)(i),s=c.act,u=p.data,d=u.convopdas,f=u.pdas,l=u.charges,C=u.silent,b=u.toff,v=(0,t.useLocalState)(i,"searchTerm",""),h=v[0],g=v[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!C,icon:C?"volume-mute":"volume-up",onClick:function(){function N(){return s("Toggle Ringer")}return N}(),children:["Ringer: ",C?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:b?"bad":"green",icon:"power-off",onClick:function(){function N(){return s("Toggle Messenger")}return N}(),children:["Messenger: ",b?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function N(){return s("Ringtone")}return N}(),children:"Set Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function N(){return s("Clear",{option:"All"})}return N}(),children:"Delete All Conversations"})]})}),!b&&(0,e.createComponentVNode)(2,o.Box,{children:[!!l&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[l," charges left."]})})}),!d.length&&!f.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:h,onInput:function(){function N(x,B){g(B)}return N}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,k,{title:"Current Conversations",data:u,pdas:d,msgAct:"Select Conversation",searchTerm:h}),(0,e.createComponentVNode)(2,k,{title:"Other PDAs",pdas:f,msgAct:"Message",data:u,searchTerm:h})]})}return V}(),k=function(p,i){var c=(0,t.useBackend)(i),s=c.act,u=p.data,d=p.pdas,f=p.title,l=p.msgAct,C=p.searchTerm,b=u.charges,v=u.plugins;return!d||!d.length?(0,e.createComponentVNode)(2,o.Section,{title:f,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:f,children:d.filter(function(h){return h.Name.toLowerCase().includes(C.toLowerCase())}).map(function(h){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:h.Name,onClick:function(){function g(){return s(l,{target:h.uid})}return g}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!b&&v.map(function(g){return(0,e.createComponentVNode)(2,o.Button,{icon:g.icon,content:g.name,onClick:function(){function N(){return s("Messenger Plugin",{plugin:g.uid,target:h.uid})}return N}()},g.uid)})})]},h.uid)})})}},24635:function(I,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_mule=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.mulebot,u=s.active;return(0,e.createComponentVNode)(2,t.Box,{children:u?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,m)})}return y}(),m=function(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.mulebot,u=s.bots;return(0,e.createComponentVNode)(2,t.Box,{children:[u.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function f(){return i("AccessBot",{uid:d.uid})}return f}()})},d.Name)}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"rss",content:"Re-scan for bots",onClick:function(){function d(){return i("Rescan")}return d}()})})]})},S=function(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.mulebot,u=s.botstatus,d=s.active,f=u.mode,l=u.loca,C=u.load,b=u.powr,v=u.dest,h=u.home,g=u.retn,N=u.pick,x;switch(f){case 0:x="Ready";break;case 1:x="Loading/Unloading";break;case 2:case 12:x="Navigating to delivery location";break;case 3:x="Navigating to Home";break;case 4:x="Waiting for clear path";break;case 5:case 6:x="Calculating navigation path";break;case 7:x="Unable to locate destination";break;default:x=f;break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[f===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:x}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[b,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Set)":"None (Set)",onClick:function(){function B(){return i("SetDest")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:C?C+" (Unload)":"None",disabled:!C,onClick:function(){function B(){return i("Unload")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:N?"Yes":"No",selected:N,onClick:function(){function B(){return i("SetAutoPickup",{autoPickupType:N?"pickoff":"pickon"})}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"Yes":"No",selected:g,onClick:function(){function B(){return i("SetAutoReturn",{autoReturnType:g?"retoff":"reton"})}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function B(){return i("Stop")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function B(){return i("Start")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function B(){return i("ReturnHome")}return B}()})]})]})]})}},97085:function(I,r,n){"use strict";r.__esModule=!0,r.pda_notes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_notes=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.note;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{children:i}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function c(){return V("Edit")}return c}(),content:"Edit"})]})}return m}()},57513:function(I,r,n){"use strict";r.__esModule=!0,r.pda_power=void 0;var e=n(89005),a=n(72253),t=n(61631),o=r.pda_power=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.PowerMonitorMainContent)}return m}()},57635:function(I,r,n){"use strict";r.__esModule=!0,r.pda_request_console=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25472),m=r.pda_request_console=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.screen,s=i.selected_console,u=i.consoles_data,d=i.app;return s?(0,e.createComponentVNode)(2,t.Box,{children:[(o.pages[c]||o.pages.default)(),c===0?(0,e.createComponentVNode)(2,t.Button,{content:"Back to console selection",icon:"arrow-left",onClick:function(){function f(){return p("back")}return f}()}):""]}):(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:u.map(function(f){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{color:f.priority===1?"green":f.priority===2?"red":"default",content:f.name,onClick:function(){function l(){return p("select",{name:f.name})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:f.muted?"volume-mute":"volume-up",onClick:function(){function l(){return p("mute",{name:f.name})}return l}()})]})})},f.name)})})})}return S}()},99808:function(I,r,n){"use strict";r.__esModule=!0,r.pda_secbot=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_secbot=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.beepsky,u=s.active;return(0,e.createComponentVNode)(2,t.Box,{children:u?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,m)})}return y}(),m=function(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.beepsky,u=s.bots;return(0,e.createComponentVNode)(2,t.Box,{children:[u.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function f(){return i("AccessBot",{uid:d.uid})}return f}()})},d.Name)}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"rss",content:"Re-scan for bots",onClick:function(){function d(){return i("Rescan")}return d}()})})]})},S=function(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.beepsky,u=s.botstatus,d=s.active,f=u.mode,l=u.loca,C;switch(f){case 0:C="Ready";break;case 1:C="Apprehending target";break;case 2:case 3:C="Arresting target";break;case 4:C="Starting patrol";break;case 5:C="On patrol";break;case 6:C="Responding to summons";break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[f===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Go",icon:"play",onClick:function(){function b(){return i("Go")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function b(){return i("Stop")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Summon",icon:"arrow-down",onClick:function(){function b(){return i("Summon")}return b}()})]})]})]})}},77168:function(I,r,n){"use strict";r.__esModule=!0,r.pda_security=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_security=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:V,recordType:"SEC"})}return m}()},21773:function(I,r,n){"use strict";r.__esModule=!0,r.pda_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pda_signaler=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p})}return m}()},81857:function(I,r,n){"use strict";r.__esModule=!0,r.pda_status_display=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_status_display=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.records;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Code",children:[(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"trash",content:"Clear",onClick:function(){function c(){return V("Status",{statdisp:"blank"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"clock",content:"Evac ETA",onClick:function(){function c(){return V("Status",{statdisp:"shuttle"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"edit",content:"Message",onClick:function(){function c(){return V("Status",{statdisp:"message"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"exclamation-triangle",content:"Red Alert",onClick:function(){function c(){return V("Status",{statdisp:"alert",alert:"redalert"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"boxes",content:"NT Logo",onClick:function(){function c(){return V("Status",{statdisp:"alert",alert:"default"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lock",content:"Lockdown",onClick:function(){function c(){return V("Status",{statdisp:"alert",alert:"lockdown"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"biohazard",content:"Biohazard",onClick:function(){function c(){return V("Status",{statdisp:"alert",alert:"biohazard"})}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message line 1",children:(0,e.createComponentVNode)(2,t.Button,{content:i.message1+" (set)",icon:"pen",onClick:function(){function c(){return V("Status",{statdisp:"setmsg1"})}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message line 2",children:(0,e.createComponentVNode)(2,t.Button,{content:i.message2+" (set)",icon:"pen",onClick:function(){function c(){return V("Status",{statdisp:"setmsg2"})}return c}()})})]})})}return m}()},70287:function(I,r,n){"use strict";r.__esModule=!0,r.pda_supplyrecords=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_supplyrecords=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.supply,c=i.shuttle_loc,s=i.shuttle_time,u=i.shuttle_moving,d=i.approved,f=i.approved_count,l=i.requests,C=i.requests_count;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:u?(0,e.createComponentVNode)(2,t.Box,{children:["In transit ",s]}):(0,e.createComponentVNode)(2,t.Box,{children:c})})}),(0,e.createComponentVNode)(2,t.Section,{mt:1,title:"Requested Orders",children:C>0&&l.map(function(b){return(0,e.createComponentVNode)(2,t.Box,{children:["#",b.Number,' - "',b.Name,'" for "',b.OrderedBy,'"']},b)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:f>0&&d.map(function(b){return(0,e.createComponentVNode)(2,t.Box,{children:["#",b.Number,' - "',b.Name,'" for "',b.ApprovedBy,'"']},b)})})]})}return m}()},17617:function(I,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(24826),m=["className","theme","children"],S=["className","scrollable","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function y(p,i){if(p==null)return{};var c={};for(var s in p)if({}.hasOwnProperty.call(p,s)){if(i.includes(s))continue;c[s]=p[s]}return c}var k=r.Layout=function(){function p(i){var c=i.className,s=i.theme,l=s===void 0?"nanotrasen":s,d=i.children,f=y(i,m);return document.documentElement.className="theme-"+l,(0,e.createVNode)(1,"div","theme-"+l,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout",c].concat((0,t.computeBoxClassName)(f))),d,0,Object.assign({},(0,t.computeBoxProps)(f)))),2)}return p}(),V=function(i){var c=i.className,s=i.scrollable,l=i.children,d=y(i,S);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout__content",s&&"Layout__content--scrollable",c,(0,t.computeBoxClassName)(d)]),l,0,Object.assign({},(0,t.computeBoxProps)(d))))};V.defaultHooks={onComponentDidMount:function(){function p(i){return(0,o.addScrollableNode)(i)}return p}(),onComponentWillUnmount:function(){function p(i){return(0,o.removeScrollableNode)(i)}return p}()},k.Content=V},96945:function(I,r,n){"use strict";r.__esModule=!0,r.Pane=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(99851),S=n(17617),y=["theme","children","className"],k=["className","fitted","children"];/** + */function y(p,i){if(p==null)return{};var c={};for(var s in p)if({}.hasOwnProperty.call(p,s)){if(i.includes(s))continue;c[s]=p[s]}return c}var k=r.Layout=function(){function p(i){var c=i.className,s=i.theme,u=s===void 0?"nanotrasen":s,d=i.children,f=y(i,m);return document.documentElement.className="theme-"+u,(0,e.createVNode)(1,"div","theme-"+u,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout",c].concat((0,t.computeBoxClassName)(f))),d,0,Object.assign({},(0,t.computeBoxProps)(f)))),2)}return p}(),V=function(i){var c=i.className,s=i.scrollable,u=i.children,d=y(i,S);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout__content",s&&"Layout__content--scrollable",c,(0,t.computeBoxClassName)(d)]),u,0,Object.assign({},(0,t.computeBoxProps)(d))))};V.defaultHooks={onComponentDidMount:function(){function p(i){return(0,o.addScrollableNode)(i)}return p}(),onComponentWillUnmount:function(){function p(i){return(0,o.removeScrollableNode)(i)}return p}()},k.Content=V},96945:function(I,r,n){"use strict";r.__esModule=!0,r.Pane=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(99851),S=n(17617),y=["theme","children","className"],k=["className","fitted","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function V(c,s){if(c==null)return{};var l={};for(var d in c)if({}.hasOwnProperty.call(c,d)){if(s.includes(d))continue;l[d]=c[d]}return l}var p=r.Pane=function(){function c(s,l){var d=s.theme,f=s.children,u=s.className,C=V(s,y),b=(0,t.useBackend)(l),v=b.suspended,h=(0,m.useDebug)(l),g=h.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,S.Layout,Object.assign({className:(0,a.classes)(["Window",u]),theme:d},C,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:g&&"debug-layout",children:!v&&f})})))}return c}(),i=function(s){var l=s.className,d=s.fitted,f=s.children,u=V(s,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,S.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",l])},u,{children:d&&f||(0,e.createVNode)(1,"div","Window__contentPadding",f,0)})))};p.Content=i},34827:function(I,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(89005),a=n(35840),t=n(85307),o=n(25328),m=n(72253),S=n(36036),y=n(76910),k=n(99851),V=n(77384),p=n(35421),i=n(9394),c=n(17617),s=["className","fitted","children"];function l(N,x){if(N==null)return{};var B={};for(var L in N)if({}.hasOwnProperty.call(N,L)){if(x.includes(L))continue;B[L]=N[L]}return B}function d(N,x){N.prototype=Object.create(x.prototype),N.prototype.constructor=N,f(N,x)}function f(N,x){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,L){return B.__proto__=L,B},f(N,x)}/** + */function V(c,s){if(c==null)return{};var u={};for(var d in c)if({}.hasOwnProperty.call(c,d)){if(s.includes(d))continue;u[d]=c[d]}return u}var p=r.Pane=function(){function c(s,u){var d=s.theme,f=s.children,l=s.className,C=V(s,y),b=(0,t.useBackend)(u),v=b.suspended,h=(0,m.useDebug)(u),g=h.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,S.Layout,Object.assign({className:(0,a.classes)(["Window",l]),theme:d},C,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:g&&"debug-layout",children:!v&&f})})))}return c}(),i=function(s){var u=s.className,d=s.fitted,f=s.children,l=V(s,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,S.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",u])},l,{children:d&&f||(0,e.createVNode)(1,"div","Window__contentPadding",f,0)})))};p.Content=i},34827:function(I,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(89005),a=n(35840),t=n(85307),o=n(25328),m=n(72253),S=n(36036),y=n(76910),k=n(99851),V=n(77384),p=n(35421),i=n(9394),c=n(17617),s=["className","fitted","children"];function u(N,x){if(N==null)return{};var B={};for(var L in N)if({}.hasOwnProperty.call(N,L)){if(x.includes(L))continue;B[L]=N[L]}return B}function d(N,x){N.prototype=Object.create(x.prototype),N.prototype.constructor=N,f(N,x)}function f(N,x){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,L){return B.__proto__=L,B},f(N,x)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var u=(0,i.createLogger)("Window"),C=[400,600],b=r.Window=function(N){function x(){return N.apply(this,arguments)||this}d(x,N);var B=x.prototype;return B.componentDidMount=function(){function L(){var T=(0,m.useBackend)(this.context),E=T.suspended;E||(u.log("mounting"),this.updateGeometry())}return L}(),B.componentDidUpdate=function(){function L(T){var E=this.props.width!==T.width||this.props.height!==T.height;E&&this.updateGeometry()}return L}(),B.updateGeometry=function(){function L(){var T,E=(0,m.useBackend)(this.context),w=E.config,A=Object.assign({size:C},w.window);this.props.width&&this.props.height&&(A.size=[this.props.width,this.props.height]),(T=w.window)!=null&&T.key&&(0,p.setWindowKey)(w.window.key),(0,p.recallWindowGeometry)(A)}return L}(),B.render=function(){function L(){var T,E=this.props,w=E.theme,A=E.title,O=E.children,M=(0,m.useBackend)(this.context),P=M.config,R=M.suspended,F=(0,k.useDebug)(this.context),_=F.debugLayout,U=(0,t.useDispatch)(this.context),W=(T=P.window)==null?void 0:T.fancy,$=P.user&&(P.user.observer?P.status2?s-2:0),d=2;d=o){var f=[c].concat(l).map(function(u){return typeof u=="string"?u:u instanceof Error?u.stack||String(u):JSON.stringify(u)}).filter(function(u){return u}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",message:f})}},k=r.createLogger=function(){function p(i){return{debug:function(){function c(){for(var s=arguments.length,l=new Array(s),d=0;d2?s-2:0),d=2;d=o){var f=[c].concat(u).map(function(l){return typeof l=="string"?l:l instanceof Error?l.stack||String(l):JSON.stringify(l)}).filter(function(l){return l}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",message:f})}},k=r.createLogger=function(){function p(i){return{debug:function(){function c(){for(var s=arguments.length,u=new Array(s),d=0;d0;){var h=b.shift(),g=h(C);try{v=S(g)}catch(x){if(x.code!=="MODULE_NOT_FOUND")throw x}}if(!v)return y("notFound",C);var N=v[C];return N||y("missingExport",C)}return i}()},72178:function(I,r,n){"use strict";r.__esModule=!0,r.configureStore=r.StoreProvider=void 0;var e=n(64795),a=n(85307),t=n(89005),o=n(79140),m=n(72253),S=n(99851),y=n(9394);function k(d,f){d.prototype=Object.create(f.prototype),d.prototype.constructor=d,V(d,f)}function V(d,f){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,C){return u.__proto__=C,u},V(d,f)}/** + */var S=n(32054),y=function(c,s){return function(){return(0,e.createComponentVNode)(2,m.Window,{children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[c==="notFound"&&(0,e.createVNode)(1,"div",null,[(0,e.createTextVNode)("Interface "),(0,e.createVNode)(1,"b",null,s,0),(0,e.createTextVNode)(" was not found.")],4),c==="missingExport"&&(0,e.createVNode)(1,"div",null,[(0,e.createTextVNode)("Interface "),(0,e.createVNode)(1,"b",null,s,0),(0,e.createTextVNode)(" is missing an export.")],4)]})})}},k=function(){return(0,e.createComponentVNode)(2,m.Window,{children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0})})},V=function(){return(0,e.createComponentVNode)(2,m.Window,{height:130,title:"Loading",width:150,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"center",fill:!0,justify:"center",vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Icon,{color:"blue",name:"toolbox",spin:!0,size:4})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"Please wait..."})]})})})},p=r.getRoutedComponent=function(){function i(c){var s=c.getState(),u=(0,a.selectBackend)(s),d=u.suspended,f=u.config;if(d)return k;if(f.refreshing)return V;if(0)var l;for(var C=f==null?void 0:f.interface,b=[function(x){return"./"+x+".tsx"},function(x){return"./"+x+".js"},function(x){return"./"+x+"/index.tsx"},function(x){return"./"+x+"/index.js"}],v;!v&&b.length>0;){var h=b.shift(),g=h(C);try{v=S(g)}catch(x){if(x.code!=="MODULE_NOT_FOUND")throw x}}if(!v)return y("notFound",C);var N=v[C];return N||y("missingExport",C)}return i}()},72178:function(I,r,n){"use strict";r.__esModule=!0,r.configureStore=r.StoreProvider=void 0;var e=n(64795),a=n(85307),t=n(89005),o=n(79140),m=n(72253),S=n(99851),y=n(9394);function k(d,f){d.prototype=Object.create(f.prototype),d.prototype.constructor=d,V(d,f)}function V(d,f){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,C){return l.__proto__=C,l},V(d,f)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var p=(0,y.createLogger)("store"),i=r.configureStore=function(){function d(f){var u,C;f===void 0&&(f={});var b=f,v=b.sideEffects,h=v===void 0?!0:v,g=(0,e.flow)([(0,a.combineReducers)({debug:S.debugReducer,backend:m.backendReducer}),f.reducer]),N=h?[].concat(((u=f.middleware)==null?void 0:u.pre)||[],[o.assetMiddleware,m.backendMiddleware],((C=f.middleware)==null?void 0:C.post)||[]):[],x=a.applyMiddleware.apply(void 0,N),B=(0,a.createStore)(g,x);return window.__store__=B,window.__augmentStack__=s(B),B}return d}(),c=function(f){return function(u){return function(C){var b=C.type,v=C.payload;return b==="update"||b==="backend/update"?p.debug("action",{type:b}):p.debug("action",C),u(C)}}},s=function(f){return function(u,C){var b,v;C?typeof C=="object"&&!C.stack&&(C.stack=u):(C=new Error(u.split("\n")[0]),C.stack=u),p.log("FatalError:",C);var h=f.getState(),g=h==null||(b=h.backend)==null?void 0:b.config,N=u;return N+="\nUser Agent: "+navigator.userAgent,N+="\nState: "+JSON.stringify({ckey:g==null||(v=g.client)==null?void 0:v.ckey,interface:g==null?void 0:g.interface,window:g==null?void 0:g.window}),N}},l=r.StoreProvider=function(d){function f(){return d.apply(this,arguments)||this}k(f,d);var u=f.prototype;return u.getChildContext=function(){function C(){var b=this.props.store;return{store:b}}return C}(),u.render=function(){function C(){return this.props.children}return C}(),f}(t.Component)},51364:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** +*/var p=(0,y.createLogger)("store"),i=r.configureStore=function(){function d(f){var l,C;f===void 0&&(f={});var b=f,v=b.sideEffects,h=v===void 0?!0:v,g=(0,e.flow)([(0,a.combineReducers)({debug:S.debugReducer,backend:m.backendReducer}),f.reducer]),N=h?[].concat(((l=f.middleware)==null?void 0:l.pre)||[],[o.assetMiddleware,m.backendMiddleware],((C=f.middleware)==null?void 0:C.post)||[]):[],x=a.applyMiddleware.apply(void 0,N),B=(0,a.createStore)(g,x);return window.__store__=B,window.__augmentStack__=s(B),B}return d}(),c=function(f){return function(l){return function(C){var b=C.type,v=C.payload;return b==="update"||b==="backend/update"?p.debug("action",{type:b}):p.debug("action",C),l(C)}}},s=function(f){return function(l,C){var b,v;C?typeof C=="object"&&!C.stack&&(C.stack=l):(C=new Error(l.split("\n")[0]),C.stack=l),p.log("FatalError:",C);var h=f.getState(),g=h==null||(b=h.backend)==null?void 0:b.config,N=l;return N+="\nUser Agent: "+navigator.userAgent,N+="\nState: "+JSON.stringify({ckey:g==null||(v=g.client)==null?void 0:v.ckey,interface:g==null?void 0:g.interface,window:g==null?void 0:g.window}),N}},u=r.StoreProvider=function(d){function f(){return d.apply(this,arguments)||this}k(f,d);var l=f.prototype;return l.getChildContext=function(){function C(){var b=this.props.store;return{store:b}}return C}(),l.render=function(){function C(){return this.props.children}return C}(),f}(t.Component)},51364:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT @@ -307,7 +307,7 @@ * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var m=r.meta={title:"ByondUi",render:function(){function y(){return(0,e.createComponentVNode)(2,S)}return y}()},S=function(k,V){var p=(0,a.useLocalState)(V,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),i=p[0],c=p[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Button",children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",text:"Button"}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Make BYOND calls",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function s(){return setTimeout(function(){try{var l=new Function("return ("+i+")")();l&&l.then?(o.logger.log("Promise"),l.then(o.logger.log)):o.logger.log(l)}catch(d){o.logger.log(d)}})}return s}(),children:"Evaluate"}),children:(0,e.createComponentVNode)(2,t.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(){function s(l){return c(l.target.value)}return s}(),children:i})})],4)}},17466:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=n(37168);/** + */var m=r.meta={title:"ByondUi",render:function(){function y(){return(0,e.createComponentVNode)(2,S)}return y}()},S=function(k,V){var p=(0,a.useLocalState)(V,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),i=p[0],c=p[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Button",children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",text:"Button"}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Make BYOND calls",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function s(){return setTimeout(function(){try{var u=new Function("return ("+i+")")();u&&u.then?(o.logger.log("Promise"),u.then(o.logger.log)):o.logger.log(u)}catch(d){o.logger.log(d)}})}return s}(),children:"Evaluate"}),children:(0,e.createComponentVNode)(2,t.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(){function s(u){return c(u.target.value)}return s}(),children:i})})],4)}},17466:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=n(37168);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT @@ -315,15 +315,15 @@ * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Flex & Sections",render:function(){function S(){return(0,e.createComponentVNode)(2,m)}return S}()},m=function(y,k){var V=(0,a.useLocalState)(k,"fs_grow",1),p=V[0],i=V[1],c=(0,a.useLocalState)(k,"fs_direction","column"),s=c[0],l=c[1],d=(0,a.useLocalState)(k,"fs_fill",!0),f=d[0],u=d[1],C=(0,a.useLocalState)(k,"fs_title",!0),b=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return l(s==="column"?"row":"column")}return h}(),children:'Flex direction="'+s+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return i(+!p)}return h}(),children:"Flex.Item grow={"+p+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return u(!f)}return h}(),children:"Section fill={"+String(f)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:b,onClick:function(){function h(){return v(!b)}return h}(),children:"Section title"})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:s,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:s==="row"&&1,mb:s==="column"&&1,grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:b&&"Section 1",fill:f,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:b&&"Section 2",fill:f,children:"Content"})})]})})]})}},48779:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"Flex & Sections",render:function(){function S(){return(0,e.createComponentVNode)(2,m)}return S}()},m=function(y,k){var V=(0,a.useLocalState)(k,"fs_grow",1),p=V[0],i=V[1],c=(0,a.useLocalState)(k,"fs_direction","column"),s=c[0],u=c[1],d=(0,a.useLocalState)(k,"fs_fill",!0),f=d[0],l=d[1],C=(0,a.useLocalState)(k,"fs_title",!0),b=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return u(s==="column"?"row":"column")}return h}(),children:'Flex direction="'+s+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return i(+!p)}return h}(),children:"Flex.Item grow={"+p+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return l(!f)}return h}(),children:"Section fill={"+String(f)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:b,onClick:function(){function h(){return v(!b)}return h}(),children:"Section title"})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:s,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:s==="row"&&1,mb:s==="column"&&1,grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:b&&"Section 1",fill:f,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:b&&"Section 2",fill:f,children:"Content"})})]})})]})}},48779:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2024 Aylong (https://github.com/AyIong) * @license MIT - */var o=r.meta={title:"ImageButton",render:function(){function k(){return(0,e.createComponentVNode)(2,y)}return k}()},m=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],S=["good","average","bad","black","white"],y=function(V,p){var i=(0,a.useLocalState)(p,"disabled",!1),c=i[0],s=i[1],l=(0,a.useLocalState)(p,"onClick",!0),d=l[0],f=l[1],u=(0,a.useLocalState)(p,"vertical1",!0),C=u[0],b=u[1],v=(0,a.useLocalState)(p,"vertical2",!0),h=v[0],g=v[1],N=(0,a.useLocalState)(p,"vertical3",!1),x=N[0],B=N[1],L=(0,a.useLocalState)(p,"title","Image Button"),T=L[0],E=L[1],w=(0,a.useLocalState)(p,"content","Image is a LIE!"),A=w[0],O=w[1],M=(0,a.useLocalState)(p,"itemContent","Second Button"),P=M[0],R=M[1],F=(0,a.useLocalState)(p,"itemIcon","face-smile"),_=F[0],U=F[1],W=(0,a.useLocalState)(p,"itemIconPos","default"),$=W[0],G=W[1],oe=(0,a.useLocalState)(p,"itemIconSize",2),X=oe[0],pe=oe[1],me=(0,a.useLocalState)(p,"imageSize",64),ne=me[0],re=me[1],q=function(){b(!C)},ae=function(){g(!h)},J=function(){B(!x)},Y=function(){s(!c)},Q=function(){f(!d)};return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Input,{value:T,onInput:function(){function Z(te,se){return E(se)}return Z}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Content",children:(0,e.createComponentVNode)(2,t.Input,{value:A,onInput:function(){function Z(te,se){return O(se)}return Z}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Image Size",children:(0,e.createComponentVNode)(2,t.Slider,{animated:!0,width:10,value:ne,minValue:0,maxValue:256,step:1,stepPixelSize:2,onChange:function(){function Z(te,se){return re(se)}return Z}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"onClick",checked:d,onClick:Q})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Vertical",checked:x,onClick:J})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item Content",children:(0,e.createComponentVNode)(2,t.Input,{value:P,onInput:function(){function Z(te,se){return R(se)}return Z}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item Icon",children:(0,e.createComponentVNode)(2,t.Input,{value:_,onInput:function(){function Z(te,se){return U(se)}return Z}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item IconPos",children:(0,e.createComponentVNode)(2,t.Input,{value:$,onInput:function(){function Z(te,se){return G(se)}return Z}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item IconSize",children:(0,e.createComponentVNode)(2,t.Slider,{animated:!0,width:10,value:X,minValue:0,maxValue:20,step:1,stepPixelSize:10,onChange:function(){function Z(te,se){return pe(se)}return Z}()})})]})})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.ImageButton,{width:x&&ne+"px",ellipsis:x,vertical:x,disabled:c,title:T,content:A,tooltip:x?A:"Cool and simple buttons with images, FOR ALL!!!",image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAGo0lEQVRYhe3Xa2xT9xnH8e+5+O4ktuM4cS5OYmhCQ1xcYMCgA9rSbKUqqqpWkzq1mgBtq/piaqna7UXXaTfWddL6opO2dlu1aSBVjJZC19FByyUadKGCJIYQAoHEODi2k/hyTnw/x3uxwZpBtq6qhib1efU/5/9/9Hz0O0c6OsLhw4e5mSXe1On/94BAIFAJBAKV/zkgEAhU7HZ7JRQKCaFQSLDb7Z8Y8l8BPjpYVVXh6n1VVT8xRAbY953HP1bTvn8u/9P56/arHNp1h9Y/9YogX73wBW0fx/CpVXIsA/wjgav1pW//mVdPRYhlp6gxWzAYTCRnM0zPKsRnpjBK4JEqqIUi/fEppKxCRReQLFbEikYmOk5ONNPc0s4v1nXgKChEJmNY7dUs+fwXqPfdSjan8Ktv3XVt5hxAR4OT5zcIjGW6ODGd57IyQ53bhVkSMcsSt1RZiOUKSAIsqjFhl+C5gYvMFnK4JXhLLbDZZaVqzyv8YOsLxFIq0XQRE7Ckw8s3n9nGfVu2zUliDmAs8i7xK6dZ0LGeZmc3JYMXs1im1iTjNErUmwVqChqiCJVKhd6pNCaTBU0QOJHJstZZg3/H9/n9r/cy8C+RHxiJMrj1aXbaq+cHvLb/PQqaCVf4PZa1DbGx+xGGkkYMlSI1okitDEZdp29qlrNJBYOgs8ZRxZkZHbmxhs6+PezfvZch0YTTAK1OG5GCQDpXRNTLxIo5vvf8D3nwi3UoKel6gLdpBeVyCNnmRbI00GwWsdQKfBDXiaST+KwO+pIlehMKwRoDzRYDI6lZbnFUcb+viZNvjnIuBat91XxlkRMLGgNJHVWuYlfoEoWixMXIJFB34wTW3ebj7VNh4mOjpBNh8q6lVBtcvHV+jCqTjM8qUchm6fFWUW8xUdBheYOZdC7PleQM0XQKswxtdol6jxMdI3fWafTFsnR4HJzQRIp6bv5HcKj/Q6TZGOpUkaFLFXaWDxGR/Wzx2agyGpnI67jlCnqpwIiS4Vw8gaiXyZQ0NFcdjloPljIksOJdvBKbyU54dATrxDBbl/uZeH8Ii2ycHzAy7SCnxrDV1+JpcuNpWsgas4vVzR58Zh2PRcZtcXEwkmbvpTAnx89RbTJTa6/CmSvjDAT5XJeNmhoTSxcvJplIcb5SxohGu9OFLTuDLxicH7CkzcWuPUkeWp6i4ISNdwRpleGiquG3//2lSWtg0FTuaXETrK1iPBbBJJcZ+OMOcm4Jz50rWBBN0N97gOFJBaxGziolTh36K952P9t/9hK9O568NnPOt+Chbo31C3P0nowwdvwgw/0HAfDbJc7PTHMiPMrgxCUS6QksWhTTxCmSR9/AW46TS01xsrefmGTn5cE4v9l/hC5/E2va/bi0PL1Xpui6/8vcvuKO+RMYn6lgb7DiEl3MTIzy/rF9JAUno+EoRitk1RSyJKMW4cLwOS5fGOHSmQEuTMVJjMVZoI3TmUtxFJ0PbF6WZ8sc372bRD7Hhs2Pg6OeJ55+hs75ABdjEsqZMJtuayXU2EnkisLgid9yZKyEu6UVJRpmamoaOREnl81QyitYLLMMj/bTLeTp8YoMpSQCDRWe3f5T3HmRwTf30PrwN7CvfQBRVaG1jcrxQ3MBqSz4gHryDF5O0DddQauWyGdFOhbXcV+TyOi0wqoHHyU1dpHca9/FbpxFafTiWfsoCw0S+tkRXt7xJ9L5cVRFJRrOcPfd62j98U8YW7eF8QujeBs9CNVOTh2fJ4FSEaYLFUq5FNNDKbJ5ndd3HCOXyZDJqjxs97F2Yw/j6RjlQhZbi58el4+Jd3tZ3l6LZ/tLbH3uR1yOnuaFF19kw4JGfh5SWbMwSldjLZl0moKS/DfvQFLjw8FJ1gbbMPi9ZIpl2gs6V2JGXFYfZyejqANnsK37Gka7DVtjIzvfeIeR3+3C9Ng99PRswuNvJXz+NAtaGhiT3Sy9Pcgip5FEtojZYMSiF+YHBILL6L73Ef4yfBa7u4ZJdRpDV5CGWyuUDBYK6SgDb/+BoqkaYzEFx04zc36UTRtWsjLYydDRAyxrdDJkNfHYVzezeGkHq5Z1ELoQRRQE2uocTMyk5wd0tjbz7JNPcKSvD7PZSCqVhoqOQRYp53PIWhmtVMIgCMiCTlnT0Y0PYLRa6E+HiR3YxypJonvb11mxeg1WTUdRs2Rm83S11FERBRRFmR/wy6dWX1t/1Dk3NMhxfc0AuK82H+Od7ffO2T9zg545gMFjszc84LDO0/kplfDZr9lngJsN+Bveb9bpS0UiAAAAAABJRU5ErkJggg==",imageSize:ne+"px",onClick:d?function(){return"false"}:"",children:!x&&(0,e.createComponentVNode)(2,t.ImageButton.Item,{bold:!0,width:"64px",selected:c,content:P,tooltip:"Click to disable main button",tooltipPosition:"bottom-end",icon:_,iconColor:"gold",iconSize:X,iconPosition:$,onClick:Y})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Vertical",checked:C,onClick:q}),children:S.map(function(Z){return(0,e.createComponentVNode)(2,t.ImageButton,{m:C?.5:0,vertical:C,color:Z,content:Z,image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAOVBMVEXAwMDBr16vk0uORiz/o7HyfxiZbDXWzMzhbA3//wD////tHCQAAP/4ior/ADOAgIDAwMAAAAAzmQDdkuRxAAAAAXRSTlMAQObYZgAAAKxJREFUOI3dksESgyAMRG0FE4I22P//2IaAVdB0em3Xy477SJYZhuFfdDO1AXdD4xtwRd77o5t6wKt20wPlN2QVewUgQqAAiD0QYxQCJYc5zCAEtisUcBkgmUAZ6ErGWh9oeSwE6k+3yHNACIIPgMzQONsWYOZ90QXAiRK7g2K7gtNKayXKjdoOcv4pX+IcGoBMqIA26TswSU6HmueSpLlRcjK0AaOpL97rb+gFHckLe1QlljQAAAAASUVORK5CYII=",imageSize:C?"48px":"24px",onClick:d?function(){return"false"}:""},Z)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Vertical",checked:h,onClick:ae}),children:m.map(function(Z){return(0,e.createComponentVNode)(2,t.ImageButton,{m:h?.5:0,vertical:h,color:Z,content:Z,image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAJ1BMVEUAAABeGFCgXZN2PnKqqqq/vr/T09PycWFIHUFeKlNLHEtVWWOOj5g02k6OAAAAAXRSTlMAQObYZgAAAFdJREFUKJFjYBhEgFEQDATgAkImLkDgrIgQME0vSy8LRhYoBwISBdLLy1HNSCsvT0MWwLDWGAwQAp0rZ+3evXLWDGSBM2dQBWYCAUkCHB1g0IAreAYCAACm2zDykxPL4AAAAABJRU5ErkJggg==",imageSize:h?"48px":"24px",onClick:d?function(){return"false"}:""},Z)})})],4)}},21394:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"ImageButton",render:function(){function k(){return(0,e.createComponentVNode)(2,y)}return k}()},m=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],S=["good","average","bad","black","white"],y=function(V,p){var i=(0,a.useLocalState)(p,"disabled",!1),c=i[0],s=i[1],u=(0,a.useLocalState)(p,"onClick",!0),d=u[0],f=u[1],l=(0,a.useLocalState)(p,"vertical1",!0),C=l[0],b=l[1],v=(0,a.useLocalState)(p,"vertical2",!0),h=v[0],g=v[1],N=(0,a.useLocalState)(p,"vertical3",!1),x=N[0],B=N[1],L=(0,a.useLocalState)(p,"title","Image Button"),T=L[0],E=L[1],w=(0,a.useLocalState)(p,"content","Image is a LIE!"),A=w[0],O=w[1],M=(0,a.useLocalState)(p,"itemContent","Second Button"),P=M[0],R=M[1],F=(0,a.useLocalState)(p,"itemIcon","face-smile"),_=F[0],U=F[1],W=(0,a.useLocalState)(p,"itemIconPos","default"),$=W[0],Y=W[1],ne=(0,a.useLocalState)(p,"itemIconSize",2),G=ne[0],le=ne[1],de=(0,a.useLocalState)(p,"imageSize",64),oe=de[0],re=de[1],q=function(){b(!C)},ae=function(){g(!h)},J=function(){B(!x)},X=function(){s(!c)},Q=function(){f(!d)};return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Input,{value:T,onInput:function(){function Z(te,fe){return E(fe)}return Z}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Content",children:(0,e.createComponentVNode)(2,t.Input,{value:A,onInput:function(){function Z(te,fe){return O(fe)}return Z}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Image Size",children:(0,e.createComponentVNode)(2,t.Slider,{animated:!0,width:10,value:oe,minValue:0,maxValue:256,step:1,stepPixelSize:2,onChange:function(){function Z(te,fe){return re(fe)}return Z}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"onClick",checked:d,onClick:Q})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Vertical",checked:x,onClick:J})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item Content",children:(0,e.createComponentVNode)(2,t.Input,{value:P,onInput:function(){function Z(te,fe){return R(fe)}return Z}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item Icon",children:(0,e.createComponentVNode)(2,t.Input,{value:_,onInput:function(){function Z(te,fe){return U(fe)}return Z}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item IconPos",children:(0,e.createComponentVNode)(2,t.Input,{value:$,onInput:function(){function Z(te,fe){return Y(fe)}return Z}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item IconSize",children:(0,e.createComponentVNode)(2,t.Slider,{animated:!0,width:10,value:G,minValue:0,maxValue:20,step:1,stepPixelSize:10,onChange:function(){function Z(te,fe){return le(fe)}return Z}()})})]})})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.ImageButton,{width:x&&oe+"px",ellipsis:x,vertical:x,disabled:c,title:T,content:A,tooltip:x?A:"Cool and simple buttons with images, FOR ALL!!!",image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAGo0lEQVRYhe3Xa2xT9xnH8e+5+O4ktuM4cS5OYmhCQ1xcYMCgA9rSbKUqqqpWkzq1mgBtq/piaqna7UXXaTfWddL6opO2dlu1aSBVjJZC19FByyUadKGCJIYQAoHEODi2k/hyTnw/x3uxwZpBtq6qhib1efU/5/9/9Hz0O0c6OsLhw4e5mSXe1On/94BAIFAJBAKV/zkgEAhU7HZ7JRQKCaFQSLDb7Z8Y8l8BPjpYVVXh6n1VVT8xRAbY953HP1bTvn8u/9P56/arHNp1h9Y/9YogX73wBW0fx/CpVXIsA/wjgav1pW//mVdPRYhlp6gxWzAYTCRnM0zPKsRnpjBK4JEqqIUi/fEppKxCRReQLFbEikYmOk5ONNPc0s4v1nXgKChEJmNY7dUs+fwXqPfdSjan8Ktv3XVt5hxAR4OT5zcIjGW6ODGd57IyQ53bhVkSMcsSt1RZiOUKSAIsqjFhl+C5gYvMFnK4JXhLLbDZZaVqzyv8YOsLxFIq0XQRE7Ckw8s3n9nGfVu2zUliDmAs8i7xK6dZ0LGeZmc3JYMXs1im1iTjNErUmwVqChqiCJVKhd6pNCaTBU0QOJHJstZZg3/H9/n9r/cy8C+RHxiJMrj1aXbaq+cHvLb/PQqaCVf4PZa1DbGx+xGGkkYMlSI1okitDEZdp29qlrNJBYOgs8ZRxZkZHbmxhs6+PezfvZch0YTTAK1OG5GCQDpXRNTLxIo5vvf8D3nwi3UoKel6gLdpBeVyCNnmRbI00GwWsdQKfBDXiaST+KwO+pIlehMKwRoDzRYDI6lZbnFUcb+viZNvjnIuBat91XxlkRMLGgNJHVWuYlfoEoWixMXIJFB34wTW3ebj7VNh4mOjpBNh8q6lVBtcvHV+jCqTjM8qUchm6fFWUW8xUdBheYOZdC7PleQM0XQKswxtdol6jxMdI3fWafTFsnR4HJzQRIp6bv5HcKj/Q6TZGOpUkaFLFXaWDxGR/Wzx2agyGpnI67jlCnqpwIiS4Vw8gaiXyZQ0NFcdjloPljIksOJdvBKbyU54dATrxDBbl/uZeH8Ii2ycHzAy7SCnxrDV1+JpcuNpWsgas4vVzR58Zh2PRcZtcXEwkmbvpTAnx89RbTJTa6/CmSvjDAT5XJeNmhoTSxcvJplIcb5SxohGu9OFLTuDLxicH7CkzcWuPUkeWp6i4ISNdwRpleGiquG3//2lSWtg0FTuaXETrK1iPBbBJJcZ+OMOcm4Jz50rWBBN0N97gOFJBaxGziolTh36K952P9t/9hK9O568NnPOt+Chbo31C3P0nowwdvwgw/0HAfDbJc7PTHMiPMrgxCUS6QksWhTTxCmSR9/AW46TS01xsrefmGTn5cE4v9l/hC5/E2va/bi0PL1Xpui6/8vcvuKO+RMYn6lgb7DiEl3MTIzy/rF9JAUno+EoRitk1RSyJKMW4cLwOS5fGOHSmQEuTMVJjMVZoI3TmUtxFJ0PbF6WZ8sc372bRD7Hhs2Pg6OeJ55+hs75ABdjEsqZMJtuayXU2EnkisLgid9yZKyEu6UVJRpmamoaOREnl81QyitYLLMMj/bTLeTp8YoMpSQCDRWe3f5T3HmRwTf30PrwN7CvfQBRVaG1jcrxQ3MBqSz4gHryDF5O0DddQauWyGdFOhbXcV+TyOi0wqoHHyU1dpHca9/FbpxFafTiWfsoCw0S+tkRXt7xJ9L5cVRFJRrOcPfd62j98U8YW7eF8QujeBs9CNVOTh2fJ4FSEaYLFUq5FNNDKbJ5ndd3HCOXyZDJqjxs97F2Yw/j6RjlQhZbi58el4+Jd3tZ3l6LZ/tLbH3uR1yOnuaFF19kw4JGfh5SWbMwSldjLZl0moKS/DfvQFLjw8FJ1gbbMPi9ZIpl2gs6V2JGXFYfZyejqANnsK37Gka7DVtjIzvfeIeR3+3C9Ng99PRswuNvJXz+NAtaGhiT3Sy9Pcgip5FEtojZYMSiF+YHBILL6L73Ef4yfBa7u4ZJdRpDV5CGWyuUDBYK6SgDb/+BoqkaYzEFx04zc36UTRtWsjLYydDRAyxrdDJkNfHYVzezeGkHq5Z1ELoQRRQE2uocTMyk5wd0tjbz7JNPcKSvD7PZSCqVhoqOQRYp53PIWhmtVMIgCMiCTlnT0Y0PYLRa6E+HiR3YxypJonvb11mxeg1WTUdRs2Rm83S11FERBRRFmR/wy6dWX1t/1Dk3NMhxfc0AuK82H+Od7ffO2T9zg545gMFjszc84LDO0/kplfDZr9lngJsN+Bveb9bpS0UiAAAAAABJRU5ErkJggg==",imageSize:oe+"px",onClick:d?function(){return"false"}:"",children:!x&&(0,e.createComponentVNode)(2,t.ImageButton.Item,{bold:!0,width:"64px",selected:c,content:P,tooltip:"Click to disable main button",tooltipPosition:"bottom-end",icon:_,iconColor:"gold",iconSize:G,iconPosition:$,onClick:X})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Vertical",checked:C,onClick:q}),children:S.map(function(Z){return(0,e.createComponentVNode)(2,t.ImageButton,{m:C?.5:0,vertical:C,color:Z,content:Z,image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAOVBMVEXAwMDBr16vk0uORiz/o7HyfxiZbDXWzMzhbA3//wD////tHCQAAP/4ior/ADOAgIDAwMAAAAAzmQDdkuRxAAAAAXRSTlMAQObYZgAAAKxJREFUOI3dksESgyAMRG0FE4I22P//2IaAVdB0em3Xy477SJYZhuFfdDO1AXdD4xtwRd77o5t6wKt20wPlN2QVewUgQqAAiD0QYxQCJYc5zCAEtisUcBkgmUAZ6ErGWh9oeSwE6k+3yHNACIIPgMzQONsWYOZ90QXAiRK7g2K7gtNKayXKjdoOcv4pX+IcGoBMqIA26TswSU6HmueSpLlRcjK0AaOpL97rb+gFHckLe1QlljQAAAAASUVORK5CYII=",imageSize:C?"48px":"24px",onClick:d?function(){return"false"}:""},Z)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Vertical",checked:h,onClick:ae}),children:m.map(function(Z){return(0,e.createComponentVNode)(2,t.ImageButton,{m:h?.5:0,vertical:h,color:Z,content:Z,image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAJ1BMVEUAAABeGFCgXZN2PnKqqqq/vr/T09PycWFIHUFeKlNLHEtVWWOOj5g02k6OAAAAAXRSTlMAQObYZgAAAFdJREFUKJFjYBhEgFEQDATgAkImLkDgrIgQME0vSy8LRhYoBwISBdLLy1HNSCsvT0MWwLDWGAwQAp0rZ+3evXLWDGSBM2dQBWYCAUkCHB1g0IAreAYCAACm2zDykxPL4AAAAABJRU5ErkJggg==",imageSize:h?"48px":"24px",onClick:d?function(){return"false"}:""},Z)})})],4)}},21394:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Input",render:function(){function S(){return(0,e.createComponentVNode)(2,m)}return S}()},m=function(y,k){var V=(0,a.useLocalState)(k,"number",0),p=V[0],i=V[1],c=(0,a.useLocalState)(k,"text","Sample text"),s=c[0],l=c[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:s,onChange:function(){function d(f,u){return l(u)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:s,onInput:function(){function d(f,u){return l(u)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:p,minValue:-100,maxValue:100,onChange:function(){function d(f,u){return i(u)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:p,minValue:-100,maxValue:100,onDrag:function(){function d(f,u){return i(u)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:p,minValue:-100,maxValue:100,onDrag:function(){function d(f,u){return i(u)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:p,minValue:-100,maxValue:100,onDrag:function(){function d(f,u){return i(u)}return d}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:p,minValue:-100,maxValue:100,onDrag:function(){function d(f,u){return i(u)}return d}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,t.DraggableControl,{value:p,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function d(f,u){return i(u)}return d}(),children:function(){function d(f){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:f.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:f.displayValue*4}),f.inputElement]})}return d}()})})})]})})}},43932:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=r.meta={title:"Popper",render:function(){function m(){return(0,e.createComponentVNode)(2,o)}return m}()},o=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"Loogatme!"}),options:{placement:"bottom"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"300px",width:"200px"}})}),(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"I am on the right!"}),options:{placement:"right"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"500px",width:"100px"}})})],4)}},33270:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"Input",render:function(){function S(){return(0,e.createComponentVNode)(2,m)}return S}()},m=function(y,k){var V=(0,a.useLocalState)(k,"number",0),p=V[0],i=V[1],c=(0,a.useLocalState)(k,"text","Sample text"),s=c[0],u=c[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:s,onChange:function(){function d(f,l){return u(l)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:s,onInput:function(){function d(f,l){return u(l)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:p,minValue:-100,maxValue:100,onChange:function(){function d(f,l){return i(l)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:p,minValue:-100,maxValue:100,onDrag:function(){function d(f,l){return i(l)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:p,minValue:-100,maxValue:100,onDrag:function(){function d(f,l){return i(l)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:p,minValue:-100,maxValue:100,onDrag:function(){function d(f,l){return i(l)}return d}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:p,minValue:-100,maxValue:100,onDrag:function(){function d(f,l){return i(l)}return d}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,t.DraggableControl,{value:p,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function d(f,l){return i(l)}return d}(),children:function(){function d(f){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:f.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:f.displayValue*4}),f.inputElement]})}return d}()})})})]})})}},43932:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=r.meta={title:"Popper",render:function(){function m(){return(0,e.createComponentVNode)(2,o)}return m}()},o=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"Loogatme!"}),options:{placement:"bottom"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"300px",width:"200px"}})}),(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"I am on the right!"}),options:{placement:"right"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"500px",width:"100px"}})})],4)}},33270:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT @@ -339,11 +339,11 @@ * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Tabs",render:function(){function y(){return(0,e.createComponentVNode)(2,S)}return y}()},m=["Tab #1","Tab #2","Tab #3","Tab #4"],S=function(k,V){var p=(0,a.useLocalState)(V,"tabIndex",0),i=p[0],c=p[1],s=(0,a.useLocalState)(V,"tabProps",{}),l=s[0],d=s[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:l.vertical,onClick:function(){function f(){return d(Object.assign({},l,{vertical:!l.vertical}))}return f}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"leftSlot",checked:l.leftSlot,onClick:function(){function f(){return d(Object.assign({},l,{leftSlot:!l.leftSlot}))}return f}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"rightSlot",checked:l.rightSlot,onClick:function(){function f(){return d(Object.assign({},l,{rightSlot:!l.rightSlot}))}return f}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"icon",checked:l.icon,onClick:function(){function f(){return d(Object.assign({},l,{icon:!l.icon}))}return f}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"fluid",checked:l.fluid,onClick:function(){function f(){return d(Object.assign({},l,{fluid:!l.fluid}))}return f}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"left aligned",checked:l.leftAligned,onClick:function(){function f(){return d(Object.assign({},l,{leftAligned:!l.leftAligned}))}return f}()})]}),(0,e.createComponentVNode)(2,t.Section,{fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:l.vertical,fluid:l.fluid,textAlign:l.leftAligned&&"left",children:m.map(function(f,u){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:u===i,icon:l.icon&&"info-circle",leftSlot:l.leftSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),rightSlot:l.rightSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),onClick:function(){function C(){return c(u)}return C}(),children:f},u)})})})],4)}},53276:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"Tabs",render:function(){function y(){return(0,e.createComponentVNode)(2,S)}return y}()},m=["Tab #1","Tab #2","Tab #3","Tab #4"],S=function(k,V){var p=(0,a.useLocalState)(V,"tabIndex",0),i=p[0],c=p[1],s=(0,a.useLocalState)(V,"tabProps",{}),u=s[0],d=s[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:u.vertical,onClick:function(){function f(){return d(Object.assign({},u,{vertical:!u.vertical}))}return f}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"leftSlot",checked:u.leftSlot,onClick:function(){function f(){return d(Object.assign({},u,{leftSlot:!u.leftSlot}))}return f}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"rightSlot",checked:u.rightSlot,onClick:function(){function f(){return d(Object.assign({},u,{rightSlot:!u.rightSlot}))}return f}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"icon",checked:u.icon,onClick:function(){function f(){return d(Object.assign({},u,{icon:!u.icon}))}return f}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"fluid",checked:u.fluid,onClick:function(){function f(){return d(Object.assign({},u,{fluid:!u.fluid}))}return f}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"left aligned",checked:u.leftAligned,onClick:function(){function f(){return d(Object.assign({},u,{leftAligned:!u.leftAligned}))}return f}()})]}),(0,e.createComponentVNode)(2,t.Section,{fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:u.vertical,fluid:u.fluid,textAlign:u.leftAligned&&"left",children:m.map(function(f,l){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:l===i,icon:u.icon&&"info-circle",leftSlot:u.leftSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),rightSlot:u.rightSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),onClick:function(){function C(){return c(l)}return C}(),children:f},l)})})})],4)}},53276:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Themes",render:function(){function S(){return(0,e.createComponentVNode)(2,m)}return S}()},m=function(y,k){var V=(0,a.useLocalState)(k,"kitchenSinkTheme"),p=V[0],i=V[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:p,onInput:function(){function c(s,l){return i(l)}return c}()})})})})}},28717:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(95996),t=n(36036);/** + */var o=r.meta={title:"Themes",render:function(){function S(){return(0,e.createComponentVNode)(2,m)}return S}()},m=function(y,k){var V=(0,a.useLocalState)(k,"kitchenSinkTheme"),p=V[0],i=V[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:p,onInput:function(){function c(s,u){return i(u)}return c}()})})})})}},28717:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(95996),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT @@ -351,11 +351,11 @@ * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.BoxWithSampleText=function(){function o(m){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},m,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},67160:function(){},23542:function(){},30386:function(){},98996:function(){},41639:function(){},50578:function(){},4444:function(){},77870:function(){},23632:function(){},24226:function(){},39108:function(){},21039:function(){},51862:function(){},56856:function(){},63489:function(){},1965:function(){},1272:function(){},74757:function(){},11714:function(){},73492:function(){},49641:function(){},17570:function(){},61858:function(){},73358:function(){},32882:function(){},70752:function(I,r,n){var e={"./pai_advsecrecords.js":96572,"./pai_atmosphere.js":80818,"./pai_bioscan.js":23903,"./pai_camera_bug.js":79592,"./pai_directives.js":64988,"./pai_doorjack.js":13813,"./pai_encoder.js":43816,"./pai_gps_module.js":88895,"./pai_main_menu.js":66025,"./pai_manifest.js":2983,"./pai_medrecords.js":40758,"./pai_messenger.js":98599,"./pai_radio.js":50775,"./pai_sec_chem.js":19873,"./pai_secrecords.js":48623,"./pai_signaler.js":47297};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=70752},59395:function(I,r,n){var e={"./pda_atmos_scan.js":78532,"./pda_janitor.js":40253,"./pda_main_menu.js":58293,"./pda_manifest.js":58059,"./pda_medical.js":18147,"./pda_messenger.js":77595,"./pda_mule.js":24635,"./pda_notes.js":97085,"./pda_power.js":57513,"./pda_request_console.js":57635,"./pda_secbot.js":99808,"./pda_security.js":77168,"./pda_signaler.js":21773,"./pda_status_display.js":81857,"./pda_supplyrecords.js":70287};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=59395},32054:function(I,r,n){var e={"./AICard":1090,"./AICard.js":1090,"./AIFixer":39454,"./AIFixer.js":39454,"./APC":88422,"./APC.js":88422,"./ATM":99660,"./ATM.js":99660,"./AccountsUplinkTerminal":86423,"./AccountsUplinkTerminal.js":86423,"./AgentCard":79571,"./AgentCard.js":79571,"./AiAirlock":56793,"./AiAirlock.js":56793,"./AirAlarm":72475,"./AirAlarm.js":72475,"./AirlockAccessController":12333,"./AirlockAccessController.js":12333,"./AirlockElectronics":28736,"./AirlockElectronics.js":28736,"./AlertModal":47365,"./AlertModal.tsx":47365,"./AppearanceChanger":71824,"./AppearanceChanger.js":71824,"./AtmosAlertConsole":72285,"./AtmosAlertConsole.js":72285,"./AtmosControl":65805,"./AtmosControl.js":65805,"./AtmosFilter":87816,"./AtmosFilter.js":87816,"./AtmosMixer":52977,"./AtmosMixer.js":52977,"./AtmosPump":11748,"./AtmosPump.js":11748,"./AutoDoc":76511,"./AutoDoc.js":76511,"./Autolathe":59179,"./Autolathe.js":59179,"./Biogenerator":64273,"./Biogenerator.js":64273,"./BlueSpaceArtilleryControl":18621,"./BlueSpaceArtilleryControl.js":18621,"./BluespaceRiftScanner":13995,"./BluespaceRiftScanner.js":13995,"./BluespaceRiftServer":25530,"./BluespaceRiftServer.js":25530,"./BluespaceTap":27629,"./BluespaceTap.js":27629,"./BodyScanner":33758,"./BodyScanner.js":33758,"./BorgPanel":42570,"./BorgPanel.js":42570,"./BotClean":20464,"./BotClean.js":20464,"./BotSecurity":74439,"./BotSecurity.js":74439,"./BrigCells":10833,"./BrigCells.js":10833,"./BrigTimer":45761,"./BrigTimer.js":45761,"./CameraConsole":26300,"./CameraConsole.js":26300,"./Canister":52927,"./Canister.js":52927,"./CardComputer":51793,"./CardComputer.js":51793,"./CargoConsole":64083,"./CargoConsole.js":64083,"./CentcomPodLauncher":65875,"./CentcomPodLauncher/":65875,"./CentcomPodLauncher/DelayHelper":22794,"./CentcomPodLauncher/DelayHelper.tsx":22794,"./CentcomPodLauncher/PodBays":23749,"./CentcomPodLauncher/PodBays.tsx":23749,"./CentcomPodLauncher/PodLaunch":8507,"./CentcomPodLauncher/PodLaunch.tsx":8507,"./CentcomPodLauncher/PodSounds":15802,"./CentcomPodLauncher/PodSounds.tsx":15802,"./CentcomPodLauncher/PodStatusPage":94577,"./CentcomPodLauncher/PodStatusPage.tsx":94577,"./CentcomPodLauncher/PresetsPage":30590,"./CentcomPodLauncher/PresetsPage.tsx":30590,"./CentcomPodLauncher/ReverseMenu":72932,"./CentcomPodLauncher/ReverseMenu.tsx":72932,"./CentcomPodLauncher/StylePage":68569,"./CentcomPodLauncher/StylePage.tsx":68569,"./CentcomPodLauncher/Tabs":8179,"./CentcomPodLauncher/Tabs.tsx":8179,"./CentcomPodLauncher/Timing":18885,"./CentcomPodLauncher/Timing.tsx":18885,"./CentcomPodLauncher/ViewTabHolder":76417,"./CentcomPodLauncher/ViewTabHolder.tsx":76417,"./CentcomPodLauncher/constants":7144,"./CentcomPodLauncher/constants.ts":7144,"./CentcomPodLauncher/hooks":20345,"./CentcomPodLauncher/hooks.ts":20345,"./CentcomPodLauncher/index":65875,"./CentcomPodLauncher/index.tsx":65875,"./CentcomPodLauncher/types":16780,"./CentcomPodLauncher/types.ts":16780,"./Changelog":12226,"./Changelog.js":12226,"./CheckboxListInputModal":91360,"./CheckboxListInputModal.tsx":91360,"./ChemDispenser":36108,"./ChemDispenser.js":36108,"./ChemHeater":13146,"./ChemHeater.js":13146,"./ChemMaster":56541,"./ChemMaster.tsx":56541,"./CloningConsole":37173,"./CloningConsole.js":37173,"./CoinMint":18259,"./CoinMint.tsx":18259,"./ColorPickerModal":93858,"./ColorPickerModal.tsx":93858,"./CommunicationsComputer":63818,"./CommunicationsComputer.js":63818,"./Contractor":21813,"./Contractor.js":21813,"./ConveyorSwitch":54151,"./ConveyorSwitch.js":54151,"./CrewMonitor":73169,"./CrewMonitor.js":73169,"./Cryo":63987,"./Cryo.js":63987,"./CryopodConsole":86099,"./CryopodConsole.js":86099,"./Customat":94848,"./Customat.js":94848,"./DNAModifier":12692,"./DNAModifier.js":12692,"./DestinationTagger":41074,"./DestinationTagger.js":41074,"./DisposalBin":46500,"./DisposalBin.js":46500,"./DnaVault":33233,"./DnaVault.js":33233,"./EFTPOS":17263,"./EFTPOS.js":17263,"./ERTManager":76382,"./ERTManager.js":76382,"./Electropack":82565,"./Electropack.js":82565,"./EvolutionMenu":36730,"./EvolutionMenu.js":36730,"./ExosuitFabricator":17370,"./ExosuitFabricator.js":17370,"./ExternalAirlockController":97086,"./ExternalAirlockController.js":97086,"./FaxMachine":96142,"./FaxMachine.js":96142,"./FloorPainter":83767,"./FloorPainter.js":83767,"./GPS":53424,"./GPS.js":53424,"./GasAnalyzer":68703,"./GasAnalyzer.js":68703,"./GasFreezer":27546,"./GasFreezer.js":27546,"./GeneModder":89124,"./GeneModder.js":89124,"./GenericCrewManifest":73053,"./GenericCrewManifest.js":73053,"./GhostHudPanel":42914,"./GhostHudPanel.js":42914,"./GlandDispenser":25825,"./GlandDispenser.js":25825,"./HandheldChemDispenser":67834,"./HandheldChemDispenser.js":67834,"./ImplantPad":75926,"./ImplantPad.js":75926,"./Instrument":25471,"./Instrument.js":25471,"./ItemPixelShift":65021,"./ItemPixelShift.js":65021,"./KeyComboModal":13618,"./KeyComboModal.tsx":13618,"./KeycardAuth":35655,"./KeycardAuth.js":35655,"./LaborClaimConsole":40951,"./LaborClaimConsole.js":40951,"./LawManager":9525,"./LawManager.js":9525,"./ListInputModal":90447,"./ListInputModal.tsx":90447,"./Loadout":26826,"./Loadout.tsx":26826,"./MechBayConsole":72106,"./MechBayConsole.js":72106,"./MechaControlConsole":7466,"./MechaControlConsole.js":7466,"./MedicalRecords":79625,"./MedicalRecords.js":79625,"./Mimicking":52306,"./Mimicking.js":52306,"./Minesweeper":66238,"./Minesweeper.js":66238,"./MiniGamesMenu":21385,"./MiniGamesMenu.js":21385,"./MiningVendor":87684,"./MiningVendor.js":87684,"./Multitool":97955,"./Multitool.js":97955,"./Newscaster":64713,"./Newscaster.js":64713,"./NinjaBloodScan":97351,"./NinjaBloodScan.js":97351,"./NinjaMindScan":32989,"./NinjaMindScan.js":32989,"./NuclearBomb":41166,"./NuclearBomb.js":41166,"./NumberInputModal":52416,"./NumberInputModal.tsx":52416,"./OperatingComputer":1218,"./OperatingComputer.js":1218,"./Orbit":46892,"./Orbit.js":46892,"./OreRedemption":15421,"./OreRedemption.js":15421,"./PAI":30373,"./PAI.js":30373,"./PDA":85175,"./PDA.js":85175,"./PDAPainter":38280,"./PDAPainter.js":38280,"./Pacman":68654,"./Pacman.js":68654,"./PersonalCrafting":33388,"./PersonalCrafting.js":33388,"./Photocopier":56150,"./Photocopier.js":56150,"./PodTracking":94158,"./PodTracking.js":94158,"./PollListPanel":70857,"./PollListPanel.js":70857,"./PollManagement":45736,"./PollManagement.js":45736,"./PollOptionPanel":80378,"./PollOptionPanel.js":80378,"./PoolController":84676,"./PoolController.js":84676,"./PortablePump":57003,"./PortablePump.js":57003,"./PortableScrubber":70069,"./PortableScrubber.js":70069,"./PortableTurret":59955,"./PortableTurret.js":59955,"./PowerMonitor":61631,"./PowerMonitor.js":61631,"./PrisonerImplantManager":50992,"./PrisonerImplantManager.js":50992,"./QuestConsole":7485,"./QuestConsole.js":7485,"./RCD":94813,"./RCD.js":94813,"./RPD":18738,"./RPD.js":18738,"./Radio":80299,"./Radio.js":80299,"./RankedListInputModal":14846,"./RankedListInputModal.tsx":14846,"./ReagentsEditor":58262,"./ReagentsEditor.tsx":58262,"./RequestConsole":25472,"./RequestConsole.js":25472,"./RequestManager":3786,"./RequestManager.js":3786,"./RndConsole":16475,"./RndConsole.js":16475,"./RndConsoleComponents":13472,"./RndConsoleComponents/":13472,"./RndConsoleComponents/CurrentLevels":93098,"./RndConsoleComponents/CurrentLevels.js":93098,"./RndConsoleComponents/DataDiskMenu":19192,"./RndConsoleComponents/DataDiskMenu.js":19192,"./RndConsoleComponents/DeconstructionMenu":20887,"./RndConsoleComponents/DeconstructionMenu.js":20887,"./RndConsoleComponents/LatheCategory":10666,"./RndConsoleComponents/LatheCategory.js":10666,"./RndConsoleComponents/LatheChemicalStorage":52285,"./RndConsoleComponents/LatheChemicalStorage.js":52285,"./RndConsoleComponents/LatheMainMenu":71964,"./RndConsoleComponents/LatheMainMenu.js":71964,"./RndConsoleComponents/LatheMaterialStorage":17906,"./RndConsoleComponents/LatheMaterialStorage.js":17906,"./RndConsoleComponents/LatheMaterials":83706,"./RndConsoleComponents/LatheMaterials.js":83706,"./RndConsoleComponents/LatheMenu":76749,"./RndConsoleComponents/LatheMenu.js":76749,"./RndConsoleComponents/LatheSearch":74698,"./RndConsoleComponents/LatheSearch.js":74698,"./RndConsoleComponents/MainMenu":17180,"./RndConsoleComponents/MainMenu.js":17180,"./RndConsoleComponents/RndNavButton":63459,"./RndConsoleComponents/RndNavButton.js":63459,"./RndConsoleComponents/RndNavbar":94942,"./RndConsoleComponents/RndNavbar.js":94942,"./RndConsoleComponents/RndRoute":12059,"./RndConsoleComponents/RndRoute.js":12059,"./RndConsoleComponents/SettingsMenu":52580,"./RndConsoleComponents/SettingsMenu.js":52580,"./RndConsoleComponents/index":13472,"./RndConsoleComponents/index.js":13472,"./RoboQuest":40026,"./RoboQuest.js":40026,"./RobotSelfDiagnosis":26109,"./RobotSelfDiagnosis.js":26109,"./RoboticsControlConsole":97997,"./RoboticsControlConsole.js":97997,"./Safe":54431,"./Safe.js":54431,"./SatelliteControl":29740,"./SatelliteControl.js":29740,"./SecureStorage":44162,"./SecureStorage.js":44162,"./SecurityRecords":6272,"./SecurityRecords.js":6272,"./SeedExtractor":5099,"./SeedExtractor.js":5099,"./ShuttleConsole":2916,"./ShuttleConsole.js":2916,"./ShuttleManipulator":39401,"./ShuttleManipulator.js":39401,"./Sleeper":88284,"./Sleeper.js":88284,"./SlotMachine":21597,"./SlotMachine.js":21597,"./Smartfridge":46348,"./Smartfridge.js":46348,"./Smes":86162,"./Smes.js":86162,"./SolarControl":63584,"./SolarControl.js":63584,"./SpawnersMenu":38096,"./SpawnersMenu.js":38096,"./SpiderOS":7957,"./SpiderOS.js":7957,"./StationAlertConsole":38307,"./StationAlertConsole.js":38307,"./StripMenu":39409,"./StripMenu.tsx":39409,"./SuitStorage":69514,"./SuitStorage.js":69514,"./SupermatterMonitor":15022,"./SupermatterMonitor.js":15022,"./SyndicateComputerSimple":46029,"./SyndicateComputerSimple.js":46029,"./SyndieCargoConsole":99279,"./SyndieCargoConsole.js":99279,"./TTSSeedsExplorer":44852,"./TTSSeedsExplorer.js":44852,"./TachyonArray":56441,"./TachyonArray.js":56441,"./Tank":1754,"./Tank.js":1754,"./TankDispenser":7579,"./TankDispenser.js":7579,"./TcommsCore":16136,"./TcommsCore.js":16136,"./TcommsRelay":88046,"./TcommsRelay.js":88046,"./Teleporter":20802,"./Teleporter.js":20802,"./TextInputModal":24410,"./TextInputModal.tsx":24410,"./ThiefKit":69566,"./ThiefKit.js":69566,"./TransferValve":20035,"./TransferValve.js":20035,"./Uplink":52847,"./Uplink.js":52847,"./UploadPanel":80949,"./UploadPanel.js":80949,"./VampireSpecMenu":8946,"./VampireSpecMenu.js":8946,"./VampireTrophiesStatus":45770,"./VampireTrophiesStatus.js":45770,"./Vending":12261,"./Vending.js":12261,"./VolumeMixer":68971,"./VolumeMixer.js":68971,"./VotePanel":2510,"./VotePanel.js":2510,"./Wires":30138,"./Wires.js":30138,"./Workshop":30995,"./Workshop.js":30995,"./common/AccessList":49148,"./common/AccessList.js":49148,"./common/AtmosScan":26991,"./common/AtmosScan.js":26991,"./common/BeakerContents":85870,"./common/BeakerContents.js":85870,"./common/ComplexModal":3939,"./common/ComplexModal.js":3939,"./common/CrewManifest":41874,"./common/CrewManifest.js":41874,"./common/InputButtons":19203,"./common/InputButtons.tsx":19203,"./common/InterfaceLockNoticeBox":195,"./common/InterfaceLockNoticeBox.js":195,"./common/Loader":51057,"./common/Loader.tsx":51057,"./common/LoginInfo":321,"./common/LoginInfo.js":321,"./common/LoginScreen":5485,"./common/LoginScreen.js":5485,"./common/Operating":62411,"./common/Operating.js":62411,"./common/Signaler":13545,"./common/Signaler.js":13545,"./common/SimpleRecords":41984,"./common/SimpleRecords.js":41984,"./common/TemporaryNotice":22091,"./common/TemporaryNotice.js":22091,"./manually-routed/KitchenSink":25443,"./manually-routed/KitchenSink.js":25443,"./pai/pai_advsecrecords":96572,"./pai/pai_advsecrecords.js":96572,"./pai/pai_atmosphere":80818,"./pai/pai_atmosphere.js":80818,"./pai/pai_bioscan":23903,"./pai/pai_bioscan.js":23903,"./pai/pai_camera_bug":79592,"./pai/pai_camera_bug.js":79592,"./pai/pai_directives":64988,"./pai/pai_directives.js":64988,"./pai/pai_doorjack":13813,"./pai/pai_doorjack.js":13813,"./pai/pai_encoder":43816,"./pai/pai_encoder.js":43816,"./pai/pai_gps_module":88895,"./pai/pai_gps_module.js":88895,"./pai/pai_main_menu":66025,"./pai/pai_main_menu.js":66025,"./pai/pai_manifest":2983,"./pai/pai_manifest.js":2983,"./pai/pai_medrecords":40758,"./pai/pai_medrecords.js":40758,"./pai/pai_messenger":98599,"./pai/pai_messenger.js":98599,"./pai/pai_radio":50775,"./pai/pai_radio.js":50775,"./pai/pai_sec_chem":19873,"./pai/pai_sec_chem.js":19873,"./pai/pai_secrecords":48623,"./pai/pai_secrecords.js":48623,"./pai/pai_signaler":47297,"./pai/pai_signaler.js":47297,"./pda/pda_atmos_scan":78532,"./pda/pda_atmos_scan.js":78532,"./pda/pda_janitor":40253,"./pda/pda_janitor.js":40253,"./pda/pda_main_menu":58293,"./pda/pda_main_menu.js":58293,"./pda/pda_manifest":58059,"./pda/pda_manifest.js":58059,"./pda/pda_medical":18147,"./pda/pda_medical.js":18147,"./pda/pda_messenger":77595,"./pda/pda_messenger.js":77595,"./pda/pda_mule":24635,"./pda/pda_mule.js":24635,"./pda/pda_notes":97085,"./pda/pda_notes.js":97085,"./pda/pda_power":57513,"./pda/pda_power.js":57513,"./pda/pda_request_console":57635,"./pda/pda_request_console.js":57635,"./pda/pda_secbot":99808,"./pda/pda_secbot.js":99808,"./pda/pda_security":77168,"./pda/pda_security.js":77168,"./pda/pda_signaler":21773,"./pda/pda_signaler.js":21773,"./pda/pda_status_display":81857,"./pda/pda_status_display.js":81857,"./pda/pda_supplyrecords":70287,"./pda/pda_supplyrecords.js":70287};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=32054},4085:function(I,r,n){var e={"./Blink.stories.js":51364,"./BlockQuote.stories.js":32453,"./Box.stories.js":83531,"./Button.stories.js":74198,"./ByondUi.stories.js":51956,"./Collapsible.stories.js":17466,"./Flex.stories.js":89241,"./ImageButton.stories.js":48779,"./Input.stories.js":21394,"./Popper.stories.js":43932,"./ProgressBar.stories.js":33270,"./Stack.stories.js":77766,"./Storage.stories.js":30187,"./Tabs.stories.js":46554,"./Themes.stories.js":53276,"./Tooltip.stories.js":28717};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=4085},10320:function(I,r,n){"use strict";var e=n(55747),a=n(89393),t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},32606:function(I,r,n){"use strict";var e=n(1031),a=n(89393),t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},35908:function(I,r,n){"use strict";var e=n(45015),a=String,t=TypeError;I.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},80575:function(I,r,n){"use strict";var e=n(24697),a=n(80674),t=n(74595).f,o=e("unscopables"),m=Array.prototype;m[o]===void 0&&t(m,o,{configurable:!0,value:a(null)}),I.exports=function(S){m[o][S]=!0}},35483:function(I,r,n){"use strict";var e=n(50233).charAt;I.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},60077:function(I,r,n){"use strict";var e=n(21287),a=TypeError;I.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},30365:function(I,r,n){"use strict";var e=n(77568),a=String,t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},70377:function(I){"use strict";I.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},3782:function(I,r,n){"use strict";var e=n(40033);I.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},4246:function(I,r,n){"use strict";var e=n(70377),a=n(58310),t=n(16210),o=n(55747),m=n(77568),S=n(45299),y=n(2281),k=n(89393),V=n(37909),p=n(55938),i=n(73936),c=n(21287),s=n(36917),l=n(76649),d=n(24697),f=n(16738),u=n(5419),C=u.enforce,b=u.get,v=t.Int8Array,h=v&&v.prototype,g=t.Uint8ClampedArray,N=g&&g.prototype,x=v&&s(v),B=h&&s(h),L=Object.prototype,T=t.TypeError,E=d("toStringTag"),w=f("TYPED_ARRAY_TAG"),A="TypedArrayConstructor",O=e&&!!l&&y(t.opera)!=="Opera",M=!1,P,R,F,_={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},W=function(){function ne(re){if(!m(re))return!1;var q=y(re);return q==="DataView"||S(_,q)||S(U,q)}return ne}(),$=function(re){var q=s(re);if(m(q)){var ae=b(q);return ae&&S(ae,A)?ae[A]:$(q)}},G=function(re){if(!m(re))return!1;var q=y(re);return S(_,q)||S(U,q)},oe=function(re){if(G(re))return re;throw new T("Target is not a typed array")},X=function(re){if(o(re)&&(!l||c(x,re)))return re;throw new T(k(re)+" is not a typed array constructor")},pe=function(re,q,ae,J){if(a){if(ae)for(var Y in _){var Q=t[Y];if(Q&&S(Q.prototype,re))try{delete Q.prototype[re]}catch(Z){try{Q.prototype[re]=q}catch(te){}}}(!B[re]||ae)&&p(B,re,ae?q:O&&h[re]||q,J)}},me=function(re,q,ae){var J,Y;if(a){if(l){if(ae){for(J in _)if(Y=t[J],Y&&S(Y,re))try{delete Y[re]}catch(Q){}}if(!x[re]||ae)try{return p(x,re,ae?q:O&&x[re]||q)}catch(Q){}else return}for(J in _)Y=t[J],Y&&(!Y[re]||ae)&&p(Y,re,q)}};for(P in _)R=t[P],F=R&&R.prototype,F?C(F)[A]=R:O=!1;for(P in U)R=t[P],F=R&&R.prototype,F&&(C(F)[A]=R);if((!O||!o(x)||x===Function.prototype)&&(x=function(){function ne(){throw new T("Incorrect invocation")}return ne}(),O))for(P in _)t[P]&&l(t[P],x);if((!O||!B||B===L)&&(B=x.prototype,O))for(P in _)t[P]&&l(t[P].prototype,B);if(O&&s(N)!==B&&l(N,B),a&&!S(B,E)){M=!0,i(B,E,{configurable:!0,get:function(){function ne(){return m(this)?this[w]:void 0}return ne}()});for(P in _)t[P]&&V(t[P],w,P)}I.exports={NATIVE_ARRAY_BUFFER_VIEWS:O,TYPED_ARRAY_TAG:M&&w,aTypedArray:oe,aTypedArrayConstructor:X,exportTypedArrayMethod:pe,exportTypedArrayStaticMethod:me,getTypedArrayConstructor:$,isView:W,isTypedArray:G,TypedArray:x,TypedArrayPrototype:B}},37336:function(I,r,n){"use strict";var e=n(16210),a=n(67250),t=n(58310),o=n(70377),m=n(70520),S=n(37909),y=n(73936),k=n(30145),V=n(40033),p=n(60077),i=n(61365),c=n(10188),s=n(43806),l=n(95867),d=n(91784),f=n(36917),u=n(76649),C=n(88471),b=n(54602),v=n(5781),h=n(5774),g=n(84925),N=n(5419),x=m.PROPER,B=m.CONFIGURABLE,L="ArrayBuffer",T="DataView",E="prototype",w="Wrong length",A="Wrong index",O=N.getterFor(L),M=N.getterFor(T),P=N.set,R=e[L],F=R,_=F&&F[E],U=e[T],W=U&&U[E],$=Object.prototype,G=e.Array,oe=e.RangeError,X=a(C),pe=a([].reverse),me=d.pack,ne=d.unpack,re=function(ie){return[ie&255]},q=function(ie){return[ie&255,ie>>8&255]},ae=function(ie){return[ie&255,ie>>8&255,ie>>16&255,ie>>24&255]},J=function(ie){return ie[3]<<24|ie[2]<<16|ie[1]<<8|ie[0]},Y=function(ie){return me(l(ie),23,4)},Q=function(ie){return me(ie,52,8)},Z=function(ie,le,Ce){y(ie[E],le,{configurable:!0,get:function(){function he(){return Ce(this)[le]}return he}()})},te=function(ie,le,Ce,he){var ve=M(ie),Be=s(Ce),we=!!he;if(Be+le>ve.byteLength)throw new oe(A);var Re=ve.bytes,_e=Be+ve.byteOffset,Pe=b(Re,_e,_e+le);return we?Pe:pe(Pe)},se=function(ie,le,Ce,he,ve,Be){var we=M(ie),Re=s(Ce),_e=he(+ve),Pe=!!Be;if(Re+le>we.byteLength)throw new oe(A);for(var Ve=we.bytes,ke=Re+we.byteOffset,H=0;Hve)throw new oe("Wrong offset");if(Ce=Ce===void 0?ve-Be:c(Ce),Be+Ce>ve)throw new oe(w);P(this,{type:T,buffer:ie,byteLength:Ce,byteOffset:Be,bytes:he.bytes}),t||(this.buffer=ie,this.byteLength=Ce,this.byteOffset=Be)}return D}(),W=U[E],t&&(Z(F,"byteLength",O),Z(U,"buffer",M),Z(U,"byteLength",M),Z(U,"byteOffset",M)),k(W,{getInt8:function(){function D(ie){return te(this,1,ie)[0]<<24>>24}return D}(),getUint8:function(){function D(ie){return te(this,1,ie)[0]}return D}(),getInt16:function(){function D(ie){var le=te(this,2,ie,arguments.length>1?arguments[1]:!1);return(le[1]<<8|le[0])<<16>>16}return D}(),getUint16:function(){function D(ie){var le=te(this,2,ie,arguments.length>1?arguments[1]:!1);return le[1]<<8|le[0]}return D}(),getInt32:function(){function D(ie){return J(te(this,4,ie,arguments.length>1?arguments[1]:!1))}return D}(),getUint32:function(){function D(ie){return J(te(this,4,ie,arguments.length>1?arguments[1]:!1))>>>0}return D}(),getFloat32:function(){function D(ie){return ne(te(this,4,ie,arguments.length>1?arguments[1]:!1),23)}return D}(),getFloat64:function(){function D(ie){return ne(te(this,8,ie,arguments.length>1?arguments[1]:!1),52)}return D}(),setInt8:function(){function D(ie,le){se(this,1,ie,re,le)}return D}(),setUint8:function(){function D(ie,le){se(this,1,ie,re,le)}return D}(),setInt16:function(){function D(ie,le){se(this,2,ie,q,le,arguments.length>2?arguments[2]:!1)}return D}(),setUint16:function(){function D(ie,le){se(this,2,ie,q,le,arguments.length>2?arguments[2]:!1)}return D}(),setInt32:function(){function D(ie,le){se(this,4,ie,ae,le,arguments.length>2?arguments[2]:!1)}return D}(),setUint32:function(){function D(ie,le){se(this,4,ie,ae,le,arguments.length>2?arguments[2]:!1)}return D}(),setFloat32:function(){function D(ie,le){se(this,4,ie,Y,le,arguments.length>2?arguments[2]:!1)}return D}(),setFloat64:function(){function D(ie,le){se(this,8,ie,Q,le,arguments.length>2?arguments[2]:!1)}return D}()});else{var ye=x&&R.name!==L;!V(function(){R(1)})||!V(function(){new R(-1)})||V(function(){return new R,new R(1.5),new R(NaN),R.length!==1||ye&&!B})?(F=function(){function D(ie){return p(this,_),v(new R(s(ie)),this,F)}return D}(),F[E]=_,_.constructor=F,h(F,R)):ye&&B&&S(R,"name",L),u&&f(W)!==$&&u(W,$);var fe=new U(new F(2)),Le=a(W.setInt8);fe.setInt8(0,2147483648),fe.setInt8(1,2147483649),(fe.getInt8(0)||!fe.getInt8(1))&&k(W,{setInt8:function(){function D(ie,le){Le(this,ie,le<<24>>24)}return D}(),setUint8:function(){function D(ie,le){Le(this,ie,le<<24>>24)}return D}()},{unsafe:!0})}g(F,L),g(U,T),I.exports={ArrayBuffer:F,DataView:U}},71447:function(I,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760),o=n(95108),m=Math.min;I.exports=[].copyWithin||function(){function S(y,k){var V=e(this),p=t(V),i=a(y,p),c=a(k,p),s=arguments.length>2?arguments[2]:void 0,l=m((s===void 0?p:a(s,p))-c,p-i),d=1;for(c0;)c in V?V[i]=V[c]:o(V,i),i+=d,c+=d;return V}return S}()},88471:function(I,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760);I.exports=function(){function o(m){for(var S=e(this),y=t(S),k=arguments.length,V=a(k>1?arguments[1]:void 0,y),p=k>2?arguments[2]:void 0,i=p===void 0?y:a(p,y);i>V;)S[V++]=m;return S}return o}()},35601:function(I,r,n){"use strict";var e=n(22603).forEach,a=n(55528),t=a("forEach");I.exports=t?[].forEach:function(){function o(m){return e(this,m,arguments.length>1?arguments[1]:void 0)}return o}()},78008:function(I,r,n){"use strict";var e=n(24760);I.exports=function(a,t,o){for(var m=0,S=arguments.length>2?o:e(t),y=new a(S);S>m;)y[m]=t[m++];return y}},73174:function(I,r,n){"use strict";var e=n(75754),a=n(91495),t=n(46771),o=n(40125),m=n(76571),S=n(1031),y=n(24760),k=n(60102),V=n(77455),p=n(59201),i=Array;I.exports=function(){function c(s){var l=t(s),d=S(this),f=arguments.length,u=f>1?arguments[1]:void 0,C=u!==void 0;C&&(u=e(u,f>2?arguments[2]:void 0));var b=p(l),v=0,h,g,N,x,B,L;if(b&&!(this===i&&m(b)))for(g=d?new this:[],x=V(l,b),B=x.next;!(N=a(B,x)).done;v++)L=C?o(x,u,[N.value,v],!0):N.value,k(g,v,L);else for(h=y(l),g=d?new this(h):i(h);h>v;v++)L=C?u(l[v],v):l[v],k(g,v,L);return g.length=v,g}return c}()},14211:function(I,r,n){"use strict";var e=n(57591),a=n(13912),t=n(24760),o=function(S){return function(y,k,V){var p=e(y),i=t(p);if(i===0)return!S&&-1;var c=a(V,i),s;if(S&&k!==k){for(;i>c;)if(s=p[c++],s!==s)return!0}else for(;i>c;c++)if((S||c in p)&&p[c]===k)return S||c||0;return!S&&-1}};I.exports={includes:o(!0),indexOf:o(!1)}},22603:function(I,r,n){"use strict";var e=n(75754),a=n(67250),t=n(37457),o=n(46771),m=n(24760),S=n(57823),y=a([].push),k=function(p){var i=p===1,c=p===2,s=p===3,l=p===4,d=p===6,f=p===7,u=p===5||d;return function(C,b,v,h){for(var g=o(C),N=t(g),x=m(N),B=e(b,v),L=0,T=h||S,E=i?T(C,x):c||f?T(C,0):void 0,w,A;x>L;L++)if((u||L in N)&&(w=N[L],A=B(w,L,g),p))if(i)E[L]=A;else if(A)switch(p){case 3:return!0;case 5:return w;case 6:return L;case 2:y(E,w)}else switch(p){case 4:return!1;case 7:y(E,w)}return d?-1:s||l?l:E}};I.exports={forEach:k(0),map:k(1),filter:k(2),some:k(3),every:k(4),find:k(5),findIndex:k(6),filterReject:k(7)}},1325:function(I,r,n){"use strict";var e=n(61267),a=n(57591),t=n(61365),o=n(24760),m=n(55528),S=Math.min,y=[].lastIndexOf,k=!!y&&1/[1].lastIndexOf(1,-0)<0,V=m("lastIndexOf"),p=k||!V;I.exports=p?function(){function i(c){if(k)return e(y,this,arguments)||0;var s=a(this),l=o(s);if(l===0)return-1;var d=l-1;for(arguments.length>1&&(d=S(d,t(arguments[1]))),d<0&&(d=l+d);d>=0;d--)if(d in s&&s[d]===c)return d||0;return-1}return i}():y},44091:function(I,r,n){"use strict";var e=n(40033),a=n(24697),t=n(83141),o=a("species");I.exports=function(m){return t>=51||!e(function(){var S=[],y=S.constructor={};return y[o]=function(){return{foo:1}},S[m](Boolean).foo!==1})}},55528:function(I,r,n){"use strict";var e=n(40033);I.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},56844:function(I,r,n){"use strict";var e=n(10320),a=n(46771),t=n(37457),o=n(24760),m=TypeError,S="Reduce of empty array with no initial value",y=function(V){return function(p,i,c,s){var l=a(p),d=t(l),f=o(l);if(e(i),f===0&&c<2)throw new m(S);var u=V?f-1:0,C=V?-1:1;if(c<2)for(;;){if(u in d){s=d[u],u+=C;break}if(u+=C,V?u<0:f<=u)throw new m(S)}for(;V?u>=0:f>u;u+=C)u in d&&(s=i(s,d[u],u,l));return s}};I.exports={left:y(!1),right:y(!0)}},13345:function(I,r,n){"use strict";var e=n(58310),a=n(37386),t=TypeError,o=Object.getOwnPropertyDescriptor,m=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(S){return S instanceof TypeError}}();I.exports=m?function(S,y){if(a(S)&&!o(S,"length").writable)throw new t("Cannot set read only .length");return S.length=y}:function(S,y){return S.length=y}},54602:function(I,r,n){"use strict";var e=n(67250);I.exports=e([].slice)},90274:function(I,r,n){"use strict";var e=n(54602),a=Math.floor,t=function(m,S){var y=m.length;if(y<8)for(var k=1,V,p;k0;)m[p]=m[--p];p!==k++&&(m[p]=V)}else for(var i=a(y/2),c=t(e(m,0,i),S),s=t(e(m,i),S),l=c.length,d=s.length,f=0,u=0;f1?arguments[1]:void 0),A;A=A?A.next:E.first;)for(w(A.value,A.key,this);A&&A.removed;)A=A.previous}return L}(),has:function(){function L(T){return!!B(this,T)}return L}()}),t(g,b?{get:function(){function L(T){var E=B(this,T);return E&&E.value}return L}(),set:function(){function L(T,E){return x(this,T===0?0:T,E)}return L}()}:{add:function(){function L(T){return x(this,T=T===0?0:T,T)}return L}()}),i&&a(g,"size",{configurable:!0,get:function(){function L(){return N(this).size}return L}()}),h}return f}(),setStrong:function(){function f(u,C,b){var v=C+" Iterator",h=d(C),g=d(v);k(u,C,function(N,x){l(this,{type:v,target:N,state:h(N),kind:x,last:null})},function(){for(var N=g(this),x=N.kind,B=N.last;B&&B.removed;)B=B.previous;return!N.target||!(N.last=B=B?B.next:N.state.first)?(N.target=null,V(void 0,!0)):V(x==="keys"?B.key:x==="values"?B.value:[B.key,B.value],!1)},b?"entries":"values",!b,!0),p(C)}return f}()}},39895:function(I,r,n){"use strict";var e=n(67250),a=n(30145),t=n(81969).getWeakData,o=n(60077),m=n(30365),S=n(42871),y=n(77568),k=n(49450),V=n(22603),p=n(45299),i=n(5419),c=i.set,s=i.getterFor,l=V.find,d=V.findIndex,f=e([].splice),u=0,C=function(g){return g.frozen||(g.frozen=new b)},b=function(){this.entries=[]},v=function(g,N){return l(g.entries,function(x){return x[0]===N})};b.prototype={get:function(){function h(g){var N=v(this,g);if(N)return N[1]}return h}(),has:function(){function h(g){return!!v(this,g)}return h}(),set:function(){function h(g,N){var x=v(this,g);x?x[1]=N:this.entries.push([g,N])}return h}(),delete:function(){function h(g){var N=d(this.entries,function(x){return x[0]===g});return~N&&f(this.entries,N,1),!!~N}return h}()},I.exports={getConstructor:function(){function h(g,N,x,B){var L=g(function(A,O){o(A,T),c(A,{type:N,id:u++,frozen:null}),S(O)||k(O,A[B],{that:A,AS_ENTRIES:x})}),T=L.prototype,E=s(N),w=function(){function A(O,M,P){var R=E(O),F=t(m(M),!0);return F===!0?C(R).set(M,P):F[R.id]=P,O}return A}();return a(T,{delete:function(){function A(O){var M=E(this);if(!y(O))return!1;var P=t(O);return P===!0?C(M).delete(O):P&&p(P,M.id)&&delete P[M.id]}return A}(),has:function(){function A(O){var M=E(this);if(!y(O))return!1;var P=t(O);return P===!0?C(M).has(O):P&&p(P,M.id)}return A}()}),a(T,x?{get:function(){function A(O){var M=E(this);if(y(O)){var P=t(O);if(P===!0)return C(M).get(O);if(P)return P[M.id]}}return A}(),set:function(){function A(O,M){return w(this,O,M)}return A}()}:{add:function(){function A(O){return w(this,O,!0)}return A}()}),L}return h}()}},45150:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(67250),o=n(41314),m=n(55938),S=n(81969),y=n(49450),k=n(60077),V=n(55747),p=n(42871),i=n(77568),c=n(40033),s=n(92490),l=n(84925),d=n(5781);I.exports=function(f,u,C){var b=f.indexOf("Map")!==-1,v=f.indexOf("Weak")!==-1,h=b?"set":"add",g=a[f],N=g&&g.prototype,x=g,B={},L=function(R){var F=t(N[R]);m(N,R,R==="add"?function(){function _(U){return F(this,U===0?0:U),this}return _}():R==="delete"?function(_){return v&&!i(_)?!1:F(this,_===0?0:_)}:R==="get"?function(){function _(U){return v&&!i(U)?void 0:F(this,U===0?0:U)}return _}():R==="has"?function(){function _(U){return v&&!i(U)?!1:F(this,U===0?0:U)}return _}():function(){function _(U,W){return F(this,U===0?0:U,W),this}return _}())},T=o(f,!V(g)||!(v||N.forEach&&!c(function(){new g().entries().next()})));if(T)x=C.getConstructor(u,f,b,h),S.enable();else if(o(f,!0)){var E=new x,w=E[h](v?{}:-0,1)!==E,A=c(function(){E.has(1)}),O=s(function(P){new g(P)}),M=!v&&c(function(){for(var P=new g,R=5;R--;)P[h](R,R);return!P.has(-0)});O||(x=u(function(P,R){k(P,N);var F=d(new g,P,x);return p(R)||y(R,F[h],{that:F,AS_ENTRIES:b}),F}),x.prototype=N,N.constructor=x),(A||M)&&(L("delete"),L("has"),b&&L("get")),(M||w)&&L(h),v&&N.clear&&delete N.clear}return B[f]=x,e({global:!0,constructor:!0,forced:x!==g},B),l(x,f),v||C.setStrong(x,f,b),x}},5774:function(I,r,n){"use strict";var e=n(45299),a=n(97921),t=n(27193),o=n(74595);I.exports=function(m,S,y){for(var k=a(S),V=o.f,p=t.f,i=0;i"+p+""}},5959:function(I){"use strict";I.exports=function(r,n){return{value:r,done:n}}},37909:function(I,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);I.exports=e?function(o,m,S){return a.f(o,m,t(1,S))}:function(o,m,S){return o[m]=S,o}},87458:function(I){"use strict";I.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},60102:function(I,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);I.exports=function(o,m,S){e?a.f(o,m,t(0,S)):o[m]=S}},67206:function(I,r,n){"use strict";var e=n(67250),a=n(40033),t=n(24051).start,o=RangeError,m=isFinite,S=Math.abs,y=Date.prototype,k=y.toISOString,V=e(y.getTime),p=e(y.getUTCDate),i=e(y.getUTCFullYear),c=e(y.getUTCHours),s=e(y.getUTCMilliseconds),l=e(y.getUTCMinutes),d=e(y.getUTCMonth),f=e(y.getUTCSeconds);I.exports=a(function(){return k.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){k.call(new Date(NaN))})?function(){function u(){if(!m(V(this)))throw new o("Invalid time value");var C=this,b=i(C),v=s(C),h=b<0?"-":b>9999?"+":"";return h+t(S(b),h?6:4,0)+"-"+t(d(C)+1,2,0)+"-"+t(p(C),2,0)+"T"+t(c(C),2,0)+":"+t(l(C),2,0)+":"+t(f(C),2,0)+"."+t(v,3,0)+"Z"}return u}():k},10886:function(I,r,n){"use strict";var e=n(30365),a=n(13396),t=TypeError;I.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},73936:function(I,r,n){"use strict";var e=n(20001),a=n(74595);I.exports=function(t,o,m){return m.get&&e(m.get,o,{getter:!0}),m.set&&e(m.set,o,{setter:!0}),a.f(t,o,m)}},55938:function(I,r,n){"use strict";var e=n(55747),a=n(74595),t=n(20001),o=n(18231);I.exports=function(m,S,y,k){k||(k={});var V=k.enumerable,p=k.name!==void 0?k.name:S;if(e(y)&&t(y,p,k),k.global)V?m[S]=y:o(S,y);else{try{k.unsafe?m[S]&&(V=!0):delete m[S]}catch(i){}V?m[S]=y:a.f(m,S,{value:y,enumerable:!1,configurable:!k.nonConfigurable,writable:!k.nonWritable})}return m}},30145:function(I,r,n){"use strict";var e=n(55938);I.exports=function(a,t,o){for(var m in t)e(a,m,t[m],o);return a}},18231:function(I,r,n){"use strict";var e=n(16210),a=Object.defineProperty;I.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(m){e[t]=o}return o}},95108:function(I,r,n){"use strict";var e=n(89393),a=TypeError;I.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},58310:function(I,r,n){"use strict";var e=n(40033);I.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},12689:function(I,r,n){"use strict";var e=n(16210),a=n(77568),t=e.document,o=a(t)&&a(t.createElement);I.exports=function(m){return o?t.createElement(m):{}}},21291:function(I){"use strict";var r=TypeError,n=9007199254740991;I.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},89453:function(I){"use strict";I.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},50503:function(I,r,n){"use strict";var e=n(83309),a=e.match(/firefox\/(\d+)/i);I.exports=!!a&&+a[1]},79725:function(I,r,n){"use strict";var e=n(83309);I.exports=/MSIE|Trident/.test(e)},16647:function(I,r,n){"use strict";var e=n(83309);I.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},27770:function(I,r,n){"use strict";var e=n(83309);I.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},81663:function(I,r,n){"use strict";var e=n(10753);I.exports=e==="NODE"},52854:function(I,r,n){"use strict";var e=n(83309);I.exports=/web0s(?!.*chrome)/i.test(e)},83309:function(I,r,n){"use strict";var e=n(16210),a=e.navigator,t=a&&a.userAgent;I.exports=t?String(t):""},83141:function(I,r,n){"use strict";var e=n(16210),a=n(83309),t=e.process,o=e.Deno,m=t&&t.versions||o&&o.version,S=m&&m.v8,y,k;S&&(y=S.split("."),k=y[0]>0&&y[0]<4?1:+(y[0]+y[1])),!k&&a&&(y=a.match(/Edge\/(\d+)/),(!y||y[1]>=74)&&(y=a.match(/Chrome\/(\d+)/),y&&(k=+y[1]))),I.exports=k},44981:function(I,r,n){"use strict";var e=n(83309),a=e.match(/AppleWebKit\/(\d+)\./);I.exports=!!a&&+a[1]},10753:function(I,r,n){"use strict";var e=n(16210),a=n(83309),t=n(7462),o=function(S){return a.slice(0,S.length)===S};I.exports=function(){return o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":e.Bun&&typeof Bun.version=="string"?"BUN":e.Deno&&typeof Deno.version=="object"?"DENO":t(e.process)==="process"?"NODE":e.window&&e.document?"BROWSER":"REST"}()},63964:function(I,r,n){"use strict";var e=n(16210),a=n(27193).f,t=n(37909),o=n(55938),m=n(18231),S=n(5774),y=n(41314);I.exports=function(k,V){var p=k.target,i=k.global,c=k.stat,s,l,d,f,u,C;if(i?l=e:c?l=e[p]||m(p,{}):l=e[p]&&e[p].prototype,l)for(d in V){if(u=V[d],k.dontCallGetSet?(C=a(l,d),f=C&&C.value):f=l[d],s=y(i?d:p+(c?".":"#")+d,k.forced),!s&&f!==void 0){if(typeof u==typeof f)continue;S(u,f)}(k.sham||f&&f.sham)&&t(u,"sham",!0),o(l,d,u,k)}}},40033:function(I){"use strict";I.exports=function(r){try{return!!r()}catch(n){return!0}}},79942:function(I,r,n){"use strict";n(79669);var e=n(91495),a=n(55938),t=n(14489),o=n(40033),m=n(24697),S=n(37909),y=m("species"),k=RegExp.prototype;I.exports=function(V,p,i,c){var s=m(V),l=!o(function(){var C={};return C[s]=function(){return 7},""[V](C)!==7}),d=l&&!o(function(){var C=!1,b=/a/;return V==="split"&&(b={},b.constructor={},b.constructor[y]=function(){return b},b.flags="",b[s]=/./[s]),b.exec=function(){return C=!0,null},b[s](""),!C});if(!l||!d||i){var f=/./[s],u=p(s,""[V],function(C,b,v,h,g){var N=b.exec;return N===t||N===k.exec?l&&!g?{done:!0,value:e(f,b,v,h)}:{done:!0,value:e(C,v,b,h)}:{done:!1}});a(String.prototype,V,u[0]),a(k,s,u[1])}c&&S(k[s],"sham",!0)}},65561:function(I,r,n){"use strict";var e=n(37386),a=n(24760),t=n(21291),o=n(75754),m=function(y,k,V,p,i,c,s,l){for(var d=i,f=0,u=s?o(s,l):!1,C,b;f0&&e(C)?(b=a(C),d=m(y,k,C,b,d,c-1)-1):(t(d+1),y[d]=C),d++),f++;return d};I.exports=m},50730:function(I,r,n){"use strict";var e=n(40033);I.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},61267:function(I,r,n){"use strict";var e=n(55050),a=Function.prototype,t=a.apply,o=a.call;I.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},75754:function(I,r,n){"use strict";var e=n(71138),a=n(10320),t=n(55050),o=e(e.bind);I.exports=function(m,S){return a(m),S===void 0?m:t?o(m,S):function(){return m.apply(S,arguments)}}},55050:function(I,r,n){"use strict";var e=n(40033);I.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},66284:function(I,r,n){"use strict";var e=n(67250),a=n(10320),t=n(77568),o=n(45299),m=n(54602),S=n(55050),y=Function,k=e([].concat),V=e([].join),p={},i=function(s,l,d){if(!o(p,l)){for(var f=[],u=0;u]*>)/g,k=/\$([$&'`]|\d{1,2})/g;I.exports=function(V,p,i,c,s,l){var d=i+V.length,f=c.length,u=k;return s!==void 0&&(s=a(s),u=y),m(l,u,function(C,b){var v;switch(o(b,0)){case"$":return"$";case"&":return V;case"`":return S(p,0,i);case"'":return S(p,d);case"<":v=s[S(b,1,-1)];break;default:var h=+b;if(h===0)return C;if(h>f){var g=t(h/10);return g===0?C:g<=f?c[g-1]===void 0?o(b,1):c[g-1]+o(b,1):C}v=c[h-1]}return v===void 0?"":v})}},16210:function(I,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};I.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},45299:function(I,r,n){"use strict";var e=n(67250),a=n(46771),t=e({}.hasOwnProperty);I.exports=Object.hasOwn||function(){function o(m,S){return t(a(m),S)}return o}()},79195:function(I){"use strict";I.exports={}},72259:function(I){"use strict";I.exports=function(r,n){try{arguments.length}catch(e){}}},5315:function(I,r,n){"use strict";var e=n(4009);I.exports=e("document","documentElement")},36223:function(I,r,n){"use strict";var e=n(58310),a=n(40033),t=n(12689);I.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},91784:function(I){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,m=function(k,V,p){var i=r(p),c=p*8-V-1,s=(1<>1,d=V===23?e(2,-24)-e(2,-77):0,f=k<0||k===0&&1/k<0?1:0,u=0,C,b,v;for(k=n(k),k!==k||k===1/0?(b=k!==k?1:0,C=s):(C=a(t(k)/o),v=e(2,-C),k*v<1&&(C--,v*=2),C+l>=1?k+=d/v:k+=d*e(2,1-l),k*v>=2&&(C++,v/=2),C+l>=s?(b=0,C=s):C+l>=1?(b=(k*v-1)*e(2,V),C+=l):(b=k*e(2,l-1)*e(2,V),C=0));V>=8;)i[u++]=b&255,b/=256,V-=8;for(C=C<0;)i[u++]=C&255,C/=256,c-=8;return i[u-1]|=f*128,i},S=function(k,V){var p=k.length,i=p*8-V-1,c=(1<>1,l=i-7,d=p-1,f=k[d--],u=f&127,C;for(f>>=7;l>0;)u=u*256+k[d--],l-=8;for(C=u&(1<<-l)-1,u>>=-l,l+=V;l>0;)C=C*256+k[d--],l-=8;if(u===0)u=1-s;else{if(u===c)return C?NaN:f?-1/0:1/0;C+=e(2,V),u-=s}return(f?-1:1)*C*e(2,u-V)};I.exports={pack:m,unpack:S}},37457:function(I,r,n){"use strict";var e=n(67250),a=n(40033),t=n(7462),o=Object,m=e("".split);I.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(S){return t(S)==="String"?m(S,""):o(S)}:o},5781:function(I,r,n){"use strict";var e=n(55747),a=n(77568),t=n(76649);I.exports=function(o,m,S){var y,k;return t&&e(y=m.constructor)&&y!==S&&a(k=y.prototype)&&k!==S.prototype&&t(o,k),o}},40492:function(I,r,n){"use strict";var e=n(67250),a=n(55747),t=n(40095),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(m){return o(m)}),I.exports=t.inspectSource},81969:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(79195),o=n(77568),m=n(45299),S=n(74595).f,y=n(37310),k=n(81644),V=n(81834),p=n(16738),i=n(50730),c=!1,s=p("meta"),l=0,d=function(g){S(g,s,{value:{objectID:"O"+l++,weakData:{}}})},f=function(g,N){if(!o(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!m(g,s)){if(!V(g))return"F";if(!N)return"E";d(g)}return g[s].objectID},u=function(g,N){if(!m(g,s)){if(!V(g))return!0;if(!N)return!1;d(g)}return g[s].weakData},C=function(g){return i&&c&&V(g)&&!m(g,s)&&d(g),g},b=function(){v.enable=function(){},c=!0;var g=y.f,N=a([].splice),x={};x[s]=1,g(x).length&&(y.f=function(B){for(var L=g(B),T=0,E=L.length;TB;B++)if(T=O(l[B]),T&&y(s,T))return T;return new c(!1)}N=k(l,x)}for(E=b?l.next:N.next;!(w=a(E,N)).done;){try{T=O(w.value)}catch(M){p(N,"throw",M)}if(typeof T=="object"&&T&&y(s,T))return T}return new c(!1)}},28649:function(I,r,n){"use strict";var e=n(91495),a=n(30365),t=n(78060);I.exports=function(o,m,S){var y,k;a(o);try{if(y=t(o,"return"),!y){if(m==="throw")throw S;return S}y=e(y,o)}catch(V){k=!0,y=V}if(m==="throw")throw S;if(k)throw y;return a(y),S}},5656:function(I,r,n){"use strict";var e=n(67635).IteratorPrototype,a=n(80674),t=n(87458),o=n(84925),m=n(83967),S=function(){return this};I.exports=function(y,k,V,p){var i=k+" Iterator";return y.prototype=a(e,{next:t(+!p,V)}),o(y,i,!1,!0),m[i]=S,y}},65574:function(I,r,n){"use strict";var e=n(63964),a=n(91495),t=n(4493),o=n(70520),m=n(55747),S=n(5656),y=n(36917),k=n(76649),V=n(84925),p=n(37909),i=n(55938),c=n(24697),s=n(83967),l=n(67635),d=o.PROPER,f=o.CONFIGURABLE,u=l.IteratorPrototype,C=l.BUGGY_SAFARI_ITERATORS,b=c("iterator"),v="keys",h="values",g="entries",N=function(){return this};I.exports=function(x,B,L,T,E,w,A){S(L,B,T);var O=function(X){if(X===E&&_)return _;if(!C&&X&&X in R)return R[X];switch(X){case v:return function(){function pe(){return new L(this,X)}return pe}();case h:return function(){function pe(){return new L(this,X)}return pe}();case g:return function(){function pe(){return new L(this,X)}return pe}()}return function(){return new L(this)}},M=B+" Iterator",P=!1,R=x.prototype,F=R[b]||R["@@iterator"]||E&&R[E],_=!C&&F||O(E),U=B==="Array"&&R.entries||F,W,$,G;if(U&&(W=y(U.call(new x)),W!==Object.prototype&&W.next&&(!t&&y(W)!==u&&(k?k(W,u):m(W[b])||i(W,b,N)),V(W,M,!0,!0),t&&(s[M]=N))),d&&E===h&&F&&F.name!==h&&(!t&&f?p(R,"name",h):(P=!0,_=function(){function oe(){return a(F,this)}return oe}())),E)if($={values:O(h),keys:w?_:O(v),entries:O(g)},A)for(G in $)(C||P||!(G in R))&&i(R,G,$[G]);else e({target:B,proto:!0,forced:C||P},$);return(!t||A)&&R[b]!==_&&i(R,b,_,{name:E}),s[B]=_,$}},67635:function(I,r,n){"use strict";var e=n(40033),a=n(55747),t=n(77568),o=n(80674),m=n(36917),S=n(55938),y=n(24697),k=n(4493),V=y("iterator"),p=!1,i,c,s;[].keys&&(s=[].keys(),"next"in s?(c=m(m(s)),c!==Object.prototype&&(i=c)):p=!0);var l=!t(i)||e(function(){var d={};return i[V].call(d)!==d});l?i={}:k&&(i=o(i)),a(i[V])||S(i,V,function(){return this}),I.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},83967:function(I){"use strict";I.exports={}},24760:function(I,r,n){"use strict";var e=n(10188);I.exports=function(a){return e(a.length)}},20001:function(I,r,n){"use strict";var e=n(67250),a=n(40033),t=n(55747),o=n(45299),m=n(58310),S=n(70520).CONFIGURABLE,y=n(40492),k=n(5419),V=k.enforce,p=k.get,i=String,c=Object.defineProperty,s=e("".slice),l=e("".replace),d=e([].join),f=m&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),u=String(String).split("String"),C=I.exports=function(b,v,h){s(i(v),0,7)==="Symbol("&&(v="["+l(i(v),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),h&&h.getter&&(v="get "+v),h&&h.setter&&(v="set "+v),(!o(b,"name")||S&&b.name!==v)&&(m?c(b,"name",{value:v,configurable:!0}):b.name=v),f&&h&&o(h,"arity")&&b.length!==h.arity&&c(b,"length",{value:h.arity});try{h&&o(h,"constructor")&&h.constructor?m&&c(b,"prototype",{writable:!1}):b.prototype&&(b.prototype=void 0)}catch(N){}var g=V(b);return o(g,"source")||(g.source=d(u,typeof v=="string"?v:"")),b};Function.prototype.toString=C(function(){function b(){return t(this)&&p(this).source||y(this)}return b}(),"toString")},82040:function(I){"use strict";var r=Math.expm1,n=Math.exp;I.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},14950:function(I,r,n){"use strict";var e=n(22172),a=Math.abs,t=2220446049250313e-31,o=1/t,m=function(y){return y+o-o};I.exports=function(S,y,k,V){var p=+S,i=a(p),c=e(p);if(ik||l!==l?c*(1/0):c*l}},95867:function(I,r,n){"use strict";var e=n(14950),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;I.exports=Math.fround||function(){function m(S){return e(S,a,t,o)}return m}()},75002:function(I){"use strict";var r=Math.log,n=Math.LOG10E;I.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},90874:function(I){"use strict";var r=Math.log;I.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},22172:function(I){"use strict";I.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},21119:function(I){"use strict";var r=Math.ceil,n=Math.floor;I.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},37713:function(I,r,n){"use strict";var e=n(16210),a=n(44915),t=n(75754),o=n(60375).set,m=n(9547),S=n(27770),y=n(16647),k=n(52854),V=n(81663),p=e.MutationObserver||e.WebKitMutationObserver,i=e.document,c=e.process,s=e.Promise,l=a("queueMicrotask"),d,f,u,C,b;if(!l){var v=new m,h=function(){var N,x;for(V&&(N=c.domain)&&N.exit();x=v.get();)try{x()}catch(B){throw v.head&&d(),B}N&&N.enter()};!S&&!V&&!k&&p&&i?(f=!0,u=i.createTextNode(""),new p(h).observe(u,{characterData:!0}),d=function(){u.data=f=!f}):!y&&s&&s.resolve?(C=s.resolve(void 0),C.constructor=s,b=t(C.then,C),d=function(){b(h)}):V?d=function(){c.nextTick(h)}:(o=t(o,e),d=function(){o(h)}),l=function(N){v.head||d(),v.add(N)}}I.exports=l},81837:function(I,r,n){"use strict";var e=n(10320),a=TypeError,t=function(m){var S,y;this.promise=new m(function(k,V){if(S!==void 0||y!==void 0)throw new a("Bad Promise constructor");S=k,y=V}),this.resolve=e(S),this.reject=e(y)};I.exports.f=function(o){return new t(o)}},86213:function(I,r,n){"use strict";var e=n(72586),a=TypeError;I.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},3294:function(I,r,n){"use strict";var e=n(16210),a=e.isFinite;I.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},28506:function(I,r,n){"use strict";var e=n(16210),a=n(40033),t=n(67250),o=n(12605),m=n(92648).trim,S=n(4198),y=t("".charAt),k=e.parseFloat,V=e.Symbol,p=V&&V.iterator,i=1/k(S+"-0")!==-1/0||p&&!a(function(){k(Object(p))});I.exports=i?function(){function c(s){var l=m(o(s)),d=k(l);return d===0&&y(l,0)==="-"?-0:d}return c}():k},13693:function(I,r,n){"use strict";var e=n(16210),a=n(40033),t=n(67250),o=n(12605),m=n(92648).trim,S=n(4198),y=e.parseInt,k=e.Symbol,V=k&&k.iterator,p=/^[+-]?0x/i,i=t(p.exec),c=y(S+"08")!==8||y(S+"0x16")!==22||V&&!a(function(){y(Object(V))});I.exports=c?function(){function s(l,d){var f=m(o(l));return y(f,d>>>0||(i(p,f)?16:10))}return s}():y},41143:function(I,r,n){"use strict";var e=n(58310),a=n(67250),t=n(91495),o=n(40033),m=n(18450),S=n(89235),y=n(12867),k=n(46771),V=n(37457),p=Object.assign,i=Object.defineProperty,c=a([].concat);I.exports=!p||o(function(){if(e&&p({b:1},p(i({},"a",{enumerable:!0,get:function(){function u(){i(this,"b",{value:3,enumerable:!1})}return u}()}),{b:2})).b!==1)return!0;var s={},l={},d=Symbol("assign detection"),f="abcdefghijklmnopqrst";return s[d]=7,f.split("").forEach(function(u){l[u]=u}),p({},s)[d]!==7||m(p({},l)).join("")!==f})?function(){function s(l,d){for(var f=k(l),u=arguments.length,C=1,b=S.f,v=y.f;u>C;)for(var h=V(arguments[C++]),g=b?c(m(h),b(h)):m(h),N=g.length,x=0,B;N>x;)B=g[x++],(!e||t(v,h,B))&&(f[B]=h[B]);return f}return s}():p},80674:function(I,r,n){"use strict";var e=n(30365),a=n(24239),t=n(89453),o=n(79195),m=n(5315),S=n(12689),y=n(19417),k=">",V="<",p="prototype",i="script",c=y("IE_PROTO"),s=function(){},l=function(v){return V+i+k+v+V+"/"+i+k},d=function(v){v.write(l("")),v.close();var h=v.parentWindow.Object;return v=null,h},f=function(){var v=S("iframe"),h="java"+i+":",g;return v.style.display="none",m.appendChild(v),v.src=String(h),g=v.contentWindow.document,g.open(),g.write(l("document.F=Object")),g.close(),g.F},u,C=function(){try{u=new ActiveXObject("htmlfile")}catch(h){}C=typeof document!="undefined"?document.domain&&u?d(u):f():d(u);for(var v=t.length;v--;)delete C[p][t[v]];return C()};o[c]=!0,I.exports=Object.create||function(){function b(v,h){var g;return v!==null?(s[p]=e(v),g=new s,s[p]=null,g[c]=v):g=C(),h===void 0?g:a.f(g,h)}return b}()},24239:function(I,r,n){"use strict";var e=n(58310),a=n(80944),t=n(74595),o=n(30365),m=n(57591),S=n(18450);r.f=e&&!a?Object.defineProperties:function(){function y(k,V){o(k);for(var p=m(V),i=S(V),c=i.length,s=0,l;c>s;)t.f(k,l=i[s++],p[l]);return k}return y}()},74595:function(I,r,n){"use strict";var e=n(58310),a=n(36223),t=n(80944),o=n(30365),m=n(767),S=TypeError,y=Object.defineProperty,k=Object.getOwnPropertyDescriptor,V="enumerable",p="configurable",i="writable";r.f=e?t?function(){function c(s,l,d){if(o(s),l=m(l),o(d),typeof s=="function"&&l==="prototype"&&"value"in d&&i in d&&!d[i]){var f=k(s,l);f&&f[i]&&(s[l]=d.value,d={configurable:p in d?d[p]:f[p],enumerable:V in d?d[V]:f[V],writable:!1})}return y(s,l,d)}return c}():y:function(){function c(s,l,d){if(o(s),l=m(l),o(d),a)try{return y(s,l,d)}catch(f){}if("get"in d||"set"in d)throw new S("Accessors not supported");return"value"in d&&(s[l]=d.value),s}return c}()},27193:function(I,r,n){"use strict";var e=n(58310),a=n(91495),t=n(12867),o=n(87458),m=n(57591),S=n(767),y=n(45299),k=n(36223),V=Object.getOwnPropertyDescriptor;r.f=e?V:function(){function p(i,c){if(i=m(i),c=S(c),k)try{return V(i,c)}catch(s){}if(y(i,c))return o(!a(t.f,i,c),i[c])}return p}()},81644:function(I,r,n){"use strict";var e=n(7462),a=n(57591),t=n(37310).f,o=n(54602),m=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],S=function(k){try{return t(k)}catch(V){return o(m)}};I.exports.f=function(){function y(k){return m&&e(k)==="Window"?S(k):t(a(k))}return y}()},37310:function(I,r,n){"use strict";var e=n(53726),a=n(89453),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(m){return e(m,t)}return o}()},89235:function(I,r){"use strict";r.f=Object.getOwnPropertySymbols},36917:function(I,r,n){"use strict";var e=n(45299),a=n(55747),t=n(46771),o=n(19417),m=n(9225),S=o("IE_PROTO"),y=Object,k=y.prototype;I.exports=m?y.getPrototypeOf:function(V){var p=t(V);if(e(p,S))return p[S];var i=p.constructor;return a(i)&&p instanceof i?i.prototype:p instanceof y?k:null}},81834:function(I,r,n){"use strict";var e=n(40033),a=n(77568),t=n(7462),o=n(3782),m=Object.isExtensible,S=e(function(){m(1)});I.exports=S||o?function(){function y(k){return!a(k)||o&&t(k)==="ArrayBuffer"?!1:m?m(k):!0}return y}():m},21287:function(I,r,n){"use strict";var e=n(67250);I.exports=e({}.isPrototypeOf)},53726:function(I,r,n){"use strict";var e=n(67250),a=n(45299),t=n(57591),o=n(14211).indexOf,m=n(79195),S=e([].push);I.exports=function(y,k){var V=t(y),p=0,i=[],c;for(c in V)!a(m,c)&&a(V,c)&&S(i,c);for(;k.length>p;)a(V,c=k[p++])&&(~o(i,c)||S(i,c));return i}},18450:function(I,r,n){"use strict";var e=n(53726),a=n(89453);I.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},12867:function(I,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var m=e(this,o);return!!m&&m.enumerable}return t}():n},57377:function(I,r,n){"use strict";var e=n(4493),a=n(16210),t=n(40033),o=n(44981);I.exports=e||!t(function(){if(!(o&&o<535)){var m=Math.random();__defineSetter__.call(null,m,function(){}),delete a[m]}})},76649:function(I,r,n){"use strict";var e=n(38656),a=n(77568),t=n(16952),o=n(35908);I.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var m=!1,S={},y;try{y=e(Object.prototype,"__proto__","set"),y(S,[]),m=S instanceof Array}catch(k){}return function(){function k(V,p){return t(V),o(p),a(V)&&(m?y(V,p):V.__proto__=p),V}return k}()}():void 0)},70915:function(I,r,n){"use strict";var e=n(58310),a=n(40033),t=n(67250),o=n(36917),m=n(18450),S=n(57591),y=n(12867).f,k=t(y),V=t([].push),p=e&&a(function(){var c=Object.create(null);return c[2]=2,!k(c,2)}),i=function(s){return function(l){for(var d=S(l),f=m(d),u=p&&o(d)===null,C=f.length,b=0,v=[],h;C>b;)h=f[b++],(!e||(u?h in d:k(d,h)))&&V(v,s?[h,d[h]]:d[h]);return v}};I.exports={entries:i(!0),values:i(!1)}},2509:function(I,r,n){"use strict";var e=n(2650),a=n(2281);I.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},13396:function(I,r,n){"use strict";var e=n(91495),a=n(55747),t=n(77568),o=TypeError;I.exports=function(m,S){var y,k;if(S==="string"&&a(y=m.toString)&&!t(k=e(y,m))||a(y=m.valueOf)&&!t(k=e(y,m))||S!=="string"&&a(y=m.toString)&&!t(k=e(y,m)))return k;throw new o("Can't convert object to primitive value")}},97921:function(I,r,n){"use strict";var e=n(4009),a=n(67250),t=n(37310),o=n(89235),m=n(30365),S=a([].concat);I.exports=e("Reflect","ownKeys")||function(){function y(k){var V=t.f(m(k)),p=o.f;return p?S(V,p(k)):V}return y}()},61765:function(I,r,n){"use strict";var e=n(16210);I.exports=e},10729:function(I){"use strict";I.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},74854:function(I,r,n){"use strict";var e=n(16210),a=n(67512),t=n(55747),o=n(41314),m=n(40492),S=n(24697),y=n(10753),k=n(4493),V=n(83141),p=a&&a.prototype,i=S("species"),c=!1,s=t(e.PromiseRejectionEvent),l=o("Promise",function(){var d=m(a),f=d!==String(a);if(!f&&V===66||k&&!(p.catch&&p.finally))return!0;if(!V||V<51||!/native code/.test(d)){var u=new a(function(v){v(1)}),C=function(h){h(function(){},function(){})},b=u.constructor={};if(b[i]=C,c=u.then(function(){})instanceof C,!c)return!0}return!f&&(y==="BROWSER"||y==="DENO")&&!s});I.exports={CONSTRUCTOR:l,REJECTION_EVENT:s,SUBCLASSING:c}},67512:function(I,r,n){"use strict";var e=n(16210);I.exports=e.Promise},66628:function(I,r,n){"use strict";var e=n(30365),a=n(77568),t=n(81837);I.exports=function(o,m){if(e(o),a(m)&&m.constructor===o)return m;var S=t.f(o),y=S.resolve;return y(m),S.promise}},48199:function(I,r,n){"use strict";var e=n(67512),a=n(92490),t=n(74854).CONSTRUCTOR;I.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},34550:function(I,r,n){"use strict";var e=n(74595).f;I.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function m(){return t[o]}return m}(),set:function(){function m(S){t[o]=S}return m}()})}},9547:function(I){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(){function n(e){var a={item:e,next:null},t=this.tail;t?t.next=a:this.head=a,this.tail=a}return n}(),get:function(){function n(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}return n}()},I.exports=r},28340:function(I,r,n){"use strict";var e=n(91495),a=n(30365),t=n(55747),o=n(7462),m=n(14489),S=TypeError;I.exports=function(y,k){var V=y.exec;if(t(V)){var p=e(V,y,k);return p!==null&&a(p),p}if(o(y)==="RegExp")return e(m,y,k);throw new S("RegExp#exec called on incompatible receiver")}},14489:function(I,r,n){"use strict";var e=n(91495),a=n(67250),t=n(12605),o=n(70901),m=n(62115),S=n(16639),y=n(80674),k=n(5419).get,V=n(39173),p=n(35688),i=S("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,s=c,l=a("".charAt),d=a("".indexOf),f=a("".replace),u=a("".slice),C=function(){var g=/a/,N=/b*/g;return e(c,g,"a"),e(c,N,"a"),g.lastIndex!==0||N.lastIndex!==0}(),b=m.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,h=C||v||b||V||p;h&&(s=function(){function g(N){var x=this,B=k(x),L=t(N),T=B.raw,E,w,A,O,M,P,R;if(T)return T.lastIndex=x.lastIndex,E=e(s,T,L),x.lastIndex=T.lastIndex,E;var F=B.groups,_=b&&x.sticky,U=e(o,x),W=x.source,$=0,G=L;if(_&&(U=f(U,"y",""),d(U,"g")===-1&&(U+="g"),G=u(L,x.lastIndex),x.lastIndex>0&&(!x.multiline||x.multiline&&l(L,x.lastIndex-1)!=="\n")&&(W="(?: "+W+")",G=" "+G,$++),w=new RegExp("^(?:"+W+")",U)),v&&(w=new RegExp("^"+W+"$(?!\\s)",U)),C&&(A=x.lastIndex),O=e(c,_?w:x,G),_?O?(O.input=u(O.input,$),O[0]=u(O[0],$),O.index=x.lastIndex,x.lastIndex+=O[0].length):x.lastIndex=0:C&&O&&(x.lastIndex=x.global?O.index+O[0].length:A),v&&O&&O.length>1&&e(i,O[0],w,function(){for(M=1;Mb)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},16952:function(I,r,n){"use strict";var e=n(42871),a=TypeError;I.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},44915:function(I,r,n){"use strict";var e=n(16210),a=n(58310),t=Object.getOwnPropertyDescriptor;I.exports=function(o){if(!a)return e[o];var m=t(e,o);return m&&m.value}},5700:function(I){"use strict";I.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},78362:function(I,r,n){"use strict";var e=n(16210),a=n(61267),t=n(55747),o=n(10753),m=n(83309),S=n(54602),y=n(24986),k=e.Function,V=/MSIE .\./.test(m)||o==="BUN"&&function(){var p=e.Bun.version.split(".");return p.length<3||p[0]==="0"&&(p[1]<3||p[1]==="3"&&p[2]==="0")}();I.exports=function(p,i){var c=i?2:1;return V?function(s,l){var d=y(arguments.length,1)>c,f=t(s)?s:k(s),u=d?S(arguments,c):[],C=d?function(){a(f,this,u)}:f;return i?p(C,l):p(C)}:p}},58491:function(I,r,n){"use strict";var e=n(4009),a=n(73936),t=n(24697),o=n(58310),m=t("species");I.exports=function(S){var y=e(S);o&&y&&!y[m]&&a(y,m,{configurable:!0,get:function(){function k(){return this}return k}()})}},84925:function(I,r,n){"use strict";var e=n(74595).f,a=n(45299),t=n(24697),o=t("toStringTag");I.exports=function(m,S,y){m&&!y&&(m=m.prototype),m&&!a(m,o)&&e(m,o,{configurable:!0,value:S})}},19417:function(I,r,n){"use strict";var e=n(16639),a=n(16738),t=e("keys");I.exports=function(o){return t[o]||(t[o]=a(o))}},40095:function(I,r,n){"use strict";var e=n(4493),a=n(16210),t=n(18231),o="__core-js_shared__",m=I.exports=a[o]||t(o,{});(m.versions||(m.versions=[])).push({version:"3.38.1",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},16639:function(I,r,n){"use strict";var e=n(40095);I.exports=function(a,t){return e[a]||(e[a]=t||{})}},28987:function(I,r,n){"use strict";var e=n(30365),a=n(32606),t=n(42871),o=n(24697),m=o("species");I.exports=function(S,y){var k=e(S).constructor,V;return k===void 0||t(V=e(k)[m])?y:a(V)}},88539:function(I,r,n){"use strict";var e=n(40033);I.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},50233:function(I,r,n){"use strict";var e=n(67250),a=n(61365),t=n(12605),o=n(16952),m=e("".charAt),S=e("".charCodeAt),y=e("".slice),k=function(p){return function(i,c){var s=t(o(i)),l=a(c),d=s.length,f,u;return l<0||l>=d?p?"":void 0:(f=S(s,l),f<55296||f>56319||l+1===d||(u=S(s,l+1))<56320||u>57343?p?m(s,l):f:p?y(s,l,l+2):(f-55296<<10)+(u-56320)+65536)}};I.exports={codeAt:k(!1),charAt:k(!0)}},34125:function(I,r,n){"use strict";var e=n(83309);I.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},24051:function(I,r,n){"use strict";var e=n(67250),a=n(10188),t=n(12605),o=n(62443),m=n(16952),S=e(o),y=e("".slice),k=Math.ceil,V=function(i){return function(c,s,l){var d=t(m(c)),f=a(s),u=d.length,C=l===void 0?" ":t(l),b,v;return f<=u||C===""?d:(b=f-u,v=S(C,k(b/C.length)),v.length>b&&(v=y(v,0,b)),i?d+v:v+d)}};I.exports={start:V(!1),end:V(!0)}},62443:function(I,r,n){"use strict";var e=n(61365),a=n(12605),t=n(16952),o=RangeError;I.exports=function(){function m(S){var y=a(t(this)),k="",V=e(S);if(V<0||V===1/0)throw new o("Wrong number of repetitions");for(;V>0;(V>>>=1)&&(y+=y))V&1&&(k+=y);return k}return m}()},43476:function(I,r,n){"use strict";var e=n(92648).end,a=n(90012);I.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},90012:function(I,r,n){"use strict";var e=n(70520).PROPER,a=n(40033),t=n(4198),o="\u200B\x85\u180E";I.exports=function(m){return a(function(){return!!t[m]()||o[m]()!==o||e&&t[m].name!==m})}},43885:function(I,r,n){"use strict";var e=n(92648).start,a=n(90012);I.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},92648:function(I,r,n){"use strict";var e=n(67250),a=n(16952),t=n(12605),o=n(4198),m=e("".replace),S=RegExp("^["+o+"]+"),y=RegExp("(^|[^"+o+"])["+o+"]+$"),k=function(p){return function(i){var c=t(a(i));return p&1&&(c=m(c,S,"")),p&2&&(c=m(c,y,"$1")),c}};I.exports={start:k(1),end:k(2),trim:k(3)}},52357:function(I,r,n){"use strict";var e=n(83141),a=n(40033),t=n(16210),o=t.String;I.exports=!!Object.getOwnPropertySymbols&&!a(function(){var m=Symbol("symbol detection");return!o(m)||!(Object(m)instanceof Symbol)||!Symbol.sham&&e&&e<41})},52360:function(I,r,n){"use strict";var e=n(91495),a=n(4009),t=n(24697),o=n(55938);I.exports=function(){var m=a("Symbol"),S=m&&m.prototype,y=S&&S.valueOf,k=t("toPrimitive");S&&!S[k]&&o(S,k,function(V){return e(y,this)},{arity:1})}},66570:function(I,r,n){"use strict";var e=n(52357);I.exports=e&&!!Symbol.for&&!!Symbol.keyFor},60375:function(I,r,n){"use strict";var e=n(16210),a=n(61267),t=n(75754),o=n(55747),m=n(45299),S=n(40033),y=n(5315),k=n(54602),V=n(12689),p=n(24986),i=n(27770),c=n(81663),s=e.setImmediate,l=e.clearImmediate,d=e.process,f=e.Dispatch,u=e.Function,C=e.MessageChannel,b=e.String,v=0,h={},g="onreadystatechange",N,x,B,L;S(function(){N=e.location});var T=function(M){if(m(h,M)){var P=h[M];delete h[M],P()}},E=function(M){return function(){T(M)}},w=function(M){T(M.data)},A=function(M){e.postMessage(b(M),N.protocol+"//"+N.host)};(!s||!l)&&(s=function(){function O(M){p(arguments.length,1);var P=o(M)?M:u(M),R=k(arguments,1);return h[++v]=function(){a(P,void 0,R)},x(v),v}return O}(),l=function(){function O(M){delete h[M]}return O}(),c?x=function(M){d.nextTick(E(M))}:f&&f.now?x=function(M){f.now(E(M))}:C&&!i?(B=new C,L=B.port2,B.port1.onmessage=w,x=t(L.postMessage,L)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&N&&N.protocol!=="file:"&&!S(A)?(x=A,e.addEventListener("message",w,!1)):g in V("script")?x=function(M){y.appendChild(V("script"))[g]=function(){y.removeChild(this),T(M)}}:x=function(M){setTimeout(E(M),0)}),I.exports={set:s,clear:l}},46438:function(I,r,n){"use strict";var e=n(67250);I.exports=e(1 .valueOf)},13912:function(I,r,n){"use strict";var e=n(61365),a=Math.max,t=Math.min;I.exports=function(o,m){var S=e(o);return S<0?a(S+m,0):t(S,m)}},61484:function(I,r,n){"use strict";var e=n(24843),a=TypeError;I.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},43806:function(I,r,n){"use strict";var e=n(61365),a=n(10188),t=RangeError;I.exports=function(o){if(o===void 0)return 0;var m=e(o),S=a(m);if(m!==S)throw new t("Wrong length or index");return S}},57591:function(I,r,n){"use strict";var e=n(37457),a=n(16952);I.exports=function(t){return e(a(t))}},61365:function(I,r,n){"use strict";var e=n(21119);I.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},10188:function(I,r,n){"use strict";var e=n(61365),a=Math.min;I.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},46771:function(I,r,n){"use strict";var e=n(16952),a=Object;I.exports=function(t){return a(e(t))}},56043:function(I,r,n){"use strict";var e=n(16140),a=RangeError;I.exports=function(t,o){var m=e(t);if(m%o)throw new a("Wrong offset");return m}},16140:function(I,r,n){"use strict";var e=n(61365),a=RangeError;I.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},24843:function(I,r,n){"use strict";var e=n(91495),a=n(77568),t=n(71399),o=n(78060),m=n(13396),S=n(24697),y=TypeError,k=S("toPrimitive");I.exports=function(V,p){if(!a(V)||t(V))return V;var i=o(V,k),c;if(i){if(p===void 0&&(p="default"),c=e(i,V,p),!a(c)||t(c))return c;throw new y("Can't convert object to primitive value")}return p===void 0&&(p="number"),m(V,p)}},767:function(I,r,n){"use strict";var e=n(24843),a=n(71399);I.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},2650:function(I,r,n){"use strict";var e=n(24697),a=e("toStringTag"),t={};t[a]="z",I.exports=String(t)==="[object z]"},12605:function(I,r,n){"use strict";var e=n(2281),a=String;I.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},15409:function(I){"use strict";var r=Math.round;I.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},89393:function(I){"use strict";var r=String;I.exports=function(n){try{return r(n)}catch(e){return"Object"}}},80185:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(91495),o=n(58310),m=n(86563),S=n(4246),y=n(37336),k=n(60077),V=n(87458),p=n(37909),i=n(5841),c=n(10188),s=n(43806),l=n(56043),d=n(15409),f=n(767),u=n(45299),C=n(2281),b=n(77568),v=n(71399),h=n(80674),g=n(21287),N=n(76649),x=n(37310).f,B=n(3805),L=n(22603).forEach,T=n(58491),E=n(73936),w=n(74595),A=n(27193),O=n(78008),M=n(5419),P=n(5781),R=M.get,F=M.set,_=M.enforce,U=w.f,W=A.f,$=a.RangeError,G=y.ArrayBuffer,oe=G.prototype,X=y.DataView,pe=S.NATIVE_ARRAY_BUFFER_VIEWS,me=S.TYPED_ARRAY_TAG,ne=S.TypedArray,re=S.TypedArrayPrototype,q=S.isTypedArray,ae="BYTES_PER_ELEMENT",J="Wrong length",Y=function(fe,Le){E(fe,Le,{configurable:!0,get:function(){function D(){return R(this)[Le]}return D}()})},Q=function(fe){var Le;return g(oe,fe)||(Le=C(fe))==="ArrayBuffer"||Le==="SharedArrayBuffer"},Z=function(fe,Le){return q(fe)&&!v(Le)&&Le in fe&&i(+Le)&&Le>=0},te=function(){function ye(fe,Le){return Le=f(Le),Z(fe,Le)?V(2,fe[Le]):W(fe,Le)}return ye}(),se=function(){function ye(fe,Le,D){return Le=f(Le),Z(fe,Le)&&b(D)&&u(D,"value")&&!u(D,"get")&&!u(D,"set")&&!D.configurable&&(!u(D,"writable")||D.writable)&&(!u(D,"enumerable")||D.enumerable)?(fe[Le]=D.value,fe):U(fe,Le,D)}return ye}();o?(pe||(A.f=te,w.f=se,Y(re,"buffer"),Y(re,"byteOffset"),Y(re,"byteLength"),Y(re,"length")),e({target:"Object",stat:!0,forced:!pe},{getOwnPropertyDescriptor:te,defineProperty:se}),I.exports=function(ye,fe,Le){var D=ye.match(/\d+/)[0]/8,ie=ye+(Le?"Clamped":"")+"Array",le="get"+ye,Ce="set"+ye,he=a[ie],ve=he,Be=ve&&ve.prototype,we={},Re=function(H,ue){var be=R(H);return be.view[le](ue*D+be.byteOffset,!0)},_e=function(H,ue,be){var Se=R(H);Se.view[Ce](ue*D+Se.byteOffset,Le?d(be):be,!0)},Pe=function(H,ue){U(H,ue,{get:function(){function be(){return Re(this,ue)}return be}(),set:function(){function be(Se){return _e(this,ue,Se)}return be}(),enumerable:!0})};pe?m&&(ve=fe(function(ke,H,ue,be){return k(ke,Be),P(function(){return b(H)?Q(H)?be!==void 0?new he(H,l(ue,D),be):ue!==void 0?new he(H,l(ue,D)):new he(H):q(H)?O(ve,H):t(B,ve,H):new he(s(H))}(),ke,ve)}),N&&N(ve,ne),L(x(he),function(ke){ke in ve||p(ve,ke,he[ke])}),ve.prototype=Be):(ve=fe(function(ke,H,ue,be){k(ke,Be);var Se=0,Ie=0,Ee,Me,Ae;if(!b(H))Ae=s(H),Me=Ae*D,Ee=new G(Me);else if(Q(H)){Ee=H,Ie=l(ue,D);var De=H.byteLength;if(be===void 0){if(De%D)throw new $(J);if(Me=De-Ie,Me<0)throw new $(J)}else if(Me=c(be)*D,Me+Ie>De)throw new $(J);Ae=Me/D}else return q(H)?O(ve,H):t(B,ve,H);for(F(ke,{buffer:Ee,byteOffset:Ie,byteLength:Me,length:Ae,view:new X(Ee)});Se1?arguments[1]:void 0,C=u!==void 0,b=y(d),v,h,g,N,x,B,L,T;if(b&&!k(b))for(L=S(d,b),T=L.next,d=[];!(B=a(T,L)).done;)d.push(B.value);for(C&&f>2&&(u=e(u,arguments[2])),h=m(d),g=new(p(l))(h),N=V(g),v=0;h>v;v++)x=C?u(d[v],v):d[v],g[v]=N?i(x):+x;return g}return c}()},31082:function(I,r,n){"use strict";var e=n(4246),a=n(28987),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;I.exports=function(m){return t(a(m,o(m)))}},16738:function(I,r,n){"use strict";var e=n(67250),a=0,t=Math.random(),o=e(1 .toString);I.exports=function(m){return"Symbol("+(m===void 0?"":m)+")_"+o(++a+t,36)}},1062:function(I,r,n){"use strict";var e=n(52357);I.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},80944:function(I,r,n){"use strict";var e=n(58310),a=n(40033);I.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},24986:function(I){"use strict";var r=TypeError;I.exports=function(n,e){if(n=51||!a(function(){var u=[];return u[s]=!1,u.concat()[0]!==u}),d=function(C){if(!o(C))return!1;var b=C[s];return b!==void 0?!!b:t(C)},f=!l||!p("concat");e({target:"Array",proto:!0,arity:1,forced:f},{concat:function(){function u(C){var b=m(this),v=V(b,0),h=0,g,N,x,B,L;for(g=-1,x=arguments.length;g1?arguments[1]:void 0)}return m}()})},68933:function(I,r,n){"use strict";var e=n(63964),a=n(88471),t=n(80575);e({target:"Array",proto:!0},{fill:a}),t("fill")},47830:function(I,r,n){"use strict";var e=n(63964),a=n(22603).filter,t=n(44091),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function m(S){return a(this,S,arguments.length>1?arguments[1]:void 0)}return m}()})},64094:function(I,r,n){"use strict";var e=n(63964),a=n(22603).findIndex,t=n(80575),o="findIndex",m=!0;o in[]&&Array(1)[o](function(){m=!1}),e({target:"Array",proto:!0,forced:m},{findIndex:function(){function S(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return S}()}),t(o)},13455:function(I,r,n){"use strict";var e=n(63964),a=n(22603).find,t=n(80575),o="find",m=!0;o in[]&&Array(1)[o](function(){m=!1}),e({target:"Array",proto:!0,forced:m},{find:function(){function S(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return S}()}),t(o)},32384:function(I,r,n){"use strict";var e=n(63964),a=n(65561),t=n(10320),o=n(46771),m=n(24760),S=n(57823);e({target:"Array",proto:!0},{flatMap:function(){function y(k){var V=o(this),p=m(V),i;return t(k),i=S(V,0),i.length=a(i,V,V,p,0,1,k,arguments.length>1?arguments[1]:void 0),i}return y}()})},61915:function(I,r,n){"use strict";var e=n(63964),a=n(65561),t=n(46771),o=n(24760),m=n(61365),S=n(57823);e({target:"Array",proto:!0},{flat:function(){function y(){var k=arguments.length?arguments[0]:void 0,V=t(this),p=o(V),i=S(V,0);return i.length=a(i,V,V,p,0,k===void 0?1:m(k)),i}return y}()})},25579:function(I,r,n){"use strict";var e=n(63964),a=n(35601);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},63532:function(I,r,n){"use strict";var e=n(63964),a=n(73174),t=n(92490),o=!t(function(m){Array.from(m)});e({target:"Array",stat:!0,forced:o},{from:a})},33425:function(I,r,n){"use strict";var e=n(63964),a=n(14211).includes,t=n(40033),o=n(80575),m=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:m},{includes:function(){function S(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return S}()}),o("includes")},43894:function(I,r,n){"use strict";var e=n(63964),a=n(71138),t=n(14211).indexOf,o=n(55528),m=a([].indexOf),S=!!m&&1/m([1],1,-0)<0,y=S||!o("indexOf");e({target:"Array",proto:!0,forced:y},{indexOf:function(){function k(V){var p=arguments.length>1?arguments[1]:void 0;return S?m(this,V,p)||0:t(this,V,p)}return k}()})},99636:function(I,r,n){"use strict";var e=n(63964),a=n(37386);e({target:"Array",stat:!0},{isArray:a})},34570:function(I,r,n){"use strict";var e=n(57591),a=n(80575),t=n(83967),o=n(5419),m=n(74595).f,S=n(65574),y=n(5959),k=n(4493),V=n(58310),p="Array Iterator",i=o.set,c=o.getterFor(p);I.exports=S(Array,"Array",function(l,d){i(this,{type:p,target:e(l),index:0,kind:d})},function(){var l=c(this),d=l.target,f=l.index++;if(!d||f>=d.length)return l.target=null,y(void 0,!0);switch(l.kind){case"keys":return y(f,!1);case"values":return y(d[f],!1)}return y([f,d[f]],!1)},"values");var s=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!k&&V&&s.name!=="values")try{m(s,"name",{value:"values"})}catch(l){}},94432:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37457),o=n(57591),m=n(55528),S=a([].join),y=t!==Object,k=y||!m("join",",");e({target:"Array",proto:!0,forced:k},{join:function(){function V(p){return S(o(this),p===void 0?",":p)}return V}()})},24683:function(I,r,n){"use strict";var e=n(63964),a=n(1325);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},69984:function(I,r,n){"use strict";var e=n(63964),a=n(22603).map,t=n(44091),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function m(S){return a(this,S,arguments.length>1?arguments[1]:void 0)}return m}()})},32089:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(1031),o=n(60102),m=Array,S=a(function(){function y(){}return!(m.of.call(y)instanceof y)});e({target:"Array",stat:!0,forced:S},{of:function(){function y(){for(var k=0,V=arguments.length,p=new(t(this)?this:m)(V);V>k;)o(p,k,arguments[k++]);return p.length=V,p}return y}()})},29645:function(I,r,n){"use strict";var e=n(63964),a=n(56844).right,t=n(55528),o=n(83141),m=n(81663),S=!m&&o>79&&o<83,y=S||!t("reduceRight");e({target:"Array",proto:!0,forced:y},{reduceRight:function(){function k(V){return a(this,V,arguments.length,arguments.length>1?arguments[1]:void 0)}return k}()})},60206:function(I,r,n){"use strict";var e=n(63964),a=n(56844).left,t=n(55528),o=n(83141),m=n(81663),S=!m&&o>79&&o<83,y=S||!t("reduce");e({target:"Array",proto:!0,forced:y},{reduce:function(){function k(V){var p=arguments.length;return a(this,V,p,p>1?arguments[1]:void 0)}return k}()})},4788:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37386),o=a([].reverse),m=[1,2];e({target:"Array",proto:!0,forced:String(m)===String(m.reverse())},{reverse:function(){function S(){return t(this)&&(this.length=this.length),o(this)}return S}()})},58672:function(I,r,n){"use strict";var e=n(63964),a=n(37386),t=n(1031),o=n(77568),m=n(13912),S=n(24760),y=n(57591),k=n(60102),V=n(24697),p=n(44091),i=n(54602),c=p("slice"),s=V("species"),l=Array,d=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function f(u,C){var b=y(this),v=S(b),h=m(u,v),g=m(C===void 0?v:C,v),N,x,B;if(a(b)&&(N=b.constructor,t(N)&&(N===l||a(N.prototype))?N=void 0:o(N)&&(N=N[s],N===null&&(N=void 0)),N===l||N===void 0))return i(b,h,g);for(x=new(N===void 0?l:N)(d(g-h,0)),B=0;h1?arguments[1]:void 0)}return m}()})},48968:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(10320),o=n(46771),m=n(24760),S=n(95108),y=n(12605),k=n(40033),V=n(90274),p=n(55528),i=n(50503),c=n(79725),s=n(83141),l=n(44981),d=[],f=a(d.sort),u=a(d.push),C=k(function(){d.sort(void 0)}),b=k(function(){d.sort(null)}),v=p("sort"),h=!k(function(){if(s)return s<70;if(!(i&&i>3)){if(c)return!0;if(l)return l<603;var x="",B,L,T,E;for(B=65;B<76;B++){switch(L=String.fromCharCode(B),B){case 66:case 69:case 70:case 72:T=3;break;case 68:case 71:T=4;break;default:T=2}for(E=0;E<47;E++)d.push({k:L+E,v:T})}for(d.sort(function(w,A){return A.v-w.v}),E=0;Ey(T)?1:-1}};e({target:"Array",proto:!0,forced:g},{sort:function(){function x(B){B!==void 0&&t(B);var L=o(this);if(h)return B===void 0?f(L):f(L,B);var T=[],E=m(L),w,A;for(A=0;Ab-N+g;B--)p(C,B-1)}else if(g>N)for(B=b-N;B>v;B--)L=B+N-1,T=B+g-1,L in C?C[T]=C[L]:p(C,T);for(B=0;B9490626562425156e-8?o(p)+S:a(p-1+m(p-1)*m(p+1))}return k}()})},59660:function(I,r,n){"use strict";var e=n(63964),a=Math.asinh,t=Math.log,o=Math.sqrt;function m(y){var k=+y;return!isFinite(k)||k===0?k:k<0?-m(-k):t(k+o(k*k+1))}var S=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:S},{asinh:m})},15383:function(I,r,n){"use strict";var e=n(63964),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function m(S){var y=+S;return y===0?y:t((1+y)/(1-y))/2}return m}()})},92866:function(I,r,n){"use strict";var e=n(63964),a=n(22172),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function m(S){var y=+S;return a(y)*o(t(y),.3333333333333333)}return m}()})},86107:function(I,r,n){"use strict";var e=n(63964),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function m(S){var y=S>>>0;return y?31-a(t(y+.5)*o):32}return m}()})},29248:function(I,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.cosh,o=Math.abs,m=Math.E,S=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:S},{cosh:function(){function y(k){var V=a(o(k)-1)+1;return(V+1/(V*m*m))*(m/2)}return y}()})},52540:function(I,r,n){"use strict";var e=n(63964),a=n(82040);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},79007:function(I,r,n){"use strict";var e=n(63964),a=n(95867);e({target:"Math",stat:!0},{fround:a})},77199:function(I,r,n){"use strict";var e=n(63964),a=Math.hypot,t=Math.abs,o=Math.sqrt,m=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:m},{hypot:function(){function S(y,k){for(var V=0,p=0,i=arguments.length,c=0,s,l;p0?(l=s/c,V+=l*l):V+=s;return c===1/0?1/0:c*o(V)}return S}()})},6522:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function m(S,y){var k=65535,V=+S,p=+y,i=k&V,c=k&p;return 0|i*c+((k&V>>>16)*c+i*(k&p>>>16)<<16>>>0)}return m}()})},95542:function(I,r,n){"use strict";var e=n(63964),a=n(75002);e({target:"Math",stat:!0},{log10:a})},2966:function(I,r,n){"use strict";var e=n(63964),a=n(90874);e({target:"Math",stat:!0},{log1p:a})},20997:function(I,r,n){"use strict";var e=n(63964),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(m){return a(m)/t}return o}()})},57400:function(I,r,n){"use strict";var e=n(63964),a=n(22172);e({target:"Math",stat:!0},{sign:a})},45571:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(82040),o=Math.abs,m=Math.exp,S=Math.E,y=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:y},{sinh:function(){function k(V){var p=+V;return o(p)<1?(t(p)-t(-p))/2:(m(p-1)-m(-p-1))*(S/2)}return k}()})},54800:function(I,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(m){var S=+m,y=a(S),k=a(-S);return y===1/0?1:k===1/0?-1:(y-k)/(t(S)+t(-S))}return o}()})},15709:function(I,r,n){"use strict";var e=n(84925);e(Math,"Math",!0)},76059:function(I,r,n){"use strict";var e=n(63964),a=n(21119);e({target:"Math",stat:!0},{trunc:a})},96614:function(I,r,n){"use strict";var e=n(63964),a=n(4493),t=n(58310),o=n(16210),m=n(61765),S=n(67250),y=n(41314),k=n(45299),V=n(5781),p=n(21287),i=n(71399),c=n(24843),s=n(40033),l=n(37310).f,d=n(27193).f,f=n(74595).f,u=n(46438),C=n(92648).trim,b="Number",v=o[b],h=m[b],g=v.prototype,N=o.TypeError,x=S("".slice),B=S("".charCodeAt),L=function(P){var R=c(P,"number");return typeof R=="bigint"?R:T(R)},T=function(P){var R=c(P,"number"),F,_,U,W,$,G,oe,X;if(i(R))throw new N("Cannot convert a Symbol value to a number");if(typeof R=="string"&&R.length>2){if(R=C(R),F=B(R,0),F===43||F===45){if(_=B(R,2),_===88||_===120)return NaN}else if(F===48){switch(B(R,1)){case 66:case 98:U=2,W=49;break;case 79:case 111:U=8,W=55;break;default:return+R}for($=x(R,2),G=$.length,oe=0;oeW)return NaN;return parseInt($,U)}}return+R},E=y(b,!v(" 0o1")||!v("0b1")||v("+0x1")),w=function(P){return p(g,P)&&s(function(){u(P)})},A=function(){function M(P){var R=arguments.length<1?0:v(L(P));return w(this)?V(Object(R),this,A):R}return M}();A.prototype=g,E&&!a&&(g.constructor=A),e({global:!0,constructor:!0,wrap:!0,forced:E},{Number:A});var O=function(P,R){for(var F=t?l(R):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),_=0,U;F.length>_;_++)k(R,U=F[_])&&!k(P,U)&&f(P,U,d(R,U))};a&&h&&O(m[b],h),(E||a)&&O(m[b],v)},324:function(I,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},90426:function(I,r,n){"use strict";var e=n(63964),a=n(3294);e({target:"Number",stat:!0},{isFinite:a})},95443:function(I,r,n){"use strict";var e=n(63964),a=n(5841);e({target:"Number",stat:!0},{isInteger:a})},87968:function(I,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},55007:function(I,r,n){"use strict";var e=n(63964),a=n(5841),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(m){return a(m)&&t(m)<=9007199254740991}return o}()})},55323:function(I,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},13521:function(I,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},5006:function(I,r,n){"use strict";var e=n(63964),a=n(28506);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},99009:function(I,r,n){"use strict";var e=n(63964),a=n(13693);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},85770:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(61365),o=n(46438),m=n(62443),S=n(40033),y=RangeError,k=String,V=Math.floor,p=a(m),i=a("".slice),c=a(1 .toFixed),s=function(v,h,g){return h===0?g:h%2===1?s(v,h-1,g*v):s(v*v,h/2,g)},l=function(v){for(var h=0,g=v;g>=4096;)h+=12,g/=4096;for(;g>=2;)h+=1,g/=2;return h},d=function(v,h,g){for(var N=-1,x=g;++N<6;)x+=h*v[N],v[N]=x%1e7,x=V(x/1e7)},f=function(v,h){for(var g=6,N=0;--g>=0;)N+=v[g],v[g]=V(N/h),N=N%h*1e7},u=function(v){for(var h=6,g="";--h>=0;)if(g!==""||h===0||v[h]!==0){var N=k(v[h]);g=g===""?N:g+p("0",7-N.length)+N}return g},C=S(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!S(function(){c({})});e({target:"Number",proto:!0,forced:C},{toFixed:function(){function b(v){var h=o(this),g=t(v),N=[0,0,0,0,0,0],x="",B="0",L,T,E,w;if(g<0||g>20)throw new y("Incorrect fraction digits");if(h!==h)return"NaN";if(h<=-1e21||h>=1e21)return k(h);if(h<0&&(x="-",h=-h),h>1e-21)if(L=l(h*s(2,69,1))-69,T=L<0?h*s(2,-L,1):h/s(2,L,1),T*=4503599627370496,L=52-L,L>0){for(d(N,0,T),E=g;E>=7;)d(N,1e7,0),E-=7;for(d(N,s(10,E,1),0),E=L-1;E>=23;)f(N,8388608),E-=23;f(N,1<0?(w=B.length,B=x+(w<=g?"0."+p("0",g-w)+B:i(B,0,w-g)+"."+i(B,w-g))):B=x+B,B}return b}()})},23532:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(40033),o=n(46438),m=a(1 .toPrecision),S=t(function(){return m(1,void 0)!=="1"})||!t(function(){m({})});e({target:"Number",proto:!0,forced:S},{toPrecision:function(){function y(k){return k===void 0?m(o(this)):m(o(this),k)}return y}()})},87119:function(I,r,n){"use strict";var e=n(63964),a=n(41143);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},78618:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(80674);e({target:"Object",stat:!0,sham:!a},{create:t})},27129:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),m=n(46771),S=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function y(k,V){S.f(m(this),k,{get:o(V),enumerable:!0,configurable:!0})}return y}()})},31943:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(24239).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},3579:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(74595).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},97397:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),m=n(46771),S=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function y(k,V){S.f(m(this),k,{set:o(V),enumerable:!0,configurable:!0})}return y}()})},85028:function(I,r,n){"use strict";var e=n(63964),a=n(70915).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},8225:function(I,r,n){"use strict";var e=n(63964),a=n(50730),t=n(40033),o=n(77568),m=n(81969).onFreeze,S=Object.freeze,y=t(function(){S(1)});e({target:"Object",stat:!0,forced:y,sham:!a},{freeze:function(){function k(V){return S&&o(V)?S(m(V)):V}return k}()})},43331:function(I,r,n){"use strict";var e=n(63964),a=n(49450),t=n(60102);e({target:"Object",stat:!0},{fromEntries:function(){function o(m){var S={};return a(m,function(y,k){t(S,y,k)},{AS_ENTRIES:!0}),S}return o}()})},62289:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(57591),o=n(27193).f,m=n(58310),S=!m||a(function(){o(1)});e({target:"Object",stat:!0,forced:S,sham:!m},{getOwnPropertyDescriptor:function(){function y(k,V){return o(t(k),V)}return y}()})},56196:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(97921),o=n(57591),m=n(27193),S=n(60102);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function y(k){for(var V=o(k),p=m.f,i=t(V),c={},s=0,l,d;i.length>s;)d=p(V,l=i[s++]),d!==void 0&&S(c,l,d);return c}return y}()})},2950:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(81644).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},28603:function(I,r,n){"use strict";var e=n(63964),a=n(52357),t=n(40033),o=n(89235),m=n(46771),S=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:S},{getOwnPropertySymbols:function(){function y(k){var V=o.f;return V?V(m(k)):[]}return y}()})},44205:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(46771),o=n(36917),m=n(9225),S=a(function(){o(1)});e({target:"Object",stat:!0,forced:S,sham:!m},{getPrototypeOf:function(){function y(k){return o(t(k))}return y}()})},83186:function(I,r,n){"use strict";var e=n(63964),a=n(81834);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},76065:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),m=n(3782),S=Object.isFrozen,y=m||a(function(){S(1)});e({target:"Object",stat:!0,forced:y},{isFrozen:function(){function k(V){return!t(V)||m&&o(V)==="ArrayBuffer"?!0:S?S(V):!1}return k}()})},13411:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),m=n(3782),S=Object.isSealed,y=m||a(function(){S(1)});e({target:"Object",stat:!0,forced:y},{isSealed:function(){function k(V){return!t(V)||m&&o(V)==="ArrayBuffer"?!0:S?S(V):!1}return k}()})},76882:function(I,r,n){"use strict";var e=n(63964),a=n(5700);e({target:"Object",stat:!0},{is:a})},26634:function(I,r,n){"use strict";var e=n(63964),a=n(46771),t=n(18450),o=n(40033),m=o(function(){t(1)});e({target:"Object",stat:!0,forced:m},{keys:function(){function S(y){return t(a(y))}return S}()})},53118:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),m=n(767),S=n(36917),y=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function k(V){var p=o(this),i=m(V),c;do if(c=y(p,i))return c.get;while(p=S(p))}return k}()})},42514:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),m=n(767),S=n(36917),y=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function k(V){var p=o(this),i=m(V),c;do if(c=y(p,i))return c.set;while(p=S(p))}return k}()})},84353:function(I,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),m=n(40033),S=Object.preventExtensions,y=m(function(){S(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{preventExtensions:function(){function k(V){return S&&a(V)?S(t(V)):V}return k}()})},62987:function(I,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),m=n(40033),S=Object.seal,y=m(function(){S(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{seal:function(){function k(V){return S&&a(V)?S(t(V)):V}return k}()})},48993:function(I,r,n){"use strict";var e=n(63964),a=n(76649);e({target:"Object",stat:!0},{setPrototypeOf:a})},52917:function(I,r,n){"use strict";var e=n(2650),a=n(55938),t=n(2509);e||a(Object.prototype,"toString",t,{unsafe:!0})},4972:function(I,r,n){"use strict";var e=n(63964),a=n(70915).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},28913:function(I,r,n){"use strict";var e=n(63964),a=n(28506);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},36382:function(I,r,n){"use strict";var e=n(63964),a=n(13693);e({global:!0,forced:parseInt!==a},{parseInt:a})},48865:function(I,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),m=n(10729),S=n(49450),y=n(48199);e({target:"Promise",stat:!0,forced:y},{all:function(){function k(V){var p=this,i=o.f(p),c=i.resolve,s=i.reject,l=m(function(){var d=t(p.resolve),f=[],u=0,C=1;S(V,function(b){var v=u++,h=!1;C++,a(d,p,b).then(function(g){h||(h=!0,f[v]=g,--C||c(f))},s)}),--C||c(f)});return l.error&&s(l.value),i.promise}return k}()})},70641:function(I,r,n){"use strict";var e=n(63964),a=n(4493),t=n(74854).CONSTRUCTOR,o=n(67512),m=n(4009),S=n(55747),y=n(55938),k=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function p(i){return this.then(void 0,i)}return p}()}),!a&&S(o)){var V=m("Promise").prototype.catch;k.catch!==V&&y(k,"catch",V,{unsafe:!0})}},75946:function(I,r,n){"use strict";var e=n(63964),a=n(4493),t=n(81663),o=n(16210),m=n(91495),S=n(55938),y=n(76649),k=n(84925),V=n(58491),p=n(10320),i=n(55747),c=n(77568),s=n(60077),l=n(28987),d=n(60375).set,f=n(37713),u=n(72259),C=n(10729),b=n(9547),v=n(5419),h=n(67512),g=n(74854),N=n(81837),x="Promise",B=g.CONSTRUCTOR,L=g.REJECTION_EVENT,T=g.SUBCLASSING,E=v.getterFor(x),w=v.set,A=h&&h.prototype,O=h,M=A,P=o.TypeError,R=o.document,F=o.process,_=N.f,U=_,W=!!(R&&R.createEvent&&o.dispatchEvent),$="unhandledrejection",G="rejectionhandled",oe=0,X=1,pe=2,me=1,ne=2,re,q,ae,J,Y=function(Ce){var he;return c(Ce)&&i(he=Ce.then)?he:!1},Q=function(Ce,he){var ve=he.value,Be=he.state===X,we=Be?Ce.ok:Ce.fail,Re=Ce.resolve,_e=Ce.reject,Pe=Ce.domain,Ve,ke,H;try{we?(Be||(he.rejection===ne&&fe(he),he.rejection=me),we===!0?Ve=ve:(Pe&&Pe.enter(),Ve=we(ve),Pe&&(Pe.exit(),H=!0)),Ve===Ce.promise?_e(new P("Promise-chain cycle")):(ke=Y(Ve))?m(ke,Ve,Re,_e):Re(Ve)):_e(ve)}catch(ue){Pe&&!H&&Pe.exit(),_e(ue)}},Z=function(Ce,he){Ce.notified||(Ce.notified=!0,f(function(){for(var ve=Ce.reactions,Be;Be=ve.get();)Q(Be,Ce);Ce.notified=!1,he&&!Ce.rejection&&se(Ce)}))},te=function(Ce,he,ve){var Be,we;W?(Be=R.createEvent("Event"),Be.promise=he,Be.reason=ve,Be.initEvent(Ce,!1,!0),o.dispatchEvent(Be)):Be={promise:he,reason:ve},!L&&(we=o["on"+Ce])?we(Be):Ce===$&&u("Unhandled promise rejection",ve)},se=function(Ce){m(d,o,function(){var he=Ce.facade,ve=Ce.value,Be=ye(Ce),we;if(Be&&(we=C(function(){t?F.emit("unhandledRejection",ve,he):te($,he,ve)}),Ce.rejection=t||ye(Ce)?ne:me,we.error))throw we.value})},ye=function(Ce){return Ce.rejection!==me&&!Ce.parent},fe=function(Ce){m(d,o,function(){var he=Ce.facade;t?F.emit("rejectionHandled",he):te(G,he,Ce.value)})},Le=function(Ce,he,ve){return function(Be){Ce(he,Be,ve)}},D=function(Ce,he,ve){Ce.done||(Ce.done=!0,ve&&(Ce=ve),Ce.value=he,Ce.state=pe,Z(Ce,!0))},ie=function(Ce,he,ve){if(!Ce.done){Ce.done=!0,ve&&(Ce=ve);try{if(Ce.facade===he)throw new P("Promise can't be resolved itself");var Be=Y(he);Be?f(function(){var we={done:!1};try{m(Be,he,Le(ie,we,Ce),Le(D,we,Ce))}catch(Re){D(we,Re,Ce)}}):(Ce.value=he,Ce.state=X,Z(Ce,!1))}catch(we){D({done:!1},we,Ce)}}};if(B&&(O=function(){function le(Ce){s(this,M),p(Ce),m(re,this);var he=E(this);try{Ce(Le(ie,he),Le(D,he))}catch(ve){D(he,ve)}}return le}(),M=O.prototype,re=function(){function le(Ce){w(this,{type:x,done:!1,notified:!1,parent:!1,reactions:new b,rejection:!1,state:oe,value:null})}return le}(),re.prototype=S(M,"then",function(){function le(Ce,he){var ve=E(this),Be=_(l(this,O));return ve.parent=!0,Be.ok=i(Ce)?Ce:!0,Be.fail=i(he)&&he,Be.domain=t?F.domain:void 0,ve.state===oe?ve.reactions.add(Be):f(function(){Q(Be,ve)}),Be.promise}return le}()),q=function(){var Ce=new re,he=E(Ce);this.promise=Ce,this.resolve=Le(ie,he),this.reject=Le(D,he)},N.f=_=function(Ce){return Ce===O||Ce===ae?new q(Ce):U(Ce)},!a&&i(h)&&A!==Object.prototype)){J=A.then,T||S(A,"then",function(){function le(Ce,he){var ve=this;return new O(function(Be,we){m(J,ve,Be,we)}).then(Ce,he)}return le}(),{unsafe:!0});try{delete A.constructor}catch(le){}y&&y(A,M)}e({global:!0,constructor:!0,wrap:!0,forced:B},{Promise:O}),k(O,x,!1,!0),V(x)},69861:function(I,r,n){"use strict";var e=n(63964),a=n(4493),t=n(67512),o=n(40033),m=n(4009),S=n(55747),y=n(28987),k=n(66628),V=n(55938),p=t&&t.prototype,i=!!t&&o(function(){p.finally.call({then:function(){function s(){}return s}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:i},{finally:function(){function s(l){var d=y(this,m("Promise")),f=S(l);return this.then(f?function(u){return k(d,l()).then(function(){return u})}:l,f?function(u){return k(d,l()).then(function(){throw u})}:l)}return s}()}),!a&&S(t)){var c=m("Promise").prototype.finally;p.finally!==c&&V(p,"finally",c,{unsafe:!0})}},53092:function(I,r,n){"use strict";n(75946),n(48865),n(70641),n(16937),n(41719),n(81702)},16937:function(I,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),m=n(10729),S=n(49450),y=n(48199);e({target:"Promise",stat:!0,forced:y},{race:function(){function k(V){var p=this,i=o.f(p),c=i.reject,s=m(function(){var l=t(p.resolve);S(V,function(d){a(l,p,d).then(i.resolve,c)})});return s.error&&c(s.value),i.promise}return k}()})},41719:function(I,r,n){"use strict";var e=n(63964),a=n(81837),t=n(74854).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(m){var S=a.f(this),y=S.reject;return y(m),S.promise}return o}()})},81702:function(I,r,n){"use strict";var e=n(63964),a=n(4009),t=n(4493),o=n(67512),m=n(74854).CONSTRUCTOR,S=n(66628),y=a("Promise"),k=t&&!m;e({target:"Promise",stat:!0,forced:t||m},{resolve:function(){function V(p){return S(k&&this===y?o:this,p)}return V}()})},29674:function(I,r,n){"use strict";var e=n(63964),a=n(61267),t=n(10320),o=n(30365),m=n(40033),S=!m(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:S},{apply:function(){function y(k,V,p){return a(t(k),V,o(p))}return y}()})},81543:function(I,r,n){"use strict";var e=n(63964),a=n(4009),t=n(61267),o=n(66284),m=n(32606),S=n(30365),y=n(77568),k=n(80674),V=n(40033),p=a("Reflect","construct"),i=Object.prototype,c=[].push,s=V(function(){function f(){}return!(p(function(){},[],f)instanceof f)}),l=!V(function(){p(function(){})}),d=s||l;e({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(){function f(u,C){m(u),S(C);var b=arguments.length<3?u:m(arguments[2]);if(l&&!s)return p(u,C,b);if(u===b){switch(C.length){case 0:return new u;case 1:return new u(C[0]);case 2:return new u(C[0],C[1]);case 3:return new u(C[0],C[1],C[2]);case 4:return new u(C[0],C[1],C[2],C[3])}var v=[null];return t(c,v,C),new(t(o,u,v))}var h=b.prototype,g=k(y(h)?h:i),N=t(u,g,C);return y(N)?N:g}return f}()})},9373:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(767),m=n(74595),S=n(40033),y=S(function(){Reflect.defineProperty(m.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:y,sham:!a},{defineProperty:function(){function k(V,p,i){t(V);var c=o(p);t(i);try{return m.f(V,c,i),!0}catch(s){return!1}}return k}()})},45093:function(I,r,n){"use strict";var e=n(63964),a=n(30365),t=n(27193).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(m,S){var y=t(a(m),S);return y&&!y.configurable?!1:delete m[S]}return o}()})},5815:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(27193);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function m(S,y){return o.f(t(S),y)}return m}()})},88527:function(I,r,n){"use strict";var e=n(63964),a=n(30365),t=n(36917),o=n(9225);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function m(S){return t(a(S))}return m}()})},63074:function(I,r,n){"use strict";var e=n(63964),a=n(91495),t=n(77568),o=n(30365),m=n(98373),S=n(27193),y=n(36917);function k(V,p){var i=arguments.length<3?V:arguments[2],c,s;if(o(V)===i)return V[p];if(c=S.f(V,p),c)return m(c)?c.value:c.get===void 0?void 0:a(c.get,i);if(t(s=y(V)))return k(s,p,i)}e({target:"Reflect",stat:!0},{get:k})},66390:function(I,r,n){"use strict";var e=n(63964);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},7784:function(I,r,n){"use strict";var e=n(63964),a=n(30365),t=n(81834);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(m){return a(m),t(m)}return o}()})},50551:function(I,r,n){"use strict";var e=n(63964),a=n(97921);e({target:"Reflect",stat:!0},{ownKeys:a})},76483:function(I,r,n){"use strict";var e=n(63964),a=n(4009),t=n(30365),o=n(50730);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function m(S){t(S);try{var y=a("Object","preventExtensions");return y&&y(S),!0}catch(k){return!1}}return m}()})},63915:function(I,r,n){"use strict";var e=n(63964),a=n(30365),t=n(35908),o=n(76649);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function m(S,y){a(S),t(y);try{return o(S,y),!0}catch(k){return!1}}return m}()})},92046:function(I,r,n){"use strict";var e=n(63964),a=n(91495),t=n(30365),o=n(77568),m=n(98373),S=n(40033),y=n(74595),k=n(27193),V=n(36917),p=n(87458);function i(s,l,d){var f=arguments.length<4?s:arguments[3],u=k.f(t(s),l),C,b,v;if(!u){if(o(b=V(s)))return i(b,l,d,f);u=p(0)}if(m(u)){if(u.writable===!1||!o(f))return!1;if(C=k.f(f,l)){if(C.get||C.set||C.writable===!1)return!1;C.value=d,y.f(f,l,C)}else y.f(f,l,p(0,d))}else{if(v=u.set,v===void 0)return!1;a(v,f,d)}return!0}var c=S(function(){var s=function(){},l=y.f(new s,"a",{configurable:!0});return Reflect.set(s.prototype,"a",1,l)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:i})},51454:function(I,r,n){"use strict";var e=n(58310),a=n(16210),t=n(67250),o=n(41314),m=n(5781),S=n(37909),y=n(80674),k=n(37310).f,V=n(21287),p=n(72586),i=n(12605),c=n(73392),s=n(62115),l=n(34550),d=n(55938),f=n(40033),u=n(45299),C=n(5419).enforce,b=n(58491),v=n(24697),h=n(39173),g=n(35688),N=v("match"),x=a.RegExp,B=x.prototype,L=a.SyntaxError,T=t(B.exec),E=t("".charAt),w=t("".replace),A=t("".indexOf),O=t("".slice),M=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,P=/a/g,R=/a/g,F=new x(P)!==P,_=s.MISSED_STICKY,U=s.UNSUPPORTED_Y,W=e&&(!F||_||h||g||f(function(){return R[N]=!1,x(P)!==P||x(R)===R||String(x(P,"i"))!=="/a/i"})),$=function(ne){for(var re=ne.length,q=0,ae="",J=!1,Y;q<=re;q++){if(Y=E(ne,q),Y==="\\"){ae+=Y+E(ne,++q);continue}!J&&Y==="."?ae+="[\\s\\S]":(Y==="["?J=!0:Y==="]"&&(J=!1),ae+=Y)}return ae},G=function(ne){for(var re=ne.length,q=0,ae="",J=[],Y=y(null),Q=!1,Z=!1,te=0,se="",ye;q<=re;q++){if(ye=E(ne,q),ye==="\\")ye+=E(ne,++q);else if(ye==="]")Q=!1;else if(!Q)switch(!0){case ye==="[":Q=!0;break;case ye==="(":if(ae+=ye,O(ne,q+1,q+3)==="?:")continue;T(M,O(ne,q+1))&&(q+=2,Z=!0),te++;continue;case(ye===">"&&Z):if(se===""||u(Y,se))throw new L("Invalid capture group name");Y[se]=!0,J[J.length]=[se,te],Z=!1,se="";continue}Z?se+=ye:ae+=ye}return[ae,J]};if(o("RegExp",W)){for(var oe=function(){function me(ne,re){var q=V(B,this),ae=p(ne),J=re===void 0,Y=[],Q=ne,Z,te,se,ye,fe,Le;if(!q&&ae&&J&&ne.constructor===oe)return ne;if((ae||V(B,ne))&&(ne=ne.source,J&&(re=c(Q))),ne=ne===void 0?"":i(ne),re=re===void 0?"":i(re),Q=ne,h&&"dotAll"in P&&(te=!!re&&A(re,"s")>-1,te&&(re=w(re,/s/g,""))),Z=re,_&&"sticky"in P&&(se=!!re&&A(re,"y")>-1,se&&U&&(re=w(re,/y/g,""))),g&&(ye=G(ne),ne=ye[0],Y=ye[1]),fe=m(x(ne,re),q?this:B,oe),(te||se||Y.length)&&(Le=C(fe),te&&(Le.dotAll=!0,Le.raw=oe($(ne),Z)),se&&(Le.sticky=!0),Y.length&&(Le.groups=Y)),ne!==Q)try{S(fe,"source",Q===""?"(?:)":Q)}catch(D){}return fe}return me}(),X=k(x),pe=0;X.length>pe;)l(oe,x,X[pe++]);B.constructor=oe,oe.prototype=B,d(a,"RegExp",oe,{constructor:!0})}b("RegExp")},79669:function(I,r,n){"use strict";var e=n(63964),a=n(14489);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},23057:function(I,r,n){"use strict";var e=n(16210),a=n(58310),t=n(73936),o=n(70901),m=n(40033),S=e.RegExp,y=S.prototype,k=a&&m(function(){var V=!0;try{S(".","d")}catch(u){V=!1}var p={},i="",c=V?"dgimsy":"gimsy",s=function(C,b){Object.defineProperty(p,C,{get:function(){function v(){return i+=b,!0}return v}()})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};V&&(l.hasIndices="d");for(var d in l)s(d,l[d]);var f=Object.getOwnPropertyDescriptor(y,"flags").get.call(p);return f!==c||i!==c});k&&t(y,"flags",{configurable:!0,get:o})},57983:function(I,r,n){"use strict";var e=n(70520).PROPER,a=n(55938),t=n(30365),o=n(12605),m=n(40033),S=n(73392),y="toString",k=RegExp.prototype,V=k[y],p=m(function(){return V.call({source:"a",flags:"b"})!=="/a/b"}),i=e&&V.name!==y;(p||i)&&a(k,y,function(){function c(){var s=t(this),l=o(s.source),d=o(S(s));return"/"+l+"/"+d}return c}(),{unsafe:!0})},1963:function(I,r,n){"use strict";var e=n(45150),a=n(41028);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},17953:function(I,r,n){"use strict";n(1963)},95309:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(m){return a(this,"a","name",m)}return o}()})},82256:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},49484:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},38931:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},30442:function(I,r,n){"use strict";var e=n(63964),a=n(50233).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},6403:function(I,r,n){"use strict";var e=n(63964),a=n(71138),t=n(27193).f,o=n(10188),m=n(12605),S=n(86213),y=n(16952),k=n(45490),V=n(4493),p=a("".slice),i=Math.min,c=k("endsWith"),s=!V&&!c&&!!function(){var l=t(String.prototype,"endsWith");return l&&!l.writable}();e({target:"String",proto:!0,forced:!s&&!c},{endsWith:function(){function l(d){var f=m(y(this));S(d);var u=arguments.length>1?arguments[1]:void 0,C=f.length,b=u===void 0?C:i(o(u),C),v=m(d);return p(f,b-v.length,b)===v}return l}()})},39308:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},91550:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(m){return a(this,"font","color",m)}return o}()})},75008:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(m){return a(this,"font","size",m)}return o}()})},9867:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(13912),o=RangeError,m=String.fromCharCode,S=String.fromCodePoint,y=a([].join),k=!!S&&S.length!==1;e({target:"String",stat:!0,arity:1,forced:k},{fromCodePoint:function(){function V(p){for(var i=[],c=arguments.length,s=0,l;c>s;){if(l=+arguments[s++],t(l,1114111)!==l)throw new o(l+" is not a valid code point");i[s]=l<65536?m(l):m(((l-=65536)>>10)+55296,l%1024+56320)}return y(i,"")}return V}()})},43673:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(86213),o=n(16952),m=n(12605),S=n(45490),y=a("".indexOf);e({target:"String",proto:!0,forced:!S("includes")},{includes:function(){function k(V){return!!~y(m(o(this)),m(t(V)),arguments.length>1?arguments[1]:void 0)}return k}()})},56027:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},12354:function(I,r,n){"use strict";var e=n(50233).charAt,a=n(12605),t=n(5419),o=n(65574),m=n(5959),S="String Iterator",y=t.set,k=t.getterFor(S);o(String,"String",function(V){y(this,{type:S,string:a(V),index:0})},function(){function V(){var p=k(this),i=p.string,c=p.index,s;return c>=i.length?m(void 0,!0):(s=e(i,c),p.index+=s.length,m(s,!1))}return V}())},50340:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(m){return a(this,"a","href",m)}return o}()})},22515:function(I,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),m=n(10188),S=n(12605),y=n(16952),k=n(78060),V=n(35483),p=n(28340);a("match",function(i,c,s){return[function(){function l(d){var f=y(this),u=o(d)?void 0:k(d,i);return u?e(u,d,f):new RegExp(d)[i](S(f))}return l}(),function(l){var d=t(this),f=S(l),u=s(c,d,f);if(u.done)return u.value;if(!d.global)return p(d,f);var C=d.unicode;d.lastIndex=0;for(var b=[],v=0,h;(h=p(d,f))!==null;){var g=S(h[0]);b[v]=g,g===""&&(d.lastIndex=V(f,m(d.lastIndex),C)),v++}return v===0?null:b}]})},5143:function(I,r,n){"use strict";var e=n(63964),a=n(24051).end,t=n(34125);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}return o}()})},93514:function(I,r,n){"use strict";var e=n(63964),a=n(24051).start,t=n(34125);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}return o}()})},5416:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(57591),o=n(46771),m=n(12605),S=n(24760),y=a([].push),k=a([].join);e({target:"String",stat:!0},{raw:function(){function V(p){var i=t(o(p).raw),c=S(i);if(!c)return"";for(var s=arguments.length,l=[],d=0;;){if(y(l,m(i[d++])),d===c)return k(l,"");d")!=="7"});o("replace",function(w,A,O){var M=T?"$":"$0";return[function(){function P(R,F){var _=c(this),U=k(R)?void 0:l(R,C);return U?a(U,R,_,F):a(A,i(_),R,F)}return P}(),function(P,R){var F=S(this),_=i(P);if(typeof R=="string"&&N(R,M)===-1&&N(R,"$<")===-1){var U=O(A,F,_,R);if(U.done)return U.value}var W=y(R);W||(R=i(R));var $=F.global,G;$&&(G=F.unicode,F.lastIndex=0);for(var oe=[],X;X=f(F,_),!(X===null||(g(oe,X),!$));){var pe=i(X[0]);pe===""&&(F.lastIndex=s(_,p(F.lastIndex),G))}for(var me="",ne=0,re=0;re=ne&&(me+=x(_,ne,ae)+Y,ne=ae+q.length)}return me+x(_,ne)}]},!E||!L||T)},63272:function(I,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),m=n(16952),S=n(5700),y=n(12605),k=n(78060),V=n(28340);a("search",function(p,i,c){return[function(){function s(l){var d=m(this),f=o(l)?void 0:k(l,p);return f?e(f,l,d):new RegExp(l)[p](y(d))}return s}(),function(s){var l=t(this),d=y(s),f=c(i,l,d);if(f.done)return f.value;var u=l.lastIndex;S(u,0)||(l.lastIndex=0);var C=V(l,d);return S(l.lastIndex,u)||(l.lastIndex=u),C===null?-1:C.index}]})},34325:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},39930:function(I,r,n){"use strict";var e=n(91495),a=n(67250),t=n(79942),o=n(30365),m=n(42871),S=n(16952),y=n(28987),k=n(35483),V=n(10188),p=n(12605),i=n(78060),c=n(28340),s=n(62115),l=n(40033),d=s.UNSUPPORTED_Y,f=4294967295,u=Math.min,C=a([].push),b=a("".slice),v=!l(function(){var g=/(?:)/,N=g.exec;g.exec=function(){return N.apply(this,arguments)};var x="ab".split(g);return x.length!==2||x[0]!=="a"||x[1]!=="b"}),h="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;t("split",function(g,N,x){var B="0".split(void 0,0).length?function(L,T){return L===void 0&&T===0?[]:e(N,this,L,T)}:N;return[function(){function L(T,E){var w=S(this),A=m(T)?void 0:i(T,g);return A?e(A,T,w,E):e(B,p(w),T,E)}return L}(),function(L,T){var E=o(this),w=p(L);if(!h){var A=x(B,E,w,T,B!==N);if(A.done)return A.value}var O=y(E,RegExp),M=E.unicode,P=(E.ignoreCase?"i":"")+(E.multiline?"m":"")+(E.unicode?"u":"")+(d?"g":"y"),R=new O(d?"^(?:"+E.source+")":E,P),F=T===void 0?f:T>>>0;if(F===0)return[];if(w.length===0)return c(R,w)===null?[w]:[];for(var _=0,U=0,W=[];U1?arguments[1]:void 0,f.length)),C=m(d);return p(f,u,u+C.length)===C}return l}()})},74498:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},15812:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},57726:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},70604:function(I,r,n){"use strict";n(99159);var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},85404:function(I,r,n){"use strict";var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},99159:function(I,r,n){"use strict";var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},34965:function(I,r,n){"use strict";n(85404);var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},8448:function(I,r,n){"use strict";var e=n(63964),a=n(92648).trim,t=n(90012);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},79250:function(I,r,n){"use strict";var e=n(85889);e("asyncIterator")},49899:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(91495),o=n(67250),m=n(4493),S=n(58310),y=n(52357),k=n(40033),V=n(45299),p=n(21287),i=n(30365),c=n(57591),s=n(767),l=n(12605),d=n(87458),f=n(80674),u=n(18450),C=n(37310),b=n(81644),v=n(89235),h=n(27193),g=n(74595),N=n(24239),x=n(12867),B=n(55938),L=n(73936),T=n(16639),E=n(19417),w=n(79195),A=n(16738),O=n(24697),M=n(55557),P=n(85889),R=n(52360),F=n(84925),_=n(5419),U=n(22603).forEach,W=E("hidden"),$="Symbol",G="prototype",oe=_.set,X=_.getterFor($),pe=Object[G],me=a.Symbol,ne=me&&me[G],re=a.RangeError,q=a.TypeError,ae=a.QObject,J=h.f,Y=g.f,Q=b.f,Z=x.f,te=o([].push),se=T("symbols"),ye=T("op-symbols"),fe=T("wks"),Le=!ae||!ae[G]||!ae[G].findChild,D=function(Ve,ke,H){var ue=J(pe,ke);ue&&delete pe[ke],Y(Ve,ke,H),ue&&Ve!==pe&&Y(pe,ke,ue)},ie=S&&k(function(){return f(Y({},"a",{get:function(){function Pe(){return Y(this,"a",{value:7}).a}return Pe}()})).a!==7})?D:Y,le=function(Ve,ke){var H=se[Ve]=f(ne);return oe(H,{type:$,tag:Ve,description:ke}),S||(H.description=ke),H},Ce=function(){function Pe(Ve,ke,H){Ve===pe&&Ce(ye,ke,H),i(Ve);var ue=s(ke);return i(H),V(se,ue)?(H.enumerable?(V(Ve,W)&&Ve[W][ue]&&(Ve[W][ue]=!1),H=f(H,{enumerable:d(0,!1)})):(V(Ve,W)||Y(Ve,W,d(1,f(null))),Ve[W][ue]=!0),ie(Ve,ue,H)):Y(Ve,ue,H)}return Pe}(),he=function(){function Pe(Ve,ke){i(Ve);var H=c(ke),ue=u(H).concat(_e(H));return U(ue,function(be){(!S||t(Be,H,be))&&Ce(Ve,be,H[be])}),Ve}return Pe}(),ve=function(){function Pe(Ve,ke){return ke===void 0?f(Ve):he(f(Ve),ke)}return Pe}(),Be=function(){function Pe(Ve){var ke=s(Ve),H=t(Z,this,ke);return this===pe&&V(se,ke)&&!V(ye,ke)?!1:H||!V(this,ke)||!V(se,ke)||V(this,W)&&this[W][ke]?H:!0}return Pe}(),we=function(){function Pe(Ve,ke){var H=c(Ve),ue=s(ke);if(!(H===pe&&V(se,ue)&&!V(ye,ue))){var be=J(H,ue);return be&&V(se,ue)&&!(V(H,W)&&H[W][ue])&&(be.enumerable=!0),be}}return Pe}(),Re=function(){function Pe(Ve){var ke=Q(c(Ve)),H=[];return U(ke,function(ue){!V(se,ue)&&!V(w,ue)&&te(H,ue)}),H}return Pe}(),_e=function(Ve){var ke=Ve===pe,H=Q(ke?ye:c(Ve)),ue=[];return U(H,function(be){V(se,be)&&(!ke||V(pe,be))&&te(ue,se[be])}),ue};y||(me=function(){function Pe(){if(p(ne,this))throw new q("Symbol is not a constructor");var Ve=!arguments.length||arguments[0]===void 0?void 0:l(arguments[0]),ke=A(Ve),H=function(){function ue(be){var Se=this===void 0?a:this;Se===pe&&t(H,ye,be),V(Se,W)&&V(Se[W],ke)&&(Se[W][ke]=!1);var Ie=d(1,be);try{ie(Se,ke,Ie)}catch(Ee){if(!(Ee instanceof re))throw Ee;D(Se,ke,Ie)}}return ue}();return S&&Le&&ie(pe,ke,{configurable:!0,set:H}),le(ke,Ve)}return Pe}(),ne=me[G],B(ne,"toString",function(){function Pe(){return X(this).tag}return Pe}()),B(me,"withoutSetter",function(Pe){return le(A(Pe),Pe)}),x.f=Be,g.f=Ce,N.f=he,h.f=we,C.f=b.f=Re,v.f=_e,M.f=function(Pe){return le(O(Pe),Pe)},S&&(L(ne,"description",{configurable:!0,get:function(){function Pe(){return X(this).description}return Pe}()}),m||B(pe,"propertyIsEnumerable",Be,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!y,sham:!y},{Symbol:me}),U(u(fe),function(Pe){P(Pe)}),e({target:$,stat:!0,forced:!y},{useSetter:function(){function Pe(){Le=!0}return Pe}(),useSimple:function(){function Pe(){Le=!1}return Pe}()}),e({target:"Object",stat:!0,forced:!y,sham:!S},{create:ve,defineProperty:Ce,defineProperties:he,getOwnPropertyDescriptor:we}),e({target:"Object",stat:!0,forced:!y},{getOwnPropertyNames:Re}),R(),F(me,$),w[W]=!0},10933:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(16210),o=n(67250),m=n(45299),S=n(55747),y=n(21287),k=n(12605),V=n(73936),p=n(5774),i=t.Symbol,c=i&&i.prototype;if(a&&S(i)&&(!("description"in c)||i().description!==void 0)){var s={},l=function(){function h(){var g=arguments.length<1||arguments[0]===void 0?void 0:k(arguments[0]),N=y(c,this)?new i(g):g===void 0?i():i(g);return g===""&&(s[N]=!0),N}return h}();p(l,i),l.prototype=c,c.constructor=l;var d=String(i("description detection"))==="Symbol(description detection)",f=o(c.valueOf),u=o(c.toString),C=/^Symbol\((.*)\)[^)]+$/,b=o("".replace),v=o("".slice);V(c,"description",{configurable:!0,get:function(){function h(){var g=f(this);if(m(s,g))return"";var N=u(g),x=d?v(N,7,-1):b(N,C,"$1");return x===""?void 0:x}return h}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:l})}},30828:function(I,r,n){"use strict";var e=n(63964),a=n(4009),t=n(45299),o=n(12605),m=n(16639),S=n(66570),y=m("string-to-symbol-registry"),k=m("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!S},{for:function(){function V(p){var i=o(p);if(t(y,i))return y[i];var c=a("Symbol")(i);return y[i]=c,k[c]=i,c}return V}()})},53795:function(I,r,n){"use strict";var e=n(85889);e("hasInstance")},87806:function(I,r,n){"use strict";var e=n(85889);e("isConcatSpreadable")},64677:function(I,r,n){"use strict";var e=n(85889);e("iterator")},33313:function(I,r,n){"use strict";n(49899),n(30828),n(6862),n(53008),n(28603)},6862:function(I,r,n){"use strict";var e=n(63964),a=n(45299),t=n(71399),o=n(89393),m=n(16639),S=n(66570),y=m("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!S},{keyFor:function(){function k(V){if(!t(V))throw new TypeError(o(V)+" is not a symbol");if(a(y,V))return y[V]}return k}()})},48058:function(I,r,n){"use strict";var e=n(85889);e("match")},51583:function(I,r,n){"use strict";var e=n(85889);e("replace")},82403:function(I,r,n){"use strict";var e=n(85889);e("search")},34265:function(I,r,n){"use strict";var e=n(85889);e("species")},3295:function(I,r,n){"use strict";var e=n(85889);e("split")},1078:function(I,r,n){"use strict";var e=n(85889),a=n(52360);e("toPrimitive"),a()},63207:function(I,r,n){"use strict";var e=n(4009),a=n(85889),t=n(84925);a("toStringTag"),t(e("Symbol"),"Symbol")},80520:function(I,r,n){"use strict";var e=n(85889);e("unscopables")},99872:function(I,r,n){"use strict";var e=n(67250),a=n(4246),t=n(71447),o=e(t),m=a.aTypedArray,S=a.exportTypedArrayMethod;S("copyWithin",function(){function y(k,V){return o(m(this),k,V,arguments.length>2?arguments[2]:void 0)}return y}())},73364:function(I,r,n){"use strict";var e=n(4246),a=n(22603).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function m(S){return a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},58166:function(I,r,n){"use strict";var e=n(4246),a=n(88471),t=n(61484),o=n(2281),m=n(91495),S=n(67250),y=n(40033),k=e.aTypedArray,V=e.exportTypedArrayMethod,p=S("".slice),i=y(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function s(){return c++}return s}()}),c!==1});V("fill",function(){function c(s){var l=arguments.length;k(this);var d=p(o(this),0,3)==="Big"?t(s):+s;return m(a,this,d,l>1?arguments[1]:void 0,l>2?arguments[2]:void 0)}return c}(),i)},23793:function(I,r,n){"use strict";var e=n(4246),a=n(22603).filter,t=n(45399),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("filter",function(){function S(y){var k=a(o(this),y,arguments.length>1?arguments[1]:void 0);return t(this,k)}return S}())},13917:function(I,r,n){"use strict";var e=n(4246),a=n(22603).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function m(S){return a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},43820:function(I,r,n){"use strict";var e=n(4246),a=n(22603).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function m(S){return a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},80756:function(I,r,n){"use strict";var e=n(80185);e("Float32",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},70567:function(I,r,n){"use strict";var e=n(80185);e("Float64",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},19852:function(I,r,n){"use strict";var e=n(4246),a=n(22603).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function m(S){a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},40379:function(I,r,n){"use strict";var e=n(86563),a=n(4246).exportTypedArrayStaticMethod,t=n(3805);a("from",t,e)},92770:function(I,r,n){"use strict";var e=n(4246),a=n(14211).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function m(S){return a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},81069:function(I,r,n){"use strict";var e=n(4246),a=n(14211).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function m(S){return a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},60037:function(I,r,n){"use strict";var e=n(80185);e("Int16",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},44195:function(I,r,n){"use strict";var e=n(80185);e("Int32",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},66756:function(I,r,n){"use strict";var e=n(80185);e("Int8",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},63689:function(I,r,n){"use strict";var e=n(16210),a=n(40033),t=n(67250),o=n(4246),m=n(34570),S=n(24697),y=S("iterator"),k=e.Uint8Array,V=t(m.values),p=t(m.keys),i=t(m.entries),c=o.aTypedArray,s=o.exportTypedArrayMethod,l=k&&k.prototype,d=!a(function(){l[y].call([1])}),f=!!l&&l.values&&l[y]===l.values&&l.values.name==="values",u=function(){function C(){return V(c(this))}return C}();s("entries",function(){function C(){return i(c(this))}return C}(),d),s("keys",function(){function C(){return p(c(this))}return C}(),d),s("values",u,d||!f,{name:"values"}),s(y,u,d||!f,{name:"values"})},5659:function(I,r,n){"use strict";var e=n(4246),a=n(67250),t=e.aTypedArray,o=e.exportTypedArrayMethod,m=a([].join);o("join",function(){function S(y){return m(t(this),y)}return S}())},25014:function(I,r,n){"use strict";var e=n(4246),a=n(61267),t=n(1325),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("lastIndexOf",function(){function S(y){var k=arguments.length;return a(t,o(this),k>1?[y,arguments[1]]:[y])}return S}())},32189:function(I,r,n){"use strict";var e=n(4246),a=n(22603).map,t=n(31082),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("map",function(){function S(y){return a(o(this),y,arguments.length>1?arguments[1]:void 0,function(k,V){return new(t(k))(V)})}return S}())},23030:function(I,r,n){"use strict";var e=n(4246),a=n(86563),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function m(){for(var S=0,y=arguments.length,k=new(t(this))(y);y>S;)k[S]=arguments[S++];return k}return m}(),a)},49110:function(I,r,n){"use strict";var e=n(4246),a=n(56844).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function m(S){var y=arguments.length;return a(t(this),S,y,y>1?arguments[1]:void 0)}return m}())},24309:function(I,r,n){"use strict";var e=n(4246),a=n(56844).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function m(S){var y=arguments.length;return a(t(this),S,y,y>1?arguments[1]:void 0)}return m}())},56445:function(I,r,n){"use strict";var e=n(4246),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function m(){for(var S=this,y=a(S).length,k=o(y/2),V=0,p;V1?arguments[1]:void 0,1),b=S(u);if(l)return a(i,this,b,C);var v=this.length,h=o(b),g=0;if(h+C>v)throw new k("Wrong length");for(;gs;)d[s]=i[s++];return d}return k}(),y)},88739:function(I,r,n){"use strict";var e=n(4246),a=n(22603).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function m(S){return a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},60415:function(I,r,n){"use strict";var e=n(16210),a=n(71138),t=n(40033),o=n(10320),m=n(90274),S=n(4246),y=n(50503),k=n(79725),V=n(83141),p=n(44981),i=S.aTypedArray,c=S.exportTypedArrayMethod,s=e.Uint16Array,l=s&&a(s.prototype.sort),d=!!l&&!(t(function(){l(new s(2),null)})&&t(function(){l(new s(2),{})})),f=!!l&&!t(function(){if(V)return V<74;if(y)return y<67;if(k)return!0;if(p)return p<602;var C=new s(516),b=Array(516),v,h;for(v=0;v<516;v++)h=v%4,C[v]=515-v,b[v]=v-2*h+3;for(l(C,function(g,N){return(g/4|0)-(N/4|0)}),v=0;v<516;v++)if(C[v]!==b[v])return!0}),u=function(b){return function(v,h){return b!==void 0?+b(v,h)||0:h!==h?-1:v!==v?1:v===0&&h===0?1/v>0&&1/h<0?1:-1:v>h}};c("sort",function(){function C(b){return b!==void 0&&o(b),f?l(this,b):m(i(this),u(b))}return C}(),!f||d)},72532:function(I,r,n){"use strict";var e=n(4246),a=n(10188),t=n(13912),o=n(31082),m=e.aTypedArray,S=e.exportTypedArrayMethod;S("subarray",function(){function y(k,V){var p=m(this),i=p.length,c=t(k,i),s=o(p);return new s(p.buffer,p.byteOffset+c*p.BYTES_PER_ELEMENT,a((V===void 0?i:t(V,i))-c))}return y}())},62207:function(I,r,n){"use strict";var e=n(16210),a=n(61267),t=n(4246),o=n(40033),m=n(54602),S=e.Int8Array,y=t.aTypedArray,k=t.exportTypedArrayMethod,V=[].toLocaleString,p=!!S&&o(function(){V.call(new S(1))}),i=o(function(){return[1,2].toLocaleString()!==new S([1,2]).toLocaleString()})||!o(function(){S.prototype.toLocaleString.call([1,2])});k("toLocaleString",function(){function c(){return a(V,p?m(y(this)):y(this),m(arguments))}return c}(),i)},906:function(I,r,n){"use strict";var e=n(4246).exportTypedArrayMethod,a=n(40033),t=n(16210),o=n(67250),m=t.Uint8Array,S=m&&m.prototype||{},y=[].toString,k=o([].join);a(function(){y.call({})})&&(y=function(){function p(){return k(this)}return p}());var V=S.toString!==y;e("toString",y,V)},78824:function(I,r,n){"use strict";var e=n(80185);e("Uint16",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},72846:function(I,r,n){"use strict";var e=n(80185);e("Uint32",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},24575:function(I,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},71968:function(I,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()},!0)},80040:function(I,r,n){"use strict";var e=n(50730),a=n(16210),t=n(67250),o=n(30145),m=n(81969),S=n(45150),y=n(39895),k=n(77568),V=n(5419).enforce,p=n(40033),i=n(21820),c=Object,s=Array.isArray,l=c.isExtensible,d=c.isFrozen,f=c.isSealed,u=c.freeze,C=c.seal,b=!a.ActiveXObject&&"ActiveXObject"in a,v,h=function(A){return function(){function O(){return A(this,arguments.length?arguments[0]:void 0)}return O}()},g=S("WeakMap",h,y),N=g.prototype,x=t(N.set),B=function(){return e&&p(function(){var A=u([]);return x(new g,A,1),!d(A)})};if(i)if(b){v=y.getConstructor(h,"WeakMap",!0),m.enable();var L=t(N.delete),T=t(N.has),E=t(N.get);o(N,{delete:function(){function w(A){if(k(A)&&!l(A)){var O=V(this);return O.frozen||(O.frozen=new v),L(this,A)||O.frozen.delete(A)}return L(this,A)}return w}(),has:function(){function w(A){if(k(A)&&!l(A)){var O=V(this);return O.frozen||(O.frozen=new v),T(this,A)||O.frozen.has(A)}return T(this,A)}return w}(),get:function(){function w(A){if(k(A)&&!l(A)){var O=V(this);return O.frozen||(O.frozen=new v),T(this,A)?E(this,A):O.frozen.get(A)}return E(this,A)}return w}(),set:function(){function w(A,O){if(k(A)&&!l(A)){var M=V(this);M.frozen||(M.frozen=new v),T(this,A)?x(this,A,O):M.frozen.set(A,O)}else x(this,A,O);return this}return w}()})}else B()&&o(N,{set:function(){function w(A,O){var M;return s(A)&&(d(A)?M=u:f(A)&&(M=C)),x(this,A,O),M&&M(A),this}return w}()})},90846:function(I,r,n){"use strict";n(80040)},67042:function(I,r,n){"use strict";var e=n(45150),a=n(39895);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},40348:function(I,r,n){"use strict";n(67042)},5606:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(60375).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},83006:function(I,r,n){"use strict";n(5606),n(27807)},25764:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(37713),o=n(10320),m=n(24986),S=n(40033),y=n(58310),k=S(function(){return y&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:k},{queueMicrotask:function(){function V(p){m(arguments.length,1),t(o(p))}return V}()})},27807:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(60375).set,o=n(78362),m=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==m},{setImmediate:m})},45569:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(78362),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},5213:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(78362),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},69401:function(I,r,n){"use strict";n(45569),n(5213)},7435:function(I){"use strict";/** + */var t=r.BoxWithSampleText=function(){function o(m){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},m,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},67160:function(){},23542:function(){},30386:function(){},98996:function(){},41639:function(){},50578:function(){},4444:function(){},77870:function(){},23632:function(){},24226:function(){},39108:function(){},21039:function(){},51862:function(){},56856:function(){},63489:function(){},1965:function(){},1272:function(){},74757:function(){},11714:function(){},73492:function(){},49641:function(){},17570:function(){},61858:function(){},73358:function(){},32882:function(){},70752:function(I,r,n){var e={"./pai_advsecrecords.js":96572,"./pai_atmosphere.js":80818,"./pai_bioscan.js":23903,"./pai_camera_bug.js":79592,"./pai_directives.js":64988,"./pai_doorjack.js":13813,"./pai_encoder.js":43816,"./pai_gps_module.js":88895,"./pai_main_menu.js":66025,"./pai_manifest.js":2983,"./pai_medrecords.js":40758,"./pai_messenger.js":98599,"./pai_radio.js":50775,"./pai_sec_chem.js":19873,"./pai_secrecords.js":48623,"./pai_signaler.js":47297};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=70752},59395:function(I,r,n){var e={"./pda_atmos_scan.js":78532,"./pda_janitor.js":40253,"./pda_main_menu.js":58293,"./pda_manifest.js":58059,"./pda_medical.js":18147,"./pda_messenger.js":77595,"./pda_mule.js":24635,"./pda_notes.js":97085,"./pda_power.js":57513,"./pda_request_console.js":57635,"./pda_secbot.js":99808,"./pda_security.js":77168,"./pda_signaler.js":21773,"./pda_status_display.js":81857,"./pda_supplyrecords.js":70287};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=59395},32054:function(I,r,n){var e={"./AICard":1090,"./AICard.js":1090,"./AIFixer":39454,"./AIFixer.js":39454,"./APC":88422,"./APC.js":88422,"./ATM":99660,"./ATM.js":99660,"./AccountsUplinkTerminal":86423,"./AccountsUplinkTerminal.js":86423,"./AgentCard":79571,"./AgentCard.js":79571,"./AiAirlock":56793,"./AiAirlock.js":56793,"./AirAlarm":72475,"./AirAlarm.js":72475,"./AirlockAccessController":12333,"./AirlockAccessController.js":12333,"./AirlockElectronics":28736,"./AirlockElectronics.js":28736,"./AlertModal":47365,"./AlertModal.tsx":47365,"./AppearanceChanger":71824,"./AppearanceChanger.js":71824,"./AtmosAlertConsole":72285,"./AtmosAlertConsole.js":72285,"./AtmosControl":65805,"./AtmosControl.js":65805,"./AtmosFilter":87816,"./AtmosFilter.js":87816,"./AtmosMixer":52977,"./AtmosMixer.js":52977,"./AtmosPump":11748,"./AtmosPump.js":11748,"./AutoDoc":76511,"./AutoDoc.js":76511,"./Autolathe":59179,"./Autolathe.js":59179,"./Biogenerator":64273,"./Biogenerator.js":64273,"./BlueSpaceArtilleryControl":18621,"./BlueSpaceArtilleryControl.js":18621,"./BluespaceRiftScanner":13995,"./BluespaceRiftScanner.js":13995,"./BluespaceRiftServer":25530,"./BluespaceRiftServer.js":25530,"./BluespaceTap":27629,"./BluespaceTap.js":27629,"./BodyScanner":33758,"./BodyScanner.js":33758,"./BorgPanel":42570,"./BorgPanel.js":42570,"./BotClean":20464,"./BotClean.js":20464,"./BotSecurity":74439,"./BotSecurity.js":74439,"./BrigCells":10833,"./BrigCells.js":10833,"./BrigTimer":45761,"./BrigTimer.js":45761,"./CameraConsole":26300,"./CameraConsole.js":26300,"./Canister":52927,"./Canister.js":52927,"./CardComputer":51793,"./CardComputer.js":51793,"./CargoConsole":64083,"./CargoConsole.js":64083,"./CentcomPodLauncher":65875,"./CentcomPodLauncher/":65875,"./CentcomPodLauncher/DelayHelper":22794,"./CentcomPodLauncher/DelayHelper.tsx":22794,"./CentcomPodLauncher/PodBays":23749,"./CentcomPodLauncher/PodBays.tsx":23749,"./CentcomPodLauncher/PodLaunch":8507,"./CentcomPodLauncher/PodLaunch.tsx":8507,"./CentcomPodLauncher/PodSounds":15802,"./CentcomPodLauncher/PodSounds.tsx":15802,"./CentcomPodLauncher/PodStatusPage":94577,"./CentcomPodLauncher/PodStatusPage.tsx":94577,"./CentcomPodLauncher/PresetsPage":30590,"./CentcomPodLauncher/PresetsPage.tsx":30590,"./CentcomPodLauncher/ReverseMenu":72932,"./CentcomPodLauncher/ReverseMenu.tsx":72932,"./CentcomPodLauncher/StylePage":68569,"./CentcomPodLauncher/StylePage.tsx":68569,"./CentcomPodLauncher/Tabs":8179,"./CentcomPodLauncher/Tabs.tsx":8179,"./CentcomPodLauncher/Timing":18885,"./CentcomPodLauncher/Timing.tsx":18885,"./CentcomPodLauncher/ViewTabHolder":76417,"./CentcomPodLauncher/ViewTabHolder.tsx":76417,"./CentcomPodLauncher/constants":7144,"./CentcomPodLauncher/constants.ts":7144,"./CentcomPodLauncher/hooks":20345,"./CentcomPodLauncher/hooks.ts":20345,"./CentcomPodLauncher/index":65875,"./CentcomPodLauncher/index.tsx":65875,"./CentcomPodLauncher/types":16780,"./CentcomPodLauncher/types.ts":16780,"./Changelog":12226,"./Changelog.js":12226,"./CheckboxListInputModal":91360,"./CheckboxListInputModal.tsx":91360,"./ChemDispenser":36108,"./ChemDispenser.js":36108,"./ChemHeater":13146,"./ChemHeater.js":13146,"./ChemMaster":56541,"./ChemMaster.tsx":56541,"./CloningConsole":37173,"./CloningConsole.js":37173,"./CoinMint":18259,"./CoinMint.tsx":18259,"./ColorPickerModal":93858,"./ColorPickerModal.tsx":93858,"./CommunicationsComputer":63818,"./CommunicationsComputer.js":63818,"./Contractor":21813,"./Contractor.js":21813,"./ConveyorSwitch":54151,"./ConveyorSwitch.js":54151,"./CrewMonitor":73169,"./CrewMonitor.js":73169,"./Cryo":63987,"./Cryo.js":63987,"./CryopodConsole":86099,"./CryopodConsole.js":86099,"./Customat":94848,"./Customat.js":94848,"./DNAModifier":12692,"./DNAModifier.js":12692,"./DestinationTagger":41074,"./DestinationTagger.js":41074,"./DisposalBin":46500,"./DisposalBin.js":46500,"./DnaVault":33233,"./DnaVault.js":33233,"./EFTPOS":17263,"./EFTPOS.js":17263,"./ERTManager":76382,"./ERTManager.js":76382,"./Electropack":82565,"./Electropack.js":82565,"./EvolutionMenu":36730,"./EvolutionMenu.js":36730,"./ExosuitFabricator":17370,"./ExosuitFabricator.js":17370,"./ExternalAirlockController":97086,"./ExternalAirlockController.js":97086,"./FaxMachine":96142,"./FaxMachine.js":96142,"./FloorPainter":83767,"./FloorPainter.js":83767,"./GPS":53424,"./GPS.js":53424,"./GasAnalyzer":68703,"./GasAnalyzer.js":68703,"./GasFreezer":27546,"./GasFreezer.js":27546,"./GeneModder":89124,"./GeneModder.js":89124,"./GenericCrewManifest":73053,"./GenericCrewManifest.js":73053,"./GhostHudPanel":42914,"./GhostHudPanel.js":42914,"./GlandDispenser":25825,"./GlandDispenser.js":25825,"./HandheldChemDispenser":67834,"./HandheldChemDispenser.js":67834,"./ImplantPad":75926,"./ImplantPad.js":75926,"./Instrument":25471,"./Instrument.js":25471,"./ItemPixelShift":65021,"./ItemPixelShift.js":65021,"./KeyComboModal":13618,"./KeyComboModal.tsx":13618,"./KeycardAuth":35655,"./KeycardAuth.js":35655,"./LaborClaimConsole":40951,"./LaborClaimConsole.js":40951,"./LawManager":9525,"./LawManager.js":9525,"./ListInputModal":90447,"./ListInputModal.tsx":90447,"./Loadout":26826,"./Loadout.tsx":26826,"./MatrixMathTester":88832,"./MatrixMathTester.tsx":88832,"./MechBayConsole":72106,"./MechBayConsole.js":72106,"./MechaControlConsole":7466,"./MechaControlConsole.js":7466,"./MedicalRecords":79625,"./MedicalRecords.js":79625,"./Mimicking":52306,"./Mimicking.js":52306,"./Minesweeper":66238,"./Minesweeper.js":66238,"./MiniGamesMenu":21385,"./MiniGamesMenu.js":21385,"./MiningVendor":87684,"./MiningVendor.js":87684,"./Multitool":97955,"./Multitool.js":97955,"./Newscaster":64713,"./Newscaster.js":64713,"./NinjaBloodScan":97351,"./NinjaBloodScan.js":97351,"./NinjaMindScan":32989,"./NinjaMindScan.js":32989,"./NuclearBomb":41166,"./NuclearBomb.js":41166,"./NumberInputModal":52416,"./NumberInputModal.tsx":52416,"./OperatingComputer":1218,"./OperatingComputer.js":1218,"./Orbit":46892,"./Orbit.js":46892,"./OreRedemption":15421,"./OreRedemption.js":15421,"./PAI":30373,"./PAI.js":30373,"./PDA":85175,"./PDA.js":85175,"./PDAPainter":38280,"./PDAPainter.js":38280,"./Pacman":68654,"./Pacman.js":68654,"./PersonalCrafting":33388,"./PersonalCrafting.js":33388,"./Photocopier":56150,"./Photocopier.js":56150,"./PodTracking":94158,"./PodTracking.js":94158,"./PollListPanel":70857,"./PollListPanel.js":70857,"./PollManagement":45736,"./PollManagement.js":45736,"./PollOptionPanel":80378,"./PollOptionPanel.js":80378,"./PoolController":84676,"./PoolController.js":84676,"./PortablePump":57003,"./PortablePump.js":57003,"./PortableScrubber":70069,"./PortableScrubber.js":70069,"./PortableTurret":59955,"./PortableTurret.js":59955,"./PowerMonitor":61631,"./PowerMonitor.js":61631,"./PrisonerImplantManager":50992,"./PrisonerImplantManager.js":50992,"./QuestConsole":7485,"./QuestConsole.js":7485,"./RCD":94813,"./RCD.js":94813,"./RPD":18738,"./RPD.js":18738,"./Radio":80299,"./Radio.js":80299,"./RankedListInputModal":14846,"./RankedListInputModal.tsx":14846,"./ReagentsEditor":58262,"./ReagentsEditor.tsx":58262,"./RequestConsole":25472,"./RequestConsole.js":25472,"./RequestManager":3786,"./RequestManager.js":3786,"./RndConsole":16475,"./RndConsole.js":16475,"./RndConsoleComponents":13472,"./RndConsoleComponents/":13472,"./RndConsoleComponents/CurrentLevels":93098,"./RndConsoleComponents/CurrentLevels.js":93098,"./RndConsoleComponents/DataDiskMenu":19192,"./RndConsoleComponents/DataDiskMenu.js":19192,"./RndConsoleComponents/DeconstructionMenu":20887,"./RndConsoleComponents/DeconstructionMenu.js":20887,"./RndConsoleComponents/LatheCategory":10666,"./RndConsoleComponents/LatheCategory.js":10666,"./RndConsoleComponents/LatheChemicalStorage":52285,"./RndConsoleComponents/LatheChemicalStorage.js":52285,"./RndConsoleComponents/LatheMainMenu":71964,"./RndConsoleComponents/LatheMainMenu.js":71964,"./RndConsoleComponents/LatheMaterialStorage":17906,"./RndConsoleComponents/LatheMaterialStorage.js":17906,"./RndConsoleComponents/LatheMaterials":83706,"./RndConsoleComponents/LatheMaterials.js":83706,"./RndConsoleComponents/LatheMenu":76749,"./RndConsoleComponents/LatheMenu.js":76749,"./RndConsoleComponents/LatheSearch":74698,"./RndConsoleComponents/LatheSearch.js":74698,"./RndConsoleComponents/MainMenu":17180,"./RndConsoleComponents/MainMenu.js":17180,"./RndConsoleComponents/RndNavButton":63459,"./RndConsoleComponents/RndNavButton.js":63459,"./RndConsoleComponents/RndNavbar":94942,"./RndConsoleComponents/RndNavbar.js":94942,"./RndConsoleComponents/RndRoute":12059,"./RndConsoleComponents/RndRoute.js":12059,"./RndConsoleComponents/SettingsMenu":52580,"./RndConsoleComponents/SettingsMenu.js":52580,"./RndConsoleComponents/index":13472,"./RndConsoleComponents/index.js":13472,"./RoboQuest":40026,"./RoboQuest.js":40026,"./RobotSelfDiagnosis":26109,"./RobotSelfDiagnosis.js":26109,"./RoboticsControlConsole":97997,"./RoboticsControlConsole.js":97997,"./Safe":54431,"./Safe.js":54431,"./SatelliteControl":29740,"./SatelliteControl.js":29740,"./SecureStorage":44162,"./SecureStorage.js":44162,"./SecurityRecords":6272,"./SecurityRecords.js":6272,"./SeedExtractor":5099,"./SeedExtractor.js":5099,"./ShuttleConsole":2916,"./ShuttleConsole.js":2916,"./ShuttleManipulator":39401,"./ShuttleManipulator.js":39401,"./Sleeper":88284,"./Sleeper.js":88284,"./SlotMachine":21597,"./SlotMachine.js":21597,"./Smartfridge":46348,"./Smartfridge.js":46348,"./Smes":86162,"./Smes.js":86162,"./SolarControl":63584,"./SolarControl.js":63584,"./SpawnersMenu":38096,"./SpawnersMenu.js":38096,"./SpiderOS":7957,"./SpiderOS.js":7957,"./StationAlertConsole":38307,"./StationAlertConsole.js":38307,"./StripMenu":39409,"./StripMenu.tsx":39409,"./SuitStorage":69514,"./SuitStorage.js":69514,"./SupermatterMonitor":15022,"./SupermatterMonitor.js":15022,"./SyndicateComputerSimple":46029,"./SyndicateComputerSimple.js":46029,"./SyndieCargoConsole":99279,"./SyndieCargoConsole.js":99279,"./TTSSeedsExplorer":44852,"./TTSSeedsExplorer.js":44852,"./TachyonArray":56441,"./TachyonArray.js":56441,"./Tank":1754,"./Tank.js":1754,"./TankDispenser":7579,"./TankDispenser.js":7579,"./TcommsCore":16136,"./TcommsCore.js":16136,"./TcommsRelay":88046,"./TcommsRelay.js":88046,"./Teleporter":20802,"./Teleporter.js":20802,"./TextInputModal":24410,"./TextInputModal.tsx":24410,"./ThiefKit":69566,"./ThiefKit.js":69566,"./TransferValve":20035,"./TransferValve.js":20035,"./Uplink":52847,"./Uplink.js":52847,"./UploadPanel":80949,"./UploadPanel.js":80949,"./VampireSpecMenu":8946,"./VampireSpecMenu.js":8946,"./VampireTrophiesStatus":45770,"./VampireTrophiesStatus.js":45770,"./Vending":12261,"./Vending.js":12261,"./VolumeMixer":68971,"./VolumeMixer.js":68971,"./VotePanel":2510,"./VotePanel.js":2510,"./Wires":30138,"./Wires.js":30138,"./Workshop":30995,"./Workshop.js":30995,"./common/AccessList":49148,"./common/AccessList.js":49148,"./common/AtmosScan":26991,"./common/AtmosScan.js":26991,"./common/BeakerContents":85870,"./common/BeakerContents.js":85870,"./common/ComplexModal":3939,"./common/ComplexModal.js":3939,"./common/CrewManifest":41874,"./common/CrewManifest.js":41874,"./common/InputButtons":19203,"./common/InputButtons.tsx":19203,"./common/InterfaceLockNoticeBox":195,"./common/InterfaceLockNoticeBox.js":195,"./common/Loader":51057,"./common/Loader.tsx":51057,"./common/LoginInfo":321,"./common/LoginInfo.js":321,"./common/LoginScreen":5485,"./common/LoginScreen.js":5485,"./common/Operating":62411,"./common/Operating.js":62411,"./common/Signaler":13545,"./common/Signaler.js":13545,"./common/SimpleRecords":41984,"./common/SimpleRecords.js":41984,"./common/TemporaryNotice":22091,"./common/TemporaryNotice.js":22091,"./manually-routed/KitchenSink":25443,"./manually-routed/KitchenSink.js":25443,"./pai/pai_advsecrecords":96572,"./pai/pai_advsecrecords.js":96572,"./pai/pai_atmosphere":80818,"./pai/pai_atmosphere.js":80818,"./pai/pai_bioscan":23903,"./pai/pai_bioscan.js":23903,"./pai/pai_camera_bug":79592,"./pai/pai_camera_bug.js":79592,"./pai/pai_directives":64988,"./pai/pai_directives.js":64988,"./pai/pai_doorjack":13813,"./pai/pai_doorjack.js":13813,"./pai/pai_encoder":43816,"./pai/pai_encoder.js":43816,"./pai/pai_gps_module":88895,"./pai/pai_gps_module.js":88895,"./pai/pai_main_menu":66025,"./pai/pai_main_menu.js":66025,"./pai/pai_manifest":2983,"./pai/pai_manifest.js":2983,"./pai/pai_medrecords":40758,"./pai/pai_medrecords.js":40758,"./pai/pai_messenger":98599,"./pai/pai_messenger.js":98599,"./pai/pai_radio":50775,"./pai/pai_radio.js":50775,"./pai/pai_sec_chem":19873,"./pai/pai_sec_chem.js":19873,"./pai/pai_secrecords":48623,"./pai/pai_secrecords.js":48623,"./pai/pai_signaler":47297,"./pai/pai_signaler.js":47297,"./pda/pda_atmos_scan":78532,"./pda/pda_atmos_scan.js":78532,"./pda/pda_janitor":40253,"./pda/pda_janitor.js":40253,"./pda/pda_main_menu":58293,"./pda/pda_main_menu.js":58293,"./pda/pda_manifest":58059,"./pda/pda_manifest.js":58059,"./pda/pda_medical":18147,"./pda/pda_medical.js":18147,"./pda/pda_messenger":77595,"./pda/pda_messenger.js":77595,"./pda/pda_mule":24635,"./pda/pda_mule.js":24635,"./pda/pda_notes":97085,"./pda/pda_notes.js":97085,"./pda/pda_power":57513,"./pda/pda_power.js":57513,"./pda/pda_request_console":57635,"./pda/pda_request_console.js":57635,"./pda/pda_secbot":99808,"./pda/pda_secbot.js":99808,"./pda/pda_security":77168,"./pda/pda_security.js":77168,"./pda/pda_signaler":21773,"./pda/pda_signaler.js":21773,"./pda/pda_status_display":81857,"./pda/pda_status_display.js":81857,"./pda/pda_supplyrecords":70287,"./pda/pda_supplyrecords.js":70287};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=32054},4085:function(I,r,n){var e={"./Blink.stories.js":51364,"./BlockQuote.stories.js":32453,"./Box.stories.js":83531,"./Button.stories.js":74198,"./ByondUi.stories.js":51956,"./Collapsible.stories.js":17466,"./Flex.stories.js":89241,"./ImageButton.stories.js":48779,"./Input.stories.js":21394,"./Popper.stories.js":43932,"./ProgressBar.stories.js":33270,"./Stack.stories.js":77766,"./Storage.stories.js":30187,"./Tabs.stories.js":46554,"./Themes.stories.js":53276,"./Tooltip.stories.js":28717};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=4085},10320:function(I,r,n){"use strict";var e=n(55747),a=n(89393),t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},32606:function(I,r,n){"use strict";var e=n(1031),a=n(89393),t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},35908:function(I,r,n){"use strict";var e=n(45015),a=String,t=TypeError;I.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},80575:function(I,r,n){"use strict";var e=n(24697),a=n(80674),t=n(74595).f,o=e("unscopables"),m=Array.prototype;m[o]===void 0&&t(m,o,{configurable:!0,value:a(null)}),I.exports=function(S){m[o][S]=!0}},35483:function(I,r,n){"use strict";var e=n(50233).charAt;I.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},60077:function(I,r,n){"use strict";var e=n(21287),a=TypeError;I.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},30365:function(I,r,n){"use strict";var e=n(77568),a=String,t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},70377:function(I){"use strict";I.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},3782:function(I,r,n){"use strict";var e=n(40033);I.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},4246:function(I,r,n){"use strict";var e=n(70377),a=n(58310),t=n(16210),o=n(55747),m=n(77568),S=n(45299),y=n(2281),k=n(89393),V=n(37909),p=n(55938),i=n(73936),c=n(21287),s=n(36917),u=n(76649),d=n(24697),f=n(16738),l=n(5419),C=l.enforce,b=l.get,v=t.Int8Array,h=v&&v.prototype,g=t.Uint8ClampedArray,N=g&&g.prototype,x=v&&s(v),B=h&&s(h),L=Object.prototype,T=t.TypeError,E=d("toStringTag"),w=f("TYPED_ARRAY_TAG"),A="TypedArrayConstructor",O=e&&!!u&&y(t.opera)!=="Opera",M=!1,P,R,F,_={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},W=function(){function oe(re){if(!m(re))return!1;var q=y(re);return q==="DataView"||S(_,q)||S(U,q)}return oe}(),$=function(re){var q=s(re);if(m(q)){var ae=b(q);return ae&&S(ae,A)?ae[A]:$(q)}},Y=function(re){if(!m(re))return!1;var q=y(re);return S(_,q)||S(U,q)},ne=function(re){if(Y(re))return re;throw new T("Target is not a typed array")},G=function(re){if(o(re)&&(!u||c(x,re)))return re;throw new T(k(re)+" is not a typed array constructor")},le=function(re,q,ae,J){if(a){if(ae)for(var X in _){var Q=t[X];if(Q&&S(Q.prototype,re))try{delete Q.prototype[re]}catch(Z){try{Q.prototype[re]=q}catch(te){}}}(!B[re]||ae)&&p(B,re,ae?q:O&&h[re]||q,J)}},de=function(re,q,ae){var J,X;if(a){if(u){if(ae){for(J in _)if(X=t[J],X&&S(X,re))try{delete X[re]}catch(Q){}}if(!x[re]||ae)try{return p(x,re,ae?q:O&&x[re]||q)}catch(Q){}else return}for(J in _)X=t[J],X&&(!X[re]||ae)&&p(X,re,q)}};for(P in _)R=t[P],F=R&&R.prototype,F?C(F)[A]=R:O=!1;for(P in U)R=t[P],F=R&&R.prototype,F&&(C(F)[A]=R);if((!O||!o(x)||x===Function.prototype)&&(x=function(){function oe(){throw new T("Incorrect invocation")}return oe}(),O))for(P in _)t[P]&&u(t[P],x);if((!O||!B||B===L)&&(B=x.prototype,O))for(P in _)t[P]&&u(t[P].prototype,B);if(O&&s(N)!==B&&u(N,B),a&&!S(B,E)){M=!0,i(B,E,{configurable:!0,get:function(){function oe(){return m(this)?this[w]:void 0}return oe}()});for(P in _)t[P]&&V(t[P],w,P)}I.exports={NATIVE_ARRAY_BUFFER_VIEWS:O,TYPED_ARRAY_TAG:M&&w,aTypedArray:ne,aTypedArrayConstructor:G,exportTypedArrayMethod:le,exportTypedArrayStaticMethod:de,getTypedArrayConstructor:$,isView:W,isTypedArray:Y,TypedArray:x,TypedArrayPrototype:B}},37336:function(I,r,n){"use strict";var e=n(16210),a=n(67250),t=n(58310),o=n(70377),m=n(70520),S=n(37909),y=n(73936),k=n(30145),V=n(40033),p=n(60077),i=n(61365),c=n(10188),s=n(43806),u=n(95867),d=n(91784),f=n(36917),l=n(76649),C=n(88471),b=n(54602),v=n(5781),h=n(5774),g=n(84925),N=n(5419),x=m.PROPER,B=m.CONFIGURABLE,L="ArrayBuffer",T="DataView",E="prototype",w="Wrong length",A="Wrong index",O=N.getterFor(L),M=N.getterFor(T),P=N.set,R=e[L],F=R,_=F&&F[E],U=e[T],W=U&&U[E],$=Object.prototype,Y=e.Array,ne=e.RangeError,G=a(C),le=a([].reverse),de=d.pack,oe=d.unpack,re=function(ie){return[ie&255]},q=function(ie){return[ie&255,ie>>8&255]},ae=function(ie){return[ie&255,ie>>8&255,ie>>16&255,ie>>24&255]},J=function(ie){return ie[3]<<24|ie[2]<<16|ie[1]<<8|ie[0]},X=function(ie){return de(u(ie),23,4)},Q=function(ie){return de(ie,52,8)},Z=function(ie,se,Ce){y(ie[E],se,{configurable:!0,get:function(){function he(){return Ce(this)[se]}return he}()})},te=function(ie,se,Ce,he){var ve=M(ie),Be=s(Ce),we=!!he;if(Be+se>ve.byteLength)throw new ne(A);var Re=ve.bytes,_e=Be+ve.byteOffset,Pe=b(Re,_e,_e+se);return we?Pe:le(Pe)},fe=function(ie,se,Ce,he,ve,Be){var we=M(ie),Re=s(Ce),_e=he(+ve),Pe=!!Be;if(Re+se>we.byteLength)throw new ne(A);for(var Ve=we.bytes,ke=Re+we.byteOffset,H=0;Hve)throw new ne("Wrong offset");if(Ce=Ce===void 0?ve-Be:c(Ce),Be+Ce>ve)throw new ne(w);P(this,{type:T,buffer:ie,byteLength:Ce,byteOffset:Be,bytes:he.bytes}),t||(this.buffer=ie,this.byteLength=Ce,this.byteOffset=Be)}return D}(),W=U[E],t&&(Z(F,"byteLength",O),Z(U,"buffer",M),Z(U,"byteLength",M),Z(U,"byteOffset",M)),k(W,{getInt8:function(){function D(ie){return te(this,1,ie)[0]<<24>>24}return D}(),getUint8:function(){function D(ie){return te(this,1,ie)[0]}return D}(),getInt16:function(){function D(ie){var se=te(this,2,ie,arguments.length>1?arguments[1]:!1);return(se[1]<<8|se[0])<<16>>16}return D}(),getUint16:function(){function D(ie){var se=te(this,2,ie,arguments.length>1?arguments[1]:!1);return se[1]<<8|se[0]}return D}(),getInt32:function(){function D(ie){return J(te(this,4,ie,arguments.length>1?arguments[1]:!1))}return D}(),getUint32:function(){function D(ie){return J(te(this,4,ie,arguments.length>1?arguments[1]:!1))>>>0}return D}(),getFloat32:function(){function D(ie){return oe(te(this,4,ie,arguments.length>1?arguments[1]:!1),23)}return D}(),getFloat64:function(){function D(ie){return oe(te(this,8,ie,arguments.length>1?arguments[1]:!1),52)}return D}(),setInt8:function(){function D(ie,se){fe(this,1,ie,re,se)}return D}(),setUint8:function(){function D(ie,se){fe(this,1,ie,re,se)}return D}(),setInt16:function(){function D(ie,se){fe(this,2,ie,q,se,arguments.length>2?arguments[2]:!1)}return D}(),setUint16:function(){function D(ie,se){fe(this,2,ie,q,se,arguments.length>2?arguments[2]:!1)}return D}(),setInt32:function(){function D(ie,se){fe(this,4,ie,ae,se,arguments.length>2?arguments[2]:!1)}return D}(),setUint32:function(){function D(ie,se){fe(this,4,ie,ae,se,arguments.length>2?arguments[2]:!1)}return D}(),setFloat32:function(){function D(ie,se){fe(this,4,ie,X,se,arguments.length>2?arguments[2]:!1)}return D}(),setFloat64:function(){function D(ie,se){fe(this,8,ie,Q,se,arguments.length>2?arguments[2]:!1)}return D}()});else{var ye=x&&R.name!==L;!V(function(){R(1)})||!V(function(){new R(-1)})||V(function(){return new R,new R(1.5),new R(NaN),R.length!==1||ye&&!B})?(F=function(){function D(ie){return p(this,_),v(new R(s(ie)),this,F)}return D}(),F[E]=_,_.constructor=F,h(F,R)):ye&&B&&S(R,"name",L),l&&f(W)!==$&&l(W,$);var pe=new U(new F(2)),Le=a(W.setInt8);pe.setInt8(0,2147483648),pe.setInt8(1,2147483649),(pe.getInt8(0)||!pe.getInt8(1))&&k(W,{setInt8:function(){function D(ie,se){Le(this,ie,se<<24>>24)}return D}(),setUint8:function(){function D(ie,se){Le(this,ie,se<<24>>24)}return D}()},{unsafe:!0})}g(F,L),g(U,T),I.exports={ArrayBuffer:F,DataView:U}},71447:function(I,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760),o=n(95108),m=Math.min;I.exports=[].copyWithin||function(){function S(y,k){var V=e(this),p=t(V),i=a(y,p),c=a(k,p),s=arguments.length>2?arguments[2]:void 0,u=m((s===void 0?p:a(s,p))-c,p-i),d=1;for(c0;)c in V?V[i]=V[c]:o(V,i),i+=d,c+=d;return V}return S}()},88471:function(I,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760);I.exports=function(){function o(m){for(var S=e(this),y=t(S),k=arguments.length,V=a(k>1?arguments[1]:void 0,y),p=k>2?arguments[2]:void 0,i=p===void 0?y:a(p,y);i>V;)S[V++]=m;return S}return o}()},35601:function(I,r,n){"use strict";var e=n(22603).forEach,a=n(55528),t=a("forEach");I.exports=t?[].forEach:function(){function o(m){return e(this,m,arguments.length>1?arguments[1]:void 0)}return o}()},78008:function(I,r,n){"use strict";var e=n(24760);I.exports=function(a,t,o){for(var m=0,S=arguments.length>2?o:e(t),y=new a(S);S>m;)y[m]=t[m++];return y}},73174:function(I,r,n){"use strict";var e=n(75754),a=n(91495),t=n(46771),o=n(40125),m=n(76571),S=n(1031),y=n(24760),k=n(60102),V=n(77455),p=n(59201),i=Array;I.exports=function(){function c(s){var u=t(s),d=S(this),f=arguments.length,l=f>1?arguments[1]:void 0,C=l!==void 0;C&&(l=e(l,f>2?arguments[2]:void 0));var b=p(u),v=0,h,g,N,x,B,L;if(b&&!(this===i&&m(b)))for(g=d?new this:[],x=V(u,b),B=x.next;!(N=a(B,x)).done;v++)L=C?o(x,l,[N.value,v],!0):N.value,k(g,v,L);else for(h=y(u),g=d?new this(h):i(h);h>v;v++)L=C?l(u[v],v):u[v],k(g,v,L);return g.length=v,g}return c}()},14211:function(I,r,n){"use strict";var e=n(57591),a=n(13912),t=n(24760),o=function(S){return function(y,k,V){var p=e(y),i=t(p);if(i===0)return!S&&-1;var c=a(V,i),s;if(S&&k!==k){for(;i>c;)if(s=p[c++],s!==s)return!0}else for(;i>c;c++)if((S||c in p)&&p[c]===k)return S||c||0;return!S&&-1}};I.exports={includes:o(!0),indexOf:o(!1)}},22603:function(I,r,n){"use strict";var e=n(75754),a=n(67250),t=n(37457),o=n(46771),m=n(24760),S=n(57823),y=a([].push),k=function(p){var i=p===1,c=p===2,s=p===3,u=p===4,d=p===6,f=p===7,l=p===5||d;return function(C,b,v,h){for(var g=o(C),N=t(g),x=m(N),B=e(b,v),L=0,T=h||S,E=i?T(C,x):c||f?T(C,0):void 0,w,A;x>L;L++)if((l||L in N)&&(w=N[L],A=B(w,L,g),p))if(i)E[L]=A;else if(A)switch(p){case 3:return!0;case 5:return w;case 6:return L;case 2:y(E,w)}else switch(p){case 4:return!1;case 7:y(E,w)}return d?-1:s||u?u:E}};I.exports={forEach:k(0),map:k(1),filter:k(2),some:k(3),every:k(4),find:k(5),findIndex:k(6),filterReject:k(7)}},1325:function(I,r,n){"use strict";var e=n(61267),a=n(57591),t=n(61365),o=n(24760),m=n(55528),S=Math.min,y=[].lastIndexOf,k=!!y&&1/[1].lastIndexOf(1,-0)<0,V=m("lastIndexOf"),p=k||!V;I.exports=p?function(){function i(c){if(k)return e(y,this,arguments)||0;var s=a(this),u=o(s);if(u===0)return-1;var d=u-1;for(arguments.length>1&&(d=S(d,t(arguments[1]))),d<0&&(d=u+d);d>=0;d--)if(d in s&&s[d]===c)return d||0;return-1}return i}():y},44091:function(I,r,n){"use strict";var e=n(40033),a=n(24697),t=n(83141),o=a("species");I.exports=function(m){return t>=51||!e(function(){var S=[],y=S.constructor={};return y[o]=function(){return{foo:1}},S[m](Boolean).foo!==1})}},55528:function(I,r,n){"use strict";var e=n(40033);I.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},56844:function(I,r,n){"use strict";var e=n(10320),a=n(46771),t=n(37457),o=n(24760),m=TypeError,S="Reduce of empty array with no initial value",y=function(V){return function(p,i,c,s){var u=a(p),d=t(u),f=o(u);if(e(i),f===0&&c<2)throw new m(S);var l=V?f-1:0,C=V?-1:1;if(c<2)for(;;){if(l in d){s=d[l],l+=C;break}if(l+=C,V?l<0:f<=l)throw new m(S)}for(;V?l>=0:f>l;l+=C)l in d&&(s=i(s,d[l],l,u));return s}};I.exports={left:y(!1),right:y(!0)}},13345:function(I,r,n){"use strict";var e=n(58310),a=n(37386),t=TypeError,o=Object.getOwnPropertyDescriptor,m=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(S){return S instanceof TypeError}}();I.exports=m?function(S,y){if(a(S)&&!o(S,"length").writable)throw new t("Cannot set read only .length");return S.length=y}:function(S,y){return S.length=y}},54602:function(I,r,n){"use strict";var e=n(67250);I.exports=e([].slice)},90274:function(I,r,n){"use strict";var e=n(54602),a=Math.floor,t=function(m,S){var y=m.length;if(y<8)for(var k=1,V,p;k0;)m[p]=m[--p];p!==k++&&(m[p]=V)}else for(var i=a(y/2),c=t(e(m,0,i),S),s=t(e(m,i),S),u=c.length,d=s.length,f=0,l=0;f1?arguments[1]:void 0),A;A=A?A.next:E.first;)for(w(A.value,A.key,this);A&&A.removed;)A=A.previous}return L}(),has:function(){function L(T){return!!B(this,T)}return L}()}),t(g,b?{get:function(){function L(T){var E=B(this,T);return E&&E.value}return L}(),set:function(){function L(T,E){return x(this,T===0?0:T,E)}return L}()}:{add:function(){function L(T){return x(this,T=T===0?0:T,T)}return L}()}),i&&a(g,"size",{configurable:!0,get:function(){function L(){return N(this).size}return L}()}),h}return f}(),setStrong:function(){function f(l,C,b){var v=C+" Iterator",h=d(C),g=d(v);k(l,C,function(N,x){u(this,{type:v,target:N,state:h(N),kind:x,last:null})},function(){for(var N=g(this),x=N.kind,B=N.last;B&&B.removed;)B=B.previous;return!N.target||!(N.last=B=B?B.next:N.state.first)?(N.target=null,V(void 0,!0)):V(x==="keys"?B.key:x==="values"?B.value:[B.key,B.value],!1)},b?"entries":"values",!b,!0),p(C)}return f}()}},39895:function(I,r,n){"use strict";var e=n(67250),a=n(30145),t=n(81969).getWeakData,o=n(60077),m=n(30365),S=n(42871),y=n(77568),k=n(49450),V=n(22603),p=n(45299),i=n(5419),c=i.set,s=i.getterFor,u=V.find,d=V.findIndex,f=e([].splice),l=0,C=function(g){return g.frozen||(g.frozen=new b)},b=function(){this.entries=[]},v=function(g,N){return u(g.entries,function(x){return x[0]===N})};b.prototype={get:function(){function h(g){var N=v(this,g);if(N)return N[1]}return h}(),has:function(){function h(g){return!!v(this,g)}return h}(),set:function(){function h(g,N){var x=v(this,g);x?x[1]=N:this.entries.push([g,N])}return h}(),delete:function(){function h(g){var N=d(this.entries,function(x){return x[0]===g});return~N&&f(this.entries,N,1),!!~N}return h}()},I.exports={getConstructor:function(){function h(g,N,x,B){var L=g(function(A,O){o(A,T),c(A,{type:N,id:l++,frozen:null}),S(O)||k(O,A[B],{that:A,AS_ENTRIES:x})}),T=L.prototype,E=s(N),w=function(){function A(O,M,P){var R=E(O),F=t(m(M),!0);return F===!0?C(R).set(M,P):F[R.id]=P,O}return A}();return a(T,{delete:function(){function A(O){var M=E(this);if(!y(O))return!1;var P=t(O);return P===!0?C(M).delete(O):P&&p(P,M.id)&&delete P[M.id]}return A}(),has:function(){function A(O){var M=E(this);if(!y(O))return!1;var P=t(O);return P===!0?C(M).has(O):P&&p(P,M.id)}return A}()}),a(T,x?{get:function(){function A(O){var M=E(this);if(y(O)){var P=t(O);if(P===!0)return C(M).get(O);if(P)return P[M.id]}}return A}(),set:function(){function A(O,M){return w(this,O,M)}return A}()}:{add:function(){function A(O){return w(this,O,!0)}return A}()}),L}return h}()}},45150:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(67250),o=n(41314),m=n(55938),S=n(81969),y=n(49450),k=n(60077),V=n(55747),p=n(42871),i=n(77568),c=n(40033),s=n(92490),u=n(84925),d=n(5781);I.exports=function(f,l,C){var b=f.indexOf("Map")!==-1,v=f.indexOf("Weak")!==-1,h=b?"set":"add",g=a[f],N=g&&g.prototype,x=g,B={},L=function(R){var F=t(N[R]);m(N,R,R==="add"?function(){function _(U){return F(this,U===0?0:U),this}return _}():R==="delete"?function(_){return v&&!i(_)?!1:F(this,_===0?0:_)}:R==="get"?function(){function _(U){return v&&!i(U)?void 0:F(this,U===0?0:U)}return _}():R==="has"?function(){function _(U){return v&&!i(U)?!1:F(this,U===0?0:U)}return _}():function(){function _(U,W){return F(this,U===0?0:U,W),this}return _}())},T=o(f,!V(g)||!(v||N.forEach&&!c(function(){new g().entries().next()})));if(T)x=C.getConstructor(l,f,b,h),S.enable();else if(o(f,!0)){var E=new x,w=E[h](v?{}:-0,1)!==E,A=c(function(){E.has(1)}),O=s(function(P){new g(P)}),M=!v&&c(function(){for(var P=new g,R=5;R--;)P[h](R,R);return!P.has(-0)});O||(x=l(function(P,R){k(P,N);var F=d(new g,P,x);return p(R)||y(R,F[h],{that:F,AS_ENTRIES:b}),F}),x.prototype=N,N.constructor=x),(A||M)&&(L("delete"),L("has"),b&&L("get")),(M||w)&&L(h),v&&N.clear&&delete N.clear}return B[f]=x,e({global:!0,constructor:!0,forced:x!==g},B),u(x,f),v||C.setStrong(x,f,b),x}},5774:function(I,r,n){"use strict";var e=n(45299),a=n(97921),t=n(27193),o=n(74595);I.exports=function(m,S,y){for(var k=a(S),V=o.f,p=t.f,i=0;i"+p+""}},5959:function(I){"use strict";I.exports=function(r,n){return{value:r,done:n}}},37909:function(I,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);I.exports=e?function(o,m,S){return a.f(o,m,t(1,S))}:function(o,m,S){return o[m]=S,o}},87458:function(I){"use strict";I.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},60102:function(I,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);I.exports=function(o,m,S){e?a.f(o,m,t(0,S)):o[m]=S}},67206:function(I,r,n){"use strict";var e=n(67250),a=n(40033),t=n(24051).start,o=RangeError,m=isFinite,S=Math.abs,y=Date.prototype,k=y.toISOString,V=e(y.getTime),p=e(y.getUTCDate),i=e(y.getUTCFullYear),c=e(y.getUTCHours),s=e(y.getUTCMilliseconds),u=e(y.getUTCMinutes),d=e(y.getUTCMonth),f=e(y.getUTCSeconds);I.exports=a(function(){return k.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){k.call(new Date(NaN))})?function(){function l(){if(!m(V(this)))throw new o("Invalid time value");var C=this,b=i(C),v=s(C),h=b<0?"-":b>9999?"+":"";return h+t(S(b),h?6:4,0)+"-"+t(d(C)+1,2,0)+"-"+t(p(C),2,0)+"T"+t(c(C),2,0)+":"+t(u(C),2,0)+":"+t(f(C),2,0)+"."+t(v,3,0)+"Z"}return l}():k},10886:function(I,r,n){"use strict";var e=n(30365),a=n(13396),t=TypeError;I.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},73936:function(I,r,n){"use strict";var e=n(20001),a=n(74595);I.exports=function(t,o,m){return m.get&&e(m.get,o,{getter:!0}),m.set&&e(m.set,o,{setter:!0}),a.f(t,o,m)}},55938:function(I,r,n){"use strict";var e=n(55747),a=n(74595),t=n(20001),o=n(18231);I.exports=function(m,S,y,k){k||(k={});var V=k.enumerable,p=k.name!==void 0?k.name:S;if(e(y)&&t(y,p,k),k.global)V?m[S]=y:o(S,y);else{try{k.unsafe?m[S]&&(V=!0):delete m[S]}catch(i){}V?m[S]=y:a.f(m,S,{value:y,enumerable:!1,configurable:!k.nonConfigurable,writable:!k.nonWritable})}return m}},30145:function(I,r,n){"use strict";var e=n(55938);I.exports=function(a,t,o){for(var m in t)e(a,m,t[m],o);return a}},18231:function(I,r,n){"use strict";var e=n(16210),a=Object.defineProperty;I.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(m){e[t]=o}return o}},95108:function(I,r,n){"use strict";var e=n(89393),a=TypeError;I.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},58310:function(I,r,n){"use strict";var e=n(40033);I.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},12689:function(I,r,n){"use strict";var e=n(16210),a=n(77568),t=e.document,o=a(t)&&a(t.createElement);I.exports=function(m){return o?t.createElement(m):{}}},21291:function(I){"use strict";var r=TypeError,n=9007199254740991;I.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},89453:function(I){"use strict";I.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},50503:function(I,r,n){"use strict";var e=n(83309),a=e.match(/firefox\/(\d+)/i);I.exports=!!a&&+a[1]},79725:function(I,r,n){"use strict";var e=n(83309);I.exports=/MSIE|Trident/.test(e)},16647:function(I,r,n){"use strict";var e=n(83309);I.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},27770:function(I,r,n){"use strict";var e=n(83309);I.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},81663:function(I,r,n){"use strict";var e=n(10753);I.exports=e==="NODE"},52854:function(I,r,n){"use strict";var e=n(83309);I.exports=/web0s(?!.*chrome)/i.test(e)},83309:function(I,r,n){"use strict";var e=n(16210),a=e.navigator,t=a&&a.userAgent;I.exports=t?String(t):""},83141:function(I,r,n){"use strict";var e=n(16210),a=n(83309),t=e.process,o=e.Deno,m=t&&t.versions||o&&o.version,S=m&&m.v8,y,k;S&&(y=S.split("."),k=y[0]>0&&y[0]<4?1:+(y[0]+y[1])),!k&&a&&(y=a.match(/Edge\/(\d+)/),(!y||y[1]>=74)&&(y=a.match(/Chrome\/(\d+)/),y&&(k=+y[1]))),I.exports=k},44981:function(I,r,n){"use strict";var e=n(83309),a=e.match(/AppleWebKit\/(\d+)\./);I.exports=!!a&&+a[1]},10753:function(I,r,n){"use strict";var e=n(16210),a=n(83309),t=n(7462),o=function(S){return a.slice(0,S.length)===S};I.exports=function(){return o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":e.Bun&&typeof Bun.version=="string"?"BUN":e.Deno&&typeof Deno.version=="object"?"DENO":t(e.process)==="process"?"NODE":e.window&&e.document?"BROWSER":"REST"}()},63964:function(I,r,n){"use strict";var e=n(16210),a=n(27193).f,t=n(37909),o=n(55938),m=n(18231),S=n(5774),y=n(41314);I.exports=function(k,V){var p=k.target,i=k.global,c=k.stat,s,u,d,f,l,C;if(i?u=e:c?u=e[p]||m(p,{}):u=e[p]&&e[p].prototype,u)for(d in V){if(l=V[d],k.dontCallGetSet?(C=a(u,d),f=C&&C.value):f=u[d],s=y(i?d:p+(c?".":"#")+d,k.forced),!s&&f!==void 0){if(typeof l==typeof f)continue;S(l,f)}(k.sham||f&&f.sham)&&t(l,"sham",!0),o(u,d,l,k)}}},40033:function(I){"use strict";I.exports=function(r){try{return!!r()}catch(n){return!0}}},79942:function(I,r,n){"use strict";n(79669);var e=n(91495),a=n(55938),t=n(14489),o=n(40033),m=n(24697),S=n(37909),y=m("species"),k=RegExp.prototype;I.exports=function(V,p,i,c){var s=m(V),u=!o(function(){var C={};return C[s]=function(){return 7},""[V](C)!==7}),d=u&&!o(function(){var C=!1,b=/a/;return V==="split"&&(b={},b.constructor={},b.constructor[y]=function(){return b},b.flags="",b[s]=/./[s]),b.exec=function(){return C=!0,null},b[s](""),!C});if(!u||!d||i){var f=/./[s],l=p(s,""[V],function(C,b,v,h,g){var N=b.exec;return N===t||N===k.exec?u&&!g?{done:!0,value:e(f,b,v,h)}:{done:!0,value:e(C,v,b,h)}:{done:!1}});a(String.prototype,V,l[0]),a(k,s,l[1])}c&&S(k[s],"sham",!0)}},65561:function(I,r,n){"use strict";var e=n(37386),a=n(24760),t=n(21291),o=n(75754),m=function(y,k,V,p,i,c,s,u){for(var d=i,f=0,l=s?o(s,u):!1,C,b;f0&&e(C)?(b=a(C),d=m(y,k,C,b,d,c-1)-1):(t(d+1),y[d]=C),d++),f++;return d};I.exports=m},50730:function(I,r,n){"use strict";var e=n(40033);I.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},61267:function(I,r,n){"use strict";var e=n(55050),a=Function.prototype,t=a.apply,o=a.call;I.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},75754:function(I,r,n){"use strict";var e=n(71138),a=n(10320),t=n(55050),o=e(e.bind);I.exports=function(m,S){return a(m),S===void 0?m:t?o(m,S):function(){return m.apply(S,arguments)}}},55050:function(I,r,n){"use strict";var e=n(40033);I.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},66284:function(I,r,n){"use strict";var e=n(67250),a=n(10320),t=n(77568),o=n(45299),m=n(54602),S=n(55050),y=Function,k=e([].concat),V=e([].join),p={},i=function(s,u,d){if(!o(p,u)){for(var f=[],l=0;l]*>)/g,k=/\$([$&'`]|\d{1,2})/g;I.exports=function(V,p,i,c,s,u){var d=i+V.length,f=c.length,l=k;return s!==void 0&&(s=a(s),l=y),m(u,l,function(C,b){var v;switch(o(b,0)){case"$":return"$";case"&":return V;case"`":return S(p,0,i);case"'":return S(p,d);case"<":v=s[S(b,1,-1)];break;default:var h=+b;if(h===0)return C;if(h>f){var g=t(h/10);return g===0?C:g<=f?c[g-1]===void 0?o(b,1):c[g-1]+o(b,1):C}v=c[h-1]}return v===void 0?"":v})}},16210:function(I,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};I.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},45299:function(I,r,n){"use strict";var e=n(67250),a=n(46771),t=e({}.hasOwnProperty);I.exports=Object.hasOwn||function(){function o(m,S){return t(a(m),S)}return o}()},79195:function(I){"use strict";I.exports={}},72259:function(I){"use strict";I.exports=function(r,n){try{arguments.length}catch(e){}}},5315:function(I,r,n){"use strict";var e=n(4009);I.exports=e("document","documentElement")},36223:function(I,r,n){"use strict";var e=n(58310),a=n(40033),t=n(12689);I.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},91784:function(I){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,m=function(k,V,p){var i=r(p),c=p*8-V-1,s=(1<>1,d=V===23?e(2,-24)-e(2,-77):0,f=k<0||k===0&&1/k<0?1:0,l=0,C,b,v;for(k=n(k),k!==k||k===1/0?(b=k!==k?1:0,C=s):(C=a(t(k)/o),v=e(2,-C),k*v<1&&(C--,v*=2),C+u>=1?k+=d/v:k+=d*e(2,1-u),k*v>=2&&(C++,v/=2),C+u>=s?(b=0,C=s):C+u>=1?(b=(k*v-1)*e(2,V),C+=u):(b=k*e(2,u-1)*e(2,V),C=0));V>=8;)i[l++]=b&255,b/=256,V-=8;for(C=C<0;)i[l++]=C&255,C/=256,c-=8;return i[l-1]|=f*128,i},S=function(k,V){var p=k.length,i=p*8-V-1,c=(1<>1,u=i-7,d=p-1,f=k[d--],l=f&127,C;for(f>>=7;u>0;)l=l*256+k[d--],u-=8;for(C=l&(1<<-u)-1,l>>=-u,u+=V;u>0;)C=C*256+k[d--],u-=8;if(l===0)l=1-s;else{if(l===c)return C?NaN:f?-1/0:1/0;C+=e(2,V),l-=s}return(f?-1:1)*C*e(2,l-V)};I.exports={pack:m,unpack:S}},37457:function(I,r,n){"use strict";var e=n(67250),a=n(40033),t=n(7462),o=Object,m=e("".split);I.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(S){return t(S)==="String"?m(S,""):o(S)}:o},5781:function(I,r,n){"use strict";var e=n(55747),a=n(77568),t=n(76649);I.exports=function(o,m,S){var y,k;return t&&e(y=m.constructor)&&y!==S&&a(k=y.prototype)&&k!==S.prototype&&t(o,k),o}},40492:function(I,r,n){"use strict";var e=n(67250),a=n(55747),t=n(40095),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(m){return o(m)}),I.exports=t.inspectSource},81969:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(79195),o=n(77568),m=n(45299),S=n(74595).f,y=n(37310),k=n(81644),V=n(81834),p=n(16738),i=n(50730),c=!1,s=p("meta"),u=0,d=function(g){S(g,s,{value:{objectID:"O"+u++,weakData:{}}})},f=function(g,N){if(!o(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!m(g,s)){if(!V(g))return"F";if(!N)return"E";d(g)}return g[s].objectID},l=function(g,N){if(!m(g,s)){if(!V(g))return!0;if(!N)return!1;d(g)}return g[s].weakData},C=function(g){return i&&c&&V(g)&&!m(g,s)&&d(g),g},b=function(){v.enable=function(){},c=!0;var g=y.f,N=a([].splice),x={};x[s]=1,g(x).length&&(y.f=function(B){for(var L=g(B),T=0,E=L.length;TB;B++)if(T=O(u[B]),T&&y(s,T))return T;return new c(!1)}N=k(u,x)}for(E=b?u.next:N.next;!(w=a(E,N)).done;){try{T=O(w.value)}catch(M){p(N,"throw",M)}if(typeof T=="object"&&T&&y(s,T))return T}return new c(!1)}},28649:function(I,r,n){"use strict";var e=n(91495),a=n(30365),t=n(78060);I.exports=function(o,m,S){var y,k;a(o);try{if(y=t(o,"return"),!y){if(m==="throw")throw S;return S}y=e(y,o)}catch(V){k=!0,y=V}if(m==="throw")throw S;if(k)throw y;return a(y),S}},5656:function(I,r,n){"use strict";var e=n(67635).IteratorPrototype,a=n(80674),t=n(87458),o=n(84925),m=n(83967),S=function(){return this};I.exports=function(y,k,V,p){var i=k+" Iterator";return y.prototype=a(e,{next:t(+!p,V)}),o(y,i,!1,!0),m[i]=S,y}},65574:function(I,r,n){"use strict";var e=n(63964),a=n(91495),t=n(4493),o=n(70520),m=n(55747),S=n(5656),y=n(36917),k=n(76649),V=n(84925),p=n(37909),i=n(55938),c=n(24697),s=n(83967),u=n(67635),d=o.PROPER,f=o.CONFIGURABLE,l=u.IteratorPrototype,C=u.BUGGY_SAFARI_ITERATORS,b=c("iterator"),v="keys",h="values",g="entries",N=function(){return this};I.exports=function(x,B,L,T,E,w,A){S(L,B,T);var O=function(G){if(G===E&&_)return _;if(!C&&G&&G in R)return R[G];switch(G){case v:return function(){function le(){return new L(this,G)}return le}();case h:return function(){function le(){return new L(this,G)}return le}();case g:return function(){function le(){return new L(this,G)}return le}()}return function(){return new L(this)}},M=B+" Iterator",P=!1,R=x.prototype,F=R[b]||R["@@iterator"]||E&&R[E],_=!C&&F||O(E),U=B==="Array"&&R.entries||F,W,$,Y;if(U&&(W=y(U.call(new x)),W!==Object.prototype&&W.next&&(!t&&y(W)!==l&&(k?k(W,l):m(W[b])||i(W,b,N)),V(W,M,!0,!0),t&&(s[M]=N))),d&&E===h&&F&&F.name!==h&&(!t&&f?p(R,"name",h):(P=!0,_=function(){function ne(){return a(F,this)}return ne}())),E)if($={values:O(h),keys:w?_:O(v),entries:O(g)},A)for(Y in $)(C||P||!(Y in R))&&i(R,Y,$[Y]);else e({target:B,proto:!0,forced:C||P},$);return(!t||A)&&R[b]!==_&&i(R,b,_,{name:E}),s[B]=_,$}},67635:function(I,r,n){"use strict";var e=n(40033),a=n(55747),t=n(77568),o=n(80674),m=n(36917),S=n(55938),y=n(24697),k=n(4493),V=y("iterator"),p=!1,i,c,s;[].keys&&(s=[].keys(),"next"in s?(c=m(m(s)),c!==Object.prototype&&(i=c)):p=!0);var u=!t(i)||e(function(){var d={};return i[V].call(d)!==d});u?i={}:k&&(i=o(i)),a(i[V])||S(i,V,function(){return this}),I.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},83967:function(I){"use strict";I.exports={}},24760:function(I,r,n){"use strict";var e=n(10188);I.exports=function(a){return e(a.length)}},20001:function(I,r,n){"use strict";var e=n(67250),a=n(40033),t=n(55747),o=n(45299),m=n(58310),S=n(70520).CONFIGURABLE,y=n(40492),k=n(5419),V=k.enforce,p=k.get,i=String,c=Object.defineProperty,s=e("".slice),u=e("".replace),d=e([].join),f=m&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),l=String(String).split("String"),C=I.exports=function(b,v,h){s(i(v),0,7)==="Symbol("&&(v="["+u(i(v),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),h&&h.getter&&(v="get "+v),h&&h.setter&&(v="set "+v),(!o(b,"name")||S&&b.name!==v)&&(m?c(b,"name",{value:v,configurable:!0}):b.name=v),f&&h&&o(h,"arity")&&b.length!==h.arity&&c(b,"length",{value:h.arity});try{h&&o(h,"constructor")&&h.constructor?m&&c(b,"prototype",{writable:!1}):b.prototype&&(b.prototype=void 0)}catch(N){}var g=V(b);return o(g,"source")||(g.source=d(l,typeof v=="string"?v:"")),b};Function.prototype.toString=C(function(){function b(){return t(this)&&p(this).source||y(this)}return b}(),"toString")},82040:function(I){"use strict";var r=Math.expm1,n=Math.exp;I.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},14950:function(I,r,n){"use strict";var e=n(22172),a=Math.abs,t=2220446049250313e-31,o=1/t,m=function(y){return y+o-o};I.exports=function(S,y,k,V){var p=+S,i=a(p),c=e(p);if(ik||u!==u?c*(1/0):c*u}},95867:function(I,r,n){"use strict";var e=n(14950),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;I.exports=Math.fround||function(){function m(S){return e(S,a,t,o)}return m}()},75002:function(I){"use strict";var r=Math.log,n=Math.LOG10E;I.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},90874:function(I){"use strict";var r=Math.log;I.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},22172:function(I){"use strict";I.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},21119:function(I){"use strict";var r=Math.ceil,n=Math.floor;I.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},37713:function(I,r,n){"use strict";var e=n(16210),a=n(44915),t=n(75754),o=n(60375).set,m=n(9547),S=n(27770),y=n(16647),k=n(52854),V=n(81663),p=e.MutationObserver||e.WebKitMutationObserver,i=e.document,c=e.process,s=e.Promise,u=a("queueMicrotask"),d,f,l,C,b;if(!u){var v=new m,h=function(){var N,x;for(V&&(N=c.domain)&&N.exit();x=v.get();)try{x()}catch(B){throw v.head&&d(),B}N&&N.enter()};!S&&!V&&!k&&p&&i?(f=!0,l=i.createTextNode(""),new p(h).observe(l,{characterData:!0}),d=function(){l.data=f=!f}):!y&&s&&s.resolve?(C=s.resolve(void 0),C.constructor=s,b=t(C.then,C),d=function(){b(h)}):V?d=function(){c.nextTick(h)}:(o=t(o,e),d=function(){o(h)}),u=function(N){v.head||d(),v.add(N)}}I.exports=u},81837:function(I,r,n){"use strict";var e=n(10320),a=TypeError,t=function(m){var S,y;this.promise=new m(function(k,V){if(S!==void 0||y!==void 0)throw new a("Bad Promise constructor");S=k,y=V}),this.resolve=e(S),this.reject=e(y)};I.exports.f=function(o){return new t(o)}},86213:function(I,r,n){"use strict";var e=n(72586),a=TypeError;I.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},3294:function(I,r,n){"use strict";var e=n(16210),a=e.isFinite;I.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},28506:function(I,r,n){"use strict";var e=n(16210),a=n(40033),t=n(67250),o=n(12605),m=n(92648).trim,S=n(4198),y=t("".charAt),k=e.parseFloat,V=e.Symbol,p=V&&V.iterator,i=1/k(S+"-0")!==-1/0||p&&!a(function(){k(Object(p))});I.exports=i?function(){function c(s){var u=m(o(s)),d=k(u);return d===0&&y(u,0)==="-"?-0:d}return c}():k},13693:function(I,r,n){"use strict";var e=n(16210),a=n(40033),t=n(67250),o=n(12605),m=n(92648).trim,S=n(4198),y=e.parseInt,k=e.Symbol,V=k&&k.iterator,p=/^[+-]?0x/i,i=t(p.exec),c=y(S+"08")!==8||y(S+"0x16")!==22||V&&!a(function(){y(Object(V))});I.exports=c?function(){function s(u,d){var f=m(o(u));return y(f,d>>>0||(i(p,f)?16:10))}return s}():y},41143:function(I,r,n){"use strict";var e=n(58310),a=n(67250),t=n(91495),o=n(40033),m=n(18450),S=n(89235),y=n(12867),k=n(46771),V=n(37457),p=Object.assign,i=Object.defineProperty,c=a([].concat);I.exports=!p||o(function(){if(e&&p({b:1},p(i({},"a",{enumerable:!0,get:function(){function l(){i(this,"b",{value:3,enumerable:!1})}return l}()}),{b:2})).b!==1)return!0;var s={},u={},d=Symbol("assign detection"),f="abcdefghijklmnopqrst";return s[d]=7,f.split("").forEach(function(l){u[l]=l}),p({},s)[d]!==7||m(p({},u)).join("")!==f})?function(){function s(u,d){for(var f=k(u),l=arguments.length,C=1,b=S.f,v=y.f;l>C;)for(var h=V(arguments[C++]),g=b?c(m(h),b(h)):m(h),N=g.length,x=0,B;N>x;)B=g[x++],(!e||t(v,h,B))&&(f[B]=h[B]);return f}return s}():p},80674:function(I,r,n){"use strict";var e=n(30365),a=n(24239),t=n(89453),o=n(79195),m=n(5315),S=n(12689),y=n(19417),k=">",V="<",p="prototype",i="script",c=y("IE_PROTO"),s=function(){},u=function(v){return V+i+k+v+V+"/"+i+k},d=function(v){v.write(u("")),v.close();var h=v.parentWindow.Object;return v=null,h},f=function(){var v=S("iframe"),h="java"+i+":",g;return v.style.display="none",m.appendChild(v),v.src=String(h),g=v.contentWindow.document,g.open(),g.write(u("document.F=Object")),g.close(),g.F},l,C=function(){try{l=new ActiveXObject("htmlfile")}catch(h){}C=typeof document!="undefined"?document.domain&&l?d(l):f():d(l);for(var v=t.length;v--;)delete C[p][t[v]];return C()};o[c]=!0,I.exports=Object.create||function(){function b(v,h){var g;return v!==null?(s[p]=e(v),g=new s,s[p]=null,g[c]=v):g=C(),h===void 0?g:a.f(g,h)}return b}()},24239:function(I,r,n){"use strict";var e=n(58310),a=n(80944),t=n(74595),o=n(30365),m=n(57591),S=n(18450);r.f=e&&!a?Object.defineProperties:function(){function y(k,V){o(k);for(var p=m(V),i=S(V),c=i.length,s=0,u;c>s;)t.f(k,u=i[s++],p[u]);return k}return y}()},74595:function(I,r,n){"use strict";var e=n(58310),a=n(36223),t=n(80944),o=n(30365),m=n(767),S=TypeError,y=Object.defineProperty,k=Object.getOwnPropertyDescriptor,V="enumerable",p="configurable",i="writable";r.f=e?t?function(){function c(s,u,d){if(o(s),u=m(u),o(d),typeof s=="function"&&u==="prototype"&&"value"in d&&i in d&&!d[i]){var f=k(s,u);f&&f[i]&&(s[u]=d.value,d={configurable:p in d?d[p]:f[p],enumerable:V in d?d[V]:f[V],writable:!1})}return y(s,u,d)}return c}():y:function(){function c(s,u,d){if(o(s),u=m(u),o(d),a)try{return y(s,u,d)}catch(f){}if("get"in d||"set"in d)throw new S("Accessors not supported");return"value"in d&&(s[u]=d.value),s}return c}()},27193:function(I,r,n){"use strict";var e=n(58310),a=n(91495),t=n(12867),o=n(87458),m=n(57591),S=n(767),y=n(45299),k=n(36223),V=Object.getOwnPropertyDescriptor;r.f=e?V:function(){function p(i,c){if(i=m(i),c=S(c),k)try{return V(i,c)}catch(s){}if(y(i,c))return o(!a(t.f,i,c),i[c])}return p}()},81644:function(I,r,n){"use strict";var e=n(7462),a=n(57591),t=n(37310).f,o=n(54602),m=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],S=function(k){try{return t(k)}catch(V){return o(m)}};I.exports.f=function(){function y(k){return m&&e(k)==="Window"?S(k):t(a(k))}return y}()},37310:function(I,r,n){"use strict";var e=n(53726),a=n(89453),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(m){return e(m,t)}return o}()},89235:function(I,r){"use strict";r.f=Object.getOwnPropertySymbols},36917:function(I,r,n){"use strict";var e=n(45299),a=n(55747),t=n(46771),o=n(19417),m=n(9225),S=o("IE_PROTO"),y=Object,k=y.prototype;I.exports=m?y.getPrototypeOf:function(V){var p=t(V);if(e(p,S))return p[S];var i=p.constructor;return a(i)&&p instanceof i?i.prototype:p instanceof y?k:null}},81834:function(I,r,n){"use strict";var e=n(40033),a=n(77568),t=n(7462),o=n(3782),m=Object.isExtensible,S=e(function(){m(1)});I.exports=S||o?function(){function y(k){return!a(k)||o&&t(k)==="ArrayBuffer"?!1:m?m(k):!0}return y}():m},21287:function(I,r,n){"use strict";var e=n(67250);I.exports=e({}.isPrototypeOf)},53726:function(I,r,n){"use strict";var e=n(67250),a=n(45299),t=n(57591),o=n(14211).indexOf,m=n(79195),S=e([].push);I.exports=function(y,k){var V=t(y),p=0,i=[],c;for(c in V)!a(m,c)&&a(V,c)&&S(i,c);for(;k.length>p;)a(V,c=k[p++])&&(~o(i,c)||S(i,c));return i}},18450:function(I,r,n){"use strict";var e=n(53726),a=n(89453);I.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},12867:function(I,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var m=e(this,o);return!!m&&m.enumerable}return t}():n},57377:function(I,r,n){"use strict";var e=n(4493),a=n(16210),t=n(40033),o=n(44981);I.exports=e||!t(function(){if(!(o&&o<535)){var m=Math.random();__defineSetter__.call(null,m,function(){}),delete a[m]}})},76649:function(I,r,n){"use strict";var e=n(38656),a=n(77568),t=n(16952),o=n(35908);I.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var m=!1,S={},y;try{y=e(Object.prototype,"__proto__","set"),y(S,[]),m=S instanceof Array}catch(k){}return function(){function k(V,p){return t(V),o(p),a(V)&&(m?y(V,p):V.__proto__=p),V}return k}()}():void 0)},70915:function(I,r,n){"use strict";var e=n(58310),a=n(40033),t=n(67250),o=n(36917),m=n(18450),S=n(57591),y=n(12867).f,k=t(y),V=t([].push),p=e&&a(function(){var c=Object.create(null);return c[2]=2,!k(c,2)}),i=function(s){return function(u){for(var d=S(u),f=m(d),l=p&&o(d)===null,C=f.length,b=0,v=[],h;C>b;)h=f[b++],(!e||(l?h in d:k(d,h)))&&V(v,s?[h,d[h]]:d[h]);return v}};I.exports={entries:i(!0),values:i(!1)}},2509:function(I,r,n){"use strict";var e=n(2650),a=n(2281);I.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},13396:function(I,r,n){"use strict";var e=n(91495),a=n(55747),t=n(77568),o=TypeError;I.exports=function(m,S){var y,k;if(S==="string"&&a(y=m.toString)&&!t(k=e(y,m))||a(y=m.valueOf)&&!t(k=e(y,m))||S!=="string"&&a(y=m.toString)&&!t(k=e(y,m)))return k;throw new o("Can't convert object to primitive value")}},97921:function(I,r,n){"use strict";var e=n(4009),a=n(67250),t=n(37310),o=n(89235),m=n(30365),S=a([].concat);I.exports=e("Reflect","ownKeys")||function(){function y(k){var V=t.f(m(k)),p=o.f;return p?S(V,p(k)):V}return y}()},61765:function(I,r,n){"use strict";var e=n(16210);I.exports=e},10729:function(I){"use strict";I.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},74854:function(I,r,n){"use strict";var e=n(16210),a=n(67512),t=n(55747),o=n(41314),m=n(40492),S=n(24697),y=n(10753),k=n(4493),V=n(83141),p=a&&a.prototype,i=S("species"),c=!1,s=t(e.PromiseRejectionEvent),u=o("Promise",function(){var d=m(a),f=d!==String(a);if(!f&&V===66||k&&!(p.catch&&p.finally))return!0;if(!V||V<51||!/native code/.test(d)){var l=new a(function(v){v(1)}),C=function(h){h(function(){},function(){})},b=l.constructor={};if(b[i]=C,c=l.then(function(){})instanceof C,!c)return!0}return!f&&(y==="BROWSER"||y==="DENO")&&!s});I.exports={CONSTRUCTOR:u,REJECTION_EVENT:s,SUBCLASSING:c}},67512:function(I,r,n){"use strict";var e=n(16210);I.exports=e.Promise},66628:function(I,r,n){"use strict";var e=n(30365),a=n(77568),t=n(81837);I.exports=function(o,m){if(e(o),a(m)&&m.constructor===o)return m;var S=t.f(o),y=S.resolve;return y(m),S.promise}},48199:function(I,r,n){"use strict";var e=n(67512),a=n(92490),t=n(74854).CONSTRUCTOR;I.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},34550:function(I,r,n){"use strict";var e=n(74595).f;I.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function m(){return t[o]}return m}(),set:function(){function m(S){t[o]=S}return m}()})}},9547:function(I){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(){function n(e){var a={item:e,next:null},t=this.tail;t?t.next=a:this.head=a,this.tail=a}return n}(),get:function(){function n(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}return n}()},I.exports=r},28340:function(I,r,n){"use strict";var e=n(91495),a=n(30365),t=n(55747),o=n(7462),m=n(14489),S=TypeError;I.exports=function(y,k){var V=y.exec;if(t(V)){var p=e(V,y,k);return p!==null&&a(p),p}if(o(y)==="RegExp")return e(m,y,k);throw new S("RegExp#exec called on incompatible receiver")}},14489:function(I,r,n){"use strict";var e=n(91495),a=n(67250),t=n(12605),o=n(70901),m=n(62115),S=n(16639),y=n(80674),k=n(5419).get,V=n(39173),p=n(35688),i=S("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,s=c,u=a("".charAt),d=a("".indexOf),f=a("".replace),l=a("".slice),C=function(){var g=/a/,N=/b*/g;return e(c,g,"a"),e(c,N,"a"),g.lastIndex!==0||N.lastIndex!==0}(),b=m.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,h=C||v||b||V||p;h&&(s=function(){function g(N){var x=this,B=k(x),L=t(N),T=B.raw,E,w,A,O,M,P,R;if(T)return T.lastIndex=x.lastIndex,E=e(s,T,L),x.lastIndex=T.lastIndex,E;var F=B.groups,_=b&&x.sticky,U=e(o,x),W=x.source,$=0,Y=L;if(_&&(U=f(U,"y",""),d(U,"g")===-1&&(U+="g"),Y=l(L,x.lastIndex),x.lastIndex>0&&(!x.multiline||x.multiline&&u(L,x.lastIndex-1)!=="\n")&&(W="(?: "+W+")",Y=" "+Y,$++),w=new RegExp("^(?:"+W+")",U)),v&&(w=new RegExp("^"+W+"$(?!\\s)",U)),C&&(A=x.lastIndex),O=e(c,_?w:x,Y),_?O?(O.input=l(O.input,$),O[0]=l(O[0],$),O.index=x.lastIndex,x.lastIndex+=O[0].length):x.lastIndex=0:C&&O&&(x.lastIndex=x.global?O.index+O[0].length:A),v&&O&&O.length>1&&e(i,O[0],w,function(){for(M=1;Mb)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},16952:function(I,r,n){"use strict";var e=n(42871),a=TypeError;I.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},44915:function(I,r,n){"use strict";var e=n(16210),a=n(58310),t=Object.getOwnPropertyDescriptor;I.exports=function(o){if(!a)return e[o];var m=t(e,o);return m&&m.value}},5700:function(I){"use strict";I.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},78362:function(I,r,n){"use strict";var e=n(16210),a=n(61267),t=n(55747),o=n(10753),m=n(83309),S=n(54602),y=n(24986),k=e.Function,V=/MSIE .\./.test(m)||o==="BUN"&&function(){var p=e.Bun.version.split(".");return p.length<3||p[0]==="0"&&(p[1]<3||p[1]==="3"&&p[2]==="0")}();I.exports=function(p,i){var c=i?2:1;return V?function(s,u){var d=y(arguments.length,1)>c,f=t(s)?s:k(s),l=d?S(arguments,c):[],C=d?function(){a(f,this,l)}:f;return i?p(C,u):p(C)}:p}},58491:function(I,r,n){"use strict";var e=n(4009),a=n(73936),t=n(24697),o=n(58310),m=t("species");I.exports=function(S){var y=e(S);o&&y&&!y[m]&&a(y,m,{configurable:!0,get:function(){function k(){return this}return k}()})}},84925:function(I,r,n){"use strict";var e=n(74595).f,a=n(45299),t=n(24697),o=t("toStringTag");I.exports=function(m,S,y){m&&!y&&(m=m.prototype),m&&!a(m,o)&&e(m,o,{configurable:!0,value:S})}},19417:function(I,r,n){"use strict";var e=n(16639),a=n(16738),t=e("keys");I.exports=function(o){return t[o]||(t[o]=a(o))}},40095:function(I,r,n){"use strict";var e=n(4493),a=n(16210),t=n(18231),o="__core-js_shared__",m=I.exports=a[o]||t(o,{});(m.versions||(m.versions=[])).push({version:"3.38.1",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},16639:function(I,r,n){"use strict";var e=n(40095);I.exports=function(a,t){return e[a]||(e[a]=t||{})}},28987:function(I,r,n){"use strict";var e=n(30365),a=n(32606),t=n(42871),o=n(24697),m=o("species");I.exports=function(S,y){var k=e(S).constructor,V;return k===void 0||t(V=e(k)[m])?y:a(V)}},88539:function(I,r,n){"use strict";var e=n(40033);I.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},50233:function(I,r,n){"use strict";var e=n(67250),a=n(61365),t=n(12605),o=n(16952),m=e("".charAt),S=e("".charCodeAt),y=e("".slice),k=function(p){return function(i,c){var s=t(o(i)),u=a(c),d=s.length,f,l;return u<0||u>=d?p?"":void 0:(f=S(s,u),f<55296||f>56319||u+1===d||(l=S(s,u+1))<56320||l>57343?p?m(s,u):f:p?y(s,u,u+2):(f-55296<<10)+(l-56320)+65536)}};I.exports={codeAt:k(!1),charAt:k(!0)}},34125:function(I,r,n){"use strict";var e=n(83309);I.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},24051:function(I,r,n){"use strict";var e=n(67250),a=n(10188),t=n(12605),o=n(62443),m=n(16952),S=e(o),y=e("".slice),k=Math.ceil,V=function(i){return function(c,s,u){var d=t(m(c)),f=a(s),l=d.length,C=u===void 0?" ":t(u),b,v;return f<=l||C===""?d:(b=f-l,v=S(C,k(b/C.length)),v.length>b&&(v=y(v,0,b)),i?d+v:v+d)}};I.exports={start:V(!1),end:V(!0)}},62443:function(I,r,n){"use strict";var e=n(61365),a=n(12605),t=n(16952),o=RangeError;I.exports=function(){function m(S){var y=a(t(this)),k="",V=e(S);if(V<0||V===1/0)throw new o("Wrong number of repetitions");for(;V>0;(V>>>=1)&&(y+=y))V&1&&(k+=y);return k}return m}()},43476:function(I,r,n){"use strict";var e=n(92648).end,a=n(90012);I.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},90012:function(I,r,n){"use strict";var e=n(70520).PROPER,a=n(40033),t=n(4198),o="\u200B\x85\u180E";I.exports=function(m){return a(function(){return!!t[m]()||o[m]()!==o||e&&t[m].name!==m})}},43885:function(I,r,n){"use strict";var e=n(92648).start,a=n(90012);I.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},92648:function(I,r,n){"use strict";var e=n(67250),a=n(16952),t=n(12605),o=n(4198),m=e("".replace),S=RegExp("^["+o+"]+"),y=RegExp("(^|[^"+o+"])["+o+"]+$"),k=function(p){return function(i){var c=t(a(i));return p&1&&(c=m(c,S,"")),p&2&&(c=m(c,y,"$1")),c}};I.exports={start:k(1),end:k(2),trim:k(3)}},52357:function(I,r,n){"use strict";var e=n(83141),a=n(40033),t=n(16210),o=t.String;I.exports=!!Object.getOwnPropertySymbols&&!a(function(){var m=Symbol("symbol detection");return!o(m)||!(Object(m)instanceof Symbol)||!Symbol.sham&&e&&e<41})},52360:function(I,r,n){"use strict";var e=n(91495),a=n(4009),t=n(24697),o=n(55938);I.exports=function(){var m=a("Symbol"),S=m&&m.prototype,y=S&&S.valueOf,k=t("toPrimitive");S&&!S[k]&&o(S,k,function(V){return e(y,this)},{arity:1})}},66570:function(I,r,n){"use strict";var e=n(52357);I.exports=e&&!!Symbol.for&&!!Symbol.keyFor},60375:function(I,r,n){"use strict";var e=n(16210),a=n(61267),t=n(75754),o=n(55747),m=n(45299),S=n(40033),y=n(5315),k=n(54602),V=n(12689),p=n(24986),i=n(27770),c=n(81663),s=e.setImmediate,u=e.clearImmediate,d=e.process,f=e.Dispatch,l=e.Function,C=e.MessageChannel,b=e.String,v=0,h={},g="onreadystatechange",N,x,B,L;S(function(){N=e.location});var T=function(M){if(m(h,M)){var P=h[M];delete h[M],P()}},E=function(M){return function(){T(M)}},w=function(M){T(M.data)},A=function(M){e.postMessage(b(M),N.protocol+"//"+N.host)};(!s||!u)&&(s=function(){function O(M){p(arguments.length,1);var P=o(M)?M:l(M),R=k(arguments,1);return h[++v]=function(){a(P,void 0,R)},x(v),v}return O}(),u=function(){function O(M){delete h[M]}return O}(),c?x=function(M){d.nextTick(E(M))}:f&&f.now?x=function(M){f.now(E(M))}:C&&!i?(B=new C,L=B.port2,B.port1.onmessage=w,x=t(L.postMessage,L)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&N&&N.protocol!=="file:"&&!S(A)?(x=A,e.addEventListener("message",w,!1)):g in V("script")?x=function(M){y.appendChild(V("script"))[g]=function(){y.removeChild(this),T(M)}}:x=function(M){setTimeout(E(M),0)}),I.exports={set:s,clear:u}},46438:function(I,r,n){"use strict";var e=n(67250);I.exports=e(1 .valueOf)},13912:function(I,r,n){"use strict";var e=n(61365),a=Math.max,t=Math.min;I.exports=function(o,m){var S=e(o);return S<0?a(S+m,0):t(S,m)}},61484:function(I,r,n){"use strict";var e=n(24843),a=TypeError;I.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},43806:function(I,r,n){"use strict";var e=n(61365),a=n(10188),t=RangeError;I.exports=function(o){if(o===void 0)return 0;var m=e(o),S=a(m);if(m!==S)throw new t("Wrong length or index");return S}},57591:function(I,r,n){"use strict";var e=n(37457),a=n(16952);I.exports=function(t){return e(a(t))}},61365:function(I,r,n){"use strict";var e=n(21119);I.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},10188:function(I,r,n){"use strict";var e=n(61365),a=Math.min;I.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},46771:function(I,r,n){"use strict";var e=n(16952),a=Object;I.exports=function(t){return a(e(t))}},56043:function(I,r,n){"use strict";var e=n(16140),a=RangeError;I.exports=function(t,o){var m=e(t);if(m%o)throw new a("Wrong offset");return m}},16140:function(I,r,n){"use strict";var e=n(61365),a=RangeError;I.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},24843:function(I,r,n){"use strict";var e=n(91495),a=n(77568),t=n(71399),o=n(78060),m=n(13396),S=n(24697),y=TypeError,k=S("toPrimitive");I.exports=function(V,p){if(!a(V)||t(V))return V;var i=o(V,k),c;if(i){if(p===void 0&&(p="default"),c=e(i,V,p),!a(c)||t(c))return c;throw new y("Can't convert object to primitive value")}return p===void 0&&(p="number"),m(V,p)}},767:function(I,r,n){"use strict";var e=n(24843),a=n(71399);I.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},2650:function(I,r,n){"use strict";var e=n(24697),a=e("toStringTag"),t={};t[a]="z",I.exports=String(t)==="[object z]"},12605:function(I,r,n){"use strict";var e=n(2281),a=String;I.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},15409:function(I){"use strict";var r=Math.round;I.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},89393:function(I){"use strict";var r=String;I.exports=function(n){try{return r(n)}catch(e){return"Object"}}},80185:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(91495),o=n(58310),m=n(86563),S=n(4246),y=n(37336),k=n(60077),V=n(87458),p=n(37909),i=n(5841),c=n(10188),s=n(43806),u=n(56043),d=n(15409),f=n(767),l=n(45299),C=n(2281),b=n(77568),v=n(71399),h=n(80674),g=n(21287),N=n(76649),x=n(37310).f,B=n(3805),L=n(22603).forEach,T=n(58491),E=n(73936),w=n(74595),A=n(27193),O=n(78008),M=n(5419),P=n(5781),R=M.get,F=M.set,_=M.enforce,U=w.f,W=A.f,$=a.RangeError,Y=y.ArrayBuffer,ne=Y.prototype,G=y.DataView,le=S.NATIVE_ARRAY_BUFFER_VIEWS,de=S.TYPED_ARRAY_TAG,oe=S.TypedArray,re=S.TypedArrayPrototype,q=S.isTypedArray,ae="BYTES_PER_ELEMENT",J="Wrong length",X=function(pe,Le){E(pe,Le,{configurable:!0,get:function(){function D(){return R(this)[Le]}return D}()})},Q=function(pe){var Le;return g(ne,pe)||(Le=C(pe))==="ArrayBuffer"||Le==="SharedArrayBuffer"},Z=function(pe,Le){return q(pe)&&!v(Le)&&Le in pe&&i(+Le)&&Le>=0},te=function(){function ye(pe,Le){return Le=f(Le),Z(pe,Le)?V(2,pe[Le]):W(pe,Le)}return ye}(),fe=function(){function ye(pe,Le,D){return Le=f(Le),Z(pe,Le)&&b(D)&&l(D,"value")&&!l(D,"get")&&!l(D,"set")&&!D.configurable&&(!l(D,"writable")||D.writable)&&(!l(D,"enumerable")||D.enumerable)?(pe[Le]=D.value,pe):U(pe,Le,D)}return ye}();o?(le||(A.f=te,w.f=fe,X(re,"buffer"),X(re,"byteOffset"),X(re,"byteLength"),X(re,"length")),e({target:"Object",stat:!0,forced:!le},{getOwnPropertyDescriptor:te,defineProperty:fe}),I.exports=function(ye,pe,Le){var D=ye.match(/\d+/)[0]/8,ie=ye+(Le?"Clamped":"")+"Array",se="get"+ye,Ce="set"+ye,he=a[ie],ve=he,Be=ve&&ve.prototype,we={},Re=function(H,ue){var be=R(H);return be.view[se](ue*D+be.byteOffset,!0)},_e=function(H,ue,be){var Se=R(H);Se.view[Ce](ue*D+Se.byteOffset,Le?d(be):be,!0)},Pe=function(H,ue){U(H,ue,{get:function(){function be(){return Re(this,ue)}return be}(),set:function(){function be(Se){return _e(this,ue,Se)}return be}(),enumerable:!0})};le?m&&(ve=pe(function(ke,H,ue,be){return k(ke,Be),P(function(){return b(H)?Q(H)?be!==void 0?new he(H,u(ue,D),be):ue!==void 0?new he(H,u(ue,D)):new he(H):q(H)?O(ve,H):t(B,ve,H):new he(s(H))}(),ke,ve)}),N&&N(ve,oe),L(x(he),function(ke){ke in ve||p(ve,ke,he[ke])}),ve.prototype=Be):(ve=pe(function(ke,H,ue,be){k(ke,Be);var Se=0,Ie=0,Ee,Me,Ae;if(!b(H))Ae=s(H),Me=Ae*D,Ee=new Y(Me);else if(Q(H)){Ee=H,Ie=u(ue,D);var De=H.byteLength;if(be===void 0){if(De%D)throw new $(J);if(Me=De-Ie,Me<0)throw new $(J)}else if(Me=c(be)*D,Me+Ie>De)throw new $(J);Ae=Me/D}else return q(H)?O(ve,H):t(B,ve,H);for(F(ke,{buffer:Ee,byteOffset:Ie,byteLength:Me,length:Ae,view:new G(Ee)});Se1?arguments[1]:void 0,C=l!==void 0,b=y(d),v,h,g,N,x,B,L,T;if(b&&!k(b))for(L=S(d,b),T=L.next,d=[];!(B=a(T,L)).done;)d.push(B.value);for(C&&f>2&&(l=e(l,arguments[2])),h=m(d),g=new(p(u))(h),N=V(g),v=0;h>v;v++)x=C?l(d[v],v):d[v],g[v]=N?i(x):+x;return g}return c}()},31082:function(I,r,n){"use strict";var e=n(4246),a=n(28987),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;I.exports=function(m){return t(a(m,o(m)))}},16738:function(I,r,n){"use strict";var e=n(67250),a=0,t=Math.random(),o=e(1 .toString);I.exports=function(m){return"Symbol("+(m===void 0?"":m)+")_"+o(++a+t,36)}},1062:function(I,r,n){"use strict";var e=n(52357);I.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},80944:function(I,r,n){"use strict";var e=n(58310),a=n(40033);I.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},24986:function(I){"use strict";var r=TypeError;I.exports=function(n,e){if(n=51||!a(function(){var l=[];return l[s]=!1,l.concat()[0]!==l}),d=function(C){if(!o(C))return!1;var b=C[s];return b!==void 0?!!b:t(C)},f=!u||!p("concat");e({target:"Array",proto:!0,arity:1,forced:f},{concat:function(){function l(C){var b=m(this),v=V(b,0),h=0,g,N,x,B,L;for(g=-1,x=arguments.length;g1?arguments[1]:void 0)}return m}()})},68933:function(I,r,n){"use strict";var e=n(63964),a=n(88471),t=n(80575);e({target:"Array",proto:!0},{fill:a}),t("fill")},47830:function(I,r,n){"use strict";var e=n(63964),a=n(22603).filter,t=n(44091),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function m(S){return a(this,S,arguments.length>1?arguments[1]:void 0)}return m}()})},64094:function(I,r,n){"use strict";var e=n(63964),a=n(22603).findIndex,t=n(80575),o="findIndex",m=!0;o in[]&&Array(1)[o](function(){m=!1}),e({target:"Array",proto:!0,forced:m},{findIndex:function(){function S(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return S}()}),t(o)},13455:function(I,r,n){"use strict";var e=n(63964),a=n(22603).find,t=n(80575),o="find",m=!0;o in[]&&Array(1)[o](function(){m=!1}),e({target:"Array",proto:!0,forced:m},{find:function(){function S(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return S}()}),t(o)},32384:function(I,r,n){"use strict";var e=n(63964),a=n(65561),t=n(10320),o=n(46771),m=n(24760),S=n(57823);e({target:"Array",proto:!0},{flatMap:function(){function y(k){var V=o(this),p=m(V),i;return t(k),i=S(V,0),i.length=a(i,V,V,p,0,1,k,arguments.length>1?arguments[1]:void 0),i}return y}()})},61915:function(I,r,n){"use strict";var e=n(63964),a=n(65561),t=n(46771),o=n(24760),m=n(61365),S=n(57823);e({target:"Array",proto:!0},{flat:function(){function y(){var k=arguments.length?arguments[0]:void 0,V=t(this),p=o(V),i=S(V,0);return i.length=a(i,V,V,p,0,k===void 0?1:m(k)),i}return y}()})},25579:function(I,r,n){"use strict";var e=n(63964),a=n(35601);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},63532:function(I,r,n){"use strict";var e=n(63964),a=n(73174),t=n(92490),o=!t(function(m){Array.from(m)});e({target:"Array",stat:!0,forced:o},{from:a})},33425:function(I,r,n){"use strict";var e=n(63964),a=n(14211).includes,t=n(40033),o=n(80575),m=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:m},{includes:function(){function S(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return S}()}),o("includes")},43894:function(I,r,n){"use strict";var e=n(63964),a=n(71138),t=n(14211).indexOf,o=n(55528),m=a([].indexOf),S=!!m&&1/m([1],1,-0)<0,y=S||!o("indexOf");e({target:"Array",proto:!0,forced:y},{indexOf:function(){function k(V){var p=arguments.length>1?arguments[1]:void 0;return S?m(this,V,p)||0:t(this,V,p)}return k}()})},99636:function(I,r,n){"use strict";var e=n(63964),a=n(37386);e({target:"Array",stat:!0},{isArray:a})},34570:function(I,r,n){"use strict";var e=n(57591),a=n(80575),t=n(83967),o=n(5419),m=n(74595).f,S=n(65574),y=n(5959),k=n(4493),V=n(58310),p="Array Iterator",i=o.set,c=o.getterFor(p);I.exports=S(Array,"Array",function(u,d){i(this,{type:p,target:e(u),index:0,kind:d})},function(){var u=c(this),d=u.target,f=u.index++;if(!d||f>=d.length)return u.target=null,y(void 0,!0);switch(u.kind){case"keys":return y(f,!1);case"values":return y(d[f],!1)}return y([f,d[f]],!1)},"values");var s=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!k&&V&&s.name!=="values")try{m(s,"name",{value:"values"})}catch(u){}},94432:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37457),o=n(57591),m=n(55528),S=a([].join),y=t!==Object,k=y||!m("join",",");e({target:"Array",proto:!0,forced:k},{join:function(){function V(p){return S(o(this),p===void 0?",":p)}return V}()})},24683:function(I,r,n){"use strict";var e=n(63964),a=n(1325);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},69984:function(I,r,n){"use strict";var e=n(63964),a=n(22603).map,t=n(44091),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function m(S){return a(this,S,arguments.length>1?arguments[1]:void 0)}return m}()})},32089:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(1031),o=n(60102),m=Array,S=a(function(){function y(){}return!(m.of.call(y)instanceof y)});e({target:"Array",stat:!0,forced:S},{of:function(){function y(){for(var k=0,V=arguments.length,p=new(t(this)?this:m)(V);V>k;)o(p,k,arguments[k++]);return p.length=V,p}return y}()})},29645:function(I,r,n){"use strict";var e=n(63964),a=n(56844).right,t=n(55528),o=n(83141),m=n(81663),S=!m&&o>79&&o<83,y=S||!t("reduceRight");e({target:"Array",proto:!0,forced:y},{reduceRight:function(){function k(V){return a(this,V,arguments.length,arguments.length>1?arguments[1]:void 0)}return k}()})},60206:function(I,r,n){"use strict";var e=n(63964),a=n(56844).left,t=n(55528),o=n(83141),m=n(81663),S=!m&&o>79&&o<83,y=S||!t("reduce");e({target:"Array",proto:!0,forced:y},{reduce:function(){function k(V){var p=arguments.length;return a(this,V,p,p>1?arguments[1]:void 0)}return k}()})},4788:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37386),o=a([].reverse),m=[1,2];e({target:"Array",proto:!0,forced:String(m)===String(m.reverse())},{reverse:function(){function S(){return t(this)&&(this.length=this.length),o(this)}return S}()})},58672:function(I,r,n){"use strict";var e=n(63964),a=n(37386),t=n(1031),o=n(77568),m=n(13912),S=n(24760),y=n(57591),k=n(60102),V=n(24697),p=n(44091),i=n(54602),c=p("slice"),s=V("species"),u=Array,d=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function f(l,C){var b=y(this),v=S(b),h=m(l,v),g=m(C===void 0?v:C,v),N,x,B;if(a(b)&&(N=b.constructor,t(N)&&(N===u||a(N.prototype))?N=void 0:o(N)&&(N=N[s],N===null&&(N=void 0)),N===u||N===void 0))return i(b,h,g);for(x=new(N===void 0?u:N)(d(g-h,0)),B=0;h1?arguments[1]:void 0)}return m}()})},48968:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(10320),o=n(46771),m=n(24760),S=n(95108),y=n(12605),k=n(40033),V=n(90274),p=n(55528),i=n(50503),c=n(79725),s=n(83141),u=n(44981),d=[],f=a(d.sort),l=a(d.push),C=k(function(){d.sort(void 0)}),b=k(function(){d.sort(null)}),v=p("sort"),h=!k(function(){if(s)return s<70;if(!(i&&i>3)){if(c)return!0;if(u)return u<603;var x="",B,L,T,E;for(B=65;B<76;B++){switch(L=String.fromCharCode(B),B){case 66:case 69:case 70:case 72:T=3;break;case 68:case 71:T=4;break;default:T=2}for(E=0;E<47;E++)d.push({k:L+E,v:T})}for(d.sort(function(w,A){return A.v-w.v}),E=0;Ey(T)?1:-1}};e({target:"Array",proto:!0,forced:g},{sort:function(){function x(B){B!==void 0&&t(B);var L=o(this);if(h)return B===void 0?f(L):f(L,B);var T=[],E=m(L),w,A;for(A=0;Ab-N+g;B--)p(C,B-1)}else if(g>N)for(B=b-N;B>v;B--)L=B+N-1,T=B+g-1,L in C?C[T]=C[L]:p(C,T);for(B=0;B9490626562425156e-8?o(p)+S:a(p-1+m(p-1)*m(p+1))}return k}()})},59660:function(I,r,n){"use strict";var e=n(63964),a=Math.asinh,t=Math.log,o=Math.sqrt;function m(y){var k=+y;return!isFinite(k)||k===0?k:k<0?-m(-k):t(k+o(k*k+1))}var S=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:S},{asinh:m})},15383:function(I,r,n){"use strict";var e=n(63964),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function m(S){var y=+S;return y===0?y:t((1+y)/(1-y))/2}return m}()})},92866:function(I,r,n){"use strict";var e=n(63964),a=n(22172),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function m(S){var y=+S;return a(y)*o(t(y),.3333333333333333)}return m}()})},86107:function(I,r,n){"use strict";var e=n(63964),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function m(S){var y=S>>>0;return y?31-a(t(y+.5)*o):32}return m}()})},29248:function(I,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.cosh,o=Math.abs,m=Math.E,S=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:S},{cosh:function(){function y(k){var V=a(o(k)-1)+1;return(V+1/(V*m*m))*(m/2)}return y}()})},52540:function(I,r,n){"use strict";var e=n(63964),a=n(82040);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},79007:function(I,r,n){"use strict";var e=n(63964),a=n(95867);e({target:"Math",stat:!0},{fround:a})},77199:function(I,r,n){"use strict";var e=n(63964),a=Math.hypot,t=Math.abs,o=Math.sqrt,m=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:m},{hypot:function(){function S(y,k){for(var V=0,p=0,i=arguments.length,c=0,s,u;p0?(u=s/c,V+=u*u):V+=s;return c===1/0?1/0:c*o(V)}return S}()})},6522:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function m(S,y){var k=65535,V=+S,p=+y,i=k&V,c=k&p;return 0|i*c+((k&V>>>16)*c+i*(k&p>>>16)<<16>>>0)}return m}()})},95542:function(I,r,n){"use strict";var e=n(63964),a=n(75002);e({target:"Math",stat:!0},{log10:a})},2966:function(I,r,n){"use strict";var e=n(63964),a=n(90874);e({target:"Math",stat:!0},{log1p:a})},20997:function(I,r,n){"use strict";var e=n(63964),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(m){return a(m)/t}return o}()})},57400:function(I,r,n){"use strict";var e=n(63964),a=n(22172);e({target:"Math",stat:!0},{sign:a})},45571:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(82040),o=Math.abs,m=Math.exp,S=Math.E,y=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:y},{sinh:function(){function k(V){var p=+V;return o(p)<1?(t(p)-t(-p))/2:(m(p-1)-m(-p-1))*(S/2)}return k}()})},54800:function(I,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(m){var S=+m,y=a(S),k=a(-S);return y===1/0?1:k===1/0?-1:(y-k)/(t(S)+t(-S))}return o}()})},15709:function(I,r,n){"use strict";var e=n(84925);e(Math,"Math",!0)},76059:function(I,r,n){"use strict";var e=n(63964),a=n(21119);e({target:"Math",stat:!0},{trunc:a})},96614:function(I,r,n){"use strict";var e=n(63964),a=n(4493),t=n(58310),o=n(16210),m=n(61765),S=n(67250),y=n(41314),k=n(45299),V=n(5781),p=n(21287),i=n(71399),c=n(24843),s=n(40033),u=n(37310).f,d=n(27193).f,f=n(74595).f,l=n(46438),C=n(92648).trim,b="Number",v=o[b],h=m[b],g=v.prototype,N=o.TypeError,x=S("".slice),B=S("".charCodeAt),L=function(P){var R=c(P,"number");return typeof R=="bigint"?R:T(R)},T=function(P){var R=c(P,"number"),F,_,U,W,$,Y,ne,G;if(i(R))throw new N("Cannot convert a Symbol value to a number");if(typeof R=="string"&&R.length>2){if(R=C(R),F=B(R,0),F===43||F===45){if(_=B(R,2),_===88||_===120)return NaN}else if(F===48){switch(B(R,1)){case 66:case 98:U=2,W=49;break;case 79:case 111:U=8,W=55;break;default:return+R}for($=x(R,2),Y=$.length,ne=0;neW)return NaN;return parseInt($,U)}}return+R},E=y(b,!v(" 0o1")||!v("0b1")||v("+0x1")),w=function(P){return p(g,P)&&s(function(){l(P)})},A=function(){function M(P){var R=arguments.length<1?0:v(L(P));return w(this)?V(Object(R),this,A):R}return M}();A.prototype=g,E&&!a&&(g.constructor=A),e({global:!0,constructor:!0,wrap:!0,forced:E},{Number:A});var O=function(P,R){for(var F=t?u(R):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),_=0,U;F.length>_;_++)k(R,U=F[_])&&!k(P,U)&&f(P,U,d(R,U))};a&&h&&O(m[b],h),(E||a)&&O(m[b],v)},324:function(I,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},90426:function(I,r,n){"use strict";var e=n(63964),a=n(3294);e({target:"Number",stat:!0},{isFinite:a})},95443:function(I,r,n){"use strict";var e=n(63964),a=n(5841);e({target:"Number",stat:!0},{isInteger:a})},87968:function(I,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},55007:function(I,r,n){"use strict";var e=n(63964),a=n(5841),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(m){return a(m)&&t(m)<=9007199254740991}return o}()})},55323:function(I,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},13521:function(I,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},5006:function(I,r,n){"use strict";var e=n(63964),a=n(28506);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},99009:function(I,r,n){"use strict";var e=n(63964),a=n(13693);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},85770:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(61365),o=n(46438),m=n(62443),S=n(40033),y=RangeError,k=String,V=Math.floor,p=a(m),i=a("".slice),c=a(1 .toFixed),s=function(v,h,g){return h===0?g:h%2===1?s(v,h-1,g*v):s(v*v,h/2,g)},u=function(v){for(var h=0,g=v;g>=4096;)h+=12,g/=4096;for(;g>=2;)h+=1,g/=2;return h},d=function(v,h,g){for(var N=-1,x=g;++N<6;)x+=h*v[N],v[N]=x%1e7,x=V(x/1e7)},f=function(v,h){for(var g=6,N=0;--g>=0;)N+=v[g],v[g]=V(N/h),N=N%h*1e7},l=function(v){for(var h=6,g="";--h>=0;)if(g!==""||h===0||v[h]!==0){var N=k(v[h]);g=g===""?N:g+p("0",7-N.length)+N}return g},C=S(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!S(function(){c({})});e({target:"Number",proto:!0,forced:C},{toFixed:function(){function b(v){var h=o(this),g=t(v),N=[0,0,0,0,0,0],x="",B="0",L,T,E,w;if(g<0||g>20)throw new y("Incorrect fraction digits");if(h!==h)return"NaN";if(h<=-1e21||h>=1e21)return k(h);if(h<0&&(x="-",h=-h),h>1e-21)if(L=u(h*s(2,69,1))-69,T=L<0?h*s(2,-L,1):h/s(2,L,1),T*=4503599627370496,L=52-L,L>0){for(d(N,0,T),E=g;E>=7;)d(N,1e7,0),E-=7;for(d(N,s(10,E,1),0),E=L-1;E>=23;)f(N,8388608),E-=23;f(N,1<0?(w=B.length,B=x+(w<=g?"0."+p("0",g-w)+B:i(B,0,w-g)+"."+i(B,w-g))):B=x+B,B}return b}()})},23532:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(40033),o=n(46438),m=a(1 .toPrecision),S=t(function(){return m(1,void 0)!=="1"})||!t(function(){m({})});e({target:"Number",proto:!0,forced:S},{toPrecision:function(){function y(k){return k===void 0?m(o(this)):m(o(this),k)}return y}()})},87119:function(I,r,n){"use strict";var e=n(63964),a=n(41143);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},78618:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(80674);e({target:"Object",stat:!0,sham:!a},{create:t})},27129:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),m=n(46771),S=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function y(k,V){S.f(m(this),k,{get:o(V),enumerable:!0,configurable:!0})}return y}()})},31943:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(24239).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},3579:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(74595).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},97397:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),m=n(46771),S=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function y(k,V){S.f(m(this),k,{set:o(V),enumerable:!0,configurable:!0})}return y}()})},85028:function(I,r,n){"use strict";var e=n(63964),a=n(70915).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},8225:function(I,r,n){"use strict";var e=n(63964),a=n(50730),t=n(40033),o=n(77568),m=n(81969).onFreeze,S=Object.freeze,y=t(function(){S(1)});e({target:"Object",stat:!0,forced:y,sham:!a},{freeze:function(){function k(V){return S&&o(V)?S(m(V)):V}return k}()})},43331:function(I,r,n){"use strict";var e=n(63964),a=n(49450),t=n(60102);e({target:"Object",stat:!0},{fromEntries:function(){function o(m){var S={};return a(m,function(y,k){t(S,y,k)},{AS_ENTRIES:!0}),S}return o}()})},62289:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(57591),o=n(27193).f,m=n(58310),S=!m||a(function(){o(1)});e({target:"Object",stat:!0,forced:S,sham:!m},{getOwnPropertyDescriptor:function(){function y(k,V){return o(t(k),V)}return y}()})},56196:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(97921),o=n(57591),m=n(27193),S=n(60102);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function y(k){for(var V=o(k),p=m.f,i=t(V),c={},s=0,u,d;i.length>s;)d=p(V,u=i[s++]),d!==void 0&&S(c,u,d);return c}return y}()})},2950:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(81644).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},28603:function(I,r,n){"use strict";var e=n(63964),a=n(52357),t=n(40033),o=n(89235),m=n(46771),S=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:S},{getOwnPropertySymbols:function(){function y(k){var V=o.f;return V?V(m(k)):[]}return y}()})},44205:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(46771),o=n(36917),m=n(9225),S=a(function(){o(1)});e({target:"Object",stat:!0,forced:S,sham:!m},{getPrototypeOf:function(){function y(k){return o(t(k))}return y}()})},83186:function(I,r,n){"use strict";var e=n(63964),a=n(81834);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},76065:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),m=n(3782),S=Object.isFrozen,y=m||a(function(){S(1)});e({target:"Object",stat:!0,forced:y},{isFrozen:function(){function k(V){return!t(V)||m&&o(V)==="ArrayBuffer"?!0:S?S(V):!1}return k}()})},13411:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),m=n(3782),S=Object.isSealed,y=m||a(function(){S(1)});e({target:"Object",stat:!0,forced:y},{isSealed:function(){function k(V){return!t(V)||m&&o(V)==="ArrayBuffer"?!0:S?S(V):!1}return k}()})},76882:function(I,r,n){"use strict";var e=n(63964),a=n(5700);e({target:"Object",stat:!0},{is:a})},26634:function(I,r,n){"use strict";var e=n(63964),a=n(46771),t=n(18450),o=n(40033),m=o(function(){t(1)});e({target:"Object",stat:!0,forced:m},{keys:function(){function S(y){return t(a(y))}return S}()})},53118:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),m=n(767),S=n(36917),y=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function k(V){var p=o(this),i=m(V),c;do if(c=y(p,i))return c.get;while(p=S(p))}return k}()})},42514:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),m=n(767),S=n(36917),y=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function k(V){var p=o(this),i=m(V),c;do if(c=y(p,i))return c.set;while(p=S(p))}return k}()})},84353:function(I,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),m=n(40033),S=Object.preventExtensions,y=m(function(){S(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{preventExtensions:function(){function k(V){return S&&a(V)?S(t(V)):V}return k}()})},62987:function(I,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),m=n(40033),S=Object.seal,y=m(function(){S(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{seal:function(){function k(V){return S&&a(V)?S(t(V)):V}return k}()})},48993:function(I,r,n){"use strict";var e=n(63964),a=n(76649);e({target:"Object",stat:!0},{setPrototypeOf:a})},52917:function(I,r,n){"use strict";var e=n(2650),a=n(55938),t=n(2509);e||a(Object.prototype,"toString",t,{unsafe:!0})},4972:function(I,r,n){"use strict";var e=n(63964),a=n(70915).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},28913:function(I,r,n){"use strict";var e=n(63964),a=n(28506);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},36382:function(I,r,n){"use strict";var e=n(63964),a=n(13693);e({global:!0,forced:parseInt!==a},{parseInt:a})},48865:function(I,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),m=n(10729),S=n(49450),y=n(48199);e({target:"Promise",stat:!0,forced:y},{all:function(){function k(V){var p=this,i=o.f(p),c=i.resolve,s=i.reject,u=m(function(){var d=t(p.resolve),f=[],l=0,C=1;S(V,function(b){var v=l++,h=!1;C++,a(d,p,b).then(function(g){h||(h=!0,f[v]=g,--C||c(f))},s)}),--C||c(f)});return u.error&&s(u.value),i.promise}return k}()})},70641:function(I,r,n){"use strict";var e=n(63964),a=n(4493),t=n(74854).CONSTRUCTOR,o=n(67512),m=n(4009),S=n(55747),y=n(55938),k=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function p(i){return this.then(void 0,i)}return p}()}),!a&&S(o)){var V=m("Promise").prototype.catch;k.catch!==V&&y(k,"catch",V,{unsafe:!0})}},75946:function(I,r,n){"use strict";var e=n(63964),a=n(4493),t=n(81663),o=n(16210),m=n(91495),S=n(55938),y=n(76649),k=n(84925),V=n(58491),p=n(10320),i=n(55747),c=n(77568),s=n(60077),u=n(28987),d=n(60375).set,f=n(37713),l=n(72259),C=n(10729),b=n(9547),v=n(5419),h=n(67512),g=n(74854),N=n(81837),x="Promise",B=g.CONSTRUCTOR,L=g.REJECTION_EVENT,T=g.SUBCLASSING,E=v.getterFor(x),w=v.set,A=h&&h.prototype,O=h,M=A,P=o.TypeError,R=o.document,F=o.process,_=N.f,U=_,W=!!(R&&R.createEvent&&o.dispatchEvent),$="unhandledrejection",Y="rejectionhandled",ne=0,G=1,le=2,de=1,oe=2,re,q,ae,J,X=function(Ce){var he;return c(Ce)&&i(he=Ce.then)?he:!1},Q=function(Ce,he){var ve=he.value,Be=he.state===G,we=Be?Ce.ok:Ce.fail,Re=Ce.resolve,_e=Ce.reject,Pe=Ce.domain,Ve,ke,H;try{we?(Be||(he.rejection===oe&&pe(he),he.rejection=de),we===!0?Ve=ve:(Pe&&Pe.enter(),Ve=we(ve),Pe&&(Pe.exit(),H=!0)),Ve===Ce.promise?_e(new P("Promise-chain cycle")):(ke=X(Ve))?m(ke,Ve,Re,_e):Re(Ve)):_e(ve)}catch(ue){Pe&&!H&&Pe.exit(),_e(ue)}},Z=function(Ce,he){Ce.notified||(Ce.notified=!0,f(function(){for(var ve=Ce.reactions,Be;Be=ve.get();)Q(Be,Ce);Ce.notified=!1,he&&!Ce.rejection&&fe(Ce)}))},te=function(Ce,he,ve){var Be,we;W?(Be=R.createEvent("Event"),Be.promise=he,Be.reason=ve,Be.initEvent(Ce,!1,!0),o.dispatchEvent(Be)):Be={promise:he,reason:ve},!L&&(we=o["on"+Ce])?we(Be):Ce===$&&l("Unhandled promise rejection",ve)},fe=function(Ce){m(d,o,function(){var he=Ce.facade,ve=Ce.value,Be=ye(Ce),we;if(Be&&(we=C(function(){t?F.emit("unhandledRejection",ve,he):te($,he,ve)}),Ce.rejection=t||ye(Ce)?oe:de,we.error))throw we.value})},ye=function(Ce){return Ce.rejection!==de&&!Ce.parent},pe=function(Ce){m(d,o,function(){var he=Ce.facade;t?F.emit("rejectionHandled",he):te(Y,he,Ce.value)})},Le=function(Ce,he,ve){return function(Be){Ce(he,Be,ve)}},D=function(Ce,he,ve){Ce.done||(Ce.done=!0,ve&&(Ce=ve),Ce.value=he,Ce.state=le,Z(Ce,!0))},ie=function(Ce,he,ve){if(!Ce.done){Ce.done=!0,ve&&(Ce=ve);try{if(Ce.facade===he)throw new P("Promise can't be resolved itself");var Be=X(he);Be?f(function(){var we={done:!1};try{m(Be,he,Le(ie,we,Ce),Le(D,we,Ce))}catch(Re){D(we,Re,Ce)}}):(Ce.value=he,Ce.state=G,Z(Ce,!1))}catch(we){D({done:!1},we,Ce)}}};if(B&&(O=function(){function se(Ce){s(this,M),p(Ce),m(re,this);var he=E(this);try{Ce(Le(ie,he),Le(D,he))}catch(ve){D(he,ve)}}return se}(),M=O.prototype,re=function(){function se(Ce){w(this,{type:x,done:!1,notified:!1,parent:!1,reactions:new b,rejection:!1,state:ne,value:null})}return se}(),re.prototype=S(M,"then",function(){function se(Ce,he){var ve=E(this),Be=_(u(this,O));return ve.parent=!0,Be.ok=i(Ce)?Ce:!0,Be.fail=i(he)&&he,Be.domain=t?F.domain:void 0,ve.state===ne?ve.reactions.add(Be):f(function(){Q(Be,ve)}),Be.promise}return se}()),q=function(){var Ce=new re,he=E(Ce);this.promise=Ce,this.resolve=Le(ie,he),this.reject=Le(D,he)},N.f=_=function(Ce){return Ce===O||Ce===ae?new q(Ce):U(Ce)},!a&&i(h)&&A!==Object.prototype)){J=A.then,T||S(A,"then",function(){function se(Ce,he){var ve=this;return new O(function(Be,we){m(J,ve,Be,we)}).then(Ce,he)}return se}(),{unsafe:!0});try{delete A.constructor}catch(se){}y&&y(A,M)}e({global:!0,constructor:!0,wrap:!0,forced:B},{Promise:O}),k(O,x,!1,!0),V(x)},69861:function(I,r,n){"use strict";var e=n(63964),a=n(4493),t=n(67512),o=n(40033),m=n(4009),S=n(55747),y=n(28987),k=n(66628),V=n(55938),p=t&&t.prototype,i=!!t&&o(function(){p.finally.call({then:function(){function s(){}return s}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:i},{finally:function(){function s(u){var d=y(this,m("Promise")),f=S(u);return this.then(f?function(l){return k(d,u()).then(function(){return l})}:u,f?function(l){return k(d,u()).then(function(){throw l})}:u)}return s}()}),!a&&S(t)){var c=m("Promise").prototype.finally;p.finally!==c&&V(p,"finally",c,{unsafe:!0})}},53092:function(I,r,n){"use strict";n(75946),n(48865),n(70641),n(16937),n(41719),n(81702)},16937:function(I,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),m=n(10729),S=n(49450),y=n(48199);e({target:"Promise",stat:!0,forced:y},{race:function(){function k(V){var p=this,i=o.f(p),c=i.reject,s=m(function(){var u=t(p.resolve);S(V,function(d){a(u,p,d).then(i.resolve,c)})});return s.error&&c(s.value),i.promise}return k}()})},41719:function(I,r,n){"use strict";var e=n(63964),a=n(81837),t=n(74854).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(m){var S=a.f(this),y=S.reject;return y(m),S.promise}return o}()})},81702:function(I,r,n){"use strict";var e=n(63964),a=n(4009),t=n(4493),o=n(67512),m=n(74854).CONSTRUCTOR,S=n(66628),y=a("Promise"),k=t&&!m;e({target:"Promise",stat:!0,forced:t||m},{resolve:function(){function V(p){return S(k&&this===y?o:this,p)}return V}()})},29674:function(I,r,n){"use strict";var e=n(63964),a=n(61267),t=n(10320),o=n(30365),m=n(40033),S=!m(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:S},{apply:function(){function y(k,V,p){return a(t(k),V,o(p))}return y}()})},81543:function(I,r,n){"use strict";var e=n(63964),a=n(4009),t=n(61267),o=n(66284),m=n(32606),S=n(30365),y=n(77568),k=n(80674),V=n(40033),p=a("Reflect","construct"),i=Object.prototype,c=[].push,s=V(function(){function f(){}return!(p(function(){},[],f)instanceof f)}),u=!V(function(){p(function(){})}),d=s||u;e({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(){function f(l,C){m(l),S(C);var b=arguments.length<3?l:m(arguments[2]);if(u&&!s)return p(l,C,b);if(l===b){switch(C.length){case 0:return new l;case 1:return new l(C[0]);case 2:return new l(C[0],C[1]);case 3:return new l(C[0],C[1],C[2]);case 4:return new l(C[0],C[1],C[2],C[3])}var v=[null];return t(c,v,C),new(t(o,l,v))}var h=b.prototype,g=k(y(h)?h:i),N=t(l,g,C);return y(N)?N:g}return f}()})},9373:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(767),m=n(74595),S=n(40033),y=S(function(){Reflect.defineProperty(m.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:y,sham:!a},{defineProperty:function(){function k(V,p,i){t(V);var c=o(p);t(i);try{return m.f(V,c,i),!0}catch(s){return!1}}return k}()})},45093:function(I,r,n){"use strict";var e=n(63964),a=n(30365),t=n(27193).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(m,S){var y=t(a(m),S);return y&&!y.configurable?!1:delete m[S]}return o}()})},5815:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(27193);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function m(S,y){return o.f(t(S),y)}return m}()})},88527:function(I,r,n){"use strict";var e=n(63964),a=n(30365),t=n(36917),o=n(9225);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function m(S){return t(a(S))}return m}()})},63074:function(I,r,n){"use strict";var e=n(63964),a=n(91495),t=n(77568),o=n(30365),m=n(98373),S=n(27193),y=n(36917);function k(V,p){var i=arguments.length<3?V:arguments[2],c,s;if(o(V)===i)return V[p];if(c=S.f(V,p),c)return m(c)?c.value:c.get===void 0?void 0:a(c.get,i);if(t(s=y(V)))return k(s,p,i)}e({target:"Reflect",stat:!0},{get:k})},66390:function(I,r,n){"use strict";var e=n(63964);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},7784:function(I,r,n){"use strict";var e=n(63964),a=n(30365),t=n(81834);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(m){return a(m),t(m)}return o}()})},50551:function(I,r,n){"use strict";var e=n(63964),a=n(97921);e({target:"Reflect",stat:!0},{ownKeys:a})},76483:function(I,r,n){"use strict";var e=n(63964),a=n(4009),t=n(30365),o=n(50730);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function m(S){t(S);try{var y=a("Object","preventExtensions");return y&&y(S),!0}catch(k){return!1}}return m}()})},63915:function(I,r,n){"use strict";var e=n(63964),a=n(30365),t=n(35908),o=n(76649);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function m(S,y){a(S),t(y);try{return o(S,y),!0}catch(k){return!1}}return m}()})},92046:function(I,r,n){"use strict";var e=n(63964),a=n(91495),t=n(30365),o=n(77568),m=n(98373),S=n(40033),y=n(74595),k=n(27193),V=n(36917),p=n(87458);function i(s,u,d){var f=arguments.length<4?s:arguments[3],l=k.f(t(s),u),C,b,v;if(!l){if(o(b=V(s)))return i(b,u,d,f);l=p(0)}if(m(l)){if(l.writable===!1||!o(f))return!1;if(C=k.f(f,u)){if(C.get||C.set||C.writable===!1)return!1;C.value=d,y.f(f,u,C)}else y.f(f,u,p(0,d))}else{if(v=l.set,v===void 0)return!1;a(v,f,d)}return!0}var c=S(function(){var s=function(){},u=y.f(new s,"a",{configurable:!0});return Reflect.set(s.prototype,"a",1,u)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:i})},51454:function(I,r,n){"use strict";var e=n(58310),a=n(16210),t=n(67250),o=n(41314),m=n(5781),S=n(37909),y=n(80674),k=n(37310).f,V=n(21287),p=n(72586),i=n(12605),c=n(73392),s=n(62115),u=n(34550),d=n(55938),f=n(40033),l=n(45299),C=n(5419).enforce,b=n(58491),v=n(24697),h=n(39173),g=n(35688),N=v("match"),x=a.RegExp,B=x.prototype,L=a.SyntaxError,T=t(B.exec),E=t("".charAt),w=t("".replace),A=t("".indexOf),O=t("".slice),M=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,P=/a/g,R=/a/g,F=new x(P)!==P,_=s.MISSED_STICKY,U=s.UNSUPPORTED_Y,W=e&&(!F||_||h||g||f(function(){return R[N]=!1,x(P)!==P||x(R)===R||String(x(P,"i"))!=="/a/i"})),$=function(oe){for(var re=oe.length,q=0,ae="",J=!1,X;q<=re;q++){if(X=E(oe,q),X==="\\"){ae+=X+E(oe,++q);continue}!J&&X==="."?ae+="[\\s\\S]":(X==="["?J=!0:X==="]"&&(J=!1),ae+=X)}return ae},Y=function(oe){for(var re=oe.length,q=0,ae="",J=[],X=y(null),Q=!1,Z=!1,te=0,fe="",ye;q<=re;q++){if(ye=E(oe,q),ye==="\\")ye+=E(oe,++q);else if(ye==="]")Q=!1;else if(!Q)switch(!0){case ye==="[":Q=!0;break;case ye==="(":if(ae+=ye,O(oe,q+1,q+3)==="?:")continue;T(M,O(oe,q+1))&&(q+=2,Z=!0),te++;continue;case(ye===">"&&Z):if(fe===""||l(X,fe))throw new L("Invalid capture group name");X[fe]=!0,J[J.length]=[fe,te],Z=!1,fe="";continue}Z?fe+=ye:ae+=ye}return[ae,J]};if(o("RegExp",W)){for(var ne=function(){function de(oe,re){var q=V(B,this),ae=p(oe),J=re===void 0,X=[],Q=oe,Z,te,fe,ye,pe,Le;if(!q&&ae&&J&&oe.constructor===ne)return oe;if((ae||V(B,oe))&&(oe=oe.source,J&&(re=c(Q))),oe=oe===void 0?"":i(oe),re=re===void 0?"":i(re),Q=oe,h&&"dotAll"in P&&(te=!!re&&A(re,"s")>-1,te&&(re=w(re,/s/g,""))),Z=re,_&&"sticky"in P&&(fe=!!re&&A(re,"y")>-1,fe&&U&&(re=w(re,/y/g,""))),g&&(ye=Y(oe),oe=ye[0],X=ye[1]),pe=m(x(oe,re),q?this:B,ne),(te||fe||X.length)&&(Le=C(pe),te&&(Le.dotAll=!0,Le.raw=ne($(oe),Z)),fe&&(Le.sticky=!0),X.length&&(Le.groups=X)),oe!==Q)try{S(pe,"source",Q===""?"(?:)":Q)}catch(D){}return pe}return de}(),G=k(x),le=0;G.length>le;)u(ne,x,G[le++]);B.constructor=ne,ne.prototype=B,d(a,"RegExp",ne,{constructor:!0})}b("RegExp")},79669:function(I,r,n){"use strict";var e=n(63964),a=n(14489);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},23057:function(I,r,n){"use strict";var e=n(16210),a=n(58310),t=n(73936),o=n(70901),m=n(40033),S=e.RegExp,y=S.prototype,k=a&&m(function(){var V=!0;try{S(".","d")}catch(l){V=!1}var p={},i="",c=V?"dgimsy":"gimsy",s=function(C,b){Object.defineProperty(p,C,{get:function(){function v(){return i+=b,!0}return v}()})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};V&&(u.hasIndices="d");for(var d in u)s(d,u[d]);var f=Object.getOwnPropertyDescriptor(y,"flags").get.call(p);return f!==c||i!==c});k&&t(y,"flags",{configurable:!0,get:o})},57983:function(I,r,n){"use strict";var e=n(70520).PROPER,a=n(55938),t=n(30365),o=n(12605),m=n(40033),S=n(73392),y="toString",k=RegExp.prototype,V=k[y],p=m(function(){return V.call({source:"a",flags:"b"})!=="/a/b"}),i=e&&V.name!==y;(p||i)&&a(k,y,function(){function c(){var s=t(this),u=o(s.source),d=o(S(s));return"/"+u+"/"+d}return c}(),{unsafe:!0})},1963:function(I,r,n){"use strict";var e=n(45150),a=n(41028);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},17953:function(I,r,n){"use strict";n(1963)},95309:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(m){return a(this,"a","name",m)}return o}()})},82256:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},49484:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},38931:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},30442:function(I,r,n){"use strict";var e=n(63964),a=n(50233).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},6403:function(I,r,n){"use strict";var e=n(63964),a=n(71138),t=n(27193).f,o=n(10188),m=n(12605),S=n(86213),y=n(16952),k=n(45490),V=n(4493),p=a("".slice),i=Math.min,c=k("endsWith"),s=!V&&!c&&!!function(){var u=t(String.prototype,"endsWith");return u&&!u.writable}();e({target:"String",proto:!0,forced:!s&&!c},{endsWith:function(){function u(d){var f=m(y(this));S(d);var l=arguments.length>1?arguments[1]:void 0,C=f.length,b=l===void 0?C:i(o(l),C),v=m(d);return p(f,b-v.length,b)===v}return u}()})},39308:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},91550:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(m){return a(this,"font","color",m)}return o}()})},75008:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(m){return a(this,"font","size",m)}return o}()})},9867:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(13912),o=RangeError,m=String.fromCharCode,S=String.fromCodePoint,y=a([].join),k=!!S&&S.length!==1;e({target:"String",stat:!0,arity:1,forced:k},{fromCodePoint:function(){function V(p){for(var i=[],c=arguments.length,s=0,u;c>s;){if(u=+arguments[s++],t(u,1114111)!==u)throw new o(u+" is not a valid code point");i[s]=u<65536?m(u):m(((u-=65536)>>10)+55296,u%1024+56320)}return y(i,"")}return V}()})},43673:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(86213),o=n(16952),m=n(12605),S=n(45490),y=a("".indexOf);e({target:"String",proto:!0,forced:!S("includes")},{includes:function(){function k(V){return!!~y(m(o(this)),m(t(V)),arguments.length>1?arguments[1]:void 0)}return k}()})},56027:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},12354:function(I,r,n){"use strict";var e=n(50233).charAt,a=n(12605),t=n(5419),o=n(65574),m=n(5959),S="String Iterator",y=t.set,k=t.getterFor(S);o(String,"String",function(V){y(this,{type:S,string:a(V),index:0})},function(){function V(){var p=k(this),i=p.string,c=p.index,s;return c>=i.length?m(void 0,!0):(s=e(i,c),p.index+=s.length,m(s,!1))}return V}())},50340:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(m){return a(this,"a","href",m)}return o}()})},22515:function(I,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),m=n(10188),S=n(12605),y=n(16952),k=n(78060),V=n(35483),p=n(28340);a("match",function(i,c,s){return[function(){function u(d){var f=y(this),l=o(d)?void 0:k(d,i);return l?e(l,d,f):new RegExp(d)[i](S(f))}return u}(),function(u){var d=t(this),f=S(u),l=s(c,d,f);if(l.done)return l.value;if(!d.global)return p(d,f);var C=d.unicode;d.lastIndex=0;for(var b=[],v=0,h;(h=p(d,f))!==null;){var g=S(h[0]);b[v]=g,g===""&&(d.lastIndex=V(f,m(d.lastIndex),C)),v++}return v===0?null:b}]})},5143:function(I,r,n){"use strict";var e=n(63964),a=n(24051).end,t=n(34125);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}return o}()})},93514:function(I,r,n){"use strict";var e=n(63964),a=n(24051).start,t=n(34125);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}return o}()})},5416:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(57591),o=n(46771),m=n(12605),S=n(24760),y=a([].push),k=a([].join);e({target:"String",stat:!0},{raw:function(){function V(p){var i=t(o(p).raw),c=S(i);if(!c)return"";for(var s=arguments.length,u=[],d=0;;){if(y(u,m(i[d++])),d===c)return k(u,"");d")!=="7"});o("replace",function(w,A,O){var M=T?"$":"$0";return[function(){function P(R,F){var _=c(this),U=k(R)?void 0:u(R,C);return U?a(U,R,_,F):a(A,i(_),R,F)}return P}(),function(P,R){var F=S(this),_=i(P);if(typeof R=="string"&&N(R,M)===-1&&N(R,"$<")===-1){var U=O(A,F,_,R);if(U.done)return U.value}var W=y(R);W||(R=i(R));var $=F.global,Y;$&&(Y=F.unicode,F.lastIndex=0);for(var ne=[],G;G=f(F,_),!(G===null||(g(ne,G),!$));){var le=i(G[0]);le===""&&(F.lastIndex=s(_,p(F.lastIndex),Y))}for(var de="",oe=0,re=0;re=oe&&(de+=x(_,oe,ae)+X,oe=ae+q.length)}return de+x(_,oe)}]},!E||!L||T)},63272:function(I,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),m=n(16952),S=n(5700),y=n(12605),k=n(78060),V=n(28340);a("search",function(p,i,c){return[function(){function s(u){var d=m(this),f=o(u)?void 0:k(u,p);return f?e(f,u,d):new RegExp(u)[p](y(d))}return s}(),function(s){var u=t(this),d=y(s),f=c(i,u,d);if(f.done)return f.value;var l=u.lastIndex;S(l,0)||(u.lastIndex=0);var C=V(u,d);return S(u.lastIndex,l)||(u.lastIndex=l),C===null?-1:C.index}]})},34325:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},39930:function(I,r,n){"use strict";var e=n(91495),a=n(67250),t=n(79942),o=n(30365),m=n(42871),S=n(16952),y=n(28987),k=n(35483),V=n(10188),p=n(12605),i=n(78060),c=n(28340),s=n(62115),u=n(40033),d=s.UNSUPPORTED_Y,f=4294967295,l=Math.min,C=a([].push),b=a("".slice),v=!u(function(){var g=/(?:)/,N=g.exec;g.exec=function(){return N.apply(this,arguments)};var x="ab".split(g);return x.length!==2||x[0]!=="a"||x[1]!=="b"}),h="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;t("split",function(g,N,x){var B="0".split(void 0,0).length?function(L,T){return L===void 0&&T===0?[]:e(N,this,L,T)}:N;return[function(){function L(T,E){var w=S(this),A=m(T)?void 0:i(T,g);return A?e(A,T,w,E):e(B,p(w),T,E)}return L}(),function(L,T){var E=o(this),w=p(L);if(!h){var A=x(B,E,w,T,B!==N);if(A.done)return A.value}var O=y(E,RegExp),M=E.unicode,P=(E.ignoreCase?"i":"")+(E.multiline?"m":"")+(E.unicode?"u":"")+(d?"g":"y"),R=new O(d?"^(?:"+E.source+")":E,P),F=T===void 0?f:T>>>0;if(F===0)return[];if(w.length===0)return c(R,w)===null?[w]:[];for(var _=0,U=0,W=[];U1?arguments[1]:void 0,f.length)),C=m(d);return p(f,l,l+C.length)===C}return u}()})},74498:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},15812:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},57726:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},70604:function(I,r,n){"use strict";n(99159);var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},85404:function(I,r,n){"use strict";var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},99159:function(I,r,n){"use strict";var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},34965:function(I,r,n){"use strict";n(85404);var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},8448:function(I,r,n){"use strict";var e=n(63964),a=n(92648).trim,t=n(90012);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},79250:function(I,r,n){"use strict";var e=n(85889);e("asyncIterator")},49899:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(91495),o=n(67250),m=n(4493),S=n(58310),y=n(52357),k=n(40033),V=n(45299),p=n(21287),i=n(30365),c=n(57591),s=n(767),u=n(12605),d=n(87458),f=n(80674),l=n(18450),C=n(37310),b=n(81644),v=n(89235),h=n(27193),g=n(74595),N=n(24239),x=n(12867),B=n(55938),L=n(73936),T=n(16639),E=n(19417),w=n(79195),A=n(16738),O=n(24697),M=n(55557),P=n(85889),R=n(52360),F=n(84925),_=n(5419),U=n(22603).forEach,W=E("hidden"),$="Symbol",Y="prototype",ne=_.set,G=_.getterFor($),le=Object[Y],de=a.Symbol,oe=de&&de[Y],re=a.RangeError,q=a.TypeError,ae=a.QObject,J=h.f,X=g.f,Q=b.f,Z=x.f,te=o([].push),fe=T("symbols"),ye=T("op-symbols"),pe=T("wks"),Le=!ae||!ae[Y]||!ae[Y].findChild,D=function(Ve,ke,H){var ue=J(le,ke);ue&&delete le[ke],X(Ve,ke,H),ue&&Ve!==le&&X(le,ke,ue)},ie=S&&k(function(){return f(X({},"a",{get:function(){function Pe(){return X(this,"a",{value:7}).a}return Pe}()})).a!==7})?D:X,se=function(Ve,ke){var H=fe[Ve]=f(oe);return ne(H,{type:$,tag:Ve,description:ke}),S||(H.description=ke),H},Ce=function(){function Pe(Ve,ke,H){Ve===le&&Ce(ye,ke,H),i(Ve);var ue=s(ke);return i(H),V(fe,ue)?(H.enumerable?(V(Ve,W)&&Ve[W][ue]&&(Ve[W][ue]=!1),H=f(H,{enumerable:d(0,!1)})):(V(Ve,W)||X(Ve,W,d(1,f(null))),Ve[W][ue]=!0),ie(Ve,ue,H)):X(Ve,ue,H)}return Pe}(),he=function(){function Pe(Ve,ke){i(Ve);var H=c(ke),ue=l(H).concat(_e(H));return U(ue,function(be){(!S||t(Be,H,be))&&Ce(Ve,be,H[be])}),Ve}return Pe}(),ve=function(){function Pe(Ve,ke){return ke===void 0?f(Ve):he(f(Ve),ke)}return Pe}(),Be=function(){function Pe(Ve){var ke=s(Ve),H=t(Z,this,ke);return this===le&&V(fe,ke)&&!V(ye,ke)?!1:H||!V(this,ke)||!V(fe,ke)||V(this,W)&&this[W][ke]?H:!0}return Pe}(),we=function(){function Pe(Ve,ke){var H=c(Ve),ue=s(ke);if(!(H===le&&V(fe,ue)&&!V(ye,ue))){var be=J(H,ue);return be&&V(fe,ue)&&!(V(H,W)&&H[W][ue])&&(be.enumerable=!0),be}}return Pe}(),Re=function(){function Pe(Ve){var ke=Q(c(Ve)),H=[];return U(ke,function(ue){!V(fe,ue)&&!V(w,ue)&&te(H,ue)}),H}return Pe}(),_e=function(Ve){var ke=Ve===le,H=Q(ke?ye:c(Ve)),ue=[];return U(H,function(be){V(fe,be)&&(!ke||V(le,be))&&te(ue,fe[be])}),ue};y||(de=function(){function Pe(){if(p(oe,this))throw new q("Symbol is not a constructor");var Ve=!arguments.length||arguments[0]===void 0?void 0:u(arguments[0]),ke=A(Ve),H=function(){function ue(be){var Se=this===void 0?a:this;Se===le&&t(H,ye,be),V(Se,W)&&V(Se[W],ke)&&(Se[W][ke]=!1);var Ie=d(1,be);try{ie(Se,ke,Ie)}catch(Ee){if(!(Ee instanceof re))throw Ee;D(Se,ke,Ie)}}return ue}();return S&&Le&&ie(le,ke,{configurable:!0,set:H}),se(ke,Ve)}return Pe}(),oe=de[Y],B(oe,"toString",function(){function Pe(){return G(this).tag}return Pe}()),B(de,"withoutSetter",function(Pe){return se(A(Pe),Pe)}),x.f=Be,g.f=Ce,N.f=he,h.f=we,C.f=b.f=Re,v.f=_e,M.f=function(Pe){return se(O(Pe),Pe)},S&&(L(oe,"description",{configurable:!0,get:function(){function Pe(){return G(this).description}return Pe}()}),m||B(le,"propertyIsEnumerable",Be,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!y,sham:!y},{Symbol:de}),U(l(pe),function(Pe){P(Pe)}),e({target:$,stat:!0,forced:!y},{useSetter:function(){function Pe(){Le=!0}return Pe}(),useSimple:function(){function Pe(){Le=!1}return Pe}()}),e({target:"Object",stat:!0,forced:!y,sham:!S},{create:ve,defineProperty:Ce,defineProperties:he,getOwnPropertyDescriptor:we}),e({target:"Object",stat:!0,forced:!y},{getOwnPropertyNames:Re}),R(),F(de,$),w[W]=!0},10933:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(16210),o=n(67250),m=n(45299),S=n(55747),y=n(21287),k=n(12605),V=n(73936),p=n(5774),i=t.Symbol,c=i&&i.prototype;if(a&&S(i)&&(!("description"in c)||i().description!==void 0)){var s={},u=function(){function h(){var g=arguments.length<1||arguments[0]===void 0?void 0:k(arguments[0]),N=y(c,this)?new i(g):g===void 0?i():i(g);return g===""&&(s[N]=!0),N}return h}();p(u,i),u.prototype=c,c.constructor=u;var d=String(i("description detection"))==="Symbol(description detection)",f=o(c.valueOf),l=o(c.toString),C=/^Symbol\((.*)\)[^)]+$/,b=o("".replace),v=o("".slice);V(c,"description",{configurable:!0,get:function(){function h(){var g=f(this);if(m(s,g))return"";var N=l(g),x=d?v(N,7,-1):b(N,C,"$1");return x===""?void 0:x}return h}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:u})}},30828:function(I,r,n){"use strict";var e=n(63964),a=n(4009),t=n(45299),o=n(12605),m=n(16639),S=n(66570),y=m("string-to-symbol-registry"),k=m("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!S},{for:function(){function V(p){var i=o(p);if(t(y,i))return y[i];var c=a("Symbol")(i);return y[i]=c,k[c]=i,c}return V}()})},53795:function(I,r,n){"use strict";var e=n(85889);e("hasInstance")},87806:function(I,r,n){"use strict";var e=n(85889);e("isConcatSpreadable")},64677:function(I,r,n){"use strict";var e=n(85889);e("iterator")},33313:function(I,r,n){"use strict";n(49899),n(30828),n(6862),n(53008),n(28603)},6862:function(I,r,n){"use strict";var e=n(63964),a=n(45299),t=n(71399),o=n(89393),m=n(16639),S=n(66570),y=m("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!S},{keyFor:function(){function k(V){if(!t(V))throw new TypeError(o(V)+" is not a symbol");if(a(y,V))return y[V]}return k}()})},48058:function(I,r,n){"use strict";var e=n(85889);e("match")},51583:function(I,r,n){"use strict";var e=n(85889);e("replace")},82403:function(I,r,n){"use strict";var e=n(85889);e("search")},34265:function(I,r,n){"use strict";var e=n(85889);e("species")},3295:function(I,r,n){"use strict";var e=n(85889);e("split")},1078:function(I,r,n){"use strict";var e=n(85889),a=n(52360);e("toPrimitive"),a()},63207:function(I,r,n){"use strict";var e=n(4009),a=n(85889),t=n(84925);a("toStringTag"),t(e("Symbol"),"Symbol")},80520:function(I,r,n){"use strict";var e=n(85889);e("unscopables")},99872:function(I,r,n){"use strict";var e=n(67250),a=n(4246),t=n(71447),o=e(t),m=a.aTypedArray,S=a.exportTypedArrayMethod;S("copyWithin",function(){function y(k,V){return o(m(this),k,V,arguments.length>2?arguments[2]:void 0)}return y}())},73364:function(I,r,n){"use strict";var e=n(4246),a=n(22603).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function m(S){return a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},58166:function(I,r,n){"use strict";var e=n(4246),a=n(88471),t=n(61484),o=n(2281),m=n(91495),S=n(67250),y=n(40033),k=e.aTypedArray,V=e.exportTypedArrayMethod,p=S("".slice),i=y(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function s(){return c++}return s}()}),c!==1});V("fill",function(){function c(s){var u=arguments.length;k(this);var d=p(o(this),0,3)==="Big"?t(s):+s;return m(a,this,d,u>1?arguments[1]:void 0,u>2?arguments[2]:void 0)}return c}(),i)},23793:function(I,r,n){"use strict";var e=n(4246),a=n(22603).filter,t=n(45399),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("filter",function(){function S(y){var k=a(o(this),y,arguments.length>1?arguments[1]:void 0);return t(this,k)}return S}())},13917:function(I,r,n){"use strict";var e=n(4246),a=n(22603).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function m(S){return a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},43820:function(I,r,n){"use strict";var e=n(4246),a=n(22603).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function m(S){return a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},80756:function(I,r,n){"use strict";var e=n(80185);e("Float32",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},70567:function(I,r,n){"use strict";var e=n(80185);e("Float64",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},19852:function(I,r,n){"use strict";var e=n(4246),a=n(22603).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function m(S){a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},40379:function(I,r,n){"use strict";var e=n(86563),a=n(4246).exportTypedArrayStaticMethod,t=n(3805);a("from",t,e)},92770:function(I,r,n){"use strict";var e=n(4246),a=n(14211).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function m(S){return a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},81069:function(I,r,n){"use strict";var e=n(4246),a=n(14211).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function m(S){return a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},60037:function(I,r,n){"use strict";var e=n(80185);e("Int16",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},44195:function(I,r,n){"use strict";var e=n(80185);e("Int32",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},66756:function(I,r,n){"use strict";var e=n(80185);e("Int8",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},63689:function(I,r,n){"use strict";var e=n(16210),a=n(40033),t=n(67250),o=n(4246),m=n(34570),S=n(24697),y=S("iterator"),k=e.Uint8Array,V=t(m.values),p=t(m.keys),i=t(m.entries),c=o.aTypedArray,s=o.exportTypedArrayMethod,u=k&&k.prototype,d=!a(function(){u[y].call([1])}),f=!!u&&u.values&&u[y]===u.values&&u.values.name==="values",l=function(){function C(){return V(c(this))}return C}();s("entries",function(){function C(){return i(c(this))}return C}(),d),s("keys",function(){function C(){return p(c(this))}return C}(),d),s("values",l,d||!f,{name:"values"}),s(y,l,d||!f,{name:"values"})},5659:function(I,r,n){"use strict";var e=n(4246),a=n(67250),t=e.aTypedArray,o=e.exportTypedArrayMethod,m=a([].join);o("join",function(){function S(y){return m(t(this),y)}return S}())},25014:function(I,r,n){"use strict";var e=n(4246),a=n(61267),t=n(1325),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("lastIndexOf",function(){function S(y){var k=arguments.length;return a(t,o(this),k>1?[y,arguments[1]]:[y])}return S}())},32189:function(I,r,n){"use strict";var e=n(4246),a=n(22603).map,t=n(31082),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("map",function(){function S(y){return a(o(this),y,arguments.length>1?arguments[1]:void 0,function(k,V){return new(t(k))(V)})}return S}())},23030:function(I,r,n){"use strict";var e=n(4246),a=n(86563),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function m(){for(var S=0,y=arguments.length,k=new(t(this))(y);y>S;)k[S]=arguments[S++];return k}return m}(),a)},49110:function(I,r,n){"use strict";var e=n(4246),a=n(56844).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function m(S){var y=arguments.length;return a(t(this),S,y,y>1?arguments[1]:void 0)}return m}())},24309:function(I,r,n){"use strict";var e=n(4246),a=n(56844).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function m(S){var y=arguments.length;return a(t(this),S,y,y>1?arguments[1]:void 0)}return m}())},56445:function(I,r,n){"use strict";var e=n(4246),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function m(){for(var S=this,y=a(S).length,k=o(y/2),V=0,p;V1?arguments[1]:void 0,1),b=S(l);if(u)return a(i,this,b,C);var v=this.length,h=o(b),g=0;if(h+C>v)throw new k("Wrong length");for(;gs;)d[s]=i[s++];return d}return k}(),y)},88739:function(I,r,n){"use strict";var e=n(4246),a=n(22603).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function m(S){return a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},60415:function(I,r,n){"use strict";var e=n(16210),a=n(71138),t=n(40033),o=n(10320),m=n(90274),S=n(4246),y=n(50503),k=n(79725),V=n(83141),p=n(44981),i=S.aTypedArray,c=S.exportTypedArrayMethod,s=e.Uint16Array,u=s&&a(s.prototype.sort),d=!!u&&!(t(function(){u(new s(2),null)})&&t(function(){u(new s(2),{})})),f=!!u&&!t(function(){if(V)return V<74;if(y)return y<67;if(k)return!0;if(p)return p<602;var C=new s(516),b=Array(516),v,h;for(v=0;v<516;v++)h=v%4,C[v]=515-v,b[v]=v-2*h+3;for(u(C,function(g,N){return(g/4|0)-(N/4|0)}),v=0;v<516;v++)if(C[v]!==b[v])return!0}),l=function(b){return function(v,h){return b!==void 0?+b(v,h)||0:h!==h?-1:v!==v?1:v===0&&h===0?1/v>0&&1/h<0?1:-1:v>h}};c("sort",function(){function C(b){return b!==void 0&&o(b),f?u(this,b):m(i(this),l(b))}return C}(),!f||d)},72532:function(I,r,n){"use strict";var e=n(4246),a=n(10188),t=n(13912),o=n(31082),m=e.aTypedArray,S=e.exportTypedArrayMethod;S("subarray",function(){function y(k,V){var p=m(this),i=p.length,c=t(k,i),s=o(p);return new s(p.buffer,p.byteOffset+c*p.BYTES_PER_ELEMENT,a((V===void 0?i:t(V,i))-c))}return y}())},62207:function(I,r,n){"use strict";var e=n(16210),a=n(61267),t=n(4246),o=n(40033),m=n(54602),S=e.Int8Array,y=t.aTypedArray,k=t.exportTypedArrayMethod,V=[].toLocaleString,p=!!S&&o(function(){V.call(new S(1))}),i=o(function(){return[1,2].toLocaleString()!==new S([1,2]).toLocaleString()})||!o(function(){S.prototype.toLocaleString.call([1,2])});k("toLocaleString",function(){function c(){return a(V,p?m(y(this)):y(this),m(arguments))}return c}(),i)},906:function(I,r,n){"use strict";var e=n(4246).exportTypedArrayMethod,a=n(40033),t=n(16210),o=n(67250),m=t.Uint8Array,S=m&&m.prototype||{},y=[].toString,k=o([].join);a(function(){y.call({})})&&(y=function(){function p(){return k(this)}return p}());var V=S.toString!==y;e("toString",y,V)},78824:function(I,r,n){"use strict";var e=n(80185);e("Uint16",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},72846:function(I,r,n){"use strict";var e=n(80185);e("Uint32",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},24575:function(I,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},71968:function(I,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()},!0)},80040:function(I,r,n){"use strict";var e=n(50730),a=n(16210),t=n(67250),o=n(30145),m=n(81969),S=n(45150),y=n(39895),k=n(77568),V=n(5419).enforce,p=n(40033),i=n(21820),c=Object,s=Array.isArray,u=c.isExtensible,d=c.isFrozen,f=c.isSealed,l=c.freeze,C=c.seal,b=!a.ActiveXObject&&"ActiveXObject"in a,v,h=function(A){return function(){function O(){return A(this,arguments.length?arguments[0]:void 0)}return O}()},g=S("WeakMap",h,y),N=g.prototype,x=t(N.set),B=function(){return e&&p(function(){var A=l([]);return x(new g,A,1),!d(A)})};if(i)if(b){v=y.getConstructor(h,"WeakMap",!0),m.enable();var L=t(N.delete),T=t(N.has),E=t(N.get);o(N,{delete:function(){function w(A){if(k(A)&&!u(A)){var O=V(this);return O.frozen||(O.frozen=new v),L(this,A)||O.frozen.delete(A)}return L(this,A)}return w}(),has:function(){function w(A){if(k(A)&&!u(A)){var O=V(this);return O.frozen||(O.frozen=new v),T(this,A)||O.frozen.has(A)}return T(this,A)}return w}(),get:function(){function w(A){if(k(A)&&!u(A)){var O=V(this);return O.frozen||(O.frozen=new v),T(this,A)?E(this,A):O.frozen.get(A)}return E(this,A)}return w}(),set:function(){function w(A,O){if(k(A)&&!u(A)){var M=V(this);M.frozen||(M.frozen=new v),T(this,A)?x(this,A,O):M.frozen.set(A,O)}else x(this,A,O);return this}return w}()})}else B()&&o(N,{set:function(){function w(A,O){var M;return s(A)&&(d(A)?M=l:f(A)&&(M=C)),x(this,A,O),M&&M(A),this}return w}()})},90846:function(I,r,n){"use strict";n(80040)},67042:function(I,r,n){"use strict";var e=n(45150),a=n(39895);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},40348:function(I,r,n){"use strict";n(67042)},5606:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(60375).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},83006:function(I,r,n){"use strict";n(5606),n(27807)},25764:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(37713),o=n(10320),m=n(24986),S=n(40033),y=n(58310),k=S(function(){return y&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:k},{queueMicrotask:function(){function V(p){m(arguments.length,1),t(o(p))}return V}()})},27807:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(60375).set,o=n(78362),m=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==m},{setImmediate:m})},45569:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(78362),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},5213:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(78362),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},69401:function(I,r,n){"use strict";n(45569),n(5213)},7435:function(I){"use strict";/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var r,n=[],e=[],a=function(){if(0)var V;window.onunload=function(){return r&&r.close()}},t=function(V){return e.push(V)},o=function(V){var p=[],i=function(d){return typeof d=="number"&&!Number.isFinite(d)?{__number__:String(d)}:typeof d=="undefined"?{__undefined__:!0}:d},c=function(d,f){if(typeof f=="object"){if(f===null)return f;if(p.includes(f))return"[circular ref]";p.push(f);var u=f instanceof Error||f.code&&f.message&&f.message.includes("Error");return u?{__error__:!0,string:String(f),stack:f.stack}:Array.isArray(f)?f.map(i):f}return i(f)},s=JSON.stringify(V,c);return p=null,s},m=function(V){if(0)var p,i,c},S=function(V,p){if(0)var i,c,s},y=function(){};I.exports={subscribe:t,sendMessage:m,sendLogEntry:S,setupHotReloading:y}}},xt={};function ce(I){var r=xt[I];if(r!==void 0)return r.exports;var n=xt[I]={exports:{}};return Xt[I](n,n.exports,ce),n.exports}(function(){ce.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(I){if(typeof window=="object")return window}}()})(),function(){ce.o=function(I,r){return Object.prototype.hasOwnProperty.call(I,r)}}();var Dn={};(function(){"use strict";ce(33313),ce(10933),ce(79250),ce(53795),ce(87806),ce(64677),ce(48058),ce(51583),ce(82403),ce(34265),ce(3295),ce(1078),ce(63207),ce(80520),ce(39600),ce(93237),ce(32057),ce(68933),ce(47830),ce(13455),ce(64094),ce(61915),ce(32384),ce(25579),ce(63532),ce(33425),ce(43894),ce(99636),ce(34570),ce(94432),ce(24683),ce(69984),ce(32089),ce(60206),ce(29645),ce(4788),ce(58672),ce(19356),ce(48968),ce(49852),ce(2712),ce(864),ce(54243),ce(75621),ce(26267),ce(50095),ce(33451),ce(74587),ce(25082),ce(47421),ce(32122),ce(6306),ce(90216),ce(84663),ce(92332),ce(98329),ce(9631),ce(47091),ce(59660),ce(15383),ce(92866),ce(86107),ce(29248),ce(52540),ce(79007),ce(77199),ce(6522),ce(95542),ce(2966),ce(20997),ce(57400),ce(45571),ce(54800),ce(15709),ce(76059),ce(96614),ce(324),ce(90426),ce(95443),ce(87968),ce(55007),ce(55323),ce(13521),ce(5006),ce(99009),ce(85770),ce(23532),ce(87119),ce(78618),ce(27129),ce(31943),ce(3579),ce(97397),ce(85028),ce(8225),ce(43331),ce(62289),ce(56196),ce(2950),ce(44205),ce(76882),ce(83186),ce(76065),ce(13411),ce(26634),ce(53118),ce(42514),ce(84353),ce(62987),ce(48993),ce(52917),ce(4972),ce(28913),ce(36382),ce(53092),ce(69861),ce(29674),ce(81543),ce(9373),ce(45093),ce(63074),ce(5815),ce(88527),ce(66390),ce(7784),ce(50551),ce(76483),ce(92046),ce(63915),ce(51454),ce(79669),ce(23057),ce(57983),ce(17953),ce(30442),ce(6403),ce(9867),ce(43673),ce(12354),ce(22515),ce(5143),ce(93514),ce(5416),ce(11619),ce(44590),ce(63272),ce(39930),ce(4038),ce(8448),ce(70604),ce(34965),ce(95309),ce(82256),ce(49484),ce(38931),ce(39308),ce(91550),ce(75008),ce(56027),ce(50340),ce(34325),ce(74498),ce(15812),ce(57726),ce(80756),ce(70567),ce(66756),ce(60037),ce(44195),ce(24575),ce(71968),ce(78824),ce(72846),ce(99872),ce(73364),ce(58166),ce(23793),ce(43820),ce(13917),ce(19852),ce(40379),ce(92770),ce(81069),ce(63689),ce(5659),ce(25014),ce(32189),ce(23030),ce(24309),ce(49110),ce(56445),ce(30939),ce(48321),ce(88739),ce(60415),ce(72532),ce(62207),ce(906),ce(90846),ce(40348),ce(83006),ce(25764),ce(69401),ce(95012),ce(30236)})(),function(){"use strict";var I=ce(89005);ce(67160),ce(23542),ce(30386),ce(98996),ce(41639),ce(50578),ce(4444),ce(77870),ce(39108),ce(21039),ce(51862),ce(56856),ce(1272),ce(74757),ce(1965),ce(63489),ce(24226),ce(11714),ce(73492),ce(49641),ce(17570),ce(61858),ce(73358),ce(32882),ce(23632);var r=ce(85822),n=ce(7435),e=ce(56518),a=ce(26427),t=ce(18498),o=ce(49060),m=ce(72178),S=ce(24826),y;/** + */var r,n=[],e=[],a=function(){if(0)var V;window.onunload=function(){return r&&r.close()}},t=function(V){return e.push(V)},o=function(V){var p=[],i=function(d){return typeof d=="number"&&!Number.isFinite(d)?{__number__:String(d)}:typeof d=="undefined"?{__undefined__:!0}:d},c=function(d,f){if(typeof f=="object"){if(f===null)return f;if(p.includes(f))return"[circular ref]";p.push(f);var l=f instanceof Error||f.code&&f.message&&f.message.includes("Error");return l?{__error__:!0,string:String(f),stack:f.stack}:Array.isArray(f)?f.map(i):f}return i(f)},s=JSON.stringify(V,c);return p=null,s},m=function(V){if(0)var p,i,c},S=function(V,p){if(0)var i,c,s},y=function(){};I.exports={subscribe:t,sendMessage:m,sendLogEntry:S,setupHotReloading:y}}},xt={};function ce(I){var r=xt[I];if(r!==void 0)return r.exports;var n=xt[I]={exports:{}};return Qt[I](n,n.exports,ce),n.exports}(function(){ce.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(I){if(typeof window=="object")return window}}()})(),function(){ce.o=function(I,r){return Object.prototype.hasOwnProperty.call(I,r)}}();var Dn={};(function(){"use strict";ce(33313),ce(10933),ce(79250),ce(53795),ce(87806),ce(64677),ce(48058),ce(51583),ce(82403),ce(34265),ce(3295),ce(1078),ce(63207),ce(80520),ce(39600),ce(93237),ce(32057),ce(68933),ce(47830),ce(13455),ce(64094),ce(61915),ce(32384),ce(25579),ce(63532),ce(33425),ce(43894),ce(99636),ce(34570),ce(94432),ce(24683),ce(69984),ce(32089),ce(60206),ce(29645),ce(4788),ce(58672),ce(19356),ce(48968),ce(49852),ce(2712),ce(864),ce(54243),ce(75621),ce(26267),ce(50095),ce(33451),ce(74587),ce(25082),ce(47421),ce(32122),ce(6306),ce(90216),ce(84663),ce(92332),ce(98329),ce(9631),ce(47091),ce(59660),ce(15383),ce(92866),ce(86107),ce(29248),ce(52540),ce(79007),ce(77199),ce(6522),ce(95542),ce(2966),ce(20997),ce(57400),ce(45571),ce(54800),ce(15709),ce(76059),ce(96614),ce(324),ce(90426),ce(95443),ce(87968),ce(55007),ce(55323),ce(13521),ce(5006),ce(99009),ce(85770),ce(23532),ce(87119),ce(78618),ce(27129),ce(31943),ce(3579),ce(97397),ce(85028),ce(8225),ce(43331),ce(62289),ce(56196),ce(2950),ce(44205),ce(76882),ce(83186),ce(76065),ce(13411),ce(26634),ce(53118),ce(42514),ce(84353),ce(62987),ce(48993),ce(52917),ce(4972),ce(28913),ce(36382),ce(53092),ce(69861),ce(29674),ce(81543),ce(9373),ce(45093),ce(63074),ce(5815),ce(88527),ce(66390),ce(7784),ce(50551),ce(76483),ce(92046),ce(63915),ce(51454),ce(79669),ce(23057),ce(57983),ce(17953),ce(30442),ce(6403),ce(9867),ce(43673),ce(12354),ce(22515),ce(5143),ce(93514),ce(5416),ce(11619),ce(44590),ce(63272),ce(39930),ce(4038),ce(8448),ce(70604),ce(34965),ce(95309),ce(82256),ce(49484),ce(38931),ce(39308),ce(91550),ce(75008),ce(56027),ce(50340),ce(34325),ce(74498),ce(15812),ce(57726),ce(80756),ce(70567),ce(66756),ce(60037),ce(44195),ce(24575),ce(71968),ce(78824),ce(72846),ce(99872),ce(73364),ce(58166),ce(23793),ce(43820),ce(13917),ce(19852),ce(40379),ce(92770),ce(81069),ce(63689),ce(5659),ce(25014),ce(32189),ce(23030),ce(24309),ce(49110),ce(56445),ce(30939),ce(48321),ce(88739),ce(60415),ce(72532),ce(62207),ce(906),ce(90846),ce(40348),ce(83006),ce(25764),ce(69401),ce(95012),ce(30236)})(),function(){"use strict";var I=ce(89005);ce(67160),ce(23542),ce(30386),ce(98996),ce(41639),ce(50578),ce(4444),ce(77870),ce(39108),ce(21039),ce(51862),ce(56856),ce(1272),ce(74757),ce(1965),ce(63489),ce(24226),ce(11714),ce(73492),ce(49641),ce(17570),ce(61858),ce(73358),ce(32882),ce(23632);var r=ce(85822),n=ce(7435),e=ce(56518),a=ce(26427),t=ce(18498),o=ce(49060),m=ce(72178),S=ce(24826),y;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT