diff --git a/code/controllers/subsystem/jobs.dm b/code/controllers/subsystem/jobs.dm index b83e6187486..2991e162d78 100644 --- a/code/controllers/subsystem/jobs.dm +++ b/code/controllers/subsystem/jobs.dm @@ -667,6 +667,21 @@ SUBSYSTEM_DEF(jobs) H.mind.initial_account = M + H.mind.initial_account.insurance_type = job.insurance_type + switch (job.insurance_type) + if (INSURANCE_TYPE_NONE) + H.mind.initial_account.insurance = INSURANCE_NONE + if (INSURANCE_TYPE_BUDGETARY) + H.mind.initial_account.insurance = INSURANCE_BUDGETARY + if (INSURANCE_TYPE_STANDART) + H.mind.initial_account.insurance = INSURANCE_STANDART + if (INSURANCE_TYPE_EXTENDED) + H.mind.initial_account.insurance = INSURANCE_EXTENDED + if (INSURANCE_TYPE_DELUXE) + H.mind.initial_account.insurance = INSURANCE_DELUXE + if (INSURANCE_TYPE_NT_SPECIAL) + H.mind.initial_account.insurance = INSURANCE_NT_SPECIAL + spawn(0) to_chat(H, "Номер вашего аккаунта: [M.account_number], ПИН вашего аккаунта: [M.remote_access_pin]") diff --git a/code/game/jobs/job/job.dm b/code/game/jobs/job/job.dm index 6219e9edb15..562351f0259 100644 --- a/code/game/jobs/job/job.dm +++ b/code/game/jobs/job/job.dm @@ -282,24 +282,6 @@ C.age = H.age C.name = "[C.registered_name]'s ID Card ([C.assignment])" C.photo = get_id_photo(H) - - if(H.mind && H.mind.initial_account) - C.associated_account_number = H.mind.initial_account.account_number - H.mind.initial_account.insurance_type = J.insurance_type - switch (J.insurance_type) - if (INSURANCE_TYPE_NONE) - H.mind.initial_account.insurance = INSURANCE_NONE - if (INSURANCE_TYPE_BUDGETARY) - H.mind.initial_account.insurance = INSURANCE_BUDGETARY - if (INSURANCE_TYPE_STANDART) - H.mind.initial_account.insurance = INSURANCE_STANDART - if (INSURANCE_TYPE_EXTENDED) - H.mind.initial_account.insurance = INSURANCE_EXTENDED - if (INSURANCE_TYPE_DELUXE) - H.mind.initial_account.insurance = INSURANCE_DELUXE - if (INSURANCE_TYPE_NT_SPECIAL) - H.mind.initial_account.insurance = INSURANCE_NT_SPECIAL - C.owner_uid = H.UID() C.owner_ckey = H.ckey diff --git a/code/game/machinery/adv_med.dm b/code/game/machinery/adv_med.dm index b45df189573..a26d3df48f2 100644 --- a/code/game/machinery/adv_med.dm +++ b/code/game/machinery/adv_med.dm @@ -15,6 +15,7 @@ /obj/machinery/bodyscanner/Destroy() go_out() + eject_id() return ..() /obj/machinery/bodyscanner/power_change(forced = FALSE) @@ -171,6 +172,17 @@ add_fingerprint(user) ui_interact(user) +/obj/machinery/bodyscanner/attackby(obj/item/I, mob/user) + if (istype(I, /obj/item/card/id)) + if (inserted_id) + user.balloon_alert(src, "Занято") + else + inserted_id = I + I.forceMove(src) + user.balloon_alert(src, "Карта вставлена") + + . = ..() + /obj/machinery/bodyscanner/relaymove(mob/user) if(user.incapacitated() || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED)) return FALSE //maybe they should be able to get out with cuffs, but whatever @@ -197,6 +209,13 @@ A.forceMove(loc) SStgui.update_uis(src) +/obj/machinery/bodyscanner/proc/eject_id() + if(!inserted_id) + return + inserted_id.forceMove(loc) + inserted_id = null + SStgui.update_uis(src) + /obj/machinery/bodyscanner/force_eject_occupant(mob/target) go_out() @@ -232,6 +251,7 @@ var/list/data = list() data["occupied"] = occupant ? TRUE : FALSE + data["has_id"] = inserted_id ? TRUE : FALSE var/occupantData[0] if(occupant) @@ -390,6 +410,8 @@ isPrinting = FALSE if ("insurance") do_insurance_collection(occupant, inserted_id ? inserted_id.associated_account_number : null) + if ("eject_id") + eject_id() else return FALSE diff --git a/code/modules/economy/ATM.dm b/code/modules/economy/ATM.dm index b6108e220f4..64f7d9abe46 100644 --- a/code/modules/economy/ATM.dm +++ b/code/modules/economy/ATM.dm @@ -11,6 +11,7 @@ log transactions #define CHANGE_SECURITY_LEVEL 1 #define TRANSFER_FUNDS 2 #define VIEW_TRANSACTION_LOGS 3 +#define CHANGE_INSURANCE_TYPE 4 #define PRINT_DELAY 100 #define LOCKOUT_TIME 120 @@ -172,6 +173,7 @@ log transactions data["owner_name"] = authenticated_account.owner_name data["money"] = authenticated_account.money data["insurance"] = authenticated_account.insurance + data["insurance_type"] = authenticated_account.insurance_type data["security_level"] = authenticated_account.security_level var/list/trx = list() @@ -209,7 +211,7 @@ log transactions to_chat(usr, "[bicon(src)]You don't have enough funds to do that!") if("view_screen") - var/list/valid_screen = list(DEFAULT_SCREEN, CHANGE_SECURITY_LEVEL, TRANSFER_FUNDS, VIEW_TRANSACTION_LOGS) + var/list/valid_screen = list(DEFAULT_SCREEN, CHANGE_SECURITY_LEVEL, TRANSFER_FUNDS, VIEW_TRANSACTION_LOGS, CHANGE_INSURANCE_TYPE) var/screen_proper = text2num(params["view_screen"]) if(screen_proper in valid_screen) view_screen = screen_proper @@ -222,6 +224,11 @@ log transactions var/new_sec_level = max(min(params["new_security_level"], 2), 0) authenticated_account.security_level = new_sec_level + if("change_insurance_type") + if(authenticated_account) + var/new_insurance_type = params["new_insurance_type"] + authenticated_account.insurance_type = new_insurance_type + if("attempt_auth") if(linked_db) if(!ticks_left_locked_down) diff --git a/code/modules/economy/Accounts.dm b/code/modules/economy/Accounts.dm index 47cf31d560a..bfdb1b0bac9 100644 --- a/code/modules/economy/Accounts.dm +++ b/code/modules/economy/Accounts.dm @@ -51,7 +51,7 @@ GLOBAL_LIST_EMPTY(dna2account) //the current ingame time (hh:mm:ss) can be obtained by calling: //station_time_timestamp("hh:mm:ss") -/proc/create_account(var/new_owner_name = "Default user", var/starting_funds = 0, var/obj/machinery/computer/account_database/source_db) +/proc/create_account(var/new_owner_name = "Default user", var/starting_funds = 0, var/obj/machinery/computer/account_database/source_db, is_roundstart) //create a new account var/datum/money_account/M = new() diff --git a/code/modules/economy/Accounts_DB.dm b/code/modules/economy/Accounts_DB.dm index 9623b112db6..e05b769b38e 100644 --- a/code/modules/economy/Accounts_DB.dm +++ b/code/modules/economy/Accounts_DB.dm @@ -154,9 +154,11 @@ GLOBAL_VAR(current_date_string) starting_funds = clamp(starting_funds, 0, GLOB.station_account.money) // Not authorized to put the station in debt. starting_funds = min(starting_funds, fund_cap) // Not authorized to give more than the fund cap. - var/datum/money_account/M = create_account(account_name, starting_funds, src) + var/datum/money_account/M = create_account(account_name, starting_funds, src, FALSE) if(starting_funds > 0) GLOB.station_account.charge(starting_funds, null, "New account activation", "", "New account activation", M.owner_name) + M.insurance_type = INSURANCE_TYPE_BUDGETARY + M.insurance = INSURANCE_NONE current_page = AUT_ACCLST diff --git a/tgui/packages/tgui/interfaces/ATM.js b/tgui/packages/tgui/interfaces/ATM.js index 0e7f14b36e1..8a4979043c2 100644 --- a/tgui/packages/tgui/interfaces/ATM.js +++ b/tgui/packages/tgui/interfaces/ATM.js @@ -54,6 +54,9 @@ export const ATM = (props, context) => { case 3: // VIEW_TRANSACTION_LOGS body = ; break; + case 4: // CHANGE_INSURANCE_TYPE + body = ; + break; default: body = ; } @@ -197,14 +200,56 @@ const TransferFunds = (props, context) => { ); }; -const DefaultScreen = (props, context) => { +const ChangeInsuranceType = (props, context) => { const { act, data } = useBackend(context); - const [fundsAmount, insuranceAmount, setFundsAmount, setInsuranceAmount] = useLocalState( - context, - 'fundsAmount', - 'insuranceAmount', - 0 + const { insurance_type } = data; + return ( +
+ + +
); +}; + +const DefaultScreen = (props, context) => { + const { act, data } = useBackend(context); + const [fundsAmount, insuranceAmount, setFundsAmount, setInsuranceAmount] = + useLocalState(context, 'fundsAmount', 'insuranceAmount', 0); const { owner_name, money, insurance } = data; return ( <> @@ -231,7 +276,9 @@ const DefaultScreen = (props, context) => { /> - ${insurance} + + ${insurance} + setInsuranceAmount(value)} /> @@ -239,7 +286,9 @@ const DefaultScreen = (props, context) => { + } diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index c9ded6d2b0d..7d2bfb4bf2d 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1,26 +1,26 @@ -(function(){(function(){var Xt={96376:function(I,r,n){"use strict";r.__esModule=!0,r.createPopper=void 0,r.popperGenerator=f;var e=p(n(74758)),a=p(n(28811)),t=p(n(98309)),o=p(n(44896)),s=p(n(33118)),y=p(n(10579)),V=p(n(56500)),k=p(n(17633));r.detectOverflow=k.default;var S=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,m=new Array(d),l=0;l0&&(0,a.round)(p.width)/V.offsetWidth||1,c=V.offsetHeight>0&&(0,a.round)(p.height)/V.offsetHeight||1);var f=(0,e.isElement)(V)?(0,t.default)(V):window,u=f.visualViewport,d=!(0,o.default)()&&S,m=(p.left+(d&&u?u.offsetLeft:0))/i,l=(p.top+(d&&u?u.offsetTop:0))/c,v=p.width/i,b=p.height/c;return{width:v,height:b,top:l,right:m+v,bottom:l+b,left:m,x:m,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)),s=d(n(44896)),y=d(n(40600)),V=d(n(16599)),k=n(75573),S=d(n(37786)),p=d(n(57819)),i=d(n(4206)),c=d(n(12972)),f=d(n(81666)),u=n(63618);function d(N){return N&&N.__esModule?N:{default:N}}function m(N,h){var C=(0,S.default)(N,!1,h==="fixed");return C.top=C.top+N.clientTop,C.left=C.left+N.clientLeft,C.bottom=C.top+N.clientHeight,C.right=C.left+N.clientWidth,C.width=N.clientWidth,C.height=N.clientHeight,C.x=C.left,C.y=C.top,C}function l(N,h,C){return h===e.viewport?(0,f.default)((0,a.default)(N,C)):(0,k.isElement)(h)?m(h,C):(0,f.default)((0,t.default)((0,y.default)(N)))}function v(N){var h=(0,o.default)((0,p.default)(N)),C=["absolute","fixed"].indexOf((0,V.default)(N).position)>=0,g=C&&(0,k.isHTMLElement)(N)?(0,s.default)(N):N;return(0,k.isElement)(g)?h.filter(function(x){return(0,k.isElement)(x)&&(0,i.default)(x,g)&&(0,c.default)(x)!=="body"}):[]}function b(N,h,C,g){var x=h==="clippingParents"?v(N):[].concat(h),B=[].concat(x,[C]),L=B[0],w=B.reduce(function(A,T){var E=l(N,T,g);return A.top=(0,u.max)(E.top,A.top),A.right=(0,u.min)(E.right,A.right),A.bottom=(0,u.min)(E.bottom,A.bottom),A.left=(0,u.max)(E.left,A.left),A},l(N,L,g));return w.width=w.right-w.left,w.height=w.bottom-w.top,w.x=w.left,w.y=w.top,w}},74758:function(I,r,n){"use strict";r.__esModule=!0,r.default=i;var e=S(n(37786)),a=S(n(13390)),t=S(n(12972)),o=n(75573),s=S(n(79697)),y=S(n(40600)),V=S(n(10798)),k=n(63618);function S(c){return c&&c.__esModule?c:{default:c}}function p(c){var f=c.getBoundingClientRect(),u=(0,k.round)(f.width)/c.offsetWidth||1,d=(0,k.round)(f.height)/c.offsetHeight||1;return u!==1||d!==1}function i(c,f,u){u===void 0&&(u=!1);var d=(0,o.isHTMLElement)(f),m=(0,o.isHTMLElement)(f)&&p(f),l=(0,y.default)(f),v=(0,e.default)(c,m,u),b={scrollLeft:0,scrollTop:0},N={x:0,y:0};return(d||!d&&!u)&&(((0,t.default)(f)!=="body"||(0,V.default)(l))&&(b=(0,a.default)(f)),(0,o.isHTMLElement)(f)?(N=(0,e.default)(f,!0),N.x+=f.clientLeft,N.y+=f.clientTop):l&&(N.x=(0,s.default)(l))),{x:v.left+b.scrollLeft-N.x,y:v.top+b.scrollTop-N.y,width:v.width,height:v.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=V;var e=y(n(40600)),a=y(n(16599)),t=y(n(79697)),o=y(n(43750)),s=n(63618);function y(k){return k&&k.__esModule?k:{default:k}}function V(k){var S,p=(0,e.default)(k),i=(0,o.default)(k),c=(S=k.ownerDocument)==null?void 0:S.body,f=(0,s.max)(p.scrollWidth,p.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),u=(0,s.max)(p.scrollHeight,p.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),d=-i.scrollLeft+(0,t.default)(k),m=-i.scrollTop;return(0,a.default)(c||p).direction==="rtl"&&(d+=(0,s.max)(p.clientWidth,c?c.clientWidth:0)-f),{width:f,height:u,x:d,y:m}}},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 s=(0,e.default)(o),y=o.offsetWidth,V=o.offsetHeight;return Math.abs(s.width-y)<=1&&(y=s.width),Math.abs(s.height-V)<=1&&(V=s.height),{x:o.offsetLeft,y:o.offsetTop,width:y,height:V}}},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=y;var e=s(n(43750)),a=s(n(95115)),t=n(75573),o=s(n(3073));function s(V){return V&&V.__esModule?V:{default:V}}function y(V){return V===(0,a.default)(V)||!(0,t.isHTMLElement)(V)?(0,e.default)(V):(0,o.default)(V)}},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),s=k(n(87031)),y=k(n(57819)),V=k(n(35366));function k(c){return c&&c.__esModule?c:{default:c}}function S(c){return!(0,o.isHTMLElement)(c)||(0,t.default)(c).position==="fixed"?null:c.offsetParent}function p(c){var f=/firefox/i.test((0,V.default)()),u=/Trident/i.test((0,V.default)());if(u&&(0,o.isHTMLElement)(c)){var d=(0,t.default)(c);if(d.position==="fixed")return null}var m=(0,y.default)(c);for((0,o.isShadowRoot)(m)&&(m=m.host);(0,o.isHTMLElement)(m)&&["html","body"].indexOf((0,a.default)(m))<0;){var l=(0,t.default)(m);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||f&&l.willChange==="filter"||f&&l.filter&&l.filter!=="none")return m;m=m.parentNode}return null}function i(c){for(var f=(0,e.default)(c),u=S(c);u&&(0,s.default)(u)&&(0,t.default)(u).position==="static";)u=S(u);return u&&((0,a.default)(u)==="html"||(0,a.default)(u)==="body"&&(0,t.default)(u).position==="static")?f:u||p(c)||f}},57819:function(I,r,n){"use strict";r.__esModule=!0,r.default=s;var e=o(n(12972)),a=o(n(40600)),t=n(75573);function o(y){return y&&y.__esModule?y:{default:y}}function s(y){return(0,e.default)(y)==="html"?y:y.assignedSlot||y.parentNode||((0,t.isShadowRoot)(y)?y.host:null)||(0,a.default)(y)}},24426:function(I,r,n){"use strict";r.__esModule=!0,r.default=y;var e=s(n(57819)),a=s(n(10798)),t=s(n(12972)),o=n(75573);function s(V){return V&&V.__esModule?V:{default:V}}function y(V){return["html","body","#document"].indexOf((0,t.default)(V))>=0?V.ownerDocument.body:(0,o.isHTMLElement)(V)&&(0,a.default)(V)?V:y((0,e.default)(V))}},87991:function(I,r,n){"use strict";r.__esModule=!0,r.default=y;var e=s(n(95115)),a=s(n(40600)),t=s(n(79697)),o=s(n(89331));function s(V){return V&&V.__esModule?V:{default:V}}function y(V,k){var S=(0,e.default)(V),p=(0,a.default)(V),i=S.visualViewport,c=p.clientWidth,f=p.clientHeight,u=0,d=0;if(i){c=i.width,f=i.height;var m=(0,o.default)();(m||!m&&k==="fixed")&&(u=i.offsetLeft,d=i.offsetTop)}return{width:c,height:f,x:u+(0,t.default)(V),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 s=(0,e.default)(o),y=s.pageXOffset,V=s.pageYOffset;return{scrollLeft:y,scrollTop:V}}},79697:function(I,r,n){"use strict";r.__esModule=!0,r.default=s;var e=o(n(37786)),a=o(n(40600)),t=o(n(43750));function o(y){return y&&y.__esModule?y:{default:y}}function s(y){return(0,e.default)((0,a.default)(y)).left+(0,t.default)(y).scrollLeft}},75573:function(I,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=s;var e=a(n(95115));function a(y){return y&&y.__esModule?y:{default:y}}function t(y){var V=(0,e.default)(y).Element;return y instanceof V||y instanceof Element}function o(y){var V=(0,e.default)(y).HTMLElement;return y instanceof V||y instanceof HTMLElement}function s(y){if(typeof ShadowRoot=="undefined")return!1;var V=(0,e.default)(y).ShadowRoot;return y instanceof V||y 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 s=(0,e.default)(o),y=s.overflow,V=s.overflowX,k=s.overflowY;return/auto|scroll|overlay|hidden/.test(y+k+V)}},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=y;var e=s(n(24426)),a=s(n(57819)),t=s(n(95115)),o=s(n(10798));function s(V){return V&&V.__esModule?V:{default:V}}function y(V,k){var S;k===void 0&&(k=[]);var p=(0,e.default)(V),i=p===((S=V.ownerDocument)==null?void 0:S.body),c=(0,t.default)(p),f=i?[c].concat(c.visualViewport||[],(0,o.default)(p)?p:[]):p,u=k.concat(f);return i?u:u.concat(y((0,a.default)(f)))}},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",s=r.basePlacements=[n,e,a,t],y=r.start="start",V=r.end="end",k=r.clippingParents="clippingParents",S=r.viewport="viewport",p=r.popper="popper",i=r.reference="reference",c=r.variationPlacements=s.reduce(function(x,B){return x.concat([B+"-"+y,B+"-"+V])},[]),f=r.placements=[].concat(s,[o]).reduce(function(x,B){return x.concat([B,B+"-"+y,B+"-"+V])},[]),u=r.beforeRead="beforeRead",d=r.read="read",m=r.afterRead="afterRead",l=r.beforeMain="beforeMain",v=r.main="main",b=r.afterMain="afterMain",N=r.beforeWrite="beforeWrite",h=r.write="write",C=r.afterWrite="afterWrite",g=r.modifierPhases=[u,d,m,l,v,b,N,h,C]},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(V){V==="default"||V==="__esModule"||Object.prototype.hasOwnProperty.call(e,V)||V in r&&r[V]===a[V]||(r[V]=a[V])});var t=n(39805);Object.keys(t).forEach(function(V){V==="default"||V==="__esModule"||Object.prototype.hasOwnProperty.call(e,V)||V in r&&r[V]===t[V]||(r[V]=t[V])});var o=n(96376);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var s=n(83312);r.createPopper=s.createPopper;var y=n(2473);r.createPopperLite=y.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(V){return V&&V.__esModule?V:{default:V}}function o(V){var k=V.state;Object.keys(k.elements).forEach(function(S){var p=k.styles[S]||{},i=k.attributes[S]||{},c=k.elements[S];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,p),Object.keys(i).forEach(function(f){var u=i[f];u===!1?c.removeAttribute(f):c.setAttribute(f,u===!0?"":u)}))})}function s(V){var k=V.state,S={popper:{position:k.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(k.elements.popper.style,S.popper),k.styles=S,k.elements.arrow&&Object.assign(k.elements.arrow.style,S.arrow),function(){Object.keys(k.elements).forEach(function(p){var i=k.elements[p],c=k.attributes[p]||{},f=Object.keys(k.styles.hasOwnProperty(p)?k.styles[p]:S[p]),u=f.reduce(function(d,m){return d[m]="",d},{});!(0,a.isHTMLElement)(i)||!(0,e.default)(i)||(Object.assign(i.style,u),Object.keys(c).forEach(function(d){i.removeAttribute(d)}))})}}var y=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:s,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)),s=p(n(41199)),y=n(28595),V=p(n(43286)),k=p(n(81447)),S=n(46206);function p(d){return d&&d.__esModule?d:{default:d}}var i=function(){function d(m,l){return m=typeof m=="function"?m(Object.assign({},l.rects,{placement:l.placement})):m,(0,V.default)(typeof m!="number"?m:(0,k.default)(m,S.basePlacements))}return d}();function c(d){var m,l=d.state,v=d.name,b=d.options,N=l.elements.arrow,h=l.modifiersData.popperOffsets,C=(0,e.default)(l.placement),g=(0,s.default)(C),x=[S.left,S.right].indexOf(C)>=0,B=x?"height":"width";if(!(!N||!h)){var L=i(b.padding,l),w=(0,a.default)(N),A=g==="y"?S.top:S.left,T=g==="y"?S.bottom:S.right,E=l.rects.reference[B]+l.rects.reference[g]-h[g]-l.rects.popper[B],O=h[g]-l.rects.reference[g],P=(0,o.default)(N),R=P?g==="y"?P.clientHeight||0:P.clientWidth||0:0,F=E/2-O/2,j=L[A],W=R-w[B]-L[T],H=R/2-w[B]/2+F,z=(0,y.within)(j,H,W),$=g;l.modifiersData[v]=(m={},m[$]=z,m.centerOffset=z-H,m)}}function f(d){var m=d.state,l=d.options,v=l.element,b=v===void 0?"[data-popper-arrow]":v;b!=null&&(typeof b=="string"&&(b=m.elements.popper.querySelector(b),!b)||(0,t.default)(m.elements.popper,b)&&(m.elements.arrow=b))}var u=r.default={name:"arrow",enabled:!0,phase:"main",fn:c,effect:f,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=S(n(44896)),t=S(n(95115)),o=S(n(40600)),s=S(n(16599)),y=S(n(83104)),V=S(n(45)),k=n(63618);function S(d){return d&&d.__esModule?d:{default:d}}var p={top:"auto",right:"auto",bottom:"auto",left:"auto"};function i(d,m){var l=d.x,v=d.y,b=m.devicePixelRatio||1;return{x:(0,k.round)(l*b)/b||0,y:(0,k.round)(v*b)/b||0}}function c(d){var m,l=d.popper,v=d.popperRect,b=d.placement,N=d.variation,h=d.offsets,C=d.position,g=d.gpuAcceleration,x=d.adaptive,B=d.roundOffsets,L=d.isFixed,w=h.x,A=w===void 0?0:w,T=h.y,E=T===void 0?0:T,O=typeof B=="function"?B({x:A,y:E}):{x:A,y:E};A=O.x,E=O.y;var P=h.hasOwnProperty("x"),R=h.hasOwnProperty("y"),F=e.left,j=e.top,W=window;if(x){var H=(0,a.default)(l),z="clientHeight",$="clientWidth";if(H===(0,t.default)(l)&&(H=(0,o.default)(l),(0,s.default)(H).position!=="static"&&C==="absolute"&&(z="scrollHeight",$="scrollWidth")),H=H,b===e.top||(b===e.left||b===e.right)&&N===e.end){j=e.bottom;var G=L&&H===W&&W.visualViewport?W.visualViewport.height:H[z];E-=G-v.height,E*=g?1:-1}if(b===e.left||(b===e.top||b===e.bottom)&&N===e.end){F=e.right;var ne=L&&H===W&&W.visualViewport?W.visualViewport.width:H[$];A-=ne-v.width,A*=g?1:-1}}var Q=Object.assign({position:C},x&&p),he=B===!0?i({x:A,y:E},(0,t.default)(l)):{x:A,y:E};if(A=he.x,E=he.y,g){var Ve;return Object.assign({},Q,(Ve={},Ve[j]=R?"0":"",Ve[F]=P?"0":"",Ve.transform=(W.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",Ve))}return Object.assign({},Q,(m={},m[j]=R?E+"px":"",m[F]=P?A+"px":"",m.transform="",m))}function f(d){var m=d.state,l=d.options,v=l.gpuAcceleration,b=v===void 0?!0:v,N=l.adaptive,h=N===void 0?!0:N,C=l.roundOffsets,g=C===void 0?!0:C,x={placement:(0,y.default)(m.placement),variation:(0,V.default)(m.placement),popper:m.elements.popper,popperRect:m.rects.popper,gpuAcceleration:b,isFixed:m.options.strategy==="fixed"};m.modifiersData.popperOffsets!=null&&(m.styles.popper=Object.assign({},m.styles.popper,c(Object.assign({},x,{offsets:m.modifiersData.popperOffsets,position:m.options.strategy,adaptive:h,roundOffsets:g})))),m.modifiersData.arrow!=null&&(m.styles.arrow=Object.assign({},m.styles.arrow,c(Object.assign({},x,{offsets:m.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:g})))),m.attributes.popper=Object.assign({},m.attributes.popper,{"data-popper-placement":m.placement})}var u=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:f,data:{}}},36692:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(95115));function a(y){return y&&y.__esModule?y:{default:y}}var t={passive:!0};function o(y){var V=y.state,k=y.instance,S=y.options,p=S.scroll,i=p===void 0?!0:p,c=S.resize,f=c===void 0?!0:c,u=(0,e.default)(V.elements.popper),d=[].concat(V.scrollParents.reference,V.scrollParents.popper);return i&&d.forEach(function(m){m.addEventListener("scroll",k.update,t)}),f&&u.addEventListener("resize",k.update,t),function(){i&&d.forEach(function(m){m.removeEventListener("scroll",k.update,t)}),f&&u.removeEventListener("resize",k.update,t)}}var s=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function y(){}return y}(),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)),s=k(n(9041)),y=n(46206),V=k(n(45));function k(c){return c&&c.__esModule?c:{default:c}}function S(c){if((0,a.default)(c)===y.auto)return[];var f=(0,e.default)(c);return[(0,t.default)(c),f,(0,t.default)(f)]}function p(c){var f=c.state,u=c.options,d=c.name;if(!f.modifiersData[d]._skip){for(var m=u.mainAxis,l=m===void 0?!0:m,v=u.altAxis,b=v===void 0?!0:v,N=u.fallbackPlacements,h=u.padding,C=u.boundary,g=u.rootBoundary,x=u.altBoundary,B=u.flipVariations,L=B===void 0?!0:B,w=u.allowedAutoPlacements,A=f.options.placement,T=(0,a.default)(A),E=T===A,O=N||(E||!L?[(0,e.default)(A)]:S(A)),P=[A].concat(O).reduce(function(te,ee){return te.concat((0,a.default)(ee)===y.auto?(0,s.default)(f,{placement:ee,boundary:C,rootBoundary:g,padding:h,flipVariations:L,allowedAutoPlacements:w}):ee)},[]),R=f.rects.reference,F=f.rects.popper,j=new Map,W=!0,H=P[0],z=0;z=0,he=Q?"width":"height",Ve=(0,o.default)(f,{placement:$,boundary:C,rootBoundary:g,altBoundary:x,padding:h}),Ne=Q?ne?y.right:y.left:ne?y.bottom:y.top;R[he]>F[he]&&(Ne=(0,e.default)(Ne));var Be=(0,e.default)(Ne),Le=[];if(l&&Le.push(Ve[G]<=0),b&&Le.push(Ve[Ne]<=0,Ve[Be]<=0),Le.every(function(te){return te})){H=$,W=!1;break}j.set($,Le)}if(W)for(var Ae=L?3:1,fe=function(){function te(ee){var le=P.find(function(ye){var me=j.get(ye);if(me)return me.slice(0,ee).every(function(Te){return Te})});if(le)return H=le,"break"}return te}(),Z=Ae;Z>0;Z--){var J=fe(Z);if(J==="break")break}f.placement!==H&&(f.modifiersData[d]._skip=!0,f.placement=H,f.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,S,p){return p===void 0&&(p={x:0,y:0}),{top:k.top-S.height-p.y,right:k.right-S.width+p.x,bottom:k.bottom-S.height+p.y,left:k.left-S.width-p.x}}function s(k){return[e.top,e.right,e.bottom,e.left].some(function(S){return k[S]>=0})}function y(k){var S=k.state,p=k.name,i=S.rects.reference,c=S.rects.popper,f=S.modifiersData.preventOverflow,u=(0,a.default)(S,{elementContext:"reference"}),d=(0,a.default)(S,{altBoundary:!0}),m=o(u,i),l=o(d,c,f),v=s(m),b=s(l);S.modifiersData[p]={referenceClippingOffsets:m,popperEscapeOffsets:l,isReferenceHidden:v,hasPopperEscaped:b},S.attributes.popper=Object.assign({},S.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":b})}var V=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:y}},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 s=p(n(23798));r.flip=s.default;var y=p(n(83761));r.hide=y.default;var V=p(n(61410));r.offset=V.default;var k=p(n(40107));r.popperOffsets=k.default;var S=p(n(75137));r.preventOverflow=S.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(V){return V&&V.__esModule?V:{default:V}}function o(V,k,S){var p=(0,e.default)(V),i=[a.left,a.top].indexOf(p)>=0?-1:1,c=typeof S=="function"?S(Object.assign({},k,{placement:V})):S,f=c[0],u=c[1];return f=f||0,u=(u||0)*i,[a.left,a.right].indexOf(p)>=0?{x:u,y:f}:{x:f,y:u}}function s(V){var k=V.state,S=V.options,p=V.name,i=S.offset,c=i===void 0?[0,0]:i,f=a.placements.reduce(function(l,v){return l[v]=o(v,k.rects,c),l},{}),u=f[k.placement],d=u.x,m=u.y;k.modifiersData.popperOffsets!=null&&(k.modifiersData.popperOffsets.x+=d,k.modifiersData.popperOffsets.y+=m),k.modifiersData[p]=f}var y=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:s}},40107:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(89951));function a(s){return s&&s.__esModule?s:{default:s}}function t(s){var y=s.state,V=s.name;y.modifiersData[V]=(0,e.default)({reference:y.rects.reference,element:y.rects.popper,strategy:"absolute",placement:y.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)),s=n(28595),y=c(n(28811)),V=c(n(44896)),k=c(n(17633)),S=c(n(45)),p=c(n(34780)),i=n(63618);function c(d){return d&&d.__esModule?d:{default:d}}function f(d){var m=d.state,l=d.options,v=d.name,b=l.mainAxis,N=b===void 0?!0:b,h=l.altAxis,C=h===void 0?!1:h,g=l.boundary,x=l.rootBoundary,B=l.altBoundary,L=l.padding,w=l.tether,A=w===void 0?!0:w,T=l.tetherOffset,E=T===void 0?0:T,O=(0,k.default)(m,{boundary:g,rootBoundary:x,padding:L,altBoundary:B}),P=(0,a.default)(m.placement),R=(0,S.default)(m.placement),F=!R,j=(0,t.default)(P),W=(0,o.default)(j),H=m.modifiersData.popperOffsets,z=m.rects.reference,$=m.rects.popper,G=typeof E=="function"?E(Object.assign({},m.rects,{placement:m.placement})):E,ne=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),Q=m.modifiersData.offset?m.modifiersData.offset[m.placement]:null,he={x:0,y:0};if(H){if(N){var Ve,Ne=j==="y"?e.top:e.left,Be=j==="y"?e.bottom:e.right,Le=j==="y"?"height":"width",Ae=H[j],fe=Ae+O[Ne],Z=Ae-O[Be],J=A?-$[Le]/2:0,te=R===e.start?z[Le]:$[Le],ee=R===e.start?-$[Le]:-z[Le],le=m.elements.arrow,ye=A&&le?(0,y.default)(le):{width:0,height:0},me=m.modifiersData["arrow#persistent"]?m.modifiersData["arrow#persistent"].padding:(0,p.default)(),Te=me[Ne],M=me[Be],X=(0,s.within)(0,z[Le],ye[Le]),ae=F?z[Le]/2-J-X-Te-ne.mainAxis:te-X-Te-ne.mainAxis,ue=F?-z[Le]/2+J+X+M+ne.mainAxis:ee+X+M+ne.mainAxis,ie=m.elements.arrow&&(0,V.default)(m.elements.arrow),ge=ie?j==="y"?ie.clientTop||0:ie.clientLeft||0:0,Ce=(Ve=Q==null?void 0:Q[j])!=null?Ve:0,Me=Ae+ae-Ce-ge,De=Ae+ue-Ce,ke=(0,s.within)(A?(0,i.min)(fe,Me):fe,Ae,A?(0,i.max)(Z,De):Z);H[j]=ke,he[j]=ke-Ae}if(C){var pe,se=j==="x"?e.top:e.left,xe=j==="x"?e.bottom:e.right,_=H[W],oe=W==="y"?"height":"width",ve=_+O[se],Se=_-O[xe],Ie=[e.top,e.left].indexOf(P)!==-1,Ee=(pe=Q==null?void 0:Q[W])!=null?pe:0,Pe=Ie?ve:_-z[oe]-$[oe]-Ee+ne.altAxis,Oe=Ie?_+z[oe]+$[oe]-Ee-ne.altAxis:Se,We=A&&Ie?(0,s.withinMaxClamp)(Pe,_,Oe):(0,s.within)(A?Pe:ve,_,A?Oe:Se);H[W]=We,he[W]=We-_}m.modifiersData[v]=he}}var u=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:f,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=y(n(36692)),t=y(n(40107)),o=y(n(59894)),s=y(n(19975));function y(S){return S&&S.__esModule?S:{default:S}}var V=r.defaultModifiers=[a.default,t.default,o.default,s.default],k=r.createPopper=(0,e.popperGenerator)({defaultModifiers:V})},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)),s=u(n(59894)),y=u(n(19975)),V=u(n(61410)),k=u(n(23798)),S=u(n(75137)),p=u(n(52744)),i=u(n(83761)),c=n(2473);r.createPopperLite=c.createPopper;var f=n(39805);Object.keys(f).forEach(function(l){l==="default"||l==="__esModule"||Object.prototype.hasOwnProperty.call(e,l)||l in r&&r[l]===f[l]||(r[l]=f[l])});function u(l){return l&&l.__esModule?l:{default:l}}var d=r.defaultModifiers=[t.default,o.default,s.default,y.default,V.default,k.default,S.default,p.default,i.default],m=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:d})},9041:function(I,r,n){"use strict";r.__esModule=!0,r.default=y;var e=s(n(45)),a=n(46206),t=s(n(17633)),o=s(n(83104));function s(V){return V&&V.__esModule?V:{default:V}}function y(V,k){k===void 0&&(k={});var S=k,p=S.placement,i=S.boundary,c=S.rootBoundary,f=S.padding,u=S.flipVariations,d=S.allowedAutoPlacements,m=d===void 0?a.placements:d,l=(0,e.default)(p),v=l?u?a.variationPlacements:a.variationPlacements.filter(function(h){return(0,e.default)(h)===l}):a.basePlacements,b=v.filter(function(h){return m.indexOf(h)>=0});b.length===0&&(b=v);var N=b.reduce(function(h,C){return h[C]=(0,t.default)(V,{placement:C,boundary:i,rootBoundary:c,padding:f})[(0,o.default)(C)],h},{});return Object.keys(N).sort(function(h,C){return N[h]-N[C]})}},89951:function(I,r,n){"use strict";r.__esModule=!0,r.default=y;var e=s(n(83104)),a=s(n(45)),t=s(n(41199)),o=n(46206);function s(V){return V&&V.__esModule?V:{default:V}}function y(V){var k=V.reference,S=V.element,p=V.placement,i=p?(0,e.default)(p):null,c=p?(0,a.default)(p):null,f=k.x+k.width/2-S.width/2,u=k.y+k.height/2-S.height/2,d;switch(i){case o.top:d={x:f,y:k.y-S.height};break;case o.bottom:d={x:f,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-S.width,y:u};break;default:d={x:k.x,y:k.y}}var m=i?(0,t.default)(i):null;if(m!=null){var l=m==="y"?"height":"width";switch(c){case o.start:d[m]=d[m]-(k[l]/2-S[l]/2);break;case o.end:d[m]=d[m]+(k[l]/2-S[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)),s=p(n(81666)),y=n(46206),V=n(75573),k=p(n(43286)),S=p(n(81447));function p(c){return c&&c.__esModule?c:{default:c}}function i(c,f){f===void 0&&(f={});var u=f,d=u.placement,m=d===void 0?c.placement:d,l=u.strategy,v=l===void 0?c.strategy:l,b=u.boundary,N=b===void 0?y.clippingParents:b,h=u.rootBoundary,C=h===void 0?y.viewport:h,g=u.elementContext,x=g===void 0?y.popper:g,B=u.altBoundary,L=B===void 0?!1:B,w=u.padding,A=w===void 0?0:w,T=(0,k.default)(typeof A!="number"?A:(0,S.default)(A,y.basePlacements)),E=x===y.popper?y.reference:y.popper,O=c.rects.popper,P=c.elements[L?E:x],R=(0,e.default)((0,V.isElement)(P)?P:P.contextElement||(0,a.default)(c.elements.popper),N,C,v),F=(0,t.default)(c.elements.reference),j=(0,o.default)({reference:F,element:O,strategy:"absolute",placement:m}),W=(0,s.default)(Object.assign({},O,j)),H=x===y.popper?W:F,z={top:R.top-H.top+T.top,bottom:H.bottom-R.bottom+T.bottom,left:R.left-H.left+T.left,right:H.right-R.right+T.right},$=c.modifiersData.offset;if(x===y.popper&&$){var G=$[m];Object.keys(z).forEach(function(ne){var Q=[y.right,y.bottom].indexOf(ne)>=0?1:-1,he=[y.top,y.bottom].indexOf(ne)>=0?"y":"x";z[ne]+=G[he]*Q})}return z}},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 s=t[o.name];return t[o.name]=s?Object.assign({},s,o,{options:Object.assign({},s.options,o.options),data:Object.assign({},s.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 s=new Map,y=new Set,V=[];o.forEach(function(S){s.set(S.name,S)});function k(S){y.add(S.name);var p=[].concat(S.requires||[],S.requiresIfExists||[]);p.forEach(function(i){if(!y.has(i)){var c=s.get(i);c&&k(c)}}),V.push(S)}return o.forEach(function(S){y.has(S.name)||k(S)}),V}function t(o){var s=a(o);return e.modifierPhases.reduce(function(y,V){return y.concat(s.filter(function(k){return k.phase===V}))},[])}},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,s,y){return(0,e.max)(o,(0,e.min)(s,y))}function t(o,s,y){var V=a(o,s,y);return V>y?y:V}},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(s){return typeof s}return o}():a=function(){function o(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s}return o}(),a(t)}(function(t){var o=arguments,s=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,f=/[^-+\dA-Z]/g;return function(u,d,m,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(s.masks[d]||d||s.masks.default);var v=d.slice(0,4);(v==="UTC:"||v==="GMT:")&&(d=d.slice(4),m=!0,v==="GMT:"&&(l=!0));var b=function(){function P(){return m?"getUTC":"get"}return P}(),N=function(){function P(){return u[b()+"Date"]()}return P}(),h=function(){function P(){return u[b()+"Day"]()}return P}(),C=function(){function P(){return u[b()+"Month"]()}return P}(),g=function(){function P(){return u[b()+"FullYear"]()}return P}(),x=function(){function P(){return u[b()+"Hours"]()}return P}(),B=function(){function P(){return u[b()+"Minutes"]()}return P}(),L=function(){function P(){return u[b()+"Seconds"]()}return P}(),w=function(){function P(){return u[b()+"Milliseconds"]()}return P}(),A=function(){function P(){return m?0:u.getTimezoneOffset()}return P}(),T=function(){function P(){return k(u)}return P}(),E=function(){function P(){return S(u)}return P}(),O={d:function(){function P(){return N()}return P}(),dd:function(){function P(){return y(N())}return P}(),ddd:function(){function P(){return s.i18n.dayNames[h()]}return P}(),DDD:function(){function P(){return V({y:g(),m:C(),d:N(),_:b(),dayName:s.i18n.dayNames[h()],short:!0})}return P}(),dddd:function(){function P(){return s.i18n.dayNames[h()+7]}return P}(),DDDD:function(){function P(){return V({y:g(),m:C(),d:N(),_:b(),dayName:s.i18n.dayNames[h()+7]})}return P}(),m:function(){function P(){return C()+1}return P}(),mm:function(){function P(){return y(C()+1)}return P}(),mmm:function(){function P(){return s.i18n.monthNames[C()]}return P}(),mmmm:function(){function P(){return s.i18n.monthNames[C()+12]}return P}(),yy:function(){function P(){return String(g()).slice(2)}return P}(),yyyy:function(){function P(){return y(g(),4)}return P}(),h:function(){function P(){return x()%12||12}return P}(),hh:function(){function P(){return y(x()%12||12)}return P}(),H:function(){function P(){return x()}return P}(),HH:function(){function P(){return y(x())}return P}(),M:function(){function P(){return B()}return P}(),MM:function(){function P(){return y(B())}return P}(),s:function(){function P(){return L()}return P}(),ss:function(){function P(){return y(L())}return P}(),l:function(){function P(){return y(w(),3)}return P}(),L:function(){function P(){return y(Math.floor(w()/10))}return P}(),t:function(){function P(){return x()<12?s.i18n.timeNames[0]:s.i18n.timeNames[1]}return P}(),tt:function(){function P(){return x()<12?s.i18n.timeNames[2]:s.i18n.timeNames[3]}return P}(),T:function(){function P(){return x()<12?s.i18n.timeNames[4]:s.i18n.timeNames[5]}return P}(),TT:function(){function P(){return x()<12?s.i18n.timeNames[6]:s.i18n.timeNames[7]}return P}(),Z:function(){function P(){return l?"GMT":m?"UTC":(String(u).match(c)||[""]).pop().replace(f,"").replace(/GMT\+0000/g,"UTC")}return P}(),o:function(){function P(){return(A()>0?"-":"+")+y(Math.floor(Math.abs(A())/60)*100+Math.abs(A())%60,4)}return P}(),p:function(){function P(){return(A()>0?"-":"+")+y(Math.floor(Math.abs(A())/60),2)+":"+y(Math.floor(Math.abs(A())%60),2)}return P}(),S:function(){function P(){return["th","st","nd","rd"][N()%10>3?0:(N()%100-N()%10!=10)*N()%10]}return P}(),W:function(){function P(){return T()}return P}(),WW:function(){function P(){return y(T())}return P}(),N:function(){function P(){return E()}return P}()};return d.replace(i,function(P){return P in O?O[P]():P.slice(1,P.length-1)})}}();s.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"},s.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 y=function(){function i(c,f){for(c=String(c),f=f||2;c.length0?x(K.componentWillDisappear,w(D,U)):L(D,U,!1)}function T(D,U,K,Y,re,ce,de,be){D.componentWillMove.push({dom:Y,fn:function(){function we(){de&4?K.componentWillMove(U,re,Y):de&8&&K.onComponentWillMove(U,re,Y,be)}return we}(),next:ce,parent:re})}function E(D,U,K,Y,re){var ce,de,be=U.flags;do{var we=U.flags;if(we&1521){!a(ce)&&(o(ce.componentWillMove)||o(ce.onComponentWillMove))?T(re,D,ce,U.dom,K,Y,be,de):l(K,U.dom,Y);return}var Fe=U.children;if(we&4)ce=U.children,de=U.props,U=Fe.$LI;else if(we&8)ce=U.ref,de=U.props,U=Fe;else if(we&8192)if(U.childFlags===2)U=Fe;else{for(var Re=0,Ue=Fe.length;Re0,Fe=V(be),Re=s(be)&&be[0]===z;we||Fe||Re?(K=K||U.slice(0,ce),(we||Re)&&(de=fe(de)),(Fe||Re)&&(de.key=z+ce),K.push(de)):K&&K.push(de),de.flags|=65536}}K=K||U,K.length===0?Y=1:Y=8}else K=U,K.flags|=65536,U.flags&81920&&(K=fe(U)),Y=2;return D.children=K,D.childFlags=Y,D}function ye(D){return t(D)||e(D)?Ne(D,null):n(D)?Be(D,0,null):D.flags&16384?fe(D):D}var me="http://www.w3.org/1999/xlink",Te="http://www.w3.org/XML/1998/namespace",M={"xlink:actuate":me,"xlink:arcrole":me,"xlink:href":me,"xlink:role":me,"xlink:show":me,"xlink:title":me,"xlink:type":me,"xml:base":Te,"xml:lang":Te,"xml:space":Te};function X(D){return{onClick:D,onDblClick:D,onFocusIn:D,onFocusOut:D,onKeyDown:D,onKeyPress:D,onKeyUp:D,onMouseDown:D,onMouseMove:D,onMouseUp:D,onTouchEnd:D,onTouchMove:D,onTouchStart:D}}var ae=X(0),ue=X(null),ie=X(!0);function ge(D,U){var K=U.$EV;return K||(K=U.$EV=X(null)),K[D]||++ae[D]===1&&(ue[D]=Se(D)),K}function Ce(D,U){var K=U.$EV;K&&K[D]&&(--ae[D]===0&&(document.removeEventListener(d(D),ue[D]),ue[D]=null),K[D]=null)}function Me(D,U,K,Y){if(o(K))ge(D,Y)[D]=K;else if(i(K)){if(j(U,K))return;ge(D,Y)[D]=K}else Ce(D,Y)}function De(D){return o(D.composedPath)?D.composedPath()[0]:D.target}function ke(D,U,K,Y){var re=De(D);do{if(U&&re.disabled)return;var ce=re.$EV;if(ce){var de=ce[K];if(de&&(Y.dom=re,de.event?de.event(de.data,D):de(D),D.cancelBubble))return}re=re.parentNode}while(!V(re))}function pe(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function se(){return this.defaultPrevented}function xe(){return this.cancelBubble}function _(D){var U={dom:document};return D.isDefaultPrevented=se,D.isPropagationStopped=xe,D.stopPropagation=pe,Object.defineProperty(D,"currentTarget",{configurable:!0,get:function(){function K(){return U.dom}return K}()}),U}function oe(D){return function(U){if(U.button!==0){U.stopPropagation();return}ke(U,!0,D,_(U))}}function ve(D){return function(U){ke(U,!1,D,_(U))}}function Se(D){var U=D==="onClick"||D==="onDblClick"?oe(D):ve(D);return document.addEventListener(d(D),U),U}function Ie(D,U){var K=document.createElement("i");return K.innerHTML=U,K.innerHTML===D.innerHTML}function Ee(D,U,K){if(D[U]){var Y=D[U];Y.event?Y.event(Y.data,K):Y(K)}else{var re=U.toLowerCase();D[re]&&D[re](K)}}function Pe(D,U){var K=function(){function Y(re){var ce=this.$V;if(ce){var de=ce.props||c,be=ce.dom;if(s(D))Ee(de,D,re);else for(var we=0;we-1&&U.options[ce]&&(be=U.options[ce].value),K&&a(be)&&(be=D.defaultValue),qe(Y,be)}}var Zt=Pe("onInput",wt),qt=Pe("onChange");function en(D,U){Oe(D,"input",Zt),U.onChange&&Oe(D,"change",qt)}function wt(D,U,K){var Y=D.value,re=U.value;if(a(Y)){if(K){var ce=D.defaultValue;!a(ce)&&ce!==re&&(U.defaultValue=ce,U.value=ce)}}else re!==Y&&(U.defaultValue=Y,U.value=Y)}function Tt(D,U,K,Y,re,ce){D&64?ut(Y,K):D&256?It(Y,K,re,U):D&128&&wt(Y,K,re),ce&&(K.$V=U)}function tn(D,U,K){D&64?$e(U,K):D&256?Jt(U):D&128&&en(U,K)}function At(D){return D.type&&We(D.type)?!a(D.checked):!a(D.value)}function nn(){return{current:null}}function on(D){var U={render:D};return U}function vt(D){D&&!H(D,null)&&D.current&&(D.current=null)}function st(D,U,K){D&&(o(D)||D.current!==void 0)&&K.push(function(){!H(D,U)&&D.current!==void 0&&(D.current=U)})}function tt(D,U,K){ot(D,K),A(D,U,K)}function ot(D,U){var K=D.flags,Y=D.children,re;if(K&481){re=D.ref;var ce=D.props;vt(re);var de=D.childFlags;if(!V(ce))for(var be=Object.keys(ce),we=0,Fe=be.length;we0?x(K.componentWillDisappear,rn(U,D)):D.textContent=""}function gt(D,U,K,Y){mt(K,Y),U.flags&8192?A(U,D,Y):Ct(D,K,Y)}function Et(D,U,K,Y,re){D.componentWillDisappear.push(function(ce){Y&4?U.componentWillDisappear(K,ce):Y&8&&U.onComponentWillDisappear(K,re,ce)})}function an(D){var U=D.event;return function(K){U(D.data,K)}}function cn(D,U,K,Y){if(i(K)){if(j(U,K))return;K=an(K)}Oe(Y,d(D),K)}function ln(D,U,K){if(a(U)){K.removeAttribute("style");return}var Y=K.style,re,ce;if(s(U)){Y.cssText=U;return}if(!a(D)&&!s(D)){for(re in U)ce=U[re],ce!==D[re]&&Y.setProperty(re,ce);for(re in D)a(U[re])&&Y.removeProperty(re)}else for(re in U)ce=U[re],Y.setProperty(re,ce)}function un(D,U,K,Y,re){var ce=D&&D.__html||"",de=U&&U.__html||"";ce!==de&&!a(de)&&!Ie(Y,de)&&(V(K)||(K.childFlags&12?mt(K.children,re):K.childFlags===2&&ot(K.children,re),K.children=null,K.childFlags=1),Y.innerHTML=de)}function Vt(D,U,K,Y,re,ce,de,be){switch(D){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":Y.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":Y[D]=!!K;break;case"defaultChecked":case"value":case"volume":if(ce&&D==="value")break;var we=a(K)?"":K;Y[D]!==we&&(Y[D]=we);break;case"style":ln(U,K,Y);break;case"dangerouslySetInnerHTML":un(U,K,de,Y,be);break;default:ie[D]?Me(D,U,K,Y):D.charCodeAt(0)===111&&D.charCodeAt(1)===110?cn(D,U,K,Y):a(K)?Y.removeAttribute(D):re&&M[D]?Y.setAttributeNS(M[D],D,K):Y.setAttribute(D,K);break}}function Mt(D,U,K,Y,re,ce){var de=!1,be=(U&448)>0;be&&(de=At(K),de&&tn(U,Y,K));for(var we in K)Vt(we,null,K[we],Y,re,de,null,ce);be&&Tt(U,D,Y,K,!0,de)}function Ot(D,U,K){var Y=ye(D.render(U,D.state,K)),re=K;return o(D.getChildContext)&&(re=S(K,D.getChildContext())),D.$CX=re,Y}function Pt(D,U,K,Y,re,ce){var de=new U(K,Y),be=de.$N=!!(U.getDerivedStateFromProps||de.getSnapshotBeforeUpdate);if(de.$SVG=re,de.$L=ce,D.children=de,de.$BS=!1,de.context=Y,de.props===c&&(de.props=K),be)de.state=O(de,K,de.state);else if(o(de.componentWillMount)){de.$BR=!0,de.componentWillMount();var we=de.$PS;if(!V(we)){var Fe=de.state;if(V(Fe))de.state=we;else for(var Re in we)Fe[Re]=we[Re];de.$PS=null}de.$BR=!1}return de.$LI=Ot(de,K,Y),de}function yt(D,U){var K=D.props||c;return D.flags&32768?D.type.render(K,D.ref,U):D.type(K,U)}function Xe(D,U,K,Y,re,ce,de){var be=D.flags|=16384;be&481?Dt(D,U,K,Y,re,ce,de):be&4?mn(D,U,K,Y,re,ce,de):be&8?fn(D,U,K,Y,re,ce,de):be&16?Rt(D,U,re):be&8192?sn(D,K,U,Y,re,ce,de):be&1024&&dn(D,K,U,re,ce,de)}function dn(D,U,K,Y,re,ce){Xe(D.children,D.ref,U,!1,null,re,ce);var de=Z();Rt(de,K,Y),D.dom=de.dom}function sn(D,U,K,Y,re,ce,de){var be=D.children,we=D.childFlags;we&12&&be.length===0&&(we=D.childFlags=2,be=D.children=Z()),we===2?Xe(be,K,U,Y,re,ce,de):dt(be,K,U,Y,re,ce,de)}function Rt(D,U,K){var Y=D.dom=document.createTextNode(D.children);V(U)||l(U,Y,K)}function Dt(D,U,K,Y,re,ce,de){var be=D.flags,we=D.props,Fe=D.className,Re=D.childFlags,Ue=D.dom=v(D.type,Y=Y||(be&32)>0),je=D.children;if(!a(Fe)&&Fe!==""&&(Y?Ue.setAttribute("class",Fe):Ue.className=Fe),Re===16)F(Ue,je);else if(Re!==1){var _e=Y&&D.type!=="foreignObject";Re===2?(je.flags&16384&&(D.children=je=fe(je)),Xe(je,Ue,K,_e,null,ce,de)):(Re===8||Re===4)&&dt(je,Ue,K,_e,null,ce,de)}V(U)||l(U,Ue,re),V(we)||Mt(D,be,we,Ue,Y,de),st(D.ref,Ue,ce)}function dt(D,U,K,Y,re,ce,de){for(var be=0;be_e)&&(Ue=g(be[_e-1],!1).nextSibling)}St(Fe,Re,be,we,K,Y,re,Ue,D,ce,de)}function bn(D,U,K,Y,re){var ce=D.ref,de=U.ref,be=U.children;if(St(D.childFlags,U.childFlags,D.children,be,ce,K,!1,null,D,Y,re),U.dom=D.dom,ce!==de&&!t(be)){var we=be.dom;N(ce,we),m(de,we)}}function Vn(D,U,K,Y,re,ce,de){var be=U.dom=D.dom,we=D.props,Fe=U.props,Re=!1,Ue=!1,je;if(Y=Y||(re&32)>0,we!==Fe){var _e=we||c;if(je=Fe||c,je!==c){Re=(re&448)>0,Re&&(Ue=At(je));for(var Ye in je){var He=_e[Ye],Je=je[Ye];He!==Je&&Vt(Ye,He,Je,be,Y,Ue,D,de)}}if(_e!==c)for(var Ke in _e)a(je[Ke])&&!a(_e[Ke])&&Vt(Ke,_e[Ke],null,be,Y,Ue,D,de)}var it=U.children,et=U.className;D.className!==et&&(a(et)?be.removeAttribute("class"):Y?be.setAttribute("class",et):be.className=et),re&4096?gn(be,it):St(D.childFlags,U.childFlags,D.children,it,be,K,Y&&U.type!=="foreignObject",null,D,ce,de),Re&&Tt(re,U,be,je,!1,Ue);var ft=U.ref,nt=D.ref;nt!==ft&&(vt(nt),st(ft,be,ce))}function yn(D,U,K,Y,re,ce,de){ot(D,de),dt(U,K,Y,re,g(D,!0),ce,de),A(D,K,de)}function St(D,U,K,Y,re,ce,de,be,we,Fe,Re){switch(D){case 2:switch(U){case 2:rt(K,Y,re,ce,de,be,Fe,Re);break;case 1:tt(K,re,Re);break;case 16:ot(K,Re),F(re,Y);break;default:yn(K,Y,re,ce,de,Fe,Re);break}break;case 1:switch(U){case 2:Xe(Y,re,ce,de,be,Fe,Re);break;case 1:break;case 16:F(re,Y);break;default:dt(Y,re,ce,de,be,Fe,Re);break}break;case 16:switch(U){case 16:Cn(K,Y,re);break;case 2:Ct(re,K,Re),Xe(Y,re,ce,de,be,Fe,Re);break;case 1:Ct(re,K,Re);break;default:Ct(re,K,Re),dt(Y,re,ce,de,be,Fe,Re);break}break;default:switch(U){case 16:mt(K,Re),F(re,Y);break;case 2:gt(re,we,K,Re),Xe(Y,re,ce,de,be,Fe,Re);break;case 1:gt(re,we,K,Re);break;default:var Ue=K.length|0,je=Y.length|0;Ue===0?je>0&&dt(Y,re,ce,de,be,Fe,Re):je===0?gt(re,we,K,Re):U===8&&D===8?In(K,Y,re,ce,de,Ue,je,be,we,Fe,Re):Ln(K,Y,re,ce,de,Ue,je,be,Fe,Re);break}break}}function Sn(D,U,K,Y,re){re.push(function(){D.componentDidUpdate(U,K,Y)})}function Ut(D,U,K,Y,re,ce,de,be,we,Fe){var Re=D.state,Ue=D.props,je=!!D.$N,_e=o(D.shouldComponentUpdate);if(je&&(U=O(D,K,U!==Re?S(Re,U):U)),de||!_e||_e&&D.shouldComponentUpdate(K,U,re)){!je&&o(D.componentWillUpdate)&&D.componentWillUpdate(K,U,re),D.props=K,D.state=U,D.context=re;var Ye=null,He=Ot(D,K,re);je&&o(D.getSnapshotBeforeUpdate)&&(Ye=D.getSnapshotBeforeUpdate(Ue,Re)),rt(D.$LI,He,Y,D.$CX,ce,be,we,Fe),D.$LI=He,o(D.componentDidUpdate)&&Sn(D,Ue,Re,Ye,we)}else D.props=K,D.state=U,D.context=re}function kn(D,U,K,Y,re,ce,de,be){var we=U.children=D.children;if(!V(we)){we.$L=de;var Fe=U.props||c,Re=U.ref,Ue=D.ref,je=we.state;if(!we.$N){if(o(we.componentWillReceiveProps)){if(we.$BR=!0,we.componentWillReceiveProps(Fe,Y),we.$UN)return;we.$BR=!1}V(we.$PS)||(je=S(je,we.$PS),we.$PS=null)}Ut(we,je,Fe,K,Y,re,!1,ce,de,be),Ue!==Re&&(vt(Ue),st(Re,we,de))}}function Bn(D,U,K,Y,re,ce,de,be){var we=!0,Fe=U.props||c,Re=U.ref,Ue=D.props,je=!a(Re),_e=D.children;if(je&&o(Re.onComponentShouldUpdate)&&(we=Re.onComponentShouldUpdate(Ue,Fe)),we!==!1){je&&o(Re.onComponentWillUpdate)&&Re.onComponentWillUpdate(Ue,Fe);var Ye=ye(yt(U,Y));rt(_e,Ye,K,Y,re,ce,de,be),U.children=Ye,je&&o(Re.onComponentDidUpdate)&&Re.onComponentDidUpdate(Ue,Fe)}else U.children=_e}function xn(D,U){var K=U.children,Y=U.dom=D.dom;K!==D.children&&(Y.nodeValue=K)}function Ln(D,U,K,Y,re,ce,de,be,we,Fe){for(var Re=ce>de?de:ce,Ue=0,je,_e;Uede)for(Ue=Re;UeUe||_e>je)break e;Ye=D[_e],He=U[_e]}for(Ye=D[Ue],He=U[je];Ye.key===He.key;){if(He.flags&16384&&(U[je]=He=fe(He)),rt(Ye,He,K,Y,re,be,Fe,Re),D[Ue]=He,Ue--,je--,_e>Ue||_e>je)break e;Ye=D[Ue],He=U[je]}}if(_e>Ue){if(_e<=je)for(Je=je+1,Ke=Jeje)for(;_e<=Ue;)tt(D[_e++],K,Re);else wn(D,U,Y,ce,de,Ue,je,_e,K,re,be,we,Fe,Re)}function wn(D,U,K,Y,re,ce,de,be,we,Fe,Re,Ue,je,_e){var Ye,He,Je=0,Ke=0,it=be,et=be,ft=ce-be+1,nt=de-be+1,pt=new Int32Array(nt+1),ct=ft===Y,Bt=!1,Ze=0,ht=0;if(re<4||(ft|nt)<32)for(Ke=it;Ke<=ce;++Ke)if(Ye=D[Ke],htbe?Bt=!0:Ze=be,He.flags&16384&&(U[be]=He=fe(He)),rt(Ye,He,we,K,Fe,Re,je,_e),++ht;break}!ct&&be>de&&tt(Ye,we,_e)}else ct||tt(Ye,we,_e);else{var Gt={};for(Ke=et;Ke<=de;++Ke)Gt[U[Ke].key]=Ke;for(Ke=it;Ke<=ce;++Ke)if(Ye=D[Ke],htit;)tt(D[it++],we,_e);pt[be-et]=Ke+1,Ze>be?Bt=!0:Ze=be,He=U[be],He.flags&16384&&(U[be]=He=fe(He)),rt(Ye,He,we,K,Fe,Re,je,_e),++ht}else ct||tt(Ye,we,_e);else ct||tt(Ye,we,_e)}if(ct)gt(we,Ue,D,_e),dt(U,we,K,Fe,Re,je,_e);else if(Bt){var Qt=Tn(pt);for(be=Qt.length-1,Ke=nt-1;Ke>=0;Ke--)pt[Ke]===0?(Ze=Ke+et,He=U[Ze],He.flags&16384&&(U[Ze]=He=fe(He)),Je=Ze+1,Xe(He,we,K,Fe,Je0&&B(_e.componentWillMove)}else if(ht!==nt)for(Ke=nt-1;Ke>=0;Ke--)pt[Ke]===0&&(Ze=Ke+et,He=U[Ze],He.flags&16384&&(U[Ze]=He=fe(He)),Je=Ze+1,Xe(He,we,K,Fe,Je_t&&(_t=we,at=new Int32Array(we),Nt=new Int32Array(we));K>1,D[at[be]]0&&(Nt[K]=at[ce-1]),at[ce]=K)}ce=re+1;var Fe=new Int32Array(ce);for(de=at[ce-1];ce-- >0;)Fe[ce]=de,de=Nt[de],at[ce]=0;return Fe}var An=typeof document!="undefined";An&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ht(D,U,K,Y){var re=[],ce=new u,de=U.$V;P.v=!0,a(de)?a(D)||(D.flags&16384&&(D=fe(D)),Xe(D,U,Y,!1,null,re,ce),U.$V=D,de=D):a(D)?(tt(de,U,ce),U.$V=null):(D.flags&16384&&(D=fe(D)),rt(de,D,U,Y,!1,null,re,ce),de=U.$V=D),h(re),x(ce.componentDidAppear),P.v=!1,o(K)&&K(),o(R.renderComplete)&&R.renderComplete(de,U)}function zt(D,U,K,Y){K===void 0&&(K=null),Y===void 0&&(Y=c),Ht(D,U,K,Y)}function En(D){return function(){function U(K,Y,re,ce){D||(D=K),zt(Y,D,re,ce)}return U}()}var bt=[],Mn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(D){window.setTimeout(D,0)},kt=!1;function Kt(D,U,K,Y){var re=D.$PS;if(o(U)&&(U=U(re?S(D.state,re):D.state,D.props,D.context)),a(re))D.$PS=U;else for(var ce in U)re[ce]=U[ce];if(D.$BR)o(K)&&D.$L.push(K.bind(D));else{if(!P.v&&bt.length===0){Yt(D,Y),o(K)&&K.call(D);return}if(bt.indexOf(D)===-1&&bt.push(D),Y&&(D.$F=!0),kt||(kt=!0,Mn($t)),o(K)){var de=D.$QU;de||(de=D.$QU=[]),de.push(K)}}}function On(D){for(var U=D.$QU,K=0;K=55296&&ve<=56319&&oe+1<_.length&&(Se=_.charCodeAt(oe+1),Se>=56320&&Se<=57343)?(ve-55296)*1024+Se-56320+65536:ve}function fe(_){var oe=/^\n* /;return oe.test(_)}var Z=1,J=2,te=3,ee=4,le=5;function ye(_,oe,ve,Se,Ie,Ee,Pe,Oe){var We,ze=0,Ge=null,Qe=!1,$e=!1,ut=Se!==-1,qe=-1,lt=Be(Ae(_,0))&&Le(Ae(_,_.length-1));if(oe||Pe)for(We=0;We<_.length;ze>=65536?We+=2:We++){if(ze=Ae(_,We),!he(ze))return le;lt=lt&&Ne(ze,Ge,Oe),Ge=ze}else{for(We=0;We<_.length;ze>=65536?We+=2:We++){if(ze=Ae(_,We),ze===k)Qe=!0,ut&&($e=$e||We-qe-1>Se&&_[qe+1]!==" ",qe=We);else if(!he(ze))return le;lt=lt&&Ne(ze,Ge,Oe),Ge=ze}$e=$e||ut&&We-qe-1>Se&&_[qe+1]!==" "}return!Qe&&!$e?lt&&!Pe&&!Ie(_)?Z:Ee===H?le:J:ve>9&&fe(_)?le:Pe?Ee===H?le:J:$e?ee:te}function me(_,oe,ve,Se,Ie){_.dump=function(){if(oe.length===0)return _.quotingType===H?'""':"''";if(!_.noCompatMode&&(P.indexOf(oe)!==-1||R.test(oe)))return _.quotingType===H?'"'+oe+'"':"'"+oe+"'";var Ee=_.indent*Math.max(1,ve),Pe=_.lineWidth===-1?-1:Math.max(Math.min(_.lineWidth,40),_.lineWidth-Ee),Oe=Se||_.flowLevel>-1&&ve>=_.flowLevel;function We(ze){return ne(_,ze)}switch(ye(oe,Oe,_.indent,Pe,We,_.quotingType,_.forceQuotes&&!Se,Ie)){case Z:return oe;case J:return"'"+oe.replace(/'/g,"''")+"'";case te:return"|"+Te(oe,_.indent)+M($(oe,Ee));case ee:return">"+Te(oe,_.indent)+M($(X(oe,Pe),Ee));case le:return'"'+ue(oe,Pe)+'"';default:throw new a("impossible error: invalid scalar style")}}()}function Te(_,oe){var ve=fe(_)?String(oe):"",Se=_[_.length-1]==="\n",Ie=Se&&(_[_.length-2]==="\n"||_==="\n"),Ee=Ie?"+":Se?"":"-";return ve+Ee+"\n"}function M(_){return _[_.length-1]==="\n"?_.slice(0,-1):_}function X(_,oe){for(var ve=/(\n+)([^\n]*)/g,Se=function(){var ze=_.indexOf("\n");return ze=ze!==-1?ze:_.length,ve.lastIndex=ze,ae(_.slice(0,ze),oe)}(),Ie=_[0]==="\n"||_[0]===" ",Ee,Pe;Pe=ve.exec(_);){var Oe=Pe[1],We=Pe[2];Ee=We[0]===" ",Se+=Oe+(!Ie&&!Ee&&We!==""?"\n":"")+ae(We,oe),Ie=Ee}return Se}function ae(_,oe){if(_===""||_[0]===" ")return _;for(var ve=/ [^ ]/g,Se,Ie=0,Ee,Pe=0,Oe=0,We="";Se=ve.exec(_);)Oe=Se.index,Oe-Ie>oe&&(Ee=Pe>Ie?Pe:Oe,We+="\n"+_.slice(Ie,Ee),Ie=Ee+1),Pe=Oe;return We+="\n",_.length-Ie>oe&&Pe>Ie?We+=_.slice(Ie,Pe)+"\n"+_.slice(Pe+1):We+=_.slice(Ie),We.slice(1)}function ue(_){for(var oe="",ve=0,Se,Ie=0;Ie<_.length;ve>=65536?Ie+=2:Ie++)ve=Ae(_,Ie),Se=O[ve],!Se&&he(ve)?(oe+=_[Ie],ve>=65536&&(oe+=_[Ie+1])):oe+=Se||j(ve);return oe}function ie(_,oe,ve){var Se="",Ie=_.tag,Ee,Pe,Oe;for(Ee=0,Pe=ve.length;Ee1024&&(Ge+="? "),Ge+=_.dump+(_.condenseFlow?'"':"")+":"+(_.condenseFlow?"":" "),ke(_,oe,ze,!1,!1)&&(Ge+=_.dump,Se+=Ge));_.tag=Ie,_.dump="{"+Se+"}"}function Me(_,oe,ve,Se){var Ie="",Ee=_.tag,Pe=Object.keys(ve),Oe,We,ze,Ge,Qe,$e;if(_.sortKeys===!0)Pe.sort();else if(typeof _.sortKeys=="function")Pe.sort(_.sortKeys);else if(_.sortKeys)throw new a("sortKeys must be a boolean or a function");for(Oe=0,We=Pe.length;Oe1024,Qe&&(_.dump&&k===_.dump.charCodeAt(0)?$e+="?":$e+="? "),$e+=_.dump,Qe&&($e+=G(_,oe)),ke(_,oe+1,Ge,!0,Qe)&&(_.dump&&k===_.dump.charCodeAt(0)?$e+=":":$e+=": ",$e+=_.dump,Ie+=$e));_.tag=Ee,_.dump=Ie||"{}"}function De(_,oe,ve){var Se,Ie,Ee,Pe,Oe,We;for(Ie=ve?_.explicitTypes:_.implicitTypes,Ee=0,Pe=Ie.length;Ee tag resolver accepts not "'+We+'" style');_.dump=Se}return!0}return!1}function ke(_,oe,ve,Se,Ie,Ee,Pe){_.tag=null,_.dump=ve,De(_,ve,!1)||De(_,ve,!0);var Oe=o.call(_.dump),We=Se,ze;Se&&(Se=_.flowLevel<0||_.flowLevel>oe);var Ge=Oe==="[object Object]"||Oe==="[object Array]",Qe,$e;if(Ge&&(Qe=_.duplicates.indexOf(ve),$e=Qe!==-1),(_.tag!==null&&_.tag!=="?"||$e||_.indent!==2&&oe>0)&&(Ie=!1),$e&&_.usedDuplicates[Qe])_.dump="*ref_"+Qe;else{if(Ge&&$e&&!_.usedDuplicates[Qe]&&(_.usedDuplicates[Qe]=!0),Oe==="[object Object]")Se&&Object.keys(_.dump).length!==0?(Me(_,oe,_.dump,Ie),$e&&(_.dump="&ref_"+Qe+_.dump)):(Ce(_,oe,_.dump),$e&&(_.dump="&ref_"+Qe+" "+_.dump));else if(Oe==="[object Array]")Se&&_.dump.length!==0?(_.noArrayIndent&&!Pe&&oe>0?ge(_,oe-1,_.dump,Ie):ge(_,oe,_.dump,Ie),$e&&(_.dump="&ref_"+Qe+_.dump)):(ie(_,oe,_.dump),$e&&(_.dump="&ref_"+Qe+" "+_.dump));else if(Oe==="[object String]")_.tag!=="?"&&me(_,_.dump,oe,Ee,We);else{if(Oe==="[object Undefined]")return!1;if(_.skipInvalid)return!1;throw new a("unacceptable kind of an object to dump "+Oe)}_.tag!==null&&_.tag!=="?"&&(ze=encodeURI(_.tag[0]==="!"?_.tag.slice(1):_.tag).replace(/!/g,"%21"),_.tag[0]==="!"?ze="!"+ze:ze.slice(0,18)==="tag:yaml.org,2002:"?ze="!!"+ze.slice(18):ze="!<"+ze+">",_.dump=ze+" "+_.dump)}return!0}function pe(_,oe){var ve=[],Se=[],Ie,Ee;for(se(_,ve,Se),Ie=0,Ee=Se.length;Ie>10)+55296,(M-65536&1023)+56320)}for(var A=new Array(256),T=new Array(256),E=0;E<256;E++)A[E]=L(E)?1:0,T[E]=L(E);function O(M,X){this.input=M,this.filename=X.filename||null,this.schema=X.schema||o,this.onWarning=X.onWarning||null,this.legacy=X.legacy||!1,this.json=X.json||!1,this.listener=X.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=M.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function P(M,X){var ae={name:M.filename,buffer:M.input.slice(0,-1),position:M.position,line:M.line,column:M.position-M.lineStart};return ae.snippet=t(ae),new a(X,ae)}function R(M,X){throw P(M,X)}function F(M,X){M.onWarning&&M.onWarning.call(null,P(M,X))}var j={YAML:function(){function M(X,ae,ue){var ie,ge,Ce;X.version!==null&&R(X,"duplication of %YAML directive"),ue.length!==1&&R(X,"YAML directive accepts exactly one argument"),ie=/^([0-9]+)\.([0-9]+)$/.exec(ue[0]),ie===null&&R(X,"ill-formed argument of the YAML directive"),ge=parseInt(ie[1],10),Ce=parseInt(ie[2],10),ge!==1&&R(X,"unacceptable YAML version of the document"),X.version=ue[0],X.checkLineBreaks=Ce<2,Ce!==1&&Ce!==2&&F(X,"unsupported YAML version of the document")}return M}(),TAG:function(){function M(X,ae,ue){var ie,ge;ue.length!==2&&R(X,"TAG directive accepts exactly two arguments"),ie=ue[0],ge=ue[1],m.test(ie)||R(X,"ill-formed tag handle (first argument) of the TAG directive"),s.call(X.tagMap,ie)&&R(X,'there is a previously declared suffix for "'+ie+'" tag handle'),l.test(ge)||R(X,"ill-formed tag prefix (second argument) of the TAG directive");try{ge=decodeURIComponent(ge)}catch(Ce){R(X,"tag prefix is malformed: "+ge)}X.tagMap[ie]=ge}return M}()};function W(M,X,ae,ue){var ie,ge,Ce,Me;if(X1&&(M.result+=e.repeat("\n",X-1))}function he(M,X,ae){var ue,ie,ge,Ce,Me,De,ke,pe,se=M.kind,xe=M.result,_;if(_=M.input.charCodeAt(M.position),h(_)||C(_)||_===35||_===38||_===42||_===33||_===124||_===62||_===39||_===34||_===37||_===64||_===96||(_===63||_===45)&&(ie=M.input.charCodeAt(M.position+1),h(ie)||ae&&C(ie)))return!1;for(M.kind="scalar",M.result="",ge=Ce=M.position,Me=!1;_!==0;){if(_===58){if(ie=M.input.charCodeAt(M.position+1),h(ie)||ae&&C(ie))break}else if(_===35){if(ue=M.input.charCodeAt(M.position-1),h(ue))break}else{if(M.position===M.lineStart&&ne(M)||ae&&C(_))break;if(b(_))if(De=M.line,ke=M.lineStart,pe=M.lineIndent,G(M,!1,-1),M.lineIndent>=X){Me=!0,_=M.input.charCodeAt(M.position);continue}else{M.position=Ce,M.line=De,M.lineStart=ke,M.lineIndent=pe;break}}Me&&(W(M,ge,Ce,!1),Q(M,M.line-De),ge=Ce=M.position,Me=!1),N(_)||(Ce=M.position+1),_=M.input.charCodeAt(++M.position)}return W(M,ge,Ce,!1),M.result?!0:(M.kind=se,M.result=xe,!1)}function Ve(M,X){var ae,ue,ie;if(ae=M.input.charCodeAt(M.position),ae!==39)return!1;for(M.kind="scalar",M.result="",M.position++,ue=ie=M.position;(ae=M.input.charCodeAt(M.position))!==0;)if(ae===39)if(W(M,ue,M.position,!0),ae=M.input.charCodeAt(++M.position),ae===39)ue=M.position,M.position++,ie=M.position;else return!0;else b(ae)?(W(M,ue,ie,!0),Q(M,G(M,!1,X)),ue=ie=M.position):M.position===M.lineStart&&ne(M)?R(M,"unexpected end of the document within a single quoted scalar"):(M.position++,ie=M.position);R(M,"unexpected end of the stream within a single quoted scalar")}function Ne(M,X){var ae,ue,ie,ge,Ce,Me;if(Me=M.input.charCodeAt(M.position),Me!==34)return!1;for(M.kind="scalar",M.result="",M.position++,ae=ue=M.position;(Me=M.input.charCodeAt(M.position))!==0;){if(Me===34)return W(M,ae,M.position,!0),M.position++,!0;if(Me===92){if(W(M,ae,M.position,!0),Me=M.input.charCodeAt(++M.position),b(Me))G(M,!1,X);else if(Me<256&&A[Me])M.result+=T[Me],M.position++;else if((Ce=x(Me))>0){for(ie=Ce,ge=0;ie>0;ie--)Me=M.input.charCodeAt(++M.position),(Ce=g(Me))>=0?ge=(ge<<4)+Ce:R(M,"expected hexadecimal character");M.result+=w(ge),M.position++}else R(M,"unknown escape sequence");ae=ue=M.position}else b(Me)?(W(M,ae,ue,!0),Q(M,G(M,!1,X)),ae=ue=M.position):M.position===M.lineStart&&ne(M)?R(M,"unexpected end of the document within a double quoted scalar"):(M.position++,ue=M.position)}R(M,"unexpected end of the stream within a double quoted scalar")}function Be(M,X){var ae=!0,ue,ie,ge,Ce=M.tag,Me,De=M.anchor,ke,pe,se,xe,_,oe=Object.create(null),ve,Se,Ie,Ee;if(Ee=M.input.charCodeAt(M.position),Ee===91)pe=93,_=!1,Me=[];else if(Ee===123)pe=125,_=!0,Me={};else return!1;for(M.anchor!==null&&(M.anchorMap[M.anchor]=Me),Ee=M.input.charCodeAt(++M.position);Ee!==0;){if(G(M,!0,X),Ee=M.input.charCodeAt(M.position),Ee===pe)return M.position++,M.tag=Ce,M.anchor=De,M.kind=_?"mapping":"sequence",M.result=Me,!0;ae?Ee===44&&R(M,"expected the node content, but found ','"):R(M,"missed comma between flow collection entries"),Se=ve=Ie=null,se=xe=!1,Ee===63&&(ke=M.input.charCodeAt(M.position+1),h(ke)&&(se=xe=!0,M.position++,G(M,!0,X))),ue=M.line,ie=M.lineStart,ge=M.position,ee(M,X,y,!1,!0),Se=M.tag,ve=M.result,G(M,!0,X),Ee=M.input.charCodeAt(M.position),(xe||M.line===ue)&&Ee===58&&(se=!0,Ee=M.input.charCodeAt(++M.position),G(M,!0,X),ee(M,X,y,!1,!0),Ie=M.result),_?z(M,Me,oe,Se,ve,Ie,ue,ie,ge):se?Me.push(z(M,null,oe,Se,ve,Ie,ue,ie,ge)):Me.push(ve),G(M,!0,X),Ee=M.input.charCodeAt(M.position),Ee===44?(ae=!0,Ee=M.input.charCodeAt(++M.position)):ae=!1}R(M,"unexpected end of the stream within a flow collection")}function Le(M,X){var ae,ue,ie=p,ge=!1,Ce=!1,Me=X,De=0,ke=!1,pe,se;if(se=M.input.charCodeAt(M.position),se===124)ue=!1;else if(se===62)ue=!0;else return!1;for(M.kind="scalar",M.result="";se!==0;)if(se=M.input.charCodeAt(++M.position),se===43||se===45)p===ie?ie=se===43?c:i:R(M,"repeat of a chomping mode identifier");else if((pe=B(se))>=0)pe===0?R(M,"bad explicit indentation width of a block scalar; it cannot be less than one"):Ce?R(M,"repeat of an indentation width identifier"):(Me=X+pe-1,Ce=!0);else break;if(N(se)){do se=M.input.charCodeAt(++M.position);while(N(se));if(se===35)do se=M.input.charCodeAt(++M.position);while(!b(se)&&se!==0)}for(;se!==0;){for($(M),M.lineIndent=0,se=M.input.charCodeAt(M.position);(!Ce||M.lineIndentMe&&(Me=M.lineIndent),b(se)){De++;continue}if(M.lineIndentX)&&De!==0)R(M,"bad indentation of a sequence entry");else if(M.lineIndentX)&&(Se&&(Ce=M.line,Me=M.lineStart,De=M.position),ee(M,X,S,!0,ie)&&(Se?oe=M.result:ve=M.result),Se||(z(M,se,xe,_,oe,ve,Ce,Me,De),_=oe=ve=null),G(M,!0,-1),Ee=M.input.charCodeAt(M.position)),(M.line===ge||M.lineIndent>X)&&Ee!==0)R(M,"bad indentation of a mapping entry");else if(M.lineIndentX?De=1:M.lineIndent===X?De=0:M.lineIndentX?De=1:M.lineIndent===X?De=0:M.lineIndent tag; it should be "scalar", not "'+M.kind+'"'),se=0,xe=M.implicitTypes.length;se"),M.result!==null&&oe.kind!==M.kind&&R(M,"unacceptable node kind for !<"+M.tag+'> tag; it should be "'+oe.kind+'", not "'+M.kind+'"'),oe.resolve(M.result,M.tag)?(M.result=oe.construct(M.result,M.tag),M.anchor!==null&&(M.anchorMap[M.anchor]=M.result)):R(M,"cannot resolve a node with !<"+M.tag+"> explicit tag")}return M.listener!==null&&M.listener("close",M),M.tag!==null||M.anchor!==null||pe}function le(M){var X=M.position,ae,ue,ie,ge=!1,Ce;for(M.version=null,M.checkLineBreaks=M.legacy,M.tagMap=Object.create(null),M.anchorMap=Object.create(null);(Ce=M.input.charCodeAt(M.position))!==0&&(G(M,!0,-1),Ce=M.input.charCodeAt(M.position),!(M.lineIndent>0||Ce!==37));){for(ge=!0,Ce=M.input.charCodeAt(++M.position),ae=M.position;Ce!==0&&!h(Ce);)Ce=M.input.charCodeAt(++M.position);for(ue=M.input.slice(ae,M.position),ie=[],ue.length<1&&R(M,"directive name must not be less than one character in length");Ce!==0;){for(;N(Ce);)Ce=M.input.charCodeAt(++M.position);if(Ce===35){do Ce=M.input.charCodeAt(++M.position);while(Ce!==0&&!b(Ce));break}if(b(Ce))break;for(ae=M.position;Ce!==0&&!h(Ce);)Ce=M.input.charCodeAt(++M.position);ie.push(M.input.slice(ae,M.position))}Ce!==0&&$(M),s.call(j,ue)?j[ue](M,ue,ie):F(M,'unknown document directive "'+ue+'"')}if(G(M,!0,-1),M.lineIndent===0&&M.input.charCodeAt(M.position)===45&&M.input.charCodeAt(M.position+1)===45&&M.input.charCodeAt(M.position+2)===45?(M.position+=3,G(M,!0,-1)):ge&&R(M,"directives end mark is expected"),ee(M,M.lineIndent-1,S,!1,!0),G(M,!0,-1),M.checkLineBreaks&&u.test(M.input.slice(X,M.position))&&F(M,"non-ASCII line breaks are interpreted as content"),M.documents.push(M.result),M.position===M.lineStart&&ne(M)){M.input.charCodeAt(M.position)===46&&(M.position+=3,G(M,!0,-1));return}if(M.positionc&&(p=" ... ",y=k-c+p.length),V-k>c&&(i=" ...",V=k+c-i.length),{str:p+s.slice(y,V).replace(/\t/g,"\u2192")+i,pos:k-y+p.length}}function t(s,y){return e.repeat(" ",y-s.length)+s}function o(s,y){if(y=Object.create(y||null),!s.buffer)return null;y.maxLength||(y.maxLength=79),typeof y.indent!="number"&&(y.indent=1),typeof y.linesBefore!="number"&&(y.linesBefore=3),typeof y.linesAfter!="number"&&(y.linesAfter=2);for(var V=/\r?\n|\r|\0/g,k=[0],S=[],p,i=-1;p=V.exec(s.buffer);)S.push(p.index),k.push(p.index+p[0].length),s.position<=p.index&&i<0&&(i=k.length-2);i<0&&(i=k.length-1);var c="",f,u,d=Math.min(s.line+y.linesAfter,S.length).toString().length,m=y.maxLength-(y.indent+d+3);for(f=1;f<=y.linesBefore&&!(i-f<0);f++)u=a(s.buffer,k[i-f],S[i-f],s.position-(k[i]-k[i-f]),m),c=e.repeat(" ",y.indent)+t((s.line-f+1).toString(),d)+" | "+u.str+"\n"+c;for(u=a(s.buffer,k[i],S[i],s.position,m),c+=e.repeat(" ",y.indent)+t((s.line+1).toString(),d)+" | "+u.str+"\n",c+=e.repeat("-",y.indent+d+3+u.pos)+"^\n",f=1;f<=y.linesAfter&&!(i+f>=S.length);f++)u=a(s.buffer,k[i+f],S[i+f],s.position-(k[i]-k[i+f]),m),c+=e.repeat(" ",y.indent)+t((s.line+f+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(y){var V={};return y!==null&&Object.keys(y).forEach(function(k){y[k].forEach(function(S){V[String(S)]=k})}),V}function s(y,V){if(V=V||{},Object.keys(V).forEach(function(k){if(a.indexOf(k)===-1)throw new e('Unknown option "'+k+'" is met in definition of "'+y+'" YAML type.')}),this.options=V,this.tag=y,this.kind=V.kind||null,this.resolve=V.resolve||function(){return!0},this.construct=V.construct||function(k){return k},this.instanceOf=V.instanceOf||null,this.predicate=V.predicate||null,this.represent=V.represent||null,this.representName=V.representName||null,this.defaultStyle=V.defaultStyle||null,this.multi=V.multi||!1,this.styleAliases=o(V.styleAliases||null),t.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+y+'" YAML type.')}I.exports=s},92806:function(I,r,n){"use strict";var e=n(92276),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function t(V){if(V===null)return!1;var k,S,p=0,i=V.length,c=a;for(S=0;S64)){if(k<0)return!1;p+=6}return p%8===0}function o(V){var k,S,p=V.replace(/[\r\n=]/g,""),i=p.length,c=a,f=0,u=[];for(k=0;k>16&255),u.push(f>>8&255),u.push(f&255)),f=f<<6|c.indexOf(p.charAt(k));return S=i%4*6,S===0?(u.push(f>>16&255),u.push(f>>8&255),u.push(f&255)):S===18?(u.push(f>>10&255),u.push(f>>2&255)):S===12&&u.push(f>>4&255),new Uint8Array(u)}function s(V){var k="",S=0,p,i,c=V.length,f=a;for(p=0;p>18&63],k+=f[S>>12&63],k+=f[S>>6&63],k+=f[S&63]),S=(S<<8)+V[p];return i=c%3,i===0?(k+=f[S>>18&63],k+=f[S>>12&63],k+=f[S>>6&63],k+=f[S&63]):i===2?(k+=f[S>>10&63],k+=f[S>>4&63],k+=f[S<<2&63],k+=f[64]):i===1&&(k+=f[S>>2&63],k+=f[S<<4&63],k+=f[64],k+=f[64]),k}function y(V){return Object.prototype.toString.call(V)==="[object Uint8Array]"}I.exports=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:t,construct:o,predicate:y,represent:s})},34015:function(I,r,n){"use strict";var e=n(92276);function a(s){if(s===null)return!1;var y=s.length;return y===4&&(s==="true"||s==="True"||s==="TRUE")||y===5&&(s==="false"||s==="False"||s==="FALSE")}function t(s){return s==="true"||s==="True"||s==="TRUE"}function o(s){return Object.prototype.toString.call(s)==="[object Boolean]"}I.exports=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:a,construct:t,predicate:o,represent:{lowercase:function(){function s(y){return y?"true":"false"}return s}(),uppercase:function(){function s(y){return y?"TRUE":"FALSE"}return s}(),camelcase:function(){function s(y){return y?"True":"False"}return s}()},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(S){return!(S===null||!t.test(S)||S[S.length-1]==="_")}function s(S){var p,i;return p=S.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 y=/^[-+]?[0-9]+e/;function V(S,p){var i;if(isNaN(S))switch(p){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===S)switch(p){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===S)switch(p){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(S))return"-0.0";return i=S.toString(10),y.test(i)?i.replace("e",".e"):i}function k(S){return Object.prototype.toString.call(S)==="[object Number]"&&(S%1!==0||e.isNegativeZero(S))}I.exports=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:o,construct:s,predicate:k,represent:V,defaultStyle:"lowercase"})},72826:function(I,r,n){"use strict";var e=n(11017),a=n(92276);function t(S){return 48<=S&&S<=57||65<=S&&S<=70||97<=S&&S<=102}function o(S){return 48<=S&&S<=55}function s(S){return 48<=S&&S<=57}function y(S){if(S===null)return!1;var p=S.length,i=0,c=!1,f;if(!p)return!1;if(f=S[i],(f==="-"||f==="+")&&(f=S[++i]),f==="0"){if(i+1===p)return!0;if(f=S[++i],f==="b"){for(i++;i=0?"0b"+p.toString(2):"-0b"+p.toString(2).slice(1)}return S}(),octal:function(){function S(p){return p>=0?"0o"+p.toString(8):"-0o"+p.toString(8).slice(1)}return S}(),decimal:function(){function S(p){return p.toString(10)}return S}(),hexadecimal:function(){function S(p){return p>=0?"0x"+p.toString(16).toUpperCase():"-0x"+p.toString(16).toUpperCase().slice(1)}return S}()},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(s){if(s===null)return!0;var y=s.length;return y===1&&s==="~"||y===4&&(s==="null"||s==="Null"||s==="NULL")}function t(){return null}function o(s){return s===null}I.exports=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:a,construct:t,predicate:o,represent:{canonical:function(){function s(){return"~"}return s}(),lowercase:function(){function s(){return"null"}return s}(),uppercase:function(){function s(){return"NULL"}return s}(),camelcase:function(){function s(){return"Null"}return s}(),empty:function(){function s(){return""}return s}()},defaultStyle:"lowercase"})},14250:function(I,r,n){"use strict";var e=n(92276),a=Object.prototype.hasOwnProperty,t=Object.prototype.toString;function o(y){if(y===null)return!0;var V=[],k,S,p,i,c,f=y;for(k=0,S=f.length;k=0;--H){var z=this.tryEntries[H],$=z.completion;if(z.tryLoc==="root")return W("end");if(z.tryLoc<=this.prev){var G=a.call(z,"catchLoc"),ne=a.call(z,"finallyLoc");if(G&&ne){if(this.prev=0;--W){var H=this.tryEntries[W];if(H.tryLoc<=this.prev&&a.call(H,"finallyLoc")&&this.prev=0;--j){var W=this.tryEntries[j];if(W.finallyLoc===F)return this.complete(W.completion,W.afterLoc),T(W),m}}return R}(),catch:function(){function R(F){for(var j=this.tryEntries.length-1;j>=0;--j){var W=this.tryEntries[j];if(W.tryLoc===F){var H=W.completion;if(H.type==="throw"){var z=H.arg;T(W)}return z}}throw new Error("illegal catch attempt")}return R}(),delegateYield:function(){function R(F,j,W){return this.delegate={iterator:O(F),resultName:j,nextLoc:W},this.method==="next"&&(this.arg=o),m}return R}()},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={},s=function(){function V(){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:V,headers:{keys:function(){function k(){return t}return k}(),entries:function(){function k(){return t.map(function(S){return[S,a.getResponseHeader(S)]})}return k}(),get:function(){function k(S){return a.getResponseHeader(S)}return k}(),has:function(){function k(S){return a.getResponseHeader(S)!=null}return k}()}}}return V}();for(var y in a.open(r.method||"get",I,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(V,k){o[k]||t.push(o[k]=k)}),n(s())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(y,r.headers[y]);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,v){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))||v&&l&&typeof l.length=="number"){b&&(l=b);var N=0;return function(){return N>=l.length?{done:!0}:{done:!1,value:l[N++]}}}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,v){if(l){if(typeof l=="string")return a(l,v);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,v):void 0}}function a(l,v){(v==null||v>l.length)&&(v=l.length);for(var b=0,N=Array(v);b0&&(0,a.round)(p.width)/V.offsetWidth||1,l=V.offsetHeight>0&&(0,a.round)(p.height)/V.offsetHeight||1);var f=(0,e.isElement)(V)?(0,t.default)(V):window,u=f.visualViewport,s=!(0,o.default)()&&S,m=(p.left+(s&&u?u.offsetLeft:0))/i,c=(p.top+(s&&u?u.offsetTop:0))/l,v=p.width/i,b=p.height/l;return{width:v,height:b,top:c,right:m+v,bottom:c+b,left:m,x:m,y:c}}},49035:function(I,r,n){"use strict";r.__esModule=!0,r.default=b;var e=n(46206),a=s(n(87991)),t=s(n(79752)),o=s(n(98309)),d=s(n(44896)),y=s(n(40600)),V=s(n(16599)),k=n(75573),S=s(n(37786)),p=s(n(57819)),i=s(n(4206)),l=s(n(12972)),f=s(n(81666)),u=n(63618);function s(g){return g&&g.__esModule?g:{default:g}}function m(g,h){var C=(0,S.default)(g,!1,h==="fixed");return C.top=C.top+g.clientTop,C.left=C.left+g.clientLeft,C.bottom=C.top+g.clientHeight,C.right=C.left+g.clientWidth,C.width=g.clientWidth,C.height=g.clientHeight,C.x=C.left,C.y=C.top,C}function c(g,h,C){return h===e.viewport?(0,f.default)((0,a.default)(g,C)):(0,k.isElement)(h)?m(h,C):(0,f.default)((0,t.default)((0,y.default)(g)))}function v(g){var h=(0,o.default)((0,p.default)(g)),C=["absolute","fixed"].indexOf((0,V.default)(g).position)>=0,N=C&&(0,k.isHTMLElement)(g)?(0,d.default)(g):g;return(0,k.isElement)(N)?h.filter(function(x){return(0,k.isElement)(x)&&(0,i.default)(x,N)&&(0,l.default)(x)!=="body"}):[]}function b(g,h,C,N){var x=h==="clippingParents"?v(g):[].concat(h),B=[].concat(x,[C]),L=B[0],w=B.reduce(function(A,T){var E=c(g,T,N);return A.top=(0,u.max)(E.top,A.top),A.right=(0,u.min)(E.right,A.right),A.bottom=(0,u.min)(E.bottom,A.bottom),A.left=(0,u.max)(E.left,A.left),A},c(g,L,N));return w.width=w.right-w.left,w.height=w.bottom-w.top,w.x=w.left,w.y=w.top,w}},74758:function(I,r,n){"use strict";r.__esModule=!0,r.default=i;var e=S(n(37786)),a=S(n(13390)),t=S(n(12972)),o=n(75573),d=S(n(79697)),y=S(n(40600)),V=S(n(10798)),k=n(63618);function S(l){return l&&l.__esModule?l:{default:l}}function p(l){var f=l.getBoundingClientRect(),u=(0,k.round)(f.width)/l.offsetWidth||1,s=(0,k.round)(f.height)/l.offsetHeight||1;return u!==1||s!==1}function i(l,f,u){u===void 0&&(u=!1);var s=(0,o.isHTMLElement)(f),m=(0,o.isHTMLElement)(f)&&p(f),c=(0,y.default)(f),v=(0,e.default)(l,m,u),b={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(s||!s&&!u)&&(((0,t.default)(f)!=="body"||(0,V.default)(c))&&(b=(0,a.default)(f)),(0,o.isHTMLElement)(f)?(g=(0,e.default)(f,!0),g.x+=f.clientLeft,g.y+=f.clientTop):c&&(g.x=(0,d.default)(c))),{x:v.left+b.scrollLeft-g.x,y:v.top+b.scrollTop-g.y,width:v.width,height:v.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=V;var e=y(n(40600)),a=y(n(16599)),t=y(n(79697)),o=y(n(43750)),d=n(63618);function y(k){return k&&k.__esModule?k:{default:k}}function V(k){var S,p=(0,e.default)(k),i=(0,o.default)(k),l=(S=k.ownerDocument)==null?void 0:S.body,f=(0,d.max)(p.scrollWidth,p.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=(0,d.max)(p.scrollHeight,p.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),s=-i.scrollLeft+(0,t.default)(k),m=-i.scrollTop;return(0,a.default)(l||p).direction==="rtl"&&(s+=(0,d.max)(p.clientWidth,l?l.clientWidth:0)-f),{width:f,height:u,x:s,y:m}}},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 d=(0,e.default)(o),y=o.offsetWidth,V=o.offsetHeight;return Math.abs(d.width-y)<=1&&(y=d.width),Math.abs(d.height-V)<=1&&(V=d.height),{x:o.offsetLeft,y:o.offsetTop,width:y,height:V}}},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=y;var e=d(n(43750)),a=d(n(95115)),t=n(75573),o=d(n(3073));function d(V){return V&&V.__esModule?V:{default:V}}function y(V){return V===(0,a.default)(V)||!(0,t.isHTMLElement)(V)?(0,e.default)(V):(0,o.default)(V)}},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),d=k(n(87031)),y=k(n(57819)),V=k(n(35366));function k(l){return l&&l.__esModule?l:{default:l}}function S(l){return!(0,o.isHTMLElement)(l)||(0,t.default)(l).position==="fixed"?null:l.offsetParent}function p(l){var f=/firefox/i.test((0,V.default)()),u=/Trident/i.test((0,V.default)());if(u&&(0,o.isHTMLElement)(l)){var s=(0,t.default)(l);if(s.position==="fixed")return null}var m=(0,y.default)(l);for((0,o.isShadowRoot)(m)&&(m=m.host);(0,o.isHTMLElement)(m)&&["html","body"].indexOf((0,a.default)(m))<0;){var c=(0,t.default)(m);if(c.transform!=="none"||c.perspective!=="none"||c.contain==="paint"||["transform","perspective"].indexOf(c.willChange)!==-1||f&&c.willChange==="filter"||f&&c.filter&&c.filter!=="none")return m;m=m.parentNode}return null}function i(l){for(var f=(0,e.default)(l),u=S(l);u&&(0,d.default)(u)&&(0,t.default)(u).position==="static";)u=S(u);return u&&((0,a.default)(u)==="html"||(0,a.default)(u)==="body"&&(0,t.default)(u).position==="static")?f:u||p(l)||f}},57819:function(I,r,n){"use strict";r.__esModule=!0,r.default=d;var e=o(n(12972)),a=o(n(40600)),t=n(75573);function o(y){return y&&y.__esModule?y:{default:y}}function d(y){return(0,e.default)(y)==="html"?y:y.assignedSlot||y.parentNode||((0,t.isShadowRoot)(y)?y.host:null)||(0,a.default)(y)}},24426:function(I,r,n){"use strict";r.__esModule=!0,r.default=y;var e=d(n(57819)),a=d(n(10798)),t=d(n(12972)),o=n(75573);function d(V){return V&&V.__esModule?V:{default:V}}function y(V){return["html","body","#document"].indexOf((0,t.default)(V))>=0?V.ownerDocument.body:(0,o.isHTMLElement)(V)&&(0,a.default)(V)?V:y((0,e.default)(V))}},87991:function(I,r,n){"use strict";r.__esModule=!0,r.default=y;var e=d(n(95115)),a=d(n(40600)),t=d(n(79697)),o=d(n(89331));function d(V){return V&&V.__esModule?V:{default:V}}function y(V,k){var S=(0,e.default)(V),p=(0,a.default)(V),i=S.visualViewport,l=p.clientWidth,f=p.clientHeight,u=0,s=0;if(i){l=i.width,f=i.height;var m=(0,o.default)();(m||!m&&k==="fixed")&&(u=i.offsetLeft,s=i.offsetTop)}return{width:l,height:f,x:u+(0,t.default)(V),y:s}}},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 d=(0,e.default)(o),y=d.pageXOffset,V=d.pageYOffset;return{scrollLeft:y,scrollTop:V}}},79697:function(I,r,n){"use strict";r.__esModule=!0,r.default=d;var e=o(n(37786)),a=o(n(40600)),t=o(n(43750));function o(y){return y&&y.__esModule?y:{default:y}}function d(y){return(0,e.default)((0,a.default)(y)).left+(0,t.default)(y).scrollLeft}},75573:function(I,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=d;var e=a(n(95115));function a(y){return y&&y.__esModule?y:{default:y}}function t(y){var V=(0,e.default)(y).Element;return y instanceof V||y instanceof Element}function o(y){var V=(0,e.default)(y).HTMLElement;return y instanceof V||y instanceof HTMLElement}function d(y){if(typeof ShadowRoot=="undefined")return!1;var V=(0,e.default)(y).ShadowRoot;return y instanceof V||y 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 d=(0,e.default)(o),y=d.overflow,V=d.overflowX,k=d.overflowY;return/auto|scroll|overlay|hidden/.test(y+k+V)}},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=y;var e=d(n(24426)),a=d(n(57819)),t=d(n(95115)),o=d(n(10798));function d(V){return V&&V.__esModule?V:{default:V}}function y(V,k){var S;k===void 0&&(k=[]);var p=(0,e.default)(V),i=p===((S=V.ownerDocument)==null?void 0:S.body),l=(0,t.default)(p),f=i?[l].concat(l.visualViewport||[],(0,o.default)(p)?p:[]):p,u=k.concat(f);return i?u:u.concat(y((0,a.default)(f)))}},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",d=r.basePlacements=[n,e,a,t],y=r.start="start",V=r.end="end",k=r.clippingParents="clippingParents",S=r.viewport="viewport",p=r.popper="popper",i=r.reference="reference",l=r.variationPlacements=d.reduce(function(x,B){return x.concat([B+"-"+y,B+"-"+V])},[]),f=r.placements=[].concat(d,[o]).reduce(function(x,B){return x.concat([B,B+"-"+y,B+"-"+V])},[]),u=r.beforeRead="beforeRead",s=r.read="read",m=r.afterRead="afterRead",c=r.beforeMain="beforeMain",v=r.main="main",b=r.afterMain="afterMain",g=r.beforeWrite="beforeWrite",h=r.write="write",C=r.afterWrite="afterWrite",N=r.modifierPhases=[u,s,m,c,v,b,g,h,C]},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(V){V==="default"||V==="__esModule"||Object.prototype.hasOwnProperty.call(e,V)||V in r&&r[V]===a[V]||(r[V]=a[V])});var t=n(39805);Object.keys(t).forEach(function(V){V==="default"||V==="__esModule"||Object.prototype.hasOwnProperty.call(e,V)||V in r&&r[V]===t[V]||(r[V]=t[V])});var o=n(96376);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var d=n(83312);r.createPopper=d.createPopper;var y=n(2473);r.createPopperLite=y.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(V){return V&&V.__esModule?V:{default:V}}function o(V){var k=V.state;Object.keys(k.elements).forEach(function(S){var p=k.styles[S]||{},i=k.attributes[S]||{},l=k.elements[S];!(0,a.isHTMLElement)(l)||!(0,e.default)(l)||(Object.assign(l.style,p),Object.keys(i).forEach(function(f){var u=i[f];u===!1?l.removeAttribute(f):l.setAttribute(f,u===!0?"":u)}))})}function d(V){var k=V.state,S={popper:{position:k.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(k.elements.popper.style,S.popper),k.styles=S,k.elements.arrow&&Object.assign(k.elements.arrow.style,S.arrow),function(){Object.keys(k.elements).forEach(function(p){var i=k.elements[p],l=k.attributes[p]||{},f=Object.keys(k.styles.hasOwnProperty(p)?k.styles[p]:S[p]),u=f.reduce(function(s,m){return s[m]="",s},{});!(0,a.isHTMLElement)(i)||!(0,e.default)(i)||(Object.assign(i.style,u),Object.keys(l).forEach(function(s){i.removeAttribute(s)}))})}}var y=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:d,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)),d=p(n(41199)),y=n(28595),V=p(n(43286)),k=p(n(81447)),S=n(46206);function p(s){return s&&s.__esModule?s:{default:s}}var i=function(){function s(m,c){return m=typeof m=="function"?m(Object.assign({},c.rects,{placement:c.placement})):m,(0,V.default)(typeof m!="number"?m:(0,k.default)(m,S.basePlacements))}return s}();function l(s){var m,c=s.state,v=s.name,b=s.options,g=c.elements.arrow,h=c.modifiersData.popperOffsets,C=(0,e.default)(c.placement),N=(0,d.default)(C),x=[S.left,S.right].indexOf(C)>=0,B=x?"height":"width";if(!(!g||!h)){var L=i(b.padding,c),w=(0,a.default)(g),A=N==="y"?S.top:S.left,T=N==="y"?S.bottom:S.right,E=c.rects.reference[B]+c.rects.reference[N]-h[N]-c.rects.popper[B],O=h[N]-c.rects.reference[N],P=(0,o.default)(g),R=P?N==="y"?P.clientHeight||0:P.clientWidth||0:0,F=E/2-O/2,j=L[A],W=R-w[B]-L[T],H=R/2-w[B]/2+F,z=(0,y.within)(j,H,W),$=N;c.modifiersData[v]=(m={},m[$]=z,m.centerOffset=z-H,m)}}function f(s){var m=s.state,c=s.options,v=c.element,b=v===void 0?"[data-popper-arrow]":v;b!=null&&(typeof b=="string"&&(b=m.elements.popper.querySelector(b),!b)||(0,t.default)(m.elements.popper,b)&&(m.elements.arrow=b))}var u=r.default={name:"arrow",enabled:!0,phase:"main",fn:l,effect:f,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},59894:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=l;var e=n(46206),a=S(n(44896)),t=S(n(95115)),o=S(n(40600)),d=S(n(16599)),y=S(n(83104)),V=S(n(45)),k=n(63618);function S(s){return s&&s.__esModule?s:{default:s}}var p={top:"auto",right:"auto",bottom:"auto",left:"auto"};function i(s,m){var c=s.x,v=s.y,b=m.devicePixelRatio||1;return{x:(0,k.round)(c*b)/b||0,y:(0,k.round)(v*b)/b||0}}function l(s){var m,c=s.popper,v=s.popperRect,b=s.placement,g=s.variation,h=s.offsets,C=s.position,N=s.gpuAcceleration,x=s.adaptive,B=s.roundOffsets,L=s.isFixed,w=h.x,A=w===void 0?0:w,T=h.y,E=T===void 0?0:T,O=typeof B=="function"?B({x:A,y:E}):{x:A,y:E};A=O.x,E=O.y;var P=h.hasOwnProperty("x"),R=h.hasOwnProperty("y"),F=e.left,j=e.top,W=window;if(x){var H=(0,a.default)(c),z="clientHeight",$="clientWidth";if(H===(0,t.default)(c)&&(H=(0,o.default)(c),(0,d.default)(H).position!=="static"&&C==="absolute"&&(z="scrollHeight",$="scrollWidth")),H=H,b===e.top||(b===e.left||b===e.right)&&g===e.end){j=e.bottom;var G=L&&H===W&&W.visualViewport?W.visualViewport.height:H[z];E-=G-v.height,E*=N?1:-1}if(b===e.left||(b===e.top||b===e.bottom)&&g===e.end){F=e.right;var ne=L&&H===W&&W.visualViewport?W.visualViewport.width:H[$];A-=ne-v.width,A*=N?1:-1}}var Q=Object.assign({position:C},x&&p),he=B===!0?i({x:A,y:E},(0,t.default)(c)):{x:A,y:E};if(A=he.x,E=he.y,N){var Ve;return Object.assign({},Q,(Ve={},Ve[j]=R?"0":"",Ve[F]=P?"0":"",Ve.transform=(W.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",Ve))}return Object.assign({},Q,(m={},m[j]=R?E+"px":"",m[F]=P?A+"px":"",m.transform="",m))}function f(s){var m=s.state,c=s.options,v=c.gpuAcceleration,b=v===void 0?!0:v,g=c.adaptive,h=g===void 0?!0:g,C=c.roundOffsets,N=C===void 0?!0:C,x={placement:(0,y.default)(m.placement),variation:(0,V.default)(m.placement),popper:m.elements.popper,popperRect:m.rects.popper,gpuAcceleration:b,isFixed:m.options.strategy==="fixed"};m.modifiersData.popperOffsets!=null&&(m.styles.popper=Object.assign({},m.styles.popper,l(Object.assign({},x,{offsets:m.modifiersData.popperOffsets,position:m.options.strategy,adaptive:h,roundOffsets:N})))),m.modifiersData.arrow!=null&&(m.styles.arrow=Object.assign({},m.styles.arrow,l(Object.assign({},x,{offsets:m.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:N})))),m.attributes.popper=Object.assign({},m.attributes.popper,{"data-popper-placement":m.placement})}var u=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:f,data:{}}},36692:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(95115));function a(y){return y&&y.__esModule?y:{default:y}}var t={passive:!0};function o(y){var V=y.state,k=y.instance,S=y.options,p=S.scroll,i=p===void 0?!0:p,l=S.resize,f=l===void 0?!0:l,u=(0,e.default)(V.elements.popper),s=[].concat(V.scrollParents.reference,V.scrollParents.popper);return i&&s.forEach(function(m){m.addEventListener("scroll",k.update,t)}),f&&u.addEventListener("resize",k.update,t),function(){i&&s.forEach(function(m){m.removeEventListener("scroll",k.update,t)}),f&&u.removeEventListener("resize",k.update,t)}}var d=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function y(){}return y}(),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)),d=k(n(9041)),y=n(46206),V=k(n(45));function k(l){return l&&l.__esModule?l:{default:l}}function S(l){if((0,a.default)(l)===y.auto)return[];var f=(0,e.default)(l);return[(0,t.default)(l),f,(0,t.default)(f)]}function p(l){var f=l.state,u=l.options,s=l.name;if(!f.modifiersData[s]._skip){for(var m=u.mainAxis,c=m===void 0?!0:m,v=u.altAxis,b=v===void 0?!0:v,g=u.fallbackPlacements,h=u.padding,C=u.boundary,N=u.rootBoundary,x=u.altBoundary,B=u.flipVariations,L=B===void 0?!0:B,w=u.allowedAutoPlacements,A=f.options.placement,T=(0,a.default)(A),E=T===A,O=g||(E||!L?[(0,e.default)(A)]:S(A)),P=[A].concat(O).reduce(function(te,ee){return te.concat((0,a.default)(ee)===y.auto?(0,d.default)(f,{placement:ee,boundary:C,rootBoundary:N,padding:h,flipVariations:L,allowedAutoPlacements:w}):ee)},[]),R=f.rects.reference,F=f.rects.popper,j=new Map,W=!0,H=P[0],z=0;z=0,he=Q?"width":"height",Ve=(0,o.default)(f,{placement:$,boundary:C,rootBoundary:N,altBoundary:x,padding:h}),Ne=Q?ne?y.right:y.left:ne?y.bottom:y.top;R[he]>F[he]&&(Ne=(0,e.default)(Ne));var Be=(0,e.default)(Ne),Le=[];if(c&&Le.push(Ve[G]<=0),b&&Le.push(Ve[Ne]<=0,Ve[Be]<=0),Le.every(function(te){return te})){H=$,W=!1;break}j.set($,Le)}if(W)for(var Ae=L?3:1,fe=function(){function te(ee){var le=P.find(function(ye){var me=j.get(ye);if(me)return me.slice(0,ee).every(function(Te){return Te})});if(le)return H=le,"break"}return te}(),Z=Ae;Z>0;Z--){var J=fe(Z);if(J==="break")break}f.placement!==H&&(f.modifiersData[s]._skip=!0,f.placement=H,f.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,S,p){return p===void 0&&(p={x:0,y:0}),{top:k.top-S.height-p.y,right:k.right-S.width+p.x,bottom:k.bottom-S.height+p.y,left:k.left-S.width-p.x}}function d(k){return[e.top,e.right,e.bottom,e.left].some(function(S){return k[S]>=0})}function y(k){var S=k.state,p=k.name,i=S.rects.reference,l=S.rects.popper,f=S.modifiersData.preventOverflow,u=(0,a.default)(S,{elementContext:"reference"}),s=(0,a.default)(S,{altBoundary:!0}),m=o(u,i),c=o(s,l,f),v=d(m),b=d(c);S.modifiersData[p]={referenceClippingOffsets:m,popperEscapeOffsets:c,isReferenceHidden:v,hasPopperEscaped:b},S.attributes.popper=Object.assign({},S.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":b})}var V=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:y}},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 d=p(n(23798));r.flip=d.default;var y=p(n(83761));r.hide=y.default;var V=p(n(61410));r.offset=V.default;var k=p(n(40107));r.popperOffsets=k.default;var S=p(n(75137));r.preventOverflow=S.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(V){return V&&V.__esModule?V:{default:V}}function o(V,k,S){var p=(0,e.default)(V),i=[a.left,a.top].indexOf(p)>=0?-1:1,l=typeof S=="function"?S(Object.assign({},k,{placement:V})):S,f=l[0],u=l[1];return f=f||0,u=(u||0)*i,[a.left,a.right].indexOf(p)>=0?{x:u,y:f}:{x:f,y:u}}function d(V){var k=V.state,S=V.options,p=V.name,i=S.offset,l=i===void 0?[0,0]:i,f=a.placements.reduce(function(c,v){return c[v]=o(v,k.rects,l),c},{}),u=f[k.placement],s=u.x,m=u.y;k.modifiersData.popperOffsets!=null&&(k.modifiersData.popperOffsets.x+=s,k.modifiersData.popperOffsets.y+=m),k.modifiersData[p]=f}var y=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:d}},40107:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(89951));function a(d){return d&&d.__esModule?d:{default:d}}function t(d){var y=d.state,V=d.name;y.modifiersData[V]=(0,e.default)({reference:y.rects.reference,element:y.rects.popper,strategy:"absolute",placement:y.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=l(n(83104)),t=l(n(41199)),o=l(n(28066)),d=n(28595),y=l(n(28811)),V=l(n(44896)),k=l(n(17633)),S=l(n(45)),p=l(n(34780)),i=n(63618);function l(s){return s&&s.__esModule?s:{default:s}}function f(s){var m=s.state,c=s.options,v=s.name,b=c.mainAxis,g=b===void 0?!0:b,h=c.altAxis,C=h===void 0?!1:h,N=c.boundary,x=c.rootBoundary,B=c.altBoundary,L=c.padding,w=c.tether,A=w===void 0?!0:w,T=c.tetherOffset,E=T===void 0?0:T,O=(0,k.default)(m,{boundary:N,rootBoundary:x,padding:L,altBoundary:B}),P=(0,a.default)(m.placement),R=(0,S.default)(m.placement),F=!R,j=(0,t.default)(P),W=(0,o.default)(j),H=m.modifiersData.popperOffsets,z=m.rects.reference,$=m.rects.popper,G=typeof E=="function"?E(Object.assign({},m.rects,{placement:m.placement})):E,ne=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),Q=m.modifiersData.offset?m.modifiersData.offset[m.placement]:null,he={x:0,y:0};if(H){if(g){var Ve,Ne=j==="y"?e.top:e.left,Be=j==="y"?e.bottom:e.right,Le=j==="y"?"height":"width",Ae=H[j],fe=Ae+O[Ne],Z=Ae-O[Be],J=A?-$[Le]/2:0,te=R===e.start?z[Le]:$[Le],ee=R===e.start?-$[Le]:-z[Le],le=m.elements.arrow,ye=A&&le?(0,y.default)(le):{width:0,height:0},me=m.modifiersData["arrow#persistent"]?m.modifiersData["arrow#persistent"].padding:(0,p.default)(),Te=me[Ne],M=me[Be],X=(0,d.within)(0,z[Le],ye[Le]),ae=F?z[Le]/2-J-X-Te-ne.mainAxis:te-X-Te-ne.mainAxis,ue=F?-z[Le]/2+J+X+M+ne.mainAxis:ee+X+M+ne.mainAxis,ie=m.elements.arrow&&(0,V.default)(m.elements.arrow),ge=ie?j==="y"?ie.clientTop||0:ie.clientLeft||0:0,Ce=(Ve=Q==null?void 0:Q[j])!=null?Ve:0,Me=Ae+ae-Ce-ge,De=Ae+ue-Ce,ke=(0,d.within)(A?(0,i.min)(fe,Me):fe,Ae,A?(0,i.max)(Z,De):Z);H[j]=ke,he[j]=ke-Ae}if(C){var pe,se=j==="x"?e.top:e.left,xe=j==="x"?e.bottom:e.right,_=H[W],oe=W==="y"?"height":"width",ve=_+O[se],Se=_-O[xe],Ie=[e.top,e.left].indexOf(P)!==-1,Ee=(pe=Q==null?void 0:Q[W])!=null?pe:0,Pe=Ie?ve:_-z[oe]-$[oe]-Ee+ne.altAxis,Oe=Ie?_+z[oe]+$[oe]-Ee-ne.altAxis:Se,We=A&&Ie?(0,d.withinMaxClamp)(Pe,_,Oe):(0,d.within)(A?Pe:ve,_,A?Oe:Se);H[W]=We,he[W]=We-_}m.modifiersData[v]=he}}var u=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:f,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=y(n(36692)),t=y(n(40107)),o=y(n(59894)),d=y(n(19975));function y(S){return S&&S.__esModule?S:{default:S}}var V=r.defaultModifiers=[a.default,t.default,o.default,d.default],k=r.createPopper=(0,e.popperGenerator)({defaultModifiers:V})},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)),d=u(n(59894)),y=u(n(19975)),V=u(n(61410)),k=u(n(23798)),S=u(n(75137)),p=u(n(52744)),i=u(n(83761)),l=n(2473);r.createPopperLite=l.createPopper;var f=n(39805);Object.keys(f).forEach(function(c){c==="default"||c==="__esModule"||Object.prototype.hasOwnProperty.call(e,c)||c in r&&r[c]===f[c]||(r[c]=f[c])});function u(c){return c&&c.__esModule?c:{default:c}}var s=r.defaultModifiers=[t.default,o.default,d.default,y.default,V.default,k.default,S.default,p.default,i.default],m=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:s})},9041:function(I,r,n){"use strict";r.__esModule=!0,r.default=y;var e=d(n(45)),a=n(46206),t=d(n(17633)),o=d(n(83104));function d(V){return V&&V.__esModule?V:{default:V}}function y(V,k){k===void 0&&(k={});var S=k,p=S.placement,i=S.boundary,l=S.rootBoundary,f=S.padding,u=S.flipVariations,s=S.allowedAutoPlacements,m=s===void 0?a.placements:s,c=(0,e.default)(p),v=c?u?a.variationPlacements:a.variationPlacements.filter(function(h){return(0,e.default)(h)===c}):a.basePlacements,b=v.filter(function(h){return m.indexOf(h)>=0});b.length===0&&(b=v);var g=b.reduce(function(h,C){return h[C]=(0,t.default)(V,{placement:C,boundary:i,rootBoundary:l,padding:f})[(0,o.default)(C)],h},{});return Object.keys(g).sort(function(h,C){return g[h]-g[C]})}},89951:function(I,r,n){"use strict";r.__esModule=!0,r.default=y;var e=d(n(83104)),a=d(n(45)),t=d(n(41199)),o=n(46206);function d(V){return V&&V.__esModule?V:{default:V}}function y(V){var k=V.reference,S=V.element,p=V.placement,i=p?(0,e.default)(p):null,l=p?(0,a.default)(p):null,f=k.x+k.width/2-S.width/2,u=k.y+k.height/2-S.height/2,s;switch(i){case o.top:s={x:f,y:k.y-S.height};break;case o.bottom:s={x:f,y:k.y+k.height};break;case o.right:s={x:k.x+k.width,y:u};break;case o.left:s={x:k.x-S.width,y:u};break;default:s={x:k.x,y:k.y}}var m=i?(0,t.default)(i):null;if(m!=null){var c=m==="y"?"height":"width";switch(l){case o.start:s[m]=s[m]-(k[c]/2-S[c]/2);break;case o.end:s[m]=s[m]+(k[c]/2-S[c]/2);break;default:}}return s}},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)),d=p(n(81666)),y=n(46206),V=n(75573),k=p(n(43286)),S=p(n(81447));function p(l){return l&&l.__esModule?l:{default:l}}function i(l,f){f===void 0&&(f={});var u=f,s=u.placement,m=s===void 0?l.placement:s,c=u.strategy,v=c===void 0?l.strategy:c,b=u.boundary,g=b===void 0?y.clippingParents:b,h=u.rootBoundary,C=h===void 0?y.viewport:h,N=u.elementContext,x=N===void 0?y.popper:N,B=u.altBoundary,L=B===void 0?!1:B,w=u.padding,A=w===void 0?0:w,T=(0,k.default)(typeof A!="number"?A:(0,S.default)(A,y.basePlacements)),E=x===y.popper?y.reference:y.popper,O=l.rects.popper,P=l.elements[L?E:x],R=(0,e.default)((0,V.isElement)(P)?P:P.contextElement||(0,a.default)(l.elements.popper),g,C,v),F=(0,t.default)(l.elements.reference),j=(0,o.default)({reference:F,element:O,strategy:"absolute",placement:m}),W=(0,d.default)(Object.assign({},O,j)),H=x===y.popper?W:F,z={top:R.top-H.top+T.top,bottom:H.bottom-R.bottom+T.bottom,left:R.left-H.left+T.left,right:H.right-R.right+T.right},$=l.modifiersData.offset;if(x===y.popper&&$){var G=$[m];Object.keys(z).forEach(function(ne){var Q=[y.right,y.bottom].indexOf(ne)>=0?1:-1,he=[y.top,y.bottom].indexOf(ne)>=0?"y":"x";z[ne]+=G[he]*Q})}return z}},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 d=t[o.name];return t[o.name]=d?Object.assign({},d,o,{options:Object.assign({},d.options,o.options),data:Object.assign({},d.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 d=new Map,y=new Set,V=[];o.forEach(function(S){d.set(S.name,S)});function k(S){y.add(S.name);var p=[].concat(S.requires||[],S.requiresIfExists||[]);p.forEach(function(i){if(!y.has(i)){var l=d.get(i);l&&k(l)}}),V.push(S)}return o.forEach(function(S){y.has(S.name)||k(S)}),V}function t(o){var d=a(o);return e.modifierPhases.reduce(function(y,V){return y.concat(d.filter(function(k){return k.phase===V}))},[])}},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,d,y){return(0,e.max)(o,(0,e.min)(d,y))}function t(o,d,y){var V=a(o,d,y);return V>y?y:V}},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(d){return typeof d}return o}():a=function(){function o(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d}return o}(),a(t)}(function(t){var o=arguments,d=function(){var i=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,l=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,f=/[^-+\dA-Z]/g;return function(u,s,m,c){if(o.length===1&&p(u)==="string"&&!/\d/.test(u)&&(s=u,u=void 0),u=u||u===0?u:new Date,u instanceof Date||(u=new Date(u)),isNaN(u))throw TypeError("Invalid date");s=String(d.masks[s]||s||d.masks.default);var v=s.slice(0,4);(v==="UTC:"||v==="GMT:")&&(s=s.slice(4),m=!0,v==="GMT:"&&(c=!0));var b=function(){function P(){return m?"getUTC":"get"}return P}(),g=function(){function P(){return u[b()+"Date"]()}return P}(),h=function(){function P(){return u[b()+"Day"]()}return P}(),C=function(){function P(){return u[b()+"Month"]()}return P}(),N=function(){function P(){return u[b()+"FullYear"]()}return P}(),x=function(){function P(){return u[b()+"Hours"]()}return P}(),B=function(){function P(){return u[b()+"Minutes"]()}return P}(),L=function(){function P(){return u[b()+"Seconds"]()}return P}(),w=function(){function P(){return u[b()+"Milliseconds"]()}return P}(),A=function(){function P(){return m?0:u.getTimezoneOffset()}return P}(),T=function(){function P(){return k(u)}return P}(),E=function(){function P(){return S(u)}return P}(),O={d:function(){function P(){return g()}return P}(),dd:function(){function P(){return y(g())}return P}(),ddd:function(){function P(){return d.i18n.dayNames[h()]}return P}(),DDD:function(){function P(){return V({y:N(),m:C(),d:g(),_:b(),dayName:d.i18n.dayNames[h()],short:!0})}return P}(),dddd:function(){function P(){return d.i18n.dayNames[h()+7]}return P}(),DDDD:function(){function P(){return V({y:N(),m:C(),d:g(),_:b(),dayName:d.i18n.dayNames[h()+7]})}return P}(),m:function(){function P(){return C()+1}return P}(),mm:function(){function P(){return y(C()+1)}return P}(),mmm:function(){function P(){return d.i18n.monthNames[C()]}return P}(),mmmm:function(){function P(){return d.i18n.monthNames[C()+12]}return P}(),yy:function(){function P(){return String(N()).slice(2)}return P}(),yyyy:function(){function P(){return y(N(),4)}return P}(),h:function(){function P(){return x()%12||12}return P}(),hh:function(){function P(){return y(x()%12||12)}return P}(),H:function(){function P(){return x()}return P}(),HH:function(){function P(){return y(x())}return P}(),M:function(){function P(){return B()}return P}(),MM:function(){function P(){return y(B())}return P}(),s:function(){function P(){return L()}return P}(),ss:function(){function P(){return y(L())}return P}(),l:function(){function P(){return y(w(),3)}return P}(),L:function(){function P(){return y(Math.floor(w()/10))}return P}(),t:function(){function P(){return x()<12?d.i18n.timeNames[0]:d.i18n.timeNames[1]}return P}(),tt:function(){function P(){return x()<12?d.i18n.timeNames[2]:d.i18n.timeNames[3]}return P}(),T:function(){function P(){return x()<12?d.i18n.timeNames[4]:d.i18n.timeNames[5]}return P}(),TT:function(){function P(){return x()<12?d.i18n.timeNames[6]:d.i18n.timeNames[7]}return P}(),Z:function(){function P(){return c?"GMT":m?"UTC":(String(u).match(l)||[""]).pop().replace(f,"").replace(/GMT\+0000/g,"UTC")}return P}(),o:function(){function P(){return(A()>0?"-":"+")+y(Math.floor(Math.abs(A())/60)*100+Math.abs(A())%60,4)}return P}(),p:function(){function P(){return(A()>0?"-":"+")+y(Math.floor(Math.abs(A())/60),2)+":"+y(Math.floor(Math.abs(A())%60),2)}return P}(),S:function(){function P(){return["th","st","nd","rd"][g()%10>3?0:(g()%100-g()%10!=10)*g()%10]}return P}(),W:function(){function P(){return T()}return P}(),WW:function(){function P(){return y(T())}return P}(),N:function(){function P(){return E()}return P}()};return s.replace(i,function(P){return P in O?O[P]():P.slice(1,P.length-1)})}}();d.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"},d.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 y=function(){function i(l,f){for(l=String(l),f=f||2;l.length0?x(K.componentWillDisappear,w(D,U)):L(D,U,!1)}function T(D,U,K,Y,re,ce,de,be){D.componentWillMove.push({dom:Y,fn:function(){function we(){de&4?K.componentWillMove(U,re,Y):de&8&&K.onComponentWillMove(U,re,Y,be)}return we}(),next:ce,parent:re})}function E(D,U,K,Y,re){var ce,de,be=U.flags;do{var we=U.flags;if(we&1521){!a(ce)&&(o(ce.componentWillMove)||o(ce.onComponentWillMove))?T(re,D,ce,U.dom,K,Y,be,de):c(K,U.dom,Y);return}var Fe=U.children;if(we&4)ce=U.children,de=U.props,U=Fe.$LI;else if(we&8)ce=U.ref,de=U.props,U=Fe;else if(we&8192)if(U.childFlags===2)U=Fe;else{for(var Re=0,Ue=Fe.length;Re0,Fe=V(be),Re=d(be)&&be[0]===z;we||Fe||Re?(K=K||U.slice(0,ce),(we||Re)&&(de=fe(de)),(Fe||Re)&&(de.key=z+ce),K.push(de)):K&&K.push(de),de.flags|=65536}}K=K||U,K.length===0?Y=1:Y=8}else K=U,K.flags|=65536,U.flags&81920&&(K=fe(U)),Y=2;return D.children=K,D.childFlags=Y,D}function ye(D){return t(D)||e(D)?Ne(D,null):n(D)?Be(D,0,null):D.flags&16384?fe(D):D}var me="http://www.w3.org/1999/xlink",Te="http://www.w3.org/XML/1998/namespace",M={"xlink:actuate":me,"xlink:arcrole":me,"xlink:href":me,"xlink:role":me,"xlink:show":me,"xlink:title":me,"xlink:type":me,"xml:base":Te,"xml:lang":Te,"xml:space":Te};function X(D){return{onClick:D,onDblClick:D,onFocusIn:D,onFocusOut:D,onKeyDown:D,onKeyPress:D,onKeyUp:D,onMouseDown:D,onMouseMove:D,onMouseUp:D,onTouchEnd:D,onTouchMove:D,onTouchStart:D}}var ae=X(0),ue=X(null),ie=X(!0);function ge(D,U){var K=U.$EV;return K||(K=U.$EV=X(null)),K[D]||++ae[D]===1&&(ue[D]=Se(D)),K}function Ce(D,U){var K=U.$EV;K&&K[D]&&(--ae[D]===0&&(document.removeEventListener(s(D),ue[D]),ue[D]=null),K[D]=null)}function Me(D,U,K,Y){if(o(K))ge(D,Y)[D]=K;else if(i(K)){if(j(U,K))return;ge(D,Y)[D]=K}else Ce(D,Y)}function De(D){return o(D.composedPath)?D.composedPath()[0]:D.target}function ke(D,U,K,Y){var re=De(D);do{if(U&&re.disabled)return;var ce=re.$EV;if(ce){var de=ce[K];if(de&&(Y.dom=re,de.event?de.event(de.data,D):de(D),D.cancelBubble))return}re=re.parentNode}while(!V(re))}function pe(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function se(){return this.defaultPrevented}function xe(){return this.cancelBubble}function _(D){var U={dom:document};return D.isDefaultPrevented=se,D.isPropagationStopped=xe,D.stopPropagation=pe,Object.defineProperty(D,"currentTarget",{configurable:!0,get:function(){function K(){return U.dom}return K}()}),U}function oe(D){return function(U){if(U.button!==0){U.stopPropagation();return}ke(U,!0,D,_(U))}}function ve(D){return function(U){ke(U,!1,D,_(U))}}function Se(D){var U=D==="onClick"||D==="onDblClick"?oe(D):ve(D);return document.addEventListener(s(D),U),U}function Ie(D,U){var K=document.createElement("i");return K.innerHTML=U,K.innerHTML===D.innerHTML}function Ee(D,U,K){if(D[U]){var Y=D[U];Y.event?Y.event(Y.data,K):Y(K)}else{var re=U.toLowerCase();D[re]&&D[re](K)}}function Pe(D,U){var K=function(){function Y(re){var ce=this.$V;if(ce){var de=ce.props||l,be=ce.dom;if(d(D))Ee(de,D,re);else for(var we=0;we-1&&U.options[ce]&&(be=U.options[ce].value),K&&a(be)&&(be=D.defaultValue),qe(Y,be)}}var Zt=Pe("onInput",wt),qt=Pe("onChange");function en(D,U){Oe(D,"input",Zt),U.onChange&&Oe(D,"change",qt)}function wt(D,U,K){var Y=D.value,re=U.value;if(a(Y)){if(K){var ce=D.defaultValue;!a(ce)&&ce!==re&&(U.defaultValue=ce,U.value=ce)}}else re!==Y&&(U.defaultValue=Y,U.value=Y)}function Tt(D,U,K,Y,re,ce){D&64?ut(Y,K):D&256?It(Y,K,re,U):D&128&&wt(Y,K,re),ce&&(K.$V=U)}function tn(D,U,K){D&64?$e(U,K):D&256?Jt(U):D&128&&en(U,K)}function At(D){return D.type&&We(D.type)?!a(D.checked):!a(D.value)}function nn(){return{current:null}}function on(D){var U={render:D};return U}function vt(D){D&&!H(D,null)&&D.current&&(D.current=null)}function st(D,U,K){D&&(o(D)||D.current!==void 0)&&K.push(function(){!H(D,U)&&D.current!==void 0&&(D.current=U)})}function tt(D,U,K){ot(D,K),A(D,U,K)}function ot(D,U){var K=D.flags,Y=D.children,re;if(K&481){re=D.ref;var ce=D.props;vt(re);var de=D.childFlags;if(!V(ce))for(var be=Object.keys(ce),we=0,Fe=be.length;we0?x(K.componentWillDisappear,rn(U,D)):D.textContent=""}function gt(D,U,K,Y){mt(K,Y),U.flags&8192?A(U,D,Y):Ct(D,K,Y)}function Et(D,U,K,Y,re){D.componentWillDisappear.push(function(ce){Y&4?U.componentWillDisappear(K,ce):Y&8&&U.onComponentWillDisappear(K,re,ce)})}function an(D){var U=D.event;return function(K){U(D.data,K)}}function cn(D,U,K,Y){if(i(K)){if(j(U,K))return;K=an(K)}Oe(Y,s(D),K)}function ln(D,U,K){if(a(U)){K.removeAttribute("style");return}var Y=K.style,re,ce;if(d(U)){Y.cssText=U;return}if(!a(D)&&!d(D)){for(re in U)ce=U[re],ce!==D[re]&&Y.setProperty(re,ce);for(re in D)a(U[re])&&Y.removeProperty(re)}else for(re in U)ce=U[re],Y.setProperty(re,ce)}function un(D,U,K,Y,re){var ce=D&&D.__html||"",de=U&&U.__html||"";ce!==de&&!a(de)&&!Ie(Y,de)&&(V(K)||(K.childFlags&12?mt(K.children,re):K.childFlags===2&&ot(K.children,re),K.children=null,K.childFlags=1),Y.innerHTML=de)}function Vt(D,U,K,Y,re,ce,de,be){switch(D){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":Y.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":Y[D]=!!K;break;case"defaultChecked":case"value":case"volume":if(ce&&D==="value")break;var we=a(K)?"":K;Y[D]!==we&&(Y[D]=we);break;case"style":ln(U,K,Y);break;case"dangerouslySetInnerHTML":un(U,K,de,Y,be);break;default:ie[D]?Me(D,U,K,Y):D.charCodeAt(0)===111&&D.charCodeAt(1)===110?cn(D,U,K,Y):a(K)?Y.removeAttribute(D):re&&M[D]?Y.setAttributeNS(M[D],D,K):Y.setAttribute(D,K);break}}function Mt(D,U,K,Y,re,ce){var de=!1,be=(U&448)>0;be&&(de=At(K),de&&tn(U,Y,K));for(var we in K)Vt(we,null,K[we],Y,re,de,null,ce);be&&Tt(U,D,Y,K,!0,de)}function Ot(D,U,K){var Y=ye(D.render(U,D.state,K)),re=K;return o(D.getChildContext)&&(re=S(K,D.getChildContext())),D.$CX=re,Y}function Pt(D,U,K,Y,re,ce){var de=new U(K,Y),be=de.$N=!!(U.getDerivedStateFromProps||de.getSnapshotBeforeUpdate);if(de.$SVG=re,de.$L=ce,D.children=de,de.$BS=!1,de.context=Y,de.props===l&&(de.props=K),be)de.state=O(de,K,de.state);else if(o(de.componentWillMount)){de.$BR=!0,de.componentWillMount();var we=de.$PS;if(!V(we)){var Fe=de.state;if(V(Fe))de.state=we;else for(var Re in we)Fe[Re]=we[Re];de.$PS=null}de.$BR=!1}return de.$LI=Ot(de,K,Y),de}function yt(D,U){var K=D.props||l;return D.flags&32768?D.type.render(K,D.ref,U):D.type(K,U)}function Xe(D,U,K,Y,re,ce,de){var be=D.flags|=16384;be&481?Dt(D,U,K,Y,re,ce,de):be&4?mn(D,U,K,Y,re,ce,de):be&8?fn(D,U,K,Y,re,ce,de):be&16?Rt(D,U,re):be&8192?sn(D,K,U,Y,re,ce,de):be&1024&&dn(D,K,U,re,ce,de)}function dn(D,U,K,Y,re,ce){Xe(D.children,D.ref,U,!1,null,re,ce);var de=Z();Rt(de,K,Y),D.dom=de.dom}function sn(D,U,K,Y,re,ce,de){var be=D.children,we=D.childFlags;we&12&&be.length===0&&(we=D.childFlags=2,be=D.children=Z()),we===2?Xe(be,K,U,Y,re,ce,de):dt(be,K,U,Y,re,ce,de)}function Rt(D,U,K){var Y=D.dom=document.createTextNode(D.children);V(U)||c(U,Y,K)}function Dt(D,U,K,Y,re,ce,de){var be=D.flags,we=D.props,Fe=D.className,Re=D.childFlags,Ue=D.dom=v(D.type,Y=Y||(be&32)>0),je=D.children;if(!a(Fe)&&Fe!==""&&(Y?Ue.setAttribute("class",Fe):Ue.className=Fe),Re===16)F(Ue,je);else if(Re!==1){var _e=Y&&D.type!=="foreignObject";Re===2?(je.flags&16384&&(D.children=je=fe(je)),Xe(je,Ue,K,_e,null,ce,de)):(Re===8||Re===4)&&dt(je,Ue,K,_e,null,ce,de)}V(U)||c(U,Ue,re),V(we)||Mt(D,be,we,Ue,Y,de),st(D.ref,Ue,ce)}function dt(D,U,K,Y,re,ce,de){for(var be=0;be_e)&&(Ue=N(be[_e-1],!1).nextSibling)}St(Fe,Re,be,we,K,Y,re,Ue,D,ce,de)}function bn(D,U,K,Y,re){var ce=D.ref,de=U.ref,be=U.children;if(St(D.childFlags,U.childFlags,D.children,be,ce,K,!1,null,D,Y,re),U.dom=D.dom,ce!==de&&!t(be)){var we=be.dom;g(ce,we),m(de,we)}}function Vn(D,U,K,Y,re,ce,de){var be=U.dom=D.dom,we=D.props,Fe=U.props,Re=!1,Ue=!1,je;if(Y=Y||(re&32)>0,we!==Fe){var _e=we||l;if(je=Fe||l,je!==l){Re=(re&448)>0,Re&&(Ue=At(je));for(var Ye in je){var He=_e[Ye],Je=je[Ye];He!==Je&&Vt(Ye,He,Je,be,Y,Ue,D,de)}}if(_e!==l)for(var Ke in _e)a(je[Ke])&&!a(_e[Ke])&&Vt(Ke,_e[Ke],null,be,Y,Ue,D,de)}var it=U.children,et=U.className;D.className!==et&&(a(et)?be.removeAttribute("class"):Y?be.setAttribute("class",et):be.className=et),re&4096?gn(be,it):St(D.childFlags,U.childFlags,D.children,it,be,K,Y&&U.type!=="foreignObject",null,D,ce,de),Re&&Tt(re,U,be,je,!1,Ue);var ft=U.ref,nt=D.ref;nt!==ft&&(vt(nt),st(ft,be,ce))}function yn(D,U,K,Y,re,ce,de){ot(D,de),dt(U,K,Y,re,N(D,!0),ce,de),A(D,K,de)}function St(D,U,K,Y,re,ce,de,be,we,Fe,Re){switch(D){case 2:switch(U){case 2:rt(K,Y,re,ce,de,be,Fe,Re);break;case 1:tt(K,re,Re);break;case 16:ot(K,Re),F(re,Y);break;default:yn(K,Y,re,ce,de,Fe,Re);break}break;case 1:switch(U){case 2:Xe(Y,re,ce,de,be,Fe,Re);break;case 1:break;case 16:F(re,Y);break;default:dt(Y,re,ce,de,be,Fe,Re);break}break;case 16:switch(U){case 16:Cn(K,Y,re);break;case 2:Ct(re,K,Re),Xe(Y,re,ce,de,be,Fe,Re);break;case 1:Ct(re,K,Re);break;default:Ct(re,K,Re),dt(Y,re,ce,de,be,Fe,Re);break}break;default:switch(U){case 16:mt(K,Re),F(re,Y);break;case 2:gt(re,we,K,Re),Xe(Y,re,ce,de,be,Fe,Re);break;case 1:gt(re,we,K,Re);break;default:var Ue=K.length|0,je=Y.length|0;Ue===0?je>0&&dt(Y,re,ce,de,be,Fe,Re):je===0?gt(re,we,K,Re):U===8&&D===8?In(K,Y,re,ce,de,Ue,je,be,we,Fe,Re):Ln(K,Y,re,ce,de,Ue,je,be,Fe,Re);break}break}}function Sn(D,U,K,Y,re){re.push(function(){D.componentDidUpdate(U,K,Y)})}function Ut(D,U,K,Y,re,ce,de,be,we,Fe){var Re=D.state,Ue=D.props,je=!!D.$N,_e=o(D.shouldComponentUpdate);if(je&&(U=O(D,K,U!==Re?S(Re,U):U)),de||!_e||_e&&D.shouldComponentUpdate(K,U,re)){!je&&o(D.componentWillUpdate)&&D.componentWillUpdate(K,U,re),D.props=K,D.state=U,D.context=re;var Ye=null,He=Ot(D,K,re);je&&o(D.getSnapshotBeforeUpdate)&&(Ye=D.getSnapshotBeforeUpdate(Ue,Re)),rt(D.$LI,He,Y,D.$CX,ce,be,we,Fe),D.$LI=He,o(D.componentDidUpdate)&&Sn(D,Ue,Re,Ye,we)}else D.props=K,D.state=U,D.context=re}function kn(D,U,K,Y,re,ce,de,be){var we=U.children=D.children;if(!V(we)){we.$L=de;var Fe=U.props||l,Re=U.ref,Ue=D.ref,je=we.state;if(!we.$N){if(o(we.componentWillReceiveProps)){if(we.$BR=!0,we.componentWillReceiveProps(Fe,Y),we.$UN)return;we.$BR=!1}V(we.$PS)||(je=S(je,we.$PS),we.$PS=null)}Ut(we,je,Fe,K,Y,re,!1,ce,de,be),Ue!==Re&&(vt(Ue),st(Re,we,de))}}function Bn(D,U,K,Y,re,ce,de,be){var we=!0,Fe=U.props||l,Re=U.ref,Ue=D.props,je=!a(Re),_e=D.children;if(je&&o(Re.onComponentShouldUpdate)&&(we=Re.onComponentShouldUpdate(Ue,Fe)),we!==!1){je&&o(Re.onComponentWillUpdate)&&Re.onComponentWillUpdate(Ue,Fe);var Ye=ye(yt(U,Y));rt(_e,Ye,K,Y,re,ce,de,be),U.children=Ye,je&&o(Re.onComponentDidUpdate)&&Re.onComponentDidUpdate(Ue,Fe)}else U.children=_e}function xn(D,U){var K=U.children,Y=U.dom=D.dom;K!==D.children&&(Y.nodeValue=K)}function Ln(D,U,K,Y,re,ce,de,be,we,Fe){for(var Re=ce>de?de:ce,Ue=0,je,_e;Uede)for(Ue=Re;UeUe||_e>je)break e;Ye=D[_e],He=U[_e]}for(Ye=D[Ue],He=U[je];Ye.key===He.key;){if(He.flags&16384&&(U[je]=He=fe(He)),rt(Ye,He,K,Y,re,be,Fe,Re),D[Ue]=He,Ue--,je--,_e>Ue||_e>je)break e;Ye=D[Ue],He=U[je]}}if(_e>Ue){if(_e<=je)for(Je=je+1,Ke=Jeje)for(;_e<=Ue;)tt(D[_e++],K,Re);else wn(D,U,Y,ce,de,Ue,je,_e,K,re,be,we,Fe,Re)}function wn(D,U,K,Y,re,ce,de,be,we,Fe,Re,Ue,je,_e){var Ye,He,Je=0,Ke=0,it=be,et=be,ft=ce-be+1,nt=de-be+1,pt=new Int32Array(nt+1),ct=ft===Y,Bt=!1,Ze=0,ht=0;if(re<4||(ft|nt)<32)for(Ke=it;Ke<=ce;++Ke)if(Ye=D[Ke],htbe?Bt=!0:Ze=be,He.flags&16384&&(U[be]=He=fe(He)),rt(Ye,He,we,K,Fe,Re,je,_e),++ht;break}!ct&&be>de&&tt(Ye,we,_e)}else ct||tt(Ye,we,_e);else{var Gt={};for(Ke=et;Ke<=de;++Ke)Gt[U[Ke].key]=Ke;for(Ke=it;Ke<=ce;++Ke)if(Ye=D[Ke],htit;)tt(D[it++],we,_e);pt[be-et]=Ke+1,Ze>be?Bt=!0:Ze=be,He=U[be],He.flags&16384&&(U[be]=He=fe(He)),rt(Ye,He,we,K,Fe,Re,je,_e),++ht}else ct||tt(Ye,we,_e);else ct||tt(Ye,we,_e)}if(ct)gt(we,Ue,D,_e),dt(U,we,K,Fe,Re,je,_e);else if(Bt){var Qt=Tn(pt);for(be=Qt.length-1,Ke=nt-1;Ke>=0;Ke--)pt[Ke]===0?(Ze=Ke+et,He=U[Ze],He.flags&16384&&(U[Ze]=He=fe(He)),Je=Ze+1,Xe(He,we,K,Fe,Je0&&B(_e.componentWillMove)}else if(ht!==nt)for(Ke=nt-1;Ke>=0;Ke--)pt[Ke]===0&&(Ze=Ke+et,He=U[Ze],He.flags&16384&&(U[Ze]=He=fe(He)),Je=Ze+1,Xe(He,we,K,Fe,Je_t&&(_t=we,at=new Int32Array(we),Nt=new Int32Array(we));K>1,D[at[be]]0&&(Nt[K]=at[ce-1]),at[ce]=K)}ce=re+1;var Fe=new Int32Array(ce);for(de=at[ce-1];ce-- >0;)Fe[ce]=de,de=Nt[de],at[ce]=0;return Fe}var An=typeof document!="undefined";An&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ht(D,U,K,Y){var re=[],ce=new u,de=U.$V;P.v=!0,a(de)?a(D)||(D.flags&16384&&(D=fe(D)),Xe(D,U,Y,!1,null,re,ce),U.$V=D,de=D):a(D)?(tt(de,U,ce),U.$V=null):(D.flags&16384&&(D=fe(D)),rt(de,D,U,Y,!1,null,re,ce),de=U.$V=D),h(re),x(ce.componentDidAppear),P.v=!1,o(K)&&K(),o(R.renderComplete)&&R.renderComplete(de,U)}function zt(D,U,K,Y){K===void 0&&(K=null),Y===void 0&&(Y=l),Ht(D,U,K,Y)}function En(D){return function(){function U(K,Y,re,ce){D||(D=K),zt(Y,D,re,ce)}return U}()}var bt=[],Mn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(D){window.setTimeout(D,0)},kt=!1;function Kt(D,U,K,Y){var re=D.$PS;if(o(U)&&(U=U(re?S(D.state,re):D.state,D.props,D.context)),a(re))D.$PS=U;else for(var ce in U)re[ce]=U[ce];if(D.$BR)o(K)&&D.$L.push(K.bind(D));else{if(!P.v&&bt.length===0){Yt(D,Y),o(K)&&K.call(D);return}if(bt.indexOf(D)===-1&&bt.push(D),Y&&(D.$F=!0),kt||(kt=!0,Mn($t)),o(K)){var de=D.$QU;de||(de=D.$QU=[]),de.push(K)}}}function On(D){for(var U=D.$QU,K=0;K=55296&&ve<=56319&&oe+1<_.length&&(Se=_.charCodeAt(oe+1),Se>=56320&&Se<=57343)?(ve-55296)*1024+Se-56320+65536:ve}function fe(_){var oe=/^\n* /;return oe.test(_)}var Z=1,J=2,te=3,ee=4,le=5;function ye(_,oe,ve,Se,Ie,Ee,Pe,Oe){var We,ze=0,Ge=null,Qe=!1,$e=!1,ut=Se!==-1,qe=-1,lt=Be(Ae(_,0))&&Le(Ae(_,_.length-1));if(oe||Pe)for(We=0;We<_.length;ze>=65536?We+=2:We++){if(ze=Ae(_,We),!he(ze))return le;lt=lt&&Ne(ze,Ge,Oe),Ge=ze}else{for(We=0;We<_.length;ze>=65536?We+=2:We++){if(ze=Ae(_,We),ze===k)Qe=!0,ut&&($e=$e||We-qe-1>Se&&_[qe+1]!==" ",qe=We);else if(!he(ze))return le;lt=lt&&Ne(ze,Ge,Oe),Ge=ze}$e=$e||ut&&We-qe-1>Se&&_[qe+1]!==" "}return!Qe&&!$e?lt&&!Pe&&!Ie(_)?Z:Ee===H?le:J:ve>9&&fe(_)?le:Pe?Ee===H?le:J:$e?ee:te}function me(_,oe,ve,Se,Ie){_.dump=function(){if(oe.length===0)return _.quotingType===H?'""':"''";if(!_.noCompatMode&&(P.indexOf(oe)!==-1||R.test(oe)))return _.quotingType===H?'"'+oe+'"':"'"+oe+"'";var Ee=_.indent*Math.max(1,ve),Pe=_.lineWidth===-1?-1:Math.max(Math.min(_.lineWidth,40),_.lineWidth-Ee),Oe=Se||_.flowLevel>-1&&ve>=_.flowLevel;function We(ze){return ne(_,ze)}switch(ye(oe,Oe,_.indent,Pe,We,_.quotingType,_.forceQuotes&&!Se,Ie)){case Z:return oe;case J:return"'"+oe.replace(/'/g,"''")+"'";case te:return"|"+Te(oe,_.indent)+M($(oe,Ee));case ee:return">"+Te(oe,_.indent)+M($(X(oe,Pe),Ee));case le:return'"'+ue(oe,Pe)+'"';default:throw new a("impossible error: invalid scalar style")}}()}function Te(_,oe){var ve=fe(_)?String(oe):"",Se=_[_.length-1]==="\n",Ie=Se&&(_[_.length-2]==="\n"||_==="\n"),Ee=Ie?"+":Se?"":"-";return ve+Ee+"\n"}function M(_){return _[_.length-1]==="\n"?_.slice(0,-1):_}function X(_,oe){for(var ve=/(\n+)([^\n]*)/g,Se=function(){var ze=_.indexOf("\n");return ze=ze!==-1?ze:_.length,ve.lastIndex=ze,ae(_.slice(0,ze),oe)}(),Ie=_[0]==="\n"||_[0]===" ",Ee,Pe;Pe=ve.exec(_);){var Oe=Pe[1],We=Pe[2];Ee=We[0]===" ",Se+=Oe+(!Ie&&!Ee&&We!==""?"\n":"")+ae(We,oe),Ie=Ee}return Se}function ae(_,oe){if(_===""||_[0]===" ")return _;for(var ve=/ [^ ]/g,Se,Ie=0,Ee,Pe=0,Oe=0,We="";Se=ve.exec(_);)Oe=Se.index,Oe-Ie>oe&&(Ee=Pe>Ie?Pe:Oe,We+="\n"+_.slice(Ie,Ee),Ie=Ee+1),Pe=Oe;return We+="\n",_.length-Ie>oe&&Pe>Ie?We+=_.slice(Ie,Pe)+"\n"+_.slice(Pe+1):We+=_.slice(Ie),We.slice(1)}function ue(_){for(var oe="",ve=0,Se,Ie=0;Ie<_.length;ve>=65536?Ie+=2:Ie++)ve=Ae(_,Ie),Se=O[ve],!Se&&he(ve)?(oe+=_[Ie],ve>=65536&&(oe+=_[Ie+1])):oe+=Se||j(ve);return oe}function ie(_,oe,ve){var Se="",Ie=_.tag,Ee,Pe,Oe;for(Ee=0,Pe=ve.length;Ee1024&&(Ge+="? "),Ge+=_.dump+(_.condenseFlow?'"':"")+":"+(_.condenseFlow?"":" "),ke(_,oe,ze,!1,!1)&&(Ge+=_.dump,Se+=Ge));_.tag=Ie,_.dump="{"+Se+"}"}function Me(_,oe,ve,Se){var Ie="",Ee=_.tag,Pe=Object.keys(ve),Oe,We,ze,Ge,Qe,$e;if(_.sortKeys===!0)Pe.sort();else if(typeof _.sortKeys=="function")Pe.sort(_.sortKeys);else if(_.sortKeys)throw new a("sortKeys must be a boolean or a function");for(Oe=0,We=Pe.length;Oe1024,Qe&&(_.dump&&k===_.dump.charCodeAt(0)?$e+="?":$e+="? "),$e+=_.dump,Qe&&($e+=G(_,oe)),ke(_,oe+1,Ge,!0,Qe)&&(_.dump&&k===_.dump.charCodeAt(0)?$e+=":":$e+=": ",$e+=_.dump,Ie+=$e));_.tag=Ee,_.dump=Ie||"{}"}function De(_,oe,ve){var Se,Ie,Ee,Pe,Oe,We;for(Ie=ve?_.explicitTypes:_.implicitTypes,Ee=0,Pe=Ie.length;Ee tag resolver accepts not "'+We+'" style');_.dump=Se}return!0}return!1}function ke(_,oe,ve,Se,Ie,Ee,Pe){_.tag=null,_.dump=ve,De(_,ve,!1)||De(_,ve,!0);var Oe=o.call(_.dump),We=Se,ze;Se&&(Se=_.flowLevel<0||_.flowLevel>oe);var Ge=Oe==="[object Object]"||Oe==="[object Array]",Qe,$e;if(Ge&&(Qe=_.duplicates.indexOf(ve),$e=Qe!==-1),(_.tag!==null&&_.tag!=="?"||$e||_.indent!==2&&oe>0)&&(Ie=!1),$e&&_.usedDuplicates[Qe])_.dump="*ref_"+Qe;else{if(Ge&&$e&&!_.usedDuplicates[Qe]&&(_.usedDuplicates[Qe]=!0),Oe==="[object Object]")Se&&Object.keys(_.dump).length!==0?(Me(_,oe,_.dump,Ie),$e&&(_.dump="&ref_"+Qe+_.dump)):(Ce(_,oe,_.dump),$e&&(_.dump="&ref_"+Qe+" "+_.dump));else if(Oe==="[object Array]")Se&&_.dump.length!==0?(_.noArrayIndent&&!Pe&&oe>0?ge(_,oe-1,_.dump,Ie):ge(_,oe,_.dump,Ie),$e&&(_.dump="&ref_"+Qe+_.dump)):(ie(_,oe,_.dump),$e&&(_.dump="&ref_"+Qe+" "+_.dump));else if(Oe==="[object String]")_.tag!=="?"&&me(_,_.dump,oe,Ee,We);else{if(Oe==="[object Undefined]")return!1;if(_.skipInvalid)return!1;throw new a("unacceptable kind of an object to dump "+Oe)}_.tag!==null&&_.tag!=="?"&&(ze=encodeURI(_.tag[0]==="!"?_.tag.slice(1):_.tag).replace(/!/g,"%21"),_.tag[0]==="!"?ze="!"+ze:ze.slice(0,18)==="tag:yaml.org,2002:"?ze="!!"+ze.slice(18):ze="!<"+ze+">",_.dump=ze+" "+_.dump)}return!0}function pe(_,oe){var ve=[],Se=[],Ie,Ee;for(se(_,ve,Se),Ie=0,Ee=Se.length;Ie>10)+55296,(M-65536&1023)+56320)}for(var A=new Array(256),T=new Array(256),E=0;E<256;E++)A[E]=L(E)?1:0,T[E]=L(E);function O(M,X){this.input=M,this.filename=X.filename||null,this.schema=X.schema||o,this.onWarning=X.onWarning||null,this.legacy=X.legacy||!1,this.json=X.json||!1,this.listener=X.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=M.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function P(M,X){var ae={name:M.filename,buffer:M.input.slice(0,-1),position:M.position,line:M.line,column:M.position-M.lineStart};return ae.snippet=t(ae),new a(X,ae)}function R(M,X){throw P(M,X)}function F(M,X){M.onWarning&&M.onWarning.call(null,P(M,X))}var j={YAML:function(){function M(X,ae,ue){var ie,ge,Ce;X.version!==null&&R(X,"duplication of %YAML directive"),ue.length!==1&&R(X,"YAML directive accepts exactly one argument"),ie=/^([0-9]+)\.([0-9]+)$/.exec(ue[0]),ie===null&&R(X,"ill-formed argument of the YAML directive"),ge=parseInt(ie[1],10),Ce=parseInt(ie[2],10),ge!==1&&R(X,"unacceptable YAML version of the document"),X.version=ue[0],X.checkLineBreaks=Ce<2,Ce!==1&&Ce!==2&&F(X,"unsupported YAML version of the document")}return M}(),TAG:function(){function M(X,ae,ue){var ie,ge;ue.length!==2&&R(X,"TAG directive accepts exactly two arguments"),ie=ue[0],ge=ue[1],m.test(ie)||R(X,"ill-formed tag handle (first argument) of the TAG directive"),d.call(X.tagMap,ie)&&R(X,'there is a previously declared suffix for "'+ie+'" tag handle'),c.test(ge)||R(X,"ill-formed tag prefix (second argument) of the TAG directive");try{ge=decodeURIComponent(ge)}catch(Ce){R(X,"tag prefix is malformed: "+ge)}X.tagMap[ie]=ge}return M}()};function W(M,X,ae,ue){var ie,ge,Ce,Me;if(X1&&(M.result+=e.repeat("\n",X-1))}function he(M,X,ae){var ue,ie,ge,Ce,Me,De,ke,pe,se=M.kind,xe=M.result,_;if(_=M.input.charCodeAt(M.position),h(_)||C(_)||_===35||_===38||_===42||_===33||_===124||_===62||_===39||_===34||_===37||_===64||_===96||(_===63||_===45)&&(ie=M.input.charCodeAt(M.position+1),h(ie)||ae&&C(ie)))return!1;for(M.kind="scalar",M.result="",ge=Ce=M.position,Me=!1;_!==0;){if(_===58){if(ie=M.input.charCodeAt(M.position+1),h(ie)||ae&&C(ie))break}else if(_===35){if(ue=M.input.charCodeAt(M.position-1),h(ue))break}else{if(M.position===M.lineStart&&ne(M)||ae&&C(_))break;if(b(_))if(De=M.line,ke=M.lineStart,pe=M.lineIndent,G(M,!1,-1),M.lineIndent>=X){Me=!0,_=M.input.charCodeAt(M.position);continue}else{M.position=Ce,M.line=De,M.lineStart=ke,M.lineIndent=pe;break}}Me&&(W(M,ge,Ce,!1),Q(M,M.line-De),ge=Ce=M.position,Me=!1),g(_)||(Ce=M.position+1),_=M.input.charCodeAt(++M.position)}return W(M,ge,Ce,!1),M.result?!0:(M.kind=se,M.result=xe,!1)}function Ve(M,X){var ae,ue,ie;if(ae=M.input.charCodeAt(M.position),ae!==39)return!1;for(M.kind="scalar",M.result="",M.position++,ue=ie=M.position;(ae=M.input.charCodeAt(M.position))!==0;)if(ae===39)if(W(M,ue,M.position,!0),ae=M.input.charCodeAt(++M.position),ae===39)ue=M.position,M.position++,ie=M.position;else return!0;else b(ae)?(W(M,ue,ie,!0),Q(M,G(M,!1,X)),ue=ie=M.position):M.position===M.lineStart&&ne(M)?R(M,"unexpected end of the document within a single quoted scalar"):(M.position++,ie=M.position);R(M,"unexpected end of the stream within a single quoted scalar")}function Ne(M,X){var ae,ue,ie,ge,Ce,Me;if(Me=M.input.charCodeAt(M.position),Me!==34)return!1;for(M.kind="scalar",M.result="",M.position++,ae=ue=M.position;(Me=M.input.charCodeAt(M.position))!==0;){if(Me===34)return W(M,ae,M.position,!0),M.position++,!0;if(Me===92){if(W(M,ae,M.position,!0),Me=M.input.charCodeAt(++M.position),b(Me))G(M,!1,X);else if(Me<256&&A[Me])M.result+=T[Me],M.position++;else if((Ce=x(Me))>0){for(ie=Ce,ge=0;ie>0;ie--)Me=M.input.charCodeAt(++M.position),(Ce=N(Me))>=0?ge=(ge<<4)+Ce:R(M,"expected hexadecimal character");M.result+=w(ge),M.position++}else R(M,"unknown escape sequence");ae=ue=M.position}else b(Me)?(W(M,ae,ue,!0),Q(M,G(M,!1,X)),ae=ue=M.position):M.position===M.lineStart&&ne(M)?R(M,"unexpected end of the document within a double quoted scalar"):(M.position++,ue=M.position)}R(M,"unexpected end of the stream within a double quoted scalar")}function Be(M,X){var ae=!0,ue,ie,ge,Ce=M.tag,Me,De=M.anchor,ke,pe,se,xe,_,oe=Object.create(null),ve,Se,Ie,Ee;if(Ee=M.input.charCodeAt(M.position),Ee===91)pe=93,_=!1,Me=[];else if(Ee===123)pe=125,_=!0,Me={};else return!1;for(M.anchor!==null&&(M.anchorMap[M.anchor]=Me),Ee=M.input.charCodeAt(++M.position);Ee!==0;){if(G(M,!0,X),Ee=M.input.charCodeAt(M.position),Ee===pe)return M.position++,M.tag=Ce,M.anchor=De,M.kind=_?"mapping":"sequence",M.result=Me,!0;ae?Ee===44&&R(M,"expected the node content, but found ','"):R(M,"missed comma between flow collection entries"),Se=ve=Ie=null,se=xe=!1,Ee===63&&(ke=M.input.charCodeAt(M.position+1),h(ke)&&(se=xe=!0,M.position++,G(M,!0,X))),ue=M.line,ie=M.lineStart,ge=M.position,ee(M,X,y,!1,!0),Se=M.tag,ve=M.result,G(M,!0,X),Ee=M.input.charCodeAt(M.position),(xe||M.line===ue)&&Ee===58&&(se=!0,Ee=M.input.charCodeAt(++M.position),G(M,!0,X),ee(M,X,y,!1,!0),Ie=M.result),_?z(M,Me,oe,Se,ve,Ie,ue,ie,ge):se?Me.push(z(M,null,oe,Se,ve,Ie,ue,ie,ge)):Me.push(ve),G(M,!0,X),Ee=M.input.charCodeAt(M.position),Ee===44?(ae=!0,Ee=M.input.charCodeAt(++M.position)):ae=!1}R(M,"unexpected end of the stream within a flow collection")}function Le(M,X){var ae,ue,ie=p,ge=!1,Ce=!1,Me=X,De=0,ke=!1,pe,se;if(se=M.input.charCodeAt(M.position),se===124)ue=!1;else if(se===62)ue=!0;else return!1;for(M.kind="scalar",M.result="";se!==0;)if(se=M.input.charCodeAt(++M.position),se===43||se===45)p===ie?ie=se===43?l:i:R(M,"repeat of a chomping mode identifier");else if((pe=B(se))>=0)pe===0?R(M,"bad explicit indentation width of a block scalar; it cannot be less than one"):Ce?R(M,"repeat of an indentation width identifier"):(Me=X+pe-1,Ce=!0);else break;if(g(se)){do se=M.input.charCodeAt(++M.position);while(g(se));if(se===35)do se=M.input.charCodeAt(++M.position);while(!b(se)&&se!==0)}for(;se!==0;){for($(M),M.lineIndent=0,se=M.input.charCodeAt(M.position);(!Ce||M.lineIndentMe&&(Me=M.lineIndent),b(se)){De++;continue}if(M.lineIndentX)&&De!==0)R(M,"bad indentation of a sequence entry");else if(M.lineIndentX)&&(Se&&(Ce=M.line,Me=M.lineStart,De=M.position),ee(M,X,S,!0,ie)&&(Se?oe=M.result:ve=M.result),Se||(z(M,se,xe,_,oe,ve,Ce,Me,De),_=oe=ve=null),G(M,!0,-1),Ee=M.input.charCodeAt(M.position)),(M.line===ge||M.lineIndent>X)&&Ee!==0)R(M,"bad indentation of a mapping entry");else if(M.lineIndentX?De=1:M.lineIndent===X?De=0:M.lineIndentX?De=1:M.lineIndent===X?De=0:M.lineIndent tag; it should be "scalar", not "'+M.kind+'"'),se=0,xe=M.implicitTypes.length;se"),M.result!==null&&oe.kind!==M.kind&&R(M,"unacceptable node kind for !<"+M.tag+'> tag; it should be "'+oe.kind+'", not "'+M.kind+'"'),oe.resolve(M.result,M.tag)?(M.result=oe.construct(M.result,M.tag),M.anchor!==null&&(M.anchorMap[M.anchor]=M.result)):R(M,"cannot resolve a node with !<"+M.tag+"> explicit tag")}return M.listener!==null&&M.listener("close",M),M.tag!==null||M.anchor!==null||pe}function le(M){var X=M.position,ae,ue,ie,ge=!1,Ce;for(M.version=null,M.checkLineBreaks=M.legacy,M.tagMap=Object.create(null),M.anchorMap=Object.create(null);(Ce=M.input.charCodeAt(M.position))!==0&&(G(M,!0,-1),Ce=M.input.charCodeAt(M.position),!(M.lineIndent>0||Ce!==37));){for(ge=!0,Ce=M.input.charCodeAt(++M.position),ae=M.position;Ce!==0&&!h(Ce);)Ce=M.input.charCodeAt(++M.position);for(ue=M.input.slice(ae,M.position),ie=[],ue.length<1&&R(M,"directive name must not be less than one character in length");Ce!==0;){for(;g(Ce);)Ce=M.input.charCodeAt(++M.position);if(Ce===35){do Ce=M.input.charCodeAt(++M.position);while(Ce!==0&&!b(Ce));break}if(b(Ce))break;for(ae=M.position;Ce!==0&&!h(Ce);)Ce=M.input.charCodeAt(++M.position);ie.push(M.input.slice(ae,M.position))}Ce!==0&&$(M),d.call(j,ue)?j[ue](M,ue,ie):F(M,'unknown document directive "'+ue+'"')}if(G(M,!0,-1),M.lineIndent===0&&M.input.charCodeAt(M.position)===45&&M.input.charCodeAt(M.position+1)===45&&M.input.charCodeAt(M.position+2)===45?(M.position+=3,G(M,!0,-1)):ge&&R(M,"directives end mark is expected"),ee(M,M.lineIndent-1,S,!1,!0),G(M,!0,-1),M.checkLineBreaks&&u.test(M.input.slice(X,M.position))&&F(M,"non-ASCII line breaks are interpreted as content"),M.documents.push(M.result),M.position===M.lineStart&&ne(M)){M.input.charCodeAt(M.position)===46&&(M.position+=3,G(M,!0,-1));return}if(M.positionl&&(p=" ... ",y=k-l+p.length),V-k>l&&(i=" ...",V=k+l-i.length),{str:p+d.slice(y,V).replace(/\t/g,"\u2192")+i,pos:k-y+p.length}}function t(d,y){return e.repeat(" ",y-d.length)+d}function o(d,y){if(y=Object.create(y||null),!d.buffer)return null;y.maxLength||(y.maxLength=79),typeof y.indent!="number"&&(y.indent=1),typeof y.linesBefore!="number"&&(y.linesBefore=3),typeof y.linesAfter!="number"&&(y.linesAfter=2);for(var V=/\r?\n|\r|\0/g,k=[0],S=[],p,i=-1;p=V.exec(d.buffer);)S.push(p.index),k.push(p.index+p[0].length),d.position<=p.index&&i<0&&(i=k.length-2);i<0&&(i=k.length-1);var l="",f,u,s=Math.min(d.line+y.linesAfter,S.length).toString().length,m=y.maxLength-(y.indent+s+3);for(f=1;f<=y.linesBefore&&!(i-f<0);f++)u=a(d.buffer,k[i-f],S[i-f],d.position-(k[i]-k[i-f]),m),l=e.repeat(" ",y.indent)+t((d.line-f+1).toString(),s)+" | "+u.str+"\n"+l;for(u=a(d.buffer,k[i],S[i],d.position,m),l+=e.repeat(" ",y.indent)+t((d.line+1).toString(),s)+" | "+u.str+"\n",l+=e.repeat("-",y.indent+s+3+u.pos)+"^\n",f=1;f<=y.linesAfter&&!(i+f>=S.length);f++)u=a(d.buffer,k[i+f],S[i+f],d.position-(k[i]-k[i+f]),m),l+=e.repeat(" ",y.indent)+t((d.line+f+1).toString(),s)+" | "+u.str+"\n";return l.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(y){var V={};return y!==null&&Object.keys(y).forEach(function(k){y[k].forEach(function(S){V[String(S)]=k})}),V}function d(y,V){if(V=V||{},Object.keys(V).forEach(function(k){if(a.indexOf(k)===-1)throw new e('Unknown option "'+k+'" is met in definition of "'+y+'" YAML type.')}),this.options=V,this.tag=y,this.kind=V.kind||null,this.resolve=V.resolve||function(){return!0},this.construct=V.construct||function(k){return k},this.instanceOf=V.instanceOf||null,this.predicate=V.predicate||null,this.represent=V.represent||null,this.representName=V.representName||null,this.defaultStyle=V.defaultStyle||null,this.multi=V.multi||!1,this.styleAliases=o(V.styleAliases||null),t.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+y+'" YAML type.')}I.exports=d},92806:function(I,r,n){"use strict";var e=n(92276),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function t(V){if(V===null)return!1;var k,S,p=0,i=V.length,l=a;for(S=0;S64)){if(k<0)return!1;p+=6}return p%8===0}function o(V){var k,S,p=V.replace(/[\r\n=]/g,""),i=p.length,l=a,f=0,u=[];for(k=0;k>16&255),u.push(f>>8&255),u.push(f&255)),f=f<<6|l.indexOf(p.charAt(k));return S=i%4*6,S===0?(u.push(f>>16&255),u.push(f>>8&255),u.push(f&255)):S===18?(u.push(f>>10&255),u.push(f>>2&255)):S===12&&u.push(f>>4&255),new Uint8Array(u)}function d(V){var k="",S=0,p,i,l=V.length,f=a;for(p=0;p>18&63],k+=f[S>>12&63],k+=f[S>>6&63],k+=f[S&63]),S=(S<<8)+V[p];return i=l%3,i===0?(k+=f[S>>18&63],k+=f[S>>12&63],k+=f[S>>6&63],k+=f[S&63]):i===2?(k+=f[S>>10&63],k+=f[S>>4&63],k+=f[S<<2&63],k+=f[64]):i===1&&(k+=f[S>>2&63],k+=f[S<<4&63],k+=f[64],k+=f[64]),k}function y(V){return Object.prototype.toString.call(V)==="[object Uint8Array]"}I.exports=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:t,construct:o,predicate:y,represent:d})},34015:function(I,r,n){"use strict";var e=n(92276);function a(d){if(d===null)return!1;var y=d.length;return y===4&&(d==="true"||d==="True"||d==="TRUE")||y===5&&(d==="false"||d==="False"||d==="FALSE")}function t(d){return d==="true"||d==="True"||d==="TRUE"}function o(d){return Object.prototype.toString.call(d)==="[object Boolean]"}I.exports=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:a,construct:t,predicate:o,represent:{lowercase:function(){function d(y){return y?"true":"false"}return d}(),uppercase:function(){function d(y){return y?"TRUE":"FALSE"}return d}(),camelcase:function(){function d(y){return y?"True":"False"}return d}()},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(S){return!(S===null||!t.test(S)||S[S.length-1]==="_")}function d(S){var p,i;return p=S.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 y=/^[-+]?[0-9]+e/;function V(S,p){var i;if(isNaN(S))switch(p){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===S)switch(p){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===S)switch(p){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(S))return"-0.0";return i=S.toString(10),y.test(i)?i.replace("e",".e"):i}function k(S){return Object.prototype.toString.call(S)==="[object Number]"&&(S%1!==0||e.isNegativeZero(S))}I.exports=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:o,construct:d,predicate:k,represent:V,defaultStyle:"lowercase"})},72826:function(I,r,n){"use strict";var e=n(11017),a=n(92276);function t(S){return 48<=S&&S<=57||65<=S&&S<=70||97<=S&&S<=102}function o(S){return 48<=S&&S<=55}function d(S){return 48<=S&&S<=57}function y(S){if(S===null)return!1;var p=S.length,i=0,l=!1,f;if(!p)return!1;if(f=S[i],(f==="-"||f==="+")&&(f=S[++i]),f==="0"){if(i+1===p)return!0;if(f=S[++i],f==="b"){for(i++;i=0?"0b"+p.toString(2):"-0b"+p.toString(2).slice(1)}return S}(),octal:function(){function S(p){return p>=0?"0o"+p.toString(8):"-0o"+p.toString(8).slice(1)}return S}(),decimal:function(){function S(p){return p.toString(10)}return S}(),hexadecimal:function(){function S(p){return p>=0?"0x"+p.toString(16).toUpperCase():"-0x"+p.toString(16).toUpperCase().slice(1)}return S}()},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(d){if(d===null)return!0;var y=d.length;return y===1&&d==="~"||y===4&&(d==="null"||d==="Null"||d==="NULL")}function t(){return null}function o(d){return d===null}I.exports=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:a,construct:t,predicate:o,represent:{canonical:function(){function d(){return"~"}return d}(),lowercase:function(){function d(){return"null"}return d}(),uppercase:function(){function d(){return"NULL"}return d}(),camelcase:function(){function d(){return"Null"}return d}(),empty:function(){function d(){return""}return d}()},defaultStyle:"lowercase"})},14250:function(I,r,n){"use strict";var e=n(92276),a=Object.prototype.hasOwnProperty,t=Object.prototype.toString;function o(y){if(y===null)return!0;var V=[],k,S,p,i,l,f=y;for(k=0,S=f.length;k=0;--H){var z=this.tryEntries[H],$=z.completion;if(z.tryLoc==="root")return W("end");if(z.tryLoc<=this.prev){var G=a.call(z,"catchLoc"),ne=a.call(z,"finallyLoc");if(G&&ne){if(this.prev=0;--W){var H=this.tryEntries[W];if(H.tryLoc<=this.prev&&a.call(H,"finallyLoc")&&this.prev=0;--j){var W=this.tryEntries[j];if(W.finallyLoc===F)return this.complete(W.completion,W.afterLoc),T(W),m}}return R}(),catch:function(){function R(F){for(var j=this.tryEntries.length-1;j>=0;--j){var W=this.tryEntries[j];if(W.tryLoc===F){var H=W.completion;if(H.type==="throw"){var z=H.arg;T(W)}return z}}throw new Error("illegal catch attempt")}return R}(),delegateYield:function(){function R(F,j,W){return this.delegate={iterator:O(F),resultName:j,nextLoc:W},this.method==="next"&&(this.arg=o),m}return R}()},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={},d=function(){function V(){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:V,headers:{keys:function(){function k(){return t}return k}(),entries:function(){function k(){return t.map(function(S){return[S,a.getResponseHeader(S)]})}return k}(),get:function(){function k(S){return a.getResponseHeader(S)}return k}(),has:function(){function k(S){return a.getResponseHeader(S)!=null}return k}()}}}return V}();for(var y in a.open(r.method||"get",I,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(V,k){o[k]||t.push(o[k]=k)}),n(d())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(y,r.headers[y]);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(c,v){var b=typeof Symbol!="undefined"&&c[Symbol.iterator]||c["@@iterator"];if(b)return(b=b.call(c)).next.bind(b);if(Array.isArray(c)||(b=e(c))||v&&c&&typeof c.length=="number"){b&&(c=b);var g=0;return function(){return g>=c.length?{done:!0}:{done:!1,value:c[g++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(c,v){if(c){if(typeof c=="string")return a(c,v);var b={}.toString.call(c).slice(8,-1);return b==="Object"&&c.constructor&&(b=c.constructor.name),b==="Map"||b==="Set"?Array.from(c):b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?a(c,v):void 0}}function a(c,v){(v==null||v>c.length)&&(v=c.length);for(var b=0,g=Array(v);bB)return 1}return 0},S=r.sortBy=function(){function l(){for(var v=arguments.length,b=new Array(v),N=0;NB)return 1}return 0},S=r.sortBy=function(){function c(){for(var v=arguments.length,b=new Array(v),g=0;g1?y-1:0),k=1;k1?y-1:0),k=1;k1?k-1:0),p=1;p1?S-1:0),i=1;i1?k-1:0),p=1;p1?S-1:0),i=1;i=10&&y<=20)return s;var V=y%10;return V===1?t:V>=2&&V<=4?o:s}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,d=r.KEY_ALT=18,y=r.KEY_PAUSE=19,V=r.KEY_CAPSLOCK=20,k=r.KEY_ESCAPE=27,S=r.KEY_SPACE=32,p=r.KEY_PAGEUP=33,i=r.KEY_PAGEDOWN=34,l=r.KEY_END=35,f=r.KEY_HOME=36,u=r.KEY_LEFT=37,s=r.KEY_UP=38,m=r.KEY_RIGHT=39,c=r.KEY_DOWN=40,v=r.KEY_INSERT=45,b=r.KEY_DELETE=46,g=r.KEY_0=48,h=r.KEY_1=49,C=r.KEY_2=50,N=r.KEY_3=51,x=r.KEY_4=52,B=r.KEY_5=53,L=r.KEY_6=54,w=r.KEY_7=55,A=r.KEY_8=56,T=r.KEY_9=57,E=r.KEY_A=65,O=r.KEY_B=66,P=r.KEY_C=67,R=r.KEY_D=68,F=r.KEY_E=69,j=r.KEY_F=70,W=r.KEY_G=71,H=r.KEY_H=72,z=r.KEY_I=73,$=r.KEY_J=74,G=r.KEY_K=75,ne=r.KEY_L=76,Q=r.KEY_M=77,he=r.KEY_N=78,Ve=r.KEY_O=79,Ne=r.KEY_P=80,Be=r.KEY_Q=81,Le=r.KEY_R=82,Ae=r.KEY_S=83,fe=r.KEY_T=84,Z=r.KEY_U=85,J=r.KEY_V=86,te=r.KEY_W=87,ee=r.KEY_X=88,le=r.KEY_Y=89,ye=r.KEY_Z=90,me=r.KEY_NUMPAD_0=96,Te=r.KEY_NUMPAD_1=97,M=r.KEY_NUMPAD_2=98,X=r.KEY_NUMPAD_3=99,ae=r.KEY_NUMPAD_4=100,ue=r.KEY_NUMPAD_5=101,ie=r.KEY_NUMPAD_6=102,ge=r.KEY_NUMPAD_7=103,Ce=r.KEY_NUMPAD_8=104,Me=r.KEY_NUMPAD_9=105,De=r.KEY_F1=112,ke=r.KEY_F2=113,pe=r.KEY_F3=114,se=r.KEY_F4=115,xe=r.KEY_F5=116,_=r.KEY_F6=117,oe=r.KEY_F7=118,ve=r.KEY_F8=119,Se=r.KEY_F9=120,Ie=r.KEY_F10=121,Ee=r.KEY_F11=122,Pe=r.KEY_F12=123,Oe=r.KEY_SEMICOLON=186,We=r.KEY_EQUAL=187,ze=r.KEY_COMMA=188,Ge=r.KEY_MINUS=189,Qe=r.KEY_PERIOD=190,$e=r.KEY_SLASH=191,ut=r.KEY_LEFT_BRACKET=219,qe=r.KEY_BACKSLASH=220,lt=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,d){var y=a%100;if(y>=10&&y<=20)return d;var V=y%10;return V===1?t:V>=2&&V<=4?o:d}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(S,p,i){return Si?i:S}return k}(),e=r.clamp01=function(){function k(S){return S<0?0:S>1?1:S}return k}(),a=r.scale=function(){function k(S,p,i){return(S-p)/(i-p)}return k}(),t=r.round=function(){function k(S,p){if(!S||isNaN(S))return S;var i,c,f,u;return p|=0,i=Math.pow(10,p),S*=i,u=+(S>0)|-(S<0),f=Math.abs(S%1)>=.4999999999854481,c=Math.floor(S),f&&(S=c+(u>0)),(f?S:Math.round(S))/i}return k}(),o=r.toFixed=function(){function k(S,p){return p===void 0&&(p=0),Number(S).toFixed(Math.max(p,0))}return k}(),s=r.inRange=function(){function k(S,p){return p&&S>=p[0]&&S<=p[1]}return k}(),y=r.keyOfMatchingRange=function(){function k(S,p){for(var i=0,c=Object.keys(p);ii?i:S}return k}(),e=r.clamp01=function(){function k(S){return S<0?0:S>1?1:S}return k}(),a=r.scale=function(){function k(S,p,i){return(S-p)/(i-p)}return k}(),t=r.round=function(){function k(S,p){if(!S||isNaN(S))return S;var i,l,f,u;return p|=0,i=Math.pow(10,p),S*=i,u=+(S>0)|-(S<0),f=Math.abs(S%1)>=.4999999999854481,l=Math.floor(S),f&&(S=l+(u>0)),(f?S:Math.round(S))/i}return k}(),o=r.toFixed=function(){function k(S,p){return p===void 0&&(p=0),Number(S).toFixed(Math.max(p,0))}return k}(),d=r.inRange=function(){function k(S,p){return p&&S>=p[0]&&S<=p[1]}return k}(),y=r.keyOfMatchingRange=function(){function k(S,p){for(var i=0,l=Object.keys(p);i1?u-1:0),m=1;m1?g-1:0),B=1;B=0;--ye){var me=this.tryEntries[ye],Te=me.completion;if(me.tryLoc==="root")return le("end");if(me.tryLoc<=this.prev){var M=C.call(me,"catchLoc"),X=C.call(me,"finallyLoc");if(M&&X){if(this.prev=0;--le){var ye=this.tryEntries[le];if(ye.tryLoc<=this.prev&&C.call(ye,"finallyLoc")&&this.prev=0;--ee){var le=this.tryEntries[ee];if(le.finallyLoc===te)return this.complete(le.completion,le.afterLoc),Ae(le),j}}return J}(),catch:function(){function J(te){for(var ee=this.tryEntries.length-1;ee>=0;--ee){var le=this.tryEntries[ee];if(le.tryLoc===te){var ye=le.completion;if(ye.type==="throw"){var me=ye.arg;Ae(le)}return me}}throw Error("illegal catch attempt")}return J}(),delegateYield:function(){function J(te,ee,le){return this.delegate={iterator:Z(te),resultName:ee,nextLoc:le},this.method==="next"&&(this.arg=b),j}return J}()},N}function e(b,N,h,C,g,x,B){try{var L=b[x](B),w=L.value}catch(A){return void h(A)}L.done?N(w):Promise.resolve(w).then(C,g)}function a(b){return function(){var N=this,h=arguments;return new Promise(function(C,g){var x=b.apply(N,h);function B(w){e(x,C,g,B,L,"next",w)}function L(w){e(x,C,g,B,L,"throw",w)}B(void 0)})}}/** + */var a=r.createStore=function(){function k(S,p){if(p)return p(a)(S);var i,l=[],f=function(){function m(){return i}return m}(),u=function(){function m(c){l.push(c)}return m}(),s=function(){function m(c){i=S(i,c);for(var v=0;v1?u-1:0),m=1;m1?N-1:0),B=1;B=0;--ye){var me=this.tryEntries[ye],Te=me.completion;if(me.tryLoc==="root")return le("end");if(me.tryLoc<=this.prev){var M=C.call(me,"catchLoc"),X=C.call(me,"finallyLoc");if(M&&X){if(this.prev=0;--le){var ye=this.tryEntries[le];if(ye.tryLoc<=this.prev&&C.call(ye,"finallyLoc")&&this.prev=0;--ee){var le=this.tryEntries[ee];if(le.finallyLoc===te)return this.complete(le.completion,le.afterLoc),Ae(le),j}}return J}(),catch:function(){function J(te){for(var ee=this.tryEntries.length-1;ee>=0;--ee){var le=this.tryEntries[ee];if(le.tryLoc===te){var ye=le.completion;if(ye.type==="throw"){var me=ye.arg;Ae(le)}return me}}throw Error("illegal catch attempt")}return J}(),delegateYield:function(){function J(te,ee,le){return this.delegate={iterator:Z(te),resultName:ee,nextLoc:le},this.method==="next"&&(this.arg=b),j}return J}()},g}function e(b,g,h,C,N,x,B){try{var L=b[x](B),w=L.value}catch(A){return void h(A)}L.done?g(w):Promise.resolve(w).then(C,N)}function a(b){return function(){var g=this,h=arguments;return new Promise(function(C,N){var x=b.apply(g,h);function B(w){e(x,C,N,B,L,"next",w)}function L(w){e(x,C,N,B,L,"throw",w)}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,s=r.IMPL_INDEXED_DB=2,y=1,V="para-tgui",k="storage-v1",S="readonly",p="readwrite",i=function(N){return function(){try{return!!N()}catch(h){return!1}}},c=i(function(){return window.hubStorage&&window.hubStorage.getItem}),f=i(function(){return(window.indexedDB||window.msIndexedDB)&&(window.IDBTransaction||window.msIDBTransaction)}),u=function(){function b(){this.impl=t,this.store={}}var N=b.prototype;return N.get=function(){var h=a(n().mark(function(){function g(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}(),g,this)}return g}()));function C(g){return h.apply(this,arguments)}return C}(),N.set=function(){var h=a(n().mark(function(){function g(x,B){return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:this.store[x]=B;case 1:case"end":return w.stop()}}return L}(),g,this)}return g}()));function C(g,x){return h.apply(this,arguments)}return C}(),N.remove=function(){var h=a(n().mark(function(){function g(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}(),g,this)}return g}()));function C(g){return h.apply(this,arguments)}return C}(),N.clear=function(){var h=a(n().mark(function(){function g(){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}(),g,this)}return g}()));function C(){return h.apply(this,arguments)}return C}(),b}(),d=function(){function b(){this.impl=o}var N=b.prototype;return N.get=function(){var h=a(n().mark(function(){function g(x){var B;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,window.hubStorage.getItem("paradise-"+x);case 2:if(B=w.sent,typeof B!="string"){w.next=5;break}return w.abrupt("return",JSON.parse(B));case 5:case"end":return w.stop()}}return L}(),g)}return g}()));function C(g){return h.apply(this,arguments)}return C}(),N.set=function(){var h=a(n().mark(function(){function g(x,B){return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:window.hubStorage.setItem("paradise-"+x,JSON.stringify(B));case 1:case"end":return w.stop()}}return L}(),g)}return g}()));function C(g,x){return h.apply(this,arguments)}return C}(),N.remove=function(){var h=a(n().mark(function(){function g(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}(),g)}return g}()));function C(g){return h.apply(this,arguments)}return C}(),N.clear=function(){var h=a(n().mark(function(){function g(){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}(),g)}return g}()));function C(){return h.apply(this,arguments)}return C}(),b}(),m=function(){function b(){this.impl=s,this.dbPromise=new Promise(function(h,C){var g=window.indexedDB||window.msIndexedDB,x=g.open(V,y);x.onupgradeneeded=function(){try{x.result.createObjectStore(k)}catch(B){C(new Error("Failed to upgrade IDB: "+x.error))}},x.onsuccess=function(){return h(x.result)},x.onerror=function(){C(new Error("Failed to open IDB: "+x.error))}})}var N=b.prototype;return N.getStore=function(){var h=a(n().mark(function(){function g(x){return n().wrap(function(){function B(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",this.dbPromise.then(function(w){return w.transaction(k,x).objectStore(k)}));case 1:case"end":return L.stop()}}return B}(),g,this)}return g}()));function C(g){return h.apply(this,arguments)}return C}(),N.get=function(){var h=a(n().mark(function(){function g(x){var B;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getStore(S);case 2:return B=w.sent,w.abrupt("return",new Promise(function(A,T){var E=B.get(x);E.onsuccess=function(){return A(E.result)},E.onerror=function(){return T(E.error)}}));case 4:case"end":return w.stop()}}return L}(),g,this)}return g}()));function C(g){return h.apply(this,arguments)}return C}(),N.set=function(){var h=a(n().mark(function(){function g(x,B){var L;return n().wrap(function(){function w(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this.getStore(p);case 2:L=A.sent,L.put(B,x);case 4:case"end":return A.stop()}}return w}(),g,this)}return g}()));function C(g,x){return h.apply(this,arguments)}return C}(),N.remove=function(){var h=a(n().mark(function(){function g(x){var B;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getStore(p);case 2:B=w.sent,B.delete(x);case 4:case"end":return w.stop()}}return L}(),g,this)}return g}()));function C(g){return h.apply(this,arguments)}return C}(),N.clear=function(){var h=a(n().mark(function(){function g(){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}(),g,this)}return g}()));function C(){return h.apply(this,arguments)}return C}(),b}(),l=function(){function b(){this.backendPromise=a(n().mark(function(){function h(){var C;return n().wrap(function(){function g(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(!f()){x.next=12;break}return x.prev=3,C=new m,x.next=7,C.dbPromise;case 7:return x.abrupt("return",C);case 10:x.prev=10,x.t0=x.catch(3);case 12:return x.abrupt("return",new u);case 13:case"end":return x.stop()}}return g}(),h,null,[[3,10]])}return h}()))()}var N=b.prototype;return N.get=function(){var h=a(n().mark(function(){function g(x){var B;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.backendPromise;case 2:return B=w.sent,w.abrupt("return",B.get(x));case 4:case"end":return w.stop()}}return L}(),g,this)}return g}()));function C(g){return h.apply(this,arguments)}return C}(),N.set=function(){var h=a(n().mark(function(){function g(x,B){var L;return n().wrap(function(){function w(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this.backendPromise;case 2:return L=A.sent,A.abrupt("return",L.set(x,B));case 4:case"end":return A.stop()}}return w}(),g,this)}return g}()));function C(g,x){return h.apply(this,arguments)}return C}(),N.remove=function(){var h=a(n().mark(function(){function g(x){var B;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.backendPromise;case 2:return B=w.sent,w.abrupt("return",B.remove(x));case 4:case"end":return w.stop()}}return L}(),g,this)}return g}()));function C(g){return h.apply(this,arguments)}return C}(),N.clear=function(){var h=a(n().mark(function(){function g(){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}(),g,this)}return g}()));function C(){return h.apply(this,arguments)}return C}(),b}(),v=r.storage=new l},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 f=0;return function(){return f>=p.length?{done:!0}:{done:!1,value:p[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 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,f=Array(i);c=p.length?{done:!0}:{done:!1,value:p[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 e(p,i){if(p){if(typeof p=="string")return a(p,i);var l={}.toString.call(p).slice(8,-1);return l==="Object"&&p.constructor&&(l=p.constructor.name),l==="Map"||l==="Set"?Array.from(p):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?a(p,i):void 0}}function a(p,i){(i==null||i>p.length)&&(i=p.length);for(var l=0,f=Array(i);l",apos:"'"};return i.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(u,d){return f[d]}).replace(/&#?([0-9]+);/gi,function(u,d){var m=parseInt(d,10);return String.fromCharCode(m)}).replace(/&#x?([0-9a-f]+);/gi,function(u,d){var m=parseInt(d,16);return String.fromCharCode(m)})}return p}(),S=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 l=i.split("\n"),f,u=n(l),s;!(s=u()).done;)for(var m=s.value,c=0;c",apos:"'"};return i.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(l,function(u,s){return f[s]}).replace(/&#?([0-9]+);/gi,function(u,s){var m=parseInt(s,10);return String.fromCharCode(m)}).replace(/&#x?([0-9a-f]+);/gi,function(u,s){var m=parseInt(s,16);return String.fromCharCode(m)})}return p}(),S=r.buildQueryString=function(){function p(i){return Object.keys(i).map(function(l){return encodeURIComponent(l)+"="+encodeURIComponent(i[l])}).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 - */var n=r.debounce=function(){function t(o,s,y){y===void 0&&(y=!1);var V;return function(){for(var k=arguments.length,S=new Array(k),p=0;p=s)o.apply(null,p),y=c;else{var f;V=setTimeout(function(){return k.apply(void 0,p)},s-(c-((f=y)!=null?f:0)))}}return k}()}return t}()},97450:function(I,r,n){"use strict";r.__esModule=!0,r.vecSubtract=r.vecScale=r.vecNormalize=r.vecMultiply=r.vecLength=r.vecInverse=r.vecDivide=r.vecAdd=void 0;var e=n(88510);/** + */var n=r.debounce=function(){function t(o,d,y){y===void 0&&(y=!1);var V;return function(){for(var k=arguments.length,S=new Array(k),p=0;p=d)o.apply(null,p),y=l;else{var f;V=setTimeout(function(){return k.apply(void 0,p)},d-(l-((f=y)!=null?f:0)))}}return k}()}return t}()},97450:function(I,r,n){"use strict";r.__esModule=!0,r.vecSubtract=r.vecScale=r.vecNormalize=r.vecMultiply=r.vecLength=r.vecInverse=r.vecDivide=r.vecAdd=void 0;var e=n(88510);/** * N-dimensional vector manipulation functions. * * Vectors are plain number arrays, i.e. [x, y, z]. @@ -58,11 +58,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=function(d,m){return d+m},t=function(d,m){return d-m},o=function(d,m){return d*m},s=function(d,m){return d/m},y=r.vecAdd=function(){function u(){for(var d=arguments.length,m=new Array(d),l=0;l0&&(C.style=T),C}return N}(),v=r.computeBoxClassName=function(){function N(h){var C=h.textColor||h.color,g=h.backgroundColor;return(0,e.classes)([p(C)&&"color-"+C,p(g)&&"color-bg-"+g])}return N}(),b=r.Box=function(){function N(h){var C=h.as,g=C===void 0?"div":C,x=h.className,B=h.children,L=y(h,s);if(typeof B=="function")return B(l(h));var w=typeof x=="string"?x+" "+v(L):v(L),A=l(L);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,g,w,B,t.ChildFlags.UnknownChildren,A)}return N}();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),s=n(55937),y=n(1331),V=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"],S=["checked"],p=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],i=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","placeholder","maxLength","multiLine"];/** + */function y(g,h){if(g==null)return{};var C={};for(var N in g)if({}.hasOwnProperty.call(g,N)){if(h.includes(N))continue;C[N]=g[N]}return C}var V=r.unit=function(){function g(h){if(typeof h=="string")return h.endsWith("px")?parseFloat(h)/12+"rem":h;if(typeof h=="number")return h+"rem"}return g}(),k=r.halfUnit=function(){function g(h){if(typeof h=="string")return V(h);if(typeof h=="number")return V(h*.5)}return g}(),S=function(h){return!p(h)},p=function(h){if(typeof h=="string")return o.CSS_COLORS.includes(h)},i=function(h){return function(C,N){(typeof N=="number"||typeof N=="string")&&(C[h]=N)}},l=function(h,C){return function(N,x){(typeof x=="number"||typeof x=="string")&&(N[h]=C(x))}},f=function(h,C){return function(N,x){x&&(N[h]=C)}},u=function(h,C,N){return function(x,B){if(typeof B=="number"||typeof B=="string")for(var L=0;L0&&(C.style=T),C}return g}(),v=r.computeBoxClassName=function(){function g(h){var C=h.textColor||h.color,N=h.backgroundColor;return(0,e.classes)([p(C)&&"color-"+C,p(N)&&"color-bg-"+N])}return g}(),b=r.Box=function(){function g(h){var C=h.as,N=C===void 0?"div":C,x=h.className,B=h.children,L=y(h,d);if(typeof B=="function")return B(c(h));var w=typeof x=="string"?x+" "+v(L):v(L),A=c(L);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,N,w,B,t.ChildFlags.UnknownChildren,A)}return g}();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),d=n(55937),y=n(1331),V=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"],S=["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(N,h){N.prototype=Object.create(h.prototype),N.prototype.constructor=N,f(N,h)}function f(N,h){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,g){return C.__proto__=g,C},f(N,h)}function u(N,h){if(N==null)return{};var C={};for(var g in N)if({}.hasOwnProperty.call(N,g)){if(h.includes(g))continue;C[g]=N[g]}return C}var d=(0,o.createLogger)("Button"),m=r.Button=function(){function N(h){var C=h.className,g=h.fluid,x=h.icon,B=h.iconRotation,L=h.iconSpin,w=h.color,A=h.textColor,T=h.disabled,E=h.selected,O=h.tooltip,P=h.tooltipPosition,R=h.ellipsis,F=h.compact,j=h.circular,W=h.content,H=h.iconColor,z=h.iconRight,$=h.iconStyle,G=h.children,ne=h.onclick,Q=h.onClick,he=h.multiLine,Ve=u(h,k),Ne=!!(W||G);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"),Ve.onClick=function(Le){!T&&Q&&Q(Le)};var Be=(0,e.normalizeProps)((0,e.createComponentVNode)(2,s.Box,Object.assign({className:(0,a.classes)(["Button",g&&"Button--fluid",T&&"Button--disabled",E&&"Button--selected",Ne&&"Button--hasContent",R&&"Button--ellipsis",j&&"Button--circular",F&&"Button--compact",z&&"Button--iconRight",he&&"Button--multiLine",w&&typeof w=="string"?"Button--color--"+w:"Button--color--default",C]),tabIndex:!T&&"0",color:A,onKeyDown:function(){function Le(Ae){var fe=window.event?Ae.which:Ae.keyCode;if(fe===t.KEY_SPACE||fe===t.KEY_ENTER){Ae.preventDefault(),!T&&Q&&Q(Ae);return}if(fe===t.KEY_ESCAPE){Ae.preventDefault();return}}return Le}()},Ve,{children:[x&&!z&&(0,e.createComponentVNode)(2,y.Icon,{name:x,color:H,rotation:B,spin:L,style:$}),W,G,x&&z&&(0,e.createComponentVNode)(2,y.Icon,{name:x,color:H,rotation:B,spin:L,style:$})]})));return O&&(Be=(0,e.createComponentVNode)(2,V.Tooltip,{content:O,position:P,children:Be})),Be}return N}();m.defaultHooks=a.pureComponentHooks;var l=r.ButtonCheckbox=function(){function N(h){var C=h.checked,g=u(h,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m,Object.assign({color:"transparent",icon:C?"check-square-o":"square-o",selected:C},g)))}return N}();m.Checkbox=l;var v=r.ButtonConfirm=function(N){function h(){var g;return g=N.call(this)||this,g.state={clickedOnce:!1},g.handleClick=function(){g.state.clickedOnce&&g.setClickedOnce(!1)},g}c(h,N);var C=h.prototype;return C.setClickedOnce=function(){function g(x){var B=this;this.setState({clickedOnce:x}),x?setTimeout(function(){return window.addEventListener("click",B.handleClick)}):window.removeEventListener("click",this.handleClick)}return g}(),C.render=function(){function g(){var x=this,B=this.props,L=B.confirmContent,w=L===void 0?"Confirm?":L,A=B.confirmColor,T=A===void 0?"bad":A,E=B.confirmIcon,O=B.icon,P=B.color,R=B.content,F=B.onClick,j=u(B,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m,Object.assign({content:this.state.clickedOnce?w:R,icon:this.state.clickedOnce?E:O,color:this.state.clickedOnce?T:P,onClick:function(){function W(){return x.state.clickedOnce?F():x.setClickedOnce(!0)}return W}()},j)))}return g}(),h}(e.Component);m.Confirm=v;var b=r.ButtonInput=function(N){function h(){var g;return g=N.call(this)||this,g.inputRef=(0,e.createRef)(),g.state={inInput:!1},g}c(h,N);var C=h.prototype;return C.setInInput=function(){function g(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(w){}}}}return g}(),C.commitResult=function(){function g(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 g}(),C.render=function(){function g(){var x=this,B=this.props,L=B.fluid,w=B.content,A=B.icon,T=B.iconRotation,E=B.iconSpin,O=B.tooltip,P=B.tooltipPosition,R=B.color,F=R===void 0?"default":R,j=B.disabled,W=B.placeholder,H=B.maxLength,z=B.multiLine,$=u(B,i),G=(0,e.normalizeProps)((0,e.createComponentVNode)(2,s.Box,Object.assign({className:(0,a.classes)(["Button",L&&"Button--fluid",j&&"Button--disabled","Button--color--"+F,z+"Button--multiLine"])},$,{onClick:function(){function ne(){return x.setInInput(!0)}return ne}(),children:[A&&(0,e.createComponentVNode)(2,y.Icon,{name:A,rotation:T,spin:E}),(0,e.createVNode)(1,"div",null,w,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(Q){x.state.inInput&&(x.setInInput(!1),x.commitResult(Q))}return ne}(),onKeyDown:function(){function ne(Q){if(Q.keyCode===t.KEY_ENTER){x.setInInput(!1),x.commitResult(Q);return}Q.keyCode===t.KEY_ESCAPE&&x.setInInput(!1)}return ne}()},null,this.inputRef)]})));return O&&(G=(0,e.createComponentVNode)(2,V.Tooltip,{content:O,position:P,children:G})),G}return g}(),h}(e.Component);m.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),s=n(55937),y=["params"],V=["params"],k=["parent","params"];function S(v,b){if(v==null)return{};var N={};for(var h in v)if({}.hasOwnProperty.call(v,h)){if(b.includes(h))continue;N[h]=v[h]}return N}function p(v,b){v.prototype=Object.create(b.prototype),v.prototype.constructor=v,i(v,b)}function i(v,b){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,h){return N.__proto__=h,N},i(v,b)}/** + */function l(g,h){g.prototype=Object.create(h.prototype),g.prototype.constructor=g,f(g,h)}function f(g,h){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,N){return C.__proto__=N,C},f(g,h)}function u(g,h){if(g==null)return{};var C={};for(var N in g)if({}.hasOwnProperty.call(g,N)){if(h.includes(N))continue;C[N]=g[N]}return C}var s=(0,o.createLogger)("Button"),m=r.Button=function(){function g(h){var C=h.className,N=h.fluid,x=h.icon,B=h.iconRotation,L=h.iconSpin,w=h.color,A=h.textColor,T=h.disabled,E=h.selected,O=h.tooltip,P=h.tooltipPosition,R=h.ellipsis,F=h.compact,j=h.circular,W=h.content,H=h.iconColor,z=h.iconRight,$=h.iconStyle,G=h.children,ne=h.onclick,Q=h.onClick,he=h.multiLine,Ve=u(h,k),Ne=!!(W||G);ne&&s.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"),Ve.onClick=function(Le){!T&&Q&&Q(Le)};var Be=(0,e.normalizeProps)((0,e.createComponentVNode)(2,d.Box,Object.assign({className:(0,a.classes)(["Button",N&&"Button--fluid",T&&"Button--disabled",E&&"Button--selected",Ne&&"Button--hasContent",R&&"Button--ellipsis",j&&"Button--circular",F&&"Button--compact",z&&"Button--iconRight",he&&"Button--multiLine",w&&typeof w=="string"?"Button--color--"+w:"Button--color--default",C]),tabIndex:!T&&"0",color:A,onKeyDown:function(){function Le(Ae){var fe=window.event?Ae.which:Ae.keyCode;if(fe===t.KEY_SPACE||fe===t.KEY_ENTER){Ae.preventDefault(),!T&&Q&&Q(Ae);return}if(fe===t.KEY_ESCAPE){Ae.preventDefault();return}}return Le}()},Ve,{children:[x&&!z&&(0,e.createComponentVNode)(2,y.Icon,{name:x,color:H,rotation:B,spin:L,style:$}),W,G,x&&z&&(0,e.createComponentVNode)(2,y.Icon,{name:x,color:H,rotation:B,spin:L,style:$})]})));return O&&(Be=(0,e.createComponentVNode)(2,V.Tooltip,{content:O,position:P,children:Be})),Be}return g}();m.defaultHooks=a.pureComponentHooks;var c=r.ButtonCheckbox=function(){function g(h){var C=h.checked,N=u(h,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m,Object.assign({color:"transparent",icon:C?"check-square-o":"square-o",selected:C},N)))}return g}();m.Checkbox=c;var v=r.ButtonConfirm=function(g){function h(){var N;return N=g.call(this)||this,N.state={clickedOnce:!1},N.handleClick=function(){N.state.clickedOnce&&N.setClickedOnce(!1)},N}l(h,g);var C=h.prototype;return C.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}(),C.render=function(){function N(){var x=this,B=this.props,L=B.confirmContent,w=L===void 0?"Confirm?":L,A=B.confirmColor,T=A===void 0?"bad":A,E=B.confirmIcon,O=B.icon,P=B.color,R=B.content,F=B.onClick,j=u(B,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m,Object.assign({content:this.state.clickedOnce?w:R,icon:this.state.clickedOnce?E:O,color:this.state.clickedOnce?T:P,onClick:function(){function W(){return x.state.clickedOnce?F():x.setClickedOnce(!0)}return W}()},j)))}return N}(),h}(e.Component);m.Confirm=v;var b=r.ButtonInput=function(g){function h(){var N;return N=g.call(this)||this,N.inputRef=(0,e.createRef)(),N.state={inInput:!1},N}l(h,g);var C=h.prototype;return C.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(w){}}}}return N}(),C.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}(),C.render=function(){function N(){var x=this,B=this.props,L=B.fluid,w=B.content,A=B.icon,T=B.iconRotation,E=B.iconSpin,O=B.tooltip,P=B.tooltipPosition,R=B.color,F=R===void 0?"default":R,j=B.disabled,W=B.placeholder,H=B.maxLength,z=B.multiLine,$=u(B,i),G=(0,e.normalizeProps)((0,e.createComponentVNode)(2,d.Box,Object.assign({className:(0,a.classes)(["Button",L&&"Button--fluid",j&&"Button--disabled","Button--color--"+F,z+"Button--multiLine"])},$,{onClick:function(){function ne(){return x.setInInput(!0)}return ne}(),children:[A&&(0,e.createComponentVNode)(2,y.Icon,{name:A,rotation:T,spin:E}),(0,e.createVNode)(1,"div",null,w,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(Q){x.state.inInput&&(x.setInInput(!1),x.commitResult(Q))}return ne}(),onKeyDown:function(){function ne(Q){if(Q.keyCode===t.KEY_ENTER){x.setInInput(!1),x.commitResult(Q);return}Q.keyCode===t.KEY_ESCAPE&&x.setInInput(!1)}return ne}()},null,this.inputRef)]})));return O&&(G=(0,e.createComponentVNode)(2,V.Tooltip,{content:O,position:P,children:G})),G}return N}(),h}(e.Component);m.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),d=n(55937),y=["params"],V=["params"],k=["parent","params"];function S(v,b){if(v==null)return{};var g={};for(var h in v)if({}.hasOwnProperty.call(v,h)){if(b.includes(h))continue;g[h]=v[h]}return g}function p(v,b){v.prototype=Object.create(b.prototype),v.prototype.constructor=v,i(v,b)}function i(v,b){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,h){return g.__proto__=h,g},i(v,b)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var c=(0,o.createLogger)("ByondUi"),f=[],u=function(b){var N=f.length;f.push(null);var h=b||"byondui_"+N;return c.log("allocated '"+h+"'"),{render:function(){function C(g){c.log("rendering '"+h+"'"),f[N]=h,Byond.winset(h,g)}return C}(),unmount:function(){function C(){c.log("unmounting '"+h+"'"),f[N]=null,Byond.winset(h,{parent:""})}return C}()}};window.addEventListener("beforeunload",function(){for(var v=0;v0){var R=P[0],F=P[P.length-1];P.push([O[0]+T,F[1]]),P.push([O[0]+T,-T]),P.push([-T,-T]),P.push([-T,R[1]])}var j=p(P);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function W(H){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:w,"stroke-width":T,points:j}),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({},H),null,v.ref))}return W}()})))}return l}(),d}(e.Component);i.defaultHooks=t.pureComponentHooks;var c=function(d){return null},f=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 s(S,p){if(S==null)return{};var i={};for(var c in S)if({}.hasOwnProperty.call(S,c)){if(p.includes(c))continue;i[c]=S[c]}return i}function y(S,p){S.prototype=Object.create(p.prototype),S.prototype.constructor=S,V(S,p)}function V(S,p){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,c){return i.__proto__=c,i},V(S,p)}/** +*/var S=function(s,m,c,v){if(s.length===0)return[];var b=(0,a.zipWith)(Math.min).apply(void 0,s),g=(0,a.zipWith)(Math.max).apply(void 0,s);c!==void 0&&(b[0]=c[0],g[0]=c[1]),v!==void 0&&(b[1]=v[0],g[1]=v[1]);var h=(0,a.map)(function(C){return(0,a.zipWith)(function(N,x,B,L){return(N-x)/(B-x)*L})(C,b,g,m)})(s);return h},p=function(s){for(var m="",c=0;c0){var R=P[0],F=P[P.length-1];P.push([O[0]+T,F[1]]),P.push([O[0]+T,-T]),P.push([-T,-T]),P.push([-T,R[1]])}var j=p(P);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function W(H){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:w,"stroke-width":T,points:j}),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({},H),null,v.ref))}return W}()})))}return c}(),s}(e.Component);i.defaultHooks=t.pureComponentHooks;var l=function(s){return null},f=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 d(S,p){if(S==null)return{};var i={};for(var l in S)if({}.hasOwnProperty.call(S,l)){if(p.includes(l))continue;i[l]=S[l]}return i}function y(S,p){S.prototype=Object.create(p.prototype),S.prototype.constructor=S,V(S,p)}function V(S,p){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,l){return i.__proto__=l,i},V(S,p)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var k=r.Collapsible=function(S){function p(c){var f;f=S.call(this,c)||this;var u=c.open;return f.state={open:u||!1},f}y(p,S);var i=p.prototype;return i.render=function(){function c(){var f=this,u=this.props,d=this.state.open,m=u.children,l=u.color,v=l===void 0?"default":l,b=u.title,N=u.buttons,h=s(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:v,icon:d?"chevron-down":"chevron-right",onClick:function(){function C(){return f.setState({open:!d})}return C}()},h,{children:b}))),2),N&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",N,0)],0),d&&(0,e.createComponentVNode)(2,a.Box,{mt:1,children:m})]})}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(S){function p(l){var f;f=S.call(this,l)||this;var u=l.open;return f.state={open:u||!1},f}y(p,S);var i=p.prototype;return i.render=function(){function l(){var f=this,u=this.props,s=this.state.open,m=u.children,c=u.color,v=c===void 0?"default":c,b=u.title,g=u.buttons,h=d(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:v,icon:s?"chevron-down":"chevron-right",onClick:function(){function C(){return f.setState({open:!s})}return C}()},h,{children:b}))),2),g&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",g,0)],0),s&&(0,e.createComponentVNode)(2,a.Box,{mt:1,children:m})]})}return l}(),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 s(V,k){if(V==null)return{};var S={};for(var p in V)if({}.hasOwnProperty.call(V,p)){if(k.includes(p))continue;S[p]=V[p]}return S}var y=r.ColorBox=function(){function V(k){var S=k.content,p=k.children,i=k.className,c=k.color,f=k.backgroundColor,u=s(k,o);return u.color=S?null:"transparent",u.backgroundColor=c||f,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",i,(0,t.computeBoxClassName)(u)]),S||".",0,Object.assign({},(0,t.computeBoxProps)(u))))}return V}();y.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,S){if(k==null)return{};var p={};for(var i in k)if({}.hasOwnProperty.call(k,i)){if(S.includes(i))continue;p[i]=k[i]}return p}function s(k,S){k.prototype=Object.create(S.prototype),k.prototype.constructor=k,y(k,S)}function y(k,S){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,i){return p.__proto__=i,p},y(k,S)}var V=r.Countdown=function(k){function S(i){var c;return c=k.call(this,i)||this,c.timer=null,c.state={value:Math.max(i.timeLeft*100,0)},c}s(S,k);var p=S.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(f){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 f=this;this.props.current!==c.current&&this.setState(function(u){return{value:Math.max(f.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()}return i}(),p.render=function(){function i(){var c=this.props,f=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:f?f(this.state.value,d):d})))}return i}(),S}(e.Component);V.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 d(V,k){if(V==null)return{};var S={};for(var p in V)if({}.hasOwnProperty.call(V,p)){if(k.includes(p))continue;S[p]=V[p]}return S}var y=r.ColorBox=function(){function V(k){var S=k.content,p=k.children,i=k.className,l=k.color,f=k.backgroundColor,u=d(k,o);return u.color=S?null:"transparent",u.backgroundColor=l||f,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",i,(0,t.computeBoxClassName)(u)]),S||".",0,Object.assign({},(0,t.computeBoxProps)(u))))}return V}();y.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,S){if(k==null)return{};var p={};for(var i in k)if({}.hasOwnProperty.call(k,i)){if(S.includes(i))continue;p[i]=k[i]}return p}function d(k,S){k.prototype=Object.create(S.prototype),k.prototype.constructor=k,y(k,S)}function y(k,S){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,i){return p.__proto__=i,p},y(k,S)}var V=r.Countdown=function(k){function S(i){var l;return l=k.call(this,i)||this,l.timer=null,l.state={value:Math.max(i.timeLeft*100,0)},l}d(S,k);var p=S.prototype;return p.tick=function(){function i(){var l=Math.max(this.state.value-this.props.rate,0);l<=0&&clearInterval(this.timer),this.setState(function(f){return{value:l}})}return i}(),p.componentDidMount=function(){function i(){var l=this;this.timer=setInterval(function(){return l.tick()},this.props.rate)}return i}(),p.componentWillUnmount=function(){function i(){clearInterval(this.timer)}return i}(),p.componentDidUpdate=function(){function i(l){var f=this;this.props.current!==l.current&&this.setState(function(u){return{value:Math.max(f.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()}return i}(),p.render=function(){function i(){var l=this.props,f=l.format,u=o(l,t),s=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:f?f(this.state.value,s):s})))}return i}(),S}(e.Component);V.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 - */function s(V,k){if(V==null)return{};var S={};for(var p in V)if({}.hasOwnProperty.call(V,p)){if(k.includes(p))continue;S[p]=V[p]}return S}var y=r.Dimmer=function(){function V(k){var S=k.className,p=k.children,i=s(k,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(S))},i,{children:(0,e.createVNode)(1,"div","Dimmer__inner",p,0)})))}return V}()},13605:function(I,r,n){"use strict";r.__esModule=!0,r.Divider=void 0;var e=n(89005),a=n(35840);/** + */function d(V,k){if(V==null)return{};var S={};for(var p in V)if({}.hasOwnProperty.call(V,p)){if(k.includes(p))continue;S[p]=V[p]}return S}var y=r.Dimmer=function(){function V(k){var S=k.className,p=k.children,i=d(k,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(S))},i,{children:(0,e.createVNode)(1,"div","Dimmer__inner",p,0)})))}return V}()},13605:function(I,r,n){"use strict";r.__esModule=!0,r.Divider=void 0;var e=n(89005),a=n(35840);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.Divider=function(){function o(s){var y=s.vertical,V=s.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",V&&"Divider--hidden",y?"Divider--vertical":"Divider--horizontal"]))}return o}()},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 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,f){return c.__proto__=f,c},y(p,i)}var V=400,k=function(i,c){return i.screenX*c[0]+i.screenY*c[1]},S=r.DraggableControl=function(p){function i(f){var u;return u=p.call(this,f)||this,u.inputRef=(0,e.createRef)(),u.state={originalValue:f.value,value:f.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 m=u.props,l=m.value,v=m.dragMatrix,b=m.disabled,N=u.state.editing;N||b||(document.body.style["pointer-events"]="none",u.ref=d.currentTarget,u.setState({originalValue:l,dragging:!1,value:l,origin:k(d,v)}),u.timer=setTimeout(function(){u.setState({dragging:!0})},250),u.dragInterval=setInterval(function(){var h=u.state,C=h.dragging,g=h.value,x=u.props.onDrag;C&&x&&x(d,g)},u.props.updateRate||V),document.addEventListener("mousemove",u.handleDragMove),document.addEventListener("mouseup",u.handleDragEnd))},u.handleDragMove=function(d){var m,l=u.props,v=l.minValue,b=l.maxValue,N=l.step,h=l.dragMatrix,C=l.disabled;if(!C){var g=u.ref.offsetWidth/((b-v)/N),x=(m=u.props.stepPixelSize)!=null?m:g;typeof x=="function"&&(x=x(g)),u.setState(function(B){var L=Object.assign({},B),w=B.origin,A=k(d,h)-w;if(B.dragging){var T=Math.trunc(A/x);L.value=(0,a.clamp)(Math.floor(L.originalValue/N)*N+T*N,v,b)}else Math.abs(A)>4&&(L.dragging=!0);return L})}},u.handleDragEnd=function(d){var m=u.props,l=m.onChange,v=m.onDrag,b=u.state,N=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:!N,origin:null}),document.removeEventListener("mousemove",u.handleDragMove),document.removeEventListener("mouseup",u.handleDragEnd),N)u.suppressFlicker(),l&&l(d,h),v&&v(d,h);else if(u.inputRef){var C=u.inputRef.current;C.value=h;try{C.focus(),C.select()}catch(g){}}},u}s(i,p);var c=i.prototype;return c.render=function(){function f(){var u=this,d=this.state,m=d.dragging,l=d.editing,v=d.value,b=d.suppressingFlicker,N=this.props,h=N.animated,C=N.value,g=N.unit,x=N.minValue,B=N.maxValue,L=N.format,w=N.onChange,A=N.onDrag,T=N.children,E=N.height,O=N.lineHeight,P=N.fontSize,R=N.disabled,F=C;(m||b)&&(F=v);var j=function(){function z($){return $+(g?" "+g:"")}return z}(),W=h&&!m&&!b&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:F,format:L,children:j})||j(L?L(F):F),H=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!l||R?"none":void 0,height:E,"line-height":O,"font-size":P},onBlur:function(){function z($){if(l){var G=(0,a.clamp)(parseFloat($.target.value),x,B);if(Number.isNaN(G)){u.setState({editing:!1});return}u.setState({editing:!1,value:G}),u.suppressFlicker(),w&&w($,G),A&&A($,G)}}return z}(),onKeyDown:function(){function z($){if($.keyCode===13){var G=(0,a.clamp)(parseFloat($.target.value),x,B);if(Number.isNaN(G)){u.setState({editing:!1});return}u.setState({editing:!1,value:G}),u.suppressFlicker(),w&&w($,G),A&&A($,G);return}if($.keyCode===27){u.setState({editing:!1});return}}return z}(),disabled:R},null,this.inputRef);return T({dragging:m,editing:l,value:C,displayValue:F,displayElement:W,inputElement:H,handleDragStart:this.handleDragStart})}return f}(),i}(e.Component);S.defaultHooks=t.pureComponentHooks,S.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),s=n(1331),y=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],V=["className"],k;function S(l,v){if(l==null)return{};var b={};for(var N in l)if({}.hasOwnProperty.call(l,N)){if(v.includes(N))continue;b[N]=l[N]}return b}function p(l,v){l.prototype=Object.create(v.prototype),l.prototype.constructor=l,i(l,v)}function i(l,v){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,N){return b.__proto__=N,b},i(l,v)}var c={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},f={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",m=r.Dropdown=function(l){function v(N){var h;return h=l.call(this,N)||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(v,l);var b=v.prototype;return b.getDOMNode=function(){function N(){return(0,e.findDOMFromVNode)(this.$LI,!0)}return N}(),b.componentDidMount=function(){function N(){var h=this.getDOMNode()}return N}(),b.openMenu=function(){function N(){var h=v.renderedMenu;h===void 0&&(h=document.createElement("div"),h.className=u,document.body.appendChild(h),v.renderedMenu=h);var C=this.getDOMNode();v.currentOpenMenu=C,h.scrollTop=0,h.style.width=this.props.menuWidth||C.offsetWidth+"px",h.style.opacity="1",h.style.pointerEvents="auto",setTimeout(function(){var g;(g=v.renderedMenu)==null||g.focus()},400),this.renderMenuContent()}return N}(),b.closeMenu=function(){function N(){v.currentOpenMenu===this.getDOMNode()&&(v.currentOpenMenu=void 0,v.renderedMenu.style.opacity="0",v.renderedMenu.style.pointerEvents="none")}return N}(),b.componentWillUnmount=function(){function N(){this.closeMenu(),this.setOpen(!1)}return N}(),b.renderMenuContent=function(){function N(){var h=this,C=v.renderedMenu;if(C){C.offsetHeight>200?C.className=d:C.className=u;var g=this.props.options,x=g===void 0?[]:g,B=x.map(function(w){var A,T;return typeof w=="string"?(T=w,A=w):w!==null&&(T=w.displayText,A=w.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",h.state.selected===A&&"selected"]),T,0,{onClick:function(){function E(){h.setSelected(A)}return E}()},A)}),L=B.length?B:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,L,0),C,function(){var w=v.singletonPopper;w===void 0?(w=(0,a.createPopper)(v.virtualElement,C,Object.assign({},c,{placement:"bottom-start"})),v.singletonPopper=w):(w.setOptions(Object.assign({},c,{placement:"bottom-start"})),w.update())},this.context)}}return N}(),b.setOpen=function(){function N(h){var C=this;this.setState(function(g){return Object.assign({},g,{open:h})}),h?setTimeout(function(){C.openMenu(),window.addEventListener("click",C.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return N}(),b.setSelected=function(){function N(h){this.setState(function(C){return Object.assign({},C,{selected:h})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(h)}return N}(),b.render=function(){function N(){var h=this,C=this.props,g=C.icon,x=C.iconRotation,B=C.iconSpin,L=C.clipSelectedText,w=L===void 0?!0:L,A=C.color,T=A===void 0?"default":A,E=C.dropdownStyle,O=C.over,P=C.nochevron,R=C.width,F=C.onClick,j=C.onSelected,W=C.selected,H=C.disabled,z=C.displayText,$=S(C,y),G=$.className,ne=S($,V),Q=O?!this.state.open:this.state.open;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:R,className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+T,H&&"Button--disabled",G]),onClick:function(){function he(Ve){H&&!h.state.open||(h.setOpen(!h.state.open),F&&F(Ve))}return he}()},ne,{children:[g&&(0,e.createComponentVNode)(2,s.Icon,{name:g,rotation:x,spin:B,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",z||this.state.selected,0,{style:{overflow:w?"hidden":"visible"}}),P||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,s.Icon,{name:Q?"chevron-up":"chevron-down"}),2)]})))}return N}(),v}(e.Component);k=m,m.renderedMenu=void 0,m.singletonPopper=void 0,m.currentOpenMenu=void 0,m.virtualElement={getBoundingClientRect:function(){function l(){var v,b;return(v=(b=k.currentOpenMenu)==null?void 0:b.getBoundingClientRect())!=null?v:f}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"],s=["className"],y=["className","style","grow","order","shrink","basis","align"],V=["className"];/** + */var t=r.Divider=function(){function o(d){var y=d.vertical,V=d.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",V&&"Divider--hidden",y?"Divider--vertical":"Divider--horizontal"]))}return o}()},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 d(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(l,f){return l.__proto__=f,l},y(p,i)}var V=400,k=function(i,l){return i.screenX*l[0]+i.screenY*l[1]},S=r.DraggableControl=function(p){function i(f){var u;return u=p.call(this,f)||this,u.inputRef=(0,e.createRef)(),u.state={originalValue:f.value,value:f.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},u.flickerTimer=null,u.suppressFlicker=function(){var s=u.props.suppressFlicker;s>0&&(u.setState({suppressingFlicker:!0}),clearTimeout(u.flickerTimer),u.flickerTimer=setTimeout(function(){return u.setState({suppressingFlicker:!1})},s))},u.handleDragStart=function(s){var m=u.props,c=m.value,v=m.dragMatrix,b=m.disabled,g=u.state.editing;g||b||(document.body.style["pointer-events"]="none",u.ref=s.currentTarget,u.setState({originalValue:c,dragging:!1,value:c,origin:k(s,v)}),u.timer=setTimeout(function(){u.setState({dragging:!0})},250),u.dragInterval=setInterval(function(){var h=u.state,C=h.dragging,N=h.value,x=u.props.onDrag;C&&x&&x(s,N)},u.props.updateRate||V),document.addEventListener("mousemove",u.handleDragMove),document.addEventListener("mouseup",u.handleDragEnd))},u.handleDragMove=function(s){var m,c=u.props,v=c.minValue,b=c.maxValue,g=c.step,h=c.dragMatrix,C=c.disabled;if(!C){var N=u.ref.offsetWidth/((b-v)/g),x=(m=u.props.stepPixelSize)!=null?m:N;typeof x=="function"&&(x=x(N)),u.setState(function(B){var L=Object.assign({},B),w=B.origin,A=k(s,h)-w;if(B.dragging){var T=Math.trunc(A/x);L.value=(0,a.clamp)(Math.floor(L.originalValue/g)*g+T*g,v,b)}else Math.abs(A)>4&&(L.dragging=!0);return L})}},u.handleDragEnd=function(s){var m=u.props,c=m.onChange,v=m.onDrag,b=u.state,g=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:!g,origin:null}),document.removeEventListener("mousemove",u.handleDragMove),document.removeEventListener("mouseup",u.handleDragEnd),g)u.suppressFlicker(),c&&c(s,h),v&&v(s,h);else if(u.inputRef){var C=u.inputRef.current;C.value=h;try{C.focus(),C.select()}catch(N){}}},u}d(i,p);var l=i.prototype;return l.render=function(){function f(){var u=this,s=this.state,m=s.dragging,c=s.editing,v=s.value,b=s.suppressingFlicker,g=this.props,h=g.animated,C=g.value,N=g.unit,x=g.minValue,B=g.maxValue,L=g.format,w=g.onChange,A=g.onDrag,T=g.children,E=g.height,O=g.lineHeight,P=g.fontSize,R=g.disabled,F=C;(m||b)&&(F=v);var j=function(){function z($){return $+(N?" "+N:"")}return z}(),W=h&&!m&&!b&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:F,format:L,children:j})||j(L?L(F):F),H=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!c||R?"none":void 0,height:E,"line-height":O,"font-size":P},onBlur:function(){function z($){if(c){var G=(0,a.clamp)(parseFloat($.target.value),x,B);if(Number.isNaN(G)){u.setState({editing:!1});return}u.setState({editing:!1,value:G}),u.suppressFlicker(),w&&w($,G),A&&A($,G)}}return z}(),onKeyDown:function(){function z($){if($.keyCode===13){var G=(0,a.clamp)(parseFloat($.target.value),x,B);if(Number.isNaN(G)){u.setState({editing:!1});return}u.setState({editing:!1,value:G}),u.suppressFlicker(),w&&w($,G),A&&A($,G);return}if($.keyCode===27){u.setState({editing:!1});return}}return z}(),disabled:R},null,this.inputRef);return T({dragging:m,editing:c,value:C,displayValue:F,displayElement:W,inputElement:H,handleDragStart:this.handleDragStart})}return f}(),i}(e.Component);S.defaultHooks=t.pureComponentHooks,S.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),d=n(1331),y=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],V=["className"],k;function S(c,v){if(c==null)return{};var b={};for(var g in c)if({}.hasOwnProperty.call(c,g)){if(v.includes(g))continue;b[g]=c[g]}return b}function p(c,v){c.prototype=Object.create(v.prototype),c.prototype.constructor=c,i(c,v)}function i(c,v){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,g){return b.__proto__=g,b},i(c,v)}var l={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},f={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function c(){return null}return c}()},u="Layout Dropdown__menu",s="Layout Dropdown__menu-scroll",m=r.Dropdown=function(c){function v(g){var h;return h=c.call(this,g)||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(v,c);var b=v.prototype;return b.getDOMNode=function(){function g(){return(0,e.findDOMFromVNode)(this.$LI,!0)}return g}(),b.componentDidMount=function(){function g(){var h=this.getDOMNode()}return g}(),b.openMenu=function(){function g(){var h=v.renderedMenu;h===void 0&&(h=document.createElement("div"),h.className=u,document.body.appendChild(h),v.renderedMenu=h);var C=this.getDOMNode();v.currentOpenMenu=C,h.scrollTop=0,h.style.width=this.props.menuWidth||C.offsetWidth+"px",h.style.opacity="1",h.style.pointerEvents="auto",setTimeout(function(){var N;(N=v.renderedMenu)==null||N.focus()},400),this.renderMenuContent()}return g}(),b.closeMenu=function(){function g(){v.currentOpenMenu===this.getDOMNode()&&(v.currentOpenMenu=void 0,v.renderedMenu.style.opacity="0",v.renderedMenu.style.pointerEvents="none")}return g}(),b.componentWillUnmount=function(){function g(){this.closeMenu(),this.setOpen(!1)}return g}(),b.renderMenuContent=function(){function g(){var h=this,C=v.renderedMenu;if(C){C.offsetHeight>200?C.className=s:C.className=u;var N=this.props.options,x=N===void 0?[]:N,B=x.map(function(w){var A,T;return typeof w=="string"?(T=w,A=w):w!==null&&(T=w.displayText,A=w.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",h.state.selected===A&&"selected"]),T,0,{onClick:function(){function E(){h.setSelected(A)}return E}()},A)}),L=B.length?B:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,L,0),C,function(){var w=v.singletonPopper;w===void 0?(w=(0,a.createPopper)(v.virtualElement,C,Object.assign({},l,{placement:"bottom-start"})),v.singletonPopper=w):(w.setOptions(Object.assign({},l,{placement:"bottom-start"})),w.update())},this.context)}}return g}(),b.setOpen=function(){function g(h){var C=this;this.setState(function(N){return Object.assign({},N,{open:h})}),h?setTimeout(function(){C.openMenu(),window.addEventListener("click",C.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return g}(),b.setSelected=function(){function g(h){this.setState(function(C){return Object.assign({},C,{selected:h})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(h)}return g}(),b.render=function(){function g(){var h=this,C=this.props,N=C.icon,x=C.iconRotation,B=C.iconSpin,L=C.clipSelectedText,w=L===void 0?!0:L,A=C.color,T=A===void 0?"default":A,E=C.dropdownStyle,O=C.over,P=C.nochevron,R=C.width,F=C.onClick,j=C.onSelected,W=C.selected,H=C.disabled,z=C.displayText,$=S(C,y),G=$.className,ne=S($,V),Q=O?!this.state.open:this.state.open;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:R,className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+T,H&&"Button--disabled",G]),onClick:function(){function he(Ve){H&&!h.state.open||(h.setOpen(!h.state.open),F&&F(Ve))}return he}()},ne,{children:[N&&(0,e.createComponentVNode)(2,d.Icon,{name:N,rotation:x,spin:B,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",z||this.state.selected,0,{style:{overflow:w?"hidden":"visible"}}),P||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,d.Icon,{name:Q?"chevron-up":"chevron-down"}),2)]})))}return g}(),v}(e.Component);k=m,m.renderedMenu=void 0,m.singletonPopper=void 0,m.currentOpenMenu=void 0,m.virtualElement={getBoundingClientRect:function(){function c(){var v,b;return(v=(b=k.currentOpenMenu)==null?void 0:b.getBoundingClientRect())!=null?v:f}return c}()}},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"],d=["className"],y=["className","style","grow","order","shrink","basis","align"],V=["className"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function k(d,m){if(d==null)return{};var l={};for(var v in d)if({}.hasOwnProperty.call(d,v)){if(m.includes(v))continue;l[v]=d[v]}return l}var S=r.computeFlexClassName=function(){function d(m){return(0,a.classes)(["Flex",m.inline&&"Flex--inline",(0,t.computeBoxClassName)(m)])}return d}(),p=r.computeFlexProps=function(){function d(m){var l=m.className,v=m.direction,b=m.wrap,N=m.align,h=m.justify,C=m.inline,g=k(m,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},g.style,{"flex-direction":v,"flex-wrap":b===!0?"wrap":b,"align-items":N,"justify-content":h})},g))}return d}(),i=r.Flex=function(){function d(m){var l=m.className,v=k(m,s);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([l,S(v)]),null,1,Object.assign({},p(v))))}return d}();i.defaultHooks=a.pureComponentHooks;var c=r.computeFlexItemClassName=function(){function d(m){return(0,a.classes)(["Flex__item",(0,t.computeBoxClassName)(m)])}return d}(),f=r.computeFlexItemProps=function(){function d(m){var l=m.className,v=m.style,b=m.grow,N=m.order,h=m.shrink,C=m.basis,g=C===void 0?m.width:C,x=m.align,B=k(m,y);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},v,{"flex-grow":b!==void 0&&Number(b),"flex-shrink":h!==void 0&&Number(h),"flex-basis":(0,t.unit)(g),order:N,"align-self":x})},B))}return d}(),u=function(m){var l=m.className,v=k(m,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([l,c(m)]),null,1,Object.assign({},f(v))))};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"],s=["size","style"];/** + */function k(s,m){if(s==null)return{};var c={};for(var v in s)if({}.hasOwnProperty.call(s,v)){if(m.includes(v))continue;c[v]=s[v]}return c}var S=r.computeFlexClassName=function(){function s(m){return(0,a.classes)(["Flex",m.inline&&"Flex--inline",(0,t.computeBoxClassName)(m)])}return s}(),p=r.computeFlexProps=function(){function s(m){var c=m.className,v=m.direction,b=m.wrap,g=m.align,h=m.justify,C=m.inline,N=k(m,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},N.style,{"flex-direction":v,"flex-wrap":b===!0?"wrap":b,"align-items":g,"justify-content":h})},N))}return s}(),i=r.Flex=function(){function s(m){var c=m.className,v=k(m,d);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([c,S(v)]),null,1,Object.assign({},p(v))))}return s}();i.defaultHooks=a.pureComponentHooks;var l=r.computeFlexItemClassName=function(){function s(m){return(0,a.classes)(["Flex__item",(0,t.computeBoxClassName)(m)])}return s}(),f=r.computeFlexItemProps=function(){function s(m){var c=m.className,v=m.style,b=m.grow,g=m.order,h=m.shrink,C=m.basis,N=C===void 0?m.width:C,x=m.align,B=k(m,y);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},v,{"flex-grow":b!==void 0&&Number(b),"flex-shrink":h!==void 0&&Number(h),"flex-basis":(0,t.unit)(N),order:g,"align-self":x})},B))}return s}(),u=function(m){var c=m.className,v=k(m,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([c,l(m)]),null,1,Object.assign({},f(v))))};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"],d=["size","style"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function y(S,p){if(S==null)return{};var i={};for(var c in S)if({}.hasOwnProperty.call(S,c)){if(p.includes(c))continue;i[c]=S[c]}return i}var V=r.Grid=function(){function S(p){var i=p.children,c=y(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 S}();V.defaultHooks=t.pureComponentHooks;var k=r.GridColumn=function(){function S(p){var i=p.size,c=i===void 0?1:i,f=p.style,u=y(p,s);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:c+"%"},f)},u)))}return S}();V.defaultHooks=t.pureComponentHooks,V.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"],s=["className","style","children"];/** + */function y(S,p){if(S==null)return{};var i={};for(var l in S)if({}.hasOwnProperty.call(S,l)){if(p.includes(l))continue;i[l]=S[l]}return i}var V=r.Grid=function(){function S(p){var i=p.children,l=y(p,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},l,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:i})})))}return S}();V.defaultHooks=t.pureComponentHooks;var k=r.GridColumn=function(){function S(p){var i=p.size,l=i===void 0?1:i,f=p.style,u=y(p,d);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:l+"%"},f)},u)))}return S}();V.defaultHooks=t.pureComponentHooks,V.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"],d=["className","style","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function y(p,i){if(p==null)return{};var c={};for(var f in p)if({}.hasOwnProperty.call(p,f)){if(i.includes(f))continue;c[f]=p[f]}return c}var V=/-o$/,k=r.Icon=function(){function p(i){var c=i.name,f=i.size,u=i.spin,d=i.className,m=i.style,l=m===void 0?{}:m,v=i.rotation,b=i.inverse,N=y(i,o);f&&(l["font-size"]=f*100+"%"),typeof v=="number"&&(l.transform="rotate("+v+"deg)");var h=V.test(c),C=c.replace(V,"");return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"i",className:(0,a.classes)(["Icon",d,h?"far":"fas","fa-"+C,u&&"fa-spin"]),style:l},N)))}return p}();k.defaultHooks=a.pureComponentHooks;var S=r.IconStack=function(){function p(i){var c=i.className,f=i.style,u=f===void 0?{}:f,d=i.children,m=y(i,s);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"span",class:(0,a.classes)(["IconStack",c]),style:u},m,{children:d})))}return p}();k.Stack=S},66393:function(I,r,n){"use strict";r.__esModule=!0,r.ImageButtonItem=r.ImageButton=void 0;var e=n(89005),a=n(79140),t=n(35840),o=n(55937),s=n(1331),y=n(62147),V=["className","asset","color","title","vertical","content","selected","disabled","disabledContent","image","imageUrl","imageAsset","imageSize","tooltip","tooltipPosition","ellipsis","children","onClick"],k=["className","color","content","horizontal","selected","disabled","disabledContent","tooltip","tooltipPosition","icon","iconColor","iconPosition","iconRotation","iconSize","onClick","children"];/** + */function y(p,i){if(p==null)return{};var l={};for(var f in p)if({}.hasOwnProperty.call(p,f)){if(i.includes(f))continue;l[f]=p[f]}return l}var V=/-o$/,k=r.Icon=function(){function p(i){var l=i.name,f=i.size,u=i.spin,s=i.className,m=i.style,c=m===void 0?{}:m,v=i.rotation,b=i.inverse,g=y(i,o);f&&(c["font-size"]=f*100+"%"),typeof v=="number"&&(c.transform="rotate("+v+"deg)");var h=V.test(l),C=l.replace(V,"");return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"i",className:(0,a.classes)(["Icon",s,h?"far":"fas","fa-"+C,u&&"fa-spin"]),style:c},g)))}return p}();k.defaultHooks=a.pureComponentHooks;var S=r.IconStack=function(){function p(i){var l=i.className,f=i.style,u=f===void 0?{}:f,s=i.children,m=y(i,d);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"span",class:(0,a.classes)(["IconStack",l]),style:u},m,{children:s})))}return p}();k.Stack=S},66393:function(I,r,n){"use strict";r.__esModule=!0,r.ImageButtonItem=r.ImageButton=void 0;var e=n(89005),a=n(79140),t=n(35840),o=n(55937),d=n(1331),y=n(62147),V=["className","asset","color","title","vertical","content","selected","disabled","disabledContent","image","imageUrl","imageAsset","imageSize","tooltip","tooltipPosition","ellipsis","children","onClick"],k=["className","color","content","horizontal","selected","disabled","disabledContent","tooltip","tooltipPosition","icon","iconColor","iconPosition","iconRotation","iconSize","onClick","children"];/** * @file * @copyright 2024 Aylong (https://github.com/AyIong) * @license MIT - */function S(c,f){if(c==null)return{};var u={};for(var d in c)if({}.hasOwnProperty.call(c,d)){if(f.includes(d))continue;u[d]=c[d]}return u}var p=r.ImageButton=function(){function c(f){var u=f.className,d=f.asset,m=f.color,l=f.title,v=f.vertical,b=f.content,N=f.selected,h=f.disabled,C=f.disabledContent,g=f.image,x=f.imageUrl,B=f.imageAsset,L=f.imageSize,w=f.tooltip,A=f.tooltipPosition,T=f.ellipsis,E=f.children,O=f.onClick,P=S(f,V);P.onClick=function(F){!h&&O&&O(F)};var R=(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)([v?"ImageButton__vertical":"ImageButton__horizontal",N&&"ImageButton--selected",h&&"ImageButton--disabled",m&&typeof m=="string"?O?"ImageButton--color--clickable--"+m:"ImageButton--color--"+m:O?"ImageButton--color--default--clickable":"ImageButton--color--default",u,(0,o.computeBoxClassName)(P)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__image"]),d?(0,e.createVNode)(1,"div",(0,t.classes)([B,g])):(0,e.createVNode)(1,"img",null,null,1,{src:x?(0,a.resolveAsset)(x):"data:image/jpeg;base64,"+g,style:{width:L,height:L,"-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),0),b&&(v?(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__vertical",T&&"ImageButton__content--ellipsis",N&&"ImageButton__content--selected",h&&"ImageButton__content--disabled",m&&typeof m=="string"?"ImageButton__content--color--"+m:"ImageButton__content--color--default",u,(0,o.computeBoxClassName)(P)]),h&&C?C:b,0):(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__horizontal"]),[l&&(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__horizontal--title"]),[l,(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__horizontal--divider"]))],0),(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__horizontal--content"]),b,0)],0))],0,Object.assign({tabIndex:!h&&"0"},(0,o.computeBoxProps)(P))));return w&&(R=(0,e.createComponentVNode)(2,y.Tooltip,{content:w,position:A,children:R})),(0,e.createVNode)(1,"div",(0,t.classes)([v?"ImageButton--vertical":"ImageButton--horizontal"]),[R,E],0)}return c}();p.defaultHooks=t.pureComponentHooks;var i=r.ImageButtonItem=function(){function c(f){var u=f.className,d=f.color,m=f.content,l=f.horizontal,v=f.selected,b=f.disabled,N=f.disabledContent,h=f.tooltip,C=f.tooltipPosition,g=f.icon,x=f.iconColor,B=f.iconPosition,L=f.iconRotation,w=f.iconSize,A=f.onClick,T=f.children,E=S(f,k);E.onClick=function(P){!b&&A&&A(P)};var O=(0,e.createVNode)(1,"div",null,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__item",v&&"ImageButton__item--selected",b&&"ImageButton__item--disabled",d&&typeof d=="string"?"ImageButton__item--color--"+d:"ImageButton__item--color--default",u,(0,o.computeBoxClassName)(E)]),(0,e.createVNode)(1,"div",(0,t.classes)([l&&"ImageButton__item--icon--horizontal",(0,o.computeBoxClassName)(E),u]),[g&&(B==="top"||B==="left")&&(0,e.createComponentVNode)(2,s.Icon,{mb:.5,name:g,color:x,rotation:L,size:w}),(0,e.createVNode)(1,"div",null,[b&&N?N:m,T],0),g&&!(B==="top"||B==="left")&&(0,e.createComponentVNode)(2,s.Icon,{mt:.5,name:g,color:x,rotation:L,size:w})],0),2,Object.assign({tabIndex:!b&&"0"},(0,o.computeBoxProps)(E)))),2);return h&&(O=(0,e.createComponentVNode)(2,y.Tooltip,{content:h,position:C,children:O})),O}return c}();p.Item=i},79652:function(I,r,n){"use strict";r.__esModule=!0,r.toInputValue=r.Input=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(92986),s=["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus","disabled","multiline","cols","rows"],y=["className","fluid","monospace"];function V(c,f){if(c==null)return{};var u={};for(var d in c)if({}.hasOwnProperty.call(c,d)){if(f.includes(d))continue;u[d]=c[d]}return u}function k(c,f){c.prototype=Object.create(f.prototype),c.prototype.constructor=c,S(c,f)}function S(c,f){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},S(c,f)}/** + */function S(l,f){if(l==null)return{};var u={};for(var s in l)if({}.hasOwnProperty.call(l,s)){if(f.includes(s))continue;u[s]=l[s]}return u}var p=r.ImageButton=function(){function l(f){var u=f.className,s=f.asset,m=f.color,c=f.title,v=f.vertical,b=f.content,g=f.selected,h=f.disabled,C=f.disabledContent,N=f.image,x=f.imageUrl,B=f.imageAsset,L=f.imageSize,w=f.tooltip,A=f.tooltipPosition,T=f.ellipsis,E=f.children,O=f.onClick,P=S(f,V);P.onClick=function(F){!h&&O&&O(F)};var R=(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)([v?"ImageButton__vertical":"ImageButton__horizontal",g&&"ImageButton--selected",h&&"ImageButton--disabled",m&&typeof m=="string"?O?"ImageButton--color--clickable--"+m:"ImageButton--color--"+m:O?"ImageButton--color--default--clickable":"ImageButton--color--default",u,(0,o.computeBoxClassName)(P)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__image"]),s?(0,e.createVNode)(1,"div",(0,t.classes)([B,N])):(0,e.createVNode)(1,"img",null,null,1,{src:x?(0,a.resolveAsset)(x):"data:image/jpeg;base64,"+N,style:{width:L,height:L,"-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),0),b&&(v?(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__vertical",T&&"ImageButton__content--ellipsis",g&&"ImageButton__content--selected",h&&"ImageButton__content--disabled",m&&typeof m=="string"?"ImageButton__content--color--"+m:"ImageButton__content--color--default",u,(0,o.computeBoxClassName)(P)]),h&&C?C:b,0):(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__horizontal"]),[c&&(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__horizontal--title"]),[c,(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__horizontal--divider"]))],0),(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__horizontal--content"]),b,0)],0))],0,Object.assign({tabIndex:!h&&"0"},(0,o.computeBoxProps)(P))));return w&&(R=(0,e.createComponentVNode)(2,y.Tooltip,{content:w,position:A,children:R})),(0,e.createVNode)(1,"div",(0,t.classes)([v?"ImageButton--vertical":"ImageButton--horizontal"]),[R,E],0)}return l}();p.defaultHooks=t.pureComponentHooks;var i=r.ImageButtonItem=function(){function l(f){var u=f.className,s=f.color,m=f.content,c=f.horizontal,v=f.selected,b=f.disabled,g=f.disabledContent,h=f.tooltip,C=f.tooltipPosition,N=f.icon,x=f.iconColor,B=f.iconPosition,L=f.iconRotation,w=f.iconSize,A=f.onClick,T=f.children,E=S(f,k);E.onClick=function(P){!b&&A&&A(P)};var O=(0,e.createVNode)(1,"div",null,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__item",v&&"ImageButton__item--selected",b&&"ImageButton__item--disabled",s&&typeof s=="string"?"ImageButton__item--color--"+s:"ImageButton__item--color--default",u,(0,o.computeBoxClassName)(E)]),(0,e.createVNode)(1,"div",(0,t.classes)([c&&"ImageButton__item--icon--horizontal",(0,o.computeBoxClassName)(E),u]),[N&&(B==="top"||B==="left")&&(0,e.createComponentVNode)(2,d.Icon,{mb:.5,name:N,color:x,rotation:L,size:w}),(0,e.createVNode)(1,"div",null,[b&&g?g:m,T],0),N&&!(B==="top"||B==="left")&&(0,e.createComponentVNode)(2,d.Icon,{mt:.5,name:N,color:x,rotation:L,size:w})],0),2,Object.assign({tabIndex:!b&&"0"},(0,o.computeBoxProps)(E)))),2);return h&&(O=(0,e.createComponentVNode)(2,y.Tooltip,{content:h,position:C,children:O})),O}return l}();p.Item=i},79652:function(I,r,n){"use strict";r.__esModule=!0,r.toInputValue=r.Input=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(92986),d=["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus","disabled","multiline","cols","rows"],y=["className","fluid","monospace"];function V(l,f){if(l==null)return{};var u={};for(var s in l)if({}.hasOwnProperty.call(l,s)){if(f.includes(s))continue;u[s]=l[s]}return u}function k(l,f){l.prototype=Object.create(f.prototype),l.prototype.constructor=l,S(l,f)}function S(l,f){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,s){return u.__proto__=s,u},S(l,f)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var p=r.toInputValue=function(){function c(f){return typeof f!="number"&&typeof f!="string"?"":String(f)}return c}(),i=r.Input=function(c){function f(){var d;return d=c.call(this)||this,d.inputRef=(0,e.createRef)(),d.state={editing:!1},d.handleInput=function(m){var l=d.state.editing,v=d.props.onInput;l||d.setEditing(!0),v&&v(m,m.target.value)},d.handleFocus=function(m){var l=d.state.editing;l||d.setEditing(!0)},d.handleBlur=function(m){var l=d.state.editing,v=d.props.onChange;l&&(d.setEditing(!1),v&&v(m,m.target.value))},d.handleKeyDown=function(m){var l=d.props,v=l.onInput,b=l.onChange,N=l.onEnter;if(m.keyCode===o.KEY_ENTER){d.setEditing(!1),b&&b(m,m.target.value),v&&v(m,m.target.value),N&&N(m,m.target.value),d.props.selfClear?m.target.value="":m.target.blur();return}if(m.keyCode===o.KEY_ESCAPE){d.setEditing(!1),m.target.value=p(d.props.value),m.target.blur();return}},d}k(f,c);var u=f.prototype;return u.componentDidMount=function(){function d(){var m=this,l=this.props.value,v=this.inputRef.current;v&&(v.value=p(l),v.selectionStart=0,v.selectionEnd=v.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){v.focus(),m.props.autoSelect&&v.select()},1)}return d}(),u.componentDidUpdate=function(){function d(m,l){var v=this.state.editing,b=m.value,N=this.props.value,h=this.inputRef.current;h&&!v&&b!==N&&(h.value=p(N))}return d}(),u.setEditing=function(){function d(m){this.setState({editing:m})}return d}(),u.render=function(){function d(){var m=this.props,l=m.selfClear,v=m.onInput,b=m.onChange,N=m.onEnter,h=m.value,C=m.maxLength,g=m.placeholder,x=m.autofocus,B=m.disabled,L=m.multiline,w=m.cols,A=w===void 0?32:w,T=m.rows,E=T===void 0?4:T,O=V(m,s),P=O.className,R=O.fluid,F=O.monospace,j=V(O,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Input",R&&"Input--fluid",F&&"Input--monospace",B&&"Input--disabled",P])},j,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),L?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:g,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:C,cols:A,rows:E,disabled:B},null,this.inputRef):(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:g,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:C,disabled:B},null,this.inputRef)]})))}return d}(),f}(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),s=n(20342),y=n(59263),V=["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 l(f){return typeof f!="number"&&typeof f!="string"?"":String(f)}return l}(),i=r.Input=function(l){function f(){var s;return s=l.call(this)||this,s.inputRef=(0,e.createRef)(),s.state={editing:!1},s.handleInput=function(m){var c=s.state.editing,v=s.props.onInput;c||s.setEditing(!0),v&&v(m,m.target.value)},s.handleFocus=function(m){var c=s.state.editing;c||s.setEditing(!0)},s.handleBlur=function(m){var c=s.state.editing,v=s.props.onChange;c&&(s.setEditing(!1),v&&v(m,m.target.value))},s.handleKeyDown=function(m){var c=s.props,v=c.onInput,b=c.onChange,g=c.onEnter;if(m.keyCode===o.KEY_ENTER){s.setEditing(!1),b&&b(m,m.target.value),v&&v(m,m.target.value),g&&g(m,m.target.value),s.props.selfClear?m.target.value="":m.target.blur();return}if(m.keyCode===o.KEY_ESCAPE){s.setEditing(!1),m.target.value=p(s.props.value),m.target.blur();return}},s}k(f,l);var u=f.prototype;return u.componentDidMount=function(){function s(){var m=this,c=this.props.value,v=this.inputRef.current;v&&(v.value=p(c),v.selectionStart=0,v.selectionEnd=v.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){v.focus(),m.props.autoSelect&&v.select()},1)}return s}(),u.componentDidUpdate=function(){function s(m,c){var v=this.state.editing,b=m.value,g=this.props.value,h=this.inputRef.current;h&&!v&&b!==g&&(h.value=p(g))}return s}(),u.setEditing=function(){function s(m){this.setState({editing:m})}return s}(),u.render=function(){function s(){var m=this.props,c=m.selfClear,v=m.onInput,b=m.onChange,g=m.onEnter,h=m.value,C=m.maxLength,N=m.placeholder,x=m.autofocus,B=m.disabled,L=m.multiline,w=m.cols,A=w===void 0?32:w,T=m.rows,E=T===void 0?4:T,O=V(m,d),P=O.className,R=O.fluid,F=O.monospace,j=V(O,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Input",R&&"Input--fluid",F&&"Input--monospace",B&&"Input--disabled",P])},j,{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:C,cols:A,rows:E,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:C,disabled:B},null,this.inputRef)]})))}return s}(),f}(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),d=n(20342),y=n(59263),V=["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 f in p)if({}.hasOwnProperty.call(p,f)){if(i.includes(f))continue;c[f]=p[f]}return c}var S=r.Knob=function(){function p(i){var c=i.animated,f=i.format,u=i.maxValue,d=i.minValue,m=i.onChange,l=i.onDrag,v=i.step,b=i.stepPixelSize,N=i.suppressFlicker,h=i.unit,C=i.value,g=i.className,x=i.style,B=i.fillValue,L=i.color,w=i.ranges,A=w===void 0?{}:w,T=i.size,E=T===void 0?1:T,O=i.bipolar,P=i.children,R=i.popUpPosition,F=k(i,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:f,maxValue:u,minValue:d,onChange:m,onDrag:l,step:v,stepPixelSize:b,suppressFlicker:N,unit:h,value:C},{children:function(){function j(W){var H=W.dragging,z=W.editing,$=W.value,G=W.displayValue,ne=W.displayElement,Q=W.inputElement,he=W.handleDragStart,Ve=(0,a.scale)(B!=null?B:G,d,u),Ne=(0,a.scale)(G,d,u),Be=L||(0,a.keyOfMatchingRange)(B!=null?B:$,A)||"default",Le=(Ne-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+Be,O&&"Knob--bipolar",g,(0,o.computeBoxClassName)(F)]),[(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("+Le+"deg)"}}),2),H&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",R&&"Knob__popupValue--"+R]),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)-Ve*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),Q],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},x)},F)),{onMouseDown:he})))}return j}()})))}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 l={};for(var f in p)if({}.hasOwnProperty.call(p,f)){if(i.includes(f))continue;l[f]=p[f]}return l}var S=r.Knob=function(){function p(i){var l=i.animated,f=i.format,u=i.maxValue,s=i.minValue,m=i.onChange,c=i.onDrag,v=i.step,b=i.stepPixelSize,g=i.suppressFlicker,h=i.unit,C=i.value,N=i.className,x=i.style,B=i.fillValue,L=i.color,w=i.ranges,A=w===void 0?{}:w,T=i.size,E=T===void 0?1:T,O=i.bipolar,P=i.children,R=i.popUpPosition,F=k(i,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,d.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:l,format:f,maxValue:u,minValue:s,onChange:m,onDrag:c,step:v,stepPixelSize:b,suppressFlicker:g,unit:h,value:C},{children:function(){function j(W){var H=W.dragging,z=W.editing,$=W.value,G=W.displayValue,ne=W.displayElement,Q=W.inputElement,he=W.handleDragStart,Ve=(0,a.scale)(B!=null?B:G,s,u),Ne=(0,a.scale)(G,s,u),Be=L||(0,a.keyOfMatchingRange)(B!=null?B:$,A)||"default",Le=(Ne-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+Be,O&&"Knob--bipolar",N,(0,o.computeBoxClassName)(F)]),[(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("+Le+"deg)"}}),2),H&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",R&&"Knob__popupValue--"+R]),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)-Ve*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),Q],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},x)},F)),{onMouseDown:he})))}return j}()})))}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 - */function s(k,S){if(k==null)return{};var p={};for(var i in k)if({}.hasOwnProperty.call(k,i)){if(S.includes(i))continue;p[i]=k[i]}return p}var y=r.LabeledControls=function(){function k(S){var p=S.children,i=s(S,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},i,{children:p})))}return k}(),V=function(S){var p=S.label,i=S.children,c=s(S,o);return(0,e.createComponentVNode)(2,a.Flex.Item,{mx:1,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},c,{children:[(0,e.createComponentVNode)(2,a.Flex.Item),(0,e.createComponentVNode)(2,a.Flex.Item,{children:i}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:p})]})))})};y.Item=V},29319:function(I,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(13605),s=n(62147);/** + */function d(k,S){if(k==null)return{};var p={};for(var i in k)if({}.hasOwnProperty.call(k,i)){if(S.includes(i))continue;p[i]=k[i]}return p}var y=r.LabeledControls=function(){function k(S){var p=S.children,i=d(S,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},i,{children:p})))}return k}(),V=function(S){var p=S.label,i=S.children,l=d(S,o);return(0,e.createComponentVNode)(2,a.Flex.Item,{mx:1,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},l,{children:[(0,e.createComponentVNode)(2,a.Flex.Item),(0,e.createComponentVNode)(2,a.Flex.Item,{children:i}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:p})]})))})};y.Item=V},29319:function(I,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(13605),d=n(62147);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var y=r.LabeledList=function(){function S(p){var i=p.children;return(0,e.createVNode)(1,"table","LabeledList",i,0)}return S}();y.defaultHooks=a.pureComponentHooks;var V=function(p){var i=p.className,c=p.label,f=p.labelColor,u=f===void 0?"label":f,d=p.color,m=p.textAlign,l=p.buttons,v=p.tooltip,b=p.content,N=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:m,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:l?void 0:2,children:[b,N]}),l&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",l,0)],0);return v&&(h=(0,e.createComponentVNode)(2,s.Tooltip,{content:v,children:h})),h};V.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,y.Item=V,y.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),s=["className","children","onEnter"];/** + */var y=r.LabeledList=function(){function S(p){var i=p.children;return(0,e.createVNode)(1,"table","LabeledList",i,0)}return S}();y.defaultHooks=a.pureComponentHooks;var V=function(p){var i=p.className,l=p.label,f=p.labelColor,u=f===void 0?"label":f,s=p.color,m=p.textAlign,c=p.buttons,v=p.tooltip,b=p.content,g=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:l?l+":":null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:s,textAlign:m,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:c?void 0:2,children:[b,g]}),c&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",c,0)],0);return v&&(h=(0,e.createComponentVNode)(2,d.Tooltip,{content:v,children:h})),h};V.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,y.Item=V,y.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),d=["className","children","onEnter"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function y(k,S){if(k==null)return{};var p={};for(var i in k)if({}.hasOwnProperty.call(k,i)){if(S.includes(i))continue;p[i]=k[i]}return p}var V=r.Modal=function(){function k(S){var p=S.className,i=S.children,c=S.onEnter,f=y(S,s),u;return c&&(u=function(){function d(m){m.keyCode===13&&c(m)}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)(f)]),i,0,Object.assign({},(0,t.computeBoxProps)(f))))})}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),s=n(79911),y=n(79140);function V(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(m,l){return m.__proto__=l,m},k(u,d)}var S=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 v;v=u.call(this,l)||this;var b=window.innerWidth/2-256,N=window.innerHeight/2-256;return v.state={offsetX:128,offsetY:48,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},v.handleDragStart=function(h){v.ref=h.target,v.setState({dragging:!1,originX:h.screenX,originY:h.screenY}),document.addEventListener("mousemove",v.handleDragMove),document.addEventListener("mouseup",v.handleDragEnd),S(h)},v.handleDragMove=function(h){v.setState(function(C){var g=Object.assign({},C),x=h.screenX-g.originX,B=h.screenY-g.originY;return C.dragging?(g.offsetX+=x,g.offsetY+=B,g.originX=h.screenX,g.originY=h.screenY):g.dragging=!0,g}),S(h)},v.handleDragEnd=function(h){v.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",v.handleDragMove),document.removeEventListener("mouseup",v.handleDragEnd),S(h)},v.handleZoom=function(h,C){v.setState(function(g){var x=Math.min(Math.max(C,1),8),B=(x-g.zoom)*1.5;return g.zoom=x,g.offsetX=g.offsetX-262*B,g.offsetY=g.offsetY-256*B,l.onZoom&&l.onZoom(g.zoom),g})},v.handleZChange=function(h){l.setZCurrent(h)},v}V(d,u);var m=d.prototype;return m.render=function(){function l(){var v=(0,t.useBackend)(this.context),b=v.config,N=this.state,h=N.dragging,C=N.offsetX,g=N.offsetY,x=N.zoom,B=x===void 0?1:x,L=this.props.children,w=b.map+"_nanomap_z"+(this.props.zLevels.indexOf(this.props.z_current)+1)+".png",A=510*B+"px",T={width:A,height:A,"margin-top":g+"px","margin-left":C+"px",overflow:"hidden",position:"relative","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:h?"move":"auto"},E={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:T,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,y.resolveAsset)(w),style:E}),(0,e.createComponentVNode)(2,a.Box,{children:L})]}),(0,e.createComponentVNode)(2,c,{zoom:B,onZoom:this.handleZoom}),(0,e.createComponentVNode)(2,f,{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,m){var l=d.x,v=d.y,b=d.z,N=d.z_current,h=d.zoom,C=h===void 0?1:h,g=d.icon,x=d.tooltip,B=d.color,L=d.bordered,w=d.onClick;if(N!==b)return null;var A=l*2*C-C-3,T=v*2*C-C-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:T+"px",left:A+"px",onClick:w,children:(0,e.createComponentVNode)(2,a.Icon,{name:g,color:B,fontSize:"6px"})})}),2)};p.Marker=i;var c=function(d,m){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,s.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function l(v){return v+"x"}return l}(),value:d.zoom,onDrag:function(){function l(v,b){return d.onZoom(v,b)}return l}()})})})})};p.Zoomer=c;var f=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 m(l){return d.onZChange(d.z_levels[d.z_names.indexOf(l)])}return m}()})})})})}},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 y(k,S){if(k==null)return{};var p={};for(var i in k)if({}.hasOwnProperty.call(k,i)){if(S.includes(i))continue;p[i]=k[i]}return p}var V=r.Modal=function(){function k(S){var p=S.className,i=S.children,l=S.onEnter,f=y(S,d),u;return l&&(u=function(){function s(m){m.keyCode===13&&l(m)}return s}()),(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)(f)]),i,0,Object.assign({},(0,t.computeBoxProps)(f))))})}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),d=n(79911),y=n(79140);function V(u,s){u.prototype=Object.create(s.prototype),u.prototype.constructor=u,k(u,s)}function k(u,s){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,c){return m.__proto__=c,m},k(u,s)}var S=function(s){return s.stopPropagation&&s.stopPropagation(),s.preventDefault&&s.preventDefault(),s.cancelBubble=!0,s.returnValue=!1,!1},p=r.NanoMap=function(u){function s(c){var v;v=u.call(this,c)||this;var b=window.innerWidth/2-256,g=window.innerHeight/2-256;return v.state={offsetX:128,offsetY:48,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},v.handleDragStart=function(h){v.ref=h.target,v.setState({dragging:!1,originX:h.screenX,originY:h.screenY}),document.addEventListener("mousemove",v.handleDragMove),document.addEventListener("mouseup",v.handleDragEnd),S(h)},v.handleDragMove=function(h){v.setState(function(C){var N=Object.assign({},C),x=h.screenX-N.originX,B=h.screenY-N.originY;return C.dragging?(N.offsetX+=x,N.offsetY+=B,N.originX=h.screenX,N.originY=h.screenY):N.dragging=!0,N}),S(h)},v.handleDragEnd=function(h){v.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",v.handleDragMove),document.removeEventListener("mouseup",v.handleDragEnd),S(h)},v.handleZoom=function(h,C){v.setState(function(N){var x=Math.min(Math.max(C,1),8),B=(x-N.zoom)*1.5;return N.zoom=x,N.offsetX=N.offsetX-262*B,N.offsetY=N.offsetY-256*B,c.onZoom&&c.onZoom(N.zoom),N})},v.handleZChange=function(h){c.setZCurrent(h)},v}V(s,u);var m=s.prototype;return m.render=function(){function c(){var v=(0,t.useBackend)(this.context),b=v.config,g=this.state,h=g.dragging,C=g.offsetX,N=g.offsetY,x=g.zoom,B=x===void 0?1:x,L=this.props.children,w=b.map+"_nanomap_z"+(this.props.zLevels.indexOf(this.props.z_current)+1)+".png",A=510*B+"px",T={width:A,height:A,"margin-top":N+"px","margin-left":C+"px",overflow:"hidden",position:"relative","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:h?"move":"auto"},E={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:T,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,y.resolveAsset)(w),style:E}),(0,e.createComponentVNode)(2,a.Box,{children:L})]}),(0,e.createComponentVNode)(2,l,{zoom:B,onZoom:this.handleZoom}),(0,e.createComponentVNode)(2,f,{z_current:this.props.z_current,z_levels:this.props.zLevels,z_names:this.props.zNames,onZChange:this.handleZChange})]})}return c}(),s}(e.Component),i=function(s,m){var c=s.x,v=s.y,b=s.z,g=s.z_current,h=s.zoom,C=h===void 0?1:h,N=s.icon,x=s.tooltip,B=s.color,L=s.bordered,w=s.onClick;if(g!==b)return null;var A=c*2*C-C-3,T=v*2*C-C-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:T+"px",left:A+"px",onClick:w,children:(0,e.createComponentVNode)(2,a.Icon,{name:N,color:B,fontSize:"6px"})})}),2)};p.Marker=i;var l=function(s,m){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,d.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function c(v){return v+"x"}return c}(),value:s.zoom,onDrag:function(){function c(v,b){return s.onZoom(v,b)}return c}()})})})})};p.Zoomer=l;var f=function(s){if(s.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:s.z_names[s.z_levels.indexOf(s.z_current)],options:s.z_names,onSelected:function(){function m(c){return s.onZChange(s.z_levels[s.z_names.indexOf(c)])}return m}()})})})})}},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 s(V,k){if(V==null)return{};var S={};for(var p in V)if({}.hasOwnProperty.call(V,p)){if(k.includes(p))continue;S[p]=V[p]}return S}var y=r.NoticeBox=function(){function V(k){var S=k.className,p=k.color,i=k.info,c=k.warning,f=k.success,u=k.danger,d=s(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",f&&"NoticeBox--type--success",u&&"NoticeBox--type--danger",S])},d)))}return V}();y.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),s=n(55937);function y(p,i){p.prototype=Object.create(i.prototype),p.prototype.constructor=p,V(p,i)}function V(p,i){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,f){return c.__proto__=f,c},V(p,i)}/** + */function d(V,k){if(V==null)return{};var S={};for(var p in V)if({}.hasOwnProperty.call(V,p)){if(k.includes(p))continue;S[p]=V[p]}return S}var y=r.NoticeBox=function(){function V(k){var S=k.className,p=k.color,i=k.info,l=k.warning,f=k.success,u=k.danger,s=d(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",f&&"NoticeBox--type--success",u&&"NoticeBox--type--danger",S])},s)))}return V}();y.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),d=n(55937);function y(p,i){p.prototype=Object.create(i.prototype),p.prototype.constructor=p,V(p,i)}function V(p,i){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,f){return l.__proto__=f,l},V(p,i)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var k=400,S=r.NumberInput=function(p){function i(f){var u;u=p.call(this,f)||this;var d=f.value;return u.inputRef=(0,e.createRef)(),u.state={value:d,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},u.flickerTimer=null,u.suppressFlicker=function(){var m=u.props.suppressFlicker;m>0&&(u.setState({suppressingFlicker:!0}),clearTimeout(u.flickerTimer),u.flickerTimer=setTimeout(function(){return u.setState({suppressingFlicker:!1})},m))},u.handleDragStart=function(m){var l=u.props.value,v=u.state.editing;v||(document.body.style["pointer-events"]="none",u.ref=m.target,u.setState({dragging:!1,origin:m.screenY,value:l,internalValue:l}),u.timer=setTimeout(function(){u.setState({dragging:!0})},250),u.dragInterval=setInterval(function(){var b=u.state,N=b.dragging,h=b.value,C=u.props.onDrag;N&&C&&C(m,h)},u.props.updateRate||k),document.addEventListener("mousemove",u.handleDragMove),document.addEventListener("mouseup",u.handleDragEnd))},u.handleDragMove=function(m){var l=u.props,v=l.minValue,b=l.maxValue,N=l.step,h=l.stepPixelSize;u.setState(function(C){var g=Object.assign({},C),x=g.origin-m.screenY;if(C.dragging){var B=Number.isFinite(v)?v%N:0;g.internalValue=(0,a.clamp)(g.internalValue+x*N/h,v-N,b+N),g.value=(0,a.clamp)(g.internalValue-g.internalValue%N+B,v,b),g.origin=m.screenY}else Math.abs(x)>4&&(g.dragging=!0);return g})},u.handleDragEnd=function(m){var l=u.props,v=l.onChange,b=l.onDrag,N=u.state,h=N.dragging,C=N.value,g=N.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(),v&&v(m,C),b&&b(m,C);else if(u.inputRef){var x=u.inputRef.current;x.value=g;try{x.focus(),x.select()}catch(B){}}},u}y(i,p);var c=i.prototype;return c.render=function(){function f(){var u=this,d=this.state,m=d.dragging,l=d.editing,v=d.value,b=d.suppressingFlicker,N=this.props,h=N.className,C=N.fluid,g=N.animated,x=N.value,B=N.unit,L=N.minValue,w=N.maxValue,A=N.height,T=N.width,E=N.lineHeight,O=N.fontSize,P=N.format,R=N.onChange,F=N.onDrag,j=x;(m||b)&&(j=v);var W=(0,e.createVNode)(1,"div","NumberInput__content",[g&&!m&&!b?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:j,format:P}):P?P(j):j,B?" "+B:""],0);return(0,e.createComponentVNode)(2,s.Box,{className:(0,t.classes)(["NumberInput",C&&"NumberInput--fluid",h]),minWidth:T,minHeight:A,lineHeight:E,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)((j-L)/(w-L)*100,0,100)+"%"}}),2),W,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:l?void 0:"none",height:A,"line-height":E,"font-size":O},onBlur:function(){function H(z){if(l){var $=(0,a.clamp)(parseFloat(z.target.value),L,w);if(Number.isNaN($)){u.setState({editing:!1});return}u.setState({editing:!1,value:$}),u.suppressFlicker(),R&&R(z,$),F&&F(z,$)}}return H}(),onKeyDown:function(){function H(z){if(z.keyCode===13){var $=(0,a.clamp)(parseFloat(z.target.value),L,w);if(Number.isNaN($)){u.setState({editing:!1});return}u.setState({editing:!1,value:$}),u.suppressFlicker(),R&&R(z,$),F&&F(z,$);return}if(z.keyCode===27){u.setState({editing:!1});return}}return H}()},null,this.inputRef)]})}return f}(),i}(e.Component);S.defaultHooks=t.pureComponentHooks,S.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},50186:function(I,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(95996),a=n(89005);function t(y,V){y.prototype=Object.create(V.prototype),y.prototype.constructor=y,o(y,V)}function o(y,V){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,S){return k.__proto__=S,k},o(y,V)}var s=r.Popper=function(y){function V(){var S;return S=y.call(this)||this,S.renderedContent=void 0,S.popperInstance=void 0,V.id+=1,S}t(V,y);var k=V.prototype;return k.componentDidMount=function(){function S(){var p=this,i=this.props,c=i.additionalStyles,f=i.options;if(this.renderedContent=document.createElement("div"),c)for(var u=0,d=Object.entries(c);u0&&(u.setState({suppressingFlicker:!0}),clearTimeout(u.flickerTimer),u.flickerTimer=setTimeout(function(){return u.setState({suppressingFlicker:!1})},m))},u.handleDragStart=function(m){var c=u.props.value,v=u.state.editing;v||(document.body.style["pointer-events"]="none",u.ref=m.target,u.setState({dragging:!1,origin:m.screenY,value:c,internalValue:c}),u.timer=setTimeout(function(){u.setState({dragging:!0})},250),u.dragInterval=setInterval(function(){var b=u.state,g=b.dragging,h=b.value,C=u.props.onDrag;g&&C&&C(m,h)},u.props.updateRate||k),document.addEventListener("mousemove",u.handleDragMove),document.addEventListener("mouseup",u.handleDragEnd))},u.handleDragMove=function(m){var c=u.props,v=c.minValue,b=c.maxValue,g=c.step,h=c.stepPixelSize;u.setState(function(C){var N=Object.assign({},C),x=N.origin-m.screenY;if(C.dragging){var B=Number.isFinite(v)?v%g:0;N.internalValue=(0,a.clamp)(N.internalValue+x*g/h,v-g,b+g),N.value=(0,a.clamp)(N.internalValue-N.internalValue%g+B,v,b),N.origin=m.screenY}else Math.abs(x)>4&&(N.dragging=!0);return N})},u.handleDragEnd=function(m){var c=u.props,v=c.onChange,b=c.onDrag,g=u.state,h=g.dragging,C=g.value,N=g.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(),v&&v(m,C),b&&b(m,C);else if(u.inputRef){var x=u.inputRef.current;x.value=N;try{x.focus(),x.select()}catch(B){}}},u}y(i,p);var l=i.prototype;return l.render=function(){function f(){var u=this,s=this.state,m=s.dragging,c=s.editing,v=s.value,b=s.suppressingFlicker,g=this.props,h=g.className,C=g.fluid,N=g.animated,x=g.value,B=g.unit,L=g.minValue,w=g.maxValue,A=g.height,T=g.width,E=g.lineHeight,O=g.fontSize,P=g.format,R=g.onChange,F=g.onDrag,j=x;(m||b)&&(j=v);var W=(0,e.createVNode)(1,"div","NumberInput__content",[N&&!m&&!b?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:j,format:P}):P?P(j):j,B?" "+B:""],0);return(0,e.createComponentVNode)(2,d.Box,{className:(0,t.classes)(["NumberInput",C&&"NumberInput--fluid",h]),minWidth:T,minHeight:A,lineHeight:E,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)((j-L)/(w-L)*100,0,100)+"%"}}),2),W,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:c?void 0:"none",height:A,"line-height":E,"font-size":O},onBlur:function(){function H(z){if(c){var $=(0,a.clamp)(parseFloat(z.target.value),L,w);if(Number.isNaN($)){u.setState({editing:!1});return}u.setState({editing:!1,value:$}),u.suppressFlicker(),R&&R(z,$),F&&F(z,$)}}return H}(),onKeyDown:function(){function H(z){if(z.keyCode===13){var $=(0,a.clamp)(parseFloat(z.target.value),L,w);if(Number.isNaN($)){u.setState({editing:!1});return}u.setState({editing:!1,value:$}),u.suppressFlicker(),R&&R(z,$),F&&F(z,$);return}if(z.keyCode===27){u.setState({editing:!1});return}}return H}()},null,this.inputRef)]})}return f}(),i}(e.Component);S.defaultHooks=t.pureComponentHooks,S.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},50186:function(I,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(95996),a=n(89005);function t(y,V){y.prototype=Object.create(V.prototype),y.prototype.constructor=y,o(y,V)}function o(y,V){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,S){return k.__proto__=S,k},o(y,V)}var d=r.Popper=function(y){function V(){var S;return S=y.call(this)||this,S.renderedContent=void 0,S.popperInstance=void 0,V.id+=1,S}t(V,y);var k=V.prototype;return k.componentDidMount=function(){function S(){var p=this,i=this.props,l=i.additionalStyles,f=i.options;if(this.renderedContent=document.createElement("div"),l)for(var u=0,s=Object.entries(l);uf)return"in the future";c=c/10,f=f/10;var u=f-c;if(u>3600){var d=Math.round(u/3600);return d+" hour"+(d===1?"":"s")+" ago"}else if(u>60){var m=Math.round(u/60);return m+" minute"+(m===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);/** +*/var i=r.TextArea=function(l){function f(s,m){var c;c=l.call(this,s,m)||this,c.textareaRef=s.innerRef||(0,e.createRef)(),c.fillerRef=(0,e.createRef)(),c.state={editing:!1};var v=s.dontUseTabForIndent,b=v===void 0?!1:v;return c.handleOnInput=function(g){var h=c.state.editing,C=c.props.onInput;h||c.setEditing(!0),C&&C(g,g.target.value)},c.handleOnChange=function(g){var h=c.state.editing,C=c.props.onChange;h&&c.setEditing(!1),C&&C(g,g.target.value)},c.handleKeyPress=function(g){var h=c.state.editing,C=c.props.onKeyPress;h||c.setEditing(!0),C&&C(g,g.target.value)},c.handleKeyDown=function(g){var h=c.state.editing,C=c.props,N=C.onChange,x=C.onInput,B=C.onEnter,L=C.onKeyDown;if(g.keyCode===d.KEY_ENTER){c.setEditing(!1),N&&N(g,g.target.value),x&&x(g,g.target.value),B&&B(g,g.target.value),c.props.selfClear&&(g.target.value="",g.target.blur());return}if(g.keyCode===d.KEY_ESCAPE){c.props.onEscape&&c.props.onEscape(g),c.setEditing(!1),c.props.selfClear?g.target.value="":(g.target.value=(0,o.toInputValue)(c.props.value),g.target.blur());return}if(h||c.setEditing(!0),L&&L(g,g.target.value),!b){var w=g.keyCode||g.which;if(w===d.KEY_TAB){g.preventDefault();var A=g.target,T=A.value,E=A.selectionStart,O=A.selectionEnd;g.target.value=T.substring(0,E)+" "+T.substring(O),g.target.selectionEnd=E+1}}},c.handleFocus=function(g){var h=c.state.editing;h||c.setEditing(!0)},c.handleBlur=function(g){var h=c.state.editing,C=c.props.onChange;h&&(c.setEditing(!1),C&&C(g,g.target.value))},c}S(f,l);var u=f.prototype;return u.componentDidMount=function(){function s(){var m=this,c=this.props.value,v=this.textareaRef.current;v&&(v.value=(0,o.toInputValue)(c)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){v.focus(),m.props.autoSelect&&v.select()},1)}return s}(),u.componentDidUpdate=function(){function s(m,c){var v=m.value,b=this.props.value,g=this.textareaRef.current;g&&typeof b=="string"&&v!==b&&(g.value=(0,o.toInputValue)(b))}return s}(),u.setEditing=function(){function s(m){this.setState({editing:m})}return s}(),u.getValue=function(){function s(){return this.textareaRef.current&&this.textareaRef.current.value}return s}(),u.render=function(){function s(){var m=this.props,c=m.onChange,v=m.onKeyDown,b=m.onKeyPress,g=m.onInput,h=m.onFocus,C=m.onBlur,N=m.onEnter,x=m.value,B=m.maxLength,L=m.placeholder,w=k(m,y),A=w.className,T=w.fluid,E=k(w,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["TextArea",T&&"TextArea--fluid",A])},E,{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 s}(),f}(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),d=(Math.floor(t)%60).toString(10);return[o,d].map(function(y){return y.length<2?"0"+y:y}).join(":")},e=r.TimeDisplay=function(){function a(t){var o=t.totalSeconds,d=o===void 0?0:o;return n(d)}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(S,p){S.prototype=Object.create(p.prototype),S.prototype.constructor=S,d(S,p)}function d(S,p){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,l){return i.__proto__=l,i},d(S,p)}var y={modifiers:[{name:"eventListeners",enabled:!1}]},V={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function S(){return null}return S}()},k=r.Tooltip=function(S){function p(){return S.apply(this,arguments)||this}o(p,S);var i=p.prototype;return i.getDOMNode=function(){function l(){return(0,e.findDOMFromVNode)(this.$LI,!0)}return l}(),i.componentDidMount=function(){function l(){var f=this,u=this.getDOMNode();u&&(u.addEventListener("mouseenter",function(){var s=p.renderedTooltip;s===void 0&&(s=document.createElement("div"),s.className="Tooltip",document.body.appendChild(s),p.renderedTooltip=s),p.currentHoveredElement=u,s.style.opacity="1",f.renderPopperContent()}),u.addEventListener("mouseleave",function(){f.fadeOut()}))}return l}(),i.fadeOut=function(){function l(){p.currentHoveredElement===this.getDOMNode()&&(p.currentHoveredElement=void 0,p.renderedTooltip.style.opacity="0")}return l}(),i.renderPopperContent=function(){function l(){var f=this,u=p.renderedTooltip;u&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),u,function(){var s=p.singletonPopper;s===void 0?(s=(0,a.createPopper)(p.virtualElement,u,Object.assign({},y,{placement:f.props.position||"auto"})),p.singletonPopper=s):(s.setOptions(Object.assign({},y,{placement:f.props.position||"auto"})),s.update())},this.context)}return l}(),i.componentDidUpdate=function(){function l(){p.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return l}(),i.componentWillUnmount=function(){function l(){this.fadeOut()}return l}(),i.render=function(){function l(){return this.props.children}return l}(),p}(e.Component);t=k,k.renderedTooltip=void 0,k.singletonPopper=void 0,k.currentHoveredElement=void 0,k.virtualElement={getBoundingClientRect:function(){function S(){var p,i;return(p=(i=t.currentHoveredElement)==null?void 0:i.getBoundingClientRect())!=null?p:V}return S}()}},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.NumberInput=r.NoticeBox=r.NanoMap=r.Modal=r.LabeledList=r.LabeledControls=r.Knob=r.Input=r.ImageButton=r.Icon=r.Grid=r.Flex=r.Dropdown=r.DraggableControl=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 d=n(55937);r.Box=d.Box;var y=n(94798);r.Button=y.Button;var V=n(18982);r.ByondUi=V.ByondUi;var k=n(66820);r.Chart=k.Chart;var S=n(4796);r.Collapsible=S.Collapsible;var p=n(88894);r.ColorBox=p.ColorBox;var i=n(73379);r.Countdown=i.Countdown;var l=n(61940);r.Dimmer=l.Dimmer;var f=n(13605);r.Divider=f.Divider;var u=n(20342);r.DraggableControl=u.DraggableControl;var s=n(87099);r.Dropdown=s.Dropdown;var m=n(39473);r.Flex=m.Flex;var c=n(79646);r.Grid=c.Grid;var v=n(1331);r.Icon=v.Icon;var b=n(66393);r.ImageButton=b.ImageButton;var g=n(79652);r.Input=g.Input;var h=n(76334);r.Knob=h.Knob;var C=n(78621);r.LabeledControls=C.LabeledControls;var N=n(29319);r.LabeledList=N.LabeledList;var x=n(36077);r.Modal=x.Modal;var B=n(73280);r.NanoMap=B.NanoMap;var L=n(74733);r.NoticeBox=L.NoticeBox;var w=n(59263);r.NumberInput=w.NumberInput;var A=n(50186);r.Popper=A.Popper;var T=n(92704);r.ProgressBar=T.ProgressBar;var E=n(9075);r.RestrictedInput=E.RestrictedInput;var O=n(11441);r.RoundGauge=O.RoundGauge;var P=n(97079);r.Section=P.Section;var R=n(79911);r.Slider=R.Slider;var F=n(96690);r.Stack=F.Stack;var j=n(36352);r.Table=j.Table;var W=n(85138);r.Tabs=W.Tabs;var H=n(44868);r.TextArea=H.TextArea;var z=n(5169);r.TimeDisplay=z.TimeDisplay;var $=n(62147);r.Tooltip=$.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"}},d=r.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],y=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"}],V=[{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(l,f){var u=String(l).toLowerCase(),s=V.find(function(m){return m.id===u||m.name.toLowerCase()===u});return s&&s.label||f||l}return i}(),S=r.getGasColor=function(){function i(l){var f=String(l).toLowerCase(),u=V.find(function(s){return s.id===f||s.name.toLowerCase()===f});return u&&u.color}return i}(),p=r.timeAgo=function(){function i(l,f){if(l>f)return"in the future";l=l/10,f=f/10;var u=f-l;if(u>3600){var s=Math.round(u/3600);return s+" hour"+(s===1?"":"s")+" ago"}else if(u>60){var m=Math.round(u/60);return m+" minute"+(m===1?"":"s")+" ago"}else{var c=Math.round(u);return c+" second"+(c===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 s=n(4085),y=function(){return s.keys().map(function(S){return s(S)})},V=r.KitchenSink=function(){function k(S,p){var i=S.panel,c=(0,a.useLocalState)(p,"kitchenSinkTheme"),f=c[0],u=(0,a.useLocalState)(p,"pageIndex",0),d=u[0],m=u[1],l=y(),v=l[d],b=i?o.Pane:o.Window;return(0,e.createComponentVNode)(2,b,{title:"Kitchen Sink",width:600,height:500,theme:f,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(N,h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:h===d,onClick:function(){function C(){return m(h)}return C}(),children:N.meta.title},h)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,b.Content,{scrollable:!0,children:v.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 d=n(4085),y=function(){return d.keys().map(function(S){return d(S)})},V=r.KitchenSink=function(){function k(S,p){var i=S.panel,l=(0,a.useLocalState)(p,"kitchenSinkTheme"),f=l[0],u=(0,a.useLocalState)(p,"pageIndex",0),s=u[0],m=u[1],c=y(),v=c[s],b=i?o.Pane:o.Window;return(0,e.createComponentVNode)(2,b,{title:"Kitchen Sink",width:600,height:500,theme:f,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:c.map(function(g,h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:h===s,onClick:function(){function C(){return m(h)}return C}(),children:g.meta.title},h)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,b.Content,{scrollable:!0,children:v.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 @@ -202,29 +202,29 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.useDebug=function(){function o(s){return(0,e.useSelector)(s,a.selectDebug)}return o}()},99851:function(I,r,n){"use strict";r.__esModule=!0,r.useDebug=r.relayMiddleware=r.debugReducer=r.debugMiddleware=r.KitchenSink=void 0;var e=n(92731);r.useDebug=e.useDebug;var a=n(40944);r.KitchenSink=a.KitchenSink;var t=n(3583);r.debugMiddleware=t.debugMiddleware,r.relayMiddleware=t.relayMiddleware;var o=n(19147);r.debugReducer=o.debugReducer},3583:function(I,r,n){"use strict";r.__esModule=!0,r.relayMiddleware=r.debugMiddleware=void 0;var e=n(92986),a=n(24826),t=n(56518),o=n(77384);/** + */var t=r.useDebug=function(){function o(d){return(0,e.useSelector)(d,a.selectDebug)}return o}()},99851:function(I,r,n){"use strict";r.__esModule=!0,r.useDebug=r.relayMiddleware=r.debugReducer=r.debugMiddleware=r.KitchenSink=void 0;var e=n(92731);r.useDebug=e.useDebug;var a=n(40944);r.KitchenSink=a.KitchenSink;var t=n(3583);r.debugMiddleware=t.debugMiddleware,r.relayMiddleware=t.relayMiddleware;var o=n(19147);r.debugReducer=o.debugReducer},3583:function(I,r,n){"use strict";r.__esModule=!0,r.relayMiddleware=r.debugMiddleware=void 0;var e=n(92986),a=n(24826),t=n(56518),o=n(77384);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var s=["backend/update","chat/message"],y=r.debugMiddleware=function(){function k(S){return(0,t.acquireHotKey)(e.KEY_F11),(0,t.acquireHotKey)(e.KEY_F12),a.globalEvents.on("keydown",function(p){p.code===e.KEY_F11&&S.dispatch((0,o.toggleDebugLayout)()),p.code===e.KEY_F12&&S.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}(),V=r.relayMiddleware=function(){function k(S){var p=n(7435),i=location.search==="?external";return i?p.subscribe(function(c){var f=c.type,u=c.payload;f==="relay"&&u.windowId===Byond.windowId&&S.dispatch(Object.assign({},u.action,{relayed:!0}))}):((0,t.acquireHotKey)(e.KEY_F10),a.globalEvents.on("keydown",function(c){c===e.KEY_F10&&S.dispatch((0,o.openExternalBrowser)())})),function(c){return function(f){var u=f.type,d=f.payload,m=f.relayed;if(u===o.openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return s.includes(u)&&!m&&!i&&p.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:f}}),c(f)}}}return k}()},19147:function(I,r){"use strict";r.__esModule=!0,r.debugReducer=void 0;/** + */var d=["backend/update","chat/message"],y=r.debugMiddleware=function(){function k(S){return(0,t.acquireHotKey)(e.KEY_F11),(0,t.acquireHotKey)(e.KEY_F12),a.globalEvents.on("keydown",function(p){p.code===e.KEY_F11&&S.dispatch((0,o.toggleDebugLayout)()),p.code===e.KEY_F12&&S.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}(),V=r.relayMiddleware=function(){function k(S){var p=n(7435),i=location.search==="?external";return i?p.subscribe(function(l){var f=l.type,u=l.payload;f==="relay"&&u.windowId===Byond.windowId&&S.dispatch(Object.assign({},u.action,{relayed:!0}))}):((0,t.acquireHotKey)(e.KEY_F10),a.globalEvents.on("keydown",function(l){l===e.KEY_F10&&S.dispatch((0,o.openExternalBrowser)())})),function(l){return function(f){var u=f.type,s=f.payload,m=f.relayed;if(u===o.openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return d.includes(u)&&!m&&!i&&p.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:f}}),l(f)}}}return k}()},19147:function(I,r){"use strict";r.__esModule=!0,r.debugReducer=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.debugReducer=function(){function e(a,t){a===void 0&&(a={});var o=t.type,s=t.payload;return o==="debug/toggleKitchenSink"?Object.assign({},a,{kitchenSink:!a.kitchenSink}):o==="debug/toggleDebugLayout"?Object.assign({},a,{debugLayout:!a.debugLayout}):a}return e}()},27709:function(I,r){"use strict";r.__esModule=!0,r.selectDebug=void 0;/** + */var n=r.debugReducer=function(){function e(a,t){a===void 0&&(a={});var o=t.type,d=t.payload;return o==="debug/toggleKitchenSink"?Object.assign({},a,{kitchenSink:!a.kitchenSink}):o==="debug/toggleDebugLayout"?Object.assign({},a,{debugLayout:!a.debugLayout}):a}return e}()},27709:function(I,r){"use strict";r.__esModule=!0,r.selectDebug=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.selectDebug=function(){function e(a){return a.debug}return e}()},35421:function(I,r,n){"use strict";r.__esModule=!0,r.storeWindowGeometry=r.setupDrag=r.setWindowSize=r.setWindowPosition=r.setWindowKey=r.resizeStartHandler=r.recallWindowGeometry=r.getWindowSize=r.getWindowPosition=r.getScreenSize=r.getScreenPosition=r.dragStartHandler=void 0;var e=n(27108),a=n(97450),t=n(9394);function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){return W};var j,W={},H=Object.prototype,z=H.hasOwnProperty,$=Object.defineProperty||function(ke,pe,se){ke[pe]=se.value},G=typeof Symbol=="function"?Symbol:{},ne=G.iterator||"@@iterator",Q=G.asyncIterator||"@@asyncIterator",he=G.toStringTag||"@@toStringTag";function Ve(ke,pe,se){return Object.defineProperty(ke,pe,{value:se,enumerable:!0,configurable:!0,writable:!0}),ke[pe]}try{Ve({},"")}catch(ke){Ve=function(se,xe,_){return se[xe]=_}}function Ne(ke,pe,se,xe){var _=pe&&pe.prototype instanceof te?pe:te,oe=Object.create(_.prototype),ve=new Me(xe||[]);return $(oe,"_invoke",{value:ue(ke,se,ve)}),oe}function Be(ke,pe,se){try{return{type:"normal",arg:ke.call(pe,se)}}catch(xe){return{type:"throw",arg:xe}}}W.wrap=Ne;var Le="suspendedStart",Ae="suspendedYield",fe="executing",Z="completed",J={};function te(){}function ee(){}function le(){}var ye={};Ve(ye,ne,function(){return this});var me=Object.getPrototypeOf,Te=me&&me(me(De([])));Te&&Te!==H&&z.call(Te,ne)&&(ye=Te);var M=le.prototype=te.prototype=Object.create(ye);function X(ke){["next","throw","return"].forEach(function(pe){Ve(ke,pe,function(se){return this._invoke(pe,se)})})}function ae(ke,pe){function se(_,oe,ve,Se){var Ie=Be(ke[_],ke,oe);if(Ie.type!=="throw"){var Ee=Ie.arg,Pe=Ee.value;return Pe&&typeof Pe=="object"&&z.call(Pe,"__await")?pe.resolve(Pe.__await).then(function(Oe){se("next",Oe,ve,Se)},function(Oe){se("throw",Oe,ve,Se)}):pe.resolve(Pe).then(function(Oe){Ee.value=Oe,ve(Ee)},function(Oe){return se("throw",Oe,ve,Se)})}Se(Ie.arg)}var xe;$(this,"_invoke",{value:function(){function _(oe,ve){function Se(){return new pe(function(Ie,Ee){se(oe,ve,Ie,Ee)})}return xe=xe?xe.then(Se,Se):Se()}return _}()})}function ue(ke,pe,se){var xe=Le;return function(_,oe){if(xe===fe)throw Error("Generator is already running");if(xe===Z){if(_==="throw")throw oe;return{value:j,done:!0}}for(se.method=_,se.arg=oe;;){var ve=se.delegate;if(ve){var Se=ie(ve,se);if(Se){if(Se===J)continue;return Se}}if(se.method==="next")se.sent=se._sent=se.arg;else if(se.method==="throw"){if(xe===Le)throw xe=Z,se.arg;se.dispatchException(se.arg)}else se.method==="return"&&se.abrupt("return",se.arg);xe=fe;var Ie=Be(ke,pe,se);if(Ie.type==="normal"){if(xe=se.done?Z:Ae,Ie.arg===J)continue;return{value:Ie.arg,done:se.done}}Ie.type==="throw"&&(xe=Z,se.method="throw",se.arg=Ie.arg)}}}function ie(ke,pe){var se=pe.method,xe=ke.iterator[se];if(xe===j)return pe.delegate=null,se==="throw"&&ke.iterator.return&&(pe.method="return",pe.arg=j,ie(ke,pe),pe.method==="throw")||se!=="return"&&(pe.method="throw",pe.arg=new TypeError("The iterator does not provide a '"+se+"' method")),J;var _=Be(xe,ke.iterator,pe.arg);if(_.type==="throw")return pe.method="throw",pe.arg=_.arg,pe.delegate=null,J;var oe=_.arg;return oe?oe.done?(pe[ke.resultName]=oe.value,pe.next=ke.nextLoc,pe.method!=="return"&&(pe.method="next",pe.arg=j),pe.delegate=null,J):oe:(pe.method="throw",pe.arg=new TypeError("iterator result is not an object"),pe.delegate=null,J)}function ge(ke){var pe={tryLoc:ke[0]};1 in ke&&(pe.catchLoc=ke[1]),2 in ke&&(pe.finallyLoc=ke[2],pe.afterLoc=ke[3]),this.tryEntries.push(pe)}function Ce(ke){var pe=ke.completion||{};pe.type="normal",delete pe.arg,ke.completion=pe}function Me(ke){this.tryEntries=[{tryLoc:"root"}],ke.forEach(ge,this),this.reset(!0)}function De(ke){if(ke||ke===""){var pe=ke[ne];if(pe)return pe.call(ke);if(typeof ke.next=="function")return ke;if(!isNaN(ke.length)){var se=-1,xe=function(){function _(){for(;++se=0;--_){var oe=this.tryEntries[_],ve=oe.completion;if(oe.tryLoc==="root")return xe("end");if(oe.tryLoc<=this.prev){var Se=z.call(oe,"catchLoc"),Ie=z.call(oe,"finallyLoc");if(Se&&Ie){if(this.prev=0;--xe){var _=this.tryEntries[xe];if(_.tryLoc<=this.prev&&z.call(_,"finallyLoc")&&this.prev<_.finallyLoc){var oe=_;break}}oe&&(pe==="break"||pe==="continue")&&oe.tryLoc<=se&&se<=oe.finallyLoc&&(oe=null);var ve=oe?oe.completion:{};return ve.type=pe,ve.arg=se,oe?(this.method="next",this.next=oe.finallyLoc,J):this.complete(ve)}return ke}(),complete:function(){function ke(pe,se){if(pe.type==="throw")throw pe.arg;return pe.type==="break"||pe.type==="continue"?this.next=pe.arg:pe.type==="return"?(this.rval=this.arg=pe.arg,this.method="return",this.next="end"):pe.type==="normal"&&se&&(this.next=se),J}return ke}(),finish:function(){function ke(pe){for(var se=this.tryEntries.length-1;se>=0;--se){var xe=this.tryEntries[se];if(xe.finallyLoc===pe)return this.complete(xe.completion,xe.afterLoc),Ce(xe),J}}return ke}(),catch:function(){function ke(pe){for(var se=this.tryEntries.length-1;se>=0;--se){var xe=this.tryEntries[se];if(xe.tryLoc===pe){var _=xe.completion;if(_.type==="throw"){var oe=_.arg;Ce(xe)}return oe}}throw Error("illegal catch attempt")}return ke}(),delegateYield:function(){function ke(pe,se,xe){return this.delegate={iterator:De(pe),resultName:se,nextLoc:xe},this.method==="next"&&(this.arg=j),J}return ke}()},W}function s(j,W,H,z,$,G,ne){try{var Q=j[G](ne),he=Q.value}catch(Ve){return void H(Ve)}Q.done?W(he):Promise.resolve(he).then(z,$)}function y(j){return function(){var W=this,H=arguments;return new Promise(function(z,$){var G=j.apply(W,H);function ne(he){s(G,z,$,ne,Q,"next",he)}function Q(he){s(G,z,$,ne,Q,"throw",he)}ne(void 0)})}}/** + */var n=r.selectDebug=function(){function e(a){return a.debug}return e}()},35421:function(I,r,n){"use strict";r.__esModule=!0,r.storeWindowGeometry=r.setupDrag=r.setWindowSize=r.setWindowPosition=r.setWindowKey=r.resizeStartHandler=r.recallWindowGeometry=r.getWindowSize=r.getWindowPosition=r.getScreenSize=r.getScreenPosition=r.dragStartHandler=void 0;var e=n(27108),a=n(97450),t=n(9394);function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){return W};var j,W={},H=Object.prototype,z=H.hasOwnProperty,$=Object.defineProperty||function(ke,pe,se){ke[pe]=se.value},G=typeof Symbol=="function"?Symbol:{},ne=G.iterator||"@@iterator",Q=G.asyncIterator||"@@asyncIterator",he=G.toStringTag||"@@toStringTag";function Ve(ke,pe,se){return Object.defineProperty(ke,pe,{value:se,enumerable:!0,configurable:!0,writable:!0}),ke[pe]}try{Ve({},"")}catch(ke){Ve=function(se,xe,_){return se[xe]=_}}function Ne(ke,pe,se,xe){var _=pe&&pe.prototype instanceof te?pe:te,oe=Object.create(_.prototype),ve=new Me(xe||[]);return $(oe,"_invoke",{value:ue(ke,se,ve)}),oe}function Be(ke,pe,se){try{return{type:"normal",arg:ke.call(pe,se)}}catch(xe){return{type:"throw",arg:xe}}}W.wrap=Ne;var Le="suspendedStart",Ae="suspendedYield",fe="executing",Z="completed",J={};function te(){}function ee(){}function le(){}var ye={};Ve(ye,ne,function(){return this});var me=Object.getPrototypeOf,Te=me&&me(me(De([])));Te&&Te!==H&&z.call(Te,ne)&&(ye=Te);var M=le.prototype=te.prototype=Object.create(ye);function X(ke){["next","throw","return"].forEach(function(pe){Ve(ke,pe,function(se){return this._invoke(pe,se)})})}function ae(ke,pe){function se(_,oe,ve,Se){var Ie=Be(ke[_],ke,oe);if(Ie.type!=="throw"){var Ee=Ie.arg,Pe=Ee.value;return Pe&&typeof Pe=="object"&&z.call(Pe,"__await")?pe.resolve(Pe.__await).then(function(Oe){se("next",Oe,ve,Se)},function(Oe){se("throw",Oe,ve,Se)}):pe.resolve(Pe).then(function(Oe){Ee.value=Oe,ve(Ee)},function(Oe){return se("throw",Oe,ve,Se)})}Se(Ie.arg)}var xe;$(this,"_invoke",{value:function(){function _(oe,ve){function Se(){return new pe(function(Ie,Ee){se(oe,ve,Ie,Ee)})}return xe=xe?xe.then(Se,Se):Se()}return _}()})}function ue(ke,pe,se){var xe=Le;return function(_,oe){if(xe===fe)throw Error("Generator is already running");if(xe===Z){if(_==="throw")throw oe;return{value:j,done:!0}}for(se.method=_,se.arg=oe;;){var ve=se.delegate;if(ve){var Se=ie(ve,se);if(Se){if(Se===J)continue;return Se}}if(se.method==="next")se.sent=se._sent=se.arg;else if(se.method==="throw"){if(xe===Le)throw xe=Z,se.arg;se.dispatchException(se.arg)}else se.method==="return"&&se.abrupt("return",se.arg);xe=fe;var Ie=Be(ke,pe,se);if(Ie.type==="normal"){if(xe=se.done?Z:Ae,Ie.arg===J)continue;return{value:Ie.arg,done:se.done}}Ie.type==="throw"&&(xe=Z,se.method="throw",se.arg=Ie.arg)}}}function ie(ke,pe){var se=pe.method,xe=ke.iterator[se];if(xe===j)return pe.delegate=null,se==="throw"&&ke.iterator.return&&(pe.method="return",pe.arg=j,ie(ke,pe),pe.method==="throw")||se!=="return"&&(pe.method="throw",pe.arg=new TypeError("The iterator does not provide a '"+se+"' method")),J;var _=Be(xe,ke.iterator,pe.arg);if(_.type==="throw")return pe.method="throw",pe.arg=_.arg,pe.delegate=null,J;var oe=_.arg;return oe?oe.done?(pe[ke.resultName]=oe.value,pe.next=ke.nextLoc,pe.method!=="return"&&(pe.method="next",pe.arg=j),pe.delegate=null,J):oe:(pe.method="throw",pe.arg=new TypeError("iterator result is not an object"),pe.delegate=null,J)}function ge(ke){var pe={tryLoc:ke[0]};1 in ke&&(pe.catchLoc=ke[1]),2 in ke&&(pe.finallyLoc=ke[2],pe.afterLoc=ke[3]),this.tryEntries.push(pe)}function Ce(ke){var pe=ke.completion||{};pe.type="normal",delete pe.arg,ke.completion=pe}function Me(ke){this.tryEntries=[{tryLoc:"root"}],ke.forEach(ge,this),this.reset(!0)}function De(ke){if(ke||ke===""){var pe=ke[ne];if(pe)return pe.call(ke);if(typeof ke.next=="function")return ke;if(!isNaN(ke.length)){var se=-1,xe=function(){function _(){for(;++se=0;--_){var oe=this.tryEntries[_],ve=oe.completion;if(oe.tryLoc==="root")return xe("end");if(oe.tryLoc<=this.prev){var Se=z.call(oe,"catchLoc"),Ie=z.call(oe,"finallyLoc");if(Se&&Ie){if(this.prev=0;--xe){var _=this.tryEntries[xe];if(_.tryLoc<=this.prev&&z.call(_,"finallyLoc")&&this.prev<_.finallyLoc){var oe=_;break}}oe&&(pe==="break"||pe==="continue")&&oe.tryLoc<=se&&se<=oe.finallyLoc&&(oe=null);var ve=oe?oe.completion:{};return ve.type=pe,ve.arg=se,oe?(this.method="next",this.next=oe.finallyLoc,J):this.complete(ve)}return ke}(),complete:function(){function ke(pe,se){if(pe.type==="throw")throw pe.arg;return pe.type==="break"||pe.type==="continue"?this.next=pe.arg:pe.type==="return"?(this.rval=this.arg=pe.arg,this.method="return",this.next="end"):pe.type==="normal"&&se&&(this.next=se),J}return ke}(),finish:function(){function ke(pe){for(var se=this.tryEntries.length-1;se>=0;--se){var xe=this.tryEntries[se];if(xe.finallyLoc===pe)return this.complete(xe.completion,xe.afterLoc),Ce(xe),J}}return ke}(),catch:function(){function ke(pe){for(var se=this.tryEntries.length-1;se>=0;--se){var xe=this.tryEntries[se];if(xe.tryLoc===pe){var _=xe.completion;if(_.type==="throw"){var oe=_.arg;Ce(xe)}return oe}}throw Error("illegal catch attempt")}return ke}(),delegateYield:function(){function ke(pe,se,xe){return this.delegate={iterator:De(pe),resultName:se,nextLoc:xe},this.method==="next"&&(this.arg=j),J}return ke}()},W}function d(j,W,H,z,$,G,ne){try{var Q=j[G](ne),he=Q.value}catch(Ve){return void H(Ve)}Q.done?W(he):Promise.resolve(he).then(z,$)}function y(j){return function(){var W=this,H=arguments;return new Promise(function(z,$){var G=j.apply(W,H);function ne(he){d(G,z,$,ne,Q,"next",he)}function Q(he){d(G,z,$,ne,Q,"throw",he)}ne(void 0)})}}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var V=(0,t.createLogger)("drag"),k=Byond.windowId,S=!1,p=!1,i=[0,0],c,f,u,d,m,l=r.setWindowKey=function(){function j(W){k=W}return j}(),v=r.getWindowPosition=function(){function j(){return[window.screenLeft,window.screenTop]}return j}(),b=r.getWindowSize=function(){function j(){return[window.innerWidth,window.innerHeight]}return j}(),N=r.setWindowPosition=function(){function j(W){var H=(0,a.vecAdd)(W,i);return Byond.winset(Byond.windowId,{pos:H[0]+","+H[1]})}return j}(),h=r.setWindowSize=function(){function j(W){return Byond.winset(Byond.windowId,{size:W[0]+"x"+W[1]})}return j}(),C=r.getScreenPosition=function(){function j(){return[0-i[0],0-i[1]]}return j}(),g=r.getScreenSize=function(){function j(){return[window.screen.availWidth,window.screen.availHeight]}return j}(),x=function(W,H,z){z===void 0&&(z=50);for(var $=[H],G,ne=0;neVe&&(G[Q]=Ve-H[Q],ne=!0)}return[ne,G]},T=r.dragStartHandler=function(){function j(W){V.log("drag start"),S=!0,f=[window.screenLeft-W.screenX,window.screenTop-W.screenY],document.addEventListener("mousemove",O),document.addEventListener("mouseup",E),O(W)}return j}(),E=function(W){V.log("drag end"),O(W),document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",E),S=!1,B()},O=function(W){S&&(W.preventDefault(),N((0,a.vecAdd)([W.screenX,W.screenY],f)))},P=r.resizeStartHandler=function(){function j(W,H){return function(z){u=[W,H],V.log("resize start",u),p=!0,f=[window.screenLeft-z.screenX,window.screenTop-z.screenY],d=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",F),document.addEventListener("mouseup",R),F(z)}}return j}(),R=function(W){V.log("resize end",m),F(W),document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",R),p=!1,B()},F=function(W){p&&(W.preventDefault(),m=(0,a.vecAdd)(d,(0,a.vecMultiply)(u,(0,a.vecAdd)([W.screenX,W.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),f,[1,1]))),m[0]=Math.max(m[0],150),m[1]=Math.max(m[1],50),h(m))}},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);/** +*/var V=(0,t.createLogger)("drag"),k=Byond.windowId,S=!1,p=!1,i=[0,0],l,f,u,s,m,c=r.setWindowKey=function(){function j(W){k=W}return j}(),v=r.getWindowPosition=function(){function j(){return[window.screenLeft,window.screenTop]}return j}(),b=r.getWindowSize=function(){function j(){return[window.innerWidth,window.innerHeight]}return j}(),g=r.setWindowPosition=function(){function j(W){var H=(0,a.vecAdd)(W,i);return Byond.winset(Byond.windowId,{pos:H[0]+","+H[1]})}return j}(),h=r.setWindowSize=function(){function j(W){return Byond.winset(Byond.windowId,{size:W[0]+"x"+W[1]})}return j}(),C=r.getScreenPosition=function(){function j(){return[0-i[0],0-i[1]]}return j}(),N=r.getScreenSize=function(){function j(){return[window.screen.availWidth,window.screen.availHeight]}return j}(),x=function(W,H,z){z===void 0&&(z=50);for(var $=[H],G,ne=0;neVe&&(G[Q]=Ve-H[Q],ne=!0)}return[ne,G]},T=r.dragStartHandler=function(){function j(W){V.log("drag start"),S=!0,f=[window.screenLeft-W.screenX,window.screenTop-W.screenY],document.addEventListener("mousemove",O),document.addEventListener("mouseup",E),O(W)}return j}(),E=function(W){V.log("drag end"),O(W),document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",E),S=!1,B()},O=function(W){S&&(W.preventDefault(),g((0,a.vecAdd)([W.screenX,W.screenY],f)))},P=r.resizeStartHandler=function(){function j(W,H){return function(z){u=[W,H],V.log("resize start",u),p=!0,f=[window.screenLeft-z.screenX,window.screenTop-z.screenY],s=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",F),document.addEventListener("mouseup",R),F(z)}}return j}(),R=function(W){V.log("resize end",m),F(W),document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",R),p=!1,B()},F=function(W){p&&(W.preventDefault(),m=(0,a.vecAdd)(s,(0,a.vecMultiply)(u,(0,a.vecAdd)([W.screenX,W.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),f,[1,1]))),m[0]=Math.max(m[0],150),m[1]=Math.max(m[1],50),h(m))}},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,s=r.setupGlobalEvents=function(){function h(C){C===void 0&&(C={}),o=!!C.ignoreWindowFocus}return h}(),y,V=!0,k=function(C,g){if(o){V=!0;return}if(y&&(clearTimeout(y),y=null),g){y=setTimeout(function(){return k(C)});return}V!==C&&(V=C,t.emit(C?"window-focus":"window-blur"),t.emit("window-focus-change",C))},S=null,p=r.canStealFocus=function(){function h(C){var g=String(C.tagName).toLowerCase();return g==="input"||g==="textarea"}return h}(),i=function(C){c(),S=C,S.addEventListener("blur",c)},c=function(){S&&(S.removeEventListener("blur",c),S=null)},f=null,u=null,d=[],m=r.addScrollableNode=function(){function h(C){d.push(C)}return h}(),l=r.removeScrollableNode=function(){function h(C){var g=d.indexOf(C);g>=0&&d.splice(g,1)}return h}(),v=function(C){if(!(S||!V))for(var g=document.body;C&&C!==g;){if(d.includes(C)){if(C.contains(f))return;f=C,C.focus();return}C=C.parentNode}};window.addEventListener("mousemove",function(h){var C=h.target;C!==u&&(u=C,v(C))}),window.addEventListener("focusin",function(h){if(u=null,f=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={},N=r.KeyEvent=function(){function h(g,x,B){this.event=g,this.type=x,this.code=window.event?g.which:g.keyCode,this.ctrl=g.ctrlKey,this.shift=g.shiftKey,this.alt=g.altKey,this.repeat=!!B}var C=h.prototype;return C.hasModifierKeys=function(){function g(){return this.ctrl||this.alt||this.shift}return g}(),C.isModifierKey=function(){function g(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return g}(),C.isDown=function(){function g(){return this.type==="keydown"}return g}(),C.isUp=function(){function g(){return this.type==="keyup"}return g}(),C.toString=function(){function g(){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 g}(),h}();document.addEventListener("keydown",function(h){if(!p(h.target)){var C=h.keyCode,g=new N(h,"keydown",b[C]);t.emit("keydown",g),t.emit("key",g),b[C]=!0}}),document.addEventListener("keyup",function(h){if(!p(h.target)){var C=h.keyCode,g=new N(h,"keyup");t.emit("keyup",g),t.emit("key",g),b[C]=!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,d=r.setupGlobalEvents=function(){function h(C){C===void 0&&(C={}),o=!!C.ignoreWindowFocus}return h}(),y,V=!0,k=function(C,N){if(o){V=!0;return}if(y&&(clearTimeout(y),y=null),N){y=setTimeout(function(){return k(C)});return}V!==C&&(V=C,t.emit(C?"window-focus":"window-blur"),t.emit("window-focus-change",C))},S=null,p=r.canStealFocus=function(){function h(C){var N=String(C.tagName).toLowerCase();return N==="input"||N==="textarea"}return h}(),i=function(C){l(),S=C,S.addEventListener("blur",l)},l=function(){S&&(S.removeEventListener("blur",l),S=null)},f=null,u=null,s=[],m=r.addScrollableNode=function(){function h(C){s.push(C)}return h}(),c=r.removeScrollableNode=function(){function h(C){var N=s.indexOf(C);N>=0&&s.splice(N,1)}return h}(),v=function(C){if(!(S||!V))for(var N=document.body;C&&C!==N;){if(s.includes(C)){if(C.contains(f))return;f=C,C.focus();return}C=C.parentNode}};window.addEventListener("mousemove",function(h){var C=h.target;C!==u&&(u=C,v(C))}),window.addEventListener("focusin",function(h){if(u=null,f=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={},g=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 C=h.prototype;return C.hasModifierKeys=function(){function N(){return this.ctrl||this.alt||this.shift}return N}(),C.isModifierKey=function(){function N(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return N}(),C.isDown=function(){function N(){return this.type==="keydown"}return N}(),C.isUp=function(){function N(){return this.type==="keyup"}return N}(),C.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 C=h.keyCode,N=new g(h,"keydown",b[C]);t.emit("keydown",N),t.emit("key",N),b[C]=!0}}),document.addEventListener("keyup",function(h){if(!p(h.target)){var C=h.keyCode,N=new g(h,"keyup");t.emit("keyup",N),t.emit("key",N),b[C]=!1}})},87695:function(I,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** * Various focus helpers. * * @file @@ -234,113 +234,113 @@ * @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(S,p,i){if(p===void 0&&(p=-t),i===void 0&&(i=""),typeof S!="number"||!Number.isFinite(S))return S;var c=Math.floor(Math.log10(S)),f=Math.floor(Math.max(p*3,c)),u=Math.floor(c/3),d=Math.floor(f/3),m=(0,e.clamp)(t+d,0,a.length),l=a[m],v=S/Math.pow(1e3,d),b=u>p?2+d*3-f:0,N=(0,e.toFixed)(v,b)+" "+l+i;return N.trim()}return k}(),s=r.formatPower=function(){function k(S,p){return p===void 0&&(p=0),o(S,p,"W")}return k}(),y=r.formatMoney=function(){function k(S,p){if(p===void 0&&(p=0),!Number.isFinite(S))return S;var i=(0,e.round)(S,p);p>0&&(i=(0,e.toFixed)(S,p)),i=String(i);var c=i.length,f=i.indexOf(".");f===-1&&(f=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=s(n(92986)),a=n(24826),t=n(9394);function o(m){if(typeof WeakMap!="function")return null;var l=new WeakMap,v=new WeakMap;return(o=function(N){return N?v:l})(m)}function s(m,l){if(!l&&m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var v=o(l);if(v&&v.has(m))return v.get(m);var b={__proto__:null},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in m)if(h!=="default"&&{}.hasOwnProperty.call(m,h)){var C=N?Object.getOwnPropertyDescriptor(m,h):null;C&&(C.get||C.set)?Object.defineProperty(b,h,C):b[h]=m[h]}return b.default=m,v&&v.set(m,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(S,p,i){if(p===void 0&&(p=-t),i===void 0&&(i=""),typeof S!="number"||!Number.isFinite(S))return S;var l=Math.floor(Math.log10(S)),f=Math.floor(Math.max(p*3,l)),u=Math.floor(l/3),s=Math.floor(f/3),m=(0,e.clamp)(t+s,0,a.length),c=a[m],v=S/Math.pow(1e3,s),b=u>p?2+s*3-f:0,g=(0,e.toFixed)(v,b)+" "+c+i;return g.trim()}return k}(),d=r.formatPower=function(){function k(S,p){return p===void 0&&(p=0),o(S,p,"W")}return k}(),y=r.formatMoney=function(){function k(S,p){if(p===void 0&&(p=0),!Number.isFinite(S))return S;var i=(0,e.round)(S,p);p>0&&(i=(0,e.toFixed)(S,p)),i=String(i);var l=i.length,f=i.indexOf(".");f===-1&&(f=l);for(var u="",s=0;s0&&s=0?"+":p<0?"\u2013":"",l=Math.abs(p);return l===1/0?l="Inf":l=(0,e.toFixed)(l,2),i+l+" 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=d(n(92986)),a=n(24826),t=n(9394);function o(m){if(typeof WeakMap!="function")return null;var c=new WeakMap,v=new WeakMap;return(o=function(g){return g?v:c})(m)}function d(m,c){if(!c&&m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var v=o(c);if(v&&v.has(m))return v.get(m);var b={__proto__:null},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in m)if(h!=="default"&&{}.hasOwnProperty.call(m,h)){var C=g?Object.getOwnPropertyDescriptor(m,h):null;C&&(C.get||C.set)?Object.defineProperty(b,h,C):b[h]=m[h]}return b.default=m,v&&v.set(m,b),b}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var y=(0,t.createLogger)("hotkeys"),V={},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],S={},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 v=String(l);if(v==="Ctrl+F5"||v==="Ctrl+R"){location.reload();return}if(v!=="Ctrl+F"&&!(l.event.defaultPrevented||l.isModifierKey()||k.includes(l.code))){v==="F5"&&(l.event.preventDefault(),l.event.returnValue=!1);var b=p(l.code);if(b){var N=V[b];if(N)return y.debug("macro",N),Byond.command(N);if(l.isDown()&&!S[b]){S[b]=!0;var h='KeyDown "'+b+'"';return y.debug(h),Byond.command(h)}if(l.isUp()&&S[b]){S[b]=!1;var C='KeyUp "'+b+'"';return y.debug(C),Byond.command(C)}}}},c=r.acquireHotKey=function(){function m(l){k.push(l)}return m}(),f=r.releaseHotKey=function(){function m(l){var v=k.indexOf(l);v>=0&&k.splice(v,1)}return m}(),u=r.releaseHeldKeys=function(){function m(){for(var l=0,v=Object.keys(S);l=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(f,u){return(0,e.createComponentVNode)(2,t.Box,{children:f},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 f(){return p("wireless")}return f}()})}),(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 f(){return p("radio")}return f}()})}),(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 f(){return p("wipe")}return f}()})})]})})})]})})})}return y}()},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),s=r.AIFixer=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.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 f=null;i.integrity>=75?f="green":i.integrity>=25?f="yellow":f="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:f,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,m){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d},m)})})||(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 y}()},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),s=n(195),y=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,S)})})}return p}(),V={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"}},S=function(i,c){var f=(0,a.useBackend)(c),u=f.act,d=f.data,m=d.locked&&!d.siliconUser,l=d.normallyLocked,v=V[d.externalPower]||V[0],b=V[d.chargingStatus]||V[0],N=d.powerChannels||[],h=k[d.malfStatus]||k[0],C=d.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,s.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:v.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!m,color:d.isOperating?"":"bad",disabled:m,onClick:function(){function g(){return u("breaker")}return g}()}),children:["[ ",v.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:C})}),(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:m,onClick:function(){function g(){return u("charge")}return g}()}),children:["[ ",b.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[N.map(function(g){var x=g.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:g.status>=2?"good":"bad",children:g.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!m&&(g.status===1||g.status===3),disabled:m,onClick:function(){function B(){return u("channel",x.auto)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!m&&g.status===2,disabled:m,onClick:function(){function B(){return u("channel",x.on)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!m&&g.status===0,disabled:m,onClick:function(){function B(){return u("channel",x.off)}return B}()})],4),children:[g.powerLoad," W"]},g.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 g(){return u(h.action)}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function g(){return u("overload")}return g}()})],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:m,onClick:function(){function g(){return u("cover")}return g}()})}),(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 g(){return u("toggle_nightshift")}return g}()})}),(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:m,onClick:function(){function g(){return u("emergency_lighting")}return g}()})})]})})],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),s=r.ATM=function(){function f(u,d){var m=(0,a.useBackend)(d),l=m.act,v=m.data,b=v.view_screen,N=v.authenticated_account,h=v.ticks_left_locked_down,C=v.linked_db,g;if(h>0)g=(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(!C)g=(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(N)switch(b){case 1:g=(0,e.createComponentVNode)(2,V);break;case 2:g=(0,e.createComponentVNode)(2,k);break;case 3:g=(0,e.createComponentVNode)(2,i);break;default:g=(0,e.createComponentVNode)(2,S)}else g=(0,e.createComponentVNode)(2,p);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,y),(0,e.createComponentVNode)(2,t.Section,{children:g})]})})}return f}(),y=function(u,d){var m=(0,a.useBackend)(d),l=m.act,v=m.data,b=v.machine_id,N=v.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:N,icon:"eject",onClick:function(){function h(){return l("insert_card")}return h}()})})})]})},V=function(u,d){var m=(0,a.useBackend)(d),l=m.act,v=m.data,b=v.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:b===0,onClick:function(){function N(){return l("change_security_level",{new_security_level:0})}return N}()})}),(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:b===1,onClick:function(){function N(){return l("change_security_level",{new_security_level:1})}return N}()})}),(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:b===2,onClick:function(){function N(){return l("change_security_level",{new_security_level:2})}return N}()})}),(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,c)]})},k=function(u,d){var m=(0,a.useBackend)(d),l=m.act,v=m.data,b=(0,a.useLocalState)(d,"targetAccNumber",0),N=b[0],h=b[1],C=(0,a.useLocalState)(d,"fundsAmount",0),g=C[0],x=C[1],B=(0,a.useLocalState)(d,"purpose",0),L=B[0],w=B[1],A=v.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:["$",A]}),(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 T(E,O){return h(O)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function T(E,O){return x(O)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function T(E,O){return w(O)}return T}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function T(){return l("transfer",{target_acc_number:N,funds_amount:g,purpose:L})}return T}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},S=function(u,d){var m=(0,a.useBackend)(d),l=m.act,v=m.data,b=(0,a.useLocalState)(d,"fundsAmount",0),N=b[0],h=b[1],C=v.owner_name,g=v.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+C,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function x(){return l("logout")}return x}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",g]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function x(B,L){return h(L)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function x(){return l("withdrawal",{funds_amount:N})}return x}()})})]})}),(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 x(){return l("view_screen",{view_screen:1})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function x(){return l("view_screen",{view_screen:2})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function x(){return l("view_screen",{view_screen:3})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function x(){return l("balance_statement")}return x}()})})]})],4)},p=function(u,d){var m=(0,a.useBackend)(d),l=m.act,v=m.data,b=(0,a.useLocalState)(d,"accountID",null),N=b[0],h=b[1],C=(0,a.useLocalState)(d,"accountPin",null),g=C[0],x=C[1],B=v.machine_id,L=v.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 w(A,T){return h(T)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function w(A,T){return x(T)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function w(){return l("attempt_auth",{account_num:N,account_pin:g})}return w}()})})]})})},i=function(u,d){var m=(0,a.useBackend)(d),l=m.act,v=m.data,b=v.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"})]}),b.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:N.is_deposit?"green":"red",children:["$",N.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.target_name})]},N)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},c=function(u,d){var m=(0,a.useBackend)(d),l=m.act,v=m.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function b(){return l("view_screen",{view_screen:0})}return b}()})}},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),s=n(36352),y=n(98595),V=n(321),k=n(5485),S=r.AccountsUplinkTerminal=function(){function d(m,l){var v=(0,t.useBackend)(l),b=v.act,N=v.data,h=N.loginState,C=N.currentPage,g;if(h.logged_in)C===1?g=(0,e.createComponentVNode)(2,p):C===2?g=(0,e.createComponentVNode)(2,f):C===3&&(g=(0,e.createComponentVNode)(2,u));else return(0,e.createComponentVNode)(2,y.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,y.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,y.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:g})]})})})}return d}(),p=function(m,l){var v=(0,t.useBackend)(l),b=v.act,N=v.data,h=N.accounts,C=(0,t.useLocalState)(l,"searchText",""),g=C[0],x=C[1],B=(0,t.useLocalState)(l,"sortId","owner_name"),L=B[0],w=B[1],A=(0,t.useLocalState)(l,"sortOrder",!0),T=A[0],E=A[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)(g,function(O){return O.owner_name+"|"+O.account_number+"|"+O.suspended+"|"+O.money})).sort(function(O,P){var R=T?1:-1;return O[L].localeCompare(P[L])*R}).map(function(O){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+O.suspended,onClick:function(){function P(){return b("view_account_detail",{index:O.account_index})}return P}(),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(m,l){var v=(0,t.useLocalState)(l,"sortId","name"),b=v[0],N=v[1],h=(0,t.useLocalState)(l,"sortOrder",!0),C=h[0],g=h[1],x=m.id,B=m.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?g(!C):(N(x),g(!0))}return L}(),children:[B,b===x&&(0,e.createComponentVNode)(2,o.Icon,{name:C?"sort-up":"sort-down",ml:"0.25rem;"})]})})},c=function(m,l){var v=(0,t.useBackend)(l),b=v.act,N=v.data,h=N.is_printing,C=(0,t.useLocalState)(l,"searchText",""),g=C[0],x=C[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,w){return x(w)}return B}()})})]})},f=function(m,l){var v=(0,t.useBackend)(l),b=v.act,N=v.data,h=N.account_number,C=N.owner_name,g=N.money,x=N.suspended,B=N.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+" / "+C,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:C}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:g}),(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(m,l){var v=(0,t.useBackend)(l),b=v.act,N=v.data,h=(0,t.useLocalState)(l,"accName",""),C=h[0],g=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 w(){return b("back")}return w}()}),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 w(A,T){return g(T)}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function w(A,T){return L(T)}return w}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function w(){return b("finalise_create_account",{holder_name:C,starting_funds:B})}return w}()})]})}},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),s=n(98595),y=r.AgentCard=function(){function p(i,c){var f=(0,t.useLocalState)(c,"tabIndex",0),u=f[0],d=f[1],m=function(){function l(v){switch(v){case 0:return(0,e.createComponentVNode)(2,V);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,S);default:return(0,e.createComponentVNode)(2,V)}}return l}();return(0,e.createComponentVNode)(2,s.Window,{width:500,height:475,theme:"syndicate",children:(0,e.createComponentVNode)(2,s.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")]}),m(u)]})})})}return p}(),V=r.AgentCardInfo=function(){function p(i,c){var f=(0,t.useBackend)(c),u=f.act,d=f.data,m=d.registered_name,l=d.sex,v=d.age,b=d.assignment,N=d.associated_account_number,h=d.blood_type,C=d.dna_hash,g=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:m||"[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:v||"[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:g||"[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:C||"[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:N||"[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 f=(0,t.useBackend)(c),u=f.act,d=f.data,m=d.appearances;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Card Appearance",children:m.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 v(){return u("change_appearance_new",{new_appearance:l})}return v}()},l)})})}return p}(),S=r.AgentCardSLSlots=function(){function p(i,c){var f=(0,t.useBackend)(c),u=f.act,d=f.data,m=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:m.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 v(){return u("clear_slot",{slot:l.id})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Save",onClick:function(){function v(){return u("save_slot",{slot:l.id})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Load",disabled:!l.registered_name,onClick:function(){function v(){return u("load_slot",{slot:l.id})}return v}()})],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),s={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},y=r.AiAirlock=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,c=p.data,f=s[c.power.main]||s[0],u=s[c.power.backup]||s[0],d=s[c.shock]||s[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:f.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function m(){return i("disrupt-main")}return m}()}),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 m(){return i("disrupt-backup")}return m}()}),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 m(){return i("shock-restore")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function m(){return i("shock-temp")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function m(){return i("shock-perm")}return m}()})],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 m(){return i("idscan-toggle")}return m}()}),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 m(){return i("emergency-toggle")}return m}()})}),(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 m(){return i("bolt-toggle")}return m}()}),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 m(){return i("light-toggle")}return m}()}),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 m(){return i("safe-toggle")}return m}()}),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 m(){return i("speed-toggle")}return m}()}),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 m(){return i("open-close")}return m}()}),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 V}()},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),s=n(195),y=r.AirAlarm=function(){function d(m,l){var v=(0,a.useBackend)(l),b=v.act,N=v.data,h=N.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,s.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,k),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p)],4)]})})}return d}(),V=function(m){return m===0?"green":m===1?"orange":"red"},k=function(m,l){var v=(0,a.useBackend)(l),b=v.act,N=v.data,h=N.air,C=N.mode,g=N.atmos_alarm,x=N.locked,B=N.alarmActivated,L=N.rcon,w=N.target_temp,A;return h.danger.overall===0?g===0?A="Optimal":A="Caution: Atmos alert in area":h.danger.overall===1?A="Caution":A="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:V(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:C===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:C===3,icon:"exclamation-triangle",onClick:function(){function T(){return b("mode",{mode:C===3?1:3})}return T}()})],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:V(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:V(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:V(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:V(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:V(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:V(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:V(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:w+" C",onClick:function(){function T(){return b("temperature")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:h.thermostat_state?"On":"Off",selected:h.thermostat_state,icon:"power-off",onClick:function(){function T(){return b("thermostat_state")}return T}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:V(h.danger.overall),children:[A,!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 T(){return b(B?"atmos_reset":"atmos_alarm")}return T}()})],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 T(){return b("set_rcon",{rcon:1})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:L===2,onClick:function(){function T(){return b("set_rcon",{rcon:2})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:L===3,onClick:function(){function T(){return b("set_rcon",{rcon:3})}return T}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},S=function(m,l){var v=(0,a.useLocalState)(l,"tabIndex",0),b=v[0],N=v[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===0,onClick:function(){function h(){return N(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 N(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 N(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 N(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},p=function(m,l){var v=(0,a.useLocalState)(l,"tabIndex",0),b=v[0],N=v[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,f);case 3:return(0,e.createComponentVNode)(2,u);default:return"WE SHOULDN'T BE HERE!"}},i=function(m,l){var v=(0,a.useBackend)(l),b=v.act,N=v.data,h=N.vents;return h.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.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:C.power?"On":"Off",selected:C.power,icon:"power-off",onClick:function(){function g(){return b("command",{cmd:"power",val:C.power===1?0:1,id_tag:C.id_tag})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:C.direction==="release"?"Blowing":"Siphoning",icon:C.direction==="release"?"sign-out-alt":"sign-in-alt",onClick:function(){function g(){return b("command",{cmd:"direction",val:C.direction==="release"?0:1,id_tag:C.id_tag})}return g}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:C.checks===1,onClick:function(){function g(){return b("command",{cmd:"checks",val:1,id_tag:C.id_tag})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:C.checks===2,onClick:function(){function g(){return b("command",{cmd:"checks",val:2,id_tag:C.id_tag})}return g}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function g(){return b("command",{cmd:"set_external_pressure",id_tag:C.id_tag})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function g(){return b("command",{cmd:"set_external_pressure",val:101.325,id_tag:C.id_tag})}return g}()})]})]})},C.name)})},c=function(m,l){var v=(0,a.useBackend)(l),b=v.act,N=v.data,h=N.scrubbers;return h.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.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:C.power?"On":"Off",selected:C.power,icon:"power-off",onClick:function(){function g(){return b("command",{cmd:"power",val:C.power===1?0:1,id_tag:C.id_tag})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:C.scrubbing?"Scrubbing":"Siphoning",icon:C.scrubbing?"filter":"sign-in-alt",onClick:function(){function g(){return b("command",{cmd:"scrubbing",val:C.scrubbing===0?1:0,id_tag:C.id_tag})}return g}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:C.widenet?"Extended":"Normal",selected:C.widenet,icon:"expand-arrows-alt",onClick:function(){function g(){return b("command",{cmd:"widenet",val:C.widenet===0?1:0,id_tag:C.id_tag})}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:C.filter_co2,onClick:function(){function g(){return b("command",{cmd:"co2_scrub",val:C.filter_co2===0?1:0,id_tag:C.id_tag})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:C.filter_toxins,onClick:function(){function g(){return b("command",{cmd:"tox_scrub",val:C.filter_toxins===0?1:0,id_tag:C.id_tag})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:C.filter_n2o,onClick:function(){function g(){return b("command",{cmd:"n2o_scrub",val:C.filter_n2o===0?1:0,id_tag:C.id_tag})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:C.filter_o2,onClick:function(){function g(){return b("command",{cmd:"o2_scrub",val:C.filter_o2===0?1:0,id_tag:C.id_tag})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:C.filter_n2,onClick:function(){function g(){return b("command",{cmd:"n2_scrub",val:C.filter_n2===0?1:0,id_tag:C.id_tag})}return g}()})]})]})},C.name)})},f=function(m,l){var v=(0,a.useBackend)(l),b=v.act,N=v.data,h=N.modes,C=N.presets,g=N.emagged,x=N.mode,B=N.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&&!!g)&&(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 w(){return b("mode",{mode:L.id})}return w}()})}),(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:C.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 w(){return b("preset",{preset:L.id})}return w}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})]})],4)},u=function(m,l){var v=(0,a.useBackend)(l),b=v.act,N=v.data,h=N.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(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.name}),C.settings.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:g.selected===-1?"Off":g.selected,onClick:function(){function x(){return b("command",{cmd:"set_threshold",env:g.env,var:g.val})}return x}()})},g.val)})]},C.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),s=r.AirlockAccessController=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,c=i.exterior_status,f=i.interior_status,u=i.processing,d,m;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}()}),f==="open"?m=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:u,color:f==="open"?"red":u?"yellow":null,onClick:function(){function l(){return p("force_int")}return l}()}):m=(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:f==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[d,m]})})]})})}return y}()},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),s=n(49148),y=1,V=2,k=4,S=8,p=r.AirlockElectronics=function(){function f(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 f}(),i=function(u,d){var m=(0,a.useBackend)(d),l=m.act,v=m.data,b=v.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 N(){return l("unrestricted_access",{unres_dir:k})}return N}()})}),(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&V?"selected":null,onClick:function(){function N(){return l("unrestricted_access",{unres_dir:V})}return N}()})}),(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&S?"selected":null,onClick:function(){function N(){return l("unrestricted_access",{unres_dir:S})}return N}()})}),(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&y?"selected":null,onClick:function(){function N(){return l("unrestricted_access",{unres_dir:y})}return N}()})})]})]})})},c=function(u,d){var m=(0,a.useBackend)(d),l=m.act,v=m.data,b=v.selected_accesses,N=v.one_access,h=v.regions;return(0,e.createComponentVNode)(2,s.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:N,content:"One",onClick:function(){function C(){return l("set_one_access",{access:"one"})}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!N,content:"All",onClick:function(){function C(){return l("set_one_access",{access:"all"})}return C}()})],4),accesses:h,selectedList:b,accessMod:function(){function C(g){return l("set",{access:g})}return C}(),grantAll:function(){function C(){return l("grant_all")}return C}(),denyAll:function(){function C(){return l("clear_all")}return C}(),grantDep:function(){function C(g){return l("grant_region",{region:g})}return C}(),denyDep:function(){function C(g){return l("deny_region",{region:g})}return C}()})}},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),s=n(36036),y=n(98595),V=-1,k=1,S=r.AlertModal=function(){function c(f,u){var d=(0,t.useBackend)(u),m=d.act,l=d.data,v=l.autofocus,b=l.buttons,N=b===void 0?[]:b,h=l.large_buttons,C=l.message,g=C===void 0?"":C,x=l.timeout,B=l.title,L=(0,t.useLocalState)(u,"selected",0),w=L[0],A=L[1],T=110+(g.length>30?Math.ceil(g.length/4):0)+(g.length&&h?5:0),E=325+(N.length>2?100:0),O=function(){function P(R){w===0&&R===V?A(N.length-1):w===N.length-1&&R===k?A(0):A(w+R)}return P}();return(0,e.createComponentVNode)(2,y.Window,{title:B,height:T,width:E,children:[!!x&&(0,e.createComponentVNode)(2,a.Loader,{value:x}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function P(R){var F=window.event?R.which:R.keyCode;F===o.KEY_SPACE||F===o.KEY_ENTER?m("choose",{choice:N[w]}):F===o.KEY_ESCAPE?m("cancel"):F===o.KEY_LEFT?(R.preventDefault(),O(V)):(F===o.KEY_TAB||F===o.KEY_RIGHT)&&(R.preventDefault(),O(k))}return P}(),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,m:1,children:(0,e.createComponentVNode)(2,s.Box,{color:"label",overflow:"hidden",children:g})}),(0,e.createComponentVNode)(2,s.Stack.Item,{children:[!!v&&(0,e.createComponentVNode)(2,s.Autofocus),(0,e.createComponentVNode)(2,p,{selected:w})]})]})})})]})}return c}(),p=function(f,u){var d=(0,t.useBackend)(u),m=d.data,l=m.buttons,v=l===void 0?[]:l,b=m.large_buttons,N=m.swapped_buttons,h=f.selected;return(0,e.createComponentVNode)(2,s.Flex,{fill:!0,align:"center",direction:N?"row":"row-reverse",justify:"space-around",wrap:!0,children:v==null?void 0:v.map(function(C,g){return b&&v.length<3?(0,e.createComponentVNode)(2,s.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{button:C,id:g.toString(),selected:h===g})},g):(0,e.createComponentVNode)(2,s.Flex.Item,{grow:b?1:0,children:(0,e.createComponentVNode)(2,i,{button:C,id:g.toString(),selected:h===g})},g)})})},i=function(f,u){var d=(0,t.useBackend)(u),m=d.act,l=d.data,v=l.large_buttons,b=f.button,N=f.selected,h=b.length>7?"100%":7;return(0,e.createComponentVNode)(2,s.Button,{mx:v?1:0,pt:v?.33:0,content:b,fluid:!!v,onClick:function(){function C(){return m("choose",{choice:b})}return C}(),selected:N,textAlign:"center",height:!!v&&2,width:!v&&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),s=r.AppearanceChanger=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,c=p.data,f=c.change_race,u=c.species,d=c.specimen,m=c.change_gender,l=c.gender,v=c.has_gender,b=c.change_eye_color,N=c.change_skin_tone,h=c.change_skin_color,C=c.change_head_accessory_color,g=c.change_hair_color,x=c.change_secondary_hair_color,B=c.change_facial_hair_color,L=c.change_secondary_facial_hair_color,w=c.change_head_marking_color,A=c.change_body_marking_color,T=c.change_tail_marking_color,E=c.change_head_accessory,O=c.head_accessory_styles,P=c.head_accessory_style,R=c.change_hair,F=c.hair_styles,j=c.hair_style,W=c.change_hair_gradient,H=c.change_facial_hair,z=c.facial_hair_styles,$=c.facial_hair_style,G=c.change_head_markings,ne=c.head_marking_styles,Q=c.head_marking_style,he=c.change_body_markings,Ve=c.body_marking_styles,Ne=c.body_marking_style,Be=c.change_tail_markings,Le=c.tail_marking_styles,Ae=c.tail_marking_style,fe=c.change_body_accessory,Z=c.body_accessory_styles,J=c.body_accessory_style,te=c.change_alt_head,ee=c.alt_head_styles,le=c.alt_head_style,ye=!1;return(b||N||h||C||g||x||B||L||w||A||T)&&(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:[!!f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:u.map(function(me){return(0,e.createComponentVNode)(2,t.Button,{content:me.specimen,selected:me.specimen===d,onClick:function(){function Te(){return i("race",{race:me.specimen})}return Te}()},me.specimen)})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:l==="male",onClick:function(){function me(){return i("gender",{gender:"male"})}return me}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:l==="female",onClick:function(){function me(){return i("gender",{gender:"female"})}return me}()}),!v&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:l==="plural",onClick:function(){function me(){return i("gender",{gender:"plural"})}return me}()})]}),!!ye&&(0,e.createComponentVNode)(2,y),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:O.map(function(me){return(0,e.createComponentVNode)(2,t.Button,{content:me.headaccessorystyle,selected:me.headaccessorystyle===P,onClick:function(){function Te(){return i("head_accessory",{head_accessory:me.headaccessorystyle})}return Te}()},me.headaccessorystyle)})}),!!R&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:F.map(function(me){return(0,e.createComponentVNode)(2,t.Button,{content:me.hairstyle,selected:me.hairstyle===j,onClick:function(){function Te(){return i("hair",{hair:me.hairstyle})}return Te}()},me.hairstyle)})}),!!W&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function me(){return i("hair_gradient")}return me}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function me(){return i("hair_gradient_offset")}return me}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function me(){return i("hair_gradient_colour")}return me}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function me(){return i("hair_gradient_alpha")}return me}()})]}),!!H&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:z.map(function(me){return(0,e.createComponentVNode)(2,t.Button,{content:me.facialhairstyle,selected:me.facialhairstyle===$,onClick:function(){function Te(){return i("facial_hair",{facial_hair:me.facialhairstyle})}return Te}()},me.facialhairstyle)})}),!!G&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:ne.map(function(me){return(0,e.createComponentVNode)(2,t.Button,{content:me.headmarkingstyle,selected:me.headmarkingstyle===Q,onClick:function(){function Te(){return i("head_marking",{head_marking:me.headmarkingstyle})}return Te}()},me.headmarkingstyle)})}),!!he&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:Ve.map(function(me){return(0,e.createComponentVNode)(2,t.Button,{content:me.bodymarkingstyle,selected:me.bodymarkingstyle===Ne,onClick:function(){function Te(){return i("body_marking",{body_marking:me.bodymarkingstyle})}return Te}()},me.bodymarkingstyle)})}),!!Be&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:Le.map(function(me){return(0,e.createComponentVNode)(2,t.Button,{content:me.tailmarkingstyle,selected:me.tailmarkingstyle===Ae,onClick:function(){function Te(){return i("tail_marking",{tail_marking:me.tailmarkingstyle})}return Te}()},me.tailmarkingstyle)})}),!!fe&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:Z.map(function(me){return(0,e.createComponentVNode)(2,t.Button,{content:me.bodyaccessorystyle,selected:me.bodyaccessorystyle===J,onClick:function(){function Te(){return i("body_accessory",{body_accessory:me.bodyaccessorystyle})}return Te}()},me.bodyaccessorystyle)})}),!!te&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:ee.map(function(me){return(0,e.createComponentVNode)(2,t.Button,{content:me.altheadstyle,selected:me.altheadstyle===le,onClick:function(){function Te(){return i("alt_head",{alt_head:me.altheadstyle})}return Te}()},me.altheadstyle)})})]})})})}return V}(),y=function(k,S){var p=(0,a.useBackend)(S),i=p.act,c=p.data,f=[{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:f.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),s=r.AtmosAlertConsole=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,c=i.priority||[],f=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)}),f.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),f.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 y}()},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),s=n(98595),y=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"})},V=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},k=r.AtmosControl=function(){function i(c,f){var u=(0,a.useBackend)(f),d=u.act,m=u.data,l=(0,a.useLocalState)(f,"tabIndex",0),v=l[0],b=l[1],N=function(){function h(C){switch(C){case 0:return(0,e.createComponentVNode)(2,S);case 1:return(0,e.createComponentVNode)(2,p);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,s.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,s.Window.Content,{scrollable:v===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:v===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:v===1,onClick:function(){function h(){return b(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),N(v)]})})})}return i}(),S=function(c,f){var u=(0,a.useBackend)(f),d=u.act,m=u.data,l=m.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(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:v.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:y(v.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:v.ref})}return b}()})})]},v.name)})]})})},p=function(c,f){var u=(0,a.useBackend)(f),d=u.act,m=u.data,l=m.alarms,v=m.stationLevelNum,b=m.stationLevelName,N=(0,a.useLocalState)(f,"zoom",1),h=N[0],C=N[1],g=(0,a.useLocalState)(f,"z_current",v[0]),x=g[0],B=g[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(w){return C(w)}return L}(),zLevels:v,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:V(L.danger),onClick:function(){function w(){return d("open_alarm",{aref:L.ref})}return w}()},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),s=r.AtmosFilter=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,c=i.on,f=i.pressure,u=i.max_pressure,d=i.filter_type,m=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:f===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:f,onDrag:function(){function l(v,b){return p("custom_pressure",{pressure:b})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===u,width:2.2,onClick:function(){function l(){return p("max_pressure")}return l}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:m.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{selected:l.gas_type===d,content:l.label,onClick:function(){function v(){return p("set_filter",{filter:l.gas_type})}return v}()},l.label)})})]})})})})}return y}()},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),s=r.AtmosMixer=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,c=p.data,f=c.on,u=c.pressure,d=c.max_pressure,m=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:f?"On":"Off",color:f?null:"red",selected:f,onClick:function(){function v(){return i("power")}return v}()})}),(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 v(){return i("min_pressure")}return v}()}),(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 v(b,N){return i("custom_pressure",{pressure:N})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:u===d,width:2.2,onClick:function(){function v(){return i("max_pressure")}return v}()})]}),(0,e.createComponentVNode)(2,y,{node_name:"Node 1",node_ref:m}),(0,e.createComponentVNode)(2,y,{node_name:"Node 2",node_ref:l})]})})})})}return V}(),y=function(k,S){var p=(0,a.useBackend)(S),i=p.act,c=p.data,f=k.node_name,u=k.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f,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:f,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(m,l){return i("set_node",{node_name:f,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:f,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),s=r.AtmosPump=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,c=i.on,f=i.rate,u=i.max_rate,d=i.gas_unit,m=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:f===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:m,minValue:0,maxValue:u,value:f,onDrag:function(){function l(v,b){return p("custom_rate",{rate:b})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===u,width:2.2,onClick:function(){function l(){return p("max_rate")}return l}()})]})]})})})})}return y}()},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),s=n(39473),y=r.AutoDoc=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,c=p.data,f=c.HasTray,u=c.TguiIcons,d=c.occupant,m=c.isHealing,l=c.fixtimer,v=c.healtimer,b=(0,a.useLocalState)(S,"ChoosePart","chest"),N=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,s.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[N],style:{position:"absolute","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})]}),(0,e.createComponentVNode)(2,s.FlexItem,{basis:"70%",children:(0,e.createComponentVNode)(2,t.Section,{title:"Info",buttons:(0,e.createFragment)([Object.keys(u).map(function(C){return C!=="human"&&(0,e.createComponentVNode)(2,t.Button,{content:C,selected:C===N,onClick:function(){function g(){return h(C)}return g}(),z:!0},C)}),(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:f?"Eject Tray":"Reject Tray",locked:m,onClick:function(){function C(){return i("ChangeTrayState")}return C}()})],0),children:(0,e.createComponentVNode)(2,t.Box,{children:[!!(d[N]&&d[N].extOrgan)&&d[N].extOrgan.map(function(C){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,C.name,0),(0,e.createVNode)(1,"br"),C.open?"opened":"",C.broken?"broken":"",!!C.broken&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Fix",style:{"margin-left":"30px"},locked:m,onClick:function(){function g(){return i("FixOrgan",{organ:C.name,type:"fracture"})}return g}()}),(0,e.createVNode)(1,"br")],4),C.internalBleeding?"bleeding":"",!!C.internalBleeding&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Fix",style:{"margin-left":"30px"},locked:m,onClick:function(){function g(){return i("FixOrgan",{organ:C.name,type:"bleeding"})}return g}()}),(0,e.createVNode)(1,"br")],4),(0,e.createTextVNode)("Internals:"),(0,e.createComponentVNode)(2,t.Button,{content:"Complete",style:{"margin-left":"10px"},locked:m,onClick:function(){function g(){return i("FixOrgan",{organ:C.name,type:"completeInternal"})}return g}()}),(0,e.createVNode)(1,"br"),C.dead?"dead":"",!!C.dead&&(0,e.createVNode)(1,"br"),C.germ_level?"Germ level is "+C.germ_level:"",!!C.germ_level&&(0,e.createVNode)(1,"br"),C.totalLoss?"Total damage is "+C.totalLoss:"",(0,e.createVNode)(1,"br")],0,C.name)}),!!(d[N]&&d[N].intOrgan)&&d[N].intOrgan.map(function(C){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,C.name,0),(0,e.createComponentVNode)(2,t.Button,{content:"Remove",style:{"margin-left":"1.5rem"},locked:m,onClick:function(){function g(){return i("FixOrgan",{organ:C.name,type:"remove"})}return g}()}),(0,e.createVNode)(1,"br"),C.dead?"dead":"",!!C.dead&&(0,e.createVNode)(1,"br"),C.germ_level?"Germ level is "+C.germ_level:"",!!C.germ_level&&(0,e.createVNode)(1,"br"),C.totalLoss?"Total damage is "+C.damage:"",!!C.totalLoss&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Heal",style:{"margin-left":"30px"},locked:m,onClick:function(){function g(){return i("FixOrgan",{organ:C.name,type:"damage"})}return g}()}),(0,e.createVNode)(1,"br")],4)],0,C.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 C(){return i("HealBruteBurn")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:"Reattach externals",onClick:function(){function C(){return i("CompleteExternal")}return C}()})],0),(0,e.createVNode)(1,"br"),!!l&&(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Fixing organ: "),l],0),!!v&&(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Healing external damage: "),v],0)]})})})]})})})}return V}()},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),s=n(36036),y=n(98595),V=n(25328),k=function(i,c,f,u){return i.requirements===null?!0:!(i.requirements.metal*u>c||i.requirements.glass*u>f)},S=r.Autolathe=function(){function p(i,c){var f=(0,o.useBackend)(c),u=f.act,d=f.data,m=d.total_amount,l=d.max_amount,v=d.metal_amount,b=d.glass_amount,N=d.busyname,h=d.busyamt,C=d.showhacked,g=d.buildQueue,x=d.buildQueueLen,B=d.recipes,L=d.categories,w=(0,o.useSharedState)(c,"category",0),A=w[0],T=w[1];A===0&&(A="Tools");var E=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),O=b.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=m.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),R=(0,o.useSharedState)(c,"search_text",""),F=R[0],j=R[1],W=(0,V.createSearch)(F,function(G){return G.name}),H="";x>0&&(H=g.map(function(G,ne){return(0,e.createComponentVNode)(2,s.Box,{children:(0,e.createComponentVNode)(2,s.Button,{fluid:!0,icon:"times",color:"transparent",content:g[ne][0],onClick:function(){function Q(){return u("remove_from_queue",{remove_from_queue:g.indexOf(G)+1})}return Q}()},G)},ne)}));var z=(0,a.flow)([(0,t.filter)(function(G){return(G.category.indexOf(A)>-1||F)&&(d.showhacked||!G.hacked)}),F&&(0,t.filter)(W),(0,t.sortBy)(function(G){return G.name.toLowerCase()})])(B),$="Build";return F?$="Results for: '"+F+"':":A&&($="Build ("+A+")"),(0,e.createComponentVNode)(2,y.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,s.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,s.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,s.Section,{fill:!0,scrollable:!0,title:$,buttons:(0,e.createComponentVNode)(2,s.Dropdown,{width:"150px",options:L,selected:A,onSelected:function(){function G(ne){return T(ne)}return G}()}),children:[(0,e.createComponentVNode)(2,s.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function G(ne,Q){return j(Q)}return G}(),mb:1}),z.map(function(G){return(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+G.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,s.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 ne(){return u("make",{make:G.uid,multiplier:1})}return ne}(),children:(0,V.toTitleCase)(G.name)}),G.max_multiplier>=10&&(0,e.createComponentVNode)(2,s.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 ne(){return u("make",{make:G.uid,multiplier:10})}return ne}(),children:"10x"}),G.max_multiplier>=25&&(0,e.createComponentVNode)(2,s.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 ne(){return u("make",{make:G.uid,multiplier:25})}return ne}(),children:"25x"}),G.max_multiplier>25&&(0,e.createComponentVNode)(2,s.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 ne(){return u("make",{make:G.uid,multiplier:G.max_multiplier})}return ne}(),children:[G.max_multiplier,"x"]}),G.requirements&&Object.keys(G.requirements).map(function(ne){return(0,V.toTitleCase)(ne)+": "+G.requirements[ne]}).join(", ")||(0,e.createComponentVNode)(2,s.Box,{children:"No resources required."})]},G.ref)})]})}),(0,e.createComponentVNode)(2,s.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,s.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,s.LabeledList,{children:[(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Glass",children:O}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Total",children:P}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Storage",children:[d.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,s.Section,{title:"Building",children:(0,e.createComponentVNode)(2,s.Box,{color:N?"green":"",children:N||"Nothing"})}),(0,e.createComponentVNode)(2,s.Section,{title:"Build Queue",height:23.7,children:[H,(0,e.createComponentVNode)(2,s.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function G(){return u("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),s=n(62411),y=r.Biogenerator=function(){function p(i,c){var f=(0,a.useBackend)(c),u=f.data,d=f.config,m=u.container,l=u.processing,v=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,s.Operating,{operating:l,name:v}),(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S)]})})})}return p}(),V=function(i,c){var f=(0,a.useBackend)(c),u=f.act,d=f.data,m=d.biomass,l=d.container,v=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:m}),(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:v,maxValue:b,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:v+" / "+b+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},k=function(i,c){var f=(0,a.useBackend)(c),u=f.act,d=f.data,m=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:!m,tooltip:m?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function v(){return u("activate")}return v}()})}),(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 v(){return u("detach_container")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!m,tooltip:m?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function v(){return u("eject_plants")}return v}()})})]})})},S=function(i,c){var f=(0,a.useBackend)(c),u=f.act,d=f.data,m=d.biomass,l=d.product_list,v=d.container,b=(0,a.useSharedState)(c,"vendAmount",1),N=b[0],h=b[1],C=Object.entries(l).map(function(g,x){var B=Object.entries(g[1]).map(function(L){return L[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:g[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*N,(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&&!v?(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:m0?Math.floor(A/u):0,P=f?"@?%%!\u2116@"+u:u,R=A>=u,F=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:E===0?"bad":E<100?"average":"good",value:w,maxValue:L,mt:1,mb:2,children:[E<=100?E: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:A?R?"good":"average":"bad",as:"span",children:Math.floor(A)}),(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 "+P+" \u0434\u0430\u043D\u043D\u044B\u0445.",content:d>0?"\u041F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0430 "+F+" \u0441\u0435\u043A\u0443\u043D\u0434":"\u0417\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u0442\u044C ("+O+")",disabled:!R||d>0,onClick:function(){function j(){return i("probe",{rift_id:x})}return j}(),mx:2}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:T?"\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:T||E<100,onClick:function(){function j(){return i("reward",{rift_id:x})}return j}(),mt:1.4})]})]})}return C}(),N=function(){function C(g){var x=g.servName,B=g.servData;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:x,children:B.length?B.map(function(L,w){return(0,e.createComponentVNode)(2,t.Box,{children:[L.riftName," \u2014 ",Math.floor(L.probePoints)," ","\u0434\u0430\u043D\u043D\u044B\u0445."]},w)}):(0,e.createComponentVNode)(2,t.Box,{children:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445"})})}return C}(),h=function(){function C(g){var x=g.scannerId,B=g.scannerName,L=g.scanStatus,w=g.canSwitch,A=g.switching,T=s[L],E=function(){function P(){if(T==="OFF")return[" ","silver"];if(T==="NO_RIFTS")return["\u041D\u0435\u0442 \u0440\u0430\u0437\u043B\u043E\u043C\u043E\u0432","silver"];if(T==="SOME_RIFTS")return["\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442","good"];if(T==="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 P}(),O=E();return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B,py:0,children:[A?(0,e.createComponentVNode)(2,t.Icon,{name:"circle-notch",color:"silver",spin:!0,ml:1.85,mr:1.79,my:.84}):w?(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",color:T==="OFF"?"bad":"good",onClick:function(){function P(){return i("toggle_scanner",{scanner_id:x})}return P}(),ml:1,mr:1}):(0,e.createComponentVNode)(2,t.Icon,{name:"power-off",color:T==="OFF"?"bad":"good",ml:1.85,mr:1.79,my:.84}),T!=="OFF"&&(0,e.createComponentVNode)(2,t.Box,{as:"span",color:O[1],children:O[0]})]})}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:570,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[m&&m.map(function(C){return b(C)}),(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:v&&v.map(function(C){return h(C)})})}),(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(C){return N(C)})})})]})})}return V}()},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),s=n(49968),y=r.BluespaceTap=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,c=p.data,f=c.product||[],u=c.desiredLevel,d=c.inputLevel,m=c.points,l=c.totalPoints,v=c.powerUse,b=c.availablePower,N=c.maxLevel,h=c.emagged,C=c.safeLevels,g=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>C&&(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:N,stepPixelSize:20,step:1,onChange:function(){function B(L,w){return i("set",{set_level:w})}return B}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:u===N,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===N,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function B(){return i("set",{set_level:N})}return B}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,s.formatPower)(v)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,s.formatPower)(g)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,s.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:m}),(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:f.map(function(B){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:B.price>=m,onClick:function(){function L(){return i("vend",{target:B.key})}return L}(),content:B.price})},B.key)})})})})]})})]})})})}return V}()},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),s=n(36036),y=n(98595),V=[["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."]],S=[["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=[],w=0;w0?x.filter(function(B){return!!B}).reduce(function(B,L){return(0,e.createFragment)([B,(0,e.createComponentVNode)(2,s.Box,{children:L},L)],0)},null):null},f=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 g(x,B){var L=(0,o.useBackend)(B),w=L.data,A=w.occupied,T=w.occupant,E=T===void 0?{}:T,O=A?(0,e.createComponentVNode)(2,d,{occupant:E}):(0,e.createComponentVNode)(2,C);return(0,e.createComponentVNode)(2,y.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:O})})}return g}(),d=function(x){var B=x.occupant;return(0,e.createComponentVNode)(2,s.Box,{children:[(0,e.createComponentVNode)(2,m,{occupant:B}),(0,e.createComponentVNode)(2,l,{occupant:B}),(0,e.createComponentVNode)(2,v,{occupant:B}),(0,e.createComponentVNode)(2,N,{organs:B.extOrgan}),(0,e.createComponentVNode)(2,h,{organs:B.intOrgan})]})},m=function(x,B){var L=(0,o.useBackend)(B),w=L.act,A=L.data,T=A.occupant;return(0,e.createComponentVNode)(2,s.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,s.Button,{icon:"print",onClick:function(){function E(){return w("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,s.Button,{icon:"user-slash",onClick:function(){function E(){return w("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,s.LabeledList,{children:[(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Name",children:T.name}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,s.ProgressBar,{min:"0",max:T.maxHealth,value:T.health/T.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Status",color:V[T.stat][0],children:V[T.stat][1]}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,s.AnimatedNumber,{value:(0,a.round)(T.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,s.AnimatedNumber,{value:(0,a.round)(T.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Implants",children:T.implant_len?(0,e.createComponentVNode)(2,s.Box,{children:T.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,s.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,s.Section,{title:"Abnormalities",children:k.map(function(L,w){if(B[L[0]])return(0,e.createComponentVNode)(2,s.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,s.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"No abnormalities found."})})},v=function(x){var B=x.occupant;return(0,e.createComponentVNode)(2,s.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,s.Table,{children:i(S,function(L,w,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,s.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,s.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,s.Table.Cell,{children:!!w&&w[0]+":"})]}),(0,e.createComponentVNode)(2,s.Table.Row,{children:[(0,e.createComponentVNode)(2,s.Table.Cell,{children:(0,e.createComponentVNode)(2,b,{value:B[L[1]],marginBottom:A100)&&"average"||!!B.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(B.name)}),(0,e.createComponentVNode)(2,s.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,s.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,s.Stack,{children:[(0,e.createComponentVNode)(2,s.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,s.Stack.Item,{children:[(0,e.createComponentVNode)(2,s.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(B.totalLoss)]})}),!!B.bruteLoss&&(0,e.createComponentVNode)(2,s.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,s.Icon,{name:"bone",mr:.5}),(0,a.round)(B.bruteLoss)]})}),!!B.fireLoss&&(0,e.createComponentVNode)(2,s.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,s.Stack.Item,{children:[(0,e.createComponentVNode)(2,s.Icon,{name:"fire",mr:.5}),(0,a.round)(B.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,s.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,s.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,f(B.germ_level),!!B.open&&"Open incision"])}),(0,e.createComponentVNode)(2,s.Box,{inline:!0,children:[c([!!B.status.splinted&&(0,e.createComponentVNode)(2,s.Box,{color:"good",children:"Splinted"}),!!B.status.robotic&&(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"Robotic"}),!!B.status.dead&&(0,e.createComponentVNode)(2,s.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(B.shrapnel.map(function(w){return w.known?w.name:"Unknown object"}))]})]})]},L)})]})})},h=function(x){return x.organs.length===0?(0,e.createComponentVNode)(2,s.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,s.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,s.Table,{children:[(0,e.createComponentVNode)(2,s.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,s.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,s.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,s.Table.Cell,{textAlign:"right",children:"Injuries"})]}),x.organs.map(function(B,L){return(0,e.createComponentVNode)(2,s.Table.Row,{children:[(0,e.createComponentVNode)(2,s.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,s.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,s.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,s.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,s.Box,{color:"average",inline:!0,children:c([f(B.germ_level)])}),(0,e.createComponentVNode)(2,s.Box,{inline:!0,children:c([B.robotic===1&&(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"Robotic"}),B.robotic===2&&(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"Assisted"}),!!B.dead&&(0,e.createComponentVNode)(2,s.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},C=function(){return(0,e.createComponentVNode)(2,s.Section,{fill:!0,children:(0,e.createComponentVNode)(2,s.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,s.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),s=r.BorgPanel=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,c=i.borg||{},f=i.cell||{},u=f.charge/f.maxcharge,d=i.channels||[],m=i.modules||[],l=i.upgrades||[],v=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 N(){return p("rename")}return N}()}),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 N(){return p("toggle_emagged")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:c.lockdown?"check-square-o":"square-o",content:"Locked Down",selected:c.lockdown,onClick:function(){function N(){return p("toggle_lockdown")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:c.scrambledcodes?"check-square-o":"square-o",content:"Scrambled Codes",selected:c.scrambledcodes,onClick:function(){function N(){return p("toggle_scrambledcodes")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset Module",onClick:function(){function N(){return p("reset_module")}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge",children:[f.missing?(0,e.createVNode)(1,"span","color-bad","No cell installed",16):(0,e.createComponentVNode)(2,t.ProgressBar,{value:u,children:f.charge+" / "+f.maxcharge}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Set",onClick:function(){function N(){return p("set_charge")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Change",onClick:function(){function N(){return p("change_cell")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",content:"Remove",color:"bad",onClick:function(){function N(){return p("remove_cell")}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radio Channels",children:d.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{icon:N.installed?"check-square-o":"square-o",content:N.name,selected:N.installed,onClick:function(){function h(){return p("toggle_radio",{channel:N.name})}return h}()},N.name)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Model",children:m.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{icon:c.active_module===N.name?"check-square-o":"square-o",content:N.name+" module",selected:c.active_module===N.name,onClick:function(){function h(){return p("setmodule",{module:N.name})}return h}()},N.type)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upgrades",children:l.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{icon:N.installed?"check-square-o":"square-o",content:N.name,selected:N.installed,onClick:function(){function h(){return p("toggle_upgrade",{upgrade:N.type})}return h}()},N.type)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:v.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{icon:N.connected?"check-square-o":"square-o",content:N.name,selected:N.connected,onClick:function(){function h(){return p("slavetoai",{slavetoai:N.ref})}return h}()},N.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 N(){return p("lawmanager")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:c.lawupdate?"check-square-o":"square-o",content:"Lawsync",selected:c.lawupdate,onClick:function(){function N(){return p("toggle_lawupdate")}return N}()})],4),children:b.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:N},N)})})]})})}return y}()},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),s=r.BotClean=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,c=i.locked,f=i.noaccess,u=i.maintpanel,d=i.on,m=i.autopatrol,l=i.canhack,v=i.emagged,b=i.remote_disabled,N=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:["Swipe an ID card to ",c?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",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:d?"power-off":"times",content:d?"On":"Off",selected:d,disabled:f,onClick:function(){function C(){return p("power")}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:m,content:"Auto Patrol",disabled:f,onClick:function(){function C(){return p("autopatrol")}return C}()})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:v?"bad":"good",children:v?"DISABLED!":"Enabled"})}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:v?"Restore Safties":"Hack",disabled:f,color:"bad",onClick:function(){function C(){return p("hack")}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!b,content:"AI Remote Control",disabled:f,onClick:function(){function C(){return p("disableremote")}return C}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Clean Blood",disabled:f,onClick:function(){function C(){return p("blood")}return C}()})}),N&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:N,disabled:f,onClick:function(){function C(){return p("ejectpai")}return C}()})})]})})}return y}()},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),s=r.BotSecurity=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,c=i.locked,f=i.noaccess,u=i.maintpanel,d=i.on,m=i.autopatrol,l=i.canhack,v=i.emagged,b=i.remote_disabled,N=i.painame,h=i.check_id,C=i.check_weapons,g=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:["Swipe an ID card to ",c?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",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:d?"power-off":"times",content:d?"On":"Off",selected:d,disabled:f,onClick:function(){function L(){return p("power")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:m,content:"Auto Patrol",disabled:f,onClick:function(){function L(){return p("autopatrol")}return L}()})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:v?"bad":"good",children:v?"DISABLED!":"Enabled"})}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:v?"Restore Safties":"Hack",disabled:f,color:"bad",onClick:function(){function L(){return p("hack")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!b,content:"AI Remote Control",disabled:f,onClick:function(){function L(){return p("disableremote")}return L}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Unidentifiable Persons",disabled:f,onClick:function(){function L(){return p("authid")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Unauthorized Weapons",disabled:f,onClick:function(){function L(){return p("authweapon")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Wanted Criminals",disabled:f,onClick:function(){function L(){return p("authwarrant")}return L}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:x,content:"Detain Targets Indefinitely",disabled:f,onClick:function(){function L(){return p("arrtype")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:B,content:"Announce Arrests On Radio",disabled:f,onClick:function(){function L(){return p("arrdeclare")}return L}()})]}),N&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:N,disabled:f,onClick:function(){function L(){return p("ejectpai")}return L}()})})]})})}return y}()},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),s=function(S,p){var i=S.cell,c=(0,o.useBackend)(p),f=c.act,u=i.cell_id,d=i.occupant,m=i.crimes,l=i.brigged_by,v=i.time_left_seconds,b=i.time_set_seconds,N=i.ref,h="";v>0&&(h+=" BrigCells__listRow--active");var C=function(){f("release",{ref:N})};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:m}),(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:v})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:C,children:"Release"})})]})},y=function(S){var p=S.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,s,{cell:i},i.ref)})]})},V=r.BrigCells=function(){function k(S,p){var i=(0,o.useBackend)(p),c=i.act,f=i.data,u=f.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,y,{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),s=r.BrigTimer=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.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 f=[],u=0;for(u=0;u60||!i.isAllowed,onClick:function(){function d(){return p("start")}return d}()})})]})})]})})}return y}()},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),s=n(25328),y=n(72253),V=n(36036),k=n(98595);String.prototype.trimLongStr=function(d){return this.length>d?this.substring(0,d)+"...":this};var S=function(m,l){var v,b;if(!l)return[];var N=m.findIndex(function(h){return h.name===l.name});return[(v=m[N-1])==null?void 0:v.name,(b=m[N+1])==null?void 0:b.name]},p=function(m,l){l===void 0&&(l="");var v=(0,s.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)(v),(0,a.sortBy)(function(b){return b.name})])(m)},i=r.CameraConsole=function(){function d(m,l){var v=(0,y.useLocalState)(l,"tabIndex",0),b=v[0],N=v[1],h=function(){function C(g){switch(g){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,f);default:return"WE SHOULDN'T BE HERE!"}}return C}();return(0,e.createComponentVNode)(2,k.Window,{width:1250,height:600,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,V.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.createComponentVNode)(2,V.Tabs,{children:[(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:b===0,onClick:function(){function C(){return N(0)}return C}(),children:[(0,e.createComponentVNode)(2,V.Icon,{name:"map-marked-alt"})," Map"]},"Map"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:b===1,onClick:function(){function C(){return N(1)}return C}(),children:[(0,e.createComponentVNode)(2,V.Icon,{name:"table"})," List"]},"List")]}),h(b)]})})})}return d}(),c=r.CameraConsoleMapContent=function(){function d(m,l){var v=(0,y.useBackend)(l),b=v.act,N=v.data,h=p(N.cameras),C=(0,y.useLocalState)(l,"zoom",1),g=C[0],x=C[1],B=N.mapRef,L=N.activeCamera,w=N.stationLevelNum,A=N.stationLevelName,T=(0,y.useLocalState)(l,"z_current",w[0]),E=T[0],O=T[1],P=S(h,L),R=P[0],F=P[1];return(0,e.createComponentVNode)(2,V.Box,{height:"100%",display:"flex",children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,V.Box,{height:"100%",display:"flex",children:(0,e.createComponentVNode)(2,V.NanoMap,{onZoom:function(){function j(W){return x(W)}return j}(),zLevels:w,zNames:A,z_current:E,setZCurrent:O,children:h.map(function(j){return(0,e.createComponentVNode)(2,V.NanoMap.Marker,{x:j.x,y:j.y,z:j.z,z_current:E,zoom:g,icon:"box",tooltip:j.name,color:j.status?"blue":"red",bordered:!0,onClick:function(){function W(){return b("switch_camera",{name:j.name})}return W}()},j.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,V.Button,{icon:"chevron-left",disabled:!R,onClick:function(){function j(){return b("switch_camera",{name:R})}return j}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-right",disabled:!F,onClick:function(){function j(){return b("switch_camera",{name:F})}return j}()})],4),(0,e.createComponentVNode)(2,V.ByondUi,{className:"CameraConsole__map",params:{id:B,type:"map"}})],4)]})}return d}(),f=r.CameraConsoleOldContent=function(){function d(m,l){var v=(0,y.useBackend)(l),b=v.act,N=v.data,h=v.config,C=N.mapRef,g=N.activeCamera,x=(0,y.useLocalState)(l,"searchText",""),B=x[0],L=p(N.cameras,B),w=S(L,g),A=w[0],T=w[1];return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,V.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),g&&g.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-left",disabled:!A,onClick:function(){function E(){return b("switch_camera",{name:A})}return E}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-right",disabled:!T,onClick:function(){function E(){return b("switch_camera",{name:T})}return E}()})],4),(0,e.createComponentVNode)(2,V.ByondUi,{className:"CameraConsole__map",params:{id:C,type:"map"}})],4)]})}return d}(),u=r.CameraConsoleListContent=function(){function d(m,l){var v=(0,y.useBackend)(l),b=v.act,N=v.data,h=(0,y.useLocalState)(l,"searchText",""),C=h[0],g=h[1],x=N.activeCamera,B=p(N.cameras,C);return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function L(w,A){return g(A)}return L}()})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,V.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 w(){return b("switch_camera",{name:L.name})}return w}()},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),s=n(49968),y=n(98595),V=r.Canister=function(){function k(S,p){var i=(0,t.useBackend)(p),c=i.act,f=i.data,u=f.portConnected,d=f.tankPressure,m=f.releasePressure,l=f.defaultReleasePressure,v=f.minReleasePressure,b=f.maxReleasePressure,N=f.valveOpen,h=f.name,C=f.canLabel,g=f.colorContainer,x=f.color_index,B=f.hasHoldingTank,L=f.holdingTank,w="";x.prim&&(w=g.prim.options[x.prim].name);var A="";x.sec&&(A=g.sec.options[x.sec].name);var T="";x.ter&&(T=g.ter.options[x.ter].name);var E="";x.quart&&(E=g.quart.options[x.quart].name);var O=[],P=[],R=[],F=[],j=0;for(j=0;jh.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 C(){return m("make_job_unavailable",{job:h.title})}return C}()})}),(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 C(){return m("make_job_available",{job:h.title})}return C}()})}),(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 C(){return m("prioritize_job",{job:h.title})}return C}()})})]},h.title)})]})})]}):N=(0,e.createComponentVNode)(2,k);break;case 2:!l.authenticated||!l.scan_name?N=(0,e.createComponentVNode)(2,k):l.modify_name?N=(0,e.createComponentVNode)(2,s.AccessList,{accesses:l.regions,selectedList:l.selectedAccess,accessMod:function(){function h(C){return m("set",{access:C})}return h}(),grantAll:function(){function h(){return m("grant_all")}return h}(),denyAll:function(){function h(){return m("clear_all")}return h}(),grantDep:function(){function h(C){return m("grant_region",{region:C})}return h}(),denyDep:function(){function h(C){return m("deny_region",{region:C})}return h}()}):N=(0,e.createComponentVNode)(2,S);break;case 3:l.authenticated?l.records.length?N=(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 m("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 m("wipe_my_logs")}return h}()})})]}):N=(0,e.createComponentVNode)(2,p):N=(0,e.createComponentVNode)(2,k);break;case 4:!l.authenticated||!l.scan_name?N=(0,e.createComponentVNode)(2,k):N=(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 C(){return m("remote_demote",{remote_demote:h.name})}return C}()})})]},h.title)})]})});break;default:N=(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:v}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:N})]})})})}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),s=n(36036),y=n(98595),V=n(25328),k=r.CargoConsole=function(){function f(u,d){return(0,e.createComponentVNode)(2,y.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,s.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})})}return f}(),S=function(u,d){var m=(0,o.useLocalState)(d,"contentsModal",null),l=m[0],v=m[1],b=(0,o.useLocalState)(d,"contentsModalTitle",null),N=b[0],h=b[1];if(l!==null&&N!==null)return(0,e.createComponentVNode)(2,s.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,s.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[N,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,s.Box,{children:l.map(function(C){return(0,e.createComponentVNode)(2,s.Box,{children:["- ",C]},C)})}),(0,e.createComponentVNode)(2,s.Box,{m:2,children:(0,e.createComponentVNode)(2,s.Button,{content:"Close",onClick:function(){function C(){v(null),h(null)}return C}()})})]})},p=function(u,d){var m=(0,o.useBackend)(d),l=m.act,v=m.data,b=v.is_public,N=v.points,h=v.credits,C=v.timeleft,g=v.moving,x=v.at_station,B,L;return!g&&!x?(B="Docked off-station",L="Call Shuttle"):!g&&x?(B="Docked at the station",L="Return Shuttle"):g&&(L="In Transit...",C!==1?B="Shuttle is en route (ETA: "+C+" minutes)":B="Shuttle is en route (ETA: "+C+" minute)"),(0,e.createComponentVNode)(2,s.Stack.Item,{children:(0,e.createComponentVNode)(2,s.Section,{title:"Status",children:(0,e.createComponentVNode)(2,s.LabeledList,{children:[(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Points Available",children:N}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Credits Available",children:h}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Shuttle Status",children:B}),b===0&&(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,s.Button,{content:L,disabled:g,onClick:function(){function w(){return l("moveShuttle")}return w}()}),(0,e.createComponentVNode)(2,s.Button,{content:"View Central Command Messages",onClick:function(){function w(){return l("showMessages")}return w}()})]})]})})})},i=function(u,d){var m=(0,o.useBackend)(d),l=m.act,v=m.data,b=v.categories,N=v.supply_packs,h=(0,o.useSharedState)(d,"category","Emergency"),C=h[0],g=h[1],x=(0,o.useSharedState)(d,"search_text",""),B=x[0],L=x[1],w=(0,o.useLocalState)(d,"contentsModal",null),A=w[0],T=w[1],E=(0,o.useLocalState)(d,"contentsModalTitle",null),O=E[0],P=E[1],R=(0,V.createSearch)(B,function(W){return W.name}),F=(0,a.flow)([(0,t.filter)(function(W){return W.cat===b.filter(function(H){return H.name===C})[0].category||B}),B&&(0,t.filter)(R),(0,t.sortBy)(function(W){return W.name.toLowerCase()})])(N),j="Crate Catalogue";return B?j="Results for '"+B+"':":C&&(j="Browsing "+C),(0,e.createComponentVNode)(2,s.Stack.Item,{children:(0,e.createComponentVNode)(2,s.Section,{title:j,buttons:(0,e.createComponentVNode)(2,s.Dropdown,{width:"190px",options:b.map(function(W){return W.name}),selected:C,onSelected:function(){function W(H){return g(H)}return W}()}),children:[(0,e.createComponentVNode)(2,s.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function W(H,z){return L(z)}return W}(),mb:1}),(0,e.createComponentVNode)(2,s.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,s.Table,{m:"0.5rem",children:F.map(function(W){return(0,e.createComponentVNode)(2,s.Table.Row,{children:[(0,e.createComponentVNode)(2,s.Table.Cell,{bold:!0,children:(0,e.createComponentVNode)(2,s.Box,{color:W.has_sale?"good":"default",children:[W.name," (",W.cost?W.cost+" Points":"",W.creditsCost&&W.cost?" ":"",W.creditsCost?W.creditsCost+" Credits":"",")"]})}),(0,e.createComponentVNode)(2,s.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,s.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){function H(){return l("order",{crate:W.ref,multiple:0})}return H}()}),(0,e.createComponentVNode)(2,s.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){function H(){return l("order",{crate:W.ref,multiple:1})}return H}()}),(0,e.createComponentVNode)(2,s.Button,{content:"View Contents",icon:"search",onClick:function(){function H(){T(W.contents),P(W.name)}return H}()})]})]},W.name)})})})]})})},c=function(u,d){var m=(0,o.useBackend)(d),l=m.act,v=m.data,b=v.requests,N=v.canapprove,h=v.orders;return(0,e.createComponentVNode)(2,s.Section,{fill:!0,scrollable:!0,title:"Details",children:[(0,e.createComponentVNode)(2,s.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,s.Table,{m:"0.5rem",children:b.map(function(C){return(0,e.createComponentVNode)(2,s.Table.Row,{children:[(0,e.createComponentVNode)(2,s.Table.Cell,{children:[(0,e.createComponentVNode)(2,s.Box,{children:["- #",C.ordernum,": ",C.supply_type," for ",(0,e.createVNode)(1,"b",null,C.orderedby,0)]}),(0,e.createComponentVNode)(2,s.Box,{italic:!0,children:["Reason: ",C.comment]}),(0,e.createComponentVNode)(2,s.Box,{italic:!0,children:["Required Techs: ",C.pack_techs]})]}),(0,e.createComponentVNode)(2,s.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,s.Button,{content:"Approve",color:"green",disabled:!N,onClick:function(){function g(){return l("approve",{ordernum:C.ordernum})}return g}()}),(0,e.createComponentVNode)(2,s.Button,{content:"Deny",color:"red",onClick:function(){function g(){return l("deny",{ordernum:C.ordernum})}return g}()})]})]},C.ordernum)})}),(0,e.createComponentVNode)(2,s.Box,{bold:!0,children:"Confirmed Orders"}),(0,e.createComponentVNode)(2,s.Table,{m:"0.5rem",children:h.map(function(C){return(0,e.createComponentVNode)(2,s.Table.Row,{children:(0,e.createComponentVNode)(2,s.Table.Cell,{children:[(0,e.createComponentVNode)(2,s.Box,{children:["- #",C.ordernum,": ",C.supply_type," for ",(0,e.createVNode)(1,"b",null,C.orderedby,0)]}),(0,e.createComponentVNode)(2,s.Box,{italic:!0,children:["Reason: ",C.comment]})]})},C.ordernum)})})]})}},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),s=n(98595),y=n(79140),V=S(n(83331)),k=S(n(52754));function S(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 v};var l,v={},b=Object.prototype,N=b.hasOwnProperty,h=Object.defineProperty||function(fe,Z,J){fe[Z]=J.value},C=typeof Symbol=="function"?Symbol:{},g=C.iterator||"@@iterator",x=C.asyncIterator||"@@asyncIterator",B=C.toStringTag||"@@toStringTag";function L(fe,Z,J){return Object.defineProperty(fe,Z,{value:J,enumerable:!0,configurable:!0,writable:!0}),fe[Z]}try{L({},"")}catch(fe){L=function(J,te,ee){return J[te]=ee}}function w(fe,Z,J,te){var ee=Z&&Z.prototype instanceof F?Z:F,le=Object.create(ee.prototype),ye=new Le(te||[]);return h(le,"_invoke",{value:he(fe,J,ye)}),le}function A(fe,Z,J){try{return{type:"normal",arg:fe.call(Z,J)}}catch(te){return{type:"throw",arg:te}}}v.wrap=w;var T="suspendedStart",E="suspendedYield",O="executing",P="completed",R={};function F(){}function j(){}function W(){}var H={};L(H,g,function(){return this});var z=Object.getPrototypeOf,$=z&&z(z(Ae([])));$&&$!==b&&N.call($,g)&&(H=$);var G=W.prototype=F.prototype=Object.create(H);function ne(fe){["next","throw","return"].forEach(function(Z){L(fe,Z,function(J){return this._invoke(Z,J)})})}function Q(fe,Z){function J(ee,le,ye,me){var Te=A(fe[ee],fe,le);if(Te.type!=="throw"){var M=Te.arg,X=M.value;return X&&typeof X=="object"&&N.call(X,"__await")?Z.resolve(X.__await).then(function(ae){J("next",ae,ye,me)},function(ae){J("throw",ae,ye,me)}):Z.resolve(X).then(function(ae){M.value=ae,ye(M)},function(ae){return J("throw",ae,ye,me)})}me(Te.arg)}var te;h(this,"_invoke",{value:function(){function ee(le,ye){function me(){return new Z(function(Te,M){J(le,ye,Te,M)})}return te=te?te.then(me,me):me()}return ee}()})}function he(fe,Z,J){var te=T;return function(ee,le){if(te===O)throw Error("Generator is already running");if(te===P){if(ee==="throw")throw le;return{value:l,done:!0}}for(J.method=ee,J.arg=le;;){var ye=J.delegate;if(ye){var me=Ve(ye,J);if(me){if(me===R)continue;return me}}if(J.method==="next")J.sent=J._sent=J.arg;else if(J.method==="throw"){if(te===T)throw te=P,J.arg;J.dispatchException(J.arg)}else J.method==="return"&&J.abrupt("return",J.arg);te=O;var Te=A(fe,Z,J);if(Te.type==="normal"){if(te=J.done?P:E,Te.arg===R)continue;return{value:Te.arg,done:J.done}}Te.type==="throw"&&(te=P,J.method="throw",J.arg=Te.arg)}}}function Ve(fe,Z){var J=Z.method,te=fe.iterator[J];if(te===l)return Z.delegate=null,J==="throw"&&fe.iterator.return&&(Z.method="return",Z.arg=l,Ve(fe,Z),Z.method==="throw")||J!=="return"&&(Z.method="throw",Z.arg=new TypeError("The iterator does not provide a '"+J+"' method")),R;var ee=A(te,fe.iterator,Z.arg);if(ee.type==="throw")return Z.method="throw",Z.arg=ee.arg,Z.delegate=null,R;var le=ee.arg;return le?le.done?(Z[fe.resultName]=le.value,Z.next=fe.nextLoc,Z.method!=="return"&&(Z.method="next",Z.arg=l),Z.delegate=null,R):le:(Z.method="throw",Z.arg=new TypeError("iterator result is not an object"),Z.delegate=null,R)}function Ne(fe){var Z={tryLoc:fe[0]};1 in fe&&(Z.catchLoc=fe[1]),2 in fe&&(Z.finallyLoc=fe[2],Z.afterLoc=fe[3]),this.tryEntries.push(Z)}function Be(fe){var Z=fe.completion||{};Z.type="normal",delete Z.arg,fe.completion=Z}function Le(fe){this.tryEntries=[{tryLoc:"root"}],fe.forEach(Ne,this),this.reset(!0)}function Ae(fe){if(fe||fe===""){var Z=fe[g];if(Z)return Z.call(fe);if(typeof fe.next=="function")return fe;if(!isNaN(fe.length)){var J=-1,te=function(){function ee(){for(;++J=0;--ee){var le=this.tryEntries[ee],ye=le.completion;if(le.tryLoc==="root")return te("end");if(le.tryLoc<=this.prev){var me=N.call(le,"catchLoc"),Te=N.call(le,"finallyLoc");if(me&&Te){if(this.prev=0;--te){var ee=this.tryEntries[te];if(ee.tryLoc<=this.prev&&N.call(ee,"finallyLoc")&&this.prev=0;--J){var te=this.tryEntries[J];if(te.finallyLoc===Z)return this.complete(te.completion,te.afterLoc),Be(te),R}}return fe}(),catch:function(){function fe(Z){for(var J=this.tryEntries.length-1;J>=0;--J){var te=this.tryEntries[J];if(te.tryLoc===Z){var ee=te.completion;if(ee.type==="throw"){var le=ee.arg;Be(te)}return le}}throw Error("illegal catch attempt")}return fe}(),delegateYield:function(){function fe(Z,J,te){return this.delegate={iterator:Ae(Z),resultName:J,nextLoc:te},this.method==="next"&&(this.arg=l),R}return fe}()},v}function i(l,v,b,N,h,C,g){try{var x=l[C](g),B=x.value}catch(L){return void b(L)}x.done?v(B):Promise.resolve(B).then(N,h)}function c(l){return function(){var v=this,b=arguments;return new Promise(function(N,h){var C=l.apply(v,b);function g(B){i(C,N,h,g,x,"next",B)}function x(B){i(C,N,h,g,x,"throw",B)}g(void 0)})}}function f(l,v){l.prototype=Object.create(v.prototype),l.prototype.constructor=l,u(l,v)}function u(l,v){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,N){return b.__proto__=N,b},u(l,v)}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"}},m=r.Changelog=function(l){function v(){var N;return N=l.call(this)||this,N.getData=function(h,C){C===void 0&&(C=1);var g=(0,t.useBackend)(N.context),x=g.act,B=N,L=6;if(C>L)return N.setData("Failed to load data after "+L+" attempts");x("get_month",{date:h}),fetch((0,y.resolveAsset)(h+".yml")).then(function(){var w=c(p().mark(function(){function A(T){var E,O,P;return p().wrap(function(){function R(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,T.text();case 2:E=F.sent,O=/^Cannot find/,O.test(E)?(P=50+C*50,B.setData("Loading changelog data"+".".repeat(C+3)),setTimeout(function(){B.getData(h,C+1)},P)):B.setData(k.default.load(E,{schema:k.default.CORE_SCHEMA}));case 5:case"end":return F.stop()}}return R}(),A)}return A}()));return function(A){return w.apply(this,arguments)}}())},N.state={data:"Loading changelog data...",selectedDate:"",selectedIndex:0},N.dateChoices=[],N}f(v,l);var b=v.prototype;return b.setData=function(){function N(h){this.setState({data:h})}return N}(),b.setSelectedDate=function(){function N(h){this.setState({selectedDate:h})}return N}(),b.setSelectedIndex=function(){function N(h){this.setState({selectedIndex:h})}return N}(),b.componentDidMount=function(){function N(){var h=this,C=(0,t.useBackend)(this.context),g=C.data.dates,x=g===void 0?[]:g;x&&(x.forEach(function(B){return h.dateChoices.push((0,V.default)(B,"mmmm yyyy",!0))}),this.setSelectedDate(this.dateChoices[0]),this.getData(x[0]))}return N}(),b.render=function(){function N(){var h=this,C=this.state,g=C.data,x=C.selectedDate,B=C.selectedIndex,L=(0,t.useBackend)(this.context),w=L.data.dates,A=this.dateChoices,T=A.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 F(){var j=B-1;return h.setData("Loading changelog data..."),h.setSelectedIndex(j),h.setSelectedDate(A[j]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),h.getData(w[j])}return F}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{displayText:x,options:A,onSelected:function(){function F(j){var W=A.indexOf(j);return h.setData("Loading changelog data..."),h.setSelectedIndex(W),h.setSelectedDate(j),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),h.getData(w[W])}return F}(),selected:x,width:"150px"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:B===A.length-1,icon:"chevron-right",onClick:function(){function F(){var j=B+1;return h.setData("Loading changelog data..."),h.setSelectedIndex(j),h.setSelectedDate(A[j]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),h.getData(w[j])}return F}()})})]}),E=(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),T]}),O=(0,e.createComponentVNode)(2,o.Section,{children:[T,(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)]}),P=/#\d+/,R=typeof g=="object"&&Object.keys(g).length>0&&Object.entries(g).reverse().map(function(F){var j=F[0],W=F[1];return(0,e.createComponentVNode)(2,o.Section,{title:(0,V.default)(j,"d mmmm yyyy",!0),children:(0,e.createComponentVNode)(2,o.Box,{ml:3,children:Object.entries(W).map(function(H){var z=H[0],$=H[1];return(0,e.createFragment)([(0,e.createVNode)(1,"h4",null,[z,(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 ne=Object.keys(G)[0],Q=G[ne],he=Q.match(P),Ve=(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 he!==null&&(0,e.createComponentVNode)(2,o.Table.Row,{children:[Ve,(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:(0,e.createVNode)(1,"a",null,[" ",Q.charAt(0).toUpperCase()+Q.slice(1)," "],0,{href:"https://github.com/ss220-space/Paradise/pull/"+he[0].substring(1)})})]},ne+Q)||(0,e.createComponentVNode)(2,o.Table.Row,{children:[Ve,(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:Q})]},ne+Q)})})})],4,z)})})},j)});return(0,e.createComponentVNode)(2,s.Window,{title:"Changelog",width:675,height:650,children:(0,e.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:[E,R,typeof g=="string"&&(0,e.createVNode)(1,"p",null,g,0),O]})})}return N}(),v}(e.Component)},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),s=n(98595),y=[1,5,10,20,30,50,100],V=[1,5,10],k=r.ChemDispenser=function(){function c(f,u){var d=(0,a.useBackend)(u),m=d.act,l=d.data,v=l.chemicals;return(0,e.createComponentVNode)(2,s.Window,{width:460,height:400+v.length*8,children:(0,e.createComponentVNode)(2,s.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i)]})})})}return c}(),S=function(f,u){var d=(0,a.useBackend)(u),m=d.act,l=d.data,v=l.amount,b=l.energy,N=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:N,ranges:{good:[N*.5,1/0],average:[N*.25,N*.5],bad:[-1/0,N*.25]},children:[b," / ",N," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:y.map(function(h,C){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:v===h,content:h,onClick:function(){function g(){return m("amount",{amount:h})}return g}()})},C)})})})]})})})},p=function(f,u){for(var d=(0,a.useBackend)(u),m=d.act,l=d.data,v=l.chemicals,b=v===void 0?[]:v,N=[],h=0;h<(b.length+1)%3;h++)N.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(C,g){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:C.title,style:{"margin-left":"2px"},onClick:function(){function x(){return m("dispense",{reagent:C.id})}return x}()},g)}),N.map(function(C,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},g)})]})})},i=function(f,u){var d=(0,a.useBackend)(u),m=d.act,l=d.data,v=l.isBeakerLoaded,b=l.beakerCurrentVolume,N=l.beakerMaxVolume,h=l.beakerContents,C=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:[!!v&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[b," / ",N," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!v,onClick:function(){function g(){return m("ejectBeaker")}return g}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:v,beakerContents:C,buttons:function(){function g(x){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function B(){return m("remove",{reagent:x.id,amount:-1})}return B}()}),V.map(function(B,L){return(0,e.createComponentVNode)(2,t.Button,{content:B,onClick:function(){function w(){return m("remove",{reagent:x.id,amount:B})}return w}()},L)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function B(){return m("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 m("remove",{reagent:x.id,amount:-2})}return B}()})],0)}return g}()})})})}},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),s=n(85870),y=n(98595),V=r.ChemHeater=function(){function p(i,c){return(0,e.createComponentVNode)(2,y.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S)]})})})}return p}(),k=function(i,c){var f=(0,t.useBackend)(c),u=f.act,d=f.data,m=d.targetTemp,l=d.targetTempReached,v=d.autoEject,b=d.isActive,N=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:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function C(){return u("toggle_autoeject")}return C}()}),(0,e.createComponentVNode)(2,o.Button,{content:b?"On":"Off",icon:"power-off",selected:b,disabled:!h,onClick:function(){function C(){return u("toggle_on")}return C}()})],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)(m,0),minValue:0,maxValue:1e3,onDrag:function(){function C(g,x){return u("adjust_temperature",{target:x})}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:l?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:N,format:function(){function C(g){return(0,a.toFixed)(g)+" K"}return C}()})||"\u2014"})]})})})},S=function(i,c){var f=(0,t.useBackend)(c),u=f.act,d=f.data,m=d.isBeakerLoaded,l=d.beakerCurrentVolume,v=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:!!m&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[l," / ",v," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function N(){return u("eject_beaker")}return N}()})]}),children:(0,e.createComponentVNode)(2,s.BeakerContents,{beakerLoaded:m,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),s=n(85870),y=n(3939),V=n(35840),k=["icon"];function S(B,L){if(B==null)return{};var w={};for(var A in B)if({}.hasOwnProperty.call(B,A)){if(L.includes(A))continue;w[A]=B[A]}return w}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(w,A){return w.__proto__=A,w},i(B,L)}var c=[1,5,10],f=function(L,w){var A=(0,a.useBackend)(w),T=A.act,E=A.data,O=L.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:E.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),!E.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:E.printing?"spinner":"print",disabled:E.printing,iconSpin:!!E.printing,ml:"0.5rem",content:"Print",onClick:function(){function P(){return T("print",{idx:O.idx,beaker:L.args.beaker})}return P}()})]})})})})},u=function(B){return B[B.ToDisposals=0]="ToDisposals",B[B.ToBeaker=1]="ToBeaker",B}(u||{}),d=r.ChemMaster=function(){function B(L,w){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,y.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,x)]})})]})}return B}(),m=function(L,w){var A=(0,a.useBackend)(w),T=A.act,E=A.data,O=E.beaker,P=E.beaker_reagents,R=E.buffer_reagents,F=R.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:F?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!O,content:"Eject and Clear Buffer",onClick:function(){function j(){return T("eject")}return j}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!O,content:"Eject and Clear Buffer",onClick:function(){function j(){return T("eject")}return j}()}),children:O?(0,e.createComponentVNode)(2,s.BeakerContents,{beakerLoaded:!0,beakerContents:P,buttons:function(){function j(W,H){return(0,e.createComponentVNode)(2,t.Box,{mb:H0?(0,e.createComponentVNode)(2,s.BeakerContents,{beakerLoaded:!0,beakerContents:P,buttons:function(){function R(F,j){return(0,e.createComponentVNode)(2,t.Box,{mb:j0&&(F=R.map(function(j){var W=j.id,H=j.sprite;return(0,e.createComponentVNode)(2,C,{icon:H,color:"translucent",onClick:function(){function z(){return T("set_sprite_style",{production_mode:O,style:W})}return z}(),selected:P===W},W)})),(0,e.createComponentVNode)(2,h,{productionData:L.productionData,children:F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:F})})},x=function(L,w){var A=(0,a.useBackend)(w),T=A.act,E=A.data,O=E.loaded_pill_bottle_style,P=E.containerstyles,R=E.loaded_pill_bottle,F={width:"20px",height:"20px"},j=P.map(function(W){var H=W.color,z=W.name,$=O===H;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:F.width,height:F.height},onClick:function(){function G(){return T("set_container_style",{style:H})}return G}(),icon:$&&"check",iconStyle:{position:"relative","z-index":1},tooltip:z,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:F.width,height:F.height,"background-color":H,opacity:.6,filter:"alpha(opacity=60)"}})]},H)});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:!R,content:"Eject Container",onClick:function(){function W(){return T("ejectp")}return W}()}),children:R?(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:F.width,height:F.height},icon:"tint-slash",onClick:function(){function W(){return T("clear_container_style")}return W}(),selected:!O,tooltip:"Default",tooltipPosition:"top"}),j]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,y.modalRegisterBodyOverride)("analyze",f)},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),s=n(76910),y=n(3939),V=n(98595),k=n(79140),S=function(v,b){var N=(0,t.useBackend)(b),h=N.act,C=N.data,g=v.args,x=g.activerecord,B=g.realname,L=g.health,w=g.unidentity,A=g.strucenzymes,T=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:T.length>1?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:s.COLORS.damageType.oxy,inline:!0,children:T[0]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:s.COLORS.damageType.toxin,inline:!0,children:T[2]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:s.COLORS.damageType.brute,inline:!0,children:T[3]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:s.COLORS.damageType.burn,inline:!0,children:T[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:w}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:A}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disk",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!C.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){function E(){return h("disk",{option:"load"})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!C.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){function E(){return h("disk",{option:"save",savetype:"ui"})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!C.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){function E(){return h("disk",{option:"save",savetype:"ue"})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!C.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){function E(){return h("disk",{option:"save",savetype:"se"})}return E}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!C.podready,icon:"user-plus",content:"Clone",onClick:function(){function E(){return h("clone",{ref:x})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"Delete",onClick:function(){function E(){return h("del_rec")}return E}()})]})]})})},p=r.CloningConsole=function(){function l(v,b){var N=(0,t.useBackend)(b),h=N.act,C=N.data,g=C.menu;return(0,y.modalRegisterBodyOverride)("view_rec",S),(0,e.createComponentVNode)(2,V.Window,{width:640,height:520,children:[(0,e.createComponentVNode)(2,y.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,V.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,m),(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(v,b){var N=(0,t.useBackend)(b),h=N.act,C=N.data,g=C.menu;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:g===1,icon:"home",onClick:function(){function x(){return h("menu",{num:1})}return x}(),children:"Main"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:g===2,icon:"folder",onClick:function(){function x(){return h("menu",{num:2})}return x}(),children:"Records"})]})},c=function(v,b){var N=(0,t.useBackend)(b),h=N.data,C=h.menu,g;return C===1?g=(0,e.createComponentVNode)(2,f):C===2&&(g=(0,e.createComponentVNode)(2,u)),g},f=function(v,b){var N=(0,t.useBackend)(b),h=N.act,C=N.data,g=C.loading,x=C.scantemp,B=C.occupant,L=C.locked,w=C.can_brainscan,A=C.scan_mode,T=C.numberofpods,E=C.pods,O=C.selected_pod,P=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:P,icon:P?"toggle-on":"toggle-off",content:P?"Engaged":"Disengaged",onClick:function(){function R(){return h("lock")}return R}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:P||!B,icon:"user-slash",content:"Eject Occupant",onClick:function(){function R(){return h("eject")}return R}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:g?(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})}),!!w&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scan Mode",children:(0,e.createComponentVNode)(2,o.Button,{icon:A?"brain":"male",content:A?"Brain":"Body",onClick:function(){function R(){return h("toggle_mode")}return R}()})})]}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B||g,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){function R(){return h("scan")}return R}()})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Pods",level:"2",children:T?E.map(function(R,F){var j;return R.status==="cloning"?j=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:R.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)(R.progress,0)+"%"})}):R.status==="mess"?j=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):j=(0,e.createComponentVNode)(2,o.Button,{selected:O===R.pod,icon:O===R.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){function W(){return h("selectpod",{ref:R.pod})}return W}()}),(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_"+R.status+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["Pod #",F+1]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:R.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:R.biomass>=150?"circle":"circle-o"}),"\xA0",R.biomass]}),j]},F)}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},u=function(v,b){var N=(0,t.useBackend)(b),h=N.act,C=N.data,g=C.records;return g.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:g.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(v,b){var N,h=(0,t.useBackend)(b),C=h.act,g=h.data,x=g.temp;if(!(!x||!x.text||x.text.length<=0)){var B=(N={},N[x.style]=!0,N);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 C("cleartemp")}return L}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},m=function(v,b){var N=(0,t.useBackend)(b),h=N.act,C=N.data,g=C.scanner,x=C.numberofpods,B=C.autoallowed,L=C.autoprocess,w=C.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 A(){return h("autoprocess",{on:L?0:1})}return A}()})],4),(0,e.createComponentVNode)(2,o.Button,{disabled:!w,icon:"eject",content:"Eject Disk",onClick:function(){function A(){return h("disk",{option:"eject"})}return A}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanner",children:g?(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!"})})]})})}},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),s=r.CommunicationsComputer=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.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 f="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 m=i.emagged?"Message [UNKNOWN]":"Message CentComm",l="Request Authentication Codes";i.cc_cooldown>0&&(m+=" ("+i.cc_cooldown+"s)",l+=" ("+i.cc_cooldown+"s)");var v=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)}),N=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)}),C;if(i.current_message_title)C=(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 g=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)});C=(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:g})})}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:v}),(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:m,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:m,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:f,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:N}),(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,C]})});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 y}()},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),s=n(73379),y=n(98595);function V(b,N){b.prototype=Object.create(N.prototype),b.prototype.constructor=b,k(b,N)}function k(b,N){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,C){return h.__proto__=C,h},k(b,N)}var S={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(N,h){var C=(0,t.useBackend)(h),g=C.act,x=C.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 T(){}return T}()})}):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,f)}),(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,m,{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 T(){return g("complete_load_animation")}return T}()})});var L=(0,t.useLocalState)(h,"viewingPhoto",""),w=L[0],A=L[1];return(0,e.createComponentVNode)(2,y.Window,{width:500,height:600,theme:"syndicate",children:[w&&(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,y.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:B})})]})}return b}(),c=function(N,h){var C=(0,t.useBackend)(h),g=C.act,x=C.data,B=x.tc_available,L=x.tc_paid_out,w=x.completed_contracts,A=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:[A," Rep"]})},N,{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 T(){return g("claim")}return T}()})]})}),(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:w})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},f=function(N,h){var C=(0,t.useBackend)(h),g=C.act,x=C.data,B=x.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},N,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===1,onClick:function(){function L(){return g("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 g("page",{page:2})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},u=function(N,h){var C=(0,t.useBackend)(h),g=C.act,x=C.data,B=x.contracts,L=x.contract_active,w=x.can_extract,A=!!L&&B.filter(function(R){return R.status===1})[0],T=A&&A.time_left>0,E=(0,t.useLocalState)(h,"viewingPhoto",""),O=E[0],P=E[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:!w||T,icon:"parachute-box",content:["Call Extraction",T&&(0,e.createComponentVNode)(2,s.Countdown,{timeLeft:A.time_left,format:function(){function R(F,j){return" ("+j.substr(3)+")"}return R}()})],onClick:function(){function R(){return g("extract")}return R}()})},N,{children:B.slice().sort(function(R,F){return R.status===1?-1:F.status===1?1:R.status-F.status}).map(function(R){var F;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:R.status===1&&"good",children:R.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:R.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function j(){return P("target_photo_"+R.uid+".png")}return j}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!S[R.status]&&(0,e.createComponentVNode)(2,o.Box,{color:S[R.status][1],display:"inline-block",mt:R.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:S[R.status][0]}),R.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function j(){return g("abort")}return j}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[R.fluff_message,!!R.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 ",R.completed_time]}),!!R.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."]}),!!R.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: ",R.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(R)]}),(F=R.difficulties)==null?void 0:F.map(function(j,W){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!L,content:j.name+" ("+j.reward+" TC)",onClick:function(){function H(){return g("activate",{uid:R.uid,difficulty:W+1})}return H}()},W)}),!!R.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[R.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(R.objective.rewards.tc||0)+" TC",",\xA0",(R.objective.rewards.credits||0)+" Credits",")"]})]})]})},R.uid)})})))},d=function(N){if(!(!N.objective||N.status>1)){var h=N.objective.locs.user_area_id,C=N.objective.locs.user_coords,g=N.objective.locs.target_area_id,x=N.objective.locs.target_coords,B=h===g;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]-C[1],x[0]-C[0])),lineHeight:B?null:"0.85",size:"1.5"})})}},m=function(N,h){var C=(0,t.useBackend)(h),g=C.act,x=C.data,B=x.rep,L=x.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},N,{children:L.map(function(w){return(0,e.createComponentVNode)(2,o.Section,{title:w.name,buttons:w.refundable&&(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Refund ("+w.cost+" Rep)",onClick:function(){function A(){return g("refund",{uid:w.uid})}return A}()}),children:[w.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:w.stock===0?"bad":"good",ml:"0.5rem",children:[w.stock," in stock"]})]},w.uid)})})))},l=function(b){function N(C){var g;return g=b.call(this,C)||this,g.timer=null,g.state={currentIndex:0,currentDisplay:[]},g}V(N,b);var h=N.prototype;return h.tick=function(){function C(){var g=this.props,x=this.state;if(x.currentIndex<=g.allMessages.length){this.setState(function(L){return{currentIndex:L.currentIndex+1}});var B=x.currentDisplay;B.push(g.allMessages[x.currentIndex])}else clearTimeout(this.timer),setTimeout(g.onFinished,g.finishedTimeout)}return C}(),h.componentDidMount=function(){function C(){var g=this,x=this.props.linesPerSecond,B=x===void 0?2.5:x;this.timer=setInterval(function(){return g.tick()},1e3/B)}return C}(),h.componentWillUnmount=function(){function C(){clearTimeout(this.timer)}return C}(),h.render=function(){function C(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(g){return(0,e.createFragment)([g,(0,e.createVNode)(1,"br")],0,g)})})}return C}(),N}(e.Component),v=function(N,h){var C=(0,t.useLocalState)(h,"viewingPhoto",""),g=C[0],x=C[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:g}),(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),s=r.ConveyorSwitch=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,c=i.slowFactor,f=i.minSpeed,u=i.maxSpeed,d=i.oneWay,m=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:m>0?"forward":m<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:f,maxValue:u,step:.1,format:function(){function l(v){return v+"s."}return l}(),onChange:function(){function l(v,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 y}()},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),s=n(36036),y=n(36352),V=n(76910),k=n(98595),S=function(v,b){return v.dead?"Deceased":parseInt(v.health,10)<=b?"Critical":parseInt(v.stat,10)===1?"Unconscious":"Living"},p=function(v,b){return v.dead?"red":parseInt(v.health,10)<=b?"orange":parseInt(v.stat,10)===1?"blue":"green"},i=r.CrewMonitor=function(){function l(v,b){var N=(0,o.useBackend)(b),h=N.act,C=N.data,g=(0,o.useLocalState)(b,"tabIndex",C.IndexToggler),x=g[0],B=g[1],L=function(){function w(A){switch(A){case 0:return(0,e.createComponentVNode)(2,u);case 1:return(0,e.createComponentVNode)(2,d);case 2:return(0,e.createComponentVNode)(2,f);case 3:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return w}();return(0,e.createComponentVNode)(2,k.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,s.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,s.Tabs,{children:[C.isBS?(0,e.createComponentVNode)(2,s.Tabs.Tab,{selected:x===0,onClick:function(){function w(){return B(0)}return w}(),children:[(0,e.createComponentVNode)(2,s.Icon,{name:"table"})," Command Data View"]},"ComDataView"):null,C.isBP?(0,e.createComponentVNode)(2,s.Tabs.Tab,{selected:x===1,onClick:function(){function w(){return B(1)}return w}(),children:[(0,e.createComponentVNode)(2,s.Icon,{name:"table"})," Security Data View"]},"SecDataView"):null,(0,e.createComponentVNode)(2,s.Tabs.Tab,{selected:x===2,onClick:function(){function w(){return B(2)}return w}(),children:[(0,e.createComponentVNode)(2,s.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,s.Tabs.Tab,{selected:x===3,onClick:function(){function w(){return B(3)}return w}(),children:[(0,e.createComponentVNode)(2,s.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),L(x)]})})})}return l}(),c=function(v){var b=v.crewData,N=v.context,h=(0,o.useBackend)(N),C=h.act,g=h.data,x=(0,a.sortBy)(function(T){return T.name})(b||[]),B=(0,o.useLocalState)(N,"search",""),L=B[0],w=B[1],A=(0,t.createSearch)(L,function(T){return T.name+"|"+T.assignment+"|"+T.area});return(0,e.createComponentVNode)(2,s.Box,{children:[(0,e.createComponentVNode)(2,s.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function T(E,O){return w(O)}return T}()}),(0,e.createComponentVNode)(2,s.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,s.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,s.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,s.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,s.Table.Cell,{children:"Location"})]}),x.filter(A).map(function(T){return(0,e.createComponentVNode)(2,s.Table.Row,{bold:!!T.is_command,children:[(0,e.createComponentVNode)(2,y.TableCell,{children:[T.name," (",T.assignment,")"]}),(0,e.createComponentVNode)(2,y.TableCell,{children:[(0,e.createComponentVNode)(2,s.Box,{inline:!0,color:p(T,g.critThreshold),children:S(T,g.critThreshold)}),T.sensor_type>=2?(0,e.createComponentVNode)(2,s.Box,{inline:!0,children:["(",(0,e.createComponentVNode)(2,s.Box,{inline:!0,color:V.COLORS.damageType.oxy,children:T.oxy}),"|",(0,e.createComponentVNode)(2,s.Box,{inline:!0,color:V.COLORS.damageType.toxin,children:T.tox}),"|",(0,e.createComponentVNode)(2,s.Box,{inline:!0,color:V.COLORS.damageType.burn,children:T.fire}),"|",(0,e.createComponentVNode)(2,s.Box,{inline:!0,color:V.COLORS.damageType.brute,children:T.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,y.TableCell,{children:T.sensor_type===3?g.isAI?(0,e.createComponentVNode)(2,s.Button,{fluid:!0,icon:"location-arrow",content:T.area+" ("+T.x+", "+T.y+")",onClick:function(){function E(){return C("track",{track:T.ref})}return E}()}):T.area+" ("+T.x+", "+T.y+")":"Not Available"})]},T.ref)})]})]})},f=function(v,b){var N=(0,o.useBackend)(b),h=N.act,C=N.data,g=C.crewmembers||[];return(0,e.createComponentVNode)(2,c,{crewData:g,context:b})},u=function(v,b){var N=(0,o.useBackend)(b),h=N.act,C=N.data,g=C.crewmembers.filter(function(x){return x.is_command})||[];return(0,e.createComponentVNode)(2,c,{crewData:g,context:b})},d=function(v,b){var N=(0,o.useBackend)(b),h=N.act,C=N.data,g=C.crewmembers.filter(function(x){return x.is_security})||[];return(0,e.createComponentVNode)(2,c,{crewData:g,context:b})},m=function(v,b){var N=(0,o.useBackend)(b),h=N.act,C=N.data,g=C.stationLevelNum,x=C.stationLevelName,B=(0,o.useLocalState)(b,"zoom",1),L=B[0],w=B[1],A=(0,o.useLocalState)(b,"z_current",g[0]),T=A[0],E=A[1],O=function(j){return j.is_command&&C.isBS||j.is_security&&C.isBP?"square":"circle"},P=function(j){return j.is_command&&C.isBS||j.is_security&&C.isBP?10:6},R=function(j,W){return j.is_command&&C.isBS||j.is_security&&C.isBP?j.dead?"red":parseInt(j.health,10)<=W?"orange":parseInt(j.stat,10)===1?"blue":"violet":p(j,W)};return(0,e.createComponentVNode)(2,s.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,s.NanoMap,{onZoom:function(){function F(j){return w(j)}return F}(),zLevels:g,zNames:x,z_current:T,setZCurrent:E,children:C.crewmembers.filter(function(F){return F.sensor_type===3}).map(function(F){return(0,e.createComponentVNode)(2,s.NanoMap.Marker,{x:F.x,y:F.y,z:F.z,z_current:T,zoom:L,icon:O(F),size:P(F),tooltip:F.name+" ("+F.assignment+")",color:R(F,C.critThreshold),onClick:function(){function j(){C.isAI&&h("track",{track:F.ref})}return j}()},F.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),s=n(98595),y=[{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"}],V=[["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,f){return(0,e.createComponentVNode)(2,s.Window,{width:520,height:490,children:(0,e.createComponentVNode)(2,s.Window.Content,{children:(0,e.createComponentVNode)(2,S)})})}return i}(),S=function(c,f){var u=(0,t.useBackend)(f),d=u.act,m=u.data,l=m.isOperating,v=m.hasOccupant,b=m.occupant,N=b===void 0?[]:b,h=m.cellTemperature,C=m.cellTemperatureStatus,g=m.isBeakerLoaded,x=m.auto_eject_healthy,B=m.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:!v,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"}),children:v?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",children:N.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:N.health,max:N.maxHealth,value:N.health/N.maxHealth,color:N.health>0?"good":"average",children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(N.health)})})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",color:V[N.stat][0],children:V[N.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(N.bodyTemperature)})," ","K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),y.map(function(L){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.label,children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:N[L.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(N[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:!g,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:C,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,f){var u=(0,t.useBackend)(f),d=u.act,m=u.data,l=m.isBeakerLoaded,v=m.beakerLabel,b=m.beakerVolume;return l?(0,e.createFragment)([v?"\xAB"+v+"\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 N(h){var C=Math.round(h),g=(0,a.declensionRu)(C,"\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)(C,"\u0435\u0434\u0438\u043D\u0438\u0446\u0430","\u0435\u0434\u0438\u043D\u0438\u0446\u044B","\u0435\u0434\u0438\u043D\u0438\u0446");return g+" "+C+" "+x}return N}()}):"\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),s=n(25328),y=r.CryopodConsole=function(){function S(p,i){var c=(0,a.useBackend)(i),f=c.data,u=f.account_name,d=f.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,V),!!d&&(0,e.createComponentVNode)(2,k)]})})}return S}(),V=function(p,i){var c=(0,a.useBackend)(i),f=c.data,u=f.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,m){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:d.rank},m)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},k=function(p,i){var c=(0,a.useBackend)(i),f=c.act,u=c.data,d=u.frozen_items,m=function(v){var b=v.toString();return b.startsWith("the ")&&(b=b.slice(4,b.length)),(0,s.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:m(l.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function v(){return f("one_item",{item:l.uid})}return v}()})},l)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function l(){return f("all_items")}return l}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},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),s=n(3939),y=[["good","Alive"],["average","Critical"],["bad","DEAD"]],V=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],k=[5,10,20,30,50],S=r.DNAModifier=function(){function h(C,g){var x=(0,a.useBackend)(g),B=x.act,L=x.data,w=L.irradiating,A=L.dnaBlockSize,T=L.occupant;g.dnaBlockSize=A,g.isDNAInvalid=!T.isViableSubject||!T.uniqueIdentity||!T.structuralEnzymes;var E;return w&&(E=(0,e.createComponentVNode)(2,b,{duration:w})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,s.ComplexModal),E,(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(C,g){var x=(0,a.useBackend)(g),B=x.act,L=x.data,w=L.locked,A=L.hasOccupant,T=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:!A,selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Engaged":"Disengaged",onClick:function(){function E(){return B("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||w,icon:"user-slash",content:"Eject",onClick:function(){function E(){return B("ejectOccupant")}return E}()})],4),children:A?(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:T.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:T.minHealth,max:T.maxHealth,value:T.health/T.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:y[T.stat][0],children:y[T.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),g.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:T.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(C,g){var x=(0,a.useBackend)(g),B=x.act,L=x.data,w=L.selectedMenuKey,A=L.hasOccupant,T=L.occupant;if(A){if(g.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 E;return w==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u)],4):w==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,u)],4):w==="buffer"?E=(0,e.createComponentVNode)(2,d):w==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,v)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:V.map(function(O,P){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:O[2],selected:w===O[0],onClick:function(){function R(){return B("selectMenuKey",{key:O[0]})}return R}(),children:O[1]},P)})}),E]})},c=function(C,g){var x=(0,a.useBackend)(g),B=x.act,L=x.data,w=L.selectedUIBlock,A=L.selectedUISubBlock,T=L.selectedUITarget,E=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,N,{dnaString:E.uniqueIdentity,selectedBlock:w,selectedSubblock:A,blockSize:g.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:T,format:function(){function O(P){return P.toString(16).toUpperCase()}return O}(),ml:"0",onChange:function(){function O(P,R){return B("changeUITarget",{value:R})}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}()})]})},f=function(C,g){var x=(0,a.useBackend)(g),B=x.act,L=x.data,w=L.selectedSEBlock,A=L.selectedSESubBlock,T=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,N,{dnaString:T.structuralEnzymes,selectedBlock:w,selectedSubblock:A,blockSize:g.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return B("pulseSERadiation")}return E}()})]})},u=function(C,g){var x=(0,a.useBackend)(g),B=x.act,L=x.data,w=L.radiationIntensity,A=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:w,popUpPosition:"right",ml:"0",onChange:function(){function T(E,O){return B("radiationIntensity",{value:O})}return T}()})}),(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:A,popUpPosition:"right",ml:"0",onChange:function(){function T(E,O){return B("radiationDuration",{value:O})}return T}()})})]}),(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 T(){return B("pulseRadiation")}return T}()})]})},d=function(C,g){var x=(0,a.useBackend)(g),B=x.act,L=x.data,w=L.buffers,A=w.map(function(T,E){return(0,e.createComponentVNode)(2,m,{id:E+1,name:"Buffer "+(E+1),buffer:T},E)});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:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,l)})]})},m=function(C,g){var x=(0,a.useBackend)(g),B=x.act,L=x.data,w=C.id,A=C.name,T=C.buffer,E=L.isInjectorReady,O=A+(T.data?" - "+T.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:!T.data,icon:"trash",content:"Clear",onClick:function(){function P(){return B("bufferOption",{option:"clear",id:w})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T.data,icon:"pen",content:"Rename",onClick:function(){function P(){return B("bufferOption",{option:"changeLabel",id:w})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T.data||!L.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function P(){return B("bufferOption",{option:"saveDisk",id:w})}return P}()})],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 P(){return B("bufferOption",{option:"saveUI",id:w})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"saveUIAndUE",id:w})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"saveSE",id:w})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!L.hasDisk||!L.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"loadDisk",id:w})}return P}()})]}),!!T.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:T.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[T.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!T.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"createInjector",id:w})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"createInjector",id:w,block:1})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"transfer",id:w})}return P}()})]})],4)]}),!T.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},l=function(C,g){var x=(0,a.useBackend)(g),B=x.act,L=x.data,w=L.hasDisk,A=L.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!w||!A.data,icon:"trash",content:"Wipe",onClick:function(){function T(){return B("wipeDisk")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function T(){return B("ejectDisk")}return T}()})],4),children:w?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:A.label?A.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.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."]})})},v=function(C,g){var x=(0,a.useBackend)(g),B=x.act,L=x.data,w=L.isBeakerLoaded,A=L.beakerVolume,T=L.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function E(){return B("ejectBeaker")}return E}()}),children:w?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[k.map(function(E,O){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function P(){return B("injectRejuvenators",{amount:E})}return P}()},O)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return B("injectRejuvenators",{amount:A})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:T||"No label"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[A," unit",A===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(C,g){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 "),C.duration,(0,e.createTextVNode)(" second"),C.duration===1?"":"s"],0)})]})},N=function(C,g){for(var x=(0,a.useBackend)(g),B=x.act,L=x.data,w=C.dnaString,A=C.selectedBlock,T=C.selectedSubblock,E=C.blockSize,O=C.action,P=w.split(""),R=0,F=[],j=function(){for(var z=W/E+1,$=[],G=function(){var he=ne+1;$.push((0,e.createComponentVNode)(2,t.Button,{selected:A===z&&T===he,content:P[W+ne],mb:"0",onClick:function(){function Ve(){return B(O,{block:z,subblock:he})}return Ve}()}))},ne=0;ne0?"Yes":"No",selected:i.com>0,onClick:function(){function f(){return p("toggle_com")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Security",children:c.map(function(f,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.sec===f,content:f,onClick:function(){function d(){return p("set_sec",{set_sec:f})}return d}()},"sec"+f)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Medical",children:c.map(function(f,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.med===f,content:f,onClick:function(){function d(){return p("set_med",{set_med:f})}return d}()},"med"+f)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Engineering",children:c.map(function(f,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.eng===f,content:f,onClick:function(){function d(){return p("set_eng",{set_eng:f})}return d}()},"eng"+f)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Paranormal",children:c.map(function(f,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.par===f,content:f,onClick:function(){function d(){return p("set_par",{set_par:f})}return d}()},"par"+f)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitor",children:c.map(function(f,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.jan===f,content:f,onClick:function(){function d(){return p("set_jan",{set_jan:f})}return d}()},"jan"+f)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cyborg",children:c.map(function(f,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.cyb===f,content:f,onClick:function(){function d(){return p("set_cyb",{set_cyb:f})}return d}()},"cyb"+f)})}),(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 f(){return p("dispatch_ert")}return f}()})})]})})]})})}return y}()},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),s=n(98595),y=r.Electropack=function(){function V(k,S){var p=(0,t.useBackend)(S),i=p.act,c=p.data,f=c.power,u=c.code,d=c.frequency,m=c.minFrequency,l=c.maxFrequency;return(0,e.createComponentVNode)(2,s.Window,{width:360,height:150,children:(0,e.createComponentVNode)(2,s.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:f?"power-off":"times",content:f?"On":"Off",selected:f,onClick:function(){function v(){return i("power")}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return i("reset",{reset:"freq"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:m/10,maxValue:l/10,value:d/10,format:function(){function v(b){return(0,a.toFixed)(b,1)}return v}(),width:"80px",onChange:function(){function v(b,N){return i("freq",{freq:N})}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return i("reset",{reset:"code"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:u,width:"80px",onChange:function(){function v(b,N){return i("code",{code:N})}return v}()})})]})})})})}return V}()},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),s=r.EvolutionMenu=function(){function k(S,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,y),(0,e.createComponentVNode)(2,V)]})})}return k}(),y=function(S,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,u=f.evo_points,d=f.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 m(){return c("readapt")}return m}()}),(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"})]})]})})},V=function(S,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,u=f.evo_points,d=f.ability_list,m=f.purchased_abilities,l=f.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 v(){return c("set_view_mode",{mode:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:l?"check-square-o":"square-o",selected:l,content:"Expanded",onClick:function(){function v(){return c("set_view_mode",{mode:1})}return v}()})],4),children:d.map(function(v,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:v.name}),m.includes(v.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:v.cost})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,t.Button,{mr:.5,disabled:v.cost>u||m.includes(v.power_path),content:"Evolve",onClick:function(){function N(){return c("purchase",{power_path:v.power_path})}return N}()})})]}),!!l&&(0,e.createComponentVNode)(2,t.Flex,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:v.description+" "+v.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),s=n(36036),y=n(73379),V=n(98595),k=["id","amount","lineDisplay","onClick"];function S(b,N){if(b==null)return{};var h={};for(var C in b)if({}.hasOwnProperty.call(b,C)){if(N.includes(C))continue;h[C]=b[C]}return h}var p=2e3,i={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function b(N,h){var C=(0,o.useBackend)(h),g=C.act,x=C.data,B=x.building;return(0,e.createComponentVNode)(2,V.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,V.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,s.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!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,u)}),B&&(0,e.createComponentVNode)(2,s.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})}),(0,e.createComponentVNode)(2,s.Stack.Item,{width:"30%",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,f)}),(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)})]})})]})})})}return b}(),f=function(N,h){var C=(0,o.useBackend)(h),g=C.act,x=C.data,B=x.materials,L=x.capacity,w=Object.values(B).reduce(function(A,T){return A+T},0);return(0,e.createComponentVNode)(2,s.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,s.Box,{color:"label",mt:"0.25rem",children:[(w/L*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,l,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function T(){return g("withdraw",{id:A})}return T}()},A)})})},u=function(N,h){var C=(0,o.useBackend)(h),g=C.act,x=C.data,B=x.curCategory,L=x.categories,w=x.designs,A=x.syncing,T=(0,o.useLocalState)(h,"searchText",""),E=T[0],O=T[1],P=(0,t.createSearch)(E,function(F){return F.name}),R=w.filter(P);return(0,e.createComponentVNode)(2,s.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,s.Dropdown,{className:"Exofab__dropdown",selected:B,options:L,onSelected:function(){function F(j){return g("category",{cat:j})}return F}()}),buttons:(0,e.createComponentVNode)(2,s.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,s.Button,{icon:"plus",content:"Queue all",onClick:function(){function F(){return g("queueall")}return F}()}),(0,e.createComponentVNode)(2,s.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function F(){return g("sync")}return F}()})]}),children:[(0,e.createComponentVNode)(2,s.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function F(j,W){return O(W)}return F}()}),R.map(function(F){return(0,e.createComponentVNode)(2,v,{design:F},F.id)}),R.length===0&&(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"No designs found."})]})},d=function(N,h){var C=(0,o.useBackend)(h),g=C.act,x=C.data,B=x.building,L=x.buildStart,w=x.buildEnd,A=x.worldTime;return(0,e.createComponentVNode)(2,s.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,s.ProgressBar.Countdown,{start:L,current:A,end:w,children:(0,e.createComponentVNode)(2,s.Stack,{children:[(0,e.createComponentVNode)(2,s.Stack.Item,{children:(0,e.createComponentVNode)(2,s.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,s.Stack.Item,{children:["Building ",B,"\xA0(",(0,e.createComponentVNode)(2,y.Countdown,{current:A,timeLeft:w-A,format:function(){function T(E,O){return O.substr(3)}return T}()}),")"]})]})})})},m=function(N,h){var C=(0,o.useBackend)(h),g=C.act,x=C.data,B=x.queue,L=x.processingQueue,w=Object.entries(x.queueDeficit).filter(function(T){return T[1]<0}),A=B.reduce(function(T,E){return T+E.time},0);return(0,e.createComponentVNode)(2,s.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,s.Box,{children:[(0,e.createComponentVNode)(2,s.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:"Process",onClick:function(){function T(){return g("process")}return T}()}),(0,e.createComponentVNode)(2,s.Button,{disabled:B.length===0,icon:"eraser",content:"Clear",onClick:function(){function T(){return g("unqueueall")}return T}()})]}),children:(0,e.createComponentVNode)(2,s.Stack,{fill:!0,vertical:!0,children:B.length===0?(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,s.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:B.map(function(T,E){return(0,e.createComponentVNode)(2,s.Box,{color:T.notEnough&&"bad",children:[E+1,". ",T.name,E>0&&(0,e.createComponentVNode)(2,s.Button,{icon:"arrow-up",onClick:function(){function O(){return g("queueswap",{from:E+1,to:E})}return O}()}),E0&&(0,e.createComponentVNode)(2,s.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,s.Divider),"Processing time:",(0,e.createComponentVNode)(2,s.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,s.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(w).length>0&&(0,e.createComponentVNode)(2,s.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,s.Divider),"Lacking materials to complete:",w.map(function(T){return(0,e.createComponentVNode)(2,s.Box,{children:(0,e.createComponentVNode)(2,l,{id:T[0],amount:-T[1],lineDisplay:!0})},T[0])})]})],0)})})},l=function(N,h){var C=(0,o.useBackend)(h),g=C.act,x=C.data,B=N.id,L=N.amount,w=N.lineDisplay,A=N.onClick,T=S(N,k),E=x.materials[B]||0,O=L||E;if(!(O<=0&&!(B==="metal"||B==="glass"))){var P=L&&L>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",w&&"Exofab__material--line"])},T,{children:w?(0,e.createFragment)([(0,e.createComponentVNode)(2,s.Stack.Item,{className:(0,a.classes)(["materials32x32",B])}),(0,e.createComponentVNode)(2,s.Stack.Item,{className:"Exofab__material--amount",color:P&&"bad",ml:0,mr:1,children:O.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,s.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,s.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,s.Box,{mt:1,className:(0,a.classes)(["materials32x32",B])})})}),(0,e.createComponentVNode)(2,s.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,s.Box,{className:"Exofab__material--name",children:B}),(0,e.createComponentVNode)(2,s.Box,{className:"Exofab__material--amount",children:[O.toLocaleString("en-US")," cm\xB3 (",Math.round(O/p*10)/10," ","sheets)"]})]})],4)})))}},v=function(N,h){var C=(0,o.useBackend)(h),g=C.act,x=C.data,B=N.design;return(0,e.createComponentVNode)(2,s.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,s.Button,{disabled:B.notEnough||x.building,icon:"cog",content:B.name,onClick:function(){function L(){return g("build",{id:B.id})}return L}()}),(0,e.createComponentVNode)(2,s.Button,{icon:"plus-circle",onClick:function(){function L(){return g("queue",{id:B.id})}return L}()}),(0,e.createComponentVNode)(2,s.Box,{className:"Exofab__design--cost",children:Object.entries(B.cost).map(function(L){return(0,e.createComponentVNode)(2,s.Box,{children:(0,e.createComponentVNode)(2,l,{id:L[0],amount:L[1],lineDisplay:!0})},L[0])})}),(0,e.createComponentVNode)(2,s.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,s.Stack.Item,{children:[(0,e.createComponentVNode)(2,s.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),s=0,y=1013,V=function(p){var i="good",c=80,f=95,u=110,d=120;return pu?i="average":p>d&&(i="bad"),i},k=r.ExternalAirlockController=function(){function S(p,i){var c=(0,a.useBackend)(i),f=c.act,u=c.data,d=u.chamber_pressure,m=u.exterior_status,l=u.interior_status,v=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:V(d),value:d,minValue:s,maxValue:y,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:v,onClick:function(){function b(){return f("cycle_ext")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Cycle to Interior",icon:"arrow-circle-right",disabled:v,onClick:function(){function b(){return f("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":v?"yellow":null,onClick:function(){function b(){return f("force_ext")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Force Interior Door",icon:"exclamation-triangle",color:l==="open"?"red":v?"yellow":null,onClick:function(){function b(){return f("force_int")}return b}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!v,onClick:function(){function b(){return f("abort")}return b}()})})]})]})})}return S}()},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),s=r.FaxMachine=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.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 y}()},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),s=function(k,S){var p=(0,a.useBackend)(S),i=p.act,c=p.data,f=k.image,u=k.isSelected,d=k.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+f,style:{"border-style":u&&"solid"||"none","border-width":"2px","border-color":"orange",padding:u&&"2px"||"4px"},onClick:d})},y=r.FloorPainter=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,c=p.data,f=c.availableStyles,u=c.selectedStyle,d=c.selectedDir,m=c.directionsPreview,l=c.allStylesPreview;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 v(){return i("cycle_style",{offset:-1})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:f,selected:u,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function v(b){return i("select_style",{style:b})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function v(){return i("cycle_style",{offset:1})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:f.map(function(v){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,s,{image:l[v],isSelected:u===v,onSelect:function(){function b(){return i("select_style",{style:v})}return b}()})},"{style}")})})}),(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:["north","","south"].map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[v+"west",v,v+"east"].map(function(b){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:b===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,s,{image:m[b],isSelected:b===d,onSelect:function(){function N(){return i("select_direction",{direction:b})}return N}()})},b)})},v)})})})})]})})})}return V}()},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),s=n(98595),y=function(u){return u?"("+u.join(", ")+")":"ERROR"},V=function(u,d,m){if(!(!u||!d)){if(u[2]!==d[2]||m!==1)return null;var l=Math.atan2(d[1]-u[1],d[0]-u[0]),v=Math.sqrt(Math.pow(d[1]-u[1],2)+Math.pow(d[0]-u[0],2));return{angle:(0,a.rad2deg)(l),distance:v}}},k=r.GPS=function(){function f(u,d){var m=(0,t.useBackend)(d),l=m.data,v=l.emped,b=l.active,N=l.area,h=l.position,C=l.saved;return(0,e.createComponentVNode)(2,s.Window,{width:450,height:700,children:(0,e.createComponentVNode)(2,s.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:v?(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,S,{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:N,position:h})}),C&&(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,i,{title:"Saved Position",position:C})}),(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,S)],0)})})})}return f}(),S=function(u,d){var m=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:m?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),m?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},p=function(u,d){var m=(0,t.useBackend)(d),l=m.act,v=m.data,b=v.active,N=v.tag,h=v.same_z,C=(0,t.useLocalState)(d,"newTag",N),g=C[0],x=C[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:N,onEnter:function(){function B(){return l("tag",{newtag:g})}return B}(),onInput:function(){function B(L,w){return x(w)}return B}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:N===g,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function B(){return l("tag",{newtag:g})}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 m=u.title,l=u.area,v=u.position;return(0,e.createComponentVNode)(2,o.Section,{title:m||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[l&&(0,e.createFragment)([l,(0,e.createVNode)(1,"br")],0),y(v)]})})},c=function(u,d){var m=(0,t.useBackend)(d),l=m.data,v=l.position,b=l.signals,N=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,V(v,h.position,N))}).map(function(h,C){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:C%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:y(h.position)})]},C)})})})))}},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),s=r.GasAnalyzerContent=function(){function k(S,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,u=f.gasmixes,d=f.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 m(){return c("autoscantoggle")}return m}(),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}(),y=r.GasAnalyzerHistory=function(){function k(S,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,u=f.historyGasmixes,d=f.historyViewMode,m=f.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,v){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:v+1+". "+(d==="mol"?l[0].total_moles.toFixed(2):l[0].pressure.toFixed(2)),onClick:function(){function b(){return c("input",{target:v+1})}return b}(),textAlign:"left",selected:v+1===m,fluid:!0})},l[0])})})]})}return k}(),V=r.GasAnalyzer=function(){function k(S,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,s)}),2,{style:i}),(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,t.Section,{width:"160px",children:(0,e.createComponentVNode)(2,y)}),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),s=r.GasFreezer=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,c=i.on,f=i.pressure,u=i.temperature,d=i.temperatureCelsius,m=i.min,l=i.max,v=i.target,b=i.targetCelsius,N=(u-m)/(l-m);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:[f," \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:N,ranges:{blue:[-1/0,.5],red:[.5,1/0]},children:"\xA0"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"35%",children:[N<.5&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"blue",ml:1,children:[u," \xB0K (",d," \xB0C)"]}),N>=.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:(v-m)/(l-m),children:"\xA0"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"35%",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,ml:1,children:[v," \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:m})}return h}()}),(0,e.createComponentVNode)(2,t.NumberInput,{value:Math.round(v),unit:"\xB0K",minValue:Math.round(m),maxValue:Math.round(l),step:5,stepPixelSize:3,onDrag:function(){function h(C,g){return p("temp",{temp:g})}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 y}()},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),s=n(3939),y=n(98595),V=r.GeneModder=function(){function d(m,l){var v=(0,a.useBackend)(l),b=v.data,N=b.has_seed;return(0,e.createComponentVNode)(2,y.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,s.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),N===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)]})})})}return d}(),k=function(m,l){var v=(0,a.useBackend)(l),b=v.act,N=v.data,h=N.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 C(){return b("insert")}return C}()}),children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,f)]})},S=function(m,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(m,l){var v=(0,a.useBackend)(l),b=v.act,N=v.data,h=N.has_seed,C=N.seed,g=N.has_disk,x=N.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",C.image]),null,1,{style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,o.Button,{content:C.name,onClick:function(){function w(){return b("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return b("variant_name")}return w}()})]}):B=(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:3.3,content:"None",onClick:function(){function w(){return b("eject_seed")}return w}()})}),g?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 w(){return b("eject_disk")}return w}()})})})]})})},i=function(m,l){var v=(0,a.useBackend)(l),b=v.act,N=v.data,h=N.disk,C=N.core_genes;return(0,e.createComponentVNode)(2,o.Collapsible,{title:"Core Genes",open:!0,children:[C.map(function(g){return(0,e.createComponentVNode)(2,o.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",ml:"2px",children:g.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:g.id})}return x}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Replace",disabled:!g.is_type||!h.can_insert,icon:"arrow-circle-down",onClick:function(){function x(){return b("replace",{id:g.id})}return x}()})})]},g)})," ",(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 g(){return b("bulk_replace_core")}return g}()})})})]},"Core Genes")},c=function(m,l){var v=(0,a.useBackend)(l),b=v.data,N=b.reagent_genes,h=b.has_reagent;return(0,e.createComponentVNode)(2,u,{title:"Reagent Genes",gene_set:N,do_we_show:h})},f=function(m,l){var v=(0,a.useBackend)(l),b=v.data,N=b.trait_genes,h=b.has_trait;return(0,e.createComponentVNode)(2,u,{title:"Trait Genes",gene_set:N,do_we_show:h})},u=function(m,l){var v=m.title,b=m.gene_set,N=m.do_we_show,h=(0,a.useBackend)(l),C=h.act,g=h.data,x=g.disk;return(0,e.createComponentVNode)(2,o.Collapsible,{title:v,open:!0,children:N?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 C("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 C("remove",{id:B.id})}return L}()})})]},B)}):(0,e.createComponentVNode)(2,o.Stack.Item,{children:"No Genes Detected"})},v)}},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),s=r.GenericCrewManifest=function(){function y(V,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 y}()},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),s=r.GhostHudPanel=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.data,c=i.security,f=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,y,{label:"Medical",type:"medical",is_active:f}),(0,e.createComponentVNode)(2,y,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,y,{label:"Diagnostic",type:"diagnostic",is_active:u}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,y,{label:"Antag HUD",is_active:d,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return V}(),y=function(k,S){var p=(0,a.useBackend)(S),i=p.act,c=k.label,f=k.type,u=f===void 0?null:f,d=k.is_active,m=k.act_on,l=m===void 0?"hud_on":m,v=k.act_off,b=v===void 0?"hud_off":v;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 N(){return i(d?b:l,{hud_type:u})}return N}()})})]})}},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),s=r.GlandDispenser=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,c=i.glands,f=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:f.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 y}()},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),s=[1,5,10,20,30,50],y=null,V=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,S)]})})})}return p}(),k=function(i,c){var f=(0,a.useBackend)(c),u=f.act,d=f.data,m=d.amount,l=d.energy,v=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:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[l," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:s.map(function(N,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:m===N,content:N,onClick:function(){function C(){return u("amount",{amount:N})}return C}()})},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 N(){return u("mode",{mode:"dispense"})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:b==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function N(){return u("mode",{mode:"remove"})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:b==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function N(){return u("mode",{mode:"isolate"})}return N}()})]})})]})})})},S=function(i,c){for(var f=(0,a.useBackend)(c),u=f.act,d=f.data,m=d.chemicals,l=m===void 0?[]:m,v=d.current_reagent,b=[],N=0;N<(l.length+1)%3;N++)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,C){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:v===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function g(){return u("dispense",{reagent:h.id})}return g}()},C)}),b.map(function(h,C){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},C)})]})})}},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),s=r.ImplantPad=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,c=i.implant,f=i.contains_case,u=i.tag,d=(0,a.useLocalState)(k,"newTag",u),m=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:!f,onClick:function(){function v(){return p("eject_case")}return v}()})}),children:c&&f?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+c.image,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 v(){return p("tag",{newtag:m})}return v}(),onInput:function(){function v(b,N){return l(N)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:u===m,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function v(){return p("tag",{newtag:m})}return v}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):f?(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 y}()},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),s=n(98595),y=r.Instrument=function(){function i(c,f){var u=(0,t.useBackend)(f),d=u.act,m=u.data;return(0,e.createComponentVNode)(2,s.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,V),(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,p)]})})]})}return i}(),V=function(c,f){var u=(0,t.useBackend)(f),d=u.act,m=u.data,l=m.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 v(){return d("help")}return v}()})]})})})},k=function(c,f){var u=(0,t.useBackend)(f),d=u.act,m=u.data,l=m.lines,v=m.playing,b=m.repeat,N=m.maxRepeats,h=m.tempo,C=m.minTempo,g=m.maxTempo,x=m.tickLag,B=m.volume,L=m.minVolume,w=m.maxVolume,A=m.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 T(){return d("help")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function T(){return d("newsong")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function T(){return d("import")}return T}()})],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:v,disabled:l.length===0||b<0,icon:"play",content:"Play",onClick:function(){function T(){return d("play")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!v,icon:"stop",content:"Stop",onClick:function(){function T(){return d("stop")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:N,value:b,stepPixelSize:59,onChange:function(){function T(E,O){return d("repeat",{new:O})}return T}()})}),(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>=g,content:"-",as:"span",mr:"0.5rem",onClick:function(){function T(){return d("tempo",{new:h+x})}return T}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=C,content:"+",as:"span",ml:"0.5rem",onClick:function(){function T(){return d("tempo",{new:h-x})}return T}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:L,maxValue:w,value:B,stepPixelSize:6,onDrag:function(){function T(E,O){return d("setvolume",{new:O})}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(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,S)]})},S=function(c,f){var u=(0,t.useBackend)(f),d=u.act,m=u.data,l=m.allowedInstrumentNames,v=m.instrumentLoaded,b=m.instrument,N=m.canNoteShift,h=m.noteShift,C=m.noteShiftMin,g=m.noteShiftMax,x=m.sustainMode,B=m.sustainLinearDuration,L=m.sustainExponentialDropoff,w=m.legacy,A=m.sustainDropoffVolume,T=m.sustainHeldNote,E,O;return x===1?(E="Linear",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:B,step:.5,stepPixelSize:85,format:function(){function P(R){return(0,a.round)(R*100)/100+" seconds"}return P}(),onChange:function(){function P(R,F){return d("setlinearfalloff",{new:F/10})}return P}()})):x===2&&(E="Exponential",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:L,step:.01,format:function(){function P(R){return(0,a.round)(R*1e3)/1e3+"% per decisecond"}return P}(),onChange:function(){function P(R,F){return d("setexpfalloff",{new:F})}return P}()})),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:w?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:v?(0,e.createComponentVNode)(2,o.Dropdown,{options:l,selected:b,width:"50%",onSelected:function(){function P(R){return d("switchinstrument",{name:R})}return P}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!w&&N)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:C,maxValue:g,value:h,stepPixelSize:2,format:function(){function P(R){return R+" keys / "+(0,a.round)(R/12*100)/100+" octaves"}return P}(),onChange:function(){function P(R,F){return d("setnoteshift",{new:F})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function P(R){return d("setsustainmode",{new:R})}return P}()}),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:A,stepPixelSize:6,onChange:function(){function P(R,F){return d("setdropoffvolume",{new:F})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Yes":"No",onClick:function(){function P(){return d("togglesustainhold")}return P}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function P(){return d("reset")}return P}()})]})})})},p=function(c,f){var u=(0,t.useBackend)(f),d=u.act,m=u.data,l=m.playing,v=m.lines,b=m.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 N(){return d("newline",{line:v.length+1})}return N}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!b,icon:b?"chevron-up":"chevron-down",onClick:function(){function N(){return d("edit")}return N}()})],4),children:!!b&&(v.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:v.map(function(N,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 C(){return d("modifyline",{line:h+1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:l,icon:"trash",onClick:function(){function C(){return d("deleteline",{line:h+1})}return C}()})],4),children:N},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),s=r.ItemPixelShift=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,c=i.pixel_x,f=i.pixel_y,u=i.max_shift_x,d=i.max_shift_y,m=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(v,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:f===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:f,minValue:-d,maxValue:d,onChange:function(){function l(v,b){return p("custom_y",{pixel_y:b})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",title:"Shifts item downwards.",disabled:f===-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:m?"good":"bad",icon:"power-off",content:m?"Shift Enabled":"Shift Disabled",title:"Enables/Disables item pixel randomization on any drops.",onClick:function(){function l(){return p("toggle")}return l}()})})]})})]})})}return y}()},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),s=n(98595),y=n(19203),V=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},S={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 m=u.keyCode-48;d+="Shift"+m}else{var l=u.key.toUpperCase();d+=S[l]||l}return d},c=r.KeyComboModal=function(){function f(u,d){var m=(0,t.useBackend)(d),l=m.act,v=m.data,b=v.init_value,N=v.large_buttons,h=v.message,C=h===void 0?"":h,g=v.title,x=v.timeout,B=(0,t.useLocalState)(d,"input",b),L=B[0],w=B[1],A=(0,t.useLocalState)(d,"binding",!0),T=A[0],E=A[1],O=function(){function F(j){if(!T){j.key===a.KEY.Enter&&l("submit",{entry:L}),j.key===a.KEY.Escape&&l("cancel");return}if(j.preventDefault(),k(j)){P(i(j)),E(!1);return}else if(j.key===a.KEY.Escape){P(b),E(!1);return}}return F}(),P=function(){function F(j){j!==L&&w(j)}return F}(),R=130+(C.length>30?Math.ceil(C.length/3):0)+(C.length&&N?5:0);return(0,e.createComponentVNode)(2,s.Window,{title:g,width:240,height:R,children:[x&&(0,e.createComponentVNode)(2,V.Loader,{value:x}),(0,e.createComponentVNode)(2,s.Window.Content,{onKeyDown:function(){function F(j){O(j)}return F}(),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:C})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:T,content:T&&T!==null?"Awaiting input...":""+L,width:"100%",textAlign:"center",onClick:function(){function F(){P(b),E(!0)}return F}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,y.InputButtons,{input:L})})]})]})})]})}return f}()},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),s=r.KeycardAuth=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.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 f=(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"?f=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):i.hasConfirm?f=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):i.isRemote?f=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):i.hasSwiped&&(f=(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:f})]})})}return y}()},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),s=n(98595),y=r.LaborClaimConsole=function(){function S(p,i){return(0,e.createComponentVNode)(2,s.Window,{width:315,height:470,children:(0,e.createComponentVNode)(2,s.Window.Content,{children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k)]})})}return S}(),V=function(p,i){var c=(0,t.useBackend)(i),f=c.act,u=c.data,d=u.can_go_home,m=u.emagged,l=u.id_inserted,v=u.id_name,b=u.id_points,N=u.id_goal,h=u.unclaimed_points,C=m?0:1,g=m?"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/N,ranges:{good:[C,1/0],bad:[-1/0,C]},children:b+" / "+N+" "+g})||!!m&&"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 f("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 f("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?v:"-------------",onClick:function(){function x(){return f("handle_id")}return x}()})})]})})},k=function(p,i){var c=(0,t.useBackend)(i),f=c.data,u=f.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),s=r.LawManager=function(){function S(p,i){var c=(0,a.useBackend)(i),f=c.act,u=c.data,d=u.isAdmin,m=u.isSlaved,l=u.isMalf,v=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&&m)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",m,"."]}),!!(l||v)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:b===0,onClick:function(){function N(){return f("set_view",{set_view:0})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:b===1,onClick:function(){function N(){return f("set_view",{set_view:1})}return N}()})]}),b===0&&(0,e.createComponentVNode)(2,y),b===1&&(0,e.createComponentVNode)(2,V)]})})}return S}(),y=function(p,i){var c=(0,a.useBackend)(i),f=c.act,u=c.data,d=u.has_zeroth_laws,m=u.zeroth_laws,l=u.has_ion_laws,v=u.ion_laws,b=u.ion_law_nr,N=u.has_inherent_laws,h=u.inherent_laws,C=u.has_supplied_laws,g=u.supplied_laws,x=u.channels,B=u.channel,L=u.isMalf,w=u.isAdmin,A=u.zeroth_law,T=u.ion_law,E=u.inherent_law,O=u.supplied_law,P=u.supplied_law_position;return(0,e.createFragment)([!!d&&(0,e.createComponentVNode)(2,k,{title:"ERR_NULL_VALUE",laws:m,ctx:i}),!!l&&(0,e.createComponentVNode)(2,k,{title:b,laws:v,ctx:i}),!!N&&(0,e.createComponentVNode)(2,k,{title:"Inherent",laws:h,ctx:i}),!!C&&(0,e.createComponentVNode)(2,k,{title:"Supplied",laws:g,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(R){return(0,e.createComponentVNode)(2,t.Button,{content:R.channel,selected:R.channel===B,onClick:function(){function F(){return f("law_channel",{law_channel:R.channel})}return F}()},R.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function R(){return f("state_laws")}return R}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function R(){return f("notify_laws")}return R}()})})]})}),!!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"})]}),!!(w&&!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: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 R(){return f("change_zeroth_law")}return R}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function R(){return f("add_zeroth_law")}return R}()})]})]}),(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:T}),(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 R(){return f("change_ion_law")}return R}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function R(){return f("add_ion_law")}return R}()})]})]}),(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: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 R(){return f("change_inherent_law")}return R}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function R(){return f("add_inherent_law")}return R}()})]})]}),(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:P,onClick:function(){function R(){return f("change_supplied_law_position")}return R}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function R(){return f("change_supplied_law")}return R}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function R(){return f("add_supplied_law")}return R}()})]})]})]})})],0)},V=function(p,i){var c=(0,a.useBackend)(i),f=c.act,u=c.data,d=u.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{title:m.name+" - "+m.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function l(){return f("transfer_laws",{transfer_laws:m.ref})}return l}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m.laws.has_ion_laws>0&&m.laws.ion_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),m.laws.has_zeroth_laws>0&&m.laws.zeroth_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),m.laws.has_inherent_laws>0&&m.laws.inherent_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),m.laws.has_supplied_laws>0&&m.laws.inherent_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)})]})},m.name)})})},k=function(p,i){var c=(0,a.useBackend)(p.ctx),f=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(m){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:m.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:m.state?"Yes":"No",selected:m.state,onClick:function(){function l(){return f("state_law",{ref:m.ref,state_law:m.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 f("edit_law",{edit_law:m.ref})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function l(){return f("delete_law",{delete_law:m.ref})}return l}()})],4)]})]},m.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),s=n(72253),y=n(92986),V=n(98595),k=r.ListInputModal=function(){function i(c,f){var u=(0,s.useBackend)(f),d=u.act,m=u.data,l=m.items,v=l===void 0?[]:l,b=m.message,N=b===void 0?"":b,h=m.init_value,C=m.timeout,g=m.title,x=(0,s.useLocalState)(f,"selected",v.indexOf(h)),B=x[0],L=x[1],w=(0,s.useLocalState)(f,"searchBarVisible",v.length>10),A=w[0],T=w[1],E=(0,s.useLocalState)(f,"searchQuery",""),O=E[0],P=E[1],R=function(){function ne(Q){var he=$.length-1;if(Q===y.KEY_DOWN)if(B===null||B===he){var Ve;L(0),(Ve=document.getElementById("0"))==null||Ve.scrollIntoView()}else{var Ne;L(B+1),(Ne=document.getElementById((B+1).toString()))==null||Ne.scrollIntoView()}else if(Q===y.KEY_UP)if(B===null||B===0){var Be;L(he),(Be=document.getElementById(he.toString()))==null||Be.scrollIntoView()}else{var Le;L(B-1),(Le=document.getElementById((B-1).toString()))==null||Le.scrollIntoView()}}return ne}(),F=function(){function ne(Q){Q!==B&&L(Q)}return ne}(),j=function(){function ne(){T(!1),T(!0)}return ne}(),W=function(){function ne(Q){var he=String.fromCharCode(Q),Ve=v.find(function(Le){return Le==null?void 0:Le.toLowerCase().startsWith(he==null?void 0:he.toLowerCase())});if(Ve){var Ne,Be=v.indexOf(Ve);L(Be),(Ne=document.getElementById(Be.toString()))==null||Ne.scrollIntoView()}}return ne}(),H=function(){function ne(Q){var he;Q!==O&&(P(Q),L(0),(he=document.getElementById("0"))==null||he.scrollIntoView())}return ne}(),z=function(){function ne(){T(!A),P("")}return ne}(),$=v.filter(function(ne){return ne==null?void 0:ne.toLowerCase().includes(O.toLowerCase())}),G=330+Math.ceil(N.length/3);return A||setTimeout(function(){var ne;return(ne=document.getElementById(B.toString()))==null?void 0:ne.focus()},1),(0,e.createComponentVNode)(2,V.Window,{title:g,width:325,height:G,children:[C&&(0,e.createComponentVNode)(2,a.Loader,{value:C}),(0,e.createComponentVNode)(2,V.Window.Content,{onKeyDown:function(){function ne(Q){var he=window.event?Q.which:Q.keyCode;(he===y.KEY_DOWN||he===y.KEY_UP)&&(Q.preventDefault(),R(he)),he===y.KEY_ENTER&&(Q.preventDefault(),d("submit",{entry:$[B]})),!A&&he>=y.KEY_A&&he<=y.KEY_Z&&(Q.preventDefault(),W(he)),he===y.KEY_ESCAPE&&(Q.preventDefault(),d("cancel"))}return ne}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:A?"search":"font",selected:!0,tooltip:A?"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 z()}return ne}()}),className:"ListInput__Section",fill:!0,title:N,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,S,{filteredItems:$,onClick:F,onFocusSearch:j,searchBarVisible:A,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,p,{filteredItems:$,onSearch:H,searchQuery:O,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:$[B]})})]})})})]})}return i}(),S=function(c,f){var u=(0,s.useBackend)(f),d=u.act,m=c.filteredItems,l=c.onClick,v=c.onFocusSearch,b=c.searchBarVisible,N=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:m.map(function(h,C){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:C,onClick:function(){function g(){return l(C)}return g}(),onDblClick:function(){function g(x){x.preventDefault(),d("submit",{entry:m[N]})}return g}(),onKeyDown:function(){function g(x){var B=window.event?x.which:x.keyCode;b&&B>=y.KEY_A&&B<=y.KEY_Z&&(x.preventDefault(),v())}return g}(),selected:C===N,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(g){return g.toUpperCase()})},C)})})},p=function(c,f){var u=(0,s.useBackend)(f),d=u.act,m=c.filteredItems,l=c.onSearch,v=c.searchQuery,b=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function N(h){h.preventDefault(),d("submit",{entry:m[b]})}return N}(),onInput:function(){function N(h,C){return l(C)}return N}(),placeholder:"Search...",value:v})}},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),s=r.MechBayConsole=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,c=i.recharge_port,f=c&&c.mech,u=f&&f.cell,d=f&&f.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 m(){return p("reconnect")}return m}()}),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."})||!f&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:f.health/f.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."})||!f&&(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 y}()},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),s=n(98595),y=n(25328),V=r.MechaControlConsole=function(){function k(S,p){var i=(0,t.useBackend)(p),c=i.act,f=i.data,u=f.beacons,d=f.stored_data;return d.length?(0,e.createComponentVNode)(2,s.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,s.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 m(){return c("clear_log")}return m}()}),children:d.map(function(m){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",m.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,y.decodeHtmlEntities)(m.message)})]},m.time)})})})}):(0,e.createComponentVNode)(2,s.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:u.length&&u.map(function(m){return(0,e.createComponentVNode)(2,o.Section,{title:m.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function l(){return c("send_message",{mt:m.uid})}return l}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function l(){return c("get_log",{mt:m.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:m.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:[m.maxHealth*.75,1/0],average:[m.maxHealth*.5,m.maxHealth*.75],bad:[-1/0,m.maxHealth*.5]},value:m.health,maxValue:m.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:m.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[m.cellMaxCharge*.75,1/0],average:[m.cellMaxCharge*.5,m.cellMaxCharge*.75],bad:[-1/0,m.cellMaxCharge*.5]},value:m.cellCharge,maxValue:m.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[m.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:m.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,y.toTitleCase)(m.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:m.active||"None"}),m.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[m.cargoMax*.75,1/0],average:[m.cargoMax*.5,m.cargoMax*.75],good:[-1/0,m.cargoMax*.5]},value:m.cargoUsed,maxValue:m.cargoMax})})||null]})},m.name)})||(0,e.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),s=n(3939),y=n(98595),V=n(321),k=n(5485),S=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(w,A){(0,s.modalOpen)(w,"edit",{field:A.edit,value:A.value})},f=function(w,A){var T=w.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:T.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:T.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[T.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:T.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:T.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:p[T.severity],children:T.severity})]})})})},u=r.MedicalRecords=function(){function L(w,A){var T=(0,t.useBackend)(A),E=T.data,O=E.loginState,P=E.screen;if(!O.logged_in)return(0,e.createComponentVNode)(2,y.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var R;return P===2?R=(0,e.createComponentVNode)(2,d):P===3?R=(0,e.createComponentVNode)(2,m):P===4?R=(0,e.createComponentVNode)(2,l):P===5?R=(0,e.createComponentVNode)(2,h):P===6&&(R=(0,e.createComponentVNode)(2,C)),(0,e.createComponentVNode)(2,y.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,s.ComplexModal),(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,S.TemporaryNotice),(0,e.createComponentVNode)(2,B),R]})})]})}return L}(),d=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.records,R=(0,t.useLocalState)(A,"searchText",""),F=R[0],j=R[1],W=(0,t.useLocalState)(A,"sortId","name"),H=W[0],z=W[1],$=(0,t.useLocalState)(A,"sortOrder",!0),G=$[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 Q(){return E("screen",{screen:3})}return Q}()})}),(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 Q(he,Ve){return j(Ve)}return Q}()})})]})}),(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,g,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,g,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,g,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,g,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,g,{id:"m_stat",children:"Mental Status"})]}),P.filter((0,a.createSearch)(F,function(Q){return Q.name+"|"+Q.id+"|"+Q.rank+"|"+Q.p_stat+"|"+Q.m_stat})).sort(function(Q,he){var Ve=G?1:-1;return Q[H].localeCompare(he[H])*Ve}).map(function(Q){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+i[Q.p_stat],onClick:function(){function he(){return E("view_record",{view_record:Q.ref})}return he}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",Q.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.m_stat})]},Q.id)})]})})})],4)},m=function(w,A){var T=(0,t.useBackend)(A),E=T.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 E("del_all")}return O}()})})]})})},l=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.medical,R=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:R?"spinner":"print",disabled:R,iconSpin:!!R,content:"Print Record",ml:"0.5rem",onClick:function(){function F(){return E("print_record")}return F}()}),children:(0,e.createComponentVNode)(2,v)})}),!P||!P.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 F(){return E("new")}return F}()}),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:!!P.empty,content:"Delete Medical Record",onClick:function(){function F(){return E("del_r")}return F}()}),children:(0,e.createComponentVNode)(2,b)})}),(0,e.createComponentVNode)(2,N)],4)],0)},v=function(w,A){var T=(0,t.useBackend)(A),E=T.data,O=E.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(P,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:P.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:P.value}),!!P.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function F(){return c(A,P)}return F}()})]},R)})})}),!!O.has_photos&&O.photos.map(function(P,R){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:P,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 #",R+1]},R)})]})},b=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.medical;return!P||!P.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:P.fields.map(function(R,F){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:R.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(R.value),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:R.line_break?"1rem":"initial",onClick:function(){function j(){return c(A,R)}return j}()})]},F)})})})})},N=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=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 R(){return(0,s.modalOpen)(A,"add_comment")}return R}()}),children:P.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):P.comments.map(function(R,F){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:R.header}),(0,e.createVNode)(1,"br"),R.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function j(){return E("del_c",{del_c:F+1})}return j}()})]},F)})})})},h=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.virus,R=(0,t.useLocalState)(A,"searchText",""),F=R[0],j=R[1],W=(0,t.useLocalState)(A,"sortId2","name"),H=W[0],z=W[1],$=(0,t.useLocalState)(A,"sortOrder2",!0),G=$[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 Q(he,Ve){return j(Ve)}return Q}()})}),(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"})]}),P.filter((0,a.createSearch)(F,function(Q){return Q.name+"|"+Q.max_stages+"|"+Q.severity})).sort(function(Q,he){var Ve=G?1:-1;return Q[H].localeCompare(he[H])*Ve}).map(function(Q){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+Q.severity,onClick:function(){function he(){return E("vir",{vir:Q.D})}return he}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",Q.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:p[Q.severity],children:Q.severity})]},Q.id)})]})})})})],4)},C=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.medbots;return P.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"})]}),P.map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+R.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",R.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[R.area||"Unknown"," (",R.x,", ",R.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.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:R.use_beaker?"Reservoir: "+R.total_volume+"/"+R.maximum_volume:"Using internal synthesizer"})]},R.id)})]})})})},g=function(w,A){var T=(0,t.useLocalState)(A,"sortId","name"),E=T[0],O=T[1],P=(0,t.useLocalState)(A,"sortOrder",!0),R=P[0],F=P[1],j=w.id,W=w.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:E!==j&&"transparent",onClick:function(){function H(){E===j?F(!R):(O(j),F(!0))}return H}(),children:[W,E===j&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},x=function(w,A){var T=(0,t.useLocalState)(A,"sortId2","name"),E=T[0],O=T[1],P=(0,t.useLocalState)(A,"sortOrder2",!0),R=P[0],F=P[1],j=w.id,W=w.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:E!==j&&"transparent",onClick:function(){function H(){E===j?F(!R):(O(j),F(!0))}return H}(),children:[W,E===j&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},B=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.screen,R=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:P===2,onClick:function(){function F(){E("screen",{screen:2})}return F}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:P===5,onClick:function(){function F(){E("screen",{screen:5})}return F}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:P===6,onClick:function(){function F(){return E("screen",{screen:6})}return F}(),children:"Medibot Tracking"}),P===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:P===3,children:"Record Maintenance"}),P===4&&R&&!R.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:P===4,children:["Record: ",R.fields[0].value]})]})})};(0,s.modalRegisterBodyOverride)("virus",f)},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),s=r.Mimicking=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.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(f){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:f.name,level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Choose",selected:f.selected,onClick:function(){function u(){return p("Choose",{id:f.id})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",color:"bad",onClick:function(){function u(){return p("Delete",{id:f.id})}return u}()})],4),children:(0,e.createComponentVNode)(2,t.Box,{preserveWhitespace:!0,textColor:"#878787",fontSize:"14px",children:["Voice: ",f.voice]})},f.id)}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Add",onClick:function(){function f(){return p("Add")}return f}()})]})})})})}return y}()},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),s=r.Minesweeper=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,c=i.matrix,f=i.showMessage,u=i.tokens,d=i.uiWidth,m={1:"blue",2:"green",3:"red",4:"darkblue",5:"brown",6:"lightblue",7:"black",8:"white"};document.addEventListener("contextmenu",function(C){return C.preventDefault()});var l=function(){function C(g,x,B){g.button!==0&&g.button!==2||p("Square",{X:x,Y:B,mode:g.button===2?h[b]:b})}return C}(),v=(0,a.useLocalState)(k,"mode","bomb"),b=v[0],N=v[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 C(){return N("bomb")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"flag",iconColor:"red",selected:b==="flag",onClick:function(){function C(){return N("flag")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",onClick:function(){function C(){return p("Mode",{mode:"16x30"})}return C}()})],4),children:[(0,e.createVNode)(1,"p"),Object.keys(c).map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:Object.keys(c[C]).map(function(g){return(0,e.createComponentVNode)(2,t.Button,{m:"1px",height:"30px",width:"30px",className:c[C][g].open?"Minesweeper__open":"Minesweeper__closed",bold:!0,color:"transparent",icon:c[C][g].open?c[C][g].bomb?"bomb":"":c[C][g].flag?"flag":"",textColor:c[C][g].open?c[C][g].bomb?"black":m[c[C][g].around]:c[C][g].flag?"red":"gray",onMouseDown:function(){function x(B){return l(B,C,g)}return x}(),children:c[C][g].open&&!c[C][g].bomb&&c[C][g].around?c[C][g].around:" "},g)})},C)}),(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"),f]})]})})})})}return y}()},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),s=r.MiniGamesMenu=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,c=i.spawners||[],f=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:f?"\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:f?"\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:f?"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 m(){return p("jump",{ID:d.uids})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Start",onClick:function(){function m(){return p("spawn",{ID:d.uids})}return m}()})],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 y}()},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),s=n(98595),y=["title","items"];function V(u,d){if(u==null)return{};var m={};for(var l in u)if({}.hasOwnProperty.call(u,l)){if(d.includes(l))continue;m[l]=u[l]}return m}var k={Alphabetical:function(){function u(d,m){return d-m}return u}(),Availability:function(){function u(d,m){return-(d.affordable-m.affordable)}return u}(),Price:function(){function u(d,m){return d.price-m.price}return u}()},S=r.MiningVendor=function(){function u(d,m){return(0,e.createComponentVNode)(2,s.Window,{width:400,height:450,children:(0,e.createComponentVNode)(2,s.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,m){var l=(0,t.useBackend)(m),v=l.act,b=l.data,N=b.has_id,h=b.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:N,children:N?(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 C(){return v("logoff")}return C}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},i=function(d,m){var l=(0,t.useBackend)(m),v=l.act,b=l.data,N=b.has_id,h=b.id,C=b.items,g=(0,t.useLocalState)(m,"search",""),x=g[0],B=g[1],L=(0,t.useLocalState)(m,"sort","Alphabetical"),w=L[0],A=L[1],T=(0,t.useLocalState)(m,"descending",!1),E=T[0],O=T[1],P=(0,a.createSearch)(x,function(j){return j[0]}),R=!1,F=Object.entries(C).map(function(j,W){var H=Object.entries(j[1]).filter(P).map(function(z){return z[1].affordable=N&&h.points>=z[1].price,z[1]}).sort(k[w]);if(H.length!==0)return E&&(H=H.reverse()),R=!0,(0,e.createComponentVNode)(2,f,{title:j[0],items:H},j[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:R?F:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(d,m){var l=(0,t.useLocalState)(m,"search",""),v=l[0],b=l[1],N=(0,t.useLocalState)(m,"sort",""),h=N[0],C=N[1],g=(0,t.useLocalState)(m,"descending",!1),x=g[0],B=g[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(w,A){return b(A)}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(w){return C(w)}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}()})})]})})},f=function(d,m){var l=(0,t.useBackend)(m),v=l.act,b=l.data,N=d.title,h=d.items,C=V(d,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:N},C,{children:h.map(function(g){return(0,e.createComponentVNode)(2,o.ImageButton,{bold:!0,asset:!0,color:"brown",imageSize:"64px",image:g.imageId,imageAsset:"mining_vendor64x64",content:g.name,children:(0,e.createComponentVNode)(2,o.ImageButton.Item,{bold:!0,horizontal:!0,width:"64px",fontSize:1,content:g.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:F?(0,e.createComponentVNode)(2,f,{text:R,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 w=B.iconName,A=B.machineName,T=B.noMachine,E=B.noMachineText,O=B.noMachineElem,P="Unknown machine",R=T?E:A||"Unknown machine",F=R===E,j=R===E||R===P;return T&&O?O:(0,e.createComponentVNode)(2,o.Flex,{mt:.1,mb:1.9,children:[!T&&(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:w})}),(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:F?"label":"silver",fontSize:"1.1rem",bold:!0,italic:j,children:R})})]})},c=function(B,L){var w=B.text;return(0,e.createComponentVNode)(2,o.Box,{as:"span",fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:w})},f=function(B,L){var w=B.text,A=B.defaultText,T=S(B,y);return w?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"span",wordWrap:"break-word"},T,{children:w}))):(0,e.createComponentVNode)(2,c,{text:A})},u=function(B,L){var w=B.noConfirm,A=w===void 0?!1:w,T=S(B,V);return A?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button,Object.assign({},T))):(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button.Confirm,Object.assign({},T)))},d=function(B,L){var w=B.label,A=B.wrapContent,T=B.noWrapContent,E=B.compactLabel,O=E===void 0?!1:E,P=S(B,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Flex,Object.assign({my:.5,mr:"0.5%",spacing:1,align:"center"},P,{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:w}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,textAlign:"center",wordWrap:"break-word",children:A}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:.1}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,nowrap:!0,children:T})]})))},m=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.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 w=(0,t.useBackend)(L),A=w.act,T=w.data;return(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.1rem",color:"red",bold:!0,italic:!0,children:"ACCESS DENIED"})},v=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.attachedTag;return(0,e.createComponentVNode)(2,d,{label:"ID tag",wrapContent:(0,e.createComponentVNode)(2,f,{text:E,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Set",icon:"wrench",onClick:function(){function O(){return A("set_tag")}return O}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Clear",icon:"times-circle",color:"red",disabled:!E,onClick:function(){function O(){return A("clear_tag")}return O}()})],4)})},b=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.frequency,O=T.minFrequency,P=T.maxFrequency,R=T.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:P/10,value:E/10,format:function(){function F(j){return(0,a.toFixed)(j,1)}return F}(),onChange:function(){function F(j,W){return A("set_frequency",{frequency:W*10})}return F}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",content:"",disabled:!R,tooltip:"Reset",onClick:function(){function F(){return A("reset_frequency")}return F}()})],4)})},N=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.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 A("add_tag")}return O}()}),children:E.map(function(O,P){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 R(){return A("remove_tag",{tag_index:P})}return R}()})})})},P)})})},h=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.bolts,O=T.pressureCheck,P=T.temperatureCheck,R=T.oxygenCheck,F=T.toxinsCheck,j=T.nitrogenCheck,W=T.carbonDioxideCheck,H=[{bitflag:1,checked:O,label:"Monitor pressure"},{bitflag:2,checked:P,label:"Monitor temperature"},{bitflag:4,checked:R,label:"Monitor oxygen concentration"},{bitflag:8,checked:F,label:"Monitor plasma concentration"},{bitflag:16,checked:j,label:"Monitor nitrogen concentration"},{bitflag:32,checked:W,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:E?"check":"times",selected:E,content:E?"YES":"NO",onClick:function(){function z(){return A("toggle_bolts")}return z}()})}),H.map(function(z){return(0,e.createComponentVNode)(2,d,{label:z.label,noWrapContent:(0,e.createComponentVNode)(2,o.Button.Checkbox,{checked:z.checked,onClick:function(){function $(){return A("toggle_flag",{bitflag:z.bitflag})}return $}()})},z.bitflag)})],0)},C=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.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 A("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(E).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}),E[O]?(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:E[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 P(){return A("change_label",{sensor_tag:O})}return P}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Label",icon:"times-circle",color:"orange",disabled:!E[O],onClick:function(){function P(){return A("clear_label",{sensor_tag:O})}return P}()})]}),(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 P(){return A("del_sensor",{sensor_tag:O})}return P}()})})]})},O)})]})},g=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.inputTag,O=T.outputTag,P=T.bufferTag,R=T.bufferFitsInput,F=T.bufferFitsOutput,j=T.doNotLinkAndNotify;return(0,e.createFragment)([(0,e.createComponentVNode)(2,d,{label:"Input",labelWidth:6,wrapContent:(0,e.createComponentVNode)(2,f,{text:E,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,u,{noConfirm:j||!E,confirmContent:"This will change the intput device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:E&&P===E,disabled:!R,onClick:function(){function W(){return A("link_input")}return W}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"This will unlink the intput device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!E,onClick:function(){function W(){return A("unlink_input")}return W}()})],4)}),(0,e.createComponentVNode)(2,d,{label:"Output",labelWidth:6,wrapContent:(0,e.createComponentVNode)(2,f,{text:O,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,u,{noConfirm:j||!O,confirmContent:"This will change the output device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:O&&P===O,disabled:!F,onClick:function(){function W(){return A("link_output")}return W}()}),(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 W(){return A("unlink_output")}return W}()})],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),s=n(76910),y=n(98595),V=n(3939),k=n(22091),S=["icon","iconSpin","selected","security","onClick","title","children"],p=["name"];function i(B,L){if(B==null)return{};var w={};for(var A in B)if({}.hasOwnProperty.call(B,A)){if(L.includes(A))continue;w[A]=B[A]}return w}var c=128,f=["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,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=E.is_security,P=E.is_admin,R=E.is_silent,F=E.is_printing,j=E.screen,W=E.channels,H=E.channel_idx,z=H===void 0?-1:H,$=(0,t.useLocalState)(w,"menuOpen",!1),G=$[0],ne=$[1],Q=(0,t.useLocalState)(w,"viewingPhoto",""),he=Q[0],Ve=Q[1],Ne=(0,t.useLocalState)(w,"censorMode",!1),Be=Ne[0],Le=Ne[1],Ae;j===0||j===2?Ae=(0,e.createComponentVNode)(2,l):j===1&&(Ae=(0,e.createComponentVNode)(2,v));var fe=W.reduce(function(Z,J){return Z+J.unread},0);return(0,e.createComponentVNode)(2,y.Window,{theme:O&&"security",width:800,height:600,children:[he?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,V.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,y.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,m,{icon:"bars",title:"Toggle Menu",onClick:function(){function Z(){return ne(!G)}return Z}()}),(0,e.createComponentVNode)(2,m,{icon:"newspaper",title:"Headlines",selected:j===0,onClick:function(){function Z(){return T("headlines")}return Z}(),children:fe>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:fe>=10?"9+":fe})}),(0,e.createComponentVNode)(2,m,{icon:"briefcase",title:"Job Openings",selected:j===1,onClick:function(){function Z(){return T("jobs")}return Z}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:W.map(function(Z){return(0,e.createComponentVNode)(2,m,{icon:Z.icon,title:Z.name,selected:j===2&&W[z-1]===Z,onClick:function(){function J(){return T("channel",{uid:Z.uid})}return J}(),children:Z.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Z.unread>=10?"9+":Z.unread})},Z)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!O||!!P)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,m,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function Z(){return(0,V.modalOpen)(w,"wanted_notice")}return Z}()}),(0,e.createComponentVNode)(2,m,{security:!0,icon:Be?"minus-square":"minus-square-o",title:"Censor Mode: "+(Be?"On":"Off"),mb:"0.5rem",onClick:function(){function Z(){return Le(!Be)}return Z}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,m,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function Z(){return(0,V.modalOpen)(w,"create_story")}return Z}()}),(0,e.createComponentVNode)(2,m,{icon:"plus-circle",title:"New Channel",onClick:function(){function Z(){return(0,V.modalOpen)(w,"create_channel")}return Z}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,m,{icon:F?"spinner":"print",iconSpin:F,title:F?"Printing...":"Print Newspaper",onClick:function(){function Z(){return T("print_newspaper")}return Z}()}),(0,e.createComponentVNode)(2,m,{icon:R?"volume-mute":"volume-up",title:"Mute: "+(R?"On":"Off"),onClick:function(){function Z(){return T("toggle_mute")}return Z}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,k.TemporaryNotice),Ae]})]})})]})}return B}(),m=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=L.icon,O=E===void 0?"":E,P=L.iconSpin,R=L.selected,F=R===void 0?!1:R,j=L.security,W=j===void 0?!1:j,H=L.onClick,z=L.title,$=L.children,G=i(L,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",F&&"Newscaster__menuButton--selected",W&&"Newscaster__menuButton--security"]),onClick:H},G,{children:[F&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:O,spin:P,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:z}),$]})))},l=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=E.screen,P=E.is_admin,R=E.channel_idx,F=E.channel_can_manage,j=E.channels,W=E.stories,H=E.wanted,z=(0,t.useLocalState)(w,"fullStories",[]),$=z[0],G=z[1],ne=(0,t.useLocalState)(w,"censorMode",!1),Q=ne[0],he=ne[1],Ve=O===2&&R>-1?j[R-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!H&&(0,e.createComponentVNode)(2,b,{story:H,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:Ve?Ve.icon:"newspaper",mr:"0.5rem"}),Ve?Ve.name:"Headlines"],0),children:W.length>0?W.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,Be){return(0,e.createComponentVNode)(2,b,{story:Ne},Be)}):(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."]})}),!!Ve&&(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)([Q&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!Ve.admin&&!P,selected:Ve.censored,icon:Ve.censored?"comment-slash":"comment",content:Ve.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function Ne(){return T("censor_channel",{uid:Ve.uid})}return Ne}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!F,icon:"cog",content:"Manage",onClick:function(){function Ne(){return(0,V.modalOpen)(w,"manage_channel",{uid:Ve.uid})}return Ne}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:Ve.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:Ve.author||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:Ve.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"}),W.reduce(function(Ne,Be){return Ne+Be.view_count},0).toLocaleString()]})]})})]})},v=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=E.jobs,P=E.wanted,R=Object.entries(O).reduce(function(F,j){var W=j[0],H=j[1];return F+H.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!P&&(0,e.createComponentVNode)(2,b,{story:P,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:R>0?f.map(function(F){return Object.assign({},u[F],{id:F,jobs:O[F]})}).filter(function(F){return!!F&&F.jobs.length>0}).map(function(F){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+F.id]),title:F.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:F.fluff_text}),children:F.jobs.map(function(j){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!j.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",j.title]},j.title)})},F.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,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=L.story,P=L.wanted,R=P===void 0?!1:P,F=(0,t.useLocalState)(w,"fullStories",[]),j=F[0],W=F[1],H=(0,t.useLocalState)(w,"censorMode",!1),z=H[0],$=H[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",R&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([R&&(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:[!R&&z&&(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 T("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",!R&&(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,s.timeAgo)(O.publish_time,E.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,N,{name:"story_photo_"+O.uid+".png",float:"right",ml:"0.5rem"}),(O.body_short||O.body).split("\n").map(function(G,ne){return(0,e.createComponentVNode)(2,o.Box,{children:G||(0,e.createVNode)(1,"br")},ne)}),O.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function G(){return W([].concat(j,[O.uid]))}return G}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},N=function(L,w){var A=L.name,T=i(L,p),E=(0,t.useLocalState)(w,"viewingPhoto",""),O=E[0],P=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function R(){return P(A)}return R}()},T)))},h=function(L,w){var A=(0,t.useLocalState)(w,"viewingPhoto",""),T=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:T}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function O(){return E("")}return O}()})]})},C=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=!!L.args.uid&&E.channels.filter(function(ee){return ee.uid===L.args.uid}).pop();if(L.id==="manage_channel"&&!O){(0,V.modalClose)(w);return}var P=L.id==="manage_channel",R=!!L.args.is_admin,F=L.args.scanned_user,j=(0,t.useLocalState)(w,"author",(O==null?void 0:O.author)||F||"Unknown"),W=j[0],H=j[1],z=(0,t.useLocalState)(w,"name",(O==null?void 0:O.name)||""),$=z[0],G=z[1],ne=(0,t.useLocalState)(w,"description",(O==null?void 0:O.description)||""),Q=ne[0],he=ne[1],Ve=(0,t.useLocalState)(w,"icon",(O==null?void 0:O.icon)||"newspaper"),Ne=Ve[0],Be=Ve[1],Le=(0,t.useLocalState)(w,"isPublic",P?!!(O!=null&&O.public):!1),Ae=Le[0],fe=Le[1],Z=(0,t.useLocalState)(w,"adminLocked",(O==null?void 0:O.admin)===1||!1),J=Z[0],te=Z[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:P?"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:!R,width:"100%",value:W,onInput:function(){function ee(le,ye){return H(ye)}return ee}()})}),(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 ee(le,ye){return G(ye)}return ee}()})}),(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:Q,onInput:function(){function ee(le,ye){return he(ye)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!R,value:Ne,width:"35%",mr:"0.5rem",onInput:function(){function ee(le,ye){return Be(ye)}return ee}()}),(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 ee(){return fe(!Ae)}return ee}()})}),R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:J,icon:J?"lock":"lock-open",content:J?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ee(){return te(!J)}return ee}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:W.trim().length===0||$.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function ee(){(0,V.modalAnswer)(w,L.id,"",{author:W,name:$.substr(0,49),description:Q.substr(0,128),icon:Ne,public:Ae?1:0,admin_locked:J?1:0})}return ee}()})]})},g=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=E.photo,P=E.channels,R=E.channel_idx,F=R===void 0?-1:R,j=!!L.args.is_admin,W=L.args.scanned_user,H=P.slice().sort(function(ee,le){if(F<0)return 0;var ye=P[F-1];if(ye.uid===ee.uid)return-1;if(ye.uid===le.uid)return 1}).filter(function(ee){return j||!ee.frozen&&(ee.author===W||!!ee.public)}),z=(0,t.useLocalState)(w,"author",W||"Unknown"),$=z[0],G=z[1],ne=(0,t.useLocalState)(w,"channel",H.length>0?H[0].name:""),Q=ne[0],he=ne[1],Ve=(0,t.useLocalState)(w,"title",""),Ne=Ve[0],Be=Ve[1],Le=(0,t.useLocalState)(w,"body",""),Ae=Le[0],fe=Le[1],Z=(0,t.useLocalState)(w,"adminLocked",!1),J=Z[0],te=Z[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:!j,width:"100%",value:$,onInput:function(){function ee(le,ye){return G(ye)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:Q,options:H.map(function(ee){return ee.name}),mb:"0",width:"100%",onSelected:function(){function ee(le){return he(le)}return ee}()})}),(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 ee(le,ye){return Be(ye)}return ee}()})}),(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 ee(le,ye){return fe(ye)}return ee}()})}),(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 ee(){return T(O?"eject_photo":"attach_photo")}return ee}()})}),(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,N,{name:"inserted_photo_"+O.uid+".png",float:"right"}),Ae.split("\n").map(function(ee,le){return(0,e.createComponentVNode)(2,o.Box,{children:ee||(0,e.createVNode)(1,"br")},le)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:J,icon:J?"lock":"lock-open",content:J?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ee(){return te(!J)}return ee}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:$.trim().length===0||Q.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 ee(){(0,V.modalAnswer)(w,"create_story","",{author:$,channel:Q,title:Ne.substr(0,127),body:Ae.substr(0,1023),admin_locked:J?1:0})}return ee}()})]})},x=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=E.photo,P=E.wanted,R=!!L.args.is_admin,F=L.args.scanned_user,j=(0,t.useLocalState)(w,"author",(P==null?void 0:P.author)||F||"Unknown"),W=j[0],H=j[1],z=(0,t.useLocalState)(w,"name",(P==null?void 0:P.title.substr(8))||""),$=z[0],G=z[1],ne=(0,t.useLocalState)(w,"description",(P==null?void 0:P.body)||""),Q=ne[0],he=ne[1],Ve=(0,t.useLocalState)(w,"adminLocked",(P==null?void 0:P.admin_locked)===1||!1),Ne=Ve[0],Be=Ve[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:!R,width:"100%",value:W,onInput:function(){function Le(Ae,fe){return H(fe)}return Le}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:$,maxLength:"128",onInput:function(){function Le(Ae,fe){return G(fe)}return Le}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:Q,maxLength:"512",rows:"4",onInput:function(){function Le(Ae,fe){return he(fe)}return Le}()})}),(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 Le(){return T(O?"eject_photo":"attach_photo")}return Le}()}),!!O&&(0,e.createComponentVNode)(2,N,{name:"inserted_photo_"+O.uid+".png",float:"right"})]}),R&&(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 Le(){return Be(!Ne)}return Le}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!P,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function Le(){T("clear_wanted_notice"),(0,V.modalClose)(w)}return Le}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:W.trim().length===0||$.trim().length===0||Q.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function Le(){(0,V.modalAnswer)(w,L.id,"",{author:W,name:$.substr(0,127),description:Q.substr(0,511),admin_locked:Ne?1:0})}return Le}()})]})};(0,V.modalRegisterBodyOverride)("create_channel",C),(0,V.modalRegisterBodyOverride)("manage_channel",C),(0,V.modalRegisterBodyOverride)("create_story",g),(0,V.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),s=n(98595),y=r.NinjaBloodScan=function(){function S(p,i){var c=(0,a.useBackend)(i),f=c.act,u=c.data;return(0,e.createComponentVNode)(2,s.Window,{width:500,height:400,theme:"spider_clan",children:(0,e.createComponentVNode)(2,s.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k)]})})}return S}(),V=function(p,i){var c=(0,a.useBackend)(i),f=c.act,u=c.data,d=u.vialIcons,m=u.noVialIcon,l=u.bloodOwnerNames,v=u.bloodOwnerSpecies,b=u.bloodOwnerTypes,N=u.blockButtons,h=u.scanStates,C={blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"},g=["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:g[h[L]],success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{className:N?C.disabled:C.blue,height:"100%",width:"100%",disabled:N,onClick:function(){function w(){return f("vial_out",{button_num:L+1})}return w}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+(d[L]||m),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: "+(v[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:N===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:N,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 f("scan_blood")}return B}()})})]})})},k=function(p,i){var c=(0,a.useBackend)(i),f=c.data,u=f.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),s=r.NinjaMindScan=function(){function V(k,S){var p=(0,a.useBackend)(S),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,y)})})}return V}(),y=function(k,S){var p=(0,a.useBackend)(S),i=p.act,c=p.data,f=c.occupantIcon,u=c.occupant_name,d=c.occupant_health,m=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,"+f,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 v(){return i("scan_occupant")}return v}()}),(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 v(){return i("go_out")}return v}()}),(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 v(){return i("teleport_out")}return v}()})]})]})]})}),(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:m.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Box,{children:v.scanned_occupant})})},v.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),s=r.NuclearBomb=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.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 y}()},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),s=n(72253),y=n(36036),V=n(98595),k=r.NumberInputModal=function(){function p(i,c){var f=(0,s.useBackend)(c),u=f.act,d=f.data,m=d.init_value,l=d.large_buttons,v=d.message,b=v===void 0?"":v,N=d.timeout,h=d.title,C=(0,s.useLocalState)(c,"input",m),g=C[0],x=C[1],B=function(){function A(T){T!==g&&x(T)}return A}(),L=function(){function A(T){T!==g&&x(T)}return A}(),w=140+Math.max(Math.ceil(b.length/3),b.length>0&&l?5:0);return(0,e.createComponentVNode)(2,V.Window,{title:h,width:270,height:w,children:[N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,V.Window.Content,{onKeyDown:function(){function A(T){var E=window.event?T.which:T.keyCode;E===o.KEY_ENTER&&u("submit",{entry:g}),E===o.KEY_ESCAPE&&u("cancel")}return A}(),children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,children:(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.Box,{color:"label",children:b})}),(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,S,{input:g,onClick:L,onChange:B})}),(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:g})})]})})})]})}return p}(),S=function(i,c){var f=(0,s.useBackend)(c),u=f.act,d=f.data,m=d.min_value,l=d.max_value,v=d.init_value,b=d.round_value,N=i.input,h=i.onClick,C=i.onChange,g=Math.round(N!==m?Math.max(N/2,m):l/2),x=N===m&&m>0||N===1;return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Button,{disabled:N===m,icon:"angle-double-left",onClick:function(){function B(){return h(m)}return B}(),tooltip:N===m?"Min":"Min ("+m+")"})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!b,minValue:m,maxValue:l,onChange:function(){function B(L,w){return C(w)}return B}(),onEnter:function(){function B(L,w){return u("submit",{entry:w})}return B}(),value:N})}),(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Button,{disabled:N===l,icon:"angle-double-right",onClick:function(){function B(){return h(l)}return B}(),tooltip:N===l?"Max":"Max ("+l+")"})}),(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Button,{disabled:x,icon:"divide",onClick:function(){function B(){return h(g)}return B}(),tooltip:x?"Split":"Split ("+g+")"})}),(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Button,{disabled:N===v,icon:"redo",onClick:function(){function B(){return h(v)}return B}(),tooltip:v?"Reset ("+v+")":"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),s=n(36036),y=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],V=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],k={average:[.25,.5],bad:[.5,1/0]},S=["bad","average","average","good","average","average","bad"],p=r.OperatingComputer=function(){function u(d,m){var l=(0,t.useBackend)(m),v=l.act,b=l.data,N=b.hasOccupant,h=b.choice,C;return h?C=(0,e.createComponentVNode)(2,f):C=N?(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,s.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s.Stack.Item,{children:(0,e.createComponentVNode)(2,s.Tabs,{children:[(0,e.createComponentVNode)(2,s.Tabs.Tab,{selected:!h,icon:"user",onClick:function(){function g(){return v("choiceOff")}return g}(),children:"Patient"}),(0,e.createComponentVNode)(2,s.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function g(){return v("choiceOn")}return g}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s.Section,{fill:!0,scrollable:!0,children:C})})]})})})}return u}(),i=function(d,m){var l=(0,t.useBackend)(m),v=l.data,b=v.occupant;return(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.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,s.LabeledList,{children:[(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Name",children:b.name}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Status",color:y[b.stat][0],children:y[b.stat][1]}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,s.ProgressBar,{min:"0",max:b.maxHealth,value:b.health/b.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),V.map(function(N,h){return(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:N[0]+" Damage",children:(0,e.createComponentVNode)(2,s.ProgressBar,{min:"0",max:"100",value:b[N[1]]/100,ranges:k,children:(0,a.round)(b[N[1]])},h)},h)}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,s.ProgressBar,{min:"0",max:b.maxTemp,value:b.bodyTemperature/b.maxTemp,color:S[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,s.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,s.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,s.LabeledList.Item,{label:"Pulse",children:[b.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,s.Stack.Item,{children:(0,e.createComponentVNode)(2,s.Section,{title:"Current Procedures",level:"2",children:b.inSurgery?b.surgeries.map(function(N){var h=N.bodypartName,C=N.surgeryName,g=N.stepName;return(0,e.createComponentVNode)(2,s.Section,{title:h,level:"4",children:(0,e.createComponentVNode)(2,s.LabeledList,{children:[(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Procedure",children:C}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Next Step",children:g})]})},h)}):(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,s.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,s.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},f=function(d,m){var l=(0,t.useBackend)(m),v=l.act,b=l.data,N=b.verbose,h=b.health,C=b.healthAlarm,g=b.oxy,x=b.oxyAlarm,B=b.crit;return(0,e.createComponentVNode)(2,s.LabeledList,{children:[(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,s.Button,{selected:N,icon:N?"toggle-on":"toggle-off",content:N?"On":"Off",onClick:function(){function L(){return v(N?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,s.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function L(){return v(h?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,s.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:C,stepPixelSize:5,ml:"0",onChange:function(){function L(w,A){return v("health_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,s.Button,{selected:g,icon:g?"toggle-on":"toggle-off",content:g?"On":"Off",onClick:function(){function L(){return v(g?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,s.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:x,stepPixelSize:5,ml:"0",onChange:function(){function L(w,A){return v("oxy_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,s.Button,{selected:B,icon:B?"toggle-on":"toggle-off",content:B?"On":"Off",onClick:function(){function L(){return v(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),s=n(98595);function y(m,l){var v=typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(v)return(v=v.call(m)).next.bind(v);if(Array.isArray(m)||(v=V(m))||l&&m&&typeof m.length=="number"){v&&(m=v);var b=0;return function(){return b>=m.length?{done:!0}:{done:!1,value:m[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(m,l){if(m){if(typeof m=="string")return k(m,l);var v={}.toString.call(m).slice(8,-1);return v==="Object"&&m.constructor&&(v=m.constructor.name),v==="Map"||v==="Set"?Array.from(m):v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v)?k(m,l):void 0}}function k(m,l){(l==null||l>m.length)&&(l=m.length);for(var v=0,b=Array(l);vv},c=function(l,v){var b=l.name,N=v.name;if(!b||!N)return 0;var h=b.match(S),C=N.match(S);if(h&&C&&b.replace(S,"")===N.replace(S,"")){var g=parseInt(h[1],10),x=parseInt(C[1],10);return g-x}return i(b,N)},f=function(l,v){var b=(0,t.useBackend)(v),N=b.act,h=l.searchText,C=l.source,g=l.title,x=C.filter(p(h));return x.sort(c),C.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:g+" - ("+C.length+")",children:x.map(function(B){return(0,e.createComponentVNode)(2,o.Button,{content:B.name,onClick:function(){function L(){return N("orbit",{ref:B.ref})}return L}()},B.name)})})},u=function(l,v){var b=(0,t.useBackend)(v),N=b.act,h=l.color,C=l.thing;return(0,e.createComponentVNode)(2,o.Button,{color:h,onClick:function(){function g(){return N("orbit",{ref:C.ref})}return g}(),children:C.name})},d=r.Orbit=function(){function m(l,v){for(var b=(0,t.useBackend)(v),N=b.act,h=b.data,C=h.alive,g=h.antagonists,x=h.highlights,B=h.auto_observe,L=h.dead,w=h.ghosts,A=h.misc,T=h.npcs,E=(0,t.useLocalState)(v,"searchText",""),O=E[0],P=E[1],R={},F=y(g),j;!(j=F()).done;){var W=j.value;R[W.antag]===void 0&&(R[W.antag]=[]),R[W.antag].push(W)}var H=Object.entries(R);H.sort(function($,G){return i($[0],G[0])});var z=function(){function $(G){for(var ne=0,Q=[H.map(function(Ne){var Be=Ne[0],Le=Ne[1];return Le}),x,C,w,L,T,A];ne0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:H.map(function($){var G=$[0],ne=$[1];return(0,e.createComponentVNode)(2,o.Section,{title:G,level:2,children:ne.filter(p(O)).sort(c).map(function(Q){return(0,e.createComponentVNode)(2,u,{color:"bad",thing:Q},Q.name)})},G)})}),x.length>0&&(0,e.createComponentVNode)(2,f,{title:"Highlights",source:x,searchText:O,color:"teal"}),(0,e.createComponentVNode)(2,o.Section,{title:"Alive - ("+C.length+")",children:C.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 - ("+w.length+")",children:w.filter(p(O)).sort(c).map(function($){return(0,e.createComponentVNode)(2,u,{color:"grey",thing:$},$.name)})}),(0,e.createComponentVNode)(2,f,{title:"Dead",source:L,searchText:O}),(0,e.createComponentVNode)(2,f,{title:"NPCs",source:T,searchText:O}),(0,e.createComponentVNode)(2,f,{title:"Misc",source:A,searchText:O})]})})}return m}()},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),s=n(98595),y=n(9394);function V(l){if(l==null)throw new TypeError("Cannot destructure "+l)}var k=(0,y.createLogger)("OreRedemption"),S=function(v){return v.toLocaleString("en-US")+" pts"},p=r.OreRedemption=function(){function l(v,b){return(0,e.createComponentVNode)(2,s.Window,{width:490,height:750,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,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,f)]})})})}return l}(),i=function(v,b){var N=(0,t.useBackend)(b),h=N.act,C=N.data,g=C.id,x=C.points,B=C.disk,L=Object.assign({},(V(v),v));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:g?(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:g.name,tooltip:"Ejects the ID card.",onClick:function(){function w(){return h("eject_id")}return w}(),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 w(){return h("insert_id")}return w}()})}),g&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:S(g.points)})}),g&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:S(g.total_points)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:x>0?"good":"grey",bold:x>0&&"good",children:S(x)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!g,icon:"hand-holding-usd",content:"Claim",onClick:function(){function w(){return h("claim")}return w}()})})]}),(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 w(){return h("eject_disk")}return w}()})}),(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 w(){return h("download")}return w}()})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(v,b){var N=(0,t.useBackend)(b),h=N.act,C=N.data,g=C.sheets,x=Object.assign({},(V(v),v));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%"]]}),g.map(function(B){return(0,e.createComponentVNode)(2,d,{ore:B},B.id)})]})))})},f=function(v,b){var N=(0,t.useBackend)(b),h=N.act,C=N.data,g=C.alloys,x=Object.assign({},(V(v),v));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%"]]}),g.map(function(B){return(0,e.createComponentVNode)(2,m,{ore:B},B.id)})]})))})},u=function(v,b){var N;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:v.title}),(N=v.columns)==null?void 0:N.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(v,b){var N=(0,t.useBackend)(b),h=N.act,C=v.ore;if(!(C.value&&C.amount<=0&&!(["metal","glass"].indexOf(C.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",C.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:C.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:C.amount>=1?"good":"gray",bold:C.amount>=1,align:"center",children:C.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:C.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(C.amount,50),stepPixelSize:6,onChange:function(){function g(x,B){return h(C.value?"sheet":"alloy",{id:C.id,amount:B})}return g}()})})]})})},m=function(v,b){var N=(0,t.useBackend)(b),h=N.act,C=v.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",C.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:C.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:C.amount>=1?"good":"gray",align:"center",children:C.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:C.amount>=1?"good":"gray",bold:C.amount>=1,align:"center",children:C.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(C.amount,50),stepPixelSize:6,onChange:function(){function g(x,B){return h(C.value?"sheet":"alloy",{id:C.id,amount:B})}return g}()})})]})})}},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),s=n(71253),y=n(70752),V=function(p){var i;try{i=y("./"+p+".js")}catch(f){if(f.code==="MODULE_NOT_FOUND")return(0,s.routingError)("notFound",p);throw f}var c=i[p];return c||(0,s.routingError)("missingExport",p)},k=r.PAI=function(){function S(p,i){var c=(0,a.useBackend)(i),f=c.act,u=c.data,d=u.app_template,m=u.app_icon,l=u.app_title,v=V(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:m,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 f("MASTER_back")}return b}()})]}),p:1,children:(0,e.createComponentVNode)(2,v)})})})}return S}()},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),s=n(71253),y=n(59395),V=function(c){var f;try{f=y("./"+c+".js")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,s.routingError)("notFound",c);throw d}var u=f[c];return u||(0,s.routingError)("missingExport",c)},k=r.PDA=function(){function i(c,f){var u=(0,a.useBackend)(f),d=u.act,m=u.data,l=m.app,v=m.owner;if(!v)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=V(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,S)}),(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}(),S=function(c,f){var u=(0,a.useBackend)(f),d=u.act,m=u.data,l=m.idInserted,v=m.idLink,b=m.stationTime,N=m.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 h(){return d("Authenticate")}return h}(),content:l?v:"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 h(){return d("Eject")}return h}(),content:N?["Eject "+N]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:b})]})},p=function(c,f){var u=(0,a.useBackend)(f),d=u.act,m=u.data,l=m.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 v(){return d("Back")}return v}()})}),(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 v(){d("Home")}return v}()})})]})})}},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),s=r.PDAPainter=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,c=p.data,f=c.statusLabel,u=c.pdaTypes,d=c.hasPDA,m=c.pdaIcon,l=c.pdaOwnerName,v=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 b(){return i(d?"eject_pda":"insert_pda")}return b}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0418\u043C\u044F",children:l||"\u041D/\u0414"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C",children:v||"\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.Box,{as:"img",height:"160px",src:d?"data:image/png;base64,"+m:"",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:f})}),(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 b(){return i("erase_pda")}return b}()})]})})})]}),(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(b){return(0,e.createComponentVNode)(2,y,{selectedPda:b,selectedPdaImage:u[b][0]},b)})})})})})]})})})}return V}(),y=r.PDAColorRow=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,c=p.data,f=c.hasPDA,u=k.selectedPda,d=k.selectedPdaImage;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/png;base64,"+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:!f,icon:d,content:u,confirmContent:"\u041F\u043E\u043A\u0440\u0430\u0441\u0438\u0442\u044C?",textAlign:"left",onClick:function(){function m(){return i("choose_pda",{selectedPda:u,selectedPdaImage:d})}return m}()})})]})}return V}()},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),s=n(49968),y=r.Pacman=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,c=p.data,f=c.broken,u=c.anchored,d=c.active,m=c.fuel_type,l=c.fuel_usage,v=c.fuel_stored,b=c.fuel_cap,N=c.is_ai,h=c.tmp_current,C=c.tmp_max,g=c.tmp_overheat,x=c.output_max,B=c.power_gen,L=c.output_set,w=c.has_fuel,A=v/b,T=h/C,E=L*B,O=Math.round(v/l),P=Math.round(O/60),R=O>120?P+" minutes":O+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(f||!u)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!f&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!f&&!u&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!f&&!!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:!w,selected:d,onClick:function(){function F(){return i("toggle_power")}return F}()}),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 F(j,W){return i("change_power",{change_power:W})}return F}()}),"(",(0,s.formatPower)(E),")"]})})}),(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:T,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:[g>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),g>20&&g<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),g>1&&g<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),g===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||N||!w,onClick:function(){function F(){return i("eject_fuel")}return F}()}),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:m}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:A,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(v/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:[!!w&&(l?R:"N/A"),!w&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return V}()},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),s=r.PersonalCrafting=function(){function k(S,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,u=f.busy,d=f.category,m=f.display_craftable_only,l=f.display_compact,v=f.prev_cat,b=f.next_cat,N=f.subcategory,h=f.prev_subcat,C=f.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:m?"check-square-o":"square-o",selected:m,onClick:function(){function g(){return c("toggle_recipes")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:l?"check-square-o":"square-o",selected:l,onClick:function(){function g(){return c("toggle_compact")}return g}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"arrow-left",onClick:function(){function g(){return c("backwardCat")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:b,icon:"arrow-right",onClick:function(){function g(){return c("forwardCat")}return g}()})]}),N&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function g(){return c("backwardSubCat")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"arrow-right",onClick:function(){function g(){return c("forwardSubCat")}return g}()})]}),l?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,V)]})]})})}return k}(),y=function(S,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,u=f.display_craftable_only,d=f.can_craft,m=f.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 v(){return c("make",{make:l.ref})}return v}()}),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&&m.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)})]})})},V=function(S,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,u=f.display_craftable_only,d=f.can_craft,m=f.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 v(){return c("make",{make:l.ref})}return v}()}),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&&m.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),s=n(88510),y=n(64795),V=n(25328);function k(f,u){var d=typeof Symbol!="undefined"&&f[Symbol.iterator]||f["@@iterator"];if(d)return(d=d.call(f)).next.bind(d);if(Array.isArray(f)||(d=S(f))||u&&f&&typeof f.length=="number"){d&&(f=d);var m=0;return function(){return m>=f.length?{done:!0}:{done:!1,value:f[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(f,u){if(f){if(typeof f=="string")return p(f,u);var d={}.toString.call(f).slice(8,-1);return d==="Object"&&f.constructor&&(d=f.constructor.name),d==="Map"||d==="Set"?Array.from(f):d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?p(f,u):void 0}}function p(f,u){(u==null||u>f.length)&&(u=f.length);for(var d=0,m=Array(u);df?this.substring(0,f)+"...":this};var i=function(u,d){d===void 0&&(d="");var m=(0,V.createSearch)(d,function(l){return l.altername});return(0,y.flow)([(0,s.filter)(function(l){return l==null?void 0:l.altername}),d&&(0,s.filter)(m),(0,s.sortBy)(function(l){return l.id})])(u)},c=r.Photocopier=function(){function f(u,d){for(var m=(0,a.useBackend)(d),l=m.act,v=m.data,b=v.copies,N=v.maxcopies,h=(0,a.useLocalState)(d,"searchText",""),C=h[0],g=h[1],x=i((0,s.sortBy)(function(R){return R.category})(v.forms||[]),C),B=[],L=k(x),w;!(w=L()).done;){var A=w.value;B.includes(A.category)||B.push(A.category)}var T=(0,a.useLocalState)(d,"number",0),E=T[0],O=T[1],P;return v.category===""?P=x:P=x.filter(function(R){return R.category===v.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:v.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:v.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:v.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":v.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:!v.copyitem&&!v.mob,icon:v.copyitem||v.mob?"eject":"times",content:v.copyitem?v.copyitem:v.mob?"\u0416\u043E\u043F\u0430 "+v.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function R(){return l("removedocument")}return R}()})})}),(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:!v.folder,icon:v.folder?"eject":"times",content:v.folder?v.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function R(){return l("removefolder")}return R}()})})})]}),(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:v.toner===0||v.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function R(){return l("print_form")}return R}()})}),!!v.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:v.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 R(){return l("ai_pic")}return R}()})})]}),(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:v.toner===0||!v.copyitem&&!v.mob,onClick:function(){function R(){return l("copy")}return R}()})}),!!v.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:v.toner===0,onClick:function(){function R(){return l("ai_text")}return R}()})})]}),(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:N,value:b,stepPixelSize:10,onChange:function(){function R(F,j){return l("copies",{new:j})}return R}()})]})]}),(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:!v.category,onClick:function(){function R(){return l("choose_category",{category:""})}return R}()})}),B.map(function(R){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:R,selected:v.category===R,onClick:function(){function F(){return l("choose_category",{category:R})}return F}()},R)},R)})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:v.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 R(F,j){return g(j)}return R}()}),children:P.map(function(R){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:.5,color:"transparent",content:R.altername.trimLongStr(37),tooltip:R.altername,selected:v.form_id===R.id,onClick:function(){function F(){return l("choose_form",{path:R.path,id:R.id})}return F}()})},R.path)})})})]})})})}return f}()},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),s=r.PodTracking=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.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(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:"Position",children:[f.podx,", ",f.pody,", ",f.podz]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pilot",children:f.pilot}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Passengers",children:f.passengers})]})},f.name)})})})}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),s=["tempKey"];function y(p,i){if(p==null)return{};var c={};for(var f in p)if({}.hasOwnProperty.call(p,f)){if(i.includes(f))continue;c[f]=p[f]}return c}var V={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 f=i.tempKey,u=y(i,s),d=V[f];if(!d)return null;var m=(0,a.useBackend)(c),l=m.data,v=m.act,b=l.currentTemp,N=d.label,h=d.icon,C=f===b,g=function(){v("setTemp",{temp:f})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({selected:C,onClick:g},u,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h}),N]})))},S=r.PoolController=function(){function p(i,c){for(var f=(0,a.useBackend)(c),u=f.data,d=u.emagged,m=u.currentTemp,l=V[m]||V.normal,v=l.label,b=l.color,N=[],h=0,C=Object.entries(V);h50?"battery-half":"battery-quarter")||b==="C"&&"bolt"||b==="F"&&"battery-full"||b==="M"&&"slash",color:b==="N"&&(N>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)(N)+"%"})],4)};d.defaultHooks=s.pureComponentHooks;var m=function(v){var b,N,h=v.status;switch(h){case"AOn":b=!0,N=!0;break;case"AOff":b=!0,N=!1;break;case"On":b=!1,N=!0;break;case"Off":b=!1,N=!1;break}var C=(N?"On":"Off")+(" ["+(b?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,k.ColorBox,{color:N?"good":"bad",content:b?void 0:"M",title:C})};m.defaultHooks=s.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),s=n(3939),y=n(321),V=n(5485),k=n(98595),S=r.PrisonerImplantManager=function(){function p(i,c){var f=(0,a.useBackend)(c),u=f.act,d=f.data,m=d.loginState,l=d.prisonerInfo,v=d.chemicalInfo,b=d.trackingInfo,N;if(!m.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,V.LoginScreen)})});var h=[1,5,10];return(0,e.createComponentVNode)(2,k.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,s.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.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 C(){return u("id_card")}return C}()})}),(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 C(){return u("reset_points")}return C}()})]}),(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 C(){return(0,s.modalOpen)(c,"set_points")}return C}()})]}),(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(C){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: ",C.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:C.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:C.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 g(){return(0,s.modalOpen)(c,"warn",{uid:C.uid})}return g}()})})]})]},C.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:v.map(function(C){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: ",C.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:C.volume})}),h.map(function(g){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:C.volume1100?"purple":m>500?"orange":m>250?"yellow":"green"},k=function(m,l){for(var v=[],b=0;b0?"envelope-open-text":"envelope",onClick:function(){function g(){return l("setScreen",{setScreen:6})}return g}()})}),(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 g(){return l("setScreen",{setScreen:1})}return g}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Supplies",icon:"box",onClick:function(){function g(){return l("setScreen",{setScreen:2})}return g}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Relay Anonymous Information",icon:"comment",onClick:function(){function g(){return l("setScreen",{setScreen:3})}return g}()})})]}),(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 g(){return l("setScreen",{setScreen:9})}return g}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function g(){return l("setScreen",{setScreen:10})}return g}()})})]}),!!N&&(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 g(){return l("setScreen",{setScreen:8})}return g}()})}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{content:h?"Speaker Off":"Speaker On",selected:!h,icon:h?"volume-mute":"volume-up",onClick:function(){function g(){return l("toggleSilent")}return g}()})})]})},V=function(u,d){var m=(0,a.useBackend)(d),l=m.act,v=m.data,b=v.department,N,h;switch(u.purpose){case"ASSISTANCE":N=v.assist_dept,h="Request assistance from another department";break;case"SUPPLIES":N=v.supply_dept,h="Request supplies from another department";break;case"INFO":N=v.info_dept,h="Relay information to another department";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 C(){return l("setScreen",{setScreen:0})}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:N.filter(function(C){return C!==b}).map(function(C){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:C,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function g(){return l("writeInput",{write:C,priority:1})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function g(){return l("writeInput",{write:C,priority:2})}return g}()})]},C)})})})},k=function(u,d){var m=(0,a.useBackend)(d),l=m.act,v=m.data,b;switch(u.type){case"SUCCESS":b="Message sent successfully";break;case"FAIL":b="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{title:b,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return l("setScreen",{setScreen:0})}return N}()})})},S=function(u,d){var m=(0,a.useBackend)(d),l=m.act,v=m.data,b,N;switch(u.type){case"MESSAGES":b=v.message_log,N="Message Log";break;case"SHIPPING":b=v.shipping_log,N="Shipping label print log";break}return(0,e.createComponentVNode)(2,t.Section,{title:N,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return l("setScreen",{setScreen:0})}return h}()}),children:b.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{className:"RequestConsole__message",children:h},h)})})},p=function(u,d){var m=(0,a.useBackend)(d),l=m.act,v=m.data,b=v.recipient,N=v.message,h=v.msgVerified,C=v.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 g(){return l("setScreen",{setScreen:0})}return g}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:b}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:N}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:C})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function g(){return l("department",{department:b})}return g}()})]})},i=function(u,d){var m=(0,a.useBackend)(d),l=m.act,v=m.data,b=v.message,N=v.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 h(){return l("setScreen",{setScreen:0})}return h}()}),children:[(0,e.createComponentVNode)(2,t.Button,{content:b||"Edit Message",icon:"edit",onClick:function(){function h(){return l("writeAnnouncement")}return h}()}),N?(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:!(N&&b),onClick:function(){function h(){return l("sendAnnouncement")}return h}()})]})},c=function(u,d){var m=(0,a.useBackend)(d),l=m.act,v=m.data,b=v.shipDest,N=v.msgVerified,h=v.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 C(){return l("setScreen",{setScreen:0})}return C}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:b}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:N})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(b&&N),onClick:function(){function C(){return l("printLabel")}return C}()}),(0,e.createComponentVNode)(2,t.Section,{title:"Destinations",mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.map(function(C){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:C,children:(0,e.createComponentVNode)(2,t.Button,{content:b===C?"Selected":"Select",selected:b===C,onClick:function(){function g(){return l("shipSelect",{shipSelect:C})}return g}()})},C)})})})]})}},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),s=n(98595);/** + */var y=(0,t.createLogger)("hotkeys"),V={},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],S={},p=function(c){if(c===16)return"Shift";if(c===17)return"Ctrl";if(c===18)return"Alt";if(c===33)return"Northeast";if(c===34)return"Southeast";if(c===35)return"Southwest";if(c===36)return"Northwest";if(c===37)return"West";if(c===38)return"North";if(c===39)return"East";if(c===40)return"South";if(c===45)return"Insert";if(c===46)return"Delete";if(c>=48&&c<=57||c>=65&&c<=90)return String.fromCharCode(c);if(c>=96&&c<=105)return"Numpad"+(c-96);if(c>=112&&c<=123)return"F"+(c-111);if(c===188)return",";if(c===189)return"-";if(c===190)return"."},i=function(c){var v=String(c);if(v==="Ctrl+F5"||v==="Ctrl+R"){location.reload();return}if(v!=="Ctrl+F"&&!(c.event.defaultPrevented||c.isModifierKey()||k.includes(c.code))){v==="F5"&&(c.event.preventDefault(),c.event.returnValue=!1);var b=p(c.code);if(b){var g=V[b];if(g)return y.debug("macro",g),Byond.command(g);if(c.isDown()&&!S[b]){S[b]=!0;var h='KeyDown "'+b+'"';return y.debug(h),Byond.command(h)}if(c.isUp()&&S[b]){S[b]=!1;var C='KeyUp "'+b+'"';return y.debug(C),Byond.command(C)}}}},l=r.acquireHotKey=function(){function m(c){k.push(c)}return m}(),f=r.releaseHotKey=function(){function m(c){var v=k.indexOf(c);v>=0&&k.splice(v,1)}return m}(),u=r.releaseHeldKeys=function(){function m(){for(var c=0,v=Object.keys(S);c=75?l="green":i.integrity>=25?l="yellow":l="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:l,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(f,u){return(0,e.createComponentVNode)(2,t.Box,{children:f},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 f(){return p("wireless")}return f}()})}),(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 f(){return p("radio")}return f}()})}),(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 f(){return p("wipe")}return f}()})})]})})})]})})})}return y}()},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),d=r.AIFixer=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.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 l=!0;(i.stat===2||i.stat===null)&&(l=!1);var f=null;i.integrity>=75?f="green":i.integrity>=25?f="yellow":f="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:f,value:i.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:l?"green":"red",children:l?"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(s,m){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:s},m)})})||(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 s(){return p("wireless")}return s}()})}),(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 s(){return p("radio")}return s}()})}),(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 s(){return p("fix")}return s}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:i.active?"Reconstruction in progress.":""})]})})]})})})}return y}()},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),d=n(195),y=r.APC=function(){function p(i,l){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,S)})})}return p}(),V={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"}},S=function(i,l){var f=(0,a.useBackend)(l),u=f.act,s=f.data,m=s.locked&&!s.siliconUser,c=s.normallyLocked,v=V[s.externalPower]||V[0],b=V[s.chargingStatus]||V[0],g=s.powerChannels||[],h=k[s.malfStatus]||k[0],C=s.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,d.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:v.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:s.isOperating?"power-off":"times",content:s.isOperating?"On":"Off",selected:s.isOperating&&!m,color:s.isOperating?"":"bad",disabled:m,onClick:function(){function N(){return u("breaker")}return N}()}),children:["[ ",v.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:C})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:b.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:s.chargeMode?"sync":"times",content:s.chargeMode?"Auto":"Off",selected:s.chargeMode,disabled:m,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:[g.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:!m&&(N.status===1||N.status===3),disabled:m,onClick:function(){function B(){return u("channel",x.auto)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!m&&N.status===2,disabled:m,onClick:function(){function B(){return u("channel",x.on)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!m&&N.status===0,disabled:m,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,[s.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!s.siliconUser&&(0,e.createFragment)([!!s.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:s.coverLocked?"lock":"unlock",content:s.coverLocked?"Engaged":"Disengaged",disabled:m,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:s.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:s.emergencyLights?"Engaged":"Disengaged",disabled:m,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),d=r.ATM=function(){function u(s,m){var c=(0,a.useBackend)(m),v=c.act,b=c.data,g=b.view_screen,h=b.authenticated_account,C=b.ticks_left_locked_down,N=b.linked_db,x;if(C>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(g){case 1:x=(0,e.createComponentVNode)(2,V);break;case 2:x=(0,e.createComponentVNode)(2,k);break;case 3:x=(0,e.createComponentVNode)(2,l);break;case 4:x=(0,e.createComponentVNode)(2,S);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,y),(0,e.createComponentVNode)(2,t.Section,{children:x})]})})}return u}(),y=function(s,m){var c=(0,a.useBackend)(m),v=c.act,b=c.data,g=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 C(){return v("insert_card")}return C}()})})})]})},V=function(s,m){var c=(0,a.useBackend)(m),v=c.act,b=c.data,g=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:g===0,onClick:function(){function h(){return v("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:g===1,onClick:function(){function h(){return v("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:g===2,onClick:function(){function h(){return v("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,f)]})},k=function(s,m){var c=(0,a.useBackend)(m),v=c.act,b=c.data,g=(0,a.useLocalState)(m,"targetAccNumber",0),h=g[0],C=g[1],N=(0,a.useLocalState)(m,"fundsAmount",0),x=N[0],B=N[1],L=(0,a.useLocalState)(m,"purpose",0),w=L[0],A=L[1],T=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:["$",T]}),(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 E(O,P){return C(P)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function E(O,P){return B(P)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function E(O,P){return A(P)}return E}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function E(){return v("transfer",{target_acc_number:h,funds_amount:x,purpose:w})}return E}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,f)]})},S=function(s,m){var c=(0,a.useBackend)(m),v=c.act,b=c.data,g=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:g==="None",onClick:function(){function h(){return v("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:g==="Bugetary",onClick:function(){function h(){return v("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:g==="Standart",onClick:function(){function h(){return v("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:g==="Deluxe",onClick:function(){function h(){return v("change_insurance_type",{new_insurance_type:"Deluxe"})}return h}()})]})}),(0,e.createComponentVNode)(2,f)]})},p=function(s,m){var c=(0,a.useBackend)(m),v=c.act,b=c.data,g=(0,a.useLocalState)(m,"fundsAmount","insuranceAmount",0),h=g[0],C=g[1],N=g[2],x=g[3],B=b.owner_name,L=b.money,w=b.insurance;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+B,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function A(){return v("logout")}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",L]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function A(T,E){return N(E)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function A(){return v("withdrawal",{funds_amount:h})}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Insurance Points",children:["$",w]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Adding Insurance",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function A(T,E){return x(E)}return A}()})}),(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 A(){return v("insurance",{insurance_amount:C})}return A}()})}),(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 A(){return v("insurance_replenishment",{})}return A}()})})]})}),(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 A(){return v("view_screen",{view_screen:1})}return A}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function A(){return v("view_screen",{view_screen:2})}return A}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function A(){return v("view_screen",{view_screen:3})}return A}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change type of insurance",icon:"lock",onClick:function(){function A(){return v("view_screen",{view_screen:4})}return A}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function A(){return v("balance_statement")}return A}()})})]})],4)},i=function(s,m){var c=(0,a.useBackend)(m),v=c.act,b=c.data,g=(0,a.useLocalState)(m,"accountID",null),h=g[0],C=g[1],N=(0,a.useLocalState)(m,"accountPin",null),x=N[0],B=N[1],L=b.machine_id,w=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 A(T,E){return C(E)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function A(T,E){return B(E)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function A(){return v("attempt_auth",{account_num:h,account_pin:x})}return A}()})})]})})},l=function(s,m){var c=(0,a.useBackend)(m),v=c.act,b=c.data,g=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"})]}),g.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,f)]})},f=function(s,m){var c=(0,a.useBackend)(m),v=c.act,b=c.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function g(){return v("view_screen",{view_screen:0})}return g}()})}},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),d=n(36352),y=n(98595),V=n(321),k=n(5485),S=r.AccountsUplinkTerminal=function(){function s(m,c){var v=(0,t.useBackend)(c),b=v.act,g=v.data,h=g.loginState,C=g.currentPage,N;if(h.logged_in)C===1?N=(0,e.createComponentVNode)(2,p):C===2?N=(0,e.createComponentVNode)(2,f):C===3&&(N=(0,e.createComponentVNode)(2,u));else return(0,e.createComponentVNode)(2,y.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,y.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,y.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:N})]})})})}return s}(),p=function(m,c){var v=(0,t.useBackend)(c),b=v.act,g=v.data,h=g.accounts,C=(0,t.useLocalState)(c,"searchText",""),N=C[0],x=C[1],B=(0,t.useLocalState)(c,"sortId","owner_name"),L=B[0],w=B[1],A=(0,t.useLocalState)(c,"sortOrder",!0),T=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,l),(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,P){var R=T?1:-1;return O[L].localeCompare(P[L])*R}).map(function(O){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+O.suspended,onClick:function(){function P(){return b("view_account_detail",{index:O.account_index})}return P}(),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(m,c){var v=(0,t.useLocalState)(c,"sortId","name"),b=v[0],g=v[1],h=(0,t.useLocalState)(c,"sortOrder",!0),C=h[0],N=h[1],x=m.id,B=m.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(!C):(g(x),N(!0))}return L}(),children:[B,b===x&&(0,e.createComponentVNode)(2,o.Icon,{name:C?"sort-up":"sort-down",ml:"0.25rem;"})]})})},l=function(m,c){var v=(0,t.useBackend)(c),b=v.act,g=v.data,h=g.is_printing,C=(0,t.useLocalState)(c,"searchText",""),N=C[0],x=C[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,w){return x(w)}return B}()})})]})},f=function(m,c){var v=(0,t.useBackend)(c),b=v.act,g=v.data,h=g.account_number,C=g.owner_name,N=g.money,x=g.suspended,B=g.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+" / "+C,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:C}),(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(m,c){var v=(0,t.useBackend)(c),b=v.act,g=v.data,h=(0,t.useLocalState)(c,"accName",""),C=h[0],N=h[1],x=(0,t.useLocalState)(c,"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 w(){return b("back")}return w}()}),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 w(A,T){return N(T)}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function w(A,T){return L(T)}return w}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function w(){return b("finalise_create_account",{holder_name:C,starting_funds:B})}return w}()})]})}},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),d=n(98595),y=r.AgentCard=function(){function p(i,l){var f=(0,t.useLocalState)(l,"tabIndex",0),u=f[0],s=f[1],m=function(){function c(v){switch(v){case 0:return(0,e.createComponentVNode)(2,V);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,S);default:return(0,e.createComponentVNode)(2,V)}}return c}();return(0,e.createComponentVNode)(2,d.Window,{width:500,height:475,theme:"syndicate",children:(0,e.createComponentVNode)(2,d.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 c(){return s(0)}return c}(),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 c(){return s(1)}return c}(),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 c(){return s(2)}return c}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"arrow-down"})," Save/Load Card Info"]},"Save/Load Card Info")]}),m(u)]})})})}return p}(),V=r.AgentCardInfo=function(){function p(i,l){var f=(0,t.useBackend)(l),u=f.act,s=f.data,m=s.registered_name,c=s.sex,v=s.age,b=s.assignment,g=s.associated_account_number,h=s.blood_type,C=s.dna_hash,N=s.fingerprint_hash,x=s.photo,B=s.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:m||"[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:c||"[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:v||"[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:C||"[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:g||"[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,l){var f=(0,t.useBackend)(l),u=f.act,s=f.data,m=s.appearances;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Card Appearance",children:m.map(function(c){return(0,e.createComponentVNode)(2,o.ImageButton,{tooltip:c,vertical:!0,asset:!0,style:{margin:"1px"},image:c,imageAsset:"id_card64x64",onclick:function(){function v(){return u("change_appearance_new",{new_appearance:c})}return v}()},c)})})}return p}(),S=r.AgentCardSLSlots=function(){function p(i,l){var f=(0,t.useBackend)(l),u=f.act,s=f.data,m=s.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:m.map(function(c){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:c.registered_name?c.registered_name+", "+c.assignment:"Slot "+c.id,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Clear",onClick:function(){function v(){return u("clear_slot",{slot:c.id})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Save",onClick:function(){function v(){return u("save_slot",{slot:c.id})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Load",disabled:!c.registered_name,onClick:function(){function v(){return u("load_slot",{slot:c.id})}return v}()})],4)},c.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),d={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},y=r.AiAirlock=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=d[l.power.main]||d[0],u=d[l.power.backup]||d[0],s=d[l.shock]||d[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:f.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!l.power.main,content:"Disrupt",onClick:function(){function m(){return i("disrupt-main")}return m}()}),children:[l.power.main?"Online":"Offline"," ",!l.wires.main_power&&"[Wires have been cut!]"||l.power.main_timeleft>0&&"["+l.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:!l.power.backup,content:"Disrupt",onClick:function(){function m(){return i("disrupt-backup")}return m}()}),children:[l.power.backup?"Online":"Offline"," ",!l.wires.backup_power&&"[Wires have been cut!]"||l.power.backup_timeleft>0&&"["+l.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:s.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(l.wires.shock&&l.shock!==2),content:"Restore",onClick:function(){function m(){return i("shock-restore")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!l.wires.shock,content:"Temporary",onClick:function(){function m(){return i("shock-temp")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!l.wires.shock||l.shock===0,content:"Permanent",onClick:function(){function m(){return i("shock-perm")}return m}()})],4),children:[l.shock===2?"Safe":"Electrified"," ",!l.wires.shock&&"[Wires have been cut!]"||l.shock_timeleft>0&&"["+l.shock_timeleft+"s]"||l.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:l.id_scanner?"power-off":"times",content:l.id_scanner?"Enabled":"Disabled",selected:l.id_scanner,disabled:!l.wires.id_scanner,onClick:function(){function m(){return i("idscan-toggle")}return m}()}),children:!l.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:l.emergency?"power-off":"times",content:l.emergency?"Enabled":"Disabled",selected:l.emergency,onClick:function(){function m(){return i("emergency-toggle")}return m}()})}),(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:l.locked?"lock":"unlock",content:l.locked?"Lowered":"Raised",selected:l.locked,disabled:!l.wires.bolts,onClick:function(){function m(){return i("bolt-toggle")}return m}()}),children:!l.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:l.lights?"power-off":"times",content:l.lights?"Enabled":"Disabled",selected:l.lights,disabled:!l.wires.lights,onClick:function(){function m(){return i("light-toggle")}return m}()}),children:!l.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:l.safe?"power-off":"times",content:l.safe?"Enabled":"Disabled",selected:l.safe,disabled:!l.wires.safe,onClick:function(){function m(){return i("safe-toggle")}return m}()}),children:!l.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:l.speed?"power-off":"times",content:l.speed?"Enabled":"Disabled",selected:l.speed,disabled:!l.wires.timing,onClick:function(){function m(){return i("speed-toggle")}return m}()}),children:!l.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:l.opened?"sign-out-alt":"sign-in-alt",content:l.opened?"Open":"Closed",selected:l.opened,disabled:l.locked||l.welded,onClick:function(){function m(){return i("open-close")}return m}()}),children:!!(l.locked||l.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),l.locked?"bolted":"",l.locked&&l.welded?" and ":"",l.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return V}()},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),d=n(195),y=r.AirAlarm=function(){function s(m,c){var v=(0,a.useBackend)(c),b=v.act,g=v.data,h=g.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,d.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,k),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p)],4)]})})}return s}(),V=function(m){return m===0?"green":m===1?"orange":"red"},k=function(m,c){var v=(0,a.useBackend)(c),b=v.act,g=v.data,h=g.air,C=g.mode,N=g.atmos_alarm,x=g.locked,B=g.alarmActivated,L=g.rcon,w=g.target_temp,A;return h.danger.overall===0?N===0?A="Optimal":A="Caution: Atmos alert in area":h.danger.overall===1?A="Caution":A="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:V(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:C===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:C===3,icon:"exclamation-triangle",onClick:function(){function T(){return b("mode",{mode:C===3?1:3})}return T}()})],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:V(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:V(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:V(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:V(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:V(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:V(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:V(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:w+" C",onClick:function(){function T(){return b("temperature")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:h.thermostat_state?"On":"Off",selected:h.thermostat_state,icon:"power-off",onClick:function(){function T(){return b("thermostat_state")}return T}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:V(h.danger.overall),children:[A,!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 T(){return b(B?"atmos_reset":"atmos_alarm")}return T}()})],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 T(){return b("set_rcon",{rcon:1})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:L===2,onClick:function(){function T(){return b("set_rcon",{rcon:2})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:L===3,onClick:function(){function T(){return b("set_rcon",{rcon:3})}return T}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},S=function(m,c){var v=(0,a.useLocalState)(c,"tabIndex",0),b=v[0],g=v[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===0,onClick:function(){function h(){return g(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 g(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 g(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 g(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},p=function(m,c){var v=(0,a.useLocalState)(c,"tabIndex",0),b=v[0],g=v[1];switch(b){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,l);case 2:return(0,e.createComponentVNode)(2,f);case 3:return(0,e.createComponentVNode)(2,u);default:return"WE SHOULDN'T BE HERE!"}},i=function(m,c){var v=(0,a.useBackend)(c),b=v.act,g=v.data,h=g.vents;return h.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.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:C.power?"On":"Off",selected:C.power,icon:"power-off",onClick:function(){function N(){return b("command",{cmd:"power",val:C.power===1?0:1,id_tag:C.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:C.direction==="release"?"Blowing":"Siphoning",icon:C.direction==="release"?"sign-out-alt":"sign-in-alt",onClick:function(){function N(){return b("command",{cmd:"direction",val:C.direction==="release"?0:1,id_tag:C.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:C.checks===1,onClick:function(){function N(){return b("command",{cmd:"checks",val:1,id_tag:C.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:C.checks===2,onClick:function(){function N(){return b("command",{cmd:"checks",val:2,id_tag:C.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C.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:C.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:C.id_tag})}return N}()})]})]})},C.name)})},l=function(m,c){var v=(0,a.useBackend)(c),b=v.act,g=v.data,h=g.scrubbers;return h.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.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:C.power?"On":"Off",selected:C.power,icon:"power-off",onClick:function(){function N(){return b("command",{cmd:"power",val:C.power===1?0:1,id_tag:C.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:C.scrubbing?"Scrubbing":"Siphoning",icon:C.scrubbing?"filter":"sign-in-alt",onClick:function(){function N(){return b("command",{cmd:"scrubbing",val:C.scrubbing===0?1:0,id_tag:C.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:C.widenet?"Extended":"Normal",selected:C.widenet,icon:"expand-arrows-alt",onClick:function(){function N(){return b("command",{cmd:"widenet",val:C.widenet===0?1:0,id_tag:C.id_tag})}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:C.filter_co2,onClick:function(){function N(){return b("command",{cmd:"co2_scrub",val:C.filter_co2===0?1:0,id_tag:C.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:C.filter_toxins,onClick:function(){function N(){return b("command",{cmd:"tox_scrub",val:C.filter_toxins===0?1:0,id_tag:C.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:C.filter_n2o,onClick:function(){function N(){return b("command",{cmd:"n2o_scrub",val:C.filter_n2o===0?1:0,id_tag:C.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:C.filter_o2,onClick:function(){function N(){return b("command",{cmd:"o2_scrub",val:C.filter_o2===0?1:0,id_tag:C.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:C.filter_n2,onClick:function(){function N(){return b("command",{cmd:"n2_scrub",val:C.filter_n2===0?1:0,id_tag:C.id_tag})}return N}()})]})]})},C.name)})},f=function(m,c){var v=(0,a.useBackend)(c),b=v.act,g=v.data,h=g.modes,C=g.presets,N=g.emagged,x=g.mode,B=g.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 w(){return b("mode",{mode:L.id})}return w}()})}),(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:C.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 w(){return b("preset",{preset:L.id})}return w}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})]})],4)},u=function(m,c){var v=(0,a.useBackend)(c),b=v.act,g=v.data,h=g.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(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.name}),C.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)})]},C.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),d=r.AirlockAccessController=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.exterior_status,f=i.interior_status,u=i.processing,s,m;return l==="open"?s=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:u,onClick:function(){function c(){return p("force_ext")}return c}()}):s=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:u,onClick:function(){function c(){return p("cycle_ext_door")}return c}()}),f==="open"?m=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:u,color:f==="open"?"red":u?"yellow":null,onClick:function(){function c(){return p("force_int")}return c}()}):m=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:u,onClick:function(){function c(){return p("cycle_int_door")}return c}()}),(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:l==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:f==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[s,m]})})]})})}return y}()},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),d=n(49148),y=1,V=2,k=4,S=8,p=r.AirlockElectronics=function(){function f(u,s){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,l)]})})})}return f}(),i=function(u,s){var m=(0,a.useBackend)(s),c=m.act,v=m.data,b=v.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 g(){return c("unrestricted_access",{unres_dir:k})}return g}()})}),(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&V?"selected":null,onClick:function(){function g(){return c("unrestricted_access",{unres_dir:V})}return g}()})}),(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&S?"selected":null,onClick:function(){function g(){return c("unrestricted_access",{unres_dir:S})}return g}()})}),(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&y?"selected":null,onClick:function(){function g(){return c("unrestricted_access",{unres_dir:y})}return g}()})})]})]})})},l=function(u,s){var m=(0,a.useBackend)(s),c=m.act,v=m.data,b=v.selected_accesses,g=v.one_access,h=v.regions;return(0,e.createComponentVNode)(2,d.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:g,content:"One",onClick:function(){function C(){return c("set_one_access",{access:"one"})}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!g,content:"All",onClick:function(){function C(){return c("set_one_access",{access:"all"})}return C}()})],4),accesses:h,selectedList:b,accessMod:function(){function C(N){return c("set",{access:N})}return C}(),grantAll:function(){function C(){return c("grant_all")}return C}(),denyAll:function(){function C(){return c("clear_all")}return C}(),grantDep:function(){function C(N){return c("grant_region",{region:N})}return C}(),denyDep:function(){function C(N){return c("deny_region",{region:N})}return C}()})}},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),d=n(36036),y=n(98595),V=-1,k=1,S=r.AlertModal=function(){function l(f,u){var s=(0,t.useBackend)(u),m=s.act,c=s.data,v=c.autofocus,b=c.buttons,g=b===void 0?[]:b,h=c.large_buttons,C=c.message,N=C===void 0?"":C,x=c.timeout,B=c.title,L=(0,t.useLocalState)(u,"selected",0),w=L[0],A=L[1],T=110+(N.length>30?Math.ceil(N.length/4):0)+(N.length&&h?5:0),E=325+(g.length>2?100:0),O=function(){function P(R){w===0&&R===V?A(g.length-1):w===g.length-1&&R===k?A(0):A(w+R)}return P}();return(0,e.createComponentVNode)(2,y.Window,{title:B,height:T,width:E,children:[!!x&&(0,e.createComponentVNode)(2,a.Loader,{value:x}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function P(R){var F=window.event?R.which:R.keyCode;F===o.KEY_SPACE||F===o.KEY_ENTER?m("choose",{choice:g[w]}):F===o.KEY_ESCAPE?m("cancel"):F===o.KEY_LEFT?(R.preventDefault(),O(V)):(F===o.KEY_TAB||F===o.KEY_RIGHT)&&(R.preventDefault(),O(k))}return P}(),children:(0,e.createComponentVNode)(2,d.Section,{fill:!0,children:(0,e.createComponentVNode)(2,d.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,d.Box,{color:"label",overflow:"hidden",children:N})}),(0,e.createComponentVNode)(2,d.Stack.Item,{children:[!!v&&(0,e.createComponentVNode)(2,d.Autofocus),(0,e.createComponentVNode)(2,p,{selected:w})]})]})})})]})}return l}(),p=function(f,u){var s=(0,t.useBackend)(u),m=s.data,c=m.buttons,v=c===void 0?[]:c,b=m.large_buttons,g=m.swapped_buttons,h=f.selected;return(0,e.createComponentVNode)(2,d.Flex,{fill:!0,align:"center",direction:g?"row":"row-reverse",justify:"space-around",wrap:!0,children:v==null?void 0:v.map(function(C,N){return b&&v.length<3?(0,e.createComponentVNode)(2,d.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{button:C,id:N.toString(),selected:h===N})},N):(0,e.createComponentVNode)(2,d.Flex.Item,{grow:b?1:0,children:(0,e.createComponentVNode)(2,i,{button:C,id:N.toString(),selected:h===N})},N)})})},i=function(f,u){var s=(0,t.useBackend)(u),m=s.act,c=s.data,v=c.large_buttons,b=f.button,g=f.selected,h=b.length>7?"100%":7;return(0,e.createComponentVNode)(2,d.Button,{mx:v?1:0,pt:v?.33:0,content:b,fluid:!!v,onClick:function(){function C(){return m("choose",{choice:b})}return C}(),selected:g,textAlign:"center",height:!!v&&2,width:!v&&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),d=r.AppearanceChanger=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.change_race,u=l.species,s=l.specimen,m=l.change_gender,c=l.gender,v=l.has_gender,b=l.change_eye_color,g=l.change_skin_tone,h=l.change_skin_color,C=l.change_head_accessory_color,N=l.change_hair_color,x=l.change_secondary_hair_color,B=l.change_facial_hair_color,L=l.change_secondary_facial_hair_color,w=l.change_head_marking_color,A=l.change_body_marking_color,T=l.change_tail_marking_color,E=l.change_head_accessory,O=l.head_accessory_styles,P=l.head_accessory_style,R=l.change_hair,F=l.hair_styles,j=l.hair_style,W=l.change_hair_gradient,H=l.change_facial_hair,z=l.facial_hair_styles,$=l.facial_hair_style,G=l.change_head_markings,ne=l.head_marking_styles,Q=l.head_marking_style,he=l.change_body_markings,Ve=l.body_marking_styles,Ne=l.body_marking_style,Be=l.change_tail_markings,Le=l.tail_marking_styles,Ae=l.tail_marking_style,fe=l.change_body_accessory,Z=l.body_accessory_styles,J=l.body_accessory_style,te=l.change_alt_head,ee=l.alt_head_styles,le=l.alt_head_style,ye=!1;return(b||g||h||C||N||x||B||L||w||A||T)&&(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:[!!f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:u.map(function(me){return(0,e.createComponentVNode)(2,t.Button,{content:me.specimen,selected:me.specimen===s,onClick:function(){function Te(){return i("race",{race:me.specimen})}return Te}()},me.specimen)})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:c==="male",onClick:function(){function me(){return i("gender",{gender:"male"})}return me}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:c==="female",onClick:function(){function me(){return i("gender",{gender:"female"})}return me}()}),!v&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:c==="plural",onClick:function(){function me(){return i("gender",{gender:"plural"})}return me}()})]}),!!ye&&(0,e.createComponentVNode)(2,y),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:O.map(function(me){return(0,e.createComponentVNode)(2,t.Button,{content:me.headaccessorystyle,selected:me.headaccessorystyle===P,onClick:function(){function Te(){return i("head_accessory",{head_accessory:me.headaccessorystyle})}return Te}()},me.headaccessorystyle)})}),!!R&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:F.map(function(me){return(0,e.createComponentVNode)(2,t.Button,{content:me.hairstyle,selected:me.hairstyle===j,onClick:function(){function Te(){return i("hair",{hair:me.hairstyle})}return Te}()},me.hairstyle)})}),!!W&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function me(){return i("hair_gradient")}return me}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function me(){return i("hair_gradient_offset")}return me}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function me(){return i("hair_gradient_colour")}return me}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function me(){return i("hair_gradient_alpha")}return me}()})]}),!!H&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:z.map(function(me){return(0,e.createComponentVNode)(2,t.Button,{content:me.facialhairstyle,selected:me.facialhairstyle===$,onClick:function(){function Te(){return i("facial_hair",{facial_hair:me.facialhairstyle})}return Te}()},me.facialhairstyle)})}),!!G&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:ne.map(function(me){return(0,e.createComponentVNode)(2,t.Button,{content:me.headmarkingstyle,selected:me.headmarkingstyle===Q,onClick:function(){function Te(){return i("head_marking",{head_marking:me.headmarkingstyle})}return Te}()},me.headmarkingstyle)})}),!!he&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:Ve.map(function(me){return(0,e.createComponentVNode)(2,t.Button,{content:me.bodymarkingstyle,selected:me.bodymarkingstyle===Ne,onClick:function(){function Te(){return i("body_marking",{body_marking:me.bodymarkingstyle})}return Te}()},me.bodymarkingstyle)})}),!!Be&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:Le.map(function(me){return(0,e.createComponentVNode)(2,t.Button,{content:me.tailmarkingstyle,selected:me.tailmarkingstyle===Ae,onClick:function(){function Te(){return i("tail_marking",{tail_marking:me.tailmarkingstyle})}return Te}()},me.tailmarkingstyle)})}),!!fe&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:Z.map(function(me){return(0,e.createComponentVNode)(2,t.Button,{content:me.bodyaccessorystyle,selected:me.bodyaccessorystyle===J,onClick:function(){function Te(){return i("body_accessory",{body_accessory:me.bodyaccessorystyle})}return Te}()},me.bodyaccessorystyle)})}),!!te&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:ee.map(function(me){return(0,e.createComponentVNode)(2,t.Button,{content:me.altheadstyle,selected:me.altheadstyle===le,onClick:function(){function Te(){return i("alt_head",{alt_head:me.altheadstyle})}return Te}()},me.altheadstyle)})})]})})})}return V}(),y=function(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=[{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:f.map(function(u){return!!l[u.key]&&(0,e.createComponentVNode)(2,t.Button,{content:u.text,onClick:function(){function s(){return i(u.action)}return s}()},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),d=r.AtmosAlertConsole=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.priority||[],f=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,[l.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),l.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 s(){return p("clear",{zone:u})}return s}()}),2,null,u)}),f.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),f.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 s(){return p("clear",{zone:u})}return s}()}),2,null,u)})],0)})})})}return y}()},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),d=n(98595),y=function(l){if(l===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(l===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(l===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},V=function(l){if(l===0)return"green";if(l===1)return"orange";if(l===2)return"red"},k=r.AtmosControl=function(){function i(l,f){var u=(0,a.useBackend)(f),s=u.act,m=u.data,c=(0,a.useLocalState)(f,"tabIndex",0),v=c[0],b=c[1],g=function(){function h(C){switch(C){case 0:return(0,e.createComponentVNode)(2,S);case 1:return(0,e.createComponentVNode)(2,p);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,d.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,d.Window.Content,{scrollable:v===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:v===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:v===1,onClick:function(){function h(){return b(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),g(v)]})})})}return i}(),S=function(l,f){var u=(0,a.useBackend)(f),s=u.act,m=u.data,c=m.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"})]}),c.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:v.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:y(v.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function b(){return s("open_alarm",{aref:v.ref})}return b}()})})]},v.name)})]})})},p=function(l,f){var u=(0,a.useBackend)(f),s=u.act,m=u.data,c=m.alarms,v=m.stationLevelNum,b=m.stationLevelName,g=(0,a.useLocalState)(f,"zoom",1),h=g[0],C=g[1],N=(0,a.useLocalState)(f,"z_current",v[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(w){return C(w)}return L}(),zLevels:v,zNames:b,z_current:x,setZCurrent:B,children:c.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:V(L.danger),onClick:function(){function w(){return s("open_alarm",{aref:L.ref})}return w}()},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),d=r.AtmosFilter=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.on,f=i.pressure,u=i.max_pressure,s=i.filter_type,m=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:l?"On":"Off",color:l?null:"red",selected:l,onClick:function(){function c(){return p("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:f===0,width:2.2,onClick:function(){function c(){return p("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:u,value:f,onDrag:function(){function c(v,b){return p("custom_pressure",{pressure:b})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===u,width:2.2,onClick:function(){function c(){return p("max_pressure")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:m.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{selected:c.gas_type===s,content:c.label,onClick:function(){function v(){return p("set_filter",{filter:c.gas_type})}return v}()},c.label)})})]})})})})}return y}()},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),d=r.AtmosMixer=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.on,u=l.pressure,s=l.max_pressure,m=l.node1_concentration,c=l.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:f?"On":"Off",color:f?null:"red",selected:f,onClick:function(){function v(){return i("power")}return v}()})}),(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 v(){return i("min_pressure")}return v}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:s,value:u,onDrag:function(){function v(b,g){return i("custom_pressure",{pressure:g})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:u===s,width:2.2,onClick:function(){function v(){return i("max_pressure")}return v}()})]}),(0,e.createComponentVNode)(2,y,{node_name:"Node 1",node_ref:m}),(0,e.createComponentVNode)(2,y,{node_name:"Node 2",node_ref:c})]})})})})}return V}(),y=function(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=k.node_name,u=k.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:u===0,onClick:function(){function s(){return i("set_node",{node_name:f,concentration:(u-10)/100})}return s}()}),(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 s(m,c){return i("set_node",{node_name:f,concentration:c/100})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:u===100,onClick:function(){function s(){return i("set_node",{node_name:f,concentration:(u+10)/100})}return s}()})]})}},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),d=r.AtmosPump=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.on,f=i.rate,u=i.max_rate,s=i.gas_unit,m=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:l?"On":"Off",color:l?null:"red",selected:l,onClick:function(){function c(){return p("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:f===0,width:2.2,onClick:function(){function c(){return p("min_rate")}return c}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:s,width:6.1,lineHeight:1.5,step:m,minValue:0,maxValue:u,value:f,onDrag:function(){function c(v,b){return p("custom_rate",{rate:b})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===u,width:2.2,onClick:function(){function c(){return p("max_rate")}return c}()})]})]})})})})}return y}()},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),d=n(39473),y=r.AutoDoc=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.HasTray,u=l.TguiIcons,s=l.occupant,m=l.isHealing,c=l.fixtimer,v=l.healtimer,b=(0,a.useLocalState)(S,"ChoosePart","chest"),g=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,d.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[g],style:{position:"absolute","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})]}),(0,e.createComponentVNode)(2,d.FlexItem,{basis:"70%",children:(0,e.createComponentVNode)(2,t.Section,{title:"Info",buttons:(0,e.createFragment)([Object.keys(u).map(function(C){return C!=="human"&&(0,e.createComponentVNode)(2,t.Button,{content:C,selected:C===g,onClick:function(){function N(){return h(C)}return N}(),z:!0},C)}),(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:f?"Eject Tray":"Reject Tray",locked:m,onClick:function(){function C(){return i("ChangeTrayState")}return C}()})],0),children:(0,e.createComponentVNode)(2,t.Box,{children:[!!(s[g]&&s[g].extOrgan)&&s[g].extOrgan.map(function(C){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,C.name,0),(0,e.createVNode)(1,"br"),C.open?"opened":"",C.broken?"broken":"",!!C.broken&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Fix",style:{"margin-left":"30px"},locked:m,onClick:function(){function N(){return i("FixOrgan",{organ:C.name,type:"fracture"})}return N}()}),(0,e.createVNode)(1,"br")],4),C.internalBleeding?"bleeding":"",!!C.internalBleeding&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Fix",style:{"margin-left":"30px"},locked:m,onClick:function(){function N(){return i("FixOrgan",{organ:C.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:m,onClick:function(){function N(){return i("FixOrgan",{organ:C.name,type:"completeInternal"})}return N}()}),(0,e.createVNode)(1,"br"),C.dead?"dead":"",!!C.dead&&(0,e.createVNode)(1,"br"),C.germ_level?"Germ level is "+C.germ_level:"",!!C.germ_level&&(0,e.createVNode)(1,"br"),C.totalLoss?"Total damage is "+C.totalLoss:"",(0,e.createVNode)(1,"br")],0,C.name)}),!!(s[g]&&s[g].intOrgan)&&s[g].intOrgan.map(function(C){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,C.name,0),(0,e.createComponentVNode)(2,t.Button,{content:"Remove",style:{"margin-left":"1.5rem"},locked:m,onClick:function(){function N(){return i("FixOrgan",{organ:C.name,type:"remove"})}return N}()}),(0,e.createVNode)(1,"br"),C.dead?"dead":"",!!C.dead&&(0,e.createVNode)(1,"br"),C.germ_level?"Germ level is "+C.germ_level:"",!!C.germ_level&&(0,e.createVNode)(1,"br"),C.totalLoss?"Total damage is "+C.damage:"",!!C.totalLoss&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Heal",style:{"margin-left":"30px"},locked:m,onClick:function(){function N(){return i("FixOrgan",{organ:C.name,type:"damage"})}return N}()}),(0,e.createVNode)(1,"br")],4)],0,C.name)}),!!s.TotalBruteBurn&&(0,e.createFragment)([(0,e.createTextVNode)("Total external damage is "),s.TotalBruteBurn,(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:"Start Healing",onClick:function(){function C(){return i("HealBruteBurn")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:"Reattach externals",onClick:function(){function C(){return i("CompleteExternal")}return C}()})],0),(0,e.createVNode)(1,"br"),!!c&&(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Fixing organ: "),c],0),!!v&&(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Healing external damage: "),v],0)]})})})]})})})}return V}()},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),d=n(36036),y=n(98595),V=n(25328),k=function(i,l,f,u){return i.requirements===null?!0:!(i.requirements.metal*u>l||i.requirements.glass*u>f)},S=r.Autolathe=function(){function p(i,l){var f=(0,o.useBackend)(l),u=f.act,s=f.data,m=s.total_amount,c=s.max_amount,v=s.metal_amount,b=s.glass_amount,g=s.busyname,h=s.busyamt,C=s.showhacked,N=s.buildQueue,x=s.buildQueueLen,B=s.recipes,L=s.categories,w=(0,o.useSharedState)(l,"category",0),A=w[0],T=w[1];A===0&&(A="Tools");var E=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),O=b.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=m.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),R=(0,o.useSharedState)(l,"search_text",""),F=R[0],j=R[1],W=(0,V.createSearch)(F,function(G){return G.name}),H="";x>0&&(H=N.map(function(G,ne){return(0,e.createComponentVNode)(2,d.Box,{children:(0,e.createComponentVNode)(2,d.Button,{fluid:!0,icon:"times",color:"transparent",content:N[ne][0],onClick:function(){function Q(){return u("remove_from_queue",{remove_from_queue:N.indexOf(G)+1})}return Q}()},G)},ne)}));var z=(0,a.flow)([(0,t.filter)(function(G){return(G.category.indexOf(A)>-1||F)&&(s.showhacked||!G.hacked)}),F&&(0,t.filter)(W),(0,t.sortBy)(function(G){return G.name.toLowerCase()})])(B),$="Build";return F?$="Results for: '"+F+"':":A&&($="Build ("+A+")"),(0,e.createComponentVNode)(2,y.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,d.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,d.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,d.Section,{fill:!0,scrollable:!0,title:$,buttons:(0,e.createComponentVNode)(2,d.Dropdown,{width:"150px",options:L,selected:A,onSelected:function(){function G(ne){return T(ne)}return G}()}),children:[(0,e.createComponentVNode)(2,d.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function G(ne,Q){return j(Q)}return G}(),mb:1}),z.map(function(G){return(0,e.createComponentVNode)(2,d.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+G.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,d.Button,{mr:1,icon:"hammer",selected:s.busyname===G.name&&s.busyamt===1,disabled:!k(G,s.metal_amount,s.glass_amount,1),onClick:function(){function ne(){return u("make",{make:G.uid,multiplier:1})}return ne}(),children:(0,V.toTitleCase)(G.name)}),G.max_multiplier>=10&&(0,e.createComponentVNode)(2,d.Button,{mr:1,icon:"hammer",selected:s.busyname===G.name&&s.busyamt===10,disabled:!k(G,s.metal_amount,s.glass_amount,10),onClick:function(){function ne(){return u("make",{make:G.uid,multiplier:10})}return ne}(),children:"10x"}),G.max_multiplier>=25&&(0,e.createComponentVNode)(2,d.Button,{mr:1,icon:"hammer",selected:s.busyname===G.name&&s.busyamt===25,disabled:!k(G,s.metal_amount,s.glass_amount,25),onClick:function(){function ne(){return u("make",{make:G.uid,multiplier:25})}return ne}(),children:"25x"}),G.max_multiplier>25&&(0,e.createComponentVNode)(2,d.Button,{mr:1,icon:"hammer",selected:s.busyname===G.name&&s.busyamt===G.max_multiplier,disabled:!k(G,s.metal_amount,s.glass_amount,G.max_multiplier),onClick:function(){function ne(){return u("make",{make:G.uid,multiplier:G.max_multiplier})}return ne}(),children:[G.max_multiplier,"x"]}),G.requirements&&Object.keys(G.requirements).map(function(ne){return(0,V.toTitleCase)(ne)+": "+G.requirements[ne]}).join(", ")||(0,e.createComponentVNode)(2,d.Box,{children:"No resources required."})]},G.ref)})]})}),(0,e.createComponentVNode)(2,d.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,d.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,d.LabeledList,{children:[(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Glass",children:O}),(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Total",children:P}),(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Storage",children:[s.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,d.Section,{title:"Building",children:(0,e.createComponentVNode)(2,d.Box,{color:g?"green":"",children:g||"Nothing"})}),(0,e.createComponentVNode)(2,d.Section,{title:"Build Queue",height:23.7,children:[H,(0,e.createComponentVNode)(2,d.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!s.buildQueueLen,onClick:function(){function G(){return u("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),d=n(62411),y=r.Biogenerator=function(){function p(i,l){var f=(0,a.useBackend)(l),u=f.data,s=f.config,m=u.container,c=u.processing,v=s.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,d.Operating,{operating:c,name:v}),(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S)]})})})}return p}(),V=function(i,l){var f=(0,a.useBackend)(l),u=f.act,s=f.data,m=s.biomass,c=s.container,v=s.container_curr_reagents,b=s.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:m}),(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:"}),c?(0,e.createComponentVNode)(2,t.ProgressBar,{value:v,maxValue:b,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:v+" / "+b+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},k=function(i,l){var f=(0,a.useBackend)(l),u=f.act,s=f.data,m=s.has_plants,c=s.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:!m,tooltip:m?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function v(){return u("activate")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!c,tooltip:c?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function v(){return u("detach_container")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!m,tooltip:m?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function v(){return u("eject_plants")}return v}()})})]})})},S=function(i,l){var f=(0,a.useBackend)(l),u=f.act,s=f.data,m=s.biomass,c=s.product_list,v=s.container,b=(0,a.useSharedState)(l,"vendAmount",1),g=b[0],h=b[1],C=Object.entries(c).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*g,(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&&!v?(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:m0?Math.floor(A/u):0,P=f?"@?%%!\u2116@"+u:u,R=A>=u,F=s-s%5+(s%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:E===0?"bad":E<100?"average":"good",value:w,maxValue:L,mt:1,mb:2,children:[E<=100?E: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:A?R?"good":"average":"bad",as:"span",children:Math.floor(A)}),(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 "+P+" \u0434\u0430\u043D\u043D\u044B\u0445.",content:s>0?"\u041F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0430 "+F+" \u0441\u0435\u043A\u0443\u043D\u0434":"\u0417\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u0442\u044C ("+O+")",disabled:!R||s>0,onClick:function(){function j(){return i("probe",{rift_id:x})}return j}(),mx:2}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:T?"\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:T||E<100,onClick:function(){function j(){return i("reward",{rift_id:x})}return j}(),mt:1.4})]})]})}return C}(),g=function(){function C(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,w){return(0,e.createComponentVNode)(2,t.Box,{children:[L.riftName," \u2014 ",Math.floor(L.probePoints)," ","\u0434\u0430\u043D\u043D\u044B\u0445."]},w)}):(0,e.createComponentVNode)(2,t.Box,{children:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445"})})}return C}(),h=function(){function C(N){var x=N.scannerId,B=N.scannerName,L=N.scanStatus,w=N.canSwitch,A=N.switching,T=d[L],E=function(){function P(){if(T==="OFF")return[" ","silver"];if(T==="NO_RIFTS")return["\u041D\u0435\u0442 \u0440\u0430\u0437\u043B\u043E\u043C\u043E\u0432","silver"];if(T==="SOME_RIFTS")return["\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442","good"];if(T==="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 P}(),O=E();return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B,py:0,children:[A?(0,e.createComponentVNode)(2,t.Icon,{name:"circle-notch",color:"silver",spin:!0,ml:1.85,mr:1.79,my:.84}):w?(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",color:T==="OFF"?"bad":"good",onClick:function(){function P(){return i("toggle_scanner",{scanner_id:x})}return P}(),ml:1,mr:1}):(0,e.createComponentVNode)(2,t.Icon,{name:"power-off",color:T==="OFF"?"bad":"good",ml:1.85,mr:1.79,my:.84}),T!=="OFF"&&(0,e.createComponentVNode)(2,t.Box,{as:"span",color:O[1],children:O[0]})]})}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:570,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[m&&m.map(function(C){return b(C)}),(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:v&&v.map(function(C){return h(C)})})}),(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:c&&c.map(function(C){return g(C)})})})]})})}return V}()},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),d=n(49968),y=r.BluespaceTap=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.product||[],u=l.desiredLevel,s=l.inputLevel,m=l.points,c=l.totalPoints,v=l.powerUse,b=l.availablePower,g=l.maxLevel,h=l.emagged,C=l.safeLevels,N=l.nextLevelPower,x=u>s&&"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"}),s>C&&(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:s}),(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:s})}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:s,minValue:0,color:x,maxValue:g,stepPixelSize:20,step:1,onChange:function(){function B(L,w){return i("set",{set_level:w})}return B}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:u===g,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===g,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function B(){return i("set",{set_level:g})}return B}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,d.formatPower)(v)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,d.formatPower)(N)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,d.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:m}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:c})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:f.map(function(B){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:B.price>=m,onClick:function(){function L(){return i("vend",{target:B.key})}return L}(),content:B.price})},B.key)})})})})]})})]})})})}return V}()},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),d=n(36036),y=n(98595),V=[["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."]],S=[["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=[],w=0;w0?x.filter(function(B){return!!B}).reduce(function(B,L){return(0,e.createFragment)([B,(0,e.createComponentVNode)(2,d.Box,{children:L},L)],0)},null):null},f=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),w=L.data,A=w.occupied,T=w.occupant,E=T===void 0?{}:T,O=A?(0,e.createComponentVNode)(2,s,{occupant:E}):(0,e.createComponentVNode)(2,C);return(0,e.createComponentVNode)(2,y.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:O})})}return N}(),s=function(x){var B=x.occupant;return(0,e.createComponentVNode)(2,d.Box,{children:[(0,e.createComponentVNode)(2,m,{occupant:B}),(0,e.createComponentVNode)(2,c,{occupant:B}),(0,e.createComponentVNode)(2,v,{occupant:B}),(0,e.createComponentVNode)(2,g,{organs:B.extOrgan}),(0,e.createComponentVNode)(2,h,{organs:B.intOrgan})]})},m=function(x,B){var L=(0,o.useBackend)(B),w=L.act,A=L.data,T=A.occupant;return(0,e.createComponentVNode)(2,d.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,d.Button,{icon:"print",onClick:function(){function E(){return w("print_p")}return E}(),children:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u043E\u0442\u0447\u0435\u0442"}),(0,e.createComponentVNode)(2,d.Button,{icon:"print",onClick:function(){function E(){return w("insurance")}return E}(),children:"\u0421\u043F\u0438\u0441\u0430\u0442\u044C \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0443"}),(0,e.createComponentVNode)(2,d.Button,{icon:"user-slash",onClick:function(){function E(){return w("eject_id")}return E}(),children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043A\u0430\u0440\u0442\u0443"}),(0,e.createComponentVNode)(2,d.Button,{icon:"user-slash",onClick:function(){function E(){return w("ejectify")}return E}(),children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430"})],4),children:(0,e.createComponentVNode)(2,d.LabeledList,{children:[(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Name",children:T.name}),(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,d.ProgressBar,{min:"0",max:T.maxHealth,value:T.health/T.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Status",color:V[T.stat][0],children:V[T.stat][1]}),(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,d.AnimatedNumber,{value:(0,a.round)(T.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,d.AnimatedNumber,{value:(0,a.round)(T.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Implants",children:T.implant_len?(0,e.createComponentVNode)(2,d.Box,{children:T.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,d.Box,{color:"label",children:"None"})})]})})},c=function(x){var B=x.occupant;return B.hasBorer||B.blind||B.colourblind||B.nearsighted||B.hasVirus?(0,e.createComponentVNode)(2,d.Section,{title:"Abnormalities",children:k.map(function(L,w){if(B[L[0]])return(0,e.createComponentVNode)(2,d.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,d.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,d.Box,{color:"label",children:"No abnormalities found."})})},v=function(x){var B=x.occupant;return(0,e.createComponentVNode)(2,d.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,d.Table,{children:i(S,function(L,w,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,d.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,d.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,d.Table.Cell,{children:!!w&&w[0]+":"})]}),(0,e.createComponentVNode)(2,d.Table.Row,{children:[(0,e.createComponentVNode)(2,d.Table.Cell,{children:(0,e.createComponentVNode)(2,b,{value:B[L[1]],marginBottom:A100)&&"average"||!!B.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(B.name)}),(0,e.createComponentVNode)(2,d.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,d.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,d.Stack,{children:[(0,e.createComponentVNode)(2,d.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,d.Stack.Item,{children:[(0,e.createComponentVNode)(2,d.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(B.totalLoss)]})}),!!B.bruteLoss&&(0,e.createComponentVNode)(2,d.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,d.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,d.Icon,{name:"bone",mr:.5}),(0,a.round)(B.bruteLoss)]})}),!!B.fireLoss&&(0,e.createComponentVNode)(2,d.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,d.Stack.Item,{children:[(0,e.createComponentVNode)(2,d.Icon,{name:"fire",mr:.5}),(0,a.round)(B.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,d.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,d.Box,{color:"average",inline:!0,children:l([!!B.internalBleeding&&"Internal bleeding",!!B.burnWound&&"Critical tissue burns",!!B.lungRuptured&&"Ruptured lung",!!B.status.broken&&B.status.broken,f(B.germ_level),!!B.open&&"Open incision"])}),(0,e.createComponentVNode)(2,d.Box,{inline:!0,children:[l([!!B.status.splinted&&(0,e.createComponentVNode)(2,d.Box,{color:"good",children:"Splinted"}),!!B.status.robotic&&(0,e.createComponentVNode)(2,d.Box,{color:"label",children:"Robotic"}),!!B.status.dead&&(0,e.createComponentVNode)(2,d.Box,{color:"bad",bold:!0,children:"DEAD"})]),l(B.shrapnel.map(function(w){return w.known?w.name:"Unknown object"}))]})]})]},L)})]})})},h=function(x){return x.organs.length===0?(0,e.createComponentVNode)(2,d.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,d.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,d.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,d.Table,{children:[(0,e.createComponentVNode)(2,d.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,d.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,d.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,d.Table.Cell,{textAlign:"right",children:"Injuries"})]}),x.organs.map(function(B,L){return(0,e.createComponentVNode)(2,d.Table.Row,{children:[(0,e.createComponentVNode)(2,d.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,d.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,d.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,d.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,d.Box,{color:"average",inline:!0,children:l([f(B.germ_level)])}),(0,e.createComponentVNode)(2,d.Box,{inline:!0,children:l([B.robotic===1&&(0,e.createComponentVNode)(2,d.Box,{color:"label",children:"Robotic"}),B.robotic===2&&(0,e.createComponentVNode)(2,d.Box,{color:"label",children:"Assisted"}),!!B.dead&&(0,e.createComponentVNode)(2,d.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},C=function(){return(0,e.createComponentVNode)(2,d.Section,{fill:!0,children:(0,e.createComponentVNode)(2,d.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,d.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,d.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),d=r.BorgPanel=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.borg||{},f=i.cell||{},u=f.charge/f.maxcharge,s=i.channels||[],m=i.modules||[],c=i.upgrades||[],v=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:l.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function g(){return p("rename")}return g}()}),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:l.emagged?"check-square-o":"square-o",content:"Emagged",selected:l.emagged,onClick:function(){function g(){return p("toggle_emagged")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:l.lockdown?"check-square-o":"square-o",content:"Locked Down",selected:l.lockdown,onClick:function(){function g(){return p("toggle_lockdown")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:l.scrambledcodes?"check-square-o":"square-o",content:"Scrambled Codes",selected:l.scrambledcodes,onClick:function(){function g(){return p("toggle_scrambledcodes")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset Module",onClick:function(){function g(){return p("reset_module")}return g}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge",children:[f.missing?(0,e.createVNode)(1,"span","color-bad","No cell installed",16):(0,e.createComponentVNode)(2,t.ProgressBar,{value:u,children:f.charge+" / "+f.maxcharge}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Set",onClick:function(){function g(){return p("set_charge")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Change",onClick:function(){function g(){return p("change_cell")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",content:"Remove",color:"bad",onClick:function(){function g(){return p("remove_cell")}return g}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radio Channels",children:s.map(function(g){return(0,e.createComponentVNode)(2,t.Button,{icon:g.installed?"check-square-o":"square-o",content:g.name,selected:g.installed,onClick:function(){function h(){return p("toggle_radio",{channel:g.name})}return h}()},g.name)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Model",children:m.map(function(g){return(0,e.createComponentVNode)(2,t.Button,{icon:l.active_module===g.name?"check-square-o":"square-o",content:g.name+" module",selected:l.active_module===g.name,onClick:function(){function h(){return p("setmodule",{module:g.name})}return h}()},g.type)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upgrades",children:c.map(function(g){return(0,e.createComponentVNode)(2,t.Button,{icon:g.installed?"check-square-o":"square-o",content:g.name,selected:g.installed,onClick:function(){function h(){return p("toggle_upgrade",{upgrade:g.type})}return h}()},g.type)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:v.map(function(g){return(0,e.createComponentVNode)(2,t.Button,{icon:g.connected?"check-square-o":"square-o",content:g.name,selected:g.connected,onClick:function(){function h(){return p("slavetoai",{slavetoai:g.ref})}return h}()},g.ref)})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Laws",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Law Manager",selected:l.lawmanager,onClick:function(){function g(){return p("lawmanager")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:l.lawupdate?"check-square-o":"square-o",content:"Lawsync",selected:l.lawupdate,onClick:function(){function g(){return p("toggle_lawupdate")}return g}()})],4),children:b.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:g},g)})})]})})}return y}()},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),d=r.BotClean=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.locked,f=i.noaccess,u=i.maintpanel,s=i.on,m=i.autopatrol,c=i.canhack,v=i.emagged,b=i.remote_disabled,g=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:["Swipe an ID card to ",l?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",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:s?"power-off":"times",content:s?"On":"Off",selected:s,disabled:f,onClick:function(){function C(){return p("power")}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:m,content:"Auto Patrol",disabled:f,onClick:function(){function C(){return p("autopatrol")}return C}()})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:v?"bad":"good",children:v?"DISABLED!":"Enabled"})}),!!c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:v?"Restore Safties":"Hack",disabled:f,color:"bad",onClick:function(){function C(){return p("hack")}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!b,content:"AI Remote Control",disabled:f,onClick:function(){function C(){return p("disableremote")}return C}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Clean Blood",disabled:f,onClick:function(){function C(){return p("blood")}return C}()})}),g&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:g,disabled:f,onClick:function(){function C(){return p("ejectpai")}return C}()})})]})})}return y}()},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),d=r.BotSecurity=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.locked,f=i.noaccess,u=i.maintpanel,s=i.on,m=i.autopatrol,c=i.canhack,v=i.emagged,b=i.remote_disabled,g=i.painame,h=i.check_id,C=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:["Swipe an ID card to ",l?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",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:s?"power-off":"times",content:s?"On":"Off",selected:s,disabled:f,onClick:function(){function L(){return p("power")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:m,content:"Auto Patrol",disabled:f,onClick:function(){function L(){return p("autopatrol")}return L}()})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:v?"bad":"good",children:v?"DISABLED!":"Enabled"})}),!!c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:v?"Restore Safties":"Hack",disabled:f,color:"bad",onClick:function(){function L(){return p("hack")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!b,content:"AI Remote Control",disabled:f,onClick:function(){function L(){return p("disableremote")}return L}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Unidentifiable Persons",disabled:f,onClick:function(){function L(){return p("authid")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Unauthorized Weapons",disabled:f,onClick:function(){function L(){return p("authweapon")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Wanted Criminals",disabled:f,onClick:function(){function L(){return p("authwarrant")}return L}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:x,content:"Detain Targets Indefinitely",disabled:f,onClick:function(){function L(){return p("arrtype")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:B,content:"Announce Arrests On Radio",disabled:f,onClick:function(){function L(){return p("arrdeclare")}return L}()})]}),g&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:g,disabled:f,onClick:function(){function L(){return p("ejectpai")}return L}()})})]})})}return y}()},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),d=function(S,p){var i=S.cell,l=(0,o.useBackend)(p),f=l.act,u=i.cell_id,s=i.occupant,m=i.crimes,c=i.brigged_by,v=i.time_left_seconds,b=i.time_set_seconds,g=i.ref,h="";v>0&&(h+=" BrigCells__listRow--active");var C=function(){f("release",{ref:g})};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:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:c}),(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:v})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:C,children:"Release"})})]})},y=function(S){var p=S.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,d,{cell:i},i.ref)})]})},V=r.BrigCells=function(){function k(S,p){var i=(0,o.useBackend)(p),l=i.act,f=i.data,u=f.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,y,{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),d=r.BrigTimer=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.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 l="pencil-alt";i.prisoner_name&&(i.prisoner_hasrec||(l="exclamation-triangle"));var f=[],u=0;for(u=0;u60||!i.isAllowed,onClick:function(){function s(){return p("start")}return s}()})})]})})]})})}return y}()},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),d=n(25328),y=n(72253),V=n(36036),k=n(98595);String.prototype.trimLongStr=function(s){return this.length>s?this.substring(0,s)+"...":this};var S=function(m,c){var v,b;if(!c)return[];var g=m.findIndex(function(h){return h.name===c.name});return[(v=m[g-1])==null?void 0:v.name,(b=m[g+1])==null?void 0:b.name]},p=function(m,c){c===void 0&&(c="");var v=(0,d.createSearch)(c,function(b){return b.name});return(0,t.flow)([(0,a.filter)(function(b){return b==null?void 0:b.name}),c&&(0,a.filter)(v),(0,a.sortBy)(function(b){return b.name})])(m)},i=r.CameraConsole=function(){function s(m,c){var v=(0,y.useLocalState)(c,"tabIndex",0),b=v[0],g=v[1],h=function(){function C(N){switch(N){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,f);default:return"WE SHOULDN'T BE HERE!"}}return C}();return(0,e.createComponentVNode)(2,k.Window,{width:1250,height:600,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,V.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.createComponentVNode)(2,V.Tabs,{children:[(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:b===0,onClick:function(){function C(){return g(0)}return C}(),children:[(0,e.createComponentVNode)(2,V.Icon,{name:"map-marked-alt"})," Map"]},"Map"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:b===1,onClick:function(){function C(){return g(1)}return C}(),children:[(0,e.createComponentVNode)(2,V.Icon,{name:"table"})," List"]},"List")]}),h(b)]})})})}return s}(),l=r.CameraConsoleMapContent=function(){function s(m,c){var v=(0,y.useBackend)(c),b=v.act,g=v.data,h=p(g.cameras),C=(0,y.useLocalState)(c,"zoom",1),N=C[0],x=C[1],B=g.mapRef,L=g.activeCamera,w=g.stationLevelNum,A=g.stationLevelName,T=(0,y.useLocalState)(c,"z_current",w[0]),E=T[0],O=T[1],P=S(h,L),R=P[0],F=P[1];return(0,e.createComponentVNode)(2,V.Box,{height:"100%",display:"flex",children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,V.Box,{height:"100%",display:"flex",children:(0,e.createComponentVNode)(2,V.NanoMap,{onZoom:function(){function j(W){return x(W)}return j}(),zLevels:w,zNames:A,z_current:E,setZCurrent:O,children:h.map(function(j){return(0,e.createComponentVNode)(2,V.NanoMap.Marker,{x:j.x,y:j.y,z:j.z,z_current:E,zoom:N,icon:"box",tooltip:j.name,color:j.status?"blue":"red",bordered:!0,onClick:function(){function W(){return b("switch_camera",{name:j.name})}return W}()},j.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,V.Button,{icon:"chevron-left",disabled:!R,onClick:function(){function j(){return b("switch_camera",{name:R})}return j}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-right",disabled:!F,onClick:function(){function j(){return b("switch_camera",{name:F})}return j}()})],4),(0,e.createComponentVNode)(2,V.ByondUi,{className:"CameraConsole__map",params:{id:B,type:"map"}})],4)]})}return s}(),f=r.CameraConsoleOldContent=function(){function s(m,c){var v=(0,y.useBackend)(c),b=v.act,g=v.data,h=v.config,C=g.mapRef,N=g.activeCamera,x=(0,y.useLocalState)(c,"searchText",""),B=x[0],L=p(g.cameras,B),w=S(L,N),A=w[0],T=w[1];return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,V.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,V.Button,{icon:"chevron-left",disabled:!A,onClick:function(){function E(){return b("switch_camera",{name:A})}return E}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-right",disabled:!T,onClick:function(){function E(){return b("switch_camera",{name:T})}return E}()})],4),(0,e.createComponentVNode)(2,V.ByondUi,{className:"CameraConsole__map",params:{id:C,type:"map"}})],4)]})}return s}(),u=r.CameraConsoleListContent=function(){function s(m,c){var v=(0,y.useBackend)(c),b=v.act,g=v.data,h=(0,y.useLocalState)(c,"searchText",""),C=h[0],N=h[1],x=g.activeCamera,B=p(g.cameras,C);return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function L(w,A){return N(A)}return L}()})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,V.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 w(){return b("switch_camera",{name:L.name})}return w}()},L.name)})})})]})}return s}()},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),d=n(49968),y=n(98595),V=r.Canister=function(){function k(S,p){var i=(0,t.useBackend)(p),l=i.act,f=i.data,u=f.portConnected,s=f.tankPressure,m=f.releasePressure,c=f.defaultReleasePressure,v=f.minReleasePressure,b=f.maxReleasePressure,g=f.valveOpen,h=f.name,C=f.canLabel,N=f.colorContainer,x=f.color_index,B=f.hasHoldingTank,L=f.holdingTank,w="";x.prim&&(w=N.prim.options[x.prim].name);var A="";x.sec&&(A=N.sec.options[x.sec].name);var T="";x.ter&&(T=N.ter.options[x.ter].name);var E="";x.quart&&(E=N.quart.options[x.quart].name);var O=[],P=[],R=[],F=[],j=0;for(j=0;jh.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:c.cooldown_time||!h.can_close,onClick:function(){function C(){return m("make_job_unavailable",{job:h.title})}return C}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:c.cooldown_time||!h.can_open,onClick:function(){function C(){return m("make_job_available",{job:h.title})}return C}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:c.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:c.priority_jobs.indexOf(h.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:h.is_priority?"Yes":"No",selected:h.is_priority,disabled:c.cooldown_time||!h.can_prioritize,onClick:function(){function C(){return m("prioritize_job",{job:h.title})}return C}()})})]},h.title)})]})})]}):g=(0,e.createComponentVNode)(2,k);break;case 2:!c.authenticated||!c.scan_name?g=(0,e.createComponentVNode)(2,k):c.modify_name?g=(0,e.createComponentVNode)(2,d.AccessList,{accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function h(C){return m("set",{access:C})}return h}(),grantAll:function(){function h(){return m("grant_all")}return h}(),denyAll:function(){function h(){return m("clear_all")}return h}(),grantDep:function(){function h(C){return m("grant_region",{region:C})}return h}(),denyDep:function(){function h(C){return m("deny_region",{region:C})}return h}()}):g=(0,e.createComponentVNode)(2,S);break;case 3:c.authenticated?c.records.length?g=(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:!c.authenticated||c.records.length===0||c.target_dept,onClick:function(){function h(){return m("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"}),!!c.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),c.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}),!!c.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.deletedby})]},h.timestamp)})]}),!!c.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!c.authenticated||c.records.length===0,onClick:function(){function h(){return m("wipe_my_logs")}return h}()})})]}):g=(0,e.createComponentVNode)(2,p):g=(0,e.createComponentVNode)(2,k);break;case 4:!c.authenticated||!c.scan_name?g=(0,e.createComponentVNode)(2,k):g=(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"})]}),c.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 C(){return m("remote_demote",{remote_demote:h.name})}return C}()})})]},h.title)})]})});break;default:g=(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:v}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:g})]})})})}return l}()},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),d=n(36036),y=n(98595),V=n(25328),k=r.CargoConsole=function(){function f(u,s){return(0,e.createComponentVNode)(2,y.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,d.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,l)]})})})}return f}(),S=function(u,s){var m=(0,o.useLocalState)(s,"contentsModal",null),c=m[0],v=m[1],b=(0,o.useLocalState)(s,"contentsModalTitle",null),g=b[0],h=b[1];if(c!==null&&g!==null)return(0,e.createComponentVNode)(2,d.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,d.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[g,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,d.Box,{children:c.map(function(C){return(0,e.createComponentVNode)(2,d.Box,{children:["- ",C]},C)})}),(0,e.createComponentVNode)(2,d.Box,{m:2,children:(0,e.createComponentVNode)(2,d.Button,{content:"Close",onClick:function(){function C(){v(null),h(null)}return C}()})})]})},p=function(u,s){var m=(0,o.useBackend)(s),c=m.act,v=m.data,b=v.is_public,g=v.points,h=v.credits,C=v.timeleft,N=v.moving,x=v.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...",C!==1?B="Shuttle is en route (ETA: "+C+" minutes)":B="Shuttle is en route (ETA: "+C+" minute)"),(0,e.createComponentVNode)(2,d.Stack.Item,{children:(0,e.createComponentVNode)(2,d.Section,{title:"Status",children:(0,e.createComponentVNode)(2,d.LabeledList,{children:[(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Points Available",children:g}),(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Credits Available",children:h}),(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Shuttle Status",children:B}),b===0&&(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,d.Button,{content:L,disabled:N,onClick:function(){function w(){return c("moveShuttle")}return w}()}),(0,e.createComponentVNode)(2,d.Button,{content:"View Central Command Messages",onClick:function(){function w(){return c("showMessages")}return w}()})]})]})})})},i=function(u,s){var m=(0,o.useBackend)(s),c=m.act,v=m.data,b=v.categories,g=v.supply_packs,h=(0,o.useSharedState)(s,"category","Emergency"),C=h[0],N=h[1],x=(0,o.useSharedState)(s,"search_text",""),B=x[0],L=x[1],w=(0,o.useLocalState)(s,"contentsModal",null),A=w[0],T=w[1],E=(0,o.useLocalState)(s,"contentsModalTitle",null),O=E[0],P=E[1],R=(0,V.createSearch)(B,function(W){return W.name}),F=(0,a.flow)([(0,t.filter)(function(W){return W.cat===b.filter(function(H){return H.name===C})[0].category||B}),B&&(0,t.filter)(R),(0,t.sortBy)(function(W){return W.name.toLowerCase()})])(g),j="Crate Catalogue";return B?j="Results for '"+B+"':":C&&(j="Browsing "+C),(0,e.createComponentVNode)(2,d.Stack.Item,{children:(0,e.createComponentVNode)(2,d.Section,{title:j,buttons:(0,e.createComponentVNode)(2,d.Dropdown,{width:"190px",options:b.map(function(W){return W.name}),selected:C,onSelected:function(){function W(H){return N(H)}return W}()}),children:[(0,e.createComponentVNode)(2,d.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function W(H,z){return L(z)}return W}(),mb:1}),(0,e.createComponentVNode)(2,d.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,d.Table,{m:"0.5rem",children:F.map(function(W){return(0,e.createComponentVNode)(2,d.Table.Row,{children:[(0,e.createComponentVNode)(2,d.Table.Cell,{bold:!0,children:(0,e.createComponentVNode)(2,d.Box,{color:W.has_sale?"good":"default",children:[W.name," (",W.cost?W.cost+" Points":"",W.creditsCost&&W.cost?" ":"",W.creditsCost?W.creditsCost+" Credits":"",")"]})}),(0,e.createComponentVNode)(2,d.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,d.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){function H(){return c("order",{crate:W.ref,multiple:0})}return H}()}),(0,e.createComponentVNode)(2,d.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){function H(){return c("order",{crate:W.ref,multiple:1})}return H}()}),(0,e.createComponentVNode)(2,d.Button,{content:"View Contents",icon:"search",onClick:function(){function H(){T(W.contents),P(W.name)}return H}()})]})]},W.name)})})})]})})},l=function(u,s){var m=(0,o.useBackend)(s),c=m.act,v=m.data,b=v.requests,g=v.canapprove,h=v.orders;return(0,e.createComponentVNode)(2,d.Section,{fill:!0,scrollable:!0,title:"Details",children:[(0,e.createComponentVNode)(2,d.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,d.Table,{m:"0.5rem",children:b.map(function(C){return(0,e.createComponentVNode)(2,d.Table.Row,{children:[(0,e.createComponentVNode)(2,d.Table.Cell,{children:[(0,e.createComponentVNode)(2,d.Box,{children:["- #",C.ordernum,": ",C.supply_type," for ",(0,e.createVNode)(1,"b",null,C.orderedby,0)]}),(0,e.createComponentVNode)(2,d.Box,{italic:!0,children:["Reason: ",C.comment]}),(0,e.createComponentVNode)(2,d.Box,{italic:!0,children:["Required Techs: ",C.pack_techs]})]}),(0,e.createComponentVNode)(2,d.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,d.Button,{content:"Approve",color:"green",disabled:!g,onClick:function(){function N(){return c("approve",{ordernum:C.ordernum})}return N}()}),(0,e.createComponentVNode)(2,d.Button,{content:"Deny",color:"red",onClick:function(){function N(){return c("deny",{ordernum:C.ordernum})}return N}()})]})]},C.ordernum)})}),(0,e.createComponentVNode)(2,d.Box,{bold:!0,children:"Confirmed Orders"}),(0,e.createComponentVNode)(2,d.Table,{m:"0.5rem",children:h.map(function(C){return(0,e.createComponentVNode)(2,d.Table.Row,{children:(0,e.createComponentVNode)(2,d.Table.Cell,{children:[(0,e.createComponentVNode)(2,d.Box,{children:["- #",C.ordernum,": ",C.supply_type," for ",(0,e.createVNode)(1,"b",null,C.orderedby,0)]}),(0,e.createComponentVNode)(2,d.Box,{italic:!0,children:["Reason: ",C.comment]})]})},C.ordernum)})})]})}},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),d=n(98595),y=n(79140),V=S(n(83331)),k=S(n(52754));function S(c){return c&&c.__esModule?c:{default:c}}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 v};var c,v={},b=Object.prototype,g=b.hasOwnProperty,h=Object.defineProperty||function(fe,Z,J){fe[Z]=J.value},C=typeof Symbol=="function"?Symbol:{},N=C.iterator||"@@iterator",x=C.asyncIterator||"@@asyncIterator",B=C.toStringTag||"@@toStringTag";function L(fe,Z,J){return Object.defineProperty(fe,Z,{value:J,enumerable:!0,configurable:!0,writable:!0}),fe[Z]}try{L({},"")}catch(fe){L=function(J,te,ee){return J[te]=ee}}function w(fe,Z,J,te){var ee=Z&&Z.prototype instanceof F?Z:F,le=Object.create(ee.prototype),ye=new Le(te||[]);return h(le,"_invoke",{value:he(fe,J,ye)}),le}function A(fe,Z,J){try{return{type:"normal",arg:fe.call(Z,J)}}catch(te){return{type:"throw",arg:te}}}v.wrap=w;var T="suspendedStart",E="suspendedYield",O="executing",P="completed",R={};function F(){}function j(){}function W(){}var H={};L(H,N,function(){return this});var z=Object.getPrototypeOf,$=z&&z(z(Ae([])));$&&$!==b&&g.call($,N)&&(H=$);var G=W.prototype=F.prototype=Object.create(H);function ne(fe){["next","throw","return"].forEach(function(Z){L(fe,Z,function(J){return this._invoke(Z,J)})})}function Q(fe,Z){function J(ee,le,ye,me){var Te=A(fe[ee],fe,le);if(Te.type!=="throw"){var M=Te.arg,X=M.value;return X&&typeof X=="object"&&g.call(X,"__await")?Z.resolve(X.__await).then(function(ae){J("next",ae,ye,me)},function(ae){J("throw",ae,ye,me)}):Z.resolve(X).then(function(ae){M.value=ae,ye(M)},function(ae){return J("throw",ae,ye,me)})}me(Te.arg)}var te;h(this,"_invoke",{value:function(){function ee(le,ye){function me(){return new Z(function(Te,M){J(le,ye,Te,M)})}return te=te?te.then(me,me):me()}return ee}()})}function he(fe,Z,J){var te=T;return function(ee,le){if(te===O)throw Error("Generator is already running");if(te===P){if(ee==="throw")throw le;return{value:c,done:!0}}for(J.method=ee,J.arg=le;;){var ye=J.delegate;if(ye){var me=Ve(ye,J);if(me){if(me===R)continue;return me}}if(J.method==="next")J.sent=J._sent=J.arg;else if(J.method==="throw"){if(te===T)throw te=P,J.arg;J.dispatchException(J.arg)}else J.method==="return"&&J.abrupt("return",J.arg);te=O;var Te=A(fe,Z,J);if(Te.type==="normal"){if(te=J.done?P:E,Te.arg===R)continue;return{value:Te.arg,done:J.done}}Te.type==="throw"&&(te=P,J.method="throw",J.arg=Te.arg)}}}function Ve(fe,Z){var J=Z.method,te=fe.iterator[J];if(te===c)return Z.delegate=null,J==="throw"&&fe.iterator.return&&(Z.method="return",Z.arg=c,Ve(fe,Z),Z.method==="throw")||J!=="return"&&(Z.method="throw",Z.arg=new TypeError("The iterator does not provide a '"+J+"' method")),R;var ee=A(te,fe.iterator,Z.arg);if(ee.type==="throw")return Z.method="throw",Z.arg=ee.arg,Z.delegate=null,R;var le=ee.arg;return le?le.done?(Z[fe.resultName]=le.value,Z.next=fe.nextLoc,Z.method!=="return"&&(Z.method="next",Z.arg=c),Z.delegate=null,R):le:(Z.method="throw",Z.arg=new TypeError("iterator result is not an object"),Z.delegate=null,R)}function Ne(fe){var Z={tryLoc:fe[0]};1 in fe&&(Z.catchLoc=fe[1]),2 in fe&&(Z.finallyLoc=fe[2],Z.afterLoc=fe[3]),this.tryEntries.push(Z)}function Be(fe){var Z=fe.completion||{};Z.type="normal",delete Z.arg,fe.completion=Z}function Le(fe){this.tryEntries=[{tryLoc:"root"}],fe.forEach(Ne,this),this.reset(!0)}function Ae(fe){if(fe||fe===""){var Z=fe[N];if(Z)return Z.call(fe);if(typeof fe.next=="function")return fe;if(!isNaN(fe.length)){var J=-1,te=function(){function ee(){for(;++J=0;--ee){var le=this.tryEntries[ee],ye=le.completion;if(le.tryLoc==="root")return te("end");if(le.tryLoc<=this.prev){var me=g.call(le,"catchLoc"),Te=g.call(le,"finallyLoc");if(me&&Te){if(this.prev=0;--te){var ee=this.tryEntries[te];if(ee.tryLoc<=this.prev&&g.call(ee,"finallyLoc")&&this.prev=0;--J){var te=this.tryEntries[J];if(te.finallyLoc===Z)return this.complete(te.completion,te.afterLoc),Be(te),R}}return fe}(),catch:function(){function fe(Z){for(var J=this.tryEntries.length-1;J>=0;--J){var te=this.tryEntries[J];if(te.tryLoc===Z){var ee=te.completion;if(ee.type==="throw"){var le=ee.arg;Be(te)}return le}}throw Error("illegal catch attempt")}return fe}(),delegateYield:function(){function fe(Z,J,te){return this.delegate={iterator:Ae(Z),resultName:J,nextLoc:te},this.method==="next"&&(this.arg=c),R}return fe}()},v}function i(c,v,b,g,h,C,N){try{var x=c[C](N),B=x.value}catch(L){return void b(L)}x.done?v(B):Promise.resolve(B).then(g,h)}function l(c){return function(){var v=this,b=arguments;return new Promise(function(g,h){var C=c.apply(v,b);function N(B){i(C,g,h,N,x,"next",B)}function x(B){i(C,g,h,N,x,"throw",B)}N(void 0)})}}function f(c,v){c.prototype=Object.create(v.prototype),c.prototype.constructor=c,u(c,v)}function u(c,v){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,g){return b.__proto__=g,b},u(c,v)}var s={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"}},m=r.Changelog=function(c){function v(){var g;return g=c.call(this)||this,g.getData=function(h,C){C===void 0&&(C=1);var N=(0,t.useBackend)(g.context),x=N.act,B=g,L=6;if(C>L)return g.setData("Failed to load data after "+L+" attempts");x("get_month",{date:h}),fetch((0,y.resolveAsset)(h+".yml")).then(function(){var w=l(p().mark(function(){function A(T){var E,O,P;return p().wrap(function(){function R(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,T.text();case 2:E=F.sent,O=/^Cannot find/,O.test(E)?(P=50+C*50,B.setData("Loading changelog data"+".".repeat(C+3)),setTimeout(function(){B.getData(h,C+1)},P)):B.setData(k.default.load(E,{schema:k.default.CORE_SCHEMA}));case 5:case"end":return F.stop()}}return R}(),A)}return A}()));return function(A){return w.apply(this,arguments)}}())},g.state={data:"Loading changelog data...",selectedDate:"",selectedIndex:0},g.dateChoices=[],g}f(v,c);var b=v.prototype;return b.setData=function(){function g(h){this.setState({data:h})}return g}(),b.setSelectedDate=function(){function g(h){this.setState({selectedDate:h})}return g}(),b.setSelectedIndex=function(){function g(h){this.setState({selectedIndex:h})}return g}(),b.componentDidMount=function(){function g(){var h=this,C=(0,t.useBackend)(this.context),N=C.data.dates,x=N===void 0?[]:N;x&&(x.forEach(function(B){return h.dateChoices.push((0,V.default)(B,"mmmm yyyy",!0))}),this.setSelectedDate(this.dateChoices[0]),this.getData(x[0]))}return g}(),b.render=function(){function g(){var h=this,C=this.state,N=C.data,x=C.selectedDate,B=C.selectedIndex,L=(0,t.useBackend)(this.context),w=L.data.dates,A=this.dateChoices,T=A.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 F(){var j=B-1;return h.setData("Loading changelog data..."),h.setSelectedIndex(j),h.setSelectedDate(A[j]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),h.getData(w[j])}return F}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{displayText:x,options:A,onSelected:function(){function F(j){var W=A.indexOf(j);return h.setData("Loading changelog data..."),h.setSelectedIndex(W),h.setSelectedDate(j),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),h.getData(w[W])}return F}(),selected:x,width:"150px"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:B===A.length-1,icon:"chevron-right",onClick:function(){function F(){var j=B+1;return h.setData("Loading changelog data..."),h.setSelectedIndex(j),h.setSelectedDate(A[j]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),h.getData(w[j])}return F}()})})]}),E=(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),T]}),O=(0,e.createComponentVNode)(2,o.Section,{children:[T,(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)]}),P=/#\d+/,R=typeof N=="object"&&Object.keys(N).length>0&&Object.entries(N).reverse().map(function(F){var j=F[0],W=F[1];return(0,e.createComponentVNode)(2,o.Section,{title:(0,V.default)(j,"d mmmm yyyy",!0),children:(0,e.createComponentVNode)(2,o.Box,{ml:3,children:Object.entries(W).map(function(H){var z=H[0],$=H[1];return(0,e.createFragment)([(0,e.createVNode)(1,"h4",null,[z,(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 ne=Object.keys(G)[0],Q=G[ne],he=Q.match(P),Ve=(0,e.createComponentVNode)(2,o.Table.Cell,{className:(0,a.classes)(["Changelog__Cell","Changelog__Cell--Icon"]),children:(0,e.createComponentVNode)(2,o.Icon,{color:s[ne]?s[ne].color:s.unknown.color,name:s[ne]?s[ne].icon:s.unknown.icon})});return he!==null&&(0,e.createComponentVNode)(2,o.Table.Row,{children:[Ve,(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:(0,e.createVNode)(1,"a",null,[" ",Q.charAt(0).toUpperCase()+Q.slice(1)," "],0,{href:"https://github.com/ss220-space/Paradise/pull/"+he[0].substring(1)})})]},ne+Q)||(0,e.createComponentVNode)(2,o.Table.Row,{children:[Ve,(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:Q})]},ne+Q)})})})],4,z)})})},j)});return(0,e.createComponentVNode)(2,d.Window,{title:"Changelog",width:675,height:650,children:(0,e.createComponentVNode)(2,d.Window.Content,{scrollable:!0,children:[E,R,typeof N=="string"&&(0,e.createVNode)(1,"p",null,N,0),O]})})}return g}(),v}(e.Component)},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),d=n(98595),y=[1,5,10,20,30,50,100],V=[1,5,10],k=r.ChemDispenser=function(){function l(f,u){var s=(0,a.useBackend)(u),m=s.act,c=s.data,v=c.chemicals;return(0,e.createComponentVNode)(2,d.Window,{width:460,height:400+v.length*8,children:(0,e.createComponentVNode)(2,d.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i)]})})})}return l}(),S=function(f,u){var s=(0,a.useBackend)(u),m=s.act,c=s.data,v=c.amount,b=c.energy,g=c.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:g,ranges:{good:[g*.5,1/0],average:[g*.25,g*.5],bad:[-1/0,g*.25]},children:[b," / ",g," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:y.map(function(h,C){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:v===h,content:h,onClick:function(){function N(){return m("amount",{amount:h})}return N}()})},C)})})})]})})})},p=function(f,u){for(var s=(0,a.useBackend)(u),m=s.act,c=s.data,v=c.chemicals,b=v===void 0?[]:v,g=[],h=0;h<(b.length+1)%3;h++)g.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:c.glass?"Drink Dispenser":"Chemical Dispenser",children:[b.map(function(C,N){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:C.title,style:{"margin-left":"2px"},onClick:function(){function x(){return m("dispense",{reagent:C.id})}return x}()},N)}),g.map(function(C,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},N)})]})})},i=function(f,u){var s=(0,a.useBackend)(u),m=s.act,c=s.data,v=c.isBeakerLoaded,b=c.beakerCurrentVolume,g=c.beakerMaxVolume,h=c.beakerContents,C=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:c.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!v&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[b," / ",g," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!v,onClick:function(){function N(){return m("ejectBeaker")}return N}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:v,beakerContents:C,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 m("remove",{reagent:x.id,amount:-1})}return B}()}),V.map(function(B,L){return(0,e.createComponentVNode)(2,t.Button,{content:B,onClick:function(){function w(){return m("remove",{reagent:x.id,amount:B})}return w}()},L)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function B(){return m("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 m("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),d=n(85870),y=n(98595),V=r.ChemHeater=function(){function p(i,l){return(0,e.createComponentVNode)(2,y.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S)]})})})}return p}(),k=function(i,l){var f=(0,t.useBackend)(l),u=f.act,s=f.data,m=s.targetTemp,c=s.targetTempReached,v=s.autoEject,b=s.isActive,g=s.currentTemp,h=s.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:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function C(){return u("toggle_autoeject")}return C}()}),(0,e.createComponentVNode)(2,o.Button,{content:b?"On":"Off",icon:"power-off",selected:b,disabled:!h,onClick:function(){function C(){return u("toggle_on")}return C}()})],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)(m,0),minValue:0,maxValue:1e3,onDrag:function(){function C(N,x){return u("adjust_temperature",{target:x})}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:c?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:g,format:function(){function C(N){return(0,a.toFixed)(N)+" K"}return C}()})||"\u2014"})]})})})},S=function(i,l){var f=(0,t.useBackend)(l),u=f.act,s=f.data,m=s.isBeakerLoaded,c=s.beakerCurrentVolume,v=s.beakerMaxVolume,b=s.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:!!m&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[c," / ",v," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function g(){return u("eject_beaker")}return g}()})]}),children:(0,e.createComponentVNode)(2,d.BeakerContents,{beakerLoaded:m,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),d=n(85870),y=n(3939),V=n(35840),k=["icon"];function S(B,L){if(B==null)return{};var w={};for(var A in B)if({}.hasOwnProperty.call(B,A)){if(L.includes(A))continue;w[A]=B[A]}return w}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(w,A){return w.__proto__=A,w},i(B,L)}var l=[1,5,10],f=function(L,w){var A=(0,a.useBackend)(w),T=A.act,E=A.data,O=L.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:E.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),!E.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:E.printing?"spinner":"print",disabled:E.printing,iconSpin:!!E.printing,ml:"0.5rem",content:"Print",onClick:function(){function P(){return T("print",{idx:O.idx,beaker:L.args.beaker})}return P}()})]})})})})},u=function(B){return B[B.ToDisposals=0]="ToDisposals",B[B.ToBeaker=1]="ToBeaker",B}(u||{}),s=r.ChemMaster=function(){function B(L,w){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,y.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,x)]})})]})}return B}(),m=function(L,w){var A=(0,a.useBackend)(w),T=A.act,E=A.data,O=E.beaker,P=E.beaker_reagents,R=E.buffer_reagents,F=R.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:F?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!O,content:"Eject and Clear Buffer",onClick:function(){function j(){return T("eject")}return j}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!O,content:"Eject and Clear Buffer",onClick:function(){function j(){return T("eject")}return j}()}),children:O?(0,e.createComponentVNode)(2,d.BeakerContents,{beakerLoaded:!0,beakerContents:P,buttons:function(){function j(W,H){return(0,e.createComponentVNode)(2,t.Box,{mb:H0?(0,e.createComponentVNode)(2,d.BeakerContents,{beakerLoaded:!0,beakerContents:P,buttons:function(){function R(F,j){return(0,e.createComponentVNode)(2,t.Box,{mb:j0&&(F=R.map(function(j){var W=j.id,H=j.sprite;return(0,e.createComponentVNode)(2,C,{icon:H,color:"translucent",onClick:function(){function z(){return T("set_sprite_style",{production_mode:O,style:W})}return z}(),selected:P===W},W)})),(0,e.createComponentVNode)(2,h,{productionData:L.productionData,children:F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:F})})},x=function(L,w){var A=(0,a.useBackend)(w),T=A.act,E=A.data,O=E.loaded_pill_bottle_style,P=E.containerstyles,R=E.loaded_pill_bottle,F={width:"20px",height:"20px"},j=P.map(function(W){var H=W.color,z=W.name,$=O===H;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:F.width,height:F.height},onClick:function(){function G(){return T("set_container_style",{style:H})}return G}(),icon:$&&"check",iconStyle:{position:"relative","z-index":1},tooltip:z,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:F.width,height:F.height,"background-color":H,opacity:.6,filter:"alpha(opacity=60)"}})]},H)});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:!R,content:"Eject Container",onClick:function(){function W(){return T("ejectp")}return W}()}),children:R?(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:F.width,height:F.height},icon:"tint-slash",onClick:function(){function W(){return T("clear_container_style")}return W}(),selected:!O,tooltip:"Default",tooltipPosition:"top"}),j]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,y.modalRegisterBodyOverride)("analyze",f)},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),d=n(76910),y=n(3939),V=n(98595),k=n(79140),S=function(v,b){var g=(0,t.useBackend)(b),h=g.act,C=g.data,N=v.args,x=N.activerecord,B=N.realname,L=N.health,w=N.unidentity,A=N.strucenzymes,T=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:T.length>1?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:d.COLORS.damageType.oxy,inline:!0,children:T[0]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:d.COLORS.damageType.toxin,inline:!0,children:T[2]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:d.COLORS.damageType.brute,inline:!0,children:T[3]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:d.COLORS.damageType.burn,inline:!0,children:T[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:w}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:A}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disk",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!C.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){function E(){return h("disk",{option:"load"})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!C.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){function E(){return h("disk",{option:"save",savetype:"ui"})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!C.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){function E(){return h("disk",{option:"save",savetype:"ue"})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!C.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){function E(){return h("disk",{option:"save",savetype:"se"})}return E}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!C.podready,icon:"user-plus",content:"Clone",onClick:function(){function E(){return h("clone",{ref:x})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"Delete",onClick:function(){function E(){return h("del_rec")}return E}()})]})]})})},p=r.CloningConsole=function(){function c(v,b){var g=(0,t.useBackend)(b),h=g.act,C=g.data,N=C.menu;return(0,y.modalRegisterBodyOverride)("view_rec",S),(0,e.createComponentVNode)(2,V.Window,{width:640,height:520,children:[(0,e.createComponentVNode)(2,y.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,V.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,flexGrow:"1",children:(0,e.createComponentVNode)(2,l)})]})]})}return c}(),i=function(v,b){var g=(0,t.useBackend)(b),h=g.act,C=g.data,N=C.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"})]})},l=function(v,b){var g=(0,t.useBackend)(b),h=g.data,C=h.menu,N;return C===1?N=(0,e.createComponentVNode)(2,f):C===2&&(N=(0,e.createComponentVNode)(2,u)),N},f=function(v,b){var g=(0,t.useBackend)(b),h=g.act,C=g.data,N=C.loading,x=C.scantemp,B=C.occupant,L=C.locked,w=C.can_brainscan,A=C.scan_mode,T=C.numberofpods,E=C.pods,O=C.selected_pod,P=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:P,icon:P?"toggle-on":"toggle-off",content:P?"Engaged":"Disengaged",onClick:function(){function R(){return h("lock")}return R}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:P||!B,icon:"user-slash",content:"Eject Occupant",onClick:function(){function R(){return h("eject")}return R}()})],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})}),!!w&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scan Mode",children:(0,e.createComponentVNode)(2,o.Button,{icon:A?"brain":"male",content:A?"Brain":"Body",onClick:function(){function R(){return h("toggle_mode")}return R}()})})]}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B||N,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){function R(){return h("scan")}return R}()})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Pods",level:"2",children:T?E.map(function(R,F){var j;return R.status==="cloning"?j=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:R.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)(R.progress,0)+"%"})}):R.status==="mess"?j=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):j=(0,e.createComponentVNode)(2,o.Button,{selected:O===R.pod,icon:O===R.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){function W(){return h("selectpod",{ref:R.pod})}return W}()}),(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_"+R.status+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["Pod #",F+1]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:R.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:R.biomass>=150?"circle":"circle-o"}),"\xA0",R.biomass]}),j]},F)}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},u=function(v,b){var g=(0,t.useBackend)(b),h=g.act,C=g.data,N=C.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."]})})},s=function(v,b){var g,h=(0,t.useBackend)(b),C=h.act,N=h.data,x=N.temp;if(!(!x||!x.text||x.text.length<=0)){var B=(g={},g[x.style]=!0,g);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 C("cleartemp")}return L}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},m=function(v,b){var g=(0,t.useBackend)(b),h=g.act,C=g.data,N=C.scanner,x=C.numberofpods,B=C.autoallowed,L=C.autoprocess,w=C.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 A(){return h("autoprocess",{on:L?0:1})}return A}()})],4),(0,e.createComponentVNode)(2,o.Button,{disabled:!w,icon:"eject",content:"Eject Disk",onClick:function(){function A(){return h("disk",{option:"eject"})}return A}()})],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!"})})]})})}},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),d=r.CommunicationsComputer=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l;i.authenticated?i.is_ai?l="AI":i.authenticated===1?l="Command":i.authenticated===2?l="Captain":l="ERROR: Report This Bug!":l="Not Logged In";var f="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 ("+l+")":"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),s="Make Priority Announcement";i.msg_cooldown>0&&(s+=" ("+i.msg_cooldown+"s)");var m=i.emagged?"Message [UNKNOWN]":"Message CentComm",c="Request Authentication Codes";i.cc_cooldown>0&&(m+=" ("+i.cc_cooldown+"s)",c+=" ("+i.cc_cooldown+"s)");var v=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)}),g=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)}),C;if(i.current_message_title)C=(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)});C=(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:v}),(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:s,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:m,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:m,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:c,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:f,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:g}),(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,C]})});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 y}()},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),d=n(73379),y=n(98595);function V(b,g){b.prototype=Object.create(g.prototype),b.prototype.constructor=b,k(b,g)}function k(b,g){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,C){return h.__proto__=C,h},k(b,g)}var S={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(g,h){var C=(0,t.useBackend)(h),N=C.act,x=C.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,c,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function T(){}return T}()})}):x.load_animation_completed?B=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,l)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,f)}),(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,m,{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,c,{height:"100%",allMessages:p,finishedTimeout:3e3,onFinished:function(){function T(){return N("complete_load_animation")}return T}()})});var L=(0,t.useLocalState)(h,"viewingPhoto",""),w=L[0],A=L[1];return(0,e.createComponentVNode)(2,y.Window,{width:500,height:600,theme:"syndicate",children:[w&&(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,y.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:B})})]})}return b}(),l=function(g,h){var C=(0,t.useBackend)(h),N=C.act,x=C.data,B=x.tc_available,L=x.tc_paid_out,w=x.completed_contracts,A=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:[A," Rep"]})},g,{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 T(){return N("claim")}return T}()})]})}),(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:w})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},f=function(g,h){var C=(0,t.useBackend)(h),N=C.act,x=C.data,B=x.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},g,{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(g,h){var C=(0,t.useBackend)(h),N=C.act,x=C.data,B=x.contracts,L=x.contract_active,w=x.can_extract,A=!!L&&B.filter(function(R){return R.status===1})[0],T=A&&A.time_left>0,E=(0,t.useLocalState)(h,"viewingPhoto",""),O=E[0],P=E[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:!w||T,icon:"parachute-box",content:["Call Extraction",T&&(0,e.createComponentVNode)(2,d.Countdown,{timeLeft:A.time_left,format:function(){function R(F,j){return" ("+j.substr(3)+")"}return R}()})],onClick:function(){function R(){return N("extract")}return R}()})},g,{children:B.slice().sort(function(R,F){return R.status===1?-1:F.status===1?1:R.status-F.status}).map(function(R){var F;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:R.status===1&&"good",children:R.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:R.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function j(){return P("target_photo_"+R.uid+".png")}return j}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!S[R.status]&&(0,e.createComponentVNode)(2,o.Box,{color:S[R.status][1],display:"inline-block",mt:R.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:S[R.status][0]}),R.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function j(){return N("abort")}return j}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[R.fluff_message,!!R.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 ",R.completed_time]}),!!R.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."]}),!!R.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: ",R.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",s(R)]}),(F=R.difficulties)==null?void 0:F.map(function(j,W){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!L,content:j.name+" ("+j.reward+" TC)",onClick:function(){function H(){return N("activate",{uid:R.uid,difficulty:W+1})}return H}()},W)}),!!R.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[R.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(R.objective.rewards.tc||0)+" TC",",\xA0",(R.objective.rewards.credits||0)+" Credits",")"]})]})]})},R.uid)})})))},s=function(g){if(!(!g.objective||g.status>1)){var h=g.objective.locs.user_area_id,C=g.objective.locs.user_coords,N=g.objective.locs.target_area_id,x=g.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]-C[1],x[0]-C[0])),lineHeight:B?null:"0.85",size:"1.5"})})}},m=function(g,h){var C=(0,t.useBackend)(h),N=C.act,x=C.data,B=x.rep,L=x.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},g,{children:L.map(function(w){return(0,e.createComponentVNode)(2,o.Section,{title:w.name,buttons:w.refundable&&(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Refund ("+w.cost+" Rep)",onClick:function(){function A(){return N("refund",{uid:w.uid})}return A}()}),children:[w.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:w.stock===0?"bad":"good",ml:"0.5rem",children:[w.stock," in stock"]})]},w.uid)})})))},c=function(b){function g(C){var N;return N=b.call(this,C)||this,N.timer=null,N.state={currentIndex:0,currentDisplay:[]},N}V(g,b);var h=g.prototype;return h.tick=function(){function C(){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 C}(),h.componentDidMount=function(){function C(){var N=this,x=this.props.linesPerSecond,B=x===void 0?2.5:x;this.timer=setInterval(function(){return N.tick()},1e3/B)}return C}(),h.componentWillUnmount=function(){function C(){clearTimeout(this.timer)}return C}(),h.render=function(){function C(){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 C}(),g}(e.Component),v=function(g,h){var C=(0,t.useLocalState)(h,"viewingPhoto",""),N=C[0],x=C[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),d=r.ConveyorSwitch=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.slowFactor,f=i.minSpeed,u=i.maxSpeed,s=i.oneWay,m=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:m>0?"forward":m<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!s,onClick:function(){function c(){return p("toggleOneWay")}return c}()})}),(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 c(){return p("slowFactor",{value:l-.5})}return c}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function c(){return p("slowFactor",{value:l-.1})}return c}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:l,fillValue:l,minValue:f,maxValue:u,step:.1,format:function(){function c(v){return v+"s."}return c}(),onChange:function(){function c(v,b){return p("slowFactor",{value:b})}return c}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function c(){return p("slowFactor",{value:l+.1})}return c}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function c(){return p("slowFactor",{value:l+.5})}return c}()})," "]})]})})]})})})})}return y}()},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),d=n(36036),y=n(36352),V=n(76910),k=n(98595),S=function(v,b){return v.dead?"Deceased":parseInt(v.health,10)<=b?"Critical":parseInt(v.stat,10)===1?"Unconscious":"Living"},p=function(v,b){return v.dead?"red":parseInt(v.health,10)<=b?"orange":parseInt(v.stat,10)===1?"blue":"green"},i=r.CrewMonitor=function(){function c(v,b){var g=(0,o.useBackend)(b),h=g.act,C=g.data,N=(0,o.useLocalState)(b,"tabIndex",C.IndexToggler),x=N[0],B=N[1],L=function(){function w(A){switch(A){case 0:return(0,e.createComponentVNode)(2,u);case 1:return(0,e.createComponentVNode)(2,s);case 2:return(0,e.createComponentVNode)(2,f);case 3:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return w}();return(0,e.createComponentVNode)(2,k.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,d.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,d.Tabs,{children:[C.isBS?(0,e.createComponentVNode)(2,d.Tabs.Tab,{selected:x===0,onClick:function(){function w(){return B(0)}return w}(),children:[(0,e.createComponentVNode)(2,d.Icon,{name:"table"})," Command Data View"]},"ComDataView"):null,C.isBP?(0,e.createComponentVNode)(2,d.Tabs.Tab,{selected:x===1,onClick:function(){function w(){return B(1)}return w}(),children:[(0,e.createComponentVNode)(2,d.Icon,{name:"table"})," Security Data View"]},"SecDataView"):null,(0,e.createComponentVNode)(2,d.Tabs.Tab,{selected:x===2,onClick:function(){function w(){return B(2)}return w}(),children:[(0,e.createComponentVNode)(2,d.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,d.Tabs.Tab,{selected:x===3,onClick:function(){function w(){return B(3)}return w}(),children:[(0,e.createComponentVNode)(2,d.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),L(x)]})})})}return c}(),l=function(v){var b=v.crewData,g=v.context,h=(0,o.useBackend)(g),C=h.act,N=h.data,x=(0,a.sortBy)(function(T){return T.name})(b||[]),B=(0,o.useLocalState)(g,"search",""),L=B[0],w=B[1],A=(0,t.createSearch)(L,function(T){return T.name+"|"+T.assignment+"|"+T.area});return(0,e.createComponentVNode)(2,d.Box,{children:[(0,e.createComponentVNode)(2,d.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function T(E,O){return w(O)}return T}()}),(0,e.createComponentVNode)(2,d.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,d.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,d.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,d.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,d.Table.Cell,{children:"Location"})]}),x.filter(A).map(function(T){return(0,e.createComponentVNode)(2,d.Table.Row,{bold:!!T.is_command,children:[(0,e.createComponentVNode)(2,y.TableCell,{children:[T.name," (",T.assignment,")"]}),(0,e.createComponentVNode)(2,y.TableCell,{children:[(0,e.createComponentVNode)(2,d.Box,{inline:!0,color:p(T,N.critThreshold),children:S(T,N.critThreshold)}),T.sensor_type>=2?(0,e.createComponentVNode)(2,d.Box,{inline:!0,children:["(",(0,e.createComponentVNode)(2,d.Box,{inline:!0,color:V.COLORS.damageType.oxy,children:T.oxy}),"|",(0,e.createComponentVNode)(2,d.Box,{inline:!0,color:V.COLORS.damageType.toxin,children:T.tox}),"|",(0,e.createComponentVNode)(2,d.Box,{inline:!0,color:V.COLORS.damageType.burn,children:T.fire}),"|",(0,e.createComponentVNode)(2,d.Box,{inline:!0,color:V.COLORS.damageType.brute,children:T.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,y.TableCell,{children:T.sensor_type===3?N.isAI?(0,e.createComponentVNode)(2,d.Button,{fluid:!0,icon:"location-arrow",content:T.area+" ("+T.x+", "+T.y+")",onClick:function(){function E(){return C("track",{track:T.ref})}return E}()}):T.area+" ("+T.x+", "+T.y+")":"Not Available"})]},T.ref)})]})]})},f=function(v,b){var g=(0,o.useBackend)(b),h=g.act,C=g.data,N=C.crewmembers||[];return(0,e.createComponentVNode)(2,l,{crewData:N,context:b})},u=function(v,b){var g=(0,o.useBackend)(b),h=g.act,C=g.data,N=C.crewmembers.filter(function(x){return x.is_command})||[];return(0,e.createComponentVNode)(2,l,{crewData:N,context:b})},s=function(v,b){var g=(0,o.useBackend)(b),h=g.act,C=g.data,N=C.crewmembers.filter(function(x){return x.is_security})||[];return(0,e.createComponentVNode)(2,l,{crewData:N,context:b})},m=function(v,b){var g=(0,o.useBackend)(b),h=g.act,C=g.data,N=C.stationLevelNum,x=C.stationLevelName,B=(0,o.useLocalState)(b,"zoom",1),L=B[0],w=B[1],A=(0,o.useLocalState)(b,"z_current",N[0]),T=A[0],E=A[1],O=function(j){return j.is_command&&C.isBS||j.is_security&&C.isBP?"square":"circle"},P=function(j){return j.is_command&&C.isBS||j.is_security&&C.isBP?10:6},R=function(j,W){return j.is_command&&C.isBS||j.is_security&&C.isBP?j.dead?"red":parseInt(j.health,10)<=W?"orange":parseInt(j.stat,10)===1?"blue":"violet":p(j,W)};return(0,e.createComponentVNode)(2,d.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,d.NanoMap,{onZoom:function(){function F(j){return w(j)}return F}(),zLevels:N,zNames:x,z_current:T,setZCurrent:E,children:C.crewmembers.filter(function(F){return F.sensor_type===3}).map(function(F){return(0,e.createComponentVNode)(2,d.NanoMap.Marker,{x:F.x,y:F.y,z:F.z,z_current:T,zoom:L,icon:O(F),size:P(F),tooltip:F.name+" ("+F.assignment+")",color:R(F,C.critThreshold),onClick:function(){function j(){C.isAI&&h("track",{track:F.ref})}return j}()},F.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),d=n(98595),y=[{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"}],V=[["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(l,f){return(0,e.createComponentVNode)(2,d.Window,{width:520,height:490,children:(0,e.createComponentVNode)(2,d.Window.Content,{children:(0,e.createComponentVNode)(2,S)})})}return i}(),S=function(l,f){var u=(0,t.useBackend)(f),s=u.act,m=u.data,c=m.isOperating,v=m.hasOccupant,b=m.occupant,g=b===void 0?[]:b,h=m.cellTemperature,C=m.cellTemperatureStatus,N=m.isBeakerLoaded,x=m.auto_eject_healthy,B=m.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 s("ejectOccupant")}return L}(),disabled:!v,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"}),children:v?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",children:g.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:g.health,max:g.maxHealth,value:g.health/g.maxHealth,color:g.health>0?"good":"average",children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(g.health)})})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",color:V[g.stat][0],children:V[g.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(g.bodyTemperature)})," ","K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),y.map(function(L){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.label,children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:g[L.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(g[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 s("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 s(c?"switchOff":"switchOn")}return L}(),selected:c,children:c?"\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:C,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 s(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 s(B?"auto_eject_dead_off":"auto_eject_dead_on")}return L}(),children:B?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})})]})})})]})},p=function(l,f){var u=(0,t.useBackend)(f),s=u.act,m=u.data,c=m.isBeakerLoaded,v=m.beakerLabel,b=m.beakerVolume;return c?(0,e.createFragment)([v?"\xAB"+v+"\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 g(h){var C=Math.round(h),N=(0,a.declensionRu)(C,"\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)(C,"\u0435\u0434\u0438\u043D\u0438\u0446\u0430","\u0435\u0434\u0438\u043D\u0438\u0446\u044B","\u0435\u0434\u0438\u043D\u0438\u0446");return N+" "+C+" "+x}return g}()}):"\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),d=n(25328),y=r.CryopodConsole=function(){function S(p,i){var l=(0,a.useBackend)(i),f=l.data,u=f.account_name,s=f.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,V),!!s&&(0,e.createComponentVNode)(2,k)]})})}return S}(),V=function(p,i){var l=(0,a.useBackend)(i),f=l.data,u=f.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(s,m){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.name,children:s.rank},m)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},k=function(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data,s=u.frozen_items,m=function(v){var b=v.toString();return b.startsWith("the ")&&(b=b.slice(4,b.length)),(0,d.toTitleCase)(b)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:s.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:s.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m(c.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function v(){return f("one_item",{item:c.uid})}return v}()})},c)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function c(){return f("all_items")}return c}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},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),d=n(3939),y=[["good","Alive"],["average","Critical"],["bad","DEAD"]],V=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],k=[5,10,20,30,50],S=r.DNAModifier=function(){function h(C,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.irradiating,A=L.dnaBlockSize,T=L.occupant;N.dnaBlockSize=A,N.isDNAInvalid=!T.isViableSubject||!T.uniqueIdentity||!T.structuralEnzymes;var E;return w&&(E=(0,e.createComponentVNode)(2,b,{duration:w})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,d.ComplexModal),E,(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(C,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.locked,A=L.hasOccupant,T=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:!A,selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Engaged":"Disengaged",onClick:function(){function E(){return B("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||w,icon:"user-slash",content:"Eject",onClick:function(){function E(){return B("ejectOccupant")}return E}()})],4),children:A?(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:T.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:T.minHealth,max:T.maxHealth,value:T.health/T.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:y[T.stat][0],children:y[T.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:T.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(C,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.selectedMenuKey,A=L.hasOccupant,T=L.occupant;if(A){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 E;return w==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,u)],4):w==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,u)],4):w==="buffer"?E=(0,e.createComponentVNode)(2,s):w==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,v)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:V.map(function(O,P){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:O[2],selected:w===O[0],onClick:function(){function R(){return B("selectMenuKey",{key:O[0]})}return R}(),children:O[1]},P)})}),E]})},l=function(C,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.selectedUIBlock,A=L.selectedUISubBlock,T=L.selectedUITarget,E=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,g,{dnaString:E.uniqueIdentity,selectedBlock:w,selectedSubblock:A,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:T,format:function(){function O(P){return P.toString(16).toUpperCase()}return O}(),ml:"0",onChange:function(){function O(P,R){return B("changeUITarget",{value:R})}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}()})]})},f=function(C,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.selectedSEBlock,A=L.selectedSESubBlock,T=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,g,{dnaString:T.structuralEnzymes,selectedBlock:w,selectedSubblock:A,blockSize:N.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return B("pulseSERadiation")}return E}()})]})},u=function(C,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.radiationIntensity,A=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:w,popUpPosition:"right",ml:"0",onChange:function(){function T(E,O){return B("radiationIntensity",{value:O})}return T}()})}),(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:A,popUpPosition:"right",ml:"0",onChange:function(){function T(E,O){return B("radiationDuration",{value:O})}return T}()})})]}),(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 T(){return B("pulseRadiation")}return T}()})]})},s=function(C,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.buffers,A=w.map(function(T,E){return(0,e.createComponentVNode)(2,m,{id:E+1,name:"Buffer "+(E+1),buffer:T},E)});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:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,c)})]})},m=function(C,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=C.id,A=C.name,T=C.buffer,E=L.isInjectorReady,O=A+(T.data?" - "+T.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:!T.data,icon:"trash",content:"Clear",onClick:function(){function P(){return B("bufferOption",{option:"clear",id:w})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T.data,icon:"pen",content:"Rename",onClick:function(){function P(){return B("bufferOption",{option:"changeLabel",id:w})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T.data||!L.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function P(){return B("bufferOption",{option:"saveDisk",id:w})}return P}()})],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 P(){return B("bufferOption",{option:"saveUI",id:w})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"saveUIAndUE",id:w})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"saveSE",id:w})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!L.hasDisk||!L.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"loadDisk",id:w})}return P}()})]}),!!T.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:T.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[T.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!T.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"createInjector",id:w})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"createInjector",id:w,block:1})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"transfer",id:w})}return P}()})]})],4)]}),!T.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},c=function(C,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.hasDisk,A=L.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!w||!A.data,icon:"trash",content:"Wipe",onClick:function(){function T(){return B("wipeDisk")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function T(){return B("ejectDisk")}return T}()})],4),children:w?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:A.label?A.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.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."]})})},v=function(C,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.isBeakerLoaded,A=L.beakerVolume,T=L.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function E(){return B("ejectBeaker")}return E}()}),children:w?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[k.map(function(E,O){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function P(){return B("injectRejuvenators",{amount:E})}return P}()},O)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return B("injectRejuvenators",{amount:A})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:T||"No label"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[A," unit",A===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(C,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 "),C.duration,(0,e.createTextVNode)(" second"),C.duration===1?"":"s"],0)})]})},g=function(C,N){for(var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=C.dnaString,A=C.selectedBlock,T=C.selectedSubblock,E=C.blockSize,O=C.action,P=w.split(""),R=0,F=[],j=function(){for(var z=W/E+1,$=[],G=function(){var he=ne+1;$.push((0,e.createComponentVNode)(2,t.Button,{selected:A===z&&T===he,content:P[W+ne],mb:"0",onClick:function(){function Ve(){return B(O,{block:z,subblock:he})}return Ve}()}))},ne=0;ne0?"Yes":"No",selected:i.com>0,onClick:function(){function f(){return p("toggle_com")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Security",children:l.map(function(f,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.sec===f,content:f,onClick:function(){function s(){return p("set_sec",{set_sec:f})}return s}()},"sec"+f)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Medical",children:l.map(function(f,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.med===f,content:f,onClick:function(){function s(){return p("set_med",{set_med:f})}return s}()},"med"+f)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Engineering",children:l.map(function(f,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.eng===f,content:f,onClick:function(){function s(){return p("set_eng",{set_eng:f})}return s}()},"eng"+f)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Paranormal",children:l.map(function(f,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.par===f,content:f,onClick:function(){function s(){return p("set_par",{set_par:f})}return s}()},"par"+f)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitor",children:l.map(function(f,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.jan===f,content:f,onClick:function(){function s(){return p("set_jan",{set_jan:f})}return s}()},"jan"+f)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cyborg",children:l.map(function(f,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.cyb===f,content:f,onClick:function(){function s(){return p("set_cyb",{set_cyb:f})}return s}()},"cyb"+f)})}),(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 f(){return p("dispatch_ert")}return f}()})})]})})]})})}return y}()},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),d=n(98595),y=r.Electropack=function(){function V(k,S){var p=(0,t.useBackend)(S),i=p.act,l=p.data,f=l.power,u=l.code,s=l.frequency,m=l.minFrequency,c=l.maxFrequency;return(0,e.createComponentVNode)(2,d.Window,{width:360,height:150,children:(0,e.createComponentVNode)(2,d.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:f?"power-off":"times",content:f?"On":"Off",selected:f,onClick:function(){function v(){return i("power")}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return i("reset",{reset:"freq"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:m/10,maxValue:c/10,value:s/10,format:function(){function v(b){return(0,a.toFixed)(b,1)}return v}(),width:"80px",onChange:function(){function v(b,g){return i("freq",{freq:g})}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return i("reset",{reset:"code"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:u,width:"80px",onChange:function(){function v(b,g){return i("code",{code:g})}return v}()})})]})})})})}return V}()},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),d=r.EvolutionMenu=function(){function k(S,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,y),(0,e.createComponentVNode)(2,V)]})})}return k}(),y=function(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.evo_points,s=f.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:!s,content:"Readapt",icon:"sync",onClick:function(){function m(){return l("readapt")}return m}()}),(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"})]})]})})},V=function(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.evo_points,s=f.ability_list,m=f.purchased_abilities,c=f.view_mode;return(0,e.createComponentVNode)(2,t.Section,{title:"Abilities",flexGrow:"1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:c?"square-o":"check-square-o",selected:!c,content:"Compact",onClick:function(){function v(){return l("set_view_mode",{mode:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:c?"check-square-o":"square-o",selected:c,content:"Expanded",onClick:function(){function v(){return l("set_view_mode",{mode:1})}return v}()})],4),children:s.map(function(v,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:v.name}),m.includes(v.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:v.cost})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,t.Button,{mr:.5,disabled:v.cost>u||m.includes(v.power_path),content:"Evolve",onClick:function(){function g(){return l("purchase",{power_path:v.power_path})}return g}()})})]}),!!c&&(0,e.createComponentVNode)(2,t.Flex,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:v.description+" "+v.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),d=n(36036),y=n(73379),V=n(98595),k=["id","amount","lineDisplay","onClick"];function S(b,g){if(b==null)return{};var h={};for(var C in b)if({}.hasOwnProperty.call(b,C)){if(g.includes(C))continue;h[C]=b[C]}return h}var p=2e3,i={bananium:"clown",tranquillite:"mime"},l=r.ExosuitFabricator=function(){function b(g,h){var C=(0,o.useBackend)(h),N=C.act,x=C.data,B=x.building;return(0,e.createComponentVNode)(2,V.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,V.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,d.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,d.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,d.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,u)}),B&&(0,e.createComponentVNode)(2,d.Stack.Item,{children:(0,e.createComponentVNode)(2,s)})]})}),(0,e.createComponentVNode)(2,d.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,d.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,d.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)})]})})]})})})}return b}(),f=function(g,h){var C=(0,o.useBackend)(h),N=C.act,x=C.data,B=x.materials,L=x.capacity,w=Object.values(B).reduce(function(A,T){return A+T},0);return(0,e.createComponentVNode)(2,d.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,d.Box,{color:"label",mt:"0.25rem",children:[(w/L*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,c,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function T(){return N("withdraw",{id:A})}return T}()},A)})})},u=function(g,h){var C=(0,o.useBackend)(h),N=C.act,x=C.data,B=x.curCategory,L=x.categories,w=x.designs,A=x.syncing,T=(0,o.useLocalState)(h,"searchText",""),E=T[0],O=T[1],P=(0,t.createSearch)(E,function(F){return F.name}),R=w.filter(P);return(0,e.createComponentVNode)(2,d.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,d.Dropdown,{className:"Exofab__dropdown",selected:B,options:L,onSelected:function(){function F(j){return N("category",{cat:j})}return F}()}),buttons:(0,e.createComponentVNode)(2,d.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,d.Button,{icon:"plus",content:"Queue all",onClick:function(){function F(){return N("queueall")}return F}()}),(0,e.createComponentVNode)(2,d.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function F(){return N("sync")}return F}()})]}),children:[(0,e.createComponentVNode)(2,d.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function F(j,W){return O(W)}return F}()}),R.map(function(F){return(0,e.createComponentVNode)(2,v,{design:F},F.id)}),R.length===0&&(0,e.createComponentVNode)(2,d.Box,{color:"label",children:"No designs found."})]})},s=function(g,h){var C=(0,o.useBackend)(h),N=C.act,x=C.data,B=x.building,L=x.buildStart,w=x.buildEnd,A=x.worldTime;return(0,e.createComponentVNode)(2,d.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,d.ProgressBar.Countdown,{start:L,current:A,end:w,children:(0,e.createComponentVNode)(2,d.Stack,{children:[(0,e.createComponentVNode)(2,d.Stack.Item,{children:(0,e.createComponentVNode)(2,d.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,d.Stack.Item,{children:["Building ",B,"\xA0(",(0,e.createComponentVNode)(2,y.Countdown,{current:A,timeLeft:w-A,format:function(){function T(E,O){return O.substr(3)}return T}()}),")"]})]})})})},m=function(g,h){var C=(0,o.useBackend)(h),N=C.act,x=C.data,B=x.queue,L=x.processingQueue,w=Object.entries(x.queueDeficit).filter(function(T){return T[1]<0}),A=B.reduce(function(T,E){return T+E.time},0);return(0,e.createComponentVNode)(2,d.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,d.Box,{children:[(0,e.createComponentVNode)(2,d.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:"Process",onClick:function(){function T(){return N("process")}return T}()}),(0,e.createComponentVNode)(2,d.Button,{disabled:B.length===0,icon:"eraser",content:"Clear",onClick:function(){function T(){return N("unqueueall")}return T}()})]}),children:(0,e.createComponentVNode)(2,d.Stack,{fill:!0,vertical:!0,children:B.length===0?(0,e.createComponentVNode)(2,d.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,d.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:B.map(function(T,E){return(0,e.createComponentVNode)(2,d.Box,{color:T.notEnough&&"bad",children:[E+1,". ",T.name,E>0&&(0,e.createComponentVNode)(2,d.Button,{icon:"arrow-up",onClick:function(){function O(){return N("queueswap",{from:E+1,to:E})}return O}()}),E0&&(0,e.createComponentVNode)(2,d.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,d.Divider),"Processing time:",(0,e.createComponentVNode)(2,d.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,d.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(w).length>0&&(0,e.createComponentVNode)(2,d.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,d.Divider),"Lacking materials to complete:",w.map(function(T){return(0,e.createComponentVNode)(2,d.Box,{children:(0,e.createComponentVNode)(2,c,{id:T[0],amount:-T[1],lineDisplay:!0})},T[0])})]})],0)})})},c=function(g,h){var C=(0,o.useBackend)(h),N=C.act,x=C.data,B=g.id,L=g.amount,w=g.lineDisplay,A=g.onClick,T=S(g,k),E=x.materials[B]||0,O=L||E;if(!(O<=0&&!(B==="metal"||B==="glass"))){var P=L&&L>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,d.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",w&&"Exofab__material--line"])},T,{children:w?(0,e.createFragment)([(0,e.createComponentVNode)(2,d.Stack.Item,{className:(0,a.classes)(["materials32x32",B])}),(0,e.createComponentVNode)(2,d.Stack.Item,{className:"Exofab__material--amount",color:P&&"bad",ml:0,mr:1,children:O.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,d.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,d.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,d.Box,{mt:1,className:(0,a.classes)(["materials32x32",B])})})}),(0,e.createComponentVNode)(2,d.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,d.Box,{className:"Exofab__material--name",children:B}),(0,e.createComponentVNode)(2,d.Box,{className:"Exofab__material--amount",children:[O.toLocaleString("en-US")," cm\xB3 (",Math.round(O/p*10)/10," ","sheets)"]})]})],4)})))}},v=function(g,h){var C=(0,o.useBackend)(h),N=C.act,x=C.data,B=g.design;return(0,e.createComponentVNode)(2,d.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,d.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,d.Button,{icon:"plus-circle",onClick:function(){function L(){return N("queue",{id:B.id})}return L}()}),(0,e.createComponentVNode)(2,d.Box,{className:"Exofab__design--cost",children:Object.entries(B.cost).map(function(L){return(0,e.createComponentVNode)(2,d.Box,{children:(0,e.createComponentVNode)(2,c,{id:L[0],amount:L[1],lineDisplay:!0})},L[0])})}),(0,e.createComponentVNode)(2,d.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,d.Stack.Item,{children:[(0,e.createComponentVNode)(2,d.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),d=0,y=1013,V=function(p){var i="good",l=80,f=95,u=110,s=120;return pu?i="average":p>s&&(i="bad"),i},k=r.ExternalAirlockController=function(){function S(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data,s=u.chamber_pressure,m=u.exterior_status,c=u.interior_status,v=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:V(s),value:s,minValue:d,maxValue:y,children:[s," 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:v,onClick:function(){function b(){return f("cycle_ext")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Cycle to Interior",icon:"arrow-circle-right",disabled:v,onClick:function(){function b(){return f("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:c==="open"?"red":v?"yellow":null,onClick:function(){function b(){return f("force_ext")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Force Interior Door",icon:"exclamation-triangle",color:c==="open"?"red":v?"yellow":null,onClick:function(){function b(){return f("force_int")}return b}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!v,onClick:function(){function b(){return f("abort")}return b}()})})]})]})})}return S}()},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),d=r.FaxMachine=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.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 l(){return p("scan")}return l}()})}),(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 l(){return p("auth")}return l}()})})]})}),(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 l(){return p("paper")}return l}()}),!!i.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function l(){return p("rename")}return l}()})]}),(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 l(){return p("dept")}return l}()})}),(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 l(){return p("send")}return l}()})})]})})]})})}return y}()},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),d=function(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=k.image,u=k.isSelected,s=k.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+f,style:{"border-style":u&&"solid"||"none","border-width":"2px","border-color":"orange",padding:u&&"2px"||"4px"},onClick:s})},y=r.FloorPainter=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.availableStyles,u=l.selectedStyle,s=l.selectedDir,m=l.directionsPreview,c=l.allStylesPreview;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 v(){return i("cycle_style",{offset:-1})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:f,selected:u,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function v(b){return i("select_style",{style:b})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function v(){return i("cycle_style",{offset:1})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:f.map(function(v){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,d,{image:c[v],isSelected:u===v,onSelect:function(){function b(){return i("select_style",{style:v})}return b}()})},"{style}")})})}),(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:["north","","south"].map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[v+"west",v,v+"east"].map(function(b){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:b===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,d,{image:m[b],isSelected:b===s,onSelect:function(){function g(){return i("select_direction",{direction:b})}return g}()})},b)})},v)})})})})]})})})}return V}()},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),d=n(98595),y=function(u){return u?"("+u.join(", ")+")":"ERROR"},V=function(u,s,m){if(!(!u||!s)){if(u[2]!==s[2]||m!==1)return null;var c=Math.atan2(s[1]-u[1],s[0]-u[0]),v=Math.sqrt(Math.pow(s[1]-u[1],2)+Math.pow(s[0]-u[0],2));return{angle:(0,a.rad2deg)(c),distance:v}}},k=r.GPS=function(){function f(u,s){var m=(0,t.useBackend)(s),c=m.data,v=c.emped,b=c.active,g=c.area,h=c.position,C=c.saved;return(0,e.createComponentVNode)(2,d.Window,{width:450,height:700,children:(0,e.createComponentVNode)(2,d.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:v?(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,S,{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:g,position:h})}),C&&(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,i,{title:"Saved Position",position:C})}),(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,l,{height:"100%"})})],0):(0,e.createComponentVNode)(2,S)],0)})})})}return f}(),S=function(u,s){var m=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:m?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),m?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},p=function(u,s){var m=(0,t.useBackend)(s),c=m.act,v=m.data,b=v.active,g=v.tag,h=v.same_z,C=(0,t.useLocalState)(s,"newTag",g),N=C[0],x=C[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 c("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:g,onEnter:function(){function B(){return c("tag",{newtag:N})}return B}(),onInput:function(){function B(L,w){return x(w)}return B}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:g===N,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function B(){return c("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 c("same_z")}return B}()})})]})})},i=function(u,s){var m=u.title,c=u.area,v=u.position;return(0,e.createComponentVNode)(2,o.Section,{title:m||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[c&&(0,e.createFragment)([c,(0,e.createVNode)(1,"br")],0),y(v)]})})},l=function(u,s){var m=(0,t.useBackend)(s),c=m.data,v=c.position,b=c.signals,g=c.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,V(v,h.position,g))}).map(function(h,C){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:C%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:y(h.position)})]},C)})})})))}},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),d=r.GasAnalyzerContent=function(){function k(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.gasmixes,s=f.autoUpdating;return(0,e.createComponentVNode)(2,t.Section,{title:u[0].name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:s?"unlock":"lock",onClick:function(){function m(){return l("autoscantoggle")}return m}(),tooltip:s?"Auto-Update Enabled":"Auto-Update Disabled",fluid:!0,textAlign:"center",selected:s}),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}(),y=r.GasAnalyzerHistory=function(){function k(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.historyGasmixes,s=f.historyViewMode,m=f.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 c(){return l("clearhistory")}return c}(),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 c(){return l("modekpa")}return c}(),textAlign:"center",selected:s==="kpa"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"mol",onClick:function(){function c(){return l("modemol")}return c}(),textAlign:"center",selected:s==="mol"})})]})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(c,v){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:v+1+". "+(s==="mol"?c[0].total_moles.toFixed(2):c[0].pressure.toFixed(2)),onClick:function(){function b(){return l("input",{target:v+1})}return b}(),textAlign:"left",selected:v+1===m,fluid:!0})},c[0])})})]})}return k}(),V=r.GasAnalyzer=function(){function k(S,p){var i={float:"left",width:"67%"},l={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,d)}),2,{style:i}),(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,t.Section,{width:"160px",children:(0,e.createComponentVNode)(2,y)}),2,{style:l})]})})}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),d=r.GasFreezer=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.on,f=i.pressure,u=i.temperature,s=i.temperatureCelsius,m=i.min,c=i.max,v=i.target,b=i.targetCelsius,g=(u-m)/(c-m);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:l?"power-off":"times",content:l?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B",selected:l,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:[f," \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:g,ranges:{blue:[-1/0,.5],red:[.5,1/0]},children:"\xA0"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"35%",children:[g<.5&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"blue",ml:1,children:[u," \xB0K (",s," \xB0C)"]}),g>=.5&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"red",ml:1,children:[u," \xB0K (",s," \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:(v-m)/(c-m),children:"\xA0"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"35%",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,ml:1,children:[v," \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:m})}return h}()}),(0,e.createComponentVNode)(2,t.NumberInput,{value:Math.round(v),unit:"\xB0K",minValue:Math.round(m),maxValue:Math.round(c),step:5,stepPixelSize:3,onDrag:function(){function h(C,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:c})}return h}()})]})]})})})})}return y}()},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),d=n(3939),y=n(98595),V=r.GeneModder=function(){function s(m,c){var v=(0,a.useBackend)(c),b=v.data,g=b.has_seed;return(0,e.createComponentVNode)(2,y.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,d.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),g===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)]})})})}return s}(),k=function(m,c){var v=(0,a.useBackend)(c),b=v.act,g=v.data,h=g.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 C(){return b("insert")}return C}()}),children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,f)]})},S=function(m,c){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(m,c){var v=(0,a.useBackend)(c),b=v.act,g=v.data,h=g.has_seed,C=g.seed,N=g.has_disk,x=g.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",C.image]),null,1,{style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,o.Button,{content:C.name,onClick:function(){function w(){return b("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return b("variant_name")}return w}()})]}):B=(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:3.3,content:"None",onClick:function(){function w(){return b("eject_seed")}return w}()})}),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 w(){return b("eject_disk")}return w}()})})})]})})},i=function(m,c){var v=(0,a.useBackend)(c),b=v.act,g=v.data,h=g.disk,C=g.core_genes;return(0,e.createComponentVNode)(2,o.Collapsible,{title:"Core Genes",open:!0,children:[C.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")},l=function(m,c){var v=(0,a.useBackend)(c),b=v.data,g=b.reagent_genes,h=b.has_reagent;return(0,e.createComponentVNode)(2,u,{title:"Reagent Genes",gene_set:g,do_we_show:h})},f=function(m,c){var v=(0,a.useBackend)(c),b=v.data,g=b.trait_genes,h=b.has_trait;return(0,e.createComponentVNode)(2,u,{title:"Trait Genes",gene_set:g,do_we_show:h})},u=function(m,c){var v=m.title,b=m.gene_set,g=m.do_we_show,h=(0,a.useBackend)(c),C=h.act,N=h.data,x=N.disk;return(0,e.createComponentVNode)(2,o.Collapsible,{title:v,open:!0,children:g?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 C("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 C("remove",{id:B.id})}return L}()})})]},B)}):(0,e.createComponentVNode)(2,o.Stack.Item,{children:"No Genes Detected"})},v)}},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),d=r.GenericCrewManifest=function(){function y(V,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 y}()},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),d=r.GhostHudPanel=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.data,l=i.security,f=i.medical,u=i.diagnostic,s=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,y,{label:"Medical",type:"medical",is_active:f}),(0,e.createComponentVNode)(2,y,{label:"Security",type:"security",is_active:l}),(0,e.createComponentVNode)(2,y,{label:"Diagnostic",type:"diagnostic",is_active:u}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,y,{label:"Antag HUD",is_active:s,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return V}(),y=function(k,S){var p=(0,a.useBackend)(S),i=p.act,l=k.label,f=k.type,u=f===void 0?null:f,s=k.is_active,m=k.act_on,c=m===void 0?"hud_on":m,v=k.act_off,b=v===void 0?"hud_off":v;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:l}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:s?"On":"Off",icon:s?"toggle-on":"toggle-off",selected:s,onClick:function(){function g(){return i(s?b:c,{hud_type:u})}return g}()})})]})}},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),d=r.GlandDispenser=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.glands,f=l===void 0?[]:l;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:f.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 s(){return p("dispense",{gland_id:u.id})}return s}()},u.id)})})})})}return y}()},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),d=[1,5,10,20,30,50],y=null,V=r.HandheldChemDispenser=function(){function p(i,l){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,S)]})})})}return p}(),k=function(i,l){var f=(0,a.useBackend)(l),u=f.act,s=f.data,m=s.amount,c=s.energy,v=s.maxEnergy,b=s.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:c,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[c," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:d.map(function(g,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:m===g,content:g,onClick:function(){function C(){return u("amount",{amount:g})}return C}()})},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 g(){return u("mode",{mode:"dispense"})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:b==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function g(){return u("mode",{mode:"remove"})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:b==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function g(){return u("mode",{mode:"isolate"})}return g}()})]})})]})})})},S=function(i,l){for(var f=(0,a.useBackend)(l),u=f.act,s=f.data,m=s.chemicals,c=m===void 0?[]:m,v=s.current_reagent,b=[],g=0;g<(c.length+1)%3;g++)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:s.glass?"Drink Selector":"Chemical Selector",children:[c.map(function(h,C){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:v===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function N(){return u("dispense",{reagent:h.id})}return N}()},C)}),b.map(function(h,C){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},C)})]})})}},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),d=r.ImplantPad=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.implant,f=i.contains_case,u=i.tag,s=(0,a.useLocalState)(k,"newTag",u),m=s[0],c=s[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:!f,onClick:function(){function v(){return p("eject_case")}return v}()})}),children:l&&f?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+l.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),l.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:l.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:l.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:l.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 v(){return p("tag",{newtag:m})}return v}(),onInput:function(){function v(b,g){return c(g)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:u===m,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function v(){return p("tag",{newtag:m})}return v}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):f?(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 y}()},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),d=n(98595),y=r.Instrument=function(){function i(l,f){var u=(0,t.useBackend)(f),s=u.act,m=u.data;return(0,e.createComponentVNode)(2,d.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,d.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}(),V=function(l,f){var u=(0,t.useBackend)(f),s=u.act,m=u.data,c=m.help;if(c)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 v(){return s("help")}return v}()})]})})})},k=function(l,f){var u=(0,t.useBackend)(f),s=u.act,m=u.data,c=m.lines,v=m.playing,b=m.repeat,g=m.maxRepeats,h=m.tempo,C=m.minTempo,N=m.maxTempo,x=m.tickLag,B=m.volume,L=m.minVolume,w=m.maxVolume,A=m.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 T(){return s("help")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function T(){return s("newsong")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function T(){return s("import")}return T}()})],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:v,disabled:c.length===0||b<0,icon:"play",content:"Play",onClick:function(){function T(){return s("play")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!v,icon:"stop",content:"Stop",onClick:function(){function T(){return s("stop")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:g,value:b,stepPixelSize:59,onChange:function(){function T(E,O){return s("repeat",{new:O})}return T}()})}),(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 T(){return s("tempo",{new:h+x})}return T}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=C,content:"+",as:"span",ml:"0.5rem",onClick:function(){function T(){return s("tempo",{new:h-x})}return T}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:L,maxValue:w,value:B,stepPixelSize:6,onDrag:function(){function T(E,O){return s("setvolume",{new:O})}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(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,S)]})},S=function(l,f){var u=(0,t.useBackend)(f),s=u.act,m=u.data,c=m.allowedInstrumentNames,v=m.instrumentLoaded,b=m.instrument,g=m.canNoteShift,h=m.noteShift,C=m.noteShiftMin,N=m.noteShiftMax,x=m.sustainMode,B=m.sustainLinearDuration,L=m.sustainExponentialDropoff,w=m.legacy,A=m.sustainDropoffVolume,T=m.sustainHeldNote,E,O;return x===1?(E="Linear",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:B,step:.5,stepPixelSize:85,format:function(){function P(R){return(0,a.round)(R*100)/100+" seconds"}return P}(),onChange:function(){function P(R,F){return s("setlinearfalloff",{new:F/10})}return P}()})):x===2&&(E="Exponential",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:L,step:.01,format:function(){function P(R){return(0,a.round)(R*1e3)/1e3+"% per decisecond"}return P}(),onChange:function(){function P(R,F){return s("setexpfalloff",{new:F})}return P}()})),c.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:w?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:v?(0,e.createComponentVNode)(2,o.Dropdown,{options:c,selected:b,width:"50%",onSelected:function(){function P(R){return s("switchinstrument",{name:R})}return P}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!w&&g)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:C,maxValue:N,value:h,stepPixelSize:2,format:function(){function P(R){return R+" keys / "+(0,a.round)(R/12*100)/100+" octaves"}return P}(),onChange:function(){function P(R,F){return s("setnoteshift",{new:F})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function P(R){return s("setsustainmode",{new:R})}return P}()}),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:A,stepPixelSize:6,onChange:function(){function P(R,F){return s("setdropoffvolume",{new:F})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Yes":"No",onClick:function(){function P(){return s("togglesustainhold")}return P}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function P(){return s("reset")}return P}()})]})})})},p=function(l,f){var u=(0,t.useBackend)(f),s=u.act,m=u.data,c=m.playing,v=m.lines,b=m.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||c,icon:"plus",content:"Add Line",onClick:function(){function g(){return s("newline",{line:v.length+1})}return g}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!b,icon:b?"chevron-up":"chevron-down",onClick:function(){function g(){return s("edit")}return g}()})],4),children:!!b&&(v.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:v.map(function(g,h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:c,icon:"pen",onClick:function(){function C(){return s("modifyline",{line:h+1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:c,icon:"trash",onClick:function(){function C(){return s("deleteline",{line:h+1})}return C}()})],4),children:g},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),d=r.ItemPixelShift=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.pixel_x,f=i.pixel_y,u=i.max_shift_x,s=i.max_shift_y,m=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:l===-u,onClick:function(){function c(){return p("shift_left")}return c}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:l,minValue:-u,maxValue:u,onChange:function(){function c(v,b){return p("custom_x",{pixel_x:b})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",title:"Shifts item rightwards.",disabled:l===u,onClick:function(){function c(){return p("shift_right")}return c}()})]}),(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:f===s,onClick:function(){function c(){return p("shift_up")}return c}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:f,minValue:-s,maxValue:s,onChange:function(){function c(v,b){return p("custom_y",{pixel_y:b})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",title:"Shifts item downwards.",disabled:f===-s,onClick:function(){function c(){return p("shift_down")}return c}()})]})]})}),(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 c(){return p("move_to_top")}return c}()})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:m?"good":"bad",icon:"power-off",content:m?"Shift Enabled":"Shift Disabled",title:"Enables/Disables item pixel randomization on any drops.",onClick:function(){function c(){return p("toggle")}return c}()})})]})})]})})}return y}()},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),d=n(98595),y=n(19203),V=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},S={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 s="";if(u.altKey&&(s+="Alt"),u.ctrlKey&&(s+="Ctrl"),u.shiftKey&&!(u.keyCode>=48&&u.keyCode<=57)&&(s+="Shift"),u.location===p&&(s+="Numpad"),k(u))if(u.shiftKey&&u.keyCode>=48&&u.keyCode<=57){var m=u.keyCode-48;s+="Shift"+m}else{var c=u.key.toUpperCase();s+=S[c]||c}return s},l=r.KeyComboModal=function(){function f(u,s){var m=(0,t.useBackend)(s),c=m.act,v=m.data,b=v.init_value,g=v.large_buttons,h=v.message,C=h===void 0?"":h,N=v.title,x=v.timeout,B=(0,t.useLocalState)(s,"input",b),L=B[0],w=B[1],A=(0,t.useLocalState)(s,"binding",!0),T=A[0],E=A[1],O=function(){function F(j){if(!T){j.key===a.KEY.Enter&&c("submit",{entry:L}),j.key===a.KEY.Escape&&c("cancel");return}if(j.preventDefault(),k(j)){P(i(j)),E(!1);return}else if(j.key===a.KEY.Escape){P(b),E(!1);return}}return F}(),P=function(){function F(j){j!==L&&w(j)}return F}(),R=130+(C.length>30?Math.ceil(C.length/3):0)+(C.length&&g?5:0);return(0,e.createComponentVNode)(2,d.Window,{title:N,width:240,height:R,children:[x&&(0,e.createComponentVNode)(2,V.Loader,{value:x}),(0,e.createComponentVNode)(2,d.Window.Content,{onKeyDown:function(){function F(j){O(j)}return F}(),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:C})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:T,content:T&&T!==null?"Awaiting input...":""+L,width:"100%",textAlign:"center",onClick:function(){function F(){P(b),E(!0)}return F}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,y.InputButtons,{input:L})})]})]})})]})}return f}()},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),d=r.KeycardAuth=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=(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:[l,(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 f=(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"?f=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):i.hasConfirm?f=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):i.isRemote?f=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):i.hasSwiped&&(f=(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:[l,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:f})]})})}return y}()},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),d=n(98595),y=r.LaborClaimConsole=function(){function S(p,i){return(0,e.createComponentVNode)(2,d.Window,{width:315,height:470,children:(0,e.createComponentVNode)(2,d.Window.Content,{children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k)]})})}return S}(),V=function(p,i){var l=(0,t.useBackend)(i),f=l.act,u=l.data,s=u.can_go_home,m=u.emagged,c=u.id_inserted,v=u.id_name,b=u.id_points,g=u.id_goal,h=u.unclaimed_points,C=m?0:1,N=m?"ERR0R":s?"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:!!c&&(0,e.createComponentVNode)(2,o.ProgressBar,{value:b/g,ranges:{good:[C,1/0],bad:[-1/0,C]},children:b+" / "+g+" "+N})||!!m&&"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:!s,onClick:function(){function x(){return f("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:!c||!h,onClick:function(){function x(){return f("claim_points")}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Inserted ID",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:c?v:"-------------",onClick:function(){function x(){return f("handle_id")}return x}()})})]})})},k=function(p,i){var l=(0,t.useBackend)(i),f=l.data,u=f.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(s){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,a.toTitleCase)(s.ore)}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:s.value})})]},s.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),d=r.LawManager=function(){function S(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data,s=u.isAdmin,m=u.isSlaved,c=u.isMalf,v=u.isAIMalf,b=u.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:c?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(s&&m)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",m,"."]}),!!(c||v)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:b===0,onClick:function(){function g(){return f("set_view",{set_view:0})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:b===1,onClick:function(){function g(){return f("set_view",{set_view:1})}return g}()})]}),b===0&&(0,e.createComponentVNode)(2,y),b===1&&(0,e.createComponentVNode)(2,V)]})})}return S}(),y=function(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data,s=u.has_zeroth_laws,m=u.zeroth_laws,c=u.has_ion_laws,v=u.ion_laws,b=u.ion_law_nr,g=u.has_inherent_laws,h=u.inherent_laws,C=u.has_supplied_laws,N=u.supplied_laws,x=u.channels,B=u.channel,L=u.isMalf,w=u.isAdmin,A=u.zeroth_law,T=u.ion_law,E=u.inherent_law,O=u.supplied_law,P=u.supplied_law_position;return(0,e.createFragment)([!!s&&(0,e.createComponentVNode)(2,k,{title:"ERR_NULL_VALUE",laws:m,ctx:i}),!!c&&(0,e.createComponentVNode)(2,k,{title:b,laws:v,ctx:i}),!!g&&(0,e.createComponentVNode)(2,k,{title:"Inherent",laws:h,ctx:i}),!!C&&(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(R){return(0,e.createComponentVNode)(2,t.Button,{content:R.channel,selected:R.channel===B,onClick:function(){function F(){return f("law_channel",{law_channel:R.channel})}return F}()},R.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function R(){return f("state_laws")}return R}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function R(){return f("notify_laws")}return R}()})})]})}),!!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"})]}),!!(w&&!s)&&(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: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 R(){return f("change_zeroth_law")}return R}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function R(){return f("add_zeroth_law")}return R}()})]})]}),(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:T}),(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 R(){return f("change_ion_law")}return R}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function R(){return f("add_ion_law")}return R}()})]})]}),(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: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 R(){return f("change_inherent_law")}return R}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function R(){return f("add_inherent_law")}return R}()})]})]}),(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:P,onClick:function(){function R(){return f("change_supplied_law_position")}return R}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function R(){return f("change_supplied_law")}return R}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function R(){return f("add_supplied_law")}return R}()})]})]})]})})],0)},V=function(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data,s=u.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:s.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{title:m.name+" - "+m.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function c(){return f("transfer_laws",{transfer_laws:m.ref})}return c}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m.laws.has_ion_laws>0&&m.laws.ion_laws.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:c.index,children:c.law},c.index)}),m.laws.has_zeroth_laws>0&&m.laws.zeroth_laws.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:c.index,children:c.law},c.index)}),m.laws.has_inherent_laws>0&&m.laws.inherent_laws.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:c.index,children:c.law},c.index)}),m.laws.has_supplied_laws>0&&m.laws.inherent_laws.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:c.index,children:c.law},c.index)})]})},m.name)})})},k=function(p,i){var l=(0,a.useBackend)(p.ctx),f=l.act,u=l.data,s=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(m){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:m.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:m.state?"Yes":"No",selected:m.state,onClick:function(){function c(){return f("state_law",{ref:m.ref,state_law:m.state?0:1})}return c}()}),!!s&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function c(){return f("edit_law",{edit_law:m.ref})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function c(){return f("delete_law",{delete_law:m.ref})}return c}()})],4)]})]},m.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),d=n(72253),y=n(92986),V=n(98595),k=r.ListInputModal=function(){function i(l,f){var u=(0,d.useBackend)(f),s=u.act,m=u.data,c=m.items,v=c===void 0?[]:c,b=m.message,g=b===void 0?"":b,h=m.init_value,C=m.timeout,N=m.title,x=(0,d.useLocalState)(f,"selected",v.indexOf(h)),B=x[0],L=x[1],w=(0,d.useLocalState)(f,"searchBarVisible",v.length>10),A=w[0],T=w[1],E=(0,d.useLocalState)(f,"searchQuery",""),O=E[0],P=E[1],R=function(){function ne(Q){var he=$.length-1;if(Q===y.KEY_DOWN)if(B===null||B===he){var Ve;L(0),(Ve=document.getElementById("0"))==null||Ve.scrollIntoView()}else{var Ne;L(B+1),(Ne=document.getElementById((B+1).toString()))==null||Ne.scrollIntoView()}else if(Q===y.KEY_UP)if(B===null||B===0){var Be;L(he),(Be=document.getElementById(he.toString()))==null||Be.scrollIntoView()}else{var Le;L(B-1),(Le=document.getElementById((B-1).toString()))==null||Le.scrollIntoView()}}return ne}(),F=function(){function ne(Q){Q!==B&&L(Q)}return ne}(),j=function(){function ne(){T(!1),T(!0)}return ne}(),W=function(){function ne(Q){var he=String.fromCharCode(Q),Ve=v.find(function(Le){return Le==null?void 0:Le.toLowerCase().startsWith(he==null?void 0:he.toLowerCase())});if(Ve){var Ne,Be=v.indexOf(Ve);L(Be),(Ne=document.getElementById(Be.toString()))==null||Ne.scrollIntoView()}}return ne}(),H=function(){function ne(Q){var he;Q!==O&&(P(Q),L(0),(he=document.getElementById("0"))==null||he.scrollIntoView())}return ne}(),z=function(){function ne(){T(!A),P("")}return ne}(),$=v.filter(function(ne){return ne==null?void 0:ne.toLowerCase().includes(O.toLowerCase())}),G=330+Math.ceil(g.length/3);return A||setTimeout(function(){var ne;return(ne=document.getElementById(B.toString()))==null?void 0:ne.focus()},1),(0,e.createComponentVNode)(2,V.Window,{title:N,width:325,height:G,children:[C&&(0,e.createComponentVNode)(2,a.Loader,{value:C}),(0,e.createComponentVNode)(2,V.Window.Content,{onKeyDown:function(){function ne(Q){var he=window.event?Q.which:Q.keyCode;(he===y.KEY_DOWN||he===y.KEY_UP)&&(Q.preventDefault(),R(he)),he===y.KEY_ENTER&&(Q.preventDefault(),s("submit",{entry:$[B]})),!A&&he>=y.KEY_A&&he<=y.KEY_Z&&(Q.preventDefault(),W(he)),he===y.KEY_ESCAPE&&(Q.preventDefault(),s("cancel"))}return ne}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:A?"search":"font",selected:!0,tooltip:A?"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 z()}return ne}()}),className:"ListInput__Section",fill:!0,title:g,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,S,{filteredItems:$,onClick:F,onFocusSearch:j,searchBarVisible:A,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,p,{filteredItems:$,onSearch:H,searchQuery:O,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:$[B]})})]})})})]})}return i}(),S=function(l,f){var u=(0,d.useBackend)(f),s=u.act,m=l.filteredItems,c=l.onClick,v=l.onFocusSearch,b=l.searchBarVisible,g=l.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:m.map(function(h,C){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:C,onClick:function(){function N(){return c(C)}return N}(),onDblClick:function(){function N(x){x.preventDefault(),s("submit",{entry:m[g]})}return N}(),onKeyDown:function(){function N(x){var B=window.event?x.which:x.keyCode;b&&B>=y.KEY_A&&B<=y.KEY_Z&&(x.preventDefault(),v())}return N}(),selected:C===g,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(N){return N.toUpperCase()})},C)})})},p=function(l,f){var u=(0,d.useBackend)(f),s=u.act,m=l.filteredItems,c=l.onSearch,v=l.searchQuery,b=l.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function g(h){h.preventDefault(),s("submit",{entry:m[b]})}return g}(),onInput:function(){function g(h,C){return c(C)}return g}(),placeholder:"Search...",value:v})}},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),d=r.MechBayConsole=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.recharge_port,f=l&&l.mech,u=f&&f.cell,s=f&&f.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:s?"Mech status: "+s:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function m(){return p("reconnect")}return m}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!l&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!f&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:f.health/f.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!l&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!f&&(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 y}()},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),d=n(98595),y=n(25328),V=r.MechaControlConsole=function(){function k(S,p){var i=(0,t.useBackend)(p),l=i.act,f=i.data,u=f.beacons,s=f.stored_data;return s.length?(0,e.createComponentVNode)(2,d.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,d.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 m(){return l("clear_log")}return m}()}),children:s.map(function(m){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",m.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,y.decodeHtmlEntities)(m.message)})]},m.time)})})})}):(0,e.createComponentVNode)(2,d.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,d.Window.Content,{scrollable:!0,children:u.length&&u.map(function(m){return(0,e.createComponentVNode)(2,o.Section,{title:m.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function c(){return l("send_message",{mt:m.uid})}return c}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function c(){return l("get_log",{mt:m.uid})}return c}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){function c(){return l("shock",{mt:m.uid})}return c}()})],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:[m.maxHealth*.75,1/0],average:[m.maxHealth*.5,m.maxHealth*.75],bad:[-1/0,m.maxHealth*.5]},value:m.health,maxValue:m.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:m.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[m.cellMaxCharge*.75,1/0],average:[m.cellMaxCharge*.5,m.cellMaxCharge*.75],bad:[-1/0,m.cellMaxCharge*.5]},value:m.cellCharge,maxValue:m.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[m.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:m.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,y.toTitleCase)(m.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:m.active||"None"}),m.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[m.cargoMax*.75,1/0],average:[m.cargoMax*.5,m.cargoMax*.75],good:[-1/0,m.cargoMax*.5]},value:m.cargoUsed,maxValue:m.cargoMax})})||null]})},m.name)})||(0,e.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),d=n(3939),y=n(98595),V=n(321),k=n(5485),S=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"},l=function(w,A){(0,d.modalOpen)(w,"edit",{field:A.edit,value:A.value})},f=function(w,A){var T=w.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:T.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:T.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[T.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:T.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:T.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:p[T.severity],children:T.severity})]})})})},u=r.MedicalRecords=function(){function L(w,A){var T=(0,t.useBackend)(A),E=T.data,O=E.loginState,P=E.screen;if(!O.logged_in)return(0,e.createComponentVNode)(2,y.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var R;return P===2?R=(0,e.createComponentVNode)(2,s):P===3?R=(0,e.createComponentVNode)(2,m):P===4?R=(0,e.createComponentVNode)(2,c):P===5?R=(0,e.createComponentVNode)(2,h):P===6&&(R=(0,e.createComponentVNode)(2,C)),(0,e.createComponentVNode)(2,y.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,d.ComplexModal),(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,S.TemporaryNotice),(0,e.createComponentVNode)(2,B),R]})})]})}return L}(),s=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.records,R=(0,t.useLocalState)(A,"searchText",""),F=R[0],j=R[1],W=(0,t.useLocalState)(A,"sortId","name"),H=W[0],z=W[1],$=(0,t.useLocalState)(A,"sortOrder",!0),G=$[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 Q(){return E("screen",{screen:3})}return Q}()})}),(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 Q(he,Ve){return j(Ve)}return Q}()})})]})}),(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"})]}),P.filter((0,a.createSearch)(F,function(Q){return Q.name+"|"+Q.id+"|"+Q.rank+"|"+Q.p_stat+"|"+Q.m_stat})).sort(function(Q,he){var Ve=G?1:-1;return Q[H].localeCompare(he[H])*Ve}).map(function(Q){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+i[Q.p_stat],onClick:function(){function he(){return E("view_record",{view_record:Q.ref})}return he}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",Q.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.m_stat})]},Q.id)})]})})})],4)},m=function(w,A){var T=(0,t.useBackend)(A),E=T.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 E("del_all")}return O}()})})]})})},c=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.medical,R=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:R?"spinner":"print",disabled:R,iconSpin:!!R,content:"Print Record",ml:"0.5rem",onClick:function(){function F(){return E("print_record")}return F}()}),children:(0,e.createComponentVNode)(2,v)})}),!P||!P.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 F(){return E("new")}return F}()}),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:!!P.empty,content:"Delete Medical Record",onClick:function(){function F(){return E("del_r")}return F}()}),children:(0,e.createComponentVNode)(2,b)})}),(0,e.createComponentVNode)(2,g)],4)],0)},v=function(w,A){var T=(0,t.useBackend)(A),E=T.data,O=E.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(P,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:P.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:P.value}),!!P.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function F(){return l(A,P)}return F}()})]},R)})})}),!!O.has_photos&&O.photos.map(function(P,R){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:P,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 #",R+1]},R)})]})},b=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.medical;return!P||!P.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:P.fields.map(function(R,F){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:R.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(R.value),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:R.line_break?"1rem":"initial",onClick:function(){function j(){return l(A,R)}return j}()})]},F)})})})})},g=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=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 R(){return(0,d.modalOpen)(A,"add_comment")}return R}()}),children:P.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):P.comments.map(function(R,F){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:R.header}),(0,e.createVNode)(1,"br"),R.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function j(){return E("del_c",{del_c:F+1})}return j}()})]},F)})})})},h=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.virus,R=(0,t.useLocalState)(A,"searchText",""),F=R[0],j=R[1],W=(0,t.useLocalState)(A,"sortId2","name"),H=W[0],z=W[1],$=(0,t.useLocalState)(A,"sortOrder2",!0),G=$[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 Q(he,Ve){return j(Ve)}return Q}()})}),(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"})]}),P.filter((0,a.createSearch)(F,function(Q){return Q.name+"|"+Q.max_stages+"|"+Q.severity})).sort(function(Q,he){var Ve=G?1:-1;return Q[H].localeCompare(he[H])*Ve}).map(function(Q){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+Q.severity,onClick:function(){function he(){return E("vir",{vir:Q.D})}return he}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",Q.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:p[Q.severity],children:Q.severity})]},Q.id)})]})})})})],4)},C=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.medbots;return P.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"})]}),P.map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+R.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",R.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[R.area||"Unknown"," (",R.x,", ",R.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.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:R.use_beaker?"Reservoir: "+R.total_volume+"/"+R.maximum_volume:"Using internal synthesizer"})]},R.id)})]})})})},N=function(w,A){var T=(0,t.useLocalState)(A,"sortId","name"),E=T[0],O=T[1],P=(0,t.useLocalState)(A,"sortOrder",!0),R=P[0],F=P[1],j=w.id,W=w.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:E!==j&&"transparent",onClick:function(){function H(){E===j?F(!R):(O(j),F(!0))}return H}(),children:[W,E===j&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},x=function(w,A){var T=(0,t.useLocalState)(A,"sortId2","name"),E=T[0],O=T[1],P=(0,t.useLocalState)(A,"sortOrder2",!0),R=P[0],F=P[1],j=w.id,W=w.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:E!==j&&"transparent",onClick:function(){function H(){E===j?F(!R):(O(j),F(!0))}return H}(),children:[W,E===j&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},B=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.screen,R=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:P===2,onClick:function(){function F(){E("screen",{screen:2})}return F}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:P===5,onClick:function(){function F(){E("screen",{screen:5})}return F}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:P===6,onClick:function(){function F(){return E("screen",{screen:6})}return F}(),children:"Medibot Tracking"}),P===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:P===3,children:"Record Maintenance"}),P===4&&R&&!R.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:P===4,children:["Record: ",R.fields[0].value]})]})})};(0,d.modalRegisterBodyOverride)("virus",f)},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),d=r.Mimicking=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=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:[l.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:f.name,level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Choose",selected:f.selected,onClick:function(){function u(){return p("Choose",{id:f.id})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",color:"bad",onClick:function(){function u(){return p("Delete",{id:f.id})}return u}()})],4),children:(0,e.createComponentVNode)(2,t.Box,{preserveWhitespace:!0,textColor:"#878787",fontSize:"14px",children:["Voice: ",f.voice]})},f.id)}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Add",onClick:function(){function f(){return p("Add")}return f}()})]})})})})}return y}()},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),d=r.Minesweeper=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.matrix,f=i.showMessage,u=i.tokens,s=i.uiWidth,m={1:"blue",2:"green",3:"red",4:"darkblue",5:"brown",6:"lightblue",7:"black",8:"white"};document.addEventListener("contextmenu",function(C){return C.preventDefault()});var c=function(){function C(N,x,B){N.button!==0&&N.button!==2||p("Square",{X:x,Y:B,mode:N.button===2?h[b]:b})}return C}(),v=(0,a.useLocalState)(k,"mode","bomb"),b=v[0],g=v[1],h={flag:"bomb",bomb:"flag"};return(0,e.createComponentVNode)(2,o.Window,{theme:"ntOS95",width:s+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 C(){return g("bomb")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"flag",iconColor:"red",selected:b==="flag",onClick:function(){function C(){return g("flag")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",onClick:function(){function C(){return p("Mode",{mode:"16x30"})}return C}()})],4),children:[(0,e.createVNode)(1,"p"),Object.keys(l).map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:Object.keys(l[C]).map(function(N){return(0,e.createComponentVNode)(2,t.Button,{m:"1px",height:"30px",width:"30px",className:l[C][N].open?"Minesweeper__open":"Minesweeper__closed",bold:!0,color:"transparent",icon:l[C][N].open?l[C][N].bomb?"bomb":"":l[C][N].flag?"flag":"",textColor:l[C][N].open?l[C][N].bomb?"black":m[l[C][N].around]:l[C][N].flag?"red":"gray",onMouseDown:function(){function x(B){return c(B,C,N)}return x}(),children:l[C][N].open&&!l[C][N].bomb&&l[C][N].around?l[C][N].around:" "},N)})},C)}),(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"),f]})]})})})})}return y}()},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),d=r.MiniGamesMenu=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.spawners||[],f=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:f?"\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:f?"\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:f?"good":"bad",onClick:function(){function s(){return p("toggle_minigames")}return s}()}),(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 s(){return p("toggle_notifications")}return s}()}),(0,e.createComponentVNode)(2,t.Section,{children:l.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,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function m(){return p("jump",{ID:s.uids})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Start",onClick:function(){function m(){return p("spawn",{ID:s.uids})}return m}()})],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 y}()},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),d=n(98595),y=["title","items"];function V(u,s){if(u==null)return{};var m={};for(var c in u)if({}.hasOwnProperty.call(u,c)){if(s.includes(c))continue;m[c]=u[c]}return m}var k={Alphabetical:function(){function u(s,m){return s-m}return u}(),Availability:function(){function u(s,m){return-(s.affordable-m.affordable)}return u}(),Price:function(){function u(s,m){return s.price-m.price}return u}()},S=r.MiningVendor=function(){function u(s,m){return(0,e.createComponentVNode)(2,d.Window,{width:400,height:450,children:(0,e.createComponentVNode)(2,d.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,l),(0,e.createComponentVNode)(2,i)]})})})}return u}(),p=function(s,m){var c=(0,t.useBackend)(m),v=c.act,b=c.data,g=b.has_id,h=b.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:g,children:g?(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 C(){return v("logoff")}return C}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},i=function(s,m){var c=(0,t.useBackend)(m),v=c.act,b=c.data,g=b.has_id,h=b.id,C=b.items,N=(0,t.useLocalState)(m,"search",""),x=N[0],B=N[1],L=(0,t.useLocalState)(m,"sort","Alphabetical"),w=L[0],A=L[1],T=(0,t.useLocalState)(m,"descending",!1),E=T[0],O=T[1],P=(0,a.createSearch)(x,function(j){return j[0]}),R=!1,F=Object.entries(C).map(function(j,W){var H=Object.entries(j[1]).filter(P).map(function(z){return z[1].affordable=g&&h.points>=z[1].price,z[1]}).sort(k[w]);if(H.length!==0)return E&&(H=H.reverse()),R=!0,(0,e.createComponentVNode)(2,f,{title:j[0],items:H},j[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:R?F:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},l=function(s,m){var c=(0,t.useLocalState)(m,"search",""),v=c[0],b=c[1],g=(0,t.useLocalState)(m,"sort",""),h=g[0],C=g[1],N=(0,t.useLocalState)(m,"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(w,A){return b(A)}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(w){return C(w)}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}()})})]})})},f=function(s,m){var c=(0,t.useBackend)(m),v=c.act,b=c.data,g=s.title,h=s.items,C=V(s,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:g},C,{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,s,{mt:1.1,label:"ID tag",compactLabel:!0,wrapContent:F?(0,e.createComponentVNode)(2,f,{text:R,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 w=B.iconName,A=B.machineName,T=B.noMachine,E=B.noMachineText,O=B.noMachineElem,P="Unknown machine",R=T?E:A||"Unknown machine",F=R===E,j=R===E||R===P;return T&&O?O:(0,e.createComponentVNode)(2,o.Flex,{mt:.1,mb:1.9,children:[!T&&(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:w})}),(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:F?"label":"silver",fontSize:"1.1rem",bold:!0,italic:j,children:R})})]})},l=function(B,L){var w=B.text;return(0,e.createComponentVNode)(2,o.Box,{as:"span",fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:w})},f=function(B,L){var w=B.text,A=B.defaultText,T=S(B,y);return w?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"span",wordWrap:"break-word"},T,{children:w}))):(0,e.createComponentVNode)(2,l,{text:A})},u=function(B,L){var w=B.noConfirm,A=w===void 0?!1:w,T=S(B,V);return A?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button,Object.assign({},T))):(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button.Confirm,Object.assign({},T)))},s=function(B,L){var w=B.label,A=B.wrapContent,T=B.noWrapContent,E=B.compactLabel,O=E===void 0?!1:E,P=S(B,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Flex,Object.assign({my:.5,mr:"0.5%",spacing:1,align:"center"},P,{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:w}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,textAlign:"center",wordWrap:"break-word",children:A}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:.1}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,nowrap:!0,children:T})]})))},m=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data;return(0,e.createComponentVNode)(2,o.Box,{mt:1.5,fontSize:"0.9rem",color:"silver",italic:!0,children:"No options"})},c=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data;return(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.1rem",color:"red",bold:!0,italic:!0,children:"ACCESS DENIED"})},v=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.attachedTag;return(0,e.createComponentVNode)(2,s,{label:"ID tag",wrapContent:(0,e.createComponentVNode)(2,f,{text:E,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Set",icon:"wrench",onClick:function(){function O(){return A("set_tag")}return O}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Clear",icon:"times-circle",color:"red",disabled:!E,onClick:function(){function O(){return A("clear_tag")}return O}()})],4)})},b=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.frequency,O=T.minFrequency,P=T.maxFrequency,R=T.canReset;return(0,e.createComponentVNode)(2,s,{label:"Frequency",noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.1,stepPixelSize:10,minValue:O/10,maxValue:P/10,value:E/10,format:function(){function F(j){return(0,a.toFixed)(j,1)}return F}(),onChange:function(){function F(j,W){return A("set_frequency",{frequency:W*10})}return F}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",content:"",disabled:!R,tooltip:"Reset",onClick:function(){function F(){return A("reset_frequency")}return F}()})],4)})},g=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.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 A("add_tag")}return O}()}),children:E.map(function(O,P){return(0,e.createComponentVNode)(2,s,{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 R(){return A("remove_tag",{tag_index:P})}return R}()})})})},P)})})},h=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.bolts,O=T.pressureCheck,P=T.temperatureCheck,R=T.oxygenCheck,F=T.toxinsCheck,j=T.nitrogenCheck,W=T.carbonDioxideCheck,H=[{bitflag:1,checked:O,label:"Monitor pressure"},{bitflag:2,checked:P,label:"Monitor temperature"},{bitflag:4,checked:R,label:"Monitor oxygen concentration"},{bitflag:8,checked:F,label:"Monitor plasma concentration"},{bitflag:16,checked:j,label:"Monitor nitrogen concentration"},{bitflag:32,checked:W,label:"Monitor carbon dioxide concentration"}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,s,{label:"Floor bolts",noWrapContent:(0,e.createComponentVNode)(2,o.Button,{icon:E?"check":"times",selected:E,content:E?"YES":"NO",onClick:function(){function z(){return A("toggle_bolts")}return z}()})}),H.map(function(z){return(0,e.createComponentVNode)(2,s,{label:z.label,noWrapContent:(0,e.createComponentVNode)(2,o.Button.Checkbox,{checked:z.checked,onClick:function(){function $(){return A("toggle_flag",{bitflag:z.bitflag})}return $}()})},z.bitflag)})],0)},C=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.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 A("add_sensor")}return O}()}),children:[(0,e.createComponentVNode)(2,s,{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(E).map(function(O){return(0,e.createComponentVNode)(2,s,{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}),E[O]?(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:E[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 P(){return A("change_label",{sensor_tag:O})}return P}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Label",icon:"times-circle",color:"orange",disabled:!E[O],onClick:function(){function P(){return A("clear_label",{sensor_tag:O})}return P}()})]}),(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 P(){return A("del_sensor",{sensor_tag:O})}return P}()})})]})},O)})]})},N=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.inputTag,O=T.outputTag,P=T.bufferTag,R=T.bufferFitsInput,F=T.bufferFitsOutput,j=T.doNotLinkAndNotify;return(0,e.createFragment)([(0,e.createComponentVNode)(2,s,{label:"Input",labelWidth:6,wrapContent:(0,e.createComponentVNode)(2,f,{text:E,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,u,{noConfirm:j||!E,confirmContent:"This will change the intput device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:E&&P===E,disabled:!R,onClick:function(){function W(){return A("link_input")}return W}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"This will unlink the intput device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!E,onClick:function(){function W(){return A("unlink_input")}return W}()})],4)}),(0,e.createComponentVNode)(2,s,{label:"Output",labelWidth:6,wrapContent:(0,e.createComponentVNode)(2,f,{text:O,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,u,{noConfirm:j||!O,confirmContent:"This will change the output device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:O&&P===O,disabled:!F,onClick:function(){function W(){return A("link_output")}return W}()}),(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 W(){return A("unlink_output")}return W}()})],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),d=n(76910),y=n(98595),V=n(3939),k=n(22091),S=["icon","iconSpin","selected","security","onClick","title","children"],p=["name"];function i(B,L){if(B==null)return{};var w={};for(var A in B)if({}.hasOwnProperty.call(B,A)){if(L.includes(A))continue;w[A]=B[A]}return w}var l=128,f=["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"}},s=r.Newscaster=function(){function B(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=E.is_security,P=E.is_admin,R=E.is_silent,F=E.is_printing,j=E.screen,W=E.channels,H=E.channel_idx,z=H===void 0?-1:H,$=(0,t.useLocalState)(w,"menuOpen",!1),G=$[0],ne=$[1],Q=(0,t.useLocalState)(w,"viewingPhoto",""),he=Q[0],Ve=Q[1],Ne=(0,t.useLocalState)(w,"censorMode",!1),Be=Ne[0],Le=Ne[1],Ae;j===0||j===2?Ae=(0,e.createComponentVNode)(2,c):j===1&&(Ae=(0,e.createComponentVNode)(2,v));var fe=W.reduce(function(Z,J){return Z+J.unread},0);return(0,e.createComponentVNode)(2,y.Window,{theme:O&&"security",width:800,height:600,children:[he?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,V.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,y.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,m,{icon:"bars",title:"Toggle Menu",onClick:function(){function Z(){return ne(!G)}return Z}()}),(0,e.createComponentVNode)(2,m,{icon:"newspaper",title:"Headlines",selected:j===0,onClick:function(){function Z(){return T("headlines")}return Z}(),children:fe>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:fe>=10?"9+":fe})}),(0,e.createComponentVNode)(2,m,{icon:"briefcase",title:"Job Openings",selected:j===1,onClick:function(){function Z(){return T("jobs")}return Z}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:W.map(function(Z){return(0,e.createComponentVNode)(2,m,{icon:Z.icon,title:Z.name,selected:j===2&&W[z-1]===Z,onClick:function(){function J(){return T("channel",{uid:Z.uid})}return J}(),children:Z.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Z.unread>=10?"9+":Z.unread})},Z)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!O||!!P)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,m,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function Z(){return(0,V.modalOpen)(w,"wanted_notice")}return Z}()}),(0,e.createComponentVNode)(2,m,{security:!0,icon:Be?"minus-square":"minus-square-o",title:"Censor Mode: "+(Be?"On":"Off"),mb:"0.5rem",onClick:function(){function Z(){return Le(!Be)}return Z}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,m,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function Z(){return(0,V.modalOpen)(w,"create_story")}return Z}()}),(0,e.createComponentVNode)(2,m,{icon:"plus-circle",title:"New Channel",onClick:function(){function Z(){return(0,V.modalOpen)(w,"create_channel")}return Z}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,m,{icon:F?"spinner":"print",iconSpin:F,title:F?"Printing...":"Print Newspaper",onClick:function(){function Z(){return T("print_newspaper")}return Z}()}),(0,e.createComponentVNode)(2,m,{icon:R?"volume-mute":"volume-up",title:"Mute: "+(R?"On":"Off"),onClick:function(){function Z(){return T("toggle_mute")}return Z}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,k.TemporaryNotice),Ae]})]})})]})}return B}(),m=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=L.icon,O=E===void 0?"":E,P=L.iconSpin,R=L.selected,F=R===void 0?!1:R,j=L.security,W=j===void 0?!1:j,H=L.onClick,z=L.title,$=L.children,G=i(L,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",F&&"Newscaster__menuButton--selected",W&&"Newscaster__menuButton--security"]),onClick:H},G,{children:[F&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:O,spin:P,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:z}),$]})))},c=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=E.screen,P=E.is_admin,R=E.channel_idx,F=E.channel_can_manage,j=E.channels,W=E.stories,H=E.wanted,z=(0,t.useLocalState)(w,"fullStories",[]),$=z[0],G=z[1],ne=(0,t.useLocalState)(w,"censorMode",!1),Q=ne[0],he=ne[1],Ve=O===2&&R>-1?j[R-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!H&&(0,e.createComponentVNode)(2,b,{story:H,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:Ve?Ve.icon:"newspaper",mr:"0.5rem"}),Ve?Ve.name:"Headlines"],0),children:W.length>0?W.slice().reverse().map(function(Ne){return!$.includes(Ne.uid)&&Ne.body.length+3>l?Object.assign({},Ne,{body_short:Ne.body.substr(0,l-4)+"..."}):Ne}).map(function(Ne,Be){return(0,e.createComponentVNode)(2,b,{story:Ne},Be)}):(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."]})}),!!Ve&&(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)([Q&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!Ve.admin&&!P,selected:Ve.censored,icon:Ve.censored?"comment-slash":"comment",content:Ve.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function Ne(){return T("censor_channel",{uid:Ve.uid})}return Ne}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!F,icon:"cog",content:"Manage",onClick:function(){function Ne(){return(0,V.modalOpen)(w,"manage_channel",{uid:Ve.uid})}return Ne}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:Ve.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:Ve.author||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:Ve.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"}),W.reduce(function(Ne,Be){return Ne+Be.view_count},0).toLocaleString()]})]})})]})},v=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=E.jobs,P=E.wanted,R=Object.entries(O).reduce(function(F,j){var W=j[0],H=j[1];return F+H.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!P&&(0,e.createComponentVNode)(2,b,{story:P,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:R>0?f.map(function(F){return Object.assign({},u[F],{id:F,jobs:O[F]})}).filter(function(F){return!!F&&F.jobs.length>0}).map(function(F){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+F.id]),title:F.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:F.fluff_text}),children:F.jobs.map(function(j){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!j.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",j.title]},j.title)})},F.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,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=L.story,P=L.wanted,R=P===void 0?!1:P,F=(0,t.useLocalState)(w,"fullStories",[]),j=F[0],W=F[1],H=(0,t.useLocalState)(w,"censorMode",!1),z=H[0],$=H[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",R&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([R&&(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:[!R&&z&&(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 T("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",!R&&(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,d.timeAgo)(O.publish_time,E.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,g,{name:"story_photo_"+O.uid+".png",float:"right",ml:"0.5rem"}),(O.body_short||O.body).split("\n").map(function(G,ne){return(0,e.createComponentVNode)(2,o.Box,{children:G||(0,e.createVNode)(1,"br")},ne)}),O.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function G(){return W([].concat(j,[O.uid]))}return G}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},g=function(L,w){var A=L.name,T=i(L,p),E=(0,t.useLocalState)(w,"viewingPhoto",""),O=E[0],P=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function R(){return P(A)}return R}()},T)))},h=function(L,w){var A=(0,t.useLocalState)(w,"viewingPhoto",""),T=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:T}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function O(){return E("")}return O}()})]})},C=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=!!L.args.uid&&E.channels.filter(function(ee){return ee.uid===L.args.uid}).pop();if(L.id==="manage_channel"&&!O){(0,V.modalClose)(w);return}var P=L.id==="manage_channel",R=!!L.args.is_admin,F=L.args.scanned_user,j=(0,t.useLocalState)(w,"author",(O==null?void 0:O.author)||F||"Unknown"),W=j[0],H=j[1],z=(0,t.useLocalState)(w,"name",(O==null?void 0:O.name)||""),$=z[0],G=z[1],ne=(0,t.useLocalState)(w,"description",(O==null?void 0:O.description)||""),Q=ne[0],he=ne[1],Ve=(0,t.useLocalState)(w,"icon",(O==null?void 0:O.icon)||"newspaper"),Ne=Ve[0],Be=Ve[1],Le=(0,t.useLocalState)(w,"isPublic",P?!!(O!=null&&O.public):!1),Ae=Le[0],fe=Le[1],Z=(0,t.useLocalState)(w,"adminLocked",(O==null?void 0:O.admin)===1||!1),J=Z[0],te=Z[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:P?"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:!R,width:"100%",value:W,onInput:function(){function ee(le,ye){return H(ye)}return ee}()})}),(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 ee(le,ye){return G(ye)}return ee}()})}),(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:Q,onInput:function(){function ee(le,ye){return he(ye)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!R,value:Ne,width:"35%",mr:"0.5rem",onInput:function(){function ee(le,ye){return Be(ye)}return ee}()}),(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 ee(){return fe(!Ae)}return ee}()})}),R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:J,icon:J?"lock":"lock-open",content:J?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ee(){return te(!J)}return ee}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:W.trim().length===0||$.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function ee(){(0,V.modalAnswer)(w,L.id,"",{author:W,name:$.substr(0,49),description:Q.substr(0,128),icon:Ne,public:Ae?1:0,admin_locked:J?1:0})}return ee}()})]})},N=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=E.photo,P=E.channels,R=E.channel_idx,F=R===void 0?-1:R,j=!!L.args.is_admin,W=L.args.scanned_user,H=P.slice().sort(function(ee,le){if(F<0)return 0;var ye=P[F-1];if(ye.uid===ee.uid)return-1;if(ye.uid===le.uid)return 1}).filter(function(ee){return j||!ee.frozen&&(ee.author===W||!!ee.public)}),z=(0,t.useLocalState)(w,"author",W||"Unknown"),$=z[0],G=z[1],ne=(0,t.useLocalState)(w,"channel",H.length>0?H[0].name:""),Q=ne[0],he=ne[1],Ve=(0,t.useLocalState)(w,"title",""),Ne=Ve[0],Be=Ve[1],Le=(0,t.useLocalState)(w,"body",""),Ae=Le[0],fe=Le[1],Z=(0,t.useLocalState)(w,"adminLocked",!1),J=Z[0],te=Z[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:!j,width:"100%",value:$,onInput:function(){function ee(le,ye){return G(ye)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:Q,options:H.map(function(ee){return ee.name}),mb:"0",width:"100%",onSelected:function(){function ee(le){return he(le)}return ee}()})}),(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 ee(le,ye){return Be(ye)}return ee}()})}),(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 ee(le,ye){return fe(ye)}return ee}()})}),(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 ee(){return T(O?"eject_photo":"attach_photo")}return ee}()})}),(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,g,{name:"inserted_photo_"+O.uid+".png",float:"right"}),Ae.split("\n").map(function(ee,le){return(0,e.createComponentVNode)(2,o.Box,{children:ee||(0,e.createVNode)(1,"br")},le)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:J,icon:J?"lock":"lock-open",content:J?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ee(){return te(!J)}return ee}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:$.trim().length===0||Q.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 ee(){(0,V.modalAnswer)(w,"create_story","",{author:$,channel:Q,title:Ne.substr(0,127),body:Ae.substr(0,1023),admin_locked:J?1:0})}return ee}()})]})},x=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=E.photo,P=E.wanted,R=!!L.args.is_admin,F=L.args.scanned_user,j=(0,t.useLocalState)(w,"author",(P==null?void 0:P.author)||F||"Unknown"),W=j[0],H=j[1],z=(0,t.useLocalState)(w,"name",(P==null?void 0:P.title.substr(8))||""),$=z[0],G=z[1],ne=(0,t.useLocalState)(w,"description",(P==null?void 0:P.body)||""),Q=ne[0],he=ne[1],Ve=(0,t.useLocalState)(w,"adminLocked",(P==null?void 0:P.admin_locked)===1||!1),Ne=Ve[0],Be=Ve[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:!R,width:"100%",value:W,onInput:function(){function Le(Ae,fe){return H(fe)}return Le}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:$,maxLength:"128",onInput:function(){function Le(Ae,fe){return G(fe)}return Le}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:Q,maxLength:"512",rows:"4",onInput:function(){function Le(Ae,fe){return he(fe)}return Le}()})}),(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 Le(){return T(O?"eject_photo":"attach_photo")}return Le}()}),!!O&&(0,e.createComponentVNode)(2,g,{name:"inserted_photo_"+O.uid+".png",float:"right"})]}),R&&(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 Le(){return Be(!Ne)}return Le}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!P,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function Le(){T("clear_wanted_notice"),(0,V.modalClose)(w)}return Le}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:W.trim().length===0||$.trim().length===0||Q.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function Le(){(0,V.modalAnswer)(w,L.id,"",{author:W,name:$.substr(0,127),description:Q.substr(0,511),admin_locked:Ne?1:0})}return Le}()})]})};(0,V.modalRegisterBodyOverride)("create_channel",C),(0,V.modalRegisterBodyOverride)("manage_channel",C),(0,V.modalRegisterBodyOverride)("create_story",N),(0,V.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),d=n(98595),y=r.NinjaBloodScan=function(){function S(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data;return(0,e.createComponentVNode)(2,d.Window,{width:500,height:400,theme:"spider_clan",children:(0,e.createComponentVNode)(2,d.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k)]})})}return S}(),V=function(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data,s=u.vialIcons,m=u.noVialIcon,c=u.bloodOwnerNames,v=u.bloodOwnerSpecies,b=u.bloodOwnerTypes,g=u.blockButtons,h=u.scanStates,C={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:c[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:g?C.disabled:C.blue,height:"100%",width:"100%",disabled:g,onClick:function(){function w(){return f("vial_out",{button_num:L+1})}return w}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+(s[L]||m),style:{"margin-left":"3px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:c[L]||" - ",content:"\u0420\u0430\u0441\u0430: "+(v[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:g===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:g,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 f("scan_blood")}return B}()})})]})})},k=function(p,i){var l=(0,a.useBackend)(i),f=l.data,u=f.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),d=r.NinjaMindScan=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=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,y)})})}return V}(),y=function(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.occupantIcon,u=l.occupant_name,s=l.occupant_health,m=l.scanned_occupants,c=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,"+f,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:s})]})}),(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:c===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:c,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 v(){return i("scan_occupant")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{className:c===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:c,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 v(){return i("go_out")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{className:c===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:c,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 v(){return i("teleport_out")}return v}()})]})]})]})}),(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:m.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Box,{children:v.scanned_occupant})})},v.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),d=r.NuclearBomb=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.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 l(){return p("auth")}return l}()})}),(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 l(){return p("code")}return l}()})})]})}),(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 l(){return p("toggle_anchor")}return l}()})}),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 l(){return p("set_time")}return l}()})})||(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 l(){return p("toggle_safety")}return l}()})}),(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 l(){return p("toggle_armed")}return l}()})})]})})]})}):(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 l(){return p("deploy")}return l}()})})})})}return y}()},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),d=n(72253),y=n(36036),V=n(98595),k=r.NumberInputModal=function(){function p(i,l){var f=(0,d.useBackend)(l),u=f.act,s=f.data,m=s.init_value,c=s.large_buttons,v=s.message,b=v===void 0?"":v,g=s.timeout,h=s.title,C=(0,d.useLocalState)(l,"input",m),N=C[0],x=C[1],B=function(){function A(T){T!==N&&x(T)}return A}(),L=function(){function A(T){T!==N&&x(T)}return A}(),w=140+Math.max(Math.ceil(b.length/3),b.length>0&&c?5:0);return(0,e.createComponentVNode)(2,V.Window,{title:h,width:270,height:w,children:[g&&(0,e.createComponentVNode)(2,a.Loader,{value:g}),(0,e.createComponentVNode)(2,V.Window.Content,{onKeyDown:function(){function A(T){var E=window.event?T.which:T.keyCode;E===o.KEY_ENTER&&u("submit",{entry:N}),E===o.KEY_ESCAPE&&u("cancel")}return A}(),children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,children:(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.Box,{color:"label",children:b})}),(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,S,{input:N,onClick:L,onChange:B})}),(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:N})})]})})})]})}return p}(),S=function(i,l){var f=(0,d.useBackend)(l),u=f.act,s=f.data,m=s.min_value,c=s.max_value,v=s.init_value,b=s.round_value,g=i.input,h=i.onClick,C=i.onChange,N=Math.round(g!==m?Math.max(g/2,m):c/2),x=g===m&&m>0||g===1;return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Button,{disabled:g===m,icon:"angle-double-left",onClick:function(){function B(){return h(m)}return B}(),tooltip:g===m?"Min":"Min ("+m+")"})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!b,minValue:m,maxValue:c,onChange:function(){function B(L,w){return C(w)}return B}(),onEnter:function(){function B(L,w){return u("submit",{entry:w})}return B}(),value:g})}),(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Button,{disabled:g===c,icon:"angle-double-right",onClick:function(){function B(){return h(c)}return B}(),tooltip:g===c?"Max":"Max ("+c+")"})}),(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Button,{disabled:x,icon:"divide",onClick:function(){function B(){return h(N)}return B}(),tooltip:x?"Split":"Split ("+N+")"})}),(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Button,{disabled:g===v,icon:"redo",onClick:function(){function B(){return h(v)}return B}(),tooltip:v?"Reset ("+v+")":"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),d=n(36036),y=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],V=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],k={average:[.25,.5],bad:[.5,1/0]},S=["bad","average","average","good","average","average","bad"],p=r.OperatingComputer=function(){function u(s,m){var c=(0,t.useBackend)(m),v=c.act,b=c.data,g=b.hasOccupant,h=b.choice,C;return h?C=(0,e.createComponentVNode)(2,f):C=g?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,d.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d.Stack.Item,{children:(0,e.createComponentVNode)(2,d.Tabs,{children:[(0,e.createComponentVNode)(2,d.Tabs.Tab,{selected:!h,icon:"user",onClick:function(){function N(){return v("choiceOff")}return N}(),children:"Patient"}),(0,e.createComponentVNode)(2,d.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function N(){return v("choiceOn")}return N}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,d.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,d.Section,{fill:!0,scrollable:!0,children:C})})]})})})}return u}(),i=function(s,m){var c=(0,t.useBackend)(m),v=c.data,b=v.occupant;return(0,e.createComponentVNode)(2,d.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,d.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,d.LabeledList,{children:[(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Name",children:b.name}),(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Status",color:y[b.stat][0],children:y[b.stat][1]}),(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,d.ProgressBar,{min:"0",max:b.maxHealth,value:b.health/b.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),V.map(function(g,h){return(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:g[0]+" Damage",children:(0,e.createComponentVNode)(2,d.ProgressBar,{min:"0",max:"100",value:b[g[1]]/100,ranges:k,children:(0,a.round)(b[g[1]])},h)},h)}),(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,d.ProgressBar,{min:"0",max:b.maxTemp,value:b.bodyTemperature/b.maxTemp,color:S[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,d.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,d.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,d.LabeledList.Item,{label:"Pulse",children:[b.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,d.Stack.Item,{children:(0,e.createComponentVNode)(2,d.Section,{title:"Current Procedures",level:"2",children:b.inSurgery?b.surgeries.map(function(g){var h=g.bodypartName,C=g.surgeryName,N=g.stepName;return(0,e.createComponentVNode)(2,d.Section,{title:h,level:"4",children:(0,e.createComponentVNode)(2,d.LabeledList,{children:[(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Procedure",children:C}),(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Next Step",children:N})]})},h)}):(0,e.createComponentVNode)(2,d.Box,{color:"label",children:"No procedure ongoing."})})})]})},l=function(){return(0,e.createComponentVNode)(2,d.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,d.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,d.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},f=function(s,m){var c=(0,t.useBackend)(m),v=c.act,b=c.data,g=b.verbose,h=b.health,C=b.healthAlarm,N=b.oxy,x=b.oxyAlarm,B=b.crit;return(0,e.createComponentVNode)(2,d.LabeledList,{children:[(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,d.Button,{selected:g,icon:g?"toggle-on":"toggle-off",content:g?"On":"Off",onClick:function(){function L(){return v(g?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,d.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function L(){return v(h?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,d.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:C,stepPixelSize:5,ml:"0",onChange:function(){function L(w,A){return v("health_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,d.Button,{selected:N,icon:N?"toggle-on":"toggle-off",content:N?"On":"Off",onClick:function(){function L(){return v(N?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,d.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:x,stepPixelSize:5,ml:"0",onChange:function(){function L(w,A){return v("oxy_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,d.Button,{selected:B,icon:B?"toggle-on":"toggle-off",content:B?"On":"Off",onClick:function(){function L(){return v(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),d=n(98595);function y(m,c){var v=typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(v)return(v=v.call(m)).next.bind(v);if(Array.isArray(m)||(v=V(m))||c&&m&&typeof m.length=="number"){v&&(m=v);var b=0;return function(){return b>=m.length?{done:!0}:{done:!1,value:m[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(m,c){if(m){if(typeof m=="string")return k(m,c);var v={}.toString.call(m).slice(8,-1);return v==="Object"&&m.constructor&&(v=m.constructor.name),v==="Map"||v==="Set"?Array.from(m):v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v)?k(m,c):void 0}}function k(m,c){(c==null||c>m.length)&&(c=m.length);for(var v=0,b=Array(c);vv},l=function(c,v){var b=c.name,g=v.name;if(!b||!g)return 0;var h=b.match(S),C=g.match(S);if(h&&C&&b.replace(S,"")===g.replace(S,"")){var N=parseInt(h[1],10),x=parseInt(C[1],10);return N-x}return i(b,g)},f=function(c,v){var b=(0,t.useBackend)(v),g=b.act,h=c.searchText,C=c.source,N=c.title,x=C.filter(p(h));return x.sort(l),C.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:N+" - ("+C.length+")",children:x.map(function(B){return(0,e.createComponentVNode)(2,o.Button,{content:B.name,onClick:function(){function L(){return g("orbit",{ref:B.ref})}return L}()},B.name)})})},u=function(c,v){var b=(0,t.useBackend)(v),g=b.act,h=c.color,C=c.thing;return(0,e.createComponentVNode)(2,o.Button,{color:h,onClick:function(){function N(){return g("orbit",{ref:C.ref})}return N}(),children:C.name})},s=r.Orbit=function(){function m(c,v){for(var b=(0,t.useBackend)(v),g=b.act,h=b.data,C=h.alive,N=h.antagonists,x=h.highlights,B=h.auto_observe,L=h.dead,w=h.ghosts,A=h.misc,T=h.npcs,E=(0,t.useLocalState)(v,"searchText",""),O=E[0],P=E[1],R={},F=y(N),j;!(j=F()).done;){var W=j.value;R[W.antag]===void 0&&(R[W.antag]=[]),R[W.antag].push(W)}var H=Object.entries(R);H.sort(function($,G){return i($[0],G[0])});var z=function(){function $(G){for(var ne=0,Q=[H.map(function(Ne){var Be=Ne[0],Le=Ne[1];return Le}),x,C,w,L,T,A];ne0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:H.map(function($){var G=$[0],ne=$[1];return(0,e.createComponentVNode)(2,o.Section,{title:G,level:2,children:ne.filter(p(O)).sort(l).map(function(Q){return(0,e.createComponentVNode)(2,u,{color:"bad",thing:Q},Q.name)})},G)})}),x.length>0&&(0,e.createComponentVNode)(2,f,{title:"Highlights",source:x,searchText:O,color:"teal"}),(0,e.createComponentVNode)(2,o.Section,{title:"Alive - ("+C.length+")",children:C.filter(p(O)).sort(l).map(function($){return(0,e.createComponentVNode)(2,u,{color:"good",thing:$},$.name)})}),(0,e.createComponentVNode)(2,o.Section,{title:"Ghosts - ("+w.length+")",children:w.filter(p(O)).sort(l).map(function($){return(0,e.createComponentVNode)(2,u,{color:"grey",thing:$},$.name)})}),(0,e.createComponentVNode)(2,f,{title:"Dead",source:L,searchText:O}),(0,e.createComponentVNode)(2,f,{title:"NPCs",source:T,searchText:O}),(0,e.createComponentVNode)(2,f,{title:"Misc",source:A,searchText:O})]})})}return m}()},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),d=n(98595),y=n(9394);function V(c){if(c==null)throw new TypeError("Cannot destructure "+c)}var k=(0,y.createLogger)("OreRedemption"),S=function(v){return v.toLocaleString("en-US")+" pts"},p=r.OreRedemption=function(){function c(v,b){return(0,e.createComponentVNode)(2,d.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,d.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,l),(0,e.createComponentVNode)(2,f)]})})})}return c}(),i=function(v,b){var g=(0,t.useBackend)(b),h=g.act,C=g.data,N=C.id,x=C.points,B=C.disk,L=Object.assign({},(V(v),v));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 w(){return h("eject_id")}return w}(),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 w(){return h("insert_id")}return w}()})}),N&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:S(N.points)})}),N&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:S(N.total_points)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:x>0?"good":"grey",bold:x>0&&"good",children:S(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 w(){return h("claim")}return w}()})})]}),(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 w(){return h("eject_disk")}return w}()})}),(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 w(){return h("download")}return w}()})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},l=function(v,b){var g=(0,t.useBackend)(b),h=g.act,C=g.data,N=C.sheets,x=Object.assign({},(V(v),v));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,s,{ore:B},B.id)})]})))})},f=function(v,b){var g=(0,t.useBackend)(b),h=g.act,C=g.data,N=C.alloys,x=Object.assign({},(V(v),v));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,m,{ore:B},B.id)})]})))})},u=function(v,b){var g;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:v.title}),(g=v.columns)==null?void 0:g.map(function(h){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:h[1],textAlign:"center",color:"label",bold:!0,children:h[0]},h)})]})})},s=function(v,b){var g=(0,t.useBackend)(b),h=g.act,C=v.ore;if(!(C.value&&C.amount<=0&&!(["metal","glass"].indexOf(C.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",C.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:C.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:C.amount>=1?"good":"gray",bold:C.amount>=1,align:"center",children:C.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:C.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(C.amount,50),stepPixelSize:6,onChange:function(){function N(x,B){return h(C.value?"sheet":"alloy",{id:C.id,amount:B})}return N}()})})]})})},m=function(v,b){var g=(0,t.useBackend)(b),h=g.act,C=v.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",C.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:C.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:C.amount>=1?"good":"gray",align:"center",children:C.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:C.amount>=1?"good":"gray",bold:C.amount>=1,align:"center",children:C.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(C.amount,50),stepPixelSize:6,onChange:function(){function N(x,B){return h(C.value?"sheet":"alloy",{id:C.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),d=n(71253),y=n(70752),V=function(p){var i;try{i=y("./"+p+".js")}catch(f){if(f.code==="MODULE_NOT_FOUND")return(0,d.routingError)("notFound",p);throw f}var l=i[p];return l||(0,d.routingError)("missingExport",p)},k=r.PAI=function(){function S(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data,s=u.app_template,m=u.app_icon,c=u.app_title,v=V(s);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:m,mr:1}),c,s!=="pai_main_menu"&&(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Home",icon:"arrow-up",onClick:function(){function b(){return f("MASTER_back")}return b}()})]}),p:1,children:(0,e.createComponentVNode)(2,v)})})})}return S}()},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),d=n(71253),y=n(59395),V=function(l){var f;try{f=y("./"+l+".js")}catch(s){if(s.code==="MODULE_NOT_FOUND")return(0,d.routingError)("notFound",l);throw s}var u=f[l];return u||(0,d.routingError)("missingExport",l)},k=r.PDA=function(){function i(l,f){var u=(0,a.useBackend)(f),s=u.act,m=u.data,c=m.app,v=m.owner;if(!v)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=V(c.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,S)}),(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:c.icon,mr:1}),c.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}(),S=function(l,f){var u=(0,a.useBackend)(f),s=u.act,m=u.data,c=m.idInserted,v=m.idLink,b=m.stationTime,g=m.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 h(){return s("Authenticate")}return h}(),content:c?v:"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 h(){return s("Eject")}return h}(),content:g?["Eject "+g]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:b})]})},p=function(l,f){var u=(0,a.useBackend)(f),s=u.act,m=u.data,c=m.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:[!!c.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:c.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function v(){return s("Back")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:c.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:c.is_home?"disabled":"white",icon:"home",onClick:function(){function v(){s("Home")}return v}()})})]})})}},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),d=r.PDAPainter=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.statusLabel,u=l.pdaTypes,s=l.hasPDA,m=l.pdaIcon,c=l.pdaOwnerName,v=l.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:s?"eject":"exclamation-triangle",selected:s,content:s?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C":"-----",tooltip:s?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C PDA":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C PDA",tooltipPosition:"left",onClick:function(){function b(){return i(s?"eject_pda":"insert_pda")}return b}()}),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:v||"\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.Box,{as:"img",height:"160px",src:s?"data:image/png;base64,"+m:"",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:f})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{m:"5px",fluid:!0,disabled:!s,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 b(){return i("erase_pda")}return b}()})]})})})]}),(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(b){return(0,e.createComponentVNode)(2,y,{selectedPda:b,selectedPdaImage:u[b][0]},b)})})})})})]})})})}return V}(),y=r.PDAColorRow=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.hasPDA,u=k.selectedPda,s=k.selectedPdaImage;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/png;base64,"+s,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:!f,icon:s,content:u,confirmContent:"\u041F\u043E\u043A\u0440\u0430\u0441\u0438\u0442\u044C?",textAlign:"left",onClick:function(){function m(){return i("choose_pda",{selectedPda:u,selectedPdaImage:s})}return m}()})})]})}return V}()},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),d=n(49968),y=r.Pacman=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.broken,u=l.anchored,s=l.active,m=l.fuel_type,c=l.fuel_usage,v=l.fuel_stored,b=l.fuel_cap,g=l.is_ai,h=l.tmp_current,C=l.tmp_max,N=l.tmp_overheat,x=l.output_max,B=l.power_gen,L=l.output_set,w=l.has_fuel,A=v/b,T=h/C,E=L*B,O=Math.round(v/c),P=Math.round(O/60),R=O>120?P+" minutes":O+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(f||!u)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!f&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!f&&!u&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!f&&!!u&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:s?"power-off":"times",content:s?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!w,selected:s,onClick:function(){function F(){return i("toggle_power")}return F}()}),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 F(j,W){return i("change_power",{change_power:W})}return F}()}),"(",(0,d.formatPower)(E),")"]})})}),(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:T,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:s||g||!w,onClick:function(){function F(){return i("eject_fuel")}return F}()}),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:m}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:A,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(v/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:[c/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!w&&(c?R:"N/A"),!w&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return V}()},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),d=r.PersonalCrafting=function(){function k(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.busy,s=f.category,m=f.display_craftable_only,c=f.display_compact,v=f.prev_cat,b=f.next_cat,g=f.subcategory,h=f.prev_subcat,C=f.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:s,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:m?"check-square-o":"square-o",selected:m,onClick:function(){function N(){return l("toggle_recipes")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:c?"check-square-o":"square-o",selected:c,onClick:function(){function N(){return l("toggle_compact")}return N}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"arrow-left",onClick:function(){function N(){return l("backwardCat")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:b,icon:"arrow-right",onClick:function(){function N(){return l("forwardCat")}return N}()})]}),g&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function N(){return l("backwardSubCat")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"arrow-right",onClick:function(){function N(){return l("forwardSubCat")}return N}()})]}),c?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,V)]})]})})}return k}(),y=function(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.display_craftable_only,s=f.can_craft,m=f.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:c.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return l("make",{make:c.ref})}return v}()}),c.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:c.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:c.req_text,content:"Requirements",color:"transparent"}),c.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:c.tool_text,content:"Tools",color:"transparent"})]},c.name)}),!u&&m.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:c.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),c.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:c.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:c.req_text,content:"Requirements",color:"transparent"}),c.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:c.tool_text,content:"Tools",color:"transparent"})]},c.name)})]})})},V=function(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.display_craftable_only,s=f.can_craft,m=f.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[s.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return l("make",{make:c.ref})}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[c.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:c.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:c.req_text}),c.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:c.tool_text})]})},c.name)}),!u&&m.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[c.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:c.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:c.req_text}),c.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:c.tool_text})]})},c.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),d=n(88510),y=n(64795),V=n(25328);function k(f,u){var s=typeof Symbol!="undefined"&&f[Symbol.iterator]||f["@@iterator"];if(s)return(s=s.call(f)).next.bind(s);if(Array.isArray(f)||(s=S(f))||u&&f&&typeof f.length=="number"){s&&(f=s);var m=0;return function(){return m>=f.length?{done:!0}:{done:!1,value:f[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(f,u){if(f){if(typeof f=="string")return p(f,u);var s={}.toString.call(f).slice(8,-1);return s==="Object"&&f.constructor&&(s=f.constructor.name),s==="Map"||s==="Set"?Array.from(f):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?p(f,u):void 0}}function p(f,u){(u==null||u>f.length)&&(u=f.length);for(var s=0,m=Array(u);sf?this.substring(0,f)+"...":this};var i=function(u,s){s===void 0&&(s="");var m=(0,V.createSearch)(s,function(c){return c.altername});return(0,y.flow)([(0,d.filter)(function(c){return c==null?void 0:c.altername}),s&&(0,d.filter)(m),(0,d.sortBy)(function(c){return c.id})])(u)},l=r.Photocopier=function(){function f(u,s){for(var m=(0,a.useBackend)(s),c=m.act,v=m.data,b=v.copies,g=v.maxcopies,h=(0,a.useLocalState)(s,"searchText",""),C=h[0],N=h[1],x=i((0,d.sortBy)(function(R){return R.category})(v.forms||[]),C),B=[],L=k(x),w;!(w=L()).done;){var A=w.value;B.includes(A.category)||B.push(A.category)}var T=(0,a.useLocalState)(s,"number",0),E=T[0],O=T[1],P;return v.category===""?P=x:P=x.filter(function(R){return R.category===v.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:v.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:v.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:v.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":v.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:!v.copyitem&&!v.mob,icon:v.copyitem||v.mob?"eject":"times",content:v.copyitem?v.copyitem:v.mob?"\u0416\u043E\u043F\u0430 "+v.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function R(){return c("removedocument")}return R}()})})}),(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:!v.folder,icon:v.folder?"eject":"times",content:v.folder?v.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function R(){return c("removefolder")}return R}()})})})]}),(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:v.toner===0||v.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function R(){return c("print_form")}return R}()})}),!!v.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:v.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 R(){return c("ai_pic")}return R}()})})]}),(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:v.toner===0||!v.copyitem&&!v.mob,onClick:function(){function R(){return c("copy")}return R}()})}),!!v.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:v.toner===0,onClick:function(){function R(){return c("ai_text")}return R}()})})]}),(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:g,value:b,stepPixelSize:10,onChange:function(){function R(F,j){return c("copies",{new:j})}return R}()})]})]}),(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:!v.category,onClick:function(){function R(){return c("choose_category",{category:""})}return R}()})}),B.map(function(R){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:R,selected:v.category===R,onClick:function(){function F(){return c("choose_category",{category:R})}return F}()},R)},R)})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:v.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 R(F,j){return N(j)}return R}()}),children:P.map(function(R){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:.5,color:"transparent",content:R.altername.trimLongStr(37),tooltip:R.altername,selected:v.form_id===R.id,onClick:function(){function F(){return c("choose_form",{path:R.path,id:R.id})}return F}()})},R.path)})})})]})})})}return f}()},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),d=r.PodTracking=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.pods;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:l.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:"Position",children:[f.podx,", ",f.pody,", ",f.podz]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pilot",children:f.pilot}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Passengers",children:f.passengers})]})},f.name)})})})}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),d=["tempKey"];function y(p,i){if(p==null)return{};var l={};for(var f in p)if({}.hasOwnProperty.call(p,f)){if(i.includes(f))continue;l[f]=p[f]}return l}var V={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,l){var f=i.tempKey,u=y(i,d),s=V[f];if(!s)return null;var m=(0,a.useBackend)(l),c=m.data,v=m.act,b=c.currentTemp,g=s.label,h=s.icon,C=f===b,N=function(){v("setTemp",{temp:f})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({selected:C,onClick:N},u,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h}),g]})))},S=r.PoolController=function(){function p(i,l){for(var f=(0,a.useBackend)(l),u=f.data,s=u.emagged,m=u.currentTemp,c=V[m]||V.normal,v=c.label,b=c.color,g=[],h=0,C=Object.entries(V);h50?"battery-half":"battery-quarter")||b==="C"&&"bolt"||b==="F"&&"battery-full"||b==="M"&&"slash",color:b==="N"&&(g>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)(g)+"%"})],4)};s.defaultHooks=d.pureComponentHooks;var m=function(v){var b,g,h=v.status;switch(h){case"AOn":b=!0,g=!0;break;case"AOff":b=!0,g=!1;break;case"On":b=!1,g=!0;break;case"Off":b=!1,g=!1;break}var C=(g?"On":"Off")+(" ["+(b?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,k.ColorBox,{color:g?"good":"bad",content:b?void 0:"M",title:C})};m.defaultHooks=d.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),d=n(3939),y=n(321),V=n(5485),k=n(98595),S=r.PrisonerImplantManager=function(){function p(i,l){var f=(0,a.useBackend)(l),u=f.act,s=f.data,m=s.loginState,c=s.prisonerInfo,v=s.chemicalInfo,b=s.trackingInfo,g;if(!m.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,V.LoginScreen)})});var h=[1,5,10];return(0,e.createComponentVNode)(2,k.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,d.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.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:c.name?"eject":"id-card",selected:c.name,content:c.name?c.name:"-----",tooltip:c.name?"Eject ID":"Insert ID",onClick:function(){function C(){return u("id_card")}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[c.points!==null?c.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:c.points===null,content:"Reset",onClick:function(){function C(){return u("reset_points")}return C}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[c.goal!==null?c.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:c.goal===null,content:"Edit",onClick:function(){function C(){return(0,d.modalOpen)(l,"set_points")}return C}()})]}),(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:c.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(C){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: ",C.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:C.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:C.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,d.modalOpen)(l,"warn",{uid:C.uid})}return N}()})})]})]},C.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:v.map(function(C){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: ",C.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:C.volume})}),h.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:C.volume1100?"purple":m>500?"orange":m>250?"yellow":"green"},k=function(m,c){for(var v=[],b=0;b0?"envelope-open-text":"envelope",onClick:function(){function N(){return c("setScreen",{setScreen:6})}return N}()})}),(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 N(){return c("setScreen",{setScreen:1})}return N}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Supplies",icon:"box",onClick:function(){function N(){return c("setScreen",{setScreen:2})}return N}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Relay Anonymous Information",icon:"comment",onClick:function(){function N(){return c("setScreen",{setScreen:3})}return N}()})})]}),(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 N(){return c("setScreen",{setScreen:9})}return N}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function N(){return c("setScreen",{setScreen:10})}return N}()})})]}),!!g&&(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 N(){return c("setScreen",{setScreen:8})}return N}()})}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{content:h?"Speaker Off":"Speaker On",selected:!h,icon:h?"volume-mute":"volume-up",onClick:function(){function N(){return c("toggleSilent")}return N}()})})]})},V=function(u,s){var m=(0,a.useBackend)(s),c=m.act,v=m.data,b=v.department,g,h;switch(u.purpose){case"ASSISTANCE":g=v.assist_dept,h="Request assistance from another department";break;case"SUPPLIES":g=v.supply_dept,h="Request supplies from another department";break;case"INFO":g=v.info_dept,h="Relay information to another department";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 C(){return c("setScreen",{setScreen:0})}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:g.filter(function(C){return C!==b}).map(function(C){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:C,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function N(){return c("writeInput",{write:C,priority:1})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function N(){return c("writeInput",{write:C,priority:2})}return N}()})]},C)})})})},k=function(u,s){var m=(0,a.useBackend)(s),c=m.act,v=m.data,b;switch(u.type){case"SUCCESS":b="Message sent successfully";break;case"FAIL":b="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{title:b,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return c("setScreen",{setScreen:0})}return g}()})})},S=function(u,s){var m=(0,a.useBackend)(s),c=m.act,v=m.data,b,g;switch(u.type){case"MESSAGES":b=v.message_log,g="Message Log";break;case"SHIPPING":b=v.shipping_log,g="Shipping label print log";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 h(){return c("setScreen",{setScreen:0})}return h}()}),children:b.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{className:"RequestConsole__message",children:h},h)})})},p=function(u,s){var m=(0,a.useBackend)(s),c=m.act,v=m.data,b=v.recipient,g=v.message,h=v.msgVerified,C=v.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 N(){return c("setScreen",{setScreen:0})}return N}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:b}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:C})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function N(){return c("department",{department:b})}return N}()})]})},i=function(u,s){var m=(0,a.useBackend)(s),c=m.act,v=m.data,b=v.message,g=v.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 h(){return c("setScreen",{setScreen:0})}return h}()}),children:[(0,e.createComponentVNode)(2,t.Button,{content:b||"Edit Message",icon:"edit",onClick:function(){function h(){return c("writeAnnouncement")}return h}()}),g?(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:!(g&&b),onClick:function(){function h(){return c("sendAnnouncement")}return h}()})]})},l=function(u,s){var m=(0,a.useBackend)(s),c=m.act,v=m.data,b=v.shipDest,g=v.msgVerified,h=v.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 C(){return c("setScreen",{setScreen:0})}return C}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:b}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:g})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(b&&g),onClick:function(){function C(){return c("printLabel")}return C}()}),(0,e.createComponentVNode)(2,t.Section,{title:"Destinations",mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.map(function(C){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:C,children:(0,e.createComponentVNode)(2,t.Button,{content:b===C?"Selected":"Select",selected:b===C,onClick:function(){function N(){return c("shipSelect",{shipSelect:C})}return N}()})},C)})})})]})}},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),d=n(98595);/** * @file * @copyright 2021 bobbahbrown (https://github.com/bobbahbrown) * @coauthor 2022 BeebBeebBoob (https://github.com/BeebBeebBoob) * @license MIT - */var y=r.RequestManager=function(){function p(i,c){var f=(0,t.useBackend)(c),u=f.act,d=f.data,m=d.requests,l=(0,t.useLocalState)(c,"filteredTypes",Object.fromEntries(Object.entries(V).map(function(B){var L=B[0],w=B[1];return[L,!0]}))),v=l[0],b=l[1],N=(0,t.useLocalState)(c,"searchText"),h=N[0],C=N[1],g=m.filter(function(B){return v[B.req_type]});if(h){var x=h.toLowerCase();g=g.filter(function(B){return(0,a.decodeHtmlEntities)(B.message).toLowerCase().includes(x)||B.owner_name.toLowerCase().includes(x)})}return(0,e.createComponentVNode)(2,s.Window,{title:"Request Manager",width:575,height:600,children:(0,e.createComponentVNode)(2,s.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,w){return C(w)}return B}(),placeholder:"Search...",mr:1}),children:g.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,S,{request:B})],0,null,B.id)})})})})}return p}(),V={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,[V[c],(0,e.createTextVNode)(":")],0)},S=function(i,c){var f=(0,t.useBackend)(c),u=f.act,d=f._,m=i.request;return(0,e.createVNode)(1,"div","RequestManager__controlsContainer",[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return u("pp",{id:m.id})}return l}(),children:"PP"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return u("vv",{id:m.id})}return l}(),children:"VV"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return u("sm",{id:m.id})}return l}(),children:"SM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return u("tp",{id:m.id})}return l}(),children:"TP"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return u("logs",{id:m.id})}return l}(),children:"LOGS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return u("bless",{id:m.id})}return l}(),children:"BLESS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return u("smite",{id:m.id})}return l}(),children:"SMITE"}),m.req_type!=="request_prayer"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return u("rply",{id:m.id})}return l}(),children:"RPLY"}),m.req_type==="request_ert"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return u("ertreply",{id:m.id})}return l}(),children:"ERTREPLY"}),m.req_type==="request_nuke"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return u("getcode",{id:m.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),s=n(13472),y=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},V=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 S(p,i){var c=(0,a.useBackend)(i),f=c.data,u=f.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,theme:f.ui_theme,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,s.RndNavbar),(0,e.createComponentVNode)(2,s.RndRoute,{menu:y.MAIN,render:function(){function d(){return(0,e.createComponentVNode)(2,s.MainMenu)}return d}()}),(0,e.createComponentVNode)(2,s.RndRoute,{menu:y.LEVELS,render:function(){function d(){return(0,e.createComponentVNode)(2,s.CurrentLevels)}return d}()}),(0,e.createComponentVNode)(2,s.RndRoute,{menu:y.DISK,render:function(){function d(){return(0,e.createComponentVNode)(2,s.DataDiskMenu)}return d}()}),(0,e.createComponentVNode)(2,s.RndRoute,{menu:y.DESTROY,render:function(){function d(){return(0,e.createComponentVNode)(2,s.DeconstructionMenu)}return d}()}),(0,e.createComponentVNode)(2,s.RndRoute,{menu:function(){function d(m){return m===y.LATHE||m===y.IMPRINTER}return d}(),render:function(){function d(){return(0,e.createComponentVNode)(2,s.LatheMenu)}return d}()}),(0,e.createComponentVNode)(2,s.RndRoute,{menu:y.SETTINGS,render:function(){function d(){return(0,e.createComponentVNode)(2,s.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 S}()},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 s(y,V){var k=(0,a.useBackend)(V),S=k.data,p=S.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 f=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:f}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",u]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",d]})]},f)})]})}return s}()},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),s=n(16475),y="design",V="tech",k=function(m,l){var v=(0,a.useBackend)(l),b=v.data,N=v.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 C(){return N("updt_tech")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function C(){return N("clear_tech")}return C}()}),(0,e.createComponentVNode)(2,i)]})]}):null},S=function(m,l){var v=(0,a.useBackend)(l),b=v.data,N=v.act,h=b.disk_data;if(!h)return null;var C=h.name,g=h.lathe_types,x=h.materials,B=g.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:C}),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 N("updt_design")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function L(){return N("clear_design")}return L}()}),(0,e.createComponentVNode)(2,i)]})]})},p=function(m,l){var v=(0,a.useBackend)(l),b=v.data,N=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:s.SUBMENU.DISK_COPY,icon:"arrow-down",content:N===V?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,i)]})]})},i=function(m,l){var v=(0,a.useBackend)(l),b=v.data,N=v.act,h=b.disk_type;return h?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function C(){var g=h===V?"eject_tech":"eject_design";N(g)}return C}()}):null},c=function(m,l){var v=(0,a.useBackend)(l),b=v.data,N=b.disk_data,h=b.disk_type,C=function(){if(!N)return(0,e.createComponentVNode)(2,p);switch(h){case y:return(0,e.createComponentVNode)(2,S);case V:return(0,e.createComponentVNode)(2,k);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:C()})},f=function(m,l){var v=(0,a.useBackend)(l),b=v.data,N=v.act,h=b.disk_type,C=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:C.sort(function(g,x){return g.name.localeCompare(x.name)}).map(function(g){var x=g.name,B=g.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===V?N("copy_tech",{id:B}):N("copy_design",{id:B})}return L}()})},B)})})})})},u=r.DataDiskMenu=function(){function d(m,l){var v=(0,a.useBackend)(l),b=v.data,N=b.disk_type;return N?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:s.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,c)}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:s.SUBMENU.DISK_COPY,render:function(){function h(){return(0,e.createComponentVNode)(2,f)}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 s(y,V){var k=(0,a.useBackend)(V),S=k.data,p=k.act,i=S.loaded_item,c=S.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(f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+f.name,children:[f.object_level," ",f.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),f.current_level,(0,e.createTextVNode)(")")],0):null]},f.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 f(){p("deconstruct")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function f(){p("eject_item")}return f}()})]}):(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 s}()},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),s=r.LatheCategory=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.data,i=S.act,c=p.category,f=p.matching_designs,u=p.menu,d=u===4,m=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:f.map(function(l){var v=l.id,b=l.name,N=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:N<1,onClick:function(){function C(){return i(m,{id:v,amount:1})}return C}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:N>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function C(){return i(m,{id:v,amount:5})}return C}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:N>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function C(){return i(m,{id:v,amount:10})}return C}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.map(function(C){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",C.is_red?"color-red":null,[C.amount,(0,e.createTextVNode)(" "),C.name],0)],0)})})]},v)})})]})}return y}()},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 s(y,V){var k=(0,a.useBackend)(V),S=k.data,p=k.act,i=S.loaded_chemicals,c=S.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 f(){var u=c?"disposeallP":"disposeallI";p(u)}return f}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(f){var u=f.volume,d=f.name,m=f.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 v=c?"disposeP":"disposeI";p(v,{id:m})}return l}()})},m)})})]})}return s}()},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),s=r.LatheMainMenu=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.data,i=S.act,c=p.menu,f=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:f.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 m(){i("setCategory",{category:d})}return m}()})},d)})})]})}return y}()},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 s(y,V){var k=(0,a.useBackend)(V),S=k.data,p=k.act,i=S.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 f=c.id,u=c.amount,d=c.name,m=function(){function N(h){var C=S.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";p(C,{id:f,amount:h})}return N}(),l=Math.floor(u/2e3),v=u<1,b=l===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:v?"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 N(){return m(1)}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function N(){return m("custom")}return N}()}),u>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function N(){return m(5)}return N}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function N(){return m(50)}return N}()})],0):null})]},f)})})})}return s}()},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 s(y,V){var k=(0,a.useBackend)(V),S=k.data,p=S.total_materials,i=S.max_materials,c=S.max_chemicals,f=S.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:f}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return s}()},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),s=n(36036),y=n(16475),V=r.LatheMenu=function(){function k(S,p){var i=(0,a.useBackend)(p),c=i.data,f=c.menu,u=c.linked_lathe,d=c.linked_imprinter;return f===4&&!u?(0,e.createComponentVNode)(2,s.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):f===5&&!d?(0,e.createComponentVNode)(2,s.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,s.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:y.SUBMENU.MAIN,render:function(){function m(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return m}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:y.SUBMENU.LATHE_CATEGORY,render:function(){function m(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return m}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:y.SUBMENU.LATHE_MAT_STORAGE,render:function(){function m(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return m}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:y.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function m(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return m}()})]})}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 s(y,V){var k=(0,a.useBackend)(V),S=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 S("search",{to_search:c})}return p}()})})}return s}()},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),s=n(16475),y=r.MainMenu=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.data,c=i.disk_type,f=i.linked_destroy,u=i.linked_lathe,d=i.linked_imprinter,m=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:s.MENU.DISK,submenu:s.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!f,menu:s.MENU.DESTROY,submenu:s.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!u,menu:s.MENU.LATHE,submenu:s.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!d,menu:s.MENU.IMPRINTER,submenu:s.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:s.MENU.SETTINGS,submenu:s.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:m.map(function(l){var v=l.name,b=l.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:v,children:b},v)})})]})}return V}()},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 s(y,V){var k=y.icon,S=y.children,p=y.disabled,i=y.content,c=(0,a.useBackend)(V),f=c.data,u=c.act,d=f.menu,m=f.submenu,l=d,v=m;return y.menu!==null&&y.menu!==void 0&&(l=y.menu),y.submenu!==null&&y.submenu!==void 0&&(v=y.submenu),(0,e.createComponentVNode)(2,t.Button,{content:i,icon:k,disabled:p,onClick:function(){function b(){u("nav",{menu:l,submenu:v})}return b}(),children:S})}return s}()},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),s=r.RndNavbar=function(){function y(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function V(k){return k!==o.MENU.MAIN}return V}(),render:function(){function V(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return V}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function V(k){return k!==o.SUBMENU.MAIN}return V}(),render:function(){function V(){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 V}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function V(k){return k===o.MENU.LATHE||k===o.MENU.IMPRINTER}return V}(),submenu:o.SUBMENU.MAIN,render:function(){function V(){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 V}()})]})}return y}()},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,s){var y=o.render,V=(0,e.useBackend)(s),k=V.data,S=k.menu,p=k.submenu,i=function(){function f(u,d){return u==null?!0:typeof u=="function"?u(d):u===d}return f}(),c=i(o.menu,S)&&i(o.submenu,p);return c?y():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),s=n(16475),y=r.SettingsMenu=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.data,c=p.act,f=i.sync,u=i.admin,d=i.linked_destroy,m=i.linked_lathe,l=i.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:s.SUBMENU.MAIN,render:function(){function v(){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:!f,onClick:function(){function b(){c("sync")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:f,onClick:function(){function b(){c("togglesync")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!f,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function b(){c("togglesync")}return b}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!f,content:"Device Linkage Menu",icon:"link",menu:s.MENU.SETTINGS,submenu:s.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 v}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:s.SUBMENU.SETTINGS_DEVICES,render:function(){function v(){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"}),m?(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 v}()})]})}return V}()},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 s=n(52285);r.LatheChemicalStorage=s.LatheChemicalStorage;var y=n(71964);r.LatheMainMenu=y.LatheMainMenu;var V=n(83706);r.LatheMaterials=V.LatheMaterials;var k=n(17906);r.LatheMaterialStorage=k.LatheMaterialStorage;var S=n(76749);r.LatheMenu=S.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 f=n(63459);r.RndNavButton=f.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),s=n(98595),y=r.RoboQuest=function(){function V(k,S){var p=(0,t.useBackend)(S),i=p.act,c=p.data,f=c.hasID,u=c.name,d=c.questInfo,m=c.hasTask,l=c.canCheck,v=c.canSend,b=c.checkMessage,N=c.style,h=c.cooldown,C=c.shopItems,g=c.points,x=c.cats,B=(0,t.useLocalState)(S,"shopState",!1),L=B[0],w=B[1],A={medical:"blue",working:"brown",security:"red",working_medical:"olive",medical_security:"violet",working_medical_security:"grey"};return(0,e.createComponentVNode)(2,s.Window,{theme:N,width:1e3,height:540,children:(0,e.createComponentVNode)(2,s.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:40,children:[!L&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Mecha",buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Check Mech",icon:"search",disabled:!f||!m||!l||h,onClick:function(){function T(){return i("Check")}return T}()}),children:[(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:60,textAlign:"center",align:"center",children:!!m&&(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:!!m&&d.modules.map(function(T){return T.id<4&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest64x64",T.icon]),null,1,null,T.id)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!m&&d.modules.map(function(T){return T.id>3&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest64x64",T.icon]),null,1,null,T.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)]}),!!L&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:(0,e.createComponentVNode)(2,o.Box,{children:["Corps bounties",(0,e.createComponentVNode)(2,o.Box,{children:["Points: ",(0,e.createVNode)(1,"b",null,g.working,0,{style:{color:"brown"}}),"|",(0,e.createVNode)(1,"b",null,g.medical,0,{style:{color:"lightblue"}}),"|",(0,e.createVNode)(1,"b",null,g.security,0,{style:{color:"red"}})]})]}),children:Object.keys(C).map(function(T){return(0,e.createFragment)(!(C[T]===void 0||C[T].length===0||T==="robo")&&C[T].map(function(E){return(0,e.createComponentVNode)(2,o.ImageButton,{asset:!0,color:A[T],image:E.icon,imageAsset:"roboquest64x64",title:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,inline:!0,children:[E.name," ",(0,e.createVNode)(1,"b",null,E.cost.working,0,{style:{color:"brown"}}),"|",(0,e.createVNode)(1,"b",null,E.cost.medical,0,{style:{color:"lightblue"}}),"|",(0,e.createVNode)(1,"b",null,E.cost.security,0,{style:{color:"red"}})]}),content:E.desc,onClick:function(){function O(){return i("buyItem",{item:E.path})}return O}()},E.path)}),0,T)})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:20,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Other",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Shop",icon:"shopping-cart",onClick:function(){function T(){return w(!L)}return T}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"cog",onClick:function(){function T(){return i("ChangeStyle")}return T}()})],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.createComponentVNode)(2,o.Stack.Item,{basis:38,children:[!L&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Info",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"id-card",content:"Eject ID",disabled:!f,onClick:function(){function T(){return i("RemoveID")}return T}()}),!m&&(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-down",content:"Get Task",disabled:!f||h,onClick:function(){function T(){return i("GetTask")}return T}()}),!!m&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Print",icon:"print",onClick:function(){function T(){return i("printOrder")}return T}(),disabled:!m}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"Remove Task",disabled:!f||h,onClick:function(){function T(){return i("RemoveTask")}return T}()})],4)],0),children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",mb:"1rem",children:[(0,e.createVNode)(1,"b",null,"Name: ",16),d.name,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Desc: ",16),d.desc]}),(0,e.createComponentVNode)(2,o.Section,{title:"Modules",level:2,children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",mb:"0.5rem",children:!!m&&d.modules.map(function(T){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Module "),T.id],0),(0,e.createTextVNode)(": "),T.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br")],0,T.id)})})}),(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"15rem",bold:!0,content:"Send Mech",textAlign:"center",disabled:!f||!m||!v||h,onClick:function(){function T(){return i("SendMech",{type:"send"})}return T}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"15rem",bold:!0,content:"Pack",textAlign:"center",disabled:!f||!m||!v||h,onClick:function(){function T(){return i("SendMech",{type:"only_packing"})}return T}()})]})]}),!!L&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createTextVNode)("RoboQuest Shop"),(0,e.createComponentVNode)(2,o.Box,{children:["Points: ",g.robo]})],4),children:C.robo.map(function(T){return(!T.emagOnly||N==="syndicate")&&(0,e.createComponentVNode)(2,o.ImageButton,{asset:!0,color:"purple",image:T.icon,imageAsset:"roboquest64x64",title:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,inline:!0,children:[T.name," ",(0,e.createVNode)(1,"b",null,T.cost.robo,0,{style:{color:"purple"}})]}),content:T.desc,onClick:function(){function E(){return i("buyItem",{item:T.path})}return E}()},T.name)})})]})]})})})}return V}()},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),s=n(25328),y=function(S,p){var i=S/p;return i<=.2?"good":i<=.5?"average":"bad"},V=r.RobotSelfDiagnosis=function(){function k(S,p){var i=(0,a.useBackend)(p),c=i.data,f=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:f.map(function(u,d){return(0,e.createComponentVNode)(2,t.Section,{title:(0,s.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:y(u.brute_damage,u.max_damage),children:u.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:y(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),s=r.RoboticsControlConsole=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,c=p.data,f=c.can_hack,u=c.safety,d=c.show_detonate_all,m=c.cyborgs,l=m===void 0?[]:m;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 v(){return i("arm",{})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",disabled:u,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){function v(){return i("nuke",{})}return v}()})]}),(0,e.createComponentVNode)(2,y,{cyborgs:l,can_hack:f})]})})}return V}(),y=function(k,S){var p=k.cyborgs,i=k.can_hack,c=(0,a.useBackend)(S),f=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 m(){return f("hackbot",{uid:d.uid})}return m}()}),(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 m(){return f("stopbot",{uid:d.uid})}return m}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!u.auth,color:"bad",onClick:function(){function m(){return f("killbot",{uid:d.uid})}return m}()})],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),s=n(98595),y=r.Safe=function(){function p(i,c){var f=(0,t.useBackend)(c),u=f.act,d=f.data,m=d.dial,l=d.open,v=d.locked,b=d.contents;return(0,e.createComponentVNode)(2,s.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,s.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,V),(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*m+"deg)","z-index":0}})]}),!l&&(0,e.createComponentVNode)(2,S)]})})}return p}(),V=function(i,c){var f=(0,t.useBackend)(c),u=f.act,d=f.data,m=d.dial,l=d.open,v=d.locked,b=function(h,C){return(0,e.createComponentVNode)(2,o.Button,{disabled:l||C&&!v,icon:"arrow-"+(C?"right":"left"),content:(C?"Right":"Left")+" "+h,iconRight:C,onClick:function(){function g(){return u(C?"turnleft":"turnright",{num:h})}return g}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:v,icon:l?"lock":"lock-open",content:l?"Close":"Open",mb:"0.5rem",onClick:function(){function N(){return u("open")}return N}()}),(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:m})]})},k=function(i,c){var f=(0,t.useBackend)(c),u=f.act,d=f.data,m=d.contents;return(0,e.createComponentVNode)(2,o.Box,{className:"Safe--contents",overflow:"auto",children:m.map(function(l,v){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{mb:"0.5rem",onClick:function(){function b(){return u("retrieve",{index:v+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)})})},S=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),s=r.SatelliteControl=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,c=i.satellites,f=i.notice,u=i.meteor_shield,d=i.meteor_shield_coverage,m=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:m,children:[l," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:i.notice}),c.map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+v.id,children:[v.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:v.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function b(){return p("toggle",{id:v.id})}return b}()})]},v.id)})]})})]})})}return y}()},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),s=r.SecureStorage=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,c=i.emagged,f=i.locked,u=i.l_set,d=i.l_setshort,m=i.current_code,l=function(){function v(b){var N=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 C(){return p("setnumber",{buttonValue:N})}return C}(),children:N})}return v}();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:f?"red":"green",children:f?"Locked":"Unlocked"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Code",children:(0,e.createComponentVNode)(2,t.Box,{children:m||"Waiting for input"})}),(0,e.createComponentVNode)(2,t.Button,{top:".35em",left:".5em",disabled:f,color:"red",content:"Lock",icon:"lock",onClick:function(){function v(){return p("close")}return v}()})]})})]})})}return y}()},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),s=n(98595),y=n(3939),V=n(321),k=n(5485),S=n(22091),p={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},i=function(C,g){(0,y.modalOpen)(C,"edit",{field:g.edit,value:g.value})},c=r.SecurityRecords=function(){function h(C,g){var x=(0,t.useBackend)(g),B=x.act,L=x.data,w=L.loginState,A=L.currentPage,T;if(w.logged_in)A===1?T=(0,e.createComponentVNode)(2,u):A===2?T=(0,e.createComponentVNode)(2,l):A===3&&(T=(0,e.createComponentVNode)(2,v));else return(0,e.createComponentVNode)(2,s.Window,{width:800,height:900,theme:"security",children:(0,e.createComponentVNode)(2,s.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});return(0,e.createComponentVNode)(2,s.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,y.ComplexModal),(0,e.createComponentVNode)(2,s.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,S.TemporaryNotice),(0,e.createComponentVNode)(2,f),T]})})]})}return h}(),f=function(C,g){var x=(0,t.useBackend)(g),B=x.act,L=x.data,w=L.currentPage,A=L.general;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:w===1,onClick:function(){function T(){return B("page",{page:1})}return T}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"list"}),"List Records"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:w===2,onClick:function(){function T(){return B("page",{page:2})}return T}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wrench"}),"Record Maintenance"]}),w===3&&A&&!A.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:w===3,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"file"}),"Record: ",A.fields[0].value]})]})},u=function(C,g){var x=(0,t.useBackend)(g),B=x.act,L=x.data,w=L.records,A=(0,t.useLocalState)(g,"searchText",""),T=A[0],E=A[1],O=(0,t.useLocalState)(g,"sortId","name"),P=O[0],R=O[1],F=(0,t.useLocalState)(g,"sortOrder",!0),j=F[0],W=F[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,m)}),(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"})]}),w.filter((0,a.createSearch)(T,function(H){return H.name+"|"+H.id+"|"+H.rank+"|"+H.fingerprint+"|"+H.status})).sort(function(H,z){var $=j?1:-1;return H[P].localeCompare(z[P])*$}).map(function(H){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+p[H.status],onClick:function(){function z(){return B("view",{uid_gen:H.uid_gen,uid_sec:H.uid_sec})}return z}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",H.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.status})]},H.id)})]})})})],4)},d=function(C,g){var x=(0,t.useLocalState)(g,"sortId","name"),B=x[0],L=x[1],w=(0,t.useLocalState)(g,"sortOrder",!0),A=w[0],T=w[1],E=C.id,O=C.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!==E&&"transparent",fluid:!0,onClick:function(){function P(){B===E?T(!A):(L(E),T(!0))}return P}(),children:[O,B===E&&(0,e.createComponentVNode)(2,o.Icon,{name:A?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},m=function(C,g){var x=(0,t.useBackend)(g),B=x.act,L=x.data,w=L.isPrinting,A=(0,t.useLocalState)(g,"searchText",""),T=A[0],E=A[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:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Cell Log",onClick:function(){function O(){return(0,y.modalOpen)(g,"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(P,R){return E(R)}return O}()})})]})},l=function(C,g){var x=(0,t.useBackend)(g),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}()})]})},v=function(C,g){var x=(0,t.useBackend)(g),B=x.act,L=x.data,w=L.isPrinting,A=L.general,T=L.security;return!A||!A.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:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Record",onClick:function(){function E(){return B("print_record")}return E}()}),(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 E(){return B("delete_general")}return E}()})],4),children:(0,e.createComponentVNode)(2,b)})}),!T||!T.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 E(){return B("new_security")}return E}()}),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:T.empty,content:"Delete Record",onClick:function(){function E(){return B("delete_security")}return E}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:T.fields.map(function(E,O){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:E.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(E.value),!!E.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:E.line_break?"1rem":"initial",onClick:function(){function P(){return i(g,E)}return P}()})]},O)})})})})}),(0,e.createComponentVNode)(2,N)],4)],0)},b=function(C,g){var x=(0,t.useBackend)(g),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(w,A){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+w.value),!!w.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:w.line_break?"1rem":"initial",onClick:function(){function T(){return i(g,w)}return T}()})]},A)})})}),!!L.has_photos&&L.photos.map(function(w,A){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:w,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",A+1]},A)})]})},N=function(C,g){var x=(0,t.useBackend)(g),B=x.act,L=x.data,w=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 A(){return(0,y.modalOpen)(g,"comment_add")}return A}()}),children:w.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):w.comments.map(function(A,T){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:A.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),A.text||A,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function E(){return B("comment_delete",{id:T+1})}return E}()})]},T)})})})}},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),s=n(36036),y=n(98595),V=n(3939);function k(m,l){var v=typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(v)return(v=v.call(m)).next.bind(v);if(Array.isArray(m)||(v=S(m))||l&&m&&typeof m.length=="number"){v&&(m=v);var b=0;return function(){return b>=m.length?{done:!0}:{done:!1,value:m[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 S(m,l){if(m){if(typeof m=="string")return p(m,l);var v={}.toString.call(m).slice(8,-1);return v==="Object"&&m.constructor&&(v=m.constructor.name),v==="Map"||v==="Set"?Array.from(m):v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v)?p(m,l):void 0}}function p(m,l){(l==null||l>m.length)&&(l=m.length);for(var v=0,b=Array(l);v=T},N=function(A,T){return A<=T},h=l.split(" "),C=[],g=function(){var A=L.value,T=A.split(":");if(T.length===0)return 0;if(T.length===1)return C.push(function(P){return(P.name+" ("+P.variant+")").toLocaleLowerCase().includes(T[0].toLocaleLowerCase())}),0;if(T.length>2)return{v:function(){function P(R){return!1}return P}()};var E,O=v;if(T[1][T[1].length-1]==="-"?(O=N,E=Number(T[1].substring(0,T[1].length-1))):T[1][T[1].length-1]==="+"?(O=b,E=Number(T[1].substring(0,T[1].length-1))):E=Number(T[1]),isNaN(E))return{v:function(){function P(R){return!1}return P}()};switch(T[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":C.push(function(P){return O(P.lifespan,E)});break;case"e":case"end":case"endurance":C.push(function(P){return O(P.endurance,E)});break;case"m":case"mat":case"maturation":C.push(function(P){return O(P.maturation,E)});break;case"pr":case"prod":case"production":C.push(function(P){return O(P.production,E)});break;case"y":case"yield":C.push(function(P){return O(P.yield,E)});break;case"po":case"pot":case"potency":C.push(function(P){return O(P.potency,E)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":C.push(function(P){return O(P.amount,E)});break;default:return{v:function(){function P(R){return!1}return P}()}}},x,B=k(h),L;!(L=B()).done;)if(x=g(),x!==0&&x)return x.v;return function(w){for(var A=0,T=C;A=1?Number(O):1)}return T}()})]})]})}},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),s=r.ShuttleConsole=function(){function p(i,c){var f=(0,a.useBackend)(c),u=f.act,d=f.data,m=i.type,l=m===void 0?"shuttle":m,v=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 N(){return u("request")}return N}()})})]}),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,S,{type:l,blind_drop:v})})]})}return p}(),y=function(i,c){var f;return i==null||(f=i.find(function(u){return u.id===c}))==null?void 0:f.name},V=function(i,c){var f;return i==null||(f=i.find(function(u){return u.name===c}))==null?void 0:f.id},k={"In Transit":"good",Idle:"average",Igniting:"average",Recharging:"average",Missing:"bad","Unauthorized Access":"bad",Locked:"bad"},S=r.ShuttleConsoleContent=function(){function p(i,c){var f=(0,a.useBackend)(c),u=f.act,d=f.data,m=i.type,l=i.blind_drop,v=d.status,b=d.locked,N=d.authorization_required,h=d.destination,C=d.docked_location,g=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:g||"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[v]||"bad",ml:1,children:v||"Not Available"})]}),(0,e.createComponentVNode)(2,t.Section,{title:m==="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:C||"Not Available"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",buttons:m!=="shuttle"&&B.length===0&&!!l&&(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"exclamation-triangle",disabled:N||!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:y(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||N,selected:y(B,h)||"Select a Destination",onSelected:function(){function L(w){return u("set_destination",{destination:V(B,w)})}return L}()})})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Depart",disabled:!y(B,h)||b||N||v!=="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),s=r.ShuttleManipulator=function(){function S(p,i){var c=(0,a.useLocalState)(i,"tabIndex",0),f=c[0],u=c[1],d=function(){function m(l){switch(l){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,V);case 2:return(0,e.createComponentVNode)(2,k);default:return"WE SHOULDN'T BE HERE!"}}return m}();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:f===0,onClick:function(){function m(){return u(0)}return m}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===1,onClick:function(){function m(){return u(1)}return m}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===2,onClick:function(){function m(){return u(2)}return m}(),icon:"tools",children:"Modification"},"Modification")]}),d(f)]})})})}return S}(),y=function(p,i){var c=(0,a.useBackend)(i),f=c.act,u=c.data,d=u.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{title:m.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:m.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:m.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:m.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:m.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 f("jump_to",{type:"mobile",id:m.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function l(){return f("fast_travel",{id:m.id})}return l}()})]})]})},m.name)})})},V=function(p,i){var c=(0,a.useBackend)(i),f=c.act,u=c.data,d=u.templates_tabs,m=u.existing_shuttle,l=u.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:d.map(function(v){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===m.id,icon:"file",onClick:function(){function b(){return f("select_template_category",{cat:v})}return b}(),children:v},v)})}),!!m&&l[m.id].templates.map(function(v){return(0,e.createComponentVNode)(2,t.Section,{title:v.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:v.description}),v.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:v.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 f("select_template",{shuttle_id:v.shuttle_id})}return b}()})})]})},v.name)})]})},k=function(p,i){var c=(0,a.useBackend)(i),f=c.act,u=c.data,d=u.existing_shuttle,m=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 f("jump_to",{type:"mobile",id:d.id})}return l}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),m?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+m.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:m.description}),m.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:m.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 f("preview",{shuttle_id:m.shuttle_id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function l(){return f("load",{shuttle_id:m.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),s=n(98595),y=[["good","Alive"],["average","Critical"],["bad","DEAD"]],V=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],k={average:[.25,.5],bad:[.5,1/0]},S=["bad","average","average","good","average","average","bad"],p=r.Sleeper=function(){function l(v,b){var N=(0,t.useBackend)(b),h=N.act,C=N.data,g=C.hasOccupant,x=g?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,m);return(0,e.createComponentVNode)(2,s.Window,{width:550,height:760,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,o.Stack.Item,{grow:!0,children:x}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,u)})]})})})}return l}(),i=function(v,b){var N=(0,t.useBackend)(b),h=N.act,C=N.data,g=C.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,d)],4)},c=function(v,b){var N=(0,t.useBackend)(b),h=N.act,C=N.data,g=C.occupant,x=C.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:g.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:g.maxHealth,value:g.health/g.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(g.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:y[g.stat][0],children:y[g.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:g.maxTemp,value:g.bodyTemperature/g.maxTemp,color:S[g.temperatureSuitability+3],children:[(0,a.round)(g.btCelsius,0),"\xB0C,",(0,a.round)(g.btFaren,0),"\xB0F"]})}),!!g.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:g.bloodMax,value:g.bloodLevel/g.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[g.bloodPercent,"%, ",g.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[g.pulse," BPM"]})],4)]})})},f=function(v,b){var N=(0,t.useBackend)(b),h=N.data,C=h.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:V.map(function(g,x){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:g[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:C[g[1]]/100,ranges:k,children:(0,a.round)(C[g[1]],0)},x)},x)})})})},u=function(v,b){var N=(0,t.useBackend)(b),h=N.act,C=N.data,g=C.hasOccupant,x=C.isBeakerLoaded,B=C.beakerMaxSpace,L=C.beakerFreeSpace,w=C.dialysis,A=w&&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||!g,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function T(){return h("togglefilter")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!x,icon:"eject",content:"Eject",onClick:function(){function T(){return h("removebeaker")}return T}()})],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(v,b){var N=(0,t.useBackend)(b),h=N.act,C=N.data,g=C.occupant,x=C.chemicals,B=C.maxchem,L=C.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:x.map(function(w,A){var T="",E;return w.overdosing?(T="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):w.od_warning&&(T="average",E=(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:w.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B,value:w.occ_amount/B,color:T,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[w.pretty_amount,"/",B,"u"]}),L.map(function(O,P){return(0,e.createComponentVNode)(2,o.Button,{disabled:!w.injectable||w.occ_amount+O>B||g.stat===2,icon:"syringe",content:"Inject "+O+"u",title:"Inject "+O+"u of "+w.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function R(){return h("chemical",{chemid:w.id,amount:O})}return R}()},P)})]})})},A)})})},m=function(v,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),s=r.SlotMachine=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.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 f(){return p("spin")}return f}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:i.resultlvl,children:i.result})]})})})}return y}()},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),s=r.Smartfridge=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,c=i.secure,f=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:f?"Drying rack":"Contents",buttons:!!f&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:u?"power-off":"times",content:u?"On":"Off",selected:u,onClick:function(){function m(){return p("drying")}return m}()}),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(m,l){return m.display_name.localeCompare(l.display_name)}).map(function(m){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:m.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",m.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:m.vend,amount:1})}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:m.quantity,step:1,stepPixelSize:3,onChange:function(){function l(v,b){return p("vend",{index:m.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:m.vend,amount:m.quantity})}return l}()})]})]},m)})]})]})})})}return y}()},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),s=n(98595),y=1e3,V=r.Smes=function(){function k(S,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,u=f.capacityPercent,d=f.capacity,m=f.charge,l=f.inputAttempt,v=f.inputting,b=f.inputLevel,N=f.inputLevelMax,h=f.inputAvailable,C=f.outputPowernet,g=f.outputAttempt,x=f.outputting,B=f.outputLevel,L=f.outputLevelMax,w=f.outputUsed,A=u>=100&&"good"||v&&"average"||"bad",T=x&&"good"||m>0&&"average"||"bad";return(0,e.createComponentVNode)(2,s.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,s.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 E(){return c("tryinput")}return E}(),children:l?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:u>=100&&"Fully Charged"||v&&"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 E(){return c("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:b===0,onClick:function(){function E(){return c("input",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:b/y,fillValue:h/y,minValue:0,maxValue:N/y,step:5,stepPixelSize:4,format:function(){function E(O){return(0,o.formatPower)(O*y,1)}return E}(),onChange:function(){function E(O,P){return c("input",{target:P*y})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:b===N,onClick:function(){function E(){return c("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:b===N,onClick:function(){function E(){return c("input",{target:"max"})}return E}()})]})]})}),(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:g?"power-off":"times",selected:g,onClick:function(){function E(){return c("tryoutput")}return E}(),children:g?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:T,children:C?x?"Sending":m>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 E(){return c("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:B===0,onClick:function(){function E(){return c("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:B/y,minValue:0,maxValue:L/y,step:5,stepPixelSize:4,format:function(){function E(O){return(0,o.formatPower)(O*y,1)}return E}(),onChange:function(){function E(O,P){return c("output",{target:P*y})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:B===L,onClick:function(){function E(){return c("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:B===L,onClick:function(){function E(){return c("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(w)})]})})]})})})}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),s=r.SolarControl=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,c=0,f=1,u=2,d=i.generated,m=i.generated_ratio,l=i.tracking_state,v=i.tracking_rate,b=i.connected_panels,N=i.connected_tracker,h=i.cdir,C=i.direction,g=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:N?"good":"bad",children:N?"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:m,children:d+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[h,"\xB0 (",C,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[l===u&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),l===f&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",v,"\xB0/h (",g,")"," "]}),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===f,onClick:function(){function x(){return p("track",{track:f})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:l===u,disabled:!N,onClick:function(){function x(){return p("track",{track:u})}return x}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[l===f&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:v,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 y}()},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),s=r.SpawnersMenu=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.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(f){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:f.name+" ("+f.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:f.uids})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function u(){return p("spawn",{ID:f.uids})}return u}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:f.desc}),!!f.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:f.fluff}),!!f.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:f.important_info})]},f.name)})})})})}return y}()},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),s=n(98595);function y(m,l){m.prototype=Object.create(l.prototype),m.prototype.constructor=m,V(m,l)}function V(m,l){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,b){return v.__proto__=b,v},V(m,l)}var k=r.SpiderOS=function(){function m(l,v){var b=(0,a.useBackend)(v),N=b.act,h=b.data,C;return h.suit_tgui_state===0?C=(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,f)})]}),(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,S),(0,e.createComponentVNode)(2,p)]})]}):h.suit_tgui_state===1&&(C=(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 g(){return N("set_UI_state",{suit_tgui_state:0})}return g}()})]})})),(0,e.createComponentVNode)(2,s.Window,{width:800,height:630,theme:"spider_clan",children:(0,e.createComponentVNode)(2,s.Window.Content,{children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",spacing:1,children:C})})})}return m}(),S=function(l,v){var b=(0,a.useBackend)(v),N=b.data,h=N.allStylesPreview,C=N.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"},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.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+h[C],style:{"margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})})})})},p=function(l,v){var b=(0,a.useBackend)(v),N=b.act,h=b.data,C=h.designs,g=h.design_choice,x=h.scarf_design_choice,B=h.colors,L=h.color_choice,w=h.genders,A=h.preferred_clothes_gender,T=h.suit_state,E=h.preferred_scarf_over_hood,O=h.show_charge_UI,P=h.has_martial_art,R=h.show_concentration_UI,F;T===0?F="\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C":F="\u0414\u0435\u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C";var j;E===0?j="\u041A\u0430\u043F\u044E\u0448\u043E\u043D":j="\u0428\u0430\u0440\u0444";var W;E===1?W=(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:C,selected:x,onSelected:function(){function z($){return N("set_scarf_design",{scarf_design_choice:$})}return z}()})}):W=null;var H;return P?H=(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:R,width:"78px",textAlign:"left",content:R?"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C":"\u0421\u043A\u0440\u044B\u0442\u044C",onClick:function(){function z(){return N("toggle_ui_concentration")}return z}()}),(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"})]})}):H=null,(0,e.createComponentVNode)(2,t.Flex,{direction:"row",grow:1,alignContent:"center",ml:.5,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:C,selected:g,onSelected:function(){function z($){return N("set_design",{design_choice:$})}return z}()})}),(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 z($){return N("set_color",{color_choice:$})}return z}()})}),(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:w,selected:A,onSelected:function(){function z($){return N("set_gender",{preferred_clothes_gender:$})}return z}()})}),(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:T===0?"":"Button_disabled",width:"90px",selected:E,disabled:T,textAlign:"left",content:j,onClick:function(){function z(){return N("toggle_scarf")}return z}()}),(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"})]}),W,(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 z(){return N("toggle_ui_charge")}return z}()}),(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"})]}),H]})}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_"+L,success:0,danger:0,mt:-1.2,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{width:"80%",icon:"power-off",mt:.5,textAlign:"center",content:F,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 z(){return N("initialise_suit")}return z}()})})]})})},i=function(l,v){var b=(0,a.useBackend)(v),N=b.data,h=N.allActionsPreview;return(0,e.createComponentVNode)(2,t.Section,{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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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,v){var b=(0,a.useBackend)(v),N=b.act,h=b.data,C=h.allActionsPreview,g=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,{title:"\u041F\u0440\u0438\u0437\u0440\u0430\u043A",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:g[0]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:g[0],onClick:function(){function B(){return N("give_ability",{style:"smoke",row:"1"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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:g[1]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:g[1],onClick:function(){function B(){return N("give_ability",{style:"ninja_cloak",row:"2"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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:g[2]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:g[2],onClick:function(){function B(){return N("give_ability",{style:"ninja_clones",row:"3"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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:g[3]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:g[3],onClick:function(){function B(){return N("give_ability",{style:"chameleon",row:"4"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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:g[4]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:g[4],onClick:function(){function B(){return N("give_ability",{style:"ninja_spirit_form",row:"5"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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,{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:g[0]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:g[0],onClick:function(){function B(){return N("give_ability",{style:"kunai",row:"1"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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:g[1]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:g[1],onClick:function(){function B(){return N("give_ability",{style:"chem_injector",row:"2"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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:g[2]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:g[2],onClick:function(){function B(){return N("give_ability",{style:"emergency_blink",row:"3"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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:g[3]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:g[3],onClick:function(){function B(){return N("give_ability",{style:"caltrop",row:"4"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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:g[4]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:g[4],onClick:function(){function B(){return N("give_ability",{style:"cloning",row:"5"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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,{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:g[0]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:g[0],onClick:function(){function B(){return N("give_ability",{style:"shuriken",row:"1"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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:g[1]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:g[1],onClick:function(){function B(){return N("give_ability",{style:"adrenal",row:"2"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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:g[2]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:g[2],onClick:function(){function B(){return N("give_ability",{style:"emp",row:"3"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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:g[3]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:g[3],onClick:function(){function B(){return N("give_ability",{style:"energynet",row:"4"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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:g[4]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:g[4],onClick:function(){function B(){return N("give_ability",{style:"spider_red",row:"5"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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"})]})]})]})]})})},f=r.ShuttleConsole=function(){function m(l,v){var b=(0,a.useBackend)(v),N=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",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(C){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:C.name,onClick:function(){function g(){return N("move",{move:C.id})}return g}()},C.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 C(){return N("request")}return C}()})})],0))]})})})}return m}(),u=function(l,v){var b=(0,a.useBackend)(v),N=b.data,h=N.randomPercent,C=N.allActionsPreview,g=N.color_choice;return(0,e.createComponentVNode)(2,t.Section,{stretchContents:!0,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:g,value:h,minValue:0,maxValue:100,children:(0,e.createVNode)(1,"center",null,(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_"+g,mt:1,children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C["spider_"+g],style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Loading ",h+"%"]}),2)})})},d=function(m){function l(b){var N;return N=m.call(this,b)||this,N.timer=null,N.state={lastText:"text do be there",currentDisplay:[]},N}y(l,m);var v=l.prototype;return v.tick=function(){function b(){var N=this.props,h=this.state;if(N.allMessages!==h.lastText&&!N.end_terminal){var C=h.currentDisplay;C.push(N.allMessages),h.lastText=N.allMessages}else N.end_terminal&&(clearTimeout(this.timer),setTimeout(N.onFinished,N.finishedTimeout))}return b}(),v.componentDidMount=function(){function b(){var N=this,h=this.props.linesPerSecond,C=h===void 0?2.5:h;this.timer=setInterval(function(){return N.tick()},1e3/C)}return b}(),v.componentWillUnmount=function(){function b(){clearTimeout(this.timer)}return b}(),v.render=function(){function b(){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:this.state.currentDisplay.map(function(N){return(0,e.createFragment)([N,(0,e.createVNode)(1,"br")],0,N)})})}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),s=r.StationAlertConsole=function(){function V(){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,y)})})}return V}(),y=r.StationAlertConsoleContent=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.data,c=i.alarms||[];return Object.keys(c).map(function(f){var u,d;return(0,e.createComponentVNode)(2,t.Section,{title:f+" Alarms",children:(0,e.createVNode)(1,"ul",null,((u=c[f])==null?void 0:u.length)===0?(0,e.createVNode)(1,"li","color-good","Systems Nominal",16):(d=c[f])==null?void 0:d.map(function(m){return(0,e.createVNode)(1,"li","color-average",m,0,null,m)}),0)},f)})}return V}()},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),s=n(36036),y=n(98595),V=5,k=9,S=function(b){return b===0?5:9},p="64px",i=function(b){return b[0]+"/"+b[1]},c=function(b){var N=b.align,h=b.children;return(0,e.createComponentVNode)(2,s.Box,{style:{position:"absolute",left:N==="left"?"6px":"48px","text-align":N,"text-shadow":"2px 2px 2px #000",top:"2px"},children:h})},f={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"}},m=function(v){return v[v.Completely=1]="Completely",v[v.Hidden=2]="Hidden",v}(m||{}),l=r.StripMenu=function(){function v(b,N){var h=(0,o.useBackend)(N),C=h.act,g=h.data,x=new Map;if(g.show_mode===0)for(var B=0,L=Object.keys(g.items);B300?"bad":f>150?"average":"good"},k=function(f){return f>5e3?"bad":f>4e3?"average":"good"},S=function(f){return f>1e4?"bad":f>5e3?"average":"good"},p=function(f,u){var d=(0,a.useBackend)(u),m=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 v(){return m("refresh")}return v}()}),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,s.TableCell,{children:"Area"}),(0,e.createComponentVNode)(2,s.TableCell,{children:"Integrity"}),(0,e.createComponentVNode)(2,s.TableCell,{children:"Details"})]}),l.supermatters.map(function(v){return(0,e.createComponentVNode)(2,s.TableRow,{children:[(0,e.createComponentVNode)(2,s.TableCell,{children:v.area_name}),(0,e.createComponentVNode)(2,s.TableCell,{children:[v.integrity,"%"]}),(0,e.createComponentVNode)(2,s.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"View",onClick:function(){function b(){return m("view",{view:v.uid})}return b}()})})]},v)})]})})})})})},i=function(f,u){var d=(0,a.useBackend)(u),m=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 v(){return m("back")}return v}()}),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:V(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:S(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),s=n(98595),y=r.SyndicateComputerSimple=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,c=p.data;return(0,e.createComponentVNode)(2,s.Window,{width:400,height:400,theme:"syndicate",children:(0,e.createComponentVNode)(2,s.Window.Content,{children:c.rows.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{title:f.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:f.buttontitle,disabled:f.buttondisabled,tooltip:f.buttontooltip,tooltipPosition:"left",onClick:function(){function u(){return i(f.buttonact)}return u}()}),children:[f.status,!!f.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:f.bullets.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:u},u)})})]},f.title)})})})}return V}()},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),s=n(36036),y=n(98595),V=n(29319),k=n(25328),S=r.SyndieCargoConsole=function(){function u(d,m){return(0,e.createComponentVNode)(2,y.Window,{width:900,height:800,theme:"syndicate",children:(0,e.createComponentVNode)(2,y.Window.Content,{children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,f)]})})}return u}(),p=function(d,m){var l=(0,o.useLocalState)(m,"contentsModal",null),v=l[0],b=l[1],N=(0,o.useLocalState)(m,"contentsModalTitle",null),h=N[0],C=N[1];if(v!==null&&h!==null)return(0,e.createComponentVNode)(2,s.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,s.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[h,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,s.Box,{children:v.map(function(g){return(0,e.createComponentVNode)(2,s.Box,{children:["- ",g]},g)})}),(0,e.createComponentVNode)(2,s.Box,{m:2,children:(0,e.createComponentVNode)(2,s.Button,{content:"Close",onClick:function(){function g(){b(null),C(null)}return g}()})})]})},i=function(d,m){var l=(0,o.useBackend)(m),v=l.act,b=l.data,N=b.is_public,h=N===void 0?0:N,C=b.cash,g=b.wait_time,x=b.is_cooldown,B=b.telepads_status,L=b.adminAddCash,w=B,A="",T=0,E="";return B==="Pads not linked!"?(T=0,A="Attempts to link telepads to the console.",E="Link pads"):x?x&&(E="Cooldown...",A="Pads are cooling off...",T=1,g!==1?w=""+B+" (ETA: "+g+" seconds)":w=""+B+" (ETA: "+g+" second)"):(T=0,A="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",E="Teleport"),(0,e.createComponentVNode)(2,s.Section,{title:"Status",children:(0,e.createComponentVNode)(2,s.LabeledList,{children:[h===0&&(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Money Available",children:[C,(0,e.createComponentVNode)(2,s.Button,{tooltip:"Withdraw money from the console",content:"Withdraw",onClick:function(){function O(){return v("withdraw",C)}return O}()}),(0,e.createComponentVNode)(2,s.Button,{content:L,tooltip:"Bless the players with da money!",onClick:function(){function O(){return v("add_money",C)}return O}()})]}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Telepads Status",children:w}),h===0&&(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,s.Button,{content:E,tooltip:A,disabled:T,onClick:function(){function O(){return v("teleport")}return O}()}),(0,e.createComponentVNode)(2,s.Button,{content:"View Syndicate Black Market Log",onClick:function(){function O(){return v("showMessages")}return O}()})]})]})})},c=function(d,m){var l=(0,o.useBackend)(m),v=l.act,b=l.data,N=b.categories,h=b.supply_packs,C=(0,o.useSharedState)(m,"category","Emergency"),g=C[0],x=C[1],B=(0,o.useSharedState)(m,"search_text",""),L=B[0],w=B[1],A=(0,o.useLocalState)(m,"contentsModal",null),T=A[0],E=A[1],O=(0,o.useLocalState)(m,"contentsModalTitle",null),P=O[0],R=O[1],F=(0,k.createSearch)(L,function(H){return H.name}),j=(0,a.flow)([(0,t.filter)(function(H){return H.cat===N.filter(function(z){return z.name===g})[0].category||L}),L&&(0,t.filter)(F),(0,t.sortBy)(function(H){return H.name.toLowerCase()})])(h),W="Crate Catalogue";return L?W="Results for '"+L+"':":g&&(W="Browsing "+g),(0,e.createComponentVNode)(2,s.Section,{title:W,buttons:(0,e.createComponentVNode)(2,s.Dropdown,{width:"190px",options:N.map(function(H){return H.name}),selected:g,onSelected:function(){function H(z){return x(z)}return H}()}),children:[(0,e.createComponentVNode)(2,s.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function H(z,$){return w($)}return H}(),mb:1}),(0,e.createComponentVNode)(2,s.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,s.Table,{m:"0.5rem",children:j.map(function(H){return(0,e.createComponentVNode)(2,s.Table.Row,{children:[(0,e.createComponentVNode)(2,s.Table.Cell,{bold:!0,children:[H.name," (",H.cost," Credits)"]}),(0,e.createComponentVNode)(2,s.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,s.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){function z(){return v("order",{crate:H.ref,multiple:0})}return z}()}),(0,e.createComponentVNode)(2,s.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){function z(){return v("order",{crate:H.ref,multiple:1})}return z}()}),(0,e.createComponentVNode)(2,s.Button,{content:"View Contents",icon:"search",onClick:function(){function z(){E(H.contents),R(H.name)}return z}()})]})]},H.name)})})})]})},f=function(d,m){var l=(0,o.useBackend)(m),v=l.act,b=l.data,N=b.requests,h=b.canapprove,C=b.orders;return(0,e.createComponentVNode)(2,s.Section,{title:"Details",children:(0,e.createComponentVNode)(2,s.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:[(0,e.createComponentVNode)(2,s.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,s.Table,{m:"0.5rem",children:N.map(function(g){return(0,e.createComponentVNode)(2,s.Table.Row,{children:[(0,e.createComponentVNode)(2,s.Table.Cell,{children:[(0,e.createComponentVNode)(2,s.Box,{children:["- #",g.ordernum,": ",g.supply_type," for ",(0,e.createVNode)(1,"b",null,g.orderedby,0)]}),(0,e.createComponentVNode)(2,s.Box,{italic:!0,children:["Reason: ",g.comment]})]}),(0,e.createComponentVNode)(2,s.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,s.Button,{content:"Approve",color:"green",disabled:!h,onClick:function(){function x(){return v("approve",{ordernum:g.ordernum})}return x}()}),(0,e.createComponentVNode)(2,s.Button,{content:"Deny",color:"red",onClick:function(){function x(){return v("deny",{ordernum:g.ordernum})}return x}()})]})]},g.ordernum)})}),(0,e.createComponentVNode)(2,s.Box,{bold:!0,children:"Confirmed Orders"}),(0,e.createComponentVNode)(2,s.Table,{m:"0.5rem",children:C.map(function(g){return(0,e.createComponentVNode)(2,s.Table.Row,{children:(0,e.createComponentVNode)(2,s.Table.Cell,{children:[(0,e.createComponentVNode)(2,s.Box,{children:["- #",g.ordernum,": ",g.supply_type," for ",(0,e.createVNode)(1,"b",null,g.orderedby,0)]}),(0,e.createComponentVNode)(2,s.Box,{italic:!0,children:["Reason: ",g.comment]})]})},g.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),s={0:"\u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u044B\u0435",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV"},y={\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"}},V=function(i,c,f,u){return u===void 0&&(u=null),i.map(function(d){var m,l=(m=d[u])!=null?m:d;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:c.includes(d),content:l,onClick:function(){function v(){c.includes(d)?f(c.filter(function(b){var N;return((N=b[u])!=null?N:b)!==d})):f([d].concat(c))}return v}()},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,S)})})}return p}(),S=r.TTSSeedsExplorerContent=function(){function p(i,c){var f=(0,a.useBackend)(c),u=f.act,d=f.data,m=d.providers,l=d.seeds,v=d.selected_seed,b=d.phrases,N=d.donator_level,h=l.map(function(Z){return Z.category}).filter(function(Z,J,te){return te.indexOf(Z)===J}),C=l.map(function(Z){return Z.gender}).filter(function(Z,J,te){return te.indexOf(Z)===J}),g=l.map(function(Z){return Z.donator_level}).filter(function(Z,J,te){return te.indexOf(Z)===J}).map(function(Z){return s[Z]}),x=(0,a.useLocalState)(c,"selectedProviders",m),B=x[0],L=x[1],w=(0,a.useLocalState)(c,"selectedGenders",C),A=w[0],T=w[1],E=(0,a.useLocalState)(c,"selectedCategories",h),O=E[0],P=E[1],R=(0,a.useLocalState)(c,"selectedDonatorLevels",g),F=R[0],j=R[1],W=(0,a.useLocalState)(c,"selectedPhrase",b[0]),H=W[0],z=W[1],$=(0,a.useLocalState)(c,"searchtext",""),G=$[0],ne=$[1],Q=V(m,B,L,"name"),he=V(C,A,T),Ve=V(h,O,P),Ne=V(g,F,j),Be=(0,e.createComponentVNode)(2,t.Dropdown,{options:b,selected:H.replace(/(.{25})..+/,"$1..."),width:"220px",onSelected:function(){function Z(J){return z(J)}return Z}()}),Le=(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",fluid:!0,onInput:function(){function Z(J,te){return ne(te)}return Z}()}),Ae=l.sort(function(Z,J){var te=Z.name.toLowerCase(),ee=J.name.toLowerCase();return te>ee?1:te0&&v!==Z.name?"orange":"white",children:Z.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:v===Z.name?.5:.25,textAlign:"left",children:Z.category}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:v===Z.name?"white":y[Z.gender].color,textAlign:"left",children:(0,e.createComponentVNode)(2,t.Icon,{mx:1,size:1.2,name:y[Z.gender].icon})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:Z.donator_level>0&&(0,e.createFragment)([s[Z.donator_level],(0,e.createComponentVNode)(2,t.Icon,{ml:1,mr:2,name:"coins"})],0)})]},Z.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:Q}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u043B",children:he}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438",children:Ve}),(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:Be}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0438\u0441\u043A",children:Le})]})})}),(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:fe})})}),(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),s=r.TachyonArray=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,c=p.data,f=c.records,u=f===void 0?[]:f,d=c.explosion_target,m=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:m}),(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 v(){return i("print_logs")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!u.length,color:"bad",align:"center",onClick:function(){function v(){return i("delete_logs")}return v}()})]})]})}),u.length?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return V}(),y=r.TachyonArrayContent=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,c=p.data,f=c.records,u=f===void 0?[]:f;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 m(){return i("delete_record",{index:d.index})}return m}()})})]},d.index)})]})})})})}return V}()},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),s=r.Tank=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.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 f(){return p("internals")}return f}()})}):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 f(){return p("pressure",{pressure:"min"})}return f}()}),(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 f(u,d){return p("pressure",{pressure:d})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:i.ReleasePressure===i.maxReleasePressure,tooltip:"Max",onClick:function(){function f(){return p("pressure",{pressure:"max"})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:i.ReleasePressure===i.defaultReleasePressure,tooltip:"Reset",onClick:function(){function f(){return p("pressure",{pressure:"reset"})}return f}()})]}),c]})})})})}return y}()},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),s=r.TankDispenser=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,c=i.o_tanks,f=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 ("+f+")",disabled:f===0,icon:"arrow-circle-down",onClick:function(){function u(){return p("plasma")}return u}()})})]})})}return y}()},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),s=r.TcommsCore=function(){function p(i,c){var f=(0,a.useBackend)(c),u=f.act,d=f.data,m=d.ion,l=(0,a.useLocalState)(c,"tabIndex",0),v=l[0],b=l[1],N=function(){function h(C){switch(C){case 0:return(0,e.createComponentVNode)(2,V);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,S);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:[m===1&&(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===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:v===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:v===2,onClick:function(){function h(){return b(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-times"}),"User Filtering"]},"FilterPage")]}),N(v)]})})}return p}(),y=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."})},V=function(i,c){var f=(0,a.useBackend)(c),u=f.act,d=f.data,m=d.active,l=d.sectors_available,v=d.nttc_toggle_jobs,b=d.nttc_toggle_job_color,N=d.nttc_toggle_name_color,h=d.nttc_toggle_command_bold,C=d.nttc_job_indicator_type,g=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:m?"On":"Off",selected:m,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:v?"On":"Off",selected:v,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:N?"On":"Off",selected:N,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:C||"Unset",selected:C,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:g||"Unset",selected:g,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 f=(0,a.useBackend)(c),u=f.act,d=f.data,m=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:m||"Unset",selected:m,icon:"lock",onClick:function(){function v(){return u("change_password")}return v}()})})}),(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(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.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:v.addr})}return b}()})})]},v.addr)})]})]})},S=function(i,c){var f=(0,a.useBackend)(c),u=f.act,d=f.data,m=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"})]}),m.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 v(){return u("remove_filter",{user:l})}return v}()})})]},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),s=r.TcommsRelay=function(){function k(S,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,u=f.linked,d=f.active,m=f.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:m||"Unset",selected:m,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,y):(0,e.createComponentVNode)(2,V)]})})}return k}(),y=function(S,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,u=f.linked_core_id,d=f.linked_core_addr,m=f.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:m?"Yes":"No",icon:m?"eye-slash":"eye",selected:m,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}()})})]})})},V=function(S,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,u=f.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 m(){return c("link",{addr:d.addr})}return m}()})})]},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),s=n(79646),y=r.Teleporter=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,c=p.data,f=c.targetsTeleport?c.targetsTeleport:{},u=0,d=1,m=2,l=c.calibrated,v=c.calibrating,b=c.powerstation,N=c.regime,h=c.teleporterhub,C=c.target,g=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:N===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:N===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:N===m?"good":null,disabled:!g,onClick:function(){function B(){return i("setregime",{regime:m})}return B}(),children:"GPS"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Teleport target",children:[N===u&&(0,e.createComponentVNode)(2,t.Dropdown,{width:"220px",selected:C,options:Object.keys(f),color:C!=="None"?"default":"bad",onSelected:function(){function B(L){return i("settarget",{x:f[L].x,y:f[L].y,z:f[L].z})}return B}()}),N===d&&(0,e.createComponentVNode)(2,t.Dropdown,{width:"220px",selected:C,options:Object.keys(f),color:C!=="None"?"default":"bad",onSelected:function(){function B(L){return i("settarget",{x:f[L].x,y:f[L].y,z:f[L].z})}return B}()}),N===m&&(0,e.createComponentVNode)(2,t.Box,{children:C})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Calibration",children:[C!=="None"&&(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,s.GridColumn,{size:"2",children:v&&(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,s.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||v),onClick:function(){function B(){return i("calibrate")}return B}()})})})]}),C==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})}),!!(g&&b&&h&&N===m)&&(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 V}()},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),s=n(92986),y=n(36036),V=n(98595),k=r.sanitizeMultiline=function(){function c(f){return f.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),S=r.removeAllSkiplines=function(){function c(f){return f.replace(/[\r\n]+/,"")}return c}(),p=r.TextInputModal=function(){function c(f,u){var d=(0,o.useBackend)(u),m=d.act,l=d.data,v=l.max_length,b=l.message,N=b===void 0?"":b,h=l.multiline,C=l.placeholder,g=l.timeout,x=l.title,B=(0,o.useLocalState)(u,"input",C||""),L=B[0],w=B[1],A=function(){function O(P){if(P!==L){var R=h?k(P):S(P);w(R)}}return O}(),T=h||L.length>=40,E=130+(N.length>40?Math.ceil(N.length/4):0)+(T?80:0);return(0,e.createComponentVNode)(2,V.Window,{title:x,width:325,height:E,children:[g&&(0,e.createComponentVNode)(2,a.Loader,{value:g}),(0,e.createComponentVNode)(2,V.Window.Content,{onKeyDown:function(){function O(P){var R=window.event?P.which:P.keyCode;R===s.KEY_ENTER&&(!T||!P.shiftKey)&&m("submit",{entry:L}),R===s.KEY_ESCAPE&&m("cancel")}return O}(),children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Box,{color:"label",children:N})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{input:L,onType:A})}),(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:L,message:L.length+"/"+v})})]})})})]})}return c}(),i=function(f,u){var d=(0,o.useBackend)(u),m=d.act,l=d.data,v=l.max_length,b=l.multiline,N=f.input,h=f.onType,C=b||N.length>=40;return(0,e.createComponentVNode)(2,y.TextArea,{autoFocus:!0,autoSelect:!0,height:b||N.length>=40?"100%":"1.8rem",maxLength:v,onEscape:function(){function g(){return m("cancel")}return g}(),onEnter:function(){function g(x){C&&x.shiftKey||(x.preventDefault(),m("submit",{entry:N}))}return g}(),onInput:function(){function g(x,B){return h(B)}return g}(),placeholder:"Type something...",value:N})}},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),s=r.ThiefKit=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,c=i.uses,f=i.possible_uses,u=i.multi_uses,d=i.kits,m=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=f,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>=f,onClick:function(){function v(){return p("takeKit",{item:l.type})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",disabled:!l.was_taken,onClick:function(){function v(){return p("undoKit",{item:l.type})}return v}()})]}),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:m&&m.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 v(){return p("undoKit",{item:l.type})}return v}()}),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,s.Countdown,{timeLeft:x.contractor.time_left,format:function(){function P(R,F){return" ("+F+")"}return P}(),bold:!0})]},"BecomeContractor"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{onClick:function(){function P(){return g("lock")}return P}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:p(w)})]})})]})}return b}(),c=function(N,h){var C=(0,y.useBackend)(h),g=C.act,x=C.data,B=x.crystals,L=x.cats,w=(0,y.useLocalState)(h,"uplinkItems",L[0].items),A=w[0],T=w[1],E=(0,y.useLocalState)(h,"searchText",""),O=E[0],P=E[1],R=function($,G){G===void 0&&(G="");var ne=(0,o.createSearch)(G,function(Q){var he=Q.hijack_only===1?"|hijack":"";return Q.name+"|"+Q.desc+"|"+Q.cost+"tc"+he});return(0,t.flow)([(0,a.filter)(function(Q){return Q==null?void 0:Q.name}),G&&(0,a.filter)(ne),(0,a.sortBy)(function(Q){return Q==null?void 0:Q.name})])($)},F=function($){if(P($),$==="")return T(L[0].items);T(R(L.map(function(G){return G.items}).flat(),$))},j=(0,y.useLocalState)(h,"showDesc",1),W=j[0],H=j[1];return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:W,onClick:function(){function z(){return H(!W)}return z}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Random Item",icon:"question",onClick:function(){function z(){return g("buyRandom")}return z}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function z(){return g("refund")}return z}()})],4),children:(0,e.createComponentVNode)(2,V.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function z($,G){F(G)}return z}(),value:O})})})}),(0,e.createComponentVNode)(2,V.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:L.map(function(z){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:O!==""?!1:z.items===A,onClick:function(){function $(){T(z.items),P("")}return $}(),children:z.cat},z)})})})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:A.map(function(z){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:z,showDecription:W},(0,o.decodeHtmlEntities)(z.name))},(0,o.decodeHtmlEntities)(z.name))})})})})]})]})},f=function(N,h){var C=(0,y.useBackend)(h),g=C.act,x=C.data,B=x.cart,L=x.crystals,w=x.cart_price,A=(0,y.useLocalState)(h,"showDesc",0),T=A[0],E=A[1];return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+L+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:T,onClick:function(){function O(){return E(!T)}return O}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function O(){return g("empty_cart")}return O}(),disabled:!B}),(0,e.createComponentVNode)(2,V.Button,{content:"Purchase Cart ("+w+"TC)",icon:"shopping-cart",onClick:function(){function O(){return g("purchase_cart")}return O}(),disabled:!B||w>L})],4),children:(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:B?B.map(function(O){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:O,showDecription:T,buttons:(0,e.createComponentVNode)(2,l,{i:O})})},(0,o.decodeHtmlEntities)(O.name))}):(0,e.createComponentVNode)(2,V.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,u)]})},u=function(N,h){var C=(0,y.useBackend)(h),g=C.act,x=C.data,B=x.cats,L=x.lucky_numbers;return(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function w(){return g("shuffle_lucky_numbers")}return w}()}),children:(0,e.createComponentVNode)(2,V.Stack,{wrap:!0,children:L.map(function(w){return B[w.cat].items[w.item]}).filter(function(w){return w!=null}).map(function(w,A){return(0,e.createComponentVNode)(2,V.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:w})},A)})})})})},d=function(N,h){var C=N.i,g=N.showDecription,x=g===void 0?1:g,B=N.buttons,L=B===void 0?(0,e.createComponentVNode)(2,m,{i:C}):B;return(0,e.createComponentVNode)(2,V.Section,{title:(0,o.decodeHtmlEntities)(C.name),showBottom:x,buttons:L,children:x?(0,e.createComponentVNode)(2,V.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(C.desc)}):null})},m=function(N,h){var C=(0,y.useBackend)(h),g=C.act,x=C.data,B=N.i,L=x.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function w(){return g("add_to_cart",{item:B.obj_path})}return w}(),disabled:B.cost>L}),(0,e.createComponentVNode)(2,V.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 w(){return g("buyItem",{item:B.obj_path})}return w}(),disabled:B.cost>L})],4)},l=function(N,h){var C=(0,y.useBackend)(h),g=C.act,x=C.data,B=N.i,L=x.exploitable;return(0,e.createComponentVNode)(2,V.Stack,{children:[(0,e.createComponentVNode)(2,V.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function w(){return g("remove_from_cart",{item:B.obj_path})}return w}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function w(){return g("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return w}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,V.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function w(A,T){return g("set_cart_item_quantity",{item:B.obj_path,quantity:T})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,V.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function w(){return g("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},v=function(N,h){var C=(0,y.useBackend)(h),g=C.act,x=C.data,B=x.exploitable,L=(0,y.useLocalState)(h,"selectedRecord",B[0]),w=L[0],A=L[1],T=(0,y.useLocalState)(h,"searchText",""),E=T[0],O=T[1],P=function(j,W){W===void 0&&(W="");var H=(0,o.createSearch)(W,function(z){return z.name});return(0,t.flow)([(0,a.filter)(function(z){return z==null?void 0:z.name}),W&&(0,a.filter)(H),(0,a.sortBy)(function(z){return z.name})])(j)},R=P(B,E);return(0,e.createComponentVNode)(2,V.Section,{fill:!0,title:"Exploitable Records",children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"30%",fill:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,V.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function F(j,W){return O(W)}return F}()}),(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:R.map(function(F){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:F===w,onClick:function(){function j(){return A(F)}return j}(),children:F.name},F)})})]})}),(0,e.createComponentVNode)(2,V.Divider,{vertical:!0}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,title:w.name,scrollable:!0,children:(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Age",children:w.age}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Fingerprint",children:w.fingerprint}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Rank",children:w.rank}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Sex",children:w.sex}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Species",children:w.species}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Records",children:w.exploit_record})]})})})]})})};(0,S.modalRegisterBodyOverride)("become_contractor",function(b,N){var h,C,g,x,B=(0,y.useBackend)(N),L=B.data,w=L.contractor||{},A=w.time_left,T=!!(L!=null&&(h=L.contractor)!=null&&h.available),E=!!(L!=null&&(C=L.contractor)!=null&&C.affordable),O=!!(L!=null&&(g=L.contractor)!=null&&g.accepted),P=L.contractor||{},R=P.available_offers,F=!!(L!=null&&(x=L.contractor)!=null&&x.is_admin_forced);return(0,e.createComponentVNode)(2,V.Section,{height:"65%",level:"2",m:"-1rem",pb:"1rem",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Icon,{name:"suitcase"}),(0,e.createTextVNode)("\xA0 Contracting Opportunity")],4),children:[(0,e.createComponentVNode)(2,V.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.",F?"":(0,e.createComponentVNode)(2,V.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: "),R],0)]})]}),(0,e.createComponentVNode)(2,V.Button.Confirm,{disabled:!T||O,italic:!T,bold:T,icon:T&&!O&&"check",color:"good",content:O?"Accepted":T?["Accept Offer",(0,e.createComponentVNode)(2,s.Countdown,{timeLeft:A,format:function(){function j(W,H){return" ("+H+")"}return j}()},"countdown")]:E?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 j(){return(0,S.modalAnswer)(N,b.id,1)}return j}()})]})})},8946:function(I,r,n){"use strict";r.__esModule=!0,r.VampireSpecMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),s=r.VampireSpecMenu=function(){function i(c,f){return(0,e.createComponentVNode)(2,o.Window,{width:1500,height:820,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,t.Divider,{vertical:1}),(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,t.Divider,{vertical:1}),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.Divider,{vertical:1}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,t.Divider,{vertical:1}),(0,e.createComponentVNode)(2,p)]})})})}return i}(),y=function(c,f){var u=(0,a.useBackend)(f),d=u.act,m=u.data,l=m.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"20%",children:(0,e.createComponentVNode)(2,t.Section,{title:"Hemomancer",children:[(0,e.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Vampiric claws",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood Barrier",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood tendrils",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Sanguine pool",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Predator senses",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood eruption",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"The blood bringers rite",16),(0,e.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"Hemomancer",onClick:function(){function v(){return d("hemomancer")}return v}()})]})})},V=function(c,f){var u=(0,a.useBackend)(f),d=u.act,m=u.data,l=m.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"20%",children:(0,e.createComponentVNode)(2,t.Section,{title:"Umbrae",children:[(0,e.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Cloak of darkness",16),(0,e.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow anchor",16),(0,e.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you are forced back to the anchor. It will not teleport you between Z levels.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow snare",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensares the victim. This trap is hard to see, but withers in the light.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dark passage",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Extinguish",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,e.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Eternal darkness",16),(0,e.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. It will also cause nearby creatures to freeze.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permament X-ray vision.",16),(0,e.createComponentVNode)(2,t.Button,{content:"Umbrae",onClick:function(){function v(){return d("umbrae")}return v}()})]})})},k=function(c,f){var u=(0,a.useBackend)(f),d=u.act,m=u.data,l=m.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"20%",children:(0,e.createComponentVNode)(2,t.Section,{title:"Gargantua",children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you dont have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": You gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"Gargantua",onClick:function(){function v(){return d("gargantua")}return v}()})]})})},S=function(c,f){var u=(0,a.useBackend)(f),d=u.act,m=u.data,l=m.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"20%",children:(0,e.createComponentVNode)(2,t.Section,{title:"Dantalion",children:[(0,e.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Enthrall",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall cap",16),(0,e.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall commune",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Subspace swap",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Pacify",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Decoy",16),(0,e.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rally thralls",16),(0,e.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood bond",16),(0,e.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Mass Hysteria",16),(0,e.createTextVNode)(": Casts a powerful illusion that, blinds then make everyone nearby perceive others to looks like random animals.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"Dantalion",onClick:function(){function v(){return d("dantalion")}return v}()})]})})},p=function(c,f){var u=(0,a.useBackend)(f),d=u.act,m=u.data,l=m.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"20%",children:(0,e.createComponentVNode)(2,t.Section,{title:"Bestia",children:[(0,e.createVNode)(1,"h3",null,"Focuses on transformations and trophies harvesting.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Check Trophies",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to check current trophies amount and all the passive effects they provide.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dissect",16),(0,e.createTextVNode)(": Unlocked at 150 blood, main source of gaining power, besides blood, allows you to harvest human organs, as a trophies, to passively increase your might.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dissect Cap",16),(0,e.createTextVNode)(": You can only harvest one organ trophie at a time. This can be increased at 600 blood and at full power to a max of 3 trophies per victim.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Infected Trophy",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to stun enemies from the safe distance and infect them with the deadly Grave Fever.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Lunge",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to rapidly close distance to a victim or escape a dangerous situation.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Mark the Prey",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to mark a victim which drastically reduces their movement speed and forces them to take spontaneous actions.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Metamorphosis - Bats",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to shapeshift into the deadly and vicious space bats swarm.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Anabiosis",16),(0,e.createTextVNode)(": Unlocked at 600 blood, ancient technique which allows you to cure almost any wounds while sleeping in a coffin.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Summon Bats",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to call extraplanar space bats to aid you in combat.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Metamorphosis - Hound",16),(0,e.createTextVNode)(": Allows you to shapeshift into the ultimate form of bluespace entity which took over your soul.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"Bestia",onClick:function(){function v(){return d("bestia")}return v}()})]})})}},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),s=function(b){return(Math.round(b*10)/10).toFixed(1)},y=r.VampireTrophiesStatus=function(){function v(b,N){return(0,e.createComponentVNode)(2,o.Window,{theme:"nologo",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,V),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,l)]})})})}return v}(),V=function(b,N){var h=(0,a.useBackend)(N),C=h.act,g=h.data,x=g.hearts,B=g.lungs,L=g.livers,w=g.kidneys,A=g.eyes,T=g.ears,E=g.trophies_max_gen,O=g.trophies_max_crit,P=g.icon_hearts,R=g.icon_lungs,F=g.icon_livers,j=g.icon_kidneys,W=g.icon_eyes,H=g.icon_ears;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Trophies",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.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+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:xb;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,"+m,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: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:L,icon:B,content:x,textAlign:"left",onClick:function(){function w(){return c("vend",{inum:u.inum})}return w}()})})]})},V=r.Vending=function(){function k(S,p){var i=(0,t.useBackend)(p),c=i.act,f=i.data,u=f.user,d=f.guestNotice,m=f.userMoney,l=f.chargesMoney,v=f.product_records,b=v===void 0?[]:v,N=f.coin_records,h=N===void 0?[]:N,C=f.hidden_records,g=C===void 0?[]:C,x=f.stock,B=f.vend_ready,L=f.coin_name,w=f.inserted_item_name,A=f.panel_open,T=f.speaker,E=f.imagelist,O;return O=[].concat(b,h),f.extended_inventory&&(O=[].concat(O,g)),O=O.filter(function(P){return!!P}),(0,e.createComponentVNode)(2,s.Window,{width:470,height:100+Math.min(b.length*38,500),title:"Vending Machine",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:[!!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,[m,(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 P(){return c("remove_coin",{})}return P}()}),children:(0,e.createComponentVNode)(2,o.Box,{children:L})}),!!w&&(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 P(){return c("eject_item",{})}return P}()}),children:(0,e.createComponentVNode)(2,o.Box,{children:w})}),!!A&&(0,e.createComponentVNode)(2,o.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,o.Button,{icon:T?"check":"volume-mute",selected:T,content:"Speaker",textAlign:"left",onClick:function(){function P(){return c("toggle_voice",{})}return P}()})})]}),(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(P){return(0,e.createComponentVNode)(2,y,{product:P,productStock:x[P.name],productImage:E[P.path]},P.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),s=r.VolumeMixer=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.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(f,u){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:u>0&&"0.5rem",children:f.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:f.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:f.volume,onChange:function(){function d(m,l){return p("volume",{channel:f.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:f.num,volume:100})}return d}()})})})]})})],4,f.num)})})})})}return y}()},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),s=r.VotePanel=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,c=i.remaining,f=i.question,u=i.choices,d=i.user_vote,m=i.counts,l=i.show_counts,v=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:f,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?" ("+(m[b]||0)+")":""),onClick:function(){function N(){return p("vote",{target:b})}return N}(),selected:b===d})},b)}),!!v&&(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 y}()},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),s=r.Wires=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,c=i.wires||[],f=i.status||[],u=56+c.length*23+(status?0:15+f.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 m(){return p("cut",{wire:d.color})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function m(){return p("pulse",{wire:d.color})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:d.attached?"Detach":"Attach",onClick:function(){function m(){return p("attach",{wire:d.color})}return m}()})],4),children:!!d.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),d.wire,(0,e.createTextVNode)(")")],0)},d.seen_color)})})})}),!!f.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:f.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:d},d)})})})]})})})}return y}()},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),s=n(73379),y=n(98595),V=["title","items"];function k(u,d){if(u==null)return{};var m={};for(var l in u)if({}.hasOwnProperty.call(u,l)){if(d.includes(l))continue;m[l]=u[l]}return m}var S=function(d,m,l){return d.requirements===null?!0:!(d.requirements.brass>m||d.requirements.power>l)},p=r.Workshop=function(){function u(d,m){var l=(0,t.useBackend)(m),v=l.act,b=l.data,N=b.brass_amount,h=b.power_amount,C=b.building,g=b.buildStart,x=b.buildEnd,B=b.worldTime,L=N.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),w=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),A={float:"left",width:"60%"},T={float:"right",width:"39%"};return(0,e.createComponentVNode)(2,y.Window,{width:400,height:500,theme:"clockwork",children:(0,e.createComponentVNode)(2,y.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 E(){return v("dispense")}return E}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:w})]}),C&&(0,e.createComponentVNode)(2,o.ProgressBar.Countdown,{mt:2,start:g,current:B,end:x,bold:!0,children:["Building ",C,"\xA0(",(0,e.createComponentVNode)(2,s.Countdown,{current:B,timeLeft:x-B,format:function(){function E(O,P){return P.substr(3)}return E}()}),")"]})]})]}),(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,m){var l=(0,t.useLocalState)(m,"search",""),v=l[0],b=l[1],N=(0,t.useLocalState)(m,"sort",""),h=N[0],C=N[1],g=(0,t.useLocalState)(m,"descending",!1),x=g[0],B=g[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(w,A){return b(A)}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,m){var l=(0,t.useBackend)(m),v=l.act,b=l.data,N=b.items,h=(0,t.useLocalState)(m,"search",""),C=h[0],g=h[1],x=(0,t.useLocalState)(m,"sort","Alphabetical"),B=x[0],L=x[1],w=(0,t.useLocalState)(m,"descending",!1),A=w[0],T=w[1],E=(0,a.createSearch)(C,function(R){return R[0]}),O=!1,P=Object.entries(N).map(function(R,F){var j=Object.entries(R[1]).filter(E).map(function(W){return W[1].affordable=S(W[1],b.brass_amount,b.power_amount),W[1]});if(j.length!==0)return A&&(j=j.reverse()),O=!0,(0,e.createComponentVNode)(2,f,{title:R[0],items:j},R[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:"1",children:(0,e.createComponentVNode)(2,o.Section,{children:O?P:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},f=function(d,m){var l=(0,t.useBackend)(m),v=l.act,b=l.data,N=d.title,h=d.items,C=k(d,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:N},C,{children:h.map(function(g){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+g.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,o.Button,{icon:"hammer",disabled:!S(g,b.brass_amount,b.power_amount),onClick:function(){function x(){return v("make",{cat:N,name:g.name})}return x}(),children:(0,a.toTitleCase)((0,a.toTitleCase)(g.name))}),(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"right"},children:g.requirements&&Object.keys(g.requirements).map(function(x){return(0,a.toTitleCase)(x)+": "+g.requirements[x]}).join(", ")||(0,e.createComponentVNode)(2,o.Box,{children:"No resources required."})}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})]},g.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 s(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=y(p))||i&&p&&typeof p.length=="number"){c&&(p=c);var f=0;return function(){return f>=p.length?{done:!0}:{done:!1,value:p[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 y(p,i){if(p){if(typeof p=="string")return V(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)?V(p,i):void 0}}function V(p,i){(i==null||i>p.length)&&(i=p.length);for(var c=0,f=Array(i);c0&&!g.includes(j.ref)&&!h.includes(j.ref),checked:h.includes(j.ref),onClick:function(){function W(){return x(j.ref)}return W}()},j.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),s=function(k,S,p,i,c){return ki?"average":k>c?"bad":"good"},y=r.AtmosScan=function(){function V(k,S){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:s(i.val,i.bad_low,i.poor_low,i.poor_high,i.bad_high),children:[i.val,i.units]},i.entry)})})})}return V}()},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(V){return V+" unit"+(V===1?"":"s")},s=r.BeakerContents=function(){function y(V){var k=V.beakerLoaded,S=V.beakerContents,p=S===void 0?[]:S,i=V.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,f){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,f)})]},c.name)})]})}return y}();s.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={},s=r.modalOpen=function(){function p(i,c,f){var u=(0,a.useBackend)(i),d=u.act,m=u.data,l=Object.assign(m.modal?m.modal.args:{},f||{});d("modal_open",{id:c,arguments:JSON.stringify(l)})}return p}(),y=r.modalRegisterBodyOverride=function(){function p(i,c){o[i]=c}return p}(),V=r.modalAnswer=function(){function p(i,c,f,u){var d=(0,a.useBackend)(i),m=d.act,l=d.data;if(l.modal){var v=Object.assign(l.modal.args||{},u||{});m("modal_answer",{id:c,answer:f,arguments:JSON.stringify(v)})}}return p}(),k=r.modalClose=function(){function p(i,c){var f=(0,a.useBackend)(i),u=f.act;u("modal_close",{id:c})}return p}(),S=r.ComplexModal=function(){function p(i,c){var f=(0,a.useBackend)(c),u=f.data;if(u.modal){var d=u.modal,m=d.id,l=d.text,v=d.type,b,N=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function L(){return k(c)}return L}()}),h,C,g="auto";if(o[m])h=o[m](u.modal,c);else if(v==="input"){var x=u.modal.value;b=function(){function L(w){return V(c,m,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(w,A){x=A}return L}()}),C=(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 V(c,m,x)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(v==="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(w){return V(c,m,w)}return L}()}),g="initial"}else v==="bento"?h=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:u.modal.choices.map(function(L,w){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:w+1===parseInt(u.modal.value,10),onClick:function(){function A(){return V(c,m,w+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:L})})},w)})}):v==="boolean"&&(C=(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 V(c,m,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 V(c,m,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:g,"padding-bottom":"5px",children:[l&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:l}),o[m]&&N,h,C]})}}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),s=n(76910),y=s.COLORS.department,V=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],k=function(f){return V.indexOf(f)!==-1?"green":"orange"},S=function(f){if(V.indexOf(f)!==-1)return!0},p=function(f){return f.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"})]}),f.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{color:k(u.real_rank),bold:S(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(f,u){var d=(0,a.useBackend)(u),m=d.act,l;if(f.data)l=f.data;else{var v=(0,a.useBackend)(u),b=v.data;l=b}var N=l,h=N.manifest,C=h.heads,g=h.pro,x=h.sec,B=h.eng,L=h.med,w=h.sci,A=h.ser,T=h.sup,E=h.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:y.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(C)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:y.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(g)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:y.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:y.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:y.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:y.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(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:y.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(A)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:y.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(T)}),(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(E)})]})}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 s(y,V){var k=(0,t.useBackend)(V),S=k.act,p=k.data,i=p.large_buttons,c=p.swapped_buttons,f=y.input,u=y.message,d=y.disabled,m=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!i,fluid:!!i,onClick:function(){function v(){return S("submit",{entry:f})}return v}(),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 v(){return S("cancel")}return v}(),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:m}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:m})]})}return s}()},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 s(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data,i=y.siliconUser,c=i===void 0?p.siliconUser:i,f=y.locked,u=f===void 0?p.locked:f,d=y.normallyLocked,m=d===void 0?p.normallyLocked:d,l=y.onLockStatusChange,v=l===void 0?function(){return S("lock")}:l,b=y.accessText,N=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:m?"red":"green",icon:m?"lock":"unlock",content:m?"Locked":"Unlocked",onClick:function(){function h(){v&&v(!u)}return h}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",N," to ",u?"unlock":"lock"," this interface."]})}return s}()},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 s(y){var V=y.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(V)*100+"%"}}),2)}return s}()},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 s(y,V){var k=(0,a.useBackend)(V),S=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 S("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 S("login_eject")}return c}()})]})]})})}return s}()},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 s(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data,i=p.loginState,c=p.isAI,f=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 S("login_insert")}return d}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!i.id,content:"Login",onClick:function(){function d(){return S("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 S("login_login",{login_type:2})}return d}()}),!!f&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function d(){return S("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 S("login_login",{login_type:4})}return d}()})]})})})}return s}()},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 s(y){var V=y.operating,k=y.name;if(V)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 s}();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),s=r.Signaler=function(){function y(V,k){var S=(0,t.useBackend)(k),p=S.act,i=V.data,c=i.code,f=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:f/10,format:function(){function m(l){return(0,a.toFixed)(l,1)}return m}(),width:"80px",onDrag:function(){function m(l,v){return p("freq",{freq:v})}return m}()})}),(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 m(l,v){return p("code",{code:v})}return m}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function m(){return p("signal")}return m}()})]})}return y}()},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),s=n(88510),y=n(36036),V=r.SimpleRecords=function(){function p(i,c){var f=i.data.records;return(0,e.createComponentVNode)(2,y.Box,{children:f?(0,e.createComponentVNode)(2,S,{data:i.data,recordType:i.recordType}):(0,e.createComponentVNode)(2,k,{data:i.data})})}return p}(),k=function(i,c){var f=(0,a.useBackend)(c),u=f.act,d=i.data.recordsList,m=(0,a.useLocalState)(c,"searchText",""),l=m[0],v=m[1],b=function(C,g){g===void 0&&(g="");var x=(0,t.createSearch)(g,function(B){return B.Name});return(0,o.flow)([(0,s.filter)(function(B){return B==null?void 0:B.Name}),g&&(0,s.filter)(x),(0,s.sortBy)(function(B){return B.Name})])(d)},N=b(d,l);return(0,e.createComponentVNode)(2,y.Box,{children:[(0,e.createComponentVNode)(2,y.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function h(C,g){return v(g)}return h}()}),N.map(function(h){return(0,e.createComponentVNode)(2,y.Box,{children:(0,e.createComponentVNode)(2,y.Button,{mb:.5,content:h.Name,icon:"user",onClick:function(){function C(){return u("Records",{target:h.uid})}return C}()})},h)})]})},S=function(i,c){var f=(0,a.useBackend)(c),u=f.act,d=i.data.records,m=d.general,l=d.medical,v=d.security,b;switch(i.recordType){case"MED":b=(0,e.createComponentVNode)(2,y.Section,{level:2,title:"Medical Data",children:l?(0,e.createComponentVNode)(2,y.LabeledList,{children:[(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Blood Type",children:l.blood_type}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Minor Disabilities",children:l.mi_dis}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Details",children:l.mi_dis_d}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Major Disabilities",children:l.ma_dis}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Details",children:l.ma_dis_d}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Allergies",children:l.alg}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Details",children:l.alg_d}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Current Diseases",children:l.cdi}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Details",children:l.cdi_d}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:l.notes})]}):(0,e.createComponentVNode)(2,y.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":b=(0,e.createComponentVNode)(2,y.Section,{level:2,title:"Security Data",children:v?(0,e.createComponentVNode)(2,y.LabeledList,{children:[(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Criminal Status",children:v.criminal}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Minor Crimes",children:v.mi_crim}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Details",children:v.mi_crim_d}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Major Crimes",children:v.ma_crim}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Details",children:v.ma_crim_d}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:v.notes})]}):(0,e.createComponentVNode)(2,y.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,y.Box,{children:[(0,e.createComponentVNode)(2,y.Section,{title:"General Data",children:m?(0,e.createComponentVNode)(2,y.LabeledList,{children:[(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Name",children:m.name}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Sex",children:m.sex}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Species",children:m.species}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Age",children:m.age}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Rank",children:m.rank}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Fingerprint",children:m.fingerprint}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Physical Status",children:m.p_stat}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Mental Status",children:m.m_stat})]}):(0,e.createComponentVNode)(2,y.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 s(y,V){var k,S=(0,a.useBackend)(V),p=S.act,i=S.data,c=i.temp;if(c){var f=(k={},k[c.style]=!0,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},f,{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 s}()},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),s=n(98595),y=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],V=["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 f}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 m}return h}()},{title:"BlockQuote",component:function(){function h(){return v}return h}()},{title:"ByondUi",component:function(){function h(){return b}return h}()},{title:"Themes",component:function(){function h(){return N}return h}()}],S=r.KitchenSink=function(){function h(C,g){var x=(0,a.useLocalState)(g,"kitchenSinkTheme"),B=x[0],L=(0,a.useLocalState)(g,"pageIndex",0),w=L[0],A=L[1],T=k[w].component();return(0,e.createComponentVNode)(2,s.Window,{theme:B,resizable:!0,children:(0,e.createComponentVNode)(2,s.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(E,O){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:O===w,onClick:function(){function P(){return A(O)}return P}(),children:E.title},O)})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,T)})]})})})})}return h}(),p=function(C){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:[V.map(function(g){return(0,e.createComponentVNode)(2,t.Button,{color:g,content:g},g)}),(0,e.createVNode)(1,"br"),y.map(function(g){return(0,e.createComponentVNode)(2,t.Button,{color:g,content:g},g)}),(0,e.createVNode)(1,"br"),y.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:"7px",color:g,children:g},g)})]})]})},i=function(C){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(C,g){var x=(0,a.useLocalState)(g,"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 w(){return L(B-.1)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function w(){return L(B+.1)}return w}()})]})]})},f=function(C,g){var x=(0,a.useLocalState)(g,"tabIndex",0),B=x[0],L=x[1],w=(0,a.useLocalState)(g,"tabVert"),A=w[0],T=w[1],E=(0,a.useLocalState)(g,"tabAlt"),O=E[0],P=E[1],R=[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:A,onClick:function(){function F(){return T(!A)}return F}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"altSelection",checked:O,onClick:function(){function F(){return P(!O)}return F}()})]}),(0,e.createComponentVNode)(2,t.Tabs,{vertical:A,children:R.map(function(F,j){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{altSelection:O,selected:j===B,onClick:function(){function W(){return L(j)}return W}(),children:["Tab #",F]},j)})})]})},u=function(C){var g=["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:g.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:x,content:x},x)})})],4)},d=function(C,g){var x=(0,a.useLocalState)(g,"number",0),B=x[0],L=x[1],w=(0,a.useLocalState)(g,"text","Sample text"),A=w[0],T=w[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:A,onChange:function(){function E(O,P){return T(P)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:A,onInput:function(){function E(O,P){return T(P)}return E}()})}),(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 E(O,P){return L(P)}return E}()})}),(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 E(O,P){return L(P)}return E}()})}),(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 E(O,P){return L(P)}return E}()})}),(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 E(O,P){return L(P)}return E}()}),(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 E(O,P){return L(P)}return E}()})]}),(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 E(O,P){return L(P)}return E}(),children:function(){function E(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 E}()})})})]})})},m=function(C){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(C){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({},C,{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."})]})))},v=function(C){return(0,e.createComponentVNode)(2,t.BlockQuote,{children:(0,e.createComponentVNode)(2,l)})},b=function(C,g){var x=(0,a.useBackend)(g),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"}})})})},N=function(C,g){var x=(0,a.useLocalState)(g,"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 w(A,T){return L(T)}return w}()})})})})}},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 s(y,V){var k=(0,a.useBackend)(V),S=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 S("ui_interact")}return i}()})})})}return s}()},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 s(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:p.app_data})}return s}()},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 s(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data,i=p.app_data,c=i.holder,f=i.dead,u=i.health,d=i.brute,m=i.oxy,l=i.tox,v=i.burn,b=i.reagents,N=i.addictions,h=i.fractures,C=i.internal_bleeding;return c?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:f?(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:m})}),(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:v})}),(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(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g.title,children:(0,e.createComponentVNode)(2,t.Box,{color:g.overdosed?"bad":"good",children:[" ",g.volume," ",g.overdosed?"OVERDOSED":""," "]})},g.id)}):"Reagents not found."}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Addictions",children:N?N.map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g.addiction_name,children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[" Stage: ",g.stage," "]})},g.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:C?"bad":"good",children:["Internal Bleedings ",C?"":"not"," detected."]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return s}()},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 s(y,V){var k=(0,a.useBackend)(V),S=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 S("ui_interact")}return i}()})})})}return s}()},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 s(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data,i=p.app_data,c=i.master,f=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+" ("+f+")":"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 m(){return S("getdna")}return m}()})}),(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 s}()},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 s(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data,i=p.app_data,c=i.cable,f=i.machine,u=i.inprogress,d=i.progress,m=i.aborted,l;f?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 S("cable")}return b}()});var v;return f&&(v=(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 S("cancel")}return b}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function b(){return S("jack")}return b}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:l}),v]})}return s}()},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 s(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data,i=p.app_data,c=i.radio_name,f=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,", ",f]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Set new name",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function u(d,m){return S("set_newname",{newname:m})}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,m){return S("set_newrank",{newrank:m})}return u}()})})]})})}return s}()},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 s(y,V){var k=(0,a.useBackend)(V),S=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 S("ui_interact")}return i}()})})})}return s}()},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 s(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data,i=p.app_data,c=i.available_software,f=i.installed_software,u=i.installed_toggles,d=i.available_ram,m=i.emotions,l=i.current_emotion,v=[];return f.map(function(b){return v[b.key]=b.name}),u.map(function(b){return v[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!v[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 N(){return S("purchaseSoftware",{key:b.key})}return N}()},b.key)}),c.filter(function(b){return!v[b.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[f.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 N(){return S("startSoftware",{software_key:b.key})}return N}()},b.key)}),f.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 N(){return S("setToggle",{toggle_key:b.key})}return N}()},b.key)}),u.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:m.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 N(){return S("setEmotion",{emotion:b.id})}return N}()},b.id)})})]})})}return s}()},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 s(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:p.app_data})}return s}()},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 s(y,V){var k=(0,a.useBackend)(V),S=k.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:S.app_data,recordType:"MED"})}return s}()},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 s(y,V){var k=(0,a.useBackend)(V),S=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 s}()},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),s=r.pai_radio=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,c=i.app_data,f=c.minFrequency,u=c.maxFrequency,d=c.frequency,m=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:f/10,maxValue:u/10,value:d/10,format:function(){function l(v){return(0,t.toFixed)(v,1)}return l}(),onChange:function(){function l(v,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:m,content:m?"Enabled":"Disabled"})})]})}return y}()},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 s(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data,i=p.app_data,c=i.holder,f=i.dead,u=i.health,d=i.current_chemicals,m=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:f?(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:[m.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 v(){return S("secreteChemicals",{key:l.key})}return v}()},l.key)}),m.length===0&&"No chemicals available!"]})]})}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return s}()},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 s(y,V){var k=(0,a.useBackend)(V),S=k.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:S.app_data,recordType:"SEC"})}return s}()},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 s(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p.app_data})}return s}()},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 s(y,V){var k=(0,a.useBackend)(V),S=k.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:S})}return s}()},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 s(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data,i=p.janitor,c=i.user_loc,f=i.mops,u=i.buckets,d=i.cleanbots,m=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]}),f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:f.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)})}),m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:m.map(function(l){return(0,e.createComponentVNode)(2,t.Box,{children:[l.x,",",l.y," (",l.dir,") - [",l.volume,"/",l.max_volume,"]"]},l)})})]})}return s}()},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),s=r.pda_main_menu=function(){function y(V,k){var S=(0,t.useBackend)(k),p=S.act,i=S.data,c=i.owner,f=i.ownjob,u=i.idInserted,d=i.categories,m=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,", ",f]}),(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 v(){return p("UpdateInfo")}return v}()})})]})})}),(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(v){var b=i.apps[v];return!b||!b.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:v,children:b.map(function(N){return(0,e.createComponentVNode)(2,o.Button,{icon:N.uid in l?N.notify_icon:N.icon,iconSpin:N.uid in l,color:N.uid in l?"red":"transparent",content:N.name,onClick:function(){function h(){return p("StartProgram",{program:N.uid})}return h}()},N.uid)})},v)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!m&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function v(){return p("pai",{option:1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function v(){return p("pai",{option:2})}return v}()})]})})]})}return y}()},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 s(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return s}()},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 s(y,V){var k=(0,a.useBackend)(V),S=k.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:S,recordType:"MED"})}return s}()},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),s=r.pda_messenger=function(){function S(p,i){var c=(0,t.useBackend)(i),f=c.act,u=c.data,d=u.active_convo;return d?(0,e.createComponentVNode)(2,y,{data:u}):(0,e.createComponentVNode)(2,V,{data:u})}return S}(),y=r.ActiveConversation=function(){function S(p,i){var c=(0,t.useBackend)(i),f=c.act,u=p.data,d=u.convo_device,m=u.messages,l=u.active_convo,v=(0,t.useLocalState)(i,"clipboardMode",!1),b=v[0],N=v[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 C(){return N(!b)}return C}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function C(){return f("Message",{target:l})}return C}(),content:"Reply"})],4),children:(0,a.filter)(function(C){return C.target===l})(m).map(function(C,g){return(0,e.createComponentVNode)(2,o.Box,{textAlign:C.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:C.sent?"#4d9121":"#cd7a0d",position:"absolute",left:C.sent?null:"0px",right:C.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:C.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:C.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:C.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[C.sent?"You:":"Them:"," ",C.message]})]},g)})});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 C(){return N(!b)}return C}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function C(){return f("Message",{target:l})}return C}(),content:"Reply"})],4),children:(0,a.filter)(function(C){return C.target===l})(m).map(function(C,g){return(0,e.createComponentVNode)(2,o.Box,{color:C.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[C.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:C.message})]},g)})})),(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 C(){return f("Clear",{option:"Convo"})}return C}()})})})}),h]})}return S}(),V=r.MessengerList=function(){function S(p,i){var c=(0,t.useBackend)(i),f=c.act,u=p.data,d=u.convopdas,m=u.pdas,l=u.charges,v=u.silent,b=u.toff,N=(0,t.useLocalState)(i,"searchTerm",""),h=N[0],C=N[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:!v,icon:v?"volume-mute":"volume-up",onClick:function(){function g(){return f("Toggle Ringer")}return g}(),children:["Ringer: ",v?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:b?"bad":"green",icon:"power-off",onClick:function(){function g(){return f("Toggle Messenger")}return g}(),children:["Messenger: ",b?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function g(){return f("Ringtone")}return g}(),children:"Set Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function g(){return f("Clear",{option:"All"})}return g}(),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&&!m.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 g(x,B){C(B)}return g}()})]})]})||(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:m,msgAct:"Message",data:u,searchTerm:h})]})}return S}(),k=function(p,i){var c=(0,t.useBackend)(i),f=c.act,u=p.data,d=p.pdas,m=p.title,l=p.msgAct,v=p.searchTerm,b=u.charges,N=u.plugins;return!d||!d.length?(0,e.createComponentVNode)(2,o.Section,{title:m,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:m,children:d.filter(function(h){return h.Name.toLowerCase().includes(v.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 C(){return f(l,{target:h.uid})}return C}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!b&&N.map(function(C){return(0,e.createComponentVNode)(2,o.Button,{icon:C.icon,content:C.name,onClick:function(){function g(){return f("Messenger Plugin",{plugin:C.uid,target:h.uid})}return g}()},C.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 V(k,S){var p=(0,a.useBackend)(S),i=p.act,c=p.data,f=c.mulebot,u=f.active;return(0,e.createComponentVNode)(2,t.Box,{children:u?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,s)})}return V}(),s=function(k,S){var p=(0,a.useBackend)(S),i=p.act,c=p.data,f=c.mulebot,u=f.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 m(){return i("AccessBot",{uid:d.uid})}return m}()})},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}()})})]})},y=function(k,S){var p=(0,a.useBackend)(S),i=p.act,c=p.data,f=c.mulebot,u=f.botstatus,d=f.active,m=u.mode,l=u.loca,v=u.load,b=u.powr,N=u.dest,h=u.home,C=u.retn,g=u.pick,x;switch(m){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=m;break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[m===-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:N?N+" (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:v?v+" (Unload)":"None",disabled:!v,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:g?"Yes":"No",selected:g,onClick:function(){function B(){return i("SetAutoPickup",{autoPickupType:g?"pickoff":"pickon"})}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"Yes":"No",selected:C,onClick:function(){function B(){return i("SetAutoReturn",{autoReturnType:C?"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 s(y,V){var k=(0,a.useBackend)(V),S=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 S("Edit")}return c}(),content:"Edit"})]})}return s}()},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 s(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.PowerMonitorMainContent)}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 V(k,S){var p=(0,a.useBackend)(S),i=p.act,c=p.data,f=c.beepsky,u=f.active;return(0,e.createComponentVNode)(2,t.Box,{children:u?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,s)})}return V}(),s=function(k,S){var p=(0,a.useBackend)(S),i=p.act,c=p.data,f=c.beepsky,u=f.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 m(){return i("AccessBot",{uid:d.uid})}return m}()})},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}()})})]})},y=function(k,S){var p=(0,a.useBackend)(S),i=p.act,c=p.data,f=c.beepsky,u=f.botstatus,d=f.active,m=u.mode,l=u.loca,v;switch(m){case 0:v="Ready";break;case 1:v="Apprehending target";break;case 2:case 3:v="Arresting target";break;case 4:v="Starting patrol";break;case 5:v="On patrol";break;case 6:v="Responding to summons";break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[m===-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:v}),(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 s(y,V){var k=(0,a.useBackend)(V),S=k.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:S,recordType:"SEC"})}return s}()},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 s(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p})}return s}()},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 s(y,V){var k=(0,a.useBackend)(V),S=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 S("Status",{statdisp:"blank"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"clock",content:"Evac ETA",onClick:function(){function c(){return S("Status",{statdisp:"shuttle"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"edit",content:"Message",onClick:function(){function c(){return S("Status",{statdisp:"message"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"exclamation-triangle",content:"Red Alert",onClick:function(){function c(){return S("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 S("Status",{statdisp:"alert",alert:"default"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lock",content:"Lockdown",onClick:function(){function c(){return S("Status",{statdisp:"alert",alert:"lockdown"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"biohazard",content:"Biohazard",onClick:function(){function c(){return S("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 S("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 S("Status",{statdisp:"setmsg2"})}return c}()})})]})})}return s}()},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 s(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data,i=p.supply,c=i.shuttle_loc,f=i.shuttle_time,u=i.shuttle_moving,d=i.approved,m=i.approved_count,l=i.requests,v=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 ",f]}):(0,e.createComponentVNode)(2,t.Box,{children:c})})}),(0,e.createComponentVNode)(2,t.Section,{mt:1,title:"Requested Orders",children:v>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:m>0&&d.map(function(b){return(0,e.createComponentVNode)(2,t.Box,{children:["#",b.Number,' - "',b.Name,'" for "',b.ApprovedBy,'"']},b)})})]})}return s}()},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),s=["className","theme","children"],y=["className","scrollable","children"];/** + */var y=r.RequestManager=function(){function p(i,l){var f=(0,t.useBackend)(l),u=f.act,s=f.data,m=s.requests,c=(0,t.useLocalState)(l,"filteredTypes",Object.fromEntries(Object.entries(V).map(function(B){var L=B[0],w=B[1];return[L,!0]}))),v=c[0],b=c[1],g=(0,t.useLocalState)(l,"searchText"),h=g[0],C=g[1],N=m.filter(function(B){return v[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,d.Window,{title:"Request Manager",width:575,height:600,children:(0,e.createComponentVNode)(2,d.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,w){return C(w)}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,S,{request:B})],0,null,B.id)})})})})}return p}(),V={request_prayer:"PRAYER",request_centcom:"CENTCOM",request_syndicate:"SYNDICATE",request_honk:"HONK",request_ert:"ERT",request_nuke:"NUKE CODE"},k=function(i){var l=i.requestType;return(0,e.createVNode)(1,"b","RequestManager__"+l,[V[l],(0,e.createTextVNode)(":")],0)},S=function(i,l){var f=(0,t.useBackend)(l),u=f.act,s=f._,m=i.request;return(0,e.createVNode)(1,"div","RequestManager__controlsContainer",[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function c(){return u("pp",{id:m.id})}return c}(),children:"PP"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function c(){return u("vv",{id:m.id})}return c}(),children:"VV"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function c(){return u("sm",{id:m.id})}return c}(),children:"SM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function c(){return u("tp",{id:m.id})}return c}(),children:"TP"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function c(){return u("logs",{id:m.id})}return c}(),children:"LOGS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function c(){return u("bless",{id:m.id})}return c}(),children:"BLESS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function c(){return u("smite",{id:m.id})}return c}(),children:"SMITE"}),m.req_type!=="request_prayer"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function c(){return u("rply",{id:m.id})}return c}(),children:"RPLY"}),m.req_type==="request_ert"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function c(){return u("ertreply",{id:m.id})}return c}(),children:"ERTREPLY"}),m.req_type==="request_nuke"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function c(){return u("getcode",{id:m.id})}return c}(),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),d=n(13472),y=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},V=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 S(p,i){var l=(0,a.useBackend)(i),f=l.data,u=f.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,theme:f.ui_theme,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,d.RndNavbar),(0,e.createComponentVNode)(2,d.RndRoute,{menu:y.MAIN,render:function(){function s(){return(0,e.createComponentVNode)(2,d.MainMenu)}return s}()}),(0,e.createComponentVNode)(2,d.RndRoute,{menu:y.LEVELS,render:function(){function s(){return(0,e.createComponentVNode)(2,d.CurrentLevels)}return s}()}),(0,e.createComponentVNode)(2,d.RndRoute,{menu:y.DISK,render:function(){function s(){return(0,e.createComponentVNode)(2,d.DataDiskMenu)}return s}()}),(0,e.createComponentVNode)(2,d.RndRoute,{menu:y.DESTROY,render:function(){function s(){return(0,e.createComponentVNode)(2,d.DeconstructionMenu)}return s}()}),(0,e.createComponentVNode)(2,d.RndRoute,{menu:function(){function s(m){return m===y.LATHE||m===y.IMPRINTER}return s}(),render:function(){function s(){return(0,e.createComponentVNode)(2,d.LatheMenu)}return s}()}),(0,e.createComponentVNode)(2,d.RndRoute,{menu:y.SETTINGS,render:function(){function s(){return(0,e.createComponentVNode)(2,d.SettingsMenu)}return s}()}),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 S}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.data,p=S.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),p.map(function(i,l){var f=i.name,u=i.level,s=i.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[l>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:f}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",u]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",s]})]},f)})]})}return d}()},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),d=n(16475),y="design",V="tech",k=function(m,c){var v=(0,a.useBackend)(c),b=v.data,g=v.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 C(){return g("updt_tech")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function C(){return g("clear_tech")}return C}()}),(0,e.createComponentVNode)(2,i)]})]}):null},S=function(m,c){var v=(0,a.useBackend)(c),b=v.data,g=v.act,h=b.disk_data;if(!h)return null;var C=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:C}),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 g("updt_design")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function L(){return g("clear_design")}return L}()}),(0,e.createComponentVNode)(2,i)]})]})},p=function(m,c){var v=(0,a.useBackend)(c),b=v.data,g=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:d.SUBMENU.DISK_COPY,icon:"arrow-down",content:g===V?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,i)]})]})},i=function(m,c){var v=(0,a.useBackend)(c),b=v.data,g=v.act,h=b.disk_type;return h?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function C(){var N=h===V?"eject_tech":"eject_design";g(N)}return C}()}):null},l=function(m,c){var v=(0,a.useBackend)(c),b=v.data,g=b.disk_data,h=b.disk_type,C=function(){if(!g)return(0,e.createComponentVNode)(2,p);switch(h){case y:return(0,e.createComponentVNode)(2,S);case V:return(0,e.createComponentVNode)(2,k);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:C()})},f=function(m,c){var v=(0,a.useBackend)(c),b=v.data,g=v.act,h=b.disk_type,C=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:C.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===V?g("copy_tech",{id:B}):g("copy_design",{id:B})}return L}()})},B)})})})})},u=r.DataDiskMenu=function(){function s(m,c){var v=(0,a.useBackend)(c),b=v.data,g=b.disk_type;return g?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:d.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,l)}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:d.SUBMENU.DISK_COPY,render:function(){function h(){return(0,e.createComponentVNode)(2,f)}return h}()})],4):null}return s}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.data,p=k.act,i=S.loaded_item,l=S.linked_destroy;return l?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(f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+f.name,children:[f.object_level," ",f.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),f.current_level,(0,e.createTextVNode)(")")],0):null]},f.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 f(){p("deconstruct")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function f(){p("eject_item")}return f}()})]}):(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 d}()},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),d=r.LatheCategory=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.data,i=S.act,l=p.category,f=p.matching_designs,u=p.menu,s=u===4,m=s?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:l,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:f.map(function(c){var v=c.id,b=c.name,g=c.can_build,h=c.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:g<1,onClick:function(){function C(){return i(m,{id:v,amount:1})}return C}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function C(){return i(m,{id:v,amount:5})}return C}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function C(){return i(m,{id:v,amount:10})}return C}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.map(function(C){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",C.is_red?"color-red":null,[C.amount,(0,e.createTextVNode)(" "),C.name],0)],0)})})]},v)})})]})}return y}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.data,p=k.act,i=S.loaded_chemicals,l=S.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 f(){var u=l?"disposeallP":"disposeallI";p(u)}return f}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(f){var u=f.volume,s=f.name,m=f.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+u+" of "+s,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function c(){var v=l?"disposeP":"disposeI";p(v,{id:m})}return c}()})},m)})})]})}return d}()},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),d=r.LatheMainMenu=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.data,i=S.act,l=p.menu,f=p.categories,u=l===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:f.map(function(s){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:s,onClick:function(){function m(){i("setCategory",{category:s})}return m}()})},s)})})]})}return y}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.data,p=k.act,i=S.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(l){var f=l.id,u=l.amount,s=l.name,m=function(){function g(h){var C=S.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";p(C,{id:f,amount:h})}return g}(),c=Math.floor(u/2e3),v=u<1,b=c===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:v?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",u," of ",s]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",c," 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 g(){return m(1)}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function g(){return m("custom")}return g}()}),u>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function g(){return m(5)}return g}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function g(){return m(50)}return g}()})],0):null})]},f)})})})}return d}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.data,p=S.total_materials,i=S.max_materials,l=S.max_chemicals,f=S.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:f}),l?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+l}):null]})]})})}return d}()},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),d=n(36036),y=n(16475),V=r.LatheMenu=function(){function k(S,p){var i=(0,a.useBackend)(p),l=i.data,f=l.menu,u=l.linked_lathe,s=l.linked_imprinter;return f===4&&!u?(0,e.createComponentVNode)(2,d.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):f===5&&!s?(0,e.createComponentVNode)(2,d.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,d.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:y.SUBMENU.MAIN,render:function(){function m(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return m}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:y.SUBMENU.LATHE_CATEGORY,render:function(){function m(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return m}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:y.SUBMENU.LATHE_MAT_STORAGE,render:function(){function m(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return m}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:y.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function m(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return m}()})]})}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 d(y,V){var k=(0,a.useBackend)(V),S=k.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function p(i,l){return S("search",{to_search:l})}return p}()})})}return d}()},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),d=n(16475),y=r.MainMenu=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.data,l=i.disk_type,f=i.linked_destroy,u=i.linked_lathe,s=i.linked_imprinter,m=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:!l,menu:d.MENU.DISK,submenu:d.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!f,menu:d.MENU.DESTROY,submenu:d.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!u,menu:d.MENU.LATHE,submenu:d.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!s,menu:d.MENU.IMPRINTER,submenu:d.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:d.MENU.SETTINGS,submenu:d.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:m.map(function(c){var v=c.name,b=c.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:v,children:b},v)})})]})}return V}()},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 d(y,V){var k=y.icon,S=y.children,p=y.disabled,i=y.content,l=(0,a.useBackend)(V),f=l.data,u=l.act,s=f.menu,m=f.submenu,c=s,v=m;return y.menu!==null&&y.menu!==void 0&&(c=y.menu),y.submenu!==null&&y.submenu!==void 0&&(v=y.submenu),(0,e.createComponentVNode)(2,t.Button,{content:i,icon:k,disabled:p,onClick:function(){function b(){u("nav",{menu:c,submenu:v})}return b}(),children:S})}return d}()},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),d=r.RndNavbar=function(){function y(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function V(k){return k!==o.MENU.MAIN}return V}(),render:function(){function V(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return V}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function V(k){return k!==o.SUBMENU.MAIN}return V}(),render:function(){function V(){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 V}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function V(k){return k===o.MENU.LATHE||k===o.MENU.IMPRINTER}return V}(),submenu:o.SUBMENU.MAIN,render:function(){function V(){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 V}()})]})}return y}()},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,d){var y=o.render,V=(0,e.useBackend)(d),k=V.data,S=k.menu,p=k.submenu,i=function(){function f(u,s){return u==null?!0:typeof u=="function"?u(s):u===s}return f}(),l=i(o.menu,S)&&i(o.submenu,p);return l?y():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),d=n(16475),y=r.SettingsMenu=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.data,l=p.act,f=i.sync,u=i.admin,s=i.linked_destroy,m=i.linked_lathe,c=i.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:d.SUBMENU.MAIN,render:function(){function v(){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:!f,onClick:function(){function b(){l("sync")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:f,onClick:function(){function b(){l("togglesync")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!f,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function b(){l("togglesync")}return b}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!f,content:"Device Linkage Menu",icon:"link",menu:d.MENU.SETTINGS,submenu:d.SUBMENU.SETTINGS_DEVICES}),u===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function b(){return l("maxresearch")}return b}()}):null]})})}return v}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:d.SUBMENU.SETTINGS_DEVICES,render:function(){function v(){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 l("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:[s?(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 l("disconnect",{item:"destroy"})}return b}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),m?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function b(){l("disconnect",{item:"lathe"})}return b}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),c?(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 l("disconnect",{item:"imprinter"})}return b}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return v}()})]})}return V}()},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 d=n(52285);r.LatheChemicalStorage=d.LatheChemicalStorage;var y=n(71964);r.LatheMainMenu=y.LatheMainMenu;var V=n(83706);r.LatheMaterials=V.LatheMaterials;var k=n(17906);r.LatheMaterialStorage=k.LatheMaterialStorage;var S=n(76749);r.LatheMenu=S.LatheMenu;var p=n(74698);r.LatheSearch=p.LatheSearch;var i=n(17180);r.MainMenu=i.MainMenu;var l=n(94942);r.RndNavbar=l.RndNavbar;var f=n(63459);r.RndNavButton=f.RndNavButton;var u=n(12059);r.RndRoute=u.RndRoute;var s=n(52580);r.SettingsMenu=s.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),d=n(98595),y=r.RoboQuest=function(){function V(k,S){var p=(0,t.useBackend)(S),i=p.act,l=p.data,f=l.hasID,u=l.name,s=l.questInfo,m=l.hasTask,c=l.canCheck,v=l.canSend,b=l.checkMessage,g=l.style,h=l.cooldown,C=l.shopItems,N=l.points,x=l.cats,B=(0,t.useLocalState)(S,"shopState",!1),L=B[0],w=B[1],A={medical:"blue",working:"brown",security:"red",working_medical:"olive",medical_security:"violet",working_medical_security:"grey"};return(0,e.createComponentVNode)(2,d.Window,{theme:g,width:1e3,height:540,children:(0,e.createComponentVNode)(2,d.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:40,children:[!L&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Mecha",buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Check Mech",icon:"search",disabled:!f||!m||!c||h,onClick:function(){function T(){return i("Check")}return T}()}),children:[(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:60,textAlign:"center",align:"center",children:!!m&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest_large128x128",s.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:!!m&&s.modules.map(function(T){return T.id<4&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest64x64",T.icon]),null,1,null,T.id)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!m&&s.modules.map(function(T){return T.id>3&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest64x64",T.icon]),null,1,null,T.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)]}),!!L&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:(0,e.createComponentVNode)(2,o.Box,{children:["Corps bounties",(0,e.createComponentVNode)(2,o.Box,{children:["Points: ",(0,e.createVNode)(1,"b",null,N.working,0,{style:{color:"brown"}}),"|",(0,e.createVNode)(1,"b",null,N.medical,0,{style:{color:"lightblue"}}),"|",(0,e.createVNode)(1,"b",null,N.security,0,{style:{color:"red"}})]})]}),children:Object.keys(C).map(function(T){return(0,e.createFragment)(!(C[T]===void 0||C[T].length===0||T==="robo")&&C[T].map(function(E){return(0,e.createComponentVNode)(2,o.ImageButton,{asset:!0,color:A[T],image:E.icon,imageAsset:"roboquest64x64",title:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,inline:!0,children:[E.name," ",(0,e.createVNode)(1,"b",null,E.cost.working,0,{style:{color:"brown"}}),"|",(0,e.createVNode)(1,"b",null,E.cost.medical,0,{style:{color:"lightblue"}}),"|",(0,e.createVNode)(1,"b",null,E.cost.security,0,{style:{color:"red"}})]}),content:E.desc,onClick:function(){function O(){return i("buyItem",{item:E.path})}return O}()},E.path)}),0,T)})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:20,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Other",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Shop",icon:"shopping-cart",onClick:function(){function T(){return w(!L)}return T}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"cog",onClick:function(){function T(){return i("ChangeStyle")}return T}()})],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.createComponentVNode)(2,o.Stack.Item,{basis:38,children:[!L&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Info",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"id-card",content:"Eject ID",disabled:!f,onClick:function(){function T(){return i("RemoveID")}return T}()}),!m&&(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-down",content:"Get Task",disabled:!f||h,onClick:function(){function T(){return i("GetTask")}return T}()}),!!m&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Print",icon:"print",onClick:function(){function T(){return i("printOrder")}return T}(),disabled:!m}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"Remove Task",disabled:!f||h,onClick:function(){function T(){return i("RemoveTask")}return T}()})],4)],0),children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",mb:"1rem",children:[(0,e.createVNode)(1,"b",null,"Name: ",16),s.name,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Desc: ",16),s.desc]}),(0,e.createComponentVNode)(2,o.Section,{title:"Modules",level:2,children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",mb:"0.5rem",children:!!m&&s.modules.map(function(T){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Module "),T.id],0),(0,e.createTextVNode)(": "),T.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br")],0,T.id)})})}),(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"15rem",bold:!0,content:"Send Mech",textAlign:"center",disabled:!f||!m||!v||h,onClick:function(){function T(){return i("SendMech",{type:"send"})}return T}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"15rem",bold:!0,content:"Pack",textAlign:"center",disabled:!f||!m||!v||h,onClick:function(){function T(){return i("SendMech",{type:"only_packing"})}return T}()})]})]}),!!L&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createTextVNode)("RoboQuest Shop"),(0,e.createComponentVNode)(2,o.Box,{children:["Points: ",N.robo]})],4),children:C.robo.map(function(T){return(!T.emagOnly||g==="syndicate")&&(0,e.createComponentVNode)(2,o.ImageButton,{asset:!0,color:"purple",image:T.icon,imageAsset:"roboquest64x64",title:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,inline:!0,children:[T.name," ",(0,e.createVNode)(1,"b",null,T.cost.robo,0,{style:{color:"purple"}})]}),content:T.desc,onClick:function(){function E(){return i("buyItem",{item:T.path})}return E}()},T.name)})})]})]})})})}return V}()},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),d=n(25328),y=function(S,p){var i=S/p;return i<=.2?"good":i<=.5?"average":"bad"},V=r.RobotSelfDiagnosis=function(){function k(S,p){var i=(0,a.useBackend)(p),l=i.data,f=l.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:f.map(function(u,s){return(0,e.createComponentVNode)(2,t.Section,{title:(0,d.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:y(u.brute_damage,u.max_damage),children:u.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:y(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"})]})})]})},s)})})})}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),d=r.RoboticsControlConsole=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.can_hack,u=l.safety,s=l.show_detonate_all,m=l.cyborgs,c=m===void 0?[]:m;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!s&&(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 v(){return i("arm",{})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",disabled:u,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){function v(){return i("nuke",{})}return v}()})]}),(0,e.createComponentVNode)(2,y,{cyborgs:c,can_hack:f})]})})}return V}(),y=function(k,S){var p=k.cyborgs,i=k.can_hack,l=(0,a.useBackend)(S),f=l.act,u=l.data;return p.length?p.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createFragment)([!!s.hackable&&!s.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function m(){return f("hackbot",{uid:s.uid})}return m}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:s.locked_down?"unlock":"lock",color:s.locked_down?"good":"default",content:s.locked_down?"Release":"Lockdown",disabled:!u.auth,onClick:function(){function m(){return f("stopbot",{uid:s.uid})}return m}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!u.auth,color:"bad",onClick:function(){function m(){return f("killbot",{uid:s.uid})}return m}()})],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:s.status?"bad":s.locked_down?"average":"good",children:s.status?"Not Responding":s.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:s.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.health>50?"good":"bad",value:s.health/100})}),typeof s.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.charge>30?"good":"bad",value:s.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:s.cell_capacity<3e4?"average":"good",children:s.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"})}),!!s.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:s.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:s.synchronization?"default":"average",children:s.synchronization||"None"})})]})},s.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),d=n(98595),y=r.Safe=function(){function p(i,l){var f=(0,t.useBackend)(l),u=f.act,s=f.data,m=s.dial,c=s.open,v=s.locked,b=s.contents;return(0,e.createComponentVNode)(2,d.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,d.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,V),(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"),c?(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*m+"deg)","z-index":0}})]}),!c&&(0,e.createComponentVNode)(2,S)]})})}return p}(),V=function(i,l){var f=(0,t.useBackend)(l),u=f.act,s=f.data,m=s.dial,c=s.open,v=s.locked,b=function(h,C){return(0,e.createComponentVNode)(2,o.Button,{disabled:c||C&&!v,icon:"arrow-"+(C?"right":"left"),content:(C?"Right":"Left")+" "+h,iconRight:C,onClick:function(){function N(){return u(C?"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:v,icon:c?"lock":"lock-open",content:c?"Close":"Open",mb:"0.5rem",onClick:function(){function g(){return u("open")}return g}()}),(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:m})]})},k=function(i,l){var f=(0,t.useBackend)(l),u=f.act,s=f.data,m=s.contents;return(0,e.createComponentVNode)(2,o.Box,{className:"Safe--contents",overflow:"auto",children:m.map(function(c,v){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{mb:"0.5rem",onClick:function(){function b(){return u("retrieve",{index:v+1})}return b}(),children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:c.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),c.name]}),(0,e.createVNode)(1,"br")],4,c)})})},S=function(i,l){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),d=r.SatelliteControl=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.satellites,f=i.notice,u=i.meteor_shield,s=i.meteor_shield_coverage,m=i.meteor_shield_coverage_max,c=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:c>=100?"good":"average",value:s,maxValue:m,children:[c," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:i.notice}),l.map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+v.id,children:[v.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:v.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function b(){return p("toggle",{id:v.id})}return b}()})]},v.id)})]})})]})})}return y}()},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),d=r.SecureStorage=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.emagged,f=i.locked,u=i.l_set,s=i.l_setshort,m=i.current_code,c=function(){function v(b){var g=b.buttonValue,h=b.color;return h||(h="default"),(0,e.createComponentVNode)(2,t.Button,{disabled:l||s,type:"button",color:h,onClick:function(){function C(){return p("setnumber",{buttonValue:g})}return C}(),children:g})}return v}();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,c,{buttonValue:"1"}),(0,e.createComponentVNode)(2,c,{buttonValue:"2"}),(0,e.createComponentVNode)(2,c,{buttonValue:"3"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,c,{buttonValue:"4"}),(0,e.createComponentVNode)(2,c,{buttonValue:"5"}),(0,e.createComponentVNode)(2,c,{buttonValue:"6"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,c,{buttonValue:"7"}),(0,e.createComponentVNode)(2,c,{buttonValue:"8"}),(0,e.createComponentVNode)(2,c,{buttonValue:"9"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,c,{buttonValue:"R",color:"red"}),(0,e.createComponentVNode)(2,c,{buttonValue:"0"}),(0,e.createComponentVNode)(2,c,{buttonValue:"E",color:"green"})]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Current Status",children:l||s?(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:l?"LOCKING SYSTEM ERROR - 1701":"ALERT: MEMORY SYSTEM ERROR - 6040 201"})}),l?(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:f?"red":"green",children:f?"Locked":"Unlocked"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Code",children:(0,e.createComponentVNode)(2,t.Box,{children:m||"Waiting for input"})}),(0,e.createComponentVNode)(2,t.Button,{top:".35em",left:".5em",disabled:f,color:"red",content:"Lock",icon:"lock",onClick:function(){function v(){return p("close")}return v}()})]})})]})})}return y}()},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),d=n(98595),y=n(3939),V=n(321),k=n(5485),S=n(22091),p={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},i=function(C,N){(0,y.modalOpen)(C,"edit",{field:N.edit,value:N.value})},l=r.SecurityRecords=function(){function h(C,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,w=L.loginState,A=L.currentPage,T;if(w.logged_in)A===1?T=(0,e.createComponentVNode)(2,u):A===2?T=(0,e.createComponentVNode)(2,c):A===3&&(T=(0,e.createComponentVNode)(2,v));else return(0,e.createComponentVNode)(2,d.Window,{width:800,height:900,theme:"security",children:(0,e.createComponentVNode)(2,d.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});return(0,e.createComponentVNode)(2,d.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,y.ComplexModal),(0,e.createComponentVNode)(2,d.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,S.TemporaryNotice),(0,e.createComponentVNode)(2,f),T]})})]})}return h}(),f=function(C,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,w=L.currentPage,A=L.general;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:w===1,onClick:function(){function T(){return B("page",{page:1})}return T}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"list"}),"List Records"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:w===2,onClick:function(){function T(){return B("page",{page:2})}return T}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wrench"}),"Record Maintenance"]}),w===3&&A&&!A.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:w===3,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"file"}),"Record: ",A.fields[0].value]})]})},u=function(C,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,w=L.records,A=(0,t.useLocalState)(N,"searchText",""),T=A[0],E=A[1],O=(0,t.useLocalState)(N,"sortId","name"),P=O[0],R=O[1],F=(0,t.useLocalState)(N,"sortOrder",!0),j=F[0],W=F[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,m)}),(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,s,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,s,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,s,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,s,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,s,{id:"status",children:"Criminal Status"})]}),w.filter((0,a.createSearch)(T,function(H){return H.name+"|"+H.id+"|"+H.rank+"|"+H.fingerprint+"|"+H.status})).sort(function(H,z){var $=j?1:-1;return H[P].localeCompare(z[P])*$}).map(function(H){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+p[H.status],onClick:function(){function z(){return B("view",{uid_gen:H.uid_gen,uid_sec:H.uid_sec})}return z}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",H.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.status})]},H.id)})]})})})],4)},s=function(C,N){var x=(0,t.useLocalState)(N,"sortId","name"),B=x[0],L=x[1],w=(0,t.useLocalState)(N,"sortOrder",!0),A=w[0],T=w[1],E=C.id,O=C.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!==E&&"transparent",fluid:!0,onClick:function(){function P(){B===E?T(!A):(L(E),T(!0))}return P}(),children:[O,B===E&&(0,e.createComponentVNode)(2,o.Icon,{name:A?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},m=function(C,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,w=L.isPrinting,A=(0,t.useLocalState)(N,"searchText",""),T=A[0],E=A[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:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Cell Log",onClick:function(){function O(){return(0,y.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(P,R){return E(R)}return O}()})})]})},c=function(C,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}()})]})},v=function(C,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,w=L.isPrinting,A=L.general,T=L.security;return!A||!A.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:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Record",onClick:function(){function E(){return B("print_record")}return E}()}),(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 E(){return B("delete_general")}return E}()})],4),children:(0,e.createComponentVNode)(2,b)})}),!T||!T.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 E(){return B("new_security")}return E}()}),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:T.empty,content:"Delete Record",onClick:function(){function E(){return B("delete_security")}return E}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:T.fields.map(function(E,O){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:E.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(E.value),!!E.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:E.line_break?"1rem":"initial",onClick:function(){function P(){return i(N,E)}return P}()})]},O)})})})})}),(0,e.createComponentVNode)(2,g)],4)],0)},b=function(C,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(w,A){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+w.value),!!w.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:w.line_break?"1rem":"initial",onClick:function(){function T(){return i(N,w)}return T}()})]},A)})})}),!!L.has_photos&&L.photos.map(function(w,A){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:w,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",A+1]},A)})]})},g=function(C,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,w=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 A(){return(0,y.modalOpen)(N,"comment_add")}return A}()}),children:w.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):w.comments.map(function(A,T){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:A.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),A.text||A,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function E(){return B("comment_delete",{id:T+1})}return E}()})]},T)})})})}},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),d=n(36036),y=n(98595),V=n(3939);function k(m,c){var v=typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(v)return(v=v.call(m)).next.bind(v);if(Array.isArray(m)||(v=S(m))||c&&m&&typeof m.length=="number"){v&&(m=v);var b=0;return function(){return b>=m.length?{done:!0}:{done:!1,value:m[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 S(m,c){if(m){if(typeof m=="string")return p(m,c);var v={}.toString.call(m).slice(8,-1);return v==="Object"&&m.constructor&&(v=m.constructor.name),v==="Map"||v==="Set"?Array.from(m):v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v)?p(m,c):void 0}}function p(m,c){(c==null||c>m.length)&&(c=m.length);for(var v=0,b=Array(c);v=T},g=function(A,T){return A<=T},h=c.split(" "),C=[],N=function(){var A=L.value,T=A.split(":");if(T.length===0)return 0;if(T.length===1)return C.push(function(P){return(P.name+" ("+P.variant+")").toLocaleLowerCase().includes(T[0].toLocaleLowerCase())}),0;if(T.length>2)return{v:function(){function P(R){return!1}return P}()};var E,O=v;if(T[1][T[1].length-1]==="-"?(O=g,E=Number(T[1].substring(0,T[1].length-1))):T[1][T[1].length-1]==="+"?(O=b,E=Number(T[1].substring(0,T[1].length-1))):E=Number(T[1]),isNaN(E))return{v:function(){function P(R){return!1}return P}()};switch(T[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":C.push(function(P){return O(P.lifespan,E)});break;case"e":case"end":case"endurance":C.push(function(P){return O(P.endurance,E)});break;case"m":case"mat":case"maturation":C.push(function(P){return O(P.maturation,E)});break;case"pr":case"prod":case"production":C.push(function(P){return O(P.production,E)});break;case"y":case"yield":C.push(function(P){return O(P.yield,E)});break;case"po":case"pot":case"potency":C.push(function(P){return O(P.potency,E)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":C.push(function(P){return O(P.amount,E)});break;default:return{v:function(){function P(R){return!1}return P}()}}},x,B=k(h),L;!(L=B()).done;)if(x=N(),x!==0&&x)return x.v;return function(w){for(var A=0,T=C;A=1?Number(O):1)}return T}()})]})]})}},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),d=r.ShuttleConsole=function(){function p(i,l){var f=(0,a.useBackend)(l),u=f.act,s=f.data,m=i.type,c=m===void 0?"shuttle":m,v=i.blind_drop,b=s.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:c==="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 g(){return u("request")}return g}()})})]}),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,S,{type:c,blind_drop:v})})]})}return p}(),y=function(i,l){var f;return i==null||(f=i.find(function(u){return u.id===l}))==null?void 0:f.name},V=function(i,l){var f;return i==null||(f=i.find(function(u){return u.name===l}))==null?void 0:f.id},k={"In Transit":"good",Idle:"average",Igniting:"average",Recharging:"average",Missing:"bad","Unauthorized Access":"bad",Locked:"bad"},S=r.ShuttleConsoleContent=function(){function p(i,l){var f=(0,a.useBackend)(l),u=f.act,s=f.data,m=i.type,c=i.blind_drop,v=s.status,b=s.locked,g=s.authorization_required,h=s.destination,C=s.docked_location,N=s.timer_str,x=s.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[v]||"bad",ml:1,children:v||"Not Available"})]}),(0,e.createComponentVNode)(2,t.Section,{title:m==="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:C||"Not Available"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",buttons:m!=="shuttle"&&B.length===0&&!!c&&(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"exclamation-triangle",disabled:g||!c,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:y(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||g,selected:y(B,h)||"Select a Destination",onSelected:function(){function L(w){return u("set_destination",{destination:V(B,w)})}return L}()})})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Depart",disabled:!y(B,h)||b||g||v!=="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),d=r.ShuttleManipulator=function(){function S(p,i){var l=(0,a.useLocalState)(i,"tabIndex",0),f=l[0],u=l[1],s=function(){function m(c){switch(c){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,V);case 2:return(0,e.createComponentVNode)(2,k);default:return"WE SHOULDN'T BE HERE!"}}return m}();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:f===0,onClick:function(){function m(){return u(0)}return m}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===1,onClick:function(){function m(){return u(1)}return m}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===2,onClick:function(){function m(){return u(2)}return m}(),icon:"tools",children:"Modification"},"Modification")]}),s(f)]})})})}return S}(),y=function(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data,s=u.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:s.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{title:m.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:m.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:m.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:m.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:m.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 c(){return f("jump_to",{type:"mobile",id:m.id})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function c(){return f("fast_travel",{id:m.id})}return c}()})]})]})},m.name)})})},V=function(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data,s=u.templates_tabs,m=u.existing_shuttle,c=u.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:s.map(function(v){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===m.id,icon:"file",onClick:function(){function b(){return f("select_template_category",{cat:v})}return b}(),children:v},v)})}),!!m&&c[m.id].templates.map(function(v){return(0,e.createComponentVNode)(2,t.Section,{title:v.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:v.description}),v.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:v.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 f("select_template",{shuttle_id:v.shuttle_id})}return b}()})})]})},v.name)})]})},k=function(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data,s=u.existing_shuttle,m=u.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[s?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:s.status}),s.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:s.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 c(){return f("jump_to",{type:"mobile",id:s.id})}return c}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),m?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+m.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:m.description}),m.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:m.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 c(){return f("preview",{shuttle_id:m.shuttle_id})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function c(){return f("load",{shuttle_id:m.shuttle_id})}return c}()})]})]})}):(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),d=n(98595),y=[["good","Alive"],["average","Critical"],["bad","DEAD"]],V=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],k={average:[.25,.5],bad:[.5,1/0]},S=["bad","average","average","good","average","average","bad"],p=r.Sleeper=function(){function c(v,b){var g=(0,t.useBackend)(b),h=g.act,C=g.data,N=C.hasOccupant,x=N?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,m);return(0,e.createComponentVNode)(2,d.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,d.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 c}(),i=function(v,b){var g=(0,t.useBackend)(b),h=g.act,C=g.data,N=C.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,s)],4)},l=function(v,b){var g=(0,t.useBackend)(b),h=g.act,C=g.data,N=C.occupant,x=C.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:y[N.stat][0],children:y[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:S[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)]})})},f=function(v,b){var g=(0,t.useBackend)(b),h=g.data,C=h.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:V.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:C[N[1]]/100,ranges:k,children:(0,a.round)(C[N[1]],0)},x)},x)})})})},u=function(v,b){var g=(0,t.useBackend)(b),h=g.act,C=g.data,N=C.hasOccupant,x=C.isBeakerLoaded,B=C.beakerMaxSpace,L=C.beakerFreeSpace,w=C.dialysis,A=w&&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:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function T(){return h("togglefilter")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!x,icon:"eject",content:"Eject",onClick:function(){function T(){return h("removebeaker")}return T}()})],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."})})},s=function(v,b){var g=(0,t.useBackend)(b),h=g.act,C=g.data,N=C.occupant,x=C.chemicals,B=C.maxchem,L=C.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:x.map(function(w,A){var T="",E;return w.overdosing?(T="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):w.od_warning&&(T="average",E=(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:w.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B,value:w.occ_amount/B,color:T,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[w.pretty_amount,"/",B,"u"]}),L.map(function(O,P){return(0,e.createComponentVNode)(2,o.Button,{disabled:!w.injectable||w.occ_amount+O>B||N.stat===2,icon:"syringe",content:"Inject "+O+"u",title:"Inject "+O+"u of "+w.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function R(){return h("chemical",{chemid:w.id,amount:O})}return R}()},P)})]})})},A)})})},m=function(v,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),d=r.SlotMachine=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.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 l;return i.plays===1?l=i.plays+" player has tried their luck today!":l=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:l}),(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 f(){return p("spin")}return f}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:i.resultlvl,children:i.result})]})})})}return y}()},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),d=r.Smartfridge=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.secure,f=i.can_dry,u=i.drying,s=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:[!!l&&(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:f?"Drying rack":"Contents",buttons:!!f&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:u?"power-off":"times",content:u?"On":"Off",selected:u,onClick:function(){function m(){return p("drying")}return m}()}),children:[!s&&(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."]})}),!!s&&s.slice().sort(function(m,c){return m.display_name.localeCompare(c.display_name)}).map(function(m){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:m.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",m.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 c(){return p("vend",{index:m.vend,amount:1})}return c}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:m.quantity,step:1,stepPixelSize:3,onChange:function(){function c(v,b){return p("vend",{index:m.vend,amount:b})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function c(){return p("vend",{index:m.vend,amount:m.quantity})}return c}()})]})]},m)})]})]})})})}return y}()},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),d=n(98595),y=1e3,V=r.Smes=function(){function k(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.capacityPercent,s=f.capacity,m=f.charge,c=f.inputAttempt,v=f.inputting,b=f.inputLevel,g=f.inputLevelMax,h=f.inputAvailable,C=f.outputPowernet,N=f.outputAttempt,x=f.outputting,B=f.outputLevel,L=f.outputLevelMax,w=f.outputUsed,A=u>=100&&"good"||v&&"average"||"bad",T=x&&"good"||m>0&&"average"||"bad";return(0,e.createComponentVNode)(2,d.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,d.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:c?"sync-alt":"times",selected:c,onClick:function(){function E(){return l("tryinput")}return E}(),children:c?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:u>=100&&"Fully Charged"||v&&"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 E(){return l("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:b===0,onClick:function(){function E(){return l("input",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:b/y,fillValue:h/y,minValue:0,maxValue:g/y,step:5,stepPixelSize:4,format:function(){function E(O){return(0,o.formatPower)(O*y,1)}return E}(),onChange:function(){function E(O,P){return l("input",{target:P*y})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:b===g,onClick:function(){function E(){return l("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:b===g,onClick:function(){function E(){return l("input",{target:"max"})}return E}()})]})]})}),(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 E(){return l("tryoutput")}return E}(),children:N?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:T,children:C?x?"Sending":m>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 E(){return l("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:B===0,onClick:function(){function E(){return l("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:B/y,minValue:0,maxValue:L/y,step:5,stepPixelSize:4,format:function(){function E(O){return(0,o.formatPower)(O*y,1)}return E}(),onChange:function(){function E(O,P){return l("output",{target:P*y})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:B===L,onClick:function(){function E(){return l("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:B===L,onClick:function(){function E(){return l("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(w)})]})})]})})})}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),d=r.SolarControl=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=0,f=1,u=2,s=i.generated,m=i.generated_ratio,c=i.tracking_state,v=i.tracking_rate,b=i.connected_panels,g=i.connected_tracker,h=i.cdir,C=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:g?"good":"bad",children:g?"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:m,children:s+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[h,"\xB0 (",C,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[c===u&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),c===f&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",v,"\xB0/h (",N,")"," "]}),c===l&&(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:[c!==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}()}),c===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:c===l,onClick:function(){function x(){return p("track",{track:l})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:c===f,onClick:function(){function x(){return p("track",{track:f})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:c===u,disabled:!g,onClick:function(){function x(){return p("track",{track:u})}return x}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[c===f&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:v,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}()}),c===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),c===u&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return y}()},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),d=r.SpawnersMenu=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=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:l.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:f.name+" ("+f.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:f.uids})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function u(){return p("spawn",{ID:f.uids})}return u}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:f.desc}),!!f.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:f.fluff}),!!f.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:f.important_info})]},f.name)})})})})}return y}()},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),d=n(98595);function y(m,c){m.prototype=Object.create(c.prototype),m.prototype.constructor=m,V(m,c)}function V(m,c){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,b){return v.__proto__=b,v},V(m,c)}var k=r.SpiderOS=function(){function m(c,v){var b=(0,a.useBackend)(v),g=b.act,h=b.data,C;return h.suit_tgui_state===0?C=(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,l)}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2.2,backgroundColor:"rgba(0, 0, 0, 0)",children:(0,e.createComponentVNode)(2,f)})]}),(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,S),(0,e.createComponentVNode)(2,p)]})]}):h.suit_tgui_state===1&&(C=(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,s,{allMessages:h.current_load_text,finishedTimeout:3e3,current_initialisation_phase:h.current_initialisation_phase,end_terminal:h.end_terminal,onFinished:function(){function N(){return g("set_UI_state",{suit_tgui_state:0})}return N}()})]})})),(0,e.createComponentVNode)(2,d.Window,{width:800,height:630,theme:"spider_clan",children:(0,e.createComponentVNode)(2,d.Window.Content,{children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",spacing:1,children:C})})})}return m}(),S=function(c,v){var b=(0,a.useBackend)(v),g=b.data,h=g.allStylesPreview,C=g.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"},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.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+h[C],style:{"margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})})})})},p=function(c,v){var b=(0,a.useBackend)(v),g=b.act,h=b.data,C=h.designs,N=h.design_choice,x=h.scarf_design_choice,B=h.colors,L=h.color_choice,w=h.genders,A=h.preferred_clothes_gender,T=h.suit_state,E=h.preferred_scarf_over_hood,O=h.show_charge_UI,P=h.has_martial_art,R=h.show_concentration_UI,F;T===0?F="\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C":F="\u0414\u0435\u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C";var j;E===0?j="\u041A\u0430\u043F\u044E\u0448\u043E\u043D":j="\u0428\u0430\u0440\u0444";var W;E===1?W=(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:C,selected:x,onSelected:function(){function z($){return g("set_scarf_design",{scarf_design_choice:$})}return z}()})}):W=null;var H;return P?H=(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:R,width:"78px",textAlign:"left",content:R?"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C":"\u0421\u043A\u0440\u044B\u0442\u044C",onClick:function(){function z(){return g("toggle_ui_concentration")}return z}()}),(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"})]})}):H=null,(0,e.createComponentVNode)(2,t.Flex,{direction:"row",grow:1,alignContent:"center",ml:.5,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:C,selected:N,onSelected:function(){function z($){return g("set_design",{design_choice:$})}return z}()})}),(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 z($){return g("set_color",{color_choice:$})}return z}()})}),(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:w,selected:A,onSelected:function(){function z($){return g("set_gender",{preferred_clothes_gender:$})}return z}()})}),(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:T===0?"":"Button_disabled",width:"90px",selected:E,disabled:T,textAlign:"left",content:j,onClick:function(){function z(){return g("toggle_scarf")}return z}()}),(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"})]}),W,(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 z(){return g("toggle_ui_charge")}return z}()}),(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"})]}),H]})}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_"+L,success:0,danger:0,mt:-1.2,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{width:"80%",icon:"power-off",mt:.5,textAlign:"center",content:F,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 z(){return g("initialise_suit")}return z}()})})]})})},i=function(c,v){var b=(0,a.useBackend)(v),g=b.data,h=g.allActionsPreview;return(0,e.createComponentVNode)(2,t.Section,{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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.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"})]})]})})})},l=function(c,v){var b=(0,a.useBackend)(v),g=b.act,h=b.data,C=h.allActionsPreview,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,{title:"\u041F\u0440\u0438\u0437\u0440\u0430\u043A",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 g("give_ability",{style:"smoke",row:"1"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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 g("give_ability",{style:"ninja_cloak",row:"2"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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 g("give_ability",{style:"ninja_clones",row:"3"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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 g("give_ability",{style:"chameleon",row:"4"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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 g("give_ability",{style:"ninja_spirit_form",row:"5"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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,{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 g("give_ability",{style:"kunai",row:"1"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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 g("give_ability",{style:"chem_injector",row:"2"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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 g("give_ability",{style:"emergency_blink",row:"3"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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 g("give_ability",{style:"caltrop",row:"4"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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 g("give_ability",{style:"cloning",row:"5"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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,{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 g("give_ability",{style:"shuriken",row:"1"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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 g("give_ability",{style:"adrenal",row:"2"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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 g("give_ability",{style:"emp",row:"3"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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 g("give_ability",{style:"energynet",row:"4"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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 g("give_ability",{style:"spider_red",row:"5"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C.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"})]})]})]})]})})},f=r.ShuttleConsole=function(){function m(c,v){var b=(0,a.useBackend)(v),g=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",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(C){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:C.name,onClick:function(){function N(){return g("move",{move:C.id})}return N}()},C.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 C(){return g("request")}return C}()})})],0))]})})})}return m}(),u=function(c,v){var b=(0,a.useBackend)(v),g=b.data,h=g.randomPercent,C=g.allActionsPreview,N=g.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.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+C["spider_"+N],style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Loading ",h+"%"]}),2)})})},s=function(m){function c(b){var g;return g=m.call(this,b)||this,g.timer=null,g.state={lastText:"text do be there",currentDisplay:[]},g}y(c,m);var v=c.prototype;return v.tick=function(){function b(){var g=this.props,h=this.state;if(g.allMessages!==h.lastText&&!g.end_terminal){var C=h.currentDisplay;C.push(g.allMessages),h.lastText=g.allMessages}else g.end_terminal&&(clearTimeout(this.timer),setTimeout(g.onFinished,g.finishedTimeout))}return b}(),v.componentDidMount=function(){function b(){var g=this,h=this.props.linesPerSecond,C=h===void 0?2.5:h;this.timer=setInterval(function(){return g.tick()},1e3/C)}return b}(),v.componentWillUnmount=function(){function b(){clearTimeout(this.timer)}return b}(),v.render=function(){function b(){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:this.state.currentDisplay.map(function(g){return(0,e.createFragment)([g,(0,e.createVNode)(1,"br")],0,g)})})}return b}(),c}(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),d=r.StationAlertConsole=function(){function V(){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,y)})})}return V}(),y=r.StationAlertConsoleContent=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.data,l=i.alarms||[];return Object.keys(l).map(function(f){var u,s;return(0,e.createComponentVNode)(2,t.Section,{title:f+" Alarms",children:(0,e.createVNode)(1,"ul",null,((u=l[f])==null?void 0:u.length)===0?(0,e.createVNode)(1,"li","color-good","Systems Nominal",16):(s=l[f])==null?void 0:s.map(function(m){return(0,e.createVNode)(1,"li","color-average",m,0,null,m)}),0)},f)})}return V}()},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),d=n(36036),y=n(98595),V=5,k=9,S=function(b){return b===0?5:9},p="64px",i=function(b){return b[0]+"/"+b[1]},l=function(b){var g=b.align,h=b.children;return(0,e.createComponentVNode)(2,d.Box,{style:{position:"absolute",left:g==="left"?"6px":"48px","text-align":g,"text-shadow":"2px 2px 2px #000",top:"2px"},children:h})},f={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,l,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:i([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,l,{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"}},s={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,l,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:i([4,5]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,l,{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"}},m=function(v){return v[v.Completely=1]="Completely",v[v.Hidden=2]="Hidden",v}(m||{}),c=r.StripMenu=function(){function v(b,g){var h=(0,o.useBackend)(g),C=h.act,N=h.data,x=new Map;if(N.show_mode===0)for(var B=0,L=Object.keys(N.items);B300?"bad":f>150?"average":"good"},k=function(f){return f>5e3?"bad":f>4e3?"average":"good"},S=function(f){return f>1e4?"bad":f>5e3?"average":"good"},p=function(f,u){var s=(0,a.useBackend)(u),m=s.act,c=s.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 v(){return m("refresh")}return v}()}),children:(0,e.createComponentVNode)(2,t.Box,{m:1,children:c.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,d.TableCell,{children:"Area"}),(0,e.createComponentVNode)(2,d.TableCell,{children:"Integrity"}),(0,e.createComponentVNode)(2,d.TableCell,{children:"Details"})]}),c.supermatters.map(function(v){return(0,e.createComponentVNode)(2,d.TableRow,{children:[(0,e.createComponentVNode)(2,d.TableCell,{children:v.area_name}),(0,e.createComponentVNode)(2,d.TableCell,{children:[v.integrity,"%"]}),(0,e.createComponentVNode)(2,d.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"View",onClick:function(){function b(){return m("view",{view:v.uid})}return b}()})})]},v)})]})})})})})},i=function(f,u){var s=(0,a.useBackend)(u),m=s.act,c=s.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 v(){return m("back")}return v}()}),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:c.SM_integrity,children:[c.SM_integrity,"%"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,t.Box,{color:V(c.SM_power),children:[c.SM_power," MeV/cm3"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:k(c.SM_ambienttemp),children:[c.SM_ambienttemp," K"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:S(c.SM_ambientpressure),children:[c.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:[c.SM_gas_O2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:[c.SM_gas_CO2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:[c.SM_gas_N2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plasma",children:[c.SM_gas_PL,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[c.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),d=n(98595),y=r.SyndicateComputerSimple=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data;return(0,e.createComponentVNode)(2,d.Window,{width:400,height:400,theme:"syndicate",children:(0,e.createComponentVNode)(2,d.Window.Content,{children:l.rows.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{title:f.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:f.buttontitle,disabled:f.buttondisabled,tooltip:f.buttontooltip,tooltipPosition:"left",onClick:function(){function u(){return i(f.buttonact)}return u}()}),children:[f.status,!!f.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:f.bullets.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:u},u)})})]},f.title)})})})}return V}()},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),d=n(36036),y=n(98595),V=n(29319),k=n(25328),S=r.SyndieCargoConsole=function(){function u(s,m){return(0,e.createComponentVNode)(2,y.Window,{width:900,height:800,theme:"syndicate",children:(0,e.createComponentVNode)(2,y.Window.Content,{children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,f)]})})}return u}(),p=function(s,m){var c=(0,o.useLocalState)(m,"contentsModal",null),v=c[0],b=c[1],g=(0,o.useLocalState)(m,"contentsModalTitle",null),h=g[0],C=g[1];if(v!==null&&h!==null)return(0,e.createComponentVNode)(2,d.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,d.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[h,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,d.Box,{children:v.map(function(N){return(0,e.createComponentVNode)(2,d.Box,{children:["- ",N]},N)})}),(0,e.createComponentVNode)(2,d.Box,{m:2,children:(0,e.createComponentVNode)(2,d.Button,{content:"Close",onClick:function(){function N(){b(null),C(null)}return N}()})})]})},i=function(s,m){var c=(0,o.useBackend)(m),v=c.act,b=c.data,g=b.is_public,h=g===void 0?0:g,C=b.cash,N=b.wait_time,x=b.is_cooldown,B=b.telepads_status,L=b.adminAddCash,w=B,A="",T=0,E="";return B==="Pads not linked!"?(T=0,A="Attempts to link telepads to the console.",E="Link pads"):x?x&&(E="Cooldown...",A="Pads are cooling off...",T=1,N!==1?w=""+B+" (ETA: "+N+" seconds)":w=""+B+" (ETA: "+N+" second)"):(T=0,A="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",E="Teleport"),(0,e.createComponentVNode)(2,d.Section,{title:"Status",children:(0,e.createComponentVNode)(2,d.LabeledList,{children:[h===0&&(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Money Available",children:[C,(0,e.createComponentVNode)(2,d.Button,{tooltip:"Withdraw money from the console",content:"Withdraw",onClick:function(){function O(){return v("withdraw",C)}return O}()}),(0,e.createComponentVNode)(2,d.Button,{content:L,tooltip:"Bless the players with da money!",onClick:function(){function O(){return v("add_money",C)}return O}()})]}),(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Telepads Status",children:w}),h===0&&(0,e.createComponentVNode)(2,d.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,d.Button,{content:E,tooltip:A,disabled:T,onClick:function(){function O(){return v("teleport")}return O}()}),(0,e.createComponentVNode)(2,d.Button,{content:"View Syndicate Black Market Log",onClick:function(){function O(){return v("showMessages")}return O}()})]})]})})},l=function(s,m){var c=(0,o.useBackend)(m),v=c.act,b=c.data,g=b.categories,h=b.supply_packs,C=(0,o.useSharedState)(m,"category","Emergency"),N=C[0],x=C[1],B=(0,o.useSharedState)(m,"search_text",""),L=B[0],w=B[1],A=(0,o.useLocalState)(m,"contentsModal",null),T=A[0],E=A[1],O=(0,o.useLocalState)(m,"contentsModalTitle",null),P=O[0],R=O[1],F=(0,k.createSearch)(L,function(H){return H.name}),j=(0,a.flow)([(0,t.filter)(function(H){return H.cat===g.filter(function(z){return z.name===N})[0].category||L}),L&&(0,t.filter)(F),(0,t.sortBy)(function(H){return H.name.toLowerCase()})])(h),W="Crate Catalogue";return L?W="Results for '"+L+"':":N&&(W="Browsing "+N),(0,e.createComponentVNode)(2,d.Section,{title:W,buttons:(0,e.createComponentVNode)(2,d.Dropdown,{width:"190px",options:g.map(function(H){return H.name}),selected:N,onSelected:function(){function H(z){return x(z)}return H}()}),children:[(0,e.createComponentVNode)(2,d.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function H(z,$){return w($)}return H}(),mb:1}),(0,e.createComponentVNode)(2,d.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,d.Table,{m:"0.5rem",children:j.map(function(H){return(0,e.createComponentVNode)(2,d.Table.Row,{children:[(0,e.createComponentVNode)(2,d.Table.Cell,{bold:!0,children:[H.name," (",H.cost," Credits)"]}),(0,e.createComponentVNode)(2,d.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,d.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){function z(){return v("order",{crate:H.ref,multiple:0})}return z}()}),(0,e.createComponentVNode)(2,d.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){function z(){return v("order",{crate:H.ref,multiple:1})}return z}()}),(0,e.createComponentVNode)(2,d.Button,{content:"View Contents",icon:"search",onClick:function(){function z(){E(H.contents),R(H.name)}return z}()})]})]},H.name)})})})]})},f=function(s,m){var c=(0,o.useBackend)(m),v=c.act,b=c.data,g=b.requests,h=b.canapprove,C=b.orders;return(0,e.createComponentVNode)(2,d.Section,{title:"Details",children:(0,e.createComponentVNode)(2,d.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:[(0,e.createComponentVNode)(2,d.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,d.Table,{m:"0.5rem",children:g.map(function(N){return(0,e.createComponentVNode)(2,d.Table.Row,{children:[(0,e.createComponentVNode)(2,d.Table.Cell,{children:[(0,e.createComponentVNode)(2,d.Box,{children:["- #",N.ordernum,": ",N.supply_type," for ",(0,e.createVNode)(1,"b",null,N.orderedby,0)]}),(0,e.createComponentVNode)(2,d.Box,{italic:!0,children:["Reason: ",N.comment]})]}),(0,e.createComponentVNode)(2,d.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,d.Button,{content:"Approve",color:"green",disabled:!h,onClick:function(){function x(){return v("approve",{ordernum:N.ordernum})}return x}()}),(0,e.createComponentVNode)(2,d.Button,{content:"Deny",color:"red",onClick:function(){function x(){return v("deny",{ordernum:N.ordernum})}return x}()})]})]},N.ordernum)})}),(0,e.createComponentVNode)(2,d.Box,{bold:!0,children:"Confirmed Orders"}),(0,e.createComponentVNode)(2,d.Table,{m:"0.5rem",children:C.map(function(N){return(0,e.createComponentVNode)(2,d.Table.Row,{children:(0,e.createComponentVNode)(2,d.Table.Cell,{children:[(0,e.createComponentVNode)(2,d.Box,{children:["- #",N.ordernum,": ",N.supply_type," for ",(0,e.createVNode)(1,"b",null,N.orderedby,0)]}),(0,e.createComponentVNode)(2,d.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),d={0:"\u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u044B\u0435",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV"},y={\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"}},V=function(i,l,f,u){return u===void 0&&(u=null),i.map(function(s){var m,c=(m=s[u])!=null?m:s;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:l.includes(s),content:c,onClick:function(){function v(){l.includes(s)?f(l.filter(function(b){var g;return((g=b[u])!=null?g:b)!==s})):f([s].concat(l))}return v}()},c)})},k=r.TTSSeedsExplorer=function(){function p(i,l){return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,S)})})}return p}(),S=r.TTSSeedsExplorerContent=function(){function p(i,l){var f=(0,a.useBackend)(l),u=f.act,s=f.data,m=s.providers,c=s.seeds,v=s.selected_seed,b=s.phrases,g=s.donator_level,h=c.map(function(Z){return Z.category}).filter(function(Z,J,te){return te.indexOf(Z)===J}),C=c.map(function(Z){return Z.gender}).filter(function(Z,J,te){return te.indexOf(Z)===J}),N=c.map(function(Z){return Z.donator_level}).filter(function(Z,J,te){return te.indexOf(Z)===J}).map(function(Z){return d[Z]}),x=(0,a.useLocalState)(l,"selectedProviders",m),B=x[0],L=x[1],w=(0,a.useLocalState)(l,"selectedGenders",C),A=w[0],T=w[1],E=(0,a.useLocalState)(l,"selectedCategories",h),O=E[0],P=E[1],R=(0,a.useLocalState)(l,"selectedDonatorLevels",N),F=R[0],j=R[1],W=(0,a.useLocalState)(l,"selectedPhrase",b[0]),H=W[0],z=W[1],$=(0,a.useLocalState)(l,"searchtext",""),G=$[0],ne=$[1],Q=V(m,B,L,"name"),he=V(C,A,T),Ve=V(h,O,P),Ne=V(N,F,j),Be=(0,e.createComponentVNode)(2,t.Dropdown,{options:b,selected:H.replace(/(.{25})..+/,"$1..."),width:"220px",onSelected:function(){function Z(J){return z(J)}return Z}()}),Le=(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",fluid:!0,onInput:function(){function Z(J,te){return ne(te)}return Z}()}),Ae=c.sort(function(Z,J){var te=Z.name.toLowerCase(),ee=J.name.toLowerCase();return te>ee?1:te0&&v!==Z.name?"orange":"white",children:Z.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:v===Z.name?.5:.25,textAlign:"left",children:Z.category}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:v===Z.name?"white":y[Z.gender].color,textAlign:"left",children:(0,e.createComponentVNode)(2,t.Icon,{mx:1,size:1.2,name:y[Z.gender].icon})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:Z.donator_level>0&&(0,e.createFragment)([d[Z.donator_level],(0,e.createComponentVNode)(2,t.Icon,{ml:1,mr:2,name:"coins"})],0)})]},Z.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:Q}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u043B",children:he}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438",children:Ve}),(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:Be}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0438\u0441\u043A",children:Le})]})})}),(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+"/"+c.length+")",children:(0,e.createComponentVNode)(2,t.Table,{children:fe})})}),(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),d=r.TachyonArray=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.records,u=f===void 0?[]:f,s=l.explosion_target,m=l.toxins_tech,c=l.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:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:m}),(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||c,align:"center",onClick:function(){function v(){return i("print_logs")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!u.length,color:"bad",align:"center",onClick:function(){function v(){return i("delete_logs")}return v}()})]})]})}),u.length?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return V}(),y=r.TachyonArrayContent=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.records,u=f===void 0?[]:f;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(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.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 m(){return i("delete_record",{index:s.index})}return m}()})})]},s.index)})]})})})})}return V}()},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),d=r.Tank=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l;return i.has_mask?l=(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 f(){return p("internals")}return f}()})}):l=(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 f(){return p("pressure",{pressure:"min"})}return f}()}),(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 f(u,s){return p("pressure",{pressure:s})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:i.ReleasePressure===i.maxReleasePressure,tooltip:"Max",onClick:function(){function f(){return p("pressure",{pressure:"max"})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:i.ReleasePressure===i.defaultReleasePressure,tooltip:"Reset",onClick:function(){function f(){return p("pressure",{pressure:"reset"})}return f}()})]}),l]})})})})}return y}()},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),d=r.TankDispenser=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.o_tanks,f=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 ("+l+")",disabled:l===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 ("+f+")",disabled:f===0,icon:"arrow-circle-down",onClick:function(){function u(){return p("plasma")}return u}()})})]})})}return y}()},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),d=r.TcommsCore=function(){function p(i,l){var f=(0,a.useBackend)(l),u=f.act,s=f.data,m=s.ion,c=(0,a.useLocalState)(l,"tabIndex",0),v=c[0],b=c[1],g=function(){function h(C){switch(C){case 0:return(0,e.createComponentVNode)(2,V);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,S);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:[m===1&&(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===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:v===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:v===2,onClick:function(){function h(){return b(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-times"}),"User Filtering"]},"FilterPage")]}),g(v)]})})}return p}(),y=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."})},V=function(i,l){var f=(0,a.useBackend)(l),u=f.act,s=f.data,m=s.active,c=s.sectors_available,v=s.nttc_toggle_jobs,b=s.nttc_toggle_job_color,g=s.nttc_toggle_name_color,h=s.nttc_toggle_command_bold,C=s.nttc_job_indicator_type,N=s.nttc_setting_language,x=s.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:m?"On":"Off",selected:m,icon:"power-off",onClick:function(){function B(){return u("toggle_active")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:c})]})}),(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:v?"On":"Off",selected:v,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:g?"On":"Off",selected:g,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:C||"Unset",selected:C,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,l){var f=(0,a.useBackend)(l),u=f.act,s=f.data,m=s.link_password,c=s.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:m||"Unset",selected:m,icon:"lock",onClick:function(){function v(){return u("change_password")}return v}()})})}),(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"})]}),c.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.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:v.addr})}return b}()})})]},v.addr)})]})]})},S=function(i,l){var f=(0,a.useBackend)(l),u=f.act,s=f.data,m=s.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 c(){return u("add_filter")}return c}()}),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"})]}),m.map(function(c){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:c}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function v(){return u("remove_filter",{user:c})}return v}()})})]},c)})]})})}},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),d=r.TcommsRelay=function(){function k(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.linked,s=f.active,m=f.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:s?"On":"Off",selected:s,icon:"power-off",onClick:function(){function c(){return l("toggle_active")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:m||"Unset",selected:m,icon:"server",onClick:function(){function c(){return l("network_id")}return c}()})}),(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,y):(0,e.createComponentVNode)(2,V)]})})}return k}(),y=function(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.linked_core_id,s=f.linked_core_addr,m=f.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:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:m?"Yes":"No",icon:m?"eye-slash":"eye",selected:m,onClick:function(){function c(){return l("toggle_hidden_link")}return c}()})}),(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 c(){return l("unlink")}return c}()})})]})})},V=function(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.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(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function m(){return l("link",{addr:s.addr})}return m}()})})]},s.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),d=n(79646),y=r.Teleporter=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.targetsTeleport?l.targetsTeleport:{},u=0,s=1,m=2,c=l.calibrated,v=l.calibrating,b=l.powerstation,g=l.regime,h=l.teleporterhub,C=l.target,N=l.locked,x=l.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:g===s?"good":null,onClick:function(){function B(){return i("setregime",{regime:s})}return B}(),children:"Gate"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"One-way teleport. ",color:g===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:g===m?"good":null,disabled:!N,onClick:function(){function B(){return i("setregime",{regime:m})}return B}(),children:"GPS"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Teleport target",children:[g===u&&(0,e.createComponentVNode)(2,t.Dropdown,{width:"220px",selected:C,options:Object.keys(f),color:C!=="None"?"default":"bad",onSelected:function(){function B(L){return i("settarget",{x:f[L].x,y:f[L].y,z:f[L].z})}return B}()}),g===s&&(0,e.createComponentVNode)(2,t.Dropdown,{width:"220px",selected:C,options:Object.keys(f),color:C!=="None"?"default":"bad",onSelected:function(){function B(L){return i("settarget",{x:f[L].x,y:f[L].y,z:f[L].z})}return B}()}),g===m&&(0,e.createComponentVNode)(2,t.Box,{children:C})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Calibration",children:[C!=="None"&&(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,d.GridColumn,{size:"2",children:v&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||(c||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,d.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:!!(c||v),onClick:function(){function B(){return i("calibrate")}return B}()})})})]}),C==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})}),!!(N&&b&&h&&g===m)&&(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 V}()},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),d=n(92986),y=n(36036),V=n(98595),k=r.sanitizeMultiline=function(){function l(f){return f.replace(/(\n|\r\n){3,}/,"\n\n")}return l}(),S=r.removeAllSkiplines=function(){function l(f){return f.replace(/[\r\n]+/,"")}return l}(),p=r.TextInputModal=function(){function l(f,u){var s=(0,o.useBackend)(u),m=s.act,c=s.data,v=c.max_length,b=c.message,g=b===void 0?"":b,h=c.multiline,C=c.placeholder,N=c.timeout,x=c.title,B=(0,o.useLocalState)(u,"input",C||""),L=B[0],w=B[1],A=function(){function O(P){if(P!==L){var R=h?k(P):S(P);w(R)}}return O}(),T=h||L.length>=40,E=130+(g.length>40?Math.ceil(g.length/4):0)+(T?80:0);return(0,e.createComponentVNode)(2,V.Window,{title:x,width:325,height:E,children:[N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,V.Window.Content,{onKeyDown:function(){function O(P){var R=window.event?P.which:P.keyCode;R===d.KEY_ENTER&&(!T||!P.shiftKey)&&m("submit",{entry:L}),R===d.KEY_ESCAPE&&m("cancel")}return O}(),children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{input:L,onType:A})}),(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:L,message:L.length+"/"+v})})]})})})]})}return l}(),i=function(f,u){var s=(0,o.useBackend)(u),m=s.act,c=s.data,v=c.max_length,b=c.multiline,g=f.input,h=f.onType,C=b||g.length>=40;return(0,e.createComponentVNode)(2,y.TextArea,{autoFocus:!0,autoSelect:!0,height:b||g.length>=40?"100%":"1.8rem",maxLength:v,onEscape:function(){function N(){return m("cancel")}return N}(),onEnter:function(){function N(x){C&&x.shiftKey||(x.preventDefault(),m("submit",{entry:g}))}return N}(),onInput:function(){function N(x,B){return h(B)}return N}(),placeholder:"Type something...",value:g})}},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),d=r.ThiefKit=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.uses,f=i.possible_uses,u=i.multi_uses,s=i.kits,m=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:l<=0?"good":l=f,onClick:function(){function c(){return p("randomKit")}return c}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:s&&s.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:c.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:c.was_taken||l>=f,onClick:function(){function v(){return p("takeKit",{item:c.type})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",disabled:!c.was_taken,onClick:function(){function v(){return p("undoKit",{item:c.type})}return v}()})]}),children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:c.desc})},c.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:m&&m.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:c.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 v(){return p("undoKit",{item:c.type})}return v}()}),children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:" "})},c.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:l0?(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,d.Countdown,{timeLeft:x.contractor.time_left,format:function(){function P(R,F){return" ("+F+")"}return P}(),bold:!0})]},"BecomeContractor"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{onClick:function(){function P(){return N("lock")}return P}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:p(w)})]})})]})}return b}(),l=function(g,h){var C=(0,y.useBackend)(h),N=C.act,x=C.data,B=x.crystals,L=x.cats,w=(0,y.useLocalState)(h,"uplinkItems",L[0].items),A=w[0],T=w[1],E=(0,y.useLocalState)(h,"searchText",""),O=E[0],P=E[1],R=function($,G){G===void 0&&(G="");var ne=(0,o.createSearch)(G,function(Q){var he=Q.hijack_only===1?"|hijack":"";return Q.name+"|"+Q.desc+"|"+Q.cost+"tc"+he});return(0,t.flow)([(0,a.filter)(function(Q){return Q==null?void 0:Q.name}),G&&(0,a.filter)(ne),(0,a.sortBy)(function(Q){return Q==null?void 0:Q.name})])($)},F=function($){if(P($),$==="")return T(L[0].items);T(R(L.map(function(G){return G.items}).flat(),$))},j=(0,y.useLocalState)(h,"showDesc",1),W=j[0],H=j[1];return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:W,onClick:function(){function z(){return H(!W)}return z}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Random Item",icon:"question",onClick:function(){function z(){return N("buyRandom")}return z}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function z(){return N("refund")}return z}()})],4),children:(0,e.createComponentVNode)(2,V.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function z($,G){F(G)}return z}(),value:O})})})}),(0,e.createComponentVNode)(2,V.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:L.map(function(z){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:O!==""?!1:z.items===A,onClick:function(){function $(){T(z.items),P("")}return $}(),children:z.cat},z)})})})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:A.map(function(z){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,s,{i:z,showDecription:W},(0,o.decodeHtmlEntities)(z.name))},(0,o.decodeHtmlEntities)(z.name))})})})})]})]})},f=function(g,h){var C=(0,y.useBackend)(h),N=C.act,x=C.data,B=x.cart,L=x.crystals,w=x.cart_price,A=(0,y.useLocalState)(h,"showDesc",0),T=A[0],E=A[1];return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+L+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:T,onClick:function(){function O(){return E(!T)}return O}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function O(){return N("empty_cart")}return O}(),disabled:!B}),(0,e.createComponentVNode)(2,V.Button,{content:"Purchase Cart ("+w+"TC)",icon:"shopping-cart",onClick:function(){function O(){return N("purchase_cart")}return O}(),disabled:!B||w>L})],4),children:(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:B?B.map(function(O){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,s,{i:O,showDecription:T,buttons:(0,e.createComponentVNode)(2,c,{i:O})})},(0,o.decodeHtmlEntities)(O.name))}):(0,e.createComponentVNode)(2,V.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,u)]})},u=function(g,h){var C=(0,y.useBackend)(h),N=C.act,x=C.data,B=x.cats,L=x.lucky_numbers;return(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function w(){return N("shuffle_lucky_numbers")}return w}()}),children:(0,e.createComponentVNode)(2,V.Stack,{wrap:!0,children:L.map(function(w){return B[w.cat].items[w.item]}).filter(function(w){return w!=null}).map(function(w,A){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,s,{grow:!0,i:w})},A)})})})})},s=function(g,h){var C=g.i,N=g.showDecription,x=N===void 0?1:N,B=g.buttons,L=B===void 0?(0,e.createComponentVNode)(2,m,{i:C}):B;return(0,e.createComponentVNode)(2,V.Section,{title:(0,o.decodeHtmlEntities)(C.name),showBottom:x,buttons:L,children:x?(0,e.createComponentVNode)(2,V.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(C.desc)}):null})},m=function(g,h){var C=(0,y.useBackend)(h),N=C.act,x=C.data,B=g.i,L=x.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function w(){return N("add_to_cart",{item:B.obj_path})}return w}(),disabled:B.cost>L}),(0,e.createComponentVNode)(2,V.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 w(){return N("buyItem",{item:B.obj_path})}return w}(),disabled:B.cost>L})],4)},c=function(g,h){var C=(0,y.useBackend)(h),N=C.act,x=C.data,B=g.i,L=x.exploitable;return(0,e.createComponentVNode)(2,V.Stack,{children:[(0,e.createComponentVNode)(2,V.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function w(){return N("remove_from_cart",{item:B.obj_path})}return w}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function w(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return w}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,V.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function w(A,T){return N("set_cart_item_quantity",{item:B.obj_path,quantity:T})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,V.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function w(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},v=function(g,h){var C=(0,y.useBackend)(h),N=C.act,x=C.data,B=x.exploitable,L=(0,y.useLocalState)(h,"selectedRecord",B[0]),w=L[0],A=L[1],T=(0,y.useLocalState)(h,"searchText",""),E=T[0],O=T[1],P=function(j,W){W===void 0&&(W="");var H=(0,o.createSearch)(W,function(z){return z.name});return(0,t.flow)([(0,a.filter)(function(z){return z==null?void 0:z.name}),W&&(0,a.filter)(H),(0,a.sortBy)(function(z){return z.name})])(j)},R=P(B,E);return(0,e.createComponentVNode)(2,V.Section,{fill:!0,title:"Exploitable Records",children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"30%",fill:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,V.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function F(j,W){return O(W)}return F}()}),(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:R.map(function(F){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:F===w,onClick:function(){function j(){return A(F)}return j}(),children:F.name},F)})})]})}),(0,e.createComponentVNode)(2,V.Divider,{vertical:!0}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,title:w.name,scrollable:!0,children:(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Age",children:w.age}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Fingerprint",children:w.fingerprint}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Rank",children:w.rank}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Sex",children:w.sex}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Species",children:w.species}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Records",children:w.exploit_record})]})})})]})})};(0,S.modalRegisterBodyOverride)("become_contractor",function(b,g){var h,C,N,x,B=(0,y.useBackend)(g),L=B.data,w=L.contractor||{},A=w.time_left,T=!!(L!=null&&(h=L.contractor)!=null&&h.available),E=!!(L!=null&&(C=L.contractor)!=null&&C.affordable),O=!!(L!=null&&(N=L.contractor)!=null&&N.accepted),P=L.contractor||{},R=P.available_offers,F=!!(L!=null&&(x=L.contractor)!=null&&x.is_admin_forced);return(0,e.createComponentVNode)(2,V.Section,{height:"65%",level:"2",m:"-1rem",pb:"1rem",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Icon,{name:"suitcase"}),(0,e.createTextVNode)("\xA0 Contracting Opportunity")],4),children:[(0,e.createComponentVNode)(2,V.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.",F?"":(0,e.createComponentVNode)(2,V.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: "),R],0)]})]}),(0,e.createComponentVNode)(2,V.Button.Confirm,{disabled:!T||O,italic:!T,bold:T,icon:T&&!O&&"check",color:"good",content:O?"Accepted":T?["Accept Offer",(0,e.createComponentVNode)(2,d.Countdown,{timeLeft:A,format:function(){function j(W,H){return" ("+H+")"}return j}()},"countdown")]:E?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 j(){return(0,S.modalAnswer)(g,b.id,1)}return j}()})]})})},8946:function(I,r,n){"use strict";r.__esModule=!0,r.VampireSpecMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),d=r.VampireSpecMenu=function(){function i(l,f){return(0,e.createComponentVNode)(2,o.Window,{width:1500,height:820,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,t.Divider,{vertical:1}),(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,t.Divider,{vertical:1}),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.Divider,{vertical:1}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,t.Divider,{vertical:1}),(0,e.createComponentVNode)(2,p)]})})})}return i}(),y=function(l,f){var u=(0,a.useBackend)(f),s=u.act,m=u.data,c=m.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"20%",children:(0,e.createComponentVNode)(2,t.Section,{title:"Hemomancer",children:[(0,e.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Vampiric claws",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood Barrier",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood tendrils",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Sanguine pool",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Predator senses",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood eruption",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"The blood bringers rite",16),(0,e.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"Hemomancer",onClick:function(){function v(){return s("hemomancer")}return v}()})]})})},V=function(l,f){var u=(0,a.useBackend)(f),s=u.act,m=u.data,c=m.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"20%",children:(0,e.createComponentVNode)(2,t.Section,{title:"Umbrae",children:[(0,e.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Cloak of darkness",16),(0,e.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow anchor",16),(0,e.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you are forced back to the anchor. It will not teleport you between Z levels.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow snare",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensares the victim. This trap is hard to see, but withers in the light.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dark passage",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Extinguish",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,e.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Eternal darkness",16),(0,e.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. It will also cause nearby creatures to freeze.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permament X-ray vision.",16),(0,e.createComponentVNode)(2,t.Button,{content:"Umbrae",onClick:function(){function v(){return s("umbrae")}return v}()})]})})},k=function(l,f){var u=(0,a.useBackend)(f),s=u.act,m=u.data,c=m.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"20%",children:(0,e.createComponentVNode)(2,t.Section,{title:"Gargantua",children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you dont have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": You gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"Gargantua",onClick:function(){function v(){return s("gargantua")}return v}()})]})})},S=function(l,f){var u=(0,a.useBackend)(f),s=u.act,m=u.data,c=m.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"20%",children:(0,e.createComponentVNode)(2,t.Section,{title:"Dantalion",children:[(0,e.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Enthrall",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall cap",16),(0,e.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall commune",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Subspace swap",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Pacify",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Decoy",16),(0,e.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rally thralls",16),(0,e.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood bond",16),(0,e.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Mass Hysteria",16),(0,e.createTextVNode)(": Casts a powerful illusion that, blinds then make everyone nearby perceive others to looks like random animals.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"Dantalion",onClick:function(){function v(){return s("dantalion")}return v}()})]})})},p=function(l,f){var u=(0,a.useBackend)(f),s=u.act,m=u.data,c=m.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"20%",children:(0,e.createComponentVNode)(2,t.Section,{title:"Bestia",children:[(0,e.createVNode)(1,"h3",null,"Focuses on transformations and trophies harvesting.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Check Trophies",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to check current trophies amount and all the passive effects they provide.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dissect",16),(0,e.createTextVNode)(": Unlocked at 150 blood, main source of gaining power, besides blood, allows you to harvest human organs, as a trophies, to passively increase your might.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dissect Cap",16),(0,e.createTextVNode)(": You can only harvest one organ trophie at a time. This can be increased at 600 blood and at full power to a max of 3 trophies per victim.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Infected Trophy",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to stun enemies from the safe distance and infect them with the deadly Grave Fever.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Lunge",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to rapidly close distance to a victim or escape a dangerous situation.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Mark the Prey",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to mark a victim which drastically reduces their movement speed and forces them to take spontaneous actions.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Metamorphosis - Bats",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to shapeshift into the deadly and vicious space bats swarm.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Anabiosis",16),(0,e.createTextVNode)(": Unlocked at 600 blood, ancient technique which allows you to cure almost any wounds while sleeping in a coffin.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Summon Bats",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to call extraplanar space bats to aid you in combat.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Metamorphosis - Hound",16),(0,e.createTextVNode)(": Allows you to shapeshift into the ultimate form of bluespace entity which took over your soul.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"Bestia",onClick:function(){function v(){return s("bestia")}return v}()})]})})}},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),d=function(b){return(Math.round(b*10)/10).toFixed(1)},y=r.VampireTrophiesStatus=function(){function v(b,g){return(0,e.createComponentVNode)(2,o.Window,{theme:"nologo",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,V),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,c)]})})})}return v}(),V=function(b,g){var h=(0,a.useBackend)(g),C=h.act,N=h.data,x=N.hearts,B=N.lungs,L=N.livers,w=N.kidneys,A=N.eyes,T=N.ears,E=N.trophies_max_gen,O=N.trophies_max_crit,P=N.icon_hearts,R=N.icon_lungs,F=N.icon_livers,j=N.icon_kidneys,W=N.icon_eyes,H=N.icon_ears;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Trophies",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.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+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:xb;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,"+m,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:s<=0&&"bad"||s<=u.max_amount/2&&"average"||"good",children:[s," in stock"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,disabled:L,icon:B,content:x,textAlign:"left",onClick:function(){function w(){return l("vend",{inum:u.inum})}return w}()})})]})},V=r.Vending=function(){function k(S,p){var i=(0,t.useBackend)(p),l=i.act,f=i.data,u=f.user,s=f.guestNotice,m=f.userMoney,c=f.chargesMoney,v=f.product_records,b=v===void 0?[]:v,g=f.coin_records,h=g===void 0?[]:g,C=f.hidden_records,N=C===void 0?[]:C,x=f.stock,B=f.vend_ready,L=f.coin_name,w=f.inserted_item_name,A=f.panel_open,T=f.speaker,E=f.imagelist,O;return O=[].concat(b,h),f.extended_inventory&&(O=[].concat(O,N)),O=O.filter(function(P){return!!P}),(0,e.createComponentVNode)(2,d.Window,{width:470,height:100+Math.min(b.length*38,500),title:"Vending Machine",children:(0,e.createComponentVNode)(2,d.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[!!c&&(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,[m,(0,e.createTextVNode)(" credits")],0),"."]})||(0,e.createComponentVNode)(2,o.Box,{color:"light-grey",children:s})}),!!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 P(){return l("remove_coin",{})}return P}()}),children:(0,e.createComponentVNode)(2,o.Box,{children:L})}),!!w&&(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 P(){return l("eject_item",{})}return P}()}),children:(0,e.createComponentVNode)(2,o.Box,{children:w})}),!!A&&(0,e.createComponentVNode)(2,o.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,o.Button,{icon:T?"check":"volume-mute",selected:T,content:"Speaker",textAlign:"left",onClick:function(){function P(){return l("toggle_voice",{})}return P}()})})]}),(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(P){return(0,e.createComponentVNode)(2,y,{product:P,productStock:x[P.name],productImage:E[P.path]},P.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),d=r.VolumeMixer=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+l.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:l.map(function(f,u){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:u>0&&"0.5rem",children:f.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 s(){return p("volume",{channel:f.num,volume:0})}return s}()})})}),(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:f.volume,onChange:function(){function s(m,c){return p("volume",{channel:f.num,volume:c})}return s}()})}),(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 s(){return p("volume",{channel:f.num,volume:100})}return s}()})})})]})})],4,f.num)})})})})}return y}()},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),d=r.VotePanel=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.remaining,f=i.question,u=i.choices,s=i.user_vote,m=i.counts,c=i.show_counts,v=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:f,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1,children:["Time remaining: ",Math.round(l/10),"s"]}),u.map(function(b){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:b+(c?" ("+(m[b]||0)+")":""),onClick:function(){function g(){return p("vote",{target:b})}return g}(),selected:b===s})},b)}),!!v&&(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 y}()},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),d=r.Wires=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.wires||[],f=i.status||[],u=56+l.length*23+(status?0:15+f.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:l.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:s.color_name,labelColor:s.seen_color,color:s.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:s.cut?"Mend":"Cut",onClick:function(){function m(){return p("cut",{wire:s.color})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function m(){return p("pulse",{wire:s.color})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:s.attached?"Detach":"Attach",onClick:function(){function m(){return p("attach",{wire:s.color})}return m}()})],4),children:!!s.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),s.wire,(0,e.createTextVNode)(")")],0)},s.seen_color)})})})}),!!f.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:f.map(function(s){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:s},s)})})})]})})})}return y}()},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),d=n(73379),y=n(98595),V=["title","items"];function k(u,s){if(u==null)return{};var m={};for(var c in u)if({}.hasOwnProperty.call(u,c)){if(s.includes(c))continue;m[c]=u[c]}return m}var S=function(s,m,c){return s.requirements===null?!0:!(s.requirements.brass>m||s.requirements.power>c)},p=r.Workshop=function(){function u(s,m){var c=(0,t.useBackend)(m),v=c.act,b=c.data,g=b.brass_amount,h=b.power_amount,C=b.building,N=b.buildStart,x=b.buildEnd,B=b.worldTime,L=g.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),w=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),A={float:"left",width:"60%"},T={float:"right",width:"39%"};return(0,e.createComponentVNode)(2,y.Window,{width:400,height:500,theme:"clockwork",children:(0,e.createComponentVNode)(2,y.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 E(){return v("dispense")}return E}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:w})]}),C&&(0,e.createComponentVNode)(2,o.ProgressBar.Countdown,{mt:2,start:N,current:B,end:x,bold:!0,children:["Building ",C,"\xA0(",(0,e.createComponentVNode)(2,d.Countdown,{current:B,timeLeft:x-B,format:function(){function E(O,P){return P.substr(3)}return E}()}),")"]})]})]}),(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,l)})})]})})})}return u}(),i=function(s,m){var c=(0,t.useLocalState)(m,"search",""),v=c[0],b=c[1],g=(0,t.useLocalState)(m,"sort",""),h=g[0],C=g[1],N=(0,t.useLocalState)(m,"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(w,A){return b(A)}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}()})})]})})},l=function(s,m){var c=(0,t.useBackend)(m),v=c.act,b=c.data,g=b.items,h=(0,t.useLocalState)(m,"search",""),C=h[0],N=h[1],x=(0,t.useLocalState)(m,"sort","Alphabetical"),B=x[0],L=x[1],w=(0,t.useLocalState)(m,"descending",!1),A=w[0],T=w[1],E=(0,a.createSearch)(C,function(R){return R[0]}),O=!1,P=Object.entries(g).map(function(R,F){var j=Object.entries(R[1]).filter(E).map(function(W){return W[1].affordable=S(W[1],b.brass_amount,b.power_amount),W[1]});if(j.length!==0)return A&&(j=j.reverse()),O=!0,(0,e.createComponentVNode)(2,f,{title:R[0],items:j},R[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:"1",children:(0,e.createComponentVNode)(2,o.Section,{children:O?P:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},f=function(s,m){var c=(0,t.useBackend)(m),v=c.act,b=c.data,g=s.title,h=s.items,C=k(s,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:g},C,{children:h.map(function(N){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+N.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,o.Button,{icon:"hammer",disabled:!S(N,b.brass_amount,b.power_amount),onClick:function(){function x(){return v("make",{cat:g,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 d(p,i){var l=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(l)return(l=l.call(p)).next.bind(l);if(Array.isArray(p)||(l=y(p))||i&&p&&typeof p.length=="number"){l&&(p=l);var f=0;return function(){return f>=p.length?{done:!0}:{done:!1,value:p[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 y(p,i){if(p){if(typeof p=="string")return V(p,i);var l={}.toString.call(p).slice(8,-1);return l==="Object"&&p.constructor&&(l=p.constructor.name),l==="Map"||l==="Set"?Array.from(p):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?V(p,i):void 0}}function V(p,i){(i==null||i>p.length)&&(i=p.length);for(var l=0,f=Array(i);l0&&!N.includes(j.ref)&&!h.includes(j.ref),checked:h.includes(j.ref),onClick:function(){function W(){return x(j.ref)}return W}()},j.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),d=function(k,S,p,i,l){return ki?"average":k>l?"bad":"good"},y=r.AtmosScan=function(){function V(k,S){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:d(i.val,i.bad_low,i.poor_low,i.poor_high,i.bad_high),children:[i.val,i.units]},i.entry)})})})}return V}()},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(V){return V+" unit"+(V===1?"":"s")},d=r.BeakerContents=function(){function y(V){var k=V.beakerLoaded,S=V.beakerContents,p=S===void 0?[]:S,i=V.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(l,f){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(l.volume)," of ",l.name]},l.name),!!i&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:i(l,f)})]},l.name)})]})}return y}();d.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={},d=r.modalOpen=function(){function p(i,l,f){var u=(0,a.useBackend)(i),s=u.act,m=u.data,c=Object.assign(m.modal?m.modal.args:{},f||{});s("modal_open",{id:l,arguments:JSON.stringify(c)})}return p}(),y=r.modalRegisterBodyOverride=function(){function p(i,l){o[i]=l}return p}(),V=r.modalAnswer=function(){function p(i,l,f,u){var s=(0,a.useBackend)(i),m=s.act,c=s.data;if(c.modal){var v=Object.assign(c.modal.args||{},u||{});m("modal_answer",{id:l,answer:f,arguments:JSON.stringify(v)})}}return p}(),k=r.modalClose=function(){function p(i,l){var f=(0,a.useBackend)(i),u=f.act;u("modal_close",{id:l})}return p}(),S=r.ComplexModal=function(){function p(i,l){var f=(0,a.useBackend)(l),u=f.data;if(u.modal){var s=u.modal,m=s.id,c=s.text,v=s.type,b,g=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function L(){return k(l)}return L}()}),h,C,N="auto";if(o[m])h=o[m](u.modal,l);else if(v==="input"){var x=u.modal.value;b=function(){function L(w){return V(l,m,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(w,A){x=A}return L}()}),C=(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(l)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function L(){return V(l,m,x)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(v==="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(w){return V(l,m,w)}return L}()}),N="initial"}else v==="bento"?h=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:u.modal.choices.map(function(L,w){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:w+1===parseInt(u.modal.value,10),onClick:function(){function A(){return V(l,m,w+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:L})})},w)})}):v==="boolean"&&(C=(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 V(l,m,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 V(l,m,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:[c&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:c}),o[m]&&g,h,C]})}}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),d=n(76910),y=d.COLORS.department,V=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],k=function(f){return V.indexOf(f)!==-1?"green":"orange"},S=function(f){if(V.indexOf(f)!==-1)return!0},p=function(f){return f.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"})]}),f.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{color:k(u.real_rank),bold:S(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 l(f,u){var s=(0,a.useBackend)(u),m=s.act,c;if(f.data)c=f.data;else{var v=(0,a.useBackend)(u),b=v.data;c=b}var g=c,h=g.manifest,C=h.heads,N=h.pro,x=h.sec,B=h.eng,L=h.med,w=h.sci,A=h.ser,T=h.sup,E=h.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:y.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(C)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:y.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:y.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:y.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:y.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:y.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(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:y.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(A)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:y.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(T)}),(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(E)})]})}return l}()},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 d(y,V){var k=(0,t.useBackend)(V),S=k.act,p=k.data,i=p.large_buttons,l=p.swapped_buttons,f=y.input,u=y.message,s=y.disabled,m=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!i,fluid:!!i,onClick:function(){function v(){return S("submit",{entry:f})}return v}(),textAlign:"center",tooltip:i&&u,disabled:s,width:!i&&6}),c=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!i,fluid:!!i,onClick:function(){function v(){return S("cancel")}return v}(),textAlign:"center",width:!i&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:l?"row-reverse":"row",justify:"space-around",children:[i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:l?.5:0,mr:l?0:.5,children:c}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:c}),!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:l?.5:0,ml:l?0:.5,children:m}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:m})]})}return d}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data,i=y.siliconUser,l=i===void 0?p.siliconUser:i,f=y.locked,u=f===void 0?p.locked:f,s=y.normallyLocked,m=s===void 0?p.normallyLocked:s,c=y.onLockStatusChange,v=c===void 0?function(){return S("lock")}:c,b=y.accessText,g=b===void 0?"an ID card":b;return l?(0,e.createComponentVNode)(2,t.NoticeBox,{color:l&&"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:m?"red":"green",icon:m?"lock":"unlock",content:m?"Locked":"Unlocked",onClick:function(){function h(){v&&v(!u)}return h}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",g," to ",u?"unlock":"lock"," this interface."]})}return d}()},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 d(y){var V=y.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(V)*100+"%"}}),2)}return d}()},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 d(y,V){var k=(0,a.useBackend)(V),S=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 l(){return S("login_logout")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!i.id,content:"Eject ID",color:"good",onClick:function(){function l(){return S("login_eject")}return l}()})]})]})})}return d}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data,i=p.loginState,l=p.isAI,f=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 s(){return S("login_insert")}return s}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!i.id,content:"Login",onClick:function(){function s(){return S("login_login",{login_type:1})}return s}()}),!!l&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function s(){return S("login_login",{login_type:2})}return s}()}),!!f&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function s(){return S("login_login",{login_type:3})}return s}()}),!!u&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function s(){return S("login_login",{login_type:4})}return s}()})]})})})}return d}()},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 d(y){var V=y.operating,k=y.name;if(V)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 d}();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),d=r.Signaler=function(){function y(V,k){var S=(0,t.useBackend)(k),p=S.act,i=V.data,l=i.code,f=i.frequency,u=i.minFrequency,s=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:s/10,value:f/10,format:function(){function m(c){return(0,a.toFixed)(c,1)}return m}(),width:"80px",onDrag:function(){function m(c,v){return p("freq",{freq:v})}return m}()})}),(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:l,width:"80px",onDrag:function(){function m(c,v){return p("code",{code:v})}return m}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function m(){return p("signal")}return m}()})]})}return y}()},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),d=n(88510),y=n(36036),V=r.SimpleRecords=function(){function p(i,l){var f=i.data.records;return(0,e.createComponentVNode)(2,y.Box,{children:f?(0,e.createComponentVNode)(2,S,{data:i.data,recordType:i.recordType}):(0,e.createComponentVNode)(2,k,{data:i.data})})}return p}(),k=function(i,l){var f=(0,a.useBackend)(l),u=f.act,s=i.data.recordsList,m=(0,a.useLocalState)(l,"searchText",""),c=m[0],v=m[1],b=function(C,N){N===void 0&&(N="");var x=(0,t.createSearch)(N,function(B){return B.Name});return(0,o.flow)([(0,d.filter)(function(B){return B==null?void 0:B.Name}),N&&(0,d.filter)(x),(0,d.sortBy)(function(B){return B.Name})])(s)},g=b(s,c);return(0,e.createComponentVNode)(2,y.Box,{children:[(0,e.createComponentVNode)(2,y.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function h(C,N){return v(N)}return h}()}),g.map(function(h){return(0,e.createComponentVNode)(2,y.Box,{children:(0,e.createComponentVNode)(2,y.Button,{mb:.5,content:h.Name,icon:"user",onClick:function(){function C(){return u("Records",{target:h.uid})}return C}()})},h)})]})},S=function(i,l){var f=(0,a.useBackend)(l),u=f.act,s=i.data.records,m=s.general,c=s.medical,v=s.security,b;switch(i.recordType){case"MED":b=(0,e.createComponentVNode)(2,y.Section,{level:2,title:"Medical Data",children:c?(0,e.createComponentVNode)(2,y.LabeledList,{children:[(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Blood Type",children:c.blood_type}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Minor Disabilities",children:c.mi_dis}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Details",children:c.mi_dis_d}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Major Disabilities",children:c.ma_dis}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Details",children:c.ma_dis_d}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Allergies",children:c.alg}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Details",children:c.alg_d}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Current Diseases",children:c.cdi}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Details",children:c.cdi_d}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:c.notes})]}):(0,e.createComponentVNode)(2,y.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":b=(0,e.createComponentVNode)(2,y.Section,{level:2,title:"Security Data",children:v?(0,e.createComponentVNode)(2,y.LabeledList,{children:[(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Criminal Status",children:v.criminal}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Minor Crimes",children:v.mi_crim}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Details",children:v.mi_crim_d}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Major Crimes",children:v.ma_crim}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Details",children:v.ma_crim_d}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:v.notes})]}):(0,e.createComponentVNode)(2,y.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,y.Box,{children:[(0,e.createComponentVNode)(2,y.Section,{title:"General Data",children:m?(0,e.createComponentVNode)(2,y.LabeledList,{children:[(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Name",children:m.name}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Sex",children:m.sex}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Species",children:m.species}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Age",children:m.age}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Rank",children:m.rank}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Fingerprint",children:m.fingerprint}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Physical Status",children:m.p_stat}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Mental Status",children:m.m_stat})]}):(0,e.createComponentVNode)(2,y.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 d(y,V){var k,S=(0,a.useBackend)(V),p=S.act,i=S.data,l=i.temp;if(l){var f=(k={},k[l.style]=!0,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},f,{children:[(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",verticalAlign:"middle",children:l.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 d}()},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),d=n(98595),y=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],V=["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 l}return h}()},{title:"Tabs",component:function(){function h(){return f}return h}()},{title:"Tooltip",component:function(){function h(){return u}return h}()},{title:"Input / Control",component:function(){function h(){return s}return h}()},{title:"Collapsible",component:function(){function h(){return m}return h}()},{title:"BlockQuote",component:function(){function h(){return v}return h}()},{title:"ByondUi",component:function(){function h(){return b}return h}()},{title:"Themes",component:function(){function h(){return g}return h}()}],S=r.KitchenSink=function(){function h(C,N){var x=(0,a.useLocalState)(N,"kitchenSinkTheme"),B=x[0],L=(0,a.useLocalState)(N,"pageIndex",0),w=L[0],A=L[1],T=k[w].component();return(0,e.createComponentVNode)(2,d.Window,{theme:B,resizable:!0,children:(0,e.createComponentVNode)(2,d.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(E,O){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:O===w,onClick:function(){function P(){return A(O)}return P}(),children:E.title},O)})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,T)})]})})})})}return h}(),p=function(C){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:[V.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{color:N,content:N},N)}),(0,e.createVNode)(1,"br"),y.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{color:N,content:N},N)}),(0,e.createVNode)(1,"br"),y.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:"7px",color:N,children:N},N)})]})]})},i=function(C){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"})]})},l=function(C,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 w(){return L(B-.1)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function w(){return L(B+.1)}return w}()})]})]})},f=function(C,N){var x=(0,a.useLocalState)(N,"tabIndex",0),B=x[0],L=x[1],w=(0,a.useLocalState)(N,"tabVert"),A=w[0],T=w[1],E=(0,a.useLocalState)(N,"tabAlt"),O=E[0],P=E[1],R=[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:A,onClick:function(){function F(){return T(!A)}return F}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"altSelection",checked:O,onClick:function(){function F(){return P(!O)}return F}()})]}),(0,e.createComponentVNode)(2,t.Tabs,{vertical:A,children:R.map(function(F,j){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{altSelection:O,selected:j===B,onClick:function(){function W(){return L(j)}return W}(),children:["Tab #",F]},j)})})]})},u=function(C){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)},s=function(C,N){var x=(0,a.useLocalState)(N,"number",0),B=x[0],L=x[1],w=(0,a.useLocalState)(N,"text","Sample text"),A=w[0],T=w[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:A,onChange:function(){function E(O,P){return T(P)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:A,onInput:function(){function E(O,P){return T(P)}return E}()})}),(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 E(O,P){return L(P)}return E}()})}),(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 E(O,P){return L(P)}return E}()})}),(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 E(O,P){return L(P)}return E}()})}),(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 E(O,P){return L(P)}return E}()}),(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 E(O,P){return L(P)}return E}()})]}),(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 E(O,P){return L(P)}return E}(),children:function(){function E(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 E}()})})})]})})},m=function(C){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,c)})})},c=function(C){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({},C,{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."})]})))},v=function(C){return(0,e.createComponentVNode)(2,t.BlockQuote,{children:(0,e.createComponentVNode)(2,c)})},b=function(C,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"}})})})},g=function(C,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 w(A,T){return L(T)}return w}()})})})})}},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 d(y,V){var k=(0,a.useBackend)(V),S=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 S("ui_interact")}return i}()})})})}return d}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:p.app_data})}return d}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data,i=p.app_data,l=i.holder,f=i.dead,u=i.health,s=i.brute,m=i.oxy,c=i.tox,v=i.burn,b=i.reagents,g=i.addictions,h=i.fractures,C=i.internal_bleeding;return l?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:f?(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:m})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:c})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:v})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:s})}),(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:g?g.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:C?"bad":"good",children:["Internal Bleedings ",C?"":"not"," detected."]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return d}()},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 d(y,V){var k=(0,a.useBackend)(V),S=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 S("ui_interact")}return i}()})})})}return d}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data,i=p.app_data,l=i.master,f=i.dna,u=i.prime,s=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:l?l+" ("+f+")":"None"}),l&&(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 m(){return S("getdna")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:s||"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 d}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data,i=p.app_data,l=i.cable,f=i.machine,u=i.inprogress,s=i.progress,m=i.aborted,c;f?c=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):c=(0,e.createComponentVNode)(2,t.Button,{content:l?"Extended":"Retracted",color:l?"orange":null,onClick:function(){function b(){return S("cable")}return b}()});var v;return f&&(v=(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 S("cancel")}return b}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function b(){return S("jack")}return b}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:c}),v]})}return d}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data,i=p.app_data,l=i.radio_name,f=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:[l,", ",f]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Set new name",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function u(s,m){return S("set_newname",{newname:m})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Set new rank",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function u(s,m){return S("set_newrank",{newrank:m})}return u}()})})]})})}return d}()},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 d(y,V){var k=(0,a.useBackend)(V),S=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 S("ui_interact")}return i}()})})})}return d}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data,i=p.app_data,l=i.available_software,f=i.installed_software,u=i.installed_toggles,s=i.available_ram,m=i.emotions,c=i.current_emotion,v=[];return f.map(function(b){return v[b.key]=b.name}),u.map(function(b){return v[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:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[l.filter(function(b){return!v[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>s,onClick:function(){function g(){return S("purchaseSoftware",{key:b.key})}return g}()},b.key)}),l.filter(function(b){return!v[b.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[f.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 g(){return S("startSoftware",{software_key:b.key})}return g}()},b.key)}),f.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 g(){return S("setToggle",{toggle_key:b.key})}return g}()},b.key)}),u.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:m.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{color:b.syndi?"red":"default",content:b.name,selected:b.id===c,onClick:function(){function g(){return S("setEmotion",{emotion:b.id})}return g}()},b.id)})})]})})}return d}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:p.app_data})}return d}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:S.app_data,recordType:"MED"})}return d}()},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 d(y,V){var k=(0,a.useBackend)(V),S=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 d}()},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),d=r.pai_radio=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.app_data,f=l.minFrequency,u=l.maxFrequency,s=l.frequency,m=l.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:f/10,maxValue:u/10,value:s/10,format:function(){function c(v){return(0,t.toFixed)(v,1)}return c}(),onChange:function(){function c(v,b){return p("freq",{freq:b})}return c}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function c(){return p("freq",{freq:"145.9"})}return c}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function c(){return p("toggleBroadcast")}return c}(),selected:m,content:m?"Enabled":"Disabled"})})]})}return y}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data,i=p.app_data,l=i.holder,f=i.dead,u=i.health,s=i.current_chemicals,m=i.available_chemicals;return l?(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:f?(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:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Chemicals",children:[m.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{content:c.name+" ("+c.cost+")",tooltip:c.desc,disabled:c.cost>s,onClick:function(){function v(){return S("secreteChemicals",{key:c.key})}return v}()},c.key)}),m.length===0&&"No chemicals available!"]})]})}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return d}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:S.app_data,recordType:"SEC"})}return d}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p.app_data})}return d}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:S})}return d}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data,i=p.janitor,l=i.user_loc,f=i.mops,u=i.buckets,s=i.cleanbots,m=i.carts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[l.x,",",l.y]}),f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:f.map(function(c){return(0,e.createComponentVNode)(2,t.Box,{children:[c.x,",",c.y," (",c.dir,") - ",c.status]},c)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:u.map(function(c){return(0,e.createComponentVNode)(2,t.Box,{children:[c.x,",",c.y," (",c.dir,") - [",c.volume,"/",c.max_volume,"]"]},c)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:s.map(function(c){return(0,e.createComponentVNode)(2,t.Box,{children:[c.x,",",c.y," (",c.dir,") - ",c.status]},c)})}),m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:m.map(function(c){return(0,e.createComponentVNode)(2,t.Box,{children:[c.x,",",c.y," (",c.dir,") - [",c.volume,"/",c.max_volume,"]"]},c)})})]})}return d}()},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),d=r.pda_main_menu=function(){function y(V,k){var S=(0,t.useBackend)(k),p=S.act,i=S.data,l=i.owner,f=i.ownjob,u=i.idInserted,s=i.categories,m=i.pai,c=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:[l,", ",f]}),(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 v(){return p("UpdateInfo")}return v}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:s.map(function(v){var b=i.apps[v];return!b||!b.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:v,children:b.map(function(g){return(0,e.createComponentVNode)(2,o.Button,{icon:g.uid in c?g.notify_icon:g.icon,iconSpin:g.uid in c,color:g.uid in c?"red":"transparent",content:g.name,onClick:function(){function h(){return p("StartProgram",{program:g.uid})}return h}()},g.uid)})},v)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!m&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function v(){return p("pai",{option:1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function v(){return p("pai",{option:2})}return v}()})]})})]})}return y}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return d}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:S,recordType:"MED"})}return d}()},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),d=r.pda_messenger=function(){function S(p,i){var l=(0,t.useBackend)(i),f=l.act,u=l.data,s=u.active_convo;return s?(0,e.createComponentVNode)(2,y,{data:u}):(0,e.createComponentVNode)(2,V,{data:u})}return S}(),y=r.ActiveConversation=function(){function S(p,i){var l=(0,t.useBackend)(i),f=l.act,u=p.data,s=u.convo_device,m=u.messages,c=u.active_convo,v=(0,t.useLocalState)(i,"clipboardMode",!1),b=v[0],g=v[1],h=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+s+" ",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:b,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function C(){return g(!b)}return C}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function C(){return f("Message",{target:c})}return C}(),content:"Reply"})],4),children:(0,a.filter)(function(C){return C.target===c})(m).map(function(C,N){return(0,e.createComponentVNode)(2,o.Box,{textAlign:C.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:C.sent?"#4d9121":"#cd7a0d",position:"absolute",left:C.sent?null:"0px",right:C.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:C.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:C.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:C.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[C.sent?"You:":"Them:"," ",C.message]})]},N)})});return b&&(h=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+s+" ",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:b,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function C(){return g(!b)}return C}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function C(){return f("Message",{target:c})}return C}(),content:"Reply"})],4),children:(0,a.filter)(function(C){return C.target===c})(m).map(function(C,N){return(0,e.createComponentVNode)(2,o.Box,{color:C.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[C.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:C.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 C(){return f("Clear",{option:"Convo"})}return C}()})})})}),h]})}return S}(),V=r.MessengerList=function(){function S(p,i){var l=(0,t.useBackend)(i),f=l.act,u=p.data,s=u.convopdas,m=u.pdas,c=u.charges,v=u.silent,b=u.toff,g=(0,t.useLocalState)(i,"searchTerm",""),h=g[0],C=g[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:!v,icon:v?"volume-mute":"volume-up",onClick:function(){function N(){return f("Toggle Ringer")}return N}(),children:["Ringer: ",v?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:b?"bad":"green",icon:"power-off",onClick:function(){function N(){return f("Toggle Messenger")}return N}(),children:["Messenger: ",b?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function N(){return f("Ringtone")}return N}(),children:"Set Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function N(){return f("Clear",{option:"All"})}return N}(),children:"Delete All Conversations"})]})}),!b&&(0,e.createComponentVNode)(2,o.Box,{children:[!!c&&(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:[c," charges left."]})})}),!s.length&&!m.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){C(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:s,msgAct:"Select Conversation",searchTerm:h}),(0,e.createComponentVNode)(2,k,{title:"Other PDAs",pdas:m,msgAct:"Message",data:u,searchTerm:h})]})}return S}(),k=function(p,i){var l=(0,t.useBackend)(i),f=l.act,u=p.data,s=p.pdas,m=p.title,c=p.msgAct,v=p.searchTerm,b=u.charges,g=u.plugins;return!s||!s.length?(0,e.createComponentVNode)(2,o.Section,{title:m,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:m,children:s.filter(function(h){return h.Name.toLowerCase().includes(v.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 C(){return f(c,{target:h.uid})}return C}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!b&&g.map(function(C){return(0,e.createComponentVNode)(2,o.Button,{icon:C.icon,content:C.name,onClick:function(){function N(){return f("Messenger Plugin",{plugin:C.uid,target:h.uid})}return N}()},C.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 V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.mulebot,u=f.active;return(0,e.createComponentVNode)(2,t.Box,{children:u?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,d)})}return V}(),d=function(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.mulebot,u=f.bots;return(0,e.createComponentVNode)(2,t.Box,{children:[u.map(function(s){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:s.Name,icon:"cog",onClick:function(){function m(){return i("AccessBot",{uid:s.uid})}return m}()})},s.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 s(){return i("Rescan")}return s}()})})]})},y=function(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.mulebot,u=f.botstatus,s=f.active,m=u.mode,c=u.loca,v=u.load,b=u.powr,g=u.dest,h=u.home,C=u.retn,N=u.pick,x;switch(m){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=m;break}return(0,e.createComponentVNode)(2,t.Section,{title:s,children:[m===-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:c}),(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:g?g+" (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:v?v+" (Unload)":"None",disabled:!v,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:C?"Yes":"No",selected:C,onClick:function(){function B(){return i("SetAutoReturn",{autoReturnType:C?"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 d(y,V){var k=(0,a.useBackend)(V),S=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 l(){return S("Edit")}return l}(),content:"Edit"})]})}return d}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.PowerMonitorMainContent)}return d}()},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 V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.beepsky,u=f.active;return(0,e.createComponentVNode)(2,t.Box,{children:u?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,d)})}return V}(),d=function(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.beepsky,u=f.bots;return(0,e.createComponentVNode)(2,t.Box,{children:[u.map(function(s){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:s.Name,icon:"cog",onClick:function(){function m(){return i("AccessBot",{uid:s.uid})}return m}()})},s.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 s(){return i("Rescan")}return s}()})})]})},y=function(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.beepsky,u=f.botstatus,s=f.active,m=u.mode,c=u.loca,v;switch(m){case 0:v="Ready";break;case 1:v="Apprehending target";break;case 2:case 3:v="Arresting target";break;case 4:v="Starting patrol";break;case 5:v="On patrol";break;case 6:v="Responding to summons";break}return(0,e.createComponentVNode)(2,t.Section,{title:s,children:[m===-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:c}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:v}),(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 d(y,V){var k=(0,a.useBackend)(V),S=k.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:S,recordType:"SEC"})}return d}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p})}return d}()},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 d(y,V){var k=(0,a.useBackend)(V),S=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 l(){return S("Status",{statdisp:"blank"})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"clock",content:"Evac ETA",onClick:function(){function l(){return S("Status",{statdisp:"shuttle"})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"edit",content:"Message",onClick:function(){function l(){return S("Status",{statdisp:"message"})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"exclamation-triangle",content:"Red Alert",onClick:function(){function l(){return S("Status",{statdisp:"alert",alert:"redalert"})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"boxes",content:"NT Logo",onClick:function(){function l(){return S("Status",{statdisp:"alert",alert:"default"})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lock",content:"Lockdown",onClick:function(){function l(){return S("Status",{statdisp:"alert",alert:"lockdown"})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"biohazard",content:"Biohazard",onClick:function(){function l(){return S("Status",{statdisp:"alert",alert:"biohazard"})}return l}()})]}),(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 l(){return S("Status",{statdisp:"setmsg1"})}return l}()})}),(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 l(){return S("Status",{statdisp:"setmsg2"})}return l}()})})]})})}return d}()},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 d(y,V){var k=(0,a.useBackend)(V),S=k.act,p=k.data,i=p.supply,l=i.shuttle_loc,f=i.shuttle_time,u=i.shuttle_moving,s=i.approved,m=i.approved_count,c=i.requests,v=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 ",f]}):(0,e.createComponentVNode)(2,t.Box,{children:l})})}),(0,e.createComponentVNode)(2,t.Section,{mt:1,title:"Requested Orders",children:v>0&&c.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:m>0&&s.map(function(b){return(0,e.createComponentVNode)(2,t.Box,{children:["#",b.Number,' - "',b.Name,'" for "',b.ApprovedBy,'"']},b)})})]})}return d}()},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),d=["className","theme","children"],y=["className","scrollable","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function V(p,i){if(p==null)return{};var c={};for(var f in p)if({}.hasOwnProperty.call(p,f)){if(i.includes(f))continue;c[f]=p[f]}return c}var k=r.Layout=function(){function p(i){var c=i.className,f=i.theme,u=f===void 0?"nanotrasen":f,d=i.children,m=V(i,s);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)(m))),d,0,Object.assign({},(0,t.computeBoxProps)(m)))),2)}return p}(),S=function(i){var c=i.className,f=i.scrollable,u=i.children,d=V(i,y);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout__content",f&&"Layout__content--scrollable",c,(0,t.computeBoxClassName)(d)]),u,0,Object.assign({},(0,t.computeBoxProps)(d))))};S.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=S},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),s=n(99851),y=n(17617),V=["theme","children","className"],k=["className","fitted","children"];/** + */function V(p,i){if(p==null)return{};var l={};for(var f in p)if({}.hasOwnProperty.call(p,f)){if(i.includes(f))continue;l[f]=p[f]}return l}var k=r.Layout=function(){function p(i){var l=i.className,f=i.theme,u=f===void 0?"nanotrasen":f,s=i.children,m=V(i,d);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",l].concat((0,t.computeBoxClassName)(m))),s,0,Object.assign({},(0,t.computeBoxProps)(m)))),2)}return p}(),S=function(i){var l=i.className,f=i.scrollable,u=i.children,s=V(i,y);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout__content",f&&"Layout__content--scrollable",l,(0,t.computeBoxClassName)(s)]),u,0,Object.assign({},(0,t.computeBoxProps)(s))))};S.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=S},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),d=n(99851),y=n(17617),V=["theme","children","className"],k=["className","fitted","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(c,f){if(c==null)return{};var u={};for(var d in c)if({}.hasOwnProperty.call(c,d)){if(f.includes(d))continue;u[d]=c[d]}return u}var p=r.Pane=function(){function c(f,u){var d=f.theme,m=f.children,l=f.className,v=S(f,V),b=(0,t.useBackend)(u),N=b.suspended,h=(0,s.useDebug)(u),C=h.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,y.Layout,Object.assign({className:(0,a.classes)(["Window",l]),theme:d},v,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:C&&"debug-layout",children:!N&&m})})))}return c}(),i=function(f){var u=f.className,d=f.fitted,m=f.children,l=S(f,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,y.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",u])},l,{children:d&&m||(0,e.createVNode)(1,"div","Window__contentPadding",m,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),s=n(72253),y=n(36036),V=n(76910),k=n(99851),S=n(77384),p=n(35421),i=n(9394),c=n(17617),f=["className","fitted","children"];function u(g,x){if(g==null)return{};var B={};for(var L in g)if({}.hasOwnProperty.call(g,L)){if(x.includes(L))continue;B[L]=g[L]}return B}function d(g,x){g.prototype=Object.create(x.prototype),g.prototype.constructor=g,m(g,x)}function m(g,x){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,L){return B.__proto__=L,B},m(g,x)}/** + */function S(l,f){if(l==null)return{};var u={};for(var s in l)if({}.hasOwnProperty.call(l,s)){if(f.includes(s))continue;u[s]=l[s]}return u}var p=r.Pane=function(){function l(f,u){var s=f.theme,m=f.children,c=f.className,v=S(f,V),b=(0,t.useBackend)(u),g=b.suspended,h=(0,d.useDebug)(u),C=h.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,y.Layout,Object.assign({className:(0,a.classes)(["Window",c]),theme:s},v,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:C&&"debug-layout",children:!g&&m})})))}return l}(),i=function(f){var u=f.className,s=f.fitted,m=f.children,c=S(f,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,y.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",u])},c,{children:s&&m||(0,e.createVNode)(1,"div","Window__contentPadding",m,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),d=n(72253),y=n(36036),V=n(76910),k=n(99851),S=n(77384),p=n(35421),i=n(9394),l=n(17617),f=["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 s(N,x){N.prototype=Object.create(x.prototype),N.prototype.constructor=N,m(N,x)}function m(N,x){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,L){return B.__proto__=L,B},m(N,x)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var l=(0,i.createLogger)("Window"),v=[400,600],b=r.Window=function(g){function x(){return g.apply(this,arguments)||this}d(x,g);var B=x.prototype;return B.componentDidMount=function(){function L(){var w=(0,s.useBackend)(this.context),A=w.suspended;A||(l.log("mounting"),this.updateGeometry())}return L}(),B.componentDidUpdate=function(){function L(w){var A=this.props.width!==w.width||this.props.height!==w.height;A&&this.updateGeometry()}return L}(),B.updateGeometry=function(){function L(){var w,A=(0,s.useBackend)(this.context),T=A.config,E=Object.assign({size:v},T.window);this.props.width&&this.props.height&&(E.size=[this.props.width,this.props.height]),(w=T.window)!=null&&w.key&&(0,p.setWindowKey)(T.window.key),(0,p.recallWindowGeometry)(E)}return L}(),B.render=function(){function L(){var w,A=this.props,T=A.theme,E=A.title,O=A.children,P=(0,s.useBackend)(this.context),R=P.config,F=P.suspended,j=(0,k.useDebug)(this.context),W=j.debugLayout,H=(0,t.useDispatch)(this.context),z=(w=R.window)==null?void 0:w.fancy,$=R.user&&(R.user.observer?R.status2?f-2:0),d=2;d=o){var m=[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:m})}},k=r.createLogger=function(){function p(i){return{debug:function(){function c(){for(var f=arguments.length,u=new Array(f),d=0;d2?f-2:0),s=2;s=o){var m=[l].concat(u).map(function(c){return typeof c=="string"?c:c instanceof Error?c.stack||String(c):JSON.stringify(c)}).filter(function(c){return c}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",message:m})}},k=r.createLogger=function(){function p(i){return{debug:function(){function l(){for(var f=arguments.length,u=new Array(f),s=0;s0;){var h=b.shift(),C=h(v);try{N=y(C)}catch(x){if(x.code!=="MODULE_NOT_FOUND")throw x}}if(!N)return V("notFound",v);var g=N[v];return g||V("missingExport",v)}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),s=n(72253),y=n(99851),V=n(9394);function k(d,m){d.prototype=Object.create(m.prototype),d.prototype.constructor=d,S(d,m)}function S(d,m){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,v){return l.__proto__=v,l},S(d,m)}/** + */var y=n(32054),V=function(l,f){return function(){return(0,e.createComponentVNode)(2,d.Window,{children:(0,e.createComponentVNode)(2,d.Window.Content,{scrollable:!0,children:[l==="notFound"&&(0,e.createVNode)(1,"div",null,[(0,e.createTextVNode)("Interface "),(0,e.createVNode)(1,"b",null,f,0),(0,e.createTextVNode)(" was not found.")],4),l==="missingExport"&&(0,e.createVNode)(1,"div",null,[(0,e.createTextVNode)("Interface "),(0,e.createVNode)(1,"b",null,f,0),(0,e.createTextVNode)(" is missing an export.")],4)]})})}},k=function(){return(0,e.createComponentVNode)(2,d.Window,{children:(0,e.createComponentVNode)(2,d.Window.Content,{scrollable:!0})})},S=function(){return(0,e.createComponentVNode)(2,d.Window,{height:130,title:"Loading",width:150,children:(0,e.createComponentVNode)(2,d.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(l){var f=l.getState(),u=(0,a.selectBackend)(f),s=u.suspended,m=u.config;if(s)return k;if(m.refreshing)return S;if(0)var c;for(var v=m==null?void 0:m.interface,b=[function(x){return"./"+x+".tsx"},function(x){return"./"+x+".js"},function(x){return"./"+x+"/index.tsx"},function(x){return"./"+x+"/index.js"}],g;!g&&b.length>0;){var h=b.shift(),C=h(v);try{g=y(C)}catch(x){if(x.code!=="MODULE_NOT_FOUND")throw x}}if(!g)return V("notFound",v);var N=g[v];return N||V("missingExport",v)}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),d=n(72253),y=n(99851),V=n(9394);function k(s,m){s.prototype=Object.create(m.prototype),s.prototype.constructor=s,S(s,m)}function S(s,m){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,v){return c.__proto__=v,c},S(s,m)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var p=(0,V.createLogger)("store"),i=r.configureStore=function(){function d(m){var l,v;m===void 0&&(m={});var b=m,N=b.sideEffects,h=N===void 0?!0:N,C=(0,e.flow)([(0,a.combineReducers)({debug:y.debugReducer,backend:s.backendReducer}),m.reducer]),g=h?[].concat(((l=m.middleware)==null?void 0:l.pre)||[],[o.assetMiddleware,s.backendMiddleware],((v=m.middleware)==null?void 0:v.post)||[]):[],x=a.applyMiddleware.apply(void 0,g),B=(0,a.createStore)(C,x);return window.__store__=B,window.__augmentStack__=f(B),B}return d}(),c=function(m){return function(l){return function(v){var b=v.type,N=v.payload;return b==="update"||b==="backend/update"?p.debug("action",{type:b}):p.debug("action",v),l(v)}}},f=function(m){return function(l,v){var b,N;v?typeof v=="object"&&!v.stack&&(v.stack=l):(v=new Error(l.split("\n")[0]),v.stack=l),p.log("FatalError:",v);var h=m.getState(),C=h==null||(b=h.backend)==null?void 0:b.config,g=l;return g+="\nUser Agent: "+navigator.userAgent,g+="\nState: "+JSON.stringify({ckey:C==null||(N=C.client)==null?void 0:N.ckey,interface:C==null?void 0:C.interface,window:C==null?void 0:C.window}),g}},u=r.StoreProvider=function(d){function m(){return d.apply(this,arguments)||this}k(m,d);var l=m.prototype;return l.getChildContext=function(){function v(){var b=this.props.store;return{store:b}}return v}(),l.render=function(){function v(){return this.props.children}return v}(),m}(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,V.createLogger)("store"),i=r.configureStore=function(){function s(m){var c,v;m===void 0&&(m={});var b=m,g=b.sideEffects,h=g===void 0?!0:g,C=(0,e.flow)([(0,a.combineReducers)({debug:y.debugReducer,backend:d.backendReducer}),m.reducer]),N=h?[].concat(((c=m.middleware)==null?void 0:c.pre)||[],[o.assetMiddleware,d.backendMiddleware],((v=m.middleware)==null?void 0:v.post)||[]):[],x=a.applyMiddleware.apply(void 0,N),B=(0,a.createStore)(C,x);return window.__store__=B,window.__augmentStack__=f(B),B}return s}(),l=function(m){return function(c){return function(v){var b=v.type,g=v.payload;return b==="update"||b==="backend/update"?p.debug("action",{type:b}):p.debug("action",v),c(v)}}},f=function(m){return function(c,v){var b,g;v?typeof v=="object"&&!v.stack&&(v.stack=c):(v=new Error(c.split("\n")[0]),v.stack=c),p.log("FatalError:",v);var h=m.getState(),C=h==null||(b=h.backend)==null?void 0:b.config,N=c;return N+="\nUser Agent: "+navigator.userAgent,N+="\nState: "+JSON.stringify({ckey:C==null||(g=C.client)==null?void 0:g.ckey,interface:C==null?void 0:C.interface,window:C==null?void 0:C.window}),N}},u=r.StoreProvider=function(s){function m(){return s.apply(this,arguments)||this}k(m,s);var c=m.prototype;return c.getChildContext=function(){function v(){var b=this.props.store;return{store:b}}return v}(),c.render=function(){function v(){return this.props.children}return v}(),m}(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 - */var t=r.meta={title:"Blink",render:function(){function s(){return(0,e.createComponentVNode)(2,o)}return s}()},o=function(y,V){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Blink,{children:"Blink"})})}},32453:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=n(37168);/** + */var t=r.meta={title:"Blink",render:function(){function d(){return(0,e.createComponentVNode)(2,o)}return d}()},o=function(y,V){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Blink,{children:"Blink"})})}},32453: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 - */var o=r.meta={title:"BlockQuote",render:function(){function y(){return(0,e.createComponentVNode)(2,s)}return y}()},s=function(V,k){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.BlockQuote,{children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},83531:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** + */var o=r.meta={title:"BlockQuote",render:function(){function y(){return(0,e.createComponentVNode)(2,d)}return y}()},d=function(V,k){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.BlockQuote,{children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},83531: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 - */var t=r.meta={title:"Box",render:function(){function s(){return(0,e.createComponentVNode)(2,o)}return s}()},o=function(y,V){return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{bold:!0,children:"bold"}),(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"italic"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.5,children:"opacity 0.5"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.25,children:"opacity 0.25"}),(0,e.createComponentVNode)(2,a.Box,{m:2,children:"m: 2"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"left",children:"left"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:"center"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"right",children:"right"})]})}},74198:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** + */var t=r.meta={title:"Box",render:function(){function d(){return(0,e.createComponentVNode)(2,o)}return d}()},o=function(y,V){return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{bold:!0,children:"bold"}),(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"italic"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.5,children:"opacity 0.5"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.25,children:"opacity 0.25"}),(0,e.createComponentVNode)(2,a.Box,{m:2,children:"m: 2"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"left",children:"left"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:"center"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"right",children:"right"})]})}},74198: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 - */var t=r.meta={title:"Button",render:function(){function V(){return(0,e.createComponentVNode)(2,y)}return V}()},o=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],s=["good","average","bad","black","white"],y=function(k,S){return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{mb:1,children:[(0,e.createComponentVNode)(2,a.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,a.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,a.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,a.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,a.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,a.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,a.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,a.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,a.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"}),(0,e.createComponentVNode)(2,a.Button,{my:1,lineHeight:2,minWidth:15,color:"translucent",textAlign:"center",content:"Translucent"})]}),(0,e.createComponentVNode)(2,a.Box,{mb:1,children:[s.map(function(p){return(0,e.createComponentVNode)(2,a.Button,{color:p,content:p},p)}),(0,e.createVNode)(1,"br"),o.map(function(p){return(0,e.createComponentVNode)(2,a.Button,{color:p,content:p},p)}),(0,e.createVNode)(1,"br"),o.map(function(p){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,mx:"7px",color:p,children:p},p)})]})]})}},51956:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(9394);/** + */var t=r.meta={title:"Button",render:function(){function V(){return(0,e.createComponentVNode)(2,y)}return V}()},o=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],d=["good","average","bad","black","white"],y=function(k,S){return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{mb:1,children:[(0,e.createComponentVNode)(2,a.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,a.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,a.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,a.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,a.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,a.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,a.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,a.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,a.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"}),(0,e.createComponentVNode)(2,a.Button,{my:1,lineHeight:2,minWidth:15,color:"translucent",textAlign:"center",content:"Translucent"})]}),(0,e.createComponentVNode)(2,a.Box,{mb:1,children:[d.map(function(p){return(0,e.createComponentVNode)(2,a.Button,{color:p,content:p},p)}),(0,e.createVNode)(1,"br"),o.map(function(p){return(0,e.createComponentVNode)(2,a.Button,{color:p,content:p},p)}),(0,e.createVNode)(1,"br"),o.map(function(p){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,mx:"7px",color:p,children:p},p)})]})]})}},51956:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(9394);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var s=r.meta={title:"ByondUi",render:function(){function V(){return(0,e.createComponentVNode)(2,y)}return V}()},y=function(k,S){var p=(0,a.useLocalState)(S,"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 f(){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 f}(),children:"Evaluate"}),children:(0,e.createComponentVNode)(2,t.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(){function f(u){return c(u.target.value)}return f}(),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 d=r.meta={title:"ByondUi",render:function(){function V(){return(0,e.createComponentVNode)(2,y)}return V}()},y=function(k,S){var p=(0,a.useLocalState)(S,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),i=p[0],l=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 f(){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(s){o.logger.log(s)}})}return f}(),children:"Evaluate"}),children:(0,e.createComponentVNode)(2,t.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(){function f(u){return l(u.target.value)}return f}(),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 - */var o=r.meta={title:"Collapsible",render:function(){function y(){return(0,e.createComponentVNode)(2,s)}return y}()},s=function(V,k){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},89241: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:"Collapsible",render:function(){function y(){return(0,e.createComponentVNode)(2,d)}return y}()},d=function(V,k){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},89241: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:"Flex & Sections",render:function(){function y(){return(0,e.createComponentVNode)(2,s)}return y}()},s=function(V,k){var S=(0,a.useLocalState)(k,"fs_grow",1),p=S[0],i=S[1],c=(0,a.useLocalState)(k,"fs_direction","column"),f=c[0],u=c[1],d=(0,a.useLocalState)(k,"fs_fill",!0),m=d[0],l=d[1],v=(0,a.useLocalState)(k,"fs_title",!0),b=v[0],N=v[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(f==="column"?"row":"column")}return h}(),children:'Flex direction="'+f+'"'}),(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(!m)}return h}(),children:"Section fill={"+String(m)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:b,onClick:function(){function h(){return N(!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:f,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:f==="row"&&1,mb:f==="column"&&1,grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:b&&"Section 1",fill:m,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:b&&"Section 2",fill:m,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 y(){return(0,e.createComponentVNode)(2,d)}return y}()},d=function(V,k){var S=(0,a.useLocalState)(k,"fs_grow",1),p=S[0],i=S[1],l=(0,a.useLocalState)(k,"fs_direction","column"),f=l[0],u=l[1],s=(0,a.useLocalState)(k,"fs_fill",!0),m=s[0],c=s[1],v=(0,a.useLocalState)(k,"fs_title",!0),b=v[0],g=v[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(f==="column"?"row":"column")}return h}(),children:'Flex direction="'+f+'"'}),(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 c(!m)}return h}(),children:"Section fill={"+String(m)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:b,onClick:function(){function h(){return g(!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:f,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:f==="row"&&1,mb:f==="column"&&1,grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:b&&"Section 1",fill:m,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:b&&"Section 2",fill:m,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,V)}return k}()},s=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],y=["good","average","bad","black","white"],V=function(S,p){var i=(0,a.useLocalState)(p,"disabled",!1),c=i[0],f=i[1],u=(0,a.useLocalState)(p,"onClick",!0),d=u[0],m=u[1],l=(0,a.useLocalState)(p,"vertical1",!0),v=l[0],b=l[1],N=(0,a.useLocalState)(p,"vertical2",!0),h=N[0],C=N[1],g=(0,a.useLocalState)(p,"vertical3",!1),x=g[0],B=g[1],L=(0,a.useLocalState)(p,"title","Image Button"),w=L[0],A=L[1],T=(0,a.useLocalState)(p,"content","Image is a LIE!"),E=T[0],O=T[1],P=(0,a.useLocalState)(p,"itemContent","Second Button"),R=P[0],F=P[1],j=(0,a.useLocalState)(p,"itemIcon","face-smile"),W=j[0],H=j[1],z=(0,a.useLocalState)(p,"itemIconPos","default"),$=z[0],G=z[1],ne=(0,a.useLocalState)(p,"itemIconSize",2),Q=ne[0],he=ne[1],Ve=(0,a.useLocalState)(p,"imageSize",64),Ne=Ve[0],Be=Ve[1],Le=function(){b(!v)},Ae=function(){C(!h)},fe=function(){B(!x)},Z=function(){f(!c)},J=function(){m(!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:w,onInput:function(){function te(ee,le){return A(le)}return te}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Content",children:(0,e.createComponentVNode)(2,t.Input,{value:E,onInput:function(){function te(ee,le){return O(le)}return te}()})}),(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 te(ee,le){return Be(le)}return te}()})})]}),(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:J})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Vertical",checked:x,onClick:fe})})]})]}),(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:R,onInput:function(){function te(ee,le){return F(le)}return te}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item Icon",children:(0,e.createComponentVNode)(2,t.Input,{value:W,onInput:function(){function te(ee,le){return H(le)}return te}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item IconPos",children:(0,e.createComponentVNode)(2,t.Input,{value:$,onInput:function(){function te(ee,le){return G(le)}return te}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item IconSize",children:(0,e.createComponentVNode)(2,t.Slider,{animated:!0,width:10,value:Q,minValue:0,maxValue:20,step:1,stepPixelSize:10,onChange:function(){function te(ee,le){return he(le)}return te}()})})]})})]}),(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:w,content:E,tooltip:x?E:"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:R,tooltip:"Click to disable main button",tooltipPosition:"bottom-end",icon:W,iconColor:"gold",iconSize:Q,iconPosition:$,onClick:Z})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Vertical",checked:v,onClick:Le}),children:y.map(function(te){return(0,e.createComponentVNode)(2,t.ImageButton,{m:v?.5:0,vertical:v,color:te,content:te,image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAOVBMVEXAwMDBr16vk0uORiz/o7HyfxiZbDXWzMzhbA3//wD////tHCQAAP/4ior/ADOAgIDAwMAAAAAzmQDdkuRxAAAAAXRSTlMAQObYZgAAAKxJREFUOI3dksESgyAMRG0FE4I22P//2IaAVdB0em3Xy477SJYZhuFfdDO1AXdD4xtwRd77o5t6wKt20wPlN2QVewUgQqAAiD0QYxQCJYc5zCAEtisUcBkgmUAZ6ErGWh9oeSwE6k+3yHNACIIPgMzQONsWYOZ90QXAiRK7g2K7gtNKayXKjdoOcv4pX+IcGoBMqIA26TswSU6HmueSpLlRcjK0AaOpL97rb+gFHckLe1QlljQAAAAASUVORK5CYII=",imageSize:v?"48px":"24px",onClick:d?function(){return"false"}:""},te)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Vertical",checked:h,onClick:Ae}),children:s.map(function(te){return(0,e.createComponentVNode)(2,t.ImageButton,{m:h?.5:0,vertical:h,color:te,content:te,image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAJ1BMVEUAAABeGFCgXZN2PnKqqqq/vr/T09PycWFIHUFeKlNLHEtVWWOOj5g02k6OAAAAAXRSTlMAQObYZgAAAFdJREFUKJFjYBhEgFEQDATgAkImLkDgrIgQME0vSy8LRhYoBwISBdLLy1HNSCsvT0MWwLDWGAwQAp0rZ+3evXLWDGSBM2dQBWYCAUkCHB1g0IAreAYCAACm2zDykxPL4AAAAABJRU5ErkJggg==",imageSize:h?"48px":"24px",onClick:d?function(){return"false"}:""},te)})})],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,V)}return k}()},d=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],y=["good","average","bad","black","white"],V=function(S,p){var i=(0,a.useLocalState)(p,"disabled",!1),l=i[0],f=i[1],u=(0,a.useLocalState)(p,"onClick",!0),s=u[0],m=u[1],c=(0,a.useLocalState)(p,"vertical1",!0),v=c[0],b=c[1],g=(0,a.useLocalState)(p,"vertical2",!0),h=g[0],C=g[1],N=(0,a.useLocalState)(p,"vertical3",!1),x=N[0],B=N[1],L=(0,a.useLocalState)(p,"title","Image Button"),w=L[0],A=L[1],T=(0,a.useLocalState)(p,"content","Image is a LIE!"),E=T[0],O=T[1],P=(0,a.useLocalState)(p,"itemContent","Second Button"),R=P[0],F=P[1],j=(0,a.useLocalState)(p,"itemIcon","face-smile"),W=j[0],H=j[1],z=(0,a.useLocalState)(p,"itemIconPos","default"),$=z[0],G=z[1],ne=(0,a.useLocalState)(p,"itemIconSize",2),Q=ne[0],he=ne[1],Ve=(0,a.useLocalState)(p,"imageSize",64),Ne=Ve[0],Be=Ve[1],Le=function(){b(!v)},Ae=function(){C(!h)},fe=function(){B(!x)},Z=function(){f(!l)},J=function(){m(!s)};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:w,onInput:function(){function te(ee,le){return A(le)}return te}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Content",children:(0,e.createComponentVNode)(2,t.Input,{value:E,onInput:function(){function te(ee,le){return O(le)}return te}()})}),(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 te(ee,le){return Be(le)}return te}()})})]}),(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:s,onClick:J})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Vertical",checked:x,onClick:fe})})]})]}),(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:R,onInput:function(){function te(ee,le){return F(le)}return te}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item Icon",children:(0,e.createComponentVNode)(2,t.Input,{value:W,onInput:function(){function te(ee,le){return H(le)}return te}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item IconPos",children:(0,e.createComponentVNode)(2,t.Input,{value:$,onInput:function(){function te(ee,le){return G(le)}return te}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item IconSize",children:(0,e.createComponentVNode)(2,t.Slider,{animated:!0,width:10,value:Q,minValue:0,maxValue:20,step:1,stepPixelSize:10,onChange:function(){function te(ee,le){return he(le)}return te}()})})]})})]}),(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:l,title:w,content:E,tooltip:x?E:"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:s?function(){return"false"}:"",children:!x&&(0,e.createComponentVNode)(2,t.ImageButton.Item,{bold:!0,width:"64px",selected:l,content:R,tooltip:"Click to disable main button",tooltipPosition:"bottom-end",icon:W,iconColor:"gold",iconSize:Q,iconPosition:$,onClick:Z})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Vertical",checked:v,onClick:Le}),children:y.map(function(te){return(0,e.createComponentVNode)(2,t.ImageButton,{m:v?.5:0,vertical:v,color:te,content:te,image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAOVBMVEXAwMDBr16vk0uORiz/o7HyfxiZbDXWzMzhbA3//wD////tHCQAAP/4ior/ADOAgIDAwMAAAAAzmQDdkuRxAAAAAXRSTlMAQObYZgAAAKxJREFUOI3dksESgyAMRG0FE4I22P//2IaAVdB0em3Xy477SJYZhuFfdDO1AXdD4xtwRd77o5t6wKt20wPlN2QVewUgQqAAiD0QYxQCJYc5zCAEtisUcBkgmUAZ6ErGWh9oeSwE6k+3yHNACIIPgMzQONsWYOZ90QXAiRK7g2K7gtNKayXKjdoOcv4pX+IcGoBMqIA26TswSU6HmueSpLlRcjK0AaOpL97rb+gFHckLe1QlljQAAAAASUVORK5CYII=",imageSize:v?"48px":"24px",onClick:s?function(){return"false"}:""},te)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Vertical",checked:h,onClick:Ae}),children:d.map(function(te){return(0,e.createComponentVNode)(2,t.ImageButton,{m:h?.5:0,vertical:h,color:te,content:te,image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAJ1BMVEUAAABeGFCgXZN2PnKqqqq/vr/T09PycWFIHUFeKlNLHEtVWWOOj5g02k6OAAAAAXRSTlMAQObYZgAAAFdJREFUKJFjYBhEgFEQDATgAkImLkDgrIgQME0vSy8LRhYoBwISBdLLy1HNSCsvT0MWwLDWGAwQAp0rZ+3evXLWDGSBM2dQBWYCAUkCHB1g0IAreAYCAACm2zDykxPL4AAAAABJRU5ErkJggg==",imageSize:h?"48px":"24px",onClick:s?function(){return"false"}:""},te)})})],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 y(){return(0,e.createComponentVNode)(2,s)}return y}()},s=function(V,k){var S=(0,a.useLocalState)(k,"number",0),p=S[0],i=S[1],c=(0,a.useLocalState)(k,"text","Sample text"),f=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:f,onChange:function(){function d(m,l){return u(l)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:f,onInput:function(){function d(m,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(m,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(m,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(m,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(m,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(m,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(m,l){return i(l)}return d}(),children:function(){function d(m){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:m.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:m.displayValue*4}),m.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 s(){return(0,e.createComponentVNode)(2,o)}return s}()},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 y(){return(0,e.createComponentVNode)(2,d)}return y}()},d=function(V,k){var S=(0,a.useLocalState)(k,"number",0),p=S[0],i=S[1],l=(0,a.useLocalState)(k,"text","Sample text"),f=l[0],u=l[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:f,onChange:function(){function s(m,c){return u(c)}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:f,onInput:function(){function s(m,c){return u(c)}return s}()})}),(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 s(m,c){return i(c)}return s}()})}),(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 s(m,c){return i(c)}return s}()})}),(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 s(m,c){return i(c)}return s}()})}),(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 s(m,c){return i(c)}return s}()}),(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 s(m,c){return i(c)}return s}()})]}),(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 s(m,c){return i(c)}return s}(),children:function(){function s(m){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:m.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:m.displayValue*4}),m.inputElement]})}return s}()})})})]})})}},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 d(){return(0,e.createComponentVNode)(2,o)}return d}()},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 - */var o=r.meta={title:"ProgressBar",render:function(){function y(){return(0,e.createComponentVNode)(2,s)}return y}()},s=function(V,k){var S=(0,a.useLocalState)(k,"progress",.5),p=S[0],i=S[1];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:p,children:["Value: ",Number(p).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function c(){return i(p-.1)}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function c(){return i(p+.1)}return c}()})]})]})}},77766:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** + */var o=r.meta={title:"ProgressBar",render:function(){function y(){return(0,e.createComponentVNode)(2,d)}return y}()},d=function(V,k){var S=(0,a.useLocalState)(k,"progress",.5),p=S[0],i=S[1];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:p,children:["Value: ",Number(p).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function l(){return i(p-.1)}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function l(){return i(p+.1)}return l}()})]})]})}},77766: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 - */var t=r.meta={title:"Stack",render:function(){function V(){return(0,e.createComponentVNode)(2,y)}return V}()},o=function(){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,width:1,height:1,children:"A"})},s=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)}),(0,e.createComponentVNode)(2,a.Stack.Divider),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)})],4)},y=function(k,S){return(0,e.createComponentVNode)(2,a.Section,{fill:!0,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,className:"debug-layout",children:[(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,zebra:!0,children:[(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,s)]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,s)]})})]})})}},30187:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(27108),t=n(36036),o=n(49968);/** + */var t=r.meta={title:"Stack",render:function(){function V(){return(0,e.createComponentVNode)(2,y)}return V}()},o=function(){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,width:1,height:1,children:"A"})},d=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)}),(0,e.createComponentVNode)(2,a.Stack.Divider),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)})],4)},y=function(k,S){return(0,e.createComponentVNode)(2,a.Section,{fill:!0,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,className:"debug-layout",children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,zebra:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,d)]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,d)]})})]})})}},30187:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(27108),t=n(36036),o=n(49968);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var s=r.meta={title:"Storage",render:function(){function V(){return(0,e.createComponentVNode)(2,y)}return V}()},y=function(k,S){return window.localStorage?(0,e.createComponentVNode)(2,t.Section,{title:"Local Storage",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"recycle",onClick:function(){function p(){localStorage.clear(),a.storage.clear()}return p}(),children:"Clear"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Keys in use",children:localStorage.length}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remaining space",children:(0,o.formatSiUnit)(localStorage.remainingSpace,0,"B")})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Local storage is not available."})}},46554:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var d=r.meta={title:"Storage",render:function(){function V(){return(0,e.createComponentVNode)(2,y)}return V}()},y=function(k,S){return window.localStorage?(0,e.createComponentVNode)(2,t.Section,{title:"Local Storage",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"recycle",onClick:function(){function p(){localStorage.clear(),a.storage.clear()}return p}(),children:"Clear"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Keys in use",children:localStorage.length}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remaining space",children:(0,o.formatSiUnit)(localStorage.remainingSpace,0,"B")})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Local storage is not available."})}},46554: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:"Tabs",render:function(){function V(){return(0,e.createComponentVNode)(2,y)}return V}()},s=["Tab #1","Tab #2","Tab #3","Tab #4"],y=function(k,S){var p=(0,a.useLocalState)(S,"tabIndex",0),i=p[0],c=p[1],f=(0,a.useLocalState)(S,"tabProps",{}),u=f[0],d=f[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 m(){return d(Object.assign({},u,{vertical:!u.vertical}))}return m}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"leftSlot",checked:u.leftSlot,onClick:function(){function m(){return d(Object.assign({},u,{leftSlot:!u.leftSlot}))}return m}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"rightSlot",checked:u.rightSlot,onClick:function(){function m(){return d(Object.assign({},u,{rightSlot:!u.rightSlot}))}return m}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"icon",checked:u.icon,onClick:function(){function m(){return d(Object.assign({},u,{icon:!u.icon}))}return m}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"fluid",checked:u.fluid,onClick:function(){function m(){return d(Object.assign({},u,{fluid:!u.fluid}))}return m}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"left aligned",checked:u.leftAligned,onClick:function(){function m(){return d(Object.assign({},u,{leftAligned:!u.leftAligned}))}return m}()})]}),(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:s.map(function(m,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 v(){return c(l)}return v}(),children:m},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);/** + */var o=r.meta={title:"Tabs",render:function(){function V(){return(0,e.createComponentVNode)(2,y)}return V}()},d=["Tab #1","Tab #2","Tab #3","Tab #4"],y=function(k,S){var p=(0,a.useLocalState)(S,"tabIndex",0),i=p[0],l=p[1],f=(0,a.useLocalState)(S,"tabProps",{}),u=f[0],s=f[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 m(){return s(Object.assign({},u,{vertical:!u.vertical}))}return m}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"leftSlot",checked:u.leftSlot,onClick:function(){function m(){return s(Object.assign({},u,{leftSlot:!u.leftSlot}))}return m}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"rightSlot",checked:u.rightSlot,onClick:function(){function m(){return s(Object.assign({},u,{rightSlot:!u.rightSlot}))}return m}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"icon",checked:u.icon,onClick:function(){function m(){return s(Object.assign({},u,{icon:!u.icon}))}return m}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"fluid",checked:u.fluid,onClick:function(){function m(){return s(Object.assign({},u,{fluid:!u.fluid}))}return m}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"left aligned",checked:u.leftAligned,onClick:function(){function m(){return s(Object.assign({},u,{leftAligned:!u.leftAligned}))}return m}()})]}),(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:d.map(function(m,c){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===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 v(){return l(c)}return v}(),children:m},c)})})})],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 y(){return(0,e.createComponentVNode)(2,s)}return y}()},s=function(V,k){var S=(0,a.useLocalState)(k,"kitchenSinkTheme"),p=S[0],i=S[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(f,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);/** + */var o=r.meta={title:"Themes",render:function(){function y(){return(0,e.createComponentVNode)(2,d)}return y}()},d=function(V,k){var S=(0,a.useLocalState)(k,"kitchenSinkTheme"),p=S[0],i=S[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 l(f,u){return i(u)}return l}()})})})})}},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 - */var o=r.meta={title:"Tooltip",render:function(){function y(){return(0,e.createComponentVNode)(2,s)}return y}()},s=function(){var V=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tooltip,{content:"Tooltip text.",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",mr:1,children:"Box (hover me)."})}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"Tooltip text.",content:"Button"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:V.map(function(k){return(0,e.createComponentVNode)(2,t.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:k,content:k},k)})})]})}},37168:function(I,r,n){"use strict";r.__esModule=!0,r.BoxWithSampleText=void 0;var e=n(89005),a=n(36036);/** + */var o=r.meta={title:"Tooltip",render:function(){function y(){return(0,e.createComponentVNode)(2,d)}return y}()},d=function(){var V=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tooltip,{content:"Tooltip text.",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",mr:1,children:"Box (hover me)."})}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"Tooltip text.",content:"Button"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:V.map(function(k){return(0,e.createComponentVNode)(2,t.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:k,content:k},k)})})]})}},37168:function(I,r,n){"use strict";r.__esModule=!0,r.BoxWithSampleText=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.BoxWithSampleText=function(){function o(s){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},s,{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 s=t(o);return n(s)}function t(o){if(!n.o(e,o)){var s=new Error("Cannot find module '"+o+"'");throw s.code="MODULE_NOT_FOUND",s}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_secbot.js":99808,"./pda_security.js":77168,"./pda_signaler.js":21773,"./pda_status_display.js":81857,"./pda_supplyrecords.js":70287};function a(o){var s=t(o);return n(s)}function t(o){if(!n.o(e,o)){var s=new Error("Cannot find module '"+o+"'");throw s.code="MODULE_NOT_FOUND",s}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,"./Changelog":12226,"./Changelog.js":12226,"./ChemDispenser":36108,"./ChemDispenser.js":36108,"./ChemHeater":13146,"./ChemHeater.js":13146,"./ChemMaster":56541,"./ChemMaster.tsx":56541,"./CloningConsole":37173,"./CloningConsole.js":37173,"./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,"./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,"./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,"./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,"./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,"./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_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 s=t(o);return n(s)}function t(o){if(!n.o(e,o)){var s=new Error("Cannot find module '"+o+"'");throw s.code="MODULE_NOT_FOUND",s}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 s=t(o);return n(s)}function t(o){if(!n.o(e,o)){var s=new Error("Cannot find module '"+o+"'");throw s.code="MODULE_NOT_FOUND",s}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"),s=Array.prototype;s[o]===void 0&&t(s,o,{configurable:!0,value:a(null)}),I.exports=function(y){s[o][y]=!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),s=n(77568),y=n(45299),V=n(2281),k=n(89393),S=n(37909),p=n(55938),i=n(73936),c=n(21287),f=n(36917),u=n(76649),d=n(24697),m=n(16738),l=n(5419),v=l.enforce,b=l.get,N=t.Int8Array,h=N&&N.prototype,C=t.Uint8ClampedArray,g=C&&C.prototype,x=N&&f(N),B=h&&f(h),L=Object.prototype,w=t.TypeError,A=d("toStringTag"),T=m("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",O=e&&!!u&&V(t.opera)!=="Opera",P=!1,R,F,j,W={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},H={BigInt64Array:8,BigUint64Array:8},z=function(){function Ne(Be){if(!s(Be))return!1;var Le=V(Be);return Le==="DataView"||y(W,Le)||y(H,Le)}return Ne}(),$=function(Be){var Le=f(Be);if(s(Le)){var Ae=b(Le);return Ae&&y(Ae,E)?Ae[E]:$(Le)}},G=function(Be){if(!s(Be))return!1;var Le=V(Be);return y(W,Le)||y(H,Le)},ne=function(Be){if(G(Be))return Be;throw new w("Target is not a typed array")},Q=function(Be){if(o(Be)&&(!u||c(x,Be)))return Be;throw new w(k(Be)+" is not a typed array constructor")},he=function(Be,Le,Ae,fe){if(a){if(Ae)for(var Z in W){var J=t[Z];if(J&&y(J.prototype,Be))try{delete J.prototype[Be]}catch(te){try{J.prototype[Be]=Le}catch(ee){}}}(!B[Be]||Ae)&&p(B,Be,Ae?Le:O&&h[Be]||Le,fe)}},Ve=function(Be,Le,Ae){var fe,Z;if(a){if(u){if(Ae){for(fe in W)if(Z=t[fe],Z&&y(Z,Be))try{delete Z[Be]}catch(J){}}if(!x[Be]||Ae)try{return p(x,Be,Ae?Le:O&&x[Be]||Le)}catch(J){}else return}for(fe in W)Z=t[fe],Z&&(!Z[Be]||Ae)&&p(Z,Be,Le)}};for(R in W)F=t[R],j=F&&F.prototype,j?v(j)[E]=F:O=!1;for(R in H)F=t[R],j=F&&F.prototype,j&&(v(j)[E]=F);if((!O||!o(x)||x===Function.prototype)&&(x=function(){function Ne(){throw new w("Incorrect invocation")}return Ne}(),O))for(R in W)t[R]&&u(t[R],x);if((!O||!B||B===L)&&(B=x.prototype,O))for(R in W)t[R]&&u(t[R].prototype,B);if(O&&f(g)!==B&&u(g,B),a&&!y(B,A)){P=!0,i(B,A,{configurable:!0,get:function(){function Ne(){return s(this)?this[T]:void 0}return Ne}()});for(R in W)t[R]&&S(t[R],T,R)}I.exports={NATIVE_ARRAY_BUFFER_VIEWS:O,TYPED_ARRAY_TAG:P&&T,aTypedArray:ne,aTypedArrayConstructor:Q,exportTypedArrayMethod:he,exportTypedArrayStaticMethod:Ve,getTypedArrayConstructor:$,isView:z,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),s=n(70520),y=n(37909),V=n(73936),k=n(30145),S=n(40033),p=n(60077),i=n(61365),c=n(10188),f=n(43806),u=n(95867),d=n(91784),m=n(36917),l=n(76649),v=n(88471),b=n(54602),N=n(5781),h=n(5774),C=n(84925),g=n(5419),x=s.PROPER,B=s.CONFIGURABLE,L="ArrayBuffer",w="DataView",A="prototype",T="Wrong length",E="Wrong index",O=g.getterFor(L),P=g.getterFor(w),R=g.set,F=e[L],j=F,W=j&&j[A],H=e[w],z=H&&H[A],$=Object.prototype,G=e.Array,ne=e.RangeError,Q=a(v),he=a([].reverse),Ve=d.pack,Ne=d.unpack,Be=function(X){return[X&255]},Le=function(X){return[X&255,X>>8&255]},Ae=function(X){return[X&255,X>>8&255,X>>16&255,X>>24&255]},fe=function(X){return X[3]<<24|X[2]<<16|X[1]<<8|X[0]},Z=function(X){return Ve(u(X),23,4)},J=function(X){return Ve(X,52,8)},te=function(X,ae,ue){V(X[A],ae,{configurable:!0,get:function(){function ie(){return ue(this)[ae]}return ie}()})},ee=function(X,ae,ue,ie){var ge=P(X),Ce=f(ue),Me=!!ie;if(Ce+ae>ge.byteLength)throw new ne(E);var De=ge.bytes,ke=Ce+ge.byteOffset,pe=b(De,ke,ke+ae);return Me?pe:he(pe)},le=function(X,ae,ue,ie,ge,Ce){var Me=P(X),De=f(ue),ke=ie(+ge),pe=!!Ce;if(De+ae>Me.byteLength)throw new ne(E);for(var se=Me.bytes,xe=De+Me.byteOffset,_=0;_ge)throw new ne("Wrong offset");if(ue=ue===void 0?ge-Ce:c(ue),Ce+ue>ge)throw new ne(T);R(this,{type:w,buffer:X,byteLength:ue,byteOffset:Ce,bytes:ie.bytes}),t||(this.buffer=X,this.byteLength=ue,this.byteOffset=Ce)}return M}(),z=H[A],t&&(te(j,"byteLength",O),te(H,"buffer",P),te(H,"byteLength",P),te(H,"byteOffset",P)),k(z,{getInt8:function(){function M(X){return ee(this,1,X)[0]<<24>>24}return M}(),getUint8:function(){function M(X){return ee(this,1,X)[0]}return M}(),getInt16:function(){function M(X){var ae=ee(this,2,X,arguments.length>1?arguments[1]:!1);return(ae[1]<<8|ae[0])<<16>>16}return M}(),getUint16:function(){function M(X){var ae=ee(this,2,X,arguments.length>1?arguments[1]:!1);return ae[1]<<8|ae[0]}return M}(),getInt32:function(){function M(X){return fe(ee(this,4,X,arguments.length>1?arguments[1]:!1))}return M}(),getUint32:function(){function M(X){return fe(ee(this,4,X,arguments.length>1?arguments[1]:!1))>>>0}return M}(),getFloat32:function(){function M(X){return Ne(ee(this,4,X,arguments.length>1?arguments[1]:!1),23)}return M}(),getFloat64:function(){function M(X){return Ne(ee(this,8,X,arguments.length>1?arguments[1]:!1),52)}return M}(),setInt8:function(){function M(X,ae){le(this,1,X,Be,ae)}return M}(),setUint8:function(){function M(X,ae){le(this,1,X,Be,ae)}return M}(),setInt16:function(){function M(X,ae){le(this,2,X,Le,ae,arguments.length>2?arguments[2]:!1)}return M}(),setUint16:function(){function M(X,ae){le(this,2,X,Le,ae,arguments.length>2?arguments[2]:!1)}return M}(),setInt32:function(){function M(X,ae){le(this,4,X,Ae,ae,arguments.length>2?arguments[2]:!1)}return M}(),setUint32:function(){function M(X,ae){le(this,4,X,Ae,ae,arguments.length>2?arguments[2]:!1)}return M}(),setFloat32:function(){function M(X,ae){le(this,4,X,Z,ae,arguments.length>2?arguments[2]:!1)}return M}(),setFloat64:function(){function M(X,ae){le(this,8,X,J,ae,arguments.length>2?arguments[2]:!1)}return M}()});else{var ye=x&&F.name!==L;!S(function(){F(1)})||!S(function(){new F(-1)})||S(function(){return new F,new F(1.5),new F(NaN),F.length!==1||ye&&!B})?(j=function(){function M(X){return p(this,W),N(new F(f(X)),this,j)}return M}(),j[A]=W,W.constructor=j,h(j,F)):ye&&B&&y(F,"name",L),l&&m(z)!==$&&l(z,$);var me=new H(new j(2)),Te=a(z.setInt8);me.setInt8(0,2147483648),me.setInt8(1,2147483649),(me.getInt8(0)||!me.getInt8(1))&&k(z,{setInt8:function(){function M(X,ae){Te(this,X,ae<<24>>24)}return M}(),setUint8:function(){function M(X,ae){Te(this,X,ae<<24>>24)}return M}()},{unsafe:!0})}C(j,L),C(H,w),I.exports={ArrayBuffer:j,DataView:H}},71447:function(I,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760),o=n(95108),s=Math.min;I.exports=[].copyWithin||function(){function y(V,k){var S=e(this),p=t(S),i=a(V,p),c=a(k,p),f=arguments.length>2?arguments[2]:void 0,u=s((f===void 0?p:a(f,p))-c,p-i),d=1;for(c0;)c in S?S[i]=S[c]:o(S,i),i+=d,c+=d;return S}return y}()},88471:function(I,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760);I.exports=function(){function o(s){for(var y=e(this),V=t(y),k=arguments.length,S=a(k>1?arguments[1]:void 0,V),p=k>2?arguments[2]:void 0,i=p===void 0?V:a(p,V);i>S;)y[S++]=s;return y}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(s){return e(this,s,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 s=0,y=arguments.length>2?o:e(t),V=new a(y);y>s;)V[s]=t[s++];return V}},73174:function(I,r,n){"use strict";var e=n(75754),a=n(91495),t=n(46771),o=n(40125),s=n(76571),y=n(1031),V=n(24760),k=n(60102),S=n(77455),p=n(59201),i=Array;I.exports=function(){function c(f){var u=t(f),d=y(this),m=arguments.length,l=m>1?arguments[1]:void 0,v=l!==void 0;v&&(l=e(l,m>2?arguments[2]:void 0));var b=p(u),N=0,h,C,g,x,B,L;if(b&&!(this===i&&s(b)))for(C=d?new this:[],x=S(u,b),B=x.next;!(g=a(B,x)).done;N++)L=v?o(x,l,[g.value,N],!0):g.value,k(C,N,L);else for(h=V(u),C=d?new this(h):i(h);h>N;N++)L=v?l(u[N],N):u[N],k(C,N,L);return C.length=N,C}return c}()},14211:function(I,r,n){"use strict";var e=n(57591),a=n(13912),t=n(24760),o=function(y){return function(V,k,S){var p=e(V),i=t(p);if(i===0)return!y&&-1;var c=a(S,i),f;if(y&&k!==k){for(;i>c;)if(f=p[c++],f!==f)return!0}else for(;i>c;c++)if((y||c in p)&&p[c]===k)return y||c||0;return!y&&-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),s=n(24760),y=n(57823),V=a([].push),k=function(p){var i=p===1,c=p===2,f=p===3,u=p===4,d=p===6,m=p===7,l=p===5||d;return function(v,b,N,h){for(var C=o(v),g=t(C),x=s(g),B=e(b,N),L=0,w=h||y,A=i?w(v,x):c||m?w(v,0):void 0,T,E;x>L;L++)if((l||L in g)&&(T=g[L],E=B(T,L,C),p))if(i)A[L]=E;else if(E)switch(p){case 3:return!0;case 5:return T;case 6:return L;case 2:V(A,T)}else switch(p){case 4:return!1;case 7:V(A,T)}return d?-1:f||u?u:A}};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),s=n(55528),y=Math.min,V=[].lastIndexOf,k=!!V&&1/[1].lastIndexOf(1,-0)<0,S=s("lastIndexOf"),p=k||!S;I.exports=p?function(){function i(c){if(k)return e(V,this,arguments)||0;var f=a(this),u=o(f);if(u===0)return-1;var d=u-1;for(arguments.length>1&&(d=y(d,t(arguments[1]))),d<0&&(d=u+d);d>=0;d--)if(d in f&&f[d]===c)return d||0;return-1}return i}():V},44091:function(I,r,n){"use strict";var e=n(40033),a=n(24697),t=n(83141),o=a("species");I.exports=function(s){return t>=51||!e(function(){var y=[],V=y.constructor={};return V[o]=function(){return{foo:1}},y[s](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),s=TypeError,y="Reduce of empty array with no initial value",V=function(S){return function(p,i,c,f){var u=a(p),d=t(u),m=o(u);if(e(i),m===0&&c<2)throw new s(y);var l=S?m-1:0,v=S?-1:1;if(c<2)for(;;){if(l in d){f=d[l],l+=v;break}if(l+=v,S?l<0:m<=l)throw new s(y)}for(;S?l>=0:m>l;l+=v)l in d&&(f=i(f,d[l],l,u));return f}};I.exports={left:V(!1),right:V(!0)}},13345:function(I,r,n){"use strict";var e=n(58310),a=n(37386),t=TypeError,o=Object.getOwnPropertyDescriptor,s=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(y){return y instanceof TypeError}}();I.exports=s?function(y,V){if(a(y)&&!o(y,"length").writable)throw new t("Cannot set read only .length");return y.length=V}:function(y,V){return y.length=V}},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(s,y){var V=s.length;if(V<8)for(var k=1,S,p;k0;)s[p]=s[--p];p!==k++&&(s[p]=S)}else for(var i=a(V/2),c=t(e(s,0,i),y),f=t(e(s,i),y),u=c.length,d=f.length,m=0,l=0;m1?arguments[1]:void 0),E;E=E?E.next:A.first;)for(T(E.value,E.key,this);E&&E.removed;)E=E.previous}return L}(),has:function(){function L(w){return!!B(this,w)}return L}()}),t(C,b?{get:function(){function L(w){var A=B(this,w);return A&&A.value}return L}(),set:function(){function L(w,A){return x(this,w===0?0:w,A)}return L}()}:{add:function(){function L(w){return x(this,w=w===0?0:w,w)}return L}()}),i&&a(C,"size",{configurable:!0,get:function(){function L(){return g(this).size}return L}()}),h}return m}(),setStrong:function(){function m(l,v,b){var N=v+" Iterator",h=d(v),C=d(N);k(l,v,function(g,x){u(this,{type:N,target:g,state:h(g),kind:x,last:null})},function(){for(var g=C(this),x=g.kind,B=g.last;B&&B.removed;)B=B.previous;return!g.target||!(g.last=B=B?B.next:g.state.first)?(g.target=null,S(void 0,!0)):S(x==="keys"?B.key:x==="values"?B.value:[B.key,B.value],!1)},b?"entries":"values",!b,!0),p(v)}return m}()}},39895:function(I,r,n){"use strict";var e=n(67250),a=n(30145),t=n(81969).getWeakData,o=n(60077),s=n(30365),y=n(42871),V=n(77568),k=n(49450),S=n(22603),p=n(45299),i=n(5419),c=i.set,f=i.getterFor,u=S.find,d=S.findIndex,m=e([].splice),l=0,v=function(C){return C.frozen||(C.frozen=new b)},b=function(){this.entries=[]},N=function(C,g){return u(C.entries,function(x){return x[0]===g})};b.prototype={get:function(){function h(C){var g=N(this,C);if(g)return g[1]}return h}(),has:function(){function h(C){return!!N(this,C)}return h}(),set:function(){function h(C,g){var x=N(this,C);x?x[1]=g:this.entries.push([C,g])}return h}(),delete:function(){function h(C){var g=d(this.entries,function(x){return x[0]===C});return~g&&m(this.entries,g,1),!!~g}return h}()},I.exports={getConstructor:function(){function h(C,g,x,B){var L=C(function(E,O){o(E,w),c(E,{type:g,id:l++,frozen:null}),y(O)||k(O,E[B],{that:E,AS_ENTRIES:x})}),w=L.prototype,A=f(g),T=function(){function E(O,P,R){var F=A(O),j=t(s(P),!0);return j===!0?v(F).set(P,R):j[F.id]=R,O}return E}();return a(w,{delete:function(){function E(O){var P=A(this);if(!V(O))return!1;var R=t(O);return R===!0?v(P).delete(O):R&&p(R,P.id)&&delete R[P.id]}return E}(),has:function(){function E(O){var P=A(this);if(!V(O))return!1;var R=t(O);return R===!0?v(P).has(O):R&&p(R,P.id)}return E}()}),a(w,x?{get:function(){function E(O){var P=A(this);if(V(O)){var R=t(O);if(R===!0)return v(P).get(O);if(R)return R[P.id]}}return E}(),set:function(){function E(O,P){return T(this,O,P)}return E}()}:{add:function(){function E(O){return T(this,O,!0)}return E}()}),L}return h}()}},45150:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(67250),o=n(41314),s=n(55938),y=n(81969),V=n(49450),k=n(60077),S=n(55747),p=n(42871),i=n(77568),c=n(40033),f=n(92490),u=n(84925),d=n(5781);I.exports=function(m,l,v){var b=m.indexOf("Map")!==-1,N=m.indexOf("Weak")!==-1,h=b?"set":"add",C=a[m],g=C&&C.prototype,x=C,B={},L=function(F){var j=t(g[F]);s(g,F,F==="add"?function(){function W(H){return j(this,H===0?0:H),this}return W}():F==="delete"?function(W){return N&&!i(W)?!1:j(this,W===0?0:W)}:F==="get"?function(){function W(H){return N&&!i(H)?void 0:j(this,H===0?0:H)}return W}():F==="has"?function(){function W(H){return N&&!i(H)?!1:j(this,H===0?0:H)}return W}():function(){function W(H,z){return j(this,H===0?0:H,z),this}return W}())},w=o(m,!S(C)||!(N||g.forEach&&!c(function(){new C().entries().next()})));if(w)x=v.getConstructor(l,m,b,h),y.enable();else if(o(m,!0)){var A=new x,T=A[h](N?{}:-0,1)!==A,E=c(function(){A.has(1)}),O=f(function(R){new C(R)}),P=!N&&c(function(){for(var R=new C,F=5;F--;)R[h](F,F);return!R.has(-0)});O||(x=l(function(R,F){k(R,g);var j=d(new C,R,x);return p(F)||V(F,j[h],{that:j,AS_ENTRIES:b}),j}),x.prototype=g,g.constructor=x),(E||P)&&(L("delete"),L("has"),b&&L("get")),(P||T)&&L(h),N&&g.clear&&delete g.clear}return B[m]=x,e({global:!0,constructor:!0,forced:x!==C},B),u(x,m),N||v.setStrong(x,m,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(s,y,V){for(var k=a(y),S=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,s,y){return a.f(o,s,t(1,y))}:function(o,s,y){return o[s]=y,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,s,y){e?a.f(o,s,t(0,y)):o[s]=y}},67206:function(I,r,n){"use strict";var e=n(67250),a=n(40033),t=n(24051).start,o=RangeError,s=isFinite,y=Math.abs,V=Date.prototype,k=V.toISOString,S=e(V.getTime),p=e(V.getUTCDate),i=e(V.getUTCFullYear),c=e(V.getUTCHours),f=e(V.getUTCMilliseconds),u=e(V.getUTCMinutes),d=e(V.getUTCMonth),m=e(V.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(!s(S(this)))throw new o("Invalid time value");var v=this,b=i(v),N=f(v),h=b<0?"-":b>9999?"+":"";return h+t(y(b),h?6:4,0)+"-"+t(d(v)+1,2,0)+"-"+t(p(v),2,0)+"T"+t(c(v),2,0)+":"+t(u(v),2,0)+":"+t(m(v),2,0)+"."+t(N,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,s){return s.get&&e(s.get,o,{getter:!0}),s.set&&e(s.set,o,{setter:!0}),a.f(t,o,s)}},55938:function(I,r,n){"use strict";var e=n(55747),a=n(74595),t=n(20001),o=n(18231);I.exports=function(s,y,V,k){k||(k={});var S=k.enumerable,p=k.name!==void 0?k.name:y;if(e(V)&&t(V,p,k),k.global)S?s[y]=V:o(y,V);else{try{k.unsafe?s[y]&&(S=!0):delete s[y]}catch(i){}S?s[y]=V:a.f(s,y,{value:V,enumerable:!1,configurable:!k.nonConfigurable,writable:!k.nonWritable})}return s}},30145:function(I,r,n){"use strict";var e=n(55938);I.exports=function(a,t,o){for(var s in t)e(a,s,t[s],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(s){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(s){return o?t.createElement(s):{}}},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,s=t&&t.versions||o&&o.version,y=s&&s.v8,V,k;y&&(V=y.split("."),k=V[0]>0&&V[0]<4?1:+(V[0]+V[1])),!k&&a&&(V=a.match(/Edge\/(\d+)/),(!V||V[1]>=74)&&(V=a.match(/Chrome\/(\d+)/),V&&(k=+V[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(y){return a.slice(0,y.length)===y};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),s=n(18231),y=n(5774),V=n(41314);I.exports=function(k,S){var p=k.target,i=k.global,c=k.stat,f,u,d,m,l,v;if(i?u=e:c?u=e[p]||s(p,{}):u=e[p]&&e[p].prototype,u)for(d in S){if(l=S[d],k.dontCallGetSet?(v=a(u,d),m=v&&v.value):m=u[d],f=V(i?d:p+(c?".":"#")+d,k.forced),!f&&m!==void 0){if(typeof l==typeof m)continue;y(l,m)}(k.sham||m&&m.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),s=n(24697),y=n(37909),V=s("species"),k=RegExp.prototype;I.exports=function(S,p,i,c){var f=s(S),u=!o(function(){var v={};return v[f]=function(){return 7},""[S](v)!==7}),d=u&&!o(function(){var v=!1,b=/a/;return S==="split"&&(b={},b.constructor={},b.constructor[V]=function(){return b},b.flags="",b[f]=/./[f]),b.exec=function(){return v=!0,null},b[f](""),!v});if(!u||!d||i){var m=/./[f],l=p(f,""[S],function(v,b,N,h,C){var g=b.exec;return g===t||g===k.exec?u&&!C?{done:!0,value:e(m,b,N,h)}:{done:!0,value:e(v,N,b,h)}:{done:!1}});a(String.prototype,S,l[0]),a(k,f,l[1])}c&&y(k[f],"sham",!0)}},65561:function(I,r,n){"use strict";var e=n(37386),a=n(24760),t=n(21291),o=n(75754),s=function(V,k,S,p,i,c,f,u){for(var d=i,m=0,l=f?o(f,u):!1,v,b;m0&&e(v)?(b=a(v),d=s(V,k,v,b,d,c-1)-1):(t(d+1),V[d]=v),d++),m++;return d};I.exports=s},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(s,y){return a(s),y===void 0?s:t?o(s,y):function(){return s.apply(y,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),s=n(54602),y=n(55050),V=Function,k=e([].concat),S=e([].join),p={},i=function(f,u,d){if(!o(p,u)){for(var m=[],l=0;l]*>)/g,k=/\$([$&'`]|\d{1,2})/g;I.exports=function(S,p,i,c,f,u){var d=i+S.length,m=c.length,l=k;return f!==void 0&&(f=a(f),l=V),s(u,l,function(v,b){var N;switch(o(b,0)){case"$":return"$";case"&":return S;case"`":return y(p,0,i);case"'":return y(p,d);case"<":N=f[y(b,1,-1)];break;default:var h=+b;if(h===0)return v;if(h>m){var C=t(h/10);return C===0?v:C<=m?c[C-1]===void 0?o(b,1):c[C-1]+o(b,1):v}N=c[h-1]}return N===void 0?"":N})}},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(s,y){return t(a(s),y)}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,s=function(k,S,p){var i=r(p),c=p*8-S-1,f=(1<>1,d=S===23?e(2,-24)-e(2,-77):0,m=k<0||k===0&&1/k<0?1:0,l=0,v,b,N;for(k=n(k),k!==k||k===1/0?(b=k!==k?1:0,v=f):(v=a(t(k)/o),N=e(2,-v),k*N<1&&(v--,N*=2),v+u>=1?k+=d/N:k+=d*e(2,1-u),k*N>=2&&(v++,N/=2),v+u>=f?(b=0,v=f):v+u>=1?(b=(k*N-1)*e(2,S),v+=u):(b=k*e(2,u-1)*e(2,S),v=0));S>=8;)i[l++]=b&255,b/=256,S-=8;for(v=v<0;)i[l++]=v&255,v/=256,c-=8;return i[l-1]|=m*128,i},y=function(k,S){var p=k.length,i=p*8-S-1,c=(1<>1,u=i-7,d=p-1,m=k[d--],l=m&127,v;for(m>>=7;u>0;)l=l*256+k[d--],u-=8;for(v=l&(1<<-u)-1,l>>=-u,u+=S;u>0;)v=v*256+k[d--],u-=8;if(l===0)l=1-f;else{if(l===c)return v?NaN:m?-1/0:1/0;v+=e(2,S),l-=f}return(m?-1:1)*v*e(2,l-S)};I.exports={pack:s,unpack:y}},37457:function(I,r,n){"use strict";var e=n(67250),a=n(40033),t=n(7462),o=Object,s=e("".split);I.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(y){return t(y)==="String"?s(y,""):o(y)}:o},5781:function(I,r,n){"use strict";var e=n(55747),a=n(77568),t=n(76649);I.exports=function(o,s,y){var V,k;return t&&e(V=s.constructor)&&V!==y&&a(k=V.prototype)&&k!==y.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(s){return o(s)}),I.exports=t.inspectSource},81969:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(79195),o=n(77568),s=n(45299),y=n(74595).f,V=n(37310),k=n(81644),S=n(81834),p=n(16738),i=n(50730),c=!1,f=p("meta"),u=0,d=function(C){y(C,f,{value:{objectID:"O"+u++,weakData:{}}})},m=function(C,g){if(!o(C))return typeof C=="symbol"?C:(typeof C=="string"?"S":"P")+C;if(!s(C,f)){if(!S(C))return"F";if(!g)return"E";d(C)}return C[f].objectID},l=function(C,g){if(!s(C,f)){if(!S(C))return!0;if(!g)return!1;d(C)}return C[f].weakData},v=function(C){return i&&c&&S(C)&&!s(C,f)&&d(C),C},b=function(){N.enable=function(){},c=!0;var C=V.f,g=a([].splice),x={};x[f]=1,C(x).length&&(V.f=function(B){for(var L=C(B),w=0,A=L.length;wB;B++)if(w=O(u[B]),w&&V(f,w))return w;return new c(!1)}g=k(u,x)}for(A=b?u.next:g.next;!(T=a(A,g)).done;){try{w=O(T.value)}catch(P){p(g,"throw",P)}if(typeof w=="object"&&w&&V(f,w))return w}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,s,y){var V,k;a(o);try{if(V=t(o,"return"),!V){if(s==="throw")throw y;return y}V=e(V,o)}catch(S){k=!0,V=S}if(s==="throw")throw y;if(k)throw V;return a(V),y}},5656:function(I,r,n){"use strict";var e=n(67635).IteratorPrototype,a=n(80674),t=n(87458),o=n(84925),s=n(83967),y=function(){return this};I.exports=function(V,k,S,p){var i=k+" Iterator";return V.prototype=a(e,{next:t(+!p,S)}),o(V,i,!1,!0),s[i]=y,V}},65574:function(I,r,n){"use strict";var e=n(63964),a=n(91495),t=n(4493),o=n(70520),s=n(55747),y=n(5656),V=n(36917),k=n(76649),S=n(84925),p=n(37909),i=n(55938),c=n(24697),f=n(83967),u=n(67635),d=o.PROPER,m=o.CONFIGURABLE,l=u.IteratorPrototype,v=u.BUGGY_SAFARI_ITERATORS,b=c("iterator"),N="keys",h="values",C="entries",g=function(){return this};I.exports=function(x,B,L,w,A,T,E){y(L,B,w);var O=function(Q){if(Q===A&&W)return W;if(!v&&Q&&Q in F)return F[Q];switch(Q){case N:return function(){function he(){return new L(this,Q)}return he}();case h:return function(){function he(){return new L(this,Q)}return he}();case C:return function(){function he(){return new L(this,Q)}return he}()}return function(){return new L(this)}},P=B+" Iterator",R=!1,F=x.prototype,j=F[b]||F["@@iterator"]||A&&F[A],W=!v&&j||O(A),H=B==="Array"&&F.entries||j,z,$,G;if(H&&(z=V(H.call(new x)),z!==Object.prototype&&z.next&&(!t&&V(z)!==l&&(k?k(z,l):s(z[b])||i(z,b,g)),S(z,P,!0,!0),t&&(f[P]=g))),d&&A===h&&j&&j.name!==h&&(!t&&m?p(F,"name",h):(R=!0,W=function(){function ne(){return a(j,this)}return ne}())),A)if($={values:O(h),keys:T?W:O(N),entries:O(C)},E)for(G in $)(v||R||!(G in F))&&i(F,G,$[G]);else e({target:B,proto:!0,forced:v||R},$);return(!t||E)&&F[b]!==W&&i(F,b,W,{name:A}),f[B]=W,$}},67635:function(I,r,n){"use strict";var e=n(40033),a=n(55747),t=n(77568),o=n(80674),s=n(36917),y=n(55938),V=n(24697),k=n(4493),S=V("iterator"),p=!1,i,c,f;[].keys&&(f=[].keys(),"next"in f?(c=s(s(f)),c!==Object.prototype&&(i=c)):p=!0);var u=!t(i)||e(function(){var d={};return i[S].call(d)!==d});u?i={}:k&&(i=o(i)),a(i[S])||y(i,S,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),s=n(58310),y=n(70520).CONFIGURABLE,V=n(40492),k=n(5419),S=k.enforce,p=k.get,i=String,c=Object.defineProperty,f=e("".slice),u=e("".replace),d=e([].join),m=s&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),l=String(String).split("String"),v=I.exports=function(b,N,h){f(i(N),0,7)==="Symbol("&&(N="["+u(i(N),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),h&&h.getter&&(N="get "+N),h&&h.setter&&(N="set "+N),(!o(b,"name")||y&&b.name!==N)&&(s?c(b,"name",{value:N,configurable:!0}):b.name=N),m&&h&&o(h,"arity")&&b.length!==h.arity&&c(b,"length",{value:h.arity});try{h&&o(h,"constructor")&&h.constructor?s&&c(b,"prototype",{writable:!1}):b.prototype&&(b.prototype=void 0)}catch(g){}var C=S(b);return o(C,"source")||(C.source=d(l,typeof N=="string"?N:"")),b};Function.prototype.toString=v(function(){function b(){return t(this)&&p(this).source||V(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,s=function(V){return V+o-o};I.exports=function(y,V,k,S){var p=+y,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 s(y){return e(y,a,t,o)}return s}()},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,s=n(9547),y=n(27770),V=n(16647),k=n(52854),S=n(81663),p=e.MutationObserver||e.WebKitMutationObserver,i=e.document,c=e.process,f=e.Promise,u=a("queueMicrotask"),d,m,l,v,b;if(!u){var N=new s,h=function(){var g,x;for(S&&(g=c.domain)&&g.exit();x=N.get();)try{x()}catch(B){throw N.head&&d(),B}g&&g.enter()};!y&&!S&&!k&&p&&i?(m=!0,l=i.createTextNode(""),new p(h).observe(l,{characterData:!0}),d=function(){l.data=m=!m}):!V&&f&&f.resolve?(v=f.resolve(void 0),v.constructor=f,b=t(v.then,v),d=function(){b(h)}):S?d=function(){c.nextTick(h)}:(o=t(o,e),d=function(){o(h)}),u=function(g){N.head||d(),N.add(g)}}I.exports=u},81837:function(I,r,n){"use strict";var e=n(10320),a=TypeError,t=function(s){var y,V;this.promise=new s(function(k,S){if(y!==void 0||V!==void 0)throw new a("Bad Promise constructor");y=k,V=S}),this.resolve=e(y),this.reject=e(V)};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),s=n(92648).trim,y=n(4198),V=t("".charAt),k=e.parseFloat,S=e.Symbol,p=S&&S.iterator,i=1/k(y+"-0")!==-1/0||p&&!a(function(){k(Object(p))});I.exports=i?function(){function c(f){var u=s(o(f)),d=k(u);return d===0&&V(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),s=n(92648).trim,y=n(4198),V=e.parseInt,k=e.Symbol,S=k&&k.iterator,p=/^[+-]?0x/i,i=t(p.exec),c=V(y+"08")!==8||V(y+"0x16")!==22||S&&!a(function(){V(Object(S))});I.exports=c?function(){function f(u,d){var m=s(o(u));return V(m,d>>>0||(i(p,m)?16:10))}return f}():V},41143:function(I,r,n){"use strict";var e=n(58310),a=n(67250),t=n(91495),o=n(40033),s=n(18450),y=n(89235),V=n(12867),k=n(46771),S=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 f={},u={},d=Symbol("assign detection"),m="abcdefghijklmnopqrst";return f[d]=7,m.split("").forEach(function(l){u[l]=l}),p({},f)[d]!==7||s(p({},u)).join("")!==m})?function(){function f(u,d){for(var m=k(u),l=arguments.length,v=1,b=y.f,N=V.f;l>v;)for(var h=S(arguments[v++]),C=b?c(s(h),b(h)):s(h),g=C.length,x=0,B;g>x;)B=C[x++],(!e||t(N,h,B))&&(m[B]=h[B]);return m}return f}():p},80674:function(I,r,n){"use strict";var e=n(30365),a=n(24239),t=n(89453),o=n(79195),s=n(5315),y=n(12689),V=n(19417),k=">",S="<",p="prototype",i="script",c=V("IE_PROTO"),f=function(){},u=function(N){return S+i+k+N+S+"/"+i+k},d=function(N){N.write(u("")),N.close();var h=N.parentWindow.Object;return N=null,h},m=function(){var N=y("iframe"),h="java"+i+":",C;return N.style.display="none",s.appendChild(N),N.src=String(h),C=N.contentWindow.document,C.open(),C.write(u("document.F=Object")),C.close(),C.F},l,v=function(){try{l=new ActiveXObject("htmlfile")}catch(h){}v=typeof document!="undefined"?document.domain&&l?d(l):m():d(l);for(var N=t.length;N--;)delete v[p][t[N]];return v()};o[c]=!0,I.exports=Object.create||function(){function b(N,h){var C;return N!==null?(f[p]=e(N),C=new f,f[p]=null,C[c]=N):C=v(),h===void 0?C:a.f(C,h)}return b}()},24239:function(I,r,n){"use strict";var e=n(58310),a=n(80944),t=n(74595),o=n(30365),s=n(57591),y=n(18450);r.f=e&&!a?Object.defineProperties:function(){function V(k,S){o(k);for(var p=s(S),i=y(S),c=i.length,f=0,u;c>f;)t.f(k,u=i[f++],p[u]);return k}return V}()},74595:function(I,r,n){"use strict";var e=n(58310),a=n(36223),t=n(80944),o=n(30365),s=n(767),y=TypeError,V=Object.defineProperty,k=Object.getOwnPropertyDescriptor,S="enumerable",p="configurable",i="writable";r.f=e?t?function(){function c(f,u,d){if(o(f),u=s(u),o(d),typeof f=="function"&&u==="prototype"&&"value"in d&&i in d&&!d[i]){var m=k(f,u);m&&m[i]&&(f[u]=d.value,d={configurable:p in d?d[p]:m[p],enumerable:S in d?d[S]:m[S],writable:!1})}return V(f,u,d)}return c}():V:function(){function c(f,u,d){if(o(f),u=s(u),o(d),a)try{return V(f,u,d)}catch(m){}if("get"in d||"set"in d)throw new y("Accessors not supported");return"value"in d&&(f[u]=d.value),f}return c}()},27193:function(I,r,n){"use strict";var e=n(58310),a=n(91495),t=n(12867),o=n(87458),s=n(57591),y=n(767),V=n(45299),k=n(36223),S=Object.getOwnPropertyDescriptor;r.f=e?S:function(){function p(i,c){if(i=s(i),c=y(c),k)try{return S(i,c)}catch(f){}if(V(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),s=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],y=function(k){try{return t(k)}catch(S){return o(s)}};I.exports.f=function(){function V(k){return s&&e(k)==="Window"?y(k):t(a(k))}return V}()},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(s){return e(s,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),s=n(9225),y=o("IE_PROTO"),V=Object,k=V.prototype;I.exports=s?V.getPrototypeOf:function(S){var p=t(S);if(e(p,y))return p[y];var i=p.constructor;return a(i)&&p instanceof i?i.prototype:p instanceof V?k:null}},81834:function(I,r,n){"use strict";var e=n(40033),a=n(77568),t=n(7462),o=n(3782),s=Object.isExtensible,y=e(function(){s(1)});I.exports=y||o?function(){function V(k){return!a(k)||o&&t(k)==="ArrayBuffer"?!1:s?s(k):!0}return V}():s},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,s=n(79195),y=e([].push);I.exports=function(V,k){var S=t(V),p=0,i=[],c;for(c in S)!a(s,c)&&a(S,c)&&y(i,c);for(;k.length>p;)a(S,c=k[p++])&&(~o(i,c)||y(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 s=e(this,o);return!!s&&s.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 s=Math.random();__defineSetter__.call(null,s,function(){}),delete a[s]}})},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 s=!1,y={},V;try{V=e(Object.prototype,"__proto__","set"),V(y,[]),s=y instanceof Array}catch(k){}return function(){function k(S,p){return t(S),o(p),a(S)&&(s?V(S,p):S.__proto__=p),S}return k}()}():void 0)},70915:function(I,r,n){"use strict";var e=n(58310),a=n(40033),t=n(67250),o=n(36917),s=n(18450),y=n(57591),V=n(12867).f,k=t(V),S=t([].push),p=e&&a(function(){var c=Object.create(null);return c[2]=2,!k(c,2)}),i=function(f){return function(u){for(var d=y(u),m=s(d),l=p&&o(d)===null,v=m.length,b=0,N=[],h;v>b;)h=m[b++],(!e||(l?h in d:k(d,h)))&&S(N,f?[h,d[h]]:d[h]);return N}};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(s,y){var V,k;if(y==="string"&&a(V=s.toString)&&!t(k=e(V,s))||a(V=s.valueOf)&&!t(k=e(V,s))||y!=="string"&&a(V=s.toString)&&!t(k=e(V,s)))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),s=n(30365),y=a([].concat);I.exports=e("Reflect","ownKeys")||function(){function V(k){var S=t.f(s(k)),p=o.f;return p?y(S,p(k)):S}return V}()},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),s=n(40492),y=n(24697),V=n(10753),k=n(4493),S=n(83141),p=a&&a.prototype,i=y("species"),c=!1,f=t(e.PromiseRejectionEvent),u=o("Promise",function(){var d=s(a),m=d!==String(a);if(!m&&S===66||k&&!(p.catch&&p.finally))return!0;if(!S||S<51||!/native code/.test(d)){var l=new a(function(N){N(1)}),v=function(h){h(function(){},function(){})},b=l.constructor={};if(b[i]=v,c=l.then(function(){})instanceof v,!c)return!0}return!m&&(V==="BROWSER"||V==="DENO")&&!f});I.exports={CONSTRUCTOR:u,REJECTION_EVENT:f,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,s){if(e(o),a(s)&&s.constructor===o)return s;var y=t.f(o),V=y.resolve;return V(s),y.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 s(){return t[o]}return s}(),set:function(){function s(y){t[o]=y}return s}()})}},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),s=n(14489),y=TypeError;I.exports=function(V,k){var S=V.exec;if(t(S)){var p=e(S,V,k);return p!==null&&a(p),p}if(o(V)==="RegExp")return e(s,V,k);throw new y("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),s=n(62115),y=n(16639),V=n(80674),k=n(5419).get,S=n(39173),p=n(35688),i=y("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,f=c,u=a("".charAt),d=a("".indexOf),m=a("".replace),l=a("".slice),v=function(){var C=/a/,g=/b*/g;return e(c,C,"a"),e(c,g,"a"),C.lastIndex!==0||g.lastIndex!==0}(),b=s.BROKEN_CARET,N=/()??/.exec("")[1]!==void 0,h=v||N||b||S||p;h&&(f=function(){function C(g){var x=this,B=k(x),L=t(g),w=B.raw,A,T,E,O,P,R,F;if(w)return w.lastIndex=x.lastIndex,A=e(f,w,L),x.lastIndex=w.lastIndex,A;var j=B.groups,W=b&&x.sticky,H=e(o,x),z=x.source,$=0,G=L;if(W&&(H=m(H,"y",""),d(H,"g")===-1&&(H+="g"),G=l(L,x.lastIndex),x.lastIndex>0&&(!x.multiline||x.multiline&&u(L,x.lastIndex-1)!=="\n")&&(z="(?: "+z+")",G=" "+G,$++),T=new RegExp("^(?:"+z+")",H)),N&&(T=new RegExp("^"+z+"$(?!\\s)",H)),v&&(E=x.lastIndex),O=e(c,W?T:x,G),W?O?(O.input=l(O.input,$),O[0]=l(O[0],$),O.index=x.lastIndex,x.lastIndex+=O[0].length):x.lastIndex=0:v&&O&&(x.lastIndex=x.global?O.index+O[0].length:E),N&&O&&O.length>1&&e(i,O[0],T,function(){for(P=1;Pb)","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 s=t(e,o);return s&&s.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),s=n(83309),y=n(54602),V=n(24986),k=e.Function,S=/MSIE .\./.test(s)||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 S?function(f,u){var d=V(arguments.length,1)>c,m=t(f)?f:k(f),l=d?y(arguments,c):[],v=d?function(){a(m,this,l)}:m;return i?p(v,u):p(v)}:p}},58491:function(I,r,n){"use strict";var e=n(4009),a=n(73936),t=n(24697),o=n(58310),s=t("species");I.exports=function(y){var V=e(y);o&&V&&!V[s]&&a(V,s,{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(s,y,V){s&&!V&&(s=s.prototype),s&&!a(s,o)&&e(s,o,{configurable:!0,value:y})}},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__",s=I.exports=a[o]||t(o,{});(s.versions||(s.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),s=o("species");I.exports=function(y,V){var k=e(y).constructor,S;return k===void 0||t(S=e(k)[s])?V:a(S)}},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),s=e("".charAt),y=e("".charCodeAt),V=e("".slice),k=function(p){return function(i,c){var f=t(o(i)),u=a(c),d=f.length,m,l;return u<0||u>=d?p?"":void 0:(m=y(f,u),m<55296||m>56319||u+1===d||(l=y(f,u+1))<56320||l>57343?p?s(f,u):m:p?V(f,u,u+2):(m-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),s=n(16952),y=e(o),V=e("".slice),k=Math.ceil,S=function(i){return function(c,f,u){var d=t(s(c)),m=a(f),l=d.length,v=u===void 0?" ":t(u),b,N;return m<=l||v===""?d:(b=m-l,N=y(v,k(b/v.length)),N.length>b&&(N=V(N,0,b)),i?d+N:N+d)}};I.exports={start:S(!1),end:S(!0)}},62443:function(I,r,n){"use strict";var e=n(61365),a=n(12605),t=n(16952),o=RangeError;I.exports=function(){function s(y){var V=a(t(this)),k="",S=e(y);if(S<0||S===1/0)throw new o("Wrong number of repetitions");for(;S>0;(S>>>=1)&&(V+=V))S&1&&(k+=V);return k}return s}()},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(s){return a(function(){return!!t[s]()||o[s]()!==o||e&&t[s].name!==s})}},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),s=e("".replace),y=RegExp("^["+o+"]+"),V=RegExp("(^|[^"+o+"])["+o+"]+$"),k=function(p){return function(i){var c=t(a(i));return p&1&&(c=s(c,y,"")),p&2&&(c=s(c,V,"$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 s=Symbol("symbol detection");return!o(s)||!(Object(s)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 s=a("Symbol"),y=s&&s.prototype,V=y&&y.valueOf,k=t("toPrimitive");y&&!y[k]&&o(y,k,function(S){return e(V,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),s=n(45299),y=n(40033),V=n(5315),k=n(54602),S=n(12689),p=n(24986),i=n(27770),c=n(81663),f=e.setImmediate,u=e.clearImmediate,d=e.process,m=e.Dispatch,l=e.Function,v=e.MessageChannel,b=e.String,N=0,h={},C="onreadystatechange",g,x,B,L;y(function(){g=e.location});var w=function(P){if(s(h,P)){var R=h[P];delete h[P],R()}},A=function(P){return function(){w(P)}},T=function(P){w(P.data)},E=function(P){e.postMessage(b(P),g.protocol+"//"+g.host)};(!f||!u)&&(f=function(){function O(P){p(arguments.length,1);var R=o(P)?P:l(P),F=k(arguments,1);return h[++N]=function(){a(R,void 0,F)},x(N),N}return O}(),u=function(){function O(P){delete h[P]}return O}(),c?x=function(P){d.nextTick(A(P))}:m&&m.now?x=function(P){m.now(A(P))}:v&&!i?(B=new v,L=B.port2,B.port1.onmessage=T,x=t(L.postMessage,L)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&g&&g.protocol!=="file:"&&!y(E)?(x=E,e.addEventListener("message",T,!1)):C in S("script")?x=function(P){V.appendChild(S("script"))[C]=function(){V.removeChild(this),w(P)}}:x=function(P){setTimeout(A(P),0)}),I.exports={set:f,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,s){var y=e(o);return y<0?a(y+s,0):t(y,s)}},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 s=e(o),y=a(s);if(s!==y)throw new t("Wrong length or index");return y}},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 s=e(t);if(s%o)throw new a("Wrong offset");return s}},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),s=n(13396),y=n(24697),V=TypeError,k=y("toPrimitive");I.exports=function(S,p){if(!a(S)||t(S))return S;var i=o(S,k),c;if(i){if(p===void 0&&(p="default"),c=e(i,S,p),!a(c)||t(c))return c;throw new V("Can't convert object to primitive value")}return p===void 0&&(p="number"),s(S,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),s=n(86563),y=n(4246),V=n(37336),k=n(60077),S=n(87458),p=n(37909),i=n(5841),c=n(10188),f=n(43806),u=n(56043),d=n(15409),m=n(767),l=n(45299),v=n(2281),b=n(77568),N=n(71399),h=n(80674),C=n(21287),g=n(76649),x=n(37310).f,B=n(3805),L=n(22603).forEach,w=n(58491),A=n(73936),T=n(74595),E=n(27193),O=n(78008),P=n(5419),R=n(5781),F=P.get,j=P.set,W=P.enforce,H=T.f,z=E.f,$=a.RangeError,G=V.ArrayBuffer,ne=G.prototype,Q=V.DataView,he=y.NATIVE_ARRAY_BUFFER_VIEWS,Ve=y.TYPED_ARRAY_TAG,Ne=y.TypedArray,Be=y.TypedArrayPrototype,Le=y.isTypedArray,Ae="BYTES_PER_ELEMENT",fe="Wrong length",Z=function(me,Te){A(me,Te,{configurable:!0,get:function(){function M(){return F(this)[Te]}return M}()})},J=function(me){var Te;return C(ne,me)||(Te=v(me))==="ArrayBuffer"||Te==="SharedArrayBuffer"},te=function(me,Te){return Le(me)&&!N(Te)&&Te in me&&i(+Te)&&Te>=0},ee=function(){function ye(me,Te){return Te=m(Te),te(me,Te)?S(2,me[Te]):z(me,Te)}return ye}(),le=function(){function ye(me,Te,M){return Te=m(Te),te(me,Te)&&b(M)&&l(M,"value")&&!l(M,"get")&&!l(M,"set")&&!M.configurable&&(!l(M,"writable")||M.writable)&&(!l(M,"enumerable")||M.enumerable)?(me[Te]=M.value,me):H(me,Te,M)}return ye}();o?(he||(E.f=ee,T.f=le,Z(Be,"buffer"),Z(Be,"byteOffset"),Z(Be,"byteLength"),Z(Be,"length")),e({target:"Object",stat:!0,forced:!he},{getOwnPropertyDescriptor:ee,defineProperty:le}),I.exports=function(ye,me,Te){var M=ye.match(/\d+/)[0]/8,X=ye+(Te?"Clamped":"")+"Array",ae="get"+ye,ue="set"+ye,ie=a[X],ge=ie,Ce=ge&&ge.prototype,Me={},De=function(_,oe){var ve=F(_);return ve.view[ae](oe*M+ve.byteOffset,!0)},ke=function(_,oe,ve){var Se=F(_);Se.view[ue](oe*M+Se.byteOffset,Te?d(ve):ve,!0)},pe=function(_,oe){H(_,oe,{get:function(){function ve(){return De(this,oe)}return ve}(),set:function(){function ve(Se){return ke(this,oe,Se)}return ve}(),enumerable:!0})};he?s&&(ge=me(function(xe,_,oe,ve){return k(xe,Ce),R(function(){return b(_)?J(_)?ve!==void 0?new ie(_,u(oe,M),ve):oe!==void 0?new ie(_,u(oe,M)):new ie(_):Le(_)?O(ge,_):t(B,ge,_):new ie(f(_))}(),xe,ge)}),g&&g(ge,Ne),L(x(ie),function(xe){xe in ge||p(ge,xe,ie[xe])}),ge.prototype=Ce):(ge=me(function(xe,_,oe,ve){k(xe,Ce);var Se=0,Ie=0,Ee,Pe,Oe;if(!b(_))Oe=f(_),Pe=Oe*M,Ee=new G(Pe);else if(J(_)){Ee=_,Ie=u(oe,M);var We=_.byteLength;if(ve===void 0){if(We%M)throw new $(fe);if(Pe=We-Ie,Pe<0)throw new $(fe)}else if(Pe=c(ve)*M,Pe+Ie>We)throw new $(fe);Oe=Pe/M}else return Le(_)?O(ge,_):t(B,ge,_);for(j(xe,{buffer:Ee,byteOffset:Ie,byteLength:Pe,length:Oe,view:new Q(Ee)});Se1?arguments[1]:void 0,v=l!==void 0,b=V(d),N,h,C,g,x,B,L,w;if(b&&!k(b))for(L=y(d,b),w=L.next,d=[];!(B=a(w,L)).done;)d.push(B.value);for(v&&m>2&&(l=e(l,arguments[2])),h=s(d),C=new(p(u))(h),g=S(C),N=0;h>N;N++)x=v?l(d[N],N):d[N],C[N]=g?i(x):+x;return C}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(s){return t(a(s,o(s)))}},16738:function(I,r,n){"use strict";var e=n(67250),a=0,t=Math.random(),o=e(1 .toString);I.exports=function(s){return"Symbol("+(s===void 0?"":s)+")_"+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[f]=!1,l.concat()[0]!==l}),d=function(v){if(!o(v))return!1;var b=v[f];return b!==void 0?!!b:t(v)},m=!u||!p("concat");e({target:"Array",proto:!0,arity:1,forced:m},{concat:function(){function l(v){var b=s(this),N=S(b,0),h=0,C,g,x,B,L;for(C=-1,x=arguments.length;C1?arguments[1]:void 0)}return s}()})},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 s(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return s}()})},64094:function(I,r,n){"use strict";var e=n(63964),a=n(22603).findIndex,t=n(80575),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),e({target:"Array",proto:!0,forced:s},{findIndex:function(){function y(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return y}()}),t(o)},13455:function(I,r,n){"use strict";var e=n(63964),a=n(22603).find,t=n(80575),o="find",s=!0;o in[]&&Array(1)[o](function(){s=!1}),e({target:"Array",proto:!0,forced:s},{find:function(){function y(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return y}()}),t(o)},32384:function(I,r,n){"use strict";var e=n(63964),a=n(65561),t=n(10320),o=n(46771),s=n(24760),y=n(57823);e({target:"Array",proto:!0},{flatMap:function(){function V(k){var S=o(this),p=s(S),i;return t(k),i=y(S,0),i.length=a(i,S,S,p,0,1,k,arguments.length>1?arguments[1]:void 0),i}return V}()})},61915:function(I,r,n){"use strict";var e=n(63964),a=n(65561),t=n(46771),o=n(24760),s=n(61365),y=n(57823);e({target:"Array",proto:!0},{flat:function(){function V(){var k=arguments.length?arguments[0]:void 0,S=t(this),p=o(S),i=y(S,0);return i.length=a(i,S,S,p,0,k===void 0?1:s(k)),i}return V}()})},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(s){Array.from(s)});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),s=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:s},{includes:function(){function y(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return y}()}),o("includes")},43894:function(I,r,n){"use strict";var e=n(63964),a=n(71138),t=n(14211).indexOf,o=n(55528),s=a([].indexOf),y=!!s&&1/s([1],1,-0)<0,V=y||!o("indexOf");e({target:"Array",proto:!0,forced:V},{indexOf:function(){function k(S){var p=arguments.length>1?arguments[1]:void 0;return y?s(this,S,p)||0:t(this,S,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),s=n(74595).f,y=n(65574),V=n(5959),k=n(4493),S=n(58310),p="Array Iterator",i=o.set,c=o.getterFor(p);I.exports=y(Array,"Array",function(u,d){i(this,{type:p,target:e(u),index:0,kind:d})},function(){var u=c(this),d=u.target,m=u.index++;if(!d||m>=d.length)return u.target=null,V(void 0,!0);switch(u.kind){case"keys":return V(m,!1);case"values":return V(d[m],!1)}return V([m,d[m]],!1)},"values");var f=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!k&&S&&f.name!=="values")try{s(f,"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),s=n(55528),y=a([].join),V=t!==Object,k=V||!s("join",",");e({target:"Array",proto:!0,forced:k},{join:function(){function S(p){return y(o(this),p===void 0?",":p)}return S}()})},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 s(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return s}()})},32089:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(1031),o=n(60102),s=Array,y=a(function(){function V(){}return!(s.of.call(V)instanceof V)});e({target:"Array",stat:!0,forced:y},{of:function(){function V(){for(var k=0,S=arguments.length,p=new(t(this)?this:s)(S);S>k;)o(p,k,arguments[k++]);return p.length=S,p}return V}()})},29645:function(I,r,n){"use strict";var e=n(63964),a=n(56844).right,t=n(55528),o=n(83141),s=n(81663),y=!s&&o>79&&o<83,V=y||!t("reduceRight");e({target:"Array",proto:!0,forced:V},{reduceRight:function(){function k(S){return a(this,S,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),s=n(81663),y=!s&&o>79&&o<83,V=y||!t("reduce");e({target:"Array",proto:!0,forced:V},{reduce:function(){function k(S){var p=arguments.length;return a(this,S,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),s=[1,2];e({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){function y(){return t(this)&&(this.length=this.length),o(this)}return y}()})},58672:function(I,r,n){"use strict";var e=n(63964),a=n(37386),t=n(1031),o=n(77568),s=n(13912),y=n(24760),V=n(57591),k=n(60102),S=n(24697),p=n(44091),i=n(54602),c=p("slice"),f=S("species"),u=Array,d=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function m(l,v){var b=V(this),N=y(b),h=s(l,N),C=s(v===void 0?N:v,N),g,x,B;if(a(b)&&(g=b.constructor,t(g)&&(g===u||a(g.prototype))?g=void 0:o(g)&&(g=g[f],g===null&&(g=void 0)),g===u||g===void 0))return i(b,h,C);for(x=new(g===void 0?u:g)(d(C-h,0)),B=0;h1?arguments[1]:void 0)}return s}()})},48968:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(10320),o=n(46771),s=n(24760),y=n(95108),V=n(12605),k=n(40033),S=n(90274),p=n(55528),i=n(50503),c=n(79725),f=n(83141),u=n(44981),d=[],m=a(d.sort),l=a(d.push),v=k(function(){d.sort(void 0)}),b=k(function(){d.sort(null)}),N=p("sort"),h=!k(function(){if(f)return f<70;if(!(i&&i>3)){if(c)return!0;if(u)return u<603;var x="",B,L,w,A;for(B=65;B<76;B++){switch(L=String.fromCharCode(B),B){case 66:case 69:case 70:case 72:w=3;break;case 68:case 71:w=4;break;default:w=2}for(A=0;A<47;A++)d.push({k:L+A,v:w})}for(d.sort(function(T,E){return E.v-T.v}),A=0;AV(w)?1:-1}};e({target:"Array",proto:!0,forced:C},{sort:function(){function x(B){B!==void 0&&t(B);var L=o(this);if(h)return B===void 0?m(L):m(L,B);var w=[],A=s(L),T,E;for(E=0;Eb-g+C;B--)p(v,B-1)}else if(C>g)for(B=b-g;B>N;B--)L=B+g-1,w=B+C-1,L in v?v[w]=v[L]:p(v,w);for(B=0;B9490626562425156e-8?o(p)+y:a(p-1+s(p-1)*s(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 s(V){var k=+V;return!isFinite(k)||k===0?k:k<0?-s(-k):t(k+o(k*k+1))}var y=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:y},{asinh:s})},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 s(y){var V=+y;return V===0?V:t((1+V)/(1-V))/2}return s}()})},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 s(y){var V=+y;return a(V)*o(t(V),.3333333333333333)}return s}()})},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 s(y){var V=y>>>0;return V?31-a(t(V+.5)*o):32}return s}()})},29248:function(I,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.cosh,o=Math.abs,s=Math.E,y=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:y},{cosh:function(){function V(k){var S=a(o(k)-1)+1;return(S+1/(S*s*s))*(s/2)}return V}()})},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,s=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:s},{hypot:function(){function y(V,k){for(var S=0,p=0,i=arguments.length,c=0,f,u;p0?(u=f/c,S+=u*u):S+=f;return c===1/0?1/0:c*o(S)}return y}()})},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 s(y,V){var k=65535,S=+y,p=+V,i=k&S,c=k&p;return 0|i*c+((k&S>>>16)*c+i*(k&p>>>16)<<16>>>0)}return s}()})},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(s){return a(s)/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,s=Math.exp,y=Math.E,V=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:V},{sinh:function(){function k(S){var p=+S;return o(p)<1?(t(p)-t(-p))/2:(s(p-1)-s(-p-1))*(y/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(s){var y=+s,V=a(y),k=a(-y);return V===1/0?1:k===1/0?-1:(V-k)/(t(y)+t(-y))}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),s=n(61765),y=n(67250),V=n(41314),k=n(45299),S=n(5781),p=n(21287),i=n(71399),c=n(24843),f=n(40033),u=n(37310).f,d=n(27193).f,m=n(74595).f,l=n(46438),v=n(92648).trim,b="Number",N=o[b],h=s[b],C=N.prototype,g=o.TypeError,x=y("".slice),B=y("".charCodeAt),L=function(R){var F=c(R,"number");return typeof F=="bigint"?F:w(F)},w=function(R){var F=c(R,"number"),j,W,H,z,$,G,ne,Q;if(i(F))throw new g("Cannot convert a Symbol value to a number");if(typeof F=="string"&&F.length>2){if(F=v(F),j=B(F,0),j===43||j===45){if(W=B(F,2),W===88||W===120)return NaN}else if(j===48){switch(B(F,1)){case 66:case 98:H=2,z=49;break;case 79:case 111:H=8,z=55;break;default:return+F}for($=x(F,2),G=$.length,ne=0;nez)return NaN;return parseInt($,H)}}return+F},A=V(b,!N(" 0o1")||!N("0b1")||N("+0x1")),T=function(R){return p(C,R)&&f(function(){l(R)})},E=function(){function P(R){var F=arguments.length<1?0:N(L(R));return T(this)?S(Object(F),this,E):F}return P}();E.prototype=C,A&&!a&&(C.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var O=function(R,F){for(var j=t?u(F):"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(","),W=0,H;j.length>W;W++)k(F,H=j[W])&&!k(R,H)&&m(R,H,d(F,H))};a&&h&&O(s[b],h),(A||a)&&O(s[b],N)},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(s){return a(s)&&t(s)<=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),s=n(62443),y=n(40033),V=RangeError,k=String,S=Math.floor,p=a(s),i=a("".slice),c=a(1 .toFixed),f=function(N,h,C){return h===0?C:h%2===1?f(N,h-1,C*N):f(N*N,h/2,C)},u=function(N){for(var h=0,C=N;C>=4096;)h+=12,C/=4096;for(;C>=2;)h+=1,C/=2;return h},d=function(N,h,C){for(var g=-1,x=C;++g<6;)x+=h*N[g],N[g]=x%1e7,x=S(x/1e7)},m=function(N,h){for(var C=6,g=0;--C>=0;)g+=N[C],N[C]=S(g/h),g=g%h*1e7},l=function(N){for(var h=6,C="";--h>=0;)if(C!==""||h===0||N[h]!==0){var g=k(N[h]);C=C===""?g:C+p("0",7-g.length)+g}return C},v=y(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!y(function(){c({})});e({target:"Number",proto:!0,forced:v},{toFixed:function(){function b(N){var h=o(this),C=t(N),g=[0,0,0,0,0,0],x="",B="0",L,w,A,T;if(C<0||C>20)throw new V("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*f(2,69,1))-69,w=L<0?h*f(2,-L,1):h/f(2,L,1),w*=4503599627370496,L=52-L,L>0){for(d(g,0,w),A=C;A>=7;)d(g,1e7,0),A-=7;for(d(g,f(10,A,1),0),A=L-1;A>=23;)m(g,8388608),A-=23;m(g,1<0?(T=B.length,B=x+(T<=C?"0."+p("0",C-T)+B:i(B,0,T-C)+"."+i(B,T-C))):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),s=a(1 .toPrecision),y=t(function(){return s(1,void 0)!=="1"})||!t(function(){s({})});e({target:"Number",proto:!0,forced:y},{toPrecision:function(){function V(k){return k===void 0?s(o(this)):s(o(this),k)}return V}()})},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),s=n(46771),y=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function V(k,S){y.f(s(this),k,{get:o(S),enumerable:!0,configurable:!0})}return V}()})},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),s=n(46771),y=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function V(k,S){y.f(s(this),k,{set:o(S),enumerable:!0,configurable:!0})}return V}()})},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),s=n(81969).onFreeze,y=Object.freeze,V=t(function(){y(1)});e({target:"Object",stat:!0,forced:V,sham:!a},{freeze:function(){function k(S){return y&&o(S)?y(s(S)):S}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(s){var y={};return a(s,function(V,k){t(y,V,k)},{AS_ENTRIES:!0}),y}return o}()})},62289:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(57591),o=n(27193).f,s=n(58310),y=!s||a(function(){o(1)});e({target:"Object",stat:!0,forced:y,sham:!s},{getOwnPropertyDescriptor:function(){function V(k,S){return o(t(k),S)}return V}()})},56196:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(97921),o=n(57591),s=n(27193),y=n(60102);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function V(k){for(var S=o(k),p=s.f,i=t(S),c={},f=0,u,d;i.length>f;)d=p(S,u=i[f++]),d!==void 0&&y(c,u,d);return c}return V}()})},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),s=n(46771),y=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:y},{getOwnPropertySymbols:function(){function V(k){var S=o.f;return S?S(s(k)):[]}return V}()})},44205:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(46771),o=n(36917),s=n(9225),y=a(function(){o(1)});e({target:"Object",stat:!0,forced:y,sham:!s},{getPrototypeOf:function(){function V(k){return o(t(k))}return V}()})},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),s=n(3782),y=Object.isFrozen,V=s||a(function(){y(1)});e({target:"Object",stat:!0,forced:V},{isFrozen:function(){function k(S){return!t(S)||s&&o(S)==="ArrayBuffer"?!0:y?y(S):!1}return k}()})},13411:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),s=n(3782),y=Object.isSealed,V=s||a(function(){y(1)});e({target:"Object",stat:!0,forced:V},{isSealed:function(){function k(S){return!t(S)||s&&o(S)==="ArrayBuffer"?!0:y?y(S):!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),s=o(function(){t(1)});e({target:"Object",stat:!0,forced:s},{keys:function(){function y(V){return t(a(V))}return y}()})},53118:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),s=n(767),y=n(36917),V=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function k(S){var p=o(this),i=s(S),c;do if(c=V(p,i))return c.get;while(p=y(p))}return k}()})},42514:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),s=n(767),y=n(36917),V=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function k(S){var p=o(this),i=s(S),c;do if(c=V(p,i))return c.set;while(p=y(p))}return k}()})},84353:function(I,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),s=n(40033),y=Object.preventExtensions,V=s(function(){y(1)});e({target:"Object",stat:!0,forced:V,sham:!o},{preventExtensions:function(){function k(S){return y&&a(S)?y(t(S)):S}return k}()})},62987:function(I,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),s=n(40033),y=Object.seal,V=s(function(){y(1)});e({target:"Object",stat:!0,forced:V,sham:!o},{seal:function(){function k(S){return y&&a(S)?y(t(S)):S}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),s=n(10729),y=n(49450),V=n(48199);e({target:"Promise",stat:!0,forced:V},{all:function(){function k(S){var p=this,i=o.f(p),c=i.resolve,f=i.reject,u=s(function(){var d=t(p.resolve),m=[],l=0,v=1;y(S,function(b){var N=l++,h=!1;v++,a(d,p,b).then(function(C){h||(h=!0,m[N]=C,--v||c(m))},f)}),--v||c(m)});return u.error&&f(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),s=n(4009),y=n(55747),V=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&&y(o)){var S=s("Promise").prototype.catch;k.catch!==S&&V(k,"catch",S,{unsafe:!0})}},75946:function(I,r,n){"use strict";var e=n(63964),a=n(4493),t=n(81663),o=n(16210),s=n(91495),y=n(55938),V=n(76649),k=n(84925),S=n(58491),p=n(10320),i=n(55747),c=n(77568),f=n(60077),u=n(28987),d=n(60375).set,m=n(37713),l=n(72259),v=n(10729),b=n(9547),N=n(5419),h=n(67512),C=n(74854),g=n(81837),x="Promise",B=C.CONSTRUCTOR,L=C.REJECTION_EVENT,w=C.SUBCLASSING,A=N.getterFor(x),T=N.set,E=h&&h.prototype,O=h,P=E,R=o.TypeError,F=o.document,j=o.process,W=g.f,H=W,z=!!(F&&F.createEvent&&o.dispatchEvent),$="unhandledrejection",G="rejectionhandled",ne=0,Q=1,he=2,Ve=1,Ne=2,Be,Le,Ae,fe,Z=function(ue){var ie;return c(ue)&&i(ie=ue.then)?ie:!1},J=function(ue,ie){var ge=ie.value,Ce=ie.state===Q,Me=Ce?ue.ok:ue.fail,De=ue.resolve,ke=ue.reject,pe=ue.domain,se,xe,_;try{Me?(Ce||(ie.rejection===Ne&&me(ie),ie.rejection=Ve),Me===!0?se=ge:(pe&&pe.enter(),se=Me(ge),pe&&(pe.exit(),_=!0)),se===ue.promise?ke(new R("Promise-chain cycle")):(xe=Z(se))?s(xe,se,De,ke):De(se)):ke(ge)}catch(oe){pe&&!_&&pe.exit(),ke(oe)}},te=function(ue,ie){ue.notified||(ue.notified=!0,m(function(){for(var ge=ue.reactions,Ce;Ce=ge.get();)J(Ce,ue);ue.notified=!1,ie&&!ue.rejection&&le(ue)}))},ee=function(ue,ie,ge){var Ce,Me;z?(Ce=F.createEvent("Event"),Ce.promise=ie,Ce.reason=ge,Ce.initEvent(ue,!1,!0),o.dispatchEvent(Ce)):Ce={promise:ie,reason:ge},!L&&(Me=o["on"+ue])?Me(Ce):ue===$&&l("Unhandled promise rejection",ge)},le=function(ue){s(d,o,function(){var ie=ue.facade,ge=ue.value,Ce=ye(ue),Me;if(Ce&&(Me=v(function(){t?j.emit("unhandledRejection",ge,ie):ee($,ie,ge)}),ue.rejection=t||ye(ue)?Ne:Ve,Me.error))throw Me.value})},ye=function(ue){return ue.rejection!==Ve&&!ue.parent},me=function(ue){s(d,o,function(){var ie=ue.facade;t?j.emit("rejectionHandled",ie):ee(G,ie,ue.value)})},Te=function(ue,ie,ge){return function(Ce){ue(ie,Ce,ge)}},M=function(ue,ie,ge){ue.done||(ue.done=!0,ge&&(ue=ge),ue.value=ie,ue.state=he,te(ue,!0))},X=function(ue,ie,ge){if(!ue.done){ue.done=!0,ge&&(ue=ge);try{if(ue.facade===ie)throw new R("Promise can't be resolved itself");var Ce=Z(ie);Ce?m(function(){var Me={done:!1};try{s(Ce,ie,Te(X,Me,ue),Te(M,Me,ue))}catch(De){M(Me,De,ue)}}):(ue.value=ie,ue.state=Q,te(ue,!1))}catch(Me){M({done:!1},Me,ue)}}};if(B&&(O=function(){function ae(ue){f(this,P),p(ue),s(Be,this);var ie=A(this);try{ue(Te(X,ie),Te(M,ie))}catch(ge){M(ie,ge)}}return ae}(),P=O.prototype,Be=function(){function ae(ue){T(this,{type:x,done:!1,notified:!1,parent:!1,reactions:new b,rejection:!1,state:ne,value:null})}return ae}(),Be.prototype=y(P,"then",function(){function ae(ue,ie){var ge=A(this),Ce=W(u(this,O));return ge.parent=!0,Ce.ok=i(ue)?ue:!0,Ce.fail=i(ie)&&ie,Ce.domain=t?j.domain:void 0,ge.state===ne?ge.reactions.add(Ce):m(function(){J(Ce,ge)}),Ce.promise}return ae}()),Le=function(){var ue=new Be,ie=A(ue);this.promise=ue,this.resolve=Te(X,ie),this.reject=Te(M,ie)},g.f=W=function(ue){return ue===O||ue===Ae?new Le(ue):H(ue)},!a&&i(h)&&E!==Object.prototype)){fe=E.then,w||y(E,"then",function(){function ae(ue,ie){var ge=this;return new O(function(Ce,Me){s(fe,ge,Ce,Me)}).then(ue,ie)}return ae}(),{unsafe:!0});try{delete E.constructor}catch(ae){}V&&V(E,P)}e({global:!0,constructor:!0,wrap:!0,forced:B},{Promise:O}),k(O,x,!1,!0),S(x)},69861:function(I,r,n){"use strict";var e=n(63964),a=n(4493),t=n(67512),o=n(40033),s=n(4009),y=n(55747),V=n(28987),k=n(66628),S=n(55938),p=t&&t.prototype,i=!!t&&o(function(){p.finally.call({then:function(){function f(){}return f}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:i},{finally:function(){function f(u){var d=V(this,s("Promise")),m=y(u);return this.then(m?function(l){return k(d,u()).then(function(){return l})}:u,m?function(l){return k(d,u()).then(function(){throw l})}:u)}return f}()}),!a&&y(t)){var c=s("Promise").prototype.finally;p.finally!==c&&S(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),s=n(10729),y=n(49450),V=n(48199);e({target:"Promise",stat:!0,forced:V},{race:function(){function k(S){var p=this,i=o.f(p),c=i.reject,f=s(function(){var u=t(p.resolve);y(S,function(d){a(u,p,d).then(i.resolve,c)})});return f.error&&c(f.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(s){var y=a.f(this),V=y.reject;return V(s),y.promise}return o}()})},81702:function(I,r,n){"use strict";var e=n(63964),a=n(4009),t=n(4493),o=n(67512),s=n(74854).CONSTRUCTOR,y=n(66628),V=a("Promise"),k=t&&!s;e({target:"Promise",stat:!0,forced:t||s},{resolve:function(){function S(p){return y(k&&this===V?o:this,p)}return S}()})},29674:function(I,r,n){"use strict";var e=n(63964),a=n(61267),t=n(10320),o=n(30365),s=n(40033),y=!s(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:y},{apply:function(){function V(k,S,p){return a(t(k),S,o(p))}return V}()})},81543:function(I,r,n){"use strict";var e=n(63964),a=n(4009),t=n(61267),o=n(66284),s=n(32606),y=n(30365),V=n(77568),k=n(80674),S=n(40033),p=a("Reflect","construct"),i=Object.prototype,c=[].push,f=S(function(){function m(){}return!(p(function(){},[],m)instanceof m)}),u=!S(function(){p(function(){})}),d=f||u;e({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(){function m(l,v){s(l),y(v);var b=arguments.length<3?l:s(arguments[2]);if(u&&!f)return p(l,v,b);if(l===b){switch(v.length){case 0:return new l;case 1:return new l(v[0]);case 2:return new l(v[0],v[1]);case 3:return new l(v[0],v[1],v[2]);case 4:return new l(v[0],v[1],v[2],v[3])}var N=[null];return t(c,N,v),new(t(o,l,N))}var h=b.prototype,C=k(V(h)?h:i),g=t(l,C,v);return V(g)?g:C}return m}()})},9373:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(767),s=n(74595),y=n(40033),V=y(function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:V,sham:!a},{defineProperty:function(){function k(S,p,i){t(S);var c=o(p);t(i);try{return s.f(S,c,i),!0}catch(f){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(s,y){var V=t(a(s),y);return V&&!V.configurable?!1:delete s[y]}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 s(y,V){return o.f(t(y),V)}return s}()})},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 s(y){return t(a(y))}return s}()})},63074:function(I,r,n){"use strict";var e=n(63964),a=n(91495),t=n(77568),o=n(30365),s=n(98373),y=n(27193),V=n(36917);function k(S,p){var i=arguments.length<3?S:arguments[2],c,f;if(o(S)===i)return S[p];if(c=y.f(S,p),c)return s(c)?c.value:c.get===void 0?void 0:a(c.get,i);if(t(f=V(S)))return k(f,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(s){return a(s),t(s)}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 s(y){t(y);try{var V=a("Object","preventExtensions");return V&&V(y),!0}catch(k){return!1}}return s}()})},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 s(y,V){a(y),t(V);try{return o(y,V),!0}catch(k){return!1}}return s}()})},92046:function(I,r,n){"use strict";var e=n(63964),a=n(91495),t=n(30365),o=n(77568),s=n(98373),y=n(40033),V=n(74595),k=n(27193),S=n(36917),p=n(87458);function i(f,u,d){var m=arguments.length<4?f:arguments[3],l=k.f(t(f),u),v,b,N;if(!l){if(o(b=S(f)))return i(b,u,d,m);l=p(0)}if(s(l)){if(l.writable===!1||!o(m))return!1;if(v=k.f(m,u)){if(v.get||v.set||v.writable===!1)return!1;v.value=d,V.f(m,u,v)}else V.f(m,u,p(0,d))}else{if(N=l.set,N===void 0)return!1;a(N,m,d)}return!0}var c=y(function(){var f=function(){},u=V.f(new f,"a",{configurable:!0});return Reflect.set(f.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),s=n(5781),y=n(37909),V=n(80674),k=n(37310).f,S=n(21287),p=n(72586),i=n(12605),c=n(73392),f=n(62115),u=n(34550),d=n(55938),m=n(40033),l=n(45299),v=n(5419).enforce,b=n(58491),N=n(24697),h=n(39173),C=n(35688),g=N("match"),x=a.RegExp,B=x.prototype,L=a.SyntaxError,w=t(B.exec),A=t("".charAt),T=t("".replace),E=t("".indexOf),O=t("".slice),P=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,R=/a/g,F=/a/g,j=new x(R)!==R,W=f.MISSED_STICKY,H=f.UNSUPPORTED_Y,z=e&&(!j||W||h||C||m(function(){return F[g]=!1,x(R)!==R||x(F)===F||String(x(R,"i"))!=="/a/i"})),$=function(Ne){for(var Be=Ne.length,Le=0,Ae="",fe=!1,Z;Le<=Be;Le++){if(Z=A(Ne,Le),Z==="\\"){Ae+=Z+A(Ne,++Le);continue}!fe&&Z==="."?Ae+="[\\s\\S]":(Z==="["?fe=!0:Z==="]"&&(fe=!1),Ae+=Z)}return Ae},G=function(Ne){for(var Be=Ne.length,Le=0,Ae="",fe=[],Z=V(null),J=!1,te=!1,ee=0,le="",ye;Le<=Be;Le++){if(ye=A(Ne,Le),ye==="\\")ye+=A(Ne,++Le);else if(ye==="]")J=!1;else if(!J)switch(!0){case ye==="[":J=!0;break;case ye==="(":if(Ae+=ye,O(Ne,Le+1,Le+3)==="?:")continue;w(P,O(Ne,Le+1))&&(Le+=2,te=!0),ee++;continue;case(ye===">"&&te):if(le===""||l(Z,le))throw new L("Invalid capture group name");Z[le]=!0,fe[fe.length]=[le,ee],te=!1,le="";continue}te?le+=ye:Ae+=ye}return[Ae,fe]};if(o("RegExp",z)){for(var ne=function(){function Ve(Ne,Be){var Le=S(B,this),Ae=p(Ne),fe=Be===void 0,Z=[],J=Ne,te,ee,le,ye,me,Te;if(!Le&&Ae&&fe&&Ne.constructor===ne)return Ne;if((Ae||S(B,Ne))&&(Ne=Ne.source,fe&&(Be=c(J))),Ne=Ne===void 0?"":i(Ne),Be=Be===void 0?"":i(Be),J=Ne,h&&"dotAll"in R&&(ee=!!Be&&E(Be,"s")>-1,ee&&(Be=T(Be,/s/g,""))),te=Be,W&&"sticky"in R&&(le=!!Be&&E(Be,"y")>-1,le&&H&&(Be=T(Be,/y/g,""))),C&&(ye=G(Ne),Ne=ye[0],Z=ye[1]),me=s(x(Ne,Be),Le?this:B,ne),(ee||le||Z.length)&&(Te=v(me),ee&&(Te.dotAll=!0,Te.raw=ne($(Ne),te)),le&&(Te.sticky=!0),Z.length&&(Te.groups=Z)),Ne!==J)try{y(me,"source",J===""?"(?:)":J)}catch(M){}return me}return Ve}(),Q=k(x),he=0;Q.length>he;)u(ne,x,Q[he++]);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),s=n(40033),y=e.RegExp,V=y.prototype,k=a&&s(function(){var S=!0;try{y(".","d")}catch(l){S=!1}var p={},i="",c=S?"dgimsy":"gimsy",f=function(v,b){Object.defineProperty(p,v,{get:function(){function N(){return i+=b,!0}return N}()})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};S&&(u.hasIndices="d");for(var d in u)f(d,u[d]);var m=Object.getOwnPropertyDescriptor(V,"flags").get.call(p);return m!==c||i!==c});k&&t(V,"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),s=n(40033),y=n(73392),V="toString",k=RegExp.prototype,S=k[V],p=s(function(){return S.call({source:"a",flags:"b"})!=="/a/b"}),i=e&&S.name!==V;(p||i)&&a(k,V,function(){function c(){var f=t(this),u=o(f.source),d=o(y(f));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(s){return a(this,"a","name",s)}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),s=n(12605),y=n(86213),V=n(16952),k=n(45490),S=n(4493),p=a("".slice),i=Math.min,c=k("endsWith"),f=!S&&!c&&!!function(){var u=t(String.prototype,"endsWith");return u&&!u.writable}();e({target:"String",proto:!0,forced:!f&&!c},{endsWith:function(){function u(d){var m=s(V(this));y(d);var l=arguments.length>1?arguments[1]:void 0,v=m.length,b=l===void 0?v:i(o(l),v),N=s(d);return p(m,b-N.length,b)===N}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(s){return a(this,"font","color",s)}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(s){return a(this,"font","size",s)}return o}()})},9867:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(13912),o=RangeError,s=String.fromCharCode,y=String.fromCodePoint,V=a([].join),k=!!y&&y.length!==1;e({target:"String",stat:!0,arity:1,forced:k},{fromCodePoint:function(){function S(p){for(var i=[],c=arguments.length,f=0,u;c>f;){if(u=+arguments[f++],t(u,1114111)!==u)throw new o(u+" is not a valid code point");i[f]=u<65536?s(u):s(((u-=65536)>>10)+55296,u%1024+56320)}return V(i,"")}return S}()})},43673:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(86213),o=n(16952),s=n(12605),y=n(45490),V=a("".indexOf);e({target:"String",proto:!0,forced:!y("includes")},{includes:function(){function k(S){return!!~V(s(o(this)),s(t(S)),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),s=n(5959),y="String Iterator",V=t.set,k=t.getterFor(y);o(String,"String",function(S){V(this,{type:y,string:a(S),index:0})},function(){function S(){var p=k(this),i=p.string,c=p.index,f;return c>=i.length?s(void 0,!0):(f=e(i,c),p.index+=f.length,s(f,!1))}return S}())},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(s){return a(this,"a","href",s)}return o}()})},22515:function(I,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),s=n(10188),y=n(12605),V=n(16952),k=n(78060),S=n(35483),p=n(28340);a("match",function(i,c,f){return[function(){function u(d){var m=V(this),l=o(d)?void 0:k(d,i);return l?e(l,d,m):new RegExp(d)[i](y(m))}return u}(),function(u){var d=t(this),m=y(u),l=f(c,d,m);if(l.done)return l.value;if(!d.global)return p(d,m);var v=d.unicode;d.lastIndex=0;for(var b=[],N=0,h;(h=p(d,m))!==null;){var C=y(h[0]);b[N]=C,C===""&&(d.lastIndex=S(m,s(d.lastIndex),v)),N++}return N===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(s){return a(this,s,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(s){return a(this,s,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),s=n(12605),y=n(24760),V=a([].push),k=a([].join);e({target:"String",stat:!0},{raw:function(){function S(p){var i=t(o(p).raw),c=y(i);if(!c)return"";for(var f=arguments.length,u=[],d=0;;){if(V(u,s(i[d++])),d===c)return k(u,"");d")!=="7"});o("replace",function(T,E,O){var P=w?"$":"$0";return[function(){function R(F,j){var W=c(this),H=k(F)?void 0:u(F,v);return H?a(H,F,W,j):a(E,i(W),F,j)}return R}(),function(R,F){var j=y(this),W=i(R);if(typeof F=="string"&&g(F,P)===-1&&g(F,"$<")===-1){var H=O(E,j,W,F);if(H.done)return H.value}var z=V(F);z||(F=i(F));var $=j.global,G;$&&(G=j.unicode,j.lastIndex=0);for(var ne=[],Q;Q=m(j,W),!(Q===null||(C(ne,Q),!$));){var he=i(Q[0]);he===""&&(j.lastIndex=f(W,p(j.lastIndex),G))}for(var Ve="",Ne=0,Be=0;Be=Ne&&(Ve+=x(W,Ne,Ae)+Z,Ne=Ae+Le.length)}return Ve+x(W,Ne)}]},!A||!L||w)},63272:function(I,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),s=n(16952),y=n(5700),V=n(12605),k=n(78060),S=n(28340);a("search",function(p,i,c){return[function(){function f(u){var d=s(this),m=o(u)?void 0:k(u,p);return m?e(m,u,d):new RegExp(u)[p](V(d))}return f}(),function(f){var u=t(this),d=V(f),m=c(i,u,d);if(m.done)return m.value;var l=u.lastIndex;y(l,0)||(u.lastIndex=0);var v=S(u,d);return y(u.lastIndex,l)||(u.lastIndex=l),v===null?-1:v.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),s=n(42871),y=n(16952),V=n(28987),k=n(35483),S=n(10188),p=n(12605),i=n(78060),c=n(28340),f=n(62115),u=n(40033),d=f.UNSUPPORTED_Y,m=4294967295,l=Math.min,v=a([].push),b=a("".slice),N=!u(function(){var C=/(?:)/,g=C.exec;C.exec=function(){return g.apply(this,arguments)};var x="ab".split(C);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(C,g,x){var B="0".split(void 0,0).length?function(L,w){return L===void 0&&w===0?[]:e(g,this,L,w)}:g;return[function(){function L(w,A){var T=y(this),E=s(w)?void 0:i(w,C);return E?e(E,w,T,A):e(B,p(T),w,A)}return L}(),function(L,w){var A=o(this),T=p(L);if(!h){var E=x(B,A,T,w,B!==g);if(E.done)return E.value}var O=V(A,RegExp),P=A.unicode,R=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(d?"g":"y"),F=new O(d?"^(?:"+A.source+")":A,R),j=w===void 0?m:w>>>0;if(j===0)return[];if(T.length===0)return c(F,T)===null?[T]:[];for(var W=0,H=0,z=[];H1?arguments[1]:void 0,m.length)),v=s(d);return p(m,l,l+v.length)===v}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),s=n(4493),y=n(58310),V=n(52357),k=n(40033),S=n(45299),p=n(21287),i=n(30365),c=n(57591),f=n(767),u=n(12605),d=n(87458),m=n(80674),l=n(18450),v=n(37310),b=n(81644),N=n(89235),h=n(27193),C=n(74595),g=n(24239),x=n(12867),B=n(55938),L=n(73936),w=n(16639),A=n(19417),T=n(79195),E=n(16738),O=n(24697),P=n(55557),R=n(85889),F=n(52360),j=n(84925),W=n(5419),H=n(22603).forEach,z=A("hidden"),$="Symbol",G="prototype",ne=W.set,Q=W.getterFor($),he=Object[G],Ve=a.Symbol,Ne=Ve&&Ve[G],Be=a.RangeError,Le=a.TypeError,Ae=a.QObject,fe=h.f,Z=C.f,J=b.f,te=x.f,ee=o([].push),le=w("symbols"),ye=w("op-symbols"),me=w("wks"),Te=!Ae||!Ae[G]||!Ae[G].findChild,M=function(se,xe,_){var oe=fe(he,xe);oe&&delete he[xe],Z(se,xe,_),oe&&se!==he&&Z(he,xe,oe)},X=y&&k(function(){return m(Z({},"a",{get:function(){function pe(){return Z(this,"a",{value:7}).a}return pe}()})).a!==7})?M:Z,ae=function(se,xe){var _=le[se]=m(Ne);return ne(_,{type:$,tag:se,description:xe}),y||(_.description=xe),_},ue=function(){function pe(se,xe,_){se===he&&ue(ye,xe,_),i(se);var oe=f(xe);return i(_),S(le,oe)?(_.enumerable?(S(se,z)&&se[z][oe]&&(se[z][oe]=!1),_=m(_,{enumerable:d(0,!1)})):(S(se,z)||Z(se,z,d(1,m(null))),se[z][oe]=!0),X(se,oe,_)):Z(se,oe,_)}return pe}(),ie=function(){function pe(se,xe){i(se);var _=c(xe),oe=l(_).concat(ke(_));return H(oe,function(ve){(!y||t(Ce,_,ve))&&ue(se,ve,_[ve])}),se}return pe}(),ge=function(){function pe(se,xe){return xe===void 0?m(se):ie(m(se),xe)}return pe}(),Ce=function(){function pe(se){var xe=f(se),_=t(te,this,xe);return this===he&&S(le,xe)&&!S(ye,xe)?!1:_||!S(this,xe)||!S(le,xe)||S(this,z)&&this[z][xe]?_:!0}return pe}(),Me=function(){function pe(se,xe){var _=c(se),oe=f(xe);if(!(_===he&&S(le,oe)&&!S(ye,oe))){var ve=fe(_,oe);return ve&&S(le,oe)&&!(S(_,z)&&_[z][oe])&&(ve.enumerable=!0),ve}}return pe}(),De=function(){function pe(se){var xe=J(c(se)),_=[];return H(xe,function(oe){!S(le,oe)&&!S(T,oe)&&ee(_,oe)}),_}return pe}(),ke=function(se){var xe=se===he,_=J(xe?ye:c(se)),oe=[];return H(_,function(ve){S(le,ve)&&(!xe||S(he,ve))&&ee(oe,le[ve])}),oe};V||(Ve=function(){function pe(){if(p(Ne,this))throw new Le("Symbol is not a constructor");var se=!arguments.length||arguments[0]===void 0?void 0:u(arguments[0]),xe=E(se),_=function(){function oe(ve){var Se=this===void 0?a:this;Se===he&&t(_,ye,ve),S(Se,z)&&S(Se[z],xe)&&(Se[z][xe]=!1);var Ie=d(1,ve);try{X(Se,xe,Ie)}catch(Ee){if(!(Ee instanceof Be))throw Ee;M(Se,xe,Ie)}}return oe}();return y&&Te&&X(he,xe,{configurable:!0,set:_}),ae(xe,se)}return pe}(),Ne=Ve[G],B(Ne,"toString",function(){function pe(){return Q(this).tag}return pe}()),B(Ve,"withoutSetter",function(pe){return ae(E(pe),pe)}),x.f=Ce,C.f=ue,g.f=ie,h.f=Me,v.f=b.f=De,N.f=ke,P.f=function(pe){return ae(O(pe),pe)},y&&(L(Ne,"description",{configurable:!0,get:function(){function pe(){return Q(this).description}return pe}()}),s||B(he,"propertyIsEnumerable",Ce,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!V,sham:!V},{Symbol:Ve}),H(l(me),function(pe){R(pe)}),e({target:$,stat:!0,forced:!V},{useSetter:function(){function pe(){Te=!0}return pe}(),useSimple:function(){function pe(){Te=!1}return pe}()}),e({target:"Object",stat:!0,forced:!V,sham:!y},{create:ge,defineProperty:ue,defineProperties:ie,getOwnPropertyDescriptor:Me}),e({target:"Object",stat:!0,forced:!V},{getOwnPropertyNames:De}),F(),j(Ve,$),T[z]=!0},10933:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(16210),o=n(67250),s=n(45299),y=n(55747),V=n(21287),k=n(12605),S=n(73936),p=n(5774),i=t.Symbol,c=i&&i.prototype;if(a&&y(i)&&(!("description"in c)||i().description!==void 0)){var f={},u=function(){function h(){var C=arguments.length<1||arguments[0]===void 0?void 0:k(arguments[0]),g=V(c,this)?new i(C):C===void 0?i():i(C);return C===""&&(f[g]=!0),g}return h}();p(u,i),u.prototype=c,c.constructor=u;var d=String(i("description detection"))==="Symbol(description detection)",m=o(c.valueOf),l=o(c.toString),v=/^Symbol\((.*)\)[^)]+$/,b=o("".replace),N=o("".slice);S(c,"description",{configurable:!0,get:function(){function h(){var C=m(this);if(s(f,C))return"";var g=l(C),x=d?N(g,7,-1):b(g,v,"$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),s=n(16639),y=n(66570),V=s("string-to-symbol-registry"),k=s("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!y},{for:function(){function S(p){var i=o(p);if(t(V,i))return V[i];var c=a("Symbol")(i);return V[i]=c,k[c]=i,c}return S}()})},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),s=n(16639),y=n(66570),V=s("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!y},{keyFor:function(){function k(S){if(!t(S))throw new TypeError(o(S)+" is not a symbol");if(a(V,S))return V[S]}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),s=a.aTypedArray,y=a.exportTypedArrayMethod;y("copyWithin",function(){function V(k,S){return o(s(this),k,S,arguments.length>2?arguments[2]:void 0)}return V}())},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 s(y){return a(t(this),y,arguments.length>1?arguments[1]:void 0)}return s}())},58166:function(I,r,n){"use strict";var e=n(4246),a=n(88471),t=n(61484),o=n(2281),s=n(91495),y=n(67250),V=n(40033),k=e.aTypedArray,S=e.exportTypedArrayMethod,p=y("".slice),i=V(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function f(){return c++}return f}()}),c!==1});S("fill",function(){function c(f){var u=arguments.length;k(this);var d=p(o(this),0,3)==="Big"?t(f):+f;return s(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,s=e.exportTypedArrayMethod;s("filter",function(){function y(V){var k=a(o(this),V,arguments.length>1?arguments[1]:void 0);return t(this,k)}return y}())},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 s(y){return a(t(this),y,arguments.length>1?arguments[1]:void 0)}return s}())},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 s(y){return a(t(this),y,arguments.length>1?arguments[1]:void 0)}return s}())},80756:function(I,r,n){"use strict";var e=n(80185);e("Float32",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()})},70567:function(I,r,n){"use strict";var e=n(80185);e("Float64",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}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 s(y){a(t(this),y,arguments.length>1?arguments[1]:void 0)}return s}())},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 s(y){return a(t(this),y,arguments.length>1?arguments[1]:void 0)}return s}())},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 s(y){return a(t(this),y,arguments.length>1?arguments[1]:void 0)}return s}())},60037:function(I,r,n){"use strict";var e=n(80185);e("Int16",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()})},44195:function(I,r,n){"use strict";var e=n(80185);e("Int32",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()})},66756:function(I,r,n){"use strict";var e=n(80185);e("Int8",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()})},63689:function(I,r,n){"use strict";var e=n(16210),a=n(40033),t=n(67250),o=n(4246),s=n(34570),y=n(24697),V=y("iterator"),k=e.Uint8Array,S=t(s.values),p=t(s.keys),i=t(s.entries),c=o.aTypedArray,f=o.exportTypedArrayMethod,u=k&&k.prototype,d=!a(function(){u[V].call([1])}),m=!!u&&u.values&&u[V]===u.values&&u.values.name==="values",l=function(){function v(){return S(c(this))}return v}();f("entries",function(){function v(){return i(c(this))}return v}(),d),f("keys",function(){function v(){return p(c(this))}return v}(),d),f("values",l,d||!m,{name:"values"}),f(V,l,d||!m,{name:"values"})},5659:function(I,r,n){"use strict";var e=n(4246),a=n(67250),t=e.aTypedArray,o=e.exportTypedArrayMethod,s=a([].join);o("join",function(){function y(V){return s(t(this),V)}return y}())},25014:function(I,r,n){"use strict";var e=n(4246),a=n(61267),t=n(1325),o=e.aTypedArray,s=e.exportTypedArrayMethod;s("lastIndexOf",function(){function y(V){var k=arguments.length;return a(t,o(this),k>1?[V,arguments[1]]:[V])}return y}())},32189:function(I,r,n){"use strict";var e=n(4246),a=n(22603).map,t=n(31082),o=e.aTypedArray,s=e.exportTypedArrayMethod;s("map",function(){function y(V){return a(o(this),V,arguments.length>1?arguments[1]:void 0,function(k,S){return new(t(k))(S)})}return y}())},23030:function(I,r,n){"use strict";var e=n(4246),a=n(86563),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function s(){for(var y=0,V=arguments.length,k=new(t(this))(V);V>y;)k[y]=arguments[y++];return k}return s}(),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 s(y){var V=arguments.length;return a(t(this),y,V,V>1?arguments[1]:void 0)}return s}())},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 s(y){var V=arguments.length;return a(t(this),y,V,V>1?arguments[1]:void 0)}return s}())},56445:function(I,r,n){"use strict";var e=n(4246),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function s(){for(var y=this,V=a(y).length,k=o(V/2),S=0,p;S1?arguments[1]:void 0,1),b=y(l);if(u)return a(i,this,b,v);var N=this.length,h=o(b),C=0;if(h+v>N)throw new k("Wrong length");for(;Cf;)d[f]=i[f++];return d}return k}(),V)},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 s(y){return a(t(this),y,arguments.length>1?arguments[1]:void 0)}return s}())},60415:function(I,r,n){"use strict";var e=n(16210),a=n(71138),t=n(40033),o=n(10320),s=n(90274),y=n(4246),V=n(50503),k=n(79725),S=n(83141),p=n(44981),i=y.aTypedArray,c=y.exportTypedArrayMethod,f=e.Uint16Array,u=f&&a(f.prototype.sort),d=!!u&&!(t(function(){u(new f(2),null)})&&t(function(){u(new f(2),{})})),m=!!u&&!t(function(){if(S)return S<74;if(V)return V<67;if(k)return!0;if(p)return p<602;var v=new f(516),b=Array(516),N,h;for(N=0;N<516;N++)h=N%4,v[N]=515-N,b[N]=N-2*h+3;for(u(v,function(C,g){return(C/4|0)-(g/4|0)}),N=0;N<516;N++)if(v[N]!==b[N])return!0}),l=function(b){return function(N,h){return b!==void 0?+b(N,h)||0:h!==h?-1:N!==N?1:N===0&&h===0?1/N>0&&1/h<0?1:-1:N>h}};c("sort",function(){function v(b){return b!==void 0&&o(b),m?u(this,b):s(i(this),l(b))}return v}(),!m||d)},72532:function(I,r,n){"use strict";var e=n(4246),a=n(10188),t=n(13912),o=n(31082),s=e.aTypedArray,y=e.exportTypedArrayMethod;y("subarray",function(){function V(k,S){var p=s(this),i=p.length,c=t(k,i),f=o(p);return new f(p.buffer,p.byteOffset+c*p.BYTES_PER_ELEMENT,a((S===void 0?i:t(S,i))-c))}return V}())},62207:function(I,r,n){"use strict";var e=n(16210),a=n(61267),t=n(4246),o=n(40033),s=n(54602),y=e.Int8Array,V=t.aTypedArray,k=t.exportTypedArrayMethod,S=[].toLocaleString,p=!!y&&o(function(){S.call(new y(1))}),i=o(function(){return[1,2].toLocaleString()!==new y([1,2]).toLocaleString()})||!o(function(){y.prototype.toLocaleString.call([1,2])});k("toLocaleString",function(){function c(){return a(S,p?s(V(this)):V(this),s(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),s=t.Uint8Array,y=s&&s.prototype||{},V=[].toString,k=o([].join);a(function(){V.call({})})&&(V=function(){function p(){return k(this)}return p}());var S=y.toString!==V;e("toString",V,S)},78824:function(I,r,n){"use strict";var e=n(80185);e("Uint16",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()})},72846:function(I,r,n){"use strict";var e=n(80185);e("Uint32",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()})},24575:function(I,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()})},71968:function(I,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()},!0)},80040:function(I,r,n){"use strict";var e=n(50730),a=n(16210),t=n(67250),o=n(30145),s=n(81969),y=n(45150),V=n(39895),k=n(77568),S=n(5419).enforce,p=n(40033),i=n(21820),c=Object,f=Array.isArray,u=c.isExtensible,d=c.isFrozen,m=c.isSealed,l=c.freeze,v=c.seal,b=!a.ActiveXObject&&"ActiveXObject"in a,N,h=function(E){return function(){function O(){return E(this,arguments.length?arguments[0]:void 0)}return O}()},C=y("WeakMap",h,V),g=C.prototype,x=t(g.set),B=function(){return e&&p(function(){var E=l([]);return x(new C,E,1),!d(E)})};if(i)if(b){N=V.getConstructor(h,"WeakMap",!0),s.enable();var L=t(g.delete),w=t(g.has),A=t(g.get);o(g,{delete:function(){function T(E){if(k(E)&&!u(E)){var O=S(this);return O.frozen||(O.frozen=new N),L(this,E)||O.frozen.delete(E)}return L(this,E)}return T}(),has:function(){function T(E){if(k(E)&&!u(E)){var O=S(this);return O.frozen||(O.frozen=new N),w(this,E)||O.frozen.has(E)}return w(this,E)}return T}(),get:function(){function T(E){if(k(E)&&!u(E)){var O=S(this);return O.frozen||(O.frozen=new N),w(this,E)?A(this,E):O.frozen.get(E)}return A(this,E)}return T}(),set:function(){function T(E,O){if(k(E)&&!u(E)){var P=S(this);P.frozen||(P.frozen=new N),w(this,E)?x(this,E,O):P.frozen.set(E,O)}else x(this,E,O);return this}return T}()})}else B()&&o(g,{set:function(){function T(E,O){var P;return f(E)&&(d(E)?P=l:m(E)&&(P=v)),x(this,E,O),P&&P(E),this}return T}()})},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),s=n(24986),y=n(40033),V=n(58310),k=y(function(){return V&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:k},{queueMicrotask:function(){function S(p){s(arguments.length,1),t(o(p))}return S}()})},27807:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(60375).set,o=n(78362),s=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==s},{setImmediate:s})},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(d){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},d,{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 d=t(o);return n(d)}function t(o){if(!n.o(e,o)){var d=new Error("Cannot find module '"+o+"'");throw d.code="MODULE_NOT_FOUND",d}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_secbot.js":99808,"./pda_security.js":77168,"./pda_signaler.js":21773,"./pda_status_display.js":81857,"./pda_supplyrecords.js":70287};function a(o){var d=t(o);return n(d)}function t(o){if(!n.o(e,o)){var d=new Error("Cannot find module '"+o+"'");throw d.code="MODULE_NOT_FOUND",d}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,"./Changelog":12226,"./Changelog.js":12226,"./ChemDispenser":36108,"./ChemDispenser.js":36108,"./ChemHeater":13146,"./ChemHeater.js":13146,"./ChemMaster":56541,"./ChemMaster.tsx":56541,"./CloningConsole":37173,"./CloningConsole.js":37173,"./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,"./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,"./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,"./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,"./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,"./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_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 d=t(o);return n(d)}function t(o){if(!n.o(e,o)){var d=new Error("Cannot find module '"+o+"'");throw d.code="MODULE_NOT_FOUND",d}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 d=t(o);return n(d)}function t(o){if(!n.o(e,o)){var d=new Error("Cannot find module '"+o+"'");throw d.code="MODULE_NOT_FOUND",d}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"),d=Array.prototype;d[o]===void 0&&t(d,o,{configurable:!0,value:a(null)}),I.exports=function(y){d[o][y]=!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),d=n(77568),y=n(45299),V=n(2281),k=n(89393),S=n(37909),p=n(55938),i=n(73936),l=n(21287),f=n(36917),u=n(76649),s=n(24697),m=n(16738),c=n(5419),v=c.enforce,b=c.get,g=t.Int8Array,h=g&&g.prototype,C=t.Uint8ClampedArray,N=C&&C.prototype,x=g&&f(g),B=h&&f(h),L=Object.prototype,w=t.TypeError,A=s("toStringTag"),T=m("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",O=e&&!!u&&V(t.opera)!=="Opera",P=!1,R,F,j,W={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},H={BigInt64Array:8,BigUint64Array:8},z=function(){function Ne(Be){if(!d(Be))return!1;var Le=V(Be);return Le==="DataView"||y(W,Le)||y(H,Le)}return Ne}(),$=function(Be){var Le=f(Be);if(d(Le)){var Ae=b(Le);return Ae&&y(Ae,E)?Ae[E]:$(Le)}},G=function(Be){if(!d(Be))return!1;var Le=V(Be);return y(W,Le)||y(H,Le)},ne=function(Be){if(G(Be))return Be;throw new w("Target is not a typed array")},Q=function(Be){if(o(Be)&&(!u||l(x,Be)))return Be;throw new w(k(Be)+" is not a typed array constructor")},he=function(Be,Le,Ae,fe){if(a){if(Ae)for(var Z in W){var J=t[Z];if(J&&y(J.prototype,Be))try{delete J.prototype[Be]}catch(te){try{J.prototype[Be]=Le}catch(ee){}}}(!B[Be]||Ae)&&p(B,Be,Ae?Le:O&&h[Be]||Le,fe)}},Ve=function(Be,Le,Ae){var fe,Z;if(a){if(u){if(Ae){for(fe in W)if(Z=t[fe],Z&&y(Z,Be))try{delete Z[Be]}catch(J){}}if(!x[Be]||Ae)try{return p(x,Be,Ae?Le:O&&x[Be]||Le)}catch(J){}else return}for(fe in W)Z=t[fe],Z&&(!Z[Be]||Ae)&&p(Z,Be,Le)}};for(R in W)F=t[R],j=F&&F.prototype,j?v(j)[E]=F:O=!1;for(R in H)F=t[R],j=F&&F.prototype,j&&(v(j)[E]=F);if((!O||!o(x)||x===Function.prototype)&&(x=function(){function Ne(){throw new w("Incorrect invocation")}return Ne}(),O))for(R in W)t[R]&&u(t[R],x);if((!O||!B||B===L)&&(B=x.prototype,O))for(R in W)t[R]&&u(t[R].prototype,B);if(O&&f(N)!==B&&u(N,B),a&&!y(B,A)){P=!0,i(B,A,{configurable:!0,get:function(){function Ne(){return d(this)?this[T]:void 0}return Ne}()});for(R in W)t[R]&&S(t[R],T,R)}I.exports={NATIVE_ARRAY_BUFFER_VIEWS:O,TYPED_ARRAY_TAG:P&&T,aTypedArray:ne,aTypedArrayConstructor:Q,exportTypedArrayMethod:he,exportTypedArrayStaticMethod:Ve,getTypedArrayConstructor:$,isView:z,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),d=n(70520),y=n(37909),V=n(73936),k=n(30145),S=n(40033),p=n(60077),i=n(61365),l=n(10188),f=n(43806),u=n(95867),s=n(91784),m=n(36917),c=n(76649),v=n(88471),b=n(54602),g=n(5781),h=n(5774),C=n(84925),N=n(5419),x=d.PROPER,B=d.CONFIGURABLE,L="ArrayBuffer",w="DataView",A="prototype",T="Wrong length",E="Wrong index",O=N.getterFor(L),P=N.getterFor(w),R=N.set,F=e[L],j=F,W=j&&j[A],H=e[w],z=H&&H[A],$=Object.prototype,G=e.Array,ne=e.RangeError,Q=a(v),he=a([].reverse),Ve=s.pack,Ne=s.unpack,Be=function(X){return[X&255]},Le=function(X){return[X&255,X>>8&255]},Ae=function(X){return[X&255,X>>8&255,X>>16&255,X>>24&255]},fe=function(X){return X[3]<<24|X[2]<<16|X[1]<<8|X[0]},Z=function(X){return Ve(u(X),23,4)},J=function(X){return Ve(X,52,8)},te=function(X,ae,ue){V(X[A],ae,{configurable:!0,get:function(){function ie(){return ue(this)[ae]}return ie}()})},ee=function(X,ae,ue,ie){var ge=P(X),Ce=f(ue),Me=!!ie;if(Ce+ae>ge.byteLength)throw new ne(E);var De=ge.bytes,ke=Ce+ge.byteOffset,pe=b(De,ke,ke+ae);return Me?pe:he(pe)},le=function(X,ae,ue,ie,ge,Ce){var Me=P(X),De=f(ue),ke=ie(+ge),pe=!!Ce;if(De+ae>Me.byteLength)throw new ne(E);for(var se=Me.bytes,xe=De+Me.byteOffset,_=0;_ge)throw new ne("Wrong offset");if(ue=ue===void 0?ge-Ce:l(ue),Ce+ue>ge)throw new ne(T);R(this,{type:w,buffer:X,byteLength:ue,byteOffset:Ce,bytes:ie.bytes}),t||(this.buffer=X,this.byteLength=ue,this.byteOffset=Ce)}return M}(),z=H[A],t&&(te(j,"byteLength",O),te(H,"buffer",P),te(H,"byteLength",P),te(H,"byteOffset",P)),k(z,{getInt8:function(){function M(X){return ee(this,1,X)[0]<<24>>24}return M}(),getUint8:function(){function M(X){return ee(this,1,X)[0]}return M}(),getInt16:function(){function M(X){var ae=ee(this,2,X,arguments.length>1?arguments[1]:!1);return(ae[1]<<8|ae[0])<<16>>16}return M}(),getUint16:function(){function M(X){var ae=ee(this,2,X,arguments.length>1?arguments[1]:!1);return ae[1]<<8|ae[0]}return M}(),getInt32:function(){function M(X){return fe(ee(this,4,X,arguments.length>1?arguments[1]:!1))}return M}(),getUint32:function(){function M(X){return fe(ee(this,4,X,arguments.length>1?arguments[1]:!1))>>>0}return M}(),getFloat32:function(){function M(X){return Ne(ee(this,4,X,arguments.length>1?arguments[1]:!1),23)}return M}(),getFloat64:function(){function M(X){return Ne(ee(this,8,X,arguments.length>1?arguments[1]:!1),52)}return M}(),setInt8:function(){function M(X,ae){le(this,1,X,Be,ae)}return M}(),setUint8:function(){function M(X,ae){le(this,1,X,Be,ae)}return M}(),setInt16:function(){function M(X,ae){le(this,2,X,Le,ae,arguments.length>2?arguments[2]:!1)}return M}(),setUint16:function(){function M(X,ae){le(this,2,X,Le,ae,arguments.length>2?arguments[2]:!1)}return M}(),setInt32:function(){function M(X,ae){le(this,4,X,Ae,ae,arguments.length>2?arguments[2]:!1)}return M}(),setUint32:function(){function M(X,ae){le(this,4,X,Ae,ae,arguments.length>2?arguments[2]:!1)}return M}(),setFloat32:function(){function M(X,ae){le(this,4,X,Z,ae,arguments.length>2?arguments[2]:!1)}return M}(),setFloat64:function(){function M(X,ae){le(this,8,X,J,ae,arguments.length>2?arguments[2]:!1)}return M}()});else{var ye=x&&F.name!==L;!S(function(){F(1)})||!S(function(){new F(-1)})||S(function(){return new F,new F(1.5),new F(NaN),F.length!==1||ye&&!B})?(j=function(){function M(X){return p(this,W),g(new F(f(X)),this,j)}return M}(),j[A]=W,W.constructor=j,h(j,F)):ye&&B&&y(F,"name",L),c&&m(z)!==$&&c(z,$);var me=new H(new j(2)),Te=a(z.setInt8);me.setInt8(0,2147483648),me.setInt8(1,2147483649),(me.getInt8(0)||!me.getInt8(1))&&k(z,{setInt8:function(){function M(X,ae){Te(this,X,ae<<24>>24)}return M}(),setUint8:function(){function M(X,ae){Te(this,X,ae<<24>>24)}return M}()},{unsafe:!0})}C(j,L),C(H,w),I.exports={ArrayBuffer:j,DataView:H}},71447:function(I,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760),o=n(95108),d=Math.min;I.exports=[].copyWithin||function(){function y(V,k){var S=e(this),p=t(S),i=a(V,p),l=a(k,p),f=arguments.length>2?arguments[2]:void 0,u=d((f===void 0?p:a(f,p))-l,p-i),s=1;for(l0;)l in S?S[i]=S[l]:o(S,i),i+=s,l+=s;return S}return y}()},88471:function(I,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760);I.exports=function(){function o(d){for(var y=e(this),V=t(y),k=arguments.length,S=a(k>1?arguments[1]:void 0,V),p=k>2?arguments[2]:void 0,i=p===void 0?V:a(p,V);i>S;)y[S++]=d;return y}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(d){return e(this,d,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 d=0,y=arguments.length>2?o:e(t),V=new a(y);y>d;)V[d]=t[d++];return V}},73174:function(I,r,n){"use strict";var e=n(75754),a=n(91495),t=n(46771),o=n(40125),d=n(76571),y=n(1031),V=n(24760),k=n(60102),S=n(77455),p=n(59201),i=Array;I.exports=function(){function l(f){var u=t(f),s=y(this),m=arguments.length,c=m>1?arguments[1]:void 0,v=c!==void 0;v&&(c=e(c,m>2?arguments[2]:void 0));var b=p(u),g=0,h,C,N,x,B,L;if(b&&!(this===i&&d(b)))for(C=s?new this:[],x=S(u,b),B=x.next;!(N=a(B,x)).done;g++)L=v?o(x,c,[N.value,g],!0):N.value,k(C,g,L);else for(h=V(u),C=s?new this(h):i(h);h>g;g++)L=v?c(u[g],g):u[g],k(C,g,L);return C.length=g,C}return l}()},14211:function(I,r,n){"use strict";var e=n(57591),a=n(13912),t=n(24760),o=function(y){return function(V,k,S){var p=e(V),i=t(p);if(i===0)return!y&&-1;var l=a(S,i),f;if(y&&k!==k){for(;i>l;)if(f=p[l++],f!==f)return!0}else for(;i>l;l++)if((y||l in p)&&p[l]===k)return y||l||0;return!y&&-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),d=n(24760),y=n(57823),V=a([].push),k=function(p){var i=p===1,l=p===2,f=p===3,u=p===4,s=p===6,m=p===7,c=p===5||s;return function(v,b,g,h){for(var C=o(v),N=t(C),x=d(N),B=e(b,g),L=0,w=h||y,A=i?w(v,x):l||m?w(v,0):void 0,T,E;x>L;L++)if((c||L in N)&&(T=N[L],E=B(T,L,C),p))if(i)A[L]=E;else if(E)switch(p){case 3:return!0;case 5:return T;case 6:return L;case 2:V(A,T)}else switch(p){case 4:return!1;case 7:V(A,T)}return s?-1:f||u?u:A}};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),d=n(55528),y=Math.min,V=[].lastIndexOf,k=!!V&&1/[1].lastIndexOf(1,-0)<0,S=d("lastIndexOf"),p=k||!S;I.exports=p?function(){function i(l){if(k)return e(V,this,arguments)||0;var f=a(this),u=o(f);if(u===0)return-1;var s=u-1;for(arguments.length>1&&(s=y(s,t(arguments[1]))),s<0&&(s=u+s);s>=0;s--)if(s in f&&f[s]===l)return s||0;return-1}return i}():V},44091:function(I,r,n){"use strict";var e=n(40033),a=n(24697),t=n(83141),o=a("species");I.exports=function(d){return t>=51||!e(function(){var y=[],V=y.constructor={};return V[o]=function(){return{foo:1}},y[d](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),d=TypeError,y="Reduce of empty array with no initial value",V=function(S){return function(p,i,l,f){var u=a(p),s=t(u),m=o(u);if(e(i),m===0&&l<2)throw new d(y);var c=S?m-1:0,v=S?-1:1;if(l<2)for(;;){if(c in s){f=s[c],c+=v;break}if(c+=v,S?c<0:m<=c)throw new d(y)}for(;S?c>=0:m>c;c+=v)c in s&&(f=i(f,s[c],c,u));return f}};I.exports={left:V(!1),right:V(!0)}},13345:function(I,r,n){"use strict";var e=n(58310),a=n(37386),t=TypeError,o=Object.getOwnPropertyDescriptor,d=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(y){return y instanceof TypeError}}();I.exports=d?function(y,V){if(a(y)&&!o(y,"length").writable)throw new t("Cannot set read only .length");return y.length=V}:function(y,V){return y.length=V}},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(d,y){var V=d.length;if(V<8)for(var k=1,S,p;k0;)d[p]=d[--p];p!==k++&&(d[p]=S)}else for(var i=a(V/2),l=t(e(d,0,i),y),f=t(e(d,i),y),u=l.length,s=f.length,m=0,c=0;m1?arguments[1]:void 0),E;E=E?E.next:A.first;)for(T(E.value,E.key,this);E&&E.removed;)E=E.previous}return L}(),has:function(){function L(w){return!!B(this,w)}return L}()}),t(C,b?{get:function(){function L(w){var A=B(this,w);return A&&A.value}return L}(),set:function(){function L(w,A){return x(this,w===0?0:w,A)}return L}()}:{add:function(){function L(w){return x(this,w=w===0?0:w,w)}return L}()}),i&&a(C,"size",{configurable:!0,get:function(){function L(){return N(this).size}return L}()}),h}return m}(),setStrong:function(){function m(c,v,b){var g=v+" Iterator",h=s(v),C=s(g);k(c,v,function(N,x){u(this,{type:g,target:N,state:h(N),kind:x,last:null})},function(){for(var N=C(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,S(void 0,!0)):S(x==="keys"?B.key:x==="values"?B.value:[B.key,B.value],!1)},b?"entries":"values",!b,!0),p(v)}return m}()}},39895:function(I,r,n){"use strict";var e=n(67250),a=n(30145),t=n(81969).getWeakData,o=n(60077),d=n(30365),y=n(42871),V=n(77568),k=n(49450),S=n(22603),p=n(45299),i=n(5419),l=i.set,f=i.getterFor,u=S.find,s=S.findIndex,m=e([].splice),c=0,v=function(C){return C.frozen||(C.frozen=new b)},b=function(){this.entries=[]},g=function(C,N){return u(C.entries,function(x){return x[0]===N})};b.prototype={get:function(){function h(C){var N=g(this,C);if(N)return N[1]}return h}(),has:function(){function h(C){return!!g(this,C)}return h}(),set:function(){function h(C,N){var x=g(this,C);x?x[1]=N:this.entries.push([C,N])}return h}(),delete:function(){function h(C){var N=s(this.entries,function(x){return x[0]===C});return~N&&m(this.entries,N,1),!!~N}return h}()},I.exports={getConstructor:function(){function h(C,N,x,B){var L=C(function(E,O){o(E,w),l(E,{type:N,id:c++,frozen:null}),y(O)||k(O,E[B],{that:E,AS_ENTRIES:x})}),w=L.prototype,A=f(N),T=function(){function E(O,P,R){var F=A(O),j=t(d(P),!0);return j===!0?v(F).set(P,R):j[F.id]=R,O}return E}();return a(w,{delete:function(){function E(O){var P=A(this);if(!V(O))return!1;var R=t(O);return R===!0?v(P).delete(O):R&&p(R,P.id)&&delete R[P.id]}return E}(),has:function(){function E(O){var P=A(this);if(!V(O))return!1;var R=t(O);return R===!0?v(P).has(O):R&&p(R,P.id)}return E}()}),a(w,x?{get:function(){function E(O){var P=A(this);if(V(O)){var R=t(O);if(R===!0)return v(P).get(O);if(R)return R[P.id]}}return E}(),set:function(){function E(O,P){return T(this,O,P)}return E}()}:{add:function(){function E(O){return T(this,O,!0)}return E}()}),L}return h}()}},45150:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(67250),o=n(41314),d=n(55938),y=n(81969),V=n(49450),k=n(60077),S=n(55747),p=n(42871),i=n(77568),l=n(40033),f=n(92490),u=n(84925),s=n(5781);I.exports=function(m,c,v){var b=m.indexOf("Map")!==-1,g=m.indexOf("Weak")!==-1,h=b?"set":"add",C=a[m],N=C&&C.prototype,x=C,B={},L=function(F){var j=t(N[F]);d(N,F,F==="add"?function(){function W(H){return j(this,H===0?0:H),this}return W}():F==="delete"?function(W){return g&&!i(W)?!1:j(this,W===0?0:W)}:F==="get"?function(){function W(H){return g&&!i(H)?void 0:j(this,H===0?0:H)}return W}():F==="has"?function(){function W(H){return g&&!i(H)?!1:j(this,H===0?0:H)}return W}():function(){function W(H,z){return j(this,H===0?0:H,z),this}return W}())},w=o(m,!S(C)||!(g||N.forEach&&!l(function(){new C().entries().next()})));if(w)x=v.getConstructor(c,m,b,h),y.enable();else if(o(m,!0)){var A=new x,T=A[h](g?{}:-0,1)!==A,E=l(function(){A.has(1)}),O=f(function(R){new C(R)}),P=!g&&l(function(){for(var R=new C,F=5;F--;)R[h](F,F);return!R.has(-0)});O||(x=c(function(R,F){k(R,N);var j=s(new C,R,x);return p(F)||V(F,j[h],{that:j,AS_ENTRIES:b}),j}),x.prototype=N,N.constructor=x),(E||P)&&(L("delete"),L("has"),b&&L("get")),(P||T)&&L(h),g&&N.clear&&delete N.clear}return B[m]=x,e({global:!0,constructor:!0,forced:x!==C},B),u(x,m),g||v.setStrong(x,m,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(d,y,V){for(var k=a(y),S=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,d,y){return a.f(o,d,t(1,y))}:function(o,d,y){return o[d]=y,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,d,y){e?a.f(o,d,t(0,y)):o[d]=y}},67206:function(I,r,n){"use strict";var e=n(67250),a=n(40033),t=n(24051).start,o=RangeError,d=isFinite,y=Math.abs,V=Date.prototype,k=V.toISOString,S=e(V.getTime),p=e(V.getUTCDate),i=e(V.getUTCFullYear),l=e(V.getUTCHours),f=e(V.getUTCMilliseconds),u=e(V.getUTCMinutes),s=e(V.getUTCMonth),m=e(V.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 c(){if(!d(S(this)))throw new o("Invalid time value");var v=this,b=i(v),g=f(v),h=b<0?"-":b>9999?"+":"";return h+t(y(b),h?6:4,0)+"-"+t(s(v)+1,2,0)+"-"+t(p(v),2,0)+"T"+t(l(v),2,0)+":"+t(u(v),2,0)+":"+t(m(v),2,0)+"."+t(g,3,0)+"Z"}return c}():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,d){return d.get&&e(d.get,o,{getter:!0}),d.set&&e(d.set,o,{setter:!0}),a.f(t,o,d)}},55938:function(I,r,n){"use strict";var e=n(55747),a=n(74595),t=n(20001),o=n(18231);I.exports=function(d,y,V,k){k||(k={});var S=k.enumerable,p=k.name!==void 0?k.name:y;if(e(V)&&t(V,p,k),k.global)S?d[y]=V:o(y,V);else{try{k.unsafe?d[y]&&(S=!0):delete d[y]}catch(i){}S?d[y]=V:a.f(d,y,{value:V,enumerable:!1,configurable:!k.nonConfigurable,writable:!k.nonWritable})}return d}},30145:function(I,r,n){"use strict";var e=n(55938);I.exports=function(a,t,o){for(var d in t)e(a,d,t[d],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(d){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(d){return o?t.createElement(d):{}}},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,d=t&&t.versions||o&&o.version,y=d&&d.v8,V,k;y&&(V=y.split("."),k=V[0]>0&&V[0]<4?1:+(V[0]+V[1])),!k&&a&&(V=a.match(/Edge\/(\d+)/),(!V||V[1]>=74)&&(V=a.match(/Chrome\/(\d+)/),V&&(k=+V[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(y){return a.slice(0,y.length)===y};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),d=n(18231),y=n(5774),V=n(41314);I.exports=function(k,S){var p=k.target,i=k.global,l=k.stat,f,u,s,m,c,v;if(i?u=e:l?u=e[p]||d(p,{}):u=e[p]&&e[p].prototype,u)for(s in S){if(c=S[s],k.dontCallGetSet?(v=a(u,s),m=v&&v.value):m=u[s],f=V(i?s:p+(l?".":"#")+s,k.forced),!f&&m!==void 0){if(typeof c==typeof m)continue;y(c,m)}(k.sham||m&&m.sham)&&t(c,"sham",!0),o(u,s,c,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),d=n(24697),y=n(37909),V=d("species"),k=RegExp.prototype;I.exports=function(S,p,i,l){var f=d(S),u=!o(function(){var v={};return v[f]=function(){return 7},""[S](v)!==7}),s=u&&!o(function(){var v=!1,b=/a/;return S==="split"&&(b={},b.constructor={},b.constructor[V]=function(){return b},b.flags="",b[f]=/./[f]),b.exec=function(){return v=!0,null},b[f](""),!v});if(!u||!s||i){var m=/./[f],c=p(f,""[S],function(v,b,g,h,C){var N=b.exec;return N===t||N===k.exec?u&&!C?{done:!0,value:e(m,b,g,h)}:{done:!0,value:e(v,g,b,h)}:{done:!1}});a(String.prototype,S,c[0]),a(k,f,c[1])}l&&y(k[f],"sham",!0)}},65561:function(I,r,n){"use strict";var e=n(37386),a=n(24760),t=n(21291),o=n(75754),d=function(V,k,S,p,i,l,f,u){for(var s=i,m=0,c=f?o(f,u):!1,v,b;m0&&e(v)?(b=a(v),s=d(V,k,v,b,s,l-1)-1):(t(s+1),V[s]=v),s++),m++;return s};I.exports=d},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(d,y){return a(d),y===void 0?d:t?o(d,y):function(){return d.apply(y,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),d=n(54602),y=n(55050),V=Function,k=e([].concat),S=e([].join),p={},i=function(f,u,s){if(!o(p,u)){for(var m=[],c=0;c]*>)/g,k=/\$([$&'`]|\d{1,2})/g;I.exports=function(S,p,i,l,f,u){var s=i+S.length,m=l.length,c=k;return f!==void 0&&(f=a(f),c=V),d(u,c,function(v,b){var g;switch(o(b,0)){case"$":return"$";case"&":return S;case"`":return y(p,0,i);case"'":return y(p,s);case"<":g=f[y(b,1,-1)];break;default:var h=+b;if(h===0)return v;if(h>m){var C=t(h/10);return C===0?v:C<=m?l[C-1]===void 0?o(b,1):l[C-1]+o(b,1):v}g=l[h-1]}return g===void 0?"":g})}},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(d,y){return t(a(d),y)}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,d=function(k,S,p){var i=r(p),l=p*8-S-1,f=(1<>1,s=S===23?e(2,-24)-e(2,-77):0,m=k<0||k===0&&1/k<0?1:0,c=0,v,b,g;for(k=n(k),k!==k||k===1/0?(b=k!==k?1:0,v=f):(v=a(t(k)/o),g=e(2,-v),k*g<1&&(v--,g*=2),v+u>=1?k+=s/g:k+=s*e(2,1-u),k*g>=2&&(v++,g/=2),v+u>=f?(b=0,v=f):v+u>=1?(b=(k*g-1)*e(2,S),v+=u):(b=k*e(2,u-1)*e(2,S),v=0));S>=8;)i[c++]=b&255,b/=256,S-=8;for(v=v<0;)i[c++]=v&255,v/=256,l-=8;return i[c-1]|=m*128,i},y=function(k,S){var p=k.length,i=p*8-S-1,l=(1<>1,u=i-7,s=p-1,m=k[s--],c=m&127,v;for(m>>=7;u>0;)c=c*256+k[s--],u-=8;for(v=c&(1<<-u)-1,c>>=-u,u+=S;u>0;)v=v*256+k[s--],u-=8;if(c===0)c=1-f;else{if(c===l)return v?NaN:m?-1/0:1/0;v+=e(2,S),c-=f}return(m?-1:1)*v*e(2,c-S)};I.exports={pack:d,unpack:y}},37457:function(I,r,n){"use strict";var e=n(67250),a=n(40033),t=n(7462),o=Object,d=e("".split);I.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(y){return t(y)==="String"?d(y,""):o(y)}:o},5781:function(I,r,n){"use strict";var e=n(55747),a=n(77568),t=n(76649);I.exports=function(o,d,y){var V,k;return t&&e(V=d.constructor)&&V!==y&&a(k=V.prototype)&&k!==y.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(d){return o(d)}),I.exports=t.inspectSource},81969:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(79195),o=n(77568),d=n(45299),y=n(74595).f,V=n(37310),k=n(81644),S=n(81834),p=n(16738),i=n(50730),l=!1,f=p("meta"),u=0,s=function(C){y(C,f,{value:{objectID:"O"+u++,weakData:{}}})},m=function(C,N){if(!o(C))return typeof C=="symbol"?C:(typeof C=="string"?"S":"P")+C;if(!d(C,f)){if(!S(C))return"F";if(!N)return"E";s(C)}return C[f].objectID},c=function(C,N){if(!d(C,f)){if(!S(C))return!0;if(!N)return!1;s(C)}return C[f].weakData},v=function(C){return i&&l&&S(C)&&!d(C,f)&&s(C),C},b=function(){g.enable=function(){},l=!0;var C=V.f,N=a([].splice),x={};x[f]=1,C(x).length&&(V.f=function(B){for(var L=C(B),w=0,A=L.length;wB;B++)if(w=O(u[B]),w&&V(f,w))return w;return new l(!1)}N=k(u,x)}for(A=b?u.next:N.next;!(T=a(A,N)).done;){try{w=O(T.value)}catch(P){p(N,"throw",P)}if(typeof w=="object"&&w&&V(f,w))return w}return new l(!1)}},28649:function(I,r,n){"use strict";var e=n(91495),a=n(30365),t=n(78060);I.exports=function(o,d,y){var V,k;a(o);try{if(V=t(o,"return"),!V){if(d==="throw")throw y;return y}V=e(V,o)}catch(S){k=!0,V=S}if(d==="throw")throw y;if(k)throw V;return a(V),y}},5656:function(I,r,n){"use strict";var e=n(67635).IteratorPrototype,a=n(80674),t=n(87458),o=n(84925),d=n(83967),y=function(){return this};I.exports=function(V,k,S,p){var i=k+" Iterator";return V.prototype=a(e,{next:t(+!p,S)}),o(V,i,!1,!0),d[i]=y,V}},65574:function(I,r,n){"use strict";var e=n(63964),a=n(91495),t=n(4493),o=n(70520),d=n(55747),y=n(5656),V=n(36917),k=n(76649),S=n(84925),p=n(37909),i=n(55938),l=n(24697),f=n(83967),u=n(67635),s=o.PROPER,m=o.CONFIGURABLE,c=u.IteratorPrototype,v=u.BUGGY_SAFARI_ITERATORS,b=l("iterator"),g="keys",h="values",C="entries",N=function(){return this};I.exports=function(x,B,L,w,A,T,E){y(L,B,w);var O=function(Q){if(Q===A&&W)return W;if(!v&&Q&&Q in F)return F[Q];switch(Q){case g:return function(){function he(){return new L(this,Q)}return he}();case h:return function(){function he(){return new L(this,Q)}return he}();case C:return function(){function he(){return new L(this,Q)}return he}()}return function(){return new L(this)}},P=B+" Iterator",R=!1,F=x.prototype,j=F[b]||F["@@iterator"]||A&&F[A],W=!v&&j||O(A),H=B==="Array"&&F.entries||j,z,$,G;if(H&&(z=V(H.call(new x)),z!==Object.prototype&&z.next&&(!t&&V(z)!==c&&(k?k(z,c):d(z[b])||i(z,b,N)),S(z,P,!0,!0),t&&(f[P]=N))),s&&A===h&&j&&j.name!==h&&(!t&&m?p(F,"name",h):(R=!0,W=function(){function ne(){return a(j,this)}return ne}())),A)if($={values:O(h),keys:T?W:O(g),entries:O(C)},E)for(G in $)(v||R||!(G in F))&&i(F,G,$[G]);else e({target:B,proto:!0,forced:v||R},$);return(!t||E)&&F[b]!==W&&i(F,b,W,{name:A}),f[B]=W,$}},67635:function(I,r,n){"use strict";var e=n(40033),a=n(55747),t=n(77568),o=n(80674),d=n(36917),y=n(55938),V=n(24697),k=n(4493),S=V("iterator"),p=!1,i,l,f;[].keys&&(f=[].keys(),"next"in f?(l=d(d(f)),l!==Object.prototype&&(i=l)):p=!0);var u=!t(i)||e(function(){var s={};return i[S].call(s)!==s});u?i={}:k&&(i=o(i)),a(i[S])||y(i,S,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),d=n(58310),y=n(70520).CONFIGURABLE,V=n(40492),k=n(5419),S=k.enforce,p=k.get,i=String,l=Object.defineProperty,f=e("".slice),u=e("".replace),s=e([].join),m=d&&!a(function(){return l(function(){},"length",{value:8}).length!==8}),c=String(String).split("String"),v=I.exports=function(b,g,h){f(i(g),0,7)==="Symbol("&&(g="["+u(i(g),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),h&&h.getter&&(g="get "+g),h&&h.setter&&(g="set "+g),(!o(b,"name")||y&&b.name!==g)&&(d?l(b,"name",{value:g,configurable:!0}):b.name=g),m&&h&&o(h,"arity")&&b.length!==h.arity&&l(b,"length",{value:h.arity});try{h&&o(h,"constructor")&&h.constructor?d&&l(b,"prototype",{writable:!1}):b.prototype&&(b.prototype=void 0)}catch(N){}var C=S(b);return o(C,"source")||(C.source=s(c,typeof g=="string"?g:"")),b};Function.prototype.toString=v(function(){function b(){return t(this)&&p(this).source||V(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,d=function(V){return V+o-o};I.exports=function(y,V,k,S){var p=+y,i=a(p),l=e(p);if(ik||u!==u?l*(1/0):l*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 d(y){return e(y,a,t,o)}return d}()},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,d=n(9547),y=n(27770),V=n(16647),k=n(52854),S=n(81663),p=e.MutationObserver||e.WebKitMutationObserver,i=e.document,l=e.process,f=e.Promise,u=a("queueMicrotask"),s,m,c,v,b;if(!u){var g=new d,h=function(){var N,x;for(S&&(N=l.domain)&&N.exit();x=g.get();)try{x()}catch(B){throw g.head&&s(),B}N&&N.enter()};!y&&!S&&!k&&p&&i?(m=!0,c=i.createTextNode(""),new p(h).observe(c,{characterData:!0}),s=function(){c.data=m=!m}):!V&&f&&f.resolve?(v=f.resolve(void 0),v.constructor=f,b=t(v.then,v),s=function(){b(h)}):S?s=function(){l.nextTick(h)}:(o=t(o,e),s=function(){o(h)}),u=function(N){g.head||s(),g.add(N)}}I.exports=u},81837:function(I,r,n){"use strict";var e=n(10320),a=TypeError,t=function(d){var y,V;this.promise=new d(function(k,S){if(y!==void 0||V!==void 0)throw new a("Bad Promise constructor");y=k,V=S}),this.resolve=e(y),this.reject=e(V)};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),d=n(92648).trim,y=n(4198),V=t("".charAt),k=e.parseFloat,S=e.Symbol,p=S&&S.iterator,i=1/k(y+"-0")!==-1/0||p&&!a(function(){k(Object(p))});I.exports=i?function(){function l(f){var u=d(o(f)),s=k(u);return s===0&&V(u,0)==="-"?-0:s}return l}():k},13693:function(I,r,n){"use strict";var e=n(16210),a=n(40033),t=n(67250),o=n(12605),d=n(92648).trim,y=n(4198),V=e.parseInt,k=e.Symbol,S=k&&k.iterator,p=/^[+-]?0x/i,i=t(p.exec),l=V(y+"08")!==8||V(y+"0x16")!==22||S&&!a(function(){V(Object(S))});I.exports=l?function(){function f(u,s){var m=d(o(u));return V(m,s>>>0||(i(p,m)?16:10))}return f}():V},41143:function(I,r,n){"use strict";var e=n(58310),a=n(67250),t=n(91495),o=n(40033),d=n(18450),y=n(89235),V=n(12867),k=n(46771),S=n(37457),p=Object.assign,i=Object.defineProperty,l=a([].concat);I.exports=!p||o(function(){if(e&&p({b:1},p(i({},"a",{enumerable:!0,get:function(){function c(){i(this,"b",{value:3,enumerable:!1})}return c}()}),{b:2})).b!==1)return!0;var f={},u={},s=Symbol("assign detection"),m="abcdefghijklmnopqrst";return f[s]=7,m.split("").forEach(function(c){u[c]=c}),p({},f)[s]!==7||d(p({},u)).join("")!==m})?function(){function f(u,s){for(var m=k(u),c=arguments.length,v=1,b=y.f,g=V.f;c>v;)for(var h=S(arguments[v++]),C=b?l(d(h),b(h)):d(h),N=C.length,x=0,B;N>x;)B=C[x++],(!e||t(g,h,B))&&(m[B]=h[B]);return m}return f}():p},80674:function(I,r,n){"use strict";var e=n(30365),a=n(24239),t=n(89453),o=n(79195),d=n(5315),y=n(12689),V=n(19417),k=">",S="<",p="prototype",i="script",l=V("IE_PROTO"),f=function(){},u=function(g){return S+i+k+g+S+"/"+i+k},s=function(g){g.write(u("")),g.close();var h=g.parentWindow.Object;return g=null,h},m=function(){var g=y("iframe"),h="java"+i+":",C;return g.style.display="none",d.appendChild(g),g.src=String(h),C=g.contentWindow.document,C.open(),C.write(u("document.F=Object")),C.close(),C.F},c,v=function(){try{c=new ActiveXObject("htmlfile")}catch(h){}v=typeof document!="undefined"?document.domain&&c?s(c):m():s(c);for(var g=t.length;g--;)delete v[p][t[g]];return v()};o[l]=!0,I.exports=Object.create||function(){function b(g,h){var C;return g!==null?(f[p]=e(g),C=new f,f[p]=null,C[l]=g):C=v(),h===void 0?C:a.f(C,h)}return b}()},24239:function(I,r,n){"use strict";var e=n(58310),a=n(80944),t=n(74595),o=n(30365),d=n(57591),y=n(18450);r.f=e&&!a?Object.defineProperties:function(){function V(k,S){o(k);for(var p=d(S),i=y(S),l=i.length,f=0,u;l>f;)t.f(k,u=i[f++],p[u]);return k}return V}()},74595:function(I,r,n){"use strict";var e=n(58310),a=n(36223),t=n(80944),o=n(30365),d=n(767),y=TypeError,V=Object.defineProperty,k=Object.getOwnPropertyDescriptor,S="enumerable",p="configurable",i="writable";r.f=e?t?function(){function l(f,u,s){if(o(f),u=d(u),o(s),typeof f=="function"&&u==="prototype"&&"value"in s&&i in s&&!s[i]){var m=k(f,u);m&&m[i]&&(f[u]=s.value,s={configurable:p in s?s[p]:m[p],enumerable:S in s?s[S]:m[S],writable:!1})}return V(f,u,s)}return l}():V:function(){function l(f,u,s){if(o(f),u=d(u),o(s),a)try{return V(f,u,s)}catch(m){}if("get"in s||"set"in s)throw new y("Accessors not supported");return"value"in s&&(f[u]=s.value),f}return l}()},27193:function(I,r,n){"use strict";var e=n(58310),a=n(91495),t=n(12867),o=n(87458),d=n(57591),y=n(767),V=n(45299),k=n(36223),S=Object.getOwnPropertyDescriptor;r.f=e?S:function(){function p(i,l){if(i=d(i),l=y(l),k)try{return S(i,l)}catch(f){}if(V(i,l))return o(!a(t.f,i,l),i[l])}return p}()},81644:function(I,r,n){"use strict";var e=n(7462),a=n(57591),t=n(37310).f,o=n(54602),d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],y=function(k){try{return t(k)}catch(S){return o(d)}};I.exports.f=function(){function V(k){return d&&e(k)==="Window"?y(k):t(a(k))}return V}()},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(d){return e(d,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),d=n(9225),y=o("IE_PROTO"),V=Object,k=V.prototype;I.exports=d?V.getPrototypeOf:function(S){var p=t(S);if(e(p,y))return p[y];var i=p.constructor;return a(i)&&p instanceof i?i.prototype:p instanceof V?k:null}},81834:function(I,r,n){"use strict";var e=n(40033),a=n(77568),t=n(7462),o=n(3782),d=Object.isExtensible,y=e(function(){d(1)});I.exports=y||o?function(){function V(k){return!a(k)||o&&t(k)==="ArrayBuffer"?!1:d?d(k):!0}return V}():d},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,d=n(79195),y=e([].push);I.exports=function(V,k){var S=t(V),p=0,i=[],l;for(l in S)!a(d,l)&&a(S,l)&&y(i,l);for(;k.length>p;)a(S,l=k[p++])&&(~o(i,l)||y(i,l));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 d=e(this,o);return!!d&&d.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 d=Math.random();__defineSetter__.call(null,d,function(){}),delete a[d]}})},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 d=!1,y={},V;try{V=e(Object.prototype,"__proto__","set"),V(y,[]),d=y instanceof Array}catch(k){}return function(){function k(S,p){return t(S),o(p),a(S)&&(d?V(S,p):S.__proto__=p),S}return k}()}():void 0)},70915:function(I,r,n){"use strict";var e=n(58310),a=n(40033),t=n(67250),o=n(36917),d=n(18450),y=n(57591),V=n(12867).f,k=t(V),S=t([].push),p=e&&a(function(){var l=Object.create(null);return l[2]=2,!k(l,2)}),i=function(f){return function(u){for(var s=y(u),m=d(s),c=p&&o(s)===null,v=m.length,b=0,g=[],h;v>b;)h=m[b++],(!e||(c?h in s:k(s,h)))&&S(g,f?[h,s[h]]:s[h]);return g}};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(d,y){var V,k;if(y==="string"&&a(V=d.toString)&&!t(k=e(V,d))||a(V=d.valueOf)&&!t(k=e(V,d))||y!=="string"&&a(V=d.toString)&&!t(k=e(V,d)))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),d=n(30365),y=a([].concat);I.exports=e("Reflect","ownKeys")||function(){function V(k){var S=t.f(d(k)),p=o.f;return p?y(S,p(k)):S}return V}()},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),d=n(40492),y=n(24697),V=n(10753),k=n(4493),S=n(83141),p=a&&a.prototype,i=y("species"),l=!1,f=t(e.PromiseRejectionEvent),u=o("Promise",function(){var s=d(a),m=s!==String(a);if(!m&&S===66||k&&!(p.catch&&p.finally))return!0;if(!S||S<51||!/native code/.test(s)){var c=new a(function(g){g(1)}),v=function(h){h(function(){},function(){})},b=c.constructor={};if(b[i]=v,l=c.then(function(){})instanceof v,!l)return!0}return!m&&(V==="BROWSER"||V==="DENO")&&!f});I.exports={CONSTRUCTOR:u,REJECTION_EVENT:f,SUBCLASSING:l}},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,d){if(e(o),a(d)&&d.constructor===o)return d;var y=t.f(o),V=y.resolve;return V(d),y.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 d(){return t[o]}return d}(),set:function(){function d(y){t[o]=y}return d}()})}},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),d=n(14489),y=TypeError;I.exports=function(V,k){var S=V.exec;if(t(S)){var p=e(S,V,k);return p!==null&&a(p),p}if(o(V)==="RegExp")return e(d,V,k);throw new y("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),d=n(62115),y=n(16639),V=n(80674),k=n(5419).get,S=n(39173),p=n(35688),i=y("native-string-replace",String.prototype.replace),l=RegExp.prototype.exec,f=l,u=a("".charAt),s=a("".indexOf),m=a("".replace),c=a("".slice),v=function(){var C=/a/,N=/b*/g;return e(l,C,"a"),e(l,N,"a"),C.lastIndex!==0||N.lastIndex!==0}(),b=d.BROKEN_CARET,g=/()??/.exec("")[1]!==void 0,h=v||g||b||S||p;h&&(f=function(){function C(N){var x=this,B=k(x),L=t(N),w=B.raw,A,T,E,O,P,R,F;if(w)return w.lastIndex=x.lastIndex,A=e(f,w,L),x.lastIndex=w.lastIndex,A;var j=B.groups,W=b&&x.sticky,H=e(o,x),z=x.source,$=0,G=L;if(W&&(H=m(H,"y",""),s(H,"g")===-1&&(H+="g"),G=c(L,x.lastIndex),x.lastIndex>0&&(!x.multiline||x.multiline&&u(L,x.lastIndex-1)!=="\n")&&(z="(?: "+z+")",G=" "+G,$++),T=new RegExp("^(?:"+z+")",H)),g&&(T=new RegExp("^"+z+"$(?!\\s)",H)),v&&(E=x.lastIndex),O=e(l,W?T:x,G),W?O?(O.input=c(O.input,$),O[0]=c(O[0],$),O.index=x.lastIndex,x.lastIndex+=O[0].length):x.lastIndex=0:v&&O&&(x.lastIndex=x.global?O.index+O[0].length:E),g&&O&&O.length>1&&e(i,O[0],T,function(){for(P=1;Pb)","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 d=t(e,o);return d&&d.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),d=n(83309),y=n(54602),V=n(24986),k=e.Function,S=/MSIE .\./.test(d)||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 l=i?2:1;return S?function(f,u){var s=V(arguments.length,1)>l,m=t(f)?f:k(f),c=s?y(arguments,l):[],v=s?function(){a(m,this,c)}:m;return i?p(v,u):p(v)}:p}},58491:function(I,r,n){"use strict";var e=n(4009),a=n(73936),t=n(24697),o=n(58310),d=t("species");I.exports=function(y){var V=e(y);o&&V&&!V[d]&&a(V,d,{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(d,y,V){d&&!V&&(d=d.prototype),d&&!a(d,o)&&e(d,o,{configurable:!0,value:y})}},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__",d=I.exports=a[o]||t(o,{});(d.versions||(d.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),d=o("species");I.exports=function(y,V){var k=e(y).constructor,S;return k===void 0||t(S=e(k)[d])?V:a(S)}},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),d=e("".charAt),y=e("".charCodeAt),V=e("".slice),k=function(p){return function(i,l){var f=t(o(i)),u=a(l),s=f.length,m,c;return u<0||u>=s?p?"":void 0:(m=y(f,u),m<55296||m>56319||u+1===s||(c=y(f,u+1))<56320||c>57343?p?d(f,u):m:p?V(f,u,u+2):(m-55296<<10)+(c-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),d=n(16952),y=e(o),V=e("".slice),k=Math.ceil,S=function(i){return function(l,f,u){var s=t(d(l)),m=a(f),c=s.length,v=u===void 0?" ":t(u),b,g;return m<=c||v===""?s:(b=m-c,g=y(v,k(b/v.length)),g.length>b&&(g=V(g,0,b)),i?s+g:g+s)}};I.exports={start:S(!1),end:S(!0)}},62443:function(I,r,n){"use strict";var e=n(61365),a=n(12605),t=n(16952),o=RangeError;I.exports=function(){function d(y){var V=a(t(this)),k="",S=e(y);if(S<0||S===1/0)throw new o("Wrong number of repetitions");for(;S>0;(S>>>=1)&&(V+=V))S&1&&(k+=V);return k}return d}()},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(d){return a(function(){return!!t[d]()||o[d]()!==o||e&&t[d].name!==d})}},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),d=e("".replace),y=RegExp("^["+o+"]+"),V=RegExp("(^|[^"+o+"])["+o+"]+$"),k=function(p){return function(i){var l=t(a(i));return p&1&&(l=d(l,y,"")),p&2&&(l=d(l,V,"$1")),l}};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 d=Symbol("symbol detection");return!o(d)||!(Object(d)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 d=a("Symbol"),y=d&&d.prototype,V=y&&y.valueOf,k=t("toPrimitive");y&&!y[k]&&o(y,k,function(S){return e(V,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),d=n(45299),y=n(40033),V=n(5315),k=n(54602),S=n(12689),p=n(24986),i=n(27770),l=n(81663),f=e.setImmediate,u=e.clearImmediate,s=e.process,m=e.Dispatch,c=e.Function,v=e.MessageChannel,b=e.String,g=0,h={},C="onreadystatechange",N,x,B,L;y(function(){N=e.location});var w=function(P){if(d(h,P)){var R=h[P];delete h[P],R()}},A=function(P){return function(){w(P)}},T=function(P){w(P.data)},E=function(P){e.postMessage(b(P),N.protocol+"//"+N.host)};(!f||!u)&&(f=function(){function O(P){p(arguments.length,1);var R=o(P)?P:c(P),F=k(arguments,1);return h[++g]=function(){a(R,void 0,F)},x(g),g}return O}(),u=function(){function O(P){delete h[P]}return O}(),l?x=function(P){s.nextTick(A(P))}:m&&m.now?x=function(P){m.now(A(P))}:v&&!i?(B=new v,L=B.port2,B.port1.onmessage=T,x=t(L.postMessage,L)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&N&&N.protocol!=="file:"&&!y(E)?(x=E,e.addEventListener("message",T,!1)):C in S("script")?x=function(P){V.appendChild(S("script"))[C]=function(){V.removeChild(this),w(P)}}:x=function(P){setTimeout(A(P),0)}),I.exports={set:f,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,d){var y=e(o);return y<0?a(y+d,0):t(y,d)}},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 d=e(o),y=a(d);if(d!==y)throw new t("Wrong length or index");return y}},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 d=e(t);if(d%o)throw new a("Wrong offset");return d}},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),d=n(13396),y=n(24697),V=TypeError,k=y("toPrimitive");I.exports=function(S,p){if(!a(S)||t(S))return S;var i=o(S,k),l;if(i){if(p===void 0&&(p="default"),l=e(i,S,p),!a(l)||t(l))return l;throw new V("Can't convert object to primitive value")}return p===void 0&&(p="number"),d(S,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),d=n(86563),y=n(4246),V=n(37336),k=n(60077),S=n(87458),p=n(37909),i=n(5841),l=n(10188),f=n(43806),u=n(56043),s=n(15409),m=n(767),c=n(45299),v=n(2281),b=n(77568),g=n(71399),h=n(80674),C=n(21287),N=n(76649),x=n(37310).f,B=n(3805),L=n(22603).forEach,w=n(58491),A=n(73936),T=n(74595),E=n(27193),O=n(78008),P=n(5419),R=n(5781),F=P.get,j=P.set,W=P.enforce,H=T.f,z=E.f,$=a.RangeError,G=V.ArrayBuffer,ne=G.prototype,Q=V.DataView,he=y.NATIVE_ARRAY_BUFFER_VIEWS,Ve=y.TYPED_ARRAY_TAG,Ne=y.TypedArray,Be=y.TypedArrayPrototype,Le=y.isTypedArray,Ae="BYTES_PER_ELEMENT",fe="Wrong length",Z=function(me,Te){A(me,Te,{configurable:!0,get:function(){function M(){return F(this)[Te]}return M}()})},J=function(me){var Te;return C(ne,me)||(Te=v(me))==="ArrayBuffer"||Te==="SharedArrayBuffer"},te=function(me,Te){return Le(me)&&!g(Te)&&Te in me&&i(+Te)&&Te>=0},ee=function(){function ye(me,Te){return Te=m(Te),te(me,Te)?S(2,me[Te]):z(me,Te)}return ye}(),le=function(){function ye(me,Te,M){return Te=m(Te),te(me,Te)&&b(M)&&c(M,"value")&&!c(M,"get")&&!c(M,"set")&&!M.configurable&&(!c(M,"writable")||M.writable)&&(!c(M,"enumerable")||M.enumerable)?(me[Te]=M.value,me):H(me,Te,M)}return ye}();o?(he||(E.f=ee,T.f=le,Z(Be,"buffer"),Z(Be,"byteOffset"),Z(Be,"byteLength"),Z(Be,"length")),e({target:"Object",stat:!0,forced:!he},{getOwnPropertyDescriptor:ee,defineProperty:le}),I.exports=function(ye,me,Te){var M=ye.match(/\d+/)[0]/8,X=ye+(Te?"Clamped":"")+"Array",ae="get"+ye,ue="set"+ye,ie=a[X],ge=ie,Ce=ge&&ge.prototype,Me={},De=function(_,oe){var ve=F(_);return ve.view[ae](oe*M+ve.byteOffset,!0)},ke=function(_,oe,ve){var Se=F(_);Se.view[ue](oe*M+Se.byteOffset,Te?s(ve):ve,!0)},pe=function(_,oe){H(_,oe,{get:function(){function ve(){return De(this,oe)}return ve}(),set:function(){function ve(Se){return ke(this,oe,Se)}return ve}(),enumerable:!0})};he?d&&(ge=me(function(xe,_,oe,ve){return k(xe,Ce),R(function(){return b(_)?J(_)?ve!==void 0?new ie(_,u(oe,M),ve):oe!==void 0?new ie(_,u(oe,M)):new ie(_):Le(_)?O(ge,_):t(B,ge,_):new ie(f(_))}(),xe,ge)}),N&&N(ge,Ne),L(x(ie),function(xe){xe in ge||p(ge,xe,ie[xe])}),ge.prototype=Ce):(ge=me(function(xe,_,oe,ve){k(xe,Ce);var Se=0,Ie=0,Ee,Pe,Oe;if(!b(_))Oe=f(_),Pe=Oe*M,Ee=new G(Pe);else if(J(_)){Ee=_,Ie=u(oe,M);var We=_.byteLength;if(ve===void 0){if(We%M)throw new $(fe);if(Pe=We-Ie,Pe<0)throw new $(fe)}else if(Pe=l(ve)*M,Pe+Ie>We)throw new $(fe);Oe=Pe/M}else return Le(_)?O(ge,_):t(B,ge,_);for(j(xe,{buffer:Ee,byteOffset:Ie,byteLength:Pe,length:Oe,view:new Q(Ee)});Se1?arguments[1]:void 0,v=c!==void 0,b=V(s),g,h,C,N,x,B,L,w;if(b&&!k(b))for(L=y(s,b),w=L.next,s=[];!(B=a(w,L)).done;)s.push(B.value);for(v&&m>2&&(c=e(c,arguments[2])),h=d(s),C=new(p(u))(h),N=S(C),g=0;h>g;g++)x=v?c(s[g],g):s[g],C[g]=N?i(x):+x;return C}return l}()},31082:function(I,r,n){"use strict";var e=n(4246),a=n(28987),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;I.exports=function(d){return t(a(d,o(d)))}},16738:function(I,r,n){"use strict";var e=n(67250),a=0,t=Math.random(),o=e(1 .toString);I.exports=function(d){return"Symbol("+(d===void 0?"":d)+")_"+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 c=[];return c[f]=!1,c.concat()[0]!==c}),s=function(v){if(!o(v))return!1;var b=v[f];return b!==void 0?!!b:t(v)},m=!u||!p("concat");e({target:"Array",proto:!0,arity:1,forced:m},{concat:function(){function c(v){var b=d(this),g=S(b,0),h=0,C,N,x,B,L;for(C=-1,x=arguments.length;C1?arguments[1]:void 0)}return d}()})},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 d(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return d}()})},64094:function(I,r,n){"use strict";var e=n(63964),a=n(22603).findIndex,t=n(80575),o="findIndex",d=!0;o in[]&&Array(1)[o](function(){d=!1}),e({target:"Array",proto:!0,forced:d},{findIndex:function(){function y(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return y}()}),t(o)},13455:function(I,r,n){"use strict";var e=n(63964),a=n(22603).find,t=n(80575),o="find",d=!0;o in[]&&Array(1)[o](function(){d=!1}),e({target:"Array",proto:!0,forced:d},{find:function(){function y(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return y}()}),t(o)},32384:function(I,r,n){"use strict";var e=n(63964),a=n(65561),t=n(10320),o=n(46771),d=n(24760),y=n(57823);e({target:"Array",proto:!0},{flatMap:function(){function V(k){var S=o(this),p=d(S),i;return t(k),i=y(S,0),i.length=a(i,S,S,p,0,1,k,arguments.length>1?arguments[1]:void 0),i}return V}()})},61915:function(I,r,n){"use strict";var e=n(63964),a=n(65561),t=n(46771),o=n(24760),d=n(61365),y=n(57823);e({target:"Array",proto:!0},{flat:function(){function V(){var k=arguments.length?arguments[0]:void 0,S=t(this),p=o(S),i=y(S,0);return i.length=a(i,S,S,p,0,k===void 0?1:d(k)),i}return V}()})},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(d){Array.from(d)});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),d=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:d},{includes:function(){function y(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return y}()}),o("includes")},43894:function(I,r,n){"use strict";var e=n(63964),a=n(71138),t=n(14211).indexOf,o=n(55528),d=a([].indexOf),y=!!d&&1/d([1],1,-0)<0,V=y||!o("indexOf");e({target:"Array",proto:!0,forced:V},{indexOf:function(){function k(S){var p=arguments.length>1?arguments[1]:void 0;return y?d(this,S,p)||0:t(this,S,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),d=n(74595).f,y=n(65574),V=n(5959),k=n(4493),S=n(58310),p="Array Iterator",i=o.set,l=o.getterFor(p);I.exports=y(Array,"Array",function(u,s){i(this,{type:p,target:e(u),index:0,kind:s})},function(){var u=l(this),s=u.target,m=u.index++;if(!s||m>=s.length)return u.target=null,V(void 0,!0);switch(u.kind){case"keys":return V(m,!1);case"values":return V(s[m],!1)}return V([m,s[m]],!1)},"values");var f=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!k&&S&&f.name!=="values")try{d(f,"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),d=n(55528),y=a([].join),V=t!==Object,k=V||!d("join",",");e({target:"Array",proto:!0,forced:k},{join:function(){function S(p){return y(o(this),p===void 0?",":p)}return S}()})},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 d(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return d}()})},32089:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(1031),o=n(60102),d=Array,y=a(function(){function V(){}return!(d.of.call(V)instanceof V)});e({target:"Array",stat:!0,forced:y},{of:function(){function V(){for(var k=0,S=arguments.length,p=new(t(this)?this:d)(S);S>k;)o(p,k,arguments[k++]);return p.length=S,p}return V}()})},29645:function(I,r,n){"use strict";var e=n(63964),a=n(56844).right,t=n(55528),o=n(83141),d=n(81663),y=!d&&o>79&&o<83,V=y||!t("reduceRight");e({target:"Array",proto:!0,forced:V},{reduceRight:function(){function k(S){return a(this,S,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),d=n(81663),y=!d&&o>79&&o<83,V=y||!t("reduce");e({target:"Array",proto:!0,forced:V},{reduce:function(){function k(S){var p=arguments.length;return a(this,S,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),d=[1,2];e({target:"Array",proto:!0,forced:String(d)===String(d.reverse())},{reverse:function(){function y(){return t(this)&&(this.length=this.length),o(this)}return y}()})},58672:function(I,r,n){"use strict";var e=n(63964),a=n(37386),t=n(1031),o=n(77568),d=n(13912),y=n(24760),V=n(57591),k=n(60102),S=n(24697),p=n(44091),i=n(54602),l=p("slice"),f=S("species"),u=Array,s=Math.max;e({target:"Array",proto:!0,forced:!l},{slice:function(){function m(c,v){var b=V(this),g=y(b),h=d(c,g),C=d(v===void 0?g:v,g),N,x,B;if(a(b)&&(N=b.constructor,t(N)&&(N===u||a(N.prototype))?N=void 0:o(N)&&(N=N[f],N===null&&(N=void 0)),N===u||N===void 0))return i(b,h,C);for(x=new(N===void 0?u:N)(s(C-h,0)),B=0;h1?arguments[1]:void 0)}return d}()})},48968:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(10320),o=n(46771),d=n(24760),y=n(95108),V=n(12605),k=n(40033),S=n(90274),p=n(55528),i=n(50503),l=n(79725),f=n(83141),u=n(44981),s=[],m=a(s.sort),c=a(s.push),v=k(function(){s.sort(void 0)}),b=k(function(){s.sort(null)}),g=p("sort"),h=!k(function(){if(f)return f<70;if(!(i&&i>3)){if(l)return!0;if(u)return u<603;var x="",B,L,w,A;for(B=65;B<76;B++){switch(L=String.fromCharCode(B),B){case 66:case 69:case 70:case 72:w=3;break;case 68:case 71:w=4;break;default:w=2}for(A=0;A<47;A++)s.push({k:L+A,v:w})}for(s.sort(function(T,E){return E.v-T.v}),A=0;AV(w)?1:-1}};e({target:"Array",proto:!0,forced:C},{sort:function(){function x(B){B!==void 0&&t(B);var L=o(this);if(h)return B===void 0?m(L):m(L,B);var w=[],A=d(L),T,E;for(E=0;Eb-N+C;B--)p(v,B-1)}else if(C>N)for(B=b-N;B>g;B--)L=B+N-1,w=B+C-1,L in v?v[w]=v[L]:p(v,w);for(B=0;B9490626562425156e-8?o(p)+y:a(p-1+d(p-1)*d(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 d(V){var k=+V;return!isFinite(k)||k===0?k:k<0?-d(-k):t(k+o(k*k+1))}var y=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:y},{asinh:d})},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 d(y){var V=+y;return V===0?V:t((1+V)/(1-V))/2}return d}()})},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 d(y){var V=+y;return a(V)*o(t(V),.3333333333333333)}return d}()})},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 d(y){var V=y>>>0;return V?31-a(t(V+.5)*o):32}return d}()})},29248:function(I,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.cosh,o=Math.abs,d=Math.E,y=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:y},{cosh:function(){function V(k){var S=a(o(k)-1)+1;return(S+1/(S*d*d))*(d/2)}return V}()})},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,d=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:d},{hypot:function(){function y(V,k){for(var S=0,p=0,i=arguments.length,l=0,f,u;p0?(u=f/l,S+=u*u):S+=f;return l===1/0?1/0:l*o(S)}return y}()})},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 d(y,V){var k=65535,S=+y,p=+V,i=k&S,l=k&p;return 0|i*l+((k&S>>>16)*l+i*(k&p>>>16)<<16>>>0)}return d}()})},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(d){return a(d)/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,d=Math.exp,y=Math.E,V=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:V},{sinh:function(){function k(S){var p=+S;return o(p)<1?(t(p)-t(-p))/2:(d(p-1)-d(-p-1))*(y/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(d){var y=+d,V=a(y),k=a(-y);return V===1/0?1:k===1/0?-1:(V-k)/(t(y)+t(-y))}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),d=n(61765),y=n(67250),V=n(41314),k=n(45299),S=n(5781),p=n(21287),i=n(71399),l=n(24843),f=n(40033),u=n(37310).f,s=n(27193).f,m=n(74595).f,c=n(46438),v=n(92648).trim,b="Number",g=o[b],h=d[b],C=g.prototype,N=o.TypeError,x=y("".slice),B=y("".charCodeAt),L=function(R){var F=l(R,"number");return typeof F=="bigint"?F:w(F)},w=function(R){var F=l(R,"number"),j,W,H,z,$,G,ne,Q;if(i(F))throw new N("Cannot convert a Symbol value to a number");if(typeof F=="string"&&F.length>2){if(F=v(F),j=B(F,0),j===43||j===45){if(W=B(F,2),W===88||W===120)return NaN}else if(j===48){switch(B(F,1)){case 66:case 98:H=2,z=49;break;case 79:case 111:H=8,z=55;break;default:return+F}for($=x(F,2),G=$.length,ne=0;nez)return NaN;return parseInt($,H)}}return+F},A=V(b,!g(" 0o1")||!g("0b1")||g("+0x1")),T=function(R){return p(C,R)&&f(function(){c(R)})},E=function(){function P(R){var F=arguments.length<1?0:g(L(R));return T(this)?S(Object(F),this,E):F}return P}();E.prototype=C,A&&!a&&(C.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var O=function(R,F){for(var j=t?u(F):"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(","),W=0,H;j.length>W;W++)k(F,H=j[W])&&!k(R,H)&&m(R,H,s(F,H))};a&&h&&O(d[b],h),(A||a)&&O(d[b],g)},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(d){return a(d)&&t(d)<=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),d=n(62443),y=n(40033),V=RangeError,k=String,S=Math.floor,p=a(d),i=a("".slice),l=a(1 .toFixed),f=function(g,h,C){return h===0?C:h%2===1?f(g,h-1,C*g):f(g*g,h/2,C)},u=function(g){for(var h=0,C=g;C>=4096;)h+=12,C/=4096;for(;C>=2;)h+=1,C/=2;return h},s=function(g,h,C){for(var N=-1,x=C;++N<6;)x+=h*g[N],g[N]=x%1e7,x=S(x/1e7)},m=function(g,h){for(var C=6,N=0;--C>=0;)N+=g[C],g[C]=S(N/h),N=N%h*1e7},c=function(g){for(var h=6,C="";--h>=0;)if(C!==""||h===0||g[h]!==0){var N=k(g[h]);C=C===""?N:C+p("0",7-N.length)+N}return C},v=y(function(){return l(8e-5,3)!=="0.000"||l(.9,0)!=="1"||l(1.255,2)!=="1.25"||l(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!y(function(){l({})});e({target:"Number",proto:!0,forced:v},{toFixed:function(){function b(g){var h=o(this),C=t(g),N=[0,0,0,0,0,0],x="",B="0",L,w,A,T;if(C<0||C>20)throw new V("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*f(2,69,1))-69,w=L<0?h*f(2,-L,1):h/f(2,L,1),w*=4503599627370496,L=52-L,L>0){for(s(N,0,w),A=C;A>=7;)s(N,1e7,0),A-=7;for(s(N,f(10,A,1),0),A=L-1;A>=23;)m(N,8388608),A-=23;m(N,1<0?(T=B.length,B=x+(T<=C?"0."+p("0",C-T)+B:i(B,0,T-C)+"."+i(B,T-C))):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),d=a(1 .toPrecision),y=t(function(){return d(1,void 0)!=="1"})||!t(function(){d({})});e({target:"Number",proto:!0,forced:y},{toPrecision:function(){function V(k){return k===void 0?d(o(this)):d(o(this),k)}return V}()})},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),d=n(46771),y=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function V(k,S){y.f(d(this),k,{get:o(S),enumerable:!0,configurable:!0})}return V}()})},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),d=n(46771),y=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function V(k,S){y.f(d(this),k,{set:o(S),enumerable:!0,configurable:!0})}return V}()})},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),d=n(81969).onFreeze,y=Object.freeze,V=t(function(){y(1)});e({target:"Object",stat:!0,forced:V,sham:!a},{freeze:function(){function k(S){return y&&o(S)?y(d(S)):S}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(d){var y={};return a(d,function(V,k){t(y,V,k)},{AS_ENTRIES:!0}),y}return o}()})},62289:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(57591),o=n(27193).f,d=n(58310),y=!d||a(function(){o(1)});e({target:"Object",stat:!0,forced:y,sham:!d},{getOwnPropertyDescriptor:function(){function V(k,S){return o(t(k),S)}return V}()})},56196:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(97921),o=n(57591),d=n(27193),y=n(60102);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function V(k){for(var S=o(k),p=d.f,i=t(S),l={},f=0,u,s;i.length>f;)s=p(S,u=i[f++]),s!==void 0&&y(l,u,s);return l}return V}()})},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),d=n(46771),y=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:y},{getOwnPropertySymbols:function(){function V(k){var S=o.f;return S?S(d(k)):[]}return V}()})},44205:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(46771),o=n(36917),d=n(9225),y=a(function(){o(1)});e({target:"Object",stat:!0,forced:y,sham:!d},{getPrototypeOf:function(){function V(k){return o(t(k))}return V}()})},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),d=n(3782),y=Object.isFrozen,V=d||a(function(){y(1)});e({target:"Object",stat:!0,forced:V},{isFrozen:function(){function k(S){return!t(S)||d&&o(S)==="ArrayBuffer"?!0:y?y(S):!1}return k}()})},13411:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),d=n(3782),y=Object.isSealed,V=d||a(function(){y(1)});e({target:"Object",stat:!0,forced:V},{isSealed:function(){function k(S){return!t(S)||d&&o(S)==="ArrayBuffer"?!0:y?y(S):!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),d=o(function(){t(1)});e({target:"Object",stat:!0,forced:d},{keys:function(){function y(V){return t(a(V))}return y}()})},53118:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),d=n(767),y=n(36917),V=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function k(S){var p=o(this),i=d(S),l;do if(l=V(p,i))return l.get;while(p=y(p))}return k}()})},42514:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),d=n(767),y=n(36917),V=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function k(S){var p=o(this),i=d(S),l;do if(l=V(p,i))return l.set;while(p=y(p))}return k}()})},84353:function(I,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),d=n(40033),y=Object.preventExtensions,V=d(function(){y(1)});e({target:"Object",stat:!0,forced:V,sham:!o},{preventExtensions:function(){function k(S){return y&&a(S)?y(t(S)):S}return k}()})},62987:function(I,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),d=n(40033),y=Object.seal,V=d(function(){y(1)});e({target:"Object",stat:!0,forced:V,sham:!o},{seal:function(){function k(S){return y&&a(S)?y(t(S)):S}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),d=n(10729),y=n(49450),V=n(48199);e({target:"Promise",stat:!0,forced:V},{all:function(){function k(S){var p=this,i=o.f(p),l=i.resolve,f=i.reject,u=d(function(){var s=t(p.resolve),m=[],c=0,v=1;y(S,function(b){var g=c++,h=!1;v++,a(s,p,b).then(function(C){h||(h=!0,m[g]=C,--v||l(m))},f)}),--v||l(m)});return u.error&&f(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),d=n(4009),y=n(55747),V=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&&y(o)){var S=d("Promise").prototype.catch;k.catch!==S&&V(k,"catch",S,{unsafe:!0})}},75946:function(I,r,n){"use strict";var e=n(63964),a=n(4493),t=n(81663),o=n(16210),d=n(91495),y=n(55938),V=n(76649),k=n(84925),S=n(58491),p=n(10320),i=n(55747),l=n(77568),f=n(60077),u=n(28987),s=n(60375).set,m=n(37713),c=n(72259),v=n(10729),b=n(9547),g=n(5419),h=n(67512),C=n(74854),N=n(81837),x="Promise",B=C.CONSTRUCTOR,L=C.REJECTION_EVENT,w=C.SUBCLASSING,A=g.getterFor(x),T=g.set,E=h&&h.prototype,O=h,P=E,R=o.TypeError,F=o.document,j=o.process,W=N.f,H=W,z=!!(F&&F.createEvent&&o.dispatchEvent),$="unhandledrejection",G="rejectionhandled",ne=0,Q=1,he=2,Ve=1,Ne=2,Be,Le,Ae,fe,Z=function(ue){var ie;return l(ue)&&i(ie=ue.then)?ie:!1},J=function(ue,ie){var ge=ie.value,Ce=ie.state===Q,Me=Ce?ue.ok:ue.fail,De=ue.resolve,ke=ue.reject,pe=ue.domain,se,xe,_;try{Me?(Ce||(ie.rejection===Ne&&me(ie),ie.rejection=Ve),Me===!0?se=ge:(pe&&pe.enter(),se=Me(ge),pe&&(pe.exit(),_=!0)),se===ue.promise?ke(new R("Promise-chain cycle")):(xe=Z(se))?d(xe,se,De,ke):De(se)):ke(ge)}catch(oe){pe&&!_&&pe.exit(),ke(oe)}},te=function(ue,ie){ue.notified||(ue.notified=!0,m(function(){for(var ge=ue.reactions,Ce;Ce=ge.get();)J(Ce,ue);ue.notified=!1,ie&&!ue.rejection&&le(ue)}))},ee=function(ue,ie,ge){var Ce,Me;z?(Ce=F.createEvent("Event"),Ce.promise=ie,Ce.reason=ge,Ce.initEvent(ue,!1,!0),o.dispatchEvent(Ce)):Ce={promise:ie,reason:ge},!L&&(Me=o["on"+ue])?Me(Ce):ue===$&&c("Unhandled promise rejection",ge)},le=function(ue){d(s,o,function(){var ie=ue.facade,ge=ue.value,Ce=ye(ue),Me;if(Ce&&(Me=v(function(){t?j.emit("unhandledRejection",ge,ie):ee($,ie,ge)}),ue.rejection=t||ye(ue)?Ne:Ve,Me.error))throw Me.value})},ye=function(ue){return ue.rejection!==Ve&&!ue.parent},me=function(ue){d(s,o,function(){var ie=ue.facade;t?j.emit("rejectionHandled",ie):ee(G,ie,ue.value)})},Te=function(ue,ie,ge){return function(Ce){ue(ie,Ce,ge)}},M=function(ue,ie,ge){ue.done||(ue.done=!0,ge&&(ue=ge),ue.value=ie,ue.state=he,te(ue,!0))},X=function(ue,ie,ge){if(!ue.done){ue.done=!0,ge&&(ue=ge);try{if(ue.facade===ie)throw new R("Promise can't be resolved itself");var Ce=Z(ie);Ce?m(function(){var Me={done:!1};try{d(Ce,ie,Te(X,Me,ue),Te(M,Me,ue))}catch(De){M(Me,De,ue)}}):(ue.value=ie,ue.state=Q,te(ue,!1))}catch(Me){M({done:!1},Me,ue)}}};if(B&&(O=function(){function ae(ue){f(this,P),p(ue),d(Be,this);var ie=A(this);try{ue(Te(X,ie),Te(M,ie))}catch(ge){M(ie,ge)}}return ae}(),P=O.prototype,Be=function(){function ae(ue){T(this,{type:x,done:!1,notified:!1,parent:!1,reactions:new b,rejection:!1,state:ne,value:null})}return ae}(),Be.prototype=y(P,"then",function(){function ae(ue,ie){var ge=A(this),Ce=W(u(this,O));return ge.parent=!0,Ce.ok=i(ue)?ue:!0,Ce.fail=i(ie)&&ie,Ce.domain=t?j.domain:void 0,ge.state===ne?ge.reactions.add(Ce):m(function(){J(Ce,ge)}),Ce.promise}return ae}()),Le=function(){var ue=new Be,ie=A(ue);this.promise=ue,this.resolve=Te(X,ie),this.reject=Te(M,ie)},N.f=W=function(ue){return ue===O||ue===Ae?new Le(ue):H(ue)},!a&&i(h)&&E!==Object.prototype)){fe=E.then,w||y(E,"then",function(){function ae(ue,ie){var ge=this;return new O(function(Ce,Me){d(fe,ge,Ce,Me)}).then(ue,ie)}return ae}(),{unsafe:!0});try{delete E.constructor}catch(ae){}V&&V(E,P)}e({global:!0,constructor:!0,wrap:!0,forced:B},{Promise:O}),k(O,x,!1,!0),S(x)},69861:function(I,r,n){"use strict";var e=n(63964),a=n(4493),t=n(67512),o=n(40033),d=n(4009),y=n(55747),V=n(28987),k=n(66628),S=n(55938),p=t&&t.prototype,i=!!t&&o(function(){p.finally.call({then:function(){function f(){}return f}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:i},{finally:function(){function f(u){var s=V(this,d("Promise")),m=y(u);return this.then(m?function(c){return k(s,u()).then(function(){return c})}:u,m?function(c){return k(s,u()).then(function(){throw c})}:u)}return f}()}),!a&&y(t)){var l=d("Promise").prototype.finally;p.finally!==l&&S(p,"finally",l,{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),d=n(10729),y=n(49450),V=n(48199);e({target:"Promise",stat:!0,forced:V},{race:function(){function k(S){var p=this,i=o.f(p),l=i.reject,f=d(function(){var u=t(p.resolve);y(S,function(s){a(u,p,s).then(i.resolve,l)})});return f.error&&l(f.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(d){var y=a.f(this),V=y.reject;return V(d),y.promise}return o}()})},81702:function(I,r,n){"use strict";var e=n(63964),a=n(4009),t=n(4493),o=n(67512),d=n(74854).CONSTRUCTOR,y=n(66628),V=a("Promise"),k=t&&!d;e({target:"Promise",stat:!0,forced:t||d},{resolve:function(){function S(p){return y(k&&this===V?o:this,p)}return S}()})},29674:function(I,r,n){"use strict";var e=n(63964),a=n(61267),t=n(10320),o=n(30365),d=n(40033),y=!d(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:y},{apply:function(){function V(k,S,p){return a(t(k),S,o(p))}return V}()})},81543:function(I,r,n){"use strict";var e=n(63964),a=n(4009),t=n(61267),o=n(66284),d=n(32606),y=n(30365),V=n(77568),k=n(80674),S=n(40033),p=a("Reflect","construct"),i=Object.prototype,l=[].push,f=S(function(){function m(){}return!(p(function(){},[],m)instanceof m)}),u=!S(function(){p(function(){})}),s=f||u;e({target:"Reflect",stat:!0,forced:s,sham:s},{construct:function(){function m(c,v){d(c),y(v);var b=arguments.length<3?c:d(arguments[2]);if(u&&!f)return p(c,v,b);if(c===b){switch(v.length){case 0:return new c;case 1:return new c(v[0]);case 2:return new c(v[0],v[1]);case 3:return new c(v[0],v[1],v[2]);case 4:return new c(v[0],v[1],v[2],v[3])}var g=[null];return t(l,g,v),new(t(o,c,g))}var h=b.prototype,C=k(V(h)?h:i),N=t(c,C,v);return V(N)?N:C}return m}()})},9373:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(767),d=n(74595),y=n(40033),V=y(function(){Reflect.defineProperty(d.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:V,sham:!a},{defineProperty:function(){function k(S,p,i){t(S);var l=o(p);t(i);try{return d.f(S,l,i),!0}catch(f){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(d,y){var V=t(a(d),y);return V&&!V.configurable?!1:delete d[y]}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 d(y,V){return o.f(t(y),V)}return d}()})},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 d(y){return t(a(y))}return d}()})},63074:function(I,r,n){"use strict";var e=n(63964),a=n(91495),t=n(77568),o=n(30365),d=n(98373),y=n(27193),V=n(36917);function k(S,p){var i=arguments.length<3?S:arguments[2],l,f;if(o(S)===i)return S[p];if(l=y.f(S,p),l)return d(l)?l.value:l.get===void 0?void 0:a(l.get,i);if(t(f=V(S)))return k(f,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(d){return a(d),t(d)}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 d(y){t(y);try{var V=a("Object","preventExtensions");return V&&V(y),!0}catch(k){return!1}}return d}()})},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 d(y,V){a(y),t(V);try{return o(y,V),!0}catch(k){return!1}}return d}()})},92046:function(I,r,n){"use strict";var e=n(63964),a=n(91495),t=n(30365),o=n(77568),d=n(98373),y=n(40033),V=n(74595),k=n(27193),S=n(36917),p=n(87458);function i(f,u,s){var m=arguments.length<4?f:arguments[3],c=k.f(t(f),u),v,b,g;if(!c){if(o(b=S(f)))return i(b,u,s,m);c=p(0)}if(d(c)){if(c.writable===!1||!o(m))return!1;if(v=k.f(m,u)){if(v.get||v.set||v.writable===!1)return!1;v.value=s,V.f(m,u,v)}else V.f(m,u,p(0,s))}else{if(g=c.set,g===void 0)return!1;a(g,m,s)}return!0}var l=y(function(){var f=function(){},u=V.f(new f,"a",{configurable:!0});return Reflect.set(f.prototype,"a",1,u)!==!1});e({target:"Reflect",stat:!0,forced:l},{set:i})},51454:function(I,r,n){"use strict";var e=n(58310),a=n(16210),t=n(67250),o=n(41314),d=n(5781),y=n(37909),V=n(80674),k=n(37310).f,S=n(21287),p=n(72586),i=n(12605),l=n(73392),f=n(62115),u=n(34550),s=n(55938),m=n(40033),c=n(45299),v=n(5419).enforce,b=n(58491),g=n(24697),h=n(39173),C=n(35688),N=g("match"),x=a.RegExp,B=x.prototype,L=a.SyntaxError,w=t(B.exec),A=t("".charAt),T=t("".replace),E=t("".indexOf),O=t("".slice),P=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,R=/a/g,F=/a/g,j=new x(R)!==R,W=f.MISSED_STICKY,H=f.UNSUPPORTED_Y,z=e&&(!j||W||h||C||m(function(){return F[N]=!1,x(R)!==R||x(F)===F||String(x(R,"i"))!=="/a/i"})),$=function(Ne){for(var Be=Ne.length,Le=0,Ae="",fe=!1,Z;Le<=Be;Le++){if(Z=A(Ne,Le),Z==="\\"){Ae+=Z+A(Ne,++Le);continue}!fe&&Z==="."?Ae+="[\\s\\S]":(Z==="["?fe=!0:Z==="]"&&(fe=!1),Ae+=Z)}return Ae},G=function(Ne){for(var Be=Ne.length,Le=0,Ae="",fe=[],Z=V(null),J=!1,te=!1,ee=0,le="",ye;Le<=Be;Le++){if(ye=A(Ne,Le),ye==="\\")ye+=A(Ne,++Le);else if(ye==="]")J=!1;else if(!J)switch(!0){case ye==="[":J=!0;break;case ye==="(":if(Ae+=ye,O(Ne,Le+1,Le+3)==="?:")continue;w(P,O(Ne,Le+1))&&(Le+=2,te=!0),ee++;continue;case(ye===">"&&te):if(le===""||c(Z,le))throw new L("Invalid capture group name");Z[le]=!0,fe[fe.length]=[le,ee],te=!1,le="";continue}te?le+=ye:Ae+=ye}return[Ae,fe]};if(o("RegExp",z)){for(var ne=function(){function Ve(Ne,Be){var Le=S(B,this),Ae=p(Ne),fe=Be===void 0,Z=[],J=Ne,te,ee,le,ye,me,Te;if(!Le&&Ae&&fe&&Ne.constructor===ne)return Ne;if((Ae||S(B,Ne))&&(Ne=Ne.source,fe&&(Be=l(J))),Ne=Ne===void 0?"":i(Ne),Be=Be===void 0?"":i(Be),J=Ne,h&&"dotAll"in R&&(ee=!!Be&&E(Be,"s")>-1,ee&&(Be=T(Be,/s/g,""))),te=Be,W&&"sticky"in R&&(le=!!Be&&E(Be,"y")>-1,le&&H&&(Be=T(Be,/y/g,""))),C&&(ye=G(Ne),Ne=ye[0],Z=ye[1]),me=d(x(Ne,Be),Le?this:B,ne),(ee||le||Z.length)&&(Te=v(me),ee&&(Te.dotAll=!0,Te.raw=ne($(Ne),te)),le&&(Te.sticky=!0),Z.length&&(Te.groups=Z)),Ne!==J)try{y(me,"source",J===""?"(?:)":J)}catch(M){}return me}return Ve}(),Q=k(x),he=0;Q.length>he;)u(ne,x,Q[he++]);B.constructor=ne,ne.prototype=B,s(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),d=n(40033),y=e.RegExp,V=y.prototype,k=a&&d(function(){var S=!0;try{y(".","d")}catch(c){S=!1}var p={},i="",l=S?"dgimsy":"gimsy",f=function(v,b){Object.defineProperty(p,v,{get:function(){function g(){return i+=b,!0}return g}()})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};S&&(u.hasIndices="d");for(var s in u)f(s,u[s]);var m=Object.getOwnPropertyDescriptor(V,"flags").get.call(p);return m!==l||i!==l});k&&t(V,"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),d=n(40033),y=n(73392),V="toString",k=RegExp.prototype,S=k[V],p=d(function(){return S.call({source:"a",flags:"b"})!=="/a/b"}),i=e&&S.name!==V;(p||i)&&a(k,V,function(){function l(){var f=t(this),u=o(f.source),s=o(y(f));return"/"+u+"/"+s}return l}(),{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(d){return a(this,"a","name",d)}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),d=n(12605),y=n(86213),V=n(16952),k=n(45490),S=n(4493),p=a("".slice),i=Math.min,l=k("endsWith"),f=!S&&!l&&!!function(){var u=t(String.prototype,"endsWith");return u&&!u.writable}();e({target:"String",proto:!0,forced:!f&&!l},{endsWith:function(){function u(s){var m=d(V(this));y(s);var c=arguments.length>1?arguments[1]:void 0,v=m.length,b=c===void 0?v:i(o(c),v),g=d(s);return p(m,b-g.length,b)===g}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(d){return a(this,"font","color",d)}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(d){return a(this,"font","size",d)}return o}()})},9867:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(13912),o=RangeError,d=String.fromCharCode,y=String.fromCodePoint,V=a([].join),k=!!y&&y.length!==1;e({target:"String",stat:!0,arity:1,forced:k},{fromCodePoint:function(){function S(p){for(var i=[],l=arguments.length,f=0,u;l>f;){if(u=+arguments[f++],t(u,1114111)!==u)throw new o(u+" is not a valid code point");i[f]=u<65536?d(u):d(((u-=65536)>>10)+55296,u%1024+56320)}return V(i,"")}return S}()})},43673:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(86213),o=n(16952),d=n(12605),y=n(45490),V=a("".indexOf);e({target:"String",proto:!0,forced:!y("includes")},{includes:function(){function k(S){return!!~V(d(o(this)),d(t(S)),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),d=n(5959),y="String Iterator",V=t.set,k=t.getterFor(y);o(String,"String",function(S){V(this,{type:y,string:a(S),index:0})},function(){function S(){var p=k(this),i=p.string,l=p.index,f;return l>=i.length?d(void 0,!0):(f=e(i,l),p.index+=f.length,d(f,!1))}return S}())},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(d){return a(this,"a","href",d)}return o}()})},22515:function(I,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),d=n(10188),y=n(12605),V=n(16952),k=n(78060),S=n(35483),p=n(28340);a("match",function(i,l,f){return[function(){function u(s){var m=V(this),c=o(s)?void 0:k(s,i);return c?e(c,s,m):new RegExp(s)[i](y(m))}return u}(),function(u){var s=t(this),m=y(u),c=f(l,s,m);if(c.done)return c.value;if(!s.global)return p(s,m);var v=s.unicode;s.lastIndex=0;for(var b=[],g=0,h;(h=p(s,m))!==null;){var C=y(h[0]);b[g]=C,C===""&&(s.lastIndex=S(m,d(s.lastIndex),v)),g++}return g===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(d){return a(this,d,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(d){return a(this,d,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),d=n(12605),y=n(24760),V=a([].push),k=a([].join);e({target:"String",stat:!0},{raw:function(){function S(p){var i=t(o(p).raw),l=y(i);if(!l)return"";for(var f=arguments.length,u=[],s=0;;){if(V(u,d(i[s++])),s===l)return k(u,"");s")!=="7"});o("replace",function(T,E,O){var P=w?"$":"$0";return[function(){function R(F,j){var W=l(this),H=k(F)?void 0:u(F,v);return H?a(H,F,W,j):a(E,i(W),F,j)}return R}(),function(R,F){var j=y(this),W=i(R);if(typeof F=="string"&&N(F,P)===-1&&N(F,"$<")===-1){var H=O(E,j,W,F);if(H.done)return H.value}var z=V(F);z||(F=i(F));var $=j.global,G;$&&(G=j.unicode,j.lastIndex=0);for(var ne=[],Q;Q=m(j,W),!(Q===null||(C(ne,Q),!$));){var he=i(Q[0]);he===""&&(j.lastIndex=f(W,p(j.lastIndex),G))}for(var Ve="",Ne=0,Be=0;Be=Ne&&(Ve+=x(W,Ne,Ae)+Z,Ne=Ae+Le.length)}return Ve+x(W,Ne)}]},!A||!L||w)},63272:function(I,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),d=n(16952),y=n(5700),V=n(12605),k=n(78060),S=n(28340);a("search",function(p,i,l){return[function(){function f(u){var s=d(this),m=o(u)?void 0:k(u,p);return m?e(m,u,s):new RegExp(u)[p](V(s))}return f}(),function(f){var u=t(this),s=V(f),m=l(i,u,s);if(m.done)return m.value;var c=u.lastIndex;y(c,0)||(u.lastIndex=0);var v=S(u,s);return y(u.lastIndex,c)||(u.lastIndex=c),v===null?-1:v.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),d=n(42871),y=n(16952),V=n(28987),k=n(35483),S=n(10188),p=n(12605),i=n(78060),l=n(28340),f=n(62115),u=n(40033),s=f.UNSUPPORTED_Y,m=4294967295,c=Math.min,v=a([].push),b=a("".slice),g=!u(function(){var C=/(?:)/,N=C.exec;C.exec=function(){return N.apply(this,arguments)};var x="ab".split(C);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(C,N,x){var B="0".split(void 0,0).length?function(L,w){return L===void 0&&w===0?[]:e(N,this,L,w)}:N;return[function(){function L(w,A){var T=y(this),E=d(w)?void 0:i(w,C);return E?e(E,w,T,A):e(B,p(T),w,A)}return L}(),function(L,w){var A=o(this),T=p(L);if(!h){var E=x(B,A,T,w,B!==N);if(E.done)return E.value}var O=V(A,RegExp),P=A.unicode,R=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(s?"g":"y"),F=new O(s?"^(?:"+A.source+")":A,R),j=w===void 0?m:w>>>0;if(j===0)return[];if(T.length===0)return l(F,T)===null?[T]:[];for(var W=0,H=0,z=[];H1?arguments[1]:void 0,m.length)),v=d(s);return p(m,c,c+v.length)===v}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),d=n(4493),y=n(58310),V=n(52357),k=n(40033),S=n(45299),p=n(21287),i=n(30365),l=n(57591),f=n(767),u=n(12605),s=n(87458),m=n(80674),c=n(18450),v=n(37310),b=n(81644),g=n(89235),h=n(27193),C=n(74595),N=n(24239),x=n(12867),B=n(55938),L=n(73936),w=n(16639),A=n(19417),T=n(79195),E=n(16738),O=n(24697),P=n(55557),R=n(85889),F=n(52360),j=n(84925),W=n(5419),H=n(22603).forEach,z=A("hidden"),$="Symbol",G="prototype",ne=W.set,Q=W.getterFor($),he=Object[G],Ve=a.Symbol,Ne=Ve&&Ve[G],Be=a.RangeError,Le=a.TypeError,Ae=a.QObject,fe=h.f,Z=C.f,J=b.f,te=x.f,ee=o([].push),le=w("symbols"),ye=w("op-symbols"),me=w("wks"),Te=!Ae||!Ae[G]||!Ae[G].findChild,M=function(se,xe,_){var oe=fe(he,xe);oe&&delete he[xe],Z(se,xe,_),oe&&se!==he&&Z(he,xe,oe)},X=y&&k(function(){return m(Z({},"a",{get:function(){function pe(){return Z(this,"a",{value:7}).a}return pe}()})).a!==7})?M:Z,ae=function(se,xe){var _=le[se]=m(Ne);return ne(_,{type:$,tag:se,description:xe}),y||(_.description=xe),_},ue=function(){function pe(se,xe,_){se===he&&ue(ye,xe,_),i(se);var oe=f(xe);return i(_),S(le,oe)?(_.enumerable?(S(se,z)&&se[z][oe]&&(se[z][oe]=!1),_=m(_,{enumerable:s(0,!1)})):(S(se,z)||Z(se,z,s(1,m(null))),se[z][oe]=!0),X(se,oe,_)):Z(se,oe,_)}return pe}(),ie=function(){function pe(se,xe){i(se);var _=l(xe),oe=c(_).concat(ke(_));return H(oe,function(ve){(!y||t(Ce,_,ve))&&ue(se,ve,_[ve])}),se}return pe}(),ge=function(){function pe(se,xe){return xe===void 0?m(se):ie(m(se),xe)}return pe}(),Ce=function(){function pe(se){var xe=f(se),_=t(te,this,xe);return this===he&&S(le,xe)&&!S(ye,xe)?!1:_||!S(this,xe)||!S(le,xe)||S(this,z)&&this[z][xe]?_:!0}return pe}(),Me=function(){function pe(se,xe){var _=l(se),oe=f(xe);if(!(_===he&&S(le,oe)&&!S(ye,oe))){var ve=fe(_,oe);return ve&&S(le,oe)&&!(S(_,z)&&_[z][oe])&&(ve.enumerable=!0),ve}}return pe}(),De=function(){function pe(se){var xe=J(l(se)),_=[];return H(xe,function(oe){!S(le,oe)&&!S(T,oe)&&ee(_,oe)}),_}return pe}(),ke=function(se){var xe=se===he,_=J(xe?ye:l(se)),oe=[];return H(_,function(ve){S(le,ve)&&(!xe||S(he,ve))&&ee(oe,le[ve])}),oe};V||(Ve=function(){function pe(){if(p(Ne,this))throw new Le("Symbol is not a constructor");var se=!arguments.length||arguments[0]===void 0?void 0:u(arguments[0]),xe=E(se),_=function(){function oe(ve){var Se=this===void 0?a:this;Se===he&&t(_,ye,ve),S(Se,z)&&S(Se[z],xe)&&(Se[z][xe]=!1);var Ie=s(1,ve);try{X(Se,xe,Ie)}catch(Ee){if(!(Ee instanceof Be))throw Ee;M(Se,xe,Ie)}}return oe}();return y&&Te&&X(he,xe,{configurable:!0,set:_}),ae(xe,se)}return pe}(),Ne=Ve[G],B(Ne,"toString",function(){function pe(){return Q(this).tag}return pe}()),B(Ve,"withoutSetter",function(pe){return ae(E(pe),pe)}),x.f=Ce,C.f=ue,N.f=ie,h.f=Me,v.f=b.f=De,g.f=ke,P.f=function(pe){return ae(O(pe),pe)},y&&(L(Ne,"description",{configurable:!0,get:function(){function pe(){return Q(this).description}return pe}()}),d||B(he,"propertyIsEnumerable",Ce,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!V,sham:!V},{Symbol:Ve}),H(c(me),function(pe){R(pe)}),e({target:$,stat:!0,forced:!V},{useSetter:function(){function pe(){Te=!0}return pe}(),useSimple:function(){function pe(){Te=!1}return pe}()}),e({target:"Object",stat:!0,forced:!V,sham:!y},{create:ge,defineProperty:ue,defineProperties:ie,getOwnPropertyDescriptor:Me}),e({target:"Object",stat:!0,forced:!V},{getOwnPropertyNames:De}),F(),j(Ve,$),T[z]=!0},10933:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(16210),o=n(67250),d=n(45299),y=n(55747),V=n(21287),k=n(12605),S=n(73936),p=n(5774),i=t.Symbol,l=i&&i.prototype;if(a&&y(i)&&(!("description"in l)||i().description!==void 0)){var f={},u=function(){function h(){var C=arguments.length<1||arguments[0]===void 0?void 0:k(arguments[0]),N=V(l,this)?new i(C):C===void 0?i():i(C);return C===""&&(f[N]=!0),N}return h}();p(u,i),u.prototype=l,l.constructor=u;var s=String(i("description detection"))==="Symbol(description detection)",m=o(l.valueOf),c=o(l.toString),v=/^Symbol\((.*)\)[^)]+$/,b=o("".replace),g=o("".slice);S(l,"description",{configurable:!0,get:function(){function h(){var C=m(this);if(d(f,C))return"";var N=c(C),x=s?g(N,7,-1):b(N,v,"$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),d=n(16639),y=n(66570),V=d("string-to-symbol-registry"),k=d("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!y},{for:function(){function S(p){var i=o(p);if(t(V,i))return V[i];var l=a("Symbol")(i);return V[i]=l,k[l]=i,l}return S}()})},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),d=n(16639),y=n(66570),V=d("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!y},{keyFor:function(){function k(S){if(!t(S))throw new TypeError(o(S)+" is not a symbol");if(a(V,S))return V[S]}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),d=a.aTypedArray,y=a.exportTypedArrayMethod;y("copyWithin",function(){function V(k,S){return o(d(this),k,S,arguments.length>2?arguments[2]:void 0)}return V}())},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 d(y){return a(t(this),y,arguments.length>1?arguments[1]:void 0)}return d}())},58166:function(I,r,n){"use strict";var e=n(4246),a=n(88471),t=n(61484),o=n(2281),d=n(91495),y=n(67250),V=n(40033),k=e.aTypedArray,S=e.exportTypedArrayMethod,p=y("".slice),i=V(function(){var l=0;return new Int8Array(2).fill({valueOf:function(){function f(){return l++}return f}()}),l!==1});S("fill",function(){function l(f){var u=arguments.length;k(this);var s=p(o(this),0,3)==="Big"?t(f):+f;return d(a,this,s,u>1?arguments[1]:void 0,u>2?arguments[2]:void 0)}return l}(),i)},23793:function(I,r,n){"use strict";var e=n(4246),a=n(22603).filter,t=n(45399),o=e.aTypedArray,d=e.exportTypedArrayMethod;d("filter",function(){function y(V){var k=a(o(this),V,arguments.length>1?arguments[1]:void 0);return t(this,k)}return y}())},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 d(y){return a(t(this),y,arguments.length>1?arguments[1]:void 0)}return d}())},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 d(y){return a(t(this),y,arguments.length>1?arguments[1]:void 0)}return d}())},80756:function(I,r,n){"use strict";var e=n(80185);e("Float32",function(a){return function(){function t(o,d,y){return a(this,o,d,y)}return t}()})},70567:function(I,r,n){"use strict";var e=n(80185);e("Float64",function(a){return function(){function t(o,d,y){return a(this,o,d,y)}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 d(y){a(t(this),y,arguments.length>1?arguments[1]:void 0)}return d}())},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 d(y){return a(t(this),y,arguments.length>1?arguments[1]:void 0)}return d}())},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 d(y){return a(t(this),y,arguments.length>1?arguments[1]:void 0)}return d}())},60037:function(I,r,n){"use strict";var e=n(80185);e("Int16",function(a){return function(){function t(o,d,y){return a(this,o,d,y)}return t}()})},44195:function(I,r,n){"use strict";var e=n(80185);e("Int32",function(a){return function(){function t(o,d,y){return a(this,o,d,y)}return t}()})},66756:function(I,r,n){"use strict";var e=n(80185);e("Int8",function(a){return function(){function t(o,d,y){return a(this,o,d,y)}return t}()})},63689:function(I,r,n){"use strict";var e=n(16210),a=n(40033),t=n(67250),o=n(4246),d=n(34570),y=n(24697),V=y("iterator"),k=e.Uint8Array,S=t(d.values),p=t(d.keys),i=t(d.entries),l=o.aTypedArray,f=o.exportTypedArrayMethod,u=k&&k.prototype,s=!a(function(){u[V].call([1])}),m=!!u&&u.values&&u[V]===u.values&&u.values.name==="values",c=function(){function v(){return S(l(this))}return v}();f("entries",function(){function v(){return i(l(this))}return v}(),s),f("keys",function(){function v(){return p(l(this))}return v}(),s),f("values",c,s||!m,{name:"values"}),f(V,c,s||!m,{name:"values"})},5659:function(I,r,n){"use strict";var e=n(4246),a=n(67250),t=e.aTypedArray,o=e.exportTypedArrayMethod,d=a([].join);o("join",function(){function y(V){return d(t(this),V)}return y}())},25014:function(I,r,n){"use strict";var e=n(4246),a=n(61267),t=n(1325),o=e.aTypedArray,d=e.exportTypedArrayMethod;d("lastIndexOf",function(){function y(V){var k=arguments.length;return a(t,o(this),k>1?[V,arguments[1]]:[V])}return y}())},32189:function(I,r,n){"use strict";var e=n(4246),a=n(22603).map,t=n(31082),o=e.aTypedArray,d=e.exportTypedArrayMethod;d("map",function(){function y(V){return a(o(this),V,arguments.length>1?arguments[1]:void 0,function(k,S){return new(t(k))(S)})}return y}())},23030:function(I,r,n){"use strict";var e=n(4246),a=n(86563),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function d(){for(var y=0,V=arguments.length,k=new(t(this))(V);V>y;)k[y]=arguments[y++];return k}return d}(),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 d(y){var V=arguments.length;return a(t(this),y,V,V>1?arguments[1]:void 0)}return d}())},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 d(y){var V=arguments.length;return a(t(this),y,V,V>1?arguments[1]:void 0)}return d}())},56445:function(I,r,n){"use strict";var e=n(4246),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function d(){for(var y=this,V=a(y).length,k=o(V/2),S=0,p;S1?arguments[1]:void 0,1),b=y(c);if(u)return a(i,this,b,v);var g=this.length,h=o(b),C=0;if(h+v>g)throw new k("Wrong length");for(;Cf;)s[f]=i[f++];return s}return k}(),V)},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 d(y){return a(t(this),y,arguments.length>1?arguments[1]:void 0)}return d}())},60415:function(I,r,n){"use strict";var e=n(16210),a=n(71138),t=n(40033),o=n(10320),d=n(90274),y=n(4246),V=n(50503),k=n(79725),S=n(83141),p=n(44981),i=y.aTypedArray,l=y.exportTypedArrayMethod,f=e.Uint16Array,u=f&&a(f.prototype.sort),s=!!u&&!(t(function(){u(new f(2),null)})&&t(function(){u(new f(2),{})})),m=!!u&&!t(function(){if(S)return S<74;if(V)return V<67;if(k)return!0;if(p)return p<602;var v=new f(516),b=Array(516),g,h;for(g=0;g<516;g++)h=g%4,v[g]=515-g,b[g]=g-2*h+3;for(u(v,function(C,N){return(C/4|0)-(N/4|0)}),g=0;g<516;g++)if(v[g]!==b[g])return!0}),c=function(b){return function(g,h){return b!==void 0?+b(g,h)||0:h!==h?-1:g!==g?1:g===0&&h===0?1/g>0&&1/h<0?1:-1:g>h}};l("sort",function(){function v(b){return b!==void 0&&o(b),m?u(this,b):d(i(this),c(b))}return v}(),!m||s)},72532:function(I,r,n){"use strict";var e=n(4246),a=n(10188),t=n(13912),o=n(31082),d=e.aTypedArray,y=e.exportTypedArrayMethod;y("subarray",function(){function V(k,S){var p=d(this),i=p.length,l=t(k,i),f=o(p);return new f(p.buffer,p.byteOffset+l*p.BYTES_PER_ELEMENT,a((S===void 0?i:t(S,i))-l))}return V}())},62207:function(I,r,n){"use strict";var e=n(16210),a=n(61267),t=n(4246),o=n(40033),d=n(54602),y=e.Int8Array,V=t.aTypedArray,k=t.exportTypedArrayMethod,S=[].toLocaleString,p=!!y&&o(function(){S.call(new y(1))}),i=o(function(){return[1,2].toLocaleString()!==new y([1,2]).toLocaleString()})||!o(function(){y.prototype.toLocaleString.call([1,2])});k("toLocaleString",function(){function l(){return a(S,p?d(V(this)):V(this),d(arguments))}return l}(),i)},906:function(I,r,n){"use strict";var e=n(4246).exportTypedArrayMethod,a=n(40033),t=n(16210),o=n(67250),d=t.Uint8Array,y=d&&d.prototype||{},V=[].toString,k=o([].join);a(function(){V.call({})})&&(V=function(){function p(){return k(this)}return p}());var S=y.toString!==V;e("toString",V,S)},78824:function(I,r,n){"use strict";var e=n(80185);e("Uint16",function(a){return function(){function t(o,d,y){return a(this,o,d,y)}return t}()})},72846:function(I,r,n){"use strict";var e=n(80185);e("Uint32",function(a){return function(){function t(o,d,y){return a(this,o,d,y)}return t}()})},24575:function(I,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,d,y){return a(this,o,d,y)}return t}()})},71968:function(I,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,d,y){return a(this,o,d,y)}return t}()},!0)},80040:function(I,r,n){"use strict";var e=n(50730),a=n(16210),t=n(67250),o=n(30145),d=n(81969),y=n(45150),V=n(39895),k=n(77568),S=n(5419).enforce,p=n(40033),i=n(21820),l=Object,f=Array.isArray,u=l.isExtensible,s=l.isFrozen,m=l.isSealed,c=l.freeze,v=l.seal,b=!a.ActiveXObject&&"ActiveXObject"in a,g,h=function(E){return function(){function O(){return E(this,arguments.length?arguments[0]:void 0)}return O}()},C=y("WeakMap",h,V),N=C.prototype,x=t(N.set),B=function(){return e&&p(function(){var E=c([]);return x(new C,E,1),!s(E)})};if(i)if(b){g=V.getConstructor(h,"WeakMap",!0),d.enable();var L=t(N.delete),w=t(N.has),A=t(N.get);o(N,{delete:function(){function T(E){if(k(E)&&!u(E)){var O=S(this);return O.frozen||(O.frozen=new g),L(this,E)||O.frozen.delete(E)}return L(this,E)}return T}(),has:function(){function T(E){if(k(E)&&!u(E)){var O=S(this);return O.frozen||(O.frozen=new g),w(this,E)||O.frozen.has(E)}return w(this,E)}return T}(),get:function(){function T(E){if(k(E)&&!u(E)){var O=S(this);return O.frozen||(O.frozen=new g),w(this,E)?A(this,E):O.frozen.get(E)}return A(this,E)}return T}(),set:function(){function T(E,O){if(k(E)&&!u(E)){var P=S(this);P.frozen||(P.frozen=new g),w(this,E)?x(this,E,O):P.frozen.set(E,O)}else x(this,E,O);return this}return T}()})}else B()&&o(N,{set:function(){function T(E,O){var P;return f(E)&&(s(E)?P=c:m(E)&&(P=v)),x(this,E,O),P&&P(E),this}return T}()})},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),d=n(24986),y=n(40033),V=n(58310),k=y(function(){return V&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:k},{queueMicrotask:function(){function S(p){d(arguments.length,1),t(o(p))}return S}()})},27807:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(60375).set,o=n(78362),d=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==d},{setImmediate:d})},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 S;window.onunload=function(){return r&&r.close()}},t=function(S){return e.push(S)},o=function(S){var p=[],i=function(d){return typeof d=="number"&&!Number.isFinite(d)?{__number__:String(d)}:typeof d=="undefined"?{__undefined__:!0}:d},c=function(d,m){if(typeof m=="object"){if(m===null)return m;if(p.includes(m))return"[circular ref]";p.push(m);var l=m instanceof Error||m.code&&m.message&&m.message.includes("Error");return l?{__error__:!0,string:String(m),stack:m.stack}:Array.isArray(m)?m.map(i):m}return i(m)},f=JSON.stringify(S,c);return p=null,f},s=function(S){if(0)var p,i,c},y=function(S,p){if(0)var i,c,f},V=function(){};I.exports={subscribe:t,sendMessage:s,sendLogEntry:y,setupHotReloading:V}}},xt={};function q(I){var r=xt[I];if(r!==void 0)return r.exports;var n=xt[I]={exports:{}};return Xt[I](n,n.exports,q),n.exports}(function(){q.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(I){if(typeof window=="object")return window}}()})(),function(){q.o=function(I,r){return Object.prototype.hasOwnProperty.call(I,r)}}();var Rn={};(function(){"use strict";q(33313),q(10933),q(79250),q(53795),q(87806),q(64677),q(48058),q(51583),q(82403),q(34265),q(3295),q(1078),q(63207),q(80520),q(39600),q(93237),q(32057),q(68933),q(47830),q(13455),q(64094),q(61915),q(32384),q(25579),q(63532),q(33425),q(43894),q(99636),q(34570),q(94432),q(24683),q(69984),q(32089),q(60206),q(29645),q(4788),q(58672),q(19356),q(48968),q(49852),q(2712),q(864),q(54243),q(75621),q(26267),q(50095),q(33451),q(74587),q(25082),q(47421),q(32122),q(6306),q(90216),q(84663),q(92332),q(98329),q(9631),q(47091),q(59660),q(15383),q(92866),q(86107),q(29248),q(52540),q(79007),q(77199),q(6522),q(95542),q(2966),q(20997),q(57400),q(45571),q(54800),q(15709),q(76059),q(96614),q(324),q(90426),q(95443),q(87968),q(55007),q(55323),q(13521),q(5006),q(99009),q(85770),q(23532),q(87119),q(78618),q(27129),q(31943),q(3579),q(97397),q(85028),q(8225),q(43331),q(62289),q(56196),q(2950),q(44205),q(76882),q(83186),q(76065),q(13411),q(26634),q(53118),q(42514),q(84353),q(62987),q(48993),q(52917),q(4972),q(28913),q(36382),q(53092),q(69861),q(29674),q(81543),q(9373),q(45093),q(63074),q(5815),q(88527),q(66390),q(7784),q(50551),q(76483),q(92046),q(63915),q(51454),q(79669),q(23057),q(57983),q(17953),q(30442),q(6403),q(9867),q(43673),q(12354),q(22515),q(5143),q(93514),q(5416),q(11619),q(44590),q(63272),q(39930),q(4038),q(8448),q(70604),q(34965),q(95309),q(82256),q(49484),q(38931),q(39308),q(91550),q(75008),q(56027),q(50340),q(34325),q(74498),q(15812),q(57726),q(80756),q(70567),q(66756),q(60037),q(44195),q(24575),q(71968),q(78824),q(72846),q(99872),q(73364),q(58166),q(23793),q(43820),q(13917),q(19852),q(40379),q(92770),q(81069),q(63689),q(5659),q(25014),q(32189),q(23030),q(24309),q(49110),q(56445),q(30939),q(48321),q(88739),q(60415),q(72532),q(62207),q(906),q(90846),q(40348),q(83006),q(25764),q(69401),q(95012),q(30236)})(),function(){"use strict";var I=q(89005);q(67160),q(23542),q(30386),q(98996),q(41639),q(50578),q(4444),q(77870),q(39108),q(21039),q(51862),q(56856),q(1272),q(74757),q(1965),q(63489),q(24226),q(11714),q(73492),q(49641),q(17570),q(61858),q(73358),q(32882),q(23632);var r=q(85822),n=q(7435),e=q(56518),a=q(18498),t=q(49060),o=q(72178),s=q(24826),y;/** + */var r,n=[],e=[],a=function(){if(0)var S;window.onunload=function(){return r&&r.close()}},t=function(S){return e.push(S)},o=function(S){var p=[],i=function(s){return typeof s=="number"&&!Number.isFinite(s)?{__number__:String(s)}:typeof s=="undefined"?{__undefined__:!0}:s},l=function(s,m){if(typeof m=="object"){if(m===null)return m;if(p.includes(m))return"[circular ref]";p.push(m);var c=m instanceof Error||m.code&&m.message&&m.message.includes("Error");return c?{__error__:!0,string:String(m),stack:m.stack}:Array.isArray(m)?m.map(i):m}return i(m)},f=JSON.stringify(S,l);return p=null,f},d=function(S){if(0)var p,i,l},y=function(S,p){if(0)var i,l,f},V=function(){};I.exports={subscribe:t,sendMessage:d,sendLogEntry:y,setupHotReloading:V}}},xt={};function q(I){var r=xt[I];if(r!==void 0)return r.exports;var n=xt[I]={exports:{}};return Xt[I](n,n.exports,q),n.exports}(function(){q.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(I){if(typeof window=="object")return window}}()})(),function(){q.o=function(I,r){return Object.prototype.hasOwnProperty.call(I,r)}}();var Rn={};(function(){"use strict";q(33313),q(10933),q(79250),q(53795),q(87806),q(64677),q(48058),q(51583),q(82403),q(34265),q(3295),q(1078),q(63207),q(80520),q(39600),q(93237),q(32057),q(68933),q(47830),q(13455),q(64094),q(61915),q(32384),q(25579),q(63532),q(33425),q(43894),q(99636),q(34570),q(94432),q(24683),q(69984),q(32089),q(60206),q(29645),q(4788),q(58672),q(19356),q(48968),q(49852),q(2712),q(864),q(54243),q(75621),q(26267),q(50095),q(33451),q(74587),q(25082),q(47421),q(32122),q(6306),q(90216),q(84663),q(92332),q(98329),q(9631),q(47091),q(59660),q(15383),q(92866),q(86107),q(29248),q(52540),q(79007),q(77199),q(6522),q(95542),q(2966),q(20997),q(57400),q(45571),q(54800),q(15709),q(76059),q(96614),q(324),q(90426),q(95443),q(87968),q(55007),q(55323),q(13521),q(5006),q(99009),q(85770),q(23532),q(87119),q(78618),q(27129),q(31943),q(3579),q(97397),q(85028),q(8225),q(43331),q(62289),q(56196),q(2950),q(44205),q(76882),q(83186),q(76065),q(13411),q(26634),q(53118),q(42514),q(84353),q(62987),q(48993),q(52917),q(4972),q(28913),q(36382),q(53092),q(69861),q(29674),q(81543),q(9373),q(45093),q(63074),q(5815),q(88527),q(66390),q(7784),q(50551),q(76483),q(92046),q(63915),q(51454),q(79669),q(23057),q(57983),q(17953),q(30442),q(6403),q(9867),q(43673),q(12354),q(22515),q(5143),q(93514),q(5416),q(11619),q(44590),q(63272),q(39930),q(4038),q(8448),q(70604),q(34965),q(95309),q(82256),q(49484),q(38931),q(39308),q(91550),q(75008),q(56027),q(50340),q(34325),q(74498),q(15812),q(57726),q(80756),q(70567),q(66756),q(60037),q(44195),q(24575),q(71968),q(78824),q(72846),q(99872),q(73364),q(58166),q(23793),q(43820),q(13917),q(19852),q(40379),q(92770),q(81069),q(63689),q(5659),q(25014),q(32189),q(23030),q(24309),q(49110),q(56445),q(30939),q(48321),q(88739),q(60415),q(72532),q(62207),q(906),q(90846),q(40348),q(83006),q(25764),q(69401),q(95012),q(30236)})(),function(){"use strict";var I=q(89005);q(67160),q(23542),q(30386),q(98996),q(41639),q(50578),q(4444),q(77870),q(39108),q(21039),q(51862),q(56856),q(1272),q(74757),q(1965),q(63489),q(24226),q(11714),q(73492),q(49641),q(17570),q(61858),q(73358),q(32882),q(23632);var r=q(85822),n=q(7435),e=q(56518),a=q(18498),t=q(49060),o=q(72178),d=q(24826),y;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */r.perf.mark("inception",(y=window.performance)==null||(y=y.timing)==null?void 0:y.navigationStart),r.perf.mark("init");var V=(0,o.configureStore)(),k=(0,t.createRenderer)(function(){var p=q(71253),i=p.getRoutedComponent,c=i(V);return(0,I.createComponentVNode)(2,o.StoreProvider,{store:V,children:(0,I.createComponentVNode)(2,c)})}),S=function(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",S);return}(0,s.setupGlobalEvents)(),(0,e.setupHotKeys)(),(0,a.captureExternalLinks)(),V.subscribe(k),Byond.subscribe(function(i,c){return V.dispatch({type:i,payload:c})})};S()}()})();})(); + */r.perf.mark("inception",(y=window.performance)==null||(y=y.timing)==null?void 0:y.navigationStart),r.perf.mark("init");var V=(0,o.configureStore)(),k=(0,t.createRenderer)(function(){var p=q(71253),i=p.getRoutedComponent,l=i(V);return(0,I.createComponentVNode)(2,o.StoreProvider,{store:V,children:(0,I.createComponentVNode)(2,l)})}),S=function(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",S);return}(0,d.setupGlobalEvents)(),(0,e.setupHotKeys)(),(0,a.captureExternalLinks)(),V.subscribe(k),Byond.subscribe(function(i,l){return V.dispatch({type:i,payload:l})})};S()}()})();})();